da7009655b63c5d96be0039af421ab56de379ef1,test/test_features.py,TestFeatures,test_pretrain,#TestFeatures#,83

Before Change


            agent, environment = self.prepare(recorder=dict(directory=directory))

            for _ in range(3):
                states = environment.reset()
                terminal = False
                while not terminal:
                    actions = agent.act(states=states)
                    states, terminal, reward = environment.execute(actions=actions)

After Change


            runner.close()

            files = os.listdir(path=directory)
            self.assertEqual(len(files), 10)
            self.assertTrue(
                all(file.startswith("trace-") and file.endswith(".npz") for file in files)
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: reinforceio/tensorforce
Commit Name: da7009655b63c5d96be0039af421ab56de379ef1
Time: 2020-07-18
Author: alexkuhnle@t-online.de
File Name: test/test_features.py
Class Name: TestFeatures
Method Name: test_pretrain


Project Name: openai/baselines
Commit Name: 1ea5ec647c724eeed4d2a05f0092cfb2fd0ff81f
Time: 2018-08-27
Author: christopherhesse@users.noreply.github.com
File Name: baselines/common/vec_env/test_vec_env.py
Class Name:
Method Name: test_vec_env


Project Name: facebookresearch/Horizon
Commit Name: 09e72f2042e26725632082d93df70cbc86071d38
Time: 2020-05-13
Author: kittipat@fb.com
File Name: reagent/gym/tests/preprocessors/test_replay_buffer_inserters.py
Class Name: TestBasicReplayBufferInserter
Method Name: test_cartpole


Project Name: chainer/chainerrl
Commit Name: a4f6690b9c4290a7f47761100523ff2ef5335964
Time: 2019-04-28
Author: muupan@gmail.com
File Name: tests/agents_tests/test_trpo.py
Class Name: TestTRPO
Method Name: _test_abc


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 9e781f9da44c12822aaa5066d058e33d2700555f
Time: 2017-11-16
Author: carloderamo@gmail.com
File Name: mushroom/core/core.py
Class Name: Core
Method Name: learn