<commit_before>from glob import glob
from os import path
import random
from bitcoin import electrum_sig_hash as _b_electrum_sig_hash
from bitcoin import encode_pubkey as _b_encode_pubkey
from bitcoin import ecdsa_raw_verify as _b_ecdsa_raw_verify
from bitcoin import encode_sig as _b_encode_sig
from bitcoin import decode_sig as _b_decode_sig

try:
    from ._c_secp256k1 import ffi
except ImportError as e:
    raise ImportError(
        "CFFI extension not found. You need to install this package before use. %r" % e)

try:
    obj_name = glob(path.abspath(path.join(path.dirname(__file__), "libsecp256k1*")))[0]
except RuntimeError:
    raise ImportError(
        "secp256k1 lib not found. You need to run 'python setup.py build' or see README")

lib = ffi.dlopen(obj_name)

# ffi definition of the context
ctx = lib.secp256k1_context_create(3)
# arbitrary data used by the nonce generation function
ndata = ffi.new("unsigned char[]", ''.join(chr(random.randint(0, 255)) for i in range(32)))

# helpers


def _int_to_big_endian(value):
    cs = []
    while value > 0:
        cs.append(chr(value % 256))<commit_msg>Catchall import Errors<commit_after>from glob import glob
from os import path
import random
from bitcoin import electrum_sig_hash as _b_electrum_sig_hash
from bitcoin import encode_pubkey as _b_encode_pubkey
from bitcoin import ecdsa_raw_verify as _b_ecdsa_raw_verify
from bitcoin import encode_sig as _b_encode_sig
from bitcoin import decode_sig as _b_decode_sig

try:
    from ._c_secp256k1 import ffi
except ImportError as e:
    raise ImportError(
        "CFFI extension not found. You need to install this package before use. %r" % e)

try:
    obj_name = glob(path.abspath(path.join(path.dirname(__file__), "libsecp256k1*")))[0]
except Exception as e:
    raise ImportError(
        "secp256k1 lib not found. You need to run 'python setup.py build' or see README %r" % e)

lib = ffi.dlopen(obj_name)

# ffi definition of the context
ctx = lib.secp256k1_context_create(3)
# arbitrary data used by the nonce generation function
ndata = ffi.new("unsigned char[]", ''.join(chr(random.randint(0, 255)) for i in range(32)))

# helpers


def _int_to_big_endian(value):
    cs = []
    while value > 0:
        cs.append(chr(value % 256))
{'fraction_non_alphanumeric': 0.0797872340425532, 'fraction_numerical': 0.024822695035460994, 'mean_word_length': 4.478155339805825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1168659', 'n_tokens_mistral': 802, 'n_tokens_neox': 757, 'n_words': 249}