<commit_before><?php

namespace Vela\Core;

use \Sabre\HTTP\Request;

/**
 * Class User handles user data
 */
Class User
{
    /** @var object $request **/
    private $request;
    
    public function __construct(Request $request)
    {
        $this->request = $request;
    }
    
    /**
     * Retrieve the user agent string
     * @return string The user agent string
     */
    public function getUserAgent()
    {
        return $this->request->getRawServerValue('HTTP_USER_AGENT');
    }

    /**
     * Gets the user ip address
     * @return string The user ip address<commit_msg>Fix comment<commit_after><?php

namespace Vela\Core;

use \Sabre\HTTP\Request;

/**
 * Class User handles user data
 */
Class User
{
    /** @var object $request **/
    private $request;
    
    public function __construct(Request $request)
    {
        $this->request = $request;
    }
    
    /**
     * Retrieve the user agent string
     * @return string|null The user agent string
     */
    public function getUserAgent()
    {
        return $this->request->getRawServerValue('HTTP_USER_AGENT');
    }

    /**
     * Gets the user ip address
     * @return string The user ip address
{'fraction_non_alphanumeric': 0.1135407905803196, 'fraction_numerical': 0.0, 'mean_word_length': 2.3240223463687153, 'pattern_counts': {'":': 0, '<': 5, '<?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': '719793', 'n_tokens_mistral': 352, 'n_tokens_neox': 351, 'n_words': 100}