<commit_before>from __future__ import absolute_import, division, print_function
import types
try:
    import builtins
except ImportError:
    import __builtin__ as builtins

import datetime
from collections import Iterator
from itertools import islice, product
import os
import re

try:
    from cytoolz import nth, unique, concat, first, drop, curry
except ImportError:
    from toolz import nth, unique, concat, first, drop, curry

from datashape import dshape, Mono, DataShape
import numpy as np
# these are used throughout blaze, don't remove them
from odo.utils import tmpfile, filetext, filetexts, raises, keywords, ignoring
import pandas as pd
import psutil
import sqlalchemy as sa

# Imports that replace older utils.
from .compatibility import map, zip, PY2
from .dispatch import dispatch

<commit_msg>Use blaze compatibility module instead of try/except<commit_after>from __future__ import absolute_import, division, print_function
import types

import datetime
from collections import Iterator
from itertools import islice, product
import os
import re

try:
    from cytoolz import nth, unique, concat, first, drop, curry
except ImportError:
    from toolz import nth, unique, concat, first, drop, curry

from datashape import dshape, Mono, DataShape
import numpy as np
# these are used throughout blaze, don't remove them
from odo.utils import tmpfile, filetext, filetexts, raises, keywords, ignoring
import pandas as pd
import psutil
import sqlalchemy as sa

# Imports that replace older utils.
from .compatibility import map, zip, PY2, builtins
from .dispatch import dispatch


{'fraction_non_alphanumeric': 0.046511627906976744, 'fraction_numerical': 0.001257071024512885, 'mean_word_length': 5.21875, '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': '2587173', 'n_tokens_mistral': 445, 'n_tokens_neox': 438, 'n_words': 208}