<commit_before>from django.conf import settings
import re

# characters to use to generate a slug
SLUG_CHARACTERS = getattr(settings, 'RANDOMSLUG_CHARACTERS', 
                          'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890')

# if SLUG_CHARACTERS consists of characters other than alphanumeric, hyphen or underscore,
# ValueError exception is raised
invalid_characters = re.search(r'[^a-z^A-Z^0-9^_^-]+', SLUG_CHARACTERS)
if invalid_characters is not None:
    raise ValueError('RANDOMSLUG_CHARACTERS setting has invalid characters %s' % invalid_characters.group())<commit_msg>remove upperscore characters from settings cause slugify turns them in lowercase anyway<commit_after>from django.conf import settings
import re

# characters to use to generate a slug
SLUG_CHARACTERS = getattr(settings, 'RANDOMSLUG_CHARACTERS', 
                          'abcdefghijklmnopqrstuvwxyz01234567890')

# if SLUG_CHARACTERS consists of characters other than alphanumeric, hyphen or underscore,
# ValueError exception is raised
invalid_characters = re.search(r'[^a-z^A-Z^0-9^_^-]+', SLUG_CHARACTERS)
if invalid_characters is not None:
    raise ValueError('RANDOMSLUG_CHARACTERS setting has invalid characters %s' % invalid_characters.group())
{'fraction_non_alphanumeric': 0.07472178060413355, 'fraction_numerical': 0.02066772655007949, 'mean_word_length': 5.358585858585859, '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': '5255996', 'n_tokens_mistral': 412, 'n_tokens_neox': 391, 'n_words': 106}