62cea7fcfcc9e20b784e08bddce5dc69b9578ef4,tensorforce/tests/unittest_base.py,UnittestBase,prepare,#UnittestBase#Any#Any#Any#Any#,36

Before Change



        environment = UnittestEnvironment(states=states, actions=actions)

        if self.__class__.config is None:
            config = dict()
        config["states"] = environment.states
        config["actions"] = environment.actions
        if not self.__class__.ignore_network and network is not None:
            config["network"] = network

After Change



        if self.__class__.config is not None:
            for key, arg in self.__class__.config.items():
                if key not in kwargs:
                    kwargs[key] = arg
        kwargs["states"] = environment.states
        kwargs["actions"] = environment.actions
        if not self.__class__.ignore_network and network is not None:
            kwargs["network"] = network
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: reinforceio/tensorforce
Commit Name: 62cea7fcfcc9e20b784e08bddce5dc69b9578ef4
Time: 2019-01-05
Author: alexkuhnle@t-online.de
File Name: tensorforce/tests/unittest_base.py
Class Name: UnittestBase
Method Name: prepare


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3792a7384c9113515c70f0fac455ab938db1f2c0
Time: 2015-01-26
Author: connormccoy@google.com
File Name: perfkitbenchmarker/publisher.py
Class Name: SampleCollector
Method Name: AddSamples


Project Name: snipsco/snips-nlu
Commit Name: 5cb31b24772202d34175b7c7f42c6b1792dd6dd4
Time: 2017-03-31
Author: adrien.ball@snips.net
File Name: snips_nlu/preprocessing.py
Class Name:
Method Name: language_stems