<commit_before>"use strict";
var CSLEDIT = CSLEDIT || {};

CSLEDIT.options = (function () {
	var userOptions = {};
	var defaultOptions = {
			loadCSLName : "Load CSL",
			loadCSLFunc : function () {
				alert("load CSL function not implemented");
			},
			saveCSLName : "Save CSL",
			saveCSLFunc : function (cslCode) {			
				window.location.href =
					"data:application/xml;charset=utf-8," +
					encodeURIComponent(cslCode);
			},
			rootURL : "/CSLEDIT",
			editStyleName : "Edit Style",
			editStyleFunc : function (url) {
				alert("Edit style not avaiable.\n\n" +
					"For implementers: You need to add an editStyle_func to the options.");
			},
			exampleReferences : CSLEDIT.exampleData.jsonDocumentList,
			exampleCitations : [[0],[11]]
		};

	// create the default options which are a function of user options
	var createExtraDefaults = function () {
		defaultOptions.cslSchema_mainURL = get('rootURL') + "/external/csl-schema/csl.rng"
		defaultOptions.cslSchema_childURLs = [];
		$.each([
				"/external/csl-schema/csl-categories.rng",
				"/external/csl-schema/csl-terms.rng",
				"/external/csl-schema/csl-types.rng",
				"/external/csl-schema/csl-variables.rng"], function (i, path) {
			defaultOptions.cslSchema_childURLs.push(get('rootURL') + path);
		});
	};

	var get = function (key) {
		if (userOptions.hasOwnProperty(key)) {
			return userOptions[key];
		} else {
			return defaultOptions[key];
		}<commit_msg>add 2nd citation back by default (disappeared after removing one of the example documents)<commit_after>"use strict";
var CSLEDIT = CSLEDIT || {};

CSLEDIT.options = (function () {
	var userOptions = {};
	var defaultOptions = {
			loadCSLName : "Load CSL",
			loadCSLFunc : function () {
				alert("load CSL function not implemented");
			},
			saveCSLName : "Save CSL",
			saveCSLFunc : function (cslCode) {			
				window.location.href =
					"data:application/xml;charset=utf-8," +
					encodeURIComponent(cslCode);
			},
			rootURL : "/CSLEDIT",
			editStyleName : "Edit Style",
			editStyleFunc : function (url) {
				alert("Edit style not avaiable.\n\n" +
					"For implementers: You need to add an editStyle_func to the options.");
			},
			exampleReferences : CSLEDIT.exampleData.jsonDocumentList,
			exampleCitations : [[0],[10]]
		};

	// create the default options which are a function of user options
	var createExtraDefaults = function () {
		defaultOptions.cslSchema_mainURL = get('rootURL') + "/external/csl-schema/csl.rng"
		defaultOptions.cslSchema_childURLs = [];
		$.each([
				"/external/csl-schema/csl-categories.rng",
				"/external/csl-schema/csl-terms.rng",
				"/external/csl-schema/csl-types.rng",
				"/external/csl-schema/csl-variables.rng"], function (i, path) {
			defaultOptions.cslSchema_childURLs.push(get('rootURL') + path);
		});
	};

	var get = function (key) {
		if (userOptions.hasOwnProperty(key)) {
			return userOptions[key];
		} else {
			return defaultOptions[key];
		}
{'fraction_non_alphanumeric': 0.1432937181663837, 'fraction_numerical': 0.0030560271646859084, 'mean_word_length': 3.676190476190476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7341122', 'n_tokens_mistral': 1147, 'n_tokens_neox': 978, 'n_words': 205}