<commit_before><?php

include_once("../php/file.php");

if (isset($user) == False) {
  $user = new User($username);
}

$experiment = new Experiment($_REQUEST['exp']);

$unix_today = strtotime(date('Y-m-d'));
$unix_tomorrow = $unix_today + 86400;

foreach ($experiment->getCalendar() as $date=>$slots) {
  $unix_date = strtotime($date);

  if ($unix_date < $unix_today) {
    if ($time_point != 'past') {
      $schedule .= '<div id="view-title-past"><h3>► Completed</h3></div><div id="view-past"><table style="width: 100%; border-spacing: 10px;">';
      $time_point = 'past';
    }
  }
  elseif ($unix_date == $unix_today) {
    if ($time_point == 'past') {
      $schedule .= '</table></div>';
    }
    if ($time_point != 'present') {
      $schedule .= '<div id="view-title-present"><h3>▼ Today</h3></div><div id="view-present"><table style="width: 100%; border-spacing: 10px;">';
      $time_point = 'present';
    }
  }
  elseif ($unix_date > $unix_today) {
    if ($time_point == 'past' OR $time_point == 'present') {
      $schedule .= '</table></div>';
    }<commit_msg>Only create Experiment object if not already created<commit_after><?php

include_once("../php/file.php");

if (isset($user) == False) {
  $user = new User($username);
}

if (isset($experiment) == False) {
  $experiment = new Experiment($_REQUEST['exp']);
}

$unix_today = strtotime(date('Y-m-d'));
$unix_tomorrow = $unix_today + 86400;

foreach ($experiment->getCalendar() as $date=>$slots) {
  $unix_date = strtotime($date);

  if ($unix_date < $unix_today) {
    if ($time_point != 'past') {
      $schedule .= '<div id="view-title-past"><h3>► Completed</h3></div><div id="view-past"><table style="width: 100%; border-spacing: 10px;">';
      $time_point = 'past';
    }
  }
  elseif ($unix_date == $unix_today) {
    if ($time_point == 'past') {
      $schedule .= '</table></div>';
    }
    if ($time_point != 'present') {
      $schedule .= '<div id="view-title-present"><h3>▼ Today</h3></div><div id="view-present"><table style="width: 100%; border-spacing: 10px;">';
      $time_point = 'present';
    }
  }
  elseif ($unix_date > $unix_today) {
    if ($time_point == 'past' OR $time_point == 'present') {
      $schedule .= '</table></div>';
    }
{'fraction_non_alphanumeric': 0.22584973166368516, 'fraction_numerical': 0.01699463327370304, 'mean_word_length': 3.8211206896551726, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '4779031', 'n_tokens_mistral': 864, 'n_tokens_neox': 811, 'n_words': 154}