<commit_before>﻿$functions = Get-ChildItem function:\*-Dba*

#region Automatic TEPP by parameter name
foreach ($function in $functions) {
	if ($function.Parameters.Keys -contains "SqlInstance") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter SqlInstance -Name SqlInstance
	}
	if ($function.Parameters.Keys -contains "Database") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Database -Name Database
	}
	if ($function.Parameters.Keys -contains "ExcludeDatabase") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeDatabase -Name Database
	}
	if ($function.Parameters.Keys -contains "Job") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Job -Name Job
	}
	if ($function.Parameters.Keys -contains "ExcludeJob") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeJob -Name Job
	}
	if ($function.Parameters.Keys -contains "Login") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Login -Name Login
	}
	if ($function.Parameters.Keys -contains "ExcludeLogin") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeLogin -Name Login
	}
	if ($function.Parameters.Keys -contains "Operator") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Operator -Name Operator
	}
	if ($function.Parameters.Keys -contains "ExcludeOperator") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeOperator -Name Operator
	}
	if ($function.Parameters.Keys -contains "Snapshot") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Snapshot -Name Snapshot
	}
	if ($function.Parameters.Keys -contains "ExcludeSnapshot") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeSnapshot -Name Snapshot
	}

	if ($function.Parameters.Keys -contains "ConfigName") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ConfigName -Name ConfigName
	}
	if ($function.Parameters.Keys -contains "ExcludeConfigName") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeConfigName -Name ConfigName
	}

	if ($function.Parameters.Keys -contains "Alert") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Alert -Name Alert
	}
	if ($function.Parameters.Keys -contains "ExcludeAlert") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeAlert -Name Alert
	}

	if ($function.Parameters.Keys -contains "AlertCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter AlertCategory -Name AlertCategory
	}
	if ($function.Parameters.Keys -contains "ExcludeAlertCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeAlertCategory -Name AlertCategory
	}

	if ($function.Parameters.Keys -contains "JobCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter JobCategory -Name JobCategory
	}
	if ($function.Parameters.Keys -contains "ExcludeJobCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeJobCategory -Name JobCategory
	}

	if ($function.Parameters.Keys -contains "AvailabilityGroup") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter AvailabilityGroup -Name AvailabilityGroup
	}
	if ($function.Parameters.Keys -contains "ExcludeAvailabilityGroup") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeAvailabilityGroup -Name AvailabilityGroup
	}

	if ($function.Parameters.Keys -contains "BackupDevice") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter BackupDevice -Name BackupDevice
	}
	if ($function.Parameters.Keys -contains "ExcludeBackupDevice") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeBackupDevice -Name BackupDevice
	}

	if ($function.Parameters.Keys -contains "Credential") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Credential -Name Credential
	}
	if ($function.Parameters.Keys -contains "ExcludeCredential") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeCredential -Name Credential
	}

	if ($function.Parameters.Keys -contains "CustomError") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter CustomError -Name CustomError
	}
	if ($function.Parameters.Keys -contains "ExcludeCustomError") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeCustomError -Name CustomError
	}

	if ($function.Parameters.Keys -contains "MailAccount") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter MailAccount -Name MailAccount
	}
	if ($function.Parameters.Keys -contains "ExcludeMailAccount") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeMailAccount -Name MailAccount
	}

	if ($function.Parameters.Keys -contains "MailServer") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter MailServer -Name MailServer
	}<commit_msg>added credential stuff<commit_after>﻿$functions = Get-ChildItem function:\*-Dba*

#region Automatic TEPP by parameter name
foreach ($function in $functions) {
	if ($function.Parameters.Keys -contains "SqlInstance") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter SqlInstance -Name SqlInstance
	}
	if ($function.Parameters.Keys -contains "Database") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Database -Name Database
	}
	if ($function.Parameters.Keys -contains "ExcludeDatabase") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeDatabase -Name Database
	}
	if ($function.Parameters.Keys -contains "Job") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Job -Name Job
	}
	if ($function.Parameters.Keys -contains "ExcludeJob") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeJob -Name Job
	}
	if ($function.Parameters.Keys -contains "Login") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Login -Name Login
	}
	if ($function.Parameters.Keys -contains "ExcludeLogin") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeLogin -Name Login
	}
	if ($function.Parameters.Keys -contains "Operator") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Operator -Name Operator
	}
	if ($function.Parameters.Keys -contains "ExcludeOperator") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeOperator -Name Operator
	}
	if ($function.Parameters.Keys -contains "Snapshot") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Snapshot -Name Snapshot
	}
	if ($function.Parameters.Keys -contains "ExcludeSnapshot") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeSnapshot -Name Snapshot
	}

	if ($function.Parameters.Keys -contains "ConfigName") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ConfigName -Name ConfigName
	}
	if ($function.Parameters.Keys -contains "ExcludeConfigName") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeConfigName -Name ConfigName
	}

	if ($function.Parameters.Keys -contains "Alert") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Alert -Name Alert
	}
	if ($function.Parameters.Keys -contains "ExcludeAlert") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeAlert -Name Alert
	}

	if ($function.Parameters.Keys -contains "AlertCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter AlertCategory -Name AlertCategory
	}
	if ($function.Parameters.Keys -contains "ExcludeAlertCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeAlertCategory -Name AlertCategory
	}

	if ($function.Parameters.Keys -contains "JobCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter JobCategory -Name JobCategory
	}
	if ($function.Parameters.Keys -contains "ExcludeJobCategory") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeJobCategory -Name JobCategory
	}

	if ($function.Parameters.Keys -contains "AvailabilityGroup") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter AvailabilityGroup -Name AvailabilityGroup
	}
	if ($function.Parameters.Keys -contains "ExcludeAvailabilityGroup") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeAvailabilityGroup -Name AvailabilityGroup
	}

	if ($function.Parameters.Keys -contains "BackupDevice") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter BackupDevice -Name BackupDevice
	}
	if ($function.Parameters.Keys -contains "ExcludeBackupDevice") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeBackupDevice -Name BackupDevice
	}

	if ($function.Parameters.Keys -contains "Credential") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter Credential -Name Credential
	}
	if ($function.Parameters.Keys -contains "ExcludeCredential") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeCredential -Name Credential
	}
	
	if ($function.Parameters.Keys -contains "CredentialIdentity") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter CredentialIdentity -Name Credential
	}
	if ($function.Parameters.Keys -contains "ExcludeCredentialIdentity") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeCredentialIdentity -Name Credential
	}
	
	if ($function.Parameters.Keys -contains "CustomError") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter CustomError -Name CustomError
	}
	if ($function.Parameters.Keys -contains "ExcludeCustomError") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeCustomError -Name CustomError
	}

	if ($function.Parameters.Keys -contains "MailAccount") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter MailAccount -Name MailAccount
	}
	if ($function.Parameters.Keys -contains "ExcludeMailAccount") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter ExcludeMailAccount -Name MailAccount
	}

	if ($function.Parameters.Keys -contains "MailServer") {
		Register-DbaTeppArgumentCompleter -Command $function.Name -Parameter MailServer -Name MailServer
	}
{'fraction_non_alphanumeric': 0.09757023538344722, 'fraction_numerical': 0.0, 'mean_word_length': 5.536600496277916, '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': '4645727', 'n_tokens_mistral': 3062, 'n_tokens_neox': 2948, 'n_words': 710}