<commit_before>(function(window, undefined) {


var checkAds = function(userCallback) {
  window.adblocked.userCallback = userCallback
  var a = new Adblocked()
  a.insert()
}

var done = function() {
  if (typeof(window.google_ad_block) === "undefined")  {
    window.adblocked.result = true
  }
  else {
    window.adblocked.result = false
  }
  window.adblocked.userCallback()
}

window.adblocked = {
  check : checkAds,
  userCallback : function() {},
  callback : done,
  result : "unknown"
}

var Adblocked = function() {

this.scriptFile = "http://pagead2.googlesyndication.com/pagead/show_ads.js";
this.adScript = document.createElement("script")

this.insert = function() {
  var body = document.getElementsByTagName('body')[0]
  var ad = document.createElement("div")
  ad.style.display = "none";
//  this.adScript.setAttribute("type","text/javascript")
//  this.adScript.setAttribute("src",this.scriptFile)
//  body.appendChild(ad).appendChild(this.adScript)
//  this.adScript.onload = adblocked.callback;
//  this.adScript.onerror = adblocked.callback;
  ad.style.height = "100px";
  ad.setAttribute("id", "ad-top")
  body.appendChild(ad)

  return this
};

return this;

}

var a = new Adblocked()
a.insert()

})(window)


<commit_msg>need to clean<commit_after>(function(window, undefined) {


var checkAds = function(userCallback) {
  window.adblocked.userCallback = userCallback
  var a = new Adblocked()
  a.insert()
}

var done = function() {
  if (typeof(window.google_ad_block) === "undefined")  {
    window.adblocked.result = true
  }
  else {
    window.adblocked.result = false
  }
  window.adblocked.userCallback()
}

window.adblocked = {
  check : checkAds,
  userCallback : function() {},
  callback : done,
  result : "unknown"
}

var Adblocked = function() {

this.scriptFile = "http://pagead2.googlesyndication.com/pagead/show_ads.js";
this.adScript = document.createElement("script")

this.insert = function() {
  var body = document.getElementsByTagName('body')[0]
  var ad = document.createElement("div")
  ad.style.display = "none";
  this.adScript.setAttribute("type","text/javascript")
  this.adScript.setAttribute("src",this.scriptFile)
  body.appendChild(ad).appendChild(this.adScript)
  this.adScript.onload = adblocked.callback;
  this.adScript.onerror = adblocked.callback;

  return this
};

return this;

}

var a = new Adblocked()
a.insert()

})(window)



{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.002916666666666667, 'mean_word_length': 4.288546255506608, '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': '5659580', 'n_tokens_mistral': 829, 'n_tokens_neox': 820, 'n_words': 141}