<commit_before># This should be pulled from the distro
if node['kernel']['machine'] == 'x86_64'
	default['wkhtmltox']['arch'] = 'amd64'
else
	default['wkhtmltox']['arch'] = 'i386'
end

# chef-sugar would be nice for this?

case node[:platform]
when "centos"
  if node[:platform_version].start_with?('6.')
    default['wkhtmltox']['release'] = "centos6"
  end
  if node[:platform_version].start_with?('5.')
    default['wkhtmltox']['release'] = "centos5"
    default['wkhtmltox']['options'] = "--nogpgcheck"
  end
end

default['wkhtmltox']['version'] = "0.12.1"

wk = node['wkhtmltox']
if wk['version'] && wk['release'] && wk['arch']
  default['wkhtmltox']['package_file'] = "wkhtmltox-#{wk['version']}_linux-#{wk['release']}-#{wk['arch']}.rpm"
end<commit_msg>Add comment about amazon linux<commit_after># This should be pulled from the distro
if node['kernel']['machine'] == 'x86_64'
	default['wkhtmltox']['arch'] = 'amd64'
else
	default['wkhtmltox']['arch'] = 'i386'
end

# chef-sugar would be nice for this?

case node[:platform]
when "centos"
  # I don't know if this will work on Amazon Linux
  if node[:platform_version].start_with?('6.')
    default['wkhtmltox']['release'] = "centos6"
  end
  if node[:platform_version].start_with?('5.')
    default['wkhtmltox']['release'] = "centos5"
    default['wkhtmltox']['options'] = "--nogpgcheck"
  end
end

default['wkhtmltox']['version'] = "0.12.1"

wk = node['wkhtmltox']
if wk['version'] && wk['release'] && wk['arch']
  default['wkhtmltox']['package_file'] = "wkhtmltox-#{wk['version']}_linux-#{wk['release']}-#{wk['arch']}.rpm"
end
{'fraction_non_alphanumeric': 0.21689785624211855, 'fraction_numerical': 0.021437578814627996, 'mean_word_length': 6.084821428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3702726', 'n_tokens_mistral': 622, 'n_tokens_neox': 563, 'n_words': 115}