<commit_before>import numpy as np
import numpy.matlib
from numpy.testing import assert_array_equal, assert_

def test_empty():
    x = np.matlib.empty((2,))
    assert_(isinstance(x, np.matrix))
    assert_(x.shape, (1,2))

def test_ones():
    assert_array_equal(np.matlib.ones((2, 3)),
                       np.matrix([[ 1.,  1.,  1.],
                                 [ 1.,  1.,  1.]]))

    assert_array_equal(np.matlib.ones(2), np.matrix([[ 1.,  1.]]))

def test_zeros():
    assert_array_equal(np.matlib.zeros((2, 3)),
                       np.matrix([[ 0.,  0.,  0.],
                                 [ 0.,  0.,  0.]]))

    assert_array_equal(np.matlib.zeros(2), np.matrix([[ 0.,  0.]]))

def test_identity():
    x = np.matlib.identity(2, dtype=np.int)
    assert_array_equal(x, np.matrix([[1, 0], [0, 1]]))<commit_msg>BUG: Import run_module_suite in test_matlib.py<commit_after>import numpy as np
import numpy.matlib
from numpy.testing import assert_array_equal, assert_, run_module_suite

def test_empty():
    x = np.matlib.empty((2,))
    assert_(isinstance(x, np.matrix))
    assert_(x.shape, (1,2))

def test_ones():
    assert_array_equal(np.matlib.ones((2, 3)),
                       np.matrix([[ 1.,  1.,  1.],
                                 [ 1.,  1.,  1.]]))

    assert_array_equal(np.matlib.ones(2), np.matrix([[ 1.,  1.]]))

def test_zeros():
    assert_array_equal(np.matlib.zeros((2, 3)),
                       np.matrix([[ 0.,  0.,  0.],
                                 [ 0.,  0.,  0.]]))

    assert_array_equal(np.matlib.zeros(2), np.matrix([[ 0.,  0.]]))

def test_identity():
    x = np.matlib.identity(2, dtype=np.int)
    assert_array_equal(x, np.matrix([[1, 0], [0, 1]]))
{'fraction_non_alphanumeric': 0.18410286382232613, 'fraction_numerical': 0.03506721215663355, 'mean_word_length': 2.2, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7027912', 'n_tokens_mistral': 654, 'n_tokens_neox': 625, 'n_words': 122}