b0207dc0cac04995271f030608d0f6ff8e8039d3,example_zoo/tools/cmle_package.py,CMLEPackage,generate,#CMLEPackage#,271
Before Change
shutil.rmtree(self.output_dir)
os.makedirs(os.path.join(self.output_dir, self.package_path))
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)
with open(output_path, "w") as f:
f.write(content)
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: rasbt/mlxtend
Commit Name: c9e82bb1ab323d4a79793e47dbdd9204302e36af
Time: 2015-04-06
Author: se.raschka@me.com
File Name: mlxtend/file_io/find.py
Class Name:
Method Name: find_filegroups
Project Name: logpai/loglizer
Commit Name: 7c960272c5ab4d25a022538f5849addec3e6bfee
Time: 2019-02-25
Author: zhujm.home@gmail.com
File Name: loglizer/preprocessing.py
Class Name: FeatureExtractor
Method Name: transform