<commit_before>import pygame
from pygame.locals import *
import sys
import imp

import Box2D
from Box2D.b2 import *

from env import Env
from robot import Robot
from objects import BoxProp
from ball import Ball

from robothread import RoboThread


def import_(filename):
    path, name = os.path.split(filename)
    name, ext = os.path.splitext(name)

    modname = "%s_%s" % ("imp_", name)

    file, filename, data = imp.find_module(name, [path])
    mod = imp.load_module(name, file, filename, data)
    return mod

if __name__ == "__main__":
    WIDTH = 729
    HEIGHT = 546
    TABLE_WIDTH = WIDTH
    TABLE_HEIGHT = 65

    FPS = 30.0
    TIME_STEP = 1.0/FPS

    if len(sys.argv) < 3:
        print "usage: {0} teamA teamB".format(sys.argv[0])
        sys.exit(-1)

    pygame.init()
    display = pygame.display.set_mode((WIDTH, HEIGHT+TABLE_HEIGHT))
    pygame.display.set_caption('SoccerSim')

    clock = pygame.time.Clock()

    b2world = Box2D.b2World(gravity=(0, 0), doSleep=False)

    env = Env('teamA', 'teamB', [WIDTH, HEIGHT], display, debug=True)

    robotA1 = Robot(env, (140, 200), (21*3, 21*3), -90, (255, 0, 0), b2world)
    robotA2 = Robot(env, (140, 356), (21*3, 21*3), -90, (255, 0, 122), b2world)
    robotB1 = Robot(env, (580, 200), (21*3, 21*3), 90, (0, 255, 0), b2world)
    robotB2 = Robot(env, (580, 356), (21*3, 21*3), 90, (0, 255, 122), b2world)

    robots = []
    robo_threads = []

    robots.append(robotA1)
    robots.append(robotA2)
    robots.append(robotB1)
    robots.append(robotB2)

    rA1 = imp.load_source('robot1', sys.argv[1] + '/robot1.py')
    robo_threads.append(RoboThread(target=rA1.main, kwargs={'robot': robotA1}))

    rA2 = imp.load_source('robot2', sys.argv[1] + '/robot2.py')<commit_msg>filled info display with dark green<commit_after>import pygame
from pygame.locals import *
import sys
import imp

import Box2D
from Box2D.b2 import *

from env import Env
from robot import Robot
from objects import BoxProp
from ball import Ball

from robothread import RoboThread


def import_(filename):
    path, name = os.path.split(filename)
    name, ext = os.path.splitext(name)

    modname = "%s_%s" % ("imp_", name)

    file, filename, data = imp.find_module(name, [path])
    mod = imp.load_module(name, file, filename, data)
    return mod

if __name__ == "__main__":
    WIDTH = 729
    HEIGHT = 546
    TABLE_WIDTH = WIDTH
    TABLE_HEIGHT = 65

    FPS = 30.0
    TIME_STEP = 1.0/FPS

    if len(sys.argv) < 3:
        print "usage: {0} teamA teamB".format(sys.argv[0])
        sys.exit(-1)

    pygame.init()
    display = pygame.display.set_mode((WIDTH, HEIGHT+TABLE_HEIGHT))
    display.fill((0, 86, 27))
    pygame.display.set_caption('SoccerSim')

    clock = pygame.time.Clock()

    b2world = Box2D.b2World(gravity=(0, 0), doSleep=False)

    env = Env('teamA', 'teamB', [WIDTH, HEIGHT], display, debug=True)

    robotA1 = Robot(env, (140, 200), (21*3, 21*3), -90, (255, 0, 0), b2world)
    robotA2 = Robot(env, (140, 356), (21*3, 21*3), -90, (255, 0, 122), b2world)
    robotB1 = Robot(env, (580, 200), (21*3, 21*3), 90, (0, 255, 0), b2world)
    robotB2 = Robot(env, (580, 356), (21*3, 21*3), 90, (0, 255, 122), b2world)

    robots = []
    robo_threads = []

    robots.append(robotA1)
    robots.append(robotA2)
    robots.append(robotB1)
    robots.append(robotB2)

    rA1 = imp.load_source('robot1', sys.argv[1] + '/robot1.py')
    robo_threads.append(RoboThread(target=rA1.main, kwargs={'robot': robotA1}))

    rA2 = imp.load_source('robot2', sys.argv[1] + '/robot2.py')
{'fraction_non_alphanumeric': 0.15672481710748454, 'fraction_numerical': 0.07287563308947664, 'mean_word_length': 3.421641791044776, 'pattern_counts': {'":': 2, '<': 5, '<?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': '1422564', 'n_tokens_mistral': 1572, 'n_tokens_neox': 1401, 'n_words': 329}