<commit_before>package com.boundary.sdk.event;
import static org.junit.Assert.*;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.net.URL;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RawEventScriptingTest {
	
	private static Logger LOG = LoggerFactory.getLogger(RawEventScriptingTest.class);
	
    ScriptEngineManager manager;
    ScriptEngine engine;
    RawEvent event;
    String scriptDirectory="js/rawevent";
    String scriptEngineName = "JavaScript";
    

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
        manager = new ScriptEngineManager();
        engine = manager.getEngineByName(scriptEngineName);
        event = new RawEvent();
        engine.put("event", event);
	}

	@After<commit_msg>Enable using the nashorn java script engine<commit_after>package com.boundary.sdk.event;
import static org.junit.Assert.*;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.net.URL;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RawEventScriptingTest {
	
	private static Logger LOG = LoggerFactory.getLogger(RawEventScriptingTest.class);
	
    ScriptEngineManager manager;
    ScriptEngine engine;
    RawEvent event;
    String scriptDirectory="js/rawevent";
    String scriptEngineName = "nashorn";
    

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
        manager = new ScriptEngineManager();
        engine = manager.getEngineByName(scriptEngineName);
        event = new RawEvent();
        engine.put("event", event);
	}

	@After
{'fraction_non_alphanumeric': 0.09102296450939457, 'fraction_numerical': 0.0016701461377870565, 'mean_word_length': 4.533487297921478, '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': '4043619', 'n_tokens_mistral': 700, 'n_tokens_neox': 682, 'n_words': 171}