<commit_before>import warnings

import numpy as np
import scipy.sparse as sp
from scipy.special import iv  # modified Bessel function of first kind, I_v
from numpy import i0  # modified Bessel function of first kind order 0, I_0
from scipy.misc import logsumexp

from sklearn.base import BaseEstimator, ClusterMixin, TransformerMixin
from sklearn.cluster.k_means_ import _init_centroids, _tolerance, _validate_center_shape
from sklearn.utils.validation import FLOAT_DTYPES
from sklearn.utils.validation import check_is_fitted
from sklearn.utils import check_array, check_random_state, as_float_array
from sklearn.preprocessing import normalize
from sklearn.utils.extmath import squared_norm<commit_msg>Upgrade logsumexp from deprecated location.<commit_after>import warnings

import numpy as np
import scipy.sparse as sp
from scipy.special import iv  # modified Bessel function of first kind, I_v
from numpy import i0  # modified Bessel function of first kind order 0, I_0
from scipy.special import logsumexp

from sklearn.base import BaseEstimator, ClusterMixin, TransformerMixin
from sklearn.cluster.k_means_ import _init_centroids, _tolerance, _validate_center_shape
from sklearn.utils.validation import FLOAT_DTYPES
from sklearn.utils.validation import check_is_fitted
from sklearn.utils import check_array, check_random_state, as_float_array
from sklearn.preprocessing import normalize
from sklearn.utils.extmath import squared_norm
{'fraction_non_alphanumeric': 0.038274182324286705, 'fraction_numerical': 0.0041753653444676405, 'mean_word_length': 6.648936170212766, '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': '400505', 'n_tokens_mistral': 436, 'n_tokens_neox': 415, 'n_words': 147}