<commit_before>(function() {
  function makeCanvas(width, height) {
    var canvas = document.createElement('canvas');
    canvas.setAttribute('width', width || 320);
    canvas.setAttribute('height', height || 480);

    return canvas;
  }

  function drawLineAtBottom(canvas) {
    var context = canvas.getContext('2d');
    context.moveTo(0, canvas.height);
    context.lineTo(canvas.width, canvas.height);
    context.strokeStyle = '#000';
    context.stroke();
    return canvas;
  }

  function baselineCanvasForLineHeight(lineHeight) {
    return drawLineAtBottom(makeCanvas(10, lineHeight));
  }

  function dataURL(canvas) { return canvas.toDataURL(); }

  function append(parentNode, childNode) { parentNode.appendChild(childNode); return parentNode; }

  function imageURLForLineHeight(lineHeight) {
    return dataURL(baselineCanvasForLineHeight(lineHeight));
  }

  function find(a, fn) {
    for ( var i = 0; i < a.length; i += 1 ) {
      if ( fn(a[i]) ) { return a[i]; }
    }
  }

  function moBaselineScriptTag() {
    return find(document.getElementsByTagName('script'), function(tag) {
      return tag.src.match('baseline-grid.js');
    }) || { getAttribute: function() { console.log('[mo-baseline-grid] data-line-height not provided. Using 32px grid.'); return 32; } };
  }

  function lineHeight() {
    return parseInt(moBaselineScriptTag().getAttribute('data-line-height'));
  }

  function baselineStylesheet(lineHeight) {
    var rule = 'body { background: url("' + imageURLForLineHeight(lineHeight) + '"); }';
    var stylesheet = document.createElement('style');
    stylesheet.innerHTML = rule;
    return stylesheet;
  }

  document.addEventListener('DOMContentLoaded', function() {
    append(document.body, baselineStylesheet(lineHeight()));<commit_msg>Removed temporary variable.<commit_after>(function() {
  function makeCanvas(width, height) {
    var canvas = document.createElement('canvas');
    canvas.setAttribute('width', width || 320);
    canvas.setAttribute('height', height || 480);

    return canvas;
  }

  function drawLineAtBottom(canvas) {
    var context = canvas.getContext('2d');
    context.moveTo(0, canvas.height);
    context.lineTo(canvas.width, canvas.height);
    context.strokeStyle = '#000';
    context.stroke();
    return canvas;
  }

  function baselineCanvasForLineHeight(lineHeight) {
    return drawLineAtBottom(makeCanvas(10, lineHeight));
  }

  function dataURL(canvas) { return canvas.toDataURL(); }

  function append(parentNode, childNode) { parentNode.appendChild(childNode); return parentNode; }

  function imageURLForLineHeight(lineHeight) {
    return dataURL(baselineCanvasForLineHeight(lineHeight));
  }

  function find(a, fn) {
    for ( var i = 0; i < a.length; i += 1 ) {
      if ( fn(a[i]) ) { return a[i]; }
    }
  }

  function moBaselineScriptTag() {
    return find(document.getElementsByTagName('script'), function(tag) {
      return tag.src.match('baseline-grid.js');
    }) || { getAttribute: function() { console.log('[mo-baseline-grid] data-line-height not provided. Using 32px grid.'); return 32; } };
  }

  function lineHeight() {
    return parseInt(moBaselineScriptTag().getAttribute('data-line-height'));
  }

  function baselineStylesheet(lineHeight) {
    var stylesheet = document.createElement('style');
    stylesheet.innerHTML = 'body { background: url("' + imageURLForLineHeight(lineHeight) + '"); }';
    return stylesheet;
  }

  document.addEventListener('DOMContentLoaded', function() {
    append(document.body, baselineStylesheet(lineHeight()));
{'fraction_non_alphanumeric': 0.14165497896213183, 'fraction_numerical': 0.010659186535764377, 'mean_word_length': 4.306547619047619, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7206188', 'n_tokens_mistral': 1079, 'n_tokens_neox': 1032, 'n_words': 206}