<commit_before>
load('sugar.js');

load('locales/ca.js');
load('locales/da.js');
load('locales/de.js');
load('locales/es.js');
load('locales/fi.js');
load('locales/fr.js');
load('locales/it.js');
load('locales/ja.js');
load('locales/ko.js');
load('locales/nl.js');
load('locales/pl.js');
load('locales/pt.js');
load('locales/ru.js');
load('locales/sv.js');
load('locales/zh-CN.js');
load('locales/zh-TW.js');

load('test/suite/suite.js');
load('test/suite/log.js');
load('test/suite/helpers/core.js');
load('test/suite/helpers/common.js');
load('test/suite/helpers/array.js');
load('test/suite/helpers/date.js');
load('test/suite/helpers/object.js');

/*
 * 1.7 KNOWN ISSUES:
 *
 * Object(str) produces type "object" but has no defined keys. This breaks a
 * number of tests including Object.isEmpty, Object.size, etc for strings.
 *
 * Additionally Rhino appears to allow overwriting non-writable attributes, so
 * tests that assert on those errors will fail.
 *
 * The function module cannot be used at all as it doesn't have a setTimeout
 * method. A workaround for this can be found here:
 * http://stackoverflow.com/questions/2261705/how-to-run-a-javascript-function-asynchronously-without-using-settimeout
 *
 * However the test suite still cannot be loaded as Rhino shadows the "global"
 * object which causes sinon to break.
 *
 */

load('test/tests/core.js');
load('test/tests/array.js');
load('test/tests/date.js');
load('test/tests/equals.js');
// load('test/tests/function.js');
load('test/tests/number.js');
load('test/tests/object.js');
load('test/tests/regexp.js');
load('test/tests/string.js');
load('test/tests/enumerable.js');

load('test/tests/range/date.js');
load('test/tests/range/number.js');
load('test/tests/range/string.js');

load('test/tests/locales/ca.js');
load('test/tests/locales/da.js');
load('test/tests/locales/de.js');
load('test/tests/locales/es.js');
load('test/tests/locales/fi.js');
load('test/tests/locales/fr.js');
load('test/tests/locales/it.js');
load('test/tests/locales/ja.js');
load('test/tests/locales/ko.js');
load('test/tests/locales/nl.js');
load('test/tests/locales/pl.js');
load('test/tests/locales/pt.js');
load('test/tests/locales/ru.js');
load('test/tests/locales/sv.js');
load('test/tests/locales/zh-CN.js');
load('test/tests/locales/zh-TW.js');

runTests(logResults, false, 'rhino');<commit_msg>small rhino test fix<commit_after>
load('sugar.js');

load('locales/ca.js');
load('locales/da.js');
load('locales/de.js');
load('locales/es.js');
load('locales/fi.js');
load('locales/fr.js');
load('locales/it.js');
load('locales/ja.js');
load('locales/ko.js');
load('locales/nl.js');
load('locales/pl.js');
load('locales/pt.js');
load('locales/ru.js');
load('locales/sv.js');
load('locales/zh-CN.js');
load('locales/zh-TW.js');

load('test/suite/suite.js');
load('test/suite/log.js');
load('test/suite/helpers/core.js');
load('test/suite/helpers/common.js');
load('test/suite/helpers/array.js');
load('test/suite/helpers/date.js');
load('test/suite/helpers/object.js');

/*
 * 1.7 KNOWN ISSUES:
 *
 * Object(str) produces type "object" but has no defined keys. This breaks a
 * number of tests including Object.isEmpty, Object.size, etc for strings.
 *
 * Additionally Rhino appears to allow overwriting non-writable attributes, so
 * tests that assert on those errors will fail.
 *
 * The function module cannot be used at all as it doesn't have a setTimeout
 * method. A workaround for this can be found here:
 * http://stackoverflow.com/questions/2261705/how-to-run-a-javascript-function-asynchronously-without-using-settimeout
 *
 * However the test suite still cannot be loaded as Rhino shadows the "global"
 * object which causes sinon to break.
 *
 */

load('test/tests/core.js');
load('test/tests/array.js');
load('test/tests/date.js');
load('test/tests/equals.js');
// load('test/tests/function.js');
load('test/tests/number.js');
load('test/tests/object.js');
load('test/tests/regexp.js');
load('test/tests/string.js');
load('test/tests/enumerable.js');

load('test/tests/range/date.js');
load('test/tests/range/number.js');
load('test/tests/range/string.js');

load('test/tests/locales/ca.js');
load('test/tests/locales/da.js');
load('test/tests/locales/de.js');
load('test/tests/locales/es.js');
load('test/tests/locales/fi.js');
load('test/tests/locales/fr.js');
load('test/tests/locales/it.js');
load('test/tests/locales/ja.js');
load('test/tests/locales/ko.js');
load('test/tests/locales/nl.js');
load('test/tests/locales/pl.js');
load('test/tests/locales/pt.js');
load('test/tests/locales/ru.js');
load('test/tests/locales/sv.js');
load('test/tests/locales/zh-CN.js');
load('test/tests/locales/zh-TW.js');

runTests(logResults, 'default', 'rhino');
{'fraction_non_alphanumeric': 0.21327114691541235, 'fraction_numerical': 0.0038159847360610556, 'mean_word_length': 5.207894736842105, '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': '616043', 'n_tokens_mistral': 1734, 'n_tokens_neox': 1723, 'n_words': 288}