<commit_before><?php

use Sunlight\Article;
use Sunlight\Database\Database as DB;
use Sunlight\User;
use Sunlight\Util\Arr;

defined('_root') or exit;

return function ($typ = 'new', $pocet = null, $perex = 'perex', $info = true, $kategorie = null) {
    // priprava
    $result = "";
    $pocet = (int) $pocet;
    if ($pocet < 1) {
        $pocet = 1;
    }

    if ($perex === '0' || $perex === 0) {
        $perex = 'no-perex';
    }

    switch ($perex) {
        case 'no-perex':
            $show_perex = false;
            $show_image = false;
            break;
        case 'perex':
        case 1:
        default:
            $show_perex = true;
            $show_image = false;
            break;
        case 'perex-image':
            $show_perex = true;
            $show_image = true;<commit_msg>HCM Articles - fix missing BC numeric value for perex with image<commit_after><?php

use Sunlight\Article;
use Sunlight\Database\Database as DB;
use Sunlight\User;
use Sunlight\Util\Arr;

defined('_root') or exit;

return function ($typ = 'new', $pocet = null, $perex = 'perex', $info = true, $kategorie = null) {
    // priprava
    $result = "";
    $pocet = (int) $pocet;
    if ($pocet < 1) {
        $pocet = 1;
    }

    if ($perex === '0' || $perex === 0) {
        $perex = 'no-perex';
    }

    switch ($perex) {
        case 'no-perex':
            $show_perex = false;
            $show_image = false;
            break;
        case 'perex':
        case 1:
        default:
            $show_perex = true;
            $show_image = false;
            break;
        case 'perex-image':
        case 2:
            $show_perex = true;
            $show_image = true;
{'fraction_non_alphanumeric': 0.14530419373892497, 'fraction_numerical': 0.006497341996455995, 'mean_word_length': 1.772504091653028, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '3480052', 'n_tokens_mistral': 627, 'n_tokens_neox': 585, 'n_words': 147}