

def is_suppressed(self, view, filename):
    override_settings = view.settings().get('file_history', dict())
    exclude_patterns = (self.PATH_EXCLUDE_PATTERNS + override_settings.get('path_exclude_patterns', []))
    reinclude_patterns = (self.PATH_REINCLUDE_PATTERNS + override_settings.get('path_reinclude_patterns', []))
    filename = os.path.normpath(filename).replace('\\', '/')
    for exclude in exclude_patterns:
        if re.search(exclude, filename):
            self.debug(('[X] Exclusion pattern "%s" blocks history tracking for filename "%s"' % (exclude, filename)))
            for reinclude in reinclude_patterns:
                if re.search(reinclude, filename):
                    self.debug(('[O] Inclusion pattern "%s" re-includes history tracking for filename "%s"' % (reinclude, filename)))
                    return False
            return True
    return False

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.is_suppressed/original