6046c71d5e0948ea8200a5864ad25bea9eb51958,sacred/observers/flatfile.py,FlatfileObserver,heartbeat_event,#FlatfileObserver#Any#Any#Any#,75

Before Change


            f.write(cout)

    def heartbeat_event(self, info, captured_out, beat_time):
        self.run_entry["info"] = info
        self.save_cout(captured_out)
        self.run_entry["heartbeat"] = beat_time
        self.save()

After Change



        self.save_cout()
        self.save_json(self.run_entry, "run.json")
        self.save_json(self.info, "info.json")

    def completed_event(self, stop_time, result):
        self.run_entry["stop_time"] = stop_time
        self.run_entry["result"] = result
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: IDSIA/sacred
Commit Name: 6046c71d5e0948ea8200a5864ad25bea9eb51958
Time: 2016-06-10
Author: qwlouse@gmail.com
File Name: sacred/observers/flatfile.py
Class Name: FlatfileObserver
Method Name: heartbeat_event


Project Name: IDSIA/sacred
Commit Name: 7e016711c3f45d68f8a663dc37bbeb1186086703
Time: 2016-06-08
Author: qwlouse@gmail.com
File Name: sacred/observers/flatfile.py
Class Name: FlatfileObserver
Method Name: heartbeat_event


Project Name: home-assistant/home-assistant
Commit Name: 95370ac84baa7fb1a0494649c1d51daeaa4690ae
Time: 2021-03-23
Author: keijser@gmail.com
File Name: homeassistant/components/nanoleaf/light.py
Class Name:
Method Name: setup_platform