<commit_before>// module:
//		dijit/tests/boilerplate
// description:
//		A <script src="boilerplate.js"> on your test page will:
//
//		- load claro or a specified theme
//		- load the loader (i.e. define the require() method)
//
//		By URL flags you can specify the theme,
//		and optionally enable RTL (right to left) mode, and/or dj_a11y (high-
//		contrast/image off emulation) ... probably not a genuine test for a11y.
//
//		You should NOT be using this in a production environment.  Include
//		your css and set your classes manually:
//
//		<style type="text/css">
//			@import "dijit/themes/claro/document.css";
//		</style>
//		<link id="themeStyles" rel="stylesheet" href="dijit/themes/claro/claro.css"/>
//		<script type="text/javascript" src="dojo/dojo.js"></script>
//		...
//		<body class="claro">

var dir = "",
	theme = "claro",
	testMode = null;

dojoConfig = {
	async: true,
	isDebug: true
};

// Parse the URL, get parameters
if(window.location.href.indexOf("?") > -1){
	var str = window.location.href.substr(window.location.href.indexOf("?")+1).split(/#/);
	var ary  = str[0].split(/&/);
	for(var i = 0; i < ary.length; i++){
		var split = ary[i].split("="),
			key = split[0],
			value = (split[1]||'').replace(/[^\w]/g, "");	// replace() to prevent XSS attack
		switch(key){
			case "locale":
				// locale string | null
				dojoConfig.locale = value;
				break;
			case "dir":
				// rtl | null
				dir = value;
				break;
			case "theme":
				// tundra | soria | nihilo | claro | null
				theme = /null|none/.test(value) ? null : value;
				break;
			case "a11y":
				if(value){ testMode = "dj_a11y"; }
				break;
		}
	}
}<commit_msg>The automated tests assume the locale as English, for checking things like month names in the calendar.   Also, djConfig.locale setting should match the <html lang="en> setting in many test files.  Refs #17022 !strict.<commit_after>// module:
//		dijit/tests/boilerplate
// description:
//		A <script src="boilerplate.js"> on your test page will:
//
//		- load claro or a specified theme
//		- load the loader (i.e. define the require() method)
//
//		By URL flags you can specify the theme,
//		and optionally enable RTL (right to left) mode, and/or dj_a11y (high-
//		contrast/image off emulation) ... probably not a genuine test for a11y.
//
//		You should NOT be using this in a production environment.  Include
//		your css and set your classes manually:
//
//		<style type="text/css">
//			@import "dijit/themes/claro/document.css";
//		</style>
//		<link id="themeStyles" rel="stylesheet" href="dijit/themes/claro/claro.css"/>
//		<script type="text/javascript" src="dojo/dojo.js"></script>
//		...
//		<body class="claro">

var dir = "",
	theme = "claro",
	testMode = null;

dojoConfig = {
	async: true,
	isDebug: true,
	locale: "en-us"
};

// Parse the URL, get parameters
if(window.location.href.indexOf("?") > -1){
	var str = window.location.href.substr(window.location.href.indexOf("?")+1).split(/#/);
	var ary  = str[0].split(/&/);
	for(var i = 0; i < ary.length; i++){
		var split = ary[i].split("="),
			key = split[0],
			value = (split[1]||'').replace(/[^\w]/g, "");	// replace() to prevent XSS attack
		switch(key){
			case "locale":
				// locale string | null
				dojoConfig.locale = value;
				break;
			case "dir":
				// rtl | null
				dir = value;
				break;
			case "theme":
				// tundra | soria | nihilo | claro | null
				theme = /null|none/.test(value) ? null : value;
				break;
			case "a11y":
				if(value){ testMode = "dj_a11y"; }
				break;
		}
	}
}
{'fraction_non_alphanumeric': 0.17866215071972905, 'fraction_numerical': 0.009314140558848433, 'mean_word_length': 2.87746170678337, 'pattern_counts': {'":': 8, '<': 20, '<?xml version=': 0, '>': 20, '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': '3787058', 'n_tokens_mistral': 1414, 'n_tokens_neox': 1289, 'n_words': 360}