<commit_before>package wge3.entity.terrainelements;

public abstract class Item extends MapObject {
    
    protected String name;
    protected int value;

    public Item() {
        
        blocksVision = false;
    }

    public String getName() {
        return name;
    }
    
    public abstract void use();

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + (this.name != null ? this.name.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Item other = (Item) obj;
        return !((this.name == null) ? (other.name != null) : !this.name.equals(other.name));<commit_msg>Item.use() now takes a Creature as an argument.<commit_after>package wge3.entity.terrainelements;

import wge3.entity.character.Creature;

public abstract class Item extends MapObject {
    
    protected String name;
    protected int value;

    public Item() {
        
        blocksVision = false;
    }

    public String getName() {
        return name;
    }
    
    public abstract void use(Creature user);

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + (this.name != null ? this.name.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Item other = (Item) obj;
        return !((this.name == null) ? (other.name != null) : !this.name.equals(other.name));
{'fraction_non_alphanumeric': 0.11372774267662263, 'fraction_numerical': 0.006318207926479035, 'mean_word_length': 1.917922948073702, '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': '6605225', 'n_tokens_mistral': 512, 'n_tokens_neox': 497, 'n_words': 147}