<commit_before><?php

// namespace SpellingDictionary;

class AdminRights {
	public function displayAllWords() {
		global $wgSpellingDictionaryDatabase;
		$dbr = wfGetDB( DB_SLAVE, array(), $wgSpellingDictionaryDatabase );
		$rows = $dbr->select(
			'spell_dict_word_list',
			'*',
			1,
			__METHOD__
		);
		$result = array();
		$words = '<b>Spelling &nbsp;&nbsp;&nbsp;&nbsp;Language</b><br>';
		foreach ( $rows as $row ) {
			$words .= "<span class = \"spelling\">".$row->sd_word .
			"</span><span class = \"language\">" . $row->sd_language . "</span><br>";
		}
		return $words;
	}

	public function displayByLanguage( $language ) {
		global $wgSpellingDictionaryDatabase;
		$dbr = wfGetDB( DB_SLAVE, array(), $wgSpellingDictionaryDatabase );
		$rows = $dbr->select(
			'spell_dict_word_list',
			'*',
			array(
				'sd_language' => $language,<commit_msg>Passed formdata to function not explicit field data<commit_after><?php

// namespace SpellingDictionary;

class AdminRights {
	public function displayAllWords() {
		global $wgSpellingDictionaryDatabase;
		$dbr = wfGetDB( DB_SLAVE, array(), $wgSpellingDictionaryDatabase );
		$rows = $dbr->select(
			'spell_dict_word_list',
			'*',
			1,
			__METHOD__
		);
		$result = array();
		$words = '<b>Spelling &nbsp;&nbsp;&nbsp;&nbsp;Language</b><br>';
		foreach ( $rows as $row ) {
			$words .= "<span class = \"spelling\">".$row->sd_word .
			"</span><span class = \"language\">" . $row->sd_language . "</span><br>";
		}
		return $words;
	}

	public function displayByLanguage( $formData ) {
		global $wgSpellingDictionaryDatabase;
		$dbr = wfGetDB( DB_SLAVE, array(), $wgSpellingDictionaryDatabase );
		$rows = $dbr->select(
			'spell_dict_word_list',
			'*',
			array(
				'sd_language' => $formData['language'],
{'fraction_non_alphanumeric': 0.17440543601359004, 'fraction_numerical': 0.0011325028312570782, 'mean_word_length': 4.290419161676646, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 29, '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': '4977092', 'n_tokens_mistral': 688, 'n_tokens_neox': 619, 'n_words': 120}