<commit_before>using System.Threading;
using Terraria_Server.Commands;
using System;
using System.IO;
using System.Diagnostics;
using System.Reflection;
using Terraria_Server.Definitions;
using System.Xml;

namespace Terraria_Server
{
    public class Program
    {
        public const String VERSION_NUMBER = "v1.0.5";

        public static Thread updateThread = null;
        public static ServerProperties properties = null;
        public static CommandParser commandParser = null;
        public static TConsole tConsole = null;
        private static int preserve = 0;

        public static Server server;

        public static void Main(String[] args)
        {
            try
            {
                String MODInfo = "Terraria's Dedicated Server Mod. (" + VERSION_NUMBER + " {" + Statics.CURRENT_TERRARIA_RELEASE + "}) #"
                    + Statics.BUILD;
                Console.Title = MODInfo;

                Console.WriteLine("Initializing " + MODInfo);

                if (args != null && args.Length > 0)
                {
                    String commandMessage = args[0].ToLower().Trim();
                    // 0 for Ops
                    if (commandMessage.Equals("-ignoremessages:0"))
                    {
                        Statics.cmdMessages = false;
                    }
                }

                Console.WriteLine("Setting up Paths.");
                if (!SetupPaths())
                {
                    return;
                }

                Platform.InitPlatform();
                tConsole = new TConsole(Statics.DataPath + Path.DirectorySeparatorChar + "server.log", Platform.Type);

                Program.tConsole.WriteLine("Setting up Properties.");
                bool propertiesExist = File.Exists("server.properties");
                SetupProperties();
                
                if(!propertiesExist)
                {
                    Console.Write("New properties file created. Would you like to exit for editing? [Y/n]: ");
                    if (Console.ReadLine().ToLower() == "y")<commit_msg>Removed old args :3<commit_after>using System.Threading;
using Terraria_Server.Commands;
using System;
using System.IO;
using System.Diagnostics;
using System.Reflection;
using Terraria_Server.Definitions;
using System.Xml;

namespace Terraria_Server
{
    public class Program
    {
        public const String VERSION_NUMBER = "v1.0.5";

        public static Thread updateThread = null;
        public static ServerProperties properties = null;
        public static CommandParser commandParser = null;
        public static TConsole tConsole = null;
        private static int preserve = 0;

        public static Server server;

        public static void Main(String[] args)
        {
            try
            {
                String MODInfo = "Terraria's Dedicated Server Mod. (" + VERSION_NUMBER + " {" + Statics.CURRENT_TERRARIA_RELEASE + "}) #"
                    + Statics.BUILD;
                Console.Title = MODInfo;

                Console.WriteLine("Initializing " + MODInfo);

                Console.WriteLine("Setting up Paths.");
                if (!SetupPaths())
                {
                    return;
                }

                Platform.InitPlatform();
                tConsole = new TConsole(Statics.DataPath + Path.DirectorySeparatorChar + "server.log", Platform.Type);

                Program.tConsole.WriteLine("Setting up Properties.");
                bool propertiesExist = File.Exists("server.properties");
                SetupProperties();
                
                if(!propertiesExist)
                {
                    Console.Write("New properties file created. Would you like to exit for editing? [Y/n]: ");
                    if (Console.ReadLine().ToLower() == "y")
{'fraction_non_alphanumeric': 0.09007832898172324, 'fraction_numerical': 0.003394255874673629, 'mean_word_length': 1.6940928270042195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1651424', 'n_tokens_mistral': 944, 'n_tokens_neox': 881, 'n_words': 237}