<commit_before>/** @jsx React.DOM */

define([
  'react',
  'i18n!moderated_grading'
], function (React, I18n) {

  var Header = React.createClass({
    displayName: 'Header',

    propTypes: {
      onPublishClick: React.PropTypes.func.isRequired,
      onReviewClick: React.PropTypes.func.isRequired,
      published: React.PropTypes.bool.isRequired
    },

    handlePublishClick () {
      // TODO: Make a better looking confirm one day
      var confirmMessage = I18n.t('Are you sure you want to do this? It cannot be undone and will override existing grades in the gradebook.')
      if (window.confirm(confirmMessage)) {
        this.props.onPublishClick();
      }
    },

    render () {
      return (
        <div className='ModeratedGrading__Header ic-Action-header'>
          <div className='ic-Action-header__Primary'>
            <div className='ic-Action-header__Heading ModeratedGrading__Header-Instructions'>
              {I18n.t('Select assignments for review')}
            </div>
          </div>
          <div className='ic-Action-header__Secondary ModeratedGrading__Header-Buttons '>
            <button
              ref='addReviewerBtn'
              type='button'
              className='ModeratedGrading__Header-AddReviewerBtn Button'
              onClick={this.props.onReviewClick}
              disabled={this.props.published}
            >
              <i className='icon-plus' />
              {I18n.t(' Reviewer')}
            </button>
            <button
              ref='publishBtn'
              type='button'
              className='ModeratedGrading__Header-PublishBtn Button Button--primary'
              onClick={this.handlePublishClick}
              disabled={this.props.published}
            >
              {I18n.t('Publish')}
            </button>
          </div>
        </div>
      );
    }

  });

  return Header;

});<commit_msg>Changes 'publish' to 'post' for moderated grading<commit_after>/** @jsx React.DOM */

define([
  'react',
  'i18n!moderated_grading'
], function (React, I18n) {

  var Header = React.createClass({
    displayName: 'Header',

    propTypes: {
      onPublishClick: React.PropTypes.func.isRequired,
      onReviewClick: React.PropTypes.func.isRequired,
      published: React.PropTypes.bool.isRequired
    },

    handlePublishClick () {
      // TODO: Make a better looking confirm one day
      var confirmMessage = I18n.t('Are you sure you want to do this? It cannot be undone and will override existing grades in the gradebook.')
      if (window.confirm(confirmMessage)) {
        this.props.onPublishClick();
      }
    },

    render () {
      return (
        <div className='ModeratedGrading__Header ic-Action-header'>
          <div className='ic-Action-header__Primary'>
            <div className='ic-Action-header__Heading ModeratedGrading__Header-Instructions'>
              {I18n.t('Select assignments for review')}
            </div>
          </div>
          <div className='ic-Action-header__Secondary ModeratedGrading__Header-Buttons '>
            <button
              ref='addReviewerBtn'
              type='button'
              className='ModeratedGrading__Header-AddReviewerBtn Button'
              onClick={this.props.onReviewClick}
              disabled={this.props.published}
            >
              <i className='icon-plus' />
              {I18n.t(' Reviewer')}
            </button>
            <button
              ref='publishBtn'
              type='button'
              className='ModeratedGrading__Header-PublishBtn Button Button--primary'
              onClick={this.handlePublishClick}
              disabled={this.props.published}
            >
              {I18n.t('Post')}
            </button>
          </div>
        </div>
      );
    }

  });

  return Header;

});
{'fraction_non_alphanumeric': 0.1127129750982962, 'fraction_numerical': 0.006290956749672346, 'mean_word_length': 2.00709219858156, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '4878656', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1046, 'n_words': 208}