<commit_before>package BeanPlant.the_DJDJ.JavaText.user;

import BeanPlant.the_DJDJ.JavaText.world.Location;

/**
 * A player object. This stores all of the information about a specific player.
 *
 * @author the_DJDJ
 */
public class Player {
    
    /** The name of the player. */
    private String name;
    
    /** The amount of health that the player has. */
    private int health;
    
    /** The player's current location in the world. */
    private Location location;
    
    /** The player's inventory. */
    private final Inventory inventory;
    
    /**
     * The default constructor. This assigns all of the default values and
     * instantiates a new player object.
     * 
     * @param name The name of the player
     * @param health The amount of health that the player has
     * @param location The current location of the player
     */
    public Player(String name, int health, Location location) {
        
        this.name = name;
        this.health = health;
        this.location = location;
        this.inventory = new Inventory();
        
    }
    <commit_msg>[fix] Made Player serializable<commit_after>package BeanPlant.the_DJDJ.JavaText.user;

import BeanPlant.the_DJDJ.JavaText.world.Location;

import java.io.Serializable;

/**
 * A player object. This stores all of the information about a specific player.
 *
 * @author the_DJDJ
 */
public class Player implements Serializable {
    
    /** The name of the player. */
    private String name;
    
    /** The amount of health that the player has. */
    private int health;
    
    /** The player's current location in the world. */
    private Location location;
    
    /** The player's inventory. */
    private final Inventory inventory;
    
    /**
     * The default constructor. This assigns all of the default values and
     * instantiates a new player object.
     * 
     * @param name The name of the player
     * @param health The amount of health that the player has
     * @param location The current location of the player
     */
    public Player(String name, int health, Location location) {
        
        this.name = name;
        this.health = health;
        this.location = location;
        this.inventory = new Inventory();
        
    }
    
{'fraction_non_alphanumeric': 0.08124725516029864, 'fraction_numerical': 0.0, 'mean_word_length': 2.3062409288824384, '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': '7652651', 'n_tokens_mistral': 626, 'n_tokens_neox': 600, 'n_words': 237}