<commit_before>
<div class="rbox" name="tip">
<div class="rbox-title" name="tip">{tr}Tip{/tr}</div>  
<div class="rbox-data" name="tip">{tr}To add/edit wiki pages easily, add the module quick_edit via "Modules" on the application menu, or{/tr} <a class="rbox-link" href="tiki-admin_modules.php">{tr}Click Here{/tr}</a>.</div>
</div>
<br />

<table class="admin">
<tr><td  valign="top">
    
  <div class="cbox">
    <div class="cbox-title">
    {tr}Dumps{/tr}
    </div>
    <div class="cbox-data">
    <a class="link" href="tiki-admin.php?page=wiki&amp;dump=1">{tr}Generate dump{/tr}</a><br />
    <a class="link" href="dump/{if $tikidomain}{$tikidomain}/{/if}new.tar">{tr}Download last dump{/tr}</a>
         
    <br /><br />
    <div class="heading">{tr}Create a Tag for the Current Wiki{/tr}</div>
    
    <form action="tiki-admin.php?page=wiki" method="post">
    {tr}Tag name{/tr}: <input  maxlength="20" size="10" type="text" name="tagname"/>
    <input type="submit" name="createtag" value="{tr}Create{/tr}"/>
    </form>
    
    <br />
    <div class="heading">{tr}Restore the Wiki{/tr}</div>

    <form action="tiki-admin.php?page=wiki" method="post">
    {tr}Tag name{/tr}: <select name="tagname">
          {section name=sel loop=$tags}
          <option value="{$tags[sel]|escape}">{$tags[sel]}</option>
          {sectionelse}
          <option value=''></option>
          {/section}
          </select>
    <input type="submit" name="restoretag" value="{tr}restore{/tr}"/>          
    </form>
    
    <br />
    <div class="heading">{tr}Remove a Tag{/tr}</div>

    <form action="tiki-admin.php?page=wiki" method="post">
    {tr}Tag name{/tr}: <select name="tagname">
          {section name=sel loop=$tags}
          <option value="{$tags[sel]|escape}">{$tags[sel]}</option>
          {sectionelse}
          <option value=''></option>
          {/section}
          </select>
    <input type="submit" name="removetag" value="{tr}Remove{/tr}"/>          
    </form>
    <br />
    </div>
  </div>
  
  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Comments Settings{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin">
    <tr><td class="form">{tr}Default number of comments per page{/tr}: </td><td><input size="5" type="text" name="wiki_comments_per_page" value="{$prefs.wiki_comments_per_page|escape}" /></td></tr>
    <tr><td class="form">{tr}Comments default ordering{/tr}
    </td><td>
    <select name="wiki_comments_default_ordering">
    <option value="commentDate_desc" {if $prefs.wiki_comments_default_ordering eq 'commentDate_desc'}selected="selected"{/if}>{tr}Newest first{/tr}</option>
		<option value="commentDate_asc" {if $prefs.wiki_comments_default_ordering eq 'commentDate_asc'}selected="selected"{/if}>{tr}Oldest first{/tr}</option>
    <option value="points_desc" {if $prefs.wiki_comments_default_ordering eq 'points_desc'}selected="selected"{/if}>{tr}Points{/tr}</option>
    </select>
    </td></tr>
    <tr><td colspan="2" class="button"><input type="submit" name="wikiprefs" value="{tr}Change settings{/tr}" /></td></tr>
    </table>
    </form>
    </div>
    </div>
    
    
  <div class="cbox">
    <div class="cbox-title">
    {tr}Export Wiki Pages{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin">
    <tr><td align="center" colspan="2"><a class="link" href="tiki-export_wiki_pages.php">{tr}Export{/tr}</a></td></tr>
    </table>
    </form>
    </div>
  </div>
    
    {*next two probably don't belong here *}
    
  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki attachments{/tr}
    </div>
    <div class="cbox-data"> 
		<form method="post" action="tiki-admin.php?page=wiki">
		<table class="admin">
		<tr><td class="form">{tr}Wiki attachments{/tr}:</td><td><input type="checkbox" name="feature_wiki_attachments" {if $prefs.feature_wiki_attachments eq 'y'}checked="checked"{/if}/></td></tr>
    <tr><td class="form">{tr}Use database to store files{/tr}:</td><td><input type="radio" name="w_use_db" value="y" {if $prefs.w_use_db eq 'y'}checked="checked"{/if} /></td></tr>
    <tr><td class="form">{tr}Use a directory to store files{/tr}:</td><td><input type="radio" name="w_use_db" value="n" {if $prefs.w_use_db eq 'n'}checked="checked"{/if} /></td></tr>
    <tr><td class="form">{tr}Path{/tr}:</td><td><input type="text" name="w_use_dir" value="{$prefs.w_use_dir}" /></td></tr>
		<tr><td colspan="2" class="button"><input type="submit" name="wikiattprefs" value="{tr}Change preferences{/tr}" /></td></tr>
		</table>
		</form>

    <a class="link" href="tiki-admin.php?page=wikiatt">{tr}Manage attachments{/tr}</a>
    </div>
	</div>

	<div class="cbox">
		<div class="cbox-title">
		{tr}Wiki Administration{/tr}
		</div>

    <div class="cbox-data">
    <a class="link" href="tiki-admin.php?page=wiki&amp;rmvunusedpic=1">{tr}Remove unused pictures{/tr}</a>
    </div>
  </div>

  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Home Page{/tr}
    </div>
    <div class="cbox-data">
     <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin"><tr>
    <td class="form"><input type="text" name="wikiHomePage" value="{$prefs.site_wikiHomePage|escape}" />
    <input type="submit" name="setwikihome" value="{tr}Set{/tr}" />
    </td>
    </tr></table>
    </form>
    </div>
  </div>
  
  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Discussion{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin">
    <tr><td class="form">
    {tr}Discuss pages on forums{/tr}: </td><td>
    <input type="checkbox" name="feature_wiki_discuss" {if $prefs.feature_wiki_discuss eq 'y'}checked="checked"{/if}/> </td></tr>
    <tr><td class="form">{tr}Forum{/tr}:</td><td class="form">
	  <select name="wiki_forum_id">
    {section name=ix loop=$all_forums}
    <option value="{$all_forums[ix].forumId|escape}" {if $all_forums[ix].forumId eq $prefs.wiki_forum_id}selected="selected"{/if}>{$all_forums[ix].name}</option>
    {/section}
    </select>

    </td></tr>
    <tr><td colspan="2" class="button"><input type="submit" name="wikidiscussprefs" value="{tr}Change preferences{/tr}" />
    </td>
    </tr></table>
    </form>
    </div>
  </div>
  
  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Link Format{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    {tr}Controls recognition of Wiki links using the two parenthesis Wiki link syntax <i>((page name))</i>.{/tr}<br />
    <select name="wiki_page_regex">
    <option value='complete' {if $prefs.wiki_page_regex eq 'complete'}selected="selected"{/if}>{tr}complete{/tr}</option>
    <option value='full' {if $prefs.wiki_page_regex eq 'full'}selected="selected"{/if}>{tr}latin{/tr}</option>
    <option value='strict' {if $prefs.wiki_page_regex eq 'strict'}selected="selected"{/if}>{tr}english{/tr}</option>
    </select><br />
		{tr}Page name display stripper: choose a character that will be used as a delimiter to strip a final part of the page name (only concerns display){/tr}<br />
		<input type="text" name="wiki_pagename_strip" value="{$prefs.wiki_pagename_strip}" />
    <input type="submit" name="setwikiregex" value="{tr}Set{/tr}" />
    </form>
    </div><commit_msg>ui improvements: wiki disucussion option -- if forum is isabled, don't allow selection (link to enable). if no forums are available, don't present an empty drop list (link to create new forum)<commit_after>
<div class="rbox" name="tip">
<div class="rbox-title" name="tip">{tr}Tip{/tr}</div>  
<div class="rbox-data" name="tip">{tr}To add/edit wiki pages easily, add the module quick_edit via "Modules" on the application menu, or{/tr} <a class="rbox-link" href="tiki-admin_modules.php">{tr}Click Here{/tr}</a>.</div>
</div>
<br />

<table class="admin">
<tr><td  valign="top">
    
  <div class="cbox">
    <div class="cbox-title">
    {tr}Dumps{/tr}
    </div>
    <div class="cbox-data">
    <a class="link" href="tiki-admin.php?page=wiki&amp;dump=1">{tr}Generate dump{/tr}</a><br />
    <a class="link" href="dump/{if $tikidomain}{$tikidomain}/{/if}new.tar">{tr}Download last dump{/tr}</a>
         
    <br /><br />
    <div class="heading">{tr}Create a Tag for the Current Wiki{/tr}</div>
    
    <form action="tiki-admin.php?page=wiki" method="post">
    {tr}Tag name{/tr}: <input  maxlength="20" size="10" type="text" name="tagname"/>
    <input type="submit" name="createtag" value="{tr}Create{/tr}"/>
    </form>
    
    <br />
    <div class="heading">{tr}Restore the Wiki{/tr}</div>

    <form action="tiki-admin.php?page=wiki" method="post">
    {tr}Tag name{/tr}: <select name="tagname">
          {section name=sel loop=$tags}
          <option value="{$tags[sel]|escape}">{$tags[sel]}</option>
          {sectionelse}
          <option value=''></option>
          {/section}
          </select>
    <input type="submit" name="restoretag" value="{tr}restore{/tr}"/>          
    </form>
    
    <br />
    <div class="heading">{tr}Remove a Tag{/tr}</div>

    <form action="tiki-admin.php?page=wiki" method="post">
    {tr}Tag name{/tr}: <select name="tagname">
          {section name=sel loop=$tags}
          <option value="{$tags[sel]|escape}">{$tags[sel]}</option>
          {sectionelse}
          <option value=''></option>
          {/section}
          </select>
    <input type="submit" name="removetag" value="{tr}Remove{/tr}"/>          
    </form>
    <br />
    </div>
  </div>
  
  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Comments Settings{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin">
    <tr><td class="form">{tr}Default number of comments per page{/tr}: </td><td><input size="5" type="text" name="wiki_comments_per_page" value="{$prefs.wiki_comments_per_page|escape}" /></td></tr>
    <tr><td class="form">{tr}Comments default ordering{/tr}
    </td><td>
    <select name="wiki_comments_default_ordering">
    <option value="commentDate_desc" {if $prefs.wiki_comments_default_ordering eq 'commentDate_desc'}selected="selected"{/if}>{tr}Newest first{/tr}</option>
		<option value="commentDate_asc" {if $prefs.wiki_comments_default_ordering eq 'commentDate_asc'}selected="selected"{/if}>{tr}Oldest first{/tr}</option>
    <option value="points_desc" {if $prefs.wiki_comments_default_ordering eq 'points_desc'}selected="selected"{/if}>{tr}Points{/tr}</option>
    </select>
    </td></tr>
    <tr><td colspan="2" class="button"><input type="submit" name="wikiprefs" value="{tr}Change settings{/tr}" /></td></tr>
    </table>
    </form>
    </div>
    </div>
    
    
  <div class="cbox">
    <div class="cbox-title">
    {tr}Export Wiki Pages{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin">
    <tr><td align="center" colspan="2"><a class="link" href="tiki-export_wiki_pages.php">{tr}Export{/tr}</a></td></tr>
    </table>
    </form>
    </div>
  </div>
    
    {*next two probably don't belong here *}
    
  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki attachments{/tr}
    </div>
    <div class="cbox-data"> 
		<form method="post" action="tiki-admin.php?page=wiki">
		<table class="admin">
		<tr><td class="form">{tr}Wiki attachments{/tr}:</td><td><input type="checkbox" name="feature_wiki_attachments" {if $prefs.feature_wiki_attachments eq 'y'}checked="checked"{/if}/></td></tr>
    <tr><td class="form">{tr}Use database to store files{/tr}:</td><td><input type="radio" name="w_use_db" value="y" {if $prefs.w_use_db eq 'y'}checked="checked"{/if} /></td></tr>
    <tr><td class="form">{tr}Use a directory to store files{/tr}:</td><td><input type="radio" name="w_use_db" value="n" {if $prefs.w_use_db eq 'n'}checked="checked"{/if} /></td></tr>
    <tr><td class="form">{tr}Path{/tr}:</td><td><input type="text" name="w_use_dir" value="{$prefs.w_use_dir}" /></td></tr>
		<tr><td colspan="2" class="button"><input type="submit" name="wikiattprefs" value="{tr}Change preferences{/tr}" /></td></tr>
		</table>
		</form>

    <a class="link" href="tiki-admin.php?page=wikiatt">{tr}Manage attachments{/tr}</a>
    </div>
	</div>

	<div class="cbox">
		<div class="cbox-title">
		{tr}Wiki Administration{/tr}
		</div>

    <div class="cbox-data">
    <a class="link" href="tiki-admin.php?page=wiki&amp;rmvunusedpic=1">{tr}Remove unused pictures{/tr}</a>
    </div>
  </div>

  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Home Page{/tr}
    </div>
    <div class="cbox-data">
     <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin"><tr>
    <td class="form"><input type="text" name="wikiHomePage" value="{$prefs.site_wikiHomePage|escape}" />
    <input type="submit" name="setwikihome" value="{tr}Set{/tr}" />
    </td>
    </tr></table>
    </form>
    </div>
  </div>
  
  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Discussion{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    <table class="admin">
     <tr>
      <td width="10"><input type="checkbox" onclick="flip('discussforum');" name="feature_wiki_discuss" {if $prefs.feature_wiki_discuss eq 'y'}checked="checked"{/if} {if $prefs.feature_forums ne 'y'} disabled="disabled"{/if} /></td>
      <td class="form">{tr}Discuss pages on forums{/tr}{if $prefs.feature_forums ne 'y'}<br />({tr}Forums are disabled.{/tr} <a href="tiki-admin.php?page=features" title="{tr}Features{/tr}">{tr}Enable now{/tr}</a>.){/if}
      <div id="discussforum" style="display:{if ($prefs.feature_wiki_discuss eq 'y') and ($prefs.feature_forums eq 'y')}block{else}none{/if};">
       <p>{tr}Forum for discussion{/tr}:<br /> <select name="wiki_forum_id"{if $prefs.feature_forums ne 'y'} disabled="disabled"{/if}>
{if $all_forums}    {section name=ix loop=$all_forums}
    <option value="{$all_forums[ix].forumId|escape}" {if $all_forums[ix].forumId eq $prefs.wiki_forum_id}selected="selected"{/if}>{$all_forums[ix].name}</option>
    {/section}
{else}    <option value="">{tr}No forums{/tr}</option>
{/if}
    </select>
       </p>
{if ($prefs.feature_forums eq 'y') and !$all_forums}       <p><a href="tiki-admin_forums.php" title="{tr}Forums{/tr}">Create a forum</a>.</p>
{/if}
      </div>
      </td>
     </tr>
    </table>
    </form>
    </div>
  </div>
  







  <div class="cbox">
    <div class="cbox-title">
    {tr}Wiki Link Format{/tr}
    </div>
    <div class="cbox-data">
    <form method="post" action="tiki-admin.php?page=wiki">
    {tr}Controls recognition of Wiki links using the two parenthesis Wiki link syntax <i>((page name))</i>.{/tr}<br />
    <select name="wiki_page_regex">
    <option value='complete' {if $prefs.wiki_page_regex eq 'complete'}selected="selected"{/if}>{tr}complete{/tr}</option>
    <option value='full' {if $prefs.wiki_page_regex eq 'full'}selected="selected"{/if}>{tr}latin{/tr}</option>
    <option value='strict' {if $prefs.wiki_page_regex eq 'strict'}selected="selected"{/if}>{tr}english{/tr}</option>
    </select><br />
		{tr}Page name display stripper: choose a character that will be used as a delimiter to strip a final part of the page name (only concerns display){/tr}<br />
		<input type="text" name="wiki_pagename_strip" value="{$prefs.wiki_pagename_strip}" />
    <input type="submit" name="setwikiregex" value="{tr}Set{/tr}" />
    </form>
    </div>
{'fraction_non_alphanumeric': 0.21569128545872732, 'fraction_numerical': 0.0014694607717863533, 'mean_word_length': 4.015379685998077, 'pattern_counts': {'":': 0, '<': 468, '<?xml version=': 0, '>': 468, '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': '7139208', 'n_tokens_mistral': 5866, 'n_tokens_neox': 5713, 'n_words': 1063}