<commit_before>import $ from 'jquery';

export function showTooltip($target, msg) {
  if (!$target.hasClass('tooltipped')) {
    $target.addClass('tooltipped tooltipped-e');
  }

  $target.attr('aria-label', msg);
}

export function removeTooltip($target) {
  if ($target.hasClass('tooltipped')) {
    $target.removeClass('tooltipped tooltipped-e');
  }

  $target.removeAttr('aria-label');
}

export function showNotification({ description, version, url }) {
  const html = `<div class="flash flash-full">
    <div class="container">
      <button class="flash-close js-flash-close" type="button" aria-label="Dismiss this message">
        <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path></svg>
      </button>
      New in OctoLinker ${version}: <b>${description}</b> – <a href="${url}" target="_blank">Release Notes</a>
    </div>
  </div>`;

  $('#js-flash-container').append(html);
}
<commit_msg>Fix loading message by removing tooltip delay (#405)<commit_after>import $ from 'jquery';

export function showTooltip($target, msg) {
  if (!$target.hasClass('tooltipped')) {
    $target.addClass('tooltipped tooltipped-e tooltipped-no-delay');
  }

  $target.attr('aria-label', msg);
}

export function removeTooltip($target) {
  if ($target.hasClass('tooltipped')) {
    $target.removeClass('tooltipped tooltipped-e');
  }

  $target.removeAttr('aria-label');
}

export function showNotification({ description, version, url }) {
  const html = `<div class="flash flash-full">
    <div class="container">
      <button class="flash-close js-flash-close" type="button" aria-label="Dismiss this message">
        <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path></svg>
      </button>
      New in OctoLinker ${version}: <b>${description}</b> – <a href="${url}" target="_blank">Release Notes</a>
    </div>
  </div>`;

  $('#js-flash-container').append(html);
}

{'fraction_non_alphanumeric': 0.1974921630094044, 'fraction_numerical': 0.06851768920734438, 'mean_word_length': 4.159353348729792, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '5174195', 'n_tokens_mistral': 883, 'n_tokens_neox': 798, 'n_words': 164}