daf661c3edd949f8ac2cd70e4a725d9a055cc0c3,skbio/tree/_tree.py,TreeNode,shear,#TreeNode#Any#,411
Before Change
while len(list(tcopy.tips())) != len(ids):
for n in list(tcopy.tips()):
if n.name not in ids:
n.parent.remove(n)
tcopy.prune()
return tcopy
After Change
marked = set()
for tip in tcopy.tips():
if tip.name in ids:
marked.add(tip)
for anc in tip.ancestors():
if anc in marked:
break
else:
marked.add(anc)
for node in list(tcopy.traverse()):
if node not in marked:
node.parent.remove(node)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: biocore/scikit-bio
Commit Name: daf661c3edd949f8ac2cd70e4a725d9a055cc0c3
Time: 2016-06-27
Author: mcdonadt@colorado.edu
File Name: skbio/tree/_tree.py
Class Name: TreeNode
Method Name: shear
Project Name: biocore/scikit-bio
Commit Name: daf661c3edd949f8ac2cd70e4a725d9a055cc0c3
Time: 2016-06-27
Author: mcdonadt@colorado.edu
File Name: skbio/tree/_tree.py
Class Name: TreeNode
Method Name: shear
Project Name: pgmpy/pgmpy
Commit Name: d9213be6d79011721e43444b03d27fe6aaa65071
Time: 2014-01-29
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: active_trail_nodes
Project Name: ysig/GraKeL
Commit Name: 8f00ab4ca319da50c20d5ffb3be1b4d64a9fa4c8
Time: 2017-12-06
Author: y.siglidis@gmail.com
File Name: grakel/kernels/odd_sth.py
Class Name:
Method Name: big_dag_append
Project Name: CyberReboot/poseidon
Commit Name: ca9abd88692e249e5897ed5ff25356887002895c
Time: 2016-06-29
Author: tlanham@iqt.org
File Name: plugins/heuristics/dns_verify/dns_verify.py
Class Name:
Method Name: verify_dns_record