e84bd0ffe1f98efca057dde34244a82fa6486090,gym/envs/algorithmic/algorithmic_env.py,AlgorithmicEnv,__init__,#AlgorithmicEnv#Any#Any#Any#,17

Before Change


        self.chars = chars
        self.inp_dim = inp_dim
        AlgorithmicEnv.current_length = 2
        tape_control = []

        self.action_space = Tuple(([Discrete(2 * self.inp_dim), Discrete(2), Discrete(self.base)]))
        self.observation_space = Discrete(self.base + 1)

After Change


        // we got 8, we"d append -2
        AlgorithmicEnv.reward_shortfalls = []
        if chars:
            self.charmap = [chr(ord("A")+i) for i in range(base)]
        else:
            self.charmap = [str(i) for i in range(base)]
        self.charmap.append(" ")
        // TODO: Not clear why this is a class variable rather than instance. 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: openai/gym
Commit Name: e84bd0ffe1f98efca057dde34244a82fa6486090
Time: 2016-10-21
Author: colin.morris2@gmail.com
File Name: gym/envs/algorithmic/algorithmic_env.py
Class Name: AlgorithmicEnv
Method Name: __init__


Project Name: probcomp/bayeslite
Commit Name: 681058fffa9c54e859fa22c500a882ba5eff263d
Time: 2015-03-25
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_guess.py
Class Name:
Method Name: test_guess_stattypes


Project Name: merenlab/anvio
Commit Name: 83440abb477f24ea450aa5be06758dda2af50511
Time: 2020-04-01
Author: kiefl.evan@gmail.com
File Name: anvio/bamops.py
Class Name: Read
Method Name: __repr__