<commit_before>Capistrano::Configuration.instance.load do
  before "deploy:setup", "db:prepare_config"
  after "deploy:finalize_update", "db:symlink"

  before "db:setup", "deploy:update_code"

  namespace :db do
    desc "Create database.yaml based on example"
    task :prepare_config do
      run "mkdir -p #{shared_path}/db"
      run "mkdir -p #{shared_path}/config"
    end

    # Author::      <NAME> <<EMAIL>>
    # License::     MIT License
    # Link::        http://www.simonecarletti.com/
    # Source::      http://gist.github.com/2769
    desc <<-DESC
      Creates the database.yml configuration file in shared path.

      By default, this task uses a template unless a template
      called database.yml.erb is found either is :template_dir
      or /config/deploy folders. The default template matches
      the template for config/database.yml file shipped with Rails.

      When this recipe is loaded, db:configure is automatically configured
      to be invoked after deploy:setup. You can skip this task setting
      the variable :skip_db_setup to true. This is especially useful
      if you are using this recipe in combination with
      capistrano-ext/multistaging to avoid multiple db:configure calls
      when running deploy:configure for all stages one by one.<commit_msg>Fix tas description for db:prepare_config.<commit_after>Capistrano::Configuration.instance.load do
  before "deploy:setup", "db:prepare_config"
  after "deploy:finalize_update", "db:symlink"

  before "db:setup", "deploy:update_code"

  namespace :db do
    desc "Create shared directories"
    task :prepare_config do
      run "mkdir -p #{shared_path}/db"
      run "mkdir -p #{shared_path}/config"
    end

    # Author::      <NAME> <<EMAIL>>
    # License::     MIT License
    # Link::        http://www.simonecarletti.com/
    # Source::      http://gist.github.com/2769
    desc <<-DESC
      Creates the database.yml configuration file in shared path.

      By default, this task uses a template unless a template
      called database.yml.erb is found either is :template_dir
      or /config/deploy folders. The default template matches
      the template for config/database.yml file shipped with Rails.

      When this recipe is loaded, db:configure is automatically configured
      to be invoked after deploy:setup. You can skip this task setting
      the variable :skip_db_setup to true. This is especially useful
      if you are using this recipe in combination with
      capistrano-ext/multistaging to avoid multiple db:configure calls
      when running deploy:configure for all stages one by one.
{'fraction_non_alphanumeric': 0.07885714285714286, 'fraction_numerical': 0.0030476190476190477, 'mean_word_length': 3.122448979591837, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2001122', 'n_tokens_mistral': 732, 'n_tokens_neox': 696, 'n_words': 275}