<commit_before>'use strict';

const Handlebars = require('handlebars');

module.exports = (rating) => {
  let result = {
    gold: '<p class="ui yellow label">Gold</p>',
    silver: '<p class="ui grey label">Silver</p>',
    bronze: '<p class="ui brown label">Bronze</p>',
    defaultRating: '<h5>No stage</h5>'
  };

  return new Handlebars.SafeString(result[rating] ? result[rating] : result["defaultRating"]);
};
<commit_msg>ratings change to the helper test now passes<commit_after>'use strict';

const Handlebars = require('handlebars');

module.exports = (rating) => {
  let result = {
    gold: '<p class="ui yellow label">Gold</p>',
    silver: '<p class="ui grey label">Silver</p>',
    bronze: '<p class="ui brown label">Bronze</p>',
    defaultRating: '<h5>No rating</h5>'
  };

  return new Handlebars.SafeString(result[rating] ? result[rating] : result["defaultRating"]);
};

{'fraction_non_alphanumeric': 0.18693693693693694, 'fraction_numerical': 0.0045045045045045045, 'mean_word_length': 4.7727272727272725, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '6176705', 'n_tokens_mistral': 289, 'n_tokens_neox': 288, 'n_words': 71}