<commit_before># -*- coding: utf-8 -*-
"""
The purpose of the utils.fixes module is to provide
fixes to non version-invariant methods or behavior.
We want to perform as view version-specific checks
as possible, so anything that requires version-specific
behavior should be placed in fixes.
Author: <NAME>
"""

from __future__ import division, absolute_import, print_function
import numbers
import numpy as np
import pandas as pd
import sklearn
import sys
from types import NoneType
from abc import ABCMeta, abstractmethod
from sklearn.base import BaseEstimator, MetaEstimatorMixin, is_classifier, clone
from sklearn.externals import six
from sklearn.externals.joblib import Parallel, delayed
from sklearn.utils.validation import _num_samples, indexable, check_is_fitted
from sklearn.metrics.scorer import check_scoring
from collections import namedtuple, Sized
from .metaestimators import if_delegate_has_method
import warnings

__all__ = [
    'dict_keys',
    'dict_values',
    'is_iterable'
]
<commit_msg>Remove NoneType import and replace with "NoneType = type(None)" to be Python2/3 compliant.<commit_after># -*- coding: utf-8 -*-
"""
The purpose of the utils.fixes module is to provide
fixes to non version-invariant methods or behavior.
We want to perform as view version-specific checks
as possible, so anything that requires version-specific
behavior should be placed in fixes.
Author: <NAME>
"""

from __future__ import division, absolute_import, print_function
import numbers
import numpy as np
import pandas as pd
import sklearn
import sys
from abc import ABCMeta, abstractmethod
from sklearn.base import BaseEstimator, MetaEstimatorMixin, is_classifier, clone
from sklearn.externals import six
from sklearn.externals.joblib import Parallel, delayed
from sklearn.utils.validation import _num_samples, indexable, check_is_fitted
from sklearn.metrics.scorer import check_scoring
from collections import namedtuple, Sized
from .metaestimators import if_delegate_has_method
import warnings

NoneType = type(None)

__all__ = [
    'dict_keys',
    'dict_values',
    'is_iterable'
]

{'fraction_non_alphanumeric': 0.06025824964131994, 'fraction_numerical': 0.001912960306073649, 'mean_word_length': 5.517133956386293, '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': '5409980', 'n_tokens_mistral': 592, 'n_tokens_neox': 578, 'n_words': 233}