<commit_before>package com.moeyinc.formulamorph;

import java.util.Locale;
import java.awt.Dimension;
import javax.swing.JFrame;

public class Main {

	private static GUI gui;
	private static PhidgetInterface pi;
	public static GUI gui() { return gui; }
	
    /**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    private static void createAndShowGUI() {
        //Create and set up the window.
    	boolean fullscreen = false;
//    	boolean fullscreen = true;
    	
    	try
    	{
    		gui = new GUI();
    	}
    	catch( Exception e )
    	{
    		System.err.println( "Could not start GUI. Cause:" );
    		e.printStackTrace( System.err );
    		System.exit( -1 );
    	}
        gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        if( fullscreen )
        {
        	gui.tryFullScreen();
        }
        else
        {
	        //Size and display the window. (size has no effect in fullscree mode)
			gui.getContentPane().setPreferredSize(new Dimension(16*75,9*75));
			gui.pack();
			gui.setVisible( true );
        }
        try
        {
        	pi = new PhidgetInterface( "localhost", 4767 );
        }
        catch( Exception e )
        {
        	System.err.println( "Unable to connect to Phidgets." );
        	System.err.println( e.getMessage() );
        	System.exit( -1 );
        }
    }
    
    public static void main(String[] args) {
    	Locale.setDefault( Locale.US );
    	try {
            // Set System L&F
    		javax.swing.UIManager.setLookAndFeel( javax.swing.UIManager.getSystemLookAndFeelClassName());
    	} 
	    catch ( Exception e ) {
	       e.printStackTrace();
	    }

        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {<commit_msg>start FormulaMorph even if there is not connection to Phidgets<commit_after>package com.moeyinc.formulamorph;

import java.util.Locale;
import java.awt.Dimension;
import javax.swing.JFrame;

public class Main {

	private static GUI gui;
	private static PhidgetInterface pi;
	public static GUI gui() { return gui; }
	
    /**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    private static void createAndShowGUI() {
        //Create and set up the window.
    	boolean fullscreen = false;
//    	boolean fullscreen = true;
    	
    	try
    	{
    		gui = new GUI();
    	}
    	catch( Exception e )
    	{
    		System.err.println( "Could not start GUI. Cause:" );
    		e.printStackTrace( System.err );
    		System.exit( -1 );
    	}
        gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        if( fullscreen )
        {
        	gui.tryFullScreen();
        }
        else
        {
	        //Size and display the window. (size has no effect in fullscree mode)
			gui.getContentPane().setPreferredSize(new Dimension(16*75,9*75));
			gui.pack();
			gui.setVisible( true );
        }
       	pi = new PhidgetInterface( "localhost", 4767 );
    }
    
    public static void main(String[] args) {
    	Locale.setDefault( Locale.US );
    	try {
            // Set System L&F
    		javax.swing.UIManager.setLookAndFeel( javax.swing.UIManager.getSystemLookAndFeelClassName());
    	} 
	    catch ( Exception e ) {
	       e.printStackTrace();
	    }

        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
{'fraction_non_alphanumeric': 0.10234944639481501, 'fraction_numerical': 0.006751282743721307, 'mean_word_length': 2.096989966555184, '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': '2874040', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1133, 'n_words': 299}