5b5d9a9aedf8e11b9609d28b26b6488bc20cb08b,scripts/semantic_types.py,,merge_dynamic_libraries,#Any#Any#Any#Any#,309

Before Change


    // required_predicates = set(normalize_token(t) for t in doc.xpath("//token/@base"))
    coq_lib_index = {coq_lib_entry.split()[1] : coq_lib_entry \
                       for coq_lib_entry in coq_lib}
    nltk_lib_index = {nltk_lib_entry.split()[1] : nltk_lib_entry \
                        for nltk_lib_entry in nltk_lib}
    result_lib = []
    for predicate in required_predicates:
        if predicate in reserved_predicates:
            continue

After Change


            preds_to_remove.add(pred)
    for pred in preds_to_remove:
        if pred in sig_merged:
            del sig_merged[pred]
    // Convert into coq style library entries.
    dynamic_library = []
    for predicate, pred_type in sig_merged.items():
        library_entry = build_library_entry(predicate, pred_type)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: mynlp/ccg2lambda
Commit Name: 5b5d9a9aedf8e11b9609d28b26b6488bc20cb08b
Time: 2017-03-24
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: merge_dynamic_libraries


Project Name: aws/sagemaker-python-sdk
Commit Name: f76f8a8b17fa38f69a95b8af6475c39b81d7ad7e
Time: 2020-04-08
Author: 6631887+laurenyu@users.noreply.github.com
File Name: src/sagemaker/sklearn/estimator.py
Class Name: SKLearn
Method Name: create_model


Project Name: aws/sagemaker-python-sdk
Commit Name: f76f8a8b17fa38f69a95b8af6475c39b81d7ad7e
Time: 2020-04-08
Author: 6631887+laurenyu@users.noreply.github.com
File Name: src/sagemaker/xgboost/estimator.py
Class Name: XGBoost
Method Name: create_model