cf57d28452a901e3400c706685d416037caeadc4,keras/utils/generic_utils.py,Progbar,update,#Progbar#Any#Any#Any#,227

Before Change


                    bar += "="
            bar += ("." * (self.width - prog_width))
            bar += "]"
            sys.stdout.write(bar)
            self.total_width = len(bar)

            if current:
                time_per_unit = (now - self.start) / current

After Change


            sys.stdout.write("\b" * prev_total_width)
            sys.stdout.write("\r")

            if self.target is not -1:
                numdigits = int(np.floor(np.log10(self.target))) + 1
                barstr = "%%%dd/%%%dd [" % (numdigits, numdigits)
                bar = barstr % (current, self.target)
                prog = float(current) / self.target
                prog_width = int(self.width * prog)
                if prog_width > 0:
                    bar += ("=" * (prog_width - 1))
                    if current < self.target:
                        bar += ">"
                    else:
                        bar += "="
                bar += ("." * (self.width - prog_width))
                bar += "]"
                sys.stdout.write(bar)
                self.total_width = len(bar)

            if current:
                time_per_unit = (now - self.start) / current
            else:
                time_per_unit = 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: cf57d28452a901e3400c706685d416037caeadc4
Time: 2017-05-22
Author: ATHundt@gmail.com
File Name: keras/utils/generic_utils.py
Class Name: Progbar
Method Name: update


Project Name: ray-project/ray
Commit Name: 91f630f70959098facef4ab4e1a98d1f48f9a586
Time: 2020-04-28
Author: shawn.ck.yang@gmail.com
File Name: streaming/python/collector.py
Class Name: OutputCollector
Method Name: collect


Project Name: catalyst-team/catalyst
Commit Name: bb34bdd299ae9b13689874de4971bbee0cd7ed07
Time: 2020-09-11
Author: scitator@gmail.com
File Name: catalyst/core/callbacks/logging.py
Class Name: VerboseLogger
Method Name: on_exception


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: de7b7c7593a48d97293de6e2eacaf785b478122b
Time: 2019-05-16
Author: boris.ginsburg@gmail.com
File Name: tokenizer_wrapper.py
Class Name:
Method Name: detokenize


Project Name: google/deepvariant
Commit Name: e180e61f028804a43e0f0d7f6a108f6efbbc5d49
Time: 2020-08-27
Author: pichuan@google.com
File Name: deepvariant/postprocess_variants.py
Class Name:
Method Name: merge_and_write_variants_and_nonvariants


Project Name: google/deepvariant
Commit Name: e180e61f028804a43e0f0d7f6a108f6efbbc5d49
Time: 2020-08-27
Author: pichuan@google.com
File Name: deepvariant/postprocess_variants.py
Class Name:
Method Name: write_variants_to_vcf