<commit_before>"""
This module is intended to hold default constants.
Constants may be modified via project settings.py.
"""
from django.conf import settings

NEWMAN_URL_PREFIX = 'nm'

# AdminSettings
USER_CONFIG = 'newman_user_config'            # session key for AdminSettings JSON data
CATEGORY_FILTER = 'newman_category_filter'    # user defined category filtering on newman HP
NEWMAN_MARKUP_DEFAULT = getattr(settings, 'NEWMAN_MARKUP_DEFAULT', 'markdown')

# conversion functions mapping - from JSON to python (i.e. changing item datatypes etc.)
JSON_CONVERSIONS = (
    (CATEGORY_FILTER, 'decode_category_filter_json'),
)

# JsonResponse status "codes" (used instead of HTTP status codes)
STATUS_OK = "ok"
STATUS_GENERIC_ERROR = "error"
STATUS_SMTP_ERROR = "smtp_error"
STATUS_ADDED = "added"
STATUS_MODIFIED = "modified"
STATUS_FORM_ERROR = "form_error"
STATUS_VAR_MISSING = "variable_missing"
STATUS_OBJECT_NOT_FOUND = "object_not_found"

# Maximum autosave objects hold for bound object:
AUTOSAVE_MAX_AMOUNT = getattr(settings, 'NEWMAN_AUTOSAVE_MAX_AMOUNT', 3)

# List of applicable ContentTypes

NON_PUBLISHABLE_CTS = (
    'core.author',
    'photos.photo',
    'polls.survey',
)

# Models that have TaggingInlineAdmin in inlines
TAGGED_MODELS = getattr(settings, 'TAGGED_MODELS', (
    'photos.photo',
    'core.publishable',
    'articles.article',
    'galleries.gallery',
    'interviews.interview',
    'polls.quiz',
))
<commit_msg>Removed author from newman CT widget.<commit_after>"""
This module is intended to hold default constants.
Constants may be modified via project settings.py.
"""
from django.conf import settings

NEWMAN_URL_PREFIX = 'nm'

# AdminSettings
USER_CONFIG = 'newman_user_config'            # session key for AdminSettings JSON data
CATEGORY_FILTER = 'newman_category_filter'    # user defined category filtering on newman HP
NEWMAN_MARKUP_DEFAULT = getattr(settings, 'NEWMAN_MARKUP_DEFAULT', 'markdown')

# conversion functions mapping - from JSON to python (i.e. changing item datatypes etc.)
JSON_CONVERSIONS = (
    (CATEGORY_FILTER, 'decode_category_filter_json'),
)

# JsonResponse status "codes" (used instead of HTTP status codes)
STATUS_OK = "ok"
STATUS_GENERIC_ERROR = "error"
STATUS_SMTP_ERROR = "smtp_error"
STATUS_ADDED = "added"
STATUS_MODIFIED = "modified"
STATUS_FORM_ERROR = "form_error"
STATUS_VAR_MISSING = "variable_missing"
STATUS_OBJECT_NOT_FOUND = "object_not_found"

# Maximum autosave objects hold for bound object:
AUTOSAVE_MAX_AMOUNT = getattr(settings, 'NEWMAN_AUTOSAVE_MAX_AMOUNT', 3)

# List of applicable ContentTypes

NON_PUBLISHABLE_CTS = (
    'photos.photo',
    'polls.survey',
)

# Models that have TaggingInlineAdmin in inlines
TAGGED_MODELS = getattr(settings, 'TAGGED_MODELS', (
    'photos.photo',
    'core.publishable',
    'articles.article',
    'galleries.gallery',
    'interviews.interview',
    'polls.quiz',
))

{'fraction_non_alphanumeric': 0.09410548086866598, 'fraction_numerical': 0.0006894174422612892, 'mean_word_length': 5.32244008714597, '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': '1640167', 'n_tokens_mistral': 971, 'n_tokens_neox': 936, 'n_words': 240}