<commit_before>Capistrano::Configuration.instance.load do
  after "deploy:update_code", "restful_authentication:symlink"

  namespace :restful_authentication do
    desc "Make symlink for site key"
    task :symlink do
      run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{latest_release}/config/initializers/site_keys.rb"
    end
  end

  namespace :sync do
    namespace :down do
      desc "Sync down site key"
      task :restful_authentication do
        download "#{shared_path}/config/initializers/site_keys.rb", "config/initializers/site_keys.rb"
      end
    end

    namespace :up do
      desc "Sync up site key"
      task :restful_authentication do
        upload "config/initializers/site_keys.rb", "#{shared_path}/config/initializers/site_keys.rb"
      end
    end
  end
end
<commit_msg>Add restful_authentication:configure task.<commit_after>Capistrano::Configuration.instance.load do
  before "deploy:setup", "restful_authentication:prepare_config"
  after "deploy:update_code", "restful_authentication:symlink"
  before "restful_authentication:configure", "deploy:update_code"

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

    desc "Make symlink for site key"
    task :symlink do
      run "ln -nfs #{shared_path}/config/initializers/site_keys.rb #{latest_release}/config/initializers/site_keys.rb"
    end

    desc "Create new site_key"
    task :configure, :roles => :app do
      run("cd #{latest_release} && /usr/bin/env bundle exec rake auth:gen:site_key RAILS_ENV=#{rails_env}")
    end
  end

  namespace :sync do
    namespace :down do
      desc "Sync down site key"
      task :restful_authentication do
        download "#{shared_path}/config/initializers/site_keys.rb", "config/initializers/site_keys.rb"
      end
    end

    namespace :up do
      desc "Sync up site key"
      task :restful_authentication do
        upload "config/initializers/site_keys.rb", "#{shared_path}/config/initializers/site_keys.rb"
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0950354609929078, 'fraction_numerical': 0.0, 'mean_word_length': 3.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1557276', 'n_tokens_mistral': 661, 'n_tokens_neox': 648, 'n_words': 160}