<commit_before>package mmbn;

public class ShopItem extends Item {
    protected int stock;
    protected int price;
    
    public ShopItem(byte[] base) {
        super(base);
        this.stock = 0;
        this.price = 0;
    }
    
    public int getStock() {
        return this.stock;
    }
    public void setStock(int stock) {
        this.stock = stock;
    }
    
    public int getPrice() {
        return this.price;
    }
    public void setPrice(int price) {
        this.price = price;
    }
}<commit_msg>Added way to clone ShopItem and replace all properties inherited from Item.<commit_after>package mmbn;

public class ShopItem extends Item {
    protected int stock;
    protected int price;
    
    public ShopItem(byte[] base) {
        super(base);
        this.stock = 0;
        this.price = 0;
    }
    public ShopItem(ShopItem shopItem) {
        super(shopItem);
        this.stock = shopItem.stock;
        this.price = shopItem.price;
    }
    
    public void setItem(Item item) {
        this.type = item.type;
        this.value = item.value;
        this.subValue = item.subValue;
        this.chip = item.chip;
    }
    
    public int getStock() {
        return this.stock;
    }
    public void setStock(int stock) {
        this.stock = stock;
    }
    
    public int getPrice() {
        return this.price;
    }
    public void setPrice(int price) {
        this.price = price;
    }
}
{'fraction_non_alphanumeric': 0.0935754189944134, 'fraction_numerical': 0.002793296089385475, 'mean_word_length': 1.866, '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': '7520971', 'n_tokens_mistral': 439, 'n_tokens_neox': 429, 'n_words': 117}