<commit_before>var page = chrome.extension.getBackgroundPage(),
    na = 'Not available.',
    nc = 'Content is missing.';

// Spinner settings
var opts = {
  lines: 13, // The number of lines to draw
  length: 6, // The length of each line
  width: 3, // The line thickness
  radius: 8, // The radius of the inner circle
  corners: 1, // Corner roundness (0..1)
  rotate: 0, // The rotation offset
  direction: 1, // 1: clockwise, -1: counterclockwise
  color: '#000', // #rgb or #rrggbb
  speed: 1, // Rounds per second
  trail: 60, // Afterglow percentage
  shadow: false, // Whether to render a shadow
  hwaccel: false, // Whether to use hardware acceleration
  className: 'spinner', // The CSS class to assign to the spinner
  zIndex: 2e9
};

// Get the current active tab in the lastly focused window
chrome.tabs.query({active: true,lastFocusedWindow: true}, function(tabs) {
  // and use that tab to fill in url and all page information
  var tab = tabs[0],
      tabURL = tab.url,
      parser = document.createElement('a');
  parser.href = tabURL;

  var host = parser.protocol + parser.host;

  // Page Title
  var pageTitleElem = document.getElementById("page-title"),
      titleElem = document.createElement("p");
  titleElem.innerText = page.getPageTitle(tab.id);
  pageTitleElem.appendChild(titleElem);

  var pageTitleCharacters = page.getPageTitleCharacters(tab.id);
  if (pageTitleCharacters) {
    var spanTitleCharacters = document.getElementById("page-title-characters");
    spanTitleCharacters.innerText = pageTitleCharacters;
  }

  var pageTitleOccurrences = page.getPageTitleOccurrences(tab.id);
  if (pageTitleOccurrences > 1) {
    var spanTitleOccurrences = document.getElementById("page-title-occurrences");
    spanTitleOccurrences.innerText = pageTitleOccurrences + ' elements';
  }

  // Meta Description
  var metaDescriptionElem = document.getElementById("meta-description"),
      descriptionElem = document.createElement("p");
  descriptionElem.innerHTML = page.getMetaDescription(tab.id);
  metaDescriptionElem.appendChild(descriptionElem);

  var metaDescriptionCharacters = page.getMetaDescriptionCharacters(tab.id);
  if (metaDescriptionCharacters) {
    var spanMetaCharacters = document.getElementById("meta-description-characters");
    spanMetaCharacters.innerText = metaDescriptionCharacters;
  }
<commit_msg>Revert "added response time and fixed relative path on prev and next links"<commit_after>var page = chrome.extension.getBackgroundPage(),
    na = 'Not available.',
    nc = 'Content is missing.';

// Spinner settings
var opts = {
  lines: 13, // The number of lines to draw
  length: 6, // The length of each line
  width: 3, // The line thickness
  radius: 8, // The radius of the inner circle
  corners: 1, // Corner roundness (0..1)
  rotate: 0, // The rotation offset
  direction: 1, // 1: clockwise, -1: counterclockwise
  color: '#000', // #rgb or #rrggbb
  speed: 1, // Rounds per second
  trail: 60, // Afterglow percentage
  shadow: false, // Whether to render a shadow
  hwaccel: false, // Whether to use hardware acceleration
  className: 'spinner', // The CSS class to assign to the spinner
  zIndex: 2e9
};

// Get the current active tab in the lastly focused window
chrome.tabs.query({active: true,lastFocusedWindow: true}, function(tabs) {
  // and use that tab to fill in url and all page information
  var tab = tabs[0],
      tabURL = tab.url,
      parser = document.createElement('a');
  parser.href = tabURL;

  var host = parser.protocol + parser.host;

  // Page Speed
  var t = page.getPageSpeed(tab.id);
  var start = t.redirectStart == 0 ? t.fetchStart : t.redirectStart;
  var responseTime = t.responseStart - start;
  var pageSpeedElem = document.getElementById("pageTiming");

  pageSpeedElem.innerText = responseTime + "ms";

  // Page Title
  var pageTitleElem = document.getElementById("page-title"),
      titleElem = document.createElement("p");
  titleElem.innerText = page.getPageTitle(tab.id);
  pageTitleElem.appendChild(titleElem);

  var pageTitleCharacters = page.getPageTitleCharacters(tab.id);
  if (pageTitleCharacters) {
    var spanTitleCharacters = document.getElementById("page-title-characters");
    spanTitleCharacters.innerText = pageTitleCharacters;
  }

  var pageTitleOccurrences = page.getPageTitleOccurrences(tab.id);
  if (pageTitleOccurrences > 1) {
    var spanTitleOccurrences = document.getElementById("page-title-occurrences");
    spanTitleOccurrences.innerText = pageTitleOccurrences + ' elements';
  }

  // Meta Description
  var metaDescriptionElem = document.getElementById("meta-description"),
      descriptionElem = document.createElement("p");
  descriptionElem.innerHTML = page.getMetaDescription(tab.id);
  metaDescriptionElem.appendChild(descriptionElem);

  var metaDescriptionCharacters = page.getMetaDescriptionCharacters(tab.id);
  if (metaDescriptionCharacters) {
    var spanMetaCharacters = document.getElementById("meta-description-characters");
    spanMetaCharacters.innerText = metaDescriptionCharacters;
  }

{'fraction_non_alphanumeric': 0.10886777513855898, 'fraction_numerical': 0.008907363420427554, 'mean_word_length': 4.104040404040404, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '624073', 'n_tokens_mistral': 1505, 'n_tokens_neox': 1433, 'n_words': 411}