<commit_before>import {
  Provider,
  JSONRPCRequestPayload,
  JSONRPCErrorCallback
} from "ethereum-protocol";
import { Callback, JsonRPCResponse } from "web3/providers";

interface Web3ProviderEngineOptions {
  pollingInterval?: number;
  blockTracker?: any;
  blockTrackerProvider?: any;
}
declare class Web3ProviderEngine implements Provider {
  constructor(options?: Web3ProviderEngineOptions);
  on(event: string, handler: () => void): void;
  send(
    payload: JSONRPCRequestPayload,
    callback?: JSONRPCErrorCallback | Callback<JsonRPCResponse>
  ): void;
  sendAsync(
    payload: JSONRPCRequestPayload,
    callback: JSONRPCErrorCallback | Callback<JsonRPCResponse>
  ): void;
  addProvider(provider: any): void;
  // start block polling
  start(callback?: () => void): void;
  // stop block polling
  stop(): void;
}
export default Web3ProviderEngine;

declare module "web3-provider-engine/subproviders/provider";
declare module "web3-provider-engine/subproviders/hooked-wallet";
declare module "web3-provider-engine/subproviders/nonce-tracker";
declare module "web3-provider-engine/subproviders/filters";<commit_msg>import & use typings from @truffle/blockchain-utils (hdwallet-provider/typings/web3-provider-engine/index)<commit_after>import {
  Provider,
  JSONRPCRequestPayload,
  JSONRPCErrorCallback
} from "ethereum-protocol";
import { Callback, JsonRpcResponse } from "@truffle/blockchain-utils";

interface Web3ProviderEngineOptions {
  pollingInterval?: number;
  blockTracker?: any;
  blockTrackerProvider?: any;
}
declare class Web3ProviderEngine implements Provider {
  constructor(options?: Web3ProviderEngineOptions);
  on(event: string, handler: () => void): void;
  send(
    payload: JSONRPCRequestPayload,
    callback?: JSONRPCErrorCallback | Callback<JsonRpcResponse>
  ): void;
  sendAsync(
    payload: JSONRPCRequestPayload,
    callback: JSONRPCErrorCallback | Callback<JsonRpcResponse>
  ): void;
  addProvider(provider: any): void;
  // start block polling
  start(callback?: () => void): void;
  // stop block polling
  stop(): void;
}
export default Web3ProviderEngine;

declare module "web3-provider-engine/subproviders/provider";
declare module "web3-provider-engine/subproviders/hooked-wallet";
declare module "web3-provider-engine/subproviders/nonce-tracker";
declare module "web3-provider-engine/subproviders/filters";
{'fraction_non_alphanumeric': 0.10904480135249366, 'fraction_numerical': 0.0076077768385460695, 'mean_word_length': 5.7628571428571425, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '1565055', 'n_tokens_mistral': 701, 'n_tokens_neox': 704, 'n_words': 152}