<commit_before>﻿using HeroesParserData.DataQueries;
using HeroesParserData.Models.DbModels;
using System.Collections.ObjectModel;

namespace HeroesParserData.ViewModels.Data
{
    public class RawHotsLogsUploadViewModel : RawDataContext
    {
        private ObservableCollection<ReplayHotsLogsUpload> _replayHotsLogsUpload = new ObservableCollection<ReplayHotsLogsUpload>();

        public ObservableCollection<ReplayHotsLogsUpload> ReplayHotsLogsUploadCollection
        {
            get
            {
                return _replayHotsLogsUpload;
            }
            set
            {
                _replayHotsLogsUpload = value;
                RaisePropertyChangedEvent(nameof(ReplayHotsLogsUploadCollection));
            }
        }

        public RawHotsLogsUploadViewModel()
            : base()
        {
            AddListColumnNames();
        }

        protected void AddListColumnNames()
        {
            ReplayAllHotsPlayerHero r = new ReplayAllHotsPlayerHero();

            foreach (var prop in r.GetType().GetMethods())<commit_msg>Fixed incorrect object for the RawData display<commit_after>﻿using HeroesParserData.DataQueries;
using HeroesParserData.Models.DbModels;
using System.Collections.ObjectModel;

namespace HeroesParserData.ViewModels.Data
{
    public class RawHotsLogsUploadViewModel : RawDataContext
    {
        private ObservableCollection<ReplayHotsLogsUpload> _replayHotsLogsUpload = new ObservableCollection<ReplayHotsLogsUpload>();

        public ObservableCollection<ReplayHotsLogsUpload> ReplayHotsLogsUploadCollection
        {
            get
            {
                return _replayHotsLogsUpload;
            }
            set
            {
                _replayHotsLogsUpload = value;
                RaisePropertyChangedEvent(nameof(ReplayHotsLogsUploadCollection));
            }
        }

        public RawHotsLogsUploadViewModel()
            : base()
        {
            AddListColumnNames();
        }

        protected void AddListColumnNames()
        {
            ReplayHotsLogsUpload r = new ReplayHotsLogsUpload();

            foreach (var prop in r.GetType().GetMethods())
{'fraction_non_alphanumeric': 0.06108283202221194, 'fraction_numerical': 0.0, 'mean_word_length': 2.3415765069551777, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5043036', 'n_tokens_mistral': 576, 'n_tokens_neox': 551, 'n_words': 91}