f75251dc1e633c2b3ac0db1ab8ee8707e891c931,conceptnet5/builders/combine_assertions.py,,make_assertion,#Any#,41

Before Change


    for info in info_dicts:
        if surface_text is None and "surfaceText" in info:
            surface_text = info["surfaceText"]
        sources.extend(info["sources"])

    weight = weight_scale(unscaled_weight)
    if Licenses.cc_sharealike in licenses:
        license = Licenses.cc_sharealike

After Change


    dataset = info_dicts[0]["dataset"]
    surface_text = None
    sources = []
    seen_sources = set()
    for info in info_dicts:
        if surface_text is None and "surfaceText" in info:
            surface_text = info["surfaceText"]
        for subsource in info["sources"]:
            conjunction = conjunction_uri(sorted(subsource.values()))
            if conjunction not in seen_sources:
                sources.append(subsource)
                seen_sources.add(conjunction)

    weight = weight_scale(unscaled_weight)
    if Licenses.cc_sharealike in licenses:
        license = Licenses.cc_sharealike
    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: commonsense/conceptnet5
Commit Name: f75251dc1e633c2b3ac0db1ab8ee8707e891c931
Time: 2016-06-09
Author: rob@luminoso.com
File Name: conceptnet5/builders/combine_assertions.py
Class Name:
Method Name: make_assertion


Project Name: tensorflow/benchmarks
Commit Name: 4632d4f82c8d9dec22f619170d61c574e0e28f51
Time: 2018-08-29
Author: laigd@google.com
File Name: scripts/tf_cnn_benchmarks/benchmark_cnn.py
Class Name: BenchmarkCNN
Method Name: _build_model_single_session


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