<commit_before>'use strict';

const path = require('path');

module.exports = {
    entry: {
        'build/molecule_table/bundle': './src/molecule_table/app',
        'build/molecule_table_fetch/bundle': './src/molecule_table_fetch/app'
    },
    output: {
        path: './',
        filename: '[name].js'
    },
    module: {
        rules: [
            {
                exclude: /node_modules/,
                loader: 'babel-loader',
                options: {
                    presets: ['react', 'es2017']
                }
            }
        ]
    },
    devServer: {
        contentBase: './src'
    }
};<commit_msg>webpack: build all directories in src<commit_after>'use strict';

const path = require('path');
const fs = require('fs');

const examples = fs.readdirSync(path.join(__dirname, 'src')).filter(dir => {
    return fs.statSync(path.join(__dirname, 'src', dir)).isDirectory();
});
const entry = {};
for (const example of examples) {
    const key = `./build/${example}/bundle`;
    const value = `./src/${example}/app`;
    entry[key] = value;
}

module.exports = {
    entry,
    output: {
        path: './',
        filename: '[name].js'
    },
    module: {
        rules: [
            {
                exclude: /node_modules/,
                loader: 'babel-loader',
                options: {
                    presets: ['react', 'es2017']
                }
            }
        ]
    },
    devServer: {
        contentBase: './src'
    }
};
{'fraction_non_alphanumeric': 0.16272788656313303, 'fraction_numerical': 0.0054017555705604325, 'mean_word_length': 1.6137566137566137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1022939', 'n_tokens_mistral': 458, 'n_tokens_neox': 437, 'n_words': 83}