<commit_before>#Requires -Version 3.0
#Requires -RunAsAdministrator

Set-StrictMode -Version Latest

$projectName = "SFA.DAS.EmployerAccounts.Web"
$port = "44344"

$appDataPath = "$Env:APPDATA"
$programFilesPath = "$Env:PROGRAMFILES"
$projectPath = "$PSScriptRoot"
$configPath = "$appDataPath\$projectName"
$applicationHostConfigFilename = "ApplicationHost.config"
$applicationHostConfigSourcePath = "$programFilesPath\IIS Express\AppServer\$applicationHostConfigFilename"
$applicationHostConfigDestinationPath = "$configPath\$applicationHostConfigFilename"
$appCmdExe = "$programFilesPath\IIS Express\appcmd.exe"
$iisExpressAdminCmdExe = "$programFilesPath\IIS Express\IisExpressAdminCmd.exe"

md "$configPath" -force
copy "$applicationHostConfigSourcePath" "$configPath"

& $appCmdExe set config -section:system.ApplicationHost/sites /"[name='Development Web Site'].[path='/'].[path='/'].physicalPath:${projectPath}" /commit:apphost /apphostconfig:"$applicationHostConfigDestinationPath"
& $appCmdExe set config -section:system.ApplicationHost/sites /+"[name='Development Web Site'].bindings.[protocol='https',bindingInformation=':${port}:localhost']" /commit:apphost /apphostconfig:"$applicationHostConfigDestinationPath"
& $iisExpressAdminCmdExe setupSslUrl -url:https://localhost:$port/ -UseSelfSigned<commit_msg>Updated account web install script to use same xml casing as application host file<commit_after>#Requires -Version 3.0
#Requires -RunAsAdministrator

Set-StrictMode -Version Latest

$projectName = "SFA.DAS.EmployerAccounts.Web"
$port = "44344"

$appDataPath = "$Env:APPDATA"
$programFilesPath = "$Env:PROGRAMFILES"
$projectPath = "$PSScriptRoot"
$configPath = "$appDataPath\$projectName"
$applicationHostConfigFilename = "ApplicationHost.config"
$applicationHostConfigSourcePath = "$programFilesPath\IIS Express\AppServer\$applicationHostConfigFilename"
$applicationHostConfigDestinationPath = "$configPath\$applicationHostConfigFilename"
$appCmdExe = "$programFilesPath\IIS Express\appcmd.exe"
$iisExpressAdminCmdExe = "$programFilesPath\IIS Express\IisExpressAdminCmd.exe"

md "$configPath" -force
copy "$applicationHostConfigSourcePath" "$configPath"

& $appCmdExe set config -section:system.applicationHost/sites /"[name='Development Web Site'].[path='/'].[path='/'].physicalPath:${projectPath}" /commit:apphost /apphostconfig:"$applicationHostConfigDestinationPath"
& $appCmdExe set config -section:system.applicationHost/sites /+"[name='Development Web Site'].bindings.[protocol='https',bindingInformation=':${port}:localhost']" /commit:apphost /apphostconfig:"$applicationHostConfigDestinationPath"
& $iisExpressAdminCmdExe setupSslUrl -url:https://localhost:$port/ -UseSelfSigned
{'fraction_non_alphanumeric': 0.13382624768946397, 'fraction_numerical': 0.005175600739371534, 'mean_word_length': 9.32824427480916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4732293', 'n_tokens_mistral': 849, 'n_tokens_neox': 797, 'n_words': 134}