<commit_before><?php namespace Phroute;

class RouteDataArray implements RouteDataProviderInterface {


    /**
     * @var array
     */
    private $variableRoutes;

    /**
     * @var array
     */
    private $staticRoutes;

    /**
     * @param array $staticRoutes
     * @param array $variableRoutes
     */
    public function __construct(array $staticRoutes, array $variableRoutes)
    {
        $this->staticRoutes = $staticRoutes;

        $this->variableRoutes = $variableRoutes;
    }

    public function getData()
    {
        return [$this->staticRoutes, $this->variableRoutes];
    }
}<commit_msg>add array data provider<commit_after><?php namespace Phroute;

class RouteDataArray implements RouteDataProviderInterface {


    /**
     * @var array
     */
    private $variableRoutes;

    /**
     * @var array
     */
    private $staticRoutes;

    /**
     * @param array $staticRoutes
     * @param array $variableRoutes
     */
    public function __construct(array $staticRoutes, array $variableRoutes)
    {
        $this->staticRoutes = $staticRoutes;

        $this->variableRoutes = $variableRoutes;
    }

    /**
     * @return array
     */
    public function getData()
    {
        return [$this->staticRoutes, $this->variableRoutes];
    }

    /**
     * @param RouteCollector $collector
     * @return static
     */
    public static function fromRouteCollector(RouteCollector $collector)
    {
        list($staticRoute, $variableRoutes) = $collector->getData();

        return new static($staticRoute, $variableRoutes);
    }
}
{'fraction_non_alphanumeric': 0.11457670273711013, 'fraction_numerical': 0.0, 'mean_word_length': 2.5011135857461024, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '643118', 'n_tokens_mistral': 463, 'n_tokens_neox': 448, 'n_words': 96}