533025215d6629a1f506838fc9eeed33f2417591,lib/gui/wrapper.py,FaceswapControl,terminate,#FaceswapControl#,335

Before Change


                self.process.send_signal(signal.SIGINT)
            while True:
                timeelapsed = time() - now
                if self.process.poll() is not None:
                    break
                if timeelapsed > timeout:
                    logger.error("Timeout reached sending Exit Signal")
                    self.terminate_all_children()
        else:
            self.terminate_all_children()

After Change


        if self.thread is None:
            logger.debug("Terminating wrapper in LongRunningTask")
            self.thread = LongRunningTask(target=self.terminate_in_thread,
                                          args=(self.command, self.process))
            self.thread.start()
            root.after(1000, self.terminate)
        elif not self.thread.complete.is_set():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepfakes/faceswap
Commit Name: 533025215d6629a1f506838fc9eeed33f2417591
Time: 2019-06-28
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/wrapper.py
Class Name: FaceswapControl
Method Name: terminate


Project Name: mlflow/mlflow
Commit Name: 43700cb838992fddef848cff7f1a37197b035ee0
Time: 2019-05-22
Author: smurching@gmail.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: _verify_schema


Project Name: home-assistant/home-assistant
Commit Name: 3bd37d6a657ff676c919515784cdb631c138e754
Time: 2019-04-02
Author: david@bonnes.me
File Name: homeassistant/components/evohome/__init__.py
Class Name:
Method Name: setup