dfa816d0aae549ee00c1b66e46c121954340e7ab,dipy/data/tests/test_fetcher.py,,test_make_fetcher,#,28

Before Change


                         stored_md5)

        // stop local HTTP Server
        server.shutdown()
        // change to original working directory
        os.chdir(current_dir)

After Change


                                               ["sphere_name"],
                                               md5_list=[stored_md5])

        try:
            sphere_fetcher()
        except Exception as e:
            print(e)
        finally:
            // stop local HTTP Server
            server.shutdown()

        assert op.isfile(op.join(tmpdir, "sphere_name"))
        npt.assert_equal(fetcher._get_file_md5(op.join(tmpdir, "sphere_name")),
                         stored_md5)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: dfa816d0aae549ee00c1b66e46c121954340e7ab
Time: 2018-08-09
Author: skab12@gmail.com
File Name: dipy/data/tests/test_fetcher.py
Class Name:
Method Name: test_make_fetcher


Project Name: facebookresearch/ParlAI
Commit Name: 780e9097e3394c0b1b6b3c7f2864fa4250d8fa96
Time: 2017-09-05
Author: Jackurbs@gmail.com
File Name: parlai/mturk/tasks/model_evaluator/run.py
Class Name:
Method Name: main


Project Name: dPys/PyNets
Commit Name: 0c89a170c4f207db369cab31894e22945e615980
Time: 2020-07-24
Author: dpisner@utexas.edu
File Name: pynets/dmri/track.py
Class Name:
Method Name: track_ensemble


Project Name: facebookresearch/ParlAI
Commit Name: 780e9097e3394c0b1b6b3c7f2864fa4250d8fa96
Time: 2017-09-05
Author: Jackurbs@gmail.com
File Name: parlai/mturk/tasks/multi_agent_dialog/run.py
Class Name:
Method Name: main