<commit_before><?php

namespace Becklyn\RouteTreeBundle\Builder;

use Becklyn\RouteTreeBundle\Exception\InvalidRouteTreeException;
use Becklyn\RouteTreeBundle\Tree\Node;
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\PropertyAccess\PropertyAccessor;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;


/**
 * Builds a tree from a list of routes
 */
class TreeBuilder
{
    const PARENT_CONFIGURATION_OPTION = "parent";
    const ROUTE_OPTIONS_KEY = "page_tree";

    /**
     * All configuration options.
     *
     * Mapping of routing configuration to the properties of the Node
     * ["config-option" => "propertyPath"]
     *
     * @var string[]
     */
    private static $configurationOptions = [
        "title" => "title",
        "hidden" => "hidden",
        "separator" => "separator",<commit_msg>rename the option key to fit updated naming<commit_after><?php

namespace Becklyn\RouteTreeBundle\Builder;

use Becklyn\RouteTreeBundle\Exception\InvalidRouteTreeException;
use Becklyn\RouteTreeBundle\Tree\Node;
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\PropertyAccess\PropertyAccessor;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;


/**
 * Builds a tree from a list of routes
 */
class TreeBuilder
{
    const PARENT_CONFIGURATION_OPTION = "parent";
    const ROUTE_OPTIONS_KEY = "tree";

    /**
     * All configuration options.
     *
     * Mapping of routing configuration to the properties of the Node
     * ["config-option" => "propertyPath"]
     *
     * @var string[]
     */
    private static $configurationOptions = [
        "title" => "title",
        "hidden" => "hidden",
        "separator" => "separator",
{'fraction_non_alphanumeric': 0.10728402032749859, 'fraction_numerical': 0.0, 'mean_word_length': 3.7127659574468086, 'pattern_counts': {'":': 0, '<': 5, '<?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': '624701', 'n_tokens_mistral': 505, 'n_tokens_neox': 500, 'n_words': 120}