<commit_before><?php
/**
 * Обработка шаблонов статических роутов
 * @file    RouteStatic.php
 *
 * PHP version 5.4+
 *
 * @author  <NAME> <alex at itvault dot info>
 * @date    Сбт Июн 23 10:42:18 2012
 * @copyright The BSD 3-Clause License
 */

namespace Veles\Routing;

/**
 * Класс RouteStatic
 * @author  <NAME> <alex at itvault dot info>
 */
class RouteStatic implements iRouteStrategy
{
	/**
	 * Проверка на соответствие роута шаблону
	 * @param string $pattern
	 * @param string $url
	 * @return bool
	 */
	public static function check($pattern, $url)
	{
		return $pattern === $url
			|| $pattern . 'index.php'  === $url
			|| $pattern . '/index.php' === $url;
	}
}
<commit_msg>Small comments translate<commit_after><?php
/**
 * Handler for processing static routes
 * @file    RouteStatic.php
 *
 * PHP version 5.4+
 *
 * @author  <NAME> <alex at itvault dot info>
 * @date    Сбт Июн 23 10:42:18 2012
 * @copyright The BSD 3-Clause License
 */

namespace Veles\Routing;

/**
 * Class RouteStatic
 * @author  <NAME> <alex at itvault dot info>
 */
class RouteStatic implements iRouteStrategy
{
	/**
	 * Check for matching url to pattern
	 *
	 * @param string $pattern
	 * @param string $url
	 * @return bool
	 */
	public static function check($pattern, $url)
	{
		return $pattern === $url
			|| $pattern . 'index.php'  === $url
			|| $pattern . '/index.php' === $url;
	}
}

{'fraction_non_alphanumeric': 0.14265025343953658, 'fraction_numerical': 0.02172338884866039, 'mean_word_length': 3.187878787878788, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '1322324', 'n_tokens_mistral': 521, 'n_tokens_neox': 483, 'n_words': 144}