<commit_before>include_recipe 'aws'

node[:deploy].each do |application, deploy|
aws_s3_file "#{deploy[:deploy_to]}/current/wp-content/uploads/filters/blacklist.txt" do
  bucket "test-dsc.propwall.com"
  remote_path "filtering/blacklist.txt"
  aws_access_key_id node['my_deployfilterfile'][:custom_access_key]
  aws_secret_access_key node['my_deployfilterfile'][:custom_secret_key]
end


aws_s3_file "#{deploy[:deploy_to]}/current/wp-content/uploads/filters/spam.txt" do
  bucket "test-dsc.propwall.com"
  remote_path "filtering/spam.txt"
  aws_access_key_id node[:custom_access_key]
  aws_secret_access_key node[:custom_secret_key]
end

aws_s3_file "#{deploy[:deploy_to]}/current/wp-content/uploads/filters/spammer.txt" do
  bucket "test-dsc.propwall.com"
  remote_path "filtering/spammer.txt"
  aws_access_key_id node[:custom_access_key]
  aws_secret_access_key node[:custom_secret_key]
end

end

<commit_msg>add []<commit_after>include_recipe 'aws'

node[:deploy].each do |application, deploy|

directory "#{deploy[:deploy_to]}/current/wp-content/uploads/filters" do
owner 'www-data'
group 'www-data'
mode '0644'
action :create
end

aws_s3_file "#{deploy[:deploy_to]}/current/wp-content/uploads/filters/blacklist.txt" do
  bucket "test-dsc.propwall.com"
  remote_path "filtering/blacklist.txt"
  aws_access_key_id node['my_deployfilterfile'][:custom_access_key]
  aws_secret_access_key node['my_deployfilterfile'][:custom_secret_key]
end


aws_s3_file "#{deploy[:deploy_to]}/current/wp-content/uploads/filters/spam.txt" do
  bucket "test-dsc.propwall.com"
  remote_path "filtering/spam.txt"
   aws_access_key_id node['my_deployfilterfile'][:custom_access_key]
  aws_secret_access_key node['my_deployfilterfile'][:custom_secret_key]
end

aws_s3_file "#{deploy[:deploy_to]}/current/wp-content/uploads/filters/spammer.txt" do
  bucket "test-dsc.propwall.com"
  remote_path "filtering/spammer.txt"
  aws_access_key_id node['my_deployfilterfile'][:custom_access_key]
  aws_secret_access_key node['my_deployfilterfile'][:custom_secret_key]
end

end


{'fraction_non_alphanumeric': 0.1270151441133366, 'fraction_numerical': 0.004885197850512946, 'mean_word_length': 7.39344262295082, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1067580', 'n_tokens_mistral': 793, 'n_tokens_neox': 756, 'n_words': 99}