bf9599809214cbc3082eb7f39c0ad3155822a2c5,src/python/twitter/pants/tasks/jvm_compile/scala/zinc_analysis.py,ZincAnalysis,split,#ZincAnalysis#Any#Any#,172

Before Change


    external_api_splits = []
    for naive_internal_apis, external_apis, split in \
      zip(naive_internal_api_splits, naive_external_api_splits, splits):
      internal_apis = defaultdict(list)
      for k, vs in naive_internal_apis.iteritems():
        if k in split:
          internal_apis[k] = vs  // Remains internal.
        else:
          external_apis[representatives[k]] = vs  // Externalized.
      internal_api_splits.append(internal_apis)

After Change



    // The splits, but expressed via class representatives of the sources (see above).
    representative_splits = [filter(None, [representatives.get(s) for s in srcs]) for srcs in splits]
    representative_to_internal_api = {}
    for src, rep in representatives.items():
      representative_to_internal_api[rep] = self.apis.internal.get(src)

    // Note that the keys in self.apis.external are classes, not sources.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: bf9599809214cbc3082eb7f39c0ad3155822a2c5
Time: 2014-02-12
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_compile/scala/zinc_analysis.py
Class Name: ZincAnalysis
Method Name: split


Project Name: IndicoDataSolutions/Enso
Commit Name: 2d10722ec1a5eed1aa4ce0b1044f91b531009a32
Time: 2017-04-23
Author: slater.r.victoroff@gmail.com
File Name: experiment.py
Class Name: Experimentation
Method Name: run_experiments


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 2c044b3523b211fb45d36dc5ffb8784dbc144f30
Time: 2017-08-08
Author: jessicatemporal@gmail.com
File Name: rosie/chamber_of_deputies/adapter.py
Class Name: Adapter
Method Name: rename_categories