<commit_before>import mimetypes

# This module is used by PastyAppConfig.ready().


EXTRA_TYPES = {
    '.yaml': 'application/x-yaml',
}


def add_content_types():
    """Load extra content types for classifying pastes."""
    for ext in EXTRA_TYPES:
        mimetypes.add_type(EXTRA_TYPES[ext], ext)<commit_msg>More content types overrding App Engine's defaults.<commit_after>import mimetypes

# This module is used by PastyAppConfig.ready().


EXTRA_TYPES = {
    '.yaml': 'application/x-yaml',
    '.json': 'application/json',    # App Engine: text/plain
    '.js': 'application/javascript',    # App Engine: application/x-javascript
}


def add_content_types():
    """Load extra content types for classifying pastes."""
    for ext in EXTRA_TYPES:
        mimetypes.add_type(EXTRA_TYPES[ext], ext)
{'fraction_non_alphanumeric': 0.12344139650872818, 'fraction_numerical': 0.0, 'mean_word_length': 3.9263803680981595, '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': '7183764', 'n_tokens_mistral': 259, 'n_tokens_neox': 257, 'n_words': 67}