<commit_before>#!/usr/bin/env node
"use strict";

var fs = require("fs");

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ·.· ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

var boilerplate;
var years;
var months;
var days;
var i;
var j;
var k;
var li;
var lj;
var lk;
var pad;

pad =
  function (n) {
    return (n > 9 ? "" : "0") + n;
  };



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

years = [ 2000, 2013, 2016, 2100 ];
months =
  [
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
    "July",
    "August",
    "September",
    "October",
    "November",
    "December"
  ];
days = [ 0, 1, 28, 29, 30, 31, 32 ];

/* Fucking ugly boilerplate generator code is fucking ugly. */
boilerplate = "";
for (i = 0, li = years.length; i < li; ++ i) {
  boilerplate +=
    "  describe(\"" + years[i] + ":\", function () {\n" +
    "\n";
  for (j = 0, lj = months.length; j < lj; ++ j) {
    boilerplate +=
      "    describe(\"" + months[j] + ":\", function () {\n" +
      "\n";
    for (k = 0, lk = days.length; k < lk; ++ k) {
      boilerplate +=
        "      describe(\"" + days[k] + ":\", function () {\n" +
        "        /* Year → Month → Date. */\n" +
        "        describe(\"`var tau = new Tau().setUtcYear(" + years[i] +
          ").setUtcMonth(" + j + ").setUtcDate(" + days[k] +
          ");`:\", function () {\n" +
        "          var tau = new Tau().setUtcYear(" + years[i] +
          ").setUtcMonth(" + j + ").setUtcDate(" + days[k] + ");\n" +
        "          it(\"… should result in `tau.getUtcIsoString()` being" +
          " equal to `\\\"" + years[i] + "-" + pad(j + 1) + "-" +
          pad(days[k]) + "T00:00:000Z\\\"`.\", function () {\n" +
        "            assert.strictEqual(tau.getUtcIsoString(), \"" + years[i] +
          "-" + pad(j + 1) + "-" + pad(days[k]) + "T00:00:000Z\");\n" +
        "          });\n" +
        "          it(\"… should result in `tau.isValid()` being `true`.\", " +
          "function () {\n" +
        "            assert.strictEqual(tau.isValid(), true);\n" +
        "          });\n" +
        "        });\n" +
        "        /* Date → Month → Year. */\n" +
        "        describe(\"`var tau = new Tau().setUtcDate(" + days[k] +
          ").setUtcMonth(" + j + ").setUtcYear(" + years[i] +
          ");`:\", function () {\n" +
        "          var tau = new Tau().setUtcDate(" + days[k] +
          ").setUtcMonth(" + j + ").setUtcYear(" + years[i] + ");\n" +
        "          it(\"… should result in `tau.getUtcIsoString()` being" +
          " equal to `\\\"" + years[i] + "-" + pad(j + 1) + "-" +
          pad(days[k]) + "T00:00:000Z\\\"`.\", function () {\n" +
        "            assert.strictEqual(tau.getUtcIsoString(), \"" + years[i] +
          "-" + pad(j + 1) + "-" + pad(days[k]) + "T00:00:000Z\");\n" +
        "          });\n" +
        "          it(\"… should result in `tau.isValid()` being `true`.\", " +
          "function () {\n" +
        "            assert.strictEqual(tau.isValid(), true);\n" +
        "          });\n" +<commit_msg>generate-boilerplate.js no longer employs the 79-character line length limit, for increased readability.<commit_after>#!/usr/bin/env node
"use strict";

var fs = require("fs");

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ·.· ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

var boilerplate;
var years;
var months;
var days;
var i;
var j;
var k;
var li;
var lj;
var lk;
var pad;

pad =
  function (n) {
    return (n > 9 ? "" : "0") + n;
  };



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

years = [ 2000, 2013, 2016, 2100 ];
months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
days = [ 0, 1, 28, 29, 30, 31, 32 ];

/* Fucking ugly boilerplate generator code is fucking ugly. */
boilerplate = "";
for (i = 0, li = years.length; i < li; ++ i) {
  boilerplate +=
    "  describe(\"" + years[i] + ":\", function () {\n" +
    "\n";
  for (j = 0, lj = months.length; j < lj; ++ j) {
    boilerplate +=
      "    describe(\"" + months[j] + ":\", function () {\n" +
      "\n";
    for (k = 0, lk = days.length; k < lk; ++ k) {
      boilerplate +=
        "      describe(\"" + days[k] + ":\", function () {\n" +
        "        /* Year → Month → Date. */\n" +
        "        describe(\"`var tau = new Tau().setUtcYear(" + years[i] + ").setUtcMonth(" + j + ").setUtcDate(" + days[k] + ");`:\", function () {\n" +
        "          var tau = new Tau().setUtcYear(" + years[i] + ").setUtcMonth(" + j + ").setUtcDate(" + days[k] + ");\n" +
        "          it(\"… should result in `tau.getUtcIsoString()` being equal to `\\\"" + years[i] + "-" + pad(j + 1) + "-" + pad(days[k]) + "T00:00:000Z\\\"`.\", function () {\n" +
        "            assert.strictEqual(tau.getUtcIsoString(), \"" + years[i] + "-" + pad(j + 1) + "-" + pad(days[k]) + "T00:00:000Z\");\n" +
        "          });\n" +
        "          it(\"… should result in `tau.isValid()` being `true`.\", function () {\n" +
        "            assert.strictEqual(tau.isValid(), true);\n" +
        "          });\n" +
        "        });\n" +
        "        /* Date → Month → Year. */\n" +
        "        describe(\"`var tau = new Tau().setUtcDate(" + days[k] + ").setUtcMonth(" + j + ").setUtcYear(" + years[i] + ");`:\", function () {\n" +
        "          var tau = new Tau().setUtcDate(" + days[k] + ").setUtcMonth(" + j + ").setUtcYear(" + years[i] + ");\n" +
        "          it(\"… should result in `tau.getUtcIsoString()` being equal to `\\\"" + years[i] + "-" + pad(j + 1) + "-" + pad(days[k]) + "T00:00:000Z\\\"`.\", function () {\n" +
        "            assert.strictEqual(tau.getUtcIsoString(), \"" + years[i] + "-" + pad(j + 1) + "-" + pad(days[k]) + "T00:00:000Z\");\n" +
        "          });\n" +
        "          it(\"… should result in `tau.isValid()` being `true`.\", function () {\n" +
        "            assert.strictEqual(tau.isValid(), true);\n" +
        "          });\n" +
{'fraction_non_alphanumeric': 0.2807104094721263, 'fraction_numerical': 0.021706956092747903, 'mean_word_length': 1.946705426356589, 'pattern_counts': {'":': 6, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6692023', 'n_tokens_mistral': 2609, 'n_tokens_neox': 2699, 'n_words': 491}