0a6edd21b9ab29a1f733b90ff15092e7a03f665d,src/python/twitter/pants/python/thrift_builder.py,PythonThriftBuilder,__init__,#PythonThriftBuilder#Any#Any#Any#,42
Before Change
codegen_root = tempfile.mkdtemp(dir=self.chroot.path(), prefix="codegen.")
self.codegen_root = os.path.relpath(codegen_root, self.chroot.path())
self.detected_packages = set()
self.detected_namespace_packages = set()
def __del__(self):
self.cleanup()
After Change
def run_thrifts(self):
def is_py_thrift(target):
return isinstance(target, PythonThriftLibrary)
bases, roots = calculate_compile_roots([self.target], is_py_thrift)
for src in roots:
if not self._run_thrift(src, bases):
raise PythonThriftBuilder.CodeGenerationException(
"Could not generate .py from %s!" % src)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: pantsbuild/pants
Commit Name: 0a6edd21b9ab29a1f733b90ff15092e7a03f665d
Time: 2014-01-15
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/python/thrift_builder.py
Class Name: PythonThriftBuilder
Method Name: __init__
Project Name: pantsbuild/pants
Commit Name: 3f5e994767718a930681d75bd59154525b02cd18
Time: 2014-01-19
Author: benjyw@gmail.com
File Name: src/python/twitter/pants/python/thrift_builder.py
Class Name: PythonThriftBuilder
Method Name: __init__
Project Name: ray-project/ray
Commit Name: ff6d412ad9251284645bc8cbd5fb786b107e0782
Time: 2020-10-02
Author: maxfitton@anyscale.com
File Name: dashboard/datacenter.py
Class Name: DataOrganizer
Method Name: get_node_actors