<commit_before>package org.destinationsol.desktop;

import com.badlogic.gdx.Files;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import org.destinationsol.GameOptions;
import org.destinationsol.SolApplication;
import org.destinationsol.SolFileReader;
import org.destinationsol.game.DebugOptions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.terasology.crashreporter.CrashReporter;

import java.io.*;
import java.nio.charset.Charset;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;

public class SolDesktop {
    private static Logger logger = LoggerFactory.getLogger(SolDesktop.class);

    private static final String NO_CRASH_REPORT = "-noCrashReport";

    public static void main(String[] argv) {
        List<String> commandLineArgs = Arrays.asList(argv);

        LwjglApplicationConfiguration applicationConfig = new LwjglApplicationConfiguration();
        boolean devBuild = java.nio.file.Files.exists(Paths.get("devBuild"));
        if (devBuild) {
            DebugOptions.DEV_ROOT_PATH = "main" + File.separator; // Lets the game run from source without a tweaked working directory
            applicationConfig.vSyncEnabled = false; //Setting to false disables vertical sync
            applicationConfig.foregroundFPS = 0; //disables foreground fps throttling
            applicationConfig.backgroundFPS = 0; //disables background fps throttling
        }
        MyReader reader = new MyReader();
        DebugOptions.read(reader);

        if (DebugOptions.EMULATE_MOBILE) {
            applicationConfig.width = 640;
            applicationConfig.height = 480;
            applicationConfig.fullscreen = false;
        } else {
            GameOptions d = new GameOptions(false, reader);
            applicationConfig.width = d.x;
            applicationConfig.height = d.y;
            applicationConfig.fullscreen = d.fullscreen;
        }

        applicationConfig.title = "Destination Sol";
        if (DebugOptions.DEV_ROOT_PATH == null) {
            applicationConfig.addIcon("res/icon.png", Files.FileType.Internal);
        } else {
            applicationConfig.addIcon(DebugOptions.DEV_ROOT_PATH + "res/icon.png", Files.FileType.Absolute);
        }
<commit_msg>Limit fg and bg fps<commit_after>package org.destinationsol.desktop;

import com.badlogic.gdx.Files;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import org.destinationsol.GameOptions;
import org.destinationsol.SolApplication;
import org.destinationsol.SolFileReader;
import org.destinationsol.game.DebugOptions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.terasology.crashreporter.CrashReporter;

import java.io.*;
import java.nio.charset.Charset;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;

public class SolDesktop {
    private static Logger logger = LoggerFactory.getLogger(SolDesktop.class);

    private static final String NO_CRASH_REPORT = "-noCrashReport";

    public static void main(String[] argv) {
        List<String> commandLineArgs = Arrays.asList(argv);

        LwjglApplicationConfiguration applicationConfig = new LwjglApplicationConfiguration();
        boolean devBuild = java.nio.file.Files.exists(Paths.get("devBuild"));
        if (devBuild) {
            DebugOptions.DEV_ROOT_PATH = "main" + File.separator; // Lets the game run from source without a tweaked working directory
            applicationConfig.vSyncEnabled = false; // Setting to false disables vertical sync
            applicationConfig.foregroundFPS = 1000; // Use 0 to disable foreground fps throttling
            applicationConfig.backgroundFPS = 100; // Use 0 to disable background fps throttling
        }
        MyReader reader = new MyReader();
        DebugOptions.read(reader);

        if (DebugOptions.EMULATE_MOBILE) {
            applicationConfig.width = 640;
            applicationConfig.height = 480;
            applicationConfig.fullscreen = false;
        } else {
            GameOptions d = new GameOptions(false, reader);
            applicationConfig.width = d.x;
            applicationConfig.height = d.y;
            applicationConfig.fullscreen = d.fullscreen;
        }

        applicationConfig.title = "Destination Sol";
        if (DebugOptions.DEV_ROOT_PATH == null) {
            applicationConfig.addIcon("res/icon.png", Files.FileType.Internal);
        } else {
            applicationConfig.addIcon(DebugOptions.DEV_ROOT_PATH + "res/icon.png", Files.FileType.Absolute);
        }

{'fraction_non_alphanumeric': 0.09149536477226924, 'fraction_numerical': 0.005441354292623942, 'mean_word_length': 3.330715532286213, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6435624', 'n_tokens_mistral': 1436, 'n_tokens_neox': 1374, 'n_words': 298}