<commit_before>define([
	"text!./BackboneGridTemplate.html",
	"backbone"
], function(BackboneGridTemplate, Backbone) {
	"use strict";
	
	/**
	 * commonly customised methods that can be changed without extending the view
	 */
	var defaultOptions = {
		/**
		 * Function that takes model data and builds (and returns) an HTML representation of the table row
		 * This can be overwridden with compiled templates from other template engines, such as Handlebars
		 * @param {object} data map of attributes to be used for building the row HTML
		 * @param {array} columns array of fields. each element requires a <code>key</code>
		 * @param {string} idAttribute the idAttribute as used by the Backbone Model. Added as an attribute (<code>data-id</code>) to the row <code>tr</code> element
		 * @returns {string} HTML representation of a row of the table
		 */
		rowTemplate: function(data, columns, idAttribute){
			var dataIdAttribute = idAttribute ? "data-id='" + _.escape(data[idAttribute]) + "'" : "";
			return [
				"<tr " + dataIdAttribute + ">",
				_.map(columns, function(column){<commit_msg>add @see in jsdoc<commit_after>define([
	"text!./BackboneGridTemplate.html",
	"backbone"
], function(BackboneGridTemplate, Backbone) {
	"use strict";
	
	/**
	 * commonly customised methods that can be changed without extending the view
	 */
	var defaultOptions = {
		/**
		 * Function that takes model data and builds (and returns) an HTML representation of the table row
		 * This can be overwridden with compiled templates from other template engines, such as Handlebars
		 * @see https://github.com/jamesrr39/backbone-grid/blob/master/test/spec/OtherTemplateEngineTests.js
		 * @param {object} data map of attributes to be used for building the row HTML
		 * @param {array} columns array of fields. each element requires a <code>key</code>
		 * @param {string} idAttribute the idAttribute as used by the Backbone Model. Added as an attribute (<code>data-id</code>) to the row <code>tr</code> element
		 * @returns {string} HTML representation of a row of the table
		 */
		rowTemplate: function(data, columns, idAttribute){
			var dataIdAttribute = idAttribute ? "data-id='" + _.escape(data[idAttribute]) + "'" : "";
			return [
				"<tr " + dataIdAttribute + ">",
				_.map(columns, function(column){
{'fraction_non_alphanumeric': 0.11125597566275533, 'fraction_numerical': 0.000869187309865276, 'mean_word_length': 4.161434977578475, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 1, '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': '3065227', 'n_tokens_mistral': 693, 'n_tokens_neox': 623, 'n_words': 244}