<commit_before>package com.norwand.game.management.gamedata.environement.entities.monsters;

import com.badlogic.gdx.graphics.Pixmap;
import com.norwand.game.management.gamedata.GameData;
import com.norwand.game.management.gamedata.environement.Floor;
import com.norwand.game.management.gamedata.environement.entities.Monster;
import com.norwand.game.resources.ImagesHolder;
import com.norwand.game.utility.objects.DoubleRectangle;
import com.norwand.game.utility.objects.MathVector;
import com.norwand.game.utility.objects.Position;

/**
 * Created by V-SSK on 17/05/2016.
 */
public class DevilEye extends Monster {
    public DevilEye(Floor roompointer, double x, double y) {
        super(roompointer, x, y);
    }
    private int nextjumpin = 175;
    private int spritecounter = 10;
    private MathVector jumpdirection;

    @Override
    public void update() {
        --nextjumpin;
        if(nextjumpin == 0){
            jumpdirection = new MathVector(GameData.get().player.x - posX, GameData.get().player.y - posY);
        }else if(nextjumpin < -20){
            nextjumpin = 175;
        }
        if (nextjumpin < 0){
            Position temp = jumpdirection.getFixedTranslation(posX, posY, 0.08);
            if (canBeAt(temp.x, temp.y)) {
                posX = temp.x;
                posY = temp.y;
            }
        }
        --spritecounter;
        if (spritecounter < 0)
            spritecounter = 50;
        if(knockback())
            GameData.get().player.info.health -= 0.5;

    }

    @Override
    public Pixmap getCurrentSprite() {
        if(nextjumpin < 0)
            return ImagesHolder.entityset.getTile(794);
        return ImagesHolder.entityset.getTile((spritecounter < 25) ? 786 : 794);
    }

    @Override
    public void onAct() {

    }

    @Override
    public DoubleRectangle getHitbox(double posX, double posY) {
        return new DoubleRectangle(posX - 0.35, posY - 0.35, 0.7, 0.7);
    }

    @Override
    public void onhit(double damage) {
    kill();
    }
}<commit_msg>Change Devileye<commit_after>package com.norwand.game.management.gamedata.environement.entities.monsters;

import com.badlogic.gdx.graphics.Pixmap;
import com.norwand.game.management.gamedata.GameData;
import com.norwand.game.management.gamedata.environement.Floor;
import com.norwand.game.management.gamedata.environement.entities.Monster;
import com.norwand.game.resources.ImagesHolder;
import com.norwand.game.utility.objects.DoubleRectangle;
import com.norwand.game.utility.objects.MathVector;
import com.norwand.game.utility.objects.Position;

/**
 * Created by V-SSK on 17/05/2016.
 */
public class DevilEye extends Monster {
    public DevilEye(Floor roompointer, double x, double y) {
        super(roompointer, x, y);
    }
    private int spritecounter = 10;
    private MathVector direction;

    @Override
    public void update() {

        direction = new MathVector(GameData.get().player.x - posX, GameData.get().player.y - posY);
        if (direction.getBasicLength() < 4){
            Position temp = direction.getFixedTranslation(posX, posY, (spritecounter>33)?0.1:0.8);
            posX = temp.x;
            posY = temp.y;
        }

        --spritecounter;
        if (spritecounter < 0 )
            spritecounter = 40;
        if(knockback())
            GameData.get().player.info.health -= 0.25;

    }

    @Override
    public Pixmap getCurrentSprite() {
        return ImagesHolder.entityset.getTile((spritecounter < 25) ? 786 : 794);
    }

    @Override
    public void onAct() {

    }

    @Override
    public DoubleRectangle getHitbox(double posX, double posY) {
        return new DoubleRectangle(posX - 0.35, posY - 0.35, 0.7, 0.7);
    }

    @Override
    public void onhit(double damage) {
    kill();
    }
}
{'fraction_non_alphanumeric': 0.11504892885480032, 'fraction_numerical': 0.02406770695583179, 'mean_word_length': 2.633045148895293, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 4, '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': '3114585', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1208, 'n_words': 240}