<commit_before>require File.dirname(__FILE__) + '/../capistrano-helpers' if ! defined?(CapistranoHelpers)

CapistranoHelpers.with_configuration do
  
  namespace :deploy do
    namespace :skylinecms do
    
      desc "Make certain directories writeable."
      task :make_writeable, :roles => :app do
        # Make this directory writeable so sprockets can compress the javascript.
        run "sudo chown passenger #{release_path}/public/skyline/javascripts"
        # Make this directory writeable so compass can regenerate the css.
        run "sudo chown passenger #{release_path}/public/stylesheets/compiled"
      end
    
      desc "Create cache directories on the remote server."
      task :create_cache_directories, :roles => :app do
        cache_paths = [
          "#{release_path}/tmp/cache/media_files/cache", 
          "#{release_path}/tmp/cache/posterous_sections/cache", 
          "#{release_path}/tmp/cache/twitter_sections/cache", 
          "#{release_path}/tmp/cache/rss_sections/cache"
        ]
        cache_paths.each do |cache_path|
          run "if [ ! -d #{cache_path} ] ; then mkdir -p #{cache_path} && sudo chown passenger #{cache_path} ; fi"
        end
      end
      <commit_msg>Need to recursively chown stylesheets and javascripts.<commit_after>require File.dirname(__FILE__) + '/../capistrano-helpers' if ! defined?(CapistranoHelpers)

CapistranoHelpers.with_configuration do
  
  namespace :deploy do
    namespace :skylinecms do
    
      desc "Make certain directories writeable."
      task :make_writeable, :roles => :app do
        # Make this directory writeable so sprockets can compress the javascript.
        run "sudo chown -Rh passenger #{release_path}/public/skyline/javascripts"
        # Make this directory writeable so compass can regenerate the css.
        run "sudo chown -Rh passenger #{release_path}/public/stylesheets/compiled"
      end
    
      desc "Create cache directories on the remote server."
      task :create_cache_directories, :roles => :app do
        cache_paths = [
          "#{release_path}/tmp/cache/media_files/cache", 
          "#{release_path}/tmp/cache/posterous_sections/cache", 
          "#{release_path}/tmp/cache/twitter_sections/cache", 
          "#{release_path}/tmp/cache/rss_sections/cache"
        ]
        cache_paths.each do |cache_path|
          run "if [ ! -d #{cache_path} ] ; then mkdir -p #{cache_path} && sudo chown passenger #{cache_path} ; fi"
        end
      end
      
{'fraction_non_alphanumeric': 0.1008437123342708, 'fraction_numerical': 0.0, 'mean_word_length': 2.8190184049079754, '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': '6066842', 'n_tokens_mistral': 730, 'n_tokens_neox': 712, 'n_words': 188}