<commit_before># Capistrano task for Bundler.
#
# Just add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and
# Bundler will be activated after each new deployment.

Capistrano::Configuration.instance(:must_exist).load do
  after "deploy:update_code", "bundle:install"

  namespace :bundle do
    desc <<-DESC
      Install the current Bundler environment. By default, gems will be \
      installed to the shared/bundle path. However, you can specify a \
      different directory via the bundle_dir variable. You can also specify \
      the file name and path to the Gemfile using the bundle_gemfile \
      variable. By default, gems in the development and test group will not \
      be installed. If you want these gems to be installed or want \
      additional named groups to be excluded, you can specify the \
      bundle_without variable

        set :bundle_gemfile, "Gemfile"
        set :bundle_dir,     "vendor/bundle"
        set :bundle_without, [:development, :test]
    DESC
    task :install, :except => { :no_release => true } do
      bundle_dir         = fetch(:bundle_dir,         "#{fetch(:shared_path)}/bundle")
      bundle_without     = [*fetch(:bundle_without,   [:development, :test])].compact
      bundle_install_env = fetch(:bundle_install_env, "--deployment")
      bundle_gemfile     = fetch(:bundle_gemfile,     "Gemfile")
      args = [
        "--gemfile #{fetch(:latest_release)}/#{bundle_gemfile}",
        ("--path #{bundle_dir}" unless bundle_dir.to_s.empty?),
        "#{bundle_install_env}",
        ("--without #{bundle_without.join(" ")}" unless bundle_without.empty?)
      ].compact
      run "bundle install #{args.join(' ')}"
    end
  end
end<commit_msg>Fix the documented cap task bundle_dir default, format a bit<commit_after># Capistrano task for Bundler.
#
# Just add "require 'bundler/capistrano'" in your Capistrano deploy.rb, and
# Bundler will be activated after each new deployment.

Capistrano::Configuration.instance(:must_exist).load do
  after "deploy:update_code", "bundle:install"

  namespace :bundle do
    desc <<-DESC
      Install the current Bundler environment. By default, gems will be \
      installed to the shared/bundle path. However, you can specify a \
      different directory via the bundle_dir variable. You can also specify \
      the file name and path to the Gemfile using the bundle_gemfile \
      variable. By default, gems in the development and test group will not \
      be installed. If you want these gems to be installed or want \
      additional named groups to be excluded, you can specify the \
      bundle_without variable

        set :bundle_gemfile, "Gemfile"
        set :bundle_dir,     fetch(:shared_path)+"/bundle"
        set :bundle_without, [:development, :test]
    DESC
    task :install, :except => { :no_release => true } do
      bundle_dir         = fetch(:bundle_dir,         "#{fetch(:shared_path)}/bundle")
      bundle_without     = [*fetch(:bundle_without,   [:development, :test])].compact
      bundle_install_env = fetch(:bundle_install_env, "--deployment")
      bundle_gemfile     = fetch(:bundle_gemfile,     "Gemfile")

      args = ["--gemfile #{fetch(:latest_release)}/#{bundle_gemfile}"]
      args << "--path #{bundle_dir}" unless bundle_dir.to_s.empty?
      args << "#{bundle_install_env}"
      args << "--without #{bundle_without.join(" ")}" unless bundle_without.empty?

      run "bundle install #{args.join(' ')}"
    end
  end
end
{'fraction_non_alphanumeric': 0.10687679083094556, 'fraction_numerical': 0.0, 'mean_word_length': 3.1510107015457787, 'pattern_counts': {'":': 0, '<': 13, '<?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': '3679211', 'n_tokens_mistral': 993, 'n_tokens_neox': 967, 'n_words': 328}