<commit_before>import numpy as np
from msmbuilder.msm import _strongly_connected_subgraph

def test_0():
    # what do you do with 1 state that is not even connected
    # to itself?
    tC, m, p_r = _strongly_connected_subgraph(np.zeros((1,1)))
    assert tC.shape == (0, 0)
    assert m == {}
    assert np.isnan(a)

def test_01():
    # but if that state does have a self-connection, it should be retained
    tC, m, p_r = _strongly_connected_subgraph(np.ones((1,1)))
    assert tC.shape == (1, 1)
    assert m == {0: 0}
    assert p_r == 100

def test_1():
    C = np.array([[1,0,0],
                  [0,1,1],
                  [0,1,1]])

    tC, m, p_r = _strongly_connected_subgraph(np.array(C))<commit_msg>wrong variable name fix<commit_after>import numpy as np
from msmbuilder.msm import _strongly_connected_subgraph

def test_0():
    # what do you do with 1 state that is not even connected
    # to itself?
    tC, m, p_r = _strongly_connected_subgraph(np.zeros((1,1)))
    assert tC.shape == (0, 0)
    assert m == {}
    assert np.isnan(p_r)

def test_01():
    # but if that state does have a self-connection, it should be retained
    tC, m, p_r = _strongly_connected_subgraph(np.ones((1,1)))
    assert tC.shape == (1, 1)
    assert m == {0: 0}
    assert p_r == 100

def test_1():
    C = np.array([[1,0,0],
                  [0,1,1],
                  [0,1,1]])

    tC, m, p_r = _strongly_connected_subgraph(np.array(C))
{'fraction_non_alphanumeric': 0.13194444444444445, 'fraction_numerical': 0.0375, 'mean_word_length': 2.792105263157895, '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': '6883811', 'n_tokens_mistral': 557, 'n_tokens_neox': 539, 'n_words': 152}