203ed6d1fda8de579c2bf311e5890dca05c14985,cnvlib/target.py,,shorten_labels,#Any#,185

Before Change


        else:
            // End of the old gene -- emit coords + shared name(s)
            for coords in curr_gene_coords:
                out_row = emit(coords, curr_names)
                yield out_row
                longest_name_len = max(longest_name_len, len(out_row[-1]))

            // Start of a new gene

After Change


                longest_name_len = max(longest_name_len, len(out_name))

            // Start of a new gene
            curr_gene_count = 1
            curr_names = next_names
    // Final emission
    for _i in range(curr_gene_count):
        out_name = shortest_name(curr_names)
        yield out_name
        longest_name_len = max(longest_name_len, len(out_name))

    logging.info("Longest name length: %d", longest_name_len)


def filter_names(names, exclude=("mRNA",)):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: etal/cnvkit
Commit Name: 203ed6d1fda8de579c2bf311e5890dca05c14985
Time: 2016-12-10
Author: eric.talevich@gmail.com
File Name: cnvlib/target.py
Class Name:
Method Name: shorten_labels


Project Name: ilastik/ilastik
Commit Name: 33df51090d17cd2d79655f24ed8a6c426bce7d43
Time: 2013-04-23
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/dataSelection/dataLaneSummaryTableView.py
Class Name: DataLaneSummaryTableView
Method Name: selectionChanged


Project Name: biolab/orange3
Commit Name: b42197cc67ff455bfbd189a417433b8ff897ab7b
Time: 2017-02-09
Author: tankovesna@hotmail.com
File Name: Orange/widgets/visualize/tests/test_owheatmap.py
Class Name: TestOWHeatMap
Method Name: _test_helper