

def split_filenames():
    for filename in glob.glob(test_filenames):
        if ((not filename.endswith('.py')) and (not filename.endswith('.pyc')) and (not filename.endswith('.result')) and (not filename.endswith('.ipynb')) and (not filename.endswith('.log')) and (not filename.startswith('__'))):
            (stem, ext) = filename.split('.', 1)
            (yield (os.path.split(filename)[1], stem, ext))

dataset/ETHPy150Open catherinedevlin/data-dispenser/tests/file_stems.py split_filenames/original