<commit_before># frozen_string_literal: true

module PostsHelper
  def render_links(text)
    # Don't forget to escape the '.'!
    permitted_sites = %w[(?:stackoverflow|superuser|serverfault|askubuntu|stackapps)\\.com mathoverflow\\.net m\\.erwaysoftware\\.com]
    raw(text.split(%r{((?:https?:)?\/{2}(?:#{permitted_sites.join('|')})[^\)\s]*)}).map.with_index do |s, i|
      i.even? ? html_escape(s) : link_to(s, s)
    end.join)
  end
end<commit_msg>Added metasmoke.erwaysofsoftware.com to the permitted links<commit_after># frozen_string_literal: true

module PostsHelper
  def render_links(text)
    # Don't forget to escape the '.'!
    permitted_sites = %w[(?:stackoverflow|superuser|serverfault|askubuntu|stackapps)\\.com mathoverflow\\.net m(?:etasmoke)?\\.erwaysoftware\\.com]
    raw(text.split(%r{((?:https?:)?\/{2}(?:#{permitted_sites.join('|')})[^\)\s]*)}).map.with_index do |s, i|
      i.even? ? html_escape(s) : link_to(s, s)
    end.join)
  end
end
{'fraction_non_alphanumeric': 0.19958634953464321, 'fraction_numerical': 0.002068252326783868, 'mean_word_length': 4.694117647058824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4709409', 'n_tokens_mistral': 370, 'n_tokens_neox': 356, 'n_words': 58}