<commit_before>const TimePicker = (function(argument) {
  const id = 'TIME_PICKER';

  return {
    id: id,
    condition: () => {
      const hash = window.location.hash.substr(1);
      /* Show if there is no hash */
      return hash === '';
    },
    show: () => {
      const timePickerView = document.getElementById(id);
      timePickerView.style.display = 'inherit';

      const startButton = document.querySelector('#TIME_PICKER_start-button');
      startButton.addEventListener('click', () => {
        const date = document.querySelector('#TIME_PICKER_data-input').value;
        const timeStamp = Math.floor(new Date(date) / 1000);
        window.location.hash = timeStamp;
      });
    },
    hide: () => {
      const timePickerView = document.getElementById(id);
      timePickerView.style.display = 'none';<commit_msg>Moving the start button to a named function<commit_after>const TimePicker = (function(argument) {
  const id = 'TIME_PICKER';
  const startCountdown = () => {
    const date = document.querySelector('#TIME_PICKER_data-input').value;
    const timeStamp = Math.floor(new Date(date) / 1000);
    window.location.hash = timeStamp;
  };

  return {
    id: id,
    condition: () => {
      const hash = window.location.hash.substr(1);
      /* Show if there is no hash */
      return hash === '';
    },
    show: () => {
      const timePickerView = document.getElementById(id);
      timePickerView.style.display = 'inherit';

      const startButton = document.querySelector('#TIME_PICKER_start-button');
      startButton.addEventListener('click', startCountdown);
    },
    hide: () => {
      const timePickerView = document.getElementById(id);
      timePickerView.style.display = 'none';
{'fraction_non_alphanumeric': 0.13980358174465626, 'fraction_numerical': 0.005777007510109763, 'mean_word_length': 3.0657276995305165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6920120', 'n_tokens_mistral': 506, 'n_tokens_neox': 496, 'n_words': 103}