<commit_before>package org.workcraft;

import org.mozilla.javascript.Context;
import org.mozilla.javascript.RhinoException;
import org.mozilla.javascript.WrappedException;
import org.workcraft.exceptions.OperationCancelledException;
import org.workcraft.utils.DesktopApi;
import org.workcraft.workspace.FileFilters;
import org.workcraft.gui.MainWindow;
import org.workcraft.utils.LogUtils;
import org.workcraft.utils.ResourceUtils;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.LinkedList;

public class Console {
    static {
        //Allows menu bar of OS X to be used instead of being in the Workcraft main window.
        if (DesktopApi.getOs().isMac()) {
            System.setProperty("apple.laf.useScreenMenuBar", "true");
            System.setProperty("apple.eawt.quitStrategy", "CLOSE_ALL_WINDOWS");
        }
    }

    public static void main(String[] args) {
        final Framework framework = Framework.getInstance();
        LinkedList<String> arglist = new LinkedList<>(Arrays.asList(args));

        // Process -version and -help options
        for (String arg : args) {
            if (arg.equals(Info.OPTION_VERSION)) {
                System.out.println(Info.getVersion());
                return;
            }
            if (arg.equals(Info.OPTION_HELP)) {
                System.out.println(Info.getHelp());
                return;
            }
        }

        // Process -nogui, -noconfig and -dir: options
        boolean startGui = true;
        boolean useConfig = true;
        for (String arg : args) {
            if (arg.equals(Info.OPTION_NOGUI)) {
                startGui = false;
                arglist.remove(arg);<commit_msg>Force anti aliasing of AWT and Swing text<commit_after>package org.workcraft;

import org.mozilla.javascript.Context;
import org.mozilla.javascript.RhinoException;
import org.mozilla.javascript.WrappedException;
import org.workcraft.exceptions.OperationCancelledException;
import org.workcraft.gui.MainWindow;
import org.workcraft.utils.DesktopApi;
import org.workcraft.utils.LogUtils;
import org.workcraft.utils.ResourceUtils;
import org.workcraft.workspace.FileFilters;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.LinkedList;

public class Console {

    static {
        // Enable font anti-aliasing
        System.setProperty("awt.useSystemAAFontSettings","on");
        System.setProperty("swing.aatext", "true");

        //Allows menu bar of OS X to be used instead of being in the Workcraft main window.
        if (DesktopApi.getOs().isMac()) {
            System.setProperty("apple.laf.useScreenMenuBar", "true");
            System.setProperty("apple.eawt.quitStrategy", "CLOSE_ALL_WINDOWS");
        }
    }

    public static void main(String[] args) {
        final Framework framework = Framework.getInstance();
        LinkedList<String> arglist = new LinkedList<>(Arrays.asList(args));

        // Process -version and -help options
        for (String arg : args) {
            if (arg.equals(Info.OPTION_VERSION)) {
                System.out.println(Info.getVersion());
                return;
            }
            if (arg.equals(Info.OPTION_HELP)) {
                System.out.println(Info.getHelp());
                return;
            }
        }

        // Process -nogui, -noconfig and -dir: options
        boolean startGui = true;
        boolean useConfig = true;
        for (String arg : args) {
            if (arg.equals(Info.OPTION_NOGUI)) {
                startGui = false;
                arglist.remove(arg);
{'fraction_non_alphanumeric': 0.10657240115213407, 'fraction_numerical': 0.0, 'mean_word_length': 2.610586011342155, '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': '7310445', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1068, 'n_words': 236}