<commit_before>node[:deploy].each do |app_name, deploy|
    template "#{deploy[:deploy_to]}/current/app/config/parameters.yml" do
        source "parameters.yml.erb"
        mode 0644
        variables(
            :params => {
                :parameters => {
                    :database_driver => "pdo_mysql",
                    :database_host => deploy[:database][:host],
                    :database_port => deploy[:database][:port],
                    :database_name => deploy[:database][:database],
                    :database_user => deploy[:database][:username],
                    :database_password => deploy[:database][:password]
                }.merge(node[app_name][:parameters])
            }.to_json
        )

        only_if do
             File.directory?("#{deploy[:deploy_to]}/current/app/config")
        end
    end<commit_msg>make the symfony params for database overridable<commit_after>node[:deploy].each do |app_name, deploy|
    template "#{deploy[:deploy_to]}/current/app/config/parameters.yml" do
        source "parameters.yml.erb"
        mode 0644
        variables(
            :params => {
                :parameters => {
                    "database_driver" => "pdo_#{deploy[:database][:adapter]}",
                    "database_host" => deploy[:database][:host],
                    "database_port" => deploy[:database][:port],
                    "database_name" => deploy[:database][:database],
                    "database_user" => deploy[:database][:username],
                    "database_password" => deploy[:database][:password]
                }.merge(node[app_name][:parameters])
            }.to_json
        )

        only_if do
             File.directory?("#{deploy[:deploy_to]}/current/app/config")
        end
    end
{'fraction_non_alphanumeric': 0.14085297418630752, 'fraction_numerical': 0.004489337822671156, 'mean_word_length': 1.9086460032626427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '3077253', 'n_tokens_mistral': 496, 'n_tokens_neox': 453, 'n_words': 71}