<commit_before>package com.elmakers.mine.bukkit.magic.dao;

import org.bukkit.Material;

import com.elmakers.mine.bukkit.persisted.PersistClass;
import com.elmakers.mine.bukkit.persisted.PersistField;
import com.elmakers.mine.bukkit.persistence.dao.MaterialData;

@PersistClass(schema="magic", name="cost", contained=true)
public class CastingCost
{
    public void addItem(Material material, int count)
    {
        this.item = new MaterialData(material);
        this.count = count;
    }
    
    @PersistField
    public float getHealth()
    {
        return health;
    }
    
    public void setHealth(float health)
    {
        this.health = health;
    }
    
    @PersistField
    public MaterialData getItem()
    {
        return item;
    }
    
    public void setItem(MaterialData item)
    {
        this.item = item;
    }
    
    @PersistField
    public int getCount()
    {
        return count;
    }
    
    public void setCount(int count)
    {
        this.count = count;
    }
    
    protected float        health = 0;
    protected MaterialData item   = null;
    protected int          count  = 0;
}
<commit_msg>Add mana to casting cost.<commit_after>package com.elmakers.mine.bukkit.magic.dao;

import org.bukkit.Material;

import com.elmakers.mine.bukkit.persisted.PersistClass;
import com.elmakers.mine.bukkit.persisted.PersistField;
import com.elmakers.mine.bukkit.persistence.dao.MaterialData;

@PersistClass(schema="magic", name="cost", contained=true)
public class CastingCost
{
    protected float        health = 0;
    protected float        mana   = 0;
    protected MaterialData item   = null;
    protected int          count  = 0;
    
    public void addItem(Material material, int count)
    {
        this.item = new MaterialData(material);
        this.count = count;
    }
    
    @PersistField
    public float getHealth()
    {
        return health;
    }
    
    public void setHealth(float health)
    {
        this.health = health;
    }
    
    @PersistField
    public MaterialData getItem()
    {
        return item;
    }
    
    public void setItem(MaterialData item)
    {
        this.item = item;
    }
    
    @PersistField
    public int getCount()
    {
        return count;
    }
    
    public void setCount(int count)
    {
        this.count = count;
    }
    
    @PersistField
    public float getMana()
    {
        return mana;
    }

    public void setMana(float mana)
    {
        this.mana = mana;
    }

}

{'fraction_non_alphanumeric': 0.0888, 'fraction_numerical': 0.002, 'mean_word_length': 2.106832298136646, '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': '5013537', 'n_tokens_mistral': 792, 'n_tokens_neox': 777, 'n_words': 170}