<commit_before># Functions from the following SciPy document
# https://docs.scipy.org/doc/scipy/reference/sparse.linalg.html

# "NOQA" to suppress flake8 warning
from cupyx.scipy.sparse.linalg.solve import lsqr  # NOQA<commit_msg>deprecate cupy.sparse.linalg as well<commit_after>import sys
import warnings

import cupyx.scipy.sparse.linalg


if (3, 7) <= sys.version_info:
    def __getattr__(name):
        if hasattr(cupyx.scipy.sparse.linalg, name):
            warnings.warn(
                'cupy.sparse.linalg is deprecated.'
                ' Use cupyx.scipy.sparse.linalg instead.', DeprecationWarning)
            return getattr(cupyx.scipy.sparse.linalg, name)
        raise AttributeError(
            "module 'cupyx.scipy.sparse.linalg' has no attribute '{}'".format(
                name))
else:
    from cupyx.scipy.sparse.linalg import *  # NOQA
{'fraction_non_alphanumeric': 0.10685249709639953, 'fraction_numerical': 0.003484320557491289, 'mean_word_length': 2.8828828828828827, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3372150', 'n_tokens_mistral': 319, 'n_tokens_neox': 302, 'n_words': 60}