<commit_before>hbs = require('express-hbs')

hbs.registerHelper('css-classify', (text) ->
  classifiedText = text.toLowerCase()
  classifiedText = classifiedText.replace(/\ /g, '-')
  return classifiedText
)<commit_msg>CSS Classify handlebars helper should account for empty narratives<commit_after>hbs = require('express-hbs')

hbs.registerHelper('css-classify', (text) ->
  if text?
    classifiedText = text.toLowerCase()
    classifiedText = classifiedText.replace(/\ /g, '-')
    return classifiedText
)
{'fraction_non_alphanumeric': 0.13976377952755906, 'fraction_numerical': 0.0, 'mean_word_length': 4.988235294117647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4617748', 'n_tokens_mistral': 151, 'n_tokens_neox': 152, 'n_words': 32}