<commit_before><?php

/**
 * Raven Tools API PHP Class
 *
 * @link https://github.com/stephenyeargin/raventools-api-php
 * @package default
 */
class RavenTools {

  const api_version = '1.0';
  const end_point = 'http://api.raventools.com/api';

  private $api_key;

  public $method;
  public $domain;
  public $start_date;
  public $end_date;
  public $engine;
  public $keyword;
  public $format;
  public $request;
  public $response;
  public $required_fields;
  public $optional_fields;
  public $errors;

  function __construct($api_key = null) {
    $this->api_key = $api_key;
      if (empty($api_key)) { die('You must provide an API key for the desired Raven Tools profile.'); }
    $this->format = 'json';
    $this->required_fields = array();
    $this->optional_fields = array();
    $this->errors = array();
  }


  public function __set($name, $value) {
    $this->$name = $value;<commit_msg>Require https://<commit_after><?php

/**
 * Raven Tools API PHP Class
 *
 * @link https://github.com/stephenyeargin/raventools-api-php
 * @package default
 */
class RavenTools {

  const api_version = '1.0';
  const end_point = 'https://api.raventools.com/api';

  private $api_key;

  public $method;
  public $domain;
  public $start_date;
  public $end_date;
  public $engine;
  public $keyword;
  public $format;
  public $request;
  public $response;
  public $required_fields;
  public $optional_fields;
  public $errors;

  function __construct($api_key = null) {
    $this->api_key = $api_key;
      if (empty($api_key)) { die('You must provide an API key for the desired Raven Tools profile.'); }
    $this->format = 'json';
    $this->required_fields = array();
    $this->optional_fields = array();
    $this->errors = array();
  }


  public function __set($name, $value) {
    $this->$name = $value;
{'fraction_non_alphanumeric': 0.1467032967032967, 'fraction_numerical': 0.002197802197802198, 'mean_word_length': 3.5753768844221105, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 4, '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': '1181075', 'n_tokens_mistral': 615, 'n_tokens_neox': 599, 'n_words': 154}