b0207dc0cac04995271f030608d0f6ff8e8039d3,example_zoo/tools/cmle_package.py,CMLEPackage,generate,#CMLEPackage#,271

Before Change



        for prefix, filenames in self.outputs.items():
            for filename in filenames:
                output_path = os.path.join(self.output_dir, prefix, filename)

                if filename == self.script_name:
                    content = self.source_content
                else:
                    template_filename = "test.py" if filename == self.test_name else filename
                    with open(os.path.join("templates", template_filename), "r") as f:
                        template = f.read()

                    content = template.format(**self.format_dict)

After Change


        self.build_pipes()

        for pipe in self.pipes:
            pipe.run()

        // for prefix, filenames in self.outputs.items():
        //     for filename in filenames:
        //         output_path = os.path.join(self.output_dir, prefix, filename)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: b0207dc0cac04995271f030608d0f6ff8e8039d3
Time: 2019-08-08
Author: yuhanliu@google.com
File Name: example_zoo/tools/cmle_package.py
Class Name: CMLEPackage
Method Name: generate


Project Name: pyprob/pyprob
Commit Name: 2728afcd57721b34f95ba575507a3db6c86c1f4c
Time: 2018-02-21
Author: atilimgunes.baydin@gmail.com
File Name: tests/test_model_remote.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: da0989f9f00cf2a9eca58410a721d23a1fdf72bb
Time: 2019-08-19
Author: ericarellano@me.com
File Name: contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_checkstyle.py
Class Name: CheckstyleTest
Method Name: build_checker_wheel