04629674f5f9e65bd35565b329f8c892a16865a4,src/python/twitter/pants/tasks/jvm_compiler_dependencies.py,Dependencies,findclasses,#Dependencies#Any#,42
Before Change
sources.add(src)
classes_by_target_by_source = defaultdict(lambda: defaultdict(set))
if os.path.exists(self.depfile):
with open(self.depfile, "r") as deps:
for dep in deps.readlines():
src, cls = dep.strip().split("->")
sourcefile = os.path.relpath(os.path.join(self.outputdir, src.strip()), get_buildroot())
if sourcefile in sources:
classfile = os.path.relpath(os.path.join(self.outputdir, cls.strip()), self.outputdir)
target = target_by_source[sourcefile]
relsrc = os.path.relpath(sourcefile, target.target_base)
classes_by_target_by_source[target][relsrc].add(classfile)
return classes_by_target_by_source
After Change
sources.add(src)
classes_by_target_by_source = defaultdict(lambda: defaultdict(set))
for sourcefile, classfiles in self.classes_by_source.items():
if sourcefile in sources:
target = target_by_source[sourcefile]
relsrc = os.path.relpath(sourcefile, target.target_base)
classes_by_target_by_source[target][relsrc] = classfiles
return classes_by_target_by_source
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: pantsbuild/pants
Commit Name: 04629674f5f9e65bd35565b329f8c892a16865a4
Time: 2012-07-07
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_compiler_dependencies.py
Class Name: Dependencies
Method Name: findclasses
Project Name: pantsbuild/pants
Commit Name: 04629674f5f9e65bd35565b329f8c892a16865a4
Time: 2012-07-07
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_compiler_dependencies.py
Class Name: Dependencies
Method Name: findclasses
Project Name: pantsbuild/pants
Commit Name: 9f236fd5795b60f8f75d77e20189dbeabc123814
Time: 2013-04-04
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/java_compile.py
Class Name: JavaCompile
Method Name: execute_single_compilation
Project Name: pantsbuild/pants
Commit Name: 699600d95b2b30291b26b8051cc379c0452e8c25
Time: 2013-04-09
Author: markcc@foursquare.com
File Name: src/python/twitter/pants/tasks/java_compile.py
Class Name: JavaCompile
Method Name: execute_single_compilation