<commit_before>/*jshint esversion: 6 */

class Fridge {
  constructor() {
    this.products = [];
    this.tolerance = 0;
  }

  add(product){
    this.products.push(product);
  }

  tolControl(){
    // hide product items in fridge if tolerance is smaller than current value
    var tol = this.tolerance;
    this.products.forEach(function (item, index) {
      if (tol < item.tolerance){
        item.on = false;
    }else {
      item.on = true;
    }
  });
}

  draw(){
    image(fridgeOpen, width/2-120, height/2-140, 500, 480);
    textAlign(CENTER);
    fill(0);
    noStroke();
    // text(this.tolerance, width/2, height/2-200);

  }
}<commit_msg>unnecessary stuff deleted<commit_after>/*jshint esversion: 6 */

class Fridge {
  constructor() {
    this.products = [];
    this.tolerance = 0;
  }

  add(product){
    this.products.push(product);
  }

  tolControl(){
    // hide product items in fridge if tolerance is smaller than current value
    var tol = this.tolerance;
    this.products.forEach(function (item, index) {
      if (tol < item.tolerance){
        item.on = false;
    }else {
      item.on = true;
    }
  });
}

  draw(){
    image(fridgeOpen, width/2-120, height/2-140, 500, 480);
    fill(0);
    noStroke();
    // text(this.tolerance, width/2, height/2-200);

  }
}
{'fraction_non_alphanumeric': 0.1498847040737894, 'fraction_numerical': 0.033820138355111454, 'mean_word_length': 2.5, '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': '160130', 'n_tokens_mistral': 494, 'n_tokens_neox': 444, 'n_words': 101}