7f6238a68d0475c6775a1a0d031f9e0c1e5905c6,logger/metrics.py,TimeMetric_,update,#TimeMetric_#Any#Any#Any#,18

Before Change



        if value is not None:
            self.end_time = value
        elif timed is not None:
            self.end_time = timed
        else:
            self.end_time = time.time()

    def get(self):

        return self.end_time - self.start_time

After Change


        self.timer.reset()

    def update(self, val=None, n=None, timed=None):
        self.timer.update(val, n, timed)

    def get(self):
        return self.timer.get()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: oval-group/logger
Commit Name: 7f6238a68d0475c6775a1a0d031f9e0c1e5905c6
Time: 2017-03-26
Author: leonardbj@hotmail.fr
File Name: logger/metrics.py
Class Name: TimeMetric_
Method Name: update


Project Name: merenlab/anvio
Commit Name: 54d6d780eeae11ea7c3332889b3f64ed69729677
Time: 2020-03-05
Author: kiefl.evan@gmail.com
File Name: anvio/profiler.py
Class Name: BAMProfiler
Method Name: profile_single_thread


Project Name: merenlab/anvio
Commit Name: 54d6d780eeae11ea7c3332889b3f64ed69729677
Time: 2020-03-05
Author: kiefl.evan@gmail.com
File Name: anvio/profiler.py
Class Name: BAMProfiler
Method Name: profile_multi_thread