Skip to content

Commit

Permalink
chore: bump lua build
Browse files Browse the repository at this point in the history
  • Loading branch information
rktjmp committed May 19, 2024
1 parent e86587f commit 7f53e1d
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 175 deletions.
135 changes: 75 additions & 60 deletions lua/hotpot/health.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
local uv = (vim.uv or vim.loop)
local _local_1_ = vim.health
local function _3_(...)
local _2_ = vim.health
if ((_G.type(_2_) == "table") and (nil ~= _2_.ok) and (nil ~= _2_.info) and (nil ~= _2_.error) and (nil ~= _2_.start)) then
local ok = _2_.ok
local info = _2_.info
local error = _2_.error
local start = _2_.start
return {report_start = start, report_info = info, report_error = error, report_ok = ok}
elseif (nil ~= _2_) then
local other = _2_
return other
else
return nil
end
end
local _local_1_ = _3_(...)
local report_start = _local_1_["report_start"]
local report_info = _local_1_["report_info"]
local report_ok = _local_1_["report_ok"]
Expand All @@ -11,78 +26,78 @@ local function bytes__3ehuman(bytes)
local function f(b)
return (b / 1024)
end
local function _2_(...)
local _3_ = ...
local function _4_(...)
local bytes0 = _3_[1]
local unit = _3_[2]
local function _5_(...)
local _6_ = ...
local function _7_(...)
local bytes0 = _6_[1]
local unit = _6_[2]
return (1023 < bytes0)
end
if (((_G.type(_3_) == "table") and (nil ~= _3_[1]) and (nil ~= _3_[2])) and _4_(...)) then
local bytes0 = _3_[1]
local unit = _3_[2]
local function _5_(...)
local _6_ = ...
local function _7_(...)
local kbytes = _6_[1]
local unit0 = _6_[2]
if (((_G.type(_6_) == "table") and (nil ~= _6_[1]) and (nil ~= _6_[2])) and _7_(...)) then
local bytes0 = _6_[1]
local unit = _6_[2]
local function _8_(...)
local _9_ = ...
local function _10_(...)
local kbytes = _9_[1]
local unit0 = _9_[2]
return (1023 < kbytes)
end
if (((_G.type(_6_) == "table") and (nil ~= _6_[1]) and (nil ~= _6_[2])) and _7_(...)) then
local kbytes = _6_[1]
local unit0 = _6_[2]
local function _8_(...)
local _9_ = ...
local function _10_(...)
local mbytes = _9_[1]
local unit1 = _9_[2]
if (((_G.type(_9_) == "table") and (nil ~= _9_[1]) and (nil ~= _9_[2])) and _10_(...)) then
local kbytes = _9_[1]
local unit0 = _9_[2]
local function _11_(...)
local _12_ = ...
local function _13_(...)
local mbytes = _12_[1]
local unit1 = _12_[2]
return (1023 < mbytes)
end
if (((_G.type(_9_) == "table") and (nil ~= _9_[1]) and (nil ~= _9_[2])) and _10_(...)) then
local mbytes = _9_[1]
local unit1 = _9_[2]
local function _11_(...)
local _12_ = ...
if ((_G.type(_12_) == "table") and (nil ~= _12_[1]) and (nil ~= _12_[2])) then
local gbytes = _12_[1]
local unit2 = _12_[2]
if (((_G.type(_12_) == "table") and (nil ~= _12_[1]) and (nil ~= _12_[2])) and _13_(...)) then
local mbytes = _12_[1]
local unit1 = _12_[2]
local function _14_(...)
local _15_ = ...
if ((_G.type(_15_) == "table") and (nil ~= _15_[1]) and (nil ~= _15_[2])) then
local gbytes = _15_[1]
local unit2 = _15_[2]
return fmt(unit2, gbytes)
elseif ((_G.type(_12_) == "table") and (nil ~= _12_[1]) and (nil ~= _12_[2])) then
local size = _12_[1]
local unit2 = _12_[2]
elseif ((_G.type(_15_) == "table") and (nil ~= _15_[1]) and (nil ~= _15_[2])) then
local size = _15_[1]
local unit2 = _15_[2]
return fmt(unit2, size)
else
return nil
end
end
return _11_({f(mbytes), "%.2fbg"})
elseif ((_G.type(_9_) == "table") and (nil ~= _9_[1]) and (nil ~= _9_[2])) then
local size = _9_[1]
local unit1 = _9_[2]
return _14_({f(mbytes), "%.2fbg"})
elseif ((_G.type(_12_) == "table") and (nil ~= _12_[1]) and (nil ~= _12_[2])) then
local size = _12_[1]
local unit1 = _12_[2]
return fmt(unit1, size)
else
return nil
end
end
return _8_({f(kbytes), "%.2fmb"})
elseif ((_G.type(_6_) == "table") and (nil ~= _6_[1]) and (nil ~= _6_[2])) then
local size = _6_[1]
local unit0 = _6_[2]
return _11_({f(kbytes), "%.2fmb"})
elseif ((_G.type(_9_) == "table") and (nil ~= _9_[1]) and (nil ~= _9_[2])) then
local size = _9_[1]
local unit0 = _9_[2]
return fmt(unit0, size)
else
return nil
end
end
return _5_({f(bytes0), "%dkb"})
elseif ((_G.type(_3_) == "table") and (nil ~= _3_[1]) and (nil ~= _3_[2])) then
local size = _3_[1]
local unit = _3_[2]
return _8_({f(bytes0), "%dkb"})
elseif ((_G.type(_6_) == "table") and (nil ~= _6_[1]) and (nil ~= _6_[2])) then
local size = _6_[1]
local unit = _6_[2]
return fmt(unit, size)
else
return nil
end
end
return _2_({bytes, "%db"})
return _5_({bytes, "%db"})
end
local function disk_info()
report_start("Hotpot Cache Data")
Expand All @@ -92,22 +107,22 @@ local function disk_info()
local paths = vim.fn.globpath(cache_root, "**", true, true, true)
local count = #paths
local size
local function _17_()
local function _20_()
local size0 = 0
for _, p in ipairs(paths) do
local function _18_(...)
local t_19_ = uv.fs_stat(p)
if (nil ~= t_19_) then
t_19_ = t_19_.size
local function _21_(...)
local t_22_ = uv.fs_stat(p)
if (nil ~= t_22_) then
t_22_ = t_22_.size
else
end
return t_19_
return t_22_
end
size0 = (size0 + _18_() + 0)
size0 = (size0 + _21_() + 0)
end
return size0
end
size = bytes__3ehuman(_17_())
size = bytes__3ehuman(_20_())
report_info(fmt("Cache root path: %s", cache_root))
return report_info(fmt("Cache size: %s files, %s", count, size))
end
Expand All @@ -117,11 +132,11 @@ local function log_info()
local path = logger.path()
local size
do
local _21_ = uv.fs_stat(path)
if (_21_ == nil) then
local _24_ = uv.fs_stat(path)
if (_24_ == nil) then
size = 0
elseif ((_G.type(_21_) == "table") and (nil ~= _21_.size)) then
local size0 = _21_.size
elseif ((_G.type(_24_) == "table") and (nil ~= _24_.size)) then
local size0 = _24_.size
size = bytes__3ehuman(size0)
else
size = nil
Expand All @@ -132,8 +147,8 @@ local function log_info()
end
local function searcher_info()
report_start("Hotpot Module Searcher")
local _let_23_ = require("hotpot.loader")
local searcher = _let_23_["searcher"]
local _let_26_ = require("hotpot.loader")
local searcher = _let_26_["searcher"]
local expected_index = 2
local actual_index
do
Expand Down
Loading

0 comments on commit 7f53e1d

Please sign in to comment.