<commit_before>import os
from fusesoc.simulator.simulator import Simulator
import logging
from fusesoc.utils import Launcher, pr_err

logger = logging.getLogger(__name__)

class Isim(Simulator):

    TOOL_NAME = 'isim'
    def __init__(self, system):

        self.cores = []
        self.isim_options = []

        if system.isim is not None:
            self.isim_options = system.isim.isim_options
        super(Isim, self).__init__(system)




    def configure(self, args):
        super(Isim, self).configure(args)
        self._write_config_files()

    def _write_config_files(self):<commit_msg>isim: Add missing import of pr_warn<commit_after>import os
from fusesoc.simulator.simulator import Simulator
import logging
from fusesoc.utils import Launcher, pr_err, pr_warn

logger = logging.getLogger(__name__)

class Isim(Simulator):

    TOOL_NAME = 'isim'
    def __init__(self, system):

        self.cores = []
        self.isim_options = []

        if system.isim is not None:
            self.isim_options = system.isim.isim_options
        super(Isim, self).__init__(system)




    def configure(self, args):
        super(Isim, self).configure(args)
        self._write_config_files()

    def _write_config_files(self):
{'fraction_non_alphanumeric': 0.09377526273241714, 'fraction_numerical': 0.0, 'mean_word_length': 3.140468227424749, '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': '1748238', 'n_tokens_mistral': 406, 'n_tokens_neox': 383, 'n_words': 87}