<commit_before>namespace :setup do

  docker_tasks name = docker_container_name(true), image = docker_image_name(true)

  task :config_files do
    touch config.config_files
  end

  task :build => [:config_files, *config.build_files] do
    docker_build image
  end

  task :config => :start do
    url, cfg = docker_url(name), config.config_files.first

    broken, args = broken_version?(ENV['STRICTVERSION']),
      ["#{url}/mw-config/", config.data_path, cfg]

    verified_version?(ENV['STRICTVERSION']) ?
      broken ? setup_broken(cfg) : setup_manual(*args << nil << true) :
    begin
      require 'mechanize'
    rescue LoadError => err
      broken ? setup_broken(err) : setup_manual(*args << err)
    else ENV['NOMECHANIZE'] ?
      broken ? setup_broken(nil) : setup_manual(*args) : setup_mechanize(*args)
    end

    fix_config(cfg, File.basename(url))
  end

  task :dump => :config do
    path = File.join(docker_volume(name),
      config.data_directory, config.database_file)

    args = %W[sqlite3 -batch -cmd .mode\ insert -cmd .dump #{path} .exit]
    args.unshift('sudo') unless ENV['NOSUDO']

    File.write(config.config_files.last, IO.popen(args, &:read).chomp)
  end

  task :setup  => [:build, :config]

  task :export => [:dump, :clean]

end<commit_msg>lib/media_wiki/test_wiki/tasks/setup.rake (setup:config): Fixed conditional.<commit_after>namespace :setup do

  docker_tasks name = docker_container_name(true), image = docker_image_name(true)

  task :config_files do
    touch config.config_files
  end

  task :build => [:config_files, *config.build_files] do
    docker_build image
  end

  task :config => :start do
    url, cfg = docker_url(name), config.config_files.first

    broken, args = broken_version?(ENV['STRICTVERSION']),
      ["#{url}/mw-config/", config.data_path, cfg]

    !verified_version?(ENV['STRICTVERSION']) ?
      broken ? setup_broken(cfg) : setup_manual(*args << nil << true) :
    begin
      require 'mechanize'
    rescue LoadError => err
      broken ? setup_broken(err) : setup_manual(*args << err)
    else ENV['NOMECHANIZE'] ?
      broken ? setup_broken(nil) : setup_manual(*args) : setup_mechanize(*args)
    end

    fix_config(cfg, File.basename(url))
  end

  task :dump => :config do
    path = File.join(docker_volume(name),
      config.data_directory, config.database_file)

    args = %W[sqlite3 -batch -cmd .mode\ insert -cmd .dump #{path} .exit]
    args.unshift('sudo') unless ENV['NOSUDO']

    File.write(config.config_files.last, IO.popen(args, &:read).chomp)
  end

  task :setup  => [:build, :config]

  task :export => [:dump, :clean]

end
{'fraction_non_alphanumeric': 0.13878326996197718, 'fraction_numerical': 0.0007604562737642585, 'mean_word_length': 3.7320143884892087, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3857690', 'n_tokens_mistral': 928, 'n_tokens_neox': 880, 'n_words': 194}