<commit_before>/*
 * mobile support unit tests
 */

(function( $ ) {
	$.testHelper = {
		// synchronously loads sets of asynchronous dependencies
		asyncLoad: function( seq ) {
			function loadSeq( seq, i ){
				if( !seq[i] ){
					QUnit.start();
					return;
				}

				require({
					baseUrl: (seq[i][0].indexOf(".") > -1) ? "../../../js" : location.pathname
				});

				require( seq[i], function() {
					loadSeq(seq, i + 1);
				});
			}

			// stop qunit from running the tests until everything is in the page
			QUnit.config.autostart = false;
<commit_msg>added note to test helper<commit_after>/*
 * mobile support unit tests
 */

(function( $ ) {
	$.testHelper = {
		// synchronously loads sets of asynchronous dependencies
		asyncLoad: function( seq ) {
			function loadSeq( seq, i ){
				if( !seq[i] ){
					QUnit.start();
					return;
				}

        // if the file has a dot in the name its most likely a lib file
        // so we should grab it from the js directory. This could be regarded
        // as overeager convention ... don't care its a test helper and the
        // failure will be obvious if it happens (eg "can't load this file")
				require({
					baseUrl: (seq[i][0].indexOf(".") > -1) ? "../../../js" : location.pathname
				});

				require( seq[i], function() {
					loadSeq(seq, i + 1);
				});
			}

			// stop qunit from running the tests until everything is in the page
			QUnit.config.autostart = false;

{'fraction_non_alphanumeric': 0.1443442054129077, 'fraction_numerical': 0.004163775156141568, 'mean_word_length': 2.3457076566125292, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1523342', 'n_tokens_mistral': 539, 'n_tokens_neox': 438, 'n_words': 155}