<commit_before><?php

namespace Sail;

/**
 *  Sail\UserAgent
 *  --------
 *  Library to get the browser information, including the version, 
 *  the device type, the operating system and more.
 * 
 *  @example 
 *  $useragent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) 
 *  AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17"
 *  $ua = new \Sail\UserAgent( $useragent );
 *  echo $ua->getBrowser();  // Chrome
 *  echo $ua->getVersion();  // 24.0.1312.56
 *  echo $ua->getPlatform(); // Macintosh
 *
 *  @license MIT
 *  @author <NAME> 
 *  @version 1.0
 */

use Sail\Useragent\UserAgentInterface;

class Useragent implements UseragentInterface
{

    /**
     * User Agent
     * @var parser $parser
     */
    protected $parser;
    
    protected $ua;<commit_msg>fix name of UseragentInterface<commit_after><?php

namespace Sail;

/**
 *  Sail\UserAgent
 *  --------
 *  Library to get the browser information, including the version, 
 *  the device type, the operating system and more.
 * 
 *  @example 
 *  $useragent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) 
 *  AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17"
 *  $ua = new \Sail\UserAgent( $useragent );
 *  echo $ua->getBrowser();  // Chrome
 *  echo $ua->getVersion();  // 24.0.1312.56
 *  echo $ua->getPlatform(); // Macintosh
 *
 *  @license MIT
 *  @author <NAME> 
 *  @version 1.0
 */

use Sail\Useragent\UseragentInterface;

class Useragent implements UseragentInterface
{

    /**
     * User Agent
     * @var parser $parser
     */
    protected $parser;
    
    protected $ua;
{'fraction_non_alphanumeric': 0.14755114693118412, 'fraction_numerical': 0.044637321760694355, 'mean_word_length': 2.71889400921659, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5288034', 'n_tokens_mistral': 610, 'n_tokens_neox': 558, 'n_words': 142}