cd50ec1c075fed30b19771879b818ba14ecfb816,test/test_saving.py,TestSaving,test_modules,#TestSaving#,33

Before Change


        self.start_tests(name="modules")

        // Remove directory if exists
        if os.path.exists(path=self.__class__.directory):
            for filename in os.listdir(path=self.__class__.directory):
                os.remove(path=os.path.join(self.__class__.directory, filename))
            os.rmdir(path=self.__class__.directory)

After Change


            states, terminal, reward = environment.execute(actions=actions)
            agent.observe(terminal=terminal, reward=reward)

            files = set(os.listdir(path=directory))
            self.assertTrue(len(files), 2 * len(agent.model.this_submodules))
            for module in agent.model.this_submodules:
                self.assertTrue(module.name + ".index" in files)
                self.assertTrue(module.name + ".data-00000-of-00001" in files)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: reinforceio/tensorforce
Commit Name: cd50ec1c075fed30b19771879b818ba14ecfb816
Time: 2020-07-05
Author: alexkuhnle@t-online.de
File Name: test/test_saving.py
Class Name: TestSaving
Method Name: test_modules


Project Name: HazyResearch/fonduer
Commit Name: 09363dbb57c260cbcc400baaee8e76063153b4b5
Time: 2018-02-10
Author: senwu@cs.stanford.edu
File Name: fonduer/snorkel/parser/rule_parser.py
Class Name: SpacyTokenizer
Method Name: model_installed


Project Name: HazyResearch/fonduer
Commit Name: 09363dbb57c260cbcc400baaee8e76063153b4b5
Time: 2018-02-10
Author: senwu@cs.stanford.edu
File Name: fonduer/snorkel/parser/spacy_parser.py
Class Name: Spacy
Method Name: model_installed