<commit_before>// initialize timer variables
var state = false // timer on/off ?
var breakTime = 5
var sessionTime = 25

// update breakLng, sessionLng and timerNum HTML
var updateBreak = function (min) {
  document.getElementById('breakLng').innerHTML = min
}

var updateSession = function (min) {
  document.getElementById('sessionLng').innerHTML = min
}

var updateTimer = function (min) {
  document.getElementById('timerNum').innerHTML = min + ' : 00'
}

// event listeners
document.getElementById('run').addEventListener('click', function () {
  if (state === false) {
    state = true
  } else {
    state = false
  }
})

document.getElementById('break-down').addEventListener('click', function () {
  if (breakTime > 0) {
    breakTime--
  } else {
    breakTime === 0
  }
  updateBreak(breakTime)
})

document.getElementById('break-up').addEventListener('click', function () {
  breakTime++
  updateBreak(breakTime)
})

document.getElementById('session-down').addEventListener('click', function () {
  if (sessionTime > 0) {
    sessionTime--
  } else {
    sessionTime === 0
  }
  updateSession(sessionTime)
  updateTimer(sessionTime)
})

document.getElementById('session-up').addEventListener('click', function () {
  sessionTime++
  updateSession(sessionTime)
  updateTimer(sessionTime)
})

// update times on page load
updateBreak(breakTime)
updateSession(sessionTime)
updateTimer(sessionTime)
<commit_msg>coerced output from updateBreak, updateSession and updateTimer to type String<commit_after>// initialize timer variables
var state = false // timer on/off ?
var breakTime = 5
var sessionTime = 25

// update breakLng, sessionLng and timerNum HTML
var updateBreak = function (min) {
  document.getElementById('breakLng').innerHTML = String(min)
}

var updateSession = function (min) {
  document.getElementById('sessionLng').innerHTML = String(min)
}

var updateTimer = function (min) {
  document.getElementById('timerNum').innerHTML = String(min + ' : 00')
}

// event listeners
document.getElementById('run').addEventListener('click', function () {
  if (state === false) {
    state = true
  } else {
    state = false
  }
})

document.getElementById('break-down').addEventListener('click', function () {
  if (breakTime > 0) {
    breakTime--
  } else {
    breakTime === 0
  }
  updateBreak(breakTime)
})

document.getElementById('break-up').addEventListener('click', function () {
  breakTime++
  updateBreak(breakTime)
})

document.getElementById('session-down').addEventListener('click', function () {
  if (sessionTime > 0) {
    sessionTime--
  } else {
    sessionTime === 0
  }
  updateSession(sessionTime)
  updateTimer(sessionTime)
})

document.getElementById('session-up').addEventListener('click', function () {
  sessionTime++
  updateSession(sessionTime)
  updateTimer(sessionTime)
})

// update times on page load
updateBreak(breakTime)
updateSession(sessionTime)
updateTimer(sessionTime)

{'fraction_non_alphanumeric': 0.1356801093643199, 'fraction_numerical': 0.006151742993848257, 'mean_word_length': 4.628846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1599157', 'n_tokens_mistral': 844, 'n_tokens_neox': 825, 'n_words': 189}