<commit_before>import Label from 'react-bootstrap/lib/Label';
import React, { PropTypes } from 'react';

import Timeout from './timeout';

const Header = ({
  canceled,
  confirmed,
  assigned,
  endsAt,
  paid,
}) => {
  if (canceled) {
    return <Label bsStyle="danger">Zrušeno uživatelem</Label>;
  }

  if (assigned) {
    return <Label bsStyle="success">Zařazeno na workshop</Label>;
  }

  if (paid) {
    return <Label bsStyle="info">Zaplaceno, čeká na zařazení</Label>;
  }

  if (confirmed) {
    return (
      <span>
        <Label bsStyle="warn">Potvrzeno uživatelem</Label>
        {!assigned && !paid ? (
          <span>
            {' '}
            <Timeout endsAt={endsAt} />
          </span>
        ) : null}
      </span>
    );
  }

  return (
    <span>
      <Label bsStyle="danger">Nepotvrzeno</Label>
      {' '}
      <Timeout endsAt={endsAt} />
    </span>
  );
};

Header.propTypes = {
  assigned: PropTypes.bool,
  canceled: PropTypes.bool,
  confirmed: PropTypes.bool,
  paid: PropTypes.bool,
  endsAt: PropTypes.string.isRequired,
};

Header.defaultProps = {
  assigned: false,
  canceled: false,
  confirmed: false,
  endsAt: null,
  paid: false,
};

export default Header;
<commit_msg>Fix warning label<commit_after>import Label from 'react-bootstrap/lib/Label';
import React, { PropTypes } from 'react';

import Timeout from './timeout';

const Header = ({
  canceled,
  confirmed,
  assigned,
  endsAt,
  paid,
}) => {
  if (canceled) {
    return <Label bsStyle="danger">Zrušeno uživatelem</Label>;
  }

  if (assigned) {
    return <Label bsStyle="success">Zařazeno na workshop</Label>;
  }

  if (paid) {
    return <Label bsStyle="info">Zaplaceno, čeká na zařazení</Label>;
  }

  if (confirmed) {
    return (
      <span>
        <Label bsStyle="warning">Potvrzeno uživatelem</Label>
        {!assigned && !paid ? (
          <span>
            {' '}
            <Timeout endsAt={endsAt} />
          </span>
        ) : null}
      </span>
    );
  }

  return (
    <span>
      <Label bsStyle="danger">Nepotvrzeno</Label>
      {' '}
      <Timeout endsAt={endsAt} />
    </span>
  );
};

Header.propTypes = {
  assigned: PropTypes.bool,
  canceled: PropTypes.bool,
  confirmed: PropTypes.bool,
  paid: PropTypes.bool,
  endsAt: PropTypes.string.isRequired,
};

Header.defaultProps = {
  assigned: false,
  canceled: false,
  confirmed: false,
  endsAt: null,
  paid: false,
};

export default Header;

{'fraction_non_alphanumeric': 0.1494487545937117, 'fraction_numerical': 0.0, 'mean_word_length': 2.6621823617339313, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '5983559', 'n_tokens_mistral': 871, 'n_tokens_neox': 864, 'n_words': 178}