<commit_before>$(document).ready(function() {
  if ($('#yargAddModal').length) {
    $('[data-toggle="modal"]').on('click', function (a,b,c) {
      if ($(this).attr('data-title')) {
        $('#yargAddModal .modal-header h3').html($(this).attr('data-title'));
      }
    });

    $('#yargAddModal button.save').on('click', function() {
      $('#yargAddModal').find('form').submit();
    });

    $('#yargAddModal').on('hidden', function() {
      $(this).data('modal', null);
    });

    $('#yargAddModal').on('show', function(a,b,c) {
      console.log(a);
      console.log(b);
      console.log(c);

    });
  }

  if ($('#Cv_title').length) {
    $('#Cv_title').tooltip({
      placement: 'right',
      title: translations.title,
      trigger: 'hover focus',
    });
  }

  if ($('#Cv_description').length) {
    $('#Cv_description').tooltip({
      placement: 'right',
      title: translations.description,
      trigger: 'hover focus',
    });
  }

  if ($('#Cv_catch').length) {
    $('#Cv_catch').tooltip({
      placement: 'right',
      title: translations.catch,
      trigger: 'hover focus',<commit_msg>Fix #17 Autofocus 1st textfield in modal popup<commit_after>$(document).ready(function() {
  if ($('#yargAddModal').length) {
    $('[data-toggle="modal"]').on('click', function (a,b,c) {
      if ($(this).attr('data-title')) {
        $('#yargAddModal .modal-header h3').html($(this).attr('data-title'));
      }
    });

    $('#yargAddModal button.save').on('click', function() {
      $('#yargAddModal').find('form').submit();
    });

    $('#yargAddModal').on('hidden', function() {
      $(this).data('modal', null);
    });

    $('#yargAddModal').on('shown', function(a,b,c) {
        $("#yargAddModal :input:text").first().focus();
    });
  }

  if ($('#Cv_title').length) {
    $('#Cv_title').tooltip({
      placement: 'right',
      title: translations.title,
      trigger: 'hover focus',
    });
  }

  if ($('#Cv_description').length) {
    $('#Cv_description').tooltip({
      placement: 'right',
      title: translations.description,
      trigger: 'hover focus',
    });
  }

  if ($('#Cv_catch').length) {
    $('#Cv_catch').tooltip({
      placement: 'right',
      title: translations.catch,
      trigger: 'hover focus',
{'fraction_non_alphanumeric': 0.23908248786943095, 'fraction_numerical': 0.0022055580061755625, 'mean_word_length': 3.0864864864864865, 'pattern_counts': {'":': 0, '<': 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': '7660696', 'n_tokens_mistral': 756, 'n_tokens_neox': 747, 'n_words': 113}