<commit_before>
import luxe.Vector;
import luxe.Input;
import luxe.Sprite;


class Main extends luxe.Game {


    var test_sprite1 : Sprite;


    override function ready() {

        test_sprite1 = new Sprite({
            texture : Luxe.loadTexture('assets/luxe.png'),
            pos : Luxe.screen.mid,
            centered : false,
            flipx:true,
            flipy:true
        });

        test_sprite1.centered = true;
        test_sprite1.flipx = false;
        test_sprite1.flipy = false;

        mouse = new Vector();

    } //ready

    var inside = false;
    var mouse : Vector;

    override function onmousemove( e:MouseEvent ) {
        mouse = e.pos;
    } //onmousemove

    function hittest( e:Vector ) {
            //wait for loading on web
        if(test_sprite1.geometry == null) return;

        if( test_sprite1.point_inside(e) ) {
            if(!inside) {
                inside = true;
                test_sprite1.color.tween(0.1, {r:0.8, b:0, g:0});
            }
        } else {
            if(inside) {
                inside = false;
                test_sprite1.color.tween(0.1, {r:1, b:1, g:1});
            }
        }
    } //hittest

    override function onmouseup( e:MouseEvent ) {
        mouse = e.pos;
        test_sprite1.pos = e.pos;
    } //onmouseup


    var _next : Int = 0;
    var _next2 : Int = 0;
    var _scales : Array<Vector>;
    var _sizes : Array<Vector>;

    override function onkeyup( e:KeyEvent ) {
<commit_msg>Tests; sprite; add tweening to test<commit_after>
import luxe.Vector;
import luxe.Input;
import luxe.Sprite;


class Main extends luxe.Game {


    var test_sprite1 : Sprite;


    override function ready() {

        test_sprite1 = new Sprite({
            texture : Luxe.loadTexture('assets/luxe.png'),
            pos : Luxe.screen.mid,
            centered : false,
            flipx:true,
            flipy:true
        });

        test_sprite1.centered = true;
        test_sprite1.flipx = false;
        test_sprite1.flipy = false;

        mouse = new Vector();

    } //ready

    var inside = false;
    var mouse : Vector;

    override function onmousemove( e:MouseEvent ) {
        mouse = e.pos;
    } //onmousemove

    function hittest( e:Vector ) {
            //wait for loading on web
        if(test_sprite1.geometry == null) return;

        if( test_sprite1.point_inside(e) ) {
            if(!inside) {
                inside = true;
                test_sprite1.color.tween(0.1, {r:0.8, b:0, g:0});
                luxe.tween.Actuate.tween(test_sprite1.scale, 0.1, {x:1.2, y:1.2});
            }
        } else {
            if(inside) {
                inside = false;
                test_sprite1.color.tween(0.1, {r:1, b:1, g:1});
                luxe.tween.Actuate.tween(test_sprite1.scale, 0.1, {x:1, y:1});
            }
        }
    } //hittest

    override function onmouseup( e:MouseEvent ) {
        mouse = e.pos;
        test_sprite1.pos = e.pos;
    } //onmouseup


    var _next : Int = 0;
    var _next2 : Int = 0;
    var _scales : Array<Vector>;
    var _sizes : Array<Vector>;

    override function onkeyup( e:KeyEvent ) {

{'fraction_non_alphanumeric': 0.11731135066582118, 'fraction_numerical': 0.019023462270133164, 'mean_word_length': 1.6828231292517006, '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': '799931', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1033, 'n_words': 227}