<commit_before>package com.splunk.shep.s2s.forwarder.mbeans;

import java.io.FileReader;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import java.util.ArrayList;;
import org.apache.log4j.Logger;

import com.splunk.shep.s2s.forwarder.model.ForwarderConf;

public class ShepForwarder implements ShepForwarderMBean {
    private Logger logger = Logger.getLogger(getClass());
    private String FORWARDERCONF_XML = "etc/apps/shep/default/ForwarderConf.xml";
    private ArrayList<ForwarderConf.HDFSSink> hdfssinklist;

    public ShepForwarder() throws Exception {
	logger.info("shepforwarder");
	try {
	    String splunkhome = System.getProperty("splunk.home");
    	JAXBContext context = JAXBContext.newInstance(ForwarderConf.class);
    	Unmarshaller um = context.createUnmarshaller();
    	ForwarderConf conf = (ForwarderConf) um.unmarshal(new FileReader(
    			splunkhome+FORWARDERCONF_XML));<commit_msg>fixed typo<commit_after>package com.splunk.shep.s2s.forwarder.mbeans;

import java.io.FileReader;
import java.util.ArrayList;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;

import org.apache.log4j.Logger;

import com.splunk.shep.s2s.forwarder.model.ForwarderConf;

public class ShepForwarder implements ShepForwarderMBean {
    private Logger logger = Logger.getLogger(getClass());
    private String FORWARDERCONF_XML = "etc/apps/shep/default/ForwarderConf.xml";
    private ArrayList<ForwarderConf.HDFSSink> hdfssinklist;

    public ShepForwarder() throws Exception {
	logger.info("shepforwarder");
	try {
	    String splunkhome = System.getProperty("splunk.home");
    	JAXBContext context = JAXBContext.newInstance(ForwarderConf.class);
    	Unmarshaller um = context.createUnmarshaller();
    	ForwarderConf conf = (ForwarderConf) um.unmarshal(new FileReader(
    			splunkhome+FORWARDERCONF_XML));
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.00322061191626409, 'mean_word_length': 5.276094276094276, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4669569', 'n_tokens_mistral': 606, 'n_tokens_neox': 613, 'n_words': 102}