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