3fbdebd49ce6a24b3d0ef6731942996b621cda67,grid/app/main/events/fl_events.py,,authenticate,#Any#Any#,67
Before Change
response[CYCLE.STATUS] = RESPONSE_MSG.ERROR
response[RESPONSE_MSG.ERROR] = str(e)
response = {MSG_FIELD.TYPE: FL_EVENTS.AUTHENTICATE, MSG_FIELD.DATA: response}
return json.dumps(response)
def cycle_request(message: dict, socket) -> str:
After Change
response : String response to the client
response = {}
_auth_token = message.get("auth_token")
model_name = message.get("model_name", None)
verification_result = verify_token(_auth_token, model_name)
if verification_result["status"] == RESPONSE_MSG.SUCCESS:
response = assign_worker({"auth_token": _auth_token}, None)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: OpenMined/Grid
Commit Name: 3fbdebd49ce6a24b3d0ef6731942996b621cda67
Time: 2020-07-01
Author: hericles.me@gmail.com
File Name: grid/app/main/events/fl_events.py
Class Name:
Method Name: authenticate
Project Name: okfn-brasil/serenata-de-amor
Commit Name: e340b18584a38ff35d2f5f0fd9faa30d2c56a9a7
Time: 2016-12-14
Author: iirineu@gmail.com
File Name: rosie/main.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: e8710002b119845b6833df4af876135ef7e1f2bb
Time: 2020-04-15
Author: nick@koston.org
File Name: homeassistant/components/homekit/type_fans.py
Class Name: Fan
Method Name: __init__
Project Name: dpressel/mead-baseline
Commit Name: 7807b611355c9bfec038e5395a78fd59835f1625
Time: 2018-11-27
Author: blester125@users.noreply.github.com
File Name: python/baseline/reader.py
Class Name: SeqPredictReader
Method Name: __init__