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).
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: theislab/scanpy
Commit Name: ffb068553a2044f33ad9395d6e45f2f2a7375587
Time: 2019-10-18
Author: flying-sheep@web.de
File Name: scanpy/tests/test_score_genes.py
Class Name:
Method Name: test_add_score