<commit_before>const { resolve } = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin')

const config = {
  stats: {
    maxModules: 0
  },
  mode: 'production',
  devtool: 'cheap-module-source-map',

  entry: [
    './main.js',
    './styles/main.scss',
  ],

  context: resolve(__dirname, 'app'),

  output: {
    filename: '[name].[chunkhash].js',
    chunkFilename: '[name].[chunkhash].js',
    path: resolve(__dirname, 'dist'),
    publicPath: '/my-rsr/',
  },

  plugins: [
    new webpack.optimize.ModuleConcatenationPlugin(),
    new HtmlWebpackPlugin({
      template: `${__dirname}/app/index.html`,<commit_msg>full source maps for production<commit_after>const { resolve } = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin')

const config = {
  stats: {
    maxModules: 0
  },
  mode: 'production',
  devtool: 'source-map',

  entry: [
    './main.js',
    './styles/main.scss',
  ],

  context: resolve(__dirname, 'app'),

  output: {
    filename: '[name].[chunkhash].js',
    chunkFilename: '[name].[chunkhash].js',
    path: resolve(__dirname, 'dist'),
    publicPath: '/my-rsr/',
  },

  plugins: [
    new webpack.optimize.ModuleConcatenationPlugin(),
    new HtmlWebpackPlugin({
      template: `${__dirname}/app/index.html`,
{'fraction_non_alphanumeric': 0.1736414740787008, 'fraction_numerical': 0.0012492192379762648, 'mean_word_length': 4.021943573667712, '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': '4428199', 'n_tokens_mistral': 520, 'n_tokens_neox': 511, 'n_words': 97}