<commit_before># Git Annex
# =========

if node['platform'] == 'mac_os_x'
  include_recipe 'dmg'

  case node['platform_version']
  when /^10\.6\./
    dmg_bz2_url = "https://s3.amazonaws.com/downloads.3ofcoins.net/git-annex/OSX-10.6-Snow_Leopard/git-annex.dmg.bz2"
  when /^10\.7\./
    dmg_bz2_url = "http://downloads.kitenet.net/git-annex/OSX/current/10.7.5_Lion/git-annex.dmg.bz2"
  when /^10\.8\./
    dmg_bz2_url = "http://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2"
  else
    raise "OSX #{node['platform_version']} not supported"
  end

  dmg_path = "#{Chef::Config[:file_cache_path]}/git-annex.dmg"

  execute "bunzip2 -c #{dmg_path}.bz2 > #{dmg_path}" do
    action :nothing
    creates dmg_path
  end

  remote_file "#{dmg_path}.bz2" do
    source dmg_bz2_url
    notifies :run, "execute[bunzip2 -c #{dmg_path}.bz2 > #{dmg_path}]", :immediately
  end

  dmg_package 'git-annex' do
    action :install
  end

  %w[git-annex git-annex-shell git-annex-webapp runshell bundle].each do |bin|
    link "/usr/local/bin/#{bin}" do<commit_msg>Correct ordering.<commit_after># Git Annex
# =========

if node['platform'] == 'mac_os_x'
  include_recipe 'dmg'

  case node['platform_version']
  when /^10\.6\./
    dmg_bz2_url = "https://s3.amazonaws.com/downloads.3ofcoins.net/git-annex/OSX-10.6-Snow_Leopard/git-annex.dmg.bz2"
  when /^10\.7\./
    dmg_bz2_url = "http://downloads.kitenet.net/git-annex/OSX/current/10.7.5_Lion/git-annex.dmg.bz2"
  when /^10\.8\./
    dmg_bz2_url = "http://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2"
  else
    raise "OSX #{node['platform_version']} not supported"
  end

  dmg_path = "#{Chef::Config[:file_cache_path]}/git-annex.dmg"

  remote_file "#{dmg_path}.bz2" do
    source dmg_bz2_url
  end

  execute "bunzip2 -c #{dmg_path}.bz2 > #{dmg_path}" do
    creates dmg_path
  end

  dmg_package 'git-annex' do
    action :install
  end

  %w[git-annex git-annex-shell git-annex-webapp runshell bundle].each do |bin|
    link "/usr/local/bin/#{bin}" do
{'fraction_non_alphanumeric': 0.17544707588206862, 'fraction_numerical': 0.031899468342194294, 'mean_word_length': 3.470842332613391, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4396018', 'n_tokens_mistral': 954, 'n_tokens_neox': 897, 'n_words': 133}