<commit_before>(function() {
  var asciiContainer = document.getElementById("video");
  var capturing = false;
    var patch;
    var differ = new diff_match_patch();
    differ.Diff_Timeout = 1/30;

    camera.init({
      width: 160,
      height: 120,
      fps: 30,
      mirror: true,

      onFrame: function(canvas) {
        ascii.fromCanvas(canvas, {
          callback: function(asciiString) {
            //asciiContainer.innerHTML = asciiString;
            patch = differ.patch_make(asciiContainer.innerHTML, asciiString);
            //console.log(patch);
            var newAscii = differ.patch_apply(patch, asciiContainer.innerHTML)[0];
            //console.log(newAscii);
            asciiContainer.innerHTML = newAscii;
          }
        });
      },

      onSuccess: function() {
        capturing = true;
        asciiContainer.style.display = "block";
      },

      onNotSupported: function() {
        document.getElementById("info").style.display = "none";
        asciiContainer.style.display = "none";
        document.getElementById("notSupported").style.display = "block";
      }
    });
})();<commit_msg>Spacing<commit_after>(function() {
  var asciiContainer = document.getElementById("video");
  var capturing = false;
  var patch;
  var differ = new diff_match_patch();
  differ.Diff_Timeout = 1/30;

  camera.init({
    width: 160,
    height: 120,
    fps: 30,
    mirror: true,

    onFrame: function(canvas) {
      ascii.fromCanvas(canvas, {
        callback: function(asciiString) {
          //asciiContainer.innerHTML = asciiString;
          patch = differ.patch_make(asciiContainer.innerHTML, asciiString);
          //console.log(patch);
          var newAscii = differ.patch_apply(patch, asciiContainer.innerHTML)[0];
          //console.log(newAscii);
          asciiContainer.innerHTML = newAscii;
        }
      });
    },

    onSuccess: function() {
      capturing = true;
      asciiContainer.style.display = "block";
    },

    onNotSupported: function() {
      document.getElementById("info").style.display = "none";
      asciiContainer.style.display = "none";
      document.getElementById("notSupported").style.display = "block";
    }
  });
})();
{'fraction_non_alphanumeric': 0.13110307414104883, 'fraction_numerical': 0.0108499095840868, 'mean_word_length': 2.4960505529225907, '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': '3649288', 'n_tokens_mistral': 680, 'n_tokens_neox': 617, 'n_words': 112}