<commit_before>COMPONENTS = [] if not defined? COMPONENTS

task :all => :default

task :default do
    COMPONENTS.each do |e|
        verbose(false)
        if ENV['silent'] != "true" then
            sh "echo '\033[1;49m[ >> building \033[1;35m#{e}\033[0;49m\033[1;49m ]\033[0;49m'"
        end
        sh "rake -f #{e}/rakefile"
        if ENV['silent'] != "true" then
            sh "echo '\033[1;49m[ << leaving \033[1;35m#{e}\033[0;49m\033[1;49m ]\033[0;49m'"
        end
    end
end

task :collect do
    COMPONENTS.each do |e|
        verbose(false)
        sh "rake collect -f #{e}/rakefile"
    end
end


task :clean do
    COMPONENTS.each do |e|
        verbose(false)
        sh "rake clean -f #{e}/rakefile"
        if File.exists? "#{e}/test/rakefile" then
            sh "rake clean -f #{e}/test/rakefile"
        end
    end
end

task :clobber do
    COMPONENTS.each do |e|
        verbose(false)
        sh "rake clobber -f #{e}/rakefile"
        if File.exists? "#{e}/test/rakefile" then
            sh "rake clobber -f #{e}/test/rakefile"
        end
    end
end

task :test do
    error = 0
    COMPONENTS.each do |e|
        verbose(false)
        begin
          sh "rake test -f #{e}/rakefile"
        rescue
          error = 1
        end
    end
    if error then abort() end
end<commit_msg>#364 debug travis error<commit_after>COMPONENTS = [] if not defined? COMPONENTS

task :all => :default

task :default do
    COMPONENTS.each do |e|
        verbose(false)
        if ENV['silent'] != "true" then
            sh "echo '\033[1;49m[ >> building \033[1;35m#{e}\033[0;49m\033[1;49m ]\033[0;49m'"
        end
        sh "rake -f #{e}/rakefile"
        if ENV['silent'] != "true" then
            sh "echo '\033[1;49m[ << leaving \033[1;35m#{e}\033[0;49m\033[1;49m ]\033[0;49m'"
        end
    end
end

task :collect do
    COMPONENTS.each do |e|
        verbose(false)
        sh "rake collect -f #{e}/rakefile"
    end
end


task :clean do
    COMPONENTS.each do |e|
        verbose(false)
        sh "rake clean -f #{e}/rakefile"
        if File.exists? "#{e}/test/rakefile" then
            sh "rake clean -f #{e}/test/rakefile"
        end
    end
end

task :clobber do
    COMPONENTS.each do |e|
        verbose(false)
        sh "rake clobber -f #{e}/rakefile"
        if File.exists? "#{e}/test/rakefile" then
            sh "rake clobber -f #{e}/test/rakefile"
        end
    end
end

task :test do
    error = 0
    COMPONENTS.each do |e|
        verbose(false)
        #begin
          sh "rake test -f #{e}/rakefile"
        #rescue
        #  error = 1
        #end
    end
    #if error != 0 then abort() end
end
{'fraction_non_alphanumeric': 0.14027149321266968, 'fraction_numerical': 0.048265460030165915, 'mean_word_length': 1.871212121212121, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2307142', 'n_tokens_mistral': 1048, 'n_tokens_neox': 959, 'n_words': 265}