<commit_before><script>

var past = false;
var present = true;
var future = false;

$( document ).ready( function() {
  $("#view-past").hide();
  $("#view-future").hide();
});

$( "#view-title-past" ).click( function() {
  $("#view-past").slideToggle(duration=150);
  if (past == true) {
    $("#view-title-past").html("<h3>► Completed</h3>");
    past = false;
  }
  else {
    $("#view-title-past").html("<h3>▼ Completed</h3>");
    past = true;
  }
});

$( "#view-title-present" ).click( function() {
  $("#view-present").slideToggle(duration=150);
  if (present == true) {
    $("#view-title-present").html("<h3>► Today</h3>");
    present = false;
  }
  else {
    $("#view-title-present").html("<h3>▼ Today</h3>");
    present = true;
  }
});

$( "#view-title-future" ).click( function() {
  $("#view-future").slideToggle(duration=150);
  if (future == true) {
    $("#view-title-future").html("<h3>► Upcoming</h3>");
    future = false;
  }
  else {
    $("#view-title-future").html("<h3>▼ Upcoming</h3>");
    future = true;
  }
});

</script><commit_msg>Added event handlers for option buttons<commit_after><script>

var past = false;
var present = true;
var future = false;
var experiment_id = '<?php echo $experiment->id; ?>';

$( document ).ready( function() {
  $("#view-past").hide();
  $("#view-future").hide();
});

$( "#view-title-past" ).click( function() {
  $("#view-past").slideToggle(duration=150);
  if (past == true) {
    $("#view-title-past").html("<h3>► Completed</h3>");
    past = false;
  }
  else {
    $("#view-title-past").html("<h3>▼ Completed</h3>");
    past = true;
  }
});

$( "#view-title-present" ).click( function() {
  $("#view-present").slideToggle(duration=150);
  if (present == true) {
    $("#view-title-present").html("<h3>► Today</h3>");
    present = false;
  }
  else {
    $("#view-title-present").html("<h3>▼ Today</h3>");
    present = true;
  }
});

$( "#view-title-future" ).click( function() {
  $("#view-future").slideToggle(duration=150);
  if (future == true) {
    $("#view-title-future").html("<h3>► Upcoming</h3>");
    future = false;
  }
  else {
    $("#view-title-future").html("<h3>▼ Upcoming</h3>");
    future = true;
  }
});

$("#green-button").click( function() {
  window.location = '../?exp=' + experiment_id;
});

$("#button").click( function() {
  window.location = 'index.php?page=edit&exp=' + experiment_id;
});

$("#orange-button").click( function() {
  window.location = 'index.php?page=close&exp=' + experiment_id;
});

$("#red-button").click( function() {
  window.location = 'index.php?page=delete&exp=' + experiment_id;
});

</script>
{'fraction_non_alphanumeric': 0.2631779984721161, 'fraction_numerical': 0.016042780748663103, 'mean_word_length': 3.8232044198895028, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 33, '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': '180783', 'n_tokens_mistral': 950, 'n_tokens_neox': 961, 'n_words': 157}