<commit_before><?php

class HitchwikiHooks {

	/**
	 * Handler for BeforePageDisplay
	 * @param OutputPage $out
	 * @param Skin $skin
	 * @return bool
	 */
	static function onBeforePageDisplay( &$out, &$skin ) {
		// Ensure Hitchwiki skin runs only against Vector skin
		// FIXME: See bug 62897
		if ( $skin->getSkinName() !== 'vector' ) {
			return true;
	  }

		// Add our modules
		$modules = array(
			'skins.vector.hitchwiki'
		);
		$out->addModules( $modules );

		return true;
	}

	/**
	* Disable powered by footer icons
	* Handled at hook BeforePageDisplay
	* @param OutputPage $out
	* @param Skin $skin
	* @return bool
	*/
	static function modifyFooterIcons( &$out, &$skin ) {
		global $wgFooterIcons;
		unset($wgFooterIcons["poweredby"]);
		return true;
	}

}<commit_msg>Hide CC icon from the footer<commit_after><?php

class HitchwikiHooks {

	/**
	 * Handler for BeforePageDisplay
	 * @param OutputPage $out
	 * @param Skin $skin
	 * @return bool
	 */
	static function onBeforePageDisplay( &$out, &$skin ) {
		// Ensure Hitchwiki skin runs only against Vector skin
		// FIXME: See bug 62897
		if ( $skin->getSkinName() !== 'vector' ) {
			return true;
	  }

		// Add our modules
		$modules = array(
			'skins.vector.hitchwiki'
		);
		$out->addModules( $modules );

		return true;
	}

	/**
	* Disable powered by footer icons
	* Handled at hook BeforePageDisplay
	* @param OutputPage $out
	* @param Skin $skin
	* @return bool
	*/
	static function modifyFooterIcons( &$out, &$skin ) {
		global $wgFooterIcons;
		unset($wgFooterIcons["poweredby"]);
		unset($wgFooterIcons["copyright"]);
		return true;
	}

}
{'fraction_non_alphanumeric': 0.13374613003095975, 'fraction_numerical': 0.006191950464396285, 'mean_word_length': 3.4517906336088156, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3593237', 'n_tokens_mistral': 627, 'n_tokens_neox': 546, 'n_words': 152}