<commit_before>import mimetypes
import pyrax
import re
import swiftclient
from gzip import GzipFile
from StringIO import StringIO

from django.core.files.base import File, ContentFile
from django.core.files.storage import Storage

from cumulus.settings import CUMULUS

<commit_msg>Faster version of StringIO https://docs.python.org/2/library/stringio.html#module-cStringIO<commit_after>import mimetypes
import pyrax
import re
import swiftclient
from gzip import GzipFile

try:
    from cStringIO import StringIO
except ImportError:
    from StringIO import StringIO

from django.core.files.base import File, ContentFile
from django.core.files.storage import Storage

from cumulus.settings import CUMULUS


{'fraction_non_alphanumeric': 0.04964539007092199, 'fraction_numerical': 0.0014184397163120568, 'mean_word_length': 5.537037037037037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4467467', 'n_tokens_mistral': 205, 'n_tokens_neox': 201, 'n_words': 69}