<commit_before>require "spec_helper"

module NessusDB
	describe NessusDocument do
		before(:all) do
			@doc = NessusDocument.new "test_data/nessus_report_local.nessus"
			@fail_doc = NessusDocument.new "test_data/fail.nessus"
			@invalid_doc = NessusDocument.new "test_data/invalid_report.nessus"
		end
		
		after(:all) do
			Report.delete_all
			Host.delete_all
			Plugin.delete_all
			Item.delete_all
			FamilySelection.delete_all
			IndividualPluginSelection.delete_all
			PluginsPreference.delete_all
			Policy.delete_all
			Reference.delete_all<commit_msg>Rename from NessusDB to Risu<commit_after>require "spec_helper"

module Risu
	describe NessusDocument do
		before(:all) do
			@doc = NessusDocument.new "test_data/nessus_report_local.nessus"
			@fail_doc = NessusDocument.new "test_data/fail.nessus"
			@invalid_doc = NessusDocument.new "test_data/invalid_report.nessus"
		end
		
		after(:all) do
			Report.delete_all
			Host.delete_all
			Plugin.delete_all
			Item.delete_all
			FamilySelection.delete_all
			IndividualPluginSelection.delete_all
			PluginsPreference.delete_all
			Policy.delete_all
			Reference.delete_all
{'fraction_non_alphanumeric': 0.07237422771403354, 'fraction_numerical': 0.0, 'mean_word_length': 4.698492462311558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5772050', 'n_tokens_mistral': 452, 'n_tokens_neox': 385, 'n_words': 63}