<commit_before>import numpy as np
from scipy.sparse.csr import csr_matrix
from scipy.sparse.lil import lil_matrix

from scipy.sparse.cs_graph import connected_components
from scipy.sparse.sputils import isdense

def is_transition_matrix(T, tol):
    """
    True if T is a transition matrix
    
    Parameters
    ----------
    T : scipy.sparse matrix
        Matrix to check
    tol : float
        tolerance to check with
    
    Returns
    -------
    Truth value: bool
        True, if T is positive and normed
        False, otherwise<commit_msg>corrected import<commit_after>import numpy as np
from scipy.sparse.csr import csr_matrix
from scipy.sparse.lil import lil_matrix

from scipy.sparse.csgraph import connected_components
from scipy.sparse.sputils import isdense

def is_transition_matrix(T, tol):
    """
    True if T is a transition matrix
    
    Parameters
    ----------
    T : scipy.sparse matrix
        Matrix to check
    tol : float
        tolerance to check with
    
    Returns
    -------
    Truth value: bool
        True, if T is positive and normed
        False, otherwise
{'fraction_non_alphanumeric': 0.0737410071942446, 'fraction_numerical': 0.0, 'mean_word_length': 2.3323353293413174, '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': '4655100', 'n_tokens_mistral': 341, 'n_tokens_neox': 336, 'n_words': 112}