parameters: (self, a, b)
return_statement: return changes
docstring: assumes a and b are of the same length.
docstring_summary: assumes a and b are of the same length.
docstring_tokens: assumes a and b are of the same length .
function: def byte_diff_count (self, a, b):
          """
          assumes a and b are of the same length.
          """
          
          max_len = max(len(a), len(b))
          min_len = min(len(a), len(b))
          changes = max_len - min_len
  
          for idx in xrange(min_len):
              if a[idx] != b[idx]:
                  changes += 1
  
          return changes
function_tokens: def byte_diff_count ( self , a , b ) : max_len = max ( len ( a ) , len ( b ) ) min_len = min ( len ( a ) , len ( b ) ) changes = max_len - min_len for idx in xrange ( min_len ) : if a [ idx ] != b [ idx ] : changes += 1 return changes