<commit_before>﻿using FlatRedBall.Glue.MVVM;
using FlatRedBall.Glue.Plugins.ExportedImplementations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace FlatRedBall.Glue.ViewModels
{
    public class TilesetTileSelectorFullViewModel : ViewModel
    {
        public int TileId
        {
            get => Get<int>();
            set => Set(value);
        }

        [DependsOn(nameof(TileId))]
        public string TileType
        {
            get
            {
                return GlueState.Self.TiledCache.StandardTileset.Tiles.FirstOrDefault(item => item.id == TileId)?.Type;
            }
        }

        public int? ExistingId
        {
            get => Get<int?>();
            set => Set(value);
        }

        public string ExistingType =><commit_msg>Fixed possible crash when opening up to view standard tileset tiles.<commit_after>﻿using FlatRedBall.Glue.MVVM;
using FlatRedBall.Glue.Plugins.ExportedImplementations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace FlatRedBall.Glue.ViewModels
{
    public class TilesetTileSelectorFullViewModel : ViewModel
    {
        public int TileId
        {
            get => Get<int>();
            set => Set(value);
        }

        [DependsOn(nameof(TileId))]
        public string TileType
        {
            get
            {
                return GlueState.Self.TiledCache.StandardTileset?.Tiles.FirstOrDefault(item => item.id == TileId)?.Type;
            }
        }

        public int? ExistingId
        {
            get => Get<int?>();
            set => Set(value);
        }

        public string ExistingType =>
{'fraction_non_alphanumeric': 0.09644087256027555, 'fraction_numerical': 0.0, 'mean_word_length': 2.0260416666666665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '4331668', 'n_tokens_mistral': 516, 'n_tokens_neox': 495, 'n_words': 102}