<commit_before># This file is part of Indico.
# Copyright (C) 2002 - 2022 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.

import re

from flask import render_template, session

from indico.core import signals
from indico.util.signals import values_from_signal


class Previewer:
    """Base class for file previewers.

    To create a new file prewiewer, subclass this class and register it using
    the `get_file_previewers` signal.
    """

    ALLOWED_CONTENT_TYPE = None
    TEMPLATES_DIR = 'attachments/previewers/'
    TEMPATE = None
<commit_msg>Fix typo<commit_after># This file is part of Indico.
# Copyright (C) 2002 - 2022 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.

import re

from flask import render_template, session

from indico.core import signals
from indico.util.signals import values_from_signal


class Previewer:
    """Base class for file previewers.

    To create a new file prewiewer, subclass this class and register it using
    the `get_file_previewers` signal.
    """

    ALLOWED_CONTENT_TYPE = None
    TEMPLATES_DIR = 'attachments/previewers/'
    TEMPLATE = None

{'fraction_non_alphanumeric': 0.060790273556231005, 'fraction_numerical': 0.0121580547112462, 'mean_word_length': 3.7717391304347827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '958799', 'n_tokens_mistral': 418, 'n_tokens_neox': 388, 'n_words': 163}