<commit_before>{{! Client-side Mustache template for rendering the message edit form. }}

<form id="message_edit_form" class="form-horizontal new-style">
    {{#if is_stream}}
    <div class="control-group no-margin">
        <div class="controls edit-controls">
            <input type="text" placeholder="{{topic}}" value="{{topic}}" class="message_edit_topic" id="message_edit_topic" />
            <select class='message_edit_topic_propagate' style='display:none;'>
                <option selected="selected" value="change_one"> {{t "Change only this message topic" }}</option>
                <option value="change_later"> {{t "Change later messages to this topic" }}</option>
                <option value="change_all"> {{t "Change previous and following messages to this topic" }}</option>
            </select>
        </div>
    </div>
    {{/if}}
    <div class="control-group no-margin">
        <div class="controls edit-controls">
            <button class="btn pull-right copy_message" data-toggle="tooltip" title="{{t "Copy and close" }}" data-clipboard-target="#message_edit_content_{{message_id}}">
                <svg height="20" width="18" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" id="clipboard_image">
                    <path fill="#777" d="M128 768h256v64H128v-64z m320-384H128v64h320v-64z m128 192V448L384 640l192 192V704h320V576H576z m-288-64H128v64h160v-64zM128 704h160v-64H128v64z m576 64h64v128c-1 18-7 33-19 45s-27 18-45 19H64c-35 0-64-29-64-64V192c0-35 29-64 64-64h192C256 57 313 0 384 0s128 57 128 128h192c35 0 64 29 64 64v320h-64V320H64v576h640V768zM128 256h512c0-35-29-64-64-64h-64c-35 0-64-29-64-64s-29-64-64-64-64 29-64 64-29 64-64 64h-64c-35 0-64 29-64 64z" />
                </svg>
            </button>
            <textarea class="message_edit_content" id="message_edit_content_{{message_id}}">{{content}}</textarea>
        </div>
    </div>
    <div class="control-group action-buttons">
        <div class="controls edit-controls">
            {{#if is_editable}}
            <button type="button" class="button small rounded sea-green message_edit_save">{{t "Save" }}</button>
            <button type="button" class="button small rounded message_edit_cancel">{{t "Cancel" }}</button>
            {{else}}
            <button type="button" class="button small rounded btn-danger message_edit_close">{{t "Close" }}</button>
            {{/if}}
            {{#if has_been_editable}}
            <div class="message-edit-timer-control-group">
                <span class="message_edit_countdown_timer"></span>
                <div class="message-edit-timer-control-group">
                    <a class="message-control-button fa fa-font" aria-hidden="true" title="{{t 'Formatting' }}" data-overlay-trigger="markdown-help" ></a>
                </div>
                <span><i id="message_edit_tooltip" class="message_edit_tooltip fa fa-question-circle" aria-hidden="true" data-toggle="tooltip"
                    title="{{#tr this}}This organization is configured to restrict editing of message content to __minutes_to_edit__ minutes after it is sent.{{/tr}}"></i>
                </span>
            </div>
            {{/if}}
        </div>
    </div>
    <div class="alert alert-error edit_error hide"></div>
</form><commit_msg>styling: Fix red styling for message edit close button.<commit_after>{{! Client-side Mustache template for rendering the message edit form. }}

<form id="message_edit_form" class="form-horizontal new-style">
    {{#if is_stream}}
    <div class="control-group no-margin">
        <div class="controls edit-controls">
            <input type="text" placeholder="{{topic}}" value="{{topic}}" class="message_edit_topic" id="message_edit_topic" />
            <select class='message_edit_topic_propagate' style='display:none;'>
                <option selected="selected" value="change_one"> {{t "Change only this message topic" }}</option>
                <option value="change_later"> {{t "Change later messages to this topic" }}</option>
                <option value="change_all"> {{t "Change previous and following messages to this topic" }}</option>
            </select>
        </div>
    </div>
    {{/if}}
    <div class="control-group no-margin">
        <div class="controls edit-controls">
            <button class="btn pull-right copy_message" data-toggle="tooltip" title="{{t "Copy and close" }}" data-clipboard-target="#message_edit_content_{{message_id}}">
                <svg height="20" width="18" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" id="clipboard_image">
                    <path fill="#777" d="M128 768h256v64H128v-64z m320-384H128v64h320v-64z m128 192V448L384 640l192 192V704h320V576H576z m-288-64H128v64h160v-64zM128 704h160v-64H128v64z m576 64h64v128c-1 18-7 33-19 45s-27 18-45 19H64c-35 0-64-29-64-64V192c0-35 29-64 64-64h192C256 57 313 0 384 0s128 57 128 128h192c35 0 64 29 64 64v320h-64V320H64v576h640V768zM128 256h512c0-35-29-64-64-64h-64c-35 0-64-29-64-64s-29-64-64-64-64 29-64 64-29 64-64 64h-64c-35 0-64 29-64 64z" />
                </svg>
            </button>
            <textarea class="message_edit_content" id="message_edit_content_{{message_id}}">{{content}}</textarea>
        </div>
    </div>
    <div class="control-group action-buttons">
        <div class="controls edit-controls">
            {{#if is_editable}}
            <button type="button" class="button small rounded sea-green message_edit_save">{{t "Save" }}</button>
            <button type="button" class="button small rounded message_edit_cancel">{{t "Cancel" }}</button>
            {{else}}
            <button type="button" class="button small rounded message_edit_close">{{t "Close" }}</button>
            {{/if}}
            {{#if has_been_editable}}
            <div class="message-edit-timer-control-group">
                <span class="message_edit_countdown_timer"></span>
                <div class="message-edit-timer-control-group">
                    <a class="message-control-button fa fa-font" aria-hidden="true" title="{{t 'Formatting' }}" data-overlay-trigger="markdown-help" ></a>
                </div>
                <span><i id="message_edit_tooltip" class="message_edit_tooltip fa fa-question-circle" aria-hidden="true" data-toggle="tooltip"
                    title="{{#tr this}}This organization is configured to restrict editing of message content to __minutes_to_edit__ minutes after it is sent.{{/tr}}"></i>
                </span>
            </div>
            {{/if}}
        </div>
    </div>
    <div class="alert alert-error edit_error hide"></div>
</form>
{'fraction_non_alphanumeric': 0.1494635030980807, 'fraction_numerical': 0.09158228804594228, 'mean_word_length': 2.8611435239206533, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '6029466', 'n_tokens_mistral': 2501, 'n_tokens_neox': 2029, 'n_words': 470}