<commit_before>/* eslint-disable max-len */

import ExtractTextPlugin from 'extract-text-webpack-plugin';
import AssetsPlugin from 'assets-webpack-plugin';
import sharedConfig from './config.shared';
import path from 'path';
import webpack from 'webpack';
import { isProduction } from '../server/config';

module.exports = {
  devtool: sharedConfig.devtool,

  entry: {
    home_page: './frontend/home_page/server_entry.js',
  },

  output: {
    path: sharedConfig.output.path,
    filename: '[name].server_entry.js',
    libraryTarget: 'commonjs2',
  },

  externals: /^[a-z_][a-z\.\-0-9]*$/,

  target: 'node',

  module: {
    loaders: [
      {
        test: /\.jsx?$/,
        loader: 'babel',
        exclude: /node_modules/,
        query: {
          optional: ['runtime'],
          compact: false,
        },
      },
    ].concat(sharedConfig.module.loaders),

    postLoaders: sharedConfig.module.postLoaders,
  },

  plugins: [
    new ExtractTextPlugin(`[name].${isProduction() ? '.[chunkhash]' : ''}.css`, {
      allChunks: true
    }),
    new AssetsPlugin({
      path: path.join(__dirname, 'build'),
      filename: 'webpack_assets.server.json',
    }),
    new webpack.ProvidePlugin({ React: 'react' }),
  ],

  stylus: sharedConfig.stylus,

  resolve: { alias: sharedConfig.resolve.alias },
};<commit_msg>Fix lint<commit_after>/* eslint-disable max-len */

import ExtractTextPlugin from 'extract-text-webpack-plugin';
import AssetsPlugin from 'assets-webpack-plugin';
import sharedConfig from './config.shared';
import path from 'path';
import webpack from 'webpack';
import { isProduction } from '../server/config';

module.exports = {
  devtool: sharedConfig.devtool,

  entry: {
    home_page: './frontend/home_page/server_entry.js',
  },

  output: {
    path: sharedConfig.output.path,
    filename: '[name].server_entry.js',
    libraryTarget: 'commonjs2',
  },

  externals: /^[a-z_][a-z\.\-0-9]*$/,

  target: 'node',

  module: {
    loaders: [
      {
        test: /\.jsx?$/,
        loader: 'babel',
        exclude: /node_modules/,
        query: {
          optional: ['runtime'],
          compact: false,
        },
      },
    ].concat(sharedConfig.module.loaders),

    postLoaders: sharedConfig.module.postLoaders,
  },

  plugins: [
    new ExtractTextPlugin(`[name].${isProduction() ? '.[chunkhash]' : ''}.css`, {
      allChunks: true,
    }),
    new AssetsPlugin({
      path: path.join(__dirname, 'build'),
      filename: 'webpack_assets.server.json',
    }),
    new webpack.ProvidePlugin({ React: 'react' }),
  ],

  stylus: sharedConfig.stylus,

  resolve: { alias: sharedConfig.resolve.alias },
};
{'fraction_non_alphanumeric': 0.16716981132075473, 'fraction_numerical': 0.0022641509433962265, 'mean_word_length': 2.875730994152047, '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': '3916872', 'n_tokens_mistral': 884, 'n_tokens_neox': 851, 'n_words': 167}