<commit_before><?php
/*
 * This file is part of Graze DAL
 *
 * Copyright (c) 2014 Nature Delivered Ltd. <http://graze.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @see  http://github.com/graze/dal/blob/master/LICENSE
 */
namespace Graze\Dal;

use Closure;
use Exception;
use Graze\Dal\Adapter\AdapterInterface;
use Graze\Dal\Exception\UndefinedAdapterException;
use Graze\Dal\Exception\UndefinedRepositoryException;

class DalManager implements DalManagerInterface
{
    protected $adapters;

    /**
     * @param AdapterInterface[] $adapters
     */
    public function __construct(array $adapters = [])
    {
        foreach ($adapters as $name => $adapter) {
            $this->set($name, $adapter);
        }
    }
<commit_msg>DalManage no longer depends on \Closure<commit_after><?php
/*
 * This file is part of Graze DAL
 *
 * Copyright (c) 2014 Nature Delivered Ltd. <http://graze.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @see  http://github.com/graze/dal/blob/master/LICENSE
 */
namespace Graze\Dal;

use Exception;
use Graze\Dal\Adapter\AdapterInterface;
use Graze\Dal\Exception\UndefinedAdapterException;
use Graze\Dal\Exception\UndefinedRepositoryException;

class DalManager implements DalManagerInterface
{
    protected $adapters;

    /**
     * @param AdapterInterface[] $adapters
     */
    public function __construct(array $adapters = [])
    {
        foreach ($adapters as $name => $adapter) {
            $this->set($name, $adapter);
        }
    }

{'fraction_non_alphanumeric': 0.11131059245960502, 'fraction_numerical': 0.0047875523638539795, 'mean_word_length': 3.388451443569554, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6568393', 'n_tokens_mistral': 514, 'n_tokens_neox': 493, 'n_words': 139}