<commit_before>text Report.classification, :align => :center
text "\n"

font_size(22) { text Report.title, :align => :center }
font_size(18) { 
	text "Findings Summary Report", :align => :center
	text "\n"
	text "This report was prepared by\n#{Report.author}", :align => :center
}

text "\n\n\n"

font_size(20) { 
	fill_color "FF0000"
	text "High Findings", :style => :bold 
	fill_color "000000"
}

Item.high_risks_unique_sorted.each do |item|
	name = Plugin.find_by_id(item.plugin_id).plugin_name
	count = Item.where(:plugin_id => item.plugin_id).count

	text "#{count} - #{name} - #{item.plugin_id}"
end

start_new_page

font_size(20) { 
	fill_color "FF8040"
	text "Medium Findings", :style => :bold 
	fill_color "000000"
}

Item.medium_risks_unique_sorted.each do |item|
	name = Plugin.find_by_id(item.plugin_id).plugin_name
	count = Item.where(:plugin_id => item.plugin_id).count

	text "#{count} - #{name} - #{item.plugin_id}"
end

start_new_page

font_size(20) { 
	fill_color "0000FF"
	text "Low Findings", :style => :bold 
	fill_color "000000"
}

Item.low_risks_unique_sorted.each do |item|
	name = Plugin.find_by_id(item.plugin_id).plugin_name
	count = Item.where(:plugin_id => item.plugin_id).count

	text "#{count} - #{name} - #{item.plugin_id}"
end

#Provides nothing
#font_size(20) { 
#	fill_color "008000"
#	text "Low Findings", :style => :bold 
#	fill_color "000000"
#}
#
#Item.low_risks_unique_sorted.each do |item|
#	name = Plugin.find_by_id(item.plugin_id).plugin_name
#	count = Item.where(:plugin_id => item.plugin_id).count
#
#	text "#{count} - #{name}"
#end<commit_msg>Added output variable to the render().<commit_after>module Risu
	module Modules
		class FindingsSummaryWithPluginID < Risu::Base::TemplateBase
			
			#
			#
			def initialize ()
				@template_info = 
				{ 
					:name => "findings_summary_with_pluginid", 
					:author => "hammackj", 
					:version => "0.0.1", 
					:description => "Geneates a Findings Summary with Nessus Plugin ID"
				}
			end
			
			#
			#
			def render(output)
				text Report.classification, :align => :center
				text "\n"

				font_size(22) { text Report.title, :align => :center }
				font_size(18) { 
					text "Findings Summary Report", :align => :center
					text "\n"
					text "This report was prepared by\n#{Report.author}", :align => :center
				}

				text "\n\n\n"

				font_size(20) { 
					fill_color "FF0000"
					text "High Findings", :style => :bold 
					fill_color "000000"
				}

				Item.high_risks_unique_sorted.each do |item|
					name = Plugin.find_by_id(item.plugin_id).plugin_name
					count = Item.where(:plugin_id => item.plugin_id).count

					text "#{count} - #{name} - #{item.plugin_id}"
				end

				start_new_page

				font_size(20) { 
					fill_color "FF8040"
					text "Medium Findings", :style => :bold 
					fill_color "000000"
				}

				Item.medium_risks_unique_sorted.each do |item|
					name = Plugin.find_by_id(item.plugin_id).plugin_name
					count = Item.where(:plugin_id => item.plugin_id).count

					text "#{count} - #{name} - #{item.plugin_id}"
				end

				start_new_page

				font_size(20) { 
					fill_color "0000FF"
					text "Low Findings", :style => :bold 
					fill_color "000000"
				}

				Item.low_risks_unique_sorted.each do |item|
					name = Plugin.find_by_id(item.plugin_id).plugin_name
					count = Item.where(:plugin_id => item.plugin_id).count

					text "#{count} - #{name} - #{item.plugin_id}"
				end

				#Provides nothing
				#font_size(20) { 
				#	fill_color "008000"
				#	text "Low Findings", :style => :bold 
				#	fill_color "000000"
				#}
				#
				#Item.low_risks_unique_sorted.each do |item|
				#	name = Plugin.find_by_id(item.plugin_id).plugin_name
				#	count = Item.where(:plugin_id => item.plugin_id).count
				#
				#	text "#{count} - #{name}"
				#end
			end
		end
	end
end
{'fraction_non_alphanumeric': 0.14412764844363066, 'fraction_numerical': 0.029034789432382944, 'mean_word_length': 3.3603192702394526, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 31, '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': '4901215', 'n_tokens_mistral': 1754, 'n_tokens_neox': 1399, 'n_words': 286}