f57c6162ea1dd0d9958d647a67e717f1de9caace,petastorm/tests/test_end_to_end.py,,test_single_column_predicate,#Any#Any#,302

Before Change


        // Read a bunch of entries from the dataset and compare the data to reference
        for row in reader:
            actual = dict(row._asdict())
            expected = next(d for d in synthetic_dataset.data if d["id"] == actual["id"])
            np.testing.assert_equal(expected["id"], actual["id"])


@pytest.mark.parametrize("reader_factory", MINIMAL_READER_FLAVOR_FACTORIES)

After Change


    Test quering a single column with a predicate on the same column 
    with reader_factory(synthetic_dataset.url, schema_fields=[TestSchema.id], predicate=EqualPredicate({"id": 1})) \
            as reader:
        all_rows = list(reader)
        assert 1 == len(all_rows)
        assert 1 == all_rows[0].id

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: uber/petastorm
Commit Name: f57c6162ea1dd0d9958d647a67e717f1de9caace
Time: 2018-12-09
Author: yevgeni@uber.com
File Name: petastorm/tests/test_end_to_end.py
Class Name:
Method Name: test_single_column_predicate


Project Name: Qiskit/qiskit-aqua
Commit Name: 2623e2cc3a76b7e7c7c4ea95f93077c6270cd05c
Time: 2019-02-15
Author: shaohan.hu@ibm.com
File Name: test/test_simon.py
Class Name: TestSimon
Method Name: test_simon


Project Name: beancount/smart_importer
Commit Name: 40a7ae25dd848dd686d126e7e6d7a5d51124003b
Time: 2018-05-09
Author: patrick@ch.tario.org
File Name: smart_importer/predict_postings.py
Class Name: PredictPostings
Method Name: enhance_transactions


Project Name: beancount/smart_importer
Commit Name: 40a7ae25dd848dd686d126e7e6d7a5d51124003b
Time: 2018-05-09
Author: patrick@ch.tario.org
File Name: smart_importer/predict_payees.py
Class Name: PredictPayees
Method Name: enhance_transactions