27d52530c1082680286f2e76466aee8f692d06d1,src/python/pants/backend/jvm/tasks/jvm_compile/java/jmake_analysis_parser.py,JMakeAnalysisParser,parse_products,#JMakeAnalysisParser#Any#Any#,37

Before Change


    return JMakeAnalysis(pcd_entries, src_to_deps)

  def parse_products(self, infile, classes_dir):
    self._expect_header(infile.readline(), "pcd entries")
    num_pcd_entries = self.parse_num_items(infile.readline())
    ret = defaultdict(list)
    // Parse more efficiently than above, since we only care about
    // the first two elements in the line.

After Change



  def parse_products(self, lines_iter, classes_dir):
    self._expect_header(next(lines_iter), b"pcd entries")
    num_pcd_entries = self.parse_num_items(next(lines_iter))
    ret = defaultdict(list)
    // Parse more efficiently than above, since we only care about
    // the first two elements in the line.
    for _ in range(0, num_pcd_entries):
      line = next(lines_iter)
      p1 = line.find(b"\t")
      clsfile = os.path.join(classes_dir, line[0:p1] + b".class")
      p2 = line.find(b"\t", p1 + 1)
      src = line[p1+1:p2]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 27d52530c1082680286f2e76466aee8f692d06d1
Time: 2015-05-03
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/java/jmake_analysis_parser.py
Class Name: JMakeAnalysisParser
Method Name: parse_products


Project Name: pantsbuild/pants
Commit Name: 27d52530c1082680286f2e76466aee8f692d06d1
Time: 2015-05-03
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/java/jmake_analysis_parser.py
Class Name: JMakeAnalysisParser
Method Name: parse_products


Project Name: pantsbuild/pants
Commit Name: 27d52530c1082680286f2e76466aee8f692d06d1
Time: 2015-05-03
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/java/jmake_analysis_parser.py
Class Name: JMakeAnalysisParser
Method Name: parse


Project Name: pantsbuild/pants
Commit Name: 27d52530c1082680286f2e76466aee8f692d06d1
Time: 2015-05-03
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/java/jmake_analysis_parser.py
Class Name: JMakeAnalysisParser
Method Name: _parse_deps_at_position