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

Before Change


        elif "in_vocab" in self.data:
            term = self.data.split(",")[1]
            res = se.in_vocab(term)
        elif "get_group" in self.data:
            term = self.data.split(",")[1]
            res = se.get_group(term)
        else:

After Change


        elif req == "get_group":
            term = self.data[1]
            res = se.get_group(term)
        elif req == "annotate":
            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: 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: deepdrive/deepdrive
Commit Name: ab7958ee1db564a272e43c67c0c9d5813f2a9754
Time: 2019-05-28
Author: cquiter@gmail.com
File Name: recorder/Recorder.py
Class Name: Recorder
Method Name: close


Project Name: mindsdb/mindsdb
Commit Name: 2fdce3f6874816b08f8d65288919db292059a7c3
Time: 2020-06-26
Author: stpmax@yandex.ru
File Name: mindsdb/api/mysql/mysql_proxy/mysql_proxy.py
Class Name: MysqlProxy
Method Name: handshake