<commit_before># -*- coding: utf-8 -*-
# vim: set ts=4
from django.db import models

from benevole import Benevole
from DPS import Dimensionnement

from dulsine_commons import TEAM_TYPES, DIPLOME_SECOURS


class Team(models.Model):
    class Meta:
        app_label = 'DUlSine'

    dimensionnement = models.ForeignKey(Dimensionnement)
    team_type = models.IntegerField(choices = TEAM_TYPES)
    taille = models.IntegerField()

    def __unicode__(self):
        return u"%s (%s)" %(self.dimensionnement, TEAM_TYPES[self.team_type][1])



class Souhait(models.Model):
    class Meta:
        app_label = 'DUlSine'

    benevole = models.ForeignKey(Benevole)
    dimensionnement = models.ForeignKey(Dimensionnement)
    fonction = models.IntegerField(choices = DIPLOME_SECOURS)
    date = models.DateTimeField(auto_now_add = True)

    def __unicode__(self):
        return u"%s => %s : %s" %(self.dimensionnement,  self.fonction, self.benevole)



class Inscription(models.Model):
    class Meta:
        app_label = 'DUlSine'

    benevole = models.ForeignKey(Benevole)
    team = models.ForeignKey(Team)
    fonction = models.IntegerField(choices = DIPLOME_SECOURS)

    def __unicode__(self):
        return u"%s => %s : %s" %(self.team, self.fonction, self.benevole)
<commit_msg>Models: build corerctly the unicode string<commit_after># -*- coding: utf-8 -*-
# vim: set ts=4
from django.db import models

from benevole import Benevole
from DPS import Dimensionnement

from dulsine_commons import TEAM_TYPES, DIPLOME_SECOURS


class Team(models.Model):
    class Meta:
        app_label = 'DUlSine'

    dimensionnement = models.ForeignKey(Dimensionnement)
    team_type = models.IntegerField(choices = TEAM_TYPES)
    taille = models.IntegerField()

    def __unicode__(self):
        return u"%s (%s)" %(self.dimensionnement, TEAM_TYPES[self.team_type][1])



class Souhait(models.Model):
    class Meta:
        app_label = 'DUlSine'

    benevole = models.ForeignKey(Benevole)
    dimensionnement = models.ForeignKey(Dimensionnement)
    fonction = models.IntegerField(choices = DIPLOME_SECOURS)
    date = models.DateTimeField(auto_now_add = True)

    def __unicode__(self):
        return u"%s => %s : %s" %(self.dimensionnement,  DIPLOME_SECOURS[self.fonction][1], self.benevole)



class Inscription(models.Model):
    class Meta:
        app_label = 'DUlSine'

    benevole = models.ForeignKey(Benevole)
    team = models.ForeignKey(Team)
    fonction = models.IntegerField(choices = DIPLOME_SECOURS)

    def __unicode__(self):
        return u"%s => %s : %s" %(self.team, DIPLOME_SECOURS[self.fonction][1], self.benevole)

{'fraction_non_alphanumeric': 0.1110269041303524, 'fraction_numerical': 0.0030314513073133762, 'mean_word_length': 3.8351648351648353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6763706', 'n_tokens_mistral': 927, 'n_tokens_neox': 905, 'n_words': 185}