<commit_before>import React from 'react';

class StepLabel extends React.Component {
  getLabelIndicator() {
    const { completed, stepNumber } = this.props;
    let indicator = (<span className="mdl-step__label-indicator-content">{stepNumber}</span>);

    if (completed) {
      indicator = (<i className="material-icons mdl-step__label-indicator-content">check</i>);
    }

    return (
    <span className="mdl-step__label-indicator">
      {indicator}
    </span>
    );
  }
  render() {
    const { children } = this.props;
    return (
      <span className="mdl-step__label">
        {children}
        {this.getLabelIndicator()}
      </span>

    );
  }
}

export default StepLabel;<commit_msg>Add propTypes to StepLabel<commit_after>import React, { PropTypes } from 'react';

class StepLabel extends React.Component {
  getLabelIndicator() {
    const { completed, stepNumber } = this.props;
    let indicator = (<span className="mdl-step__label-indicator-content">{stepNumber}</span>);

    if (completed) {
      indicator = (<i className="material-icons mdl-step__label-indicator-content">check</i>);
    }

    return (
    <span className="mdl-step__label-indicator">
      {indicator}
    </span>
    );
  }
  render() {
    const { children } = this.props;
    return (
      <span className="mdl-step__label">
        {children}
        {this.getLabelIndicator()}
      </span>

    );
  }
}

StepLabel.propTypes = {
  completed: PropTypes.bool,
  stepNumber: PropTypes.number.isRequired,
  children: PropTypes.object,
};


export default StepLabel;
{'fraction_non_alphanumeric': 0.13894200127469725, 'fraction_numerical': 0.0, 'mean_word_length': 3.1315789473684212, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2834855', 'n_tokens_mistral': 492, 'n_tokens_neox': 489, 'n_words': 92}