<commit_before><?php

namespace Rakit\Curl;

class Curl {

    /**
     * @param curl $curl for curl_init()
     */
    protected $curl;

    /**
     * @param string $url for url target
     */
    protected $url;

    /**
     * @param array $params for store query params or post fields
     */
    protected $params = array();

    /**
     * @param array $cookies for store cookie data
     */
    protected $cookies = array();

    /**
     * @param array $options for store curl options
     */
    protected $options = array();

    /**
     * @param array $files for store file post fields
     */
    protected $files = array();

    /**
     * @param array $headers for store header settings
     */
    protected $headers = array();

    /**
     * @param bool $closed
     */
    protected $closed = FALSE;

    /**
     * @param mixed $error_message
     */
    protected $error_message = null;

    /**
     * @param mixed $errno
     */
    protected $errno = null;

    /**
     * @param Response $response for store response object after curl_exec()
     */
    public $response = null;

    public function __construct($url, array $params = array())
    {
        // check curl extension
        if ( ! extension_loaded('curl')) {
            throw new \ErrorException('cURL library need PHP cURL extension');
        }

        $this->curl = curl_init();
        $this->url = $url;<commit_msg>fixing typo<commit_after><?php

namespace Rakit\Curl;

class Curl {

    /**
     * @var curl session $curl
     */
    protected $curl;

    /**
     * @var string $url for url target
     */
    protected $url;

    /**
     * @var array $params for store query params or post fields
     */
    protected $params = array();

    /**
     * @var array $cookies for store cookie data
     */
    protected $cookies = array();

    /**
     * @var array $options for store curl options
     */
    protected $options = array();

    /**
     * @var array $files for store file post fields
     */
    protected $files = array();

    /**
     * @var array $headers for store header settings
     */
    protected $headers = array();

    /**
     * @var bool $closed
     */
    protected $closed = FALSE;

    /**
     * @var mixed $error_message
     */
    protected $error_message = null;

    /**
     * @var mixed $errno
     */
    protected $errno = null;

    /**
     * @var Response $response for store response object after curl_exec()
     */
    public $response = null;

    public function __construct($url, array $params = array())
    {
        // check curl extension
        if ( ! extension_loaded('curl')) {
            throw new \ErrorException('cURL library need PHP cURL extension');
        }

        $this->curl = curl_init();
        $this->url = $url;
{'fraction_non_alphanumeric': 0.12813171080887617, 'fraction_numerical': 0.0, 'mean_word_length': 1.9144942648592285, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2937616', 'n_tokens_mistral': 808, 'n_tokens_neox': 774, 'n_words': 253}