<commit_before><?php
namespace Makasim\Yadm;

class Registry
{
    /**
     * @var array|Storage[]
     */
    private $storages;

    /**
     * @var array|Repository[]
     */
    private $repositories;

    /**
     * @param Storage[]|array $storages
     * @param Repository[]|array $repositories
     */
    public function __construct(array $storages, array $repositories)
    {
        $this->storages = $storages;
        $this->repositories = $repositories;
    }<commit_msg>add a method to get all storages.<commit_after><?php
namespace Makasim\Yadm;

class Registry
{
    /**
     * @var array|Storage[]
     */
    private $storages;

    /**
     * @var array|Repository[]
     */
    private $repositories;

    /**
     * @param Storage[]|array $storages
     * @param Repository[]|array $repositories
     */
    public function __construct(array $storages, array $repositories)
    {
        $this->storages = $storages;
        $this->repositories = $repositories;
    }

    /**
     * @return Storage[]|array
     */
    public function getStorages()
    {
        return $this->storages;
    }
{'fraction_non_alphanumeric': 0.13913824057450627, 'fraction_numerical': 0.0, 'mean_word_length': 2.338323353293413, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '2708535', 'n_tokens_mistral': 369, 'n_tokens_neox': 350, 'n_words': 71}