<commit_before>namespace :assets do
  desc "Clear cached assets"
  task :clear do
    glob = File.expand_path(RAILS_ROOT + "/public/stylesheets/gts-*.css")
    `rm -f #{glob}`
    glob = File.expand_path(RAILS_ROOT + "/public/javascripts/gts-*.js")
    `rm -f #{glob}`
    puts "Removed generated stylesheets and javascripts"
  end
end
<commit_msg>Make assets:clear rake task complete<commit_after>def rm(path)
  Dir.glob(File.join(RAILS_ROOT, path)).each do |file|
    puts file if ENV["VERBOSE"]
    `rm -f #{File.expand_path(file)}`
  end
end

namespace :assets do
  desc "Clear cached assets"
  task :clear do
    rm("/public/stylesheets/gts-*.css")
    rm("/public/stylesheets/all.css")
    rm("/public/javascripts/gts-*.js")
    rm("/public/javascripts/all.js")
    rm("/public/javascripts/capillary.js")
    rm("/public/**/*/gts-*.*")
    puts "Removed generated stylesheets and javascripts"
  end
end

{'fraction_non_alphanumeric': 0.1551155115511551, 'fraction_numerical': 0.0, 'mean_word_length': 3.595959595959596, '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': '2059026', 'n_tokens_mistral': 329, 'n_tokens_neox': 322, 'n_words': 73}