parameters: (self, window)
docstring: Find all of the brackets and sort them
          to "left of the cursor" and "right of the cursor"
docstring_summary: Find all of the brackets and sort them
          to "left of the cursor" and "right of the cursor"
docstring_tokens: Find all of the brackets and sort them to left of the cursor and right of the cursor
function: def findall(self, window):
          """
          Find all of the brackets and sort them
          to "left of the cursor" and "right of the cursor"
          """
  
          for m in self.pattern.finditer(self.bfr, window[0], window[1]):
              g = m.lastindex
              try:
                  start = m.start(g)
                  end = m.end(g)
              except:
                  continue
  
              match_type = int(not bool(g % 2))
              bracket_id = (g / 2) - match_type
  
              if not self.scope_check(start, bracket_id, self.scope):
                  if (end <= self.center if match_type else start < self.center):
                      self.left[match_type].append(BracketEntry(start, end, bracket_id))
                  elif (end > self.center if match_type else start >= self.center):
                      self.right[match_type].append(BracketEntry(start, end, bracket_id))
function_tokens: def findall ( self , window ) : for m in self . pattern . finditer ( self . bfr , window [ 0 ] , window [ 1 ] ) : g = m . lastindex try : start = m . start ( g ) end = m . end ( g ) except : continue match_type = int ( not bool ( g % 2 ) ) bracket_id = ( g / 2 ) - match_type if not self . scope_check ( start , bracket_id , self . scope ) : if ( end <= self . center if match_type else start < self . center ) : self . left [ match_type ] . append ( BracketEntry ( start , end , bracket_id ) ) elif ( end > self . center if match_type else start >= self . center ) : self . right [ match_type ] . append ( BracketEntry ( start , end , bracket_id ) )