<commit_before>var gravity = (9.81 / 40);

function EntityPlayer()
{
    this.noClip = false;
    this.fly = false;
    this.inputMotX = 0;
    this.inputMotY = 0;
    this.inputMotZ = 0;
    this.onGround = false;
    this.isJumping = false;
    this.model = null;
    this.avatar = "cat";
    this.username = "Anonymous";

    this._beginUpdate = EntityPlayer.prototype.beginUpdate;
    this.beginUpdate =
    function beginUpdate()
    {
        //Manage gravity and jump
        if(!this.fly && this.motionY > -200)
        {
            this.motionY -= gravity;
        }

        if(this.isJumping)
        {
            this.isJumping = false;
            this.motionY += 1.2;
        }

        this._beginUpdate();

        this.totalMotionX += this.inputMotX;
        this.totalMotionY += this.inputMotY;
        this.totalMotionZ += this.inputMotZ;



        this.inputMotX = 0;
        this.inputMotY = 0;<commit_msg>Added warp if player fall under map<commit_after>var gravity = (9.81 / 40);

function EntityPlayer()
{
    this.noClip = false;
    this.fly = false;
    this.inputMotX = 0;
    this.inputMotY = 0;
    this.inputMotZ = 0;
    this.onGround = false;
    this.isJumping = false;
    this.model = null;
    this.avatar = "cat";
    this.username = "Anonymous";

    this._beginUpdate = EntityPlayer.prototype.beginUpdate;
    this.beginUpdate =
    function beginUpdate()
    {
        //Manage gravity and jump
        if(!this.fly && this.motionY > -200)
        {
            this.motionY -= gravity;
        }

        if(this.y < -100)
        {
            this.setPosition(2, 260, 2);
        }

        if(this.isJumping)
        {
            this.isJumping = false;
            this.motionY += 1.2;
        }

        this._beginUpdate();

        this.totalMotionX += this.inputMotX;
        this.totalMotionY += this.inputMotY;
        this.totalMotionZ += this.inputMotZ;



        this.inputMotX = 0;
        this.inputMotY = 0;
{'fraction_non_alphanumeric': 0.11928934010152284, 'fraction_numerical': 0.019289340101522844, 'mean_word_length': 1.7957446808510638, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '4250848', 'n_tokens_mistral': 709, 'n_tokens_neox': 627, 'n_words': 122}