3326989d7d5aa4f02d8692af1f9db2af1fb7e7ff,scripts/dedupe_user_hashes.py,,main,#Any#,15

Before Change


    s3_client = boto3.client("s3")
    result = s3_client.list_objects_v2(Bucket=args.s3_bucket)
    if result["IsTruncated"]:
        print("Too many objects! Need to paginate.")
        return 1

    contents_by_key = dict()
    old_object_keys = set()

After Change


        if not result["IsTruncated"]:
            break

        continuation_kw = dict(
            ContinuationToken=result["NextContinuationToken"]
        )

    // Collect objects to be copied. Make sure there is nothing unexpected.
    objects_to_copy = dict()
    for user, package, obj_hash in old_object_keys:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: quiltdata/quilt
Commit Name: 3326989d7d5aa4f02d8692af1f9db2af1fb7e7ff
Time: 2017-06-08
Author: dima@gmail.com
File Name: scripts/dedupe_user_hashes.py
Class Name:
Method Name: main


Project Name: shibing624/pycorrector
Commit Name: a5f63384ac283ea71ca2668963da77db00cafa46
Time: 2019-07-08
Author: 507153809@qq.com
File Name: pycorrector/rnn_lm/infer.py
Class Name:
Method Name: ppl


Project Name: caserec/CaseRecommender
Commit Name: 7dee2f4ba62ccc13ce545ad2aa38294b3d23f3f2
Time: 2015-11-25
Author: fortes.arthur@gmail.com
File Name: recommenders/rating_prediction/itemknn.py
Class Name: ItemKNN
Method Name: __init__


Project Name: bokeh/bokeh
Commit Name: 947e3c02d66cb62192ee1ea5e4a71d47b3477b33
Time: 2015-12-19
Author: bryanv@continuum.io
File Name: examples/embed/widget.py
Class Name:
Method Name:


Project Name: qq547276542/Agriculture_KnowledgeGraph
Commit Name: 2d8e34bbd07213d0c2dda07c9926e9aaa2793e38
Time: 2018-03-19
Author: kjmd2d@sina.cn
File Name: wikidataSpider/wikidataRelation/wikidataRelation/pipelines.py
Class Name: WikidatarelationPipeline
Method Name: process_item