<commit_before>Ember.Handlebars.registerBoundHelper 'directLinkTo', (url, label, classString, mime) ->
  classAttr = "class=\"" + classString + "\""
  url += "." + mime if mime
  link = "<a href=\"" + url + "\"" + classAttr + ">" + label + "</a>"
  new Em.Handlebars.SafeString(link)<commit_msg>fixed epub download link<commit_after>Ember.Handlebars.registerBoundHelper 'directLinkTo', (url, label, classString, mime) ->
  whitelistedMimes = ['pdf']
  classAttr = "class=\"" + classString + "\""
  url += "." + mime if _.contains(whitelistedMimes, mime)
  link = "<a href=\"" + url + "\"" + classAttr + ">" + label + "</a>"
  new Em.Handlebars.SafeString(link)
{'fraction_non_alphanumeric': 0.2015151515151515, 'fraction_numerical': 0.0, 'mean_word_length': 4.288, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1884245', 'n_tokens_mistral': 226, 'n_tokens_neox': 222, 'n_words': 49}