<commit_before>from pysb.integrate import Solver
from pysb.examples.robertson import model
import numpy as np

def test_robertson_integration():
    t = np.linspace(0, 100)
    sol = Solver(model, t)
    sol.run()
    assert sol.y.shape[0] == t.shape[0]
<commit_msg>Tests of the Solver on Robertson and EARM 1.0<commit_after>from pysb.integrate import Solver
from pysb.examples import robertson, earm_1_0
import numpy as np

def test_robertson_integration():
    t = np.linspace(0, 100)
    # Run with and without inline
    Solver._use_inline = False
    sol = Solver(robertson.model, t, use_jacobian=True)
    sol.run()
    assert sol.y.shape[0] == t.shape[0]
    # Run with and without inline
    Solver._use_inline = True
    sol = Solver(robertson.model, t, use_jacobian=True)
    sol.run()

def test_earm_integration():
    t = np.linspace(0, 1e4, 1000)
    # Run with and without inline
    Solver._use_inline = False
    sol = Solver(earm_1_0.model, t, use_jacobian=True)
    sol.run()
    Solver._use_inline = True
    sol = Solver(earm_1_0.model, t, use_jacobian=True)
    sol.run()


{'fraction_non_alphanumeric': 0.10420475319926874, 'fraction_numerical': 0.024680073126142597, 'mean_word_length': 3.5625, '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': '6512268', 'n_tokens_mistral': 435, 'n_tokens_neox': 414, 'n_words': 102}