<commit_before><?php
	declare(strict_types=1);
	namespace Edde\Filter;

	class DateTimeFilter extends AbstractFilter {
		/**
		 * @inheritdoc
		 */
		public function filter($value, array $options = []) {
			return $value ? new \DateTime($value) : null;
		}
	}
<commit_msg>Filter: Preparing for a filter upgrade<commit_after><?php
	declare(strict_types=1);
	namespace Edde\Filter;

	use DateTime;

	class DateTimeFilter extends AbstractFilter {
		/** @inheritdoc */
		public function filter($value, array $options = []) {
			if ($value instanceof DateTime) {
				return $value;
			} else if ($value) {
				return new DateTime($value);
			}
			return null;
		}
	}

{'fraction_non_alphanumeric': 0.1299093655589124, 'fraction_numerical': 0.0030211480362537764, 'mean_word_length': 3.8043478260869565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6868695', 'n_tokens_mistral': 233, 'n_tokens_neox': 202, 'n_words': 54}