<commit_before>'use strict';

var tape = require('tape');

exports = module.exports = function exports(name, harness, fake) {
  (fake || tape)(name, function(testObj) {
    var tests = [];

    function describe(child, harness) {
      tests.push(function() {
        exports(name + ' ' + child, harness, function() {
          testObj.test.apply(testObj, arguments);
        });
      });
    }

    function it(desc, test) {
      tests.push(function() {
        var assert = makeAsserter(testObj, name + ' ' + desc);

        try {
          test(assert);
        } catch (e) {
          testObj.error(e);
        }
      });
    }

    describe.skip =
    it.skip = function(desc) {
      tests.push(function() {
        testObj.skip(name + ' ' + desc);
      });
    };

    harness(it, describe);

    testObj.plan(tests.length);

    for (var i = 0; i < tests.length; i++) {
      tests[i]();
    }
  });
};

exports.skip = function(name, harness) {
  exports(name, harness, function() {
    tape.skip.apply(tape, arguments);
  });
};

exports.only = function(name, harness) {
  exports(name, harness, function() {
    tape.only.apply(tape, arguments);
  });
};

function makeAsserter(t, msg) {
  var assert = {};

  assert.skip = function() {
    t.skip(msg);
  };

  assert.fail = function() {
    t.fail(msg);
  };

  assert.pass = function() {
    t.pass(msg);
  };

  assert.skip = function() {
    t.skip(msg);
  };

  assert.ok =
  assert['true'] =
  assert.assert = function(value) {
    t.ok(value, msg);
  };

  assert.notOk =
  assert['false'] =
  assert.notok = function(value) {
    t.notOk(value, msg);
  };

  assert.error =
  assert.ifError =
  assert.ifErr =
  assert.iferror = function(err) {
    t.error(err, msg);
  };

  assert.equals =
  assert.isEqual =
  assert.is =
  assert.strictEqual =
  assert.strictEquals =
  assert.equal = function(actual, expected) {
    t.equal(actual, expected, msg);
  };

  assert.notEquals =
  assert.notStrictEqual =
  assert.notStrictEquals =
  assert.isNotEqual =
  assert.isNot =
  assert.not =
  assert.doesNotEqual =
  assert.isInequal =
  assert.notEqual = function(actual, expected) {
    t.notEqual(actual, expected, msg);
  };

  assert.deepEqual =
  assert.isEquivalent =
  assert.same =
  assert.deepEqual = function(actual, expected) {
    t.deepEqual(actual, expected, msg);
  };

  assert.notEquivalent =
  assert.notDeeply =
  assert.notSame =
  assert.isNotDeepEqual =
  assert.isNotDeeply =
  assert.isNotEquivalent =
  assert.isInequivalent =
  assert.notDeepEqual = function(actual, expected) {
    t.notDeepEqual(actual, expected, msg);
  };

  assert.notLooseEqual =
  assert.notLooseEquals =
  assert.deepLooseEqual = function(actual, expected) {
    t.deepLooseEqual(actual, expected, msg);
  };

  assert.notDeepLooseEqual = function(actual, expected) {
    t.notDeepLooseEqual(actual, expected, msg);
  };<commit_msg>fix typo where notLooseEqual is being assigned to deepLooseEqual<commit_after>'use strict';

var tape = require('tape');

exports = module.exports = function exports(name, harness, fake) {
  (fake || tape)(name, function(testObj) {
    var tests = [];

    function describe(child, harness) {
      tests.push(function() {
        exports(name + ' ' + child, harness, function() {
          testObj.test.apply(testObj, arguments);
        });
      });
    }

    function it(desc, test) {
      tests.push(function() {
        var assert = makeAsserter(testObj, name + ' ' + desc);

        try {
          test(assert);
        } catch (e) {
          testObj.error(e);
        }
      });
    }

    describe.skip =
    it.skip = function(desc) {
      tests.push(function() {
        testObj.skip(name + ' ' + desc);
      });
    };

    harness(it, describe);

    testObj.plan(tests.length);

    for (var i = 0; i < tests.length; i++) {
      tests[i]();
    }
  });
};

exports.skip = function(name, harness) {
  exports(name, harness, function() {
    tape.skip.apply(tape, arguments);
  });
};

exports.only = function(name, harness) {
  exports(name, harness, function() {
    tape.only.apply(tape, arguments);
  });
};

function makeAsserter(t, msg) {
  var assert = {};

  assert.skip = function() {
    t.skip(msg);
  };

  assert.fail = function() {
    t.fail(msg);
  };

  assert.pass = function() {
    t.pass(msg);
  };

  assert.skip = function() {
    t.skip(msg);
  };

  assert.ok =
  assert['true'] =
  assert.assert = function(value) {
    t.ok(value, msg);
  };

  assert.notOk =
  assert['false'] =
  assert.notok = function(value) {
    t.notOk(value, msg);
  };

  assert.error =
  assert.ifError =
  assert.ifErr =
  assert.iferror = function(err) {
    t.error(err, msg);
  };

  assert.equals =
  assert.isEqual =
  assert.is =
  assert.strictEqual =
  assert.strictEquals =
  assert.equal = function(actual, expected) {
    t.equal(actual, expected, msg);
  };

  assert.notEquals =
  assert.notStrictEqual =
  assert.notStrictEquals =
  assert.isNotEqual =
  assert.isNot =
  assert.not =
  assert.doesNotEqual =
  assert.isInequal =
  assert.notEqual = function(actual, expected) {
    t.notEqual(actual, expected, msg);
  };

  assert.deepEqual =
  assert.isEquivalent =
  assert.same =
  assert.deepEqual = function(actual, expected) {
    t.deepEqual(actual, expected, msg);
  };

  assert.notEquivalent =
  assert.notDeeply =
  assert.notSame =
  assert.isNotDeepEqual =
  assert.isNotDeeply =
  assert.isNotEquivalent =
  assert.isInequivalent =
  assert.notDeepEqual = function(actual, expected) {
    t.notDeepEqual(actual, expected, msg);
  };

  assert.looseEqual =
  assert.looseEquals =
  assert.deepLooseEqual = function(actual, expected) {
    t.deepLooseEqual(actual, expected, msg);
  };

  assert.notLooseEqual =
  assert.notLooseEquals =
  assert.notDeepLooseEqual = function(actual, expected) {
    t.notDeepLooseEqual(actual, expected, msg);
  };
{'fraction_non_alphanumeric': 0.15069420927869961, 'fraction_numerical': 0.0003386386725364037, 'mean_word_length': 2.8085106382978724, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1802416', 'n_tokens_mistral': 2052, 'n_tokens_neox': 1999, 'n_words': 350}