<commit_before><div class="navbar navbar-fixed-top integrated-website-toolbar">
    <div class="container">

        <div class="navbar-header">
            <a href="{{ path('integrated_content_content_index') }}" class="navbar-brand">Integrated</a>
        </div>

        <div class="pull-left" class="integrated-website-toolbar-message">
            {{ message }}
        </div>

        <div class="pull-right">
            {% set params = app.request.attributes.get('_route_params')|merge(app.request.query.all) %}

            {% if app.request.query.get('integrated_website_edit') and layoutEditable %}
                <a href="javascript:;" class="btn btn-default navbar-btn" data-action="integrated-website-page-save"
                   {% if app.request.attributes.get('page').id|default %}data-id="{{ app.request.attributes.get('page').id }}" {% endif %}
                   data-target="{{ path(app.request.attributes.get('_route'), params|merge({'integrated_website_edit': 0})) }}">
                    {% trans %}Save page{% endtrans %}
                </a>

                <a href="{{ path(app.request.attributes.get('_route'), params|merge({'integrated_website_edit': 0})) }}" class="btn btn-default navbar-btn">
                    {% trans %}Cancel{% endtrans %}
                </a>
            {% else %}
                {% if content is defined %}
                <a href="{{ path('integrated_content_content_edit', {'id': content.id}) }}" class="btn btn-default navbar-btn">
                    {% trans %}Edit{% endtrans %}
                </a> &nbsp;
                {% endif %}

                {% if layoutEditable %}
                <a href="{{  path(app.request.attributes.get('_route'), params|merge({'integrated_website_edit': 1})) }}" class="btn btn-default navbar-btn">
                    {% trans %}Edit page layout{% endtrans %}
                </a>
                {% endif %}
            {% endif %}
        </div>
    </div>
</div>

<div class="integrated-website-body-margin-top"></div><commit_msg>Fix for content is null<commit_after><div class="navbar navbar-fixed-top integrated-website-toolbar">
    <div class="container">

        <div class="navbar-header">
            <a href="{{ path('integrated_content_content_index') }}" class="navbar-brand">Integrated</a>
        </div>

        <div class="pull-left" class="integrated-website-toolbar-message">
            {{ message }}
        </div>

        <div class="pull-right">
            {% set params = app.request.attributes.get('_route_params')|merge(app.request.query.all) %}

            {% if app.request.query.get('integrated_website_edit') and layoutEditable %}
                <a href="javascript:;" class="btn btn-default navbar-btn" data-action="integrated-website-page-save"
                   {% if app.request.attributes.get('page').id|default %}data-id="{{ app.request.attributes.get('page').id }}" {% endif %}
                   data-target="{{ path(app.request.attributes.get('_route'), params|merge({'integrated_website_edit': 0})) }}">
                    {% trans %}Save page{% endtrans %}
                </a>

                <a href="{{ path(app.request.attributes.get('_route'), params|merge({'integrated_website_edit': 0})) }}" class="btn btn-default navbar-btn">
                    {% trans %}Cancel{% endtrans %}
                </a>
            {% else %}
                {% if content is defined and content is not null %}
                <a href="{{ path('integrated_content_content_edit', {'id': content.id}) }}" class="btn btn-default navbar-btn">
                    {% trans %}Edit{% endtrans %}
                </a> &nbsp;
                {% endif %}

                {% if layoutEditable %}
                <a href="{{  path(app.request.attributes.get('_route'), params|merge({'integrated_website_edit': 1})) }}" class="btn btn-default navbar-btn">
                    {% trans %}Edit page layout{% endtrans %}
                </a>
                {% endif %}
            {% endif %}
        </div>
    </div>
</div>

<div class="integrated-website-body-margin-top"></div>
{'fraction_non_alphanumeric': 0.17429406037000975, 'fraction_numerical': 0.0014605647517039922, 'mean_word_length': 2.1414373088685017, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '1690665', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1078, 'n_words': 210}