<commit_before>﻿using Fan.Helpers;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Fan.Models
{
    public class Tag : Taxonomy
    {
        public Tag()
        {
            Color = "#666";
            PostTags = new HashSet<PostTag>();
        }

        [StringLength(32)]
        public string Color { get; set; }

        [NotMapped]
        public string RelativeLink => string.Format(Const.TAG_URL_TEMPLATE, Slug);

        public virtual ICollection<PostTag> PostTags { get; set; }
    }
}<commit_msg>#24 Fixed Tag class relative url.<commit_after>﻿using Fan.Helpers;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Fan.Models
{
    public class Tag : Taxonomy
    {
        public Tag()
        {
            Color = "#666";
            PostTags = new HashSet<PostTag>();
        }

        [StringLength(32)]
        public string Color { get; set; }

        [NotMapped]
        public string RelativeLink => string.Format("/" + Const.TAG_URL_TEMPLATE, Slug);

        public virtual ICollection<PostTag> PostTags { get; set; }
    }
}
{'fraction_non_alphanumeric': 0.10355987055016182, 'fraction_numerical': 0.009708737864077669, 'mean_word_length': 2.5959302325581395, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4972602', 'n_tokens_mistral': 361, 'n_tokens_neox': 345, 'n_words': 84}