<commit_before>"use strict";
let remote = require('remote');
let path = require('path');
let app = remote.require('app');
let shell = require('shell');
let mainWindow = remote.getCurrentWindow();

let dodoList = document.getElementById('dodo-list');

let timer = null;
document.getElementById('add-task').addEventListener('click', function(e){
 dodoList.add(); 
});


document.getElementById('start-task').addEventListener('click', function(e){
  timerStop();
  timerStart();
});


document.getElementById('pause-task').addEventListener('click', function(e){
  timerStop();
});

document.getElementById('stop-task').addEventListener('click', function(e){
  timerStop();
  document.getElementById('h').textContent = '00';
  document.getElementById('m').textContent = '00';
  document.getElementById('s').textContent = '00';
});
function timerStart(){
  let hour = document.getElementById('h');
  let min = document.getElementById('m');
  let sec = document.getElementById('s');
  timer = setInterval(function(){
    let h = hour.textContent >>0;
    let m = min.textContent >>0;
    let s = sec.textContent >>0;
    s++;
    if(s === 60){
      m++;
      s = 0;
      if(m === 60){
        h++;
        m = 0;
      }
    }

    if(h < 10) h = '0' + h;
    if(m < 10) m = '0' + m;
    if(s < 10) s = '0' + s;

    hour.textContent = h;
    min.textContent = m;
    sec.textContent = s;

  }, 1000);
}

function timerStop(){
  if(timer === null) return;

  clearInterval(timer);
  timer = null;<commit_msg>fix indent<commit_after>"use strict";
let remote = require('remote');
let path = require('path');
let app = remote.require('app');
let shell = require('shell');
let mainWindow = remote.getCurrentWindow();

let dodoList = document.getElementById('dodo-list');

let timer = null;
document.getElementById('add-task').addEventListener('click', function(e){
  dodoList.add();
});


document.getElementById('start-task').addEventListener('click', function(e){
  timerStop();
  timerStart();
});


document.getElementById('pause-task').addEventListener('click', function(e){
  timerStop();
});

document.getElementById('stop-task').addEventListener('click', function(e){
  timerStop();
  document.getElementById('h').textContent = '00';
  document.getElementById('m').textContent = '00';
  document.getElementById('s').textContent = '00';
});

function timerStart(){
  let hour = document.getElementById('h');
  let min = document.getElementById('m');
  let sec = document.getElementById('s');
  timer = setInterval(function(){
    let h = hour.textContent >>0;
    let m = min.textContent >>0;
    let s = sec.textContent >>0;
    s++;
    if(s === 60){
      m++;
      s = 0;
      if(m === 60){
        h++;
        m = 0;
      }
    }

    if(h < 10) h = '0' + h;
    if(m < 10) m = '0' + m;
    if(s < 10) s = '0' + s;
    
    hour.textContent = h;
    min.textContent = m;
    sec.textContent = s;

  }, 1000);
}

function timerStop(){
  if(timer === null) return;

  clearInterval(timer);
  timer = null;
{'fraction_non_alphanumeric': 0.18791500664010624, 'fraction_numerical': 0.01859229747675963, 'mean_word_length': 3.7448818897637794, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '1152555', 'n_tokens_mistral': 988, 'n_tokens_neox': 939, 'n_words': 216}