0b03c97748a27d26f5284ce1c88ed1b41316ede6,src/python/pants/backend/jvm/zinc/zinc_analysis_parser.py,ZincAnalysisParser,parse_deps,#ZincAnalysisParser#Any#Any#,51

Before Change


    def fqcn_to_path(fqcn):
      return os.path.join(classes_dir, fqcn.replace(b".", os.sep) + b".class")
    for src, fqcns in ext_deps.items():
      transformed_ext_deps[src] = [fqcn_to_path(fqcn) for fqcn in fqcns]

    ret = defaultdict(list)
    for d in [filtered_bin_deps, src_deps, transformed_ext_deps]:
      for src, deps in d.items():

After Change


    bin_deps = self._find_repeated_at_header(infile, b"library dependencies")
    // Class dependencies: classname -> classname.
    ext_deps = []
    for ext_dep_header in (b"member reference internal dependencies",
                           b"member reference external dependencies"):
      ext_deps.append(self._find_repeated_at_header(infile, ext_dep_header))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 0b03c97748a27d26f5284ce1c88ed1b41316ede6
Time: 2016-11-17
Author: wangpeiyu@gmail.com
File Name: src/python/pants/backend/jvm/zinc/zinc_analysis_parser.py
Class Name: ZincAnalysisParser
Method Name: parse_deps


Project Name: pantsbuild/pants
Commit Name: 791be481c4a0102042dc0a502b08ba5cc6a85987
Time: 2020-06-29
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/inject_init_test.py
Class Name: InjectInitTest
Method Name: assert_injected


Project Name: dask/distributed
Commit Name: 383ea0326ae103b5d5e0b62ed9c3cb18510c5b9e
Time: 2021-02-17
Author: jakirkham@gmail.com
File Name: distributed/comm/tcp.py
Class Name: TCP
Method Name: write