<commit_before>function getTests() {
  return [
    {
      desc: 'ensure amd module is loaded correctly',
      run: function (env, test) {
        if (typeof amdMod !== 'undefined') {
          test.assertTypeAnd(amdMod, 'function');
          var amdmod = new amdMod();
          test.assertType(amdmod.addRecord, 'function');
        } else{
          test.done();
        }
      }
    },

    {
      desc: '# getRecordIFExists  - with no params returns undefined',
      run: function (env, test) {
        test.assert(env.mod.getRecord('thingy'), undefined);
      }
    },

    {
      desc: '# addRecord 1',
      run: function (env, test) {
        test.assert(env.mod.addRecord({id:'thingy1'}), true);
      }
    },

    {
      desc: '# getRecordIFExists',
      run: function (env, test) {
        test.assert(env.mod.getRecord('thingy1'), {id:'thingy1'});
      }
    },

    {
      desc: '# addRecord with no identifier',
      run: function (env, test) {
        test.throws(env.mod.addRecord, Error, 'caught thrown exception');
      }
    },

    {
      desc: '# addRecord 2',
      run: function (env, test) {
        test.assert(env.mod.addRecord({id:'thingy2'}), true);
      }
    },

    {
      desc: '# addRecord 3',
      run: function (env, test) {
        test.assert(env.mod.addRecord({id:'thingy3'}), true);
      }
    },

    {
      desc: '# getCount (3)',
      run: function (env, test) {
        test.assert(env.mod.getCount(), 3);
      }
    },

    {
      desc: '# getIndexes',
      run: function (env, test) {
        test.assert(env.mod.getIdentifiers(), ['thingy3', 'thingy2', 'thingy1']);
      }
    },

    {
      desc: '# removeRecord 2',
      run: function (env, test) {
        test.assert(env.mod.removeRecord('thingy2'), true);
      }
    },

    {
      desc: '# getCount (2)',
      run: function (env, test) {
        test.assert(env.mod.getCount(), 2);
      }
    },
  ];
}


if (typeof define !== 'function') {
  var define = require('amdefine')(module);
}
define(['require'], function (require) {
  return [{
    desc: "basic tests",
    setup: function (env, test) {
      var Mod = require('./../array-keys');
      test.assertTypeAnd(Mod, 'function');
      env.mod = new Mod();
      test.assertType(env.mod, 'object');
    },
    tests: getTests(),
  },
  {
    desc: "basic tests (browserify)",
    setup: function (env, test) {
      var Mod = require('./../dist/array-keys.js');
console.log('mod: ', Mod);
      test.assertTypeAnd(Mod, 'function');
      env.mod = new Mod();
      test.assertType(env.mod, 'object');
    },
    tests: getTests(),
  },
  {
    desc: "basic tests (browserify minified)",
    setup: function (env, test) {
      var Mod = require('./../dist/array-keys.min.js');
console.log('mod: ', Mod);
      test.assertTypeAnd(Mod, 'function');
      env.mod = new Mod();
      test.assertType(env.mod, 'object');
    },
    tests: getTests(),
  }];
});
<commit_msg>remove logging<commit_after>function getTests() {
  return [
    {
      desc: 'ensure amd module is loaded correctly',
      run: function (env, test) {
        if (typeof amdMod !== 'undefined') {
          test.assertTypeAnd(amdMod, 'function');
          var amdmod = new amdMod();
          test.assertType(amdmod.addRecord, 'function');
        } else{
          test.done();
        }
      }
    },

    {
      desc: '# getRecordIFExists  - with no params returns undefined',
      run: function (env, test) {
        test.assert(env.mod.getRecord('thingy'), undefined);
      }
    },

    {
      desc: '# addRecord 1',
      run: function (env, test) {
        test.assert(env.mod.addRecord({id:'thingy1'}), true);
      }
    },

    {
      desc: '# getRecordIFExists',
      run: function (env, test) {
        test.assert(env.mod.getRecord('thingy1'), {id:'thingy1'});
      }
    },

    {
      desc: '# addRecord with no identifier',
      run: function (env, test) {
        test.throws(env.mod.addRecord, Error, 'caught thrown exception');
      }
    },

    {
      desc: '# addRecord 2',
      run: function (env, test) {
        test.assert(env.mod.addRecord({id:'thingy2'}), true);
      }
    },

    {
      desc: '# addRecord 3',
      run: function (env, test) {
        test.assert(env.mod.addRecord({id:'thingy3'}), true);
      }
    },

    {
      desc: '# getCount (3)',
      run: function (env, test) {
        test.assert(env.mod.getCount(), 3);
      }
    },

    {
      desc: '# getIndexes',
      run: function (env, test) {
        test.assert(env.mod.getIdentifiers(), ['thingy3', 'thingy2', 'thingy1']);
      }
    },

    {
      desc: '# removeRecord 2',
      run: function (env, test) {
        test.assert(env.mod.removeRecord('thingy2'), true);
      }
    },

    {
      desc: '# getCount (2)',
      run: function (env, test) {
        test.assert(env.mod.getCount(), 2);
      }
    },
  ];
}


if (typeof define !== 'function') {
  var define = require('amdefine')(module);
}
define(['require'], function (require) {
  return [{
    desc: "basic tests",
    setup: function (env, test) {
      var Mod = require('./../array-keys');
      test.assertTypeAnd(Mod, 'function');
      env.mod = new Mod();
      test.assertType(env.mod, 'object');
    },
    tests: getTests(),
  },
  {
    desc: "basic tests (browserify)",
    setup: function (env, test) {
      var Mod = require('./../dist/array-keys.js');
      test.assertTypeAnd(Mod, 'function');
      env.mod = new Mod();
      test.assertType(env.mod, 'object');
    },
    tests: getTests(),
  },
  {
    desc: "basic tests (browserify minified)",
    setup: function (env, test) {
      var Mod = require('./../dist/array-keys.min.js');
      test.assertTypeAnd(Mod, 'function');
      env.mod = new Mod();
      test.assertType(env.mod, 'object');
    },
    tests: getTests(),
  }];
});

{'fraction_non_alphanumeric': 0.17971014492753623, 'fraction_numerical': 0.005797101449275362, 'mean_word_length': 2.113588110403397, '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': '728763', 'n_tokens_mistral': 1942, 'n_tokens_neox': 1907, 'n_words': 401}