bebaba130ab074963772235c9b775ad1a7654f6a,tgen/features.py,,presence,#Any#Any#Any#,132

Before Change


    @rtype: dict
    @return: dictionary with keys for values of the attribute and values equal to 1
    
    ret = defaultdict(float)
    for idx, node in enumerate(tree.nodes):
        if attrib == "right":
            val = right_val(tree, idx)
            if val is not None:

After Change


    @return: dictionary with keys for values of the attribute and values equal to 1
    
    ret = {}
    for idx in xrange(len(tree)):
        ret[attribs_val(tree, idx, attribs)] = 1
    return ret


def dependency(tree, context, attribs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: UFAL-DSG/tgen
Commit Name: bebaba130ab074963772235c9b775ad1a7654f6a
Time: 2014-08-26
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/features.py
Class Name:
Method Name: presence


Project Name: 10XGenomics/cellranger
Commit Name: 5498c0b832416ab279cade7b71c43c28c397ad8c
Time: 2019-02-20
Author: paul.ryvkin@10xgenomics.com
File Name: mro/stages/counter/report_molecules/__init__.py
Class Name:
Method Name: main


Project Name: ray-project/ray
Commit Name: 732197e23a937b7b6d196936519c16ec6317ea9f
Time: 2021-03-08
Author: sven@anyscale.io
File Name: rllib/execution/train_ops.py
Class Name: TrainTFMultiGPU
Method Name: __call__