b048efa4f956b80266942caea6ee8b4311e1d17a,autokeras/classifier.py,ClassifierBase,fit,#ClassifierBase#Any#Any#Any#Any#Any#,119

Before Change


                p.start()
                p.join()
        except TimeoutError:
            if self.verbose:
                print("Timed is up!")
            return

    def predict(self, x_test):
        Return predict result for the testing data.

After Change


            p.start()
            // Kill the process if necessary.
            while time.time() - start_time <= time_limit:
                if p.is_alive():
                    time.sleep(1)
                else:
                    break
            else:
                // If break above the code in this else won"t run
                p.terminate()
                p.join()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: b048efa4f956b80266942caea6ee8b4311e1d17a
Time: 2018-04-08
Author: jin@tamu.edu
File Name: autokeras/classifier.py
Class Name: ClassifierBase
Method Name: fit


Project Name: ray-project/ray
Commit Name: 2cb9cfb2b6b1d2b5a14b543310761d64b76b8508
Time: 2020-04-12
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/http_proxy.py
Class Name: HTTPProxy
Method Name: __call__


Project Name: NervanaSystems/coach
Commit Name: b3db9ce77d05161091b792fc50623bc258054b19
Time: 2019-04-23
Author: 46447582+anabwan@users.noreply.github.com
File Name: rl_coach/tests/utils/test_utils.py
Class Name:
Method Name: read_csv_paths