3f5718f8e40fa7207c7b547f3875f0076813e2b4,flow/utils/aimsun/run.py,,threaded_client,#Any#,64

Before Change



                    // wait for a reply
                    data = None
                    while data is None:
                        data = conn.recv(2048)

                    // send the next vehicle
                    conn.send(str(entered_vehicles[0]))
                    del entered_vehicles[0]

                // send a negative response

After Change


                if len(exited_vehicles) == 0:
                    output = "-1"
                else:
                    output = ":".join([str(e) for e in exited_vehicles])
                send_message(conn, in_format="str", values=(output,))
                exited_vehicles = []

            elif data == ac.VEH_GET_TYPE_ID:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: flow-project/flow
Commit Name: 3f5718f8e40fa7207c7b547f3875f0076813e2b4
Time: 2019-01-09
Author: akreidieh@gmail.com
File Name: flow/utils/aimsun/run.py
Class Name:
Method Name: threaded_client


Project Name: sloria/TextBlob
Commit Name: 7ef05274835b2272b1b431d3633d0559db684197
Time: 2015-06-08
Author: jschnurr@gmail.com
File Name: textblob/translate.py
Class Name: Translator
Method Name: _get_translation_from_json5


Project Name: quiltdata/quilt
Commit Name: 9087a7f9301e17510bc903b9beb532bc7ae641fd
Time: 2020-07-16
Author: dima@quiltdata.io
File Name: lambdas/access_counts/index.py
Class Name:
Method Name: handler