<commit_before><?php
/**
 * Created by PhpStorm.
 * User: Andreas
 * Date: 29/03/17
 * Time: 18:01
 */

namespace Schoenef\HtmlToPdfBundle\Service;


use GuzzleHttp\Client;
use Schoenef\HtmlToPdfBundle\DependencyInjection\Configuration;
use Symfony\Component\Filesystem\Filesystem;

class Html2PdfConnector {

    const providerBaseURIs = [
        Configuration::PROVIDER_PDF_ROCKET => 'http://api.html2pdfrocket.com'
    ];

    const providerConfigurationMapping = [
        Configuration::PROVIDER_PDF_ROCKET => [
            Configuration::OPTION_PAGE_SIZE => 'PageSize',
            Configuration::OPTION_SHRINKING => 'DisableShrinking',
            Configuration::OPTION_DPI => 'Dpi',
            Configuration::OPTION_IMAGE_QUALITY => 'ImageQuality',
            Configuration::OPTION_ZOOM => 'Zoom',
            Configuration::OPTION_JS_DELAY => 'JavascriptDelay'
        ]
    ];

    private $config;

    private $client;

<commit_msg>Switched the http endpoint to https<commit_after><?php
/**
 * Created by PhpStorm.
 * User: Andreas
 * Date: 29/03/17
 * Time: 18:01
 */

namespace Schoenef\HtmlToPdfBundle\Service;


use GuzzleHttp\Client;
use Schoenef\HtmlToPdfBundle\DependencyInjection\Configuration;
use Symfony\Component\Filesystem\Filesystem;

class Html2PdfConnector {

    const providerBaseURIs = [
        Configuration::PROVIDER_PDF_ROCKET => 'https://api.html2pdfrocket.com'
    ];

    const providerConfigurationMapping = [
        Configuration::PROVIDER_PDF_ROCKET => [
            Configuration::OPTION_PAGE_SIZE => 'PageSize',
            Configuration::OPTION_SHRINKING => 'DisableShrinking',
            Configuration::OPTION_DPI => 'Dpi',
            Configuration::OPTION_IMAGE_QUALITY => 'ImageQuality',
            Configuration::OPTION_ZOOM => 'Zoom',
            Configuration::OPTION_JS_DELAY => 'JavascriptDelay'
        ]
    ];

    private $config;

    private $client;


{'fraction_non_alphanumeric': 0.10954616588419405, 'fraction_numerical': 0.012519561815336464, 'mean_word_length': 3.339366515837104, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 1, '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': '3840189', 'n_tokens_mistral': 593, 'n_tokens_neox': 579, 'n_words': 91}