<commit_before><#
    .SYNOPSIS
        Retrieves an existing certificate from Azure KeyVault, assuming the format used by Azure Service Fabric.
  
    .DESCRIPTION
        Retrieves an existing certificate from Azure KeyVault, assuming the format used by Azure Service Fabric.  After
        being retrieved, the certificate will be written to disk.

    .PARAMETER UseMetadata
        Signifies that the parameters to retrieve the certificate password should be read from the certificate metadata file.  
        If this parameter is used, it will obviate the use of the remaining parameters.
  
    .PARAMETER SubscriptionName
        The name of the Azure Resource Manager subscription in which the KeyVault is located.

    .PARAMETER VaultName
        The name of the Azure KeyVault in which the certificate is located.
  
    .PARAMETER CertificateName
        The name of the certificate defined in Azure KeyVault; this is typically set when the certifcate is ingested.
  
    .PARAMETER CertificateFile
        The fully-qualified path and filename, without extension, to which the certificate should be written.

    .OUTPUTS    
        Writes the certificate to the specified file.  
  
    .EXAMPLE
      ./retrieve-certificate "Mimeo Dev" "Dev-KeyVault" "Localhost-SSL" ".\local.pfx"    
#>

[CmdletBinding()]
param
(
    [Parameter(Mandatory=$true, HelpMessage="Please enter the filename, including any path necessary, to the certificate metadata file.", ParameterSetName="Metadata", Position=0)]
    [ValidateScript({ Test-Path $_ -PathType Leaf })]<commit_msg>Update Retrieve-Certificate.ps1<commit_after><#
    .SYNOPSIS
        Retrieves an existing certificate from Azure KeyVault, assuming the format used by Azure Service Fabric.
  
    .DESCRIPTION
        Retrieves an existing certificate from Azure KeyVault, assuming the format used by Azure Service Fabric.  After
        being retrieved, the certificate will be written to disk.

    .PARAMETER UseMetadata
        Signifies that the parameters to retrieve the certificate password should be read from the certificate metadata file.  
        If this parameter is used, it will obviate the use of the remaining parameters.
  
    .PARAMETER SubscriptionName
        The name of the Azure Resource Manager subscription in which the KeyVault is located.

    .PARAMETER VaultName
        The name of the Azure KeyVault in which the certificate is located.
  
    .PARAMETER CertificateName
        The name of the certificate defined in Azure KeyVault; this is typically set when the certifcate is ingested.
  
    .PARAMETER CertificateFile
        The fully-qualified path and filename, without extension, to which the certificate should be written.

    .OUTPUTS    
        Writes the certificate to the specified file.  
  
    .EXAMPLE
      ./retrieve-certificate "Example Dev" "Example-KeyVault" "Localhost-SSL" ".\local.pfx"    
#>

[CmdletBinding()]
param
(
    [Parameter(Mandatory=$true, HelpMessage="Please enter the filename, including any path necessary, to the certificate metadata file.", ParameterSetName="Metadata", Position=0)]
    [ValidateScript({ Test-Path $_ -PathType Leaf })]
{'fraction_non_alphanumeric': 0.05286343612334802, 'fraction_numerical': 0.0009439899307740718, 'mean_word_length': 3.216180371352785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1694046', 'n_tokens_mistral': 786, 'n_tokens_neox': 791, 'n_words': 359}