<commit_before>
import luxe.Input;
import luxe.physics.nape.DebugDraw;

import nape.geom.Vec2;
import nape.phys.Body;
import nape.phys.BodyType;
import nape.shape.Polygon;
import nape.shape.Circle;
import nape.constraint.PivotJoint;


class Main extends luxe.Game {

        //The ball body, so we can access it for key events
    var ball : Body;
        //for attaching to the mouse when dragging
    var mouseJoint : PivotJoint;

        //the impulse to apply when pressing arrows
    var impulse = 900;

    var end : Float = 0.0;
    public function ready() {

        Luxe.physics.fixed_rate = 1/240;
        Luxe.physics.steps = 4;

        // Luxe.core.app.windowing.enable_vsync(true);

        Luxe.timer.schedule(1/60, function(){
            Sys.println(Luxe.time - end);
            end = Luxe.time;
        }, true);

        reset_world();

    } //ready

    function reset_world() {

        var w = Luxe.screen.w;
        var h = Luxe.screen.h;

        mouseJoint = new PivotJoint(Luxe.physics.nape.space.world, null, Vec2.weak(), Vec2.weak());
        mouseJoint.space = Luxe.physics.nape.space;
        mouseJoint.active = false;
        mouseJoint.stiff = false;

        var border = new Body(BodyType.STATIC);

            border.shapes.add(new Polygon(Polygon.rect(0, 0, w, -1)));
            border.shapes.add(new Polygon(Polygon.rect(0, h, w, 1)));
            border.shapes.add(new Polygon(Polygon.rect(0, 0, -1, h)));
            border.shapes.add(new Polygon(Polygon.rect(w, 0, 1, h)));
            border.space = Luxe.physics.nape.space;<commit_msg>Revert "stash change"<commit_after>
import luxe.Input;
import luxe.physics.nape.DebugDraw;

import nape.geom.Vec2;
import nape.phys.Body;
import nape.phys.BodyType;
import nape.shape.Polygon;
import nape.shape.Circle;
import nape.constraint.PivotJoint;


class Main extends luxe.Game {

        //The ball body, so we can access it for key events
    var ball : Body;
        //for attaching to the mouse when dragging
    var mouseJoint : PivotJoint;

        //the impulse to apply when pressing arrows
    var impulse = 900;


    public function ready() {

        reset_world();

    } //ready

    function reset_world() {

        var w = Luxe.screen.w;
        var h = Luxe.screen.h;

        mouseJoint = new PivotJoint(Luxe.physics.nape.space.world, null, Vec2.weak(), Vec2.weak());
        mouseJoint.space = Luxe.physics.nape.space;
        mouseJoint.active = false;
        mouseJoint.stiff = false;

        var border = new Body(BodyType.STATIC);

            border.shapes.add(new Polygon(Polygon.rect(0, 0, w, -1)));
            border.shapes.add(new Polygon(Polygon.rect(0, h, w, 1)));
            border.shapes.add(new Polygon(Polygon.rect(0, 0, -1, h)));
            border.shapes.add(new Polygon(Polygon.rect(w, 0, 1, h)));
            border.space = Luxe.physics.nape.space;
{'fraction_non_alphanumeric': 0.12404447533009035, 'fraction_numerical': 0.014593467685892982, 'mean_word_length': 2.395047169811321, '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': '5808783', 'n_tokens_mistral': 1025, 'n_tokens_neox': 943, 'n_words': 229}