<commit_before>#
# Cookbook Name:: neo4j
# Recipe:: arbiter
#
# Copyright (C) 2013 <NAME>
#
# License: MIT
#

include_recipe 'apt'
include_recipe 'java'

package "default-jre-headless" do
  action :install
end

include_recipe 'neo4j::install'

# Symlink neo4j-arbiter script
link "#{node[:neo4j][:neo4j_home]}/bin/neo4j-arbiter" do
  to '/etc/init.d/neo4j-arbiter'
end

# Start the Neo4j Arbiter
execute './neo4j-arbiter start' do
  user node[:neo4j][:user]
  group node[:neo4j][:group]
  cwd '/etc/init.d'
  not_if { File.exists?("#{node[:neo4j][:neo4j_home]}/data/neo4j-arbiter.pid") }
end<commit_msg>Fix arbiter symlink<commit_after>#
# Cookbook Name:: neo4j
# Recipe:: arbiter
#
# Copyright (C) 2013 <NAME>
#
# License: MIT
#

include_recipe 'apt'
include_recipe 'java'

package "default-jre-headless" do
  action :install
end

include_recipe 'neo4j::install'

# Symlink neo4j-arbiter script
link '/etc/init.d/neo4j-arbiter' do
  to "#{node[:neo4j][:neo4j_home]}/bin/neo4j-arbiter"
end

# Start the Neo4j Arbiter
execute './neo4j-arbiter start' do
  user node[:neo4j][:user]
  group node[:neo4j][:group]
  cwd '/etc/init.d'
  not_if { File.exists?("#{node[:neo4j][:neo4j_home]}/data/neo4j-arbiter.pid") }
end
{'fraction_non_alphanumeric': 0.16501650165016502, 'fraction_numerical': 0.0297029702970297, 'mean_word_length': 5.034825870646766, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4075132', 'n_tokens_mistral': 528, 'n_tokens_neox': 511, 'n_words': 101}