ec472ad8f8afb8b1c7cf55bb4ae19e295ac7f22e,flow/controllers/base_controller.py,BaseController,get_safe_action,#BaseController#Any#Any#,118

Before Change


        else:
            safe_velocity = self.safe_velocity(env)

            this_vel = env.vehicles[self.veh_id]["speed"]
            time_step = env.time_step

            if this_vel + action * time_step > safe_velocity:
                return (safe_velocity - this_vel)/time_step

After Change


        else:
            safe_velocity = self.safe_velocity(env)

            this_vel = env.vehicles.get_speed(self.veh_id)
            time_step = env.time_step

            if this_vel + action * time_step > safe_velocity:
                return (safe_velocity - this_vel)/time_step
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: flow-project/flow
Commit Name: ec472ad8f8afb8b1c7cf55bb4ae19e295ac7f22e
Time: 2017-11-02
Author: kanaadp@users.noreply.github.com
File Name: flow/controllers/base_controller.py
Class Name: BaseController
Method Name: get_safe_action


Project Name: flow-project/flow
Commit Name: 58fec6db49ba97f3676431e79ea5b21e64f2b40f
Time: 2017-10-23
Author: akreidieh@gmail.com
File Name: flow/controllers/base_controller.py
Class Name: BaseController
Method Name: get_safe_action


Project Name: flow-project/flow
Commit Name: 58fec6db49ba97f3676431e79ea5b21e64f2b40f
Time: 2017-10-23
Author: akreidieh@gmail.com
File Name: flow/controllers/base_controller.py
Class Name: BaseController
Method Name: get_safe_action_instantaneous


Project Name: flow-project/flow
Commit Name: debbc889ab56d42a341acdd278ee0a5d1dc0eb62
Time: 2018-02-19
Author: akreidieh@gmail.com
File Name: flow/controllers/base_lane_changing_controller.py
Class Name: BaseLaneChangingController
Method Name: get_safe_lane_change_action


Project Name: flow-project/flow
Commit Name: ec472ad8f8afb8b1c7cf55bb4ae19e295ac7f22e
Time: 2017-11-02
Author: kanaadp@users.noreply.github.com
File Name: flow/controllers/base_controller.py
Class Name: BaseController
Method Name: get_safe_action_instantaneous