commit stringlengths 40 40 | old_file stringlengths 6 181 | new_file stringlengths 6 181 | old_contents stringlengths 448 7.17k | new_contents stringlengths 449 7.17k | subject stringlengths 0 450 | message stringlengths 6 4.92k | lang stringclasses 1
value | license stringclasses 12
values | repos stringlengths 9 33.9k |
|---|---|---|---|---|---|---|---|---|---|
861d4c5db36310493c59d28435c7f51270fa084a | scen_edit/view/trigger/panels/position_panel.lua | scen_edit/view/trigger/panels/position_panel.lua | PositionPanel = AbstractTypePanel:extends{}
function PositionPanel:MakePredefinedOpt()
--PREDEFINED
local stackPositionPanel = MakeComponentPanel(self.parent)
self.cbPredefined = Checkbox:New {
caption = "Predefined position: ",
right = 100 + 10,
x = 1,
checked = false,
... | PositionPanel = AbstractTypePanel:extends{}
function PositionPanel:MakePredefinedOpt()
--PREDEFINED
local stackPositionPanel = MakeComponentPanel(self.parent)
self.cbPredefined = Checkbox:New {
caption = "Predefined position: ",
right = 100 + 10,
x = 1,
checked = false,
... | fix position panel | fix position panel
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
fffa3984933e407e63dad0bec8eb068b1677202d | applications/luci-wol/luasrc/model/cbi/wol.lua | applications/luci-wol/luasrc/model/cbi/wol.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local uc... | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local uc... | applications/luci-wol: fix XSS | applications/luci-wol: fix XSS
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6545 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | saraedum/luci-packages-old,jschmidlapp/luci,Canaan-Creative/luci,zwhfly/openwrt-luci,dtaht/cerowrt-luci-3.3,saraedum/luci-packages-old,jschmidlapp/luci,dtaht/cerowrt-luci-3.3,yeewang/openwrt-luci,saraedum/luci-packages-old,zwhfly/openwrt-luci,jschmidlapp/luci,Canaan-Creative/luci,saraedum/luci-packages-old,Canaan-Creat... |
c3d96600618add7768f713ccf1fcdddaf06dd1fb | share/lua/sd/appletrailers.lua | share/lua/sd/appletrailers.lua | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Ilkka Ollakka <ileoo at videolan dot org >
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at yo... | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Ilkka Ollakka <ileoo at videolan dot org >
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at yo... | appletrailers: fix location finding | appletrailers: fix location finding
| Lua | lgpl-2.1 | shyamalschandra/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,xkfz007/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,krichter722/vlc,... |
82980102afe6ae4a4aaae1252b48a1e33fbd8c9f | mod_register_json/mod_register_json.lua | mod_register_json/mod_register_json.lua | -- Expose a simple servlet to handle user registrations from web pages
-- via JSON.
--
-- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur
-- aka Zash.
local usermanager = require "core.usermanager";
local b64_decode = require "util.encodings".base64.decode;
local json_decode = require "util.json".d... | -- Expose a simple servlet to handle user registrations from web pages
-- via JSON.
--
-- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur
-- aka Zash.
local jid_prep = require "util.jid".prep;
local jid_split = require "util.jid".split;
local usermanager = require "core.usermanager";
local b64_deco... | mod_register_json: Failed at JSON successful decode check, fixed with a code refactor. | mod_register_json: Failed at JSON successful decode check, fixed with a code refactor.
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
8f8af0d8e8a4d7ca8ef93400417644b5e9fe865b | PluginsFolder/protoplug/include/core/script.lua | PluginsFolder/protoplug/include/core/script.lua | --- Use `script` to handle script-related events.
-- The `script` global is available to every protoplug script after including the
-- main protoplug header :
-- require "include/protoplug"
-- @module script
local script = {}
--- Add a handler for a script event.
-- The following events are available :
--
-- - `"in... | --- Use `script` to handle script-related events.
-- The `script` global is available to every protoplug script after including the
-- main protoplug header :
-- require "include/protoplug"
-- @module script
local script = {}
--- Add a handler for a script event.
-- The following events are available :
--
-- - `"in... | fixed script.saveData / loadData | fixed script.saveData / loadData
| Lua | mit | JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug |
d5d28e9660697d156d2793e8387a9ca4e3d1a282 | src_trunk/resources/job-system/fishing/s_fishing_job.lua | src_trunk/resources/job-system/fishing/s_fishing_job.lua | local totalCatch = 0
local fishSize = 0
-- /fish to start fishing.
function startFishing(thePlayer)
local element = getPedContactElement(thePlayer)
if not (isElement(element)) then
outputChatBox("You must be on a boat to fish.", thePlayer, 255, 0, 0)
else
if not (getElementType(element)=="vehicle") ... | local totalCatch = 0
local fishSize = 0
-- /fish to start fishing.
function startFishing(thePlayer)
local element = getPedContactElement(thePlayer)
if not (thePlayer) then thePlayer = source end
if not (isElement(element)) then
outputChatBox("You must be on a boat to fish.", thePlayer, 255, 0, 0)
... | Fishing fix. | Fishing fix.
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@508 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
ac428d37fcf57cb3ea9aa8923ec1d4ba299e8dd1 | roles/neovim/config/lua/irubataru/lsp/servers/sumneko_lua.lua | roles/neovim/config/lua/irubataru/lsp/servers/sumneko_lua.lua | local path = vim.split(package.path, ";")
table.insert(path, "lua/?.lua")
table.insert(path, "lua/?/init.lua")
local function setup_libraries()
local library = {}
local function add(lib)
for _, p in pairs(vim.fn.expand(lib, false, true)) do
p = vim.loop.fs_realpath(p)
library[p] = true
end
en... | local path = vim.split(package.path, ";")
table.insert(path, "lua/?.lua")
table.insert(path, "lua/?/init.lua")
local function setup_libraries()
local library = {}
local function add(lib)
for _, p in pairs(vim.fn.expand(lib, false, true)) do
p = vim.loop.fs_realpath(p)
library[p] = true
end
en... | fix(neovim): forgot to remove debug printing from sumneko | fix(neovim): forgot to remove debug printing from sumneko
| Lua | mit | Irubataru/dotfiles,Irubataru/dotfiles,Irubataru/dotfiles |
624798f56182caf80f062e547bf3b584320f0669 | src/extensions/cp/apple/finalcutpro/timeline/IndexRolesArea.lua | src/extensions/cp/apple/finalcutpro/timeline/IndexRolesArea.lua | --- === cp.apple.finalcutpro.timeline.IndexRolesArea ===
---
--- Represents the list of Roles in the [IndexRoles](cp.apple.finalcutpro.timeline.IndexRoles.md).
-- local log = require "hs.logger" .new "IndexRolesArea"
local axutils = require "cp.ui.axutils"
local ScrollArea ... | --- === cp.apple.finalcutpro.timeline.IndexRolesArea ===
---
--- Represents the list of Roles in the [IndexRoles](cp.apple.finalcutpro.timeline.IndexRoles.md).
-- local log = require "hs.logger" .new "IndexRolesArea"
local axutils = require "cp.ui.axutils"
local ScrollArea ... | Fixed documentation | Fixed documentation
| Lua | mit | CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost |
7c675e4a4b09c9090ec75d539459f4e45f82825c | mods/BeardLib-Editor/Classes/Map/UndoUnitHandler.lua | mods/BeardLib-Editor/Classes/Map/UndoUnitHandler.lua | UndoUnitHandler = UndoUnitHandler or class()
core:import("CoreStack")
local UHandler = UndoUnitHandler
function UHandler:init()
self._unit_data = {}
self._undo_stack = CoreStack.Stack:new()
self._redo_stack = CoreStack.Stack:new()
self._undo_history_size = BLE.Options:GetValue("UndoHistorySize")
end
... | UndoUnitHandler = UndoUnitHandler or class()
core:import("CoreStack")
local UHandler = UndoUnitHandler
function UHandler:init()
self._unit_data = {}
self._undo_stack = CoreStack.Stack:new()
self._redo_data = {}
self._undo_history_size = BLE.Options:GetValue("UndoHistorySize")
end
function UHandler:Sa... | fixed unit rotations, shortened the code | fixed unit rotations, shortened the code
| Lua | mit | simon-wh/PAYDAY-2-BeardLib-Editor |
31c5d92f3c316983479afbf3da1042beec809305 | packages/bandwidth-test/files/bin/bandwidth-test.lua | packages/bandwidth-test/files/bin/bandwidth-test.lua | #!/usr/bin/lua
local libuci_loaded, libuci = pcall(require, "uci")
local function config_uci_get(option)
local result
if libuci_loaded then
result = libuci:cursor():get("bandwidth-test","bandwidth_test",option)
else
result = nil
end
return result
end
local PIDfile = "/tmp/bandwidth-test-wget-pid"
local sin... | #!/usr/bin/lua
local libuci_loaded, libuci = pcall(require, "uci")
local function config_uci_get(option)
local result
if libuci_loaded then
result = libuci:cursor():get("bandwidth-test","bandwidth_test",option)
else
result = nil
end
return result
end
local PIDfile = "/tmp/bandwidth-test-wget-pid"
local sin... | fix -h in bandwidth-test | fix -h in bandwidth-test
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
beb85c3967fd49f0a7b8c9514e537d35785d6850 | core/certmanager.lua | core/certmanager.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager");... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager");... | certmanager: Fix traceback if no global 'ssl' section set (thanks albert) | certmanager: Fix traceback if no global 'ssl' section set (thanks albert)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
15d0c26811df0baf0bd9035805a14fc23baa3c1b | MMOCoreORB/bin/scripts/screenplays/tasks/epic_quests/zicxBugBomb.lua | MMOCoreORB/bin/scripts/screenplays/tasks/epic_quests/zicxBugBomb.lua | local ObjectManager = require("managers.object.object_manager")
jowir_arlensa_missions =
{
{
missionType = "confiscate",
preReq = { type = "item", itemTemplate = "object/tangible/loot/quest/quest_item_goru_calling_card.iff", destroy = true },
primarySpawns =
{
{ npcTemplate = "jowir_valarian_assassi... | local ObjectManager = require("managers.object.object_manager")
jowir_arlensa_missions =
{
{
missionType = "confiscate",
preReq = { type = "item", itemTemplate = "object/tangible/loot/quest/quest_item_goru_calling_card.iff", destroy = true },
primarySpawns =
{
{ npcTemplate = "jowir_valarian_assassi... | [fixed] stability issue | [fixed] stability issue
Change-Id: I1881a4c06fda26409beeab44a00aca5ec1a1c94a
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege... |
5a068835ce173ae2a5be2cb92fd2d66db4737404 | hammerspoon/init.lua | hammerspoon/init.lua | -- Helper Functions
function sleep(n)
os.execute("sleep " .. tonumber(n))
end
-- Reload config on write.
function reloadConfig(files)
doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.reload()
end
end
hs.pathwatcher.n... | -- Helper Functions
function sleep(n)
os.execute("sleep " .. tonumber(n))
end
-- Reload config on write.
function reloadConfig(files)
doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.reload()
end
end
hs.pathwatcher.n... | Fix hammerspoon music keys and add one to center a window. | Fix hammerspoon music keys and add one to center a window.
| Lua | mit | squaresurf/dotfiles,squaresurf/dotfiles,squaresurf/dotfiles |
a30df2a269e57cf15e5a9f29022aa2e3d08cbebc | src/patch/ui/hooks/after_stagingroom.lua | src/patch/ui/hooks/after_stagingroom.lua | if _mpPatch and _mpPatch.enabled and _mpPatch.isModding then
local confirmChat = "mppatch:gamelaunchcountdown:WgUUz7wWuxWFmjY02WFS0mka53nFDzJvD00zmuQHKyJT2wNHuWZvrDcejHv5rTyl"
local gameLaunchSet = false
local gameLaunchCountdown = 3
local StartCountdownOld = StartCountdown
function StartCountdown... | if _mpPatch and _mpPatch.enabled and _mpPatch.isModding then
local confirmChat = "mppatch:gamelaunchcountdown:WgUUz7wWuxWFmjY02WFS0mka53nFDzJvD00zmuQHKyJT2wNHuWZvrDcejHv5rTyl"
local gameLaunchSet = false
local gameLaunchCountdown = 3
local StartCountdownOld = StartCountdown
function StartCountdown... | Fix stagingroom more. | Fix stagingroom more.
| Lua | mit | Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/CivV_Mod2DLC |
788fd7cdca9d681763a31df05b98a234733d3402 | xmake/actions/install/install.lua | xmake/actions/install/install.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix install tips | fix install tips
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
2be2fca375588dd502ad2336e6d657b663afea2b | applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua | applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loc... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | applications/luci-firewall: fix datatype validation for masq src/dest; allow list of negated ucinames, hostnames, ip-ranges or -addresses | applications/luci-firewall: fix datatype validation for masq src/dest; allow list of negated ucinames, hostnames, ip-ranges or -addresses
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8154 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
3cffc5e5de199d944fef4298a629fef30efbedc1 | game/scripts/vscripts/items/item_scythe_of_the_ancients.lua | game/scripts/vscripts/items/item_scythe_of_the_ancients.lua | LinkLuaModifier("modifier_item_scythe_of_the_ancients_passive", "items/item_scythe_of_the_ancients.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_scythe_of_the_ancients_stun", "items/item_scythe_of_the_ancients.lua", LUA_MODIFIER_MOTION_NONE)
item_scythe_of_the_ancients = class({
GetIntrinsicModifierN... | LinkLuaModifier("modifier_item_scythe_of_the_ancients_passive", "items/item_scythe_of_the_ancients.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_scythe_of_the_ancients_stun", "items/item_scythe_of_the_ancients.lua", LUA_MODIFIER_MOTION_NONE)
item_scythe_of_the_ancients = class({
GetIntrinsicModifierN... | fix(items): scythe of the ancients reflects batrider's sticky napalm | fix(items): scythe of the ancients reflects batrider's sticky napalm
Fixes #383.
| Lua | mit | ark120202/aabs |
34e3e6900ac2037aabd5475065d68ac454b1447d | kong/plugins/liamp/iam-ecs-credentials.lua | kong/plugins/liamp/iam-ecs-credentials.lua | -- This code is reverse engineered from the original AWS sdk. Specifically:
-- https://github.com/aws/aws-sdk-js/blob/c175cb2b89576f01c08ebf39b232584e4fa2c0e0/lib/credentials/remote_credentials.js
local function makeset(t)
for i = 1, #t do
t[t[i]] = true
end
return t
end
local plugin_name = ({...})[1]:matc... | -- This code is reverse engineered from the original AWS sdk. Specifically:
-- https://github.com/aws/aws-sdk-js/blob/c175cb2b89576f01c08ebf39b232584e4fa2c0e0/lib/credentials/remote_credentials.js
local function makeset(t)
for i = 1, #t do
t[t[i]] = true
end
return t
end
local plugin_name = ({...})[1]:matc... | fix(aws-lambda) force a port if omitted from the url | fix(aws-lambda) force a port if omitted from the url
If no port is provided, a default port, 80 or 443 is used based
on the scheme of the url.
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
f3dc7cbfa9eb89f2649976c46abf1eae7d185fb5 | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
loc... | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
loc... | protocols/core: fix defaultroute setting for DHCP interfaces | protocols/core: fix defaultroute setting for DHCP interfaces
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8702 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
6e799cf4f7339731d561385ec868914a043b711a | pages/community/guilds/view/get.lua | pages/community/guilds/view/get.lua | function get()
local data = {}
local cache = false
data.guild, cache = db:singleQuery("SELECT a.id, a.ownerid, a.name as guildname, a.creationdata, a.motd, b.name, (SELECT COUNT(1) FROM guild_membership WHERE a.id = guild_id) AS members, (SELECT COUNT(1) FROM guild_membership c, players_online d WHERE c.player_id = d.... | function get()
local data = {}
local cache = false
data.guild, cache = db:singleQuery("SELECT a.id, a.ownerid, a.name as guildname, a.creationdata, a.motd, b.name, (SELECT COUNT(1) FROM guild_membership WHERE a.id = guild_id) AS members, (SELECT COUNT(1) FROM guild_membership c, players_online d WHERE c.player_id = d.... | Fix guild view if not logged in | Fix guild view if not logged in
| Lua | mit | Raggaer/castro,Raggaer/castro,Raggaer/castro |
72c40002a30640b98590c7d09ffc13feb3432c78 | lib/switchboard_modules/lua_script_debugger/premade_scripts/Advanced_Scripts/Task-Scheduler_1.0.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/Advanced_Scripts/Task-Scheduler_1.0.lua | print("LabJack Lua Task Scheduler Example. Version 1.0")
-- Requires Firmware 1.0199 or higher
-- This script demonstrates a simple task scheduler used to execute multiple tasks
-- at regular intervals to 1ms resolution.
-- Note: Increase scheduler resolution to reduce CPU load on the T7 processor.
-- Directions:
-- 1... | print("LabJack Lua Task Scheduler Example. Version 1.0")
-- Requires Firmware 1.0199 or higher
-- This script demonstrates a simple task scheduler used to execute multiple tasks
-- at regular intervals to 1ms resolution.
-- Note: Increase scheduler resolution to reduce CPU load on the T7 processor.
-- Directions:
-- 1... | Fixing delay message | Fixing delay message
The task is not necessarily delayed when IntvlCnt is greater than 1. For example, if the task had 2 ms left before it was supposed to be scheduled and IntvlCnt is 2, the task will be (serendipitously) initiated right on time. | Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
8ca9c6f6f4f6acfcf8b593290deaa858a069e6c7 | third_party/spirv-tools.lua | third_party/spirv-tools.lua | group("third_party")
project("spirv-tools")
uuid("621512da-bb50-40f2-85ba-ae615ff13e68")
kind("StaticLib")
language("C++")
links({
})
defines({
"_LIB",
})
includedirs({
"spirv-tools/external/include",
"spirv-tools/include",
})
files({
"spirv-tools/external/include/headers/GLSL.std.45... | group("third_party")
project("spirv-tools")
uuid("621512da-bb50-40f2-85ba-ae615ff13e68")
kind("StaticLib")
language("C++")
links({
})
defines({
"_LIB",
})
includedirs({
"spirv-tools/external/include",
"spirv-tools/include",
})
files({
"spirv-tools/include/spirv/GLSL.std.450.h",
"... | Fix spirv-tools incorrect includes | Fix spirv-tools incorrect includes
| Lua | bsd-3-clause | sabretooth/xenia,ObsidianGuardian/xenia,sephiroth99/xenia,sephiroth99/xenia,sabretooth/xenia,maxton/xenia,maxton/xenia,sabretooth/xenia,ObsidianGuardian/xenia,maxton/xenia,sephiroth99/xenia,ObsidianGuardian/xenia |
2cbe2d29338d701b8baaa1cafb39d2f9ffeaeb30 | applications/luci-statistics/src/model/cbi/admin_statistics/iptables.lua | applications/luci-statistics/src/model/cbi/admin_statistics/iptables.lua | --[[
Luci configuration model for statistics - collectd iptables plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice... | --[[
Luci configuration model for statistics - collectd iptables plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice... | * ffluci/statistics: fix c'n'p errors in iptables cbi model | * ffluci/statistics: fix c'n'p errors in iptables cbi model
| Lua | apache-2.0 | joaofvieira/luci,tcatm/luci,keyidadi/luci,jorgifumi/luci,mumuqz/luci,fkooman/luci,dwmw2/luci,thesabbir/luci,NeoRaider/luci,bright-things/ionic-luci,remakeelectric/luci,Noltari/luci,RuiChen1113/luci,marcel-sch/luci,LazyZhu/openwrt-luci-trunk-mod,teslamint/luci,david-xiao/luci,LazyZhu/openwrt-luci-trunk-mod,sujeet14108/l... |
bd6009326fb468890ddabc16d6014916f08710ff | src/luarocks/cmd/build.lua | src/luarocks/cmd/build.lua |
--- Module implementing the LuaRocks "build" command.
-- Builds a rock, compiling its C parts if any.
local cmd_build = {}
local dir = require("luarocks.dir")
local pack = require("luarocks.pack")
local path = require("luarocks.path")
local util = require("luarocks.util")
local fetch = require("luarocks.fetch")
local... |
--- Module implementing the LuaRocks "build" command.
-- Builds a rock, compiling its C parts if any.
local cmd_build = {}
local dir = require("luarocks.dir")
local pack = require("luarocks.pack")
local path = require("luarocks.path")
local util = require("luarocks.util")
local fetch = require("luarocks.fetch")
local... | Fix build --no-doc | Fix build --no-doc
| Lua | mit | luarocks/luarocks,keplerproject/luarocks,luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks,luarocks/luarocks,keplerproject/luarocks |
54b33bd6a7853653f74d33e6cf3e22d5193bbb64 | frontend/ui/device.lua | frontend/ui/device.lua | Device = {
screen_saver_mode = false,
charging_mode = false,
}
function Device:getModel()
local std_out = io.popen("grep 'MX' /proc/cpuinfo | cut -d':' -f2 | awk {'print $2'}", "r")
local cpu_mod = std_out:read()
if not cpu_mod then
return nil
end
if cpu_mod == "MX50" then
local f = lfs.attributes("/sys/d... | Device = {
screen_saver_mode = false,
charging_mode = false,
}
function Device:getModel()
local std_out = io.popen("grep 'MX' /proc/cpuinfo | cut -d':' -f2 | awk {'print $2'}", "r")
local cpu_mod = std_out:read()
if not cpu_mod then
local ret = os.execute("grep 'Hardware : Mario Platform' /proc/cpuinfo", "r")
... | fix DXG detection | fix DXG detection
| Lua | agpl-3.0 | lgeek/koreader,Hzj-jie/koreader-base,Hzj-jie/koreader-base,poire-z/koreader,Hzj-jie/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,houqp/koreader,ashhher3/koreader,Frenzie/koreader-base,NiLuJe/koreader-base,frankyifei/koreader-base,frankyifei/koreader-base,houqp/koreader-base,mihailim/kore... |
fc3ef2567cf97298b48f2fb12482d5eda670c083 | lua/tests/expression.lua | lua/tests/expression.lua | -- Copyright (c) 2009 Incremental IP Limited
-- see license.txt for license information
local series = require("test.series")
local expression = require("rima.expression")
local scope = require("rima.scope")
local object = require("rima.object")
local rima = require("rima")
module(...)
-- Tests ---------------------... | -- Copyright (c) 2009 Incremental IP Limited
-- see license.txt for license information
local series = require("test.series")
local expression = require("rima.expression")
local scope = require("rima.scope")
local object = require("rima.object")
local rima = require("rima")
module(...)
-- Tests ---------------------... | fixed careless use of nil in tables in expression tests | fixed careless use of nil in tables in expression tests
| Lua | mit | geoffleyland/rima,geoffleyland/rima,geoffleyland/rima |
235a6cc256f2770889f8c493efa0aed037731a2b | premake5.lua | premake5.lua | solution "ponyc"
configurations { "Debug", "Release", "Profile" }
location( _OPTIONS["to"] )
flags {
"FatalWarnings",
"MultiProcessorCompile",
"ReleaseRuntime" --for all configs
}
configuration "Debug"
targetdir "bin/debug"
objdir "obj/debug"
defines "DEBUG"
... | local force_cpp = { }
function cppforce(inFiles)
for _, val in ipairs(inFiles) do
for _, fname in ipairs(os.matchfiles(val)) do
table.insert(force_cpp, path.getabsolute(fname))
end
end
end
-- gmake
premake.override(path, "iscfile", function(base, fname)
if table.cont... | fixed premake5.lua | fixed premake5.lua
| Lua | bsd-2-clause | mkfifo/ponyc,sgebbie/ponyc,CausalityLtd/ponyc,jemc/ponyc,jemc/ponyc,Praetonus/ponyc,ryanai3/ponyc,boemmels/ponyc,dipinhora/ponyc,jupvfranco/ponyc,Perelandric/ponyc,jupvfranco/ponyc,jemc/ponyc,ryanai3/ponyc,gwelr/ponyc,cquinn/ponyc,pap/ponyc,kulibali/ponyc,darach/ponyc,dipinhora/ponyc,cquinn/ponyc,cquinn/ponyc,lukechees... |
69b58cf189d4e49f33bea8912babfae3e2bac300 | premake5.lua | premake5.lua | include("build_tools")
location(build_root)
targetdir(build_bin)
objdir(build_obj)
includedirs({
".",
"src",
"third_party",
})
defines({
"_UNICODE",
"UNICODE",
})
vectorextensions("AVX")
flags({
--"ExtraWarnings", -- Sets the compiler's maximum warning level.
"FatalWarnings", -- Treat wa... | include("build_tools")
location(build_root)
targetdir(build_bin)
objdir(build_obj)
includedirs({
".",
"src",
"third_party",
})
defines({
"_UNICODE",
"UNICODE",
})
vectorextensions("AVX")
flags({
--"ExtraWarnings", -- Sets the compiler's maximum warning level.
"FatalWarnings", -- Treat wa... | Fixing checked build. | Fixing checked build.
| Lua | bsd-3-clause | KitoHo/xenia,sephiroth99/xenia,sabretooth/xenia,galek/xenia,KitoHo/xenia,no1dead/xenia,no1dead/xenia,TRex22/xenia,ObsidianGuardian/xenia,maxton/xenia,ObsidianGuardian/xenia,TRex22/xenia,maxton/xenia,sephiroth99/xenia,KitoHo/xenia,galek/xenia,sephiroth99/xenia,TRex22/xenia,maxton/xenia,sabretooth/xenia,sabretooth/xenia,... |
af5a25b187977199ba3326666f0c1f6508b7c5fd | config/nvim/lua/user/completion.lua | config/nvim/lua/user/completion.lua | local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local snip_status_ok, luasnip = pcall(require, "luasnip")
if not snip_status_ok then
return
end
require("luasnip/loaders/from_vscode").lazy_load()
local check_backspace = function()
local col = vim.fn.col "." - 1
return col... | local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local snip_status_ok, luasnip = pcall(require, "luasnip")
if not snip_status_ok then
return
end
require("luasnip/loaders/from_vscode").lazy_load()
local check_backspace = function()
local col = vim.fn.col "." - 1
return col... | Updated packer. Bufferline: Remove/Install. nvim-cmp: Fixed obsolete param | Updated packer. Bufferline: Remove/Install. nvim-cmp: Fixed obsolete param
| Lua | mit | hust921/dotfiles,hust921/dotfiles |
2ed91da8910506535151dd083931035386bcaed2 | player.lua | player.lua | local Player = class('Player', Base)
Player.static.SPEED = 200
local getUVs = require('getUVs')
local radius = 20
local function physicsCharacter(char)
char.body = love.physics.newBody(game.world, char.x, char.y, 'dynamic')
local shape = love.physics.newCircleShape(radius)
char.fixture = love.physics.newFixtur... | local Player = class('Player', Base)
Player.static.SPEED = 200
local getUVs = require('getUVs')
local radius = 20
local function physicsCharacter(char)
char.body = love.physics.newBody(game.world, char.x, char.y, 'dynamic')
local shape = love.physics.newCircleShape(radius)
char.fixture = love.physics.newFixtur... | fix player drift from non-zeroing controller | fix player drift from non-zeroing controller | Lua | mit | TannerRogalsky/GGJ2017 |
df09dda937e66ea788f78f1779e0de3aa5d76b2f | luasrc/mch/console.lua | luasrc/mch/console.lua | local utils = require("mch.util")
module('mch.console', package.seeall)
function getMembers(t, o)
local tp
for i, j in pairs(o) do
if type(i) == 'string' then
if type(j) == 'function' then
tp = true
else
tp = false
end
t[i] = tp
end
end
return t
end
function ta... | local utils = require("mch.util")
module('mch.console', package.seeall)
function getMembers(t, o)
local tp
for i, j in pairs(o) do
if type(i) == 'string' then
if type(j) == 'function' then
tp = true
else
tp = false
end
t[i] = tp
end
end
return t
end
function ta... | mch.console: fix a bug; use debug instead of info logging | mch.console: fix a bug; use debug instead of info logging
| Lua | apache-2.0 | lilien1010/moochine,lilien1010/moochine,appwilldev/moochine,lilien1010/moochine,appwilldev/moochine |
2e59e6db2095ab31b867745480a2f1eb124de037 | src/lib/yang/util.lua | src/lib/yang/util.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local lib = require("core.lib")
local ffi = require("ffi")
local ipv4 = require("lib.protocol.ipv4")
ffi.cdef([[
unsigned long long strtoull (const char *nptr, const char **endptr, int base);
]])
function toint... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local lib = require("core.lib")
local ffi = require("ffi")
local ipv4 = require("lib.protocol.ipv4")
ffi.cdef([[
unsigned long long strtoull (const char *nptr, const char **endptr, int base);
]])
function toint... | Fix parsing of ISO8601 date format | Fix parsing of ISO8601 date format
According to ISO8601 format, a Z is equivalent to zero timezone offset
(+00:00). If the timezone difference is higher or lower than zero,
there's no Z and timediff is encoded as [+-]XX:XX.
| Lua | apache-2.0 | SnabbCo/snabbswitch,Igalia/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,snabbco/snabb,Igalia/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,alexandergall/snabbswitch,Igalia/snabbswitch,snabbco/snabb,Igalia/snabbswitch,eugeneia/snabb,eugeneia/snabb,SnabbCo/snabbswitch,alexand... |
5d131bdd6cea7abdad719f0826d15f31545f8ceb | hammerspoon/modules/homebrew.lua | hammerspoon/modules/homebrew.lua | -- Homebrew menubar
local Homebrew = {
menubar = hs.menubar.new(),
items = {},
disabled = false,
notified = false,
}
function Homebrew:loadOutdated()
self.items = {}
local pipe = io.popen('/usr/local/bin/brew outdated -1 --quiet', 'r')
for item in pipe:lines() do
table.insert(se... | -- Homebrew menubar
local Homebrew = {
menubar = hs.menubar.new(),
items = {},
disabled = false,
notified = false,
}
function Homebrew:loadOutdated()
self.items = {}
local pipe = io.popen('/usr/local/bin/brew outdated -1 --quiet', 'r')
for item in pipe:lines() do
table.insert(se... | hammerspoon: Fix homebrew menu | hammerspoon: Fix homebrew menu
| Lua | mit | sebastianmarkow/dotfiles |
2c3544204c73ae9d85c508207e67f3228bc2efe7 | Normalize.lua | Normalize.lua | local Normalize, parent = torch.class('nn.Normalize', 'nn.Module')
function Normalize:__init(p,eps)
parent.__init(self)
assert(p,'p-norm not provided')
assert(p > 0, p..'-norm not supported')
self.p = p
self.eps = eps or 1e-10
end
function Normalize:updateOutput(input)
assert(input:dim() <= 2, 'only 1d la... | local Normalize, parent = torch.class('nn.Normalize', 'nn.Module')
function Normalize:__init(p,eps)
parent.__init(self)
assert(p,'p-norm not provided')
assert(p > 0, p..'-norm not supported')
self.p = p
self.eps = eps or 1e-10
self._output = torch.Tensor()
self._gradInput = torch.Tensor()
end
function N... | Fix modification of output in nn.Normalize | Fix modification of output in nn.Normalize
| Lua | bsd-3-clause | apaszke/nn,andreaskoepf/nn,elbamos/nn,eriche2016/nn,kmul00/nn,rotmanmi/nn,clementfarabet/nn,PraveerSINGH/nn,jonathantompson/nn,Moodstocks/nn,nicholas-leonard/nn,colesbury/nn,caldweln/nn,sagarwaghmare69/nn,diz-vara/nn,vgire/nn,lukasc-ch/nn,jhjin/nn,eulerreich/nn,witgo/nn,mlosch/nn,xianjiec/nn,joeyhng/nn |
f7610db744c172680354fa2558b73744fddd69e4 | modules/title/post/pgolds.lua | modules/title/post/pgolds.lua | local os = require 'os'
local iconv = require'iconv'
local dbi = require 'DBI'
require'logging.console'
local log = logging.console()
-- Open connection to the postgresql database using DBI lib and ivar2 global config
local openDb = function()
-- TODO save/cache connection
local dbh = DBI.Connect('PostgreSQ... | local os = require 'os'
local iconv = require'iconv'
local dbi = require 'DBI'
require'logging.console'
local log = logging.console()
-- Open connection to the postgresql database using DBI lib and ivar2 global config
local openDb = function()
-- TODO save/cache connection
local dbh = DBI.Connect('PostgreSQ... | Fix the argument, fix count check | Fix the argument, fix count check
Former-commit-id: bc582db541b809b1e19ceaa1ffb28a7896a21539 [formerly 4f442204d02925d33225e7ac1a225d38b8cc5850]
Former-commit-id: 1adf22e7c2fc488da295340b283b015cbb137fa1 | Lua | mit | torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2 |
bdf7749fa709a427d99ba33f163d27d5f037cc81 | core/storagemanager.lua | core/storagemanager.lua |
local error, type = error, type;
local setmetatable = setmetatable;
local config = require "core.configmanager";
local datamanager = require "util.datamanager";
local modulemanager = require "core.modulemanager";
local multitable = require "util.multitable";
local hosts = hosts;
local log = require "util.logger".init... |
local error, type = error, type;
local setmetatable = setmetatable;
local config = require "core.configmanager";
local datamanager = require "util.datamanager";
local modulemanager = require "core.modulemanager";
local multitable = require "util.multitable";
local hosts = hosts;
local log = require "util.logger".init... | storagemanager: Fixed a nil global access. | storagemanager: Fixed a nil global access.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
076e5672adba3a7c1dca3a9e6651d5a65092e426 | applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua | applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua | -- Copyright 2018 Rosy Song <rosysong@rosinson.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.nft-qos", package.seeall)
function index()
if not nixio.fs.access("/etc/config/nft-qos") then
return
end
entry({"admin", "status", "realtime", "rate"},
template("nft-qos/rate"), ... | -- Copyright 2018 Rosy Song <rosysong@rosinson.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.nft-qos", package.seeall)
function index()
if not nixio.fs.access("/etc/config/nft-qos") then
return
end
entry({"admin", "status", "realtime", "rate"},
template("nft-qos/rate"), ... | luci-app-nft-qos: fix monitor doesn't work when there no ipv6 support. | luci-app-nft-qos: fix monitor doesn't work when there no ipv6 support.
Signed-off-by: Rosy Song <b182a441cb793564b5fdddcebd4888e9c99f5e28@rosinson.com>
| Lua | apache-2.0 | hnyman/luci,openwrt/luci,hnyman/luci,rogerpueyo/luci,Noltari/luci,tobiaswaldvogel/luci,tobiaswaldvogel/luci,artynet/luci,artynet/luci,openwrt-es/openwrt-luci,artynet/luci,Noltari/luci,hnyman/luci,artynet/luci,nmav/luci,rogerpueyo/luci,openwrt-es/openwrt-luci,nmav/luci,hnyman/luci,nmav/luci,openwrt/luci,hnyman/luci,arty... |
808e76f30ac2dbafe49c228f184af44685b8b5f4 | decode.lua | decode.lua | require 'torch'
require 'cudnn'
require 'src.Model'
require 'src.utilities'
require 'src.WidthBatcher'
local str2bool_table = {
['true'] = true, ['false'] = false,
['t'] = true, ['f'] = false,
['True'] = true, ['False'] = false,
['1'] = true, ['0'] = false,
['TRUE'] = true, ['FALSE'] = false
}
local a... | require 'torch'
require 'cudnn'
require 'src.Model'
require 'src.utilities'
require 'src.WidthBatcher'
local str2bool_table = {
['true'] = true, ['false'] = false,
['t'] = true, ['f'] = false,
['True'] = true, ['False'] = false,
['1'] = true, ['0'] = false,
['TRUE'] = true, ['FALSE'] = false
}
local a... | Fixed decoding | Fixed decoding
| Lua | mit | jpuigcerver/Laia,jpuigcerver/Laia,jpuigcerver/Laia,jpuigcerver/Laia |
512d5debdfad94f1e1f15857e8b0b5f80ecf69c1 | lua/entities/gmod_wire_expression2/core/custom/remoteupload.lua | lua/entities/gmod_wire_expression2/core/custom/remoteupload.lua | E2Lib.RegisterExtension("remoteupload", false)
local antispam = {}
local function check(ply)
if antispam[ply] and antispam[ply] > CurTime() then
return false
else
antispam[ply] = CurTime() + 1
return true
end
end
umsg.PoolString("e2_remoteupload_request")
__e2setcost(1000)
e2function void entity:remoteUplo... | E2Lib.RegisterExtension("remoteupload", false)
local antispam = {}
local function check(ply)
if antispam[ply] and antispam[ply] > CurTime() then
return false
else
antispam[ply] = CurTime() + 1
return true
end
end
umsg.PoolString("e2_remoteupload_request")
__e2setcost(1000)
e2function void entity:remoteUplo... | Fixed remoteSetCode not working | Fixed remoteSetCode not working
TIMERS
SOLVE
EVERYTHING
Fixes #758
| Lua | apache-2.0 | plinkopenguin/wiremod,Python1320/wire,Grocel/wire,bigdogmat/wire,CaptainPRICE/wire,sammyt291/wire,rafradek/wire,wiremod/wire,dvdvideo1234/wire,notcake/wire,mitterdoo/wire,immibis/wiremod,thegrb93/wire,garrysmodlua/wire,NezzKryptic/Wire,mms92/wire |
69649f2708c1c54c32645c6f9d83f86b0e835bc7 | libs/core/luasrc/init.lua | libs/core/luasrc/init.lua | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | libs/core: make sure that bitlib is loaded, fixes some sdk problems | libs/core: make sure that bitlib is loaded, fixes some sdk problems
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@4537 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
6ff0d11af321545bef10aec99ea0158d83fc9de4 | src/ngx-oauth/config.lua | src/ngx-oauth/config.lua | ---------
-- Module for configuration loading.
local util = require 'ngx-oauth.util'
local contains = util.contains
local is_blank = util.is_blank
local map = util.map
local par = util.partial
local M = {}
local defaults = {
client_id = '',
client_secret = '',
scope = '',
r... | ---------
-- Module for configuration loading.
local util = require 'ngx-oauth.util'
local contains = util.contains
local is_blank = util.is_blank
local map = util.map
local par = util.partial
local M = {}
local defaults = {
client_id = '',
client_secret = '',
scope = '',
r... | Fix compatibility with Lua 5.3 | Fix compatibility with Lua 5.3
| Lua | mit | jirutka/ngx-oauth,jirutka/ngx-oauth |
5281d65abddc7ff7a65e0683245e5db6a38e828c | libs/fs.lua | libs/fs.lua | local prev, pl, dirname, dir = ...
local glob = prev.require 'posix.glob'.glob
local romPath = pl.path.normpath(pl.path.join(dirname, 'cc'))
local function findRomFile(path)
return pl.path.normpath(pl.path.join(romPath, path))
end
local function betterifyPath(path)
local oldPath
while oldPath ~= path do
oldPath... | local prev, pl, dirname, dir = ...
local glob = prev.require 'posix.glob'.glob
local romPath = pl.path.normpath(pl.path.join(dirname, 'cc'))
local function findRomFile(path)
return pl.path.normpath(pl.path.join(romPath, path))
end
local function betterifyPath(path)
local oldPath
while oldPath ~= path do
oldPath... | Fix fs.open (creating files and closing files multiple times) | Fix fs.open (creating files and closing files multiple times)
| Lua | mit | CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu |
a82bafc63cdb41ca7266aef210fb8fddad87c31b | frontend/ui/rendertext.lua | frontend/ui/rendertext.lua | local Font = require("ui/font")
local Screen = require("device").screen
local Cache = require("cache")
local CacheItem = require("cacheitem")
local BlitBuffer = require("ffi/blitbuffer")
local DEBUG = require("dbg")
--[[
TODO: all these functions should probably be methods on Face objects
]]--
local RenderText = {}
l... | local Font = require("ui/font")
local Screen = require("device").screen
local Cache = require("cache")
local CacheItem = require("cacheitem")
local BlitBuffer = require("ffi/blitbuffer")
local DEBUG = require("dbg")
--[[
TODO: all these functions should probably be methods on Face objects
]]--
local RenderText = {}
l... | fix handling of invalid UTF8 sequences | fix handling of invalid UTF8 sequences
external data (and in bad cases our own) can contain invalid byte
sequences in UTF8 strings. A prominent example are file names.
There was a 1-off bug in calculating the allowed length for multibyte
chars, and the iterator was a bit too greedy when stumbling upon
invalid sequence... | Lua | agpl-3.0 | apletnev/koreader,ashhher3/koreader,Markismus/koreader,chrox/koreader,chihyang/koreader,Frenzie/koreader,NiLuJe/koreader,houqp/koreader,mwoz123/koreader,poire-z/koreader,robert00s/koreader,Frenzie/koreader,pazos/koreader,poire-z/koreader,ashang/koreader,frankyifei/koreader,koreader/koreader,mihailim/koreader,lgeek/kore... |
df3688f56a2d738d0065ab386ffc46e9bd7da2f5 | src/actions/vstudio/vs2010_rules_xml.lua | src/actions/vstudio/vs2010_rules_xml.lua | ---
-- vs2010_rules_xml.lua
-- Generate a Visual Studio 201x custom rules XML file.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
premake.vstudio.vs2010.rules.xml = {}
local m = premake.vstudio.vs2010.rules.xml
m.elements = {}
local p = premake
---
-- Entry point; generate the root <ProjectSch... | ---
-- vs2010_rules_xml.lua
-- Generate a Visual Studio 201x custom rules XML file.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
premake.vstudio.vs2010.rules.xml = {}
local m = premake.vstudio.vs2010.rules.xml
m.elements = {}
local p = premake
---
-- Entry point; generate the root <ProjectSch... | Basic support for boolean properties, some fixes | Basic support for boolean properties, some fixes
| Lua | bsd-3-clause | LORgames/premake-core,xriss/premake-core,jstewart-amd/premake-core,saberhawk/premake-core,akaStiX/premake-core,resetnow/premake-core,aleksijuvani/premake-core,Tiger66639/premake-core,sleepingwit/premake-core,prapin/premake-core,dcourtois/premake-core,martin-traverse/premake-core,mendsley/premake-core,premake/premake-co... |
d468e3e67b3b9a327a41fe5c1c71754a75dab7ef | new/types.lua | new/types.lua | local base_types = (...) or {}
local BaseType = function(s)
s = tostring(s)
return {
get = function(j)
return 'lua_to'..s..'(L, '..tostring(j)..')', 1
end,
push = function(j) -- must handle arguments (e.g. in virtual callbacks) and return values
return 'lua_push'..s..'(L, '..tostring(j)..')', 1
end,
}... | local base_types = (...) or {}
local BaseType = function(s)
s = tostring(s)
return {
get = function(j)
return 'lua_to'..s..'(L, '..tostring(j)..')', 1
end,
push = function(j) -- must handle arguments (e.g. in virtual callbacks) and return values
return 'lua_push'..s..'(L, '..tostring(j)..')', 1
end,
}... | fixed Q.*F to use numbers instead of doubles | fixed Q.*F to use numbers instead of doubles
| Lua | mit | mkottman/lqt,mkottman/lqt |
3fc0817a2d8f02ad14feead0b13435a27f000ef1 | src/patch/ui/hooks/joiningroom_enablemods.lua | src/patch/ui/hooks/joiningroom_enablemods.lua | if _mpPatch and _mpPatch.loaded then
Modding = _mpPatch.hookTable(Modding, {ActivateAllowedDLC = function(...)
_mpPatch.overrideModsFromPreGame()
return Modding._super.ActivateAllowedDLC(...)
end})
local function enterLobby()
UIManager:QueuePopup(Controls.StagingRoomScreen, PopupPri... | if _mpPatch and _mpPatch.loaded then
Modding = _mpPatch.hookTable(Modding, {ActivateAllowedDLC = function(...)
_mpPatch.overrideModsFromPreGame()
return Modding._super.ActivateAllowedDLC(...)
end})
local function enterLobby()
UIManager:QueuePopup(Controls.StagingRoomScreen, PopupPri... | Fix joiningroom. | Fix joiningroom.
| Lua | mit | Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/CivV_Mod2DLC,Lymia/MultiverseModManager |
550ea7ca579b2b7d183bf84eab58ed57ce519af4 | Peripherals/WEB/webthread.lua | Peripherals/WEB/webthread.lua | require("love.thread")
local to_channel = love.thread.getChannel("To_WebThread")
local from_channel = love.thread.getChannel("From_WebThread")
local request = require("Engine.luajit-request")
local json = require("Engine.JSON")
while true do
local req = to_channel:demand()
if type(req) == "table" then
local ... | require("love.thread")
local to_channel = love.thread.getChannel("To_WebThread")
local from_channel = love.thread.getChannel("From_WebThread")
local ok, request = pcall(require,"Engine.luajit-request")
print("Thread failed: "..tostring(request))
if not ok then return end
local json = require("Engine.JSON")
while tru... | Bugfix | Bugfix | Lua | mit | RamiLego4Game/LIKO-12 |
13929d2ce88cb72fe1aef0cbdc33aeb1019bd2ec | tests/lib_specs/inheritance.lua | tests/lib_specs/inheritance.lua | local Class = require '30log'
context('Derivation (Inheritance)',function()
local Window
before(function()
Window = Class { width = 100, height = 100 }
function Window:setSize(w,h) self.width, self.height = w,h end
end)
context('Class can be derived from a superclass',function()
test('Vi... | local Class = require '30log'
context('Derivation (Inheritance)',function()
local Window
before(function()
Window = Class { width = 100, height = 100 }
function Window:setSize(w,h) self.width, self.height = w,h end
end)
context('Class can be derived from a superclass',function()
test('Vi... | Added call to methods inside initializer spec Fixed indentation to 2-whitespaces | Added call to methods inside initializer spec
Fixed indentation to 2-whitespaces
| Lua | mit | tizzybec/30log,aubergine10/30log |
505409a2284d82bd58b7f335fa91136e981ad670 | entities/securitycam.lua | entities/securitycam.lua | local SECURITYCAM_REALIZE_TIME=4
local function newSecurityCam (x, y, radius)
local cam = {
x = x,
y = y,
alert = {},
alerted = false,
alertness = 0.,
testingfor = 1,
radius = radius,
drawradius = 200,
beep_timer = nil,
player_alert_start= {},
detectortype = "securitycam",
}
Signals.reg... | local SECURITYCAM_REALIZE_TIME=4
local function newSecurityCam (x, y, radius)
local cam = {
x = x,
y = y,
alert = {},
alerted = false,
alertness = 0.,
testingfor = 1,
radius = radius,
drawradius = 200,
beep_timer = nil,
player_alert_start= {},
detectortype = "securitycam",
}
Signals.reg... | fixed beep | fixed beep
| Lua | apache-2.0 | martinfelis/ggj15 |
084e01a6ac7961fa650aba9cdc06502e4bd88b2c | xmake/modules/detect/tools/nvcc/has_flags.lua | xmake/modules/detect/tools/nvcc/has_flags.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix code style | fix code style
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
addcea8e1d12bcec4188c8b6533180d23275e0f3 | twitpic.lua | twitpic.lua | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.download_ch... | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.download_ch... | twitpic.lua: fix to download videos | twitpic.lua: fix to download videos | Lua | unlicense | ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab |
13ecd9088e5ee2364f89af93f711aad4bb9a23b2 | core/modulemanager.lua | core/modulemanager.lua | -- Prosody IM v0.2
-- Copyright (C) 2008 Matthew Wild
-- Copyright (C) 2008 Waqas Hussain
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your o... | -- Prosody IM v0.2
-- Copyright (C) 2008 Matthew Wild
-- Copyright (C) 2008 Waqas Hussain
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your o... | Fix for not loading global modules when host-specific modules are specified in config | Fix for not loading global modules when host-specific modules are specified in config
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
ef9ff6b1050cce8ddbacdde010fc929f375b2a39 | mod_ircd/mod_ircd.lua | mod_ircd/mod_ircd.lua | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | fixed broadcast PRIVMSG bug | fixed broadcast PRIVMSG bug
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
1575824e17a59abcde6e46c696c25eeb19e02814 | kong/api/routes/plugins.lua | kong/api/routes/plugins.lua | local crud = require "kong.api.crud_helpers"
local cjson = require "cjson"
local utils = require "kong.tools.utils"
local reports = require "kong.core.reports"
local singletons = require "kong.singletons"
-- Remove functions from a schema definition so that
-- cjson can encode the schema.
local function remove_functio... | local crud = require "kong.api.crud_helpers"
local cjson = require "cjson"
local utils = require "kong.tools.utils"
local reports = require "kong.core.reports"
local singletons = require "kong.singletons"
-- Remove functions from a schema definition so that
-- cjson can encode the schema.
local function remove_functio... | fix(admin) do not mutate plugins schema in /plugins/schema/:name | fix(admin) do not mutate plugins schema in /plugins/schema/:name
Make `remove_functions` produce a copy instead of modifying the plugin
schema table in-place.
Fix #3222
From #3348 | Lua | apache-2.0 | Mashape/kong,Kong/kong,Kong/kong,Kong/kong |
093cad888c4f66571ec4d7845b9810ae51db5054 | xmake/platforms/linux/xmake.lua | xmake/platforms/linux/xmake.lua | --!The Make-like Build Utility based on Lua
--
-- XMake is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--
-- XMake is di... | --!The Make-like Build Utility based on Lua
--
-- XMake is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--
-- XMake is di... | fix toolchains checking | fix toolchains checking
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake |
b07ca52a5e29648bed85e08a2431f2ce4438a463 | nyagos.d/catalog/autocd.lua | nyagos.d/catalog/autocd.lua | share.org_autocd_argsfilter = nyagos.argsfilter
nyagos.argsfilter = function(args)
if share.org_autocd_argsfilter then
local args_ = share.org_autocd_argsfilter(args)
if args_ then
args = args_
end
end
local stat = nyagos.stat(args[0])
if not stat or not stat.isdir then
return
... | share.org_autocd_argsfilter = nyagos.argsfilter
nyagos.argsfilter = function(args)
if share.org_autocd_argsfilter then
local args_ = share.org_autocd_argsfilter(args)
if args_ then
args = args_
end
end
if nyagos.which(args[0]) then
return
end
local stat = nyagos.stat(args[0])
... | Fix: autocd.lua | Fix: autocd.lua
| Lua | bsd-3-clause | zetamatta/nyagos,tsuyoshicho/nyagos,nocd5/nyagos,tyochiai/nyagos |
9467eab6e117d4c51d0b25b68f74b4395a3e47a8 | frontend/apps/reader/modules/readerdictionary.lua | frontend/apps/reader/modules/readerdictionary.lua | local EventListener = require("ui/widget/eventlistener")
local UIManager = require("ui/uimanager")
local DictQuickLookup = require("ui/widget/dictquicklookup")
local Geom = require("ui/geometry")
local Screen = require("ui/screen")
local JSON = require("JSON")
local DEBUG = require("dbg")
local _ = require("gettext")
... | local EventListener = require("ui/widget/eventlistener")
local UIManager = require("ui/uimanager")
local DictQuickLookup = require("ui/widget/dictquicklookup")
local Geom = require("ui/geometry")
local Screen = require("ui/screen")
local JSON = require("JSON")
local DEBUG = require("dbg")
local _ = require("gettext")
... | strip generic punctuation (U+2000 - U+206F) in lookup word This should fix #921. | strip generic punctuation (U+2000 - U+206F) in lookup word
This should fix #921.
| Lua | agpl-3.0 | Frenzie/koreader,NiLuJe/koreader,houqp/koreader,ashhher3/koreader,robert00s/koreader,Markismus/koreader,Frenzie/koreader,mihailim/koreader,NickSavage/koreader,ashang/koreader,apletnev/koreader,lgeek/koreader,koreader/koreader,chihyang/koreader,poire-z/koreader,Hzj-jie/koreader,NiLuJe/koreader,koreader/koreader,poire-z/... |
a409d092b48267aea8ee4c3ef634a6d140010adf | mod_auth_ldap/mod_auth_ldap.lua | mod_auth_ldap/mod_auth_ldap.lua | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
local lda... | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
local lda... | mod_auth_ldap: Fix use of ldap_search, and generalize it to support password modification as well. | mod_auth_ldap: Fix use of ldap_search, and generalize it to support password modification as well.
| Lua | mit | cryptotoad/prosody-modules,vfedoroff/prosody-modules,heysion/prosody-modules,vfedoroff/prosody-modules,amenophis1er/prosody-modules,softer/prosody-modules,BurmistrovJ/prosody-modules,amenophis1er/prosody-modules,Craige/prosody-modules,olax/prosody-modules,jkprg/prosody-modules,Craige/prosody-modules,NSAKEY/prosody-modu... |
5c225ba5801fbaf0bfa10bb5c3b29dfd7e737803 | extensions/osascript/test_javascript.lua | extensions/osascript/test_javascript.lua | hs.osascript = require("hs.osascript")
function testJavaScriptParseError()
local js = "2 +"
local status, object, descriptor = hs.osascript.javascript(js)
assertFalse(status)
assertIsEqual(descriptor.OSAScriptErrorBriefMessageKey, "Error on line 1: SyntaxError: Unexpected end of script")
return success()
end... | hs.osascript = require("hs.osascript")
function testJavaScriptParseError()
local js = "2 +"
local status, object, descriptor = hs.osascript.javascript(js)
assertFalse(status)
assertIsEqual(descriptor.OSAScriptErrorBriefMessageKey, "Error on line 1: SyntaxError: Unexpected end of script")
return success()
end... | Fix an hs.osascript test: it had assertIsEqual() arguments backwards, and the error message it was looking for, seems to have changed | Fix an hs.osascript test: it had assertIsEqual() arguments backwards, and the error message it was looking for, seems to have changed
| Lua | mit | latenitefilms/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,cmsj/hammerspoon,CommandPost/CommandPost-App,Habbie/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,cmsj/hammerspoon,asmagill/hammerspoon,latenitefilms/hammerspoon,asmagill/hammerspoon,latenitefilms/hammerspoon,CommandPost/CommandPost-App,Hammer... |
8992a6e549f398bd6edd44e8c055025887b53d76 | share/lua/playlist/cue.lua | share/lua/playlist/cue.lua | --[[
Parse CUE files
$Id$
Copyright (C) 2009 Laurent Aimar
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This pro... | --[[
Parse CUE files
$Id$
Copyright (C) 2009 Laurent Aimar
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This pro... | cue: support Latin1 cue files (fix #9238) | cue: support Latin1 cue files (fix #9238)
(cherry picked from commit 3e43d99c32e4367dcd1908551c1a4f50bb2dbccd)
Signed-off-by: Jean-Baptiste Kempf <7b85a41a628204b76aba4326273a3ccc74bd009a@videolan.org>
| Lua | lgpl-2.1 | vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1 |
8cb56e3105bb44eb785aa767df828fec61e28a52 | share/lua/intf/hotkeys.lua | share/lua/intf/hotkeys.lua | --[==========================================================================[
hotkeys.lua: hotkey handling for VLC
--[==========================================================================[
Copyright (C) 2007 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
This program is fre... | --[==========================================================================[
hotkeys.lua: hotkey handling for VLC
--[==========================================================================[
Copyright (C) 2007 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
This program is fre... | lua: fix hotkeys demo file. | lua: fix hotkeys demo file.
| Lua | lgpl-2.1 | jomanmuk/vlc-2.1,vlc-mirror/vlc,krichter722/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc,vlc-mirror/vlc,vlc-mirror/vlc,shyamalschandra/vlc,krichter722/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,krichter722/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,shyamalschandra/vlc,shyamalschand... |
f5cbd0dd90a6afaa4ef67b4414df602ce8bf6ec9 | share/lua/website/tcmag.lua | share/lua/website/tcmag.lua |
-- libquvi-scripts
-- Copyright (C) 2011 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; ei... |
-- libquvi-scripts
-- Copyright (C) 2011 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; ei... | tcmag.lua: Make query_formats work with external content | tcmag.lua: Make query_formats work with external content
Additional changes
* Check for liveleak content
* Fix self.id pattern
| Lua | agpl-3.0 | alech/libquvi-scripts,DangerCove/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,hadess/libquvi-scripts-iplayer,DangerCove/libquvi-scripts,legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer |
0e8712177e7ff072d7ae5ffba5f9857e3dd27c0e | OvaleCooldown.lua | OvaleCooldown.lua | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012 Sidoine
Copyright (C) 2012, 2013 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
... | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012 Sidoine
Copyright (C) 2012, 2013 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
... | Fix target used in "targetlifenocd" computation for spell cooldowns. | Fix target used in "targetlifenocd" computation for spell cooldowns.
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@1163 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | ultijlam/ovale,ultijlam/ovale,eXhausted/Ovale,ultijlam/ovale,Xeltor/ovale,eXhausted/Ovale,eXhausted/Ovale |
3424536e9d1075d325bd55e750ddc1879e55421b | kong/templates/nginx_kong.lua | kong/templates/nginx_kong.lua | return [[
charset UTF-8;
error_log logs/error.log ${{LOG_LEVEL}};
> if anonymous_reports then
${{SYSLOG_REPORTS}}
> end
> if nginx_optimizations then
>-- send_timeout 60s; # default value
>-- keepalive_timeout 75s; # default value
>-- client_body_timeout 60s; # default value
>-- client_header_timeout ... | return [[
charset UTF-8;
error_log logs/error.log ${{LOG_LEVEL}};
> if anonymous_reports then
${{SYSLOG_REPORTS}}
> end
> if nginx_optimizations then
>-- send_timeout 60s; # default value
>-- keepalive_timeout 75s; # default value
>-- client_body_timeout 60s; # default value
>-- client_header_timeout ... | fix(admin) CORS ACAC header cannot receive false | fix(admin) CORS ACAC header cannot receive false
Remove the ACAC header set to `false` in the Admin API.
This raises an interesting concern about the Admin API: we do not allow
requests with credentials to be made to it (since ACAC is not sent with
`true`). This might warrant an update and some testing in the future.... | Lua | apache-2.0 | salazar/kong,jebenexer/kong,Mashape/kong,Kong/kong,shiprabehera/kong,icyxp/kong,akh00/kong,Kong/kong,Kong/kong |
12fae8966fa6e64c3cae4c25ccc67a6d00e5d65e | OvaleState.lua | OvaleState.lua | --[[--------------------------------------------------------------------
Copyright (C) 2012 Sidoine De Wispelaere.
Copyright (C) 2012, 2013, 2014 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
--[[
This addon ... | --[[--------------------------------------------------------------------
Copyright (C) 2012 Sidoine De Wispelaere.
Copyright (C) 2012, 2013, 2014 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
--[[
This addon ... | Fix misuse of OvaleState.statePrototype. | Fix misuse of OvaleState.statePrototype.
The public property was being misused for two different functions. Make a
private property for the mapping and keep the public property for the true
state prototype registered with OvaleState.
| Lua | mit | ultijlam/ovale,Xeltor/ovale,ultijlam/ovale,eXhausted/Ovale,eXhausted/Ovale,ultijlam/ovale,eXhausted/Ovale |
c6462ccc09d557dcd0ae74827b6f67b0f53bccc5 | bin/process/IntFile2PoolRelationsTorch.lua | bin/process/IntFile2PoolRelationsTorch.lua | --
-- User: pat
-- Date: 8/10/15
--
require 'torch'
require 'nn'
-- note : in data is assumed to be 0 indexed but all output is 1 indxed
local cmd = torch.CmdLine()
cmd:option('-inFile', '', 'input file')
cmd:option('-outFile', '', 'out file')
cmd:option('-delim', ' ', 'delimiter to split lines on')
cmd:option('-max... | --
-- User: pat
-- Date: 8/10/15
--
require 'torch'
require 'nn'
-- note : in data is assumed to be 0 indexed but all output is 1 indxed
local cmd = torch.CmdLine()
cmd:option('-inFile', '', 'input file')
cmd:option('-outFile', '', 'out file')
cmd:option('-delim', ' ', 'delimiter to split lines on')
cmd:option('-max... | fix bug | fix bug
| Lua | mit | patverga/torch-relation-extraction,patverga/torch-relation-extraction,patverga/torch-relation-extraction |
f46abf4520e7f6bcbb095da88c4fc21b8ae44db0 | mod_pastebin/mod_pastebin.lua | mod_pastebin/mod_pastebin.lua |
local st = require "util.stanza";
local httpserver = require "net.httpserver";
local uuid_new = require "util.uuid".generate;
local os_time = os.time;
local t_insert, t_remove = table.insert, table.remove;
local add_task = require "util.timer".add_task;
local utf8_pattern = "[\194-\244][\128-\191]*$";
local function ... |
local st = require "util.stanza";
local httpserver = require "net.httpserver";
local uuid_new = require "util.uuid".generate;
local os_time = os.time;
local t_insert, t_remove = table.insert, table.remove;
local add_task = require "util.timer".add_task;
local utf8_pattern = "[\194-\244][\128-\191]*$";
local function ... | mod_pastebin: Fix issue with metatable not being set when a reload changes expires_after to 0 | mod_pastebin: Fix issue with metatable not being set when a reload changes expires_after to 0
| Lua | mit | prosody-modules/import,1st8/prosody-modules,brahmi2/prosody-modules,1st8/prosody-modules,crunchuser/prosody-modules,apung/prosody-modules,drdownload/prosody-modules,guilhem/prosody-modules,BurmistrovJ/prosody-modules,heysion/prosody-modules,syntafin/prosody-modules,drdownload/prosody-modules,jkprg/prosody-modules,jkprg... |
98bc0b8143053f79f6f5ac896da078097472852b | build/scripts/Utils.lua | build/scripts/Utils.lua | function string.is_empty(s)
return not s or s == ''
end
function cat(file)
local file = assert(io.open(file, "r"))
local output = file:read('*all')
file:close()
return output
end
function execute(cmd, quiet)
print(cmd)
if not quiet then
return os.execute(cmd)
else
local file = assert(io.popen(... | function string.is_empty(s)
return not s or s == ''
end
function cat(file)
local file = assert(io.open(file, "r"))
local output = file:read('*all')
file:close()
return output
end
function execute(cmd, quiet)
print(cmd)
if not quiet then
return os.execute(cmd)
else
local file = assert(io.popen(... | Return a process exit code from execute. | Return a process exit code from execute.
Should fix the build.
| Lua | mit | mono/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,genuinelucifer/CppSharp,ktopouzi/CppSharp,genuinelucifer/CppSharp,ktopouzi/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,u255436/CppSharp,inordertotest/CppSharp,u255436/CppSharp,mohtamohit/CppSharp,ktopouzi/CppSharp,mohtamohit/CppSha... |
b7e416337df64aa413cd827990819c0952b34999 | share/lua/playlist/googlevideo.lua | share/lua/playlist/googlevideo.lua | --[[
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distribut... | --[[
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distribut... | Fix google video playlist script. | Fix google video playlist script.
| Lua | lgpl-2.1 | krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,shyamalschandra/vlc,vlc-mirror/vlc-2.1,shyamalschandra/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,xkfz007/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,xkfz007/vlc,krichter722/vlc,vlc-... |
8bb0baa842727bd2b8cb22775b18f7a5c3dad57e | lib/tolua++/src/bin/lua/_driver.lua | lib/tolua++/src/bin/lua/_driver.lua |
-- Allow debugging by ZBS, if run under the IDE:
local mobdebugfound, mobdebug = pcall(require, "mobdebug")
if mobdebugfound then mobdebug.start() end
-- The list of valid arguments that the ToLua scripts can process:
local KnownArgs = {
['v'] = true,
['h'] = true,
['p'] = true,
['P'] = true,
['o'] = true,
... |
-- Allow debugging by ZBS, if run under the IDE:
local mobdebugfound, mobdebug = pcall(require, "mobdebug")
if mobdebugfound then mobdebug.start() end
-- The list of valid arguments that the ToLua scripts can process:
local KnownArgs = {
['v'] = true,
['h'] = true,
['p'] = true,
['P'] = true,
['o'] = true,
['n'... | Tolua driver: Fixed wrong indentation. | Tolua driver: Fixed wrong indentation.
| Lua | apache-2.0 | mmdk95/cuberite,electromatter/cuberite,Frownigami1/cuberite,bendl/cuberite,birkett/MCServer,marvinkopf/cuberite,guijun/MCServer,Altenius/cuberite,Howaner/MCServer,kevinr/cuberite,Fighter19/cuberite,nounoursheureux/MCServer,QUSpilPrgm/cuberite,zackp30/cuberite,QUSpilPrgm/cuberite,SamOatesPlugins/cuberite,mc-server/MCSer... |
4f3c67df4103c00c764d58b76cd95468fad5a738 | applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua | applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua | --[[
LuCI UVC Streamer
(c) 2008 Yanira <forum-2008@email.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
-- find current lan add... | --[[
LuCI UVC Streamer
(c) 2008 Yanira <forum-2008@email.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
-- find current lan add... | * luci/applications/uvc-streamer: fix possible crash when no uvc_streamer sections is defined in config | * luci/applications/uvc-streamer: fix possible crash when no uvc_streamer sections is defined in config
| Lua | apache-2.0 | dismantl/luci-0.12,tcatm/luci,joaofvieira/luci,maxrio/luci981213,palmettos/test,maxrio/luci981213,keyidadi/luci,artynet/luci,urueedi/luci,thesabbir/luci,RuiChen1113/luci,schidler/ionic-luci,tobiaswaldvogel/luci,aa65535/luci,remakeelectric/luci,obsy/luci,thesabbir/luci,fkooman/luci,nwf/openwrt-luci,RuiChen1113/luci,kuor... |
ed28d42b4dfeb27553f4abdf199de07c072856ff | build/scripts/LLVM.lua | build/scripts/LLVM.lua | require "Build"
require "Utils"
require "../Helpers"
local llvm = basedir .. "/../deps/llvm"
-- If we are inside vagrant then clone and build LLVM outside the shared folder,
-- otherwise file I/O performance will be terrible.
if is_vagrant() then
llvm = "~/llvm"
end
local llvm_build = llvm .. "/" .. os.get()
funct... | require "Build"
require "Utils"
require "../Helpers"
local llvm = basedir .. "/../deps/llvm"
-- If we are inside vagrant then clone and build LLVM outside the shared folder,
-- otherwise file I/O performance will be terrible.
if is_vagrant() then
llvm = "~/llvm"
end
local llvm_build = llvm .. "/" .. os.get()
funct... | Build and packaging fixes for LLVM on Windows using Ninja. | Build and packaging fixes for LLVM on Windows using Ninja.
| Lua | mit | u255436/CppSharp,genuinelucifer/CppSharp,inordertotest/CppSharp,u255436/CppSharp,zillemarco/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,ddobrev/CppSharp,genuinelucifer/CppSharp,u255436/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,ktopouzi/CppSharp,mohtamohit/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,k... |
146c46289b84459e62f6039aff4794eddf58cab8 | defaut/Chevalier.lua | defaut/Chevalier.lua | Ovale.defaut["DEATHKNIGHT"] = [[
#Abilities
Define(ARMYOFTHEDEAD 42650)
SpellInfo(ARMYOFTHEDEAD cd=600)
Define(BLOODBOIL 48721)
Define(BLOODPRESENCE 48263)
Define(BLOODSTRIKE 45902)
SpellInfo(BLOODSTRIKE blood=-1)
Define(BLOODTAP 45529)
Define(BONESHIELD 49222) #blood
SpellAddBuff(BONESHIELD BONESHIELD=300)
Define(D... | Ovale.defaut["DEATHKNIGHT"] = [[
#Abilities
Define(ARMYOFTHEDEAD 42650)
SpellInfo(ARMYOFTHEDEAD cd=600)
Define(BLOODBOIL 48721)
Define(BLOODPRESENCE 48263)
Define(BLOODSTRIKE 45902)
SpellInfo(BLOODSTRIKE blood=-1)
Define(BLOODTAP 45529)
Define(BONESHIELD 49222) #blood
SpellAddBuff(BONESHIELD BONESHIELD=300)
Define(D... | deathknight: bug fixes | deathknight: bug fixes
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@287 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | eXhausted/Ovale,Xeltor/ovale,ultijlam/ovale,eXhausted/Ovale,ultijlam/ovale,ultijlam/ovale,eXhausted/Ovale |
2bcad8aac7cfe3a10ee000e03d733bf33805d0de | lib/resty/auto-ssl/ssl_providers/lets_encrypt.lua | lib/resty/auto-ssl/ssl_providers/lets_encrypt.lua | local _M = {}
local shell_execute = require "resty.auto-ssl.utils.shell_execute"
function _M.issue_cert(auto_ssl_instance, domain)
local package_root = auto_ssl_instance.package_root
local base_dir = auto_ssl_instance:get("dir")
-- Run dehydrated for this domain, using our custom hooks to handle the
-- domai... | local _M = {}
local shell_execute = require "resty.auto-ssl.utils.shell_execute"
function _M.issue_cert(auto_ssl_instance, domain)
local package_root = auto_ssl_instance.package_root
local base_dir = auto_ssl_instance:get("dir")
-- Run dehydrated for this domain, using our custom hooks to handle the
-- domai... | Fix concurrent request creation for different domains. | Fix concurrent request creation for different domains.
dehydrated's internal locking was redundant to our own locking
mechanism, but also prevented different domains from being registered at
the same time (which our own locking should allow).
Fixes https://github.com/GUI/lua-resty-auto-ssl/issues/24
| Lua | mit | UseFedora/lua-resty-auto-ssl,GUI/lua-resty-auto-ssl,UseFedora/lua-resty-auto-ssl |
31d2fb6ff20e628315399468fdb8c54899b34c7c | test/test.lua | test/test.lua | local M = {}
local pb = require("luapbintf")
function script_path()
local str = debug.getinfo(2, "S").source:sub(2)
return str:match("(.*/)")
end
pb.add_proto_path(script_path())
-- test.proto imports common.proto
pb.import_proto_file("test.proto")
function M.test_rpc()
assert(pb.get_rpc_input_name("test... | local M = {}
local pb = require("luapbintf")
local function script_path()
local source = debug.getinfo(2, "S").source
return source:match("@(.*/)") or ""
end
pb.add_proto_path(script_path())
-- test.proto imports common.proto
pb.import_proto_file("test.proto")
function M.test_rpc()
assert(pb.get_rpc_in... | Fix test. | Fix test.
E:\Git\Lua\LuaPbIntf\test>lua53pp test.lua
lua53pp: test.lua:10: bad argument #1 to 'add_proto_path' (string expected, got
nil)
stack traceback:
[C]: in function 'luapbintf.add_proto_path'
test.lua:10: in main chunk
[C]: in ?
| Lua | mit | jinq0123/LuaPbIntf,jinq0123/LuaPbIntf,jinq0123/LuaPbIntf |
7c46e06d59fdbd1a09125e081aba5a47c927637b | OS/DiskOS/Programs/edit.lua | OS/DiskOS/Programs/edit.lua | --Text editor--
print("")
local args = {...} --Get the arguments passed to this program
if #args < 1 then color(9) print("Must provide the path to the file") return end
local tar = table.concat(args," ") --The path may include whitespaces
local term = require("C://terminal")
tar = term.parsePath(tar)
if fs.isDirectory... | --Text editor--
print("")
local args = {...} --Get the arguments passed to this program
if #args < 1 then color(9) print("Must provide the path to the file") return end
local tar = table.concat(args," ") --The path may include whitespaces
local term = require("C://terminal")
tar = term.parsePath(tar)
if fs.exists(tar)... | Bugfixes | Bugfixes
| Lua | mit | RamiLego4Game/LIKO-12 |
1afc8830294967905abbd930aca2dff12e52c396 | applications/luci-app-cpulimit/luasrc/model/cbi/cpulimit.lua | applications/luci-app-cpulimit/luasrc/model/cbi/cpulimit.lua |
m = Map("cpulimit", translate("cpulimit"),translate("Use cpulimit to restrict app's cpu usage."))
s = m:section(TypedSection, "list", translate("Settings"))
s.template = "cbi/tblsection"
s.anonymous = true
s.addremove = true
enable = s:option(Flag, "enabled", translate("enable", "enable"))
enable.optional = false
ena... |
m = Map("cpulimit", translate("cpulimit"),translate("Use cpulimit to restrict app's cpu usage."))
s = m:section(TypedSection, "list", translate("Settings"))
s.template = "cbi/tblsection"
s.anonymous = true
s.addremove = true
enable = s:option(Flag, "enabled", translate("enable", "enable"))
enable.optional = false
ena... | luci-app-cpulimit: my bad (#8) | luci-app-cpulimit: my bad (#8)
fix some issues
| Lua | apache-2.0 | wongsyrone/luci-1,wongsyrone/luci-1,wongsyrone/luci-1,wongsyrone/luci-1,wongsyrone/luci-1,wongsyrone/luci-1,wongsyrone/luci-1,wongsyrone/luci-1 |
c4e2e923ee037ddbb2422c5d450a0f8202cb3037 | test_scripts/Polices/build_options/ATF_P_timeout_countdown_start_PROPRIETARY.lua | test_scripts/Polices/build_options/ATF_P_timeout_countdown_start_PROPRIETARY.lua | -- Requirements summary:
-- [PolicyTableUpdate] "timeout" countdown start
--
-- Description:
-- SDL must forward OnSystemRequest(request_type=PROPRIETARY, url, appID) with encrypted PTS
-- snapshot as a hybrid data to mobile application with <appID> value. "fileType" must be
-- assigned as "JSON" in mobile app notifica... | -- Requirements summary:
-- [PolicyTableUpdate] "timeout" countdown start
--
-- Description:
-- SDL must forward OnSystemRequest(request_type=PROPRIETARY, url, appID) with encrypted PTS
-- snapshot as a hybrid data to mobile application with <appID> value. "fileType" must be
-- assigned as "JSON" in mobile app notifica... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
73aee7d6dd8d5637ad60733ab41c4908e93cbebd | src/dbmt.lua | src/dbmt.lua | local mod_name = (...):match ( "^(.*)%..-$" )
local misc = require ( mod_name .. ".misc" )
local attachpairs_start = misc.attachpairs_start
local colmt = require ( mod_name .. ".colmt" )
local gridfs = require ( mod_name .. ".gridfs" )
local dbmethods = { }
local dbmt = { __index = dbmethods }
function dbmethods:cm... | local mod_name = (...):match ( "^(.*)%..-$" )
local misc = require ( mod_name .. ".misc" )
local attachpairs_start = misc.attachpairs_start
local colmt = require ( mod_name .. ".colmt" )
local gridfs = require ( mod_name .. ".gridfs" )
local dbmethods = { }
local dbmt = { __index = dbmethods }
function dbmethods:cm... | fixed auth | fixed auth
| Lua | mit | Olivine-Labs/resty-mongol |
6f3ae374c0acf32ae4b257ce5c6f8d306a3e1039 | src/main.lua | src/main.lua | -- This comment enforces unit-test coverage for this file:
-- coverage: 0
http = require 'summit.http'
menu = require 'summit.menu'
speech = require 'summit.speech'
json = require 'json'
inspect = require "inspect"
function get_abstract(arg)
channel.say(arg.abstract)
get_link_menu(arg.url)
end
function invalid()
... | -- This comment enforces unit-test coverage for this file:
-- coverage: 0
http = require 'summit.http'
menu = require 'summit.menu'
speech = require 'summit.speech'
json = require 'json'
inspect = require "inspect"
category_names = { 'u.s.', 'world', 'sports', 'business', 'technology', 'science', 'health' }
function... | Fix user categories | Fix user categories
| Lua | mit | rfleury2/newspeak-phone-corvisa |
b66d91ad466ab64b37d5300dae05eadc67dd41f8 | sslobby/gamemode/minigames/base/init.lua | sslobby/gamemode/minigames/base/init.lua | MINIGAME.Time = 60
---------------------------------------------------------
--
---------------------------------------------------------
function MINIGAME:Initialize()
self.players = {}
self.spawnPoints = {}
local spawnPoints = ents.FindByClass("info_player_spawn")
for k, entity in pairs(spawnPoints) do
if... | MINIGAME.Time = 60
---------------------------------------------------------
--
---------------------------------------------------------
function MINIGAME:Initialize()
self.players = {}
self.spawnPoints = {}
local spawnPoints = ents.FindByClass("info_player_spawn")
for k, entity in pairs(spawnPoints) do
if... | This is a shot in the dark fix, lets hope it works. | This is a shot in the dark fix, lets hope it works. | Lua | bsd-3-clause | T3hArco/skeyler-gamemodes |
00e274760fa8f7f738bf3b05d0525cf2c2a1f3c7 | spec/daemon_spec.lua | spec/daemon_spec.lua | require'busted'
package.path = package.path..'../'
local ev = require'ev'
local jetdaemon = require'jet.daemon'
local loop = ev.Loop.default
local port = os.getenv('JET_PORT') or 33326
describe(
'A daemon',
function()
local daemon
before(
function()
daemon = jetdaemon.new
... | require'busted'
package.path = package.path..'../'
local ev = require'ev'
local jetdaemon = require'jet.daemon'
local loop = ev.Loop.default
local port = os.getenv('JET_PORT') or 33326
describe(
'A daemon',
function()
local daemon
before(
function()
daemon = jetdaemon.new
... | fix async connect test | fix async connect test
| Lua | mit | lipp/lua-jet |
5218d1212f5ffc10f6345046a576d694bba4d4bd | Sandboxer/sandboxer.post.lua | Sandboxer/sandboxer.post.lua | assert(config.profile~="dbus" and
config.profile~="pulse" and
config.profile~="profile" and
config.profile~="loader" and
config.profile~="config" and
config.profile~="defaults" and
config.profile~="tunables" and
config.profile~="control",
"cannot use service table name as profile: "..config.profile)
assert(typ... | assert(config.profile~="dbus" and
config.profile~="pulse" and
config.profile~="profile" and
config.profile~="loader" and
config.profile~="config" and
config.profile~="defaults" and
config.profile~="control",
"cannot use service table name as profile: "..config.profile)
assert(type(defaults.basedir)=="string" an... | sandboxer.post.lua: minor fix | sandboxer.post.lua: minor fix
| Lua | mit | DarkCaster/Sandboxer,DarkCaster/Sandboxer |
63a7069671cbd550d93d8601d72013a7e5d51757 | worldedit_commands/wand.lua | worldedit_commands/wand.lua | local function above_or_under(placer, pointed_thing)
if placer:get_player_control().sneak then
return pointed_thing.above
else
return pointed_thing.under
end
end
local punched_air_time = {}
minetest.register_tool(":worldedit:wand", {
description = "WorldEdit Wand tool\nLeft-click to set 1st position, right-cl... | local function above_or_under(placer, pointed_thing)
if placer:get_player_control().sneak then
return pointed_thing.above
else
return pointed_thing.under
end
end
local punched_air_time = {}
minetest.register_tool(":worldedit:wand", {
description = "WorldEdit Wand tool\nLeft-click to set 1st position, right-cl... | Allow easily setting pos1 + 2 to the same node using the wand | Allow easily setting pos1 + 2 to the same node using the wand
Though right-click currently doesn't work due to an engine bug.
| Lua | agpl-3.0 | Uberi/Minetest-WorldEdit |
4809d0f75dd5108ea7551ed42c5beced3e3439de | test_scripts/Polices/Policy_Table_Update/004_ATF_P_TC_PTU_DeviceConsent_from_User.lua | test_scripts/Polices/Policy_Table_Update/004_ATF_P_TC_PTU_DeviceConsent_from_User.lua | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] PoliciesManager must initiate PTU in case getting 'device consent' from the user
--
-- Description:
-- SDL should request PTU in case gets 'device consent' from the user
-- 1. Us... | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] PoliciesManager must initiate PTU in case getting 'device consent' from the user
--
-- Description:
-- SDL should request PTU in case gets 'device consent' from the user
-- 1. Us... | Fix issues in script | Fix issues in script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
4a803f0be3c286c48c4cb7b49cc4e152b8985f8e | bin/data/scripts/console.lua | bin/data/scripts/console.lua |
Console = {
cursor = 0,
string = '',
offset = 0,
prompt = '> ',
-- Output log. Commands log in iLua console history
history = {},
}
Console.__index = Console
Console.iLua = require('data/scripts/ilua')
require('data/scripts/consolekeys')
function Console:widget()
if self.console == nil then
local console = ... |
Console = {
cursor = 0,
string = '',
offset = 0,
prompt = '> ',
-- Output log. Commands log in iLua console history
history = {},
}
Console.__index = Console
Console.iLua = require('data/scripts/ilua')
require('data/scripts/consolekeys')
function Console:widget()
if self.console == nil then
local console = ... | Fix console. | Fix console.
| Lua | mit | Yukkurigame/Yukkuri,Yukkurigame/Yukkuri,Yukkurigame/Yukkuri |
5a02dda4ea266497786835ce9b764c88d657c022 | src/cli/utils/start.lua | src/cli/utils/start.lua | local IO = require "kong.tools.io"
local cutils = require "kong.cli.utils"
local constants = require "kong.constants"
local _M = {}
local function is_openresty(path_to_check)
local cmd = tostring(path_to_check).." -v 2>&1"
local handle = io.popen(cmd)
local out = handle:read()
handle:close()
local matched =... | local IO = require "kong.tools.io"
local cutils = require "kong.cli.utils"
local constants = require "kong.constants"
local _M = {}
local KONG_SYSLOG = "kong-hf.mashape.com"
local function is_openresty(path_to_check)
local cmd = tostring(path_to_check).." -v 2>&1"
local handle = io.popen(cmd)
local out = handl... | Fixes #111 | Fixes #111
| Lua | apache-2.0 | sbuettner/kong,peterayeni/kong,AnsonSmith/kong,paritoshmmmec/kong,Skyscanner/kong,ChristopherBiscardi/kong,bbalu/kong,chourobin/kong,wakermahmud/kong,puug/kong,ropik/kong,vmercierfr/kong,skynet/kong |
3853f776a3fdcc52fb4aa804b4b2cf9350516861 | share/lua/playlist/vimeo.lua | share/lua/playlist/vimeo.lua | --[[
$Id$
Copyright © 2009 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either v... | --[[
$Id$
Copyright © 2009 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either v... | Fix for vimeo parser to handle multi-line data block | Fix for vimeo parser to handle multi-line data block
Added code to vimeo.lua parser to handle data block consisting of
multiple lines. Code now concatenates those lines together.
Note when testing: vimeo doesn't like VLC; you must use :http-user-agent
flag to impersonate browser.
Close #7148
Signed-off-by: Jean-Bapt... | Lua | lgpl-2.1 | xkfz007/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,xkfz007/vlc,vlc-mirror/vlc-2.1,shyamalschandra/vlc,krichter722/vlc,xkfz007/vlc,krichter722/vlc,krichter722/vlc,krichter722/vlc,vlc-mirror/vlc,vlc-mirror/vlc,xkfz007/vlc,shyamalschandra/vlc,shyamalschandra/vlc,krichter722/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.... |
d419749eb20cbbf41a541dccfb3814f984db5b53 | swift/tools/tracing-config.lua | swift/tools/tracing-config.lua | function RegisterExtractorPack(id)
local extractorDirectory = GetPlatformToolsDirectory()
local relativeSwiftExtractor = extractorDirectory .. 'extractor'
local swiftExtractor = AbsolutifyExtractorPath(id, relativeSwiftExtractor)
function indexOf(array, value)
for i, v in ipairs(array) do
... | function RegisterExtractorPack(id)
local extractorDirectory = GetPlatformToolsDirectory()
local relativeSwiftExtractor = extractorDirectory .. 'extractor'
local swiftExtractor = AbsolutifyExtractorPath(id, relativeSwiftExtractor)
function indexOf(array, value)
for i, v in ipairs(array) do
... | Swift: fix missing extraction of function bodies in SPM builds | Swift: fix missing extraction of function bodies in SPM builds
For some reason `-experimental-skip-non-inlinable-function-bodies-without-types`
is passed to the frontend, which will skip extraction of most bodies.
By suppressing that option the problem goes away.
| Lua | mit | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql |
e8d656fefcec253425469d23354afdf505f368b9 | UCDadmin/permissions/permissions.lua | UCDadmin/permissions/permissions.lua | -- Numbers are for GUI buttons
-- If a number is not there, it means it is false
-- Permissions are inherited from the rank below
local permissions = {
[1] = {
[1] = true, -- warp to player
[2] = true, -- punish
[3] = true, -- spectate
[4] = true, -- warp player to
[5] = true, -- reconnect
[6] = true, -- ... | -- Numbers are for GUI buttons
-- If a number is not there, it means it is false
-- Permissions are inherited from the rank below
local permissions = {
[1] = {
[1] = true, -- warp to player
[2] = true, -- punish
[3] = true, -- spectate
[4] = true, -- warp player to
[5] = true, -- reconnect
[6] = true, -- ... | UCDadmin | UCDadmin
- Hopefully fixed table sync once and for all
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
a2784867f6629ca24913eba779df125f588d90ac | src/luarocks/install.lua | src/luarocks/install.lua |
--- Module implementing the LuaRocks "install" command.
-- Installs binary rocks.
module("luarocks.install", package.seeall)
local path = require("luarocks.path")
local rep = require("luarocks.rep")
local fetch = require("luarocks.fetch")
local util = require("luarocks.util")
local fs = require("luarocks.fs")
local d... |
--- Module implementing the LuaRocks "install" command.
-- Installs binary rocks.
module("luarocks.install", package.seeall)
local path = require("luarocks.path")
local rep = require("luarocks.rep")
local fetch = require("luarocks.fetch")
local util = require("luarocks.util")
local fs = require("luarocks.fs")
local d... | fix compatibility with LR1 packages. Bug reported by Graham Wakefield. | fix compatibility with LR1 packages. Bug reported by Graham Wakefield.
git-svn-id: b90ab2797f6146e3ba3e3d8b20782c4c2887e809@104 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
| Lua | mit | xpol/luainstaller,robooo/luarocks,keplerproject/luarocks,keplerproject/luarocks,xpol/luavm,leafo/luarocks,xpol/luainstaller,usstwxy/luarocks,starius/luarocks,xpol/luarocks,xpol/luavm,lxbgit/luarocks,tst2005/luarocks,aryajur/luarocks,robooo/luarocks,lxbgit/luarocks,tst2005/luarocks,tst2005/luarocks,starius/luarocks,igna... |
e78c4ca80c15dac0bfd836feb36cf92585c093f2 | src/nodes/trampoline.lua | src/nodes/trampoline.lua | local sound = require 'vendor/TEsound'
local Gamestate = require 'vendor/gamestate'
local window = require 'window'
local Trampoline = {}
Trampoline.__index = Trampoline
function Trampoline.new(node, collider)
local tramp = {}
setmetatable(tramp, Trampoline)
tramp.bb = collider:addRectangle(node.x, node.y... | local sound = require 'vendor/TEsound'
local Gamestate = require 'vendor/gamestate'
local window = require 'window'
local Trampoline = {}
Trampoline.__index = Trampoline
function Trampoline.new(node, collider)
local tramp = {}
setmetatable(tramp, Trampoline)
tramp.bb = collider:addRectangle(node.x, node.y... | fix trampoline collision error with nonplayer | fix trampoline collision error with nonplayer
| Lua | mit | hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua |
2d926177773f72f4bf3d87b87ac8535ad45341ad | aspects/nvim/files/.config/nvim/lua/wincent/cmp/handles.lua | aspects/nvim/files/.config/nvim/lua/wincent/cmp/handles.lua | -- Custom nvim-cmp source for GitHub handles.
local handles = {}
local registered = false
handles.setup = function()
if registered then
return
end
registered = true
local has_cmp, cmp = pcall(require, 'cmp')
if not has_cmp then
return
end
local config = vim.fn.expand('~/.github-handles.json'... | -- Custom nvim-cmp source for GitHub handles.
local handles = {}
local registered = false
handles.setup = function()
if registered then
return
end
registered = true
local has_cmp, cmp = pcall(require, 'cmp')
if not has_cmp then
return
end
local config = vim.fn.expand('~/.github-handles.json'... | fix(nvim): add "." to nvim-cmp keyword characters for handle source | fix(nvim): add "." to nvim-cmp keyword characters for handle source
So I can type a "." in something like "github.com" without interrupting
autocompletion.
For some reason, this function is _super_ fussy about the exact format
it wants things in. I tried expressing this in a bunch of ways that I
think should be equiv... | Lua | unlicense | wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent |
68d2a25c225613713bcee83061206387d52c3a94 | stdlib/area/position.lua | stdlib/area/position.lua | --- Position module
-- @module position
Position = {}
--- Creates a position that is offset by x,y coordinate pair
-- @param pos the position to offset
-- @param x the amount to offset the position in the x direction
-- @param y the amount to offset the position in the y direction
-- @return a new position, offset by... | --- Position module
-- @module position
Position = {}
--- Creates a position that is offset by x,y coordinate pair
-- @param pos the position to offset
-- @param x the amount to offset the position in the x direction
-- @param y the amount to offset the position in the y direction
-- @return a new position, offset by... | A bit of cleanup and fix the tostring function | A bit of cleanup and fix the tostring function
| Lua | isc | Afforess/Factorio-Stdlib |
6e761a183e520636653d9c2c549e78618f05299c | prototype/luamake/example.lua | prototype/luamake/example.lua | -- Fundamental moss concepts:
-- Artifact: a completed build output (definition vs product)
-- Build Pipeline: a series of build functions that transform definition into product
-- Tool: build function that translats source files or forms products
-- Spore: collection of artifact definitions and build functions
re... | -- Fundamental moss concepts:
-- Artifact: a completed build output (definition vs product)
-- Build Pipeline: a series of build functions that transform definition into product
-- Tool: build function that translats source files or forms products
-- Spore: collection of artifact definitions and build functions
re... | Implement directory lambda as prefix to name | Implement directory lambda as prefix to name
| Lua | mit | sjanhunen/moss,sjanhunen/gnumake-molds,sjanhunen/moss |
b186701be768fafcfd14ae0afd58581086182a38 | public/lua/oc/commandLoop.lua | public/lua/oc/commandLoop.lua | function loadPackages()
tcp = require('tcp');
orient = require('trackOrientation');
pos = require('trackPosition');
sendScan = require('sendScan');
scanDirection = require('scanDirection');
mas = require('moveAndScan');
robot = require('robot');
dl = require('downloadCode');
adj = require('adjacent');... | function loadPackages()
tcp = require('tcp');
orient = require('trackOrientation');
pos = require('trackPosition');
sendScan = require('sendScan');
scanDirection = require('scanDirection');
mas = require('moveAndScan');
robot = require('robot');
dl = require('downloadCode');
adj = require('adjacent');... | apparently this environment doesn't include unpack | apparently this environment doesn't include unpack
this should fix the continuous reconnecting problems | Lua | mit | dunstad/roboserver,dunstad/roboserver |
eed9ccc3836ae19baef59e7b6ed060d760b4f43f | Framework/BuildTools/protoc.lua | Framework/BuildTools/protoc.lua | -- as found on http://lua-users.org/wiki/SplitJoin
local function split(str, delim, maxNb)
-- Eliminate bad cases...
if string.find(str, delim) == nil then
return { str }
end
if maxNb == nil or maxNb < 1 then
maxNb = 0 -- No limit
end
local result = {}
local pat = "(.-)" .... | -- as found on http://lua-users.org/wiki/SplitJoin
local function split(str, delim, maxNb)
-- Eliminate bad cases...
if string.find(str, delim) == nil then
return { str }
end
if maxNb == nil or maxNb < 1 then
maxNb = 0 -- No limit
end
local result = {}
local pat = "(.-)" .... | small fix does work for linux | small fix
does work for linux
| Lua | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
93547ac94797cdea6670b0d458e838bcdb578f77 | src/lua-factory/sources/grl-radiofrance.lua | src/lua-factory/sources/grl-radiofrance.lua | --[[
* Copyright (C) 2014 Bastien Nocera
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at you... | --[[
* Copyright (C) 2014 Bastien Nocera
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at you... | lua-factory: port grl-radiofrance.lua to the new lua system | lua-factory: port grl-radiofrance.lua to the new lua system
https://bugzilla.gnome.org/show_bug.cgi?id=753141
Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
| Lua | lgpl-2.1 | MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins |
7009e98ee801bbe7a389f38f30ef937dd567a08b | frontend/device/pocketbook/device.lua | frontend/device/pocketbook/device.lua | local Generic = require("device/generic/device") -- <= look at this file!
local logger = require("logger")
-- luacheck: push
-- luacheck: ignore
local EVT_INIT = 21
local EVT_EXIT = 22
local EVT_SHOW = 23
local EVT_REPAINT = 23
local EVT_HIDE = 24
local EVT_KEYDOWN = 25
local EVT_KEYPRESS = 25
local EVT_KEYUP = 26
loc... | local Generic = require("device/generic/device") -- <= look at this file!
local logger = require("logger")
local ffi = require("ffi")
local inkview = ffi.load("inkview")
-- luacheck: push
-- luacheck: ignore
local EVT_INIT = 21
local EVT_EXIT = 22
local EVT_SHOW = 23
local EVT_REPAINT = 23
local EVT_HIDE = 24
local EV... | PocketBook: Basic device-detection / PocketBook631 (Touch HD) support (#3403) | PocketBook: Basic device-detection / PocketBook631 (Touch HD) support (#3403)
Add basic device-detection via libinkview, support PocketBook631. Fixes https://github.com/koreader/koreader/issues/3312 | Lua | agpl-3.0 | mwoz123/koreader,koreader/koreader,houqp/koreader,NiLuJe/koreader,mihailim/koreader,pazos/koreader,koreader/koreader,poire-z/koreader,poire-z/koreader,NiLuJe/koreader,lgeek/koreader,Frenzie/koreader,apletnev/koreader,Frenzie/koreader,Hzj-jie/koreader,Markismus/koreader |
5bd288e378584e51bc88d859b72621b59b72e9f7 | spec/unit/readerview_spec.lua | spec/unit/readerview_spec.lua | describe("Readerview module", function()
local DocumentRegistry, Blitbuffer, ReaderUI, UIManager, Event
setup(function()
require("commonrequire")
package.unloadAll()
DocumentRegistry = require("document/documentregistry")
Blitbuffer = require("ffi/blitbuffer")
ReaderUI =... | describe("Readerview module", function()
local DocumentRegistry, Blitbuffer, ReaderUI, UIManager, Event
setup(function()
require("commonrequire")
package.unloadAll()
DocumentRegistry = require("document/documentregistry")
Blitbuffer = require("ffi/blitbuffer")
ReaderUI =... | [fix] #nocov on broken scroll mode tests | [fix] #nocov on broken scroll mode tests
| Lua | agpl-3.0 | Frenzie/koreader,mwoz123/koreader,poire-z/koreader,mihailim/koreader,Frenzie/koreader,pazos/koreader,apletnev/koreader,lgeek/koreader,Hzj-jie/koreader,NiLuJe/koreader,koreader/koreader,Markismus/koreader,koreader/koreader,poire-z/koreader,houqp/koreader,NiLuJe/koreader |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.