<commit_before>/* global chrome */
var openNewTabThenExitBrowserActionPopup = (url) => {
  var createProperties = {url}
  chrome.tabs.create(createProperties)
  window.close()
}

var submitAFeatureRequest = () => {
  openNewTabThenExitBrowserActionPopup('https://github.com/moderatemisbehaviour/seshy/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement')
}

var reportABug = () => {
  openNewTabThenExitBrowserActionPopup('https://github.com/moderatemisbehaviour/seshy/issues?q=is%3Aopen+is%3Aissue+label%3Abug')
}

var seeOpenSourceCredits = () => {
  window.location.href = 'credits'
}

var setUp = () => {
  var submitAFeatureRequestElement = document.getElementById('submit-a-feature-request')
  var reportABugElement = document.getElementById('report-a-bug')
  var seeOpenSourceCreditsElement = document.getElementById('see-open-source-credits')

  submitAFeatureRequestElement.addEventListener('click', submitAFeatureRequest)
  reportABugElement.addEventListener('click', reportABug)
  seeOpenSourceCreditsElement.addEventListener('click', seeOpenSourceCredits)
}

setUp()<commit_msg>Fix credits link<commit_after>/* global chrome */
var openNewTabThenExitBrowserActionPopup = (url) => {
  var createProperties = {url}
  chrome.tabs.create(createProperties)
  window.close()
}

var submitAFeatureRequest = () => {
  openNewTabThenExitBrowserActionPopup('https://github.com/moderatemisbehaviour/seshy/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement')
}

var reportABug = () => {
  openNewTabThenExitBrowserActionPopup('https://github.com/moderatemisbehaviour/seshy/issues?q=is%3Aopen+is%3Aissue+label%3Abug')
}

var seeOpenSourceCredits = () => {
  window.location.href = '/credits/index.html'
}

var setUp = () => {
  var submitAFeatureRequestElement = document.getElementById('submit-a-feature-request')
  var reportABugElement = document.getElementById('report-a-bug')
  var seeOpenSourceCreditsElement = document.getElementById('see-open-source-credits')

  submitAFeatureRequestElement.addEventListener('click', submitAFeatureRequest)
  reportABugElement.addEventListener('click', reportABug)
  seeOpenSourceCreditsElement.addEventListener('click', seeOpenSourceCredits)
}

setUp()
{'fraction_non_alphanumeric': 0.1282519397535372, 'fraction_numerical': 0.005476951163852123, 'mean_word_length': 7.17910447761194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 4, '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': '6514128', 'n_tokens_mistral': 689, 'n_tokens_neox': 682, 'n_words': 79}