<commit_before>#!/usr/bin/env python

import os
from cmt.components import SatZoneDarcyLayers
from . import example_dir


cfg_file = os.path.join(example_dir, 'June_20_67_satzone_darcy_layers.cfg')

def test_irf():
    component = SatZoneDarcyLayers()
    component.initialize(cfg_file)
    component.update(1.0)
    component.finalize()<commit_msg>Import component with name 'Component'<commit_after>#!/usr/bin/env python

import os
from cmt.components import SatZoneDarcyLayers as Component
from . import example_dir


cfg_file = os.path.join(example_dir, 'June_20_67_satzone_darcy_layers.cfg')

def test_irf():
    component = Component()
    component.initialize(cfg_file)
    component.update(1.0)
    component.finalize()
{'fraction_non_alphanumeric': 0.09903713892709766, 'fraction_numerical': 0.016506189821182942, 'mean_word_length': 5.222222222222222, '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': '1671518', 'n_tokens_mistral': 260, 'n_tokens_neox': 241, 'n_words': 47}