<commit_before>
namespace :submodules do

    desc "Check the status of the project's submodules"
    task :check => :environment do
        commit_info = `git submodule status`
        sha, repo, branch = commit_info.split(' ')
        case sha[0,1]
        when '+'
            $stderr.puts "Warning: Currently checked out submodule commit for #{repo}"
            $stderr.puts "does not match the commit expected by this version of Alaveteli."
            $stderr.puts "You can update it with 'git submodule update'."
            exit(1)
        when '-'
            $stderr.puts "Warning: Submodule #{repo} needs to be initialized."
            $stderr.puts "You can do this by running 'git submodule update --init'."
            exit(1)
        when 'U'
            $stderr.puts "Warning: Submodule #{repo} has merge conflicts."
            $stderr.puts "You'll probably need to resolve these to run Alaveteli."
            exit(1)
        else
            exit(0)
        end
    end

end<commit_msg>Call it an error, not a warning.<commit_after>
namespace :submodules do

    desc "Check the status of the project's submodules"
    task :check => :environment do
        commit_info = `git submodule status`
        sha, repo, branch = commit_info.split(' ')
        case sha[0,1]
        when '+'
            $stderr.puts "Error: Currently checked out submodule commit for #{repo}"
            $stderr.puts "does not match the commit expected by this version of Alaveteli."
            $stderr.puts "You can update it with 'git submodule update'."
            exit(1)
        when '-'
            $stderr.puts "Error: Submodule #{repo} needs to be initialized."
            $stderr.puts "You can do this by running 'git submodule update --init'."
            exit(1)
        when 'U'
            $stderr.puts "Error: Submodule #{repo} has merge conflicts."
            $stderr.puts "You'll need to resolve these to run Alaveteli."
            exit(1)
        else
            exit(0)
        end
    end

end
{'fraction_non_alphanumeric': 0.09424603174603174, 'fraction_numerical': 0.005952380952380952, 'mean_word_length': 1.9705449189985274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3917798', 'n_tokens_mistral': 557, 'n_tokens_neox': 546, 'n_words': 212}