4b94172a2981051ef546dcd477d8abc484451676,jarbas/core/management/commands/receipturls.py,Command,handle,#Command#,19

Before Change


        fields = ("pk", "applicant_id", "year", "document_id")
        documents = Document.objects.only(*fields).iterator()

        with Pool(processes=options["processes"]) as pool:
            for url, updated, error in pool.imap(update_url, documents):
                self.update_progress(url, updated, error)
                print(self.summary(), end="\r")

        print("\r\n")
        print(self.summary())
        if self.progress["errors"]:
            print("==> Errors:")

After Change


        }

        print("==> {:,} documents to process".format(total))
        for url, updated, error in map(update_url, qs.iterator()):
            self.update_progress(url, updated, error)
            print(self.summary(), end="\r")

        print("\r\n")
        print(self.summary())
        if self.progress["errors"]:
            print("==> Errors:")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 4b94172a2981051ef546dcd477d8abc484451676
Time: 2016-09-23
Author: cuducos@gmail.com
File Name: jarbas/core/management/commands/receipturls.py
Class Name: Command
Method Name: handle


Project Name: tensorflow/datasets
Commit Name: da7c8af137d3380a772e06aeb9bdb6529671fa3f
Time: 2020-04-16
Author: epot@google.com
File Name: tensorflow_datasets/testing/test_utils.py
Class Name:
Method Name: features_encode_decode


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 7e4f1f5aa62d962629adb53bea7c58c9070261c1
Time: 2016-11-25
Author: cuducos@gmail.com
File Name: src/fetch_sex_places.py
Class Name:
Method Name: