<commit_before><?php

namespace Embed\RequestResolvers;

use Embed\Exceptions\EmbedException;

/**
 * Default class to resolve urls using curl.
 */
class Curl implements RequestResolverInterface
{
    protected static $tmpCookies;
    protected $isBinary;
    protected $result;
    protected $content;
    protected $url;
    protected $config = [
        CURLOPT_MAXREDIRS => 20,
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_TIMEOUT => 10,
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_SSL_VERIFYHOST => false,
        CURLOPT_ENCODING => '',
        CURLOPT_AUTOREFERER => true,
        CURLOPT_USERAGENT => 'Embed PHP Library',
        CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
    ];

    public static $binaryContentTypes = [
        '#image/.*#',
        '#application/(pdf|x-download|zip|pdf|msword|vnd\\.ms|postscript|octet-stream|ogg|x-iso9660-image)#',
        '#application/x-zip.*#',
    ];

    /**
     * {@inheritdoc}
     */
    public function __construct($url, array $config)
    {
        $this->url = $url;
        $this->config = $config + $this->config;
    }<commit_msg>removed default CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST config #120<commit_after><?php

namespace Embed\RequestResolvers;

use Embed\Exceptions\EmbedException;

/**
 * Default class to resolve urls using curl.
 */
class Curl implements RequestResolverInterface
{
    protected static $tmpCookies;
    protected $isBinary;
    protected $result;
    protected $content;
    protected $url;
    protected $config = [
        CURLOPT_MAXREDIRS => 20,
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_TIMEOUT => 10,
        CURLOPT_ENCODING => '',
        CURLOPT_AUTOREFERER => true,
        CURLOPT_USERAGENT => 'Embed PHP Library',
        CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
    ];

    public static $binaryContentTypes = [
        '#image/.*#',
        '#application/(pdf|x-download|zip|pdf|msword|vnd\\.ms|postscript|octet-stream|ogg|x-iso9660-image)#',
        '#application/x-zip.*#',
    ];

    /**
     * {@inheritdoc}
     */
    public function __construct($url, array $config)
    {
        $this->url = $url;
        $this->config = $config + $this->config;
    }
{'fraction_non_alphanumeric': 0.12647325475974613, 'fraction_numerical': 0.011332728921124207, 'mean_word_length': 2.8117443868739205, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3283950', 'n_tokens_mistral': 762, 'n_tokens_neox': 717, 'n_words': 132}