<commit_before><?php

function returnTimes() {
  global $date_boundaries;
  global $time_boundaries;
  global $time_increments;

  $times = array();

  foreach($date_boundaries as $date => $test) {
  	$date_parts = explode('-', $date);
  	$day = mktime(0,0,0,$date_parts[1], $date_parts[2], $date_parts[0]);
  	$start = $day + $time_boundaries['start'];
  	$current = $start;
  	$end = $day+$time_boundaries['end'];
  	while($current < $end) {
  	  $times[] = $current;
  	  $current += $time_increments;
  	}
  }
  return $times;
}

function tabularTimes() {
  $times = returnTimes();
  $return = array();
  for($i = 0; $i < count($times); $i++) {
    if (!isset($return[date('i', $times[$i])])) {
      $return[date('i', $times[$i])] = array();
    }
    $return[date('i', $times[$i])][date('H', $times[$i])] = $times[$i];
  }
  return $return;
}
<commit_msg>Fixes an index undefined issue<commit_after><?php

function returnTimes() {
  global $date_boundaries;
  global $time_boundaries;
  global $time_increments;

  $times = array();

  foreach($date_boundaries as $date => $test) {
  	$date_parts = explode('-', $date);
  	if(count($date_parts) > 2){
    	$day = mktime(0,0,0,$date_parts[1], $date_parts[2], $date_parts[0]);
  		$start = $day + $time_boundaries['start'];
  		$current = $start;
  		$end = $day+$time_boundaries['end'];
  		while($current < $end) {
  			  $times[] = $current;
  	 		 $current += $time_increments;
  		}
	  }
  }
  return $times;
}

function tabularTimes() {
  $times = returnTimes();
  $return = array();
  for($i = 0; $i < count($times); $i++) {
    if (!isset($return[date('i', $times[$i])])) {
      $return[date('i', $times[$i])] = array();
    }
    $return[date('i', $times[$i])][date('H', $times[$i])] = $times[$i];
  }
  return $return;
}

{'fraction_non_alphanumeric': 0.22620380739081747, 'fraction_numerical': 0.0083986562150056, 'mean_word_length': 3.963888888888889, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, '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': '606912', 'n_tokens_mistral': 712, 'n_tokens_neox': 696, 'n_words': 126}