<commit_before>'use strict'

$(function() {
	
	//
	// Helper function for plotting.
	//
	var plot = function (id, indexColumnName, dataFrame) {
		var index = dataFrame.getColumn(indexColumnName).getValues();
		var remainingColumns = dataFrame.dropColumn(indexColumnName).getColumns();

		var flotSeries = E.from(remainingColumns)
			.select(function (column) {
				var name = column.getName();
				var data = E.from(index)
					.zip(column.getValues(), function (index, value) {
						return [index, value];
					})
					.toArray();
				
				return {
					label: name,
					data: data,
				};
			})
			.toArray();
		
		$.plot(id, flotSeries);
	};
	
	// 
	// Create a simple data frame.
	//
	var values = E
		.range(0, 14)
		.select(function (i) {
			return [i, Math.sin(i), Math.cos(i)];
		})
		.toArray();

	var dataFrame = new dataForge.DataFrame(["index", "Sin", "Cos"], values);
	
	//
	// Plot the data frame.
	//
	plot('#placeholder', "index", dataFrame);
});<commit_msg>Removed LINQ dependency from example.<commit_after>'use strict'

$(function() {
	
	//
	// Helper function for plotting.
	//
	var plot = function (id, indexColumnName, dataFrame) {
		var index = dataFrame.getColumn(indexColumnName).getValues();
		var remainingColumns = dataFrame.dropColumn(indexColumnName).getColumns();

		var flotSeries = E.from(remainingColumns)
			.select(function (column) {
				var name = column.getName();
				var data = E.from(index)
					.zip(column.getValues(), function (index, value) {
						return [index, value];
					})
					.toArray();
				
				return {
					label: name,
					data: data,
				};
			})
			.toArray();
		
		$.plot(id, flotSeries);
	};
	
	// 
	// Create a simple data frame.
	//
	var values = [];
	for (var i = 0; i < 14; ++i) {
		values.push([i, Math.sin(i), Math.cos(i)]);
	}

	var dataFrame = new dataForge.DataFrame(["index", "Sin", "Cos"], values);
	
	//
	// Plot the data frame.
	//
	plot('#placeholder', "index", dataFrame);
});
{'fraction_non_alphanumeric': 0.17262512768130744, 'fraction_numerical': 0.0030643513789581204, 'mean_word_length': 2.886904761904762, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6242251', 'n_tokens_mistral': 804, 'n_tokens_neox': 657, 'n_words': 158}