<commit_before>Capistrano::Configuration.instance(:must_exist).load do
  after "deploy:finalize_update", "config:symlink"

  namespace :config do
    set :config_files, fetch(:config_files, [])

    desc <<-DESC
      Creates a symlink between the unversioned application \
      configuration files in our shared directory and our application.
    DESC
    task :symlink, :except => {:no_release => true} do
      config_files.each do |file|
        run "ln -nfs #{shared_path}/config/#{file} #{latest_release}/config/#{file}"
      end
    end
  end
end<commit_msg>Only run the symlink command once.<commit_after>Capistrano::Configuration.instance(:must_exist).load do
  after "deploy:finalize_update", "config:symlink"

  namespace :config do
    set :config_files, fetch(:config_files, [])

    desc <<-DESC
      Creates a symlink between the unversioned application \
      configuration files in our shared directory and our application.
    DESC
    task :symlink, :except => {:no_release => true} do
      symlinks = config_files.inject([]) do |commands, file|
        commands << "ln -nfs #{shared_path}/config/#{file} #{latest_release}/config/#{file}"
      end

      run symlinks.join(' && ')
    end
  end
end
{'fraction_non_alphanumeric': 0.116107931316435, 'fraction_numerical': 0.0, 'mean_word_length': 3.5842696629213484, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1888028', 'n_tokens_mistral': 362, 'n_tokens_neox': 356, 'n_words': 104}