<commit_before>namespace :effective_datatables do
  desc 'Create nondigest versions of some effective_datatables assets'
  task :create_nondigest_assets do
    fingerprint = /\-[0-9a-f]{32}\./
    for file in Dir['public/assets/dataTables/*.*', 'public/assets/effective_datatables/*.*']
      next unless file =~ fingerprint
      nondigest = file.sub fingerprint, '.' # contents-0d8ffa186a00f5063461bc0ba0d96087.css => contents.css
      FileUtils.cp file, nondigest, verbose: true
    end
  end
end

# auto run ckeditor:create_nondigest_assets after assets:precompile
Rake::Task['assets:precompile'].enhance do
  puts 'undigesting required effective_datatables assets'
  Rake::Task['effective_datatables:create_nondigest_assets'].invoke
end<commit_msg>no more need to undigested assets :)<commit_after>
{'fraction_non_alphanumeric': 0.10323383084577115, 'fraction_numerical': 0.03109452736318408, 'mean_word_length': 5.1923076923076925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2388877', 'n_tokens_mistral': 277, 'n_tokens_neox': 259, 'n_words': 58}