<commit_before><?php

HTML::title(array('title'=>$L->g('Settings'), 'icon'=>'cogs'));

HTML::formOpen(array('class'=>'uk-form-horizontal'));

    HTML::formInputHidden(array(
        'name'=>'tokenCSRF',
        'value'=>$Security->getToken()
    ));

    HTML::formSelect(array(
        'name'=>'postsperpage',
        'label'=>$L->g('Posts per page'),
        'options'=>array('1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8'),
        'selected'=>$Site->postsPerPage(),
        'class'=>'uk-width-1-3 uk-form-medium',
        'tip'=>$L->g('number-of-posts-to-show-per-page')
    ));

    HTML::formSelect(array(
        'name'=>'homepage',
        'label'=>$L->g('Default home page'),
        'options'=>$_homePageList,
        'selected'=>$Site->homepage(),
        'class'=>'uk-width-1-3 uk-form-medium',
        'tip'=>$L->g('number-of-posts-to-show-per-page')
    ));

    HTML::formInputText(array(
        'name'=>'url',
        'label'=>$L->g('Site URL'),
        'value'=>$Site->url(),
        'class'=>'uk-width-1-2 uk-form-medium',
        'tip'=>$L->g('the-url-of-your-site')
    ));

    HTML::legend(array('value'=>$L->g('Command Line Mode')));

    HTML::formSelect(array(
        'name'=>'cliMode',
        'label'=>$L->g('Cli Mode'),
        'options'=>array('true'=>$L->g('Enabled'), 'false'=>$L->g('Disabled')),
        'selected'=>$Site->cliMode(),
        'class'=>'uk-width-1-3 uk-form-medium',
        'tip'=>$L->g('enable-the-command-line-mode-if-you-add-edit')
    ));

    HTML::legend(array('value'=>$L->g('Email account settings')));

    HTML::formInputText(array(
        'name'=>'emailFrom',
        'label'=>$L->g('Sender email'),
        'value'=>$Site->emailFrom(),
        'class'=>'uk-width-1-2 uk-form-medium',
        'tip'=>$L->g('Emails will be sent from this address')
    ));

    HTML::legend(array('value'=>$L->g('URL Filters')));

    HTML::formInputText(array(
        'name'=>'uriPost',
        'label'=>$L->g('Email'),
        'value'=>$Site->uriFilters('post'),
        'class'=>'uk-width-1-2 uk-form-medium',
        'tip'=>''
    ));<commit_msg>Update settings-advanced.php<commit_after><?php

HTML::title(array('title'=>$L->g('Settings'), 'icon'=>'cogs'));

HTML::formOpen(array('class'=>'uk-form-horizontal'));

    HTML::formInputHidden(array(
        'name'=>'tokenCSRF',
        'value'=>$Security->getToken()
    ));

    HTML::formSelect(array(
        'name'=>'postsperpage',
        'label'=>$L->g('Posts per page'),
        'options'=>array('1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8'),
        'selected'=>$Site->postsPerPage(),
        'class'=>'uk-width-1-3 uk-form-medium',
        'tip'=>$L->g('number-of-posts-to-show-per-page')
    ));

    HTML::formSelect(array(
        'name'=>'homepage',
        'label'=>$L->g('Default home page'),
        'options'=>$_homePageList,
        'selected'=>$Site->homepage(),
        'class'=>'uk-width-1-3 uk-form-medium',
        'tip'=>$L->g('number-of-posts-to-show-per-page')
    ));

    HTML::formInputText(array(
        'name'=>'url',
        'label'=>$L->g('Site URL'),
        'value'=>$Site->url(),
        'class'=>'uk-width-1-2 uk-form-medium',
        'tip'=>$L->g('the-url-of-your-site')
    ));

    HTML::legend(array('value'=>$L->g('Command Line Mode')));

    HTML::formSelect(array(
        'name'=>'cliMode',
        'label'=>$L->g('Cli Mode'),
        'options'=>array('true'=>$L->g('Enabled'), 'false'=>$L->g('Disabled')),
        'selected'=>$Site->cliMode(),
        'class'=>'uk-width-1-3 uk-form-medium',
        'tip'=>$L->g('enable-the-command-line-mode-if-you-add-edit')
    ));

    HTML::legend(array('value'=>$L->g('Email account settings')));

    HTML::formInputText(array(
        'name'=>'emailFrom',
        'label'=>$L->g('Sender email'),
        'value'=>$Site->emailFrom(),
        'class'=>'uk-width-1-2 uk-form-medium',
        'tip'=>$L->g('Emails will be sent from this address')
    ));

    HTML::legend(array('value'=>$L->g('URL Filters')));

    HTML::formInputText(array(
        'name'=>'uriPost',
        'label'=>$L->g('Posts'),
        'value'=>$Site->uriFilters('post'),
        'class'=>'uk-width-1-2 uk-form-medium',
        'tip'=>''
    ));
{'fraction_non_alphanumeric': 0.28000939628846605, 'fraction_numerical': 0.013154803852478272, 'mean_word_length': 3.078544061302682, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 153, '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': '4130744', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1489, 'n_words': 149}