5e594ed883c095a8194b41d53bc099bbd39aa2a2,tests/test_basic.py,,test_basic,#,8
Before Change
def test_basic():
model = LinearModel(5, 4)
model.update({1: {(1, 1): 1, (3, 3): -5}, 2: {(2, 2): 4, (3, 3): 5}})
//scores = model([1, 2, 3])
After Change
def test_basic():
model = LinearModel()
model.update({1: {1: 1, 3: -5}, 2: {2: 4, 3: 5}}.items())
//scores = model([1, 2, 3])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: explosion/thinc
Commit Name: 5e594ed883c095a8194b41d53bc099bbd39aa2a2
Time: 2015-11-04
Author: honnibal@gmail.com
File Name: tests/test_basic.py
Class Name:
Method Name: test_basic
Project Name: explosion/thinc
Commit Name: 5e594ed883c095a8194b41d53bc099bbd39aa2a2
Time: 2015-11-04
Author: honnibal@gmail.com
File Name: tests/test_model.py
Class Name:
Method Name: test_dump_load
Project Name: explosion/thinc
Commit Name: 5e594ed883c095a8194b41d53bc099bbd39aa2a2
Time: 2015-11-04
Author: honnibal@gmail.com
File Name: tests/test_model.py
Class Name:
Method Name: model
Project Name: explosion/thinc
Commit Name: 5e594ed883c095a8194b41d53bc099bbd39aa2a2
Time: 2015-11-04
Author: honnibal@gmail.com
File Name: tests/test_model.py
Class Name:
Method Name: test_basic