<commit_before>#ifndef PLAYER_H
#define PLAYER_H

class Player
{
	public:
		Player() = default;
		Player(int pos):position_(pos) {};

		// change > 0 ==> earn ; change < 0 ==> spend
		// return value ==> trade success or not
		int currentMoney() { return money_; };
		int getPos()const { return position_; }
		void setPos(int pos) { position_ = pos; };

		Player& operator += ( int money ){
            money_ += money ;
            return *this ;
		}
        Player& operator -= ( int money ){
            if( money_ >= money )
                money_ -= money ;
            return *this ;
		}

	private:
		constexpr static int default_money = 150;
		int money_ = default_money;
		int position_;
};

#endif // PLAYER_H<commit_msg>Initialize<commit_after>#ifndef PLAYER_H
#define PLAYER_H

class Player
{
	public:
		Player() = default;
		Player(int pos):position_(pos) {};

		// change > 0 ==> earn ; change < 0 ==> spend
		// return value ==> trade success or not
		int currentMoney() { return money_; };
		int getPos()const { return position_; }
		void setPos(int pos) { position_ = pos; };

		Player& operator += ( int money ){
            money_ += money ;
            return *this ;
		}
        Player& operator -= ( int money ){
            if( money_ >= money )
                money_ -= money ;
            return *this ;
		}

	private:
		constexpr static int default_money = 150;
		int money_ = default_money;
		int position_ = 0;
};

#endif // PLAYER_H
{'fraction_non_alphanumeric': 0.1266255989048597, 'fraction_numerical': 0.007529089664613279, 'mean_word_length': 2.3302961275626424, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4464177', 'n_tokens_mistral': 493, 'n_tokens_neox': 442, 'n_words': 136}