e57575db9c52641be367b8f6b764c7cd0a241fe2,tests/utils/tensorflow/test_numpy.py,,test_values_to_numpy,#Any#Any#,24

Before Change


        type(value) for value in sorted(actual_result.values())
    ]
    assert actual_result_value_types == expected_result_value_types
    assert json.dumps(actual_result, sort_keys=True, cls=NumpyEncoder) == json.dumps(
        expected_result, sort_keys=True, cls=NumpyEncoder
    )

After Change


        type(value) for value in sorted(actual_result.values())
    ]
    assert actual_result_value_types == expected_result_value_types
    for key, value in actual_result.items():
        if isinstance(expected_result.get(key), np.ndarray):
            np.testing.assert_equal(value, expected_result.get(key))
        else:
            assert value == expected_result.get(key)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: RasaHQ/rasa
Commit Name: e57575db9c52641be367b8f6b764c7cd0a241fe2
Time: 2021-01-26
Author: j.mosig@rasa.com
File Name: tests/utils/tensorflow/test_numpy.py
Class Name:
Method Name: test_values_to_numpy


Project Name: mlflow/mlflow
Commit Name: 49512597fbc4976e7a180a0a80334969e56b644f
Time: 2019-01-18
Author: mani@databricks.com
File Name: tests/projects/test_docker_projects.py
Class Name:
Method Name: test_docker_project_execution


Project Name: Rostlab/nalaf
Commit Name: 713b15039549f25a96158c7e9ddec0516e04bfe1
Time: 2017-02-12
Author: i@juanmi.rocks
File Name: nalaf/features/relations/new/dependency.py
Class Name: DependencyFeatureGenerator
Method Name: generate