e44da6a354fca97f4d5f8a12ae55d9771b22dfd4,cnvlib/importers.py,,unpipe_name,#Any#,79
Before Change
gene_names.remove("CGH")
else:
logging.warn("*WARNING* Ambiguous gene name: %s", name)
return gene_names.pop()
// __________________________________________________________________________
// import-seg
After Change
if len(gene_names) == 1:
return name
else:
cleaned_names = gene_names.difference(params.IGNORE_GENE_NAMES)
if cleaned_names:
gene_names = cleaned_names
new_name = sorted(gene_names, key=len, reverse=True)[0]
if len(gene_names) > 1:
logging.warn("*WARNING* Ambiguous gene name %r; using %r",
name, new_name)
return new_name
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: etal/cnvkit
Commit Name: e44da6a354fca97f4d5f8a12ae55d9771b22dfd4
Time: 2016-01-13
Author: eric.talevich@gmail.com
File Name: cnvlib/importers.py
Class Name:
Method Name: unpipe_name
Project Name: pantsbuild/pants
Commit Name: a86639e1cb9c9da5bf92810a71232ae0b0ac5845
Time: 2019-02-22
Author: codealchemy@users.noreply.github.com
File Name: src/python/pants/task/task.py
Class Name: TaskBase
Method Name: get_targets
Project Name: studioml/studio
Commit Name: 9024ae0b0ccecdb9fed054a0423dabb743839dc4
Time: 2017-06-29
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name: FirebaseProvider
Method Name: get_project_experiments
Project Name: HazyResearch/fonduer
Commit Name: b9dc15ecef0393a55a953acff3c1d0278b19d9f5
Time: 2018-09-01
Author: lwhsiao@stanford.edu
File Name: src/fonduer/utils/utils_udf.py
Class Name:
Method Name: add_keys