<commit_before>var App = (function(md) {

  if(localStorage.getItem("__author_darkmode") == "true") {
    document.body.classList.add("dark");
  }

  var handleLightEvent = function(event) {
    if(event.value < 50) {
      document.body.classList.add("dark");
    } else {
      document.body.classList.remove("dark");
    }
  };

  window.addEventListener("devicelight", handleLightEvent);

  var content  = document.getElementById("content"),
         preview = document.getElementById("rendered");
         
   var body = content;
   var start = null;
   var currentFileName = null;
   var isPreviewing = false;
   
   var loadFile = function(fName) {
     var text= localStorage.getItem(fName);
     
     content.value = text;
   };
   <commit_msg>The ambient light sensing was too sensible..<commit_after>var App = (function(md) {

  if(localStorage.getItem("__author_darkmode") == "true") {
    document.body.classList.add("dark");
  }

  var handleLightEvent = function(event) {
    if(event.value < 5) {
      document.body.classList.add("dark");
    } else {
      document.body.classList.remove("dark");
    }
  };

  window.addEventListener("devicelight", handleLightEvent);

  var content  = document.getElementById("content"),
         preview = document.getElementById("rendered");
         
   var body = content;
   var start = null;
   var currentFileName = null;
   var isPreviewing = false;
   
   var loadFile = function(fName) {
     var text= localStorage.getItem(fName);
     
     content.value = text;
   };
   
{'fraction_non_alphanumeric': 0.13394018205461639, 'fraction_numerical': 0.0019505851755526658, 'mean_word_length': 3.0606860158311346, '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': '1288533', 'n_tokens_mistral': 467, 'n_tokens_neox': 461, 'n_words': 88}