<commit_before>var webpack = require('webpack');
var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
const DefinePlugin = webpack.DefinePlugin;
//var OpenBrowserPlugin = require('open-browser-webpack-plugin');
const path = require('path');

module.exports = {
  entry: './src/index.jsx',
  devtool: process.env.WEBPACK_DEVTOOL || 'source-map',
  output: {
    filename: 'bundle.js',
    path: path.resolve('./www'),
    publicPath: '/'
  },
  resolve: {
    extensions: ['', '.js', '.jsx'],
    root: path.resolve('./src') //set root folder
  },
  module: {
    loaders:[
      { 
        test: /\.js[x]?$/, 
        loader: 'babel-loader',
        exclude:/node_modules/, 
        query: {
          presets: ['es2015', 'react','stage-0' ]
        }
      },
      { test: /\.css$/, loader: "style-loader!css-loader" },
      { test: /\.png$/, loader: "url-loader?limit=100000" },
      { test: /\.jpg$/, loader: "file-loader" },
      { test: /\.json$/, loader: 'json' } // for react-markdown
    ]
  },
  plugins: [
    new DefinePlugin({
      'process.env.NODE_ENV': JSON.stringify('production')
    }),
    //new CommonsChunkPlugin('init.js'),
    //new OpenBrowserPlugin({ url: 'http://localhost:8080' })
  ] ,

}<commit_msg>update build with less support<commit_after>var webpack = require('webpack');
var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
const DefinePlugin = webpack.DefinePlugin;
//var OpenBrowserPlugin = require('open-browser-webpack-plugin');
const path = require('path');

module.exports = {
  entry: './src/index.jsx',
  devtool: process.env.WEBPACK_DEVTOOL || 'source-map',
  output: {
    filename: 'bundle.js',
    path: path.resolve('./www'),
    publicPath: '/'
  },
  resolve: {
    extensions: ['', '.js', '.jsx'],
    root: path.resolve('./src') //set root folder
  },
  module: {
    loaders:[
      { 
        test: /\.js[x]?$/, 
        loader: 'babel-loader',
        exclude:/node_modules/, 
        query: {
          presets: ['es2015', 'react','stage-0' ]
        }
      },
      { test: /\.css$/, loader: "style-loader!css-loader" },
      { test: /\.less$/, loader: "style!css!less" },
      { test: /\.png$/, loader: "url-loader?limit=100000" },
      { test: /\.jpg$/, loader: "file-loader" },
      { test: /\.json$/, loader: 'json' } // for react-markdown
    ]
  },
  plugins: [
    new DefinePlugin({
      'process.env.NODE_ENV': JSON.stringify('production')
    }),
    //new CommonsChunkPlugin('init.js'),
    //new OpenBrowserPlugin({ url: 'http://localhost:8080' })
  ] ,

}
{'fraction_non_alphanumeric': 0.20239938080495357, 'fraction_numerical': 0.011609907120743035, 'mean_word_length': 2.6562942008486563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '298587', 'n_tokens_mistral': 890, 'n_tokens_neox': 841, 'n_words': 160}