<commit_before>function processJSON() {
  var printArea = document.getElementById("prettyprint")
  var messageArea = document.getElementById("log")
  printArea.innerHTML = ""
  messageArea.innerHTML = ""
  try {
    var obj = JSON.parse(document.getElementById("inputTextarea").value);
    var str = JSON.stringify(obj, null, 2)
    printArea.innerHTML = str;
  }
  catch(e) {
    messageArea.innerHTML = e.message
  }
}<commit_msg>replace smart quotes<commit_after>function processJSON() {
  var printArea = document.getElementById("prettyprint")
  var messageArea = document.getElementById("log")
  printArea.innerHTML = ""
  messageArea.innerHTML = ""
  try {
    // replace smart quotes
    var input = document.getElementById("inputTextarea").value
      .replace(/[\u2018\u2019]/g, "'")
      .replace(/[\u201C\u201D]/g, '"');
    var obj = JSON.parse(input);
    var str = JSON.stringify(obj, null, 2)
    printArea.innerHTML = str;
  }
  catch(e) {
    messageArea.innerHTML = e.message
  }
}
{'fraction_non_alphanumeric': 0.142, 'fraction_numerical': 0.016, 'mean_word_length': 3.744075829383886, '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': '3701174', 'n_tokens_mistral': 315, 'n_tokens_neox': 299, 'n_words': 58}