9ad1d2da68aa4acf817562502340bf319276b283,parlai/mturk/core/dev/socket_manager.py,SocketManager,close_channel,#SocketManager#Any#,627

Before Change


                        if connection_id == packet_conn_id:
                            del self.packet_map[packet_id]
                // Clean up other resources
                del self.queues[connection_id]

    def close_all_channels(self):
        Closes all channels by clearing the list of channels
        shared_utils.print_and_log(logging.DEBUG, "Closing all channels")

After Change


            "Closing channel {}".format(connection_id)
        )
        if connection_id in self.open_channels:
            self.open_channels.remove(connection_id)
            with self.packet_map_lock:
                packet_ids = list(self.packet_map.keys())
                for packet_id in packet_ids:
                    packet = self.packet_map[packet_id]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 9ad1d2da68aa4acf817562502340bf319276b283
Time: 2019-05-14
Author: jju@fb.com
File Name: parlai/mturk/core/dev/socket_manager.py
Class Name: SocketManager
Method Name: close_channel


Project Name: SheffieldML/GPy
Commit Name: a9b190782d82a78ae52346efc93689b4f3a244fd
Time: 2013-10-11
Author: ibinbei@gmail.com
File Name: GPy/core/index_operations.py
Class Name: ParameterIndexOperations
Method Name: remove


Project Name: biolab/orange3
Commit Name: beeed98974af7fe54028331cb9f5d5d7be8bad2e
Time: 2017-03-10
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owmergedata.py
Class Name: OWMergeData
Method Name: _add_instanceid_to_models


Project Name: CellProfiler/CellProfiler
Commit Name: ef058ea9ac6367668fb9263cf17c23d91236198e
Time: 2009-11-23
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: pyCellProfiler/cellprofiler/modules/measureobjectradialdistribution.py
Class Name: MeasureObjectRadialDistribution
Method Name: visible_settings


Project Name: snorkel-team/snorkel
Commit Name: 2c8e8148f36b2f83ed8b4acec0878fd7fa9dc86d
Time: 2016-09-09
Author: stephenhbach@gmail.com
File Name: snorkel/models/annotation.py
Class Name: AnnotationKeySet
Method Name: remove


Project Name: ekzhu/datasketch
Commit Name: c2cd89598fb34a389a9e18f7ded8f7047b884354
Time: 2017-09-08
Author: ae-foster@users.noreply.github.com
File Name: datasketch/lsh.py
Class Name: MinHashLSH
Method Name: remove