<commit_before>﻿try
{
    [System.Reflection.Assembly]::LoadWithPartialName("System.Security.Cryptography");
}
catch 
{
    Write-Error "Could not load required assembly.";
    Return;
}

Function Get-AppDataPath {
    $AppDataPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::ApplicationData) | Join-Path -ChildPath:'<NAME>';
    if (-not (Test-Path $AppDataPath)) { New-Item -Path:$AppDataPath -ItemType:'Directory' | Out-Null }
    $AppDataPath = $AppDataPath | Join-Path -ChildPath:'PowerShell';
    if (-not (Test-Path $AppDataPath)) { New-Item -Path:$AppDataPath -ItemType:'Directory' | Out-Null }<commit_msg>Add local storage and backwork stub code.<commit_after>﻿try
{
    [System.Reflection.Assembly]::LoadWithPartialName("System.Security.Cryptography");
}
catch 
{
    Write-Error "Could not load required assembly.";
    Return;
}

$Script:LastLocalBackup = $null;

Function Get-AppDataPath {
    Param(
        [switch]$Local
    )
    $SpecialFolder = &{ if ($Local) { [System.Environment+SpecialFolder]::LocalApplicationData } else { [System.Environment+SpecialFolder]::ApplicationData } };
    $AppDataPath = [System.Environment]::GetFolderPath($SpecialFolder) | Join-Path -ChildPath:'<NAME>';
    if (-not (Test-Path $AppDataPath)) { New-Item -Path:$AppDataPath -ItemType:'Directory' | Out-Null }
    $AppDataPath = $AppDataPath | Join-Path -ChildPath:'PowerShell';
    if (-not (Test-Path $AppDataPath)) { New-Item -Path:$AppDataPath -ItemType:'Directory' | Out-Null }
{'fraction_non_alphanumeric': 0.15389696169088507, 'fraction_numerical': 0.0, 'mean_word_length': 4.8494208494208495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5732628', 'n_tokens_mistral': 470, 'n_tokens_neox': 464, 'n_words': 88}