de2fda821ec02eee57449de9562f80f5993e65ce,nlp_architect/cmd.py,StyleCommand,run_flake,#,113

Before Change


        cmd = "flake8 {} --config={}".format(" ".join(StyleCommand.files_to_check), flake8_config)
        out, ret = run_shell_cmd(cmd)
        print(out)
        return ret

    @staticmethod
    def run_pylint():
        print("Running pylint ...\n")

After Change


        print("Running flake8 ...\n")
        flake8_config = path.join(LIBRARY_ROOT, "setup.cfg")
        cmd = "flake8 {} --config={}".format(" ".join(StyleCommand.files_to_check), flake8_config)
        cmd_out = run(cmd, shell=True, check=True)
        return cmd_out.returncode

    @staticmethod
    def run_pylint():
        print("Running pylint ...\n")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: de2fda821ec02eee57449de9562f80f5993e65ce
Time: 2018-11-25
Author: peteriz@users.noreply.github.com
File Name: nlp_architect/cmd.py
Class Name: StyleCommand
Method Name: run_flake


Project Name: NervanaSystems/nlp-architect
Commit Name: de2fda821ec02eee57449de9562f80f5993e65ce
Time: 2018-11-25
Author: peteriz@users.noreply.github.com
File Name: nlp_architect/cmd.py
Class Name: StyleCommand
Method Name: run_pylint


Project Name: rodluger/starry
Commit Name: 83963af784f586860dfc899c8eefb23d56bb0f48
Time: 2018-08-31
Author: rodluger@gmail.com
File Name: tests/test_rotation.py
Class Name:
Method Name: test_rotation_multi


Project Name: rodluger/starry
Commit Name: 83963af784f586860dfc899c8eefb23d56bb0f48
Time: 2018-08-31
Author: rodluger@gmail.com
File Name: tests/test_evaluation.py
Class Name:
Method Name: test_evaluation_multi