<commit_before>var min = 99;
var sec = 99;
var ideas = null; // array of ideas from db
var numIdeasCompleted = 0;
var intervalID = 0;

function isWithinOneHour(now, start) {
  var diff = start.getTime() - now.getTime();
  return diff >= 0 && diff < 3600000; // 1hr in ms
}

/* Init for stage 1 (definition) */
function initBeginClock(startDate, startTime, duration) {
  var now = new Date();
  var start = new Date(startDate+","+startTime);
  var diff = start.getTime() - now.getTime();

  if (diff < 0) { // session already started
  	finishStage();
  } else {
    min = Math.floor(diff/1000/60);
    sec = Math.floor((diff/1000) % 60)
    startClock();
  }
}

/* init for stage 2 (ideation) */
function initIdeationClock(startDate, startTime, duration) {
  min = 8;
  sec = 0;
  startClock();
}

function initDiscussionClock(startDate, startTime, duration) {
  min = 0;
  sec = 10;

  numIdeasCompleted = parseInt(getParameterByName("numIdeasCompleted"));
  console.log(numIdeasCompleted);

  $("#clock").html(getTimeString());
  updateDiscussionClock(); // run once to start
  intervalID = setInterval(updateDiscussionClock,1000);
}

function initElectionClock(startDate, startTime, duration) {
  min = 0;
  sec = 10;
  startClock();
}

function initDecisionClock(startDate, startTime, duration) {
  min = 0;
  sec = 10;
  startClock();
}<commit_msg>Set real times for deployment<commit_after>var min = 99;
var sec = 99;
var ideas = null; // array of ideas from db
var numIdeasCompleted = 0;
var intervalID = 0;

function isWithinOneHour(now, start) {
  var diff = start.getTime() - now.getTime();
  return diff >= 0 && diff < 3600000; // 1hr in ms
}

/* Init for stage 1 (definition) */
function initBeginClock(startDate, startTime, duration) {
  var now = new Date();
  var start = new Date(startDate+","+startTime);
  var diff = start.getTime() - now.getTime();

  if (diff < 0) { // session already started
  	finishStage();
  } else {
    min = Math.floor(diff/1000/60);
    sec = Math.floor((diff/1000) % 60)
    startClock();
  }
}

/* init for stage 2 (ideation) */
function initIdeationClock(startDate, startTime, duration) {
  min = 8;
  sec = 0;
  startClock();
}

function initDiscussionClock(startDate, startTime, duration) {
  min = 0;
  sec = 10;

  numIdeasCompleted = parseInt(getParameterByName("numIdeasCompleted"));
  console.log(numIdeasCompleted);

  $("#clock").html(getTimeString());
  updateDiscussionClock(); // run once to start
  intervalID = setInterval(updateDiscussionClock,1000);
}

function initElectionClock(startDate, startTime, duration) {
  min = 1;
  sec = 30;
  startClock();
}

function initDecisionClock(startDate, startTime, duration) {
  min = 0;
  sec = 10;
  startClock();
}
{'fraction_non_alphanumeric': 0.13960323291697282, 'fraction_numerical': 0.03306392358559882, 'mean_word_length': 4.014732965009208, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6498243', 'n_tokens_mistral': 987, 'n_tokens_neox': 887, 'n_words': 246}