<commit_before>const path = require('path');

// Export a function. Accept the base config as the only param.
module.exports = {
    stories: ['../stories/*.tsx'],
    addons: [
        '@storybook/addon-actions',
        '@storybook/addon-viewport/register',
        '@storybook/addon-knobs',
        '@storybook/addon-storysource',
    ],
    webpackFinal: async (config, { configType }) => {
        config.module.rules.push({
            test: /\.scss$/,
            use: ['style-loader', 'css-loader', 'sass-loader'],
            include: path.resolve(__dirname, '../src'),
        });

        config.module.rules.push({
            test: /\.(ts|tsx)$/,
            use: [
                {
                    loader: require.resolve('babel-loader'),
                },
            ],
        });

        config.resolve.extensions.push('.ts', '.tsx');

        config.performance.hints = false;

        return config;
    },
};
<commit_msg>Fix storybook storysource<commit_after>const path = require('path');

// Export a function. Accept the base config as the only param.
module.exports = {
    stories: ['../stories/*.tsx'],
    addons: [
        '@storybook/addon-actions',
        '@storybook/addon-viewport/register',
        '@storybook/addon-knobs',
        '@storybook/addon-storysource',
    ],
    webpackFinal: async (config, { configType }) => {
        config.module.rules.push({
            test: /\.scss$/,
            use: ['style-loader', 'css-loader', 'sass-loader'],
            include: path.resolve(__dirname, '../src'),
        });

        config.module.rules.push({
            test: /stories\/(.+).tsx$/,
            loaders: [require.resolve('@storybook/addon-storysource/loader')],
            enforce: 'pre',
        });

        config.module.rules.push({
            test: /\.(ts|tsx)$/,
            use: [
                {
                    loader: require.resolve('babel-loader'),
                },
            ],
        });

        config.resolve.extensions.push('.ts', '.tsx');

        config.performance.hints = false;

        return config;
    },
};

{'fraction_non_alphanumeric': 0.17149643705463183, 'fraction_numerical': 0.0, 'mean_word_length': 1.6896551724137931, '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': '4073796', 'n_tokens_mistral': 627, 'n_tokens_neox': 609, 'n_words': 105}