1753e20f4ba805cb94d3646d472c53bc8d990a2a,py/server.py,UpdateHandler,post,#UpdateHandler#,307
Before Change
def post(self):
args = tornado.escape.json_decode(tornado.escape.to_basestring(self.request.body))
eid = extract_eid(args)
if args["win"] not in self.state[eid]["jsons"]:
self.write("win does not exist")
return
p = self.state[eid]["jsons"][args["win"]]
if not p["content"]["data"][0]["type"] == "scatter":
self.write("win is not scatter")
After Change
args = tornado.escape.json_decode(
tornado.escape.to_basestring(self.request.body)
)
self.wrap_func(self, args)
class CloseHandler(BaseHandler):
def initialize(self, state, subs):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: facebookresearch/visdom
Commit Name: 1753e20f4ba805cb94d3646d472c53bc8d990a2a
Time: 2017-10-05
Author: jju@fb.com
File Name: py/server.py
Class Name: UpdateHandler
Method Name: post
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: facebookresearch/visdom
Commit Name: 1753e20f4ba805cb94d3646d472c53bc8d990a2a
Time: 2017-10-05
Author: jju@fb.com
File Name: py/server.py
Class Name: CloseHandler
Method Name: post