4f3ec507fb0c87f0fa25f3dee5d7006e0c3dfecd,third_party/nucleus/util/variant_utils.py,,is_variant_call,#Any#Any#Any#Any#,485
Before Change
else:
if call_indices is None:
call_indices = range(len(variant.calls))
return any(
any(g > 0
for g in variant.calls[i].genotype) or
(no_calls_are_variant and
not variantcall_utils.has_genotypes(variant.calls[i]))
for i in call_indices)
def has_calls(variant):
Does variant have any genotype calls?
After Change
for g in variant.calls[i].genotype:
if g > 0 or (no_calls_are_variant and g < 0):
return True
return False
def has_calls(variant):
Does variant have any genotype calls?
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: google/deepvariant
Commit Name: 4f3ec507fb0c87f0fa25f3dee5d7006e0c3dfecd
Time: 2019-10-03
Author: marianattestad@google.com
File Name: third_party/nucleus/util/variant_utils.py
Class Name:
Method Name: is_variant_call
Project Name: keras-team/keras
Commit Name: ff62eb251b04b8301e71aee970bdb157f2649fa9
Time: 2016-12-14
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Container
Method Name: uses_learning_phase
Project Name: OpenNMT/OpenNMT-py
Commit Name: 93930abf795db0300aebab280154acaf0f6162ae
Time: 2019-01-25
Author: dylan.flaute@gmail.com
File Name: onmt/inputters/inputter.py
Class Name:
Method Name: old_style_vocab