<commit_before># -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _

from polidata.models import Legislative, House, Politician


class Session(models.Model):

    """ Modelo para guardar las sesiones """

    legislative = models.ForeignKey(Legislative, verbose_name=_(u'Legislatura'), related_name='legislatives')
    house = models.ForeignKey(House, verbose_name=_(u'Cámara'), related_name='houses')
    date = models.DateField(_(u'Fecha'))
    number = models.IntegerField(_(u'Número'))
    short_name = models.CharField(_(u'Nombre corto'), max_length=100)
    ordinal = models.IntegerField(_(u'Ordinal'))<commit_msg>fix por problemas con los related_names<commit_after># -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _

from polidata.models import Legislative, House, Politician


class Session(models.Model):

    """ Modelo para guardar las sesiones """

    legislative = models.ForeignKey(Legislative, verbose_name=_(u'Legislatura'), related_name='legislatives_sessions')
    house = models.ForeignKey(House, verbose_name=_(u'Cámara'), related_name='houses_sessions')
    date = models.DateField(_(u'Fecha'))
    number = models.IntegerField(_(u'Número'))
    short_name = models.CharField(_(u'Nombre corto'), max_length=100)
    ordinal = models.IntegerField(_(u'Ordinal'))
{'fraction_non_alphanumeric': 0.12875536480686695, 'fraction_numerical': 0.005722460658082976, 'mean_word_length': 5.661904761904762, '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': '349417', 'n_tokens_mistral': 457, 'n_tokens_neox': 438, 'n_words': 90}