parameters: (self, s)
return_statement: return min(i, len(self.completions)-1)
docstring: Find the first index in self.completions where completions[i] is
          greater or equal to s, or the last index if there is no such
          one.
docstring_summary: Find the first index in self.completions where completions[i] is
          greater or equal to s, or the last index if there is no such
          one.
docstring_tokens: Find the first index in self . completions where completions [ i ] is greater or equal to s or the last index if there is no such one .
function: def _binary_search(self, s):
          """Find the first index in self.completions where completions[i] is
          greater or equal to s, or the last index if there is no such
          one."""
          i = 0; j = len(self.completions)
          while j > i:
              m = (i + j) // 2
              if self.completions[m] >= s:
                  j = m
              else:
                  i = m + 1
          return min(i, len(self.completions)-1)
function_tokens: def _binary_search ( self , s ) : i = 0 j = len ( self . completions ) while j > i : m = ( i + j ) // 2 if self . completions [ m ] >= s : j = m else : i = m + 1 return min ( i , len ( self . completions ) - 1 )