3d843a7d6e8193091781426b47dd43542f247e5c,thinc/neural/tests/integration/WindowEncode/test_predict.py,,vectors,#Any#Any#,20
Before Change
@pytest.fixture
def vectors(ids, vector_length):
max_id = max(max(seq) for seq in ids)
vecs = numpy.zeros((max_id+1, 2))
for i in range(max_id+1):
vecs[i] += i
return vecs
After Change
@pytest.fixture
def vectors(ids, vector_length):
ids = list(toolz.concat(ids))
vecs = numpy.zeros((len(ids), 2))
for i, id_ in enumerate(ids):
vecs[i] += i
return vecs
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 7
Instances Project Name: explosion/thinc
Commit Name: 3d843a7d6e8193091781426b47dd43542f247e5c
Time: 2017-01-07
Author: honnibal+gh@gmail.com
File Name: thinc/neural/tests/integration/WindowEncode/test_predict.py
Class Name:
Method Name: vectors
Project Name: nipy/dipy
Commit Name: 86a9c8708beb38293d30bafdcdf2bdd5fc76edd6
Time: 2017-06-26
Author: garyfallidis@gmail.com
File Name: doc/examples/tracking_quick_start.py
Class Name:
Method Name:
Project Name: oddt/oddt
Commit Name: e456cc88392f8cc0587b8d79c08678dab0b36e44
Time: 2017-11-23
Author: maciek@wojcikowski.pl
File Name: oddt/toolkits/extras/rdkit.py
Class Name:
Method Name: MolToPDBQTBlock
Project Name: has2k1/plotnine
Commit Name: 51696521c68b6a1b9af2e05eee4df944981daf5a
Time: 2014-03-30
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom.py
Class Name: geom
Method Name: plot_layer
Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: eb13c2ea02e0e06c06b288e3590ce04cc014ba04
Time: 2019-03-22
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/topicmod/tm_gensim.py
Class Name: MultiprocEvaluationWorkerGensim
Method Name: fit_model