<commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import

import unittest

from flask.ext.login import AnonymousUserMixin

from abilian.core.entities import Entity
from abilian.core.extensions import db
from abilian.core.models.subjects import User, Group
from abilian.testing import BaseTestCase

from . import (security, RoleAssignment, InheritSecurity, Role,
               Anonymous, Authenticated, Admin)


TEST_EMAIL = u"<EMAIL>"
TEST_PASSWORD = "<PASSWORD>"


def init_user():
  user = User(first_name=u"Joe", last_name=u"User", email=TEST_EMAIL,
              password=<PASSWORD>)
  db.session.add(user)
  db.session.flush()<commit_msg>remove unused imports<commit_after># -*- coding: utf-8 -*-
from __future__ import absolute_import

import unittest

from flask.ext.login import AnonymousUserMixin

from abilian.core.entities import Entity
from abilian.core.extensions import db
from abilian.core.models.subjects import User, Group
from abilian.testing import BaseTestCase

from . import (security, RoleAssignment, InheritSecurity, Role,
               Admin)


TEST_EMAIL = u"<EMAIL>"
TEST_PASSWORD = "<PASSWORD>"


def init_user():
  user = User(first_name=u"Joe", last_name=u"User", email=TEST_EMAIL,
              password=<PASSWORD>)
  db.session.add(user)
  db.session.flush()
{'fraction_non_alphanumeric': 0.10365853658536585, 'fraction_numerical': 0.001524390243902439, 'mean_word_length': 4.448132780082988, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3848377', 'n_tokens_mistral': 418, 'n_tokens_neox': 402, 'n_words': 103}