<commit_before>(function() {


var BaseCommentView,
    DiffCommentView,
    FileAttachmentCommentView,
    ScreenshotCommentView,
    HeaderFooterCommentView;


/*
 * Base class for displaying a comment in the review dialog.
 */
BaseCommentView = Backbone.View.extend({
    tagName: 'li',

    thumbnailTemplate: '',

    editorTemplate: _.template([
        '<div class="edit-fields">',
        ' <div class="edit-field">',
        '  <div class="comment-text-field">',
        '   <dl>',
        '    <dt>',
        '     <label for="<%= id %>">',
        '      <a href="<%= userPageURL %>" class="user"><%- fullName %></a>',
        '<% if (timestamp) { %>',
        '      <span class="timestamp">',
        '       <time class="timesince" datetime="<%= timestampISO %>">',
        '<%= timestamp %></time> (<%= timestamp %>)',
        '      </span>',
        '<% } %>',
        '     </label>',
        '    </dt>',
        '    <dd><pre id="<%= id %>" class="reviewtext rich-text" ',
        '             data-rich-text="true"><%- text %></pre></dd>',
        '   </dl>',
        '  </div>',
        ' </div>',
        ' <div class="edit-field">',
        '  <input class="issue-opened" id="<%= issueOpenedID %>" ',
        '         type="checkbox" />',
        '  <label for="<%= issueOpenedID %>"><%- openAnIssueText %></label>',
        ' </div>',
        '</div>'
    ].join('')),

    initialize: function() {
        this.$issueOpened = null;
        this.$editor = null;

        this._hookViews = [];
<commit_msg>Don't save every comment when publishing from the "Edit Review" dialog.<commit_after>(function() {


var BaseCommentView,
    DiffCommentView,
    FileAttachmentCommentView,
    ScreenshotCommentView,
    HeaderFooterCommentView;


/*
 * Base class for displaying a comment in the review dialog.
 */
BaseCommentView = Backbone.View.extend({
    tagName: 'li',

    thumbnailTemplate: '',

    editorTemplate: _.template([
        '<div class="edit-fields">',
        ' <div class="edit-field">',
        '  <div class="comment-text-field">',
        '   <dl>',
        '    <dt>',
        '     <label for="<%= id %>">',
        '      <a href="<%= userPageURL %>" class="user"><%- fullName %></a>',
        '<% if (timestamp) { %>',
        '      <span class="timestamp">',
        '       <time class="timesince" datetime="<%= timestampISO %>">',
        '<%= timestamp %></time> (<%= timestamp %>)',
        '      </span>',
        '<% } %>',
        '     </label>',
        '    </dt>',
        '    <dd><pre id="<%= id %>" class="reviewtext rich-text" ',
        '             data-rich-text="true"><%- text %></pre></dd>',
        '   </dl>',
        '  </div>',
        ' </div>',
        ' <div class="edit-field">',
        '  <input class="issue-opened" id="<%= issueOpenedID %>" ',
        '         type="checkbox" />',
        '  <label for="<%= issueOpenedID %>"><%- openAnIssueText %></label>',
        ' </div>',
        '</div>'
    ].join('')),

    initialize: function() {
        this.$issueOpened = null;
        this.$editor = null;
        this._origExtraData = _.clone(this.model.get('extraData'));

        this._hookViews = [];

{'fraction_non_alphanumeric': 0.21442006269592476, 'fraction_numerical': 0.0, 'mean_word_length': 2.0018814675446848, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '1784458', 'n_tokens_mistral': 1009, 'n_tokens_neox': 989, 'n_words': 188}