def matches_alias(product1, product2, exclude=[]):
    alias_tuple_list1 = [alias_row.my_alias_tuple_for_comparing for alias_row in product1.alias_rows]
    alias_tuple_list2 = [alias_row.my_alias_tuple_for_comparing for alias_row in product2.alias_rows]
    has_matches = False
    for alias_tuple1 in alias_tuple_list1:
        if alias_tuple1:
            (ns, nid) = alias_tuple1
            if alias_tuple1 in alias_tuple_list2 and exclude not in ns:
                has_matches = True
    return has_matches
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/aliases.py/matches_alias/swapped operands of `not in`