<commit_before><?php

namespace wcf\util;

/**
 * Represents the user agent.
 *
 * @author  <NAME>
 * @copyright   2001-2020 WoltLab GmbH
 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 * @package WoltLabSuite\Core\Util
 * @since       5.4
 */
final class UserAgent
{
    private string $userAgent;

    private readonly ?string $browser;
<commit_msg>Add missing `readonly` in `wcf\util\UserAgent`<commit_after><?php

namespace wcf\util;

/**
 * Represents the user agent.
 *
 * @author  <NAME>, <NAME>
 * @copyright   2001-2022 WoltLab GmbH
 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 * @package WoltLabSuite\Core\Util
 * @since       5.4
 */
final class UserAgent
{
    private readonly string $userAgent;

    private readonly ?string $browser;

{'fraction_non_alphanumeric': 0.12117647058823529, 'fraction_numerical': 0.023529411764705882, 'mean_word_length': 3.650273224043716, 'pattern_counts': {'":': 0, '<': 10, '<?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': '3429615', 'n_tokens_mistral': 288, 'n_tokens_neox': 267, 'n_words': 74}