b9ffc2cc041e95367a84059e57f8508c479739cc,tgen/parallel_percrank_train.py,ParallelTrainingPercRank,train,#ParallelTrainingPercRank#Any#Any#Any#,43

Before Change


                    for conn, req_portion, req in list(self.pending_requests):
                        if req.ready:
                            if req.error:
                                raise Exception("Request computed with error: IT %d PORTION %d, WORKER %s:%d" %
                                                (iter_no, req_portion, conn.host, conn.port))
                            results[req_portion] = req.value
                            self.pending_requests.remove(conn, req_portion, req)
                            self.free_services.append(conn)
                    // check for free services and assign new computation

After Change


                    // check if some of the pending computations have finished
                    for sc, req_portion, req in list(self.pending_requests):
                        if req.ready:
                            log_info("Retrieved finished request %d / %d" % (iter_no, req_portion))
                            if req.error:
                                log_info("Error found on request: IT %d PORTION %d, WORKER %s:%d" %
                                         (iter_no, req_portion, sc.host, sc.port))
                            results[req_portion] = req.value
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: UFAL-DSG/tgen
Commit Name: b9ffc2cc041e95367a84059e57f8508c479739cc
Time: 2014-09-11
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/parallel_percrank_train.py
Class Name: ParallelTrainingPercRank
Method Name: train


Project Name: UFAL-DSG/tgen
Commit Name: fcd6b2bc97933cb686977e8b95e2bef2e99b5ea9
Time: 2016-04-21
Author: odusek@ufal.mff.cuni.cz
File Name: run_tgen.py
Class Name:
Method Name: eval_tokens


Project Name: UFAL-DSG/tgen
Commit Name: 6506f3a125e001e7667771f3c1f570c53dbefd06
Time: 2016-01-08
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/seq2seq.py
Class Name: Seq2SeqGen
Method Name: save_to_file