040cd3e3f2addbc75aa435283b6ea425763861cb,grakel/kernels/odd_sth.py,,dag,#Any#Any#Any#,319
Before Change
q = [(v, 0)]
vertices = dict()
edges = dict()
vertices[v] = 0
while len(q) > 0:
u, level = q.pop(0)
if level == h:
break
if u not in edges:
edges[u] = list()
for n in g.neighbors(u, purpose="any"):
if n not in vertices:
edges[u].append(n)
q.append((n, level+1))
After Change
q = [(v, 0)]
vertices = dict()
edges = defaultdict(list)
vertices[v] = 0
while len(q) > 0:
u, level = q.pop(0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: ysig/GraKeL
Commit Name: 040cd3e3f2addbc75aa435283b6ea425763861cb
Time: 2018-03-27
Author: y.siglidis@gmail.com
File Name: grakel/kernels/odd_sth.py
Class Name:
Method Name: dag
Project Name: kmike/pymorphy2
Commit Name: c4537a1a3f223b5129862ae41f1fa955fc6acff9
Time: 2012-11-23
Author: kmike84@gmail.com
File Name: pymorphy2/tagset.py
Class Name: OpencorporaTag
Method Name: _init_restrictions
Project Name: googledatalab/pydatalab
Commit Name: 7a5f3c1751bc31f0bd5406bab04845461dd8c88a
Time: 2017-08-08
Author: qimingj@users.noreply.github.com
File Name: google/datalab/ml/_summary.py
Class Name: Summary
Method Name: get_events