<commit_before>from itertools import ifilter
from dimagi.utils.couch.database import is_bigcouch
from django.http import HttpResponse
import json
from restkit.errors import RequestFailed
import itertools

try:
    # this isn't actually part of dimagi-utils
    # but this is temporary and don't want to do a bigger reorg
    from corehq.util.view_utils import expect_GET
except ImportError:
    def expect_GET(request):
        assert request.method == 'GET'
        request.GET if request.method == 'GET' else request.POST

DEFAULT_DISPLAY_LENGTH = "10"
DEFAULT_START = "0"
DEFAULT_ECHO = "0"


class DatatablesParams(object):

    def __init__(self, count, start, desc, echo, search=None):
        self.count = count
        self.start = start
        self.desc = desc
        self.echo = echo<commit_msg>remove unreachable else<commit_after>from itertools import ifilter
from dimagi.utils.couch.database import is_bigcouch
from django.http import HttpResponse
import json
from restkit.errors import RequestFailed
import itertools

try:
    # this isn't actually part of dimagi-utils
    # but this is temporary and don't want to do a bigger reorg
    from corehq.util.view_utils import expect_GET
except ImportError:
    def expect_GET(request):
        assert request.method == 'GET'
        return request.GET

DEFAULT_DISPLAY_LENGTH = "10"
DEFAULT_START = "0"
DEFAULT_ECHO = "0"


class DatatablesParams(object):

    def __init__(self, count, start, desc, echo, search=None):
        self.count = count
        self.start = start
        self.desc = desc
        self.echo = echo
{'fraction_non_alphanumeric': 0.07313997477931904, 'fraction_numerical': 0.005044136191677175, 'mean_word_length': 3.508522727272727, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4490234', 'n_tokens_mistral': 474, 'n_tokens_neox': 465, 'n_words': 155}