<commit_before>import { resolve } from 'path'
import webpack from 'webpack'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import ProgressBarPlugin from 'progress-bar-webpack-plugin'
import { getIfUtils, removeEmpty } from 'webpack-config-utils'
import OfflinePlugin from 'offline-plugin'
import InlineManifestWebpackPlugin from 'inline-manifest-webpack-plugin'

const PATHS = {
  app: resolve('src'),
  output: resolve('public'),
  styles: resolve('/src/client/styles/main.js')
}

module.exports = env => {
  const {ifProd, ifNotProd} = getIfUtils(env)
  const config = {
    resolve: {
      modules: [
        resolve('./src/client'),
        'node_modules'
      ]
    },
    context: PATHS.app,
    entry: './client/index.js',
    output: {
      path: PATHS.output,
      filename: ifProd('bundle.[name].[hash].js', 'bundle.[name].js'),
      pathinfo: ifNotProd()
    },
    devtool: ifProd('source-map', 'eval'),
    devServer: {
      contentBase: PATHS.output,
      inline: true,
      port: 8000
    },
    module: {
      loaders: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          loader: 'babel-loader',
          include: [
            resolve('src')
          ]
        },
        // {
        //     test: /\.scss$/,
        //     exclude: /node_modules/,<commit_msg>update devserver property<commit_after>import { resolve } from 'path'
import webpack from 'webpack'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import ProgressBarPlugin from 'progress-bar-webpack-plugin'
import { getIfUtils, removeEmpty } from 'webpack-config-utils'
import OfflinePlugin from 'offline-plugin'
import InlineManifestWebpackPlugin from 'inline-manifest-webpack-plugin'

const PATHS = {
  app: resolve('src'),
  output: resolve('public'),
  styles: resolve('/src/client/styles/main.js')
}

module.exports = env => {
  const {ifProd, ifNotProd} = getIfUtils(env)
  const config = {
    resolve: {
      modules: [
        resolve('./src/client'),
        'node_modules'
      ]
    },
    context: PATHS.app,
    entry: './client/index.js',
    output: {
      path: PATHS.output,
      filename: ifProd('bundle.[name].[hash].js', 'bundle.[name].js'),
      pathinfo: ifNotProd()
    },
    devtool: ifProd('source-map', 'eval'),
    devServer: {
      contentBase: PATHS.output,
      inline: true,
      port: 8000,
      historyApiFallback: true
    },
    module: {
      loaders: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          loader: 'babel-loader',
          include: [
            resolve('src')
          ]
        },
        // {
        //     test: /\.scss$/,
        //     exclude: /node_modules/,
{'fraction_non_alphanumeric': 0.14458689458689458, 'fraction_numerical': 0.002849002849002849, 'mean_word_length': 2.4131227217496964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5770497', 'n_tokens_mistral': 891, 'n_tokens_neox': 864, 'n_words': 181}