<commit_before>{% extends "OpiferContentBundle::base.html.twig" %}
{% set no_angular = true %}
{% set body_class = 'pm-body' %}
{% block header %} {% endblock %}
{% block main %}

    <div class="pm">
        <nav class="navbar navbar-default navbar-static-top" id="pm-navbar">
            <div class="container-fluid">
                <div class="navbar-left">
                    <button type="button" name="publish" id="pm-btn-publish" class="btn btn-default navbar-btn">{{ "button.publish"|trans }}</button>
                    <button type="submit" name="discard" id="pm-btn-discard" class="btn btn-default navbar-btn">{{ "button.reset"|trans }}</button>
                    <a href="{{ url_cancel }}" class="btn btn-link navbar-btn">Quit</a>
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div class="pm-navbar-title">
                    {{ title }}
                </div>
                <div class="collapse navbar-collapse" id="navbar">
                    <div class="btn-toolbar navbar-right">
                        <div class="btn-group navbar-btn hidden">
                            <a href="#" target="_blank" id="pm-btn-run" class="btn btn btn-default btn-icon"><i class="material-icons">launch</i></a>
                        </div>
                        {{ render(controller('OpiferContentBundle:Backend/ContentEditor:versionPicker', {'id': block.id, 'current': version_current, 'published': version_published})) }}
                        <div class="btn-group navbar-btn">
                            <span>&nbsp;</span>
                        </div>
                        <div class="btn-group navbar-btn" data-toggle="buttons" role="group" aria-label="">
                            <label for="viewmode-xs" class="btn btn-icon btn-default"><input type="radio" name="screenwidth" id="viewmode-xs" value="xs" autocomplete="off"><i class="material-icons">phone_iphone</i></label>
                            <label for="viewmode-sm" class="btn btn-icon btn-default"><input type="radio" name="screenwidth" id="viewmode-sm" value="sm" autocomplete="off"><i class="material-icons">tablet_mac</i></label>
                            <label for="viewmode-md" class="btn btn-icon btn-default"><input type="radio" name="screenwidth" id="viewmode-md" value="md" autocomplete="off"><i class="material-icons">tablet</i></label>
                            <label for="viewmode-lg" class="btn btn-icon btn-default active"><input type="radio" name="screenwidth" id="viewmode-lg" value="lg" autocomplete="off" checked><i class="material-icons">laptop_mac</i></label>
                        </div>
                        <div class="btn-group navbar-btn">
                            {#<a class="btn btn btn-default btn-icon btn-reload disabled"><i class="material-icons">autorenew</i></a>#}
                        </div>
                        <div class="btn-group navbar-btn">
                            <a href="{{ url_properties }}" class="btn btn btn-default" id="pm-btn-properties">Properties</a>
                        </div>
                        <div class="btn-group navbar-btn" data-toggle="buttons" role="group" aria-label="">
                            <label for="viewmode-content" id="pm-btn-viewmode-content" class="btn btn-default active"><input type="radio" name="viewmode" id="viewmode-content" value="CONTENT" autocomplete="off" checked>Content</label>
                            <label for="viewmode-preview" id="pm-btn-viewmode-preview" class="btn btn-default"><input type="radio" name="viewmode" id="viewmode-preview" value="PREVIEW" autocomplete="off">Preview</label>
                            <label for="viewmode-layout" id="pm-btn-viewmode-layout" class="btn btn-default"><input type="radio" name="viewmode" id="viewmode-layout" value="LAYOUT" autocomplete="off">Layout</label>
                        </div>
                    </div>
                </div>
            </div>
        </nav>
    </div>

    <div class="pm-editor split-pane fixed-right">
        <div class="split-pane-component pm-preview pm-viewmode-content" id="pm-document" data-pm-id="{{ block.id }}" data-pm-version="{{ version_current }}" data-pm-version-published="{{ version_published }}" data-pm-permalink="{{ permalink|default }}">
            <iframe src="{{ url }}" frameborder="no" id="pm-iframe"></iframe>
        </div>
        <div class="split-pane-divider" id="my-divider"></div>
        <div class="split-pane-component pm-toolset" id="right-component">
            <div class="pm-toolset-body pm">
                <div class="pm pm-toolset-card hidden" id="pm-block-edit">
                </div>
                <div class="pm-toolset-card">
                    <div class="panel-body">

                        {# begin tools_blocks #}
                        <div id="pm-tools-blocks" class="pm-tools-blockset"><commit_msg>Fixed preview rendering in contenteditor<commit_after>{% extends "OpiferContentBundle::base.html.twig" %}
{% set no_angular = true %}
{% set body_class = 'pm-body' %}
{% block header %} {% endblock %}
{% block main %}

    <div class="pm">
        <nav class="navbar navbar-default navbar-static-top" id="pm-navbar">
            <div class="container-fluid">
                <div class="navbar-left">
                    <button type="button" name="publish" id="pm-btn-publish" class="btn btn-default navbar-btn">{{ "button.publish"|trans }}</button>
                    <button type="submit" name="discard" id="pm-btn-discard" class="btn btn-default navbar-btn">{{ "button.reset"|trans }}</button>
                    <a href="{{ url_cancel }}" class="btn btn-link navbar-btn">Quit</a>
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div class="pm-navbar-title">
                    {{ title }}
                </div>
                <div class="collapse navbar-collapse" id="navbar">
                    <div class="btn-toolbar navbar-right">
                        <div class="btn-group navbar-btn hidden">
                            <a href="#" target="_blank" id="pm-btn-run" class="btn btn btn-default btn-icon"><i class="material-icons">launch</i></a>
                        </div>
                        {{ render(controller('OpiferContentBundle:Backend/ContentEditor:versionPicker', {'id': block.id, 'current': version_current, 'published': version_published})) }}
                        <div class="btn-group navbar-btn">
                            <span>&nbsp;</span>
                        </div>
                        <div class="btn-group navbar-btn" data-toggle="buttons" role="group" aria-label="">
                            <label for="viewmode-xs" class="btn btn-icon btn-default"><input type="radio" name="screenwidth" id="viewmode-xs" value="xs" autocomplete="off"><i class="material-icons">phone_iphone</i></label>
                            <label for="viewmode-sm" class="btn btn-icon btn-default"><input type="radio" name="screenwidth" id="viewmode-sm" value="sm" autocomplete="off"><i class="material-icons">tablet_mac</i></label>
                            <label for="viewmode-md" class="btn btn-icon btn-default"><input type="radio" name="screenwidth" id="viewmode-md" value="md" autocomplete="off"><i class="material-icons">tablet</i></label>
                            <label for="viewmode-lg" class="btn btn-icon btn-default active"><input type="radio" name="screenwidth" id="viewmode-lg" value="lg" autocomplete="off" checked><i class="material-icons">laptop_mac</i></label>
                        </div>
                        <div class="btn-group navbar-btn">
                            {#<a class="btn btn btn-default btn-icon btn-reload disabled"><i class="material-icons">autorenew</i></a>#}
                        </div>
                        <div class="btn-group navbar-btn">
                            <a href="{{ url_properties }}" class="btn btn btn-default" id="pm-btn-properties">Properties</a>
                        </div>
                        <div class="btn-group navbar-btn" data-toggle="buttons" role="group" aria-label="">
                            <label for="viewmode-content" id="pm-btn-viewmode-content" class="btn btn-default active"><input type="radio" name="viewmode" id="viewmode-content" value="CONTENT" autocomplete="off" checked>Content</label>
                            <label for="viewmode-preview" id="pm-btn-viewmode-preview" class="btn btn-default"><input type="radio" name="viewmode" id="viewmode-preview" value="PREVIEW" autocomplete="off">Preview</label>
                            <label for="viewmode-layout" id="pm-btn-viewmode-layout" class="btn btn-default"><input type="radio" name="viewmode" id="viewmode-layout" value="LAYOUT" autocomplete="off">Layout</label>
                        </div>
                    </div>
                </div>
            </div>
        </nav>
    </div>

    <div class="pm-editor split-pane fixed-right">
        <div class="split-pane-component pm-preview pm-viewmode-content" id="pm-document" data-pm-id="{{ block.id }}" data-pm-version="{{ version_current }}" data-pm-version-published="{{ version_published }}" data-pm-permalink="{{ permalink|default }}">
            <iframe data-url="{{ url }}" frameborder="no" id="pm-iframe"></iframe>
        </div>
        <div class="split-pane-divider" id="my-divider"></div>
        <div class="split-pane-component pm-toolset" id="right-component">
            <div class="pm-toolset-body pm">
                <div class="pm pm-toolset-card hidden" id="pm-block-edit">
                </div>
                <div class="pm-toolset-card">
                    <div class="panel-body">

                        {# begin tools_blocks #}
                        <div id="pm-tools-blocks" class="pm-tools-blockset">
{'fraction_non_alphanumeric': 0.166445874337623, 'fraction_numerical': 0.0, 'mean_word_length': 2.1399286987522284, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 197, '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': '5433760', 'n_tokens_mistral': 2985, 'n_tokens_neox': 2836, 'n_words': 547}