<commit_before>package;

import openfl.Lib;
import openfl.events.MouseEvent;
import openfl.Vector;
import openfl.events.Event;
import openfl.display.Sprite;


class Main extends Sprite
{

    private var _list:Vector<MyCircle> =  new Vector<MyCircle>();

    /**
     * Constructor
    **/
	public function new ()
    {
		super ();
        addEventListener(Event.ADDED_TO_STAGE, addedToStage, false);
	}


    private function addedToStage(event:Event):Void
    {
        removeEventListener(Event.ADDED_TO_STAGE, addedToStage, false);
        init();
    }

    private function init():Void
    {
        stage.addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
        stage.addEventListener(MouseEvent.CLICK, onMouseClick);
    }

    private function onMouseClick(event:MouseEvent):Void
    {
        for (i in 0...20)
        {
            var gfx:MyCircle = new MyCircle();
            gfx.x = Math.random() * stage.stageWidth - 100;
            gfx.y = Math.random() * stage.stageHeight - 100;
            stage.addChild(gfx);

            _list.push(gfx);
        }

    }

    private function onEnterFrameHandler(event:Event):Void
    {
        for (circle in _list)
        {
            circle.update();
        }
    }

}<commit_msg>initial commit<commit_after>package;

import openfl.Lib;
import openfl.events.MouseEvent;
import openfl.Vector;
import openfl.events.Event;
import openfl.display.Sprite;


class Main extends Sprite
{

    private var _list:Vector<MyCircle> =  new Vector<MyCircle>();

    /**
     * Constructor
    **/
    public function new ()
    {
        super ();
        addEventListener(Event.ADDED_TO_STAGE, addedToStage, false);
    }


    private function addedToStage(event:Event):Void
    {
        removeEventListener(Event.ADDED_TO_STAGE, addedToStage, false);
        init();
    }

    private function init():Void
    {
        stage.addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
        stage.addEventListener(MouseEvent.CLICK, onMouseClick);
    }

    private function onMouseClick(event:MouseEvent):Void
    {
        for (i in 0...20)
        {
            var gfx:MyCircle = new MyCircle();
            gfx.x = Math.random() * stage.stageWidth - 100;
            gfx.y = Math.random() * stage.stageHeight - 100;
            stage.addChild(gfx);

            _list.push(gfx);
        }

    }

    private function onEnterFrameHandler(event:Event):Void
    {
        for (circle in _list)
        {
            circle.update();
        }
    }

}
{'fraction_non_alphanumeric': 0.10956728860658992, 'fraction_numerical': 0.007145692735212386, 'mean_word_length': 2.289817232375979, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4525462', 'n_tokens_mistral': 787, 'n_tokens_neox': 760, 'n_words': 143}