<commit_before>// Type definitions for aws-iot-device-sdk 2.1.0
// Project: https://github.com/aws/aws-iot-device-sdk-js
// Definitions by: <NAME> <https://github.com/niik>
//                 <NAME> <https://github.com/mlamp>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import * as mqtt from "mqtt";
import * as WebSocket from "ws";

export interface DeviceOptions extends mqtt.IClientOptions {
  /** the AWS IoT region you will operate in (default "us-east-1") */
  region?: string;

  /** the client ID you will use to connect to AWS IoT */
  clientId?: string;

  /**
   * path of the client certificate file path of the private key file
   * associated with the client certificate
   */
  certPath?: string;

  /** path of the private key file associated with the client certificate */
  keyPath?: string;

  /** path of your CA certificate file */
  caPath?: string;

  /**
   * same as certPath, but can also accept a buffer containing client
   * certificate data
   */
  clientCert?: string;

  /**
   * same as keyPath, but can also accept a buffer containing private key
   * data
   */
  privateKey?: string;

  /**
   * same as caPath, but can also accept a buffer containing CA certificate
   * data
   */
  caCert?: string;

  /**
   * set to "true" to automatically re-subscribe to topics after
   * reconnection (default "true")
   */
  autoResubscribe?: boolean;

  /** set to "true" to automatically queue published messages while
   * offline (default "true")
   */
  offlineQueueing?: boolean;

  /**
   * enforce a maximum size for the offline message queue
   * (default 0, e.g. no maximum)
   */
  offlineQueueMaxSize?: number;

  /**
   * set to "oldest" or "newest" to define drop behavior on a full
   * queue when offlineQueueMaxSize > 0
   */
  offlineQueueDropBehavior?: "oldest" | "newest";<commit_msg>Update index.d.ts<commit_after>// Type definitions for aws-iot-device-sdk 2.1.0
// Project: https://github.com/aws/aws-iot-device-sdk-js
// Definitions by: <NAME> <https://github.com/niik>
//                 <NAME> <https://github.com/mlamp>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import * as mqtt from "mqtt";
import * as WebSocket from "ws";

export interface DeviceOptions extends mqtt.IClientOptions {
  /** the AWS IoT region you will operate in (default "us-east-1") */
  region?: string;

  /** the client ID you will use to connect to AWS IoT */
  clientId?: string;

  /**
   * path of the client certificate file path of the private key file
   * associated with the client certificate
   */
  certPath?: string;

  /** path of the private key file associated with the client certificate */
  keyPath?: string;

  /** path of your CA certificate file */
  caPath?: string;

  /**
   * same as certPath, but can also accept a buffer containing client
   * certificate data
   */
  clientCert?: string | Buffer;

  /**
   * same as keyPath, but can also accept a buffer containing private key
   * data
   */
  privateKey?: string | Buffer;

  /**
   * same as caPath, but can also accept a buffer containing CA certificate
   * data
   */
  caCert?: string | Buffer;

  /**
   * set to "true" to automatically re-subscribe to topics after
   * reconnection (default "true")
   */
  autoResubscribe?: boolean;

  /** set to "true" to automatically queue published messages while
   * offline (default "true")
   */
  offlineQueueing?: boolean;

  /**
   * enforce a maximum size for the offline message queue
   * (default 0, e.g. no maximum)
   */
  offlineQueueMaxSize?: number;

  /**
   * set to "oldest" or "newest" to define drop behavior on a full
   * queue when offlineQueueMaxSize > 0
   */
  offlineQueueDropBehavior?: "oldest" | "newest";
{'fraction_non_alphanumeric': 0.11794063567113212, 'fraction_numerical': 0.0031520882584712374, 'mean_word_length': 2.98326359832636, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 8, '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': '5697701', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1109, 'n_words': 415}