<commit_before>const webpack = require('webpack')

var ExtractTextPlugin = require('extract-text-webpack-plugin')
var extractSCSS = new ExtractTextPlugin('stylesheets/[name].css')
var CopyWebpackPlugin = require('copy-webpack-plugin')

const devBuild = process.env.NODE_ENV !== 'production'
const nodeEnv = devBuild ? 'development' : 'production'

var config = {
    entry:   {
        'index': './app/Resources/js/index.jsx',
        'login': './app/Resources/js/login.js'

    },
    output:  {
        path:       './web/assets/build/',
        publicPath: '/assets/build/',
        filename:   '/js/[name].js'
    },
    resolve: {
        extensions: ['', '.js', '.jsx']
    },
    plugins: [
        extractSCSS,
        new webpack.ProvidePlugin({
            _:               'lodash',
            $:               'jquery',
            'jQuery':        'jquery',
            'window.jQuery': 'jquery'
        }),
        new CopyWebpackPlugin([
            {from: './app/Resources/img', to: './img'},
        ]),
        new webpack.DefinePlugin({
            'process.env': {
                NODE_ENV: JSON.stringify(nodeEnv),
            }
        })
    ],
    module:  {
        loaders: [
            {test: require.resolve('jquery'), loader: 'expose?$!expose?jQuery'},
            {test: /\.jsx?$/, loader: 'babel-loader', exclude: /node_modules/},

            {test: /\.scss$/i, loader: extractSCSS.extract(['css', 'sass'])},
            {test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff'},
            {test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream'},<commit_msg>clean<commit_after>const webpack = require('webpack')

var ExtractTextPlugin = require('extract-text-webpack-plugin')
var extractSCSS = new ExtractTextPlugin('stylesheets/[name].css')
var CopyWebpackPlugin = require('copy-webpack-plugin')

const devBuild = process.env.NODE_ENV !== 'production'
const nodeEnv = devBuild ? 'development' : 'production'

var config = {
    entry:   {
        'index': './app/Resources/js/index.jsx',
        'login': './app/Resources/js/login.js'

    },
    output:  {
        path:       './web/assets/build/',
        publicPath: '/assets/build/',
        filename:   '/js/[name].js'
    },
    resolve: {
        extensions: ['', '.js', '.jsx']
    },
    plugins: [
        extractSCSS,
        new webpack.ProvidePlugin({
            _:               'lodash',
            $:               'jquery',
            'jQuery':        'jquery',
            'window.jQuery': 'jquery'
        }),
        new CopyWebpackPlugin([
            {from: './app/Resources/img', to: './img'}
        ]),
        new webpack.DefinePlugin({
            'process.env': {
                NODE_ENV: JSON.stringify(nodeEnv)
            }
        })
    ],
    module:  {
        loaders: [
            {test: require.resolve('jquery'), loader: 'expose?$!expose?jQuery'},
            {test: /\.jsx?$/, loader: 'babel-loader', exclude: /node_modules/},

            {test: /\.scss$/i, loader: extractSCSS.extract(['css', 'sass'])},
            {test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff'},
            {test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream'},
{'fraction_non_alphanumeric': 0.19260584376863446, 'fraction_numerical': 0.00655933214072749, 'mean_word_length': 1.9928635147190008, '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': '4394871', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1040, 'n_words': 171}