<commit_before><?php
namespace Phragile;


class StatusByStatusFieldDispatcher implements StatusDispatcher {
	private function isTaskInReview(array $task)
	{
		return !$task['isClosed'] && in_array($_ENV['REVIEW_TAG_PHID'], $task['projectPHIDs']);
	}

	private function isTaskBeingDone(array $task)
	{
		return !$task['isClosed'] && !is_null($task['ownerPHID']);
	}

	public function getStatus(array $task)
	{
		if ($this->isTaskInReview($task)) return 'patch to review';
		elseif ($this->isTaskBeingDone($task)) return 'doing';
		else return $task['status'];
	}
}
<commit_msg>Remove newline.<commit_after><?php
namespace Phragile;

class StatusByStatusFieldDispatcher implements StatusDispatcher {
	private function isTaskInReview(array $task)
	{
		return !$task['isClosed'] && in_array($_ENV['REVIEW_TAG_PHID'], $task['projectPHIDs']);
	}

	private function isTaskBeingDone(array $task)
	{
		return !$task['isClosed'] && !is_null($task['ownerPHID']);
	}

	public function getStatus(array $task)
	{
		if ($this->isTaskInReview($task)) return 'patch to review';
		elseif ($this->isTaskBeingDone($task)) return 'doing';
		else return $task['status'];
	}
}

{'fraction_non_alphanumeric': 0.15670995670995672, 'fraction_numerical': 0.0, 'mean_word_length': 6.706666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7651028', 'n_tokens_mistral': 400, 'n_tokens_neox': 374, 'n_words': 79}