<commit_before>#
# Cookbook Name:: nginx_aws
# Recipe:: default
#
# Copyright 2015, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
#
apt_package "nginx" do
    action:install
end

template "/etc/nginx/sites-available/default" do
  action :create_if_missing
  source 'default.erb'
  mode 0755
  owner 'root'
  group 'root'
  variables({
    :server_port => 8080,
    :server_root => "/usr/share/nginx/html" })
end

template "/usr/share/nginx/html" do
  action :create_if_missing
  source 'index.html.erb'
  mode 0755
  owner 'root'
  group 'root'
end
<commit_msg>nginx_aws: force replace the default site config<commit_after>#
# Cookbook Name:: nginx_aws
# Recipe:: default
#
# Copyright 2015, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
#
apt_package "nginx" do
    action:install
end

template "/etc/nginx/sites-available/default" do
  source 'default.erb'
  mode 0755
  owner 'root'
  group 'root'
  variables({
    :server_port => 8080,
    :server_root => "/usr/share/nginx/html" })
end

template "/usr/share/nginx/html" do
  action :create_if_missing
  source 'index.html.erb'
  mode 0755
  owner 'root'
  group 'root'
end

{'fraction_non_alphanumeric': 0.11633875106929, 'fraction_numerical': 0.02737382378100941, 'mean_word_length': 3.8953974895397487, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2873439', 'n_tokens_mistral': 450, 'n_tokens_neox': 419, 'n_words': 110}