<commit_before><?php

/**
 * @file
 * Defines TogglConnection.
 */

class TogglConnection {
  /**
   * The Toggl API version, used in HTTP requests.
   */
  const API_VERSION = 'v6';

  const DATE_FORMAT = 'Y-m-d\TH:i:sO';

  private $userAgent = 'Toggl PHP SDK';

  private $token;

  private $options = array();

  /**
   * Construct the API object.
   */
  public function __construct($token) {
    $this->token = $token;
  }

  public function setToken($token) {
    $this->token = $token;
  }

  public function getToken() {
    return $this->token;
  }

  public function getOptions() {
    return $this->options;<commit_msg>Allow $options to be set from TogglConnection::__construct().<commit_after><?php

/**
 * @file
 * Defines TogglConnection.
 */

class TogglConnection {
  /**
   * The Toggl API version, used in HTTP requests.
   */
  const API_VERSION = 'v6';

  const DATE_FORMAT = 'Y-m-d\TH:i:sO';

  private $userAgent = 'Toggl PHP SDK';

  private $token;

  private $options = array();

  /**
   * Construct the API object.
   */
  public function __construct($token, array $options = array()) {
    $this->token = $token;
    $this->options = $options;
  }

  public function setToken($token) {
    $this->token = $token;
  }

  public function getToken() {
    return $this->token;
  }

  public function getOptions() {
    return $this->options;
{'fraction_non_alphanumeric': 0.14703730797366496, 'fraction_numerical': 0.001463057790782736, 'mean_word_length': 2.9767441860465116, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '5360478', 'n_tokens_mistral': 473, 'n_tokens_neox': 453, 'n_words': 118}