<commit_before>//Date4U js file, gets published date of webpage from source code of webpage
//makes use of "datePublished": function

function getDate() {
  var element = document.getElementById("datePublished");
  var date = element.innerText.search(/"datePublished":"(.+)"/);
  chrome.tabs.executeScript({
    code: date
  })
}<commit_msg>Misc. changes idek<commit_after>//Date4U js file, gets published date of webpage from source code of webpage
//makes use of "datePublished": function

function getDate() {
  var idStr = elt.id;   // get the ID
  elt.id = idStr;   // set the ID

  var element = document.getElementById("idStr");
var date = element.innerText.search(/"datePublished":"(.+)"/);

  chrome.tabs.executeScript({
    code: date
  })
  return date;
}
{'fraction_non_alphanumeric': 0.13577023498694518, 'fraction_numerical': 0.0026109660574412533, 'mean_word_length': 4.0130718954248366, 'pattern_counts': {'":': 4, '<': 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': '7408921', 'n_tokens_mistral': 246, 'n_tokens_neox': 226, 'n_words': 73}