b54e99fb4c6b3d513c4eecc11b27fadafef91a4a,gym_deepdrive/envs/deepdrive_gym_env.py,DeepDriveEnv,step,#DeepDriveEnv#Any#,294

Before Change


                                                                       dd_action.steering, dd_action.throttle,
                                                                       dd_action.brake, dd_action.handbrake)
            end = time.time()
            print("STEP TIME", str(end-start) + "ms")
        else:
            self.send_control(dd_action)
        obz = self.get_observation()

After Change


        self.prev_step_time = now

        if self.dashboard_pub is not None:
            start_dashboard_put = time.time()
            self.dashboard_pub.put(OrderedDict({"display_stats": list(self.display_stats.items()), "should_stop": False}))
            log.debug("dashboard put took %fs", time.time() - start_dashboard_put)

        if self.is_stuck(obz):  // TODO: derive this from collision, time elapsed, and distance as well
            done = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepdrive/deepdrive
Commit Name: b54e99fb4c6b3d513c4eecc11b27fadafef91a4a
Time: 2018-05-29
Author: cquiter@gmail.com
File Name: gym_deepdrive/envs/deepdrive_gym_env.py
Class Name: DeepDriveEnv
Method Name: step


Project Name: deepchem/deepchem
Commit Name: 045c79caa96b768de9ce363d8c380a5c98f6310d
Time: 2016-11-09
Author: zqwu@sherlock-ln02.stanford.edu
File Name: examples/benchmark.py
Class Name:
Method Name: benchmark_loading_datasets


Project Name: dmlc/dgl
Commit Name: 0fb615b9a68f6eb642598b360c007a64d022027a
Time: 2020-07-22
Author: taxuexh@sjtu.edu.cn
File Name: examples/pytorch/deepwalk/deepwalk.py
Class Name: DeepwalkTrainer
Method Name: fast_train