<commit_before>package dr.app.tracer.application;

import dr.inference.trace.LogFileTraces;
import org.virion.jam.framework.*;
import org.virion.jam.mac.Utils;

import javax.swing.*;
import java.awt.*;
import java.io.File;

public class TracerApp extends MultiDocApplication {

	public TracerApp(String nameString, String aboutString, Icon icon,
	                 String websiteURLString, String helpURLString) {
		super(new TracerMenuBarFactory(), nameString, aboutString, icon, websiteURLString, helpURLString);
	}

	// Main entry point
	static public void main(String[] args) {
		boolean lafLoaded = false;

//		if (Utils.getMacOSXVersion().startsWith("10.5")) {
//			System.setProperty("apple.awt.brushMetalLook","true");
//		}

		System.setProperty("apple.laf.useScreenMenuBar","true");
		System.setProperty("apple.awt.draggableWindowBackground","true");
		System.setProperty("apple.awt.showGrowBox","true");
		System.setProperty("apple.awt.graphics.UseQuartz","true");
		System.setProperty("apple.awt.antialiasing","true");


		if (!Utils.getMacOSXVersion().startsWith("10.5")) {
			// set the Quaqua Look and Feel in the UIManager
			try {
				UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
				lafLoaded = true;
			} catch (Exception e) {
			}
		}

		UIManager.put("SystemFont", new Font("Lucida Grande", Font.PLAIN, 13));
		UIManager.put("SmallSystemFont", new Font("Lucida Grande", Font.PLAIN, 11));

		if (!lafLoaded) {
			try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} catch (Exception e1) {
				e1.printStackTrace();
			}
		}

		try {
			java.net.URL url = TracerApp.class.getResource("images/Tracer.png");
			Icon icon = null;

			if (url != null) {
				icon = new ImageIcon(url);
			}

			final String nameString = "Tracer";
			final String versionString = "v1.4.1";
			String aboutString = "<html><center><p>MCMC Trace Analysis Tool<br>" +
					"Version " + versionString + ", 2003-2008</p>" +
					"<p>by<br>" +
					"<NAME> and <NAME></p>" +
					"<p>Institute of Evolutionary Biology, University of Edinburgh<br>" +
					"<a href=\"mailto:<EMAIL>\"><EMAIL></a></p>" +
					"<p>Department of Computer Science, University of Auckland<br>" +
					"<a href=\"mailto:<EMAIL>\"><EMAIL></a></p>" +
					"<p>Available from the BEAST site:<br>" +
					"<a href=\"http://beast.bio.ed.ac.uk/\">http://beast.bio.ed.ac.uk/</a></p>" +
					"<p>Source code distributed under the GNU LGPL:<br>" +<commit_msg>Fixed an issue with TracerApp not running on non-Mac OSs<commit_after>package dr.app.tracer.application;

import dr.inference.trace.LogFileTraces;
import org.virion.jam.framework.*;
import org.virion.jam.mac.Utils;

import javax.swing.*;
import java.awt.*;
import java.io.File;

public class TracerApp extends MultiDocApplication {

	public TracerApp(String nameString, String aboutString, Icon icon,
	                 String websiteURLString, String helpURLString) {
		super(new TracerMenuBarFactory(), nameString, aboutString, icon, websiteURLString, helpURLString);
	}

	// Main entry point
	static public void main(String[] args) {
		boolean lafLoaded = false;

		if (Utils.isMacOSX()) {

//		if (Utils.getMacOSXVersion().startsWith("10.5")) {
//			System.setProperty("apple.awt.brushMetalLook","true");
//		}

			System.setProperty("apple.laf.useScreenMenuBar","true");
			System.setProperty("apple.awt.draggableWindowBackground","true");
			System.setProperty("apple.awt.showGrowBox","true");
			System.setProperty("apple.awt.graphics.UseQuartz","true");
			System.setProperty("apple.awt.antialiasing","true");


			if (!Utils.getMacOSXVersion().startsWith("10.5")) {
				// set the Quaqua Look and Feel in the UIManager
				try {
					UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
					lafLoaded = true;
				} catch (Exception e) {
				}
			}

			UIManager.put("SystemFont", new Font("Lucida Grande", Font.PLAIN, 13));
			UIManager.put("SmallSystemFont", new Font("Lucida Grande", Font.PLAIN, 11));
		}

		if (!lafLoaded) {
			try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} catch (Exception e1) {
				e1.printStackTrace();
			}
		}

		try {
			java.net.URL url = TracerApp.class.getResource("images/Tracer.png");
			Icon icon = null;

			if (url != null) {
				icon = new ImageIcon(url);
			}

			final String nameString = "Tracer";
			final String versionString = "v1.4.1";
			String aboutString = "<html><center><p>MCMC Trace Analysis Tool<br>" +
					"Version " + versionString + ", 2003-2008</p>" +
					"<p>by<br>" +
					"<NAME> and <NAME></p>" +
					"<p>Institute of Evolutionary Biology, University of Edinburgh<br>" +
					"<a href=\"mailto:<EMAIL>\"><EMAIL></a></p>" +
					"<p>Department of Computer Science, University of Auckland<br>" +
					"<a href=\"mailto:<EMAIL>\"><EMAIL></a></p>" +
					"<p>Available from the BEAST site:<br>" +
					"<a href=\"http://beast.bio.ed.ac.uk/\">http://beast.bio.ed.ac.uk/</a></p>" +
					"<p>Source code distributed under the GNU LGPL:<br>" +
{'fraction_non_alphanumeric': 0.165374677002584, 'fraction_numerical': 0.009143311468892865, 'mean_word_length': 3.933333333333333, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '6531029', 'n_tokens_mistral': 1962, 'n_tokens_neox': 1713, 'n_words': 331}