<commit_before><?php
namespace BrowserDetectorTest\Helper;

use BrowserDetector\Helper\Windows;

/**
 * Test class for KreditCore_Class_BrowserDetector.
 * Generated by PHPUnit on 2010-09-05 at 22:13:26.
 */
class WindowsTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @dataProvider providerIsWindowsPositive
     * @param string $agent
     */
    public function testIsWindowsPositive($agent)
    
        $object = new Windows($agent);

        self::assertTrue($object->isWindows());
    }

    public function providerIsWindowsPositive()
    {
        return array(
            array('Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)'),
            array('Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0'),
            array('Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)'),
            array('Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4'),<commit_msg>fix test<commit_after><?php
namespace BrowserDetectorTest\Helper;

use BrowserDetector\Helper\Windows;

/**
 * Test class for KreditCore_Class_BrowserDetector.
 * Generated by PHPUnit on 2010-09-05 at 22:13:26.
 */
class WindowsTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @dataProvider providerIsWindowsPositive
     * @param string $agent
     */
    public function testIsWindowsPositive($agent)
    {
        $object = new Windows($agent);

        self::assertTrue($object->isWindows());
    }

    public function providerIsWindowsPositive()
    {
        return array(
            array('Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)'),
            array('Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0'),
            array('Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)'),
            array('Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4'),
{'fraction_non_alphanumeric': 0.13316831683168318, 'fraction_numerical': 0.07524752475247524, 'mean_word_length': 3.042, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7433879', 'n_tokens_mistral': 769, 'n_tokens_neox': 674, 'n_words': 152}