<commit_before>package com.equalize.xpi.af.modules.tester;

import java.util.Hashtable;

import com.equalize.xpi.tester.util.ParameterHelper;

public class ModuleTesterMain {

	public static void main(String[] args) {
		try {
			// Default files
			String inputFile = "C:\\Users\\ksap086\\Desktop\\Excel2XML_Scenario1.xlsx";
			String paramFile = "C:\\Users\\ksap086\\Desktop\\Excel2XML_Scenario1_param.txt";
			String outFile = "C:\\Users\\ksap086\\Desktop\\output.txt";
			
			// Module to be tested
			String module = "com.equalize.xpi.af.modules.FormatConversionBean";

			// Get module parameters and initialize tester
			Hashtable<String, String> contextData = ParameterHelper.newInstance(paramFile).getParams();
			ModuleTester tester = ModuleTester.newInstance(module, inputFile, contextData);

			// Add dynamic configuration
			tester.addDynCfg("http://sap.com/xi/XI/System/File", "FileName", "FileA.txt");	
<commit_msg>Change standalone module tester to use arguments as input<commit_after>package com.equalize.xpi.af.modules.tester;

import java.util.Hashtable;

import com.equalize.xpi.tester.util.ParameterHelper;

public class ModuleTesterMain {

	public static void main(String[] args) {
		try {
			// Sample arguments:-
			// arg0 - com.equalize.xpi.af.modules.FormatConversionBean
			// arg1 - C:\Users\ksap086\Desktop\input.txt
			// arg2 - C:\Users\ksap086\Desktop\param.txt
			// arg3 - C:\Users\ksap086\Desktop\output.txt
			if(args.length < 4)
				throw new RuntimeException("Please enter arguments in Run Configuration");

			// Module to be tested
			String module = args[0];
			// Files
			String inputFile = args[1];
			String paramFile = args[2];
			String outFile = args[3];
			
			// Get module parameters and initialize tester
			Hashtable<String, String> contextData = ParameterHelper.newInstance(paramFile).getParams();
			ModuleTester tester = ModuleTester.newInstance(module, inputFile, contextData);

			// Add dynamic configuration
			//tester.addDynCfg("http://sap.com/xi/XI/System/File", "FileName", "FileA.txt");	

{'fraction_non_alphanumeric': 0.12706913339824732, 'fraction_numerical': 0.015092502434274586, 'mean_word_length': 3.8696682464454977, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, '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': '5110767', 'n_tokens_mistral': 742, 'n_tokens_neox': 641, 'n_words': 135}