039a78e76dae1f10f441651157d9813dbcc8f242,slm_lab/experiment/monitor.py,Body,__str__,#Body#,148

Before Change


        self.last_done = done

    def __str__(self):
        return "body: " + util.to_json(util.get_class_attr(self))

    def calc_df_row(self, env):
        """Calculate a row for updating train_df or eval_df."""
        total_t = self.env.clock.get("total_t")

After Change


        self.last_done = done

    def __str__(self):
        return f"body: {util.to_json(util.get_class_attr(self))}"

    def calc_df_row(self, env):
        """Calculate a row for updating train_df or eval_df."""
        total_t = self.env.clock.get("total_t")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: kengz/SLM-Lab
Commit Name: 039a78e76dae1f10f441651157d9813dbcc8f242
Time: 2019-05-02
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/monitor.py
Class Name: Body
Method Name: __str__


Project Name: tensorflow/datasets
Commit Name: 85de45e5ec5e8d29a4c1fba355d953b3dc0d17e6
Time: 2020-08-06
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/core/features/text_feature.py
Class Name: Text
Method Name: to_json_content


Project Name: rtavenar/tslearn
Commit Name: 340c77bf7e2c2595d68c430fb6831a8679cdd885
Time: 2020-05-24
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/shapelets.py
Class Name: ShapeletModel
Method Name: _get_model_params


Project Name: chartbeat-labs/textacy
Commit Name: 800dcf66028cc6d35a9d3984d9bff1992a13f16e
Time: 2016-02-11
Author: burton@chartbeat.com
File Name: textacy/data.py
Class Name:
Method Name: load_depechemood