<commit_before>$(document).ready(function(){

  $('li').click(function(event){
    event.preventDefault();
    var self = this;

    if (parseInt($('.landing').css('top'),10) >= 15){
      slideTitleUp();
      setTimeout(function(){
        switchTab(self);
      }, 1000);
    } else {
      switchTab(self);
    }
  });

  if (window.location.hash === '#coins') {
    $('li.coins-nav').click();
    setTimeout(function(){
        drawDots('.coins');
    }, 1000);
  } else {
    slideTitleDown();
  }
});

function drawDots(section){
  var pageWidth = $('.container').width();
  var tocItems = $(section).children('.toc-item');

  $.each(tocItems, function(index, item){
    var title = $(item).children('.toc-title');
    var date = $(item).children('.toc-date');

    var itemWidth = pageWidth - title.width() - date.width();

    var numDots = Math.floor(itemWidth / 8.82813) - 1;
    var dots = title.next().width(itemWidth);

    var count = 0;
    var dotPainter;<commit_msg>Fix loading<commit_after>$(document).ready(function(){
slideTitleDown();


  $('li').click(function(event){
    event.preventDefault();
    var self = this;

    if (parseInt($('.landing').css('top'),10) >= 15){
      slideTitleUp();
      setTimeout(function(){
        switchTab(self);
      }, 1000);
    } else {
      switchTab(self);
    }
  });

  if (window.location.hash === '#coins') {
    setTimeout(function(){
        $('li.coins-nav').click();
    }, 1100);
  }
});

function drawDots(section){
  var pageWidth = $('.container').width();
  var tocItems = $(section).children('.toc-item');

  $.each(tocItems, function(index, item){
    var title = $(item).children('.toc-title');
    var date = $(item).children('.toc-date');

    var itemWidth = pageWidth - title.width() - date.width();

    var numDots = Math.floor(itemWidth / 8.82813) - 1;
    var dots = title.next().width(itemWidth);

    var count = 0;
    var dotPainter;
{'fraction_non_alphanumeric': 0.20435684647302904, 'fraction_numerical': 0.02074688796680498, 'mean_word_length': 3.0355648535564854, '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': '3647475', 'n_tokens_mistral': 672, 'n_tokens_neox': 612, 'n_words': 116}