<commit_before><?php
/**
 * Tilesheets
 *
 * @file
 * @ingroup Extensions
 * @version 1.1.3
 * @author Jinbobo <<EMAIL>>
 * @author <NAME>
 * @author Telshin <<EMAIL>>
 * @author Noahm <<EMAIL>>
 * @license
 */

if( !defined( 'MEDIAWIKI' ) )
	die( 'This file is a MediaWiki extension, it is not a valid entry point' );


$wgShowExceptionDetails = true;

$wgExtensionCredits['parserhooks'][] = array(
	'path' => __FILE__,
	'name' => 'Tilesheets',
	'descriptionmsg' => 'tilesheets-desc',
	'version' => '1.1.3',
	'author' => '[http://ftb.gamepedia.com/User:Jinbobo Jinbobo], [http://ftb.gamepedia.com/User:Retep998 <NAME>], [http://ftb.gamepedia.com/User:SatanicSanta Eli Foster], Telshin, Noahm',
	'url' => 'http://help.gamepedia.com/Extension:Tilesheets'
);

// Setup logging
$wgLogTypes[] = 'tilesheet';
$wgLogActionsHandlers['tilesheet/*'] = 'LogFormatter';

// Load extension files
$wgMessagesDirs['Tilesheets'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['Tilesheets'] = __DIR__ . "/Tilesheets.i18n.php";
$wgExtensionMessagesFiles['TilesheetsMagic'] = __DIR__ . "/Tilesheets.i18n.magic.php";

$wgAutoloadClasses['Tilesheets'] = __DIR__ . "/Tilesheets.body.php";
$wgAutoloadClasses['TilesheetsError'] = __DIR__ . "/Tilesheets.body.php";
$wgAutoloadClasses['TilesheetsHooks'] = __DIR__ . "/Tilesheets.hooks.php";
$wgAutoloadClasses['TilesheetsForm'] = __DIR__ . "/classes/TilesheetsForm.php";

$wgAutoloadClasses['TileList'] = __DIR__ . "/special/TileList.php";
$wgAutoloadClasses['SheetList'] = __DIR__ . "/special/SheetList.php";
$wgAutoloadClasses['CreateTileSheet'] = __DIR__ . "/special/CreateTileSheet.php";
$wgAutoloadClasses['TileManager'] = __DIR__ . "/special/TileManager.php";
$wgAutoloadClasses['SheetManager'] = __DIR__ . "/special/SheetManager.php";

$wgSpecialPages['TileList'] = "TileList";
$wgSpecialPageGroups['TileList'] = "tilesheet";
$wgSpecialPages['SheetList'] = "SheetList";
$wgSpecialPageGroups['SheetList'] = "tilesheet";
$wgSpecialPages['CreateTileSheet'] = "CreateTileSheet";
$wgSpecialPageGroups['CreateTileSheet'] = "tilesheet";
$wgSpecialPages['TileManager'] = "TileManager";
$wgSpecialPageGroups['TileManager'] = "tilesheet";
$wgSpecialPages['SheetManager'] = "SheetManager";
$wgSpecialPageGroups['SheetManager'] = "tilesheet";

$wgHooks['ParserFirstCallInit'][] = 'TilesheetsHooks::SetupParser';
$wgHooks['BeforePageDisplay'][] = 'TilesheetsHooks::BeforePageDisplay';
$wgHooks['EditPage::showEditForm:initial'][] = 'TilesheetsHooks::OutputWarnings';
$wgHooks['OreDictOutput'][] = 'TilesheetsHooks::OreDictOutput';
$wgHooks['LoadExtensionSchemaUpdates'][] = 'TilesheetsHooks::SchemaUpdate';

$paths = [
	'localBasePath' => __DIR__,
	'remoteExtPath' => 'Tilesheets',
];
$wgResourceModules += [
	'ext.tilesheets' => $paths + [
		'styles' => 'css/tilesheets.css',
	],
	'ext.tilesheets.special' => $paths + [
		'styles'   => 'css/tilesheets.special.css',
	],
];

// Default configuration
$wgTilesheetsDebug = false;
<commit_msg>Add wgAvailableRights<commit_after><?php
/**
 * Tilesheets
 *
 * @file
 * @ingroup Extensions
 * @version 1.1.3
 * @author Jinbobo <<EMAIL>>
 * @author <NAME>
 * @author Telshin <<EMAIL>>
 * @author Noahm <<EMAIL>>
 * @license
 */

if( !defined( 'MEDIAWIKI' ) )
	die( 'This file is a MediaWiki extension, it is not a valid entry point' );


$wgShowExceptionDetails = true;

$wgExtensionCredits['parserhooks'][] = array(
	'path' => __FILE__,
	'name' => 'Tilesheets',
	'descriptionmsg' => 'tilesheets-desc',
	'version' => '1.1.3',
	'author' => '[http://ftb.gamepedia.com/User:Jinbobo Jinbobo], [http://ftb.gamepedia.com/User:Retep998 <NAME>], [http://ftb.gamepedia.com/User:SatanicSanta Eli Foster], Telshin, Noahm',
	'url' => 'http://help.gamepedia.com/Extension:Tilesheets'
);

// Setup logging
$wgLogTypes[] = 'tilesheet';
$wgLogActionsHandlers['tilesheet/*'] = 'LogFormatter';

// Load extension files
$wgMessagesDirs['Tilesheets'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['Tilesheets'] = __DIR__ . "/Tilesheets.i18n.php";
$wgExtensionMessagesFiles['TilesheetsMagic'] = __DIR__ . "/Tilesheets.i18n.magic.php";

$wgAutoloadClasses['Tilesheets'] = __DIR__ . "/Tilesheets.body.php";
$wgAutoloadClasses['TilesheetsError'] = __DIR__ . "/Tilesheets.body.php";
$wgAutoloadClasses['TilesheetsHooks'] = __DIR__ . "/Tilesheets.hooks.php";
$wgAutoloadClasses['TilesheetsForm'] = __DIR__ . "/classes/TilesheetsForm.php";

$wgAutoloadClasses['TileList'] = __DIR__ . "/special/TileList.php";
$wgAutoloadClasses['SheetList'] = __DIR__ . "/special/SheetList.php";
$wgAutoloadClasses['CreateTileSheet'] = __DIR__ . "/special/CreateTileSheet.php";
$wgAutoloadClasses['TileManager'] = __DIR__ . "/special/TileManager.php";
$wgAutoloadClasses['SheetManager'] = __DIR__ . "/special/SheetManager.php";

$wgSpecialPages['TileList'] = "TileList";
$wgSpecialPageGroups['TileList'] = "tilesheet";
$wgSpecialPages['SheetList'] = "SheetList";
$wgSpecialPageGroups['SheetList'] = "tilesheet";
$wgSpecialPages['CreateTileSheet'] = "CreateTileSheet";
$wgSpecialPageGroups['CreateTileSheet'] = "tilesheet";
$wgSpecialPages['TileManager'] = "TileManager";
$wgSpecialPageGroups['TileManager'] = "tilesheet";
$wgSpecialPages['SheetManager'] = "SheetManager";
$wgSpecialPageGroups['SheetManager'] = "tilesheet";

$wgHooks['ParserFirstCallInit'][] = 'TilesheetsHooks::SetupParser';
$wgHooks['BeforePageDisplay'][] = 'TilesheetsHooks::BeforePageDisplay';
$wgHooks['EditPage::showEditForm:initial'][] = 'TilesheetsHooks::OutputWarnings';
$wgHooks['OreDictOutput'][] = 'TilesheetsHooks::OreDictOutput';
$wgHooks['LoadExtensionSchemaUpdates'][] = 'TilesheetsHooks::SchemaUpdate';

$wgAvailableRights[] = 'edittilesheets';
$wgAvailableRights[] = 'importtilesheets';

$paths = [
	'localBasePath' => __DIR__,
	'remoteExtPath' => 'Tilesheets',
];
$wgResourceModules += [
	'ext.tilesheets' => $paths + [
		'styles' => 'css/tilesheets.css',
	],
	'ext.tilesheets.special' => $paths + [
		'styles'   => 'css/tilesheets.special.css',
	],
];

// Default configuration
$wgTilesheetsDebug = false;

{'fraction_non_alphanumeric': 0.18726093464160984, 'fraction_numerical': 0.004989190088142358, 'mean_word_length': 7.0079893475366175, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 43, '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': '7078939', 'n_tokens_mistral': 2293, 'n_tokens_neox': 2154, 'n_words': 311}