<commit_before>﻿using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;

namespace Digipost.Api.Client.Domain
{
    [GeneratedCode("xsd", "4.0.30319.33440")]
    [Serializable]
    [DebuggerStepThrough]
    [DesignerCategory("code")]
    [XmlType(TypeName = "message", Namespace = "http://api.digipost.no/schema/v6")]
    [XmlRoot(Namespace = "http://api.digipost.no/schema/v6", IsNullable = false)]
    public class Message
    {
        private Message(){ /**Must exist for serialization.**/ }

        public Message(MessageRecipient messageRecipient, Document primaryDocument)
        {
           Recipient = messageRecipient;
           PrimaryDocument = primaryDocument;
           Attachments = new Document[0];
        }

        [XmlElement("recipient")]
        public MessageRecipient Recipient { get; set; }

        [XmlElement("primary-document")]
        public Document PrimaryDocument { get; set; }

        [XmlElement("attachment")]
        public Document[] Attachments { get; set; }
    }
}<commit_msg>Using List instead of [] for Attachments<commit_after>﻿using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;

namespace Digipost.Api.Client.Domain
{
    [GeneratedCode("xsd", "4.0.30319.33440")]
    [Serializable]
    [DebuggerStepThrough]
    [DesignerCategory("code")]
    [XmlType(TypeName = "message", Namespace = "http://api.digipost.no/schema/v6")]
    [XmlRoot(Namespace = "http://api.digipost.no/schema/v6", IsNullable = false)]
    public class Message
    {
        private Message(){ /**Must exist for serialization.**/ }

        public Message(MessageRecipient messageRecipient, Document primaryDocument)
        {
           Recipient = messageRecipient;
           PrimaryDocument = primaryDocument;
           Attachments = new List<Document>();
        }

        [XmlElement("recipient")]
        public MessageRecipient Recipient { get; set; }

        [XmlElement("primary-document")]
        public Document PrimaryDocument { get; set; }

        [XmlElement("attachment")]
        public List<Document> Attachments { get; set; }
    }
}
{'fraction_non_alphanumeric': 0.12202643171806167, 'fraction_numerical': 0.01277533039647577, 'mean_word_length': 3.1977818853974123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3295309', 'n_tokens_mistral': 657, 'n_tokens_neox': 627, 'n_words': 135}