<commit_before><a class="pagetitle" href="tiki-file_galleries.php?galleryId={$galleryId}">{tr}File Galleries{/tr}</a><br/><br/>
{if $tiki_p_create_file_galleries eq 'y'}
{if $edit_mode eq 'y'}
<h3>{tr}Create or edit a file gallery using this form{/tr}</h3>
{if $individual eq 'y'}
<a class="fgallink" href="tiki-objectpermissions.php?objectName=file%20gallery%20{$name}&amp;objectType=file%20gallery&amp;permType=file%20galleries&amp;objectId={$galleryId}">{tr}There are individual permissions set for this file gallery{/tr}</a>
{/if}
<div  align="center">
<form action="tiki-file_galleries.php" method="post">
<input type="hidden" name="galleryId" value="{$galleryId}" />
<table class="editfgalform">
<tr><td class="editfgalform">{tr}Name{/tr}:</td><td class="editfgalform"><input type="text" name="name" value="{$name}"/></td></tr>
<tr><td class="editfgalform">{tr}Description{/tr}:</td><td class="editfgalform"><textarea rows="5" cols="40" name="description">{$description}</textarea></td></tr>
<!--<tr><td>{tr}Theme{/tr}:</td><td><select name="theme">
       <option value="default" {if $theme eq 'default'}selected="selected"{/if}>default</option>
       <option value="dark" {if $theme eq 'dark'}selected="selected"{/if}>dark</option>
       </select></td></tr>-->
{if $tiki_p_admin_file_galleries eq 'y'}       
<tr><td class="editfgalform">{tr}Gallery is visible to non-admin users?{/tr}</td><td class="editfgalform"><input type="checkbox" name="visible" {if $visible eq 'y'}checked="checked"{/if} /></td></tr>       
{/if}
<tr>
	<td class="editfgalform">{tr}Listing configuration{/tr}</td>
	<td class="editfgalform">
		<table width="100%">
			<tr>
				<td class="editfgalform">{tr}icon{/tr}</td>
				<td class="editfgalform">{tr}id{/tr}</td>
				<td class="editfgalform">{tr}name{/tr}</td>
				<td class="editfgalform">{tr}size{/tr}</td>
				<td class="editfgalform">{tr}description{/tr}</td>
				<td class="editfgalform">{tr}created{/tr}</td>
				<td class="editfgalform">{tr}downloads{/tr}</td>
			</tr>
			<tr>
				<td class="editfgalform"><input type="checkbox" name="show_icon" {if $show_icon eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform"><input type="checkbox" name="show_id" {if $show_id eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform">
					<select name="show_name">
						<option value="a" {if $show_name eq 'n'}selected="selected"{/if}>{tr}Name-filename{/tr}</option>
						<option value="n" {if $show_name eq 'f'}selected="selected"{/if}>{tr}Name{/tr}</option>
						<option value="f" {if $show_name eq 'f'}selected="selected"{/if}>{tr}Filename only{/tr}</option>
					</select>
				</td>
				<td class="editfgalform"><input type="checkbox" name="show_size" {if $show_size eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform"><input type="checkbox" name="show_description" {if $show_description eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform"><input type="checkbox" name="show_created" {if $show_created eq 'y'} checked="checked"{/if} />{/tr}</td>
				<td class="editfgalform"><input type="checkbox" name="show_dl" {if $show_dl eq 'y'} checked="checked"{/if} /></td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td class="editfgalform">{tr}Max description display size{/tr}</td>
	<td class="editfgalform"><input type="text" name="max_desc" value="{$max_desc}" /></td>
</tr>
<tr><td class="editfgalform">{tr}Max Rows per page{/tr}:</td><td class="editfgalform"><input type="text" name="maxRows" value="{$maxRows}" /></td></tr>
{include file=categorize.tpl}
<tr><td class="editfgalform">{tr}Other users can upload files to this gallery{/tr}:</td><td class="editfgalform"><input type="checkbox" name="public" {if $public eq 'y'}checked="checked"{/if}/></td></tr>
<tr><td class="editfgalform">&nbsp;</td><td class="editfgalform"><input type="submit" value="{tr}edit/create{/tr}" name="edit" /></td></tr>
</table>
</form>
</div>
<br/>
{/if}
{/if}
{if $galleryId>0}
{if $edited eq 'y'}
<div class="wikitext">
{tr}You can access the file gallery using the following URL{/tr}: <a class="fgallink" href="{$url}?galleryId={$galleryIdl}">{$url}?galleryId={$galleryId}</a>
</div>
{/if}
{/if}

<h2>{tr}Available File Galleries{/tr}</h2><commit_msg>fixed the bug that prevented to create new file galleries, and also fixed show_name select match<commit_after><a class="pagetitle" href="tiki-file_galleries.php?galleryId={$galleryId}">{tr}File Galleries{/tr}</a><br/><br/>
{if $tiki_p_create_file_galleries eq 'y'}
{if $edit_mode eq 'y'}
<h3>{tr}Create or edit a file gallery using this form{/tr}</h3>
{if $individual eq 'y'}
<a class="fgallink" href="tiki-objectpermissions.php?objectName=file%20gallery%20{$name}&amp;objectType=file%20gallery&amp;permType=file%20galleries&amp;objectId={$galleryId}">{tr}There are individual permissions set for this file gallery{/tr}</a>
{/if}
<div  align="center">
<form action="tiki-file_galleries.php" method="post">
<input type="hidden" name="galleryId" value="{$galleryId}" />
<table class="editfgalform">
<tr><td class="editfgalform">{tr}Name{/tr}:</td><td class="editfgalform"><input type="text" name="name" value="{$name}"/></td></tr>
<tr><td class="editfgalform">{tr}Description{/tr}:</td><td class="editfgalform"><textarea rows="5" cols="40" name="description">{$description}</textarea></td></tr>
<!--<tr><td>{tr}Theme{/tr}:</td><td><select name="theme">
       <option value="default" {if $theme eq 'default'}selected="selected"{/if}>default</option>
       <option value="dark" {if $theme eq 'dark'}selected="selected"{/if}>dark</option>
       </select></td></tr>-->
{if $tiki_p_admin_file_galleries eq 'y'}       
<tr><td class="editfgalform">{tr}Gallery is visible to non-admin users?{/tr}</td><td class="editfgalform"><input type="checkbox" name="visible" {if $visible eq 'y'}checked="checked"{/if} /></td></tr>       
{/if}
<tr>
	<td class="editfgalform">{tr}Listing configuration{/tr}</td>
	<td class="editfgalform">
		<table width="100%">
			<tr>
				<td class="editfgalform">{tr}icon{/tr}</td>
				<td class="editfgalform">{tr}id{/tr}</td>
				<td class="editfgalform">{tr}name{/tr}</td>
				<td class="editfgalform">{tr}size{/tr}</td>
				<td class="editfgalform">{tr}description{/tr}</td>
				<td class="editfgalform">{tr}created{/tr}</td>
				<td class="editfgalform">{tr}downloads{/tr}</td>
			</tr>
			<tr>
				<td class="editfgalform"><input type="checkbox" name="show_icon" {if $show_icon eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform"><input type="checkbox" name="show_id" {if $show_id eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform">
					<select name="show_name">
						<option value="a" {if $show_name eq 'a'}selected="selected"{/if}>{tr}Name-filename{/tr}</option>
						<option value="n" {if $show_name eq 'n'}selected="selected"{/if}>{tr}Name{/tr}</option>
						<option value="f" {if $show_name eq 'f'}selected="selected"{/if}>{tr}Filename only{/tr}</option>
					</select>
				</td>
				<td class="editfgalform"><input type="checkbox" name="show_size" {if $show_size eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform"><input type="checkbox" name="show_description" {if $show_description eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform"><input type="checkbox" name="show_created" {if $show_created eq 'y'} checked="checked"{/if} /></td>
				<td class="editfgalform"><input type="checkbox" name="show_dl" {if $show_dl eq 'y'} checked="checked"{/if} /></td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td class="editfgalform">{tr}Max description display size{/tr}</td>
	<td class="editfgalform"><input type="text" name="max_desc" value="{$max_desc}" /></td>
</tr>
<tr><td class="editfgalform">{tr}Max Rows per page{/tr}:</td><td class="editfgalform"><input type="text" name="maxRows" value="{$maxRows}" /></td></tr>
{include file=categorize.tpl}
<tr><td class="editfgalform">{tr}Other users can upload files to this gallery{/tr}:</td><td class="editfgalform"><input type="checkbox" name="public" {if $public eq 'y'}checked="checked"{/if}/></td></tr>
<tr><td class="editfgalform">&nbsp;</td><td class="editfgalform"><input type="submit" value="{tr}edit/create{/tr}" name="edit" /></td></tr>
</table>
</form>
</div>
<br/>
{/if}
{/if}
{if $galleryId>0}
{if $edited eq 'y'}
<div class="wikitext">
{tr}You can access the file gallery using the following URL{/tr}: <a class="fgallink" href="{$url}?galleryId={$galleryIdl}">{$url}?galleryId={$galleryId}</a>
</div>
{/if}
{/if}

<h2>{tr}Available File Galleries{/tr}</h2>
{'fraction_non_alphanumeric': 0.23534927332395686, 'fraction_numerical': 0.004453820909517112, 'mean_word_length': 6.375108038029387, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 0, '>': 283, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4809106', 'n_tokens_mistral': 3391, 'n_tokens_neox': 3147, 'n_words': 594}