<commit_before><?php

class DebianVersionProvider implements Iterator
{
	protected $file;
	protected $value;
	protected $index = 0;
	protected $line_no = 0;

	private function split_debian_version(string $deb_version): array
	{
		$split = explode("-", $deb_version);
		if (count($split) == 1)
			return [$deb_version, ""];

		$release = array_pop($split);
		$version = implode("-", $split);
		return [$version, $release];
	}

	private function parse_operator(string $op): int
	{
		switch ($op) {
			case "LESS":
				return -1;
			case "EQUAL":
				return 0;
			case "GREATER":
				return -1;
			default:
				throw new Exception(sprintf("Invalid operator at line %d", $this->line_no));
		}<commit_msg>Use the right operator value<commit_after><?php

class DebianVersionProvider implements Iterator
{
	protected $file;
	protected $value;
	protected $index = 0;
	protected $line_no = 0;

	private function split_debian_version(string $deb_version): array
	{
		$split = explode("-", $deb_version);
		if (count($split) == 1)
			return [$deb_version, ""];

		$release = array_pop($split);
		$version = implode("-", $split);
		return [$version, $release];
	}

	private function parse_operator(string $op): int
	{
		switch ($op) {
			case "LESS":
				return -1;
			case "EQUAL":
				return 0;
			case "GREATER":
				return 1;
			default:
				throw new Exception(sprintf("Invalid operator at line %d", $this->line_no));
		}
{'fraction_non_alphanumeric': 0.1478076379066478, 'fraction_numerical': 0.008486562942008486, 'mean_word_length': 4.0177304964539005, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 5, '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': '5813531', 'n_tokens_mistral': 551, 'n_tokens_neox': 466, 'n_words': 132}