9c7c69fe2769fc536db267694055e1514d6e53b9,solutions/set_expansion/expand_server.py,MyTCPHandler,handle,#MyTCPHandler#,35

Before Change


        if self.data == "get_vocab":
            logger.info("getting vocabulary")
            res = se.get_vocab()
        elif "in_vocab" in self.data:
            term = self.data.split(",")[1]
            res = se.in_vocab(term)
        elif "get_group" in self.data:

After Change


            seed = self.data[1]
            text = self.data[2]
            res = self.annotate(text, seed)
            logger.info("res:%s", str(res))
        elif req == "expand":
            logger.info("expanding")
            data = [x.strip() for x in self.data[1].split(",")]
            res = se.expand(data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: dmlc/gluon-nlp
Commit Name: 5fe8d7b7f5770d82e4f3bfb489a67999d9442ce6
Time: 2020-01-22
Author: 798672141@qq.com
File Name: scripts/language_model/run_glue.py
Class Name:
Method Name:


Project Name: dmlc/gluon-nlp
Commit Name: 46583778249faa446795ef8a4e57eb12bfd5d5bb
Time: 2019-04-02
Author: Deseaus@users.noreply.github.com
File Name: scripts/bert/run_pretraining.py
Class Name:
Method Name: