<commit_before>/* Copyright (c) 2012-2016 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';

  console.log('Loading tags.ui.js...');

  var locationTagGroupKey = 'LTG';
  var calculatedTagGroupKey = 'CTG';

  var defaultTagColor = "#008000";
  var defaultTagTextColor = "#ffffff";

  var TSCORE = require('tscore');

  var tagGroupsTmpl = Handlebars.compile(
    '{{#each tagGroups}}' +
    '<div class="accordion-group disableTextSelection tagGroupContainer">' +
    '<div class="accordion-heading btn-group ui-droppable tagGroupContainerHeading flexLayout" key="{{key}}">' +
    '<button class="btn btn-link btn-lg tagGroupIcon" data-toggle="collapse" data-target="#tagButtons{{@index}}" data-i18n="[title]ns.common:toggleTagGroup" title="{{../toggleTagGroup}}">' +
    '<i class="fa fa-tags fa-fw"></i>' +
    '</button>' +
    '<button class="btn btn-link tagGroupTitle flexMaxWidth" data-toggle="collapse" data-target="#tagButtons{{@index}}" key="{{key}}">{{title}}&nbsp;' +
    '<sup><span class="badge" style="font-size: 9px;" data-i18n="[title]ns.common:tagGroupTagsCount">{{children.length}}</span></sup></button>' +
    '<button class="btn btn-link btn-lg tagGroupActions" key="{{key}}" data-i18n="[title]ns.common:tagGroupOperations" title="{{../tagGroupOperations}}">' +
    '<b class="fa fa-ellipsis-v"></b>' +
    '</button>' +
    '</div>' +
    '{{#if collapse}}' +
    '<div class="accordion-body collapse" id="tagButtons{{@index}}">' +
    '{{else}}' +
    '<div class="accordion-body collapse in" id="tagButtons{{@index}}">' +
    '{{/if}}' +
    '<div class="accordion-inner" id="tagButtonsContent{{@index}}" style="padding: 2px;">' +
    '<div>' +
    '{{#each children}}' +
    '<a class="btn btn-sm tagButton" tag="{{title}}" parentkey="{{../key}}" style="{{style}}" title="{{description}}" >' +<commit_msg>optimizing code for e2e tests<commit_after>/* Copyright (c) 2012-2016 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';

  console.log('Loading tags.ui.js...');

  var locationTagGroupKey = 'LTG';
  var calculatedTagGroupKey = 'CTG';

  var defaultTagColor = "#008000";
  var defaultTagTextColor = "#ffffff";

  var TSCORE = require('tscore');

  var tagGroupsTmpl = Handlebars.compile(
    '{{#each tagGroups}}' +
    '<div class="accordion-group disableTextSelection tagGroupContainer">' +
    '<div class="accordion-heading btn-group ui-droppable tagGroupContainerHeading flexLayout" key="{{key}}">' +
    '<button class="btn btn-link btn-lg tagGroupIcon" data-toggle="collapse" data-target="#tagButtons{{@index}}" data-i18n="[title]ns.common:toggleTagGroup" title="{{../toggleTagGroup}}">' +
    '<i class="fa fa-tags fa-fw"></i>' +
    '</button>' +
    '<button class="btn btn-link tagGroupTitle flexMaxWidth" data-toggle="collapse" data-target="#tagButtons{{@index}}" key="{{key}}">{{title}}' +
    '<sup><span class="badge" style="margin-left: 5px; font-size: 9px;" data-i18n="[title]ns.common:tagGroupTagsCount">{{children.length}}</span></sup></button>' +
    '<button class="btn btn-link btn-lg tagGroupActions" key="{{key}}" data-i18n="[title]ns.common:tagGroupOperations" title="{{../tagGroupOperations}}">' +
    '<b class="fa fa-ellipsis-v"></b>' +
    '</button>' +
    '</div>' +
    '{{#if collapse}}' +
    '<div class="accordion-body collapse" id="tagButtons{{@index}}">' +
    '{{else}}' +
    '<div class="accordion-body collapse in" id="tagButtons{{@index}}">' +
    '{{/if}}' +
    '<div class="accordion-inner" id="tagButtonsContent{{@index}}" style="padding: 2px;">' +
    '<div>' +
    '{{#each children}}' +
    '<a class="btn btn-sm tagButton" tag="{{title}}" parentkey="{{../key}}" style="{{style}}" title="{{description}}" >' +
{'fraction_non_alphanumeric': 0.21105651105651105, 'fraction_numerical': 0.011793611793611793, 'mean_word_length': 4.86599423631124, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '6567627', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1340, 'n_words': 284}