<commit_before>(function() {
  var posts  = document.getElementsByClassName('userContent'),
      terms = [],
      container,
      filteredArray = [],
      controller,
      fwClear;
  function findAncestor (el, cls) {
      while ((el = el.parentElement) && !el.classList.contains(cls));
      return el;
  }
  function clearFiltered(postList) {
    for (var n=0,k=postList.length;n<k;++n) {
      postList[n].style.display="block";
    }
  }
  function blockIt(terms) {
    clearFiltered(filteredArray);
    for (var i=0, x=posts.length; i<x;++i) {
      this.post = posts[i];
      for (var j = 0, y = terms.length; j < y; ++j) {
      	if (this.post.textContent.search(terms[j]) > -1) {
      	  container = (findAncestor(this.post, 'timelineUnitContainer') || findAncestor(this.post, 'userContentWrapper')).parentElement;
      	  container.style.position = "absolute";
          container.style.left = "-500%";
          filteredArray.push(container);
      	}
      }
    }
  }
  var controller = "<div id='blockItBox' class='_4f7n'><input type='text' id='blockItTerms'/><a id='fw-clear'>X</a></div>";
  document.body.innerHTML+=controller;
  controller = document.getElementById('blockItBox');
  controller.style={ position: "fixed",
                     bottom: "0",
                     left: "0",
                     lineHeight: "42px",
                     minWidth: "0"  };
  fwClear = document.getElementById('blockItBox');
  fwClear.style= {  padding: "0 1em 0 2em",
                    fontSize: "16px",
                    color: "#fff",
                 };

  document.getElementById('blockItTerms').addEventListener('change', function() {
    terms = document.getElementById('blockItTerms').value;
    if (terms.typeof == "string") {terms=terms.split(',');}
    blockIt(terms);
  });
  document.getElementById('fw-clear').addEventListener('click', function() {
    clearFiltered(filteredArray);
  });
})()<commit_msg>syntax fixes<commit_after>(function() {
  var posts  = document.getElementsByClassName('userContent'),
      terms = [],
      container,
      filteredArray = [],
      controller,
      fwClear;
  function findAncestor (el, cls) {
      while ((el = el.parentElement) && !el.classList.contains(cls));
      return el;
  }
  function clearFiltered(postList) {
    for (var n=0,k=postList.length;n<k;++n) {
      postList[n].style.display="block";
    }
  }
  function blockIt(terms) {
    clearFiltered(filteredArray);
    for (var i=0, x=posts.length; i<x;++i) {
      this.post = posts[i];
      for (var j = 0, y = terms.length; j < y; ++j) {
      	if (this.post.textContent.search(terms[j]) > -1) {
      	  console.log(terms[j]);
      	  container = (findAncestor(this.post, 'timelineUnitContainer') || findAncestor(this.post, 'userContentWrapper')).parentElement;
      	  container.style.opacity = ".15";
          filteredArray.push(container);
      	}
      }
    }
  }
  var controller = "<div id='blockItBox' class='_4f7n'><input type='text' id='blockItTerms'/><a id='fw-clear'>X</a></div>";
  document.body.innerHTML+=controller;
  controller = document.getElementById('blockItBox');
  controller.style.position = "fixed";
  controller.style.bottom = "0",
  controller.style.left = "0";
  controller.style.lineHeight = "42px";
  controller.style.minWidth = "0";
  fwClear = document.getElementById('blockItBox');
  fwClear.style.padding = "0 1em 0 2em";
  fwClear.style.fontSize = "16px";
  fwClear.style.color = "#fff";

  document.getElementById('blockItTerms').addEventListener('change', function() {
    terms = document.getElementById('blockItTerms').value;
    terms=terms.split(',');
    blockIt(terms);
  });
  document.getElementById('fw-clear').addEventListener('click', function() {
    clearFiltered(filteredArray);
  });
})()
{'fraction_non_alphanumeric': 0.16789667896678967, 'fraction_numerical': 0.010279388508170796, 'mean_word_length': 3.1205211726384365, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '6144675', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1205, 'n_words': 201}