c27c6fabf3ab76db73ae58970f04255cd1d9394d,torch_geometric/datasets/utils/progress.py,Progress,update,#Progress#Any#,40

Before Change


        sys.stdout.write("{}{}{}".format(CLEAR, UP, CLEAR))

    def update(self, curr):
        self.clear()
        self._update(curr)

    def _update(self, curr):
        header = "{} {}".format(self._next_spinner(), self.header)

After Change


        per = round((curr / self.end) * self.bar_size)
        bar = "{}{}".format(self.complete[:per], self.incomplete[per:])
        count = "{}{}".format(str(curr).rjust(self.curr_size), self.count)
        sys.stdout.write("{}{} {}".format(CLEAR, bar, count))
        sys.stdout.flush()

    def clear(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: c27c6fabf3ab76db73ae58970f04255cd1d9394d
Time: 2017-11-25
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/utils/progress.py
Class Name: Progress
Method Name: update


Project Name: dPys/PyNets
Commit Name: 27e4a648a96c76de6b7ed24ea95ea76ee17f623d
Time: 2020-01-02
Author: dpisner@utexas.edu
File Name: pynets/registration/register.py
Class Name: FmriReg
Method Name: atlas2t1wmni_align


Project Name: tensorflow/minigo
Commit Name: 6e78b11b84d29bed28f37009555f38e598d0ec2d
Time: 2018-01-28
Author: brian.kihoon.lee@gmail.com
File Name: gtp_wrapper.py
Class Name: GtpInterface
Method Name: set_size