<commit_before>{include file='header' pageTitle='wcf.acp.dataImport'}

<script data-relocate="true">
	//<![CDATA[
	$(function() {
		{if $queue|isset}
			WCF.Language.addObject({
				'wcf.acp.dataImport': '{lang}wcf.acp.dataImport{/lang}',
				'wcf.acp.dataImport.completed': '{lang}wcf.acp.dataImport.completed{/lang}',
				{implode from=$importers item=importer}'wcf.acp.dataImport.data.{@$importer}': '{lang}wcf.acp.dataImport.data.{@$importer}{/lang}'{/implode}
			});
			
			var $queues = [ {implode from=$queue item=item}'{@$item}'{/implode} ];
			new WCF.ACP.Import.Manager($queues, '{link controller='RebuildData'}{/link}');
		{/if}
		
		$('.jsImportSection').change(function(event) {
			var $section = $(event.currentTarget);
			
			if ($section.is(':checked')) {
				$section.parent().next().find('input[type=checkbox]').prop('checked', 'checked');
			}
			else {
				$section.parent().next().find('input[type=checkbox]').prop('checked', false);
			}
		});

		$('.jsImportItem').change(function(event) {
			var $item = $(event.currentTarget);
			if ($item.is(':checked')) {
				$item.parents('.jsImportCollection').find('.jsImportSection').prop('checked', 'checked');
			}
			else {
				var $collection = $item.parents('.jsImportCollection');
				var $checkedItems = $collection.find('.jsImportItem:checked');
				if (!$checkedItems.length) {
					$collection.find('.jsImportSection').prop('checked', false);
				}
			}
		});
	});
	//]]>
</script>

<header class="boxHeadline">
	<h1>{lang}wcf.acp.dataImport{/lang}</h1>
	{if $exporterName}
		<p>{lang}wcf.acp.dataImport.exporter.{@$exporterName}{/lang}</p>
	{/if}
</header>

{if $errorField}
	<p class="error">{lang}wcf.global.form.error{/lang}</p>
{/if}

{if $showInnoDBWarning}
	<p class="warning">{lang}wcf.acp.index.innoDBWarning{/lang}</p>
{/if}

<div class="contentNavigation">
	{hascontent}
		<nav>
			<ul>
				{content}
					{event name='contentNavigationButtons'}
				{/content}
			</ul><commit_msg>Allow selection of category itself for import<commit_after>{include file='header' pageTitle='wcf.acp.dataImport'}

<script data-relocate="true">
	//<![CDATA[
	$(function() {
		{if $queue|isset}
			WCF.Language.addObject({
				'wcf.acp.dataImport': '{lang}wcf.acp.dataImport{/lang}',
				'wcf.acp.dataImport.completed': '{lang}wcf.acp.dataImport.completed{/lang}',
				{implode from=$importers item=importer}'wcf.acp.dataImport.data.{@$importer}': '{lang}wcf.acp.dataImport.data.{@$importer}{/lang}'{/implode}
			});
			
			var $queues = [ {implode from=$queue item=item}'{@$item}'{/implode} ];
			new WCF.ACP.Import.Manager($queues, '{link controller='RebuildData'}{/link}');
		{/if}
		
		$('.jsImportSection').change(function(event) {
			var $section = $(event.currentTarget);
			
			if ($section.is(':checked')) {
				$section.parent().next().find('input[type=checkbox]').prop('checked', 'checked');
			}
			else {
				$section.parent().next().find('input[type=checkbox]').prop('checked', false);
			}
		});
		
		$('.jsImportItem').change(function(event) {
			var $item = $(event.currentTarget);
			if ($item.is(':checked')) {
				$item.parents('.jsImportCollection').find('.jsImportSection').prop('checked', 'checked');
			}
		});
	});
	//]]>
</script>

<header class="boxHeadline">
	<h1>{lang}wcf.acp.dataImport{/lang}</h1>
	{if $exporterName}
		<p>{lang}wcf.acp.dataImport.exporter.{@$exporterName}{/lang}</p>
	{/if}
</header>

{if $errorField}
	<p class="error">{lang}wcf.global.form.error{/lang}</p>
{/if}

{if $showInnoDBWarning}
	<p class="warning">{lang}wcf.acp.index.innoDBWarning{/lang}</p>
{/if}

<div class="contentNavigation">
	{hascontent}
		<nav>
			<ul>
				{content}
					{event name='contentNavigationButtons'}
				{/content}
			</ul>
{'fraction_non_alphanumeric': 0.22897070679924753, 'fraction_numerical': 0.0010749798441279225, 'mean_word_length': 4.613876319758672, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '1883514', 'n_tokens_mistral': 1564, 'n_tokens_neox': 1386, 'n_words': 168}