<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { withTranslation } from 'react-i18next';

/**
 * Navigation is a react component.
 * It can contain three different buttons: Back, Next, Submit.
 * Each of them has a related property onBack, onNext, onSubmit
 */
export function Navigation({ t, disabled, tab, tabs, tabDone, onBack, onNext, onSubmit }) {
  const backButton = (
    <button
      type="button"
      role="button"
      className="btn btn-action btn-link"
      aria-label="Previous section"
      onClick={onBack}>
      <span className="icon-left"></span>
      {t('Back')}
    </button>
  );

  const nextButton = (
    <button
      type="button"
      role="button"
      className="btn btn-action btn-primary"
      aria-label="Next section"
      onClick={onNext}
      disabled={tabDone < tab}>
      {t('Next')}
    </button>
  );

  const submitButton = (
    <button
      role="button"
      className="btn btn-action btn-primary"<commit_msg>Remove role=button on buttons<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { withTranslation } from 'react-i18next';

/**
 * Navigation is a react component.
 * It can contain three different buttons: Back, Next, Submit.
 * Each of them has a related property onBack, onNext, onSubmit
 */
export function Navigation({ t, disabled, tab, tabs, tabDone, onBack, onNext, onSubmit }) {
  const backButton = (
    <button
      type="button"
      className="btn btn-action btn-link"
      aria-label="Previous section"
      onClick={onBack}>
      <span className="icon-left"></span>
      {t('Back')}
    </button>
  );

  const nextButton = (
    <button
      type="button"
      className="btn btn-action btn-primary"
      aria-label="Next section"
      onClick={onNext}
      disabled={tabDone < tab}>
      {t('Next')}
    </button>
  );

  const submitButton = (
    <button
      className="btn btn-action btn-primary"
{'fraction_non_alphanumeric': 0.13109756097560976, 'fraction_numerical': 0.0020325203252032522, 'mean_word_length': 3.0431211498973307, 'pattern_counts': {'":': 0, '<': 19, '<?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': '1463777', 'n_tokens_mistral': 586, 'n_tokens_neox': 579, 'n_words': 167}