<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from opps.core.models import NotUserPublishable


class Logging(NotUserPublishable):
    user = models.ForeignKey(
        settings.AUTH_USER_MODEL,
        null=True, blank=True,
    )
    application = models.CharField(
        _(u"Application"),
        max_length=75,
        null=True, blank=True,
        db_index=True)
    action = models.CharField(
        _(u"Action"),
        max_length=50,
        null=True, blank=True,
        db_index=True)
    text = models.TextField(
        _(u"Text"),
        null=True, blank=True,
        db_index=True)

    def save(self, *args, **kwargs):
        self.published = True
        super(Logging, self).save(*args, **kwargs)<commit_msg>Add missing translation on logging contrib app<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from opps.core.models import NotUserPublishable


class Logging(NotUserPublishable):
    user = models.ForeignKey(
        settings.AUTH_USER_MODEL,
        null=True, blank=True,
        verbose_name=_(u'User')
    )
    application = models.CharField(
        _(u"Application"),
        max_length=75,
        null=True, blank=True,
        db_index=True)
    action = models.CharField(
        _(u"Action"),
        max_length=50,
        null=True, blank=True,
        db_index=True)
    text = models.TextField(
        _(u"Text"),
        null=True, blank=True,
        db_index=True)

    def save(self, *args, **kwargs):
        self.published = True
        super(Logging, self).save(*args, **kwargs)

    class Meta:
        verbose_name = _(u'Logging')
        verbose_name_plural = _(u'Loggings')
{'fraction_non_alphanumeric': 0.1156677181913775, 'fraction_numerical': 0.005257623554153523, 'mean_word_length': 2.695145631067961, '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': '5540608', 'n_tokens_mistral': 602, 'n_tokens_neox': 585, 'n_words': 126}