<commit_before>module Asset
  extend self

  def remote_to_local(cap)
    servers = cap.find_servers :roles => :app
    port = cap.port rescue 22
    [cap.assets_dir].flatten.each do |dir|
      system("rsync -a --del --progress --rsh='ssh -p #{port}' #{cap.user}@#{servers.first}:#{cap.shared_path}/#{dir} #{cap.local_assets_dir}")
    end
  end
end<commit_msg>Added new asset pushing tasks<commit_after>module Asset
  extend self

  def remote_to_local(cap)
    servers = cap.find_servers :roles => :app
    port = cap.port rescue 22
    [cap.assets_dir].flatten.each do |dir|
      system("rsync -a --del --progress --rsh='ssh -p #{port}' #{cap.user}@#{servers.first}:#{cap.shared_path}/#{dir} #{cap.local_assets_dir}")
    end
  end
  
  def local_to_remote(cap)
    servers = cap.find_servers :roles => :app
    port = cap.port rescue 22
    [cap.assets_dir].flatten.each do |dir|
      system("rsync -a --del --progress --rsh='ssh -p #{port}' #{cap.local_assets_dir}/#{dir} #{cap.user}@#{servers.first}:#{cap.shared_path}")
    end
  end


end
{'fraction_non_alphanumeric': 0.16873212583412775, 'fraction_numerical': 0.005719733079122974, 'mean_word_length': 3.430379746835443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5746159', 'n_tokens_mistral': 384, 'n_tokens_neox': 390, 'n_words': 85}