<commit_before>import pytest
from carculator.hot_emissions import HotEmissionsModel
from carculator.driving_cycles import get_standard_driving_cycle

dc = get_standard_driving_cycle()
dc_name = "WLTC"

def test_wrong_powertrain():
    hem = HotEmissionsModel(dc, dc_name)
    with pytest.raises(TypeError) as wrapped_error:
        hem.get_emissions_per_powertrain("electric")
    assert wrapped_error.type == TypeError

def test_output_emissions():
    hem = HotEmissionsModel(dc, dc_name)
    urban = hem.get_emissions_per_powertrain("diesel")[0]

    assert len(urban) == 11
    assert urban.sum() > 1.2e-5
    assert urban.sum() < 1.25e-5
<commit_msg>Update test_hot_emissions.py<commit_after>import pytest
from carculator.hot_emissions import HotEmissionsModel
from carculator.driving_cycles import get_standard_driving_cycle

dc = get_standard_driving_cycle()
dc_name = "WLTC"

def test_wrong_powertrain():
    hem = HotEmissionsModel(dc, dc_name)
    with pytest.raises(TypeError) as wrapped_error:
        hem.get_emissions_per_powertrain("electric")
    assert wrapped_error.type == TypeError

def test_output_emissions():
    hem = HotEmissionsModel(dc, dc_name)
    urban = hem.get_emissions_per_powertrain("diesel")[0]

    assert len(urban) == 33
    assert urban.sum() > 1.2e-5
    assert urban.sum() < 1.25e-5

{'fraction_non_alphanumeric': 0.09283018867924528, 'fraction_numerical': 0.01509433962264151, 'mean_word_length': 5.054794520547945, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5420886', 'n_tokens_mistral': 473, 'n_tokens_neox': 450, 'n_words': 87}