<commit_before>-------------------------
-- Ѫ -- ع
-- By @˫@ݶ
-- ZhaiYiMing.CoM
-- 2015-12-11 09:54:01
-------------------------
local _L = MY.LoadLangPack(MY.GetAddonInfo().szRoot .. "MY_ArchHUD/lang/")
local DefaultAnchor = {s = "CENTER", r = "CENTER",  x = 0, y = 0}
MY_ArchHUD = {}
MY_ArchHUD.bOn = false
MY_ArchHUD.Anchor = clone(DefaultAnchor)
MY_ArchHUD.bFightShow = true
MY_ArchHUD.bShowCastingBar = true
MY_ArchHUD.nAlpha = 60
local IMG_DIR = MY.GetAddonInfo().szRoot .. "MY_ArchHUD/img/"
local INI_PATH = MY.GetAddonInfo().szRoot .. "MY_ArchHUD/ui/MY_ArchHUD.ini"

RegisterCustomData("MY_ArchHUD.bOn")
RegisterCustomData("MY_ArchHUD.bFightShow")
RegisterCustomData("MY_ArchHUD.bShowCastingBar")
RegisterCustomData("MY_ArchHUD.nAlpha")

function MY_ArchHUD.Reload()
	Wnd.CloseWindow("MY_ArchHUD")
	if MY_ArchHUD.bOn then
		Wnd.OpenWindow(INI_PATH, "MY_ArchHUD")
	end
end
MY.RegisterInit("MY_ArchHUD", MY_ArchHUD.Reload)

function MY_ArchHUD.UpdateAnchor(hFrame)
	hFrame:SetPoint(MY_ArchHUD.Anchor.s, 0, 0, MY_ArchHUD.Anchor.r, MY_ArchHUD.Anchor.x, MY_ArchHUD.Anchor.y)
	hFrame:CorrectPos()
end

local function UpdatePlayerData(hFrame, KSelf)
	if not KSelf then
		return
	end
	
	local nCurrentMana, nMaxMana
	local nManaR, nManaG, nManaB
	local szMana, szManaImage, nManaFrame
	local nCurrentExtra, nMaxExtra
	local nExtraR, nExtraG, nExtraB
	local szExtra, szExtraImage, nExtraFrame
	if KSelf.dwForceID == FORCE_TYPE.SHAO_LIN then
		local nAccumulate = math.min(KSelf.nAccumulateValue, 3)
		szExtra = _L["ChanNa:"] .. tostring(nAccumulate)
		nCurrentExtra, nMaxExtra = nAccumulate, 3
		szExtraImage, nExtraFrame = "rRing_T.UITex", 0
		nCurrentMana, nMaxMana = KSelf.nCurrentMana, KSelf.nMaxMana
	elseif KSelf.dwForceID == FORCE_TYPE.CHUN_YANG then
		local nAccumulate = math.min(KSelf.nAccumulateValue, 10)
		szExtra = _L["Qi:"] .. tostring(nAccumulate / 2)
		nCurrentExtra, nMaxExtra = nAccumulate, 5
		szExtraImage, nExtraFrame = "rRing.UITex", 0
		nCurrentMana, nMaxMana = KSelf.nCurrentMana, KSelf.nMaxMana
	elseif KSelf.dwForceID == FORCE_TYPE.QI_XIU then
		local nAccumulate = math.min(KSelf.nAccumulateValue, 10)
		szExtra = _L["JianWu:"] .. tostring(nAccumulate)
		nCurrentExtra, nMaxExtra = nAccumulate, 10
		szExtraImage, nExtraFrame = "rRing.UITex", 2
		nCurrentMana, nMaxMana = KSelf.nCurrentMana, KSelf.nMaxMana
	elseif KSelf.dwForceID == FORCE_TYPE.TANG_MEN then
		nManaR, nManaG, nManaB = 255, 255, 0
		szManaImage, nManaFrame = "rRing.UITex", 2
		nCurrentMana, nMaxMana = KSelf.nCurrentEnergy, KSelf.nMaxEnergy
	elseif KSelf.dwForceID == FORCE_TYPE.CANG_JIAN then
		nManaR, nManaG, nManaB = 255, 150, 0
		szManaImage, nManaFrame = "rRing.UITex", 1
		nCurrentMana, nMaxMana = KSelf.nCurrentRage, KSelf.nMaxRage
	elseif KSelf.dwForceID == FORCE_TYPE.MING_JIAO then
		nManaR, nManaG, nManaB = 255, 255, 0
		if KSelf.nSunPowerValue == 1 then
			szMana = _L["ManRi!"]
			szManaImage, nManaFrame = "rRing.UITex", 1
			szExtraImage, nExtraFrame = "rRing.UITex", 1
			nCurrentMana, nMaxMana = KSelf.nCurrentSunEnergy, KSelf.nCurrentSunEnergy
		elseif KSelf.nMoonPowerValue == 1 then
			szMana = _L["ManYue!"]
			szManaImage, nManaFrame = "rRing.UITex", 3
			szExtraImage, nExtraFrame = "rRing.UITex", 3
			nCurrentMana, nMaxMana = KSelf.nMaxMoonEnergy, KSelf.nMaxMoonEnergy<commit_msg>弧形血条 纯阳豆数量不对<commit_after>-------------------------
-- Ѫ -- ع
-- By @˫@ݶ
-- ZhaiYiMing.CoM
-- 2015-12-11 09:54:01
-------------------------
local _L = MY.LoadLangPack(MY.GetAddonInfo().szRoot .. "MY_ArchHUD/lang/")
local DefaultAnchor = {s = "CENTER", r = "CENTER",  x = 0, y = 0}
MY_ArchHUD = {}
MY_ArchHUD.bOn = false
MY_ArchHUD.Anchor = clone(DefaultAnchor)
MY_ArchHUD.bFightShow = true
MY_ArchHUD.bShowCastingBar = true
MY_ArchHUD.nAlpha = 60
local IMG_DIR = MY.GetAddonInfo().szRoot .. "MY_ArchHUD/img/"
local INI_PATH = MY.GetAddonInfo().szRoot .. "MY_ArchHUD/ui/MY_ArchHUD.ini"

RegisterCustomData("MY_ArchHUD.bOn")
RegisterCustomData("MY_ArchHUD.bFightShow")
RegisterCustomData("MY_ArchHUD.bShowCastingBar")
RegisterCustomData("MY_ArchHUD.nAlpha")

function MY_ArchHUD.Reload()
	Wnd.CloseWindow("MY_ArchHUD")
	if MY_ArchHUD.bOn then
		Wnd.OpenWindow(INI_PATH, "MY_ArchHUD")
	end
end
MY.RegisterInit("MY_ArchHUD", MY_ArchHUD.Reload)

function MY_ArchHUD.UpdateAnchor(hFrame)
	hFrame:SetPoint(MY_ArchHUD.Anchor.s, 0, 0, MY_ArchHUD.Anchor.r, MY_ArchHUD.Anchor.x, MY_ArchHUD.Anchor.y)
	hFrame:CorrectPos()
end

local function UpdatePlayerData(hFrame, KSelf)
	if not KSelf then
		return
	end
	
	local nCurrentMana, nMaxMana
	local nManaR, nManaG, nManaB
	local szMana, szManaImage, nManaFrame
	local nCurrentExtra, nMaxExtra
	local nExtraR, nExtraG, nExtraB
	local szExtra, szExtraImage, nExtraFrame
	if KSelf.dwForceID == FORCE_TYPE.SHAO_LIN then
		local nAccumulate = math.min(KSelf.nAccumulateValue, 3)
		szExtra = _L["ChanNa:"] .. tostring(nAccumulate)
		nCurrentExtra, nMaxExtra = nAccumulate, 3
		szExtraImage, nExtraFrame = "rRing_T.UITex", 0
		nCurrentMana, nMaxMana = KSelf.nCurrentMana, KSelf.nMaxMana
	elseif KSelf.dwForceID == FORCE_TYPE.CHUN_YANG then
		local nAccumulate = math.min(KSelf.nAccumulateValue, 10) / 2
		szExtra = _L["Qi:"] .. tostring(nAccumulate)
		nCurrentExtra, nMaxExtra = nAccumulate, 5
		szExtraImage, nExtraFrame = "rRing.UITex", 0
		nCurrentMana, nMaxMana = KSelf.nCurrentMana, KSelf.nMaxMana
	elseif KSelf.dwForceID == FORCE_TYPE.QI_XIU then
		local nAccumulate = math.min(KSelf.nAccumulateValue, 10)
		szExtra = _L["JianWu:"] .. tostring(nAccumulate)
		nCurrentExtra, nMaxExtra = nAccumulate, 10
		szExtraImage, nExtraFrame = "rRing.UITex", 2
		nCurrentMana, nMaxMana = KSelf.nCurrentMana, KSelf.nMaxMana
	elseif KSelf.dwForceID == FORCE_TYPE.TANG_MEN then
		nManaR, nManaG, nManaB = 255, 255, 0
		szManaImage, nManaFrame = "rRing.UITex", 2
		nCurrentMana, nMaxMana = KSelf.nCurrentEnergy, KSelf.nMaxEnergy
	elseif KSelf.dwForceID == FORCE_TYPE.CANG_JIAN then
		nManaR, nManaG, nManaB = 255, 150, 0
		szManaImage, nManaFrame = "rRing.UITex", 1
		nCurrentMana, nMaxMana = KSelf.nCurrentRage, KSelf.nMaxRage
	elseif KSelf.dwForceID == FORCE_TYPE.MING_JIAO then
		nManaR, nManaG, nManaB = 255, 255, 0
		if KSelf.nSunPowerValue == 1 then
			szMana = _L["ManRi!"]
			szManaImage, nManaFrame = "rRing.UITex", 1
			szExtraImage, nExtraFrame = "rRing.UITex", 1
			nCurrentMana, nMaxMana = KSelf.nCurrentSunEnergy, KSelf.nCurrentSunEnergy
		elseif KSelf.nMoonPowerValue == 1 then
			szMana = _L["ManYue!"]
			szManaImage, nManaFrame = "rRing.UITex", 3
			szExtraImage, nExtraFrame = "rRing.UITex", 3
			nCurrentMana, nMaxMana = KSelf.nMaxMoonEnergy, KSelf.nMaxMoonEnergy
{'fraction_non_alphanumeric': 0.1266091170679994, 'fraction_numerical': 0.018779342723004695, 'mean_word_length': 4.732638888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '899146', 'n_tokens_mistral': 3006, 'n_tokens_neox': 2707, 'n_words': 502}