<commit_before>/* Copyright (c) 2012-2015 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, isWin, _  */
define(function(require, exports, module) {
  "use strict";

  console.log("Loading UI for perspectiveDefault");

  var TSCORE = require("tscore");
  var TSPRO = require("tspro");
  var TMB_SIZES = ["200px", "300px", "100px"];

  var MONTH = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

  var PREVIEW_TAGS_CNT = 5;

  var supportedFileTypeThumnailing = [
    "jpg", "jpeg", "png", "gif", "pdf", "svg", "webp", "bmp", 
    "zip", "epub", "docx", "pptx", "pptm", "potx", "potm", 
    "ppxs", "ppsm", "sldx", "sldm", "dotx",  "dotm", "xlsx", 
    "xlsm", "xlst", "odp", "odg"
  ];

  function ExtUI(extID) {
    this.extensionID = extID;
    this.viewContainer = $("#" + this.extensionID + "Container").empty();
    this.viewToolbar = $("#" + this.extensionID + "Toolbar").empty();
    this.viewFooter = $("#" + this.extensionID + "Footer").empty();

    this.currentGrouping = ""; // tagchain, day, month, year
    this.thumbEnabled = false;
    this.currentTmbSize = 0;
    this.searchResults = undefined;
    this.supportedGroupings = [];

    this.supportedGroupings.push({
      "title": "Day",
      "key": "day"
    });
    this.supportedGroupings.push({
      "title": "Month",
      "key": "month"
    });
    this.supportedGroupings.push({
      "title": "Year",
      "key": "year"<commit_msg>added new ext<commit_after>/* Copyright (c) 2012-2015 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, isWin, _  */
define(function(require, exports, module) {
  "use strict";

  console.log("Loading UI for perspectiveDefault");

  var TSCORE = require("tscore");
  var TSPRO = require("tspro");
  var TMB_SIZES = ["200px", "300px", "100px"];

  var MONTH = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

  var PREVIEW_TAGS_CNT = 5;

  var supportedFileTypeThumnailing = [
    "jpg", "jpeg", "png", "gif", "pdf", "svg", "webp", "bmp", 
    "zip", "epub", "docx", "pptx", "pptm", "potx", "potm", 
    "ppxs", "ppsm", "sldx", "sldm", "dotx",  "dotm", "xlsx", 
    "xlsm", "xlst", "odp", "odg", "ods", "odt" 
  ];

  function ExtUI(extID) {
    this.extensionID = extID;
    this.viewContainer = $("#" + this.extensionID + "Container").empty();
    this.viewToolbar = $("#" + this.extensionID + "Toolbar").empty();
    this.viewFooter = $("#" + this.extensionID + "Footer").empty();

    this.currentGrouping = ""; // tagchain, day, month, year
    this.thumbEnabled = false;
    this.currentTmbSize = 0;
    this.searchResults = undefined;
    this.supportedGroupings = [];

    this.supportedGroupings.push({
      "title": "Day",
      "key": "day"
    });
    this.supportedGroupings.push({
      "title": "Month",
      "key": "month"
    });
    this.supportedGroupings.push({
      "title": "Year",
      "key": "year"
{'fraction_non_alphanumeric': 0.19623572971305153, 'fraction_numerical': 0.012341869793273681, 'mean_word_length': 3.57909604519774, 'pattern_counts': {'":': 12, '<': 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': '4428405', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1095, 'n_words': 279}