<commit_before>src = node['nssm']['src']
basename = src.slice(src.rindex('/') + 1, src.rindex('.') - src.rindex('/') - 1)

log "nssm_basename=#{basename}"

windows_zipfile Chef::Config[:file_cache_path] do
  checksum node['nssm']['sha256']
  source src
  action :unzip
  not_if { ::File.directory?("#{Chef::Config[:file_cache_path]}/#{basename}") }
end

system = node['kernel']['machine'] == 'x86_64' ? 'win64' : 'win32'

batch 'copy_nssm' do
  code <<-EOH
    xcopy c:\\chef\\cache\\#{basename}\\#{system}\\nssm.exe %WINDIR% /y
  EOH
  not_if { ::File.exist?('c:\\windows\\nssm.exe') }
end<commit_msg>fix a hard coded path<commit_after>src = node['nssm']['src']
basename = src.slice(src.rindex('/') + 1, src.rindex('.') - src.rindex('/') - 1)

log "nssm_basename=#{basename}"

windows_zipfile Chef::Config[:file_cache_path] do
  checksum node['nssm']['sha256']
  source src
  action :unzip
  not_if { ::File.directory?("#{Chef::Config[:file_cache_path]}/#{basename}") }
end

system = node['kernel']['machine'] == 'x86_64' ? 'win64' : 'win32'

batch 'copy_nssm' do
  code <<-EOH
    xcopy #{Chef::Config[:file_cache_path].gsub("/","\\")}\\#{basename}\\#{system}\\nssm.exe %WINDIR% /y
  EOH
  not_if { ::File.exist?('c:\\windows\\nssm.exe') }
end
{'fraction_non_alphanumeric': 0.23775100401606425, 'fraction_numerical': 0.020883534136546186, 'mean_word_length': 4.849765258215962, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6842986', 'n_tokens_mistral': 527, 'n_tokens_neox': 511, 'n_words': 83}