To accomplish the same task with a Windows Batch file, you can use the "ping" command and the "set" command to store the results. Here is an example script:

@echo off

set IP=8.8.8.8
set TEST_COUNT=0
set FAILURES=0

:loop
set /a TEST_COUNT=TEST_COUNT+1
ping -n 10 %IP% >nul
if %errorlevel% neq 0 set /a FAILURES=FAILURES+1

set /a UPTIME=100-100*FAILURES/TEST_COUNT

echo uptime: %UPTIME%

timeout /t 60 /nobreak >nul
goto loop

This script sets the IP address to ping, the number of tests to run, and the number of failures encountered. It then enters an infinite loop that runs a ping test every minute. The results are stored using the "set" command, and the uptime percentage is calculated and displayed using the same method as the Bash script. The "timeout" command is used to pause for 60 seconds before running the next loop.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence