<commit_before><?php
/**
 * @author         <NAME> <<EMAIL>>
 * @copyright      (c) 2012-2018, <NAME>. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / Admin / From
 */

namespace PH7;

use PH7\Framework\Navigation\Page;
use PH7\Framework\Parse\SysVar;
use PH7\Framework\Url\Header;

class UpdateAdsForm
{
    const ADS_PER_PAGE = 10;

    public static function display()
    {
        if (isset($_POST['submit_update_ads'])) {
            if (\PFBC\Form::isValid($_POST['submit_update_ads'])) {
                new UpdateAdsFormProcess;
            }

            Header::redirect();
        }

        $oPage = new Page;
        $oAdsModel = new AdsCoreModel;
        $sTable = AdsCore::getTable();
        $sCSRFToken = (new Framework\Security\CSRF\Token)->generate('ads');
        $oPage->getTotalPages($oAdsModel->total($sTable), self::ADS_PER_PAGE);
        $oAds = $oAdsModel->get(null, $oPage->getFirstItem(), $oPage->getNbItemsPerPage(), $sTable);
        unset($oPage, $oAdsModel);

        $oSysVar = new SysVar;
        foreach ($oAds as $oRow) {
            $oForm = new \PFBC\Form('form_update_ads');<commit_msg>Indentation fix<commit_after><?php
/**
 * @author         <NAME> <<EMAIL>>
 * @copyright      (c) 2012-2018, <NAME>. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / Admin / From
 */

namespace PH7;

use PH7\Framework\Navigation\Page;
use PH7\Framework\Parse\SysVar;
use PH7\Framework\Url\Header;

class UpdateAdsForm
{
    const ADS_PER_PAGE = 10;

    public static function display()
    {
        if (isset($_POST['submit_update_ads'])) {
            if (\PFBC\Form::isValid($_POST['submit_update_ads'])) {
                new UpdateAdsFormProcess;
            }

            Header::redirect();
        }

        $oPage = new Page;
        $oAdsModel = new AdsCoreModel;
        $sTable = AdsCore::getTable();
        $sCSRFToken = (new Framework\Security\CSRF\Token)->generate('ads');
        $oPage->getTotalPages($oAdsModel->total($sTable), self::ADS_PER_PAGE);
        $oAds = $oAdsModel->get(
            null,
            $oPage->getFirstItem(),
            $oPage->getNbItemsPerPage(),
            $sTable
        );
        unset($oPage, $oAdsModel);

        $oSysVar = new SysVar;
        foreach ($oAds as $oRow) {
            $oForm = new \PFBC\Form('form_update_ads');
{'fraction_non_alphanumeric': 0.14031007751937985, 'fraction_numerical': 0.01317829457364341, 'mean_word_length': 2.3960526315789474, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 23, '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': '2767774', 'n_tokens_mistral': 854, 'n_tokens_neox': 825, 'n_words': 171}