4ab331db8a6380d4785ddffa45895fd4bce2459e,core/eolearn/core/eodata.py,EOPatch,walk_filtered,#,819

Before Change


    def walk_filtered(filesystem, patch_location, features):
         Based on EOPatch.walk generator, but applies feature filtering based on the `features` argument
        
        itr = EOPatch.walk(filesystem, patch_location)
        itr = ((FeatureType(ftype), fname, path) for ftype, fname, path in itr)

        features = FeatureParser(features).feature_collection
        for ftype, fname, path in itr:

After Change


         Based on EOPatch.walk generator, but applies feature filtering based on the `features` argument
        
        features = FeatureParser(features).feature_collection
        for ftype, fname, path in EOPatch.walk(filesystem, patch_location):
            if ftype.is_meta():
                yield ftype, fname, path
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 4ab331db8a6380d4785ddffa45895fd4bce2459e
Time: 2019-12-23
Author: jovan.visnjic@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: walk_filtered


Project Name: librosa/librosa
Commit Name: 4b7ac95fcffa7a947b61913df34f252ba168a3fa
Time: 2013-12-23
Author: brm2132@columbia.edu
File Name: librosa/util.py
Class Name:
Method Name: get_audio_files


Project Name: openml/openml-python
Commit Name: 3c680c10486e1a39789b5505a531c7ee4165607a
Time: 2021-02-12
Author: feurerm@informatik.uni-freiburg.de
File Name: tests/conftest.py
Class Name:
Method Name: read_file_list