<commit_before>package com.github.jaystgelais.jrpg.inventory;

public final class Item {
    private final String id;
    private final String description;
    private final boolean useFromMenu;
    private final boolean useInBattle;
    private final boolean requiresTarget;
    private final boolean usageConsumesItem;
    private final ItemAction action;

    private Item(final String id, final String description, final boolean useFromMenu, final boolean useInBattle,
                 final boolean requiresTarget, final boolean usageConsumesItem, final ItemAction action) {
        this.id = id;
        this.description = description;
        this.useFromMenu = useFromMenu;
        this.useInBattle = useInBattle;
        this.requiresTarget = requiresTarget;
        this.usageConsumesItem = usageConsumesItem;
        this.action = action;
    }

    public String getId() {
        return id;
    }

    public String getDescription() {
        return description;
    }

    public boolean canUseFromMenu() {
        return useFromMenu;
    }

    public boolean canUseInBattle() {
        return useInBattle;
    }

    public boolean requiresTarget() {
        return requiresTarget;
    }

    public boolean doesUsageConsumesItem() {
        return usageConsumesItem;
    }

    public ItemAction getAction() {
        return action;
    }

    public static Builder build(final String id, final String description) {
        return new Builder(id, description);
    }

    public static final class Builder {
        private final String id;
        private final String description;
        private boolean useFromMenu = true;
        private boolean useInBattle = true;
        private boolean requiresTarget = false;
        private boolean usageConsumesItem = true;
        private ItemAction action;

        private Builder(final String id, final String description) {
            this.id = id;
            this.description = description;
        }

        public Builder setCanUseFromMenu(final boolean useFromMenu) {
            this.useFromMenu = useFromMenu;
            return this;
        }

        public Builder seCantUseInBattle(final boolean useInBattle) {
            this.useInBattle = useInBattle;
            return this;
        }

        public Builder setRequiresTarget(final boolean requiresTarget) {
            this.requiresTarget = requiresTarget;
            return this;
        }

        public Builder setDoesUsageConsumesItem(final boolean usageConsumesItem) {
            this.usageConsumesItem = usageConsumesItem;
            return this;
        }

        public Builder setAction(final ItemAction action) {
            this.action = action;
            return this;
        }

        public Item createItem() {
            return new Item(id, description, useFromMenu, useInBattle, requiresTarget, usageConsumesItem, action);
        }
    }
}<commit_msg>Separate name/desciption fields in Item<commit_after>package com.github.jaystgelais.jrpg.inventory;

public final class Item {
    private final String id;
    private final String name;
    private final String description;
    private final boolean useFromMenu;
    private final boolean useInBattle;
    private final boolean requiresTarget;
    private final boolean usageConsumesItem;
    private final ItemAction action;

    @SuppressWarnings("checkstyle:parameternumber")
    private Item(final String id, final String name, final String description, final boolean useFromMenu,
                 final boolean useInBattle, final boolean requiresTarget, final boolean usageConsumesItem,
                 final ItemAction action) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.useFromMenu = useFromMenu;
        this.useInBattle = useInBattle;
        this.requiresTarget = requiresTarget;
        this.usageConsumesItem = usageConsumesItem;
        this.action = action;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public boolean canUseFromMenu() {
        return useFromMenu;
    }

    public boolean canUseInBattle() {
        return useInBattle;
    }

    public boolean requiresTarget() {
        return requiresTarget;
    }

    public boolean doesUsageConsumesItem() {
        return usageConsumesItem;
    }

    public ItemAction getAction() {
        return action;
    }

    public static Builder build(final String id, final String description) {
        return new Builder(id, description);
    }

    public static final class Builder {
        private final String id;
        private final String name;
        private String description;
        private boolean useFromMenu = true;
        private boolean useInBattle = true;
        private boolean requiresTarget = false;
        private boolean usageConsumesItem = true;
        private ItemAction action;

        private Builder(final String id, final String name) {
            this.id = id;
            this.name = name;
        }

        public Builder setDescription(final String description) {
            this.description = description;
            return this;
        }

        public Builder setCanUseFromMenu(final boolean useFromMenu) {
            this.useFromMenu = useFromMenu;
            return this;
        }

        public Builder seCantUseInBattle(final boolean useInBattle) {
            this.useInBattle = useInBattle;
            return this;
        }

        public Builder setRequiresTarget(final boolean requiresTarget) {
            this.requiresTarget = requiresTarget;
            return this;
        }

        public Builder setDoesUsageConsumesItem(final boolean usageConsumesItem) {
            this.usageConsumesItem = usageConsumesItem;
            return this;
        }

        public Builder setAction(final ItemAction action) {
            this.action = action;
            return this;
        }

        public Item createItem() {
            return new Item(id, name, description, useFromMenu, useInBattle, requiresTarget, usageConsumesItem, action);
        }
    }
}
{'fraction_non_alphanumeric': 0.05867223918984086, 'fraction_numerical': 0.0, 'mean_word_length': 2.286846275752773, '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': '3138492', 'n_tokens_mistral': 1522, 'n_tokens_neox': 1501, 'n_words': 468}