<commit_before>unless brew_installed? "neo4j"
  package "neo4j"

  directory "/Users/#{node['current_user']}/Library/LaunchAgents" do
    owner node['current_user']
    action :create
  end

  template "#{node['sprout']['home']}/Library/LaunchAgents/homebrew.mxcl.neo4j.plist" do
    source "neo4j.plist.erb"
    variables ({ :neo4j_prefix => `brew --prefix neo4j`.chomp })
    user node['current_user']
  end

  execute "load the neo4j plist into the mac daemon startup thing" do<commit_msg>Tweaked neo4j recipe to fix race condition on path.<commit_after>unless brew_installed? "neo4j"
  package "neo4j"

  directory "/Users/#{node['current_user']}/Library/LaunchAgents" do
    owner node['current_user']
    action :create
  end

  template "#{node['sprout']['home']}/Library/LaunchAgents/homebrew.mxcl.neo4j.plist" do
    source "neo4j.plist.erb"
    # This path will break when neo4j updates it's version, but not sure what
    # else to do, because this gets evald by chef before homebrew is installed,
    # so we can't ask homebrew what the path is.
    variables ({ :neo4j_prefix => '/usr/local/Cellar/neo4j/2.0.0/' })
    user node['current_user']
  end

  execute "load the neo4j plist into the mac daemon startup thing" do
{'fraction_non_alphanumeric': 0.12074554294975688, 'fraction_numerical': 0.01539708265802269, 'mean_word_length': 4.061475409836065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2080193', 'n_tokens_mistral': 423, 'n_tokens_neox': 401, 'n_words': 116}