<commit_before>
# NOTE: this doesn't actually do anything useful currently.
# I was trying to make a simplifed UI for displaying output of a script, like this: https://github.com/jgstew/tools/blob/master/powershell/OpenBigFixUI.ps1

Add-Type -AssemblyName System.Windows.Forms

# http://www.alkanesolutions.co.uk/2013/04/19/embedding-base64-image-strings-inside-a-powershell-application/
$base64ImageString = "<KEY>
$imageBytes = [Convert]::FromBase64String($base64ImageString)
$ms = New-Object IO.MemoryStream($imageBytes, 0, $imageBytes.Length)
$ms.Write($imageBytes, 0, $imageBytes.Length);
$img = [System.Drawing.Image]::FromStream($ms, $true)


$Form = New-Object system.Windows.Forms.Form
$Form.Width = 350
$Form.Height = 75
$Form.Text = "Waiting For BESClient"
$Form.Font = New-Object System.Drawing.Font("Times New Roman",14,[System.Drawing.FontStyle]::Bold)
$Label = New-Object System.Windows.Forms.Label
$Label.Text = "       Waiting For BESClient Service"
#$Label.BackColor = [System.Drawing.Color]::FromName("Transparent")
$Label.AutoSize = $True

$Form.Controls.Add($Label)

$pictureBox = new-object Windows.Forms.PictureBox
$pictureBox.Width =  $img.Size.Width;
$pictureBox.Height =  $img.Size.Height;
$pictureBox.Image = $img;


$Form.controls.add($pictureBox)
$pictureBox.BringToFront();
$Form.Add_Shown( { $form.Activate() } )

$Form.ShowDialog()
#$Form.Show()
#sleep -Milliseconds 3000<commit_msg>Update SimpleFormsGUI.ps1<commit_after>
# NOTE: this doesn't actually do anything useful currently.

Add-Type -AssemblyName System.Windows.Forms

# http://www.alkanesolutions.co.uk/2013/04/19/embedding-base64-image-strings-inside-a-powershell-application/
$base64ImageString = "<KEY>
$imageBytes = [Convert]::FromBase64String($base64ImageString)
$ms = New-Object IO.MemoryStream($imageBytes, 0, $imageBytes.Length)
$ms.Write($imageBytes, 0, $imageBytes.Length);
$img = [System.Drawing.Image]::FromStream($ms, $true)


$Form = New-Object system.Windows.Forms.Form
$Form.Width = 350
$Form.Height = 400
$Form.Text = "Waiting For BESClient"
#$Form.Font = New-Object System.Drawing.Font("Times New Roman",14,[System.Drawing.FontStyle]::Bold)

$pictureBox = new-object Windows.Forms.PictureBox
$pictureBox.Width =  $img.Size.Width;
$pictureBox.Height =  $img.Size.Height;
$pictureBox.Image = $img;
$Form.controls.add($pictureBox)
$pictureBox.BringToFront();


$LabelScriptOutput = New-Object System.Windows.Forms.Label
$LabelScriptOutput.AutoSize = $True
$LabelScriptOutput.Location = new-object System.Drawing.Size(40,5)
$LabelScriptOutput.Text = ""
$Form.Controls.Add($LabelScriptOutput)

$Form.Add_Shown( { $form.Activate() } )

#$Form.ShowDialog()
$Form.Show()
$LabelScriptOutput.Text += "Waiting for BESClient Service to be ready `n"
$LabelScriptOutput.Text += "BESClient Status: Running `n"
$LabelScriptOutput.Text += "Opening ClientUI `n"
$LabelScriptOutput.Text += "Finished"

# this prevents the form from animating, which isn't ideal.
sleep -Milliseconds 3000
{'fraction_non_alphanumeric': 0.1511081262592344, 'fraction_numerical': 0.021490933512424447, 'mean_word_length': 5.8799076212471135, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '5911787', 'n_tokens_mistral': 1053, 'n_tokens_neox': 989, 'n_words': 193}