<commit_before>var webpack = require("webpack");
var path = require("path");

module.exports = {
  devtool: "source-map",
  entry: path.join(__dirname, "src/main.js"),

  output: {
    path: "./built/js",
    publicPath: "/js/",
    filename: "main.js"
  },

  resolve: { extensions: ["", ".js"] },

  module: {
    loaders: [{
      test: /\.js?$/,
      exclude: /(node_modules)/,
      loaders: ["babel"]
    }, {
      test: /\.css$/,
      loaders: ["style", "css", "autoprefixer-loader?browsers=last 2 version"]
    }]
  },

  plugins: [

    // ignore moment locales
    new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),

    new webpack.DefinePlugin({
      "process.env": {
        NODE_ENV: JSON.stringify("production")
      }
    }),

    new webpack.optimize.UglifyJsPlugin({
      mangle: {
        except: [
          "Birthdays",
          "DisabledDays",
          "InputField",
          "Localized",
          "Range",
          "SelectableDay",
          "SimpleCalendar",
          "TouchEvents",
          "YearCalendar",
          "YearNavigation"
        ]
      },
      compress: {
        warnings: false
      }
    })

  ]

};<commit_msg>Do not mangle Restricted example<commit_after>var webpack = require("webpack");
var path = require("path");

module.exports = {
  devtool: "source-map",
  entry: path.join(__dirname, "src/main.js"),

  output: {
    path: "./built/js",
    publicPath: "/js/",
    filename: "main.js"
  },

  resolve: { extensions: ["", ".js"] },

  module: {
    loaders: [{
      test: /\.js?$/,
      exclude: /(node_modules)/,
      loaders: ["babel"]
    }, {
      test: /\.css$/,
      loaders: ["style", "css", "autoprefixer-loader?browsers=last 2 version"]
    }]
  },

  plugins: [

    // ignore moment locales
    new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),

    new webpack.DefinePlugin({
      "process.env": {
        NODE_ENV: JSON.stringify("production")
      }
    }),

    new webpack.optimize.UglifyJsPlugin({
      mangle: {
        except: [
          "Birthdays",
          "DisabledDays",
          "InputField",
          "Localized",
          "Range",
          "Restricted",
          "SelectableDay",
          "SimpleCalendar",
          "TouchEvents",
          "YearCalendar",
          "YearNavigation"
        ]
      },
      compress: {
        warnings: false
      }
    })

  ]

};
{'fraction_non_alphanumeric': 0.1741502308015107, 'fraction_numerical': 0.000839278220730172, 'mean_word_length': 1.8653846153846154, 'pattern_counts': {'":': 2, '<': 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': '4522645', 'n_tokens_mistral': 795, 'n_tokens_neox': 762, 'n_words': 139}