c571dd999a311d18c2c1cbc3f16efc80066f23f8,tests/small-build/test_vectors.py,,test_standardize_row_labels,#,59

Before Change




def test_standardize_row_labels(frame=None):
    if not frame:
        frame = DATA + "/raw/vectors/glove12.840B.300d.txt.gz"
    vectors = load_any_embeddings(frame)

    vec1 = vectors.loc["island"]
    vec2 = vectors.loc["Island"]
    vec3 = vectors.loc["things"]

After Change




def test_standardize_row_labels():
    setup()
    vec1 = TEST_FRAME.loc["island"]
    vec2 = TEST_FRAME.loc["Island"]
    vec3 = TEST_FRAME.loc["thing"]
    standardized_vectors = standardize_row_labels(TEST_FRAME)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: commonsense/conceptnet5
Commit Name: c571dd999a311d18c2c1cbc3f16efc80066f23f8
Time: 2018-02-14
Author: joanna.teresa.duda@gmail.com
File Name: tests/small-build/test_vectors.py
Class Name:
Method Name: test_standardize_row_labels


Project Name: commonsense/conceptnet5
Commit Name: c571dd999a311d18c2c1cbc3f16efc80066f23f8
Time: 2018-02-14
Author: joanna.teresa.duda@gmail.com
File Name: tests/small-build/test_vectors.py
Class Name:
Method Name: test_shrink_and_sort


Project Name: commonsense/conceptnet5
Commit Name: c571dd999a311d18c2c1cbc3f16efc80066f23f8
Time: 2018-02-14
Author: joanna.teresa.duda@gmail.com
File Name: tests/small-build/test_vectors.py
Class Name:
Method Name: test_l1_normalize_columns