<commit_before>﻿using System;
using System.Xml.Serialization;
using eZet.EveLib.Modules.Util;

namespace eZet.EveLib.Modules.Models.Misc {
    [Serializable]
    [XmlRoot("result", IsNullable = false)]
    public class CharacterInfo {
        [XmlElement("characterID")]
        public long CharacterId { get; set; }

        [XmlElement("characterName")]
        public string CharacterName { get; set; }

        [XmlElement("race")]
        public string Race { get; set; }

        [XmlElement("bloodline")]
        public string Bloodline { get; set; }

        [XmlElement("accountBalance")]
        public string AccountBalance { get; set; }

        [XmlElement("skillPoints")]
        public int SkillPoints { get; set; }

        [XmlElement("shipName")]
        public string ShipName { get; set; }

        [XmlElement("shipTypeID")]
        public long ShipTypeId { get; set; }

        [XmlElement("shipTypeName")]
        public string ShipTypeName { get; set; }

        [XmlElement("corporationID")]
        public long CorporationId { get; set; }

        [XmlElement("corporation")]
        public string CorporationName { get; set; }

        [XmlIgnore]
        public DateTime CorporationDate { get; private set; }

        [XmlElement("corporationDate")]
        public string CorporationDateAsString {
            get { return CorporationDate.ToString(XmlHelper.DateFormat); }
            set { CorporationDate = DateTime.ParseExact(value, XmlHelper.DateFormat, null); }
        }

        [XmlElement("allianceID")]
        public long AllianceId { get; set; }

        [XmlElement("alliance")]
        public string AllianceName { get; set; }

        [XmlIgnore]
        public DateTime AllianceDate { get; private set; }

        [XmlElement("allianceDate")]
        public string AllianceDateAsString {
            get { return AllianceDate.ToString(XmlHelper.DateFormat); }
            set { AllianceDate = DateTime.ParseExact(value, XmlHelper.DateFormat, null); }
        }

        [XmlElement("lastKnownLocation")]
        public string LastKnownLocation { get; set; }

        [XmlElement("securityStatus")]
        public double SecurityStatus { get; set; }

        [XmlElement("rowset")]
        public EveOnlineRowCollection<Employment> EmploymentHistory { get; set; }

        [Serializable]
        [XmlRoot("row")]
        public class Employment {
            [XmlAttribute("recordID")]
            public long RecordId { get; set; }

            [XmlAttribute("corporationID")]
            public long CorporationId { get; set; }

            [XmlIgnore]
            public DateTime StartDate { get; private set; }

            [XmlAttribute("startDate")]
            public string StartDateAsString {
                get { return StartDate.ToString(XmlHelper.DateFormat); }
                set { StartDate = DateTime.ParseExact(value, XmlHelper.DateFormat, null); }
            }
        }
    }
}<commit_msg>Added corporation name to Employment history of eve/CharacterInfo.<commit_after>﻿using System;
using System.Xml.Serialization;
using eZet.EveLib.Modules.Util;

namespace eZet.EveLib.Modules.Models.Misc {
    [Serializable]
    [XmlRoot("result", IsNullable = false)]
    public class CharacterInfo {
        [XmlElement("characterID")]
        public long CharacterId { get; set; }

        [XmlElement("characterName")]
        public string CharacterName { get; set; }

        [XmlElement("race")]
        public string Race { get; set; }

        [XmlElement("bloodline")]
        public string Bloodline { get; set; }

        [XmlElement("accountBalance")]
        public string AccountBalance { get; set; }

        [XmlElement("skillPoints")]
        public int SkillPoints { get; set; }

        [XmlElement("shipName")]
        public string ShipName { get; set; }

        [XmlElement("shipTypeID")]
        public long ShipTypeId { get; set; }

        [XmlElement("shipTypeName")]
        public string ShipTypeName { get; set; }

        [XmlElement("corporationID")]
        public long CorporationId { get; set; }

        [XmlElement("corporation")]
        public string CorporationName { get; set; }

        [XmlIgnore]
        public DateTime CorporationDate { get; private set; }

        [XmlElement("corporationDate")]
        public string CorporationDateAsString {
            get { return CorporationDate.ToString(XmlHelper.DateFormat); }
            set { CorporationDate = DateTime.ParseExact(value, XmlHelper.DateFormat, null); }
        }

        [XmlElement("allianceID")]
        public long AllianceId { get; set; }

        [XmlElement("alliance")]
        public string AllianceName { get; set; }

        [XmlIgnore]
        public DateTime AllianceDate { get; private set; }

        [XmlElement("allianceDate")]
        public string AllianceDateAsString {
            get { return AllianceDate.ToString(XmlHelper.DateFormat); }
            set { AllianceDate = DateTime.ParseExact(value, XmlHelper.DateFormat, null); }
        }

        [XmlElement("lastKnownLocation")]
        public string LastKnownLocation { get; set; }

        [XmlElement("securityStatus")]
        public double SecurityStatus { get; set; }

        [XmlElement("rowset")]
        public EveOnlineRowCollection<Employment> EmploymentHistory { get; set; }

        /// <summary>
        /// Represents a employment entry
        /// </summary>
        [Serializable]
        [XmlRoot("row")]
        public class Employment {
            /// <summary>
            /// The employment record ID
            /// </summary>
            [XmlAttribute("recordID")]
            public long RecordId { get; set; }

            /// <summary>
            /// The corporation ID
            /// </summary>
            [XmlAttribute("corporationID")]
            public long CorporationId { get; set; }

            /// <summary>
            /// The corporation name
            /// </summary>
            [XmlAttribute("corporationName")]
            public string CorporationName { get; set; }

            /// <summary>
            /// The employment start date
            /// </summary>
            [XmlIgnore]
            public DateTime StartDate { get; private set; }

            [XmlAttribute("startDate")]
            public string StartDateAsString {
                get { return StartDate.ToString(XmlHelper.DateFormat); }
                set { StartDate = DateTime.ParseExact(value, XmlHelper.DateFormat, null); }
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.1092694904849601, 'fraction_numerical': 0.0, 'mean_word_length': 2.1852394916911044, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '924483', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1625, 'n_words': 411}