<commit_before>require "fileutils"

namespace :assets do
  desc "Compile all the assets named in config.assets.precompile"
  task :precompile => :environment do
    # Give assets access to asset_path
    Sprockets::Helpers::RailsHelper

    assets = Rails.application.config.assets.precompile
    Rails.application.assets.precompile(*assets)
  end

  desc "Remove compiled assets"
  task :cleanup => :environment do
    assets = Rails.application.config.assets
    public_asset_path = Rails.public_path + assets.prefix
    FileUtils.rm_r Dir.glob("#{public_asset_path}/*.js")
    FileUtils.rm_r Dir.glob("#{public_asset_path}/*.css")
  end
end<commit_msg>rename task and Rake::FileList used <commit_after>require "fileutils"

namespace :assets do
  desc "Compile all the assets named in config.assets.precompile"
  task :precompile => :environment do
    # Give assets access to asset_path
    Sprockets::Helpers::RailsHelper

    assets = Rails.application.config.assets.precompile
    Rails.application.assets.precompile(*assets)
  end

  desc "Remove compiled assets"
  task :clean => :environment do
    assets = Rails.application.config.assets
    public_asset_path = Rails.public_path + assets.prefix
    file_list = FileList.new("#{public_asset_path}/*.js", "#{public_asset_path}/*.css")
    file_list.each{ |list| FileUtils.rm list }
  end
end
{'fraction_non_alphanumeric': 0.10436713545521836, 'fraction_numerical': 0.0, 'mean_word_length': 4.365079365079365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7133104', 'n_tokens_mistral': 416, 'n_tokens_neox': 406, 'n_words': 99}