<commit_before>$(document).ready(function() {
  $('.content img').each(function () {
    var $image = $(this);
    var $imageWrapLink = $image.parent('a');

    if ($imageWrapLink.size() < 1) {
      $imageWrapLink = $image.wrap('<a href="' + this.getAttribute('src') + '"></a>').parent('a');
    }
    $imageWrapLink.addClass('fancybox');
    $imageWrapLink.attr("title",this.title); //make sure img title tag will show correctly in fancybox
  });
});
$('.fancybox').fancybox({
  helpers: {
    overlay: {
      locked: false
    }
  }
});<commit_msg>添加title内容检查<commit_after>$(document).ready(function() {
  $('.content img').each(function () {
    var $image = $(this);
    var $imageWrapLink = $image.parent('a');

    if ($imageWrapLink.size() < 1) {
      $imageWrapLink = $image.wrap('<a href="' + this.getAttribute('src') + '"></a>').parent('a');
    }
    $imageWrapLink.addClass('fancybox');
    if(this.title){
      $imageWrapLink.attr("title",this.title); //make sure img title tag will show correctly in fancybox
    }
  });
});
$('.fancybox').fancybox({
  helpers: {
    overlay: {
      locked: false
    }
  }
});
{'fraction_non_alphanumeric': 0.2168141592920354, 'fraction_numerical': 0.0017699115044247787, 'mean_word_length': 3.452755905511811, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '79828', 'n_tokens_mistral': 388, 'n_tokens_neox': 383, 'n_words': 69}