<commit_before>New-Module {
  function Save-ScreenShot
  {
    Add-Type -AssemblyName System.Windows.Forms

    # press Alt+PrintScreen
    [System.Windows.Forms.SendKeys]::SendWait("%{PRTSC}")

    $clipboardImage = [Windows.Forms.Clipboard]::GetImage()
    if ($clipboardImage)
    {
      $outputFileName = "scrshot_" + [Convert]::ToString((Get-Date).Ticks, 16).SubString(0, 9) + ".png"
      $outputFilePath = Join-Path (Join-Path $Env:UserProfile "Desktop") $outputFileName
      $clipboardImage.Save($outputFilePath)
    }
  }
  Export-ModuleMember -Function Save-ScreenShot
}<commit_msg>1) Cleared clip-image in advance, 2) Kept current clip-text, 3) Added sleep for the completion of transferring data between clipboard.<commit_after>New-Module {
  function Save-ScreenShot
  {
    Add-Type -AssemblyName System.Windows.Forms

    # save (push) clipboard
    $clipText = [Windows.Forms.Clipboard]::GetText()

    # clear clipboard
    [Windows.Forms.Clipboard]::SetText(" ")
    Start-Sleep -Milliseconds 100

    # press Alt+PrintScreen
    [System.Windows.Forms.SendKeys]::SendWait("%{PRTSC}")
    Start-Sleep -Milliseconds 100

    $clipboardImage = [Windows.Forms.Clipboard]::GetImage()
    Start-Sleep -Milliseconds 100
    
    if ($clipboardImage)
    {
      $outputFileName = "scrshot_" + [Convert]::ToString((Get-Date).Ticks, 16).SubString(0, 9) + ".png"
      $outputFilePath = Join-Path (Join-Path $Env:UserProfile "Desktop") $outputFileName
      $clipboardImage.Save($outputFilePath)
    }
    
    # load (pop) cliptext
    [Windows.Forms.Clipboard]::SetText($clipText)
  }
  Export-ModuleMember -Function Save-ScreenShot
}
{'fraction_non_alphanumeric': 0.13608748481166463, 'fraction_numerical': 0.012150668286755772, 'mean_word_length': 3.801749271137026, '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': '5909152', 'n_tokens_mistral': 549, 'n_tokens_neox': 516, 'n_words': 98}