<commit_before>

%1 %2
ver|find "5.">nul&&goto :st
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :st","","runas",1)(window.close)&goto :eof
:st

copy "%~0" "%windir%\system32\"
cls
@REM HostsGet Version0.2

@echo off
del %temp%\download.vbs > nul
cd /d %~dp0
echo 初始化中...

echo iLocal=LCase("c:\hosts") >> %temp%\download.vbs
echo iRemote=LCase("https://raw.githubusercontent.com/racaljk/hosts/master/hosts") >> %temp%\download.vbs

echo Set xPost=createObject("Microsoft.XMLHTTP") 'Set Post = CreateObject("Msxml2.XMLHTTP") >> %temp%\download.vbs
echo xPost.Open "GET",iRemote,0 >> %temp%\download.vbs
echo xPost.Send() >> %temp%\download.vbs
echo set sGet=createObject("ADODB.Stream") >> %temp%\download.vbs
echo sGet.Mode=3 >> %temp%\download.vbs
echo sGet.Type=1 >> %temp%\download.vbs
echo sGet.Open() >> %temp%\download.vbs
echo sGet.Write xPost.ResponseBody >> %temp%\download.vbs
echo sGet.SaveToFile iLocal,2 >> %temp%\download.vbs

echo 初始化完成...请稍后...
ping 127.0.0.1 > nul
echo 开始从github中下载hosts
%temp%\download.vbs
echo 请稍后...
del %temp%\download.vbs /s /q
ping 127.0.0.1 > nul
echo 正在备份原hosts...
move %windir%\system32\drivers\etc\hosts %windir%\
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
ren %windir%\hosts %filename%.bak
echo %filename%.bak >> hostbak.txt

echo hosts文件已经备份到%windir%，名字为当前的时间，例如20160212182118.bak ，备份的文件名称保存在hostsbak.txt.

move c:\hosts %windir%\system32\drivers\etc\
echo hosts替换完成.
ipconfig /flushdns<commit_msg>更改HostsGeter<commit_after>

%1 %2
ver|find "5.">nul&&goto :st
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :st","","runas",1)(window.close)&goto :eof
:st

copy "%~0" "%windir%\system32\"
cls
@REM HostsGet Version0.2

@echo off
del %temp%\download.vbs > nul
cd /d %~dp0
echo 初始化中...

echo iLocal=LCase("c:\hosts") >> %temp%\download.vbs
echo iRemote=LCase("https://raw.githubusercontent.com/racaljk/hosts/master/hosts") >> %temp%\download.vbs

echo Set xPost=createObject("Microsoft.XMLHTTP") 'Set Post = CreateObject("Msxml2.XMLHTTP") >> %temp%\download.vbs
echo xPost.Open "GET",iRemote,0 >> %temp%\download.vbs
echo xPost.Send() >> %temp%\download.vbs
echo set sGet=createObject("ADODB.Stream") >> %temp%\download.vbs
echo sGet.Mode=3 >> %temp%\download.vbs
echo sGet.Type=1 >> %temp%\download.vbs
echo sGet.Open() >> %temp%\download.vbs
echo sGet.Write xPost.ResponseBody >> %temp%\download.vbs
echo sGet.SaveToFile iLocal,2 >> %temp%\download.vbs

echo 初始化完成...请稍后...
ping 127.0.0.1 > nul
echo 开始从github中下载hosts
%temp%\download.vbs
echo 请稍后...
del %temp%\download.vbs /s /q
ping 127.0.0.1 > nul
echo 正在备份原hosts...
move %windir%\system32\drivers\etc\hosts %windir%\
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
ren %windir%\hosts %filename%.bak
echo %windir%\%filename%.bak >> hostbak.txt

echo hosts文件已经备份到%windir%，名字为%filename% ，路径为：%windir%\%filename% 备份的路径称保存在hostsbak.txt.

move c:\hosts %windir%\system32\drivers\etc\
echo hosts替换完成.
ipconfig /flushdns
{'fraction_non_alphanumeric': 0.1952584787619361, 'fraction_numerical': 0.03358577543628581, 'mean_word_length': 5.561555075593953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 59, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2452392', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1300, 'n_words': 218}