086465c96176a82b2dd3f3d378c8de8af8811905,solutions/set_expansion/expand_server.py,,,#,56

Before Change


    print("loading model")
    se = set_expand.SetExpand(model_path)
    print("loading server")
    HOST, PORT = args.host, port
    server = socketserver.TCPServer((HOST, PORT), MyTCPHandler)
    print("server loaded")
    server.serve_forever()

After Change


from nlp_architect.utils.io import validate_existing_filepath, check_size

logging.basicConfig(stream=sys.stdout, level=logging.INFO)
logger = logging.getLogger(__name__)


class MyTCPHandler(socketserver.BaseRequestHandler):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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


Project Name: home-assistant/home-assistant
Commit Name: d348f09d3d42c6bd65727a471cf363cbca19105f
Time: 2018-03-14
Author: 30130371+cdce8p@users.noreply.github.com
File Name: tests/components/homekit/test_accessories.py
Class Name:
Method Name:


Project Name: facebookresearch/Horizon
Commit Name: c3a91cc6a65b1b396a24498c75ace20cc8dacf68
Time: 2020-05-07
Author: kittipat@fb.com
File Name: reagent/types.py
Class Name:
Method Name: