<commit_before>#
# Cookbook Name:: serf
# Recipe:: default
#
# Copyright (c) 2014 The Authors, All Rights Reserved.


# fetch binary
remote_file "/var/cache/serf.zip" do
  source "https://dl.bintray.com/mitchellh/serf/0.6.3_linux_amd64.zip"
  action :create_if_missing
end

# Make sure unzip is available to us
package "unzip" do
  action :install
end

# extract
execute "unzip serf binary" do
  cwd "/usr/local/bin"
  command "unzip -qo /var/cache/serf.zip"
end

runit_service "serf" do
  default_logger true<commit_msg>Added runit to the runlist<commit_after>#
# Cookbook Name:: serf
# Recipe:: default
#
# Copyright (c) 2014 The Authors, All Rights Reserved.


include_recipe "runit"

# fetch binary
remote_file "/var/cache/serf.zip" do
  source "https://dl.bintray.com/mitchellh/serf/0.6.3_linux_amd64.zip"
  action :create_if_missing
end

# Make sure unzip is available to us
package "unzip" do
  action :install
end

# extract
execute "unzip serf binary" do
  cwd "/usr/local/bin"
  command "unzip -qo /var/cache/serf.zip"
end

runit_service "serf" do
  default_logger true
{'fraction_non_alphanumeric': 0.10936051899907322, 'fraction_numerical': 0.016682113067655237, 'mean_word_length': 4.142857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5074786', 'n_tokens_mistral': 413, 'n_tokens_neox': 400, 'n_words': 115}