<commit_before>import numpy as np
from steemtools.helpers import parse_payout
from steemtools.node import default


class Tickers(object):
    pass


class Market(Tickers):
    def __init__(self, steem=default()):
        self.steem = steem

    def avg_witness_price(self, take=10):
        take = 20 if take > 20 else take
        price_history = self.steem.rpc.get_feed_history()['price_history']
        return np.mean([parse_payout(x['base']) for x in price_history[-take:]])
<commit_msg>removed an arbitrary limit from avg_witness_price<commit_after>import numpy as np
from steemtools.helpers import parse_payout
from steemtools.node import default


class Tickers(object):
    pass


class Market(Tickers):
    def __init__(self, steem=default()):
        self.steem = steem

    def avg_witness_price(self, take=10):
        price_history = self.steem.rpc.get_feed_history()['price_history']
        return np.mean([parse_payout(x['base']) for x in price_history[-take:]])

{'fraction_non_alphanumeric': 0.10397553516819572, 'fraction_numerical': 0.00815494393476045, 'mean_word_length': 4.141361256544503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1418024', 'n_tokens_mistral': 323, 'n_tokens_neox': 308, 'n_words': 78}