<commit_before>(function() {
  'use strict';

  test('add', function() {
    ok(true);
  });
})();<commit_msg>Seeded random function<commit_after>(function() {
  'use strict';

  function seededRandomFn(seed) {
    function random() {
      seed++;
      seed = (seed * 9301 + 49297) % 233280;
      return seed / 233280;
    }
    return random;
  }


  if (!sessionStorage.seed) {
    sessionStorage.seed = Math.random();
  }
  var suiteSeed = parseFloat(sessionStorage.seed);
  var suiteRand = seededRandomFn(suiteSeed);
  var testCount = 10;

  function test(testName, callback) {
    var i, seed, rand;
    for (i = 0; i < testCount; i++) {
      seed = suiteRand();
      rand = seededRandomFn(seed);
      QUnit.test(testName + ' (' + seed + ')', function() {
        callback.call(this, rand);
      });
    }
  }


  test('add', function(rand) {
    ok(true, rand());
    ok(true, rand());
    ok(true, rand());
  });
})();
{'fraction_non_alphanumeric': 0.1759656652360515, 'fraction_numerical': 0.02575107296137339, 'mean_word_length': 2.8081632653061224, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6364200', 'n_tokens_mistral': 342, 'n_tokens_neox': 310, 'n_words': 69}