<commit_before># By <NAME> for the Emocracy project.

"""
This module contains the functions that implement the actions that a user can
take inside of the emocracy game. Functionality in this module should not depend
on request objects. Scripts on the server, the API views and the web views 
should all call into this module to play the emocracy game.

This module itself uses functions from the allow.py and score.py to see wether 
an action is allowed and how it affects the score of the players / the emocracy
world.
"""

import logging
import datetime

from django.utils.translation import ugettext as _
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.models import User

from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType


import allow
import score
from models import votes_to_description, Mandate, tag_count_threshold
from models import Vote, IssueBody, Issue<commit_msg>organized import statements<commit_after># By <NAME> for the Emocracy project.

"""
This module contains the functions that implement the actions that a user can
take inside of the emocracy game. Functionality in this module should not depend
on request objects. Scripts on the server, the API views and the web views 
should all call into this module to play the emocracy game.

This module itself uses functions from the allow.py and score.py to see wether 
an action is allowed and how it affects the score of the players / the emocracy
world.
"""

import logging
import datetime

from django.utils.translation import ugettext as _
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.models import User

from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType


import allow
import score
from models import Mandate, tag_count_threshold
from voting.models import Vote
from voting.models import Vote, Issue
from voting.models import votes_to_description
from issues.models import IssueBody
{'fraction_non_alphanumeric': 0.03736479842674533, 'fraction_numerical': 0.0, 'mean_word_length': 5.0385756676557865, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2735577', 'n_tokens_mistral': 506, 'n_tokens_neox': 491, 'n_words': 267}