<commit_before># ————————————
# Enable MSDTC
# ————————————

Write-Host "Enabling MSDTC..." -ForegroundColor Yellow
$DTCSecurity = "Incoming"
$RegPath = "HKLM:\SOFTWARE\Microsoft\MSDTC\"

#Set Security and MSDTC path

$RegSecurityPath = "$RegPath\Security"

Set-ItemProperty –path $RegSecurityPath –name "NetworkDtcAccess" –value 1
Set-ItemProperty –path $RegSecurityPath –name "NetworkDtcAccessClients" –value 1
Set-ItemProperty –path $RegSecurityPath –name "NetworkDtcAccessTransactions" –value 1
Set-ItemProperty –path $RegSecurityPath –name "NetworkDtcAccessInbound" –value 1
Set-ItemProperty –path $RegSecurityPath –name "NetworkDtcAccessOutbound" –value 1
Set-ItemProperty –path $RegSecurityPath –name "LuTransactions" –value 1

if ($DTCSecurity –eq "None")
{
	Set-ItemProperty –path $RegPath –name "TurnOffRpcSecurity" –value 1
	Set-ItemProperty –path $RegPath –name "AllowOnlySecureRpcCalls" –value 0
	Set-ItemProperty –path $RegPath –name "FallbackToUnsecureRPCIfNecessary" –value 0
}
elseif ($DTCSecurity –eq "Incoming")
{
	Set-ItemProperty –path $RegPath –name "TurnOffRpcSecurity" –value 0
	Set-ItemProperty –path $RegPath –name "AllowOnlySecureRpcCalls" –value 0
	Set-ItemProperty –path $RegPath –name "FallbackToUnsecureRPCIfNecessary" –value 1
}
else
{
	Set-ItemProperty –path $RegPath –name "TurnOffRpcSecurity" –value 0
	Set-ItemProperty –path $RegPath –name "AllowOnlySecureRpcCalls" –value 1
	Set-ItemProperty –path $RegPath –name "FallbackToUnsecureRPCIfNecessary" –value 0
}

Restart-Service MSDTC
Write-Host "——MSDTC has been configured—–" –foregroundcolor green
<commit_msg>changed encode<commit_after># 
# Enable MSDTC
# 

Write-Host "Enabling MSDTC..." -ForegroundColor Yellow
$DTCSecurity = "Incoming"
$RegPath = "HKLM:\SOFTWARE\Microsoft\MSDTC\"

#Set Security and MSDTC path

$RegSecurityPath = "$RegPath\Security"

Set-ItemProperty path $RegSecurityPath name "NetworkDtcAccess" value 1
Set-ItemProperty path $RegSecurityPath name "NetworkDtcAccessClients" value 1
Set-ItemProperty path $RegSecurityPath name "NetworkDtcAccessTransactions" value 1
Set-ItemProperty path $RegSecurityPath name "NetworkDtcAccessInbound" value 1
Set-ItemProperty path $RegSecurityPath name "NetworkDtcAccessOutbound" value 1
Set-ItemProperty path $RegSecurityPath name "LuTransactions" value 1

if ($DTCSecurity eq "None")
{
	Set-ItemProperty path $RegPath name "TurnOffRpcSecurity" value 1
	Set-ItemProperty path $RegPath name "AllowOnlySecureRpcCalls" value 0
	Set-ItemProperty path $RegPath name "FallbackToUnsecureRPCIfNecessary" value 0
}
elseif ($DTCSecurity eq "Incoming")
{
	Set-ItemProperty path $RegPath name "TurnOffRpcSecurity" value 0
	Set-ItemProperty path $RegPath name "AllowOnlySecureRpcCalls" value 0
	Set-ItemProperty path $RegPath name "FallbackToUnsecureRPCIfNecessary" value 1
}
else
{
	Set-ItemProperty path $RegPath name "TurnOffRpcSecurity" value 0
	Set-ItemProperty path $RegPath name "AllowOnlySecureRpcCalls" value 1
	Set-ItemProperty path $RegPath name "FallbackToUnsecureRPCIfNecessary" value 0
}

Restart-Service MSDTC
Write-Host "MSDTC has been configured" foregroundcolor green

{'fraction_non_alphanumeric': 0.09682590573901892, 'fraction_numerical': 0.009618467457518435, 'mean_word_length': 6.878787878787879, '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': '5855733', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1000, 'n_words': 287}