<commit_before>﻿using System;
using Digipost.Signature.Api.Client.Core;
using Digipost.Signature.Api.Client.Core.Identifier;

namespace Digipost.Signature.Api.Client.Portal
{
    public class Signature
    {
        internal Signature()
        {
        }

        internal Signature(signature signature)
        {
            SignatureStatus = new SignatureStatus(signature.status.Value);
            XadesReference = signature.xadesurl == null ? null : new XadesReference(new Uri(signature.xadesurl));
            DateTimeForStatus = signature.status.since;

            if (signature.Item is notifications)
            {
                Identifier = new ContactInformation((notifications) signature.Item);
            }
            else if (signature.Item is string)
            {
                Identifier = new PersonalIdentificationNumber((string) signature.Item);
            }
        }

        public SignatureStatus SignatureStatus { get; set; }

        public SignerIdentifier Identifier { get; set; }
<commit_msg>Gjør tom konstruktør public<commit_after>﻿using System;
using Digipost.Signature.Api.Client.Core;
using Digipost.Signature.Api.Client.Core.Identifier;

namespace Digipost.Signature.Api.Client.Portal
{
    public class Signature
    {
        public Signature()
        {
        }

        internal Signature(signature signature)
        {
            SignatureStatus = new SignatureStatus(signature.status.Value);
            XadesReference = signature.xadesurl == null ? null : new XadesReference(new Uri(signature.xadesurl));
            DateTimeForStatus = signature.status.since;

            if (signature.Item is notifications)
            {
                Identifier = new ContactInformation((notifications) signature.Item);
            }
            else if (signature.Item is string)
            {
                Identifier = new PersonalIdentificationNumber((string) signature.Item);
            }
        }

        public SignatureStatus SignatureStatus { get; set; }

        public SignerIdentifier Identifier { get; set; }

{'fraction_non_alphanumeric': 0.08115942028985507, 'fraction_numerical': 0.0, 'mean_word_length': 2.2460815047021945, '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': '3427649', 'n_tokens_mistral': 525, 'n_tokens_neox': 490, 'n_words': 113}