<commit_before>import { Provider, Callback, JsonRPCResponse } from "web3/providers"

declare interface parsedUriObject {
  genesis_hash?: string,
  block_hash?: string
}

const Blockchain = {
  getBlockByNumber(blockNumber: string, provider: Provider, callback: Callback<JsonRPCResponse>) {
    const params = [blockNumber, true];
    provider.send(
      {
        jsonrpc: "2.0",
        method: "eth_getBlockByNumber",
        params,
        id: Date.now()
      },
      callback
    );
  },

  getBlockByHash(blockHash: string, provider: Provider, callback: Callback<JsonRPCResponse>) {
    const params = [blockHash, true];
    provider.send(
      {
        jsonrpc: "2.0",
        method: "eth_getBlockByHash",
        params,
        id: Date.now()
      },
      callback
    );
  },

  parse(uri: string) {<commit_msg>import parsedUriObject type (index)<commit_after>import { Provider, Callback, JsonRPCResponse } from "web3/providers"
import { parsedUriObject } from "typings"

const Blockchain = {
  getBlockByNumber(blockNumber: string, provider: Provider, callback: Callback<JsonRPCResponse>) {
    const params = [blockNumber, true];
    provider.send(
      {
        jsonrpc: "2.0",
        method: "eth_getBlockByNumber",
        params,
        id: Date.now()
      },
      callback
    );
  },

  getBlockByHash(blockHash: string, provider: Provider, callback: Callback<JsonRPCResponse>) {
    const params = [blockHash, true];
    provider.send(
      {
        jsonrpc: "2.0",
        method: "eth_getBlockByHash",
        params,
        id: Date.now()
      },
      callback
    );
  },

  parse(uri: string) {
{'fraction_non_alphanumeric': 0.12026862026862027, 'fraction_numerical': 0.006105006105006105, 'mean_word_length': 2.725, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3508837', 'n_tokens_mistral': 511, 'n_tokens_neox': 507, 'n_words': 110}