d90bd80c85adfeefc14c51466bab48bce7619c53,bears/general/CPDBear.py,CPDBear,CPDBear_1,#,12

Before Change



class CPDBear(GlobalBear):

    LANGUAGES = ("C++", "C//", "Objective C", "Java", "JavaScript", "Fortran",
                 "Go", "JSP", "Python 2", "Python 3", "Python", "Ruby",
                 "PHP", "Scala")

    @classmethod
    def check_prerequisites(cls):  // pragma: no cover
        if which("bash") is None:

After Change



class CPDBear(GlobalBear):

    language_dict = {"C//": "cs",
                     "C++": "cpp",
                     "JavaScript": "ecmascript",
                     "Fortran": "fortran",
                     "Go": "go",
                     "Java": "java",
                     "JSP": "jsp",
                     "Matlab": "matlab",
                     "Octave": "matlab",
                     "Objective C": "objectivec",
                     "PHP": "php",
                     "PL/SQL": "plsql",
                     "Python": "python",
                     "Python 2": "python",
                     "Python 3": "python",
                     "Ruby": "ruby",
                     "Scala": "scala",
                     "Swift": "swift"}

    lowered_lang_dict = {key.lower(): value
                         for key, value in language_dict.items()}

    LANGUAGES = tuple(language_dict.keys())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: coala/coala-bears
Commit Name: d90bd80c85adfeefc14c51466bab48bce7619c53
Time: 2016-06-10
Author: lasse.schuirmann@gmail.com
File Name: bears/general/CPDBear.py
Class Name: CPDBear
Method Name: CPDBear_1


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a70f50b67ad5a25e0b63a5030a43a331b9f2e582
Time: 2018-01-02
Author: chenyumic@google.com
File Name: appengine/flexible/twilio/main_test.py
Class Name:
Method Name: test_send_sms


Project Name: WheatonCS/Lexos
Commit Name: a06bfb108b00b17506793aa475cbe6a88eba6347
Time: 2015-06-11
Author: 13501393281@163.com
File Name: helpers/constants.py
Class Name:
Method Name: