<commit_before>function Get-SCCMUserCollectionDeployment {
    <#
    .SYNOPSIS
        Function to retrieve a User's collection deployment

    .DESCRIPTION
        Function to retrieve a User's collection deployment
        The function will first retrieve all the collection where the user is member of and
        find deployments advertised on those.

        The final output will include user, collection and deployment information.

    .PARAMETER Username
        Specifies the SamAccountName of the user.
        The user must be present in the SCCM CMDB

    .PARAMETER SiteCode
        Specifies the SCCM SiteCode

    .PARAMETER ComputerName
        Specifies the SCCM Server to query

    .PARAMETER Credential
        Specifies the credential to use to query the SCCM Server.
        Default will take the current user credentials

    .PARAMETER Purpose
        Specifies a specific deployment intent.
        Possible value: Available or Required.
        Default is Null (get all)

    .EXAMPLE
        Get-SCCMUserCollectionDeployment -UserName TestUser -Credential $cred -Purpose Required

    .NOTES
        Francois-Xavier cat
        lazywinadmin.com
        @lazywinadmin

        SMS_R_User: https://msdn.microsoft.com/en-us/library/hh949577.aspx
        SMS_Collection: https://msdn.microsoft.com/en-us/library/hh948939.aspx
        SMS_DeploymentInfo: https://msdn.microsoft.com/en-us/library/hh948268.aspx
#>

    [CmdletBinding()]
    PARAM
    (
        [Parameter(Mandatory)]
        [Alias('SamAccountName')]
        $UserName,

        [Parameter(Mandatory)]
        $SiteCode,

        [Parameter(Mandatory)]
        $ComputerName,

        [Alias('RunAs')]
        [System.Management.Automation.Credential()]
        $Credential = [System.Management.Automation.PSCredential]::Empty,

        [ValidateSet('Required', 'Available')]
        $Purpose
    )
<commit_msg>Update Credential param type<commit_after>function Get-SCCMUserCollectionDeployment {
    <#
    .SYNOPSIS
        Function to retrieve a User's collection deployment

    .DESCRIPTION
        Function to retrieve a User's collection deployment
        The function will first retrieve all the collection where the user is member of and
        find deployments advertised on those.

        The final output will include user, collection and deployment information.

    .PARAMETER Username
        Specifies the SamAccountName of the user.
        The user must be present in the SCCM CMDB

    .PARAMETER SiteCode
        Specifies the SCCM SiteCode

    .PARAMETER ComputerName
        Specifies the SCCM Server to query

    .PARAMETER Credential
        Specifies the credential to use to query the SCCM Server.
        Default will take the current user credentials

    .PARAMETER Purpose
        Specifies a specific deployment intent.
        Possible value: Available or Required.
        Default is Null (get all)

    .EXAMPLE
        Get-SCCMUserCollectionDeployment -UserName TestUser -Credential $cred -Purpose Required

    .NOTES
        Francois-Xavier cat
        lazywinadmin.com
        @lazywinadmin

        SMS_R_User: https://msdn.microsoft.com/en-us/library/hh949577.aspx
        SMS_Collection: https://msdn.microsoft.com/en-us/library/hh948939.aspx
        SMS_DeploymentInfo: https://msdn.microsoft.com/en-us/library/hh948268.aspx
#>

    [CmdletBinding()]
    PARAM
    (
        [Parameter(Mandatory)]
        [Alias('SamAccountName')]
        $UserName,

        [Parameter(Mandatory)]
        $SiteCode,

        [Parameter(Mandatory)]
        $ComputerName,

        [Alias('RunAs')]
        [pscredential]
        [System.Management.Automation.Credential()]
        $Credential = [System.Management.Automation.PSCredential]::Empty,

        [ValidateSet('Required', 'Available')]
        $Purpose
    )

{'fraction_non_alphanumeric': 0.0703125, 'fraction_numerical': 0.009375, 'mean_word_length': 2.4760180995475114, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '3525050', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1039, 'n_words': 304}