<commit_before>module Risu
	module Templates
		class Graphs < Risu::Base::TemplateBase

			#
			#
			def initialize ()
				@template_info =
				{
					:name => "graphs",
					:author => "hammackj",
					:version => "0.0.1",
					:description => "Generates a report with all the graphs in it",
					:scanner => "Nessus"
				}
			end

			#
			#
			def render(output)
				output.text Report.classification.upcase, :align => :center
				output.text "\n"

				output.font_size(24) do
					output.text Report.title, :align => :center
				end

				output.font_size(18) do
					output.text "This report was prepared by\n#{Report.author}", :align => :center
				end

				output.text "\n\n\n"

				output.start_new_page

				output.image Item.risks_by_severity_graph, :width => 500, :height => 375, :position => :center

				output.start_new_page

				output.image Item.risks_by_service_graph(10), :width => 500, :height => 375, :position => :center

				output.start_new_page

				output.image Plugin.top_by_count_graph(10), :width => 500, :height => 375, :position => :center

				output.start_new_page

				output.image Host.top_vuln_graph(10), :width => 500, :height => 375, :position => :center

				output.start_new_page

				output.image Host.other_os_graph, :width => 500, :height => 375, :position => :center

				output.start_new_page

				output.image Host.windows_os_graph, :width => 500, :height => 375, :position => :center

				output.start_new_page
<commit_msg>Added the text to the sample graph<commit_after>module Risu
	module Templates
		class Graphs < Risu::Base::TemplateBase

			#
			#
			def initialize ()
				@template_info =
				{
					:name => "graphs",
					:author => "hammackj",
					:version => "0.0.1",
					:description => "Generates a report with all the graphs in it",
					:scanner => "Nessus"
				}
			end

			#
			#
			def render(output)
				output.text Report.classification.upcase, :align => :center
				output.text "\n"

				output.font_size(24) do
					output.text Report.title, :align => :center
				end

				output.font_size(18) do
					output.text "This report was prepared by\n#{Report.author}", :align => :center
				end

				output.text "\n\n\n"

				output.start_new_page

				output.image Item.risks_by_severity_graph, :width => 500, :height => 375, :position => :center
				output.text Item.risks_by_severity_graph_text

				output.start_new_page

				output.image Item.risks_by_service_graph(10), :width => 500, :height => 375, :position => :center
				output.text Item.risks_by_service_graph_text

				output.start_new_page

				output.image Plugin.top_by_count_graph(10), :width => 500, :height => 375, :position => :center

				output.start_new_page

				output.image Host.top_vuln_graph(10), :width => 500, :height => 375, :position => :center

				output.start_new_page

				output.image Host.other_os_graph, :width => 500, :height => 375, :position => :center
				output.text Host.other_os_graph_text

				output.start_new_page

				output.image Host.windows_os_graph, :width => 500, :height => 375, :position => :center
				output.text Host.windows_os_graph_text

				output.start_new_page

{'fraction_non_alphanumeric': 0.12874442319949012, 'fraction_numerical': 0.03123008285532186, 'mean_word_length': 3.2134228187919462, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, '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': '7631809', 'n_tokens_mistral': 1391, 'n_tokens_neox': 1029, 'n_words': 238}