{"size": 834, "ext": "js", "max_stars_repo_path": "util/pack/pack.js", "max_stars_repo_name": "mukshs/google-maps-utility-library-v3", "max_stars_repo_stars_event_min_datetime": "2015-01-23T08:32:04.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-12T00:14:52.000Z", "max_issues_repo_path": "util/pack/pack.js", "max_issues_repo_name": "mukshs/google-maps-utility-library-v3", "max_issues_repo_issues_event_min_datetime": "2017-03-20T00:40:20.000Z", "max_issues_repo_issues_event_max_datetime": "2017-03-20T00:41:05.000Z", "max_forks_repo_path": "util/pack/pack.js", "max_forks_repo_name": "mukshs/google-maps-utility-library-v3", "max_forks_repo_forks_event_min_datetime": "2015-02-04T06:53:51.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-16T01:52:22.000Z"}
{"max_stars_count": 49, "max_issues_count": 217, "max_forks_count": 121, "avg_line_length": 25.2727272727, "max_line_length": 59, "alphanum_fraction": 0.6043165468}
(function (a) {

  // load the supporting libraries
  var pwd = "util/pack/";
  load(pwd + "packer/rhino/lib/writeFile.js");
  load(pwd + "base2/src/base2.js");
  load(pwd + "packer/Packer.js");
  load(pwd + "packer/Words.js");

  baseDir = a[0];
  filesArray = a[1].split(";");
  for (var i = 0; i < filesArray.length; i++) {
    var currentFile = filesArray[i];

    // arguments
    var inFile = baseDir + "/" + currentFile;
    var outFile = inFile.replace(/\.js$/, "_packed.js");
    print("Packing " + inFile + " to output " + outFile);

    // options
    var base62 = true;
    var shrink = true;

    // do the packing
    var script = readFile(inFile);
    var packer = new Packer;
    var packedScript = packer.pack(script, base62, shrink);

    // write the output
    writeFile(outFile, packedScript);
  }
})(arguments);
