<commit_before>{% from 'macros/images.html.twig' import image %}

{% set imageBlock %}
    {% if block.hasChildren %}
        {% set imagineBlock = block.children.first %}

        <div class="text-center">
            <div class="container {% if 'left' == block.imagePosition %}no-padding-left{% elseif 'right' == block.imagePosition %}no-padding-right{% endif %}">
                <!-- Image -->
                <!-- Image Box #4 Item -->
                <div class="img-box-4-item">
                    <!-- Image -->
                    {{ image(imagineBlock.image.id, 'cmf_block', imagineBlock.label, 'img-responsive', imagineBlock.linkUrl) }}
                    {#<a href="img/gallery/small/1.jpg" class="lightbox"><img src="img/gallery/small/1.jpg" alt="" class="img-responsive"></a>#}
                    <!-- Image Box #4 Content -->
                    <div class="img-box-4-content">
                        <!-- Paragraph -->
                        <p>{{ imagineBlock.label }}</p>
                    </div>
                </div>
            </div>
        </div>


    {% endif %}
{% endset %}

{% set bodyBlock %}
    <!-- Image Box #5 Content -->
    <div class="img-box-5-content">
        <h4><a href="#">{{ block.title }}</a></h4>
        <div class="bor bg-color"></div>
        {{ block.body|raw }}
    </div>
{% endset %}


{% if 'left' == block.imagePosition %}
    <div class="pull-left">
        {{ imageBlock }}
    </div>
    <h4><a href="#">{{ block.title }}</a></h4>
    {{ block.body|raw }}
{% elseif 'right' == block.imagePosition %}
    <div class="pull-right">
        {{ imageBlock }}
    </div>

    <h4><a href="#">{{ block.title }}</a></h4>
    {{ block.body|raw }}


{% else %}

    <h4><a href="#">{{ block.title }}</a></h4>
    <div class="bor bg-color"></div>
    {{ block.body|raw }}

{% endif %}

<div class="clearfix"></div><commit_msg>fix image on single image with position on top<commit_after>{% from 'macros/images.html.twig' import image %}

{% set imageBlock %}
    {% if block.hasChildren %}
        {% set imagineBlock = block.children.first %}

        <div class="text-center">
            <div class="container {% if 'left' == block.imagePosition %}no-padding-left{% elseif 'right' == block.imagePosition %}no-padding-right{% endif %}">
                <!-- Image -->
                <!-- Image Box #4 Item -->
                <div class="img-box-4-item">
                    <!-- Image -->
                    {{ image(imagineBlock.image.id, 'cmf_block', imagineBlock.label, 'img-responsive', imagineBlock.linkUrl) }}
                   <!-- Image Box #4 Content -->
                    <div class="img-box-4-content">
                        <!-- Paragraph -->
                        <p>{{ imagineBlock.label }}</p>
                    </div>
                </div>
            </div>
        </div>


    {% endif %}
{% endset %}

{% set bodyBlock %}
    <!-- Image Box #5 Content -->
    <div class="img-box-5-content">
        <h4><a href="#">{{ block.title }}</a></h4>
        <div class="bor bg-color"></div>
        {{ block.body|raw }}
    </div>
{% endset %}


{% if 'left' == block.imagePosition %}
    <div class="pull-left">
        {{ imageBlock }}
    </div>
    <h4><a href="#">{{ block.title }}</a></h4>
    {{ block.body|raw }}
{% elseif 'right' == block.imagePosition %}
    <div class="pull-right">
        {{ imageBlock }}
    </div>
    <h4><a href="#">{{ block.title }}</a></h4>
    {{ block.body|raw }}
{% else %}

    <h4><a href="#">{{ block.title }}</a></h4>
    <div class="bor bg-color"></div>
    {{ block.body|raw }}
    {{ imageBlock }}
{% endif %}

<div class="clearfix"></div>
{'fraction_non_alphanumeric': 0.21346782988004362, 'fraction_numerical': 0.008178844056706653, 'mean_word_length': 1.8288357748650732, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 94, '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': '7661552', 'n_tokens_mistral': 1208, 'n_tokens_neox': 1097, 'n_words': 230}