340d46fde1be0940629c93004d453cef65b09442,bin/auto_name_variants.py,,,#,101
Before Change
for first, last in names:
if (first, last) == (cfirst, clast): continue
if print_papers:
comment = " // " + paperlist(papers[first, last])
print(" - {{first: {}, last: {}}}{}".format(first, last, comment))
After Change
d["papers"] = " ".join(p)
return d
doc = []
for (cfirst, clast), names in sorted(clusters.items(), key=lambda i: (normalize(i[0][1]), normalize(i[0][0]))):
if len(names) > 1 or print_singletons:
person = {}
person["canonical"] = makename(cfirst, clast)
doc.append(person)
if len(names) > 1:
person["variants"] = []
for first, last in names:
if (first, last) == (cfirst, clast): continue
person["variants"].append(makename(first, last))
print(yaml.dump(doc, allow_unicode=True), end="")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: acl-org/acl-anthology
Commit Name: 340d46fde1be0940629c93004d453cef65b09442
Time: 2019-03-28
Author: dchiang@nd.edu
File Name: bin/auto_name_variants.py
Class Name:
Method Name:
Project Name: acl-org/acl-anthology
Commit Name: bfd66ac88c9f4d337150db9353a5247634633f57
Time: 2019-03-26
Author: dchiang@nd.edu
File Name: bin/auto_name_variants.py
Class Name:
Method Name:
Project Name: Pinafore/qb
Commit Name: 100fd825069036e054506b3a0daa076560b1f531
Time: 2017-10-04
Author: sjtufs@gmail.com
File Name: qanta/buzzer/hyper_search.py
Class Name:
Method Name: hyper_search
Project Name: Pinafore/qb
Commit Name: 5c92c3d8c87970bc89418d775ebbf3fba588fa2a
Time: 2017-05-16
Author: sjtufs@gmail.com
File Name: qanta/buzzer/hyper_search.py
Class Name:
Method Name: hyper_search