5f22f395bb6a1b5a92aefee08f0fe2788ff29362,parlai/mturk/core/handler_template.py,,lambda_handler,#Any#Any#,36

Before Change


        return index(event, context)
    elif params["endpoint"] == "message":
        return message(event, context)
    elif params["endpoint"] == "approval":
        return approval(event, context)
    else:
        return None

After Change



    method_name = params["method_name"]
    if method_name in globals():
        return globals()[method_name](event, context)

def chat_index(event, context):
    if event["method"] == "GET":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 5f22f395bb6a1b5a92aefee08f0fe2788ff29362
Time: 2017-05-02
Author: willfeng@fb.com
File Name: parlai/mturk/core/handler_template.py
Class Name:
Method Name: lambda_handler


Project Name: deepfakes/faceswap
Commit Name: b26cbf5e03186d1fb700be75cd7dab99111d8798
Time: 2018-09-17
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/alignments.py
Class Name: Alignments
Method Name: process


Project Name: pytorch/audio
Commit Name: 00d38203e401b8d9472a8f8394a10e2c309be02c
Time: 2020-05-08
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_torchscript_consistency.py
Class Name:
Method Name:


Project Name: tensorflow/agents
Commit Name: 729adacfd7e610259e26242e8b214e70ccb32249
Time: 2020-07-14
Author: oars@google.com
File Name: tf_agents/experimental/train/utils/replay_buffer_utils_test.py
Class Name:
Method Name: