def code_almost_equal(a, b):
 split_a = split_and_strip_non_empty_lines(a)
 split_b = split_and_strip_non_empty_lines(b)
 if (len(split_a) != len(split_b)):
  return False
 for index in range(len(split_a)):
  if (u''.join(split_a[index].split()) != u''.join(split_b[index].split())):
   return False
 return True

def code_almost_equal ( a , b ) : split_a = split_and_strip_non_empty_lines ( a ) split_b = split_and_strip_non_empty_lines ( b ) if ( len ( split_a ) != len ( split_b ) ) : return False for index in range ( len ( split_a ) ) : if ( u'' . join ( split_a [ index ] . split ( ) ) != u'' . join ( split_b [ index ] . split ( ) ) ) : return False return True
return true if code is similar .