1d81426549101e47e424deb57846703ff1041e2a,lib/prosr/utils/misc.py,,get_filenames,#Any#Any#,26

Before Change


    // Seamlessy load single files, list of files and files from directories.
    if len(source) and os.path.isdir(source[0]):
        source_fns = sorted(
            glob.glob("{}/*.{}".format(source[0], image_format)))
    else:
        source_fns = source

After Change


    if isinstance(source, str):
        if os.path.isdir(source):
            source_fns = sorted(
                glob.glob("{}/*.{}".format(source, image_format)))
        elif os.path.isfile(source):
            source_fns = [source]
        assert(all([is_image_file(f) for f in source_fns])), "Given files contain files with unsupported format"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: fperazzi/proSR
Commit Name: 1d81426549101e47e424deb57846703ff1041e2a
Time: 2018-07-31
Author: yifanwang2010@gmail.com
File Name: lib/prosr/utils/misc.py
Class Name:
Method Name: get_filenames


Project Name: philipperemy/deep-speaker
Commit Name: e9edc14b48dacc54c52e2330b1b7c570a1702fd4
Time: 2020-04-06
Author: premy.enseirb@gmail.com
File Name: v4/train2.py
Class Name:
Method Name: start_training


Project Name: tensorflow/minigo
Commit Name: 9a89c1513730afa2aa237645db002256b2aaeebc
Time: 2019-04-02
Author: tmadams@google.com
File Name: ml_perf/get_data.py
Class Name:
Method Name: main