<commit_before>from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.db import models
from jsonfield.fields import JSONField
from model_utils import Choices
from model_utils.models import TimeStampedModel

from .constants import PARTNER_USER_STATUS_WAITING, PARTNER_USER_STATUS_APPROVED


class Partner(TimeStampedModel):
    """
    This model represents white-labelled partners.
    """
    performance_url = models.URLField(blank=True, default=None)
    label = models.CharField(max_length=100)
    main_logo = models.CharField(max_length=255)
    small_logo = models.CharField(max_length=255)
    slug = models.CharField(max_length=100, unique=True)
    configuration = JSONField(null=False, blank=True, default={"USER_LIMIT": ""})
<commit_msg>Fixed the JSON field single quotes error<commit_after>from json import dumps

from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.db import models
from jsonfield.fields import JSONField
from model_utils import Choices
from model_utils.models import TimeStampedModel

from .constants import PARTNER_USER_STATUS_WAITING, PARTNER_USER_STATUS_APPROVED


class Partner(TimeStampedModel):
    """
    This model represents white-labelled partners.
    """
    performance_url = models.URLField(blank=True, default=None)
    label = models.CharField(max_length=100)
    main_logo = models.CharField(max_length=255)
    small_logo = models.CharField(max_length=255)
    slug = models.CharField(max_length=100, unique=True)
    configuration = JSONField(null=False, blank=True, default=dumps({"USER_LIMIT": ""}))

{'fraction_non_alphanumeric': 0.08313253012048193, 'fraction_numerical': 0.014457831325301205, 'mean_word_length': 5.807377049180328, 'pattern_counts': {'":': 2, '<': 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': '5306692', 'n_tokens_mistral': 499, 'n_tokens_neox': 483, 'n_words': 114}