edf89e236de2df9d5aa9ac477eed23d64b9a38e7,ner_v1/api.py,,city,#Any#,417
Before Change
request: url parameters
try:
parameters_dict = parse_parameters_from_request(request)
entity_output = get_city(parameters_dict[PARAMETER_MESSAGE], parameters_dict[PARAMETER_ENTITY_NAME],
parameters_dict[PARAMETER_STRUCTURED_VALUE],
parameters_dict[PARAMETER_FALLBACK_VALUE],
parameters_dict[PARAMETER_BOT_MESSAGE],
parameters_dict[PARAMETER_SOURCE_LANGUAGE]
)
ner_logger.debug("Finished %s : %s " % (parameters_dict[PARAMETER_ENTITY_NAME], entity_output))
except TypeError as e:
ner_logger.exception("Exception for city: %s " % e)
return HttpResponse(status=500)
return HttpResponse(json.dumps({"data": entity_output}), content_type="application/json")
@require_http_methods(["GET", "POST"])
After Change
return HttpResponse(status=500)
except es_exceptions.ConnectionTimeout as e:
ner_logger.exception("Exception for text_synonym: %s " % e)
return HttpResponse(status=500)
except es_exceptions.ConnectionError as e:
ner_logger.exception("Exception for text_synonym: %s " % e)
return HttpResponse(status=500)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: edf89e236de2df9d5aa9ac477eed23d64b9a38e7
Time: 2021-04-05
Author: ankur09011@gmail.com
File Name: ner_v1/api.py
Class Name:
Method Name: city
Project Name: hellohaptik/chatbot_ner
Commit Name: b93a007cdf6fa77bb7ae7b0a9ae5f7c8e2db3ea9
Time: 2021-04-05
Author: ankur09011@gmail.com
File Name: ner_v1/api.py
Class Name:
Method Name: text
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