e84bd0ffe1f98efca057dde34244a82fa6486090,gym/envs/algorithmic/algorithmic_env.py,AlgorithmicEnv,_get_str_obs,#AlgorithmicEnv#Any#,49

Before Change



    def _get_str_obs(self, pos=None):
        ret = self._get_obs(pos)
        if ret == self.base:
            return " "
        else:
            if self.chars:
                return chr(ret + ord("A"))
            return str(ret)

    def _get_str_target(self, pos=None):
        if pos not in self.target:
            return " "
        else:

After Change



    def _get_str_obs(self, pos=None):
        ret = self._get_obs(pos)
        return self.charmap[ret]

    def _get_str_target(self, pos):
        Return the ith character of the target string (or " " if index
        out of bounds).
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: _get_str_obs


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: _get_str_target


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 155686c863a95139f8683b77d9d030a8d3654441
Time: 2014-12-03
Author: ehankland@google.com
File Name: perfkitbenchmarker/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: GetLocalDrives