<commit_before>$(document).on('centreon.refresh_status', function(e) {
  $('.top-counter .label').addClass('hide');
  $('.top-counter-service ul').html('');
  $('.top-counter-host ul').html('');
  if (statusData.service.critical != 0) {
    $('.top-counter-service .label-danger').removeClass('hide').text(statusData.service.critical);
    $('.top-counter-service ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/service'}?search=status:2").text(
          statusData.service.critical + " unhandled critical problem"
        ).prepend(
          $('<i></i>').addClass('fa fa-times-circle info')
        )
      )
    );
  }
  if (statusData.service.warning != 0) {
    $('.top-counter-service .label-warning').removeClass('hide').text(statusData.service.warning);
    $('.top-counter-service ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/service'}?search=status:1").text(
          statusData.service.warning + " unhandled warning alerts"
        ).prepend(
          $('<i></i>').addClass('fa fa-warning info')
        )
      )
    );
  }
  if (statusData.host.critical != 0) {
    $('.top-counter-host .label-danger').removeClass('hide').text(statusData.host.critical);
    $('.top-counter-host ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/host'}?search=state:2").text(
          statusData.host.critical + " host down"
        ).prepend(
          $('<i></i>').addClass('fa fa-times-circle info')
        )
      )
    );
  }
  if (statusData.host.warning != 0) {
    $('.top-counter-host .label-warning').removeClass('hide').text(statusData.host.warning);
    $('.top-counter-host ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/host'}?search=state:1").text(
          statusData.host.warning + " unhandled warning alerts"
        ).prepend(
          $('<i></i>').addClass('fa fa-warning info')
        )
      )
    );
  }
  if (statusData.poller.activity != 0 || statusData.poller.stopped != 0) {
    $('.top-counter-poller .label-danger').removeClass('hide').text(
      statusData.poller.activity + statusData.poller.stopped
    );
  }<commit_msg>    * fixes #6263<commit_after>$(document).on('centreon.refresh_status', function(e) {
  $('.top-counter .label').addClass('hide');
  $('.top-counter-service ul').html('');
  $('.top-counter-host ul').html('');
  if (statusData.service.critical != 0) {
    $('.top-counter-service .label-danger').removeClass('hide').text(statusData.service.critical);
    $('.top-counter-service ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/service'}?search=status:critical").text(
          statusData.service.critical + " unhandled critical problem"
        ).prepend(
          $('<i></i>').addClass('fa fa-times-circle info')
        )
      )
    );
  }
  if (statusData.service.warning != 0) {
    $('.top-counter-service .label-warning').removeClass('hide').text(statusData.service.warning);
    $('.top-counter-service ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/service'}?search=status:warning").text(
          statusData.service.warning + " unhandled warning alerts"
        ).prepend(
          $('<i></i>').addClass('fa fa-warning info')
        )
      )
    );
  }
  if (statusData.host.critical != 0) {
    $('.top-counter-host .label-danger').removeClass('hide').text(statusData.host.critical);
    $('.top-counter-host ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/host'}?search=state:down").text(
          statusData.host.critical + " host down"
        ).prepend(
          $('<i></i>').addClass('fa fa-times-circle info')
        )
      )
    );
  }
  if (statusData.host.warning != 0) {
    $('.top-counter-host .label-warning').removeClass('hide').text(statusData.host.warning);
    $('.top-counter-host ul').append(
      $('<li></li>').append(
        $('<a></a>').attr('href', "{url_for url='/centreon-realtime/host'}?search=state:warning").text(
          statusData.host.warning + " unhandled warning alerts"
        ).prepend(
          $('<i></i>').addClass('fa fa-warning info')
        )
      )
    );
  }
  if (statusData.poller.activity != 0 || statusData.poller.stopped != 0) {
    $('.top-counter-poller .label-danger').removeClass('hide').text(
      statusData.poller.activity + statusData.poller.stopped
    );
  }
{'fraction_non_alphanumeric': 0.23169681309216192, 'fraction_numerical': 0.004306632213608958, 'mean_word_length': 2.9132266217354674, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '6541735', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1516, 'n_words': 186}