<commit_before>function Restart-Explorer {

    try{
        #Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 1 | out-Null
        $user = Get-CurrentUser
        Get-Process -Name explorer -IncludeUserName | ? { $_.UserName -eq "$($user.Domain)\$($user.Name)"} | Stop-Process -Force -ErrorAction Stop | Out-Null
<commit_msg>fix explorer restart when there is no explorer process<commit_after>function Restart-Explorer {

    try{
        #Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 1 | out-Null
        $user = Get-CurrentUser
        Get-Process -Name explorer -ErrorAction SilentlyContinue -IncludeUserName | ? { $_.UserName -eq "$($user.Domain)\$($user.Name)"} | Stop-Process -Force -ErrorAction Stop | Out-Null

{'fraction_non_alphanumeric': 0.12455516014234876, 'fraction_numerical': 0.002372479240806643, 'mean_word_length': 3.6373626373626373, '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': '5551131', 'n_tokens_mistral': 260, 'n_tokens_neox': 246, 'n_words': 60}