<commit_before>import json
import random

from database import db_session
from models2 import Node, Player, Policy, Goal, Edge, Wallet
#from models import Fund

class Game:

    def __init__(self):
        self.coins_per_budget_cycle = 150000
        self.standard_max_player_outflow = 100

    @property
    def num_players(self):
        return db_session.query(Player).count()

    def do_leak(self):
        for node in db_session.query(Node).order_by(Node.id).all():
            node.do_leak()

    def do_propogate_funds(self):
        nodes = db_session.query(Node).all()
        for node in sorted(nodes, key=lambda n: n.rank):
            node.do_propogate_funds()<commit_msg>fixed import<commit_after>import json
import random

from database import db_session
from models import Node, Player, Policy, Goal, Edge, Wallet

class Game:

    def __init__(self):
        self.coins_per_budget_cycle = 150000
        self.standard_max_player_outflow = 100

    @property
    def num_players(self):
        return db_session.query(Player).count()

    def do_leak(self):
        for node in db_session.query(Node).order_by(Node.id).all():
            node.do_leak()

    def do_propogate_funds(self):
        nodes = db_session.query(Node).all()
        for node in sorted(nodes, key=lambda n: n.rank):
            node.do_propogate_funds()
{'fraction_non_alphanumeric': 0.09456440804169769, 'fraction_numerical': 0.014147431124348473, 'mean_word_length': 3.0727272727272728, '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': '3410353', 'n_tokens_mistral': 451, 'n_tokens_neox': 424, 'n_words': 102}