b2f4c901679bd175a53ab35ffa9de1514584a03f,environment/registration.py,,make,#Any#,37

Before Change



    def to_dict():
        return {"id": env_id}
    if "to_dict" not in dir(env):
        env.to_dict = to_dict
    if "atari.atari_env" in env.unwrapped.__module__:
        to_dict = env.to_dict
        env = AtariRescale42x42(env)
        env.to_dict = to_dict

After Change


    spec = gym.envs.registry.spec(env_id)
    env = spec.make(**kwargs)

    if not isinstance(env, Environment):
        env = Environment(env)
    if "atari.atari_env" in env.unwrapped.__module__:
        env = AtariRescale42x42(env)
    if "wrapper_entry_points" in spec.tags:
        for wrapper_entry_point in spec.tags["wrapper_entry_points"]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: arnomoonens/yarll
Commit Name: b2f4c901679bd175a53ab35ffa9de1514584a03f
Time: 2018-03-15
Author: arno.moonens@gmail.com
File Name: environment/registration.py
Class Name:
Method Name: make


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 6a968dc9a3faad2037bfd1a8f12b038a368eee4d
Time: 2018-02-20
Author: christian.brenninkmeijer@manchester.ac.uk
File Name: spynnaker/pyNN/models/neuron/abstract_population_vertex.py
Class Name: AbstractPopulationVertex
Method Name: initial_values


Project Name: scikit-learn-contrib/DESlib
Commit Name: 0e17f47e9a4920e276bb61b60d6de16264bc6bcf
Time: 2017-12-29
Author: rafaelmenelau@gmail.com
File Name: pythonds/static/single_best.py
Class Name: SingleBest
Method Name: predict_proba