<commit_before>'use strict';
var path = require('path');

var getCommon = require('./common');


module.exports = function(config) {
  // XXX: eliminate ReactHotLoaderMatches?
  var ReactHotLoaderMatches = /View.coffee/;
  var cwd = process.cwd();

  var themeConfig = config.themeConfig && config.themeConfig.development;
  themeConfig = themeConfig && themeConfig() || {};

  var siteConfig = config.webpack && config.webpack.development;
  siteConfig = siteConfig || {};

  return getCommon(config).then(function(common) {
    return {
      cache: true,
      node: {
        __filename: true,
        fs: 'empty',
      },
      output: {
        path: path.join(cwd, './.antwar/build/'),
        publicPath: '/',
        filename: '[name]-bundle.js',
        chunkFilename: '[chunkhash].js',
      },
      plugins: common.plugins,
      module: {
        loaders: [
          {
            test: /\.woff$/,
            loader: 'url-loader?prefix=font/&limit=5000&mimetype=application/font-woff',
          },
          {
            test: /\.ttf$|\.eot$/,
            loader: 'file-loader?prefix=font/',
          },
          {
            test: /\.coffee$/,
            exclude: ReactHotLoaderMatches,
            loader: 'react-hot!jshint-loader!coffee-loader',
          },
          {
            test: /\.json$/,
            loader: 'json-loader',
          },
          {
            test: /\.svg$/,
            loader: 'raw-loader',
          },
          {
            test: /\.jsx?$/,
            loaders: [
              'react-hot',
              'babel'
            ],
            include: new RegExp(common.corePath + '|' + cwd),
            exclude: new RegExp(common.resolve.root + '|' + common.themeDependenciesPath +
              '|' + path.join(cwd, 'node_modules')),
          },
          {
            test: /\.css$/,
            loaders: [
              'style-loader',
              'css-loader',
            ],
          },
          {
            test: /\.scss$/,
            loaders: [
              'style-loader',
              'css-loader',
              'autoprefixer-loader?{browsers:["last 2 version", "ie 10", "Android 4"]}',
              'sass-loader',
            ],
          },
          {
            test: ReactHotLoaderMatches,
            loader: 'react-hot!coffee-loader',
          },
          {
            test: /\.md$/,
            loader: 'json!yaml-frontmatter-loader',
          }
        ].concat(themeConfig.module && themeConfig.module.loaders? themeConfig.module.loaders: []).
        concat(siteConfig.module && siteConfig.module.loaders? siteConfig.module.loaders: []),
      },
      resolve: common.resolve,
      resolveLoader: common.resolveLoader,<commit_msg>Drop redundant coffeescript related match<commit_after>'use strict';
var path = require('path');

var getCommon = require('./common');


module.exports = function(config) {
  var cwd = process.cwd();

  var themeConfig = config.themeConfig && config.themeConfig.development;
  themeConfig = themeConfig && themeConfig() || {};

  var siteConfig = config.webpack && config.webpack.development;
  siteConfig = siteConfig || {};

  return getCommon(config).then(function(common) {
    return {
      cache: true,
      node: {
        __filename: true,
        fs: 'empty',
      },
      output: {
        path: path.join(cwd, './.antwar/build/'),
        publicPath: '/',
        filename: '[name]-bundle.js',
        chunkFilename: '[chunkhash].js',
      },
      plugins: common.plugins,
      module: {
        loaders: [
          {
            test: /\.woff$/,
            loader: 'url-loader?prefix=font/&limit=5000&mimetype=application/font-woff',
          },
          {
            test: /\.ttf$|\.eot$/,
            loader: 'file-loader?prefix=font/',
          },
          {
            test: /\.coffee$/,
            loader: 'react-hot!jshint-loader!coffee-loader',
          },
          {
            test: /\.json$/,
            loader: 'json-loader',
          },
          {
            test: /\.svg$/,
            loader: 'raw-loader',
          },
          {
            test: /\.jsx?$/,
            loaders: [
              'react-hot',
              'babel'
            ],
            include: new RegExp(common.corePath + '|' + cwd),
            exclude: new RegExp(common.resolve.root + '|' + common.themeDependenciesPath +
              '|' + path.join(cwd, 'node_modules')),
          },
          {
            test: /\.css$/,
            loaders: [
              'style-loader',
              'css-loader',
            ],
          },
          {
            test: /\.scss$/,
            loaders: [
              'style-loader',
              'css-loader',
              'autoprefixer-loader?{browsers:["last 2 version", "ie 10", "Android 4"]}',
              'sass-loader',
            ],
          },
          {
            test: /\.md$/,
            loader: 'json!yaml-frontmatter-loader',
          }
        ].concat(themeConfig.module && themeConfig.module.loaders? themeConfig.module.loaders: []).
        concat(siteConfig.module && siteConfig.module.loaders? siteConfig.module.loaders: []),
      },
      resolve: common.resolve,
      resolveLoader: common.resolveLoader,
{'fraction_non_alphanumeric': 0.1543009727255388, 'fraction_numerical': 0.0030516879649055886, 'mean_word_length': 1.480605487228004, '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': '5952422', 'n_tokens_mistral': 1563, 'n_tokens_neox': 1503, 'n_words': 247}