<commit_before>/* global __dirname, require, module*/

const path = require("path");
const yargs = require("yargs");
const env = yargs.argv.env; // use --env with webpack 2
const shouldExportToAMD = yargs.argv.amd;

let libraryName = "Navigo";

let outputFile, mode;

if (shouldExportToAMD) {
  libraryName += ".amd";
}

if (env === "build") {
  mode = "production";
  outputFile = libraryName + ".min.js";
} else {
  mode = "development";
  outputFile = libraryName + ".js";
}

const config = {
  mode: mode,
  entry: __dirname + "/src/index.ts",
  devtool: "source-map",<commit_msg>Convert arrow functions to function markup<commit_after>/* global __dirname, require, module*/

const path = require("path");
const yargs = require("yargs");
const env = yargs.argv.env; // use --env with webpack 2
const shouldExportToAMD = yargs.argv.amd;

let libraryName = "Navigo";

let outputFile, mode;

if (shouldExportToAMD) {
  libraryName += ".amd";
}

if (env === "build") {
  mode = "production";
  outputFile = libraryName + ".min.js";
} else {
  mode = "development";
  outputFile = libraryName + ".js";
}

const config = {
  mode: mode,
  entry: __dirname + "/src/index.ts",
  devtool: "source-map",
  target: "es5",
{'fraction_non_alphanumeric': 0.16474464579901152, 'fraction_numerical': 0.002471169686985173, 'mean_word_length': 3.9795081967213113, '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': '186204', 'n_tokens_mistral': 417, 'n_tokens_neox': 407, 'n_words': 116}