<commit_before>const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')

const extractSass = new ExtractTextPlugin({
  filename: 'css/[name].css?[contenthash:8]',
  disable: process.env.NODE_ENV === 'development'
})

module.exports = function (env) {
  return {
    entry: {
      bundle: './src/js/index.js',
      styles: './src/styles/main.scss'
    },
    output: {
      path: path.resolve(__dirname, 'docs'),
      publicPath: '',
      filename: 'js/[name].js?[chunkhash:8]'
    },
    module: {
      loaders: [
        {
          test: /\.(js|jsx)$/,
          use: 'babel-loader'
        }, {
          test: /[.]html$/,
          loader: 'html-loader?' + JSON.stringify({ pretty: true })
        }, {
          test: /\.scss$/,
          use: extractSass.extract({
            use: ['css-loader', 'sass-loader?sourceMap'],
            fallback: 'style-loader',
            publicPath: '../'
          })
        }, {
          test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
          loader: 'url-loader?limit=10000&mimetype=application/font-woff' +
            '&hash=sha512&digest=hex&name=fonts/[name].[ext]?[hash:8]'
        },
        {
          test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
          loader: 'file-loader?hash=sha512&digest=hex&name=fonts/[name].[ext]?[hash:8]'
        }, {
          test: /\.(jpe?g|png|gif|svg|ico)$/,
          loaders: [
            'file-loader?hash=sha512&digest=hex&name=images/[name].[ext]?[hash:8]'
          ]
        }
      ]
    },
    plugins: [
      extractSass,
      new HtmlWebpackPlugin({
        template: 'src/index.html'
      })
    ]
  }
}
<commit_msg>Allow webpack dev server to serve the local network<commit_after>const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')

const extractSass = new ExtractTextPlugin({
  filename: 'css/[name].css?[contenthash:8]',
  disable: process.env.NODE_ENV === 'development'
})

module.exports = function (env) {
  return {
    entry: {
      bundle: './src/js/index.js',
      styles: './src/styles/main.scss'
    },
    output: {
      path: path.resolve(__dirname, 'docs'),
      publicPath: '',
      filename: 'js/[name].js?[chunkhash:8]'
    },
    module: {
      loaders: [
        {
          test: /\.(js|jsx)$/,
          use: 'babel-loader'
        }, {
          test: /[.]html$/,
          loader: 'html-loader?' + JSON.stringify({ pretty: true })
        }, {
          test: /\.scss$/,
          use: extractSass.extract({
            use: ['css-loader', 'sass-loader?sourceMap'],
            fallback: 'style-loader',
            publicPath: '../'
          })
        }, {
          test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
          loader: 'url-loader?limit=10000&mimetype=application/font-woff' +
            '&hash=sha512&digest=hex&name=fonts/[name].[ext]?[hash:8]'
        },
        {
          test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
          loader: 'file-loader?hash=sha512&digest=hex&name=fonts/[name].[ext]?[hash:8]'
        }, {
          test: /\.(jpe?g|png|gif|svg|ico)$/,
          loaders: [
            'file-loader?hash=sha512&digest=hex&name=images/[name].[ext]?[hash:8]'
          ]
        }
      ]
    },
    plugins: [
      extractSass,
      new HtmlWebpackPlugin({
        template: 'src/index.html'
      })
    ],
    devServer: {
      host: '0.0.0.0',
      disableHostCheck: true
    }
  }
}

{'fraction_non_alphanumeric': 0.20201454952434247, 'fraction_numerical': 0.019026301063234472, 'mean_word_length': 1.9966471081307628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1730570', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1222, 'n_words': 165}