<commit_before># powershell -ExecutionPolicy Bypass .\prefetch.ps1 "prefetch string.txt sha1:? size:? url sha256:?"
# powershell -ExecutionPolicy Bypass .\prefetch.ps1 "add prefetch item name=string.txt sha1=? size=? url=? sha256=?"
$prefetch = $args[0]

if (!$prefetch) { 
    $prefetch = "prefetch unzip.exe sha1:84debf12767785cd9b43811022407de7413beb6f size:204800 http://software.bigfix.com/download/redist/unzip-6.0.exe sha256:2122557d350fd1c59fb0ef32125330bde673e9331eb9371b454c2ad2d82091ac"
}

# Write-Host $prefetch

$prefetch_name = ( select-string "(?:name=|prefetch )([a-zA-Z0-9\.]+)(?: |$)" -inputobject $prefetch ).Matches.groups[1].value

$prefetch_sha256 = ( select-string "(?:sha256:|sha256=)([a-zA-Z0-9]+)(?: |$)" -inputobject $prefetch ).Matches.groups[1].value<commit_msg>fix usage comment<commit_after># Usage Examples:
# prefetch statement:
# powershell -ExecutionPolicy Bypass .\prefetch.ps1 "'prefetch string.txt sha1:? size:? url sha256:?'"
# prefetch block item:
# powershell -ExecutionPolicy Bypass .\prefetch.ps1 "'add prefetch item name=string.txt sha1=? size=? url=? sha256=?'"
$prefetch = $args[0]

if (!$prefetch) { 
    $prefetch = "prefetch unzip.exe sha1:84debf12767785cd9b43811022407de7413beb6f size:204800 http://software.bigfix.com/download/redist/unzip-6.0.exe sha256:2122557d350fd1c59fb0ef32125330bde673e9331eb9371b454c2ad2d82091ac"
}

Write-Host $prefetch

$prefetch_name = ( select-string "(?:name=|prefetch )([a-zA-Z0-9\.]+)(?: |$)" -inputobject $prefetch ).Matches.groups[1].value

$prefetch_sha256 = ( select-string "(?:sha256:|sha256=)([a-zA-Z0-9]+)(?: |$)" -inputobject $prefetch ).Matches.groups[1].value
{'fraction_non_alphanumeric': 0.17262265293761356, 'fraction_numerical': 0.1308298001211387, 'mean_word_length': 6.182608695652174, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1515683', 'n_tokens_mistral': 777, 'n_tokens_neox': 653, 'n_words': 106}