<commit_before>/* eslint-env node */
const webpack = require('webpack')
const { resolve } = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')

module.exports = {
  entry: {
    app: [
      'react-hot-loader/patch',
      resolve(__dirname, 'src', 'index.jsx'),
    ],
  },

  output: {
    filename: 'bundle.js',
    path: resolve(__dirname, 'dist'),
    publicPath: '/',
  },

  module: {
    rules: [
      {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        use: [
          'babel-loader',
        ],
      },
      {
        test: /.s?[ca]ss$/,
        include: /-global/,
        use: [
          'style-loader',
          'css-loader',
          'postcss-loader',
          'sass-loader',
        ],
      },
      {
        test: /.s?[ca]ss$/,
        exclude: /-global/,
        use: [
          'style-loader',
          {
            loader: 'css-loader',
            options: {
              modules: true,
              camelCase: true,
              localIdentName: '[local]--[hash:base64]',
            },
          },
          'postcss-loader',
          'sass-loader',
        ],
      },
      {
        test: /\.woff2?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        use: 'url-loader',
      },
      {
        test: /\.(ttf|eot|svg)(\?[\s\S]+)?$/,
        use: 'file-loader',
      },
    ],
  },

  resolve: {
    modules: [
      resolve(__dirname, 'src'),
      'node_modules',
    ],
    extensions: [ '.js', '.jsx' ],
  },

  plugins: [
    new webpack.NamedModulesPlugin(),
    new webpack.optimize.CommonsChunkPlugin({
      name: 'vendor',
      filename: 'vendor.js',
      minChunks(module) {
       return module.context && module.context.indexOf('node_modules') !== -1
      },
    }),
    new CopyWebpackPlugin([
      { from: resolve(__dirname, 'src', 'index.html') },
    ]),
  ],
}<commit_msg>sass: allow to resolve scss files from the root dir<commit_after>/* eslint-env node */
const webpack = require('webpack')
const { resolve } = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')

module.exports = {
  entry: {
    app: [
      'react-hot-loader/patch',
      resolve(__dirname, 'src', 'index.jsx'),
    ],
  },

  output: {
    filename: 'bundle.js',
    path: resolve(__dirname, 'dist'),
    publicPath: '/',
  },

  module: {
    rules: [
      {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        use: [
          'babel-loader',
        ],
      },
      {
        test: /.s?[ca]ss$/,
        include: /-global/,
        use: [
          'style-loader',
          'css-loader',
          'postcss-loader',
          'sass-loader',
        ],
      },
      {
        test: /.s?[ca]ss$/,
        exclude: /-global/,
        use: [
          'style-loader',
          {
            loader: 'css-loader',
            options: {
              modules: true,
              camelCase: true,
              localIdentName: '[local]--[hash:base64]',
            },
          },
          'postcss-loader',
          {
            loader: 'sass-loader',
            options: {
              includePaths: [ resolve(__dirname, "src") ],
            },
          },
        ],
      },
      {
        test: /\.woff2?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        use: 'url-loader',
      },
      {
        test: /\.(ttf|eot|svg)(\?[\s\S]+)?$/,
        use: 'file-loader',
      },
    ],
  },

  resolve: {
    modules: [
      resolve(__dirname, 'src'),
      'node_modules',
    ],
    extensions: [ '.js', '.jsx', '.scss' ],
  },

  plugins: [
    new webpack.NamedModulesPlugin(),
    new webpack.optimize.CommonsChunkPlugin({
      name: 'vendor',
      filename: 'vendor.js',
      minChunks(module) {
       return module.context && module.context.indexOf('node_modules') !== -1
      },
    }),
    new CopyWebpackPlugin([
      { from: resolve(__dirname, 'src', 'index.html') },
    ]),
  ],
}
{'fraction_non_alphanumeric': 0.18835001283038236, 'fraction_numerical': 0.005132152938157557, 'mean_word_length': 1.5067524115755626, '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': '4302981', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1266, 'n_words': 207}