<commit_before>// When page ready
var selectIssue = false;
var resizeEvent;

$(document).ready(function(){  
  $('.issueTitle').each(function(){
    $(this).dotdotdot({
    callback	: function( isTruncated, orgContent ) {
      if(isTruncated)
        {
        $(this).qtip({
            content: {
                attr: 'qtipconditionnal'
            }
        });
        }
    }}
    );
 });  

  
  resizeEvent = function(){
    $.each($('.SearchResultEntry'),function(){
      var descriptionWidth = $(this).width() - $(this).find('.ResultLogo').width();
      $(this).find('.ResultDescription').css('width', descriptionWidth+"px");
      $(this).find('.ResultDescription').trigger("update");
    })

  }
  
  $(window).resize(resizeEvent);

  $('.issuePage').fancybox({type: 'ajax'});
  
  // Create the root html element of each tree
  $.each(json.trees, function(key, tree)
    {
    $('#treeWrapper').append('<div class="TreeEntry"><img class="tooggleButton" src="'+json.global.webroot+'/privateModules/journal/public/images/arrow-bottom.png"/><h4>'+tree.title+' </h4><div id="categoryTree-'+tree.key+'" class="categoryTree"></div>');
    /* Init trees */
    $("div.categoryTree:last").dynatree({
      debugLevel : 0,
      checkbox: true,
      selectMode: 3,
      children: tree.children,
      onSelect: function(select, node) {
        searchDatabase();
      },
      onDblClick: function(node, event) {
        node.toggleExpand();
      },
     
        cookieId: "dynatreeEdit-"+key,
        idPrefix: "dynatreeEdit-"+key
      });
      
    if(tree.children.length > 4)
      {
      var tree = $(this).parent('div.TreeEntry').find('div.categoryTree');
      $(this).attr('src', json.global.webroot+'/privateModules/journal/public/images/arrow-right.png');
      }
    }
  );  <commit_msg>ENH; Hide filter if lots of value<commit_after>// When page ready
var selectIssue = false;
var resizeEvent;

$(document).ready(function(){  
  $('.issueTitle').each(function(){
    $(this).dotdotdot({
    callback	: function( isTruncated, orgContent ) {
      if(isTruncated)
        {
        $(this).qtip({
            content: {
                attr: 'qtipconditionnal'
            }
        });
        }
    }}
    );
 });  

  
  resizeEvent = function(){
    $.each($('.SearchResultEntry'),function(){
      var descriptionWidth = $(this).width() - $(this).find('.ResultLogo').width();
      $(this).find('.ResultDescription').css('width', descriptionWidth+"px");
      $(this).find('.ResultDescription').trigger("update");
    })

  }
  
  $(window).resize(resizeEvent);

  $('.issuePage').fancybox({type: 'ajax'});
  
  // Create the root html element of each tree
  $.each(json.trees, function(key, tree)
    {
    $('#treeWrapper').append('<div class="TreeEntry"><img class="tooggleButton" src="'+json.global.webroot+'/privateModules/journal/public/images/arrow-bottom.png"/><h4>'+tree.title+' </h4><div id="categoryTree-'+tree.key+'" class="categoryTree"></div>');
    /* Init trees */
    $("div.categoryTree:last").dynatree({
      debugLevel : 0,
      checkbox: true,
      selectMode: 3,
      children: tree.children,
      onSelect: function(select, node) {
        searchDatabase();
      },
      onDblClick: function(node, event) {
        node.toggleExpand();
      },
     
        cookieId: "dynatreeEdit-"+key,
        idPrefix: "dynatreeEdit-"+key
      });
      
    if(tree.children.length > 4)
      {
      $("div.categoryTree:last").hide();
      $("div.categoryTree:last").parent().find('img.tooggleButton').attr('src', json.global.webroot+'/privateModules/journal/public/images/arrow-right.png');
      }
    }
  );  
{'fraction_non_alphanumeric': 0.19050218340611352, 'fraction_numerical': 0.0027292576419213972, 'mean_word_length': 2.7628336755646816, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '3078464', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1127, 'n_words': 168}