fa45ec5a9f63e2af4bd4823be6af8cd4ac782350,grid/app/main/events/sfl/fl_events.py,,cycle_request,#Any#Any#,165
Before Change
version = data.get(CYCLE.VERSION, None)
ping = int(data.get(CYCLE.PING, None))
download = float(data.get(CYCLE.DOWNLOAD, None))
upload = float(data.get(CYCLE.UPLOAD, None))
// Retrieve the worker
worker = worker_manager.get(id=worker_id)
worker.ping = ping
worker.avg_download = download
worker.avg_upload = upload
worker_manager.update(worker) // Update database worker attributes
// The last time this worker was assigned for this model/version.
After Change
// Request fields to worker"s DB fields mapping
fields_map = {
CYCLE.PING: "ping",
CYCLE.DOWNLOAD: "avg_download",
CYCLE.UPLOAD: "avg_upload",
}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: OpenMined/Grid
Commit Name: fa45ec5a9f63e2af4bd4823be6af8cd4ac782350
Time: 2020-07-22
Author: 12518480+vvmnnnkv@users.noreply.github.com
File Name: grid/app/main/events/sfl/fl_events.py
Class Name:
Method Name: cycle_request
Project Name: uber/pyro
Commit Name: 35110fa3d224a0d72638f3011a08640e237c2416
Time: 2020-05-19
Author: fritzo@uber.com
File Name: pyro/infer/reparam/discrete_cosine.py
Class Name: DiscreteCosineReparam
Method Name: __init__
Project Name: BindsNET/bindsnet
Commit Name: a5da87f488bf1db6c38d66d982be07de921e8688
Time: 2018-05-18
Author: djsaunde@umass.edu
File Name: bindsnet/network/topology.py
Class Name: Connection
Method Name: __init__