<commit_before><?php
/**
 *
 */

namespace Mvc5\Http\Config;

use Mvc5\Arg;
use Mvc5\Config\ReadOnly;

trait Uri
{
    /**
     *
     */
    use ReadOnly;

    /**
     * @param array|string $config
     */
    function __construct($config = [])
    {
        $this->config = is_string($config) ? parse_url($config) : $config;
    }

    /**
     * @return string
     */<commit_msg>allow string object<commit_after><?php
/**
 *
 */

namespace Mvc5\Http\Config;

use Mvc5\Arg;
use Mvc5\Config\ReadOnly;

trait Uri
{
    /**
     *
     */
    use ReadOnly;

    /**
     * @param array|string|mixed $config
     */
    function __construct($config = [])
    {
        $this->config = is_array($config) ? $config : parse_url((string) $config);
    }

    /**
     * @return string
     */
{'fraction_non_alphanumeric': 0.16878172588832488, 'fraction_numerical': 0.007614213197969543, 'mean_word_length': 2.0346153846153845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7522478', 'n_tokens_mistral': 282, 'n_tokens_neox': 280, 'n_words': 47}