<commit_before><?php
namespace Cake\Routing;

use Cake\Routing\Route\Route;
use Cake\Network\Request;

class RouteCollection implements \Countable {

/**
 * A hash table of routes indexed by route names.
 * Used for reverse routing.<commit_msg>Add some docs for RouteCollection.<commit_after><?php
/**
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.Routing
 * @since         CakePHP(tm) v 3.0.0
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
namespace Cake\Routing;

use Cake\Routing\Route\Route;
use Cake\Network\Request;

/**
 * RouteCollection is used to operate on a set of routes.
 * It stores routes both in a linear list in order of connection, as well
 * as storing them in a hash-table indexed by a routes' name.
 *
 * @package Cake.Routing
 */
class RouteCollection implements \Countable {

/**
 * A hash table of routes indexed by route names.
 * Used for reverse routing.
{'fraction_non_alphanumeric': 0.10450038138825324, 'fraction_numerical': 0.014492753623188406, 'mean_word_length': 3.636042402826855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4211424', 'n_tokens_mistral': 399, 'n_tokens_neox': 366, 'n_words': 136}