<commit_before>import calls

# Constants
BUY_LIMIT_ORDER_TYPE_BUY = '0'
BUY_LIMIT_ORDER_TYPE_SELL = '1'

OPEN_ORDERS_TYPE_BUY = '0'
OPEN_ORDERS_TYPE_SELL = '1'

SELL_LIMIT_ORDER_TYPE_BUY = '0'
SELL_LIMIT_ORDER_TYPE_SELL = '1'

TRANSACTIONS_SORT_ASCENDING = 'asc'
TRANSACTIONS_SORT_DESCENDING = 'desc'

USER_TRANSACTIONS_SORT_ASCENDING = 'asc'
USER_TRANSACTIONS_SORT_DESCENDING = 'desc'

USER_TRANSACTIONS_TYPE_DEPOSIT = '0'
USER_TRANSACTIONS_TYPE_WITHDRAWAL = '1'
USER_TRANSACTIONS_TYPE_MARKET_TRADE = '2'

WITHDRAWAL_REQUEST_TYPE_SEPA = '0'
WITHDRAWAL_REQUEST_TYPE_BITCOIN = '1'
WITHDRAWAL_REQUEST_TYPE_WIRE = '2'
WITHDRAWAL_REQUEST_TYPE_BITSTAMP_CODE_1 = '3'
WITHDRAWAL_REQUEST_TYPE_BITSTAMP_CODE_2 = '4'
WITHDRAWAL_REQUEST_TYPE_MTGOX = '5'

WITHDRAWAL_REQUEST_STATUS_OPEN = '0'
WITHDRAWAL_REQUEST_STATUS_IN_PROCESS = '1'
WITHDRAWAL_REQUEST_STATUS_FINISHED = '2'
WITHDRAWAL_REQUEST_STATUS_CANCELLED = '3'
WITHDRAWAL_REQUEST_STATUS_FAILED = '4'


# Wrapper functions
def account_balance(client_id, api_key, api_secret):
    return (
        calls.APIAccountBalanceCall(client_id, api_key, api_secret)
        .call()
    )


def bitcoin_deposit_address(client_id, api_key, api_secret):
    return (
        calls.APIBitcoinDepositAddressCall(client_id, api_key, api_secret)
        .call()
    )


def bitcoin_withdrawal(client_id, api_key, api_secret, amount, address):
    return (
        calls.APIBitcoinWithdrawalCall(client_id, api_key, api_secret)
        .call(amount=amount, address=address)
    )
<commit_msg>Fixing constants - should be ints, not strings<commit_after>import calls

# Constants
BUY_LIMIT_ORDER_TYPE_BUY = 0
BUY_LIMIT_ORDER_TYPE_SELL = 1

OPEN_ORDERS_TYPE_BUY = 0
OPEN_ORDERS_TYPE_SELL = 1

SELL_LIMIT_ORDER_TYPE_BUY = 0
SELL_LIMIT_ORDER_TYPE_SELL = 1

TRANSACTIONS_SORT_ASCENDING = 'asc'
TRANSACTIONS_SORT_DESCENDING = 'desc'

USER_TRANSACTIONS_SORT_ASCENDING = 'asc'
USER_TRANSACTIONS_SORT_DESCENDING = 'desc'

USER_TRANSACTIONS_TYPE_DEPOSIT = 0
USER_TRANSACTIONS_TYPE_WITHDRAWAL = 1
USER_TRANSACTIONS_TYPE_MARKET_TRADE = 2

WITHDRAWAL_REQUEST_TYPE_SEPA = 0
WITHDRAWAL_REQUEST_TYPE_BITCOIN = 1
WITHDRAWAL_REQUEST_TYPE_WIRE = 2
WITHDRAWAL_REQUEST_TYPE_BITSTAMP_CODE_1 = 3
WITHDRAWAL_REQUEST_TYPE_BITSTAMP_CODE_2 = 4
WITHDRAWAL_REQUEST_TYPE_MTGOX = 5

WITHDRAWAL_REQUEST_STATUS_OPEN = 0
WITHDRAWAL_REQUEST_STATUS_IN_PROCESS = 1
WITHDRAWAL_REQUEST_STATUS_FINISHED = 2
WITHDRAWAL_REQUEST_STATUS_CANCELLED = 3
WITHDRAWAL_REQUEST_STATUS_FAILED = 4


# Wrapper functions
def account_balance(client_id, api_key, api_secret):
    return (
        calls.APIAccountBalanceCall(client_id, api_key, api_secret)
        .call()
    )


def bitcoin_deposit_address(client_id, api_key, api_secret):
    return (
        calls.APIBitcoinDepositAddressCall(client_id, api_key, api_secret)
        .call()
    )


def bitcoin_withdrawal(client_id, api_key, api_secret, amount, address):
    return (
        calls.APIBitcoinWithdrawalCall(client_id, api_key, api_secret)
        .call(amount=amount, address=address)
    )

{'fraction_non_alphanumeric': 0.0712166172106825, 'fraction_numerical': 0.014507088691064951, 'mean_word_length': 6.1725768321513, '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': '180931', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1204, 'n_words': 172}