<commit_before>﻿[CmdletBinding()]
Param(
    [Parameter(Mandatory=$true)]
    [string]$Appliance,
    [Parameter(Mandatory=$true)]
    [string]$IdentityProvider,
    [Parameter(Mandatory=$true)]
    [string]$UserName,
    [Parameter(Mandatory=$true)]
    [SecureString]$Password,
    [Parameter(Mandatory=$false)]
    [Switch]$Insecure = $false,
    [Parameter(Mandatory=$true)]
    [string]$AssetName,
    [Parameter(Mandatory=$true)]
    [string]$AccountName
)

if($Insecure)
{
    # GET notification/v3/Status
    echo "GET status"
    $status = Get-SafeguardStatus -Appliance $Appliance -Insecure

    # GET appliance/v3/Version
    echo "GET version"
    $ver = Get-SafeguardVersion -Appliance $Appliance -Insecure

    # -- Login --
    echo "login"
    Connect-Safeguard -Appliance $Appliance -IdentityProvider $IdentityProvider -Username $UserName -Password $Password -Insecure
}
else
{
    # GET notification/v3/Status
    echo "GET status" 
    Get-SafeguardStatus -Appliance $Appliance

    # GET appliance/v3/Version
    echo "GET version"
    Get-SafeguardVersion -Appliance $Appliance

    # -- Login --
    echo "login"
    Connect-Safeguard -Appliance $Appliance -IdentityProvider $IdentityProvider -Username $UserName -Password $Password
}

# GET core/v3/ClusterStatus
echo "GET Cluster Status:"
$status = Invoke-SafeguardMethod Core GET "Cluster/Status"

# GET core/v3/Me
echo "GET Me" 
$me = Invoke-SafeguardMethod Core GET "Me"

# GET core/v3/DailyMessage
echo "GET Daily Message:" 
$dm = Invoke-SafeguardMethod Core GET "DailyMessage"

# GET core/v3/LoginMessage
echo "GET Login Message:" 
$lm = Invoke-SafeguardMethod Core GET "LoginMessage"

# GET core/v3/RequestFavorites
echo "GET Request Favorites:"
$requestFavorites = Invoke-SafeguardMethod Core GET "Me/RequestFavorites"<commit_msg>forgot something<commit_after>﻿[CmdletBinding()]
Param(
    [Parameter(Mandatory=$true)]
    [string]$Appliance,
    [Parameter(Mandatory=$true)]
    [string]$IdentityProvider,
    [Parameter(Mandatory=$true)]
    [string]$UserName,
    [Parameter(Mandatory=$true)]
    [SecureString]$Password,
    [Parameter(Mandatory=$false)]
    [Switch]$Insecure = $false,
    [Parameter(Mandatory=$true)]
    [string]$AssetName,
    [Parameter(Mandatory=$true)]
    [string]$AccountName
)

if($Insecure)
{
    # GET notification/v3/Status
    echo "GET status"
    $status = Get-SafeguardStatus -Appliance $Appliance -Insecure

    # GET appliance/v3/Version
    echo "GET version"
    $ver = Get-SafeguardVersion -Appliance $Appliance -Insecure

    # -- Login --
    echo "login"
    Connect-Safeguard -Appliance $Appliance -IdentityProvider $IdentityProvider -Username $UserName -Password $Password -Insecure
}
else
{
    # GET notification/v3/Status
    echo "GET status" 
    $status = Get-SafeguardStatus -Appliance $Appliance

    # GET appliance/v3/Version
    echo "GET version"
    $ver = Get-SafeguardVersion -Appliance $Appliance

    # -- Login --
    echo "login"
    Connect-Safeguard -Appliance $Appliance -IdentityProvider $IdentityProvider -Username $UserName -Password $Password
}

# GET core/v3/ClusterStatus
echo "GET Cluster Status:"
$status = Invoke-SafeguardMethod Core GET "Cluster/Status"

# GET core/v3/Me
echo "GET Me" 
$me = Invoke-SafeguardMethod Core GET "Me"

# GET core/v3/DailyMessage
echo "GET Daily Message:" 
$dm = Invoke-SafeguardMethod Core GET "DailyMessage"

# GET core/v3/LoginMessage
echo "GET Login Message:" 
$lm = Invoke-SafeguardMethod Core GET "LoginMessage"

# GET core/v3/RequestFavorites
echo "GET Request Favorites:"
$requestFavorites = Invoke-SafeguardMethod Core GET "Me/RequestFavorites"
{'fraction_non_alphanumeric': 0.11916529379461833, 'fraction_numerical': 0.004942339373970346, 'mean_word_length': 4.059722222222222, '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': '6248785', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1144, 'n_words': 270}