0c078c90856338b4c9b33847860fa143d60b5a11,bin/auto_authors.py,,change,#Any#Any#,109

Before Change


        if len(set(index[slug])) > 1:
            logger.warning("name collision: {}".format(", ".join(index[slug])))
        newname = index[slug][0]
        if newname.isupper():
            logger.info("not uppercasing: {} -> {}".format(name, newname))
            return name
        if newname != name:

After Change


        if len(set(index[slug])) > 1:
            logger.warning("name collision: {}".format(", ".join(index[slug])))
        newname = index[slug][0]
        if not name.isupper() and newname.isupper():
            // this could backfire for initials, like Abc -> ABC
            logger.info("not uppercasing: {} -> {}".format(name, newname))
            return name
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: acl-org/acl-anthology
Commit Name: 0c078c90856338b4c9b33847860fa143d60b5a11
Time: 2019-06-02
Author: dchiang@nd.edu
File Name: bin/auto_authors.py
Class Name:
Method Name: change


Project Name: keras-team/keras-applications
Commit Name: 71acdcd98088501247f4b514b7cbbdf8182a05a4
Time: 2019-10-13
Author: Callidior@users.noreply.github.com
File Name: tests/applications_test.py
Class Name:
Method Name:


Project Name: vatlab/SoS
Commit Name: 146644f34e5c91cfa62b52bdeb9de40e1f1336e1
Time: 2017-06-29
Author: ben.bog@gmail.com
File Name: src/sos/utils.py
Class Name: WorkflowDict
Method Name: set