<commit_before><%= data.includeTemplate('_tpl-modal-header', {headerText: data.text.dialogHeader.titleEditDefectType}) %>
<div class="modal-body">
    <div class="inline-editor pr-defect-editor">
        <div class="container-fluid rp-form-group">
            <label class="rp-control-label rp-defect-type-label" for="selectDefectType"><%= data.text.dialog.defectType %></label>
            <div class="btn-group rp-defect-type-btn-group">
                <% var defectType = !data.isMultipleEdit ? data.getDefectType(data.item) : null %>
                <button id="selectDefectType" data-toggle="dropdown" class="btn rp-defect-type-dropdown dropdown-toggle" value="">
                    <span style="<% if(!defectType){ %>display:none;<% } %>" data-js-issue-title title="<%= defectType ? defectType.longName : '' %>" class="pr-defect-type-badge">
                        <i data-js-issue-color style="background: <%= defectType ? defectType.color : '' %>"></i>
                        <span data-js-issue-name><%= defectType ? defectType.longName : '' %></span>
                    </span>
                    <span data-js-noissue-name style="<% if(defectType){ %>display:none;<% } %>"><%= data.text.dialog.choseDefectType %></span>
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu rp-defects-menu">
                    <% _.each(data.defectsGroup, function(defect, i){ %>
                    <% var rowDesktop = i == 0 ? '12' : '3', rowTablet = i == 0 ? '12' : '6' %>
                    <% var sepDesktop = i == 1 ? 'visible-md visible-lg' : '', sepTable = i%2 == 0 ? '' : 'visible-sm'
                    %>
                    <% if(i > 0){ %>
                    <li role="separator" class="divider <%= sepDesktop %>"></li>
                    <li role="separator" class="divider <%= sepTable %>"></li>
                    <li role="separator" class="divider visible-xs-block"></li>
                    <% } %>
                    <li class="col-md-<%= rowDesktop %> col-sm-<%= rowTablet %> col-xs-12">
                        <% _.each(data.subDefects[defect], function(d){ %>
                        <% var checked = !data.isMultipleEdit && d.locator == data.getIssueType(data.item) ? true : false %>
                        <div class="rp-defect-row">
                            <label title="<%- d.longName %>" class="<%= checked ? 'selected' : '' %>"
                                   data-js-select-issue data-locator="<%= d.locator %>">
                                <i style="background: <%- d.color %>"></i><%- d.longName.setMaxLength(20) %>
                            </label>
                        </div>
                        <% }); %>
                    </li>
                    <% }); %>
                </ul>
            </div>
        </div>
        <div class="text-editor" data-js-issue-comment></div>
        <div class="rp-defect-editor-bottom">
            <% if(data.isMultipleEdit){ %>
            <label class="rp-checkbox-wrap replace-comments">
                <input class="rp-input-checkbox" type="checkbox" checked="checked" data-js-replace-comment>
                <span><%= data.text.launches.replaceComments %></span>
            </label>
            <% } %>
            <div class="hot-keys-wrapper">
                <span class="hot-keys"><%= data.text.ui.escToCancel %></span>
                <span class="hot-keys"><%= data.text.ui.ctrlEnterToSubmit %></span>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <div class="warning-block" data-js-warning>
        <div class="warning-block-content">
            <i class="rp-icons rp-icons-warning"></i>
            <p data-js-warning-text></p>
        </div>
    </div>
    <% _.forEach(data.footerButtons, function(button){ %>
    <button class="rp-btn <%=button.btnClass %>" type="button" <%= button.label %> >
    <%= button.btnText %>
    </button>
    </button>
    <% }) %>
    <div class="dropdown-button">
        <button class="rp-btn rp-btn-submit" type="button" data-js-save >Save</button>
        <button class=" rp-btn rp-button-dropdown" data-toggle="dropdown" data-js-dropdown>
            <i class="material-icons">keyboard_arrow_down</i>
        </button>
        <ul class="dropdown-menu" data-js-dropdown-menu>
            <li <% if(data.isBtsConfigure) { %> class='disabled'  <%} %>>
                <a data-js-save-post>Save and Post Bug</a>
            </li>
            <li <% if(data.isBtsAdded) { %> class='disabled'  <%} %>>
                <a data-js-save-load>Save and Load Bug</a>
            </li>
        </ul>
    </div>
</div>
<commit_msg>fixup! EPMRPP-25767 Save Post and Load bug<commit_after><%= data.includeTemplate('_tpl-modal-header', {headerText: data.text.dialogHeader.titleEditDefectType}) %>
<div class="modal-body">
    <div class="inline-editor pr-defect-editor">
        <div class="container-fluid rp-form-group">
            <label class="rp-control-label rp-defect-type-label" for="selectDefectType"><%= data.text.dialog.defectType %></label>
            <div class="btn-group rp-defect-type-btn-group">
                <% var defectType = !data.isMultipleEdit ? data.getDefectType(data.item) : null %>
                <button id="selectDefectType" data-toggle="dropdown" class="btn rp-defect-type-dropdown dropdown-toggle" value="">
                    <span style="<% if(!defectType){ %>display:none;<% } %>" data-js-issue-title title="<%= defectType ? defectType.longName : '' %>" class="pr-defect-type-badge">
                        <i data-js-issue-color style="background: <%= defectType ? defectType.color : '' %>"></i>
                        <span data-js-issue-name><%= defectType ? defectType.longName : '' %></span>
                    </span>
                    <span data-js-noissue-name style="<% if(defectType){ %>display:none;<% } %>"><%= data.text.dialog.choseDefectType %></span>
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu rp-defects-menu">
                    <% _.each(data.defectsGroup, function(defect, i){ %>
                    <% var rowDesktop = i == 0 ? '12' : '3', rowTablet = i == 0 ? '12' : '6' %>
                    <% var sepDesktop = i == 1 ? 'visible-md visible-lg' : '', sepTable = i%2 == 0 ? '' : 'visible-sm'
                    %>
                    <% if(i > 0){ %>
                    <li role="separator" class="divider <%= sepDesktop %>"></li>
                    <li role="separator" class="divider <%= sepTable %>"></li>
                    <li role="separator" class="divider visible-xs-block"></li>
                    <% } %>
                    <li class="col-md-<%= rowDesktop %> col-sm-<%= rowTablet %> col-xs-12">
                        <% _.each(data.subDefects[defect], function(d){ %>
                        <% var checked = !data.isMultipleEdit && d.locator == data.getIssueType(data.item) ? true : false %>
                        <div class="rp-defect-row">
                            <label title="<%- d.longName %>" class="<%= checked ? 'selected' : '' %>"
                                   data-js-select-issue data-locator="<%= d.locator %>">
                                <i style="background: <%- d.color %>"></i><%- d.longName.setMaxLength(20) %>
                            </label>
                        </div>
                        <% }); %>
                    </li>
                    <% }); %>
                </ul>
            </div>
        </div>
        <div class="text-editor" data-js-issue-comment></div>
        <div class="rp-defect-editor-bottom">
            <% if(data.isMultipleEdit){ %>
            <label class="rp-checkbox-wrap replace-comments">
                <input class="rp-input-checkbox" type="checkbox" checked="checked" data-js-replace-comment>
                <span><%= data.text.launches.replaceComments %></span>
            </label>
            <% } %>
            <div class="hot-keys-wrapper">
                <span class="hot-keys"><%= data.text.ui.escToCancel %></span>
                <span class="hot-keys"><%= data.text.ui.ctrlEnterToSubmit %></span>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <%= data.includeTemplate('tpl-modal-footer-warning') %>
    <% _.forEach(data.footerButtons, function(button){ %>
    <button class="rp-btn <%=button.btnClass %>" type="button" <%= button.label %> >
    <%= button.btnText %>
    </button>
    </button>
    <% }) %>
    <div class="dropdown-button">
        <button class="rp-btn rp-btn-submit" type="button" data-js-save >Save</button>
        <button class=" rp-btn rp-button-dropdown" data-toggle="dropdown" data-js-dropdown>
            <i class="material-icons">keyboard_arrow_down</i>
        </button>
        <ul class="dropdown-menu" data-js-dropdown-menu>
            <li <% if(data.isBtsConfigure) { %> class='disabled'  <%} %>>
                <a data-js-save-post>Save and Post Bug</a>
            </li>
            <li <% if(data.isBtsAdded) { %> class='disabled'  <%} %>>
                <a data-js-save-load>Save and Load Bug</a>
            </li>
        </ul>
    </div>
</div>

{'fraction_non_alphanumeric': 0.18498049414824447, 'fraction_numerical': 0.004009536194191591, 'mean_word_length': 1.8017607771706132, 'pattern_counts': {'":': 0, '<': 250, '<?xml version=': 0, '>': 252, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '141547', 'n_tokens_mistral': 2962, 'n_tokens_neox': 2698, 'n_words': 477}