<commit_before>from django.db import models
from django.utils.translation import ugettext_lazy as _


class Meal(models.Model):
    REGULAR = 'R'
    LARGE = 'L'

    SIZE = (
        (REGULAR, _('regular')),
        (LARGE, _('large')),
    )

    class Meta:
        verbose_name_plural = _('meals')

    # Meal information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )
    description = models.TextField(verbose_name=_('description'))
    size = models.CharField(
        max_length=1,
        choices=SIZE,
        default=REGULAR
    )
    ingredients = models.ManyToManyField(
        'meal.Ingredient',
        related_name='related_meals'
    )

    def __str__(self):
        return self.name


class Ingredient(models.Model):

    class Meta:
        verbose_name_plural = _('ingredients')

    # Ingredient information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )

    def __str__(self):
        return self.name


class Allergy(models.Model):

    class Meta:
        verbose_name_plural = _('allergies')

    # Allergy information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )
    description = models.TextField(verbose_name=_('description'))
    ingredients = models.ManyToManyField(
        'meal.Ingredient',
        related_name='related_allergies'
    )

    def __str__(self):
        return self.name


class Menu(models.Model):

    class Meta:
        verbose_name_plural = _('menus')

    # Menu information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )

    date = models.DateField(verbose_name=_('date'))

    ingredients = models.ManyToManyField(
        'meal.Ingredient',
        related_name='related_menus'
    )

    def __str__(self):
        return self.name<commit_msg>Updated name space for the related_name<commit_after>from django.db import models
from django.utils.translation import ugettext_lazy as _


class Meal(models.Model):
    REGULAR = 'R'
    LARGE = 'L'

    SIZE = (
        (REGULAR, _('regular')),
        (LARGE, _('large')),
    )

    class Meta:
        verbose_name_plural = _('meals')

    # Meal information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )
    description = models.TextField(verbose_name=_('description'))
    size = models.CharField(
        max_length=1,
        choices=SIZE,
        default=REGULAR
    )
    ingredients = models.ManyToManyField(
        'meal.Ingredient',
        related_name='meals'
    )

    def __str__(self):
        return self.name


class Ingredient(models.Model):

    class Meta:
        verbose_name_plural = _('ingredients')

    # Ingredient information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )

    def __str__(self):
        return self.name


class Allergy(models.Model):

    class Meta:
        verbose_name_plural = _('allergies')

    # Allergy information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )
    description = models.TextField(verbose_name=_('description'))
    ingredients = models.ManyToManyField(
        'meal.Ingredient',
        related_name='allergies'
    )

    def __str__(self):
        return self.name


class Menu(models.Model):

    class Meta:
        verbose_name_plural = _('menus')

    # Menu information
    name = models.CharField(
        max_length=50,
        verbose_name=_('name')
    )

    date = models.DateField(verbose_name=_('date'))

    ingredients = models.ManyToManyField(
        'meal.Ingredient',
        related_name='menus'
    )

    def __str__(self):
        return self.name
{'fraction_non_alphanumeric': 0.10868407032498668, 'fraction_numerical': 0.004794885455514118, 'mean_word_length': 2.4512867647058822, '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': '4423219', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1179, 'n_words': 214}