<commit_before>/*
 * PSI Client Templates
 * 
 * Author: <NAME> (james.montgomery at anu.edu.au)
 * 
 * Developed as part of the Protocols and Structures for Inference project: http://psi.cecs.anu.edu.au
 */

define(['jquery','underscore','psi.client','text!../../templates.html'], function($, _, client, templateHTML) {
	var module = {
		$templates: $(templateHTML),

		_templates: {},

		get: function (name) {
			if (! this._templates[name])
				this._templates[name] = _.template( this.$templates.find('#' + name).html().trim() );
			return this._templates[name];
		}
	};

	/**
	 * Can be mixed-in to the data sent to a template so it can format URIs
	 * and schema.
	 */
	module.ViewHelpers = {
		ppJSON: client.ppJSON,
<commit_msg>Corrected path to templates.html in psi.templates.js<commit_after>/*
 * PSI Client Templates
 * 
 * Author: <NAME> (james.montgomery at anu.edu.au)
 * 
 * Developed as part of the Protocols and Structures for Inference project: http://psi.cecs.anu.edu.au
 */

define(['jquery','underscore','psi.client','text!../templates.html'], function($, _, client, templateHTML) {
	var module = {
		$templates: $(templateHTML),

		_templates: {},

		get: function (name) {
			if (! this._templates[name])
				this._templates[name] = _.template( this.$templates.find('#' + name).html().trim() );
			return this._templates[name];
		}
	};

	/**
	 * Can be mixed-in to the data sent to a template so it can format URIs
	 * and schema.
	 */
	module.ViewHelpers = {
		ppJSON: client.ppJSON,

{'fraction_non_alphanumeric': 0.16688741721854305, 'fraction_numerical': 0.0, 'mean_word_length': 3.6349693251533743, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5858178', 'n_tokens_mistral': 529, 'n_tokens_neox': 483, 'n_words': 127}