<commit_before>function Set-OneLoginDefaultToken
{
    param
    (
        [OneLogin.Token]
        $Token
    )

    $ModuleName = (Get-Item -Path $PSScriptRoot).Parent.Name
    $Module = Get-Module -Name $ModuleName
    $Commands = $Module.ExportedCommands.GetEnumerator()  | Select-Object -ExpandProperty value | Select-Object -ExpandProperty name
    foreach ($Command in $Commands)
    {
        $Global:PSDefaultParameterValues["$Command`:Token"] = $Token
    }
}
<commit_msg>fix #28 - get module name via PSCmdlet<commit_after>function Set-OneLoginDefaultToken
{
    param
    (
        [OneLogin.Token]
        $Token
    )

    $ModuleName = $PSCmdlet.MyInvocation.MyCommand.Module.Name
    $Module = Get-Module -Name $ModuleName
    $Commands = $Module.ExportedCommands.GetEnumerator()  | Select-Object -ExpandProperty value | Select-Object -ExpandProperty name
    foreach ($Command in $Commands)
    {
        $Global:PSDefaultParameterValues["$Command`:Token"] = $Token
    }
}

{'fraction_non_alphanumeric': 0.11301715438950555, 'fraction_numerical': 0.0020181634712411706, 'mean_word_length': 3.1856540084388185, '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': '349107', 'n_tokens_mistral': 304, 'n_tokens_neox': 300, 'n_words': 58}