<commit_before>function hypotenuse(a,b){

  function square(x){
    return x*x;
  }

  return Math.sqrt(square(a) + square(b));

}

output.innerHTML = hypotenuse(3,4);<commit_msg>introducing closure<commit_after>var scope = "global";
// closure means that the something happens in the scope that it is invoked not in the scope that it is declared?

function  testScope(){
  var scope = "local";
  function innerFunc() {return scope;}
  return innerFunc();
}

var answer = testScope();
output.innerHTML = answer;
{'fraction_non_alphanumeric': 0.12133072407045009, 'fraction_numerical': 0.003913894324853229, 'mean_word_length': 4.752808988764045, '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': '865181', 'n_tokens_mistral': 161, 'n_tokens_neox': 155, 'n_words': 51}