<commit_before>"""
MMRadar.py
"""
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, LineAsset
from ggame import ImageAsset, PolygonAsset, Frame, Sound, SoundAsset, TextAsset
import time
import random
import math

SCREEN_WINDOWX = 1000
SCREEN_WINDOWY = 1000


# colors
red = Color(0xff0000, 1.0)
green = Color(0x00ff00, 1.0)
blue = Color(0x0000ff, 1.0)
black = Color(0x000000, 1.0)
orange = Color(0xffa500, 1.0)
skin =Color(0xFCD15B, 1.0)
wall=Color(0xE8E8E8, 1.0)
orange=Color(0xFFa500,1.0)
platc=Color(0xB9BDBB,1.0)
gooy=Color(0xCDF238,1.0)
white=Color(0xFFFFFF,1.0)
darkblue=Color(0x052099,1.0)

# lines
thinline= LineStyle(1, black)
thin1line=LineStyle(2,black)
thickline= LineStyle(5, black)
thickliner= LineStyle(5, red)
thicklineb= LineStyle(5, blue)
thickishline= LineStyle(2.5, black)
noline= LineStyle(0, black)
portalline= LineStyle(1, blue)
portalline2= LineStyle(1, orange)

class dish(Sprite):
    asset = EllipseAsset(50,5,thin1line,white)
    def __init__(self, position):
        super().__init__(dish.asset, position)
        self.vx=0
        self.rotation=-1
        
class signal(Sprite):
    asset = EllipseAsset(50,5,thinline,white)
    def __init__(self, position):
        super().__init__(signal.asset, position)
        self.vx=0
        self.rotation=-0.8
        
class plane(Sprite):
    asset = ImageAsset("images/four_spaceship_by_albertov_with_thrust.png", 
        Frame(227,0,292-227,125), 4, 'vertical')
    def __init__(self, position):
        super().__init__(plane.asset, position)
        self.vx=0
        self.rotation= math.pi/2
        
class radar(App):
    asset = ImageAsset("images/spritesforathletes.jpg", Frame(0,0,55,50), 8, 'horizontal')
    def __init__(self, width, height):
        super().__init__(width, height)
        dish((100,450))
        signal((200,200))
        plane((400,500))
        Sprite(LineAsset(1000,1,thinline),(0,500))
       
myapp = radar(SCREEN_WINDOWX,SCREEN_WINDOWY)
myapp.run()<commit_msg>Updated from Brython Server: 12/19/2016 7:45:14 PM<commit_after>"""
MMRadar.py
"""
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, LineAsset
from ggame import ImageAsset, PolygonAsset, Frame, Sound, SoundAsset, TextAsset
import time
import random
import math

SCREEN_WINDOWX = 1000
SCREEN_WINDOWY = 1000


# colors
red = Color(0xff0000, 1.0)
green = Color(0x00ff00, 1.0)
blue = Color(0x0000ff, 1.0)
black = Color(0x000000, 1.0)
orange = Color(0xffa500, 1.0)
skin =Color(0xFCD15B, 1.0)
wall=Color(0xE8E8E8, 1.0)
orange=Color(0xFFa500,1.0)
platc=Color(0xB9BDBB,1.0)
gooy=Color(0xCDF238,1.0)
white=Color(0xFFFFFF,1.0)
darkblue=Color(0x052099,1.0)

# lines
thinline= LineStyle(1, black)
thin1line=LineStyle(2,black)
thickline= LineStyle(5, black)
thickliner= LineStyle(5, red)
thicklineb= LineStyle(5, blue)
thickishline= LineStyle(2.5, black)
noline= LineStyle(0, black)
portalline= LineStyle(1, blue)
portalline2= LineStyle(1, orange)

class dish(Sprite):
    asset = EllipseAsset(50,5,thin1line,white)
    def __init__(self, position):
        super().__init__(dish.asset, position)
        self.vx=0
        self.rotation=-1
        
class signal(Sprite):
    asset = EllipseAsset(50,5,thinline,white)
    def __init__(self, position):
        super().__init__(signal.asset, position)
        self.vx=0
        self.rotation=-0.8
        
class plane(Sprite):
    asset = ImageAsset("images/four_spaceship_by_albertov_with_thrust.png", 
        Frame(227,0,292-227,125), 4, 'vertical')
    def __init__(self, position):
        super().__init__(plane.asset, position)
        self.vx=0
        self.rotation= math.pi/2
        
class radar(App):
    asset = ImageAsset("images/spritesforathletes.jpg", Frame(0,0,55,50), 8, 'horizontal')
    def __init__(self, width, height):
        super().__init__(width, height)
        dish((100,450))
        signal((200,200))
        plane((800,100))
        Sprite(LineAsset(1000,1,thinline),(0,500))
       
myapp = radar(SCREEN_WINDOWX,SCREEN_WINDOWY)
myapp.run()
{'fraction_non_alphanumeric': 0.13659857248338667, 'fraction_numerical': 0.08048240216588727, 'mean_word_length': 4.203585147247119, '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': '39954', 'n_tokens_mistral': 1692, 'n_tokens_neox': 1526, 'n_words': 287}