a6432392d054d525b8e65b68162dcfb24691023d,solutions/set_expansion/expand_server.py,,,#,31

Before Change


    port = args.port
    model_path = args.model_path
    logging.basicConfig(format="%(asctime)s : %(levelname)s : %(message)s", level=logging.DEBUG)
    logger = logging.getLogger("set_expantion_demo")
    logger.debug("initialize model\n")
    se = set_expand.SetExpand(model_path)
    logger.debug("loading server\n")
    HOST, PORT = args.host, port
    server = socketserver.TCPServer((HOST, PORT), MyTCPHandler)
    logger.debug("server loaded\n")
    server.serve_forever()

After Change



    port = args.port
    model_path = args.model_path
    print("loading model")
    se = set_expand.SetExpand(model_path)
    print("loading server")
    HOST, PORT = args.host, port
    server = socketserver.TCPServer((HOST, PORT), MyTCPHandler)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: a6432392d054d525b8e65b68162dcfb24691023d
Time: 2018-07-09
Author: shira.guskin@intel.com
File Name: solutions/set_expansion/expand_server.py
Class Name:
Method Name:


Project Name: huyingxi/Synonyms
Commit Name: caf046f34fbde018e95c2b392401730be67e46f5
Time: 2020-09-24
Author: hain@chatopera.com
File Name: synonyms/jieba/__init__.py
Class Name: Tokenizer
Method Name: initialize


Project Name: yzhao062/pyod
Commit Name: 464ae68501cb3de6dbd500165a6440d379a835ef
Time: 2017-10-08
Author: yuezhao@cs.toronto.edu
File Name: dev.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: 908c0c630a6c7c6e35b7bb0e172d41372bfb309d
Time: 2020-07-22
Author: maximsmol@gmail.com
File Name: python/ray/autoscaler/updater.py
Class Name: NodeUpdater
Method Name: wait_ready