ef00c480c4122f107f7d1ad481991d38b8da4f20,test/unittest_agent.py,UnittestAgent,test_pretrain,#UnittestAgent#,64

Before Change


        agent.initialize()

        states_batch = list()
        actions_batch = list()
        terminal_batch = list()
        reward_batch = list()

        states = environment.reset()

After Change


        environment.close()

        for filename in os.listdir(path=self.__class__.directory):
            os.remove(path=os.path.join(self.__class__.directory, filename))
            assert filename.startswith("trace-")
        os.rmdir(path=self.__class__.directory)

        self.finished_test()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: reinforceio/tensorforce
Commit Name: ef00c480c4122f107f7d1ad481991d38b8da4f20
Time: 2019-08-30
Author: alexkuhnle@t-online.de
File Name: test/unittest_agent.py
Class Name: UnittestAgent
Method Name: test_pretrain


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 3ad234f30b3958752df3060b3e8ab751bffeec6c
Time: 2018-11-19
Author: contact@againstthecurrent.ch
File Name: category_encoders/utils.py
Class Name:
Method Name: get_generated_cols


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 3ad234f30b3958752df3060b3e8ab751bffeec6c
Time: 2018-11-19
Author: contact@againstthecurrent.ch
File Name: category_encoders/hashing.py
Class Name: HashingEncoder
Method Name: fit


Project Name: analysiscenter/batchflow
Commit Name: 543e37e278a10165f2a9d7350945a579daa0225e
Time: 2019-06-20
Author: steve.sinobi@ya.ru
File Name: batchflow/tests/segmentation_metrics_test_brief.py
Class Name:
Method Name: