<commit_before>namespace :radiant do
  namespace :extensions do
    namespace :wym_editor_filter do
      
      desc "Runs the migration of the Wym Editor Filter extension"
      task :migrate => :environment do
        require 'radiant/extension_migrator'
        if ENV["VERSION"]
          WymEditorFilterExtension.migrator.migrate(ENV["VERSION"].to_i)
        else
          WymEditorFilterExtension.migrator.migrate
        end
      end

      desc "Copy needed files to public dir"
      task :install => :environment do
        is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
        Dir[WymEditorFilterExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
          path = file.sub(WymEditorFilterExtension.root, '')
          directory = File.dirname(path)
          puts "Copying #{path}..."
          mkdir_p RAILS_ROOT + directory
          cp file, RAILS_ROOT + path
        end
      end
<commit_msg>adding 'update' rake task that skips wym.css<commit_after>namespace :radiant do
  namespace :extensions do
    namespace :wym_editor_filter do
      
      desc "Runs the migration of the Wym Editor Filter extension"
      task :migrate => :environment do
        require 'radiant/extension_migrator'
        if ENV["VERSION"]
          WymEditorFilterExtension.migrator.migrate(ENV["VERSION"].to_i)
        else
          WymEditorFilterExtension.migrator.migrate
        end
      end

      desc "Copy needed files to public dir"
      task :install => :environment do
        is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
        Dir[WymEditorFilterExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
          path = file.sub(WymEditorFilterExtension.root, '')
          directory = File.dirname(path)
          puts "Copying #{path}..."
          mkdir_p RAILS_ROOT + directory
          cp file, RAILS_ROOT + path
        end
      end
      
      desc "Update public files except wym.css"
      task :update => :environment do
        is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
        Dir[WymEditorFilterExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
          next if file =~ /wym\.css/
          path = file.sub(WymEditorFilterExtension.root, '')
          directory = File.dirname(path)
          puts "Copying #{path}..."
          mkdir_p RAILS_ROOT + directory
          cp file, RAILS_ROOT + path
        end
      end
      

{'fraction_non_alphanumeric': 0.10608486789431545, 'fraction_numerical': 0.0, 'mean_word_length': 2.296833773087071, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '4662395', 'n_tokens_mistral': 744, 'n_tokens_neox': 752, 'n_words': 184}