<commit_before>
from django.conf import settings


FILER_ADDONS_DUPLICATE_HANDLING = getattr(
    settings, 'FILER_ADDONS_DUPLICATE_HANDLING', {
        'prevent': True,
        'same_folder_required': True,
        'same_filename_required': True,
        'rename_files': True,
    }
)


FILER_ADDONS_UNFILED_HANDLING = getattr(
    settings, 'FILER_ADDONS_UNFILED_HANDLING', {
        'move_unfiled': True,
        'default_folder_name': '0 - Direct Uploads',
    }
)<commit_msg>new settings moder for filer_signals<commit_after>
from django.conf import settings


FILER_ADDONS_DUPLICATE_HANDLING = getattr(
    settings, 'FILER_ADDONS_DUPLICATE_HANDLING', {
        'prevent': True,
        'created_only': True,
        'same_folder_required': True,
        'same_filename_required': True,
        # TODO: as own setting/signal? 'rename_files': True,
    }
)

FILER_ADDONS_RENAME_FILES = getattr(
    settings, 'FILER_ADDONS_RENAME_FILES', True
)

FILER_ADDONS_UNFILED_HANDLING = getattr(
    settings, 'FILER_ADDONS_UNFILED_HANDLING', {
        'move_unfiled': True,
        'created_only': True,
        'default_folder_name': '0 - Direct Uploads',
    }
)
{'fraction_non_alphanumeric': 0.10077519379844961, 'fraction_numerical': 0.0017226528854435831, 'mean_word_length': 3.611111111111111, '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': '4804002', 'n_tokens_mistral': 428, 'n_tokens_neox': 412, 'n_words': 71}