<commit_before>﻿using System;

namespace Sdl.Web.Common.Mapping
{
    /// <summary>
    /// Represents a Semantic Property.
    /// </summary>
    public class SemanticProperty
    {
        public const string AllFields = "_all";
        public const string Self = "_self";

        public string Prefix { get; }
        public string PropertyName { get; }
        public SemanticType SemanticType { get; }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="prefix"></param>
        /// <param name="name"></param>
        [Obsolete("Deprecated in DXA 2.0. Use constructor with three parameters instead.")] // TODO TSI-878: Remove this constructor completely (?)
        public SemanticProperty(string prefix, string name)
        {
            Prefix = prefix;
            PropertyName = name;
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="prefix"></param>
        /// <param name="propertyName"></param>
        /// <param name="semanticType"></param>
        public SemanticProperty(string prefix, string propertyName, SemanticType semanticType)<commit_msg>TSI-1265 Removed deprecated SemanticProperty  constructor<commit_after>﻿namespace Sdl.Web.Common.Mapping
{
    /// <summary>
    /// Represents a Semantic Property.
    /// </summary>
    public class SemanticProperty
    {
        public const string AllFields = "_all";
        public const string Self = "_self";

        public string Prefix { get; }
        public string PropertyName { get; }
        public SemanticType SemanticType { get; }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="prefix"></param>
        /// <param name="propertyName"></param>
        /// <param name="semanticType"></param>
        public SemanticProperty(string prefix, string propertyName, SemanticType semanticType = null)
{'fraction_non_alphanumeric': 0.12903225806451613, 'fraction_numerical': 0.004682622268470343, 'mean_word_length': 2.1116504854368934, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3421682', 'n_tokens_mistral': 500, 'n_tokens_neox': 482, 'n_words': 136}