50dd21f71d763edd10146da4144a55f0ad48ca23,distributed/deploy/local.py,LocalCluster,_start,#LocalCluster#Any#Any#,188

Before Change


        if (ip is None) and (not self.scheduler_port) and (not self.processes):
            // Use inproc transport for optimization
            scheduler_address = "inproc://"
        elif ip is not None and ip.startswith("tls://"):
            scheduler_address = ("%s:%d" % (ip, self.scheduler_port))
        else:
            if ip is None:
                ip = "127.0.0.1"
            scheduler_address = (ip, self.scheduler_port)
        self.scheduler.start(scheduler_address)

        yield [self._start_worker(**self.worker_kwargs) for i in range(n_workers)]

After Change


            if ip is None:
                ip = "127.0.0.1"

            if "://" in ip:
                address = ip
            else:
                address = self.protocol + ip
            if self.scheduler_port:
                address += ":" + str(self.scheduler_port)

        self.scheduler.start(address)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: dask/distributed
Commit Name: 50dd21f71d763edd10146da4144a55f0ad48ca23
Time: 2019-04-02
Author: mrocklin@gmail.com
File Name: distributed/deploy/local.py
Class Name: LocalCluster
Method Name: _start


Project Name: studioml/studio
Commit Name: 6179069f9dcfb76338bf3667e649133745757876
Time: 2017-08-04
Author: peter.zhokhov@sentient.ai
File Name: studio/runner.py
Class Name:
Method Name: main


Project Name: stanfordnlp/stanza
Commit Name: f25d9afd2572b98c56c3f597ad8da2648cd7b663
Time: 2020-12-01
Author: horatio@gmail.com
File Name: stanza/utils/training/common.py
Class Name:
Method Name: main