<commit_before><?php

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

namespace Webcreate\Conveyor\Transporter\Ftp;

use phpseclib\Net\SFTP as PhpseclibSFTP;

class Sftp
{
    /**
     * @var PhpseclibSFTP
     */
    protected $sftp;

    /**
     * Possible Phpseclib error
     *
     * @var null|string
     */
    protected $error = null;

    public function connect($host, $port = 22)
    {
        $oldErrorHandler = set_error_handler(array(&$this, 'errorHandler'), E_USER_NOTICE);

        $this->error = null;
        $this->sftp = new PhpseclibSFTP($host, $port, PHP_INT_MAX);

        // restore the old handler when needed
        if ($oldErrorHandler) {
            set_error_handler($oldErrorHandler, E_USER_NOTICE);
        }
<commit_msg>php max ini not working<commit_after><?php

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

namespace Webcreate\Conveyor\Transporter\Ftp;

use phpseclib\Net\SFTP as PhpseclibSFTP;

class Sftp
{
    /**
     * @var PhpseclibSFTP
     */
    protected $sftp;

    /**
     * Possible Phpseclib error
     *
     * @var null|string
     */
    protected $error = null;

    public function connect($host, $port = 22)
    {
        $oldErrorHandler = set_error_handler(array(&$this, 'errorHandler'), E_USER_NOTICE);

        $this->error = null;
        $this->sftp = new PhpseclibSFTP($host, $port, 900);

        // restore the old handler when needed
        if ($oldErrorHandler) {
            set_error_handler($oldErrorHandler, E_USER_NOTICE);
        }

{'fraction_non_alphanumeric': 0.11328976034858387, 'fraction_numerical': 0.003812636165577342, 'mean_word_length': 2.6520874751491053, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '5443453', 'n_tokens_mistral': 607, 'n_tokens_neox': 600, 'n_words': 158}