<commit_before>##
# Cookbook Name:: my_cookbook
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
node[:deploy].each do |application, deploy|

  app_root = "/srv/www/classifieds_carsifu/current/carsifu-v2/storage"
  directory app_root do
    owner 'deploy'
    group 'www-data'
    mode '0775' 
    recursive true
  end

execute "chmo-775" do
  command "chmod 775  /srv/www/carsifu/current/automania-v2/wp-content/cache; chmod 775  /srv/www/carsifu/current/automania-v2/wp-content/uploads; chmod 775  /srv/www/carsifu/current/automania-v2/wp-content/w3tc-config; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework/cache; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework/sessions; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework/views; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/logs; chmod a+x  /srv/www/classifieds_carsifu/current/carsifu-v2/vendor/monolog/monolog/src/Monolog/Handler"
  action :run
end

execute "php5enmod mcrypt" do
  command "php5enmod mcrypt"
  action :run
end

end<commit_msg>restart apache2 after mcrypt installed<commit_after>##
# Cookbook Name:: my_cookbook
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
node[:deploy].each do |application, deploy|

  app_root = "/srv/www/classifieds_carsifu/current/carsifu-v2/storage"
  directory app_root do
    owner 'deploy'
    group 'www-data'
    mode '0775' 
    recursive true
  end

execute "chmo-775" do
  command "chmod 775  /srv/www/carsifu/current/automania-v2/wp-content/cache; chmod 775  /srv/www/carsifu/current/automania-v2/wp-content/uploads; chmod 775  /srv/www/carsifu/current/automania-v2/wp-content/w3tc-config; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework/cache; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework/sessions; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/framework/views; chmod 775  /srv/www/classifieds_carsifu/current/carsifu-v2/storage/logs; chmod a+x  /srv/www/classifieds_carsifu/current/carsifu-v2/vendor/monolog/monolog/src/Monolog/Handler"
  action :run
end

execute "php5enmod mcrypt" do
  command "php5enmod mcrypt; service apache2 restart"
  action :run
end

end
{'fraction_non_alphanumeric': 0.11511075949367089, 'fraction_numerical': 0.038765822784810125, 'mean_word_length': 4.546052631578948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 22, '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': '7138845', 'n_tokens_mistral': 1086, 'n_tokens_neox': 978, 'n_words': 162}