b6883a08a051bcb3e718bb5bd6bd2d2731f9c665,api/server.py,Server,run,#Server#,44
Before Change
allowed_args.remove("env")
allowed_args.remove("is_sync")
for key in list(kwargs):
if key not in allowed_args :
del kwargs[key]
self.env = sim.start(**kwargs)
elif method == m.STEP:
After Change
log.warning("Removing {key} from sim start args, not relevant to remote clients"
.format(key=key))
del kwargs[key]
if c.IS_CHALLENGE and key in challenge_blacklist:
log.warning("Removing {key} from sim start args, "
"blacklisted for challenges. Reason: {reason}."
.format(key=key, reason=challenge_blacklist[key]))
del kwargs[key]
self.env = sim.start(**kwargs)
elif method == m.STEP:
resp = self.env.step(args[0])
elif method == m.RESET:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: deepdrive/deepdrive
Commit Name: b6883a08a051bcb3e718bb5bd6bd2d2731f9c665
Time: 2019-03-27
Author: cquiter@gmail.com
File Name: api/server.py
Class Name: Server
Method Name: run
Project Name: jaakkopasanen/AutoEq
Commit Name: 5798262e2f9d254f37cbe762f89747b7049a8acc
Time: 2020-10-18
Author: jaakko.o.pasanen@gmail.com
File Name: measurements/crinacle/crinacle_crawler.py
Class Name: CrinacleCrawler
Method Name: get_urls
Project Name: facebook/FAI-PEP
Commit Name: 0dcbfb20434b3a4564a28ee5c3d06240fad98d7f
Time: 2018-07-26
Author: sf_wind@hotmail.com
File Name: benchmarking/platforms/android/android_platform.py
Class Name: AndroidPlatform
Method Name: runBenchmark