f11e942dbe2069e1ac09c8d8d981179d24326c70,external_api/api.py,,transfer_entities,#Any#,51

Before Change


        es_object.transfer_specific_entities(list_of_entities=entity_list)
    except ValueError:
        HttpResponse(status=500)
    return HttpResponse(status=200)

After Change


    entity_list_dict = json.loads(request.GET.get("word_info"))
    entity_list = entity_list_dict.get("entity_list")
    status, error = es_object.transfer_specific_entities(list_of_entities=entity_list)
    result = {"status": status, "error": error}
    if not status:
        HttpResponse(json.dumps({"data": result}), content_type="application/json", status=500)
    return HttpResponse(json.dumps({"data": result}), content_type="application/json", status=200)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: hellohaptik/chatbot_ner
Commit Name: f11e942dbe2069e1ac09c8d8d981179d24326c70
Time: 2018-08-19
Author: pratik.jayarao@haptik.co
File Name: external_api/api.py
Class Name:
Method Name: transfer_entities


Project Name: comic/grand-challenge.org
Commit Name: 84dc9816c72c1e76e054fa955fd8ff69ace3e73f
Time: 2012-06-19
Author: w.s.kerkstra@gmail.com
File Name: django/ComicSite/views.py
Class Name:
Method Name: site


Project Name: comic/grand-challenge.org
Commit Name: ce249c82d2c4524ab406f7f3d179501cbc3481cf
Time: 2012-06-19
Author: w.s.kerkstra@gmail.com
File Name: django/ComicSite/views.py
Class Name:
Method Name: site


Project Name: jazzband/django-debug-toolbar
Commit Name: af0d5af82a29ae39955331be6ca50b575b7b1466
Time: 2020-05-19
Author: jon.dufresne@gmail.com
File Name: debug_toolbar/views.py
Class Name:
Method Name: render_panel


Project Name: hellohaptik/chatbot_ner
Commit Name: ee67dea7a8fc309a3cd1187a2a9290e9ca36a327
Time: 2020-09-18
Author: ankur09011@gmail.com
File Name: ner_v2/api.py
Class Name:
Method Name: text