<commit_before>import pytest
import numpy as np
import yaml
import tardis
from tardis import io, model, simulation
from tardis.io.config_reader import TARDISConfiguration
from numpy.testing import assert_array_almost_equal
from astropy import units as u
import os


def data_path(fname):
    return os.path.join(tardis.__path__[0], 'tests', 'data', fname)

@pytest.mark.skipif(not pytest.config.getvalue("atomic-dataset"),
                    reason='--atomic_database was not specified')
class TestSimpleRun():
    """
    Very simple run
    """

    @classmethod
    @pytest.fixture(scope="class", autouse=True)
    def setup(self):
        self.atom_data_filename = pytest.config.getvalue('atomic-dataset')
        assert os.path.exists(self.atom_data_filename)
        self.config_yaml = yaml.load(open('tardis/io/tests/data/tardis_configv1_verysimple.yml'))
        self.config_yaml['atom_data'] = self.atom_data_filename

        self.config = TARDISConfiguration.from_config_dict(self.config_yaml)
        self.model = model.Radial1DModel(self.config)
        simulation.run_radial1d(self.model)


    def test_spectrum(self):<commit_msg>hoping to fix problems<commit_after>import pytest
import numpy as np
import yaml
import tardis
from tardis import io, model, simulation
from tardis.io.config_reader import TARDISConfiguration
from numpy.testing import assert_array_almost_equal
from astropy import units as u
import os


def data_path(fname):
    return os.path.join(tardis.__path__[0], 'tests', 'data', fname)

@pytest.mark.skipif(not pytest.config.getvalue("atomic-dataset"),
                    reason='--atomic_database was not specified')
class TestSimpleRun():
    """
    Very simple run
    """

    @classmethod
    @pytest.fixture(scope="class", autouse=True)
    def setup(self):
        self.atom_data_filename = os.path.expanduser(os.path.expandvars(
            pytest.config.getvalue('atomic-dataset')))
        assert os.path.exists(self.atom_data_filename)
        self.config_yaml = yaml.load(open('tardis/io/tests/data/tardis_configv1_verysimple.yml'))
        self.config_yaml['atom_data'] = self.atom_data_filename

        self.config = TARDISConfiguration.from_config_dict(self.config_yaml)
        self.model = model.Radial1DModel(self.config)
        simulation.run_radial1d(self.model)


    def test_spectrum(self):
{'fraction_non_alphanumeric': 0.10450297366185217, 'fraction_numerical': 0.0033984706881903144, 'mean_word_length': 3.916492693110647, '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': '4101462', 'n_tokens_mistral': 750, 'n_tokens_neox': 739, 'n_words': 143}