<commit_before>//smooth scrolling function
function scrollTo(clicked,destination) {
  $(clicked).on('click', function() {
    var wHeight = $(window).height();
    if (destination !== '#home') {
      $('html, body').animate({
        scrollTop: $(destination).offset().top + 50 + (wHeight * 0.065)
      }, 1000);
      return false;
    } else {
      $('html, body').animate({
        scrollTop: $(destination).offset().top
      }, 1000);
      return false;
    }
  });
};

$(function () {
  //loading screen
  $(".se-pre-con").delay(2000).fadeOut(2000);

  //box and links animated color change on hover
  $('.box').hover(
		function() {
      $(this).animate({backgroundColor: '#fc6453'}, 200).css('cursor','crosshair');
		},
		function() {
      $(this).animate({backgroundColor: '#9acec5'}, 200);
		}
	);
  $('i.fa').hover(
		function() {
      $(this).animate({color: '#9acec5'}, 200);
		},
		function() {
      $(this).animate({color: 'white'}, 200);
		}
	);

  //smooth scrolling to sections
  scrollTo('#link1','#home');
  scrollTo('#link2','#skills');
  scrollTo('#link3','#resume');
  scrollTo('#link4','#about');
  scrollTo('#link5','#contact');
  scrollTo('#btn-contact','#contact');

  //navbar height animation
  $(window).on('scroll',function() {
    if ($(document).scrollTop() > 20) {
      $('.navbar-default .navbar-nav>li>a').css({
        'padding-top':'15px',
        'padding-bottom':'9px'
      });
    } else {
      $('.navbar-default .navbar-nav>li>a').css({
        'padding-top':'30px',
        'padding-bottom':'24px'
      });
    }

    //fading in sections
    $('.hide-me').each(function() {
      var bottomOfObject = $(this).offset().top + $(this).outerHeight();
      var bottomOfWindow = $(window).scrollTop() + $(window).height();

      if (bottomOfWindow > (bottomOfObject - 500)) {
        $(this).animate({<commit_msg>fading in problem on small screens solved<commit_after>//smooth scrolling function
function scrollTo(clicked,destination) {
  $(clicked).on('click', function() {
    var wHeight = $(window).height();
    if (destination !== '#home') {
      $('html, body').animate({
        scrollTop: $(destination).offset().top + 50 + (wHeight * 0.065)
      }, 1000);
      return false;
    } else {
      $('html, body').animate({
        scrollTop: $(destination).offset().top
      }, 1000);
      return false;
    }
  });
};

$(function () {
  //loading screen
  $(".se-pre-con").delay(2000).fadeOut(2000);

  //box and links animated color change on hover
  $('.box').hover(
		function() {
      $(this).animate({backgroundColor: '#fc6453'}, 200).css('cursor','crosshair');
		},
		function() {
      $(this).animate({backgroundColor: '#9acec5'}, 200);
		}
	);
  $('i.fa').hover(
		function() {
      $(this).animate({color: '#9acec5'}, 200);
		},
		function() {
      $(this).animate({color: 'white'}, 200);
		}
	);

  //smooth scrolling to sections
  scrollTo('#link1','#home');
  scrollTo('#link2','#skills');
  scrollTo('#link3','#resume');
  scrollTo('#link4','#about');
  scrollTo('#link5','#contact');
  scrollTo('#btn-contact','#contact');

  $(window).on('scroll', function() {

    //navbar height animation
    if ($(document).scrollTop() > 20) {
      $('.navbar-default .navbar-nav>li>a').css({
        'padding-top':'15px',
        'padding-bottom':'9px'
      });
    } else {
      $('.navbar-default .navbar-nav>li>a').css({
        'padding-top':'30px',
        'padding-bottom':'24px'
      });
    }

    var fadeOffset;
    var wWidth = $(window).width();
    console.log(wWidth);
    if (wWidth > 768) {
      fadeOffset = 500;
      console.log(fadeOffset);
    } else {
      fadeOffset = 1000;
      console.log(fadeOffset);
    }

    //fading in sections
    $('.hide-me').each(function() {
      var bottomOfObject = $(this).offset().top + $(this).outerHeight();
      var bottomOfWindow = $(window).scrollTop() + $(window).height();

      if (bottomOfWindow > (bottomOfObject - fadeOffset)) {
        $(this).animate({
{'fraction_non_alphanumeric': 0.22111305215872223, 'fraction_numerical': 0.031195408035937112, 'mean_word_length': 2.99203187250996, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '865492', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1268, 'n_words': 230}