<commit_before>$(document).ready(function() {
    var anchors = [];
    $('.section').each(function(i) {
      var gallery = $(this).attr('data-gallery');
      anchors.push(gallery);
    });

    var titleText = $('.title').text();

    $('#fullpage').fullpage({
      loopBottom: true,
      loopTop: true,
      controlArrows: false,
      scrollingSpeed: 500,
      anchors: anchors,
      paddingTop: '50px',
      paddingBottom: '50px',
      afterLoad: function(anchorLink, index) {
        if (index !== 1) {
          $('.colon').text(':');
          var title = $(this).data('title');
          $('.currentGallery').text(title);
          $('.currentHash').attr('href', '#' + $(this).data('gallery'));
        } else {
          $('.colon').text('');
          $('.currentGallery').text('');
        }        
      }
    });

    
    // getWidth();
    // $(window).resize(function() {
    //   console.log(getWidth() );
    // });
});

function getWidth() {
  var width = $(window).width();

  if (width >= 992) {<commit_msg>add scripts for slide left/right buttons<commit_after>$(document).ready(function() {
    var anchors = [];
    $('.section').each(function(i) {
      var gallery = $(this).attr('data-gallery');
      anchors.push(gallery);
    });

    var titleText = $('.title').text();

    $('#fullpage').fullpage({
      loopBottom: true,
      loopTop: true,
      controlArrows: false,
      scrollingSpeed: 500,
      anchors: anchors,
      paddingTop: '50px',
      paddingBottom: '50px',
      afterLoad: function(anchorLink, index) {
        if (index !== 1) {
          $('.colon').text(':');
          var title = $(this).data('title');
          $('.currentGallery').text(title);
          $('.currentHash').attr('href', '#' + $(this).data('gallery'));
        } else {
          $('.colon').text('');
          $('.currentGallery').text('');
        }        
      }
    });

    $('#slideLeft').click(function(e) {
      e.preventDefault();
      $.fn.fullpage.moveSlideLeft();
    });
    $('#slideRight').click(function(e) {
      e.preventDefault();
      $.fn.fullpage.moveSlideRight();
    });

    
    // getWidth();
    // $(window).resize(function() {
    //   console.log(getWidth() );
    // });
});

function getWidth() {
  var width = $(window).width();

  if (width >= 992) {
{'fraction_non_alphanumeric': 0.2186426116838488, 'fraction_numerical': 0.009450171821305841, 'mean_word_length': 2.2168508287292816, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3701538', 'n_tokens_mistral': 739, 'n_tokens_neox': 707, 'n_words': 117}