def s3_jaro_winkler_distance_row(row1, row2):
 dw = 0
 num_similar = 0
 if (len(row1) != len(row2)):
  return
 for x in range(0, len(row1)):
  str1 = row1[x]
  str2 = row2[x]
  dw += s3_jaro_winkler(str1, str2)
 dw = (dw / len(row1))
 dw = (dw * 100)
 return dw

def s3_jaro_winkler_distance_row ( row1 , row2 ) : dw = 0 num_similar = 0 if ( len ( row1 ) != len ( row2 ) ) : return for x in range ( 0 , len ( row1 ) ) : str1 = row1 [ x ] str2 = row2 [ x ] dw += s3_jaro_winkler ( str1 , str2 ) dw = ( dw / len ( row1 ) ) dw = ( dw * 100 ) return dw
calculate the percentage match for two db records @todo: parameter description? @status: currently unused .