<commit_before>{% extends 'layouts/main_layout.html'%}

{% block title%}
    KnotMarker | Редактор
{% endblock %}

{% block head %}
    <style>
    svg {
        border: 1px solid grey;
    }
    </style>
    <script>
        var pic_id = '{{ pic_id }}';
        var user_id = '{{ user_id }}';
        var UndoManager, RandomColor;
        require(["randomColor", "undomanager", "editor"],
                function(randomColor, undoManager, editor) {
                    UndoManager = undoManager;
                    RandomColor = randomColor;
                    var EditorViewModel = editor.EditorViewModel;
                    EditorViewModel.tryBind(EditorViewModel);
                });
    </script>
{% endblock %}

{%block  content %}
    <div id="editorVM">
        {% if current_user.has_role('admin') and user_email != '' %}
            <div class="row">
                <div class="col-sm-12">
                    <h4>Разметка пользователя {{ user_email | trim_email }}</h4>
                </div>
            </div>
        {% endif %}
        <div class="row">
            <div class="col-sm-12">
                <h5>{{ pic_filename }}</h5>
            </div>
        </div>

        <div class="row" id="picRow">
            <div class="col-sm-12">
                <svg id="svgPlace">
                </svg>
            </div>
        </div><commit_msg>fix #20<commit_after>{% extends 'layouts/main_layout.html'%}

{% block title%}
    KnotMarker | Редактор
{% endblock %}

{% block head %}
    <style>
    svg {
        border: 1px solid grey;
    }
    </style>
    <script>
        var pic_id = '{{ pic_id }}';
        var user_id = '{{ user_id }}';
        var UndoManager, RandomColor;
        require(["randomColor", "undomanager", "editor"],
                function(randomColor, undoManager, editor) {
                    UndoManager = undoManager;
                    RandomColor = randomColor;
                    var EditorViewModel = editor.EditorViewModel;
                    EditorViewModel.tryBind(EditorViewModel);
                });
    </script>
{% endblock %}

{%block  content %}
    <div id="editorVM">
        {% if current_user.has_role('admin') and user_email != '' %}
            <div class="row">
                <div class="col-sm-12">
                    <h4>Разметка пользователя {{ user_email | trim_email }}</h4>
                </div>
            </div>
        {% endif %}
        <div class="row">
            <div class="col-sm-12">
                <h5>{{ pic_filename }}</h5>
            </div>
        </div>

        <div class="row" id="picRow">
            <div class="col-sm-12" tabindex="0">
                <svg id="svgPlace">
                </svg>
            </div>
        </div>
{'fraction_non_alphanumeric': 0.14801312431644184, 'fraction_numerical': 0.00911410864017499, 'mean_word_length': 1.5243790248390063, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '646568', 'n_tokens_mistral': 868, 'n_tokens_neox': 794, 'n_words': 165}