<commit_before>from django.db import models


class Setting(models.Model):
    name = models.CharField(max_length=40, unique=True)
    label = models.CharField(max_length=60)
    help_text = models.TextField()
    current_value = models.TextField(blank=True, null=True)

    class Meta:
        app_label = 'setmagic'

    def __str__(self):
        return u'{name} ({label})'.format(
            name=self.name,
            label=self.label,
        )
<commit_msg>Add model unicode support for Python 2<commit_after>from django.db import models
from django.utils.encoding import python_2_unicode_compatible


@python_2_unicode_compatible
class Setting(models.Model):
    name = models.CharField(max_length=40, unique=True)
    label = models.CharField(max_length=60)
    help_text = models.TextField()
    current_value = models.TextField(blank=True, null=True)

    class Meta:
        app_label = 'setmagic'

    def __str__(self):
        return u'{name} ({label})'.format(
            name=self.name,
            label=self.label,
        )

{'fraction_non_alphanumeric': 0.10803059273422562, 'fraction_numerical': 0.010516252390057362, 'mean_word_length': 3.188, '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': '1024887', 'n_tokens_mistral': 331, 'n_tokens_neox': 314, 'n_words': 65}