<commit_before>
include_recipe "aria2::default"

template '/etc/init.d/aria2' do
  source 'aria2.init.erb'
  variables :user => node['aria2']['user']
  owner 'root'
  group 'root'
  mode 00775
end

file '/etc/aria2.conf' do
  content node.generate_aria2_conf
  owner 'root'
  group 'root'
  mode 00660
  notifies :restart, "service[aria2]"
end

service 'aria2' do
  action [:enable, :start]
end<commit_msg>Make config file readable for aria2 user<commit_after>
include_recipe "aria2::default"

template '/etc/init.d/aria2' do
  source 'aria2.init.erb'
  variables :user => node['aria2']['user']
  owner 'root'
  group 'root'
  mode 00775
end

file '/etc/aria2.conf' do
  content node.generate_aria2_conf
  owner node['aria2']['user']
  group node['aria2']['user']
  mode 00660
  notifies :restart, "service[aria2]"
end

service 'aria2' do
  action [:enable, :start]
end
{'fraction_non_alphanumeric': 0.14039125431530494, 'fraction_numerical': 0.04487917146144994, 'mean_word_length': 4.54140127388535, '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': '2310360', 'n_tokens_mistral': 341, 'n_tokens_neox': 323, 'n_words': 85}