<commit_before>import React from 'react';
import _ from 'lodash';

/**
 * A component for the continue button to navigate through panels of questions.
 *
 * Required props
 * `onButtonClick`: function that changes the path to the next panel or submit.
 * `buttonText`: String. Stores the value for the button text.
 * `buttonClass`: String. Stores the value for the button class(es).
 * `beforeText`: String. Stores the value for the icon that will appear before the button text.
 * `afterText`: String. Stores the value for the icon that will appear after the button text.
 */

class ProgressButton extends React.Component {
  componentWillMount() {
    this.id = _.uniqueId();
  }

  render() {
    const beforeText = (this.props.beforeText) ? (<span className="button-icon">{this.props.beforeText} </span>) : '';
    const afterText = (this.props.afterText) ? (<span className="button-icon"> {this.props.afterText}</span>) : '';

    return (
      <div className="row progress-buttons">
        <div className="small-8 columns">
          <button
              className={`text-capitalize ${this.props.buttonClass}`}
              id={`${this.id}-continueButton`}<commit_msg>Change width on small screens to be 12<commit_after>import React from 'react';
import _ from 'lodash';

/**
 * A component for the continue button to navigate through panels of questions.
 *
 * Required props
 * `onButtonClick`: function that changes the path to the next panel or submit.
 * `buttonText`: String. Stores the value for the button text.
 * `buttonClass`: String. Stores the value for the button class(es).
 * `beforeText`: String. Stores the value for the icon that will appear before the button text.
 * `afterText`: String. Stores the value for the icon that will appear after the button text.
 */

class ProgressButton extends React.Component {
  componentWillMount() {
    this.id = _.uniqueId();
  }

  render() {
    const beforeText = (this.props.beforeText) ? (<span className="button-icon">{this.props.beforeText} </span>) : '';
    const afterText = (this.props.afterText) ? (<span className="button-icon"> {this.props.afterText}</span>) : '';

    return (
      <div className="row progress-buttons">
        <div className="small-12 medium-8 columns">
          <button
              className={`text-capitalize ${this.props.buttonClass}`}
              id={`${this.id}-continueButton`}
{'fraction_non_alphanumeric': 0.12494776431257835, 'fraction_numerical': 0.0025073129962390303, 'mean_word_length': 3.568702290076336, 'pattern_counts': {'":': 0, '<': 17, '<?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': '4660840', 'n_tokens_mistral': 670, 'n_tokens_neox': 637, 'n_words': 231}