<commit_before># encoding: utf-8

module NessusDB
	
	# NessusSaxListener
	#
	# 
	# @author <NAME> <<EMAIL>>
	class NessusSaxListener
		include LibXML::XML::SaxParser::Callbacks
		include NessusDB::Models
	
		# Sets up a array of all valid xml fields
		#
		# @author <NAME>
		def initialize
			@vals = Hash.new
	
			@valid_elements = Array["see_also", "cve", "ReportItem", "xref", "bid", "plugin_version", "risk_factor",
				"description", "cvss_base_score", "solution", "item", "plugin_output", "tag", "synopsis", "plugin_modification_date",
				"FamilyName", "FamilyItem", "Status", "vuln_publication_date", "ReportHost", "HostProperties", "preferenceName",
				"preferenceValues", "preferenceType", "fullName", "pluginId", "pluginName", "selectedValue", "selectedValue",
				"name", "value", "preference", "plugin_publication_date", "cvss_vector", "patch_publication_date",
				"NessusClientData_v2", "Policy", "PluginName", "ServerPreferences", "policyComments", "policyName", "PluginItem",
				"Report", "Family", "Preferences", "PluginsPreferences", "FamilySelection", "IndividualPluginSelection", "PluginId",
				"pci-dss-compliance", "exploitability_ease", "cvss_temporal_vector", "exploit_framework_core", "cvss_temporal_score",<commit_msg>Broke the parser, cant get the includes to work atm...<commit_after># encoding: utf-8

require "nessusdb/models"

module NessusDB
	
	# NessusSaxListener
	#
	# 
	# @author <NAME> <<EMAIL>>
	class NessusSaxListener
		include LibXML::XML::SaxParser::Callbacks
		#include NessusDB::Models::FamilySelection
		#include NessusDB::Models::Item
		#include NessusDB::Models::Plugin
		#include NessusDB::Models::Host
		#include NessusDB::Models::Policy
		include NessusDB::Models::Policy
	
		# Sets up a array of all valid xml fields
		#
		# 
		def initialize
			@vals = Hash.new
	
			@valid_elements = Array["see_also", "cve", "ReportItem", "xref", "bid", "plugin_version", "risk_factor",
				"description", "cvss_base_score", "solution", "item", "plugin_output", "tag", "synopsis", "plugin_modification_date",
				"FamilyName", "FamilyItem", "Status", "vuln_publication_date", "ReportHost", "HostProperties", "preferenceName",
				"preferenceValues", "preferenceType", "fullName", "pluginId", "pluginName", "selectedValue", "selectedValue",
				"name", "value", "preference", "plugin_publication_date", "cvss_vector", "patch_publication_date",
				"NessusClientData_v2", "Policy", "PluginName", "ServerPreferences", "policyComments", "policyName", "PluginItem",
				"Report", "Family", "Preferences", "PluginsPreferences", "FamilySelection", "IndividualPluginSelection", "PluginId",
				"pci-dss-compliance", "exploitability_ease", "cvss_temporal_vector", "exploit_framework_core", "cvss_temporal_score",
{'fraction_non_alphanumeric': 0.15785636164783085, 'fraction_numerical': 0.0014582573824279985, 'mean_word_length': 6.885057471264368, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5797568', 'n_tokens_mistral': 989, 'n_tokens_neox': 885, 'n_words': 188}