<commit_before>from piston.steem import Steem
from piston.blockchain import Blockchain
from piston.account import Account
from piston.account import Amount
from piston.utils import parse_time
from piston.post import Post
import time
import datetime
import schedule

steem = Steem(node="wss://gtg.steem.house:8090")

account = Account("deutschbot")

def bericht():

    main_report = ("|| Autor | Beitrag | $$$ |\n"+
               "| --- | --- | --- | --- |\n")

    total_rewards = 0
    total_posts = 0
    trailing_24h_t = time.time() - datetime.timedelta(hours=24).total_seconds()

    stoptime = time.time()
    starttime = trailing_24h_t

    for i in account.history2(filter_by="vote", take=100000):

        timestamp = parse_time(i['timestamp']).timestamp()
<commit_msg>Instantiate the Steem Object in the main function<commit_after>from piston.steem import Steem
from piston.blockchain import Blockchain
from piston.account import Account
from piston.account import Amount
from piston.utils import parse_time
from piston.post import Post
import time
import datetime
import schedule

account = Account("deutschbot")

def bericht():

    steem = Steem(node="wss://gtg.steem.house:8090")

    main_report = ("|| Autor | Beitrag | $$$ |\n"+
               "| --- | --- | --- | --- |\n")

    total_rewards = 0
    total_posts = 0
    trailing_24h_t = time.time() - datetime.timedelta(hours=24).total_seconds()

    stoptime = time.time()
    starttime = trailing_24h_t

    for i in account.history2(filter_by="vote", take=100000):

        timestamp = parse_time(i['timestamp']).timestamp()

{'fraction_non_alphanumeric': 0.1276595744680851, 'fraction_numerical': 0.023779724655819776, 'mean_word_length': 3.516949152542373, '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': '5788799', 'n_tokens_mistral': 536, 'n_tokens_neox': 490, 'n_words': 125}