<commit_before><?php if ($issue instanceof TBGIssue): ?>
	<h3>
		<?php echo $issue->getFormattedTitle(true); ?><br>
		<span style="font-size: 0.8em; font-weight: normal;"><?php echo __('Updated by') . ' ' . $updated_by->getBuddyname() . ' (' . $updated_by->getUsername() . ')'; ?></span><br>
		<span style="font-size: 0.8em; color: #AAA; font-weight: normal;"><?php echo __('Created by') . ' ' . $issue->getPostedBy()->getBuddyname() . ' (' . $issue->getPostedBy()->getUsername() . ')'; ?></span>
	</h3>
	<?php if (isset($comment) && $comment instanceof TBGComment): ?>
		<h4><?php echo __('Comment by') . ' ' . $comment->getPostedBy()->getBuddyname() . ' (' . $comment->getPostedBy()->getUsername() . ')'; ?></h4>
		<p><?php echo $comment->getParsedContent(); ?></p>
		<br>
	<?php endif; ?>
	<?php if (count($log_items)): ?>
		<h4><?php echo __('Changes'); ?></h4>
		<ul>
			<?php foreach ($log_items as $item): ?>
				<li>
				<?php

					switch ($item->getChangeType())
					{
						case TBGLogTable::LOG_ISSUE_CREATED:
						case TBGLogTable::LOG_COMMENT:
							break;
						case TBGLogTable::LOG_ISSUE_CLOSE:
							echo '<i>' . __('Issue closed') . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_REOPEN:
							echo '<i>' . __('Issue reopened') . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_UPDATE:
							echo '<i>' . $item->getText() . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_BUG_TYPE:
							echo '<i>' . __('Triaged bug type: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_LIKELIHOOD:
							echo '<i>' . __('Triaged likelihood: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_EFFECT:
							echo '<i>' . __('Triaged effect: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_CALCULATED:
							echo '<i>' . __('Calculated user pain: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_CATEGORY:
							echo '<i>' . __('Category changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_CUSTOMFIELD_CHANGED:
							echo '<i>' . __('Custom field changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_STATUS:
							echo '<i>' . __('Status changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_REPRODUCABILITY:
							echo '<i>' . __('Reproducability changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PRIORITY:
							echo '<i>' . __('Priority changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_SEVERITY:
							echo '<i>' . __('Severity changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_RESOLUTION:
							echo '<i>' . __('Resolution changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PERCENT:
							echo '<i>' . __('Percent completed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_MILESTONE:
							echo '<i>' . __('Target milestone changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_ISSUETYPE:
							echo '<i>' . __('Issue type changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_TIME_ESTIMATED:
							echo '<i>' . __('Estimation changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_TIME_SPENT:
							echo '<i>' . __('Time spent: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_ASSIGNED:
							echo '<i>' . __('Assignee changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_OWNED:
							echo '<i>' . __('Owner changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_POSTED:
							echo '<i>' . __('Posted by changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						default:
							if (!$item->getText())
							{
								echo '<i>' .__('Issue updated') . '</i>';
							}
							else
							{
								echo '<i>' .$item->getText() . '</i>';
							}
							break;
					}

				?>
				</li>
			<?php endforeach; ?>
		</ul>
	<?php endif; ?>
	<br>
	<div style="color: #888;">
		<?php echo __('Show issue:') . ' ' . link_tag($module->generateURL('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()))); ?><br>
		<?php if (isset($comment) && $comment instanceof TBGComment){echo __('Show comment:') . ' ' . link_tag($module->generateURL('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo())).'#comment_'.$comment->getID()) . "<br>";} ?>
		<?php echo __('Show') . ' ' . $issue->getProject()->getName() . ' ' . __('project dashboard:') . ' ' . link_tag($module->generateURL('project_dashboard', array('project_key' => $issue->getProject()->getKey()))); ?><br>
		<br><commit_msg>Translation<commit_after><?php if ($issue instanceof TBGIssue): ?>
	<h3>
		<?php echo $issue->getFormattedTitle(true); ?><br>
		<span style="font-size: 0.8em; font-weight: normal;"><?php echo __('Updated by %name', array('%name' => $updated_by->getBuddyname())) . ' (' . $updated_by->getUsername() . ')'; ?></span><br>
		<span style="font-size: 0.8em; color: #AAA; font-weight: normal;"><?php echo __('Created by %name', array('%name' => $issue->getPostedBy()->getBuddyname())) . ' (' . $issue->getPostedBy()->getUsername() . ')'; ?></span>
	</h3>
	<?php if (isset($comment) && $comment instanceof TBGComment): ?>
		<h4><?php echo __('Comment by %name', array('%name' => $comment->getPostedBy()->getBuddyname())) . ' (' . $comment->getPostedBy()->getUsername() . ')'; ?></h4>
		<p><?php echo $comment->getParsedContent(); ?></p>
		<br>
	<?php endif; ?>
	<?php if (count($log_items)): ?>
		<h4><?php echo __('Changes'); ?></h4>
		<ul>
			<?php foreach ($log_items as $item): ?>
				<li>
				<?php

					switch ($item->getChangeType())
					{
						case TBGLogTable::LOG_ISSUE_CREATED:
						case TBGLogTable::LOG_COMMENT:
							break;
						case TBGLogTable::LOG_ISSUE_CLOSE:
							echo '<i>' . __('Issue closed') . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_REOPEN:
							echo '<i>' . __('Issue reopened') . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_UPDATE:
							echo '<i>' . $item->getText() . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_BUG_TYPE:
							echo '<i>' . __('Triaged bug type: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_LIKELIHOOD:
							echo '<i>' . __('Triaged likelihood: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_EFFECT:
							echo '<i>' . __('Triaged effect: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PAIN_CALCULATED:
							echo '<i>' . __('Calculated user pain: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_CATEGORY:
							echo '<i>' . __('Category changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_CUSTOMFIELD_CHANGED:
							echo '<i>' . __('Custom field changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_STATUS:
							echo '<i>' . __('Status changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_REPRODUCABILITY:
							echo '<i>' . __('Reproducability changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PRIORITY:
							echo '<i>' . __('Priority changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_SEVERITY:
							echo '<i>' . __('Severity changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_RESOLUTION:
							echo '<i>' . __('Resolution changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_PERCENT:
							echo '<i>' . __('Percent completed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_MILESTONE:
							echo '<i>' . __('Target milestone changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_ISSUETYPE:
							echo '<i>' . __('Issue type changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_TIME_ESTIMATED:
							echo '<i>' . __('Estimation changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_TIME_SPENT:
							echo '<i>' . __('Time spent: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_ASSIGNED:
							echo '<i>' . __('Assignee changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_OWNED:
							echo '<i>' . __('Owner changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						case TBGLogTable::LOG_ISSUE_POSTED:
							echo '<i>' . __('Posted by changed: %text', array('%text' => $item->getText())) . '</i>';
							break;
						default:
							if (!$item->getText())
							{
								echo '<i>' .__('Issue updated') . '</i>';
							}
							else
							{
								echo '<i>' .$item->getText() . '</i>';
							}
							break;
					}

				?>
				</li>
			<?php endforeach; ?>
		</ul>
	<?php endif; ?>
	<br>
	<div style="color: #888;">
		<?php echo __('Show issue:') . ' ' . link_tag($module->generateURL('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()))); ?><br>
		<?php if (isset($comment) && $comment instanceof TBGComment){echo __('Show comment:') . ' ' . link_tag($module->generateURL('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo())).'#comment_'.$comment->getID()) . "<br>";} ?>
		<?php echo __('Show %project project dashboard:', array('%project' => $issue->getProject()->getName())) . ' ' . link_tag($module->generateURL('project_dashboard', array('project_key' => $issue->getProject()->getKey()))); ?><br>
		<br>
{'fraction_non_alphanumeric': 0.23293468261269548, 'fraction_numerical': 0.002391904323827047, 'mean_word_length': 3.2849822625147813, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 333, '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': '4818074', 'n_tokens_mistral': 4777, 'n_tokens_neox': 3718, 'n_words': 755}