<commit_before>module HushCmsAdminHelper
  def title
    @title
  end
  
  def title(title)
    @title = title
  end
  
  def add_link(url, type=:link)
    @links ? @links << [type, url] : @links = [[type, url]]
  end
  
  def to_formatted_hush_time(time)
    time.to_s(time.min > 0 ? :hush_time : :hush_time_without_minutes).gsub(/^0/, '').downcase
  end
end<commit_msg>Updated the admin time display helper to not crash on being sent incorrect times (now returns nil)<commit_after>module HushCmsAdminHelper
  def title
    @title
  end
  
  def title(title)
    @title = title
  end
  
  def add_link(url, type=:link)
    @links ? @links << [type, url] : @links = [[type, url]]
  end
  
  def to_formatted_hush_time(time)
    time.to_s(time.min > 0 ? :hush_time : :hush_time_without_minutes).gsub(/^0/, '').downcase rescue nil
  end
end
{'fraction_non_alphanumeric': 0.12171837708830549, 'fraction_numerical': 0.00477326968973747, 'mean_word_length': 3.439153439153439, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4608962', 'n_tokens_mistral': 319, 'n_tokens_neox': 313, 'n_words': 79}