parameters: (self, other)
return_statement: return cnt
docstring: other must support __getitem__()
docstring_summary: other must support __getitem__()
docstring_tokens: other must support __getitem__ ()
function: def ScoreWithIndex(self, other):
      """ other must support __getitem__() """
      cnt = 0
      for bit in self.GetBits():
        if other[bit]:
          cnt += 1
      return cnt
function_tokens: def ScoreWithIndex ( self , other ) : cnt = 0 for bit in self . GetBits ( ) : if other [ bit ] : cnt += 1 return cnt