de0ce28e28308b92b8d784908fc61ddd3b81fd4e,py/server.py,UpdateHandler,post,#UpdateHandler#,284
Before Change
def post(self):
args = tornado.escape.json_decode(tornado.escape.to_basestring(self.request.body))
eid = "main" if args.get("eid") is None else args.get("eid")
if args["win"] not in self.state[eid]["jsons"]:
self.write("win does not exist")
return
After Change
return p
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: facebookresearch/visdom
Commit Name: de0ce28e28308b92b8d784908fc61ddd3b81fd4e
Time: 2017-03-23
Author: jhchoi@europa.snu.ac.kr
File Name: py/server.py
Class Name: UpdateHandler
Method Name: post
Project Name: facebookresearch/visdom
Commit Name: de0ce28e28308b92b8d784908fc61ddd3b81fd4e
Time: 2017-03-23
Author: jhchoi@europa.snu.ac.kr
File Name: py/server.py
Class Name: PostHandler
Method Name: post
Project Name: facebookresearch/visdom
Commit Name: de0ce28e28308b92b8d784908fc61ddd3b81fd4e
Time: 2017-03-23
Author: jhchoi@europa.snu.ac.kr
File Name: py/server.py
Class Name: CloseHandler
Method Name: post