77f17fecb10459c3db9399f45b66bafa96187e2b,src/sos/controller.py,,close_socket,#Any#Any#Any#,32

Before Change


    if socket is None:
        return
    g_sockets.remove(socket.fd)
    if env.is_debugging("CONTROLLER"):
        env.log_to_file(
            "CONTROLLER",
            f"{os.getpid()} {desc}: closes socket with handler {socket.fd} ({len(g_sockets)} left)"

After Change


    if socket is None:
        return
    g_sockets.remove(socket.fd)
    if "CONTROLLER" in env.config["SOS_DEBUG"] or "ALL" in env.config["SOS_DEBUG"]:
        env.log_to_file(
            "CONTROLLER",
            f"{os.getpid()} {desc}: closes socket with handler {socket.fd} ({len(g_sockets)} left)"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 9

Non-data size: 8

Instances


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name:
Method Name: close_socket


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name: Controller
Method Name: handle_master_push_msg


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/executor_utils.py
Class Name:
Method Name: create_task


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name: Controller
Method Name: handle_tapping_logging_msg


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name:
Method Name: connect_controllers


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name:
Method Name: create_socket


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name: Controller
Method Name: run


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/section_analyzer.py
Class Name:
Method Name: analyze_section


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name:
Method Name: disconnect_controllers


Project Name: vatlab/SoS
Commit Name: 77f17fecb10459c3db9399f45b66bafa96187e2b
Time: 2019-04-26
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name:
Method Name: close_socket