<commit_before>﻿using Core.DomainServices.Interfaces;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.DomainServices
{
    public class CustomSettings : ICustomSettings
    {
        private readonly string _protected = "PROTECTED_";

        public string SMTPPassword
        {
            get
            {
                return GetProtectedValue("SMTP_PASSWORD");
            }
        }
        public string SMTPHost
        {
            get
            {
                return GetProtectedValue("SMTP_HOST");
            }
        }
        public string SMTPUser
        {
            get
            {
                return GetProtectedValue("SMTP_USER");
            }
        }
        public string SMTPHostPort
        {
            get
            {
                return GetProtectedValue("SMTP_HOST_PORT");
            }
        }
        public string MailBody
        {
            get
            {
                return GetProtectedValue("MAIL_BODY");
            }
        }

        public string MailFromAddress
        {
            get
            {
                return GetProtectedValue("MAIL_FROM_ADDRESS");
            }
        }
        public string MailSubject
        {
            get
            {
                return GetProtectedValue("MAIL_SUBJECT");
            }
        }
        public string KMDFilePath
        {
            get
            {
                return GetProtectedValue("KMDFilePath");
            }
        }
        public string KMDBackupFilePath
        {
            get
            {
                return GetProtectedValue("KMDBackupFilePath");
            }
        }
        public string KMDFileName
        {
            get
            {
                return GetProtectedValue("KMDFileName");
            }
        }
        public string KMDHeader
        {
            get
            {
                return GetProtectedValue("KMDHeader");
            }
        }
        public string KMDStaticNumber
        {
            get
            {
                return GetProtectedValue("KMDStaticNr");
            }
        }
        public string KMDMunicipalityNumber
        {
            get
            {
                return GetProtectedValue("CommuneNr");
            }
        }
        public string KMDReservedNumber
        {
            get
            {
                return GetProtectedValue("KMDReservedNr");
            }
        }
        public string AdministrativeCostCenterPrefix
        {
            get
            {
                return GetProtectedValue("AdministrativeCostCenterPrefix");
            }
        }
        public string AdministrativeAccount
        {
            get
            {
                return GetProtectedValue("AdminstrativeAccount");
            }
        }

        public string Municipality
        {
            get
            {
                return GetProtectedValue("muniplicity");
            }
        }
        public string SdInstitutionNumber
        {
            get
            {
                return GetProtectedValue("institutionNumber");
            }
        }
        public string SdPassword
        {
            get
            {
                return GetProtectedValue("SDUserPassword");
            }<commit_msg>Municipality attribute should not be protected in CustomSettings<commit_after>﻿using Core.DomainServices.Interfaces;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.DomainServices
{
    public class CustomSettings : ICustomSettings
    {
        private readonly string _protected = "PROTECTED_";

        public string SMTPPassword
        {
            get
            {
                return GetProtectedValue("SMTP_PASSWORD");
            }
        }
        public string SMTPHost
        {
            get
            {
                return GetProtectedValue("SMTP_HOST");
            }
        }
        public string SMTPUser
        {
            get
            {
                return GetProtectedValue("SMTP_USER");
            }
        }
        public string SMTPHostPort
        {
            get
            {
                return GetProtectedValue("SMTP_HOST_PORT");
            }
        }
        public string MailBody
        {
            get
            {
                return GetProtectedValue("MAIL_BODY");
            }
        }

        public string MailFromAddress
        {
            get
            {
                return GetProtectedValue("MAIL_FROM_ADDRESS");
            }
        }
        public string MailSubject
        {
            get
            {
                return GetProtectedValue("MAIL_SUBJECT");
            }
        }
        public string KMDFilePath
        {
            get
            {
                return GetProtectedValue("KMDFilePath");
            }
        }
        public string KMDBackupFilePath
        {
            get
            {
                return GetProtectedValue("KMDBackupFilePath");
            }
        }
        public string KMDFileName
        {
            get
            {
                return GetProtectedValue("KMDFileName");
            }
        }
        public string KMDHeader
        {
            get
            {
                return GetProtectedValue("KMDHeader");
            }
        }
        public string KMDStaticNumber
        {
            get
            {
                return GetProtectedValue("KMDStaticNr");
            }
        }
        public string KMDMunicipalityNumber
        {
            get
            {
                return GetProtectedValue("CommuneNr");
            }
        }
        public string KMDReservedNumber
        {
            get
            {
                return GetProtectedValue("KMDReservedNr");
            }
        }
        public string AdministrativeCostCenterPrefix
        {
            get
            {
                return GetProtectedValue("AdministrativeCostCenterPrefix");
            }
        }
        public string AdministrativeAccount
        {
            get
            {
                return GetProtectedValue("AdminstrativeAccount");
            }
        }

        public string Municipality
        {
            get
            {
                return GetValue("muniplicity");
            }
        }
        public string SdInstitutionNumber
        {
            get
            {
                return GetProtectedValue("institutionNumber");
            }
        }
        public string SdPassword
        {
            get
            {
                return GetProtectedValue("SDUserPassword");
            }
{'fraction_non_alphanumeric': 0.05787781350482315, 'fraction_numerical': 0.0, 'mean_word_length': 1.0281564908120924, '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': '5612494', 'n_tokens_mistral': 1597, 'n_tokens_neox': 1555, 'n_words': 285}