<commit_before>from i18n import i18n
import time

''' Function to generate the wikitext for the report page
	@param wiki - Language code for the wiki (eg: 'en', 'es', 'it')
	@param content - Python 2D array (nested list) containing table entries
	@param desc - Key to the description message of the report
'''

def display_report( wiki, content, desc ):

	# Find out the dictionary containing messages for given wiki/language code
	dict_obj = i18n.lang_dicts[ str( wiki + 'dict') ]

	wikitext = dict_obj[ str( desc ) ] + ' -- [[User:Community Tech bot|Community Tech bot]] ([[User talk:Community Tech bot|talk]]) <onlyinclude>~~~~~</onlyinclude>\n'
	wikitext = wikitext + '{| class="wikitable sortable" \n |- \n'
	collen = len( content[0] )
	rowlen = len( content )

	for x in range( 0, collen ):
		wikitext = wikitext + '! ' + dict_obj[ str( content[0][x] ) ] + '\n'

	for x in range( 1, rowlen ):
		wikitext = wikitext + '|- \n'
		for i in range( 0, collen ):
			wikitext = wikitext + '| ' + str( content[x][i] ) + '\n'

	wikitext = wikitext + '|}'
	return wikitext<commit_msg>Minor fixes<commit_after>from i18n import i18n
import time

''' Function to generate the wikitext for the report page
	@param wiki - Language code for the wiki (eg: 'en', 'es', 'it')
	@param content - Python 2D array (nested list) containing table entries
	@param desc - Key to the description message of the report
'''

def display_report( wiki, content, desc ):

	# Find out the dictionary containing messages for given wiki/language code
	dict_obj = i18n.lang_dicts[ str( wiki + 'dict') ]

	wikitext = dict_obj[ str( desc ) ] + ' -- ~~~~ <onlyinclude>...</onlyinclude>\n'
	wikitext = wikitext + '{| class="wikitable sortable" \n |- \n'
	collen = len( content[0] )
	rowlen = len( content )

	for x in range( 0, collen ):
		wikitext = wikitext + '! ' + dict_obj[ str( content[0][x] ) ] + '\n'

	for x in range( 1, rowlen ):
		wikitext = wikitext + '|- \n'
		for i in range( 0, collen ):
			wikitext = wikitext + '| ' + str( content[x][i] ) + '\n'

	wikitext = wikitext + '|}'
	return wikitext
{'fraction_non_alphanumeric': 0.1476833976833977, 'fraction_numerical': 0.011583011583011582, 'mean_word_length': 3.7437070938215102, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2705602', 'n_tokens_mistral': 781, 'n_tokens_neox': 732, 'n_words': 247}