<commit_before>import reactRefresh from '@vitejs/plugin-react-refresh';
import dotenv from 'dotenv';
import fs from 'fs';
import path from 'path';
import strip from 'rollup-plugin-strip-code';
import { defineConfig } from 'vite';
import htmlConfigPlugin from 'vite-plugin-html-config';
import svgr from 'vite-plugin-svgr';

import angularTemplateLoader from '@spinnaker/scripts/helpers/rollup-plugin-angularjs-template-loader';

const DECK_ROOT = path.resolve(`${__dirname}/../../../..`);
const NODE_MODULE_PATH = path.resolve(`${DECK_ROOT}/node_modules`);

const envLocalFilePath = path.resolve(`${__dirname}/.env.local`);
if (fs.existsSync(envLocalFilePath)) {
  dotenv.config({
    path: envLocalFilePath,
  });
}

export default defineConfig(({ command }) => {
  const alias = [
    { find: 'root', replacement: DECK_ROOT },<commit_msg>fix(app): Fix DECK_ROOT in vite config<commit_after>import reactRefresh from '@vitejs/plugin-react-refresh';
import dotenv from 'dotenv';
import fs from 'fs';
import path from 'path';
import strip from 'rollup-plugin-strip-code';
import { defineConfig } from 'vite';
import htmlConfigPlugin from 'vite-plugin-html-config';
import svgr from 'vite-plugin-svgr';

import angularTemplateLoader from '@spinnaker/scripts/helpers/rollup-plugin-angularjs-template-loader';

const DECK_ROOT = path.resolve(`${__dirname}/../../`);
const NODE_MODULE_PATH = path.resolve(`${DECK_ROOT}/node_modules`);

const envLocalFilePath = path.resolve(`${__dirname}/.env.local`);
if (fs.existsSync(envLocalFilePath)) {
  dotenv.config({
    path: envLocalFilePath,
  });
}

export default defineConfig(({ command }) => {
  const alias = [
    { find: 'root', replacement: DECK_ROOT },
{'fraction_non_alphanumeric': 0.15294117647058825, 'fraction_numerical': 0.0, 'mean_word_length': 5.467680608365019, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4303685', 'n_tokens_mistral': 527, 'n_tokens_neox': 534, 'n_words': 125}