<commit_before># coding: utf-8

from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.test import Client, TransactionTestCase
from django.utils.encoding import smart_text
from ...models import *
from datetime import date
from .utils import new, log_as_superuser


class LieuTestCase(TransactionTestCase):
    cleans_up_after_itself = True

    def setUp(self):
        theatre = new(NatureDeLieu, nom='théâtre')
        ville = new(NatureDeLieu, nom='ville')
        self.rouen = new(LieuDivers, nom='Rouen', nature=ville)
        self.theatre_des_arts = new(Institution,
                                    nom='Théâtre des Arts', nature=theatre,
                                    parent=self.rouen)
        # Test client
        self.client = Client()
        log_as_superuser(self)

    def testComputedNames(self):<commit_msg>Réorganise un import.<commit_after># coding: utf-8

from __future__ import unicode_literals
from datetime import date
from django.core.urlresolvers import reverse
from django.test import Client, TransactionTestCase
from django.utils.encoding import smart_text
from ...models import *
from .utils import new, log_as_superuser


class LieuTestCase(TransactionTestCase):
    cleans_up_after_itself = True

    def setUp(self):
        theatre = new(NatureDeLieu, nom='théâtre')
        ville = new(NatureDeLieu, nom='ville')
        self.rouen = new(LieuDivers, nom='Rouen', nature=ville)
        self.theatre_des_arts = new(Institution,
                                    nom='Théâtre des Arts', nature=theatre,
                                    parent=self.rouen)
        # Test client
        self.client = Client()
        log_as_superuser(self)

    def testComputedNames(self):
{'fraction_non_alphanumeric': 0.08248009101251422, 'fraction_numerical': 0.0011376564277588168, 'mean_word_length': 2.8239130434782607, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7042807', 'n_tokens_mistral': 512, 'n_tokens_neox': 501, 'n_words': 125}