

def _collect_recursively(directory, result):
    for name in os.listdir(directory):
        if (not re.search('^\\.', name)):
            fullpath = os.path.join(directory, name)
            if re.search('\\.py$', name):
                fullpath.append(fullpath)
            elif os.path.isdir(fullpath):
                _collect_recursively(fullpath, result)

dataset/ETHPy150Open beregond/jsonmodels/tests/test_project.py _collect_recursively/VarMisuse@64/77 `result`->`fullpath`