<commit_before><?php
script('news', 'admin/Admin');
style('news', 'admin');
?>

<div class="section" id="news">
    <h2>News</h2>
    <div class="form-line">
        <input type="checkbox" name="news-use-cron-updates"
               <?php if ($_['useCronUpdates']) p('checked'); ?>>
        <label for="news-use-cron-updates">
            <?php p($l->t('Use ownCloud cron to for updates')); ?></label>
        <p>
            <em><?php p($l->t(
                'Disable this if you run a custom updater such as the Python ' .
                'updater included in the app.'
            )); ?></em>
        </p>
    </div>
    <div class="form-line">
        <input type="text" name="news-auto-purge-minimum-interval"
               value="<?php p($_['autoPurgeMinimumInterval']); ?>">
        <label for="news-auto-purge-minimum-interval">
            <?php p($l->t('Purge interval')); ?>
        </label>
        <p>
            <em>
            <?php p($l->t(
                'Minimum amount of seconds after deleted feeds and folders are ' .
                'removed from the database. Values below 60 seconds are ignored'
            )); ?></em>
        </p>
    </div>
    <div class="form-line">
        <input type="text" name="news-auto-purge-count"
               value="<?php p($_['autoPurgeCount']); ?>">
        <label for="news-auto-purge-count">
            <?php p($l->t('Maximum unread count per feed')); ?>
        </label>
        <p>
            <em>
            <?php p($l->t(
                'Defines the minimum amount of articles that can be unread per ' .
                'feed before they get deleted.'
            )); ?></em>
        </p>
    </div>
    <div class="form-line">
        <input type="text" name="news-cache-duration"
               value="<?php p($_['cacheDuration']); ?>">
        <label for="news-cache-duration">
            <?php p($l->t('Cache duration')); ?>
        </label>
        <p>
            <em><?php p($l->t('Amount of seconds to cache feeds')); ?></em>
        </p>
    </div>
    <div class="form-line">
        <input type="text" name="news-feed-fetcher-timeout"
               value="<?php p($_['feedFetcherTimeout']); ?>">
        <label for="news-feed-fetcher-timeout">
            <?php p($l->t('Feed fetcher timeout')); ?>
        </label>
        <p>
            <em>
            <?php p($l->t(
                'Maximum number of seconds to wait for an RSS or Atom feed to ' .
                'load. If a feed takes longer than that number of seconds to ' .
                'update, the update will be aborted.'
            )); ?></em>
        </p>
    </div>
    <div id="news-saved-message">
        <span class="msg success"><?php p($l->t('Saved')); ?></span>
    </div>
</div><commit_msg>better wording in admin area<commit_after><?php
script('news', 'admin/Admin');
style('news', 'admin');
?>

<div class="section" id="news">
    <h2>News</h2>
    <div class="form-line">
        <p><input type="checkbox" name="news-use-cron-updates"
               <?php if ($_['useCronUpdates']) p('checked'); ?>>
            <label for="news-use-cron-updates">
                <?php p($l->t('Use ownCloud cron to for updates')); ?>
            </label>
        </p>
        <p>
            <em><?php p($l->t(
                'Disable this if you run a custom updater such as the Python ' .
                'updater included in the app'
            )); ?></em>
        </p>
    </div>
    <div class="form-line">
        <p>
            <label for="news-auto-purge-minimum-interval">
                <?php p($l->t('Purge interval')); ?></p>
            </label>
        <p>
            <em>
            <?php p($l->t(
                'Minimum amount of seconds after deleted feeds and folders are ' .
                'removed from the database; values below 60 seconds are ignored'
            )); ?></em>
        </p>
        <p><input type="text" name="news-auto-purge-minimum-interval"
               value="<?php p($_['autoPurgeMinimumInterval']); ?>"></p>
    </div>
    <div class="form-line">
        <p>
            <label for="news-auto-purge-count">
                <?php p($l->t('Maximum read count per feed')); ?>
            </label>
        </p>
        <p>
            <em>
            <?php p($l->t(
                'Defines the maximum amount of articles that can be read per ' .
                "feed which won't be deleted by the cleanup job; ".
                'if old articles reappear after being read, increase ' .
                'this value'
            )); ?></em>
        </p>
        <p><input type="text" name="news-auto-purge-count"
               value="<?php p($_['autoPurgeCount']); ?>"></p>
    </div>
    <div class="form-line">
        <p>
            <label for="news-cache-duration">
                <?php p($l->t('Cache duration')); ?>
            </label>
        </p>
        <p>
            <em><?php p($l->t('How many seconds a feed should be cached')); ?></em>
        </p>
        <p><input type="text" name="news-cache-duration"
               value="<?php p($_['cacheDuration']); ?>"></p>
    </div>
    <div class="form-line">
        <p>
            <label for="news-feed-fetcher-timeout">
                <?php p($l->t('Feed fetcher timeout')); ?>
            </label>
        </p>
        <p>
            <em>
            <?php p($l->t(
                'Maximum number of seconds to wait for an RSS or Atom feed to ' .
                'load; if it takes longer the update will be aborted.'
            )); ?></em>
        </p>
        <p><input type="text" name="news-feed-fetcher-timeout"
               value="<?php p($_['feedFetcherTimeout']); ?>"></p>
    </div>
    <div id="news-saved-message">
        <span class="msg success"><?php p($l->t('Saved')); ?></span>
    </div>
</div>
{'fraction_non_alphanumeric': 0.18570935450466, 'fraction_numerical': 0.001380738695201933, 'mean_word_length': 1.6692768309534776, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 183, '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': '3056750', 'n_tokens_mistral': 1760, 'n_tokens_neox': 1735, 'n_words': 454}