<commit_before>__author__ = 'Per'

from Match_class import Match
from Player_class import Player


numberOfPlayers = input("how many players? ")



def defineListOfPlayers():
    listOfPlayers = []
    for i in range (0, numberOfPlayers):
        playerName = raw_input("Player name: ")
        matchToAssingToPlayer = Match(i)
        player_i = Player(playerName, i, matchToAssingToPlayer)
        listOfPlayers.append(player_i)
    return listOfPlayers



listOfPlayers = defineListOfPlayers()
for player in listOfPlayers:
    print(player.getName(), player.getNumber())

<commit_msg>started working on defineListOfMatches function (not working yet)<commit_after>__author__ = 'Per'

from Match_class import Match
from Player_class import Player


numberOfPlayers = input("how many players? ")



def defineListOfPlayers():
    listOfPlayers = []
    for i in range (0, numberOfPlayers):
        playerName = raw_input("Player name: ")
        matchToAssingToPlayer = Match(i)
        player_i = Player(playerName, i, matchToAssingToPlayer)
        listOfPlayers.append(player_i)
    return listOfPlayers

def defineListOfMatches():
    listOfMatches = []
    for i in range (0, numberOfPlayers):
        match = player.getAssignedMatch
        listOfMatches.append(match)
    return listOfMatches

listOfMatches = defineListOfMatches()
for match in listOfMatches:
        print("Match Nr: ", match.getNumber(), "Match length: ", match.getLength())


listOfPlayers = defineListOfPlayers()
for player in listOfPlayers:
    print(player.getName(), player.getNumber())


{'fraction_non_alphanumeric': 0.09050350541746335, 'fraction_numerical': 0.0019120458891013384, 'mean_word_length': 4.080906148867314, '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': '7032862', 'n_tokens_mistral': 484, 'n_tokens_neox': 453, 'n_words': 119}