e363904af067de1beac98313c0a6f8362980d406,distributed/tests/test_scheduler.py,,test_service_hosts,#,1138
Before Change
yield s.start(url)
sock = first(s.services["bokeh"].server._http._sockets.values())
if isinstance(port, tuple): // host explicitly overridden
assert sock.getsockname()[0] == port[0]
elif isinstance(expected, tuple):
assert sock.getsockname()[0] in expected
else:
assert sock.getsockname()[0] == expected
yield s.close()
@gen_cluster(client=True, worker_kwargs={"profile_cycle_interval": 100})
After Change
for url in ["tcp://0.0.0.0", "tcp://127.0.0.1", "tcp://127.0.0.1:38275"]:
services = {("bokeh", port): BokehScheduler}
s = Scheduler(services=services)
yield s.start(url)
sock = first(s.services["bokeh"].server._http._sockets.values())
assert sock.getsockname()[0] == "127.0.0.1"
yield s.close()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: dask/distributed
Commit Name: e363904af067de1beac98313c0a6f8362980d406
Time: 2019-04-09
Author: mrocklin@gmail.com
File Name: distributed/tests/test_scheduler.py
Class Name:
Method Name: test_service_hosts
Project Name: Microsoft/nni
Commit Name: 10d7ece1c34c5533262a54d20d974a3d04f0b7ce
Time: 2020-09-15
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/tensorflow/compressor.py
Class Name: Compressor
Method Name: __init__
Project Name: KhronosGroup/NNEF-Tools
Commit Name: 0219a509c34bb5b291bee497cbd658d6a5922171
Time: 2020-11-17
Author: viktor.gyenes@aimotive.com
File Name: nnef_tools/io/tf/graphdef/__init__.py
Class Name:
Method Name: save_default_graph