<commit_before>execute 'apt-get update' if platform_family?('debian')

unless platform_family?('windows')
  splunk_app 'bistro' do
    app_name 'bistro'
    if node['platform_family'] == 'windows'
      splunk_auth 'admin:changeme'
    else
      splunk_auth 'admin:notarealpassword'
    end
    cookbook_file 'bistro-1.0.2.spl'
    checksum '862e2c4422eee93dd50bd93aa73a44045d02cb6232f971ba390a2f1c15bdb79f'
    action [:install, :enable]
  end
end
  splunk_app 'bistro-1.0.2' do
    remote_file 'https://github.com/ampledata/bistro/archive/1.0.2.tar.gz'
    if node['platform_family'] == 'windows'
      splunk_auth 'admin:changeme'
    else
      splunk_auth 'admin:notarealpassword'
    end
    # app_dependencies(
    #   if node['platform_family'] == 'omnios'
    #     ['ruby-19']
    #   else
    #     ['ruby']
    #   end
    # )
    action :install
  end
splunk_app 'test' do
  app_name 'test'
  if node['platform_family'] == 'windows'
    splunk_auth 'admin:changeme'
  else
    splunk_auth 'admin:notarealpassword'
  end
  cookbook_file 'test-0.0.1.spl'
  action [:install, :enable]
end

splunk_app 'sanitycheck' do
  remote_directory 'sanitycheck'
  if node['platform_family'] == 'windows'
    splunk_auth 'admin:changeme'
  else
    splunk_auth 'admin:notarealpassword'
  end
  action :install
end

splunk_app 'sanitycheck2' do
  app_name 'sanitycheck2'
  remote_directory 'sanitycheck'
  if node['platform_family'] == 'windows'
    splunk_auth 'admin:changeme'
  else
    splunk_auth '<PASSWORD>:not<PASSWORD>'
  end
  action :install
end

if platform_family?('windows')
  splunk_app 'windowseventlog_inputs' do
    splunk_auth 'admin:changeme'
    templates ['inputs.conf']
    template_cookbook 'test'
    action :install
  end
else
  splunk_app 'generallogs_inputs' do
    splunk_auth '<PASSWORD>:not<PASSWORD>'
    templates ['inputs.conf']
    template_cookbook 'test'
    action :install
  end
end
<commit_msg>GDAES-3436 add guard for ruby package install on windows<commit_after>execute 'apt-get update' if platform_family?('debian')

unless platform_family?('windows')
  splunk_app 'bistro' do
    app_name 'bistro'
    if node['platform_family'] == 'windows'
      splunk_auth 'admin:changeme'
    else
      splunk_auth '<PASSWORD>:not<PASSWORD>'
    end
    cookbook_file 'bistro-1.0.2.spl'
    checksum '862e2c4422eee93dd50bd93aa73a44045d02cb6232f971ba390a2f1c15bdb79f'
    action [:install, :enable]
  end
end
splunk_app 'bistro-1.0.2' do
  remote_file 'https://github.com/ampledata/bistro/archive/1.0.2.tar.gz'
  if node['platform_family'] == 'windows'
    splunk_auth 'admin:changeme'
  else
    splunk_auth 'admin:notarealpassword'
  end
  app_dependencies(
    if node['platform_family'] == 'omnios'
      ['ruby-19']
    else
      ['ruby']
    end
  ) unless node.platform_family == 'windows'
  action :install
end

splunk_app 'test' do
  app_name 'test'
  if node['platform_family'] == 'windows'
    splunk_auth 'admin:changeme'
  else
    splunk_auth 'admin:<PASSWORD>'
  end
  cookbook_file 'test-0.0.1.spl'
  action [:install, :enable]
end

splunk_app 'sanitycheck' do
  remote_directory 'sanitycheck'
  if node['platform_family'] == 'windows'
    splunk_auth 'admin:changeme'
  else
    splunk_auth 'admin:not<PASSWORD>'
  end
  action :install
end

splunk_app 'sanitycheck2' do
  app_name 'sanitycheck2'
  remote_directory 'sanitycheck'
  if node['platform_family'] == 'windows'
    splunk_auth 'admin:changeme'
  else
    splunk_auth 'admin:notarealpassword'
  end
  action :install
end

if platform_family?('windows')
  splunk_app 'windowseventlog_inputs' do
    splunk_auth 'admin:changeme'
    templates ['inputs.conf']
    template_cookbook 'test'
    action :install
  end
else
  splunk_app 'generallogs_inputs' do
    splunk_auth 'admin:notarealpassword'
    templates ['inputs.conf']
    template_cookbook 'test'
    action :install
  end
end

{'fraction_non_alphanumeric': 0.11022610483042138, 'fraction_numerical': 0.029290853031860225, 'mean_word_length': 3.971902937420179, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1558889', 'n_tokens_mistral': 1480, 'n_tokens_neox': 1436, 'n_words': 289}