<commit_before>// javascript wizardry
$(function(){
  $('.logo-container').css('position','absolute');
  $('.logo-container').css('top', Math.max(0, (($(window).height() - $('.logo-container').outerHeight()) / 2) + $(window).scrollTop()) + "px");
  $('.logo-container').css('left', Math.max(0, (($(window).width() - $('.logo-container').outerWidth()) / 2) + $(window).scrollLeft()) + "px");

  $(window).resize(function() {
    $('.logo-container').css('position','absolute');
    $('.logo-container').css('top', Math.max(0, (($(window).height() - $('.logo-container').outerHeight()) / 2) + $(window).scrollTop()) + "px");
    $('.logo-container').css('left', Math.max(0, (($(window).width() - $('.logo-container').outerWidth()) / 2) + $(window).scrollLeft()) + "px");
  });
});

$(function(){
  var viewportWidth = $(window).width();
  var viewportHeight = $(window).height();

  $('body').css('height', viewportHeight + 'px');
  $('body').css('width', viewportWidth + 'px');

  $(window).resize(function() {
      var viewportWidth = $(window).width();
      var viewportHeight = $(window).height();

      $('body').css('height', viewportHeight + 'px');
      $('body').css('width', viewportWidth + 'px');
  });
});
<commit_msg>fixed js where there was an issue of div placement due to function execution order<commit_after>// javascript wizardry
$(function(){
  var viewportWidth = $(window).width();
  var viewportHeight = $(window).height();

  $('body').css('height', viewportHeight + 'px');
  $('body').css('width', viewportWidth + 'px');
  $('.logo-container').css('position','absolute');
  $('.logo-container').css('top', Math.max(0, ((viewportHeight - $('.logo-container').outerHeight()) / 2) + $(window).scrollTop()) + "px");
  $('.logo-container').css('left', Math.max(0, ((viewportWidth - $('.logo-container').outerWidth()) / 2) + $(window).scrollLeft()) + "px");

  $(window).resize(function() {
      var viewportWidth = $(window).width();
      var viewportHeight = $(window).height();

      $('body').css('height', viewportHeight + 'px');
      $('body').css('width', viewportWidth + 'px');
      $('.logo-container').css('position','absolute');
      $('.logo-container').css('top', Math.max(0, ((viewportHeight - $('.logo-container').outerHeight()) / 2) + $(window).scrollTop()) + "px");
      $('.logo-container').css('left', Math.max(0, ((viewportWidth - $('.logo-container').outerWidth()) / 2) + $(window).scrollLeft()) + "px");

  });
});

{'fraction_non_alphanumeric': 0.2804383116883117, 'fraction_numerical': 0.006493506493506494, 'mean_word_length': 4.627853881278539, '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': '1948968', 'n_tokens_mistral': 789, 'n_tokens_neox': 758, 'n_words': 134}