<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;

namespace Rise_of_Music
{
    public class Program
    {
        private static MusicPlayer musicPlayer = null;

        private static String riseOfMusicCurrentGameDirPath = null;

        private static String playerNumber = null;

        private static String currentUserDatFilePath = null;

        private static DateTime currentUserDatFileLastWriteTime = DateTime.Now;

        public static ConfigXml Config { get; set; }

        /// <summary>
        /// The entry point to Rise of Music.
        /// </summary>
        /// <param name="args">Not currently used.</param>
        public static void Main(string[] args)
        {
            Console.WriteLine("============================================");
            Console.WriteLine("          Rise of Music v. " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
            Console.WriteLine("============================================");

            // Initializes the application and returns success or failure
            bool initSuccess = Init();

            // If the app failed to initialize
            if (!initSuccess)
            {
                Console.WriteLine("Failed to initialize");
                Console.WriteLine();

                // Allow the user to exit once they have read any messages
                Console.Write("Press any key to exit...");
                Console.ReadKey();

                // Exit with failure status code
                Environment.Exit(-1);
            }
            else // Else, the app successfully initialized
            {
                Console.WriteLine("Rise of Music initialized successfully");
                Console.WriteLine();
            }

            // Set the player color
            SetPlayerColor();

            // Set the volume for the MusicPlayer
            musicPlayer.Volume = GetCurrentUserVolumeSetting();

            Console.WriteLine("Waiting for music mood info file...");

            // Begin looking for a music_mood.xml file to read
            new Thread(() =>
            {
                while (true)
                {
                    try
                    {<commit_msg>#4 - Showing what buttons to click for the win/lose music in the UI now.<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;

namespace Rise_of_Music
{
    public class Program
    {
        private static MusicPlayer musicPlayer = null;

        private static String riseOfMusicCurrentGameDirPath = null;

        private static String playerNumber = null;

        private static String currentUserDatFilePath = null;

        private static DateTime currentUserDatFileLastWriteTime = DateTime.Now;

        public static ConfigXml Config { get; set; }

        /// <summary>
        /// The entry point to Rise of Music.
        /// </summary>
        /// <param name="args">Not currently used.</param>
        public static void Main(string[] args)
        {
            Console.WriteLine("============================================");
            Console.WriteLine("          Rise of Music v. " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
            Console.WriteLine("============================================");

            // Initializes the application and returns success or failure
            bool initSuccess = Init();

            // If the app failed to initialize
            if (!initSuccess)
            {
                Console.WriteLine("Failed to initialize");
                Console.WriteLine();

                // Allow the user to exit once they have read any messages
                Console.Write("Press any key to exit...");
                Console.ReadKey();

                // Exit with failure status code
                Environment.Exit(-1);
            }
            else // Else, the app successfully initialized
            {
                Console.WriteLine("Rise of Music initialized successfully");
                Console.WriteLine();
            }

            // Set the player color
            SetPlayerColor();

            // Set the volume for the MusicPlayer
            musicPlayer.Volume = GetCurrentUserVolumeSetting();

            Console.WriteLine("Waiting for music mood info file...");
            Console.WriteLine("To play win music press '~' three times in a row");
            Console.WriteLine("To play lose music press right-control three times in a row");

            // Begin looking for a music_mood.xml file to read
            new Thread(() =>
            {
                while (true)
                {
                    try
                    {
{'fraction_non_alphanumeric': 0.11748082357690755, 'fraction_numerical': 0.0006055712555510698, 'mean_word_length': 1.7946982515510435, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3099115', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1043, 'n_words': 370}