<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ProgressBarStep from './ProgressBarStep';
import styles from './step_indicator.module.scss';

function StepIndicator(props) {
  const {
    className,
    steps,
    navigateToPath
  } = props;

  const classes = [
    styles['step-indicator'],
    className,
  ];

  return (
    <div className={classnames(...classes)}>
      {steps.map((step, idx) =>
        <ProgressBarStep
          key={idx}
          step={step}
          navigateToPath={navigateToPath}
        />
      )}
    </div>
  );
}

StepIndicator.propTypes = {
  /**
   * This prop will add a new className to any inherent classNames
   * provided in the component's index.js file.
   */
  className: PropTypes.string,
  /**
   * An array of the steps to display
   */
  steps: PropTypes.arrayOf(
    PropTypes.shape({
      text: PropTypes.string,
      route: PropTypes.string,
      nextStepAccessible: PropTypes.bool,
      currentStepActive: PropTypes.bool,
      clickable: PropTypes.bool,
    })
  ).isRequired,
  /**
   * Click handler for steps; expects to be called with path name
   */
  navigateToPath: PropTypes.func.isRequired
};

export default StepIndicator;<commit_msg>Allow deployment<commit_after>// import React from 'react';
// import PropTypes from 'prop-types';
// import classnames from 'classnames';
// import ProgressBarStep from './ProgressBarStep';
// import styles from './step_indicator.module.scss';

// function StepIndicator(props) {
  // const {
    // className,
    // steps,
    // navigateToPath
  // } = props;

  // const classes = [
    // styles['step-indicator'],
    // className,
  // ];

  // return (
    // <div className={classnames(...classes)}>
      // {steps.map((step, idx) =>
        // <ProgressBarStep
          // key={idx}
          // step={step}
          // navigateToPath={navigateToPath}
        // />
      // )}
    // </div>
  // );
// }

// StepIndicator.propTypes = {
  /**
   * This prop will add a new className to any inherent classNames
   * provided in the component's index.js file.
   */
  // className: PropTypes.string,
  /**
   * An array of the steps to display
   */
  // steps: PropTypes.arrayOf(
    // PropTypes.shape({
      // text: PropTypes.string,
      // route: PropTypes.string,
      // nextStepAccessible: PropTypes.bool,
      // currentStepActive: PropTypes.bool,
      // clickable: PropTypes.bool,
    // })
  // ).isRequired,
  /**
   * Click handler for steps; expects to be called with path name
   */
  // navigateToPath: PropTypes.func.isRequired
// };

// export default StepIndicator;
{'fraction_non_alphanumeric': 0.13880597014925372, 'fraction_numerical': 0.0, 'mean_word_length': 2.380832282471627, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '1064996', 'n_tokens_mistral': 783, 'n_tokens_neox': 801, 'n_words': 197}