<commit_before>@echo off
if not "%1" == "install" ( if not "%1" == "uninstall"  ( if not "%1" == "start" ( if not "%1" == "stop" (
echo     usage: service_windows.bat install ^| uninstall ^| start ^| stop
echo     depend Microsoft.NET Framework 4
goto out
))))
echo ^<configuration^> > %~dp0local\service.xml
echo ^<id^>o2server^<^/id^> >> %~dp0local\service.xml
echo ^<name^>o2server service^<^/name^> >> %~dp0local\service.xml
echo ^<description^>winsw warpper o2server service.^<^/description^> >> %~dp0local\service.xml
echo ^<executable^>%~dp0start_windows.bat^</executable^> >> %~dp0local\service.xml
echo ^<log mode="none"^/^> >> %~dp0local\service.xml
echo ^</configuration^> >> %~dp0local\service.xml
copy %~dp0commons\winsw.exe %~dp0local\service.exe
%~dp0local\service.exe %1
:out <commit_msg>windows服务注册脚本<commit_after>@echo off
if not "%1" == "install" ( if not "%1" == "uninstall"  ( if not "%1" == "start" ( if not "%1" == "stop" (
echo     使用: service_windows.bat install ^| uninstall ^| start ^| stop
echo     依赖于 Microsoft.NET Framework 4
goto out
))))
echo ^<configuration^> > %~dp0local\service.xml
echo ^<id^>O2SERVER^<^/id^> >> %~dp0local\service.xml
echo ^<name^>O2SERVER SERVICE^<^/name^> >> %~dp0local\service.xml
echo ^<description^>O2OA平台服务.^<^/description^> >> %~dp0local\service.xml
echo ^<executable^>%~dp0start_windows.bat^</executable^> >> %~dp0local\service.xml
echo ^<log mode="none"^/^> >> %~dp0local\service.xml
echo ^</configuration^> >> %~dp0local\service.xml
copy %~dp0commons\winsw.exe %~dp0local\service.exe
%~dp0local\service.exe %1
:out
{'fraction_non_alphanumeric': 0.20899303356554783, 'fraction_numerical': 0.0253324889170361, 'mean_word_length': 5.556016597510373, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '748185', 'n_tokens_mistral': 627, 'n_tokens_neox': 614, 'n_words': 125}