<commit_before># -*- coding: utf-8 -*-

__all__ = ['test_ohlcv']


def test_ohlcv(exchange, ohlcv, method, symbol):

    print(
        exchange.id,
        symbol,
        method,
        [exchange.iso8601(ohlcv[0])] + ohlcv[1:],
    )

    assert isinstance(ohlcv, list)
    assert len(ohlcv) >= 6

    assert isinstance(ohlcv[0], int)  # timestamp

    assert ohlcv[0] > 1230940800000  # 03 Jan 2009 - first block
    assert ohlcv[0] < 2147483648000  # 19 Jan 2038 - int32 overflows

    assert (ohlcv[1] is None) or isinstance(ohlcv[1], float)  # open
    assert (ohlcv[2] is None) or isinstance(ohlcv[2], float)  # high
    assert (ohlcv[3] is None) or isinstance(ohlcv[3], float)  # low
    assert (ohlcv[4] is None) or isinstance(ohlcv[4], float)  # close
    assert (ohlcv[5] is None) or isinstance(ohlcv[5], float)  # volume
<commit_msg>test_ohlcv.py output removed<commit_after># -*- coding: utf-8 -*-

__all__ = ['test_ohlcv']


def test_ohlcv(exchange, ohlcv, method, symbol):

    assert isinstance(ohlcv, list)
    assert len(ohlcv) >= 6

    assert isinstance(ohlcv[0], int)  # timestamp

    assert ohlcv[0] > 1230940800000  # 03 Jan 2009 - first block
    assert ohlcv[0] < 2147483648000  # 19 Jan 2038 - int32 overflows

    assert (ohlcv[1] is None) or isinstance(ohlcv[1], float)  # open
    assert (ohlcv[2] is None) or isinstance(ohlcv[2], float)  # high
    assert (ohlcv[3] is None) or isinstance(ohlcv[3], float)  # low
    assert (ohlcv[4] is None) or isinstance(ohlcv[4], float)  # close
    assert (ohlcv[5] is None) or isinstance(ohlcv[5], float)  # volume

{'fraction_non_alphanumeric': 0.1330390920554855, 'fraction_numerical': 0.07313997477931904, 'mean_word_length': 3.371900826446281, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7229588', 'n_tokens_mistral': 644, 'n_tokens_neox': 561, 'n_words': 160}