<commit_before>function handleDeactivation(e, reservation_id, overbooked) {
  if (arguments.length > 1 && reservation_id) {
    var confirmCheckedOut = confirm("This equipment is currently checked out. If you continue then reservation #"+reservation_id+" will be archived. Do you want to proceed?")
  } else {
    var confirmCheckedOut = true
  }
  if (confirmCheckedOut == true && arguments.length > 2 && overbooked.length > 0) {
    var confirmOverbooked = confirm("This equipment will be overbooked over the coming week from"+overbooked[0]+" to"+overbooked[overbooked.length-1]+". Are you sure you want to continue?")
  }
  else {
    var confirmOverbooked = true
  }
  if (confirmCheckedOut == true && confirmOverbooked == true) {
    var reason = prompt("Write down the reason for deactivation of this equipment object.")
    if (reason == null) {
      e.href += "?deactivation_cancelled=1"
    } else if (reason != "") {
      e.href += "?deactivation_reason=" + encodeURIComponent(reason)
    }
  }
  else {
    e.href += "?deactivation_cancelled=1"
  }
};<commit_msg>broke up strings for readability<commit_after>function handleDeactivation(e, reservation_id, overbooked) {
  if (arguments.length > 1 && reservation_id) {
    var confirmCheckedOut = confirm("This equipment is currently checked " +
      "out. If you continue then reservation #"+reservation_id+" will be " +
      "archived. Do you want to proceed?")
  } else {
    var confirmCheckedOut = true
  }
  if (confirmCheckedOut == true && arguments.length > 2 && overbooked.length > 0) {
    var confirmOverbooked = confirm("This equipment will be overbooked " +
      "over the coming week from"+overbooked[0]+"to" +
      overbooked[overbooked.length-1]+". Are you sure you want to continue?")
  }
  else {
    var confirmOverbooked = true
  }
  if (confirmCheckedOut == true && confirmOverbooked == true) {
    var reason = prompt("Write down the reason for deactivation of this " +
      "equipment object.")
    if (reason == null) {
      e.href += "?deactivation_cancelled=1"
    } else if (reason != "") {
      e.href += "?deactivation_reason=" + encodeURIComponent(reason)
    }
  }
  else {
    e.href += "?deactivation_cancelled=1"
  }
};
{'fraction_non_alphanumeric': 0.12061206120612061, 'fraction_numerical': 0.0063006300630063005, 'mean_word_length': 3.6506276150627617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6428428', 'n_tokens_mistral': 690, 'n_tokens_neox': 670, 'n_words': 196}