<commit_before><?php
/*=========================================================================
 MIDAS Server
 Copyright (c) Kitware SAS. 26 rue <NAME>. 69100 Villeurbanne, FRANCE
 All rights reserved.
 More information http://www.kitware.com

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0.txt

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
=========================================================================*/

$this->headScript()->appendFile($this->coreWebroot . '/public/js/jquery/jquery.form.js');
$this->headScript()->appendFile($this->coreWebroot . '/public/js/admin/admin.index.js');
$this->headScript()->appendFile($this->coreWebroot . '/public/js/jquery/jquery.cluetip.js');
?>
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/jquery/jquery.cluetip.min.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/admin/admin.index.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/common/common.genericPage.css" />
<div class="viewMain">

  <img class="tabsLoading" alt=""  src="<?php echo $this->coreWebroot?>/public/images/icons/loading.gif" />
  <div class="tabs" id='tabsGeneric'>
  <ul>
    <li><a href="#tabs-configuration">Configuration</a></li>
    <li><a href="#tabs-modules">Modules</a></li>
    <li><a href="#tabs-assetstore">Assetstores</a></li>
    <li><a href="<?php echo $this->webroot?>/licenses/all">Licenses</a></li>
    <li><a href="<?php echo $this->webroot?>/admin/upgrade">Upgrade</a></li>
    <li><a href="<?php echo $this->webroot?>/admin/dashboard">Dashboard</a></li>
    <li><a href="<?php echo $this->webroot?>/admin/showlog">Logs</a></li>
    <?php
    foreach($this->extraTabs as $module => $tabs)
      {
      foreach($tabs as $name => $link)
        {
        echo '<li><a href="'.$link.'">'.$name.'</a></li>';
        }
      }
    ?>
  </ul>
    <div id="tabs-configuration">
     <?php
      echo "
      <form class='genericForm' id='configForm' method='{$this->configForm['method']}'  action='{$this->configForm['action']}'>
      <h3>Configuration:</h3>
              <div class='installName'>
                <label for='name'>Application name</label>
                {$this->configForm['name']}
              </div>
              <div qtip='Provide a description for search engines.' class='description'>
                <label for='name'>Description</label>
                {$this->configForm['description']}
              </div>
              <div class='httpProxy'>
                <label for='httpProxy'>Outbound HTTP Proxy</label>
                ".$this->configForm['httpProxy']."
              </div>
              <div class='smtpserver'>
                <label for='smtpserver'>SMTP Server</label>
                {$this->configForm['smtpserver']}
              </div>
              <div class='smtpuser'>
                <label for='smtpuser'>SMTP Username</label>
                {$this->configForm['smtpuser']}
              </div>
              <div class='smtppassword'>
                <label for='smtppassword'>SMTP Password</label>
                {$this->configForm['smtppassword']}
              </div>
              <div class='smtpfromaddress'>
                <label for='smtpfromaddress'>SMTP From Address</label>
                {$this->configForm['smtpfromaddress']}
              </div>
              <div class='installLang'";
              if(isset(Zend_Registry::get('configCore')->internationalization) && Zend_Registry::get('configCore')->internationalization == "0")
                {
                echo " style='display:none;' ";
                }
              echo ">
                <label for='lang'>Language</label>
                {$this->configForm['lang']}
              </div>
              <div qtip='Development is slower, but it will show you all the information needed to debug the application<br/><br/>Production is faster, but it hides the errors.' class='installEnvironment'>
                <label for='environment'>Environment</label>
                {$this->configForm['environment']}
              </div>
              <div class='installTimezone'>
                <label for='environment'>Timezone</label>
                {$this->configForm['timezone']}
              </div>
              <div qtip='If you enable this feature, MIDAS will show the users how to use the system.' class='installDynamichelp'>
                <label for='dynamichelp'>Dynamic Help</label>
                {$this->configForm['dynamichelp']}
              </div>
              <div qtip='If you enable this feature, Midas will no longer allow user registration.' class='closeRegistration'>
                <label for='closeRegistration'>Close Registration</label>
                {$this->configForm['closeregistration']}
              </div>
              <div qtip='Require users to verify their email addresses during registration' class='emailVerification'>
                <label for='verifyEmail'>Require Email Verification</label>
                {$this->configForm['verifyemail']}
              </div>
              <div qtip='If enabled, users will automatically have an icon if they have created one on gravatar.com'>
                <label for='gravatar'>Gravatar user icons</label>
                {$this->configForm['gravatar']}
              </div>
              <div qtip='If you enable this feature, all requests to Midas will be logged to trace.log' class='logtrace'>
                <label for='logtrace'>Log all requests</label>
                {$this->configForm['logtrace']}
              </div>
              <div class='defaultLicense'>
                <label for='licenseSelect'>Default license</label>
                ".$this->element('license')."
              </div>
          <div>
            {$this->configForm['submitConfig']}
          </div>
       </form>";
       ?>
    </div>
    <div id="tabs-assetstore">
     <?php
     foreach($this->assetstores as $assetstore)
       {
       echo "<div class='assetstoreElement'>
               <div class='assetstoreNameContainer'>
                 <span class='assetstoreName'>{$assetstore->getName()}</span> ";
       if($assetstore->default)
         {
         echo "(<span qtip='If set as default, the uploaded files will be stored in this assetstore.' class='defaultAssetstore' element='{$assetstore->getKey()}'>default assetstore</span>)";
         }
       else
         {
         echo "(<a qtip='If set as default, the uploaded files will be stored in this assetstore.' class='defaultAssetstoreLink' element='{$assetstore->getKey()}'>set as default</a>)";
         }<commit_msg>Normalize capitalization on admin form<commit_after><?php
/*=========================================================================
 MIDAS Server
 Copyright (c) Kitware SAS. 26 rue <NAME>. 69100 Villeurbanne, FRANCE
 All rights reserved.
 More information http://www.kitware.com

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0.txt

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
=========================================================================*/

$this->headScript()->appendFile($this->coreWebroot . '/public/js/jquery/jquery.form.js');
$this->headScript()->appendFile($this->coreWebroot . '/public/js/admin/admin.index.js');
$this->headScript()->appendFile($this->coreWebroot . '/public/js/jquery/jquery.cluetip.js');
?>
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/jquery/jquery.cluetip.min.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/admin/admin.index.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/common/common.genericPage.css" />
<div class="viewMain">

  <img class="tabsLoading" alt=""  src="<?php echo $this->coreWebroot?>/public/images/icons/loading.gif" />
  <div class="tabs" id='tabsGeneric'>
  <ul>
    <li><a href="#tabs-configuration">Configuration</a></li>
    <li><a href="#tabs-modules">Modules</a></li>
    <li><a href="#tabs-assetstore">Assetstores</a></li>
    <li><a href="<?php echo $this->webroot?>/licenses/all">Licenses</a></li>
    <li><a href="<?php echo $this->webroot?>/admin/upgrade">Upgrade</a></li>
    <li><a href="<?php echo $this->webroot?>/admin/dashboard">Dashboard</a></li>
    <li><a href="<?php echo $this->webroot?>/admin/showlog">Logs</a></li>
    <?php
    foreach($this->extraTabs as $module => $tabs)
      {
      foreach($tabs as $name => $link)
        {
        echo '<li><a href="'.$link.'">'.$name.'</a></li>';
        }
      }
    ?>
  </ul>
    <div id="tabs-configuration">
     <?php
      echo "
      <form class='genericForm' id='configForm' method='{$this->configForm['method']}'  action='{$this->configForm['action']}'>
      <h3>Configuration:</h3>
              <div class='installName'>
                <label for='name'>Application name</label>
                {$this->configForm['name']}
              </div>
              <div qtip='Provide a description for search engines.' class='description'>
                <label for='name'>Description</label>
                {$this->configForm['description']}
              </div>
              <div class='httpProxy'>
                <label for='httpProxy'>Outbound HTTP proxy</label>
                ".$this->configForm['httpProxy']."
              </div>
              <div class='smtpserver'>
                <label for='smtpserver'>SMTP server</label>
                {$this->configForm['smtpserver']}
              </div>
              <div class='smtpuser'>
                <label for='smtpuser'>SMTP username</label>
                {$this->configForm['smtpuser']}
              </div>
              <div class='smtppassword'>
                <label for='smtppassword'>SMTP password</label>
                {$this->configForm['smtppassword']}
              </div>
              <div class='smtpfromaddress'>
                <label for='smtpfromaddress'>SMTP from address</label>
                {$this->configForm['smtpfromaddress']}
              </div>
              <div class='installLang'";
              if(isset(Zend_Registry::get('configCore')->internationalization) && Zend_Registry::get('configCore')->internationalization == "0")
                {
                echo " style='display:none;' ";
                }
              echo ">
                <label for='lang'>Language</label>
                {$this->configForm['lang']}
              </div>
              <div qtip='Development is slower, but will display debug information.<br/><br/>Production is faster, but hides the errors.<br/><br/>Do not select development for web-accessible instances under any circumstances.' class='installEnvironment'>
                <label for='environment'>Environment</label>
                {$this->configForm['environment']}
              </div>
              <div class='installTimezone'>
                <label for='environment'>Time zone</label>
                {$this->configForm['timezone']}
              </div>
              <div qtip='If you enable this feature, Midas will show the users how to use the system.' class='installDynamichelp'>
                <label for='dynamichelp'>Dynamic help</label>
                {$this->configForm['dynamichelp']}
              </div>
              <div qtip='If you enable this feature, user registration will not be allowed.' class='closeRegistration'>
                <label for='closeRegistration'>Close registration</label>
                {$this->configForm['closeregistration']}
              </div>
              <div qtip='Require users to verify their email addresses during registration' class='emailVerification'>
                <label for='verifyEmail'>Require email verification</label>
                {$this->configForm['verifyemail']}
              </div>
              <div qtip='If enabled, users will automatically have an icon if they have created one on gravatar.com'>
                <label for='gravatar'>Gravatar user icons</label>
                {$this->configForm['gravatar']}
              </div>
              <div qtip='If you enable this feature, all requests will be logged to trace.log' class='logtrace'>
                <label for='logtrace'>Log all requests</label>
                {$this->configForm['logtrace']}
              </div>
              <div class='defaultLicense'>
                <label for='licenseSelect'>Default license</label>
                ".$this->element('license')."
              </div>
          <div>
            {$this->configForm['submitConfig']}
          </div>
       </form>";
       ?>
    </div>
    <div id="tabs-assetstore">
     <?php
     foreach($this->assetstores as $assetstore)
       {
       echo "<div class='assetstoreElement'>
               <div class='assetstoreNameContainer'>
                 <span class='assetstoreName'>{$assetstore->getName()}</span> ";
       if($assetstore->default)
         {
         echo "(<span qtip='If set as default, the uploaded files will be stored in this assetstore.' class='defaultAssetstore' element='{$assetstore->getKey()}'>default assetstore</span>)";
         }
       else
         {
         echo "(<a qtip='If set as default, the uploaded files will be stored in this assetstore.' class='defaultAssetstoreLink' element='{$assetstore->getKey()}'>set as default</a>)";
         }
{'fraction_non_alphanumeric': 0.17171434566692312, 'fraction_numerical': 0.0019584528222704066, 'mean_word_length': 2.494134897360704, 'pattern_counts': {'":': 0, '<': 277, '<?xml version=': 0, '>': 367, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6316616', 'n_tokens_mistral': 3886, 'n_tokens_neox': 3762, 'n_words': 896}