<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Threading.Tasks;

namespace Zyborg.Vault.POSH
{
	[Cmdlet(VerbsData.Update, "SecretLease")]
	public class UpdateSecretLease : VaultBaseCmdlet
	{
		[Parameter(Mandatory = true, Position = 0)]
		public string LeaseId
		{ get; set; }

		[Parameter(Mandatory = false)]
		public int? Increment
		{ get; set; }

		protected override void BeginProcessing()
		{
			ResolveVaultClient();
		}

		protected override void EndProcessing()
		{
			AsyncWait(_client.RenewSecretAsync(LeaseId, Increment));
		}
	}
}
<commit_msg>Writing out the result of the call to output<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Threading.Tasks;

namespace Zyborg.Vault.POSH
{
	[Cmdlet(VerbsData.Update, "SecretLease")]
	[OutputType(typeof(Dictionary<string, object>))]
	public class UpdateSecretLease : VaultBaseCmdlet
	{
		[Parameter(Mandatory = true, Position = 0)]
		public string LeaseId
		{ get; set; }

		[Parameter(Mandatory = false)]
		public int? Increment
		{ get; set; }

		protected override void BeginProcessing()
		{
			ResolveVaultClient();
		}

		protected override void EndProcessing()
		{
			var r = AsyncWaitFor(_client.RenewSecretAsync(LeaseId, Increment));
			WriteWrappedData(r, KeepSecretWrapper);
		}
	}
}

{'fraction_non_alphanumeric': 0.10844200411805079, 'fraction_numerical': 0.0013726835964310226, 'mean_word_length': 4.926829268292683, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6194651', 'n_tokens_mistral': 513, 'n_tokens_neox': 473, 'n_words': 108}