<commit_before>// example sample data and code
define(["dojo/store/Memory", "dojo/store/Observable", "dojo/store/util/QueryResults"],function(Memory, Observable, QueryResults){
	// some sample data
	// global var "data"
	data = {
		identifier: 'id',
		label: 'id',
		items: []
	};
	data_list = [ 
		{ col1: "normal", col2: false, col3: "new", col4: 'But are not followed by two hexadecimal', col5: 29.91, col6: 10, col7: false },
		{ col1: "important", col2: false, col3: "new", col4: 'Because a % sign always indicates', col5: 9.33, col6: -5, col7: false },
		{ col1: "important", col2: false, col3: "read", col4: 'Signs can be selectively', col5: 19.34, col6: 0, col7: true },
		{ col1: "note", col2: false, col3: "read", col4: 'However the reserved characters', col5: 15.63, col6: 0, col7: true },
		{ col1: "normal", col2: false, col3: "replied", col4: 'It is therefore necessary', col5: 24.22, col6: 5.50, col7: true },
		{ col1: "important", col2: false, col3: "replied", col4: 'To problems of corruption by', col5: 9.12, col6: -3, col7: true },
		{ col1: "note", col2: false, col3: "replied", col4: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris', col5: 12.15, col6: -4, col7: false }
	];

	var rows = 100;
	for(var i=0, l=data_list.length; i<rows; i++){
		data.items.push(dojo.mixin({ id: i }, data_list[i%l]));
	}

	// global var testStore
	testStore = Observable(new Memory({data: data}));

	testAsyncStore = Observable(new Memory({
		data: data,
		query: function(){
			var results = Memory.prototype.query.apply(this, arguments);
			var def = new dojo.Deferred();
			setTimeout(function(){
				def.resolve(results);
			}, 500);
			var promisedResults = QueryResults(def.promise);
			promisedResults.total = results.total;
			return promisedResults;
		}
	}));
	//sample color data
	data2 = {
		identifier: 'id',
		label: 'id',
		items: []
	};
	colors = [
		{ col1: "Red", col2: false, col3: "Primary", col4: 'A primary color', col5: 255, col6: 0, col7: 0 },
		{ col1: "Yellow", col2: false, col3: "Primary", col4: 'A primary color', col5: 255, col6: 255, col7: 0 },
		{ col1: "Blue", col2: false, col3: "Primary", col4: 'A primary color', col5: 0, col6: 0, col7: 255 },
		{ col1: "Orange", col2: false, col3: "Secondary", col4: 'A Secondary color', col5: 255, col6: 165, col7: 0 },
		{ col1: "Purple", col2: false, col3: "Secondary", col4: 'A Secondary color', col5: 160, col6: 32, col7: 240 },
		{ col1: "Green", col2: false, col3: "Secondary", col4: 'A Secondary color', col5: 0, col6: 192, col7: 0 },
		{ col1: "Pink", col2: false, col3: "Hue", col4:'A hue' , col5: 255, col6: 192, col7: 203 }
	];

	for(var i=0, l=colors.length; i<rows; i++){
		data2.items.push(dojo.mixin({ id: i }, colors[i%l]));
	}

	// global var colorStore
	colorStore = Observable(new Memory({data: data2}));
	data2.items= [];
	for(var i=0; i<colors.length; i++){
		data2.items.push(dojo.mixin({ id: i }, colors[i]));
	}
	smallColorStore = Observable(new Memory({data: data2}));
	//empty store
	emptyData = { identifier: 'id', label: 'id', items:[]};
	emptyStore = Observable(new Memory({data: emptyData}));

	//store with non-existent url
	//errorStore = Observable(Memory({data: junk}));

	var typesData = [];
	for(var i = 0; i < 20; i++){
		typesData.push({
			id: i,
			integer: Math.floor(Math.random() * 100),
			floatNum: Math.random() * 100,
			date: new Date(new Date().getTime() * Math.random() * 2),
			time: "T08:45:00",
			text: "A number in text " + Math.random(),
			bool: Math.random() > 0.5,
			bool2: Math.random() > 0.5,
			key: Math.floor(Math.random() * 50)
		});
	}
	// global var testTypesStore
	testTypesStore = Observable(new Memory({data: typesData}));

	testStateStore = Observable(new Memory({
		data: [
		{ "abbreviation": "AL", "name": "Alabama" },
		{ "abbreviation": "AK", "name": "Alaska" },
		{ "abbreviation": "AZ", "name": "Arizona" },
		{ "abbreviation": "AR", "name": "Arkansas" },
		{ "abbreviation": "CA", "name": "California" },
		{ "abbreviation": "CO", "name": "Colorado" },
		{ "abbreviation": "CT", "name": "Connecticut" },
		{ "abbreviation": "DE", "name": "Delaware" },
		{ "abbreviation": "FL", "name": "Florida" },
		{ "abbreviation": "GA", "name": "Georgia" },
		{ "abbreviation": "HI", "name": "Hawaii" },
		{ "abbreviation": "ID", "name": "Idaho" },
		{ "abbreviation": "IL", "name": "Illinois" },
		{ "abbreviation": "IN", "name": "Indiana" },
		{ "abbreviation": "IA", "name": "Iowa" },
		{ "abbreviation": "KS", "name": "Kansas" },
		{ "abbreviation": "KY", "name": "Kentucky" },<commit_msg>Re-adding date2 values to testTypesStore<commit_after>// example sample data and code
define(["dojo/store/Memory", "dojo/store/Observable", "dojo/store/util/QueryResults"],function(Memory, Observable, QueryResults){
	// some sample data
	// global var "data"
	data = {
		identifier: 'id',
		label: 'id',
		items: []
	};
	data_list = [ 
		{ col1: "normal", col2: false, col3: "new", col4: 'But are not followed by two hexadecimal', col5: 29.91, col6: 10, col7: false },
		{ col1: "important", col2: false, col3: "new", col4: 'Because a % sign always indicates', col5: 9.33, col6: -5, col7: false },
		{ col1: "important", col2: false, col3: "read", col4: 'Signs can be selectively', col5: 19.34, col6: 0, col7: true },
		{ col1: "note", col2: false, col3: "read", col4: 'However the reserved characters', col5: 15.63, col6: 0, col7: true },
		{ col1: "normal", col2: false, col3: "replied", col4: 'It is therefore necessary', col5: 24.22, col6: 5.50, col7: true },
		{ col1: "important", col2: false, col3: "replied", col4: 'To problems of corruption by', col5: 9.12, col6: -3, col7: true },
		{ col1: "note", col2: false, col3: "replied", col4: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris', col5: 12.15, col6: -4, col7: false }
	];

	var rows = 100;
	for(var i=0, l=data_list.length; i<rows; i++){
		data.items.push(dojo.mixin({ id: i }, data_list[i%l]));
	}

	// global var testStore
	testStore = Observable(new Memory({data: data}));

	testAsyncStore = Observable(new Memory({
		data: data,
		query: function(){
			var results = Memory.prototype.query.apply(this, arguments);
			var def = new dojo.Deferred();
			setTimeout(function(){
				def.resolve(results);
			}, 500);
			var promisedResults = QueryResults(def.promise);
			promisedResults.total = results.total;
			return promisedResults;
		}
	}));
	//sample color data
	data2 = {
		identifier: 'id',
		label: 'id',
		items: []
	};
	colors = [
		{ col1: "Red", col2: false, col3: "Primary", col4: 'A primary color', col5: 255, col6: 0, col7: 0 },
		{ col1: "Yellow", col2: false, col3: "Primary", col4: 'A primary color', col5: 255, col6: 255, col7: 0 },
		{ col1: "Blue", col2: false, col3: "Primary", col4: 'A primary color', col5: 0, col6: 0, col7: 255 },
		{ col1: "Orange", col2: false, col3: "Secondary", col4: 'A Secondary color', col5: 255, col6: 165, col7: 0 },
		{ col1: "Purple", col2: false, col3: "Secondary", col4: 'A Secondary color', col5: 160, col6: 32, col7: 240 },
		{ col1: "Green", col2: false, col3: "Secondary", col4: 'A Secondary color', col5: 0, col6: 192, col7: 0 },
		{ col1: "Pink", col2: false, col3: "Hue", col4:'A hue' , col5: 255, col6: 192, col7: 203 }
	];

	for(var i=0, l=colors.length; i<rows; i++){
		data2.items.push(dojo.mixin({ id: i }, colors[i%l]));
	}

	// global var colorStore
	colorStore = Observable(new Memory({data: data2}));
	data2.items= [];
	for(var i=0; i<colors.length; i++){
		data2.items.push(dojo.mixin({ id: i }, colors[i]));
	}
	smallColorStore = Observable(new Memory({data: data2}));
	//empty store
	emptyData = { identifier: 'id', label: 'id', items:[]};
	emptyStore = Observable(new Memory({data: emptyData}));

	//store with non-existent url
	//errorStore = Observable(Memory({data: junk}));

	var typesData = [];
	for(var i = 0; i < 20; i++){
		typesData.push({
			id: i,
			integer: Math.floor(Math.random() * 100),
			floatNum: Math.random() * 100,
			date: new Date(new Date().getTime() * Math.random() * 2),
			date2: new Date(new Date().getTime() - Math.random() * 1000000000),
			time: "T08:45:00",
			text: "A number in text " + Math.random(),
			bool: Math.random() > 0.5,
			bool2: Math.random() > 0.5,
			key: Math.floor(Math.random() * 50)
		});
	}
	// global var testTypesStore
	testTypesStore = Observable(new Memory({data: typesData}));

	testStateStore = Observable(new Memory({
		data: [
		{ "abbreviation": "AL", "name": "Alabama" },
		{ "abbreviation": "AK", "name": "Alaska" },
		{ "abbreviation": "AZ", "name": "Arizona" },
		{ "abbreviation": "AR", "name": "Arkansas" },
		{ "abbreviation": "CA", "name": "California" },
		{ "abbreviation": "CO", "name": "Colorado" },
		{ "abbreviation": "CT", "name": "Connecticut" },
		{ "abbreviation": "DE", "name": "Delaware" },
		{ "abbreviation": "FL", "name": "Florida" },
		{ "abbreviation": "GA", "name": "Georgia" },
		{ "abbreviation": "HI", "name": "Hawaii" },
		{ "abbreviation": "ID", "name": "Idaho" },
		{ "abbreviation": "IL", "name": "Illinois" },
		{ "abbreviation": "IN", "name": "Indiana" },
		{ "abbreviation": "IA", "name": "Iowa" },
		{ "abbreviation": "KS", "name": "Kansas" },
		{ "abbreviation": "KY", "name": "Kentucky" },
{'fraction_non_alphanumeric': 0.20205117360964264, 'fraction_numerical': 0.04736730809896384, 'mean_word_length': 4.249167591564928, 'pattern_counts': {'":': 68, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4957925', 'n_tokens_mistral': 4022, 'n_tokens_neox': 3574, 'n_words': 1018}