<commit_before>from django.core.urlresolvers import reverse, NoReverseMatch
from corehq.apps.reports.standard.deployments import DeploymentsReport
from corehq.apps.reports.datatables import DataTablesHeader, DataTablesColumn
from corehq.apps.reports.standard.forms.filters import SubmissionTypeFilter, SubmissionErrorType
from corehq.const import SERVER_DATETIME_FORMAT
from corehq.util.timezones.conversions import ServerTime
from couchforms.analytics import get_number_of_forms_of_all_types
from couchforms.dbaccessors import get_forms_by_type, get_number_of_forms_by_type

from dimagi.utils.couch.pagination import FilteredPaginator, CouchFilter
from corehq.apps.reports.display import xmlns_to_name
from django.utils.translation import ugettext_noop
from django.utils.translation import ugettext as _


def _compare_submissions(x, y):
    # these are backwards because we want most recent to come first
    return cmp(y.received_on, x.received_on)


class SubmitFilter(CouchFilter):

    def __init__(self, domain, doc_type):
        self.domain = domain
        self.doc_type = doc_type

    def get_total(self):<commit_msg>missed a file<commit_after>from django.core.urlresolvers import reverse, NoReverseMatch
from corehq.apps.reports.standard.deployments import DeploymentsReport
from corehq.apps.reports.datatables import DataTablesHeader, DataTablesColumn
from corehq.apps.reports.standard.forms.filters import SubmissionTypeFilter, SubmissionErrorType
from corehq.const import SERVER_DATETIME_FORMAT
from corehq.util.timezones.conversions import ServerTime
from couchforms.analytics import get_number_of_forms_of_all_types, get_number_of_forms_by_type
from couchforms.dbaccessors import get_forms_by_type

from dimagi.utils.couch.pagination import FilteredPaginator, CouchFilter
from corehq.apps.reports.display import xmlns_to_name
from django.utils.translation import ugettext_noop
from django.utils.translation import ugettext as _


def _compare_submissions(x, y):
    # these are backwards because we want most recent to come first
    return cmp(y.received_on, x.received_on)


class SubmitFilter(CouchFilter):

    def __init__(self, domain, doc_type):
        self.domain = domain
        self.doc_type = doc_type

    def get_total(self):
{'fraction_non_alphanumeric': 0.05580159433126661, 'fraction_numerical': 0.0, 'mean_word_length': 6.037383177570093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7477907', 'n_tokens_mistral': 700, 'n_tokens_neox': 671, 'n_words': 167}