<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Alachisoft.NCache.Data.Caching
{
    public class DataCacheSecurity
    {
        #region[    Constructors ]
        public DataCacheSecurity() 
        { }
        public DataCacheSecurity(DataCacheSecurityMode securityMode, DataCacheProtectionLevel protectionLevel) 
        { }
        #endregion

        public DataCacheProtectionLevel ProtectionLevel { get; private set; }
        public DataCacheSecurityMode SecurityMode { get; private set; }
    }<commit_msg>Modfied DataCacheSecurity added internal access CopyConstructor<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Alachisoft.NCache.Data.Caching
{
    public class DataCacheSecurity
    {
        #region[    Constructors ]
        public DataCacheSecurity() 
        {
            ProtectionLevel = DataCacheProtectionLevel.None;
            SecurityMode = DataCacheSecurityMode.None;
        }
        public DataCacheSecurity(DataCacheSecurityMode securityMode, DataCacheProtectionLevel protectionLevel) 
        {
            ProtectionLevel = protectionLevel;
            SecurityMode = securityMode;
        }

        internal DataCacheSecurity(DataCacheSecurity other)
        {
            ProtectionLevel = other.ProtectionLevel;
            SecurityMode = other.SecurityMode;
        }
        #endregion

        public DataCacheProtectionLevel ProtectionLevel { get; private set; }
        public DataCacheSecurityMode SecurityMode { get; private set; }

        public override bool Equals(object obj)
        {
            if (this is null)
            {
                if (obj is null)
                {
                    return true;
                }

                return false;
            }

            if (!(this is null) && (obj is null))
            {
                return false;
            }

            var other = obj as DataCacheSecurity;

            if (other is null)
            {
                return false;
            }

            return ProtectionLevel == other.ProtectionLevel && SecurityMode == other.SecurityMode;
        }
        public override int GetHashCode()
        {
            unchecked
            {
                if (this is null)
                {
                    return base.GetHashCode();
                }

                return (ProtectionLevel + "" + SecurityMode).GetHashCode();
            }
        }
    }
{'fraction_non_alphanumeric': 0.06484776591538158, 'fraction_numerical': 0.0, 'mean_word_length': 1.7351351351351352, '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': '6685249', 'n_tokens_mistral': 606, 'n_tokens_neox': 585, 'n_words': 146}