<commit_before># -*- coding: utf-8 -*-

from models import item
import core.command


class stats(core.command.command):
	def run(self):
		"""
		c.run()

		Display the player's stats.
		"""
		return self._player.getStats()

	def render(self, data):
		output = list()
		longestStat = max({len(stat): stat for stat in data.keys()})
		for i in data:
			output.append('{0}{1}'.format(i.ljust(longestStat + 3), str(data[i]).rjust(4)))

		return '\n'.join(output)<commit_msg>The keys for the stats are changed in uppercase<commit_after># -*- coding: utf-8 -*-

from models import item
import core.command


class stats(core.command.command):
	def run(self):
		"""
		c.run()

		Display the player's stats.
		"""
		return self._player.getStats()

	def render(self, data):
		output = list()
		longestStat = max({len(stat): stat for stat in data.keys()})
		for i in data:
			output.append('{0}{1}'.format(i.upper().ljust(longestStat + 3), str(data[i]).rjust(4)))

		return '\n'.join(output)
{'fraction_non_alphanumeric': 0.17653061224489797, 'fraction_numerical': 0.01020408163265306, 'mean_word_length': 3.905, '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': '3789944', 'n_tokens_mistral': 374, 'n_tokens_neox': 338, 'n_words': 89}