<commit_before>
include_recipe 'miner::default'

version = node['miner']['cpuminer']['version']

ark 'cpuminer' do
	url "https://github.com/pooler/cpuminer/archive/v#{version}.tar.gz"
	version version
	checksum node['miner']['cpuminer']['sha256sum']
	environment({
		'CFLAGS' => '-O3'
	})
	has_binaries [ 'minerd' ]
	action :install_with_make
end

template "/etc/init/minerd.conf" do
  source "cpuminer.upstart.conf.erb"
  mode 0640
  owner "root"
  group "root"
  notifies :stop, "service[minerd]", :immediately
end
<commit_msg>Fixed permission on upstart  job file<commit_after>
include_recipe 'miner::default'

version = node['miner']['cpuminer']['version']

ark 'cpuminer' do
	url "https://github.com/pooler/cpuminer/archive/v#{version}.tar.gz"
	version version
	checksum node['miner']['cpuminer']['sha256sum']
	environment({
		'CFLAGS' => '-O3'
	})
	has_binaries [ 'minerd' ]
	action :install_with_make
end

template "/etc/init/minerd.conf" do
  source "cpuminer.upstart.conf.erb"
  mode 0644
  owner "root"
  group "root"
  notifies :stop, "service[minerd]", :immediately
end

{'fraction_non_alphanumeric': 0.16266173752310537, 'fraction_numerical': 0.014787430683918669, 'mean_word_length': 5.333333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2534778', 'n_tokens_mistral': 418, 'n_tokens_neox': 405, 'n_words': 81}