<commit_before>from browser import window, document
from random import randint
from javascript import JSObject, JSConstructor

# depends on pixi.js 
PIXI = JSObject(window.PIXI)
PIXI_loader = JSObject(PIXI.loader)


class ImageAsset(object):
    def __init__(self, name, url):
        self.name = name
        self.url = url
        PIXI_loader.reset()
        PIXI_loader.add(name, url)
        PIXI_loader.once('complete',self.loadComplete);
        PIXI_loader.load();
    
    def loadComplete(self):
        print("loaded asset!")

if __name__ == '__main__':
    bunnyurl = "https://github.com/tiggerntatie/brython-\
server-testing/blob/master/bunny.png?raw=true"<commit_msg>Updated from Brython Server: 7/27/2015 1:44:56 PM<commit_after>from browser import window, document
from random import randint
from javascript import JSObject, JSConstructor

# depends on pixi.js 
PIXI = JSObject(window.PIXI)
PIXI_loader = JSObject(PIXI.loader)


class ImageAsset(object):
    def __init__(self, name, url):
        self.name = name
        self.url = url
        PIXI_loader.reset()
        PIXI_loader.add(name, url)
        PIXI_loader.load(self.loadComplete)
    
    def loadComplete(self):
        print("loaded asset!")

if __name__ == '__main__':
    bunnyurl = "https://github.com/tiggerntatie/brython-\
server-testing/blob/master/bunny.png?raw=true"
{'fraction_non_alphanumeric': 0.11135693215339233, 'fraction_numerical': 0.008849557522123894, 'mean_word_length': 3.4785478547854787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4340230', 'n_tokens_mistral': 473, 'n_tokens_neox': 437, 'n_words': 96}