<commit_before><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
	"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>Test Dijit Cell Editors</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<meta name="viewport" content="width=570" />
		<style type="text/css">
			@import "../../dojo/resources/dojo.css";
			@import "../../dijit/themes/claro/claro.css";
			@import "../css/skins/claro.css";
			.heading {
				font-weight: bold;
				padding-bottom: 0.25em;
			}
			#grid .field-date, #grid .field-date2 {
				width: 16em;
			}
			#grid .field-integer {
				width: 6em;
			}
			#grid .field-bool {
				width: 6em;
			}
			.ui-widget{
				margin: 10px;
			}
		</style>
		<script type="text/javascript" src="../../dojo/dojo.js" 
			data-dojo-config="async: true"></script>
		<script type="text/javascript">
			require(["dgrid/List", "dgrid/OnDemandGrid", "dgrid/Selection", "dgrid/Keyboard", "dgrid/editor", "dijit/form/CheckBox", "dijit/form/TimeTextBox",  "dijit/form/Select","dojo/data/ObjectStore", "dijit/form/FilteringSelect", "dojo/_base/declare", "dgrid/test/data/base", "dojo/domReady!"],
				function(List, Grid, Selection, Keyboard, editor, CheckBox, TimeTextBox, Select, ObjectStore, FilteringSelect, declare){

					stateStore = new ObjectStore({
						objectStore:testStateStore,
						labelProperty: "name"
					});

					var columns = [
						{field: "id", label: "id"},
						editor({
							label: "CheckBox",
							field: "bool2",
							editorArgs: {
								value: "checked"
							}
						}, CheckBox),
						editor({label: "Time", field: "date2", editorArgs: {
							timePattern: "HH:mm:ss",
							clickableIncrement: "T00:15:00",
							visibleIncrement: "T00:15:00",
							visibleRange: "T01:00:00"}}, TimeTextBox),
						editor({
							label: "Select Options",
							field: "bool",
							get: function(item){
								// return as string to match option in list
								return "" + item.bool;
							},
							set: function(item){
								// convert back to boolean from string
								return item.bool == "true";
							},
							editorArgs: {
								style: "width:75px;",
								options: [
									{value: "true", label: "true"},
									{value: "false", label: "false"}
								]
							}
						}, Select, "dblclick"),
						editor({label: "Select Store", field: "state", editorArgs: {store: stateStore, maxHeight: 150, style: "width:120px;"}}, Select, "click"),
						editor({label: "FilteringSelect Store", field: "state2", editorArgs: {store: stateStore, maxHeight: 150, style: "width:120px;"}}, FilteringSelect)
						// Note that mileage may vary with editOn + widgets wit multiple focusable children, e.g. dijit/Editor
					];


					window.grid = new (declare([Grid, Selection, Keyboard]))({
						store: testTypesStore,
						columns: columns,
						selectionMode: "none"<commit_msg>Fix typo in test comment<commit_after><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
	"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>Test Dijit Cell Editors</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<meta name="viewport" content="width=570" />
		<style type="text/css">
			@import "../../dojo/resources/dojo.css";
			@import "../../dijit/themes/claro/claro.css";
			@import "../css/skins/claro.css";
			.heading {
				font-weight: bold;
				padding-bottom: 0.25em;
			}
			#grid .field-date, #grid .field-date2 {
				width: 16em;
			}
			#grid .field-integer {
				width: 6em;
			}
			#grid .field-bool {
				width: 6em;
			}
			.ui-widget{
				margin: 10px;
			}
		</style>
		<script type="text/javascript" src="../../dojo/dojo.js" 
			data-dojo-config="async: true"></script>
		<script type="text/javascript">
			require(["dgrid/List", "dgrid/OnDemandGrid", "dgrid/Selection", "dgrid/Keyboard", "dgrid/editor", "dijit/form/CheckBox", "dijit/form/TimeTextBox",  "dijit/form/Select","dojo/data/ObjectStore", "dijit/form/FilteringSelect", "dojo/_base/declare", "dgrid/test/data/base", "dojo/domReady!"],
				function(List, Grid, Selection, Keyboard, editor, CheckBox, TimeTextBox, Select, ObjectStore, FilteringSelect, declare){

					stateStore = new ObjectStore({
						objectStore:testStateStore,
						labelProperty: "name"
					});

					var columns = [
						{field: "id", label: "id"},
						editor({
							label: "CheckBox",
							field: "bool2",
							editorArgs: {
								value: "checked"
							}
						}, CheckBox),
						editor({label: "Time", field: "date2", editorArgs: {
							timePattern: "HH:mm:ss",
							clickableIncrement: "T00:15:00",
							visibleIncrement: "T00:15:00",
							visibleRange: "T01:00:00"}}, TimeTextBox),
						editor({
							label: "Select Options",
							field: "bool",
							get: function(item){
								// return as string to match option in list
								return "" + item.bool;
							},
							set: function(item){
								// convert back to boolean from string
								return item.bool == "true";
							},
							editorArgs: {
								style: "width:75px;",
								options: [
									{value: "true", label: "true"},
									{value: "false", label: "false"}
								]
							}
						}, Select, "dblclick"),
						editor({label: "Select Store", field: "state", editorArgs: {store: stateStore, maxHeight: 150, style: "width:120px;"}}, Select, "click"),
						editor({label: "FilteringSelect Store", field: "state2", editorArgs: {store: stateStore, maxHeight: 150, style: "width:120px;"}}, FilteringSelect)
						// Note that mileage may vary with editOn + widgets with multiple focusable children, e.g. dijit/Editor
					];


					window.grid = new (declare([Grid, Selection, Keyboard]))({
						store: testTypesStore,
						columns: columns,
						selectionMode: "none"
{'fraction_non_alphanumeric': 0.17191283292978207, 'fraction_numerical': 0.019024558976132824, 'mean_word_length': 2.822207534699273, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3371455', 'n_tokens_mistral': 2631, 'n_tokens_neox': 1909, 'n_words': 427}