<commit_before>import logging
import random
from itertools import chain
from .actions import Draw, Play, Summon
from .card import BaseCard
from .deck import Deck
from .entity import Entity
from .enums import CardType, PlayState, PowSubType, Zone
from .entity import slotProperty
from .managers import PlayerManager
from .targeting import *
from .utils import CardList


class Player(Entity):
	Manager = PlayerManager
	extraDeathrattles = slotProperty("extraDeathrattles")
	outgoingHealingAdjustment = slotProperty("outgoingHealingAdjustment")
	type = CardType.PLAYER

	def __init__(self, name):
		self.data = None
		super().__init__()
		self.name = name
		self.deck = Deck()
		self.hand = CardList()
		self.field = CardList()
		self.secrets = CardList()
		self.buffs = []
		self.maxHandSize = 10
		self.maxResources = 10
		self.currentPlayer = False
		self.fatigueCounter = 0
		self.hero = None
		self.lastCardPlayed = None
		self.overloaded = 0
		self.maxMana = 0
		self.playstate = PlayState.INVALID
		self.tempMana = 0
		self.timeout = 75
		self.timesHeroPowerUsedThisGame = 0
		self.weapon = None
		self.zone = Zone.INVALID

	def __str__(self):
		return self.name

	def __repr__(self):
		return "%s(name=%r, hero=%r)" % (self.__class__.__name__, self.name, self.hero)

	@property
	def controller(self):
		return self

	@property
	def slots(self):
		return self.buffs

	@property
	def mana(self):
		mana = max(0, self.maxMana - self.usedMana) + self.tempMana
		return mana

	@property
	def spellpower(self):
		return sum(minion.spellpower for minion in self.field)
<commit_msg>Initialize Player.minionsKilledThisTurn<commit_after>import logging
import random
from itertools import chain
from .actions import Draw, Play, Summon
from .card import BaseCard
from .deck import Deck
from .entity import Entity
from .enums import CardType, PlayState, PowSubType, Zone
from .entity import slotProperty
from .managers import PlayerManager
from .targeting import *
from .utils import CardList


class Player(Entity):
	Manager = PlayerManager
	extraDeathrattles = slotProperty("extraDeathrattles")
	outgoingHealingAdjustment = slotProperty("outgoingHealingAdjustment")
	type = CardType.PLAYER

	def __init__(self, name):
		self.data = None
		super().__init__()
		self.name = name
		self.deck = Deck()
		self.hand = CardList()
		self.field = CardList()
		self.secrets = CardList()
		self.buffs = []
		self.maxHandSize = 10
		self.maxResources = 10
		self.currentPlayer = False
		self.fatigueCounter = 0
		self.hero = None
		self.lastCardPlayed = None
		self.overloaded = 0
		self.maxMana = 0
		self.playstate = PlayState.INVALID
		self.tempMana = 0
		self.timeout = 75
		self.timesHeroPowerUsedThisGame = 0
		self.minionsKilledThisTurn = 0
		self.weapon = None
		self.zone = Zone.INVALID

	def __str__(self):
		return self.name

	def __repr__(self):
		return "%s(name=%r, hero=%r)" % (self.__class__.__name__, self.name, self.hero)

	@property
	def controller(self):
		return self

	@property
	def slots(self):
		return self.buffs

	@property
	def mana(self):
		mana = max(0, self.maxMana - self.usedMana) + self.tempMana
		return mana

	@property
	def spellpower(self):
		return sum(minion.spellpower for minion in self.field)

{'fraction_non_alphanumeric': 0.09599254426840634, 'fraction_numerical': 0.007766387076731904, 'mean_word_length': 4.235772357723577, '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': '1026624', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1061, 'n_words': 291}