<commit_before>/* Copyright (c) 2012-2013 The TagSpaces Authors. All rights reserved.
 * Use of this source code is governed by a AGPL3 license that 
 * can be found in the LICENSE file. */
/* global define, Handlebars  */

define(function(require, exports, module) {
"use strict";
	
	var extensionTitle = "List";
	var extensionID = "perspectiveList";  // ID should be equal to the directory name where the ext. is located   
	var extensionType =  "perspective";
	var extensionIcon = "fa fa-list-ul";
	var extensionVersion = "1.0";
	var extensionManifestVersion = 1;
	var extensionLicense = "AGPL";

	console.log("Loading "+extensionID);

	var TSCORE = require("tscore");

	var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+extensionID;
	var UI;

	function init() {
		console.log("Initializing perspective "+extensionID);
        require([
            extensionDirectory+'/perspectiveUI.js',
            "text!"+extensionDirectory+'/toolbar.html',
            "i18n!"+extensionDirectory+":ns.perspectiveList",
            extensionDirectory+'/datatables/jquery.dataTables.min.js'
            ], function(extUI, toolbarTPL) {
                var toolbarTemplate = Handlebars.compile( toolbarTPL );                
                UI = new extUI.ExtUI(extensionID);                          
                UI.buildUI(toolbarTemplate);

                $('#'+extensionID+'Toolbar [data-i18n]').i18n();

                platformTuning();                
            }
        );
	}
	
	var platformTuning = function() {};
	
	var load = function () {
		console.log("Loading perspective "+extensionID);
		if(UI === undefined) {
			window.setTimeout(function() { UI.reInit(); }, 1000);
		} else {
            UI.reInit();    
        }	
	};<commit_msg>removing the use of require-i18next<commit_after>/* Copyright (c) 2012-2013 The TagSpaces Authors. All rights reserved.
 * Use of this source code is governed by a AGPL3 license that 
 * can be found in the LICENSE file. */
/* global define, Handlebars  */

define(function(require, exports, module) {
"use strict";
	
	var extensionTitle = "List";
	var extensionID = "perspectiveList";  // ID should be equal to the directory name where the ext. is located   
	var extensionType =  "perspective";
	var extensionIcon = "fa fa-list-ul";
	var extensionVersion = "1.0";
	var extensionManifestVersion = 1;
	var extensionLicense = "AGPL";

	console.log("Loading "+extensionID);

	var TSCORE = require("tscore");

	var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+extensionID;
	var UI;

	function init() {
		console.log("Initializing perspective "+extensionID);
        require([
            extensionDirectory+'/perspectiveUI.js',
            "text!"+extensionDirectory+'/toolbar.html',
            extensionDirectory+'/datatables/jquery.dataTables.min.js'
            ], function(extUI, toolbarTPL) {
                var toolbarTemplate = Handlebars.compile( toolbarTPL );                
                UI = new extUI.ExtUI(extensionID);                          
                UI.buildUI(toolbarTemplate);

                $('#'+extensionID+'Toolbar [data-i18n]').i18n();

                platformTuning();                
            }
        );
	}
	
	var platformTuning = function() {};
	
	var load = function () {
		console.log("Loading perspective "+extensionID);
		if(UI === undefined) {
			window.setTimeout(function() { UI.reInit(); }, 1000);
		} else {
            UI.reInit();    
        }	
	};
{'fraction_non_alphanumeric': 0.12456846950517837, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 2.533536585365854, 'pattern_counts': {'":': 1, '<': 3, '<?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': '6799091', 'n_tokens_mistral': 1028, 'n_tokens_neox': 951, 'n_words': 245}