<commit_before>﻿using System;
using DapperExtensions.Mapper;


namespace gdRead.Data.Models
{
    public class Post
    {
        public int Id { get; set; }
        public int FeedId { get; set; }
        public string Name { get; set; }
        public string  Url { get; set; }
        public string Summary { get; set; }
        public string Content { get; set; }
        public DateTime PublishDate { get; set; }
        public bool Read { get; set; }        
        public DateTime DateFetched { get;set; }

        public string PrettyPublishDate
        {
            get { return PublishDate.ToTimeAgo(); }
        }

        public Post()
        {
            DateFetched = DateTime.Now;
        }
    }

    public class PostMapper : ClassMapper<Post>
    {
        public PostMapper()
        {
            Table("Post");
            Map(m => m.Read).Ignore();
            AutoMap();
        }
    }
}<commit_msg>fixed issue looking for non existent field in object model<commit_after>﻿using System;
using DapperExtensions.Mapper;


namespace gdRead.Data.Models
{
    public class Post
    {
        public int Id { get; set; }
        public int FeedId { get; set; }
        public string Name { get; set; }
        public string  Url { get; set; }
        public string Summary { get; set; }
        public string Content { get; set; }
        public DateTime PublishDate { get; set; }
        public bool Read { get; set; }        
        public DateTime DateFetched { get;set; }

        public string PrettyPublishDate
        {
            get { return PublishDate.ToTimeAgo(); }
        }

        public Post()
        {
            DateFetched = DateTime.Now;
        }
    }

    public class PostMapper : ClassMapper<Post>
    {
        public PostMapper()
        {
            Table("Post");
            Map(m => m.Read).Ignore();
            Map(m => m.PrettyPublishDate).Ignore();
            AutoMap();
        }
    }
}
{'fraction_non_alphanumeric': 0.09687339825730394, 'fraction_numerical': 0.0, 'mean_word_length': 1.6414073071718538, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '3189546', 'n_tokens_mistral': 549, 'n_tokens_neox': 536, 'n_words': 157}