<commit_before>var currentPatch = "0.3.0";

chrome.storage.local.get("disable-patch-notes", function(response){
  
  // Note: never ever change this to a different name, you'll bypass the setting
  if (!!response["disable-patch-notes"]) {
    return;
  }
  else {
    chrome.storage.local.get("0.3.0-patch-notes", function(response){
      if (!!!response[currentPatch + "-patch-notes"]) {
        init();
      }
    })
  }
})

function init(){
  var title = `CodePen Enhancement Suite ${currentPatch}`
  var notes = `<ul>
                <li>On-hover profile previews while<br>browsing Pens</li>
                <li>Inline Lint button in JavaScript editor</li>
                <li>Fixed some bugs</li>
                <li>Added some bugs</li>
              </ul>
              <p>
                <a target="_blank" href="https://github.com/alexzaworski/CodePen-Enhancement-Suite">See what's new</a>
              </p>
              <div class="ces__update__actions ces__clearfix">
                <button id="ces__hide-forever" class="ces__text-like-button">Never show patch notes</button>
                <button id="ces__dismiss" class="ces__update__dismiss button button-medium green">Dismiss</button>
              </div>`;
  var template = `<div id="ces__updates" class="ces__update-modal">
                    <h3 class="ces__update__title">${title}</h3>
                    <div class="ces__update__notes">
                      ${notes}
                    </div>
                  </div>`

  document.body.innerHTML += template;

  var dismissButton = document.getElementById("ces__dismiss");
  var modal = document.getElementById("ces__updates");
  dismissButton.addEventListener("click", function(){
    modal.parentNode.removeChild(modal);
    chrome.storage.local.set({"0.3.0-patch-notes":true});
  });

  var hideForever = document.getElementById("ces__hide-forever");
  hideForever.addEventListener("click", function(){
    modal.parentNode.removeChild(modal);
     chrome.storage.local.set({"disable-patch-notes":true});
  });
}<commit_msg>Correct verbiage<commit_after>var currentPatch = "0.3.0";

chrome.storage.local.get("disable-patch-notes", function(response){
  
  // Note: never ever change this to a different name, you'll bypass the setting
  if (!!response["disable-patch-notes"]) {
    return;
  }
  else {
    chrome.storage.local.get("0.3.0-patch-notes", function(response){
      if (!!!response[currentPatch + "-patch-notes"]) {
        init();
      }
    })
  }
})

function init(){
  var title = `CodePen Enhancement Suite ${currentPatch}`
  var notes = `<ul>
                <li>On-hover profile previews while<br>browsing Pens or Posts</li>
                <li>Inline Lint button in JavaScript editor</li>
                <li>Fixed some bugs</li>
                <li>Added some bugs</li>
              </ul>
              <p>
                <a target="_blank" href="https://github.com/alexzaworski/CodePen-Enhancement-Suite">See what's new</a>
              </p>
              <div class="ces__update__actions ces__clearfix">
                <button id="ces__hide-forever" class="ces__text-like-button">Never show patch notes</button>
                <button id="ces__dismiss" class="ces__update__dismiss button button-medium green">Dismiss</button>
              </div>`;
  var template = `<div id="ces__updates" class="ces__update-modal">
                    <h3 class="ces__update__title">${title}</h3>
                    <div class="ces__update__notes">
                      ${notes}
                    </div>
                  </div>`

  document.body.innerHTML += template;

  var dismissButton = document.getElementById("ces__dismiss");
  var modal = document.getElementById("ces__updates");
  dismissButton.addEventListener("click", function(){
    modal.parentNode.removeChild(modal);
    chrome.storage.local.set({"0.3.0-patch-notes":true});
  });

  var hideForever = document.getElementById("ces__hide-forever");
  hideForever.addEventListener("click", function(){
    modal.parentNode.removeChild(modal);
     chrome.storage.local.set({"disable-patch-notes":true});
  });
}

{'fraction_non_alphanumeric': 0.1457274267731784, 'fraction_numerical': 0.00532558702493343, 'mean_word_length': 2.596170583115753, 'pattern_counts': {'":': 4, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 2, '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': '880370', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1175, 'n_words': 225}