<commit_before>function Thermostat() {
  this.temp = 20;
  this.minTemp = 10;
  this.maxTemp = 32;
  this.powerSavingModeMax = 25;
  this.powerSavingMode = true;
}
// && this.temp >= this.powerSavingModeMax)this.powerSavingMode &&
// if (this.temp === this.powerSavingModeMax) {
//   throw new Error("Power Saving Mode on, maximum temperature reached");
// } else {
Thermostat.prototype.increaseByOne = function() {


  temp += 1;

};

Thermostat.prototype.decreaseByOne = function() {
  if (this.temp <= this.minTemp) {
    throw new Error("Minimum temperature reached");
  } else {
    this.temp -= 1;<commit_msg>refactored increasebyone function<commit_after>function Thermostat() {
  this.temp = 20;
  this.minTemp = 10;
  this.maxTemp = 32;
  this.powerSavingModeMax = 25;
  this.powerSavingMode = true;
}

Thermostat.prototype.increaseByOne = function() {
  if (this.temp === this.powerSavingModeMax) {
    throw new Error("Power Saving Mode on, maximum temperature reached");
  } else {
    this.temp += 1;
  }
};

Thermostat.prototype.decreaseByOne = function() {
  if (this.temp <= this.minTemp) {
    throw new Error("Minimum temperature reached");
  } else {
    this.temp -= 1;
{'fraction_non_alphanumeric': 0.13961312026913372, 'fraction_numerical': 0.01682085786375105, 'mean_word_length': 3.7791164658634537, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '576004', 'n_tokens_mistral': 429, 'n_tokens_neox': 393, 'n_words': 87}