<commit_before>Pakyow::App.mutators :file do
  mutator :list do |view, data|
    view.apply(data) do |datum|
      id = datum[:id]

      config = {
        id: id,
        thumb: router.group(:file).path(:show, file_id: id)
      }

      attrs.send(:'data-config=', config.map { |c| c.join(':') }.join(';'))
    end
  end
end<commit_msg>Fix router reference<commit_after>Pakyow::App.mutators :file do
  mutator :list do |view, data|
    view.apply(data) do |datum|
      id = datum[:id]

      config = {
        id: id,
        thumb: Pakyow::Router.instance.group(:file).path(:show, file_id: id)
      }

      attrs.send(:'data-config=', config.map { |c| c.join(':') }.join(';'))
    end
  end
end
{'fraction_non_alphanumeric': 0.18091168091168092, 'fraction_numerical': 0.0, 'mean_word_length': 2.6237113402061856, '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': '6874099', 'n_tokens_mistral': 265, 'n_tokens_neox': 260, 'n_words': 57}