<commit_before>require 'capistrano/s3'
require 'capistrano/ext/multistage'

set :default_stage, 'development'

set :s3, YAML::load( File.open( File.expand_path( '../s3.yml', __FILE__ ) ) )

before 'deploy' do
  run_locally "rm -rf public/*"
  run_locally "export RACK_ENV=production && bundle exec rake sinatra:export"
  run_locally "export RACK_ENV=production && bundle exec rake assetpack:build"
end<commit_msg>Set cache_control header<commit_after>require 'capistrano/s3'
require 'capistrano/ext/multistage'

set :default_stage, 'development'

set :s3, YAML::load( File.open( File.expand_path( '../s3.yml', __FILE__ ) ) )
set :bucket_write_options, {
    cache_control: "max-age=94608000, public"
}

before 'deploy' do
  run_locally "rm -rf public/*"
  run_locally "export RACK_ENV=production && bundle exec rake sinatra:export"
  run_locally "export RACK_ENV=production && bundle exec rake assetpack:build"
end
{'fraction_non_alphanumeric': 0.12472647702407003, 'fraction_numerical': 0.015317286652078774, 'mean_word_length': 5.777777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3343699', 'n_tokens_mistral': 337, 'n_tokens_neox': 323, 'n_words': 78}