<commit_before>var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var SassLintPlugin = require('sasslint-webpack-plugin');
var helpers = require('./helpers');

module.exports = {
    entry: {
        'polyfills': './src/polyfills.ts',
        'app': './src/main.ts'
    },

    resolve: {
        extensions: ['', '.js', '.ts']
    },

    module: {
        preLoaders: [
            {
                test: /\.ts$/, loader: 'tslint-loader', exclude: [ helpers.root('node_modules') ]
            }
        ],

        loaders: [
            {
                test: /\.ts$/,
                loaders: ['ts', 'angular2-template-loader']
            },
            {
                test: /\.html$/,
                loader: 'html'
            },
            {
                test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
                loader: 'file?name=assets/[name].[hash].[ext]'
            },
            {
                test: /\.css$/,
                exclude: helpers.root('src', 'app'),
                loader: ExtractTextPlugin.extract({
                    fallbackLoader: 'style',
                    loader: 'css?sourceMap'
                })
            },
            {
                test: /\.scss$/,
                exclude: helpers.root('src', 'app'),
                loaders: [ExtractTextPlugin.extract({
                    fallbackLoader: "style",
                    loader: "css?sourceMap"
                }), 'sass-loader']
            },
            {
                test: /\.scss$/,
                include: helpers.root('src', 'app'),
                loaders: ['raw', 'sass-loader']
            },
            {
                test: /\.json$/,
                loader: 'json'
            }
        ]
    },

    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            name: ['app', 'polyfills']
        }),

        new HtmlWebpackPlugin({
            template: 'src/index.html'
        }),

        new SassLintPlugin({
            context: [helpers.root('src', 'app'), helpers.root('public', 'scss')],
            ignorePlugins: ['extract-text-webpack-plugin']
        })
    ]
};<commit_msg>Work around angular System.import warning<commit_after>var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var SassLintPlugin = require('sasslint-webpack-plugin');
var helpers = require('./helpers');

module.exports = {
    entry: {
        'polyfills': './src/polyfills.ts',
        'app': './src/main.ts'
    },

    resolve: {
        extensions: ['', '.js', '.ts']
    },

    module: {
        preLoaders: [
            {
                test: /\.ts$/, loader: 'tslint-loader', exclude: [ helpers.root('node_modules') ]
            }
        ],

        loaders: [
            {
                test: /\.ts$/,
                loaders: ['ts', 'angular2-template-loader']
            },
            {
                test: /\.html$/,
                loader: 'html'
            },
            {
                test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
                loader: 'file?name=assets/[name].[hash].[ext]'
            },
            {
                test: /\.css$/,
                exclude: helpers.root('src', 'app'),
                loader: ExtractTextPlugin.extract({
                    fallbackLoader: 'style',
                    loader: 'css?sourceMap'
                })
            },
            {
                test: /\.scss$/,
                exclude: helpers.root('src', 'app'),
                loaders: [ExtractTextPlugin.extract({
                    fallbackLoader: "style",
                    loader: "css?sourceMap"
                }), 'sass-loader']
            },
            {
                test: /\.scss$/,
                include: helpers.root('src', 'app'),
                loaders: ['raw', 'sass-loader']
            },
            {
                test: /\.json$/,
                loader: 'json'
            }
        ]
    },

    plugins: [
        new webpack.optimize.CommonsChunkPlugin({
            name: ['app', 'polyfills']
        }),

        new HtmlWebpackPlugin({
            template: 'src/index.html'
        }),

        new SassLintPlugin({
            context: [helpers.root('src', 'app'), helpers.root('public', 'scss')],
            ignorePlugins: ['extract-text-webpack-plugin']
        }),

        // see: https://github.com/angular/angular/issues/11580
        new webpack.ContextReplacementPlugin(
            /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
            helpers.root('src')
        )
    ]
};
{'fraction_non_alphanumeric': 0.16459953752364936, 'fraction_numerical': 0.0018919487071683834, 'mean_word_length': 1.2700381679389312, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3793886', 'n_tokens_mistral': 1416, 'n_tokens_neox': 1318, 'n_words': 212}