<commit_before><?php

/**
 * League.Uri (http://uri.thephpleague.com/components).
 *
 * @package    League\Uri
 * @subpackage League\Uri\Components
 * @author     <NAME> <<EMAIL>>
 * @license    https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License)
 * @version    2.0.0
 * @link       https://github.com/thephpleague/uri-schemes
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace League\Uri\Component;

use League\Uri\ComponentInterface;
use League\Uri\Exception\MalformedUriComponent;
use TypeError;
use function gettype;
use function is_scalar;
use function method_exists;
use function preg_match;
use function preg_replace_callback;
use function rawurldecode;
use function rawurlencode;
use function sprintf;
use function strtoupper;
use const PHP_QUERY_RFC3986;

abstract class Component implements ComponentInterface
{
    /**
     * @internal
     */
    const REGEXP_INVALID_URI_CHARS = '/[\x00-\x1f\x7f]/';

    /**
     * @internal
     */
    const RFC3986_ENCODING = PHP_QUERY_RFC3986;

    /**
     * @internal
     */
    const NO_ENCODING = 0;

    /**
     * @internal
     */
    const ENCODING_LIST = [
        self::RFC3986_ENCODING => 1,
        self::NO_ENCODING => 1,
    ];

    /**
     * @internal
     */
    const REGEXP_ENCODED_CHARS = ',%[A-Fa-f0-9]{2},';

    /**
     * @internal
     */<commit_msg>remove useless constant<commit_after><?php

/**
 * League.Uri (http://uri.thephpleague.com/components).
 *
 * @package    League\Uri
 * @subpackage League\Uri\Components
 * @author     <NAME> <<EMAIL>>
 * @license    https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License)
 * @version    2.0.0
 * @link       https://github.com/thephpleague/uri-schemes
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace League\Uri\Component;

use League\Uri\ComponentInterface;
use League\Uri\Exception\MalformedUriComponent;
use TypeError;
use function gettype;
use function is_scalar;
use function method_exists;
use function preg_match;
use function preg_replace_callback;
use function rawurldecode;
use function rawurlencode;
use function sprintf;
use function strtoupper;
use const PHP_QUERY_RFC3986;

abstract class Component implements ComponentInterface
{
    /**
     * @internal
     */
    const RFC3986_ENCODING = PHP_QUERY_RFC3986;

    /**
     * @internal
     */
    const NO_ENCODING = 0;

    /**
     * @internal
     */
    const REGEXP_INVALID_URI_CHARS = '/[\x00-\x1f\x7f]/';

    /**
     * @internal
     */
    const REGEXP_ENCODED_CHARS = ',%[A-Fa-f0-9]{2},';

    /**
     * @internal
     */
{'fraction_non_alphanumeric': 0.12075070821529744, 'fraction_numerical': 0.019121813031161474, 'mean_word_length': 3.1361639824304537, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '7432060', 'n_tokens_mistral': 952, 'n_tokens_neox': 907, 'n_words': 205}