<commit_before><template>
  <div class="simulationKernel">
    <v-row class="full-height" no-gutters>
      <v-col>
        <v-sheet class="ma-1" color="primary" outlined>
          <v-card class="ml-1" outlined tile>
            <v-card-title class="pa-0">
              <v-btn
                :dark="projectView.config.coloredToolbar"
                :ripple="false"
                :text="!projectView.config.coloredToolbar"
                block
                flat
                color="primary"
                depressed
                height="40"
                tile
              >
                simulation kernel
                <v-spacer />
              </v-btn>
            </v-card-title>

            <v-card-text class="pa-0">
              <ParameterEdit
                :options="{
                  input: 'tickSlider',
                  label: 'local number of threads',
                  ticks: [1, 2, 4, 8],
                }"
                :value.sync="simulation.kernel.localNumThreads"
                @update:value="paramChange"
                class="mx-1 py-2"
              />

              <ParameterEdit
                :options="{
                  id: 'simulationResolution',
                  input: 'tickSlider',
                  label: 'simulation resolution',
                  ticks: [0.01, 0.1, 1, 10],
                  unit: 'ms',
                  rules: [
                    [
                      'value < 1',
                      'Small simulation resolution produces many data points which could cause a high system load and thus freezes and lags!',
                      'warning',
                    ],
                  ],
                }"
                :value.sync="simulation.kernel.resolution"
                @update:value="paramChange"
                class="mx-1 py-2"
              />

              <ParameterEdit
                :options="{
                  input: 'valueSlider',
                  label: 'seed of the random number generator',
                  max: 1000,
                  min: 1,
                  value: 1,
                }"
                :value.sync="simulation.kernel.rngSeed"
                @update:value="paramChange"
                class="mx-1 py-1"
              />

              <ParameterEdit
                :options="{
                  input: 'checkbox',
                  label: 'randomize seed',
                }"
                :value.sync="state.autoRNGSeed"
                class="mx-1"
                @update:value="
                  state.simulation.kernel.updateConfig({
                    autoRNGSeed: state.autoRNGSeed,
                  })
                "
              />
            </v-card-text>
          </v-card>
        </v-sheet>

        <v-sheet class="ma-1" color="primary" outlined>
          <v-card class="ml-1" outlined tile>
            <v-card-title class="pa-0">
              <v-btn
                :dark="projectView.config.coloredToolbar"
                :ripple="false"
                :text="!projectView.config.coloredToolbar"
                block
                color="primary"
                depressed
                height="40"
                tile
              >
                simulation
                <v-spacer />
              </v-btn>
            </v-card-title>

            <v-card-text class="pa-0">
              <ParameterEdit
                :options="{
                  id: 'simulationTime',<commit_msg>SimulationKernel: Optimize code and spelling<commit_after><template>
  <div class="simulationKernel">
    <v-row class="full-height" no-gutters>
      <v-col>
        <v-sheet class="ma-1" color="primary" outlined>
          <v-card class="ml-1" outlined tile>
            <v-card-title class="pa-0">
              <v-btn
                :dark="projectView.config.coloredToolbar"
                :ripple="false"
                :text="!projectView.config.coloredToolbar"
                block
                color="primary"
                depressed
                flat
                height="40"
                tile
              >
                Simulation kernel
                <v-spacer />
              </v-btn>
            </v-card-title>

            <v-card-text class="pa-0">
              <ParameterEdit
                :options="{
                  input: 'tickSlider',
                  label: 'local number of threads',
                  ticks: [1, 2, 4, 8],
                }"
                :value.sync="simulation.kernel.localNumThreads"
                @update:value="paramChange"
                class="mx-1 py-2"
              />

              <ParameterEdit
                :options="{
                  id: 'simulationResolution',
                  input: 'tickSlider',
                  label: 'simulation resolution',
                  ticks: [0.01, 0.1, 1, 10],
                  unit: 'ms',
                  rules: [
                    [
                      'value < 1',
                      'Small simulation resolution produces many data points which could cause a high system load and thus freezes and lags!',
                      'warning',
                    ],
                  ],
                }"
                :value.sync="simulation.kernel.resolution"
                @update:value="paramChange"
                class="mx-1 py-2"
              />

              <ParameterEdit
                :options="{
                  input: 'valueSlider',
                  label: 'seed of the random number generator',
                  max: 1000,
                  min: 1,
                  value: 1,
                }"
                :value.sync="simulation.kernel.rngSeed"
                @update:value="paramChange"
                class="mx-1 py-1"
              />

              <ParameterEdit
                :options="{
                  input: 'checkbox',
                  label: 'randomize seed',
                }"
                :value.sync="state.autoRNGSeed"
                class="mx-1"
                @update:value="
                  state.simulation.kernel.updateConfig({
                    autoRNGSeed: state.autoRNGSeed,
                  })
                "
              />
            </v-card-text>
          </v-card>
        </v-sheet>

        <v-sheet class="ma-1" color="primary" outlined>
          <v-card class="ml-1" outlined tile>
            <v-card-title class="pa-0">
              <v-btn
                :dark="projectView.config.coloredToolbar"
                :ripple="false"
                :text="!projectView.config.coloredToolbar"
                block
                color="primary"
                depressed
                height="40"
                tile
              >
                Simulation
                <v-spacer />
              </v-btn>
            </v-card-title>

            <v-card-text class="pa-0">
              <ParameterEdit
                :options="{
                  id: 'simulationTime',
{'fraction_non_alphanumeric': 0.10847506074031728, 'fraction_numerical': 0.010861797913391454, 'mean_word_length': 0.9390412856747021, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 57, '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': '3392585', 'n_tokens_mistral': 1872, 'n_tokens_neox': 1680, 'n_words': 325}