3bccbb465d5fa1379f68edb4b6713192b2bc5c2d,src/fonduer/utils/utils_udf.py,,_batch_postgres_query,#Any#Any#,32

Before Change


        end += 1

        if total_len + record_len >= POSTGRESQL_MAX:
            logger.warning("Splitting query due to length.")
            yield records[start:end]
            start = end
            // Reset the total query length
            total_len = len(preamble)

After Change


    end = 0
    total_len = len(preamble)
    while end < len(records):
        record_len = sum([len(str(v)) for v in records[end].values()])

        // Pre-increment to include the end element in the slice
        end += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: HazyResearch/fonduer
Commit Name: 3bccbb465d5fa1379f68edb4b6713192b2bc5c2d
Time: 2018-09-25
Author: lwhsiao@stanford.edu
File Name: src/fonduer/utils/utils_udf.py
Class Name:
Method Name: _batch_postgres_query


Project Name: Featuretools/featuretools
Commit Name: be08f88c494daa31975a11a33927fa619c562a9a
Time: 2020-07-22
Author: 42102034+systemshift@users.noreply.github.com
File Name: featuretools/entityset/entityset.py
Class Name: EntitySet
Method Name: add_relationship


Project Name: aws/sagemaker-python-sdk
Commit Name: 762b509f711daf4d0d7b759626f614fcf618b74e
Time: 2020-05-21
Author: kimedw@amazon.com
File Name: src/sagemaker/amazon/amazon_estimator.py
Class Name:
Method Name: get_image_uri


Project Name: geometalab/OSMDeepOD
Commit Name: 915c71ddeda1bae42feaf8377e65f59b586be228
Time: 2016-09-09
Author: samuel.kurath@gmail.com
File Name: src/detection/box_walker.py
Class Name: BoxWalker
Method Name: load_streets