<commit_before>namespace :assets do
  desc 'Create a zip file containing icons and markers'
  task :create_zip do
    %w{marker icons}.each do |zip_name|
      cmd=<<-EOF
        cd #{Rails.root.join('app', 'assets', 'images')}
        zip -9 -q -r #{zip_name} #{zip_name}
      EOF
      system cmd
    end
  end

  desc 'Fix icon names'
  task :fix_image_names do
    src = ENV['src'] || '/Users/christoph/Downloads/wheelmapicons2/'
    mapping = {
      :parkinggarage => :parking,
      :beergarden => :biergarten,
      :movierental => :cinema,
      :laterne => :lantern,
      :stripclub2 => :stripclub,<commit_msg>put the zip file with icons directly in Rails public folder<commit_after>namespace :assets do
  desc 'Create a zip file containing icons and markers'
  task :create_zip do
    %w{marker icons}.each do |zip_name|
      cmd=<<-EOF
        cd #{Rails.root.join('app', 'assets', 'images')}
        zip -9 -q -r #{Rails.root.join('public', zip_name)} #{zip_name}
      EOF
      system cmd
    end
  end

  desc 'Fix icon names'
  task :fix_image_names do
    src = ENV['src'] || '/Users/christoph/Downloads/wheelmapicons2/'
    mapping = {
      :parkinggarage => :parking,
      :beergarden => :biergarten,
      :movierental => :cinema,
      :laterne => :lantern,
      :stripclub2 => :stripclub,
{'fraction_non_alphanumeric': 0.13439635535307518, 'fraction_numerical': 0.004555808656036446, 'mean_word_length': 2.7873563218390807, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6398734', 'n_tokens_mistral': 458, 'n_tokens_neox': 439, 'n_words': 122}