<commit_before>jQuery(function($) {
  $("#notes_to_editors").addToggleLink(".notes_to_editors");
  $("abbr.time_ago").timeago();
  $('section.featured_items').equalHeightHelper({selectorsToResize: ['h2 a', 'p.summary', 'div.image_summary']});
  $('section.article_group').equalHeightHelper({selectorsToResize: ['article']});
  $('#featured-news-articles').equalHeightHelper({selectorsToResize: ['.img img']});
  $('.floated_list').equalHeightHelper({selectorsToResize: ['li']});
  $('.alphabetical-row').equalHeightHelper({selectorsToResize: ['li']});
  $('.js-toggle-change-notes').toggleChangeNotes();
  $('.meta-topic .topics').hideOtherLinks();
  $('.js-nav-helper').each(function () {
    $(this).find('.inner ul').append($.li('', '.st'));
  }).navHelper({
    breakpoints: [
      { width: 540, label: 'All sections', exclude: '.home, .current' },
      { width: 850, label: 'More sections', exclude: '.home, .current, .primary' }
    ],
    appendTo: '.js-nav-helper .inner li.st'
  });

  var inside_gov = $(".inside_gov_home");
  if(inside_gov.length != 0){
    $(".recently_updated").news_ticker();
  }
  $('section.featured_carousel').each(function () {
    $(this).addClass('slider');
    $(this).find('article').addClass('slide');
    $(this).wrap($.div('', '.slider_wrap'));
    $('.slider_wrap').carousel({
      slider: '.slider',
      slide: '.slide',
      addNav: true,
      addPagination: false,
      namespace: 'carousel',
      speed: 300 // ms.
    });
  });

  $('.document .body').enhanceYoutubeVideoLinks();

  $('.specialist-guides-show').trackExternalLinks();

  $('.js-stick-at-top-when-scrolling').stickAtTopWhenScrolling();
});
<commit_msg>Also hide countries behind a "+ others" link<commit_after>jQuery(function($) {
  $("#notes_to_editors").addToggleLink(".notes_to_editors");
  $("abbr.time_ago").timeago();
  $('section.featured_items').equalHeightHelper({selectorsToResize: ['h2 a', 'p.summary', 'div.image_summary']});
  $('section.article_group').equalHeightHelper({selectorsToResize: ['article']});
  $('#featured-news-articles').equalHeightHelper({selectorsToResize: ['.img img']});
  $('.floated_list').equalHeightHelper({selectorsToResize: ['li']});
  $('.alphabetical-row').equalHeightHelper({selectorsToResize: ['li']});
  $('.js-toggle-change-notes').toggleChangeNotes();
  $('.meta-topic .topics').hideOtherLinks();
  $('#document_countries').hideOtherLinks();
  $('.js-nav-helper').each(function () {
    $(this).find('.inner ul').append($.li('', '.st'));
  }).navHelper({
    breakpoints: [
      { width: 540, label: 'All sections', exclude: '.home, .current' },
      { width: 850, label: 'More sections', exclude: '.home, .current, .primary' }
    ],
    appendTo: '.js-nav-helper .inner li.st'
  });

  var inside_gov = $(".inside_gov_home");
  if(inside_gov.length != 0){
    $(".recently_updated").news_ticker();
  }
  $('section.featured_carousel').each(function () {
    $(this).addClass('slider');
    $(this).find('article').addClass('slide');
    $(this).wrap($.div('', '.slider_wrap'));
    $('.slider_wrap').carousel({
      slider: '.slider',
      slide: '.slide',
      addNav: true,
      addPagination: false,
      namespace: 'carousel',
      speed: 300 // ms.
    });
  });

  $('.document .body').enhanceYoutubeVideoLinks();

  $('.specialist-guides-show').trackExternalLinks();

  $('.js-stick-at-top-when-scrolling').stickAtTopWhenScrolling();
});

{'fraction_non_alphanumeric': 0.23393691588785046, 'fraction_numerical': 0.006425233644859813, 'mean_word_length': 4.453821656050955, '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': '7478533', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1125, 'n_words': 159}