<commit_before>"use strict";

import sha3 = require("js-sha3");

import { arrayify, BytesLike } from "@ethersproject/bytes";

export function keccak256(data: BytesLike): string {
    return '0x' + sha3.keccak_256(arrayify(data));
}<commit_msg>Fix non-ES6 import in keccak256.<commit_after>"use strict";

import sha3 from "js-sha3";

import { arrayify, BytesLike } from "@ethersproject/bytes";

export function keccak256(data: BytesLike): string {
    return '0x' + sha3.keccak_256(arrayify(data));
}
{'fraction_non_alphanumeric': 0.14228456913827656, 'fraction_numerical': 0.04809619238476954, 'mean_word_length': 5.8493150684931505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4649904', 'n_tokens_mistral': 188, 'n_tokens_neox': 176, 'n_words': 41}