<commit_before><?php

namespace sendwithus;

require 'Error.php';

/**
 * Send With Us PHP Client
 * @author <EMAIL>
 */

class API {
    const HTTP_POST = 'POST';
    const HTTP_GET = 'GET';
    const HTTP_PUT = 'PUT';
    const HTTP_DELETE = 'DELETE';

    protected $API_KEY = 'THIS_IS_A_TEST_API_KEY';
    protected $API_HOST = 'api.sendwithus.com';
    protected $API_PORT = '443';
    protected $API_PROTO = 'https';
    protected $API_VERSION = '1';
    protected $API_HEADER_KEY = 'X-SWU-API-KEY';
    protected $API_HEADER_CLIENT = 'X-SWU-API-CLIENT';
    protected $API_CLIENT_VERSION = "3.0.0";
    protected $API_CLIENT_STUB = "php-%s";

    protected $DEBUG = false;

    public function __construct($api_key, $options = array()) {
        $this->API_KEY = $api_key;
        $this->API_CLIENT_STUB = sprintf($this->API_CLIENT_STUB,
            $this->API_CLIENT_VERSION);

        foreach ($options as $key => $value) {
            $this->$key = $value;
        }
    }

    /**
     * Send an email
     *
     * The additional optional parameters are as follows:
     *     'email_data' - Default is null. Array of variables to merge into the template.
     *     'sender' - Default is null. Array ("address", "name", "reply_to") of sender.
     *     'cc' - Default is null. Array of ("address", "name") for carbon copy.
     *     'bcc' - Default is null. Array of ("address", "name") for blind carbon copy.
     *     'inline' - Default is null. String, path to file to include inline.
     *     'tags' - Default is null. Array of strings to tag email send with.
     *     'version_name' - Default is blank. String, name of version to send
     *<commit_msg>Bump version<commit_after><?php

namespace sendwithus;

require 'Error.php';

/**
 * Send With Us PHP Client
 * @author <EMAIL>
 */

class API {
    const HTTP_POST = 'POST';
    const HTTP_GET = 'GET';
    const HTTP_PUT = 'PUT';
    const HTTP_DELETE = 'DELETE';

    protected $API_KEY = 'THIS_IS_A_TEST_API_KEY';
    protected $API_HOST = 'api.sendwithus.com';
    protected $API_PORT = '443';
    protected $API_PROTO = 'https';
    protected $API_VERSION = '1';
    protected $API_HEADER_KEY = '<KEY>KEY';
    protected $API_HEADER_CLIENT = 'X-SWU-API-CLIENT';
    protected $API_CLIENT_VERSION = "4.0.0";
    protected $API_CLIENT_STUB = "php-%s";

    protected $DEBUG = false;

    public function __construct($api_key, $options = array()) {
        $this->API_KEY = $api_key;
        $this->API_CLIENT_STUB = sprintf($this->API_CLIENT_STUB,
            $this->API_CLIENT_VERSION);

        foreach ($options as $key => $value) {
            $this->$key = $value;
        }
    }

    /**
     * Send an email
     *
     * The additional optional parameters are as follows:
     *     'email_data' - Default is null. Array of variables to merge into the template.
     *     'sender' - Default is null. Array ("address", "name", "reply_to") of sender.
     *     'cc' - Default is null. Array of ("address", "name") for carbon copy.
     *     'bcc' - Default is null. Array of ("address", "name") for blind carbon copy.
     *     'inline' - Default is null. String, path to file to include inline.
     *     'tags' - Default is null. Array of strings to tag email send with.
     *     'version_name' - Default is blank. String, name of version to send
     *
{'fraction_non_alphanumeric': 0.12985074626865672, 'fraction_numerical': 0.00417910447761194, 'mean_word_length': 2.5993555316863586, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 18, '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': '5745571', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1067, 'n_words': 323}