24d3656c6c4b3c6806954487720d53af775a1150,set_expansion_demo/ui/main.py,,get_expand_results_callback,#,169

Before Change


    try:
        // Connect to server and send data
        sock.connect(("localhost", 1111))
        sock.sendall(bytes(seed + "\n", "utf-8"))
        // Receive data from the server and shut down
        // length = sock.recv()
        received = pickle.loads(sock.recv(2000000))

After Change


                seed_check_label.text = "the words: <span class="bad-word">" + bad_words[:-1] + "</span> are not in the vocabulary. "
                print("setting table area")
                table_area.children = [seed_check_label,table_layout]
        print("sending expand request to server")
        received = send_request_to_server(seed)
        res = [x[0] for x in received]
        scores = [y[1] for y in received]
        print("setting table data")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: 24d3656c6c4b3c6806954487720d53af775a1150
Time: 2018-06-07
Author: shira.guskin@intel.com
File Name: set_expansion_demo/ui/main.py
Class Name:
Method Name: get_expand_results_callback


Project Name: OpenNMT/OpenNMT-py
Commit Name: 1b135442947aa5db8aff360b4eb035d78df16cb9
Time: 2017-12-14
Author: anton@addstructure.com
File Name: translate.py
Class Name:
Method Name: main


Project Name: OpenNMT/OpenNMT-py
Commit Name: 63871d5ab3301d015805abddd8f4259680d6a24a
Time: 2017-09-21
Author: bpeters@coli.uni-saarland.de
File Name: translate.py
Class Name:
Method Name: main