<commit_before>% from helper.url import Url
% from helper.translator import Translator
% _ = Translator.instance(language)

<div class="grid">
    <div class="unit w-4-5">
        <p>{{_('The database contains {} recipes.').format(num_recipes)}}</p>
        % if recipes:
            % include recipe_list recipes=recipes
        % else:
            <p>{{_('All recipes have at least one category.')}}</p>
        % end
    </div>

    <div class="unit w-1-5">
        % if randoms:
            <ul id="randoms">
            % for random in randoms:
                % url = Url.from_recipe(random)
                <li>
                    % if random.images:
                        % img_url = Url.from_img(random.images[0].path)
                        <div>
                            <a href="{{url}}">
                                <img src="{{img_url}}"
                                     alt="{{random.images[0].path}}" /><commit_msg>- Show random pics in fancybox.<commit_after>% from helper.url import Url
% from helper.translator import Translator
% _ = Translator.instance(language)

<div class="grid">
    <div class="unit w-4-5">
        <p>{{_('The database contains {} recipes.').format(num_recipes)}}</p>
        % if recipes:
            % include recipe_list recipes=recipes
        % else:
            <p>{{_('All recipes have at least one category.')}}</p>
        % end
    </div>

    <div class="unit w-1-5">
        % if randoms:
            <ul id="randoms">
            % for random in randoms:
                % url = Url.from_recipe(random)
                <li>
                    % if random.images:
                        % img_url = Url.from_img(random.images[0].path)
                        <div>
                            <a class="fancybox" href="{{img_url}}" data-fancybox-group="random-images" data-fancybox-title="{{random.title}}">
                                <img src="{{img_url}}" alt="{{random.images[0].path}}" />
{'fraction_non_alphanumeric': 0.1467750126968004, 'fraction_numerical': 0.006094464195022855, 'mean_word_length': 1.5651041666666667, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3576188', 'n_tokens_mistral': 585, 'n_tokens_neox': 558, 'n_words': 124}