73162ce7ca689cd10f67b823f54d3fbf81e8ee91,doc/source/conf.py,,filtered_files,#Any#Any#,397

Before Change




def filtered_files(base, excludes=()):
    excludes = set(base + "/" + e for e in excludes)
    for root, _dirs, files in os.walk(base):
        for filename in files:
            full = root + "/" + filename
            if filename.endswith(".py") and not filename.startswith("_"):

After Change


        lines = [line.rstrip() for line in f]
    // Skip comments and empty lines to get list of files we DON"T want to
    // filter out; this is definitely complicated
    unfiltered = set(
        line for line in lines if not line.startswith("//") and line != "")
    for root, _dirs, files in os.walk(base):
        for filename in files:
            if filename.endswith(".py") and not filename.startswith("_"):
                full = root + "/" + filename
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 73162ce7ca689cd10f67b823f54d3fbf81e8ee91
Time: 2021-02-25
Author: donal.k.fellows@manchester.ac.uk
File Name: doc/source/conf.py
Class Name:
Method Name: filtered_files


Project Name: pantsbuild/pants
Commit Name: 1e3f7071cf4095abfface461164703106563c459
Time: 2016-02-22
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/scheduler.py
Class Name: LocalScheduler
Method Name: schedule


Project Name: biolab/orange3
Commit Name: 8d4d199c35f5163ed21ae705a16ce3c8548d60c6
Time: 2012-11-28
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/io.py
Class Name: BasketReader
Method Name: prescan_file