<commit_before>rem   
rem @echo off
rem   
chcp 1251 > nul
rem  
goto start
--------------------------------------
   
   
  1 
--------------------------------------
   
  WinRar 5
--------------------------------------
   
   .
!      
 !
--------------------------------------
   24/01/2015
   24/01/2015
  
--------------------------------------

    
     !
    !

:start
rem "     1 "
::     , 
::    (  )
set source="D:\1C\Base"
rem    .
set NumberArchives=10
rem   
set password=<PASSWORD>

rem  

rem       
::  (    )
::    
set backup=%~dp0
rem   
set error=0
rem   (   ).
set logfile=%backup%backup.log

rem   
rem     
if not exist %source% (goto NoSourceDir)
rem     
if not exist %backup% (goto NoBackupDir)
rem      
rem %date%   ( )
if exist %backup%%date%.rar (goto ExistBackup)

rem    WinRar
::     
if exist "%PROGRAMFILES%\WinRAR\rar.exe" (set ArchiveProgram="%PROGRAMFILES%\WinRAR\rar.exe") else (if exist "%PROGRAMFILES(x86)%\WinRAR\rar.exe" (set ArchiveProgram="%PROGRAMFILES(x86)%\WinRAR\rar.exe") else (goto NoArchiveProgram))

rem 
rem     rar.exe
::  a     -  
:: -cfg-  -    
::            .
:: -ma    -   RAR  5.0
:: -htb   -   BLAKE2
:: -m5    -   
:: -rr10p - 10%   
:: -ac    -   ""  
:: -ow    -     
:: -agDD.MM.YYYY -      
:: -ep1   -     ,
::               
:: -hp    -     
:: -k     -   (  )
:: --     -   
%ArchiveProgram% a -cfg- -ma -htb -m5 -rr10p -ac -ow -agDD.MM.YYYY -ep1 -hp%password% -k %backup% %source% --

rem  
rem %ErrorLevel%   
::  rar.exe
rem      
::         
if %ErrorLevel%==0 (set result="  "
goto log) else (set result=" - %ErrorLevel%"
goto :error)

:NoArchiveProgram
set result="   "
goto :error

:NoSourceDir
set result="    "
goto :error

:NoBackupDir
set result="    "
goto :error

:ExistBackup
set result="    "
goto log

:error
set error=1

:log
rem  .
rem %date%   ( )
rem %time%   ( )
echo %date% >> %logfile%
echo %time% >> %logfile%
echo %result% >> %logfile%
echo ... >> %logfile%

rem   
rem      
::     
rem forfiles -    
:: /P %backup% -      
:: /M *.rar -   rar
:: /D -%NumberArchives% -     
:: /C "cmd /c del /q @path" -   
if exist %backup%%date%.rar (forfiles /P %backup% /M *.rar /D -%NumberArchives% /C "cmd /c del /q @path")

rem      
::    
::  
rem    
::     
::     
if %error%==1 (color 0c
echo %result%
pause)<commit_msg>backup-dev.cmd вывод логов в одну строку<commit_after>rem   
rem @echo off
rem   
chcp 1251 > nul
rem  
goto start
--------------------------------------
   
   
  1 
--------------------------------------
   
  WinRar 5
--------------------------------------
   
   .
!      
 !
--------------------------------------
   24/01/2015
   24/01/2015
  
--------------------------------------

    
     !
    !

:start
rem "     1 "
::     , 
::    (  )
set source="D:\1C\Base"
rem    .
set NumberArchives=10
rem   
set password=<PASSWORD>

rem  

rem       
::  (    )
::    
set backup=%~dp0
rem   
set error=0
rem   (   ).
set logfile=%backup%backup.log

rem   
rem     
if not exist %source% (goto NoSourceDir)
rem     
if not exist %backup% (goto NoBackupDir)
rem      
rem %date%   ( )
if exist %backup%%date%.rar (goto ExistBackup)

rem    WinRar
::     
if exist "%PROGRAMFILES%\WinRAR\rar.exe" (set ArchiveProgram="%PROGRAMFILES%\WinRAR\rar.exe") else (if exist "%PROGRAMFILES(x86)%\WinRAR\rar.exe" (set ArchiveProgram="%PROGRAMFILES(x86)%\WinRAR\rar.exe") else (goto NoArchiveProgram))

rem 
rem     rar.exe
::  a     -  
:: -cfg-  -    
::            .
:: -ma    -   RAR  5.0
:: -htb   -   BLAKE2
:: -m5    -   
:: -rr10p - 10%   
:: -ac    -   ""  
:: -ow    -     
:: -agDD.MM.YYYY -      
:: -ep1   -     ,
::               
:: -hp    -     
:: -k     -   (  )
:: --     -   
%ArchiveProgram% a -cfg- -ma -htb -m5 -rr10p -ac -ow -agDD.MM.YYYY -ep1 -hp%password% -k %backup% %source% --

rem  
rem %ErrorLevel%   
::  rar.exe
rem      
::         
if %ErrorLevel%==0 (set result="  "
goto log) else (set result=" - %ErrorLevel%"
goto :error)

:NoArchiveProgram
set result="   "
goto :error

:NoSourceDir
set result="    "
goto :error

:NoBackupDir
set result="    "
goto :error

:ExistBackup
set result="    "
goto log

:error
set error=1

:log
rem  .
rem %date%   ( )
rem %time%   ( )
echo %date% %time% %result% >> %logfile%

rem   
rem      
::     
rem forfiles -    
:: /P %backup% -      
:: /M *.rar -   rar
:: /D -%NumberArchives% -     
:: /C "cmd /c del /q @path" -   
if exist %backup%%date%.rar (forfiles /P %backup% /M *.rar /D -%NumberArchives% /C "cmd /c del /q @path")

rem      
::    
::  
rem    
::     
::     
if %error%==1 (color 0c
echo %result%
pause)
{'fraction_non_alphanumeric': 0.23528133825765804, 'fraction_numerical': 0.021290462741690202, 'mean_word_length': 1.4269899841855562, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '453027', 'n_tokens_mistral': 1831, 'n_tokens_neox': 1735, 'n_words': 416}