<commit_before><script type='text/jsx'>
  /** @jsx React.DOM */

  // The buttons for random_assign, assigning and unsassigning
  var GradersActionsColumn = React.createClass({
    propTypes: {
      selected_graders: React.PropTypes.array,
      selected_groups: React.PropTypes.array,
      selected_criteria: React.PropTypes.array,
      selected_graders_in_groups: React.PropTypes.array,
      selected_graders_in_criteria: React.PropTypes.array,
      current_table: React.PropTypes.string
    },
    // Sends a request to the server to perform some action
    // such as assigning or removing a member to/from a group
    // should probably be moved to actionsbox
    performAction: function(event) {
      var action = event.currentTarget.getAttribute('id');
      var dataLoad = {
        submit_type: 'global_action',
        current_table: this.props.current_table,
        global_actions: action,
        graders: this.props.selected_graders,
        groupings: this.props.selected_groups,
        grader_memberships: this.props.selected_graders_in_groups,
        criteria: this.props.selected_criteria,
        criterion_associations: this.props.selected_graders_in_criteria,
        skip_empty_submissions: this.props.skip_empty_submissions
      };
      jQuery.ajax({
        method: 'POST',
        url: 'graders/global_actions',
        data: dataLoad,
        success: function(data) {
          this.props.updateSelectedGraders([]);
          this.props.updateSelectedGroups([]);
          this.props.updateSelectedCriteria([]);
          this.props.updateSelectedGradersInGroups([]);
          this.props.setError(data);
          this.props.refresh();
        }.bind(this),
        error: function(xhr, status, text) {
          var error = text + ': ' + xhr.responseText;
          this.props.setError(error);
        }.bind(this)
      });
    },
    render: function() {
      return (
        <div className={'col-center'}>
          <div id='icons'>
            <input id='random_assign'
              className='image_input'
              src='<%= image_path 'random_arrow.png' %>'
              alt='<%= j raw I18n.t('groups.randomly_assign_graders') %>'
              onClick={this.performAction}
              type='image'
            />
            <img id='assign'
              className='image_input'
              src='<%= image_path 'add_arrow.png' %>'
              alt='<%= j raw I18n.t('add_graders') %>'
              onClick={this.performAction}
              type='image'
            />
            <img id='unassign'
              className='image_input'
              src='<%= image_path 'remove_arrow.png' %>'
              alt='<%= j raw I18n.t('remove_graders') %>'
              onClick={this.performAction}
              type='image'
            />
          </div>
        </div>
      );<commit_msg>Fixed button alt text<commit_after><script type='text/jsx'>
  /** @jsx React.DOM */

  // The buttons for random_assign, assigning and unsassigning
  var GradersActionsColumn = React.createClass({
    propTypes: {
      selected_graders: React.PropTypes.array,
      selected_groups: React.PropTypes.array,
      selected_criteria: React.PropTypes.array,
      selected_graders_in_groups: React.PropTypes.array,
      selected_graders_in_criteria: React.PropTypes.array,
      current_table: React.PropTypes.string
    },
    // Sends a request to the server to perform some action
    // such as assigning or removing a member to/from a group
    // should probably be moved to actionsbox
    performAction: function(event) {
      var action = event.currentTarget.getAttribute('id');
      var dataLoad = {
        submit_type: 'global_action',
        current_table: this.props.current_table,
        global_actions: action,
        graders: this.props.selected_graders,
        groupings: this.props.selected_groups,
        grader_memberships: this.props.selected_graders_in_groups,
        criteria: this.props.selected_criteria,
        criterion_associations: this.props.selected_graders_in_criteria,
        skip_empty_submissions: this.props.skip_empty_submissions
      };
      jQuery.ajax({
        method: 'POST',
        url: 'graders/global_actions',
        data: dataLoad,
        success: function(data) {
          this.props.updateSelectedGraders([]);
          this.props.updateSelectedGroups([]);
          this.props.updateSelectedCriteria([]);
          this.props.updateSelectedGradersInGroups([]);
          this.props.setError(data);
          this.props.refresh();
        }.bind(this),
        error: function(xhr, status, text) {
          var error = text + ': ' + xhr.responseText;
          this.props.setError(error);
        }.bind(this)
      });
    },
    render: function() {
      return (
        <div className={'col-center'}>
          <div id='icons'>
            <div id = 'icon1'>
              <input id='random_assign'
                className='image_input'
                src='<%= image_path 'random_arrow.png' %>'
                title='<%= j raw I18n.t('groups.randomly_assign_graders') %>'
                alt='<%= j raw I18n.t('groups.randomly_assign_graders') %>'
                onClick={this.performAction}
                type='image'
              />
            </div>
            <div id = 'icon2'>
              <input id='assign'
                className='image_input'
                src='<%= image_path 'add_arrow.png' %>'
                title='<%= j raw I18n.t('add_graders') %>'
                alt='<%= j raw I18n.t('add_graders') %>'
                onClick={this.performAction}
                type='image'
              />
            </div>
            <div id = 'icon3'>
              <input id='unassign'
                className='image_input'
                src='<%= image_path 'remove_arrow.png' %>'
                title='<%= j raw I18n.t('remove_graders') %>'
                alt='<%= j raw I18n.t('remove_graders') %>'
                onClick={this.performAction}
                type='image'
              />
            </div>
          </div>
        </div>
      );
{'fraction_non_alphanumeric': 0.12252252252252252, 'fraction_numerical': 0.0034398034398034397, 'mean_word_length': 2.0393230462916874, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '6737703', 'n_tokens_mistral': 1779, 'n_tokens_neox': 1728, 'n_words': 325}