<commit_before>def _TAG(tag, default):
	func = property(lambda self: self.tags.get(tag, default))
	@func.setter
	def _ret(self, value):
		self.setTag(tag, value)
	return _ret


class CardList(list):
	def __contains__(self, x):
		for item in self:
			if x is item:
				return True
		return False

	def contains(self, x):
		"True if list contains any instance of x"
		for item in self:
			if x == item:
				return True
		return False

	def index(self, x):
		for i, item in enumerate(self):
			if x is item:
				return i
		raise ValueError

	def filterByTag(self, tag):
		return [card for card in self if card.tags.get(tag)]

	def filterByType(self, type):
		return [card for card in self if card.type == type]

	def filterByRace(self, race):
		return [card for card in self if card.race == race]<commit_msg>Implement CardList.remove()<commit_after>def _TAG(tag, default):
	func = property(lambda self: self.tags.get(tag, default))
	@func.setter
	def _ret(self, value):
		self.setTag(tag, value)
	return _ret


class CardList(list):
	def __contains__(self, x):
		for item in self:
			if x is item:
				return True
		return False

	def contains(self, x):
		"True if list contains any instance of x"
		for item in self:
			if x == item:
				return True
		return False

	def index(self, x):
		for i, item in enumerate(self):
			if x is item:
				return i
		raise ValueError

	def remove(self, x):
		for i, item in enumerate(self):
			if x is item:
				del self[i]
				return
		raise ValueError

	def filterByTag(self, tag):
		return [card for card in self if card.tags.get(tag)]

	def filterByType(self, type):
		return [card for card in self if card.type == type]

	def filterByRace(self, race):
		return [card for card in self if card.race == race]
{'fraction_non_alphanumeric': 0.10206422018348624, 'fraction_numerical': 0.0, 'mean_word_length': 3.4629156010230178, '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': '3579208', 'n_tokens_mistral': 666, 'n_tokens_neox': 589, 'n_words': 229}