<commit_before>var path = require("path");
var webpack = require('webpack');
var BundleTracker = require('webpack-bundle-tracker');
var ExtractTextPlugin = require("extract-text-webpack-plugin");

function extsToRegExp(exts) {
  return new RegExp("\\.(" + exts.map(function(ext) {
    return ext.replace(/\./g, "\\.");
  }).join("|") + ")(\\?.*)?$");
}

function loadersByExtension(obj) {
  var loaders = [];
  Object.keys(obj).forEach(function(key) {
    var exts = key.split("|");
    var value = obj[key];
    var entry = {
      extensions: exts,
      test: extsToRegExp(exts)
    };
    if(Array.isArray(value)) {
      entry.loaders = value;
    } else if(typeof value === "string") {
      entry.loader = value;
    } else {
      Object.keys(value).forEach(function(valueKey) {
        entry[valueKey] = value[valueKey];
      });
    }
    loaders.push(entry);
  });
  return loaders;
};

module.exports = function(options) {
  var entry = {
    app: ["./client/index.jsx"],
    sass: ["./client/sass/main.scss"],
    vendor: ["lodash", "react", "react-router"]
  };
<commit_msg>Updated vendor packages in webpack config.<commit_after>var path = require("path");
var webpack = require('webpack');
var BundleTracker = require('webpack-bundle-tracker');
var ExtractTextPlugin = require("extract-text-webpack-plugin");

function extsToRegExp(exts) {
  return new RegExp("\\.(" + exts.map(function(ext) {
    return ext.replace(/\./g, "\\.");
  }).join("|") + ")(\\?.*)?$");
}

function loadersByExtension(obj) {
  var loaders = [];
  Object.keys(obj).forEach(function(key) {
    var exts = key.split("|");
    var value = obj[key];
    var entry = {
      extensions: exts,
      test: extsToRegExp(exts)
    };
    if(Array.isArray(value)) {
      entry.loaders = value;
    } else if(typeof value === "string") {
      entry.loader = value;
    } else {
      Object.keys(value).forEach(function(valueKey) {
        entry[valueKey] = value[valueKey];
      });
    }
    loaders.push(entry);
  });
  return loaders;
};

module.exports = function(options) {
  var entry = {
    app: ["./client/index.jsx"],
    sass: ["./client/sass/main.scss"],
    vendor: ["react", "react-router", "react-redux", "react-router-redux", "newforms", "core-decorators", "moment"]
  };

{'fraction_non_alphanumeric': 0.19648351648351647, 'fraction_numerical': 0.0, 'mean_word_length': 3.2383612662942274, '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': '5855607', 'n_tokens_mistral': 781, 'n_tokens_neox': 775, 'n_words': 141}