6cc9ca78515efaf3b1e553ed66f5410c86393ed8,horovod/run/common/util/network.py,BasicClient,_probe_one,#BasicClient#Any#Any#Any#,188

Before Change


                                             for x in psutil.net_if_addrs().get(intf, [])
                                             if x.family == socket.AF_INET]
                        if resp.source_address not in client_intf_addrs:
                            return
                    result_queue.put((intf, addr))
                    return
                finally:
                    rfile.close()

After Change


                                             for x in psutil.net_if_addrs().get(intf, [])
                                             if x.family == socket.AF_INET]
                        if resp.source_address not in client_intf_addrs:
                            if self._verbose >= 2:
                                // Need to find the local interface name whose
                                // adderss was visible to the target
                                // host"s server.
                                resp_intf = ""
                                for key in psutil.net_if_addrs().keys():
                                    key_intf_addrs = [x.address
                                                      for x in psutil.net_if_addrs().get(key, [])]
                                    if resp.source_address in key_intf_addrs:
                                        resp_intf = key
                                        break
                                print("WARNING: Expected to connect the host "
                                      "{addr} using interface "
                                      "{intf}, but reached it on interface "
                                      "{resp_intf}.".format(
                                    addr=str(addr[0])+":"+str(addr[1]),
                                    intf=intf,
                                    resp_intf=resp_intf))
                            return
                    result_queue.put((intf, addr))
                    return
                finally:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: horovod/horovod
Commit Name: 6cc9ca78515efaf3b1e553ed66f5410c86393ed8
Time: 2019-04-11
Author: fardin@uber.com
File Name: horovod/run/common/util/network.py
Class Name: BasicClient
Method Name: _probe_one


Project Name: Pinafore/qb
Commit Name: 6828141dcbd5324ebb36c31ab6e52ccded124860
Time: 2018-04-25
Author: ski.rodriguez@gmail.com
File Name: qanta/ingestion/preprocess.py
Class Name:
Method Name: nlp


Project Name: keras-team/keras
Commit Name: c7b7328cc99fd5d7c298e57c6020043451d89a61
Time: 2018-08-16
Author: ybliang8@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: concatenate