1753e20f4ba805cb94d3646d472c53bc8d990a2a,py/server.py,PostHandler,post,#PostHandler#,252
Before Change
def post(self):
args = tornado.escape.json_decode(tornado.escape.to_basestring(self.request.body))
ptype = args["data"][0]["type"]
p = pane(args)
eid = extract_eid(args)
if ptype in ["image", "text"]:
p.update(dict(content=args["data"][0]["content"], type=ptype))
else:
p["content"] = dict(data=args["data"], layout=args["layout"])
p["type"] = "plot"
register_pane(self, p, eid)
class UpdateHandler(BaseHandler):
After Change
if req.get("func") is not None:
try:
req, endpoint = self.func(req)
if (endpoint != "events"):
// Process the request using the proper handler
self.handlers[endpoint].wrap_func(self, req)
return
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: facebookresearch/visdom
Commit Name: 1753e20f4ba805cb94d3646d472c53bc8d990a2a
Time: 2017-10-05
Author: jju@fb.com
File Name: py/server.py
Class Name: PostHandler
Method Name: post
Project Name: KhronosGroup/NNEF-Tools
Commit Name: 090d93d59bfcf4c6d52cf942d0b599935a7d1440
Time: 2019-02-26
Author: tamas.danyluk@aimotive.com
File Name: au-zone/nnef_converter/common/nnef_converter.py
Class Name: NNEFImporter
Method Name: run
Project Name: GPflow/GPflowOpt
Commit Name: 1b17dc0090dbf4cebdfe2acc9dbee06179155225
Time: 2017-08-10
Author: joachim.vanderherten@ugent.be
File Name: GPflowOpt/acquisition/mes.py
Class Name: MaxvalueEntropySearch
Method Name: binary_search