<commit_before>package groovy.ui

import groovy.swing.SwingBuilder
import groovy.inspect.swingui.ObjectBrowser

import java.awt.BorderLayout
import java.awt.Toolkit
import java.awt.Insets
import java.awt.Color
import java.awt.Font
import java.awt.event.KeyEvent
import java.util.EventObject

import javax.swing.*
import javax.swing.text.*
import javax.swing.event.*

import org.codehaus.groovy.runtime.InvokerHelper

/**
 * Groovy Swing console.
 *
 * @author <NAME>
 * @author <NAME>, changed Layout, included Selection sensitivity, included ObjectBrowser
 */
class Console extends ConsoleSupport implements CaretListener {

	// TODO: make this configurable
	private static final int MAX_HISTORY = 10;

    def frame
    def swing
    def inputArea
    def outputArea
    def scriptList
    def scriptFile
    def lastResult    
    private JLabel statusLabel
    private List history = []
    private int historyIndex = 1 // valid values are 0..history.length()
    private boolean dirty
    private int textSelectionStart  // keep track of selections in inputArea
    private int textSelectionEnd

    static void main(args) {
        def console = new Console()
        console.run()
    }
<commit_msg>Fixed problem when running from groovyConsole.bat<commit_after>package groovy.ui

import groovy.swing.SwingBuilder
import groovy.inspect.swingui.ObjectBrowser

import java.awt.BorderLayout
import java.awt.Toolkit
import java.awt.Insets
import java.awt.Color
import java.awt.Font
import java.awt.event.KeyEvent
import java.util.EventObject

import javax.swing.*
import javax.swing.text.*
import javax.swing.event.*

import org.codehaus.groovy.runtime.InvokerHelper

/**
 * Groovy Swing console.
 *
 * @author <NAME>
 * @author <NAME>, changed Layout, included Selection sensitivity, included ObjectBrowser
 */
class Console extends ConsoleSupport implements CaretListener {

	// TODO: make this configurable
	private static final int MAX_HISTORY = 10;

    def frame
    def swing
    def inputArea
    def outputArea
    def scriptList
    def scriptFile
    def lastResult    
    def JLabel statusLabel
    def List history = []
    def int historyIndex = 1 // valid values are 0..history.length()
    def boolean dirty
    def int textSelectionStart  // keep track of selections in inputArea
    def int textSelectionEnd

    static void main(args) {
        def console = new Console()
        console.run()
    }

{'fraction_non_alphanumeric': 0.0721947194719472, 'fraction_numerical': 0.0033003300330033004, 'mean_word_length': 3.465930018416206, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5811211', 'n_tokens_mistral': 691, 'n_tokens_neox': 663, 'n_words': 223}