<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import intervalFromNow from 'lib/dateDisplay';

export function DeckImportInfo({ timestamp, format, status, title }) {
  const className = `c_deck-import-info is__${format} is_${status}`;

  const date = new Date(timestamp * 1000);
  const displayDate = intervalFromNow(date);

  return (
    <li className={className}>
      <div>
        <h3>
          {title}
        </h3>
        <p>
          Uploaded: {displayDate} ago.
        </p>
        <p>
          Status: {status}
        </p>
      </div>
    </li>
  );
}

DeckImportInfo.propTypes = {
  timestamp: PropTypes.string.isRequired,
  format: PropTypes.oneOf(['ppt', 'pdf']).isRequired,
  status: PropTypes.oneOf(['queued', 'processing', 'success', 'error'])
    .isRequired,
  title: PropTypes.string.isRequired,
};

export default DeckImportInfo;<commit_msg>Fixed typo<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import intervalFromNow from 'lib/dateDisplay';

export function DeckImportInfo({ timestamp, format, status, title }) {
  const className = `c_deck-import-info is__${format} is_${status}`;

  const date = new Date(timestamp * 1000);
  const displayDate = intervalFromNow(date);

  return (
    <li className={className}>
      <div>
        <h3>
          {title}
        </h3>
        <p>
          Uploaded: {displayDate}.
        </p>
        <p>
          Status: {status}
        </p>
      </div>
    </li>
  );
}

DeckImportInfo.propTypes = {
  timestamp: PropTypes.string.isRequired,
  format: PropTypes.oneOf(['ppt', 'pdf']).isRequired,
  status: PropTypes.oneOf(['queued', 'processing', 'success', 'error'])
    .isRequired,
  title: PropTypes.string.isRequired,
};

export default DeckImportInfo;
{'fraction_non_alphanumeric': 0.14500836586726157, 'fraction_numerical': 0.006692693809258227, 'mean_word_length': 3.0314606741573034, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '3141776', 'n_tokens_mistral': 571, 'n_tokens_neox': 567, 'n_words': 133}