<commit_before><?php

namespace Behat\SahiClient;

use Buzz;

use Behat\SahiClient\Exception;

/*
 * This file is part of the Behat\SahiClient.
 * (c) 2010 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Sahi Connection Driver.
 *
 * @author <NAME> <<EMAIL>>
 */
class Connection
{
    /**
     * Sahi SID
     *
     * @var     integer
     */
    private     $sid;
    /**
     * Is custom SID provided to connection
     *
     * @var     Boolean
     */
    private     $customSidProvided = false;
    /**
     * Sahi proxy hostname
     *
     * @var     string
     */
    private     $host;
    /**
     * Sahi proxy port number
     *
     * @var     integer
     */
    private     $port;
    /**
     * Time limit to connection.
     *
     * @var     integer
     */
    private     $limit;

    /**
     * HTTP Browser instance.
     *
     * @var     BrowserInterface
     */
    protected   $browser;

    /**
     * Initialize Sahi Driver.
     *
     * @param   string      $sid        Sahi SID
     * @param   string      $host       Sahi proxy host
     * @param   integer     $port       Sahi proxy port
     * @param   BuzzBrowser $browser    HTTP browser instance
     */
    public function __construct($sid = null, $host = 'localhost', $port = 9999, Buzz\Browser $browser = null)
    {
        $this->limit = 600;
<commit_msg>added parameter to the connection constructor to pass a custom time limit<commit_after><?php

namespace Behat\SahiClient;

use Buzz;

use Behat\SahiClient\Exception;

/*
 * This file is part of the Behat\SahiClient.
 * (c) 2010 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Sahi Connection Driver.
 *
 * @author <NAME> <<EMAIL>>
 */
class Connection
{
    /**
     * Sahi SID
     *
     * @var     integer
     */
    private     $sid;
    /**
     * Is custom SID provided to connection
     *
     * @var     Boolean
     */
    private     $customSidProvided = false;
    /**
     * Sahi proxy hostname
     *
     * @var     string
     */
    private     $host;
    /**
     * Sahi proxy port number
     *
     * @var     integer
     */
    private     $port;
    /**
     * Time limit to connection.
     *
     * @var     integer
     */
    private     $limit;

    /**
     * HTTP Browser instance.
     *
     * @var     BrowserInterface
     */
    protected   $browser;

    /**
     * Initialize Sahi Driver.
     *
     * @param   string      $sid        Sahi SID
     * @param   string      $host       Sahi proxy host
     * @param   integer     $port       Sahi proxy port
     * @param   BuzzBrowser $browser    HTTP browser instance
     * @param   integer     $limit      Time limit to connection
     */
    public function __construct($sid = null, $host = 'localhost', $port = 9999, Buzz\Browser $browser = null, $limit = 600)
    {
        $this->limit = $limit;

{'fraction_non_alphanumeric': 0.10679294578706727, 'fraction_numerical': 0.007184846505551927, 'mean_word_length': 1.6939313984168864, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1063120', 'n_tokens_mistral': 967, 'n_tokens_neox': 914, 'n_words': 282}