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

define([
  'react',
  'i18n!assignments'
], (React, I18n) => {

  var DueDateAddRowButton = React.createClass({

    propTypes: {
      display: React.PropTypes.bool.isRequired
    },

    render(){
      if(!this.props.display){ return null }

      return(
        <button id        = "add_due_date"
                ref       = "addButton"
                className = "Button Button--add-row"
                onClick   = {this.props.handleAdd}
                type      = "button" >
          <i className="icon-plus" aria-label={I18n.t("Add new set of due dates")} />
          {I18n.t("Add")}
        </button>
      )
    }
  })

  return DueDateAddRowButton<commit_msg>A11y: Added ARIA label to Add Due Date Set button<commit_after>/** @jsx React.DOM */

define([
  'react',
  'i18n!assignments'
], (React, I18n) => {

  var DueDateAddRowButton = React.createClass({

    propTypes: {
      display: React.PropTypes.bool.isRequired
    },

    render(){
      if(!this.props.display){ return null }

      return(
        <button id        = "add_due_date"
                ref       = "addButton"
                className = "Button Button--add-row"
                onClick   = {this.props.handleAdd}
                type      = "button" >
          <i className="icon-plus" />
          <span className="screenreader-only">{I18n.t("Add new set of due dates")}</span>
          <span aria-hidden="true">{I18n.t("Add")}</span>
        </button>
      )
    }
  })

  return DueDateAddRowButton
{'fraction_non_alphanumeric': 0.142578125, 'fraction_numerical': 0.01171875, 'mean_word_length': 1.86219739292365, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '3941320', 'n_tokens_mistral': 508, 'n_tokens_neox': 483, 'n_words': 96}