543114f91fbbd32d6b04ed943963d5c1a9fb1415,imutils/paths.py,,list_files,#,8

Before Change


            ext = filename[filename.rfind("."):].lower()

            // check to see if the file is an image and should be processed
            if ext.endswith(validExts):
                // construct the path to the image and yield it
                imagePath = os.path.join(rootDir, filename).replace(" ", "\\ ")
                yield imagePath

After Change


            ext = filename[filename.rfind("."):].lower()

            // check to see if the file is an image and should be processed
            if validExts is None or ext.endswith(validExts):
                // construct the path to the image and yield it
                imagePath = os.path.join(rootDir, filename)
                yield imagePath
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: jrosebr1/imutils
Commit Name: 543114f91fbbd32d6b04ed943963d5c1a9fb1415
Time: 2018-10-26
Author: tim@skypanther.com
File Name: imutils/paths.py
Class Name:
Method Name: list_files


Project Name: brian-team/brian2
Commit Name: f8a2154bab27f57ab02f3c626dce95879668876d
Time: 2017-10-06
Author: marcel.stimberg@inserm.fr
File Name: dev/tools/run_examples.py
Class Name: SelectFilesPlugin
Method Name: find_examples


Project Name: nipy/dipy
Commit Name: ae625bfe4149d612e5cf067c13597fc7ee1a74e1
Time: 2019-02-22
Author: garyfallidis@gmail.com
File Name: dipy/workflows/viz.py
Class Name: HorizonFlow
Method Name: run


Project Name: scikit-learn/scikit-learn
Commit Name: 90dc61f239a19e072df1409a23440768331b7d0c
Time: 2020-07-31
Author: rth.yurchak@gmail.com
File Name: conftest.py
Class Name:
Method Name: pytest_collection_modifyitems