<commit_before>
var init = function () {

  //Declare local variables
    var equalsButton; //for querySelector
    var clearButton; //for querySelector
    var screenNumber; //Number displayed on screen
    var calculation = []; //Current calculation calculator
    var numberPressedLast = false;


  // Variable pointing to equals-button HTML element
  equalsButton = document.querySelector("#button-equal");

  // Variable pointing to AC-button HTML element
  clearButton = document.querySelector("#button-clear");

  //Event handler that adds the value of the clicked number button to the calculation
  var numberPressed = function(event) {
    var button = event.target;
    var text = button.textContent;

    if (numberPressedLast) {
      console.log(numberPressedLast);
      calculation[calculation.length - 1] += text;
    }
    else {
      console.log(numberPressedLast);
      calculation.push(text);
    }

    numberPressedLast = true;
    console.log(numberPressedLast);
    console.log(text + " CLICKED");
    console.log(calculation);
    console.log(numberPressedLast);
  };

  //Event handler that adds the value of the clicked operator button to the calculation
  var operatorPressed = function(event) {
    var button = event.target;
    var text = button.textContent;

    if (numberPressedLast) {
      calculation.push(text);
    }
    else {
      calculation[calculation.length - 1] = text;
    }

    numberPressedLast = false;
    console.log(text + " CLICKED");
    console.log(calculation);
    console.log(numberPressedLast);
  };

  //Event handler that alerts the value of the clicked equals button to the screen
  var equalPressed = function(event) {
    var button = event.target;
    var text = button.textContent;
    console.log(text + " CLICKED");
    console.log(calculation);
  };

  //Event handler that alerts the value of the clicked number button to the screen
  var clearPressed = function(event) {<commit_msg>Remove console.log messages from event handler functions<commit_after>
var init = function () {

  //Declare local variables
    var equalsButton; //for querySelector
    var clearButton; //for querySelector
    var screenNumber; //Number displayed on screen
    var calculation = []; //Current calculation calculator
    var numberPressedLast = false;


  // Variable pointing to equals-button HTML element
  equalsButton = document.querySelector("#button-equal");

  // Variable pointing to AC-button HTML element
  clearButton = document.querySelector("#button-clear");

  //Event handler that adds the value of the clicked number button to the calculation
  var numberPressed = function(event) {
    var button = event.target;
    var text = button.textContent;

    if (numberPressedLast) {
      calculation[calculation.length - 1] += text;
    }
    else {
      calculation.push(text);
    }

    numberPressedLast = true;
    console.log(text + " CLICKED");
    console.log(calculation);
  };

  //Event handler that adds the value of the clicked operator button to the calculation
  var operatorPressed = function(event) {
    var button = event.target;
    var text = button.textContent;

    if (numberPressedLast) {
      calculation.push(text);
    }
    else {
      calculation[calculation.length - 1] = text;
    }

    numberPressedLast = false;
    console.log(text + " CLICKED");
    console.log(calculation);
  };

  //Event handler that alerts the value of the clicked equals button to the screen
  var equalPressed = function(event) {
    var button = event.target;
    var text = button.textContent;
    console.log(text + " CLICKED");
    console.log(calculation);
  };

  //Event handler that alerts the value of the clicked number button to the screen
  var clearPressed = function(event) {
{'fraction_non_alphanumeric': 0.09456953642384106, 'fraction_numerical': 0.0010596026490066225, 'mean_word_length': 3.2237136465324383, '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': '1971200', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1017, 'n_words': 327}