<commit_before><?php
$key = key($due_date_topics);
if (count($due_date_topics[$key])):
	?>
	<h2><?php echo lang('to_do') ?></h2>
	<div id="duefor">
		<h3><?php echo lang('tasks_for') . account_date_format($key) ?></h3>
		<ul>
			<?php
			$i = 0;
			foreach ($due_date_topics[$key] as $topic_context):
				$info = Modules::run('cc/topic/info', $topic_context);

				if ($info['info']['status'] == 'closed' && $only_opened === TRUE) {
					continue;
				}

				if (belongs_to('topic', $topic_context, connected_user(), TRUE)):
					?>
					<li>
						<a class="topic" href="<?php echo site_url('cc/topic/resume/' . $topic_context) ?>"><b><?php echo $info['info']['title'] ?></b></a>
								<?php echo create_breadcrumb(parent_context($topic_context), $info['info']['id']) ?>
					</li><commit_msg>* Add validation if $key is null to avoid php message.<commit_after><?php
$key = key($due_date_topics);
if ( ! is_null($key) && count($due_date_topics[$key])):
	?>
	<h2><?php echo lang('to_do') ?></h2>
	<div id="duefor">
		<h3><?php echo lang('tasks_for') . account_date_format($key) ?></h3>
		<ul>
			<?php
			$i = 0;
			foreach ($due_date_topics[$key] as $topic_context):
				$info = Modules::run('cc/topic/info', $topic_context);

				if ($info['info']['status'] == 'closed' && $only_opened === TRUE) {
					continue;
				}

				if (belongs_to('topic', $topic_context, connected_user(), TRUE)):
					?>
					<li>
						<a class="topic" href="<?php echo site_url('cc/topic/resume/' . $topic_context) ?>"><b><?php echo $info['info']['title'] ?></b></a>
								<?php echo create_breadcrumb(parent_context($topic_context), $info['info']['id']) ?>
					</li>
{'fraction_non_alphanumeric': 0.235329703569268, 'fraction_numerical': 0.006049606775559589, 'mean_word_length': 4.37012987012987, 'pattern_counts': {'":': 0, '<': 41, '<?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': '7581525', 'n_tokens_mistral': 700, 'n_tokens_neox': 612, 'n_words': 118}