<commit_before># vim: set tw=0:

# <NAME> http://momentary.eu/ Last updated: Thu 07 May 2015

# PowerShell 2.0
# Check the time differences between matching files stored locally and on a FAT32 USB stick.
# ------------------------------------------------------------------------------------------

$computer = gc env:computername
$localrd="D:\Dropbox\"
$FAT32rd="F:\"
$locald=$localrd+"Current\Copied\Nederland\Rotterdam*"

# Prepare the output file:
#$outf=$FAT32rd+"CheckFATtimes-"+$computer+".txt"
$outf="CheckFATtimes-"+$computer+".txt"
"vim: tw=0:" > $outf
"" >> $outf
$now=Get-Date -format "ddd dd MMM yyyy HH:mm:ss"
"$computer"+": $now" >> $outf
"" >> $outf
"Files on FAT32 drive's time offsets:" >> $outf
" -days.hours:minutes:seconds => is older by that" >> $outf
"                           - => is not there" >> $outf
"      3600   file's 1h newer than local" >> $outf
"      7200   file's 2h newer than local" >> $outf
"     -3600   file's 1h older than local" >> $outf
"     -7200   file's 2h older than local" >> $outf
"         -   file ain't there" >> $outf
"" >> $outf

gci $locald -r| # get all the directory contents recursively
foreach{
	$localitem=$_.fullname
	$liLWT=$_.LastWriteTime
	$liTAhead=(NEW-TIMESPAN -Start $now -End $liLWT)
	$liSAhead=(NEW-TIMESPAN -Start $now -End $liLWT).totalseconds -replace '\.\d+$'
	"{0,17} {1,-1}" -f $liTAhead, $localitem >> $outf
	"{0,17} {1,-1}" -f $liSAhead, $localitem >> $outf
}

<commit_msg>got the substring<commit_after># vim: set tw=0:

# <NAME> http://momentary.eu/ Last updated: Thu 07 May 2015

# PowerShell 2.0
# Check the time differences between matching files stored locally and on a FAT32 USB stick.
# ------------------------------------------------------------------------------------------

$computer = gc env:computername
$localrd="D:\Dropbox\"
$lrdl=$localrd.length
"$lrdl"
$FAT32rd="F:\"
$locald=$localrd+"Current\Copied\Nederland\Rotterdam*"

# Prepare the output file:
#$outf=$FAT32rd+"CheckFATtimes-"+$computer+".txt"
$outf="CheckFATtimes-"+$computer+".txt"
"vim: tw=0:" > $outf
"" >> $outf
$now=Get-Date -format "ddd dd MMM yyyy HH:mm:ss"
"$computer"+": $now" >> $outf
"" >> $outf
"Files on FAT32 drive's time offsets:" >> $outf
" -days.hours:minutes:seconds => is older by that" >> $outf
"                           - => is not there" >> $outf
"      3600   file's 1h newer than local" >> $outf
"      7200   file's 2h newer than local" >> $outf
"     -3600   file's 1h older than local" >> $outf
"     -7200   file's 2h older than local" >> $outf
"         -   file ain't there" >> $outf
"" >> $outf

gci $locald -r| # get all the directory contents recursively
foreach{
	$localitem=$_.fullname.substring(11)
	$liLWT=$_.LastWriteTime
	$liSAhead=(NEW-TIMESPAN -Start $now -End $liLWT).totalseconds -replace '\.\d+$'
	"{0,10} {1,-1}" -f $liSAhead, $localitem >> $outf
}


{'fraction_non_alphanumeric': 0.2308231173380035, 'fraction_numerical': 0.03257443082311734, 'mean_word_length': 2.7578947368421054, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 65, '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': '1020523', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1026, 'n_words': 277}