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

Before Change


    print("loading server")
    HOST, PORT = args.host, port
    server = socketserver.TCPServer((HOST, PORT), MyTCPHandler)
    print("server loaded")
    server.serve_forever()

After Change


from solutions.set_expansion import set_expand
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: 5

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: CyberReboot/NetworkML
Commit Name: a370d0b0b5850766f58909fb0eb04fbd940cfb2f
Time: 2017-09-06
Author: CStephenson970@gmail.com
File Name: TraditionalML/eval_OneLayer.py
Class Name:
Method Name:


Project Name: NervanaSystems/nlp-architect
Commit Name: cac1a6393166806e3bf7dd1ca85986a2b45ba576
Time: 2018-07-03
Author: jonathan.mamou@intel.com
File Name: solutions/set_expansion/set_expand.py
Class Name:
Method Name: