<commit_before>import pytest
from spectrum_overload import Spectrum

from mingle.utilities.spectrum_utils import load_spectrum


@pytest.mark.xfail
def test_load_spectrum():
    load_spectrum()
    assert False
    assert isinstance(results, Spectrum)


@pytest.mark.xfail
def test_load_spectrum_with_failure():
    assert False


@pytest.mark.xfail
def test_select_observation():
    assert False


@pytest.mark.xfail
def test_spectrum_plotter(spectra, label=None, show=False):
    """Plot a Spectrum object."""
    assert False


@pytest.mark.xfail
def test_plot_spectra(obs, model):
    """Plot two spectra."""
    assert False

<commit_msg>test select observation with bad chip number<commit_after>import pytest
from spectrum_overload import Spectrum

from mingle.utilities.spectrum_utils import load_spectrum


@pytest.mark.xfail
def test_load_spectrum():
    load_spectrum()
    assert False
    assert isinstance(results, Spectrum)


@pytest.mark.xfail
def test_load_spectrum_with_failure():
    assert False


@pytest.mark.xfail
def test_select_observation():
    assert False

from mingle.utilities.spectrum_utils import select_observation
@pytest.mark.parametrize("chip", [0, None, 5, 42])
def test_select_observation_with_bad_chip(chip):
    with pytest.raises(ValueError):
        select_observation("HD30501", "1", chip)

@pytest.mark.xfail
def test_spectrum_plotter(spectra, label=None, show=False):
    """Plot a Spectrum object."""
    assert False


@pytest.mark.xfail
def test_plot_spectra(obs, model):
    """Plot two spectra."""
    assert False


{'fraction_non_alphanumeric': 0.09444798978940651, 'fraction_numerical': 0.006381620931716656, 'mean_word_length': 4.984732824427481, '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': '6525755', 'n_tokens_mistral': 528, 'n_tokens_neox': 502, 'n_words': 120}