<commit_before>(function() {
  'use strict';

  var header = document.getElementById('header');
  var toc = document.getElementById('article-toc');
  var tocTop = document.getElementById('article-toc-top');
  var headerHeight = header.clientHeight;

  if (!toc) return;

  function updateSidebarPosition() {<commit_msg>fix(toc): prevent scrolling past the footer (#1055)<commit_after>(function() {
  'use strict';

  var header = document.getElementById('header');
  var headerHeight = header.clientHeight;
  var toc = document.getElementById('article-toc');
  var tocTop = document.getElementById('article-toc-top');

  if (!toc) return;

  var footerHeight = document.getElementById('footer').clientHeight;
  document.getElementById('article-toc-inner').style['margin-bottom'] = footerHeight + 'px';

  function updateSidebarPosition() {
{'fraction_non_alphanumeric': 0.1430274135876043, 'fraction_numerical': 0.004767580452920143, 'mean_word_length': 5.666666666666667, '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': '4526784', 'n_tokens_mistral': 249, 'n_tokens_neox': 225, 'n_words': 52}