<commit_before>package avs.models;

import avs.utils.Animator;
import avs.utils.Textures;

import java.util.ArrayList;
import java.awt.image.*;
import java.awt.*;

import javax.swing.*;

public class Tc7 extends Plant {
	Animator anim;
	BufferedImage notEaten;
	BufferedImage halfEaten;
	BufferedImage badlyEaten;

    public Tc7(Textures texx){
		super(100, 114, 50, texx);
		this.hp = 200;
		//this.animation = texx.getTc7Array();
		//anim = new Animator(5,animation);

		this.notEaten = texx.getTc7Frame(0);
		this.halfEaten = texx.getTc7Frame(1);
		this.badlyEaten = texx.getTc7Frame(2);
	}

	public Tc7(double x, double y, Textures texx){
		super(x,y,100,114,50,texx);
		this.animation = texx.getTc7Array();
		anim = new Animator(5,animation);
	}

	public void tick(){

	}

	public void render(Graphics g){
		//g.drawImage(busImage, (int)this.getX(), (int)this.getY(), null);
		//anim.drawAnimation(g,getX(),getY(),width,height,0);
		if(this.hp >= 100){
			g.drawImage(notEaten, (int)this.getX(), (int)this.getY(),width,height, null);
		}
		else if(this.hp < 100 && this.hp >= 50){
			g.drawImage(halfEaten, (int)this.getX(), (int)this.getY(),width,height, null);	
		}
		else if(this.hp < 50 && this.hp > 0){
			g.drawImage(badlyEaten, (int)this.getX(), (int)this.getY(),width,height, null);	
		}
	}
}<commit_msg>Update hp<commit_after>package avs.models;

import avs.utils.Animator;
import avs.utils.Textures;

import java.util.ArrayList;
import java.awt.image.*;
import java.awt.*;

import javax.swing.*;

public class Tc7 extends Plant {
	Animator anim;
	BufferedImage notEaten;
	BufferedImage halfEaten;
	BufferedImage badlyEaten;

    public Tc7(Textures texx){
		super(100, 114, 50, texx);
		this.hp = 600;
		//this.animation = texx.getTc7Array();
		//anim = new Animator(5,animation);

		this.notEaten = texx.getTc7Frame(0);
		this.halfEaten = texx.getTc7Frame(1);
		this.badlyEaten = texx.getTc7Frame(2);
	}

	public Tc7(double x, double y, Textures texx){
		super(x,y,100,114,50,texx);
		this.animation = texx.getTc7Array();
		anim = new Animator(5,animation);
	}

	public void tick(){

	}

	public void render(Graphics g){
		//g.drawImage(busImage, (int)this.getX(), (int)this.getY(), null);
		//anim.drawAnimation(g,getX(),getY(),width,height,0);
		if(this.hp >= 400){
			g.drawImage(notEaten, (int)this.getX(), (int)this.getY(),width,height, null);
		}
		else if(this.hp < 400 && this.hp >= 200){
			g.drawImage(halfEaten, (int)this.getX(), (int)this.getY(),width,height, null);
		}
		else if(this.hp < 200 && this.hp > 0){
			g.drawImage(badlyEaten, (int)this.getX(), (int)this.getY(),width,height, null);
		}
	}
}
{'fraction_non_alphanumeric': 0.17553191489361702, 'fraction_numerical': 0.03419452887537994, 'mean_word_length': 4.440082644628099, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6383828', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1043, 'n_words': 193}