<commit_before>from django.contrib.auth.models import User
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator, MaxLengthValidator
from django.db import models
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.template.defaultfilters import slugify

import bleach
import markdown
import uuid

name_validator = RegexValidator(
    regex=r"[a-zA-Z0-9_\-.:\s]+",
    message="Names can contain letters, numbers, dashes, periods, colons, and whitespace."
)

description_length_validator = MaxLengthValidator(2000)


def slug_validator(value):
    if not slugify(value):
        raise ValidationError('Please add some more characters to your team name')<commit_msg>Limit team names to use normal spaces<commit_after>from django.contrib.auth.models import User
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator, MaxLengthValidator
from django.db import models
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.template.defaultfilters import slugify

import bleach
import markdown
import uuid

name_validator = RegexValidator(
    regex=r"[a-zA-Z0-9_\-.: ]+",
    message="Names can contain letters, numbers, dashes, periods, colons, and whitespace."
)

description_length_validator = MaxLengthValidator(2000)


def slug_validator(value):
    if not slugify(value):
        raise ValidationError('Please add some more characters to your team name')
{'fraction_non_alphanumeric': 0.07326236693800876, 'fraction_numerical': 0.007514088916718848, 'mean_word_length': 5.522448979591837, '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': '3272047', 'n_tokens_mistral': 441, 'n_tokens_neox': 426, 'n_words': 143}