<commit_before># !/usr/bin/python
import os
import sys
import time
import foodblock
import random
import motko
import multiprocessing
import pygame


def trainer(name, size, hiddenlayer):
    # self.threadLock.acquire()
    print ("Start training ", name, size, hiddenlayer)
    motkoinstance = motko.motko(name, size, hiddenlayer)
    # self.threadLock.release()
    motkoinstance.train()  # (10000*(hiddenneuron*hiddenlayer)))
    motkoinstance.saveNN()


class PyManMain:
    """The Main PyMan Class - This class handles the main
    initialization and creating of the Game."""

    def __init__(self, width=1024, height=768, foodamount=600, motkotamount=4):
        """Initialize"""
        self.gamescreen = True
        self.test = False
        self.motkotamount = motkotamount
        if (len(sys.argv) == 2):
            if("no" in sys.argv[1]):
                self.gamescreen = False
                print ("setted", sys.argv[1], self.gamescreen)
                self.motkotamount = 10
            elif("test" in sys.argv[1]):
                self.gamescreen = False
                print ("setted", sys.argv[1], self.gamescreen)
                self.test = True
                self.motkotamount = 2
        if(self.gamescreen):
            pygame.init()
        self.BLACK = (0, 0, 0)
        self.WHITE = (255, 255, 255)
        self.BLUE = (0, 0, 255)
        self.GREEN = (0, 255, 0)
        self.RED = (255, 0, 0)
        self.RED2 = (242, 120, 120)
        self.PURB = (255, 0, 255)
        self.GRAY = (224, 224, 224)
        self.GRAY2 = (192, 192, 192)
        self.GRAY3 = (160, 160, 160)
        self.GRAY4 = (128, 128, 128)
        self.GRAY5 = (96, 96, 96)
        self.GRAY6 = (32, 32, 32)
        self.X = 0
        self.Y = 0
        self.width = width
        self.height = height
        self.foodamount = foodamount
        self.foodblocks = []

        self.sleeptime = 0.1
        if(self.gamescreen):
            self.screen = pygame.display.set_mode((self.width, self.height))
            self.screen2 = pygame.display.set_mode((self.width, self.height))
            self.myfont = pygame.font.SysFont("monospace", 15)
        if(self.test):
            self.stoplayer = 9
        self.stoplayer = 60<commit_msg> fixt test layer amount bug<commit_after># !/usr/bin/python
import os
import sys
import time
import foodblock
import random
import motko
import multiprocessing
import pygame


def trainer(name, size, hiddenlayer):
    # self.threadLock.acquire()
    print ("Start training ", name, size, hiddenlayer)
    motkoinstance = motko.motko(name, size, hiddenlayer)
    # self.threadLock.release()
    motkoinstance.train()  # (10000*(hiddenneuron*hiddenlayer)))
    motkoinstance.saveNN()


class PyManMain:
    """The Main PyMan Class - This class handles the main
    initialization and creating of the Game."""

    def __init__(self, width=1024, height=768, foodamount=600, motkotamount=4):
        """Initialize"""
        self.gamescreen = True
        self.test = False
        self.motkotamount = motkotamount
        if (len(sys.argv) == 2):
            if("no" in sys.argv[1]):
                self.gamescreen = False
                print ("setted", sys.argv[1], self.gamescreen)
                self.motkotamount = 10
            elif("test" in sys.argv[1]):
                self.gamescreen = False
                print ("setted", sys.argv[1], self.gamescreen)
                self.test = True
                self.motkotamount = 2
        if(self.gamescreen):
            pygame.init()
        self.BLACK = (0, 0, 0)
        self.WHITE = (255, 255, 255)
        self.BLUE = (0, 0, 255)
        self.GREEN = (0, 255, 0)
        self.RED = (255, 0, 0)
        self.RED2 = (242, 120, 120)
        self.PURB = (255, 0, 255)
        self.GRAY = (224, 224, 224)
        self.GRAY2 = (192, 192, 192)
        self.GRAY3 = (160, 160, 160)
        self.GRAY4 = (128, 128, 128)
        self.GRAY5 = (96, 96, 96)
        self.GRAY6 = (32, 32, 32)
        self.X = 0
        self.Y = 0
        self.width = width
        self.height = height
        self.foodamount = foodamount
        self.foodblocks = []

        self.sleeptime = 0.1
        if(self.gamescreen):
            self.screen = pygame.display.set_mode((self.width, self.height))
            self.screen2 = pygame.display.set_mode((self.width, self.height))
            self.myfont = pygame.font.SysFont("monospace", 15)
        self.stoplayer = 60
        if(self.test):
            self.stoplayer = 9
{'fraction_non_alphanumeric': 0.12472259209942299, 'fraction_numerical': 0.05814469596094097, 'mean_word_length': 1.9768824306472919, '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': '5472923', 'n_tokens_mistral': 1676, 'n_tokens_neox': 1423, 'n_words': 356}