5e21d853134fd4197ff7440b91645277a458dc00,crinacle/names.py,,main,#,12

Before Change


            continue
        name_index[name] = set()
        match = False
        for full_name in full_names:
            if re.search("( |-|^){}( |$)".format(re.escape(name)), full_name, flags=re.IGNORECASE):
                match = True
                name_index[name].add(full_name)
        if not match:
            unknown.append(name)

    print("{} unknown IEMs".format(len(unknown)))

After Change



        // Look for full names where current name is the last word
        for full_name in full_names:
            if re.search(" {}$".format(re.escape(name)), full_name, flags=re.IGNORECASE):
                name_index[name].add(full_name)

        if len(name_index[name]) == 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jaakkopasanen/AutoEq
Commit Name: 5e21d853134fd4197ff7440b91645277a458dc00
Time: 2019-04-27
Author: jaakko.o.pasanen@gmail.com
File Name: crinacle/names.py
Class Name:
Method Name: main


Project Name: tyarkoni/pliers
Commit Name: ce336c808563351bb23f87ec049c3cb7d58d774c
Time: 2018-06-05
Author: quinten.mcnamara@gmail.com
File Name: pliers/filters/text.py
Class Name: PunctuationRemovalFilter
Method Name: _filter


Project Name: coala/coala-bears
Commit Name: bfd61fb7a0c4456ce812a227f3b1962b2c727879
Time: 2016-09-03
Author: abdealikothari@gmail.com
File Name: bears/general/KeywordBear.py
Class Name: KeywordBear
Method Name: run