b7aceaac883711484cc3fe88b91e04ca81537f03,contrib/spindle/src/python/pants/contrib/spindle/tasks/spindle_gen.py,SpindleGen,execute_codegen,#SpindleGen#Any#,86

Before Change


    ]

  def execute_codegen(self, targets):
    bases, sources = self._calculate_sources(targets, lambda t: isinstance(t, SpindleThriftLibrary))
    scalate_workdir = os.path.join(self.workdir, "scalate_workdir")
    safe_mkdir(self.namespace_out)
    safe_mkdir(scalate_workdir)

After Change


  def execute_codegen(self, targets):
    sources = self._calculate_sources(targets, lambda t: isinstance(t, SpindleThriftLibrary))
    bases = set(
      target.target_base
      for target in self.context.targets(lambda t: isinstance(t, SpindleThriftLibrary))
    )
    scalate_workdir = os.path.join(self.workdir, "scalate_workdir")
    safe_mkdir(self.namespace_out)
    safe_mkdir(scalate_workdir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: b7aceaac883711484cc3fe88b91e04ca81537f03
Time: 2015-06-01
Author: mjennings@foursquare.com
File Name: contrib/spindle/src/python/pants/contrib/spindle/tasks/spindle_gen.py
Class Name: SpindleGen
Method Name: execute_codegen


Project Name: pantsbuild/pants
Commit Name: bfb1453dd22fd12c69e314e0995499e3f4835614
Time: 2012-10-31
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/tasks/jvm_task.py
Class Name: JvmTask
Method Name: classpath


Project Name: pantsbuild/pants
Commit Name: 7699c5dcdb3cfbb8050581aed2f2eb7a5cc99579
Time: 2014-08-08
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: _calculate_sources