d0717e9c8f16ad5ddfae5ceee4389d874a463263,src/python/pants/backend/codegen/tasks/wire_gen.py,WireGen,calculate_genfiles,#WireGen#Any#Any#Any#,167

Before Change


    if protobuf_parse.extends:
      types |= set(["Ext_{0}".format(protobuf_parse.filename)])

    genfiles = defaultdict(set)
    java_files = list(self.calculate_java_genfiles(protobuf_parse.package, types))
    logger.debug("Path {path} yielded types {types} got files {java_files}"
                 .format(path=path, types=types, java_files=java_files))
    genfiles["java"].update(java_files)
    return genfiles

  def calculate_java_genfiles(self, package, types):

After Change


    java_files = self.calculate_java_genfiles(protobuf_parse.package, types)
    logger.debug("Path {path} yielded types {types} got files {java_files}"
                 .format(path=path, types=types, java_files=java_files))
    return set(java_files)

  def calculate_java_genfiles(self, package, types):
    basepath = package.replace(".", "/")
    return [os.path.join(basepath, "{0}.java".format(t)) for t in types]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: d0717e9c8f16ad5ddfae5ceee4389d874a463263
Time: 2015-05-29
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/backend/codegen/tasks/wire_gen.py
Class Name: WireGen
Method Name: calculate_genfiles


Project Name: dmlc/dgl
Commit Name: c50b90cf7e9d5fd7c861ff3b8c162c8b640505ed
Time: 2018-07-12
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: update_by_edge


Project Name: jbms/beancount-import
Commit Name: bc19ed6b434f77e5758f4baf9cb23ed5d2b25a72
Time: 2020-08-07
Author: dumbpyx@gmail.com
File Name: beancount_import/source/generic_importer_source.py
Class Name: ImporterSource
Method Name: prepare