<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;

using Federation.UWP.Enums;
using Federation.UWP.Objects.Game;

namespace Federation.UWP.ViewModel.Menu
{
    public class NewGameViewModel : BaseViewModel
    {
        private List<string> _gameSizeOptions;

        public List<string> GameSizeOptions
        {
            get => _gameSizeOptions;

            set { _gameSizeOptions = value; OnPropertyChanged(); }
        }

        private string _selectedGameSize;

        public string SelectedGameSize
        {
            get => _selectedGameSize;

            set { _selectedGameSize = value; OnPropertyChanged(); }
        }

        public NewGameViewModel()
        {
            GameSizeOptions = Enum.GetNames(typeof(Enums.GameSize)).ToList();
        }

        private Race _selectedRace;

        public void SetRace(Race race)
        {
            _selectedRace = race;
        }

        public MainGameItem BuildGameObject()
        {
            var gameItem = new MainGameItem((GameSize)Enum.Parse(typeof(GameSize), SelectedGameSize));

            // TODO Set Selected Race here

            return gameItem;
        }
    }
}<commit_msg>Fix: Initializing the SelectedGameSize in the NewGameViewModel<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;

using Federation.UWP.Enums;
using Federation.UWP.Objects.Game;

namespace Federation.UWP.ViewModel.Menu
{
    public class NewGameViewModel : BaseViewModel
    {
        private List<string> _gameSizeOptions;

        public List<string> GameSizeOptions
        {
            get => _gameSizeOptions;

            set { _gameSizeOptions = value; OnPropertyChanged(); }
        }

        private string _selectedGameSize;

        public string SelectedGameSize
        {
            get => _selectedGameSize;

            set { _selectedGameSize = value; OnPropertyChanged(); }
        }

        public NewGameViewModel()
        {
            GameSizeOptions = Enum.GetNames(typeof(Enums.GameSize)).ToList();

            SelectedGameSize = GameSizeOptions.FirstOrDefault();
        }

        private Race _selectedRace;

        public void SetRace(Race race)
        {
            _selectedRace = race;
        }

        public MainGameItem BuildGameObject()
        {
            var gameItem = new MainGameItem((GameSize)Enum.Parse(typeof(GameSize), SelectedGameSize));

            // TODO Set Selected Race here

            return gameItem;
        }
    }
}
{'fraction_non_alphanumeric': 0.07872763419483102, 'fraction_numerical': 0.0, 'mean_word_length': 2.145, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '931523', 'n_tokens_mistral': 681, 'n_tokens_neox': 641, 'n_words': 144}