07c33ef32f04297b940b306b1b587bdf1c1b0f6c,flow/envs/base_env.py,Env,_reset,#Env#,443

Before Change


            self.initial_state = deepcopy(initial_state)

        // clear all vehicles from the network and the vehicles class
        for veh_id in self.traci_connection.vehicle.getIDList() + \
                self.traci_connection.simulation.getStartingTeleportIDList():
            try:
                self.traci_connection.vehicle.remove(veh_id)
                self.vehicles.remove(veh_id)

After Change



        // // clear all vehicles from the network and the vehicles class

        for veh_id in self.traci_connection.vehicle.getIDList():
            try:
                self.traci_connection.vehicle.remove(veh_id)
                self.traci_connection.vehicle.unsubscribe(veh_id)  // TODO(ak): add to master
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: flow-project/flow
Commit Name: 07c33ef32f04297b940b306b1b587bdf1c1b0f6c
Time: 2018-03-14
Author: vinitsky.eugene@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: _reset


Project Name: flow-project/flow
Commit Name: 7d0fa6b557c7e69b9281649729ac3b7c634436df
Time: 2018-03-02
Author: vinitsky.eugene@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: _reset


Project Name: flow-project/flow
Commit Name: 5d71c9e0b063e51810d3c8771cbc4f9b89467c94
Time: 2018-03-02
Author: vinitsky.eugene@gmail.com
File Name: flow/envs/base_env.py
Class Name: Env
Method Name: _reset