f37830bbe2c85f613fded1721976dbe94f6bed0b,gym/utils/play.py,,play,#,24

Before Change


    relevant_keys = set(sum(map(list, keys_to_action.keys()),[]))

    if transpose:
        video_size = env.observation_space.shape[1], env.observation_space.shape[0]
    else:
        video_size = env.observation_space.shape[0], env.observation_space.shape[1]

After Change


        If None, default key_to_action mapping for that env is used, if provided.
    
    env.reset()
    rendered=env.render( mode="rgb_array")

    if keys_to_action is None:
        if hasattr(env, "get_keys_to_action"):
            keys_to_action = env.get_keys_to_action()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: openai/gym
Commit Name: f37830bbe2c85f613fded1721976dbe94f6bed0b
Time: 2019-03-22
Author: martin.delagorce@gmail.com
File Name: gym/utils/play.py
Class Name:
Method Name: play


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 2b4c7bd4c85d1ce4c9eab95b422962131b2bc7bb
Time: 2018-03-13
Author: max.lapan@gmail.com
File Name: ch18/telegram-bot.py
Class Name: PlayerBot
Method Name: text


Project Name: erikbern/ann-benchmarks
Commit Name: c6418175813007be62406bfb35b42441202b017a
Time: 2018-03-03
Author: maau@itu.dk
File Name: create_website.py
Class Name:
Method Name: build_detail_site