<commit_before><?php
declare(strict_types = 1);

namespace Innmind\Crawler\Parser\Html;

use Innmind\Crawler\{
    Parser,
    HttpResource\Attribute\Attribute,
};
use Innmind\Xml\{
    Reader,
    Element,
};
use Innmind\Html\{
    Visitor\Elements,
    Visitor\Head,
    Exception\ElementNotFound,
};
use Innmind\Http\Message\{
    Request,
    Response,
};
use Innmind\Immutable\{
    MapInterface,
    Str,
};

final class IosParser implements Parser
{
    use HtmlTrait;

    const PATTERN = '/app\-argument\="?(?P<uri>.*)"?$/';

    private $read;

    public function __construct(Reader $read)
    {
        $this->read = $read;<commit_msg>do not expose constants<commit_after><?php
declare(strict_types = 1);

namespace Innmind\Crawler\Parser\Html;

use Innmind\Crawler\{
    Parser,
    HttpResource\Attribute\Attribute,
};
use Innmind\Xml\{
    Reader,
    Element,
};
use Innmind\Html\{
    Visitor\Elements,
    Visitor\Head,
    Exception\ElementNotFound,
};
use Innmind\Http\Message\{
    Request,
    Response,
};
use Innmind\Immutable\{
    MapInterface,
    Str,
};

final class IosParser implements Parser
{
    use HtmlTrait;

    private const PATTERN = '/app\-argument\="?(?P<uri>.*)"?$/';

    private $read;

    public function __construct(Reader $read)
    {
        $this->read = $read;
{'fraction_non_alphanumeric': 0.13871951219512196, 'fraction_numerical': 0.001524390243902439, 'mean_word_length': 3.115987460815047, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7222990', 'n_tokens_mistral': 451, 'n_tokens_neox': 441, 'n_words': 91}