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 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: 3

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: deepchem/deepchem
Commit Name: e392516f0073ae2ff5cab0701a4103a83928270f
Time: 2020-06-12
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/dock/tests/test_pose_generation.py
Class Name: TestPoseGeneration
Method Name: test_pocket_vina_poses


Project Name: deepchem/deepchem
Commit Name: e392516f0073ae2ff5cab0701a4103a83928270f
Time: 2020-06-12
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/dock/tests/test_pose_generation.py
Class Name: TestPoseGeneration
Method Name: test_vina_poses