<commit_before>import React from 'react';

const ProgressBar = ({ progress }) => (
  <div className="progress progress-striped active">
    <div className="progress-bar" style={{ width: progress + '%' }}></div>
  </div>
);
<commit_msg>add different styles for different percentages<commit_after>import React from 'react';

const ProgressBar = ({ progress }) => {
  let progressClass = "progress-bar ";
  if (progress > 80) {
    progressClass += "progress-bar-success";
  } else if (progress > 60) {
    progressClass += "progress-bar-info";
  } else if (progress > 40) {
    progressClass += "progress-bar-warning";
  } else {
    progressClass += "progress-bar-danger";
  }

  return (
    <div className="progress progress-striped active">
      <div className={progressClass} style={{ width: progress + '%' }}></div>
    </div>
  );
}

{'fraction_non_alphanumeric': 0.16567342073897498, 'fraction_numerical': 0.007151370679380214, 'mean_word_length': 3.8275862068965516, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, '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': '1058802', 'n_tokens_mistral': 255, 'n_tokens_neox': 247, 'n_words': 65}