<commit_before>// Copyright (C) 2011 jOVAL.org.  All rights reserved.
// This software is licensed under the LGPL 3.0 license available at http://www.gnu.org/licenses/lgpl.txt

package jsaf.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Properties;
import java.util.logging.*;

import jsaf.intf.system.ISession;
import jsaf.intf.windows.registry.IRegistry;
import jsaf.intf.windows.registry.IKey;
import jsaf.intf.windows.registry.IValue;
import jsaf.intf.windows.registry.IBinaryValue;
import jsaf.intf.windows.registry.IDwordValue;
import jsaf.intf.windows.registry.IExpandStringValue;
import jsaf.intf.windows.registry.ILicenseData;
import jsaf.intf.windows.registry.ILicenseData.IEntry;
import jsaf.intf.windows.registry.IMultiStringValue;
import jsaf.intf.windows.registry.IStringValue;
import jsaf.intf.windows.system.IWindowsSession;
import jsaf.io.LittleEndian;

public class Reg {
    IWindowsSession session;

    public Reg(ISession session) {
	this.session = (IWindowsSession)session;
    }

    public void testLicense() {
	try {
	    IRegistry r = session.getRegistry(IWindowsSession.View._64BIT);
	    Hashtable<String, IEntry> ht = r.getLicenseData().getEntries();
	    for (IEntry entry : ht.values()) {
		System.out.println(entry.toString());<commit_msg>Fix build break for Registry test class.<commit_after>// Copyright (C) 2011 jOVAL.org.  All rights reserved.
// This software is licensed under the LGPL 3.0 license available at http://www.gnu.org/licenses/lgpl.txt

package jsaf.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import java.util.logging.*;

import jsaf.intf.system.ISession;
import jsaf.intf.windows.registry.IRegistry;
import jsaf.intf.windows.registry.IKey;
import jsaf.intf.windows.registry.IValue;
import jsaf.intf.windows.registry.IBinaryValue;
import jsaf.intf.windows.registry.IDwordValue;
import jsaf.intf.windows.registry.IExpandStringValue;
import jsaf.intf.windows.registry.ILicenseData;
import jsaf.intf.windows.registry.ILicenseData.IEntry;
import jsaf.intf.windows.registry.IMultiStringValue;
import jsaf.intf.windows.registry.IStringValue;
import jsaf.intf.windows.system.IWindowsSession;
import jsaf.io.LittleEndian;

public class Reg {
    IWindowsSession session;

    public Reg(ISession session) {
	this.session = (IWindowsSession)session;
    }

    public void testLicense() {
	try {
	    IRegistry r = session.getRegistry(IWindowsSession.View._64BIT);
	    Map<String, IEntry> ht = r.getLicenseData().getEntries();
	    for (IEntry entry : ht.values()) {
		System.out.println(entry.toString());
{'fraction_non_alphanumeric': 0.11219853198182454, 'fraction_numerical': 0.005592450192240475, 'mean_word_length': 4.98744769874477, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5769872', 'n_tokens_mistral': 946, 'n_tokens_neox': 896, 'n_words': 185}