e5c62b49200a6adef9f9c92469b866161f999046,lambdas/pkgselect/index.py,,file_list_to_folder,#Any#,52

Before Change


    try:
        folder = pd.Series(df.logical_key.dropna().str.extract("([^/]+/?).*")[0].unique())
        prefixes = folder[folder.str.endswith("/")].sort_values().tolist()
        objects = folder[~folder.str.endswith("/")].sort_values().tolist()
    except AttributeError:
        // Pandas will raise an attribute error if the DataFrame has
        // no rows with a non-null logical_key. We expect that case if

After Change


            ["physical_key"],
            axis=1
        ).to_dict(orient="records")
        objects = folder[~folder.logical_key.str.contains("/")].to_dict(orient="records")
    except AttributeError as err:
        // Pandas will raise an attribute error if the DataFrame has
        // no rows with a non-null logical_key. We expect that case if
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: quiltdata/quilt
Commit Name: e5c62b49200a6adef9f9c92469b866161f999046
Time: 2020-09-23
Author: kevinemoore@gmail.com
File Name: lambdas/pkgselect/index.py
Class Name:
Method Name: file_list_to_folder


Project Name: snorkel-team/snorkel
Commit Name: 21678f424e8a7b0734e2dcc31d0a2ee2e10af097
Time: 2016-09-04
Author: ajratner@gmail.com
File Name: snorkel/annotations.py
Class Name: AnnotationManager
Method Name: load


Project Name: kermitt2/delft
Commit Name: 2f8a757849ae31ad6eedfd66b1a395922d7acf29
Time: 2020-11-11
Author: patrice.lopez@science-miner.com
File Name: delft/textClassification/reader.py
Class Name:
Method Name: load_dataseer_corpus_csv