<commit_before>// 2014-10-03 <NAME> <<EMAIL>>
// If you are asking what license this software is released under,
// you are asking the wrong question.

package org.notimetoplay.voxeldesc;

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

import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;

import java.awt.event.KeyEvent;
import java.awt.event.InputEvent;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ScriptConsole implements ActionListener {
	private ScriptEngine engine;
	
	public ScriptConsole() {
		final ScriptEngineManager mgr = new ScriptEngineManager();
		engine = mgr.getEngineByName("rhino");
		makeGUI();
	}
	
	public ScriptConsole(final ScriptEngine e) {
		setEngine(e);
		makeGUI();
	}
	
	public void setEngine(final ScriptEngine e) {
		if (e == null) throw new NullPointerException(
			"Non-null script engine expected");
		engine = e;
	}<commit_msg>One-line change for Java 8.<commit_after>// 2014-10-03 <NAME> <<EMAIL>>
// If you are asking what license this software is released under,
// you are asking the wrong question.

package org.notimetoplay.voxeldesc;

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

import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;

import java.awt.event.KeyEvent;
import java.awt.event.InputEvent;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ScriptConsole implements ActionListener {
	private ScriptEngine engine;
	
	public ScriptConsole() {
		final ScriptEngineManager mgr = new ScriptEngineManager();
		setEngine(mgr.getEngineByName("javascript"));
		makeGUI();
	}
	
	public ScriptConsole(final ScriptEngine e) {
		setEngine(e);
		makeGUI();
	}
	
	public void setEngine(final ScriptEngine e) {
		if (e == null) throw new NullPointerException(
			"Non-null script engine expected");
		engine = e;
	}
{'fraction_non_alphanumeric': 0.10176041219407471, 'fraction_numerical': 0.0072992700729927005, 'mean_word_length': 5.115485564304462, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '819754', 'n_tokens_mistral': 737, 'n_tokens_neox': 695, 'n_words': 191}