9c7c69fe2769fc536db267694055e1514d6e53b9,solutions/set_expansion/expand_server.py,MyTCPHandler,handle,#MyTCPHandler#,35
Before Change
def handle(self):
logger.info("handling expand request")
res = ""
self.data = str(self.request.recv(10240).strip(), "utf-8")
logger.info("request data: %s", self.data)
if self.data == "get_vocab":
logger.info("getting vocabulary")
After Change
def handle(self):
logger.info("handling expand request")
res = ""
self.data = pickle.loads(self.request.recv(10240))
logger.info("request data: %s", self.data)
req = self.data[0]
if req == "get_vocab":
logger.info("getting vocabulary")
res = se.get_vocab()
elif req == "in_vocab":
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: NervanaSystems/nlp-architect
Commit Name: 9c7c69fe2769fc536db267694055e1514d6e53b9
Time: 2018-10-31
Author: jonathan.mamou@intel.com
File Name: solutions/set_expansion/expand_server.py
Class Name: MyTCPHandler
Method Name: handle
Project Name: geek-ai/MAgent
Commit Name: 209a8814bd8c353e97827bc20c56b1dc6a79fdca
Time: 2017-12-02
Author: zhenglianmin96@163.com
File Name: python/magent/model.py
Class Name: ProcessingModel
Method Name: fetch_action
Project Name: openai/gym
Commit Name: cab1d0ec380770c297f7a6613a2b848345b554c0
Time: 2019-06-28
Author: tristan.deleu@gmail.com
File Name: gym/vector/async_vector_env.py
Class Name: AsyncVectorEnv
Method Name: seed
Project Name: deepdrive/deepdrive
Commit Name: 4b662913203b48455f93ac7401c8dcbf9aa97d47
Time: 2019-06-22
Author: cquiter@gmail.com
File Name: sim/uepy_client.py
Class Name: UEPyClient
Method Name: call
Project Name: geek-ai/MAgent
Commit Name: 9b7f4d373f553711babfd13f6c67b3ddfe546a97
Time: 2017-12-03
Author: zhenglianmin96@163.com
File Name: python/magent/model.py
Class Name: ProcessingModel
Method Name: infer_action