<commit_before>﻿using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace Booma.Proxy
{
	/// <summary>
	/// Decorator for a cryptoservice that provides lazy
	/// functionality for it. Doesn't crypt until a key is set.
	/// </summary>
	public sealed class PatchEncryptionLazyWithoutKeyDecorator : ICryptoServiceProvider, ICryptoKeyInitializable<uint>
	{
		/// <summary>
		/// The decorated crypto-provider.
		/// </summary>
		public Lazy<ICryptoServiceProvider> CryptoProvider { get; }

		/// <summary>
		/// The initializaiton vector to use for creating the crypto service
		/// </summary>
		private uint InitializationVector { get; private set; }

		/// <inheritdoc />
		public PatchEncryptionLazyWithoutKeyDecorator()
		{
			CryptoProvider = new Lazy<ICryptoServiceProvider>(InitializeCryptoProvider, true);
		}<commit_msg>Fixed field modifier info for lazy crypto<commit_after>﻿using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace Booma.Proxy
{
	/// <summary>
	/// Decorator for a cryptoservice that provides lazy
	/// functionality for it. Doesn't crypt until a key is set.
	/// </summary>
	public sealed class PatchEncryptionLazyWithoutKeyDecorator : ICryptoServiceProvider, ICryptoKeyInitializable<uint>
	{
		/// <summary>
		/// The decorated crypto-provider.
		/// </summary>
		public Lazy<ICryptoServiceProvider> CryptoProvider { get; }

		/// <summary>
		/// The initializaiton vector to use for creating the crypto service
		/// </summary>
		private uint InitializationVector { get; set; }

		/// <inheritdoc />
		public PatchEncryptionLazyWithoutKeyDecorator()
		{
			CryptoProvider = new Lazy<ICryptoServiceProvider>(InitializeCryptoProvider, true);
		}
{'fraction_non_alphanumeric': 0.10673575129533679, 'fraction_numerical': 0.0, 'mean_word_length': 4.190860215053763, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4942071', 'n_tokens_mistral': 585, 'n_tokens_neox': 556, 'n_words': 155}