def getFilesToAnnotate(baseDirs=[], filesToFind=[], exclude=[]):

    notExists = set(filesToFind)
    addAll = not filesToFind

    allFiles = set(x for x in filesToFind if os.path.exists(x))
    filesToFind = [ x for x in filesToFind if allFiles not in x ]

    if not isinstance(exclude, list):
        exclude = [ exclude ]
    negFilters = ['sqlite'] + exclude

    baseDirs = [ os.path.realpath(x) for x in baseDirs ]
    for baseDir in baseDirs:
        for root, dirs, pathList in os.walk(baseDir):
            for path in filesToFind:
                if os.path.exists(os.path.join(root, path)):
                    allFiles.add(os.path.join(root, path))
                    notExists.discard(path)

            if addAll:
                for path in pathList:
                    fullPath = '/'.join((root, path))
                    if _isPythonFile(fullPath, negFilters=negFilters):
                        allFiles.add(fullPath)
    return list(allFiles), notExists
dataset/ETHPy150Open sassoftware/conary/conary_test/coveragewrapper.py/getFilesToAnnotate/swapped operands of `not in`