<commit_before># make sure we have java installed
include_recipe 'java'

# Install Tomcat 8.0.32 to the default location
tomcat_install 'helloworld' do
  version '8.0.32'
end

# Drop off our own server.xml that uses a non-default port setup
cookbook_file '/opt/tomcat_helloworld/conf/server.xml' do
  source 'helloworld_server.xml'
  owner 'root'
  group 'root'
  mode '0644'
end

# start the helloworld tomcat service using a non-standard pic location<commit_msg>Add the hello world example war to the test<commit_after># make sure we have java installed
include_recipe 'java'

# Install Tomcat 8.0.32 to the default location
tomcat_install 'helloworld' do
  version '8.0.32'
end

# Drop off our own server.xml that uses a non-default port setup
cookbook_file '/opt/tomcat_helloworld/conf/server.xml' do
  source 'helloworld_server.xml'
  owner 'root'
  group 'root'
  mode '0644'
end

remote_file '/opt/tomcat_helloworld/webapps/sample.war' do
  owner 'tomcat_helloworld'
  mode '0644'
  source 'https://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/sample.war'
  checksum '89b33caa5bf4cfd235f060c396cb1a5acb2734a1366db325676f48c5f5ed92e5'
end

# start the helloworld tomcat service using a non-standard pic location
{'fraction_non_alphanumeric': 0.08203445447087777, 'fraction_numerical': 0.05578342904019688, 'mean_word_length': 4.727699530516432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '1454720', 'n_tokens_mistral': 463, 'n_tokens_neox': 431, 'n_words': 129}