<commit_before>import unittest

from SloppyCell.ReactionNetworks import *
from TestNetwork import net, m, params

m.cost(params)

class test_Plotting(unittest.TestCase):
    def test_data_plot(self):
        """Ensure plotting basic data doesn't crash"""
        Plotting.plot_model_data(m)

    def test_results_plot(self):
        """Ensure plotting basic results doesn't crash"""
        Plotting.plot_model_results(m)

# Only run if Plotting available
import SloppyCell
_HAVE_PLOTTING = hasattr(SloppyCell, 'Plotting')
no_plotting_msg = 'Plotting not available.'
if _HAVE_PLOTTING:
    suite = unittest.makeSuite(test_Plotting)
else:
    message = no_plotting_msg<commit_msg>Protect test_Plotting from broken cost evaluation.<commit_after>import unittest

from SloppyCell.ReactionNetworks import *
from TestNetwork import net, m, params

class test_Plotting(unittest.TestCase):
    def test_data_plot(self):
        """Ensure plotting basic data doesn't crash"""
        m.cost(params)
        Plotting.plot_model_data(m)

    def test_results_plot(self):
        """Ensure plotting basic results doesn't crash"""
        m.cost(params)
        Plotting.plot_model_results(m)

# Only run if Plotting available
import SloppyCell
_HAVE_PLOTTING = hasattr(SloppyCell, 'Plotting')
no_plotting_msg = 'Plotting not available.'
if _HAVE_PLOTTING:
    suite = unittest.makeSuite(test_Plotting)
else:
    message = no_plotting_msg
{'fraction_non_alphanumeric': 0.08421052631578947, 'fraction_numerical': 0.0, 'mean_word_length': 4.484615384615385, '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': '4518983', 'n_tokens_mistral': 473, 'n_tokens_neox': 449, 'n_words': 111}