<commit_before>﻿using Newtonsoft.Json;

namespace CompaniesHouse.Response.Search.OfficerSearch
{
    public class Officer : SearchItem
    {
        [JsonProperty(PropertyName = "address")]
        public Address Address { get; set; }

        [JsonProperty(PropertyName = "address_snippet")]
        public string AddressSnippet { get; set; }

        [JsonProperty(PropertyName = "appointment_count")]
        public int AppointmentCount { get; set; }

        [JsonProperty(PropertyName = "date_of_birth")]
        public DateOfBirth DateOfBirth { get; set; }

        [JsonProperty(PropertyName = "description")]
        public string Description { get; set; }

        [JsonProperty(PropertyName = "description_identifiers")]
        public string[] DescriptionIdentifiers { get; set; }

        [JsonProperty(PropertyName = "matches")]
        public Match Matches { get; set; }

        [JsonProperty(PropertyName = "snippet")]
        public string Snippet { get; set; }

        [JsonProperty(PropertyName = "title")]
        public string Title { get; set; }
    }
}<commit_msg>Adding OfficerId to the search officer response object.<commit_after>﻿using Newtonsoft.Json;

namespace CompaniesHouse.Response.Search.OfficerSearch
{
    public class Officer : SearchItem
    {
        [JsonProperty(PropertyName = "address")]
        public Address Address { get; set; }

        [JsonProperty(PropertyName = "address_snippet")]
        public string AddressSnippet { get; set; }

        [JsonProperty(PropertyName = "appointment_count")]
        public int AppointmentCount { get; set; }

        [JsonProperty(PropertyName = "date_of_birth")]
        public DateOfBirth DateOfBirth { get; set; }

        [JsonProperty(PropertyName = "description")]
        public string Description { get; set; }

        [JsonProperty(PropertyName = "description_identifiers")]
        public string[] DescriptionIdentifiers { get; set; }

        [JsonProperty(PropertyName = "matches")]
        public Match Matches { get; set; }

        [JsonProperty(PropertyName = "snippet")]
        public string Snippet { get; set; }

        [JsonProperty(PropertyName = "title")]
        public string Title { get; set; }

        public string OfficerId
        {
            get { return Links.Self.Split('/')[2]; }
        }
    }
}
{'fraction_non_alphanumeric': 0.10542168674698796, 'fraction_numerical': 0.0004302925989672978, 'mean_word_length': 2.868552412645591, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1887682', 'n_tokens_mistral': 626, 'n_tokens_neox': 601, 'n_words': 155}