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 |
|---|---|---|---|---|---|---|---|---|---|
dab827febb1d7ab47f9b40f5bc1ea9ec57aed649 | SVUI_UnitFrames/libs/Plugins/oUF_HyperCombo/oUF_HyperCombo.lua | SVUI_UnitFrames/libs/Plugins/oUF_HyperCombo/oUF_HyperCombo.lua | --GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local select = _G.select;
local class = select(2, UnitClass("player"));
if(class ~= "ROGUE") then return end;
local assert = _G.assert;
local error = _G.error;
local print = _G.print;
local pairs = _G.pairs;... | --GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local select = _G.select;
local class = select(2, UnitClass("player"));
if(class ~= "ROGUE") then return end;
local assert = _G.assert;
local error = _G.error;
local print = _G.print;
local pairs = _G.pairs;... | Updated the power to point to combo points instead of energy. This fixes issue with combo points always appearing. | Updated the power to point to combo points instead of energy. This fixes issue with combo points always appearing.
| Lua | mit | FailcoderAddons/supervillain-ui |
ec39a4cc145e7919101010cb52700ec6a7730815 | libs/pkg.lua | libs/pkg.lua | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | Fix assert giving false positives for 'type mismatch' | Fix assert giving false positives for 'type mismatch'
| Lua | apache-2.0 | 1yvT0s/lit,squeek502/lit,james2doyle/lit,kidaa/lit,luvit/lit,zhaozg/lit |
4c132961971903db26fcc195276a75dc165d4c42 | lib/path.lua | lib/path.lua | local Table = require('table')
local Path = {}
-- Split a filename into [root, dir, basename], unix version
-- 'root' is just a slash, or nothing.
local function split_path(filename)
local root, dir, basename
local i, j = filename:find("[^/]*$")
if filename:sub(1, 1) == "/" then
root = "/"
dir = filename... | local Table = require('table')
local Path = {}
-- Split a filename into [root, dir, basename], unix version
-- 'root' is just a slash, or nothing.
local function split_path(filename)
local root, dir, basename
local i, j = filename:find("[^/]*$")
if filename:sub(1, 1) == "/" then
root = "/"
dir = filename... | Make `Path.dirname` work with paths ending with slashes | Make `Path.dirname` work with paths ending with slashes
Fixes #47.
| Lua | apache-2.0 | AndrewTsao/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,sousoux/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,AndrewTsao/luvit,AndrewTsao/luvit,kaustavha/luvit,boundary/luvit,DBarney/luvit,bsn069/luvit,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,kaustavha/luvit,boundary/luvit,rjeli... |
d21b9b2f096debfcbfe72ed0b6a49c44e2d7e911 | deps/websocket-codec.lua | deps/websocket-codec.lua | exports.name = "creationix/websocket-codec"
exports.version = "1.0.6"
exports.homepage = "https://github.com/luvit/lit/blob/master/deps/websocket-codec.lua"
exports.description = "A codec implementing websocket framing and helpers for handshakeing"
exports.tags = {"http", "websocket", "codec"}
exports.license = "MIT"
e... | exports.name = "creationix/websocket-codec"
exports.version = "1.0.6"
exports.homepage = "https://github.com/luvit/lit/blob/master/deps/websocket-codec.lua"
exports.description = "A codec implementing websocket framing and helpers for handshakeing"
exports.tags = {"http", "websocket", "codec"}
exports.license = "MIT"
e... | Fix #108 | Fix #108
| Lua | apache-2.0 | squeek502/lit,kidaa/lit,luvit/lit,zhaozg/lit,james2doyle/lit,1yvT0s/lit |
5d7427bb53ce32208927e18052df14b24b281edb | libs/uci/luasrc/model/uci/bind.lua | libs/uci/luasrc/model/uci/bind.lua | --[[
LuCI - UCI utilities for model classes
Copyright 2009 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
Unless re... | --[[
LuCI - UCI utilities for model classes
Copyright 2009 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
Unless re... | libs/uci: fix attempt to assign empty tables in uci bind class | libs/uci: fix attempt to assign empty tables in uci bind class
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5403 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 |
410388d42398edc5bcfd565e16cf939ea6e9959c | lib/light.lua | lib/light.lua | local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local class = require(_PACKAGE.."/class")
local stencils = require(_PACKAGE..'/stencils')
local util = require(_PACKAGE..'/util')
local light = class()
light.shadowShader = love.graphics.newShader(_PACKAGE.."/shaders/shadow.glsl")
function light:init(x, y, r, g... | local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local class = require(_PACKAGE.."/class")
local stencils = require(_PACKAGE..'/stencils')
local util = require(_PACKAGE..'/util')
local light = class()
light.shadowShader = love.graphics.newShader(_PACKAGE.."/shaders/shadow.glsl")
function light:init(x, y, r, g... | fixed the multiple lights issue | fixed the multiple lights issue
| Lua | mit | willemt/light_world.lua |
5c44aead6e7c66130fab8a2173170c2e1ced14fd | Examples/ubuntu-setup.cfg.lua | Examples/ubuntu-setup.cfg.lua | defaults.chrootdir=loader.path.combine(loader.workdir,"ubuntu_chroot")
defaults.user="root"
defaults.uid=0
defaults.gid=0
defaults.recalculate()
sandbox =
{
setup =
{
static_executor=true,
commands =
{
},
env_blacklist =
{
defaults.env.blacklist_main,
defaults.env.blacklist_audio,
defaults.e... | defaults.chrootdir=loader.path.combine(loader.workdir,"ubuntu_chroot")
defaults.user="root"
defaults.uid=0
defaults.gid=0
defaults.recalculate()
sandbox =
{
setup =
{
static_executor=true,
commands =
{
},
env_blacklist =
{
defaults.env.blacklist_main,
defaults.env.blacklist_audio,
defaults.e... | ubuntu-setup.cfg.lua: mount and use /fixups directory | ubuntu-setup.cfg.lua: mount and use /fixups directory
| Lua | mit | DarkCaster/Sandboxer,DarkCaster/Sandboxer |
a28afad864bf828f4b89af30c8de460f0ab2c598 | net/http.lua | net/http.lua |
local socket = require "socket"
local mime = require "mime"
local url = require "socket.url"
local server = require "net.server"
local connlisteners_get = require "net.connlisteners".get;
local listener = connlisteners_get("httpclient") or error("No httpclient listener!");
local t_insert, t_concat = table.insert, t... |
local socket = require "socket"
local mime = require "mime"
local url = require "socket.url"
local server = require "net.server"
local connlisteners_get = require "net.connlisteners".get;
local listener = connlisteners_get("httpclient") or error("No httpclient listener!");
local t_insert, t_concat = table.insert, t... | net.http: Don't throw error on invalid URLs. Fixes #56. | net.http: Don't throw error on invalid URLs. Fixes #56.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
2c91493c6d5be3684c629894d1ab466bd14d8ad6 | lua/plugins/treesitter.lua | lua/plugins/treesitter.lua | local nvim = require('nvim')
local load_module = require('tools').load_module
-- local sys = require('sys')
local plugins = nvim.plugins
local nvim_set_autocmd = nvim.nvim_set_autocmd
-- local executable = nvim.executable
-- local isdirectory = nvim.isdirectory
local treesitter = ... | local nvim = require('nvim')
local load_module = require('tools').load_module
-- local sys = require('sys')
local plugins = nvim.plugins
local nvim_set_autocmd = nvim.nvim_set_autocmd
-- local executable = nvim.executable
-- local isdirectory = nvim.isdirectory
local treesitter = ... | fix: bash treesitter folding | fix: bash treesitter folding
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
6d1135b6004094936a822ce9bba880b67a311416 | kong/cmd/config.lua | kong/cmd/config.lua | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | hotfix(cmd) fix output of `kong config parse`. | hotfix(cmd) fix output of `kong config parse`.
Do not output the string `nil` upon a successful parse.
Thanks @hbagdi for reporting.
| Lua | apache-2.0 | Mashape/kong,Kong/kong,Kong/kong,Kong/kong |
ee4ef70706e7c8d6e99b48dc86e1eb4dc27e2d1a | premake4.lua | premake4.lua | solution "mojo"
location "build"
configurations { "debug", "release", "windows", "linux" }
defines { "MOJO_STATIC_BUILD" }
project "mojo"
kind "ConsoleApp"
language "C++"
targetdir "bin"
includedirs {
"include"
}
files {
"i... | solution "mojo"
location "build"
configurations { "debug", "release", "windows", "linux" }
defines { "MOJO_STATIC_BUILD" }
project "mojo"
kind "ConsoleApp"
language "C++"
targetdir "bin"
includedirs {
"include"
}
files {
"i... | FreeType fix on linux. | FreeType fix on linux.
| Lua | mit | mtwilliams/mojo,mtwilliams/mojo,mtwilliams/mojo,mtwilliams/mojo,mtwilliams/mojo |
c3fcd7f15f874f2494b0a7f16dee8bc828fee29c | AceModuleCore-3.0/AceModuleCore-3.0.lua | AceModuleCore-3.0/AceModuleCore-3.0.lua | local MAJOR, MINOR = "AceModuleCore-3.0", 0
local AceModuleCore, oldversion = LibStub:NewLibrary( MAJOR, MINOR )
local AceAddon = LibStub:GetLibrary("AceAddon-3.0")
if not AceAddon then
error(MAJOR.." requires AceAddon-3.0")
end
if not AceModuleCore then
return
elseif not oldversion then
AceModuleCore.e... | local MAJOR, MINOR = "AceModuleCore-3.0", 0
local AceModuleCore, oldversion = LibStub:NewLibrary( MAJOR, MINOR )
local AceAddon = LibStub:GetLibrary("AceAddon-3.0")
if not AceAddon then
error(MAJOR.." requires AceAddon-3.0")
end
if not AceModuleCore then
return
elseif not oldversion then
AceModuleCore.embeded = ... | Ace3: AceModuleCore-3.0 - cleanup, add OnInit handling, fix typo in NewModule | Ace3: AceModuleCore-3.0 - cleanup, add OnInit handling, fix typo in NewModule
git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@13 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
7358aa7f96a3e6bf2f511619c3b0a9dadeeeae33 | premake4.lua | premake4.lua | _G.package.path=_G.package.path..[[;./?.lua;./?/?.lua]]
assert( require 'premake.quickstart' )
make_solution 'picojson_serializer'
configurations { "gcov" }
local CURRENT_VERSION = 'v0.9.0'
local OS = os.get()
local settings = {
includedirs = {
linux = {},
windows = { './msinttypes' },
macosx = {}
}
}
ma... | include 'premake'
make_solution 'picojson_serializer'
configurations { "gcov" }
local CURRENT_VERSION = 'v0.9.0'
local OS = os.get()
local local_settings = {
includedirs = {
linux = {},
windows = { './msinttypes' },
macosx = {}
}
}
make_console_app('picojson_serializer_test',
{
'./*.h',
'./test/*.cpp... | fix linux build | fix linux build
| Lua | mit | d-led/picojson_serializer,d-led/picojson_serializer |
0ad61a92f20627411cc7cacd8acd6a8350139a54 | qd_offer.lua | qd_offer.lua | --[[
USAGE:
redis-cli --eval qd_offer.lua {name} , {value}
* `name` - Name of a qdigest instance: used as a redis key.
* `value` - Value to offer.
--]]
local function value2leaf(capacity, value)
return value + capacity + 1
end
local function getNewCapacity(value)
capacity = 1
while capacity < value ... | --[[
USAGE:
redis-cli --eval qd_offer.lua {name} , {value}
* `name` - Name of a qdigest instance: used as a redis key.
* `value` - Value to offer.
--]]
local function value2leaf(capacity, value)
return value + capacity + 1
end
local function getNewCapacity(value)
capacity = 1
while capacity < value ... | fix the method to call HMSET | fix the method to call HMSET
| Lua | mit | koron/redis-qdigest,koron/redis-qdigest |
bbef9dfbd45fb668d1dce54ca8dbb5ea7af1983b | Cache.lua | Cache.lua | local L = EPGPGlobalStrings
local mod = EPGP:NewModule("EPGP_Cache", "AceEvent-2.0")
function mod:OnInitialize()
self.guild_member_count = 0
end
function mod:OnEnable()
self:RegisterEvent("GUILD_ROSTER_UPDATE")
self:RegisterEvent("PLAYER_GUILD_UPDATE")
self:RegisterEvent("CHAT_MSG_ADDON")
self:GuildRosterN... | local L = EPGPGlobalStrings
local mod = EPGP:NewModule("EPGP_Cache", "AceEvent-2.0")
function mod:OnInitialize()
self.guild_member_count = 0
end
function mod:OnEnable()
self:RegisterEvent("GUILD_ROSTER_UPDATE")
self:RegisterEvent("PLAYER_GUILD_UPDATE")
self:RegisterEvent("CHAT_MSG_ADDON")
self:GuildRosterN... | Fix error on empty/unparsable officer notes. | Fix error on empty/unparsable officer notes.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,sheldon/epgp,hayword/tfatf_epgp,ceason/epgp-tfatf,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded |
90ddff8afaa5873490d1ab4285579d5b2e1540c7 | mods/esmobs/init.lua | mods/esmobs/init.lua | --esmobs v01.0
--maikerumine
--made for Extreme Survival game
--License for code WTFPL
--[[
DEPENDS:
default
inventory_plus?
farming?
bones?
intllib?
es?
farorb?
jdukebox?
]]
esmobs={}
--API AND CONFIG
dofile(minetest.get_modpath("esmobs").."/config.lua")
dofile(minetest.get_modpath("esmobs").."/api.lua")
dofile(mi... | --esmobs v01.0
--maikerumine
--made for Extreme Survival game
--License for code WTFPL
--[[
DEPENDS:
default
inventory_plus?
farming?
bones?
intllib?
es?
farorb?
jdukebox?
]]
esmobs={}
--API AND CONFIG
--dofile(minetest.get_modpath("esmobs").."/config.lua")
dofile(minetest.get_modpath("esmobs").."/api.lua")
dofile(... | Patch to temporary fix broken selector | Patch to temporary fix broken selector
| Lua | lgpl-2.1 | maikerumine/extreme_survival |
a19b3cc1b4fa04776bde0c08077249f466f8ffc4 | frontend/ui/reader/readertoc.lua | frontend/ui/reader/readertoc.lua | ReaderToc = InputContainer:new{
toc_menu_title = "Table of contents",
current_page = 0,
current_pos = 0,
}
function ReaderToc:init()
if not Device:hasNoKeyboard() then
self.key_events = {
ShowToc = {
{ "T" },
doc = "show Table of Content menu" },
}
end
self.ui.menu:registerToMainMenu(self)
end
fu... | ReaderToc = InputContainer:new{
toc_menu_title = "Table of contents",
current_page = 0,
current_pos = 0,
}
function ReaderToc:init()
if not Device:hasNoKeyboard() then
self.key_events = {
ShowToc = {
{ "T" },
doc = "show Table of Content menu" },
}
end
self.ui.menu:registerToMainMenu(self)
end
fu... | bug fix: set toc menu height and width | bug fix: set toc menu height and width
| Lua | agpl-3.0 | NiLuJe/koreader-base,koreader/koreader-base,houqp/koreader,Hzj-jie/koreader-base,robert00s/koreader,Frenzie/koreader-base,frankyifei/koreader-base,pazos/koreader,apletnev/koreader,koreader/koreader,apletnev/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,houqp/koreader-base,chrox/koread... |
92b704ed963edcf51398003b6f0b011f55cb394f | src/base/detoken.lua | src/base/detoken.lua | --
-- detoken.lua
--
-- Expands tokens.
--
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.detoken = {}
local p = premake
local detoken = p.detoken
--
-- Expand tokens in a value.
--
-- @param value
-- The value containing the tokens to be expanded.
-- @param environ
-- An execu... | --
-- detoken.lua
--
-- Expands tokens.
--
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.detoken = {}
local p = premake
local detoken = p.detoken
--
-- Expand tokens in a value.
--
-- @param value
-- The value containing the tokens to be expanded.
-- @param environ
-- An execu... | fix bug in detoken. | fix bug in detoken.
| Lua | bsd-3-clause | tvandijck/premake-core,CodeAnxiety/premake-core,tritao/premake-core,prapin/premake-core,prapin/premake-core,premake/premake-core,PlexChat/premake-core,dcourtois/premake-core,LORgames/premake-core,premake/premake-core,soundsrc/premake-core,mandersan/premake-core,xriss/premake-core,kankaristo/premake-core,starkos/premake... |
68e4a4cda7c147babc2887ee09cd493911dcb16a | libs/web/luasrc/config.lua | libs/web/luasrc/config.lua | --[[
LuCI - Configuration
Description:
Some LuCI configuration values read from uci file "luci"
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 co... | --[[
LuCI - Configuration
Description:
Some LuCI configuration values read from uci file "luci"
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 co... | Fixed luci.config | Fixed luci.config
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci |
ed0524aa4f0d3875e9882ea745812bd27d3fb3be | src/luarocks/dir.lua | src/luarocks/dir.lua |
--- Generic utilities for handling pathnames.
module("luarocks.dir", package.seeall)
separator = "/"
--- Strip the path off a path+filename.
-- @param pathname string: A path+name, such as "/a/b/c"
-- or "\a\b\c".
-- @return string: The filename without its path, such as "c".
function base_name(pathname)
assert(t... |
--- Generic utilities for handling pathnames.
module("luarocks.dir", package.seeall)
separator = "/"
--- Strip the path off a path+filename.
-- @param pathname string: A path+name, such as "/a/b/c"
-- or "\a\b\c".
-- @return string: The filename without its path, such as "c".
function base_name(pathname)
assert(t... | Fix handling of "/" in dir.path. Closes #80. | Fix handling of "/" in dir.path. Closes #80.
| Lua | mit | rrthomas/luarocks,xiaq/luarocks,coderstudy/luarocks,aryajur/luarocks,xpol/luavm,xpol/luainstaller,leafo/luarocks,tst2005/luarocks,usstwxy/luarocks,xpol/luainstaller,tst2005/luarocks,keplerproject/luarocks,xiaq/luarocks,starius/luarocks,rrthomas/luarocks,starius/luarocks,starius/luarocks,ignacio/luarocks,ignacio/luarock... |
583c036b378a7efbe47bb1845a089b5c0479e3de | quiz/func.lua | quiz/func.lua | local h = require('quiz.helpers')
local rr = h.rr
local _ = h._
local func = {}
function func.func_summ(req)
local a = rr(1, 5)
local b = rr(10, 20)
local task = [[
def myf(a):
return a + %i
print(myf(%i))]]
return
h.f(task, a, b),
h.f("%i", a + b),
h.f("%i", a),
h.f("%i", b),
... | local h = require('quiz.helpers')
local rr = h.rr
local _ = h._
local func = {}
function func.func_summ(req)
local a = rr(1, 5)
local b = rr(10, 20)
local task = [[
def myf(a):
return a + %i
print(myf(%i))]]
return
h.f(task, a, b),
h.f("%i", a + b),
h.f("%i", a),
h.f("%i", b),
... | fix translation in quiz.func | fix translation in quiz.func
| Lua | mit | starius/kodomoquiz |
7f89c1de45a88426b85cb4ca3efd0de45e060b96 | test/dev-app/tests/unit/form.lua | test/dev-app/tests/unit/form.lua | local form = require "sailor.form"
local model = require "sailor.model"
local User = model("user")
describe("Testing form generator", function()
local u = User:new()
it("should not create fields that don't exist", function ()
assert.has_error(
function() local html = form.blah(u,'password') end,
"... | local form = require "sailor.form"
local model = require "sailor.model"
local User = model("user")
describe("Testing form generator", function()
local u = User:new()
it("should not create fields that don't exist", function ()
assert.has_error(
function() local html = form.blah(u,'password') end
)
end)
it("sh... | fix test with Lua 5.3 | fix test with Lua 5.3
don't check the message of error which depends on Lua version.
"attempt to call field 'blah' (a nil value)"
"attempt to call a nil value (field 'blah')"
| Lua | mit | Etiene/sailor,sailorproject/sailor,Etiene/sailor |
c985c0cdc52774eb148cbba840ef6e031ebe97e7 | packages/simpletable.lua | packages/simpletable.lua | -- A very simple table formatting class
-- Calling conventions:
-- myClass:loadPackage("simpletable", {
-- tableTag = "a",
-- trTag = "b",
-- tdTag = "c"
-- })
-- Defines commands \a, \b and \c equivalent to HTML
-- <table>, <tr> and <td> tags.
-- Todo: Set a maximum width for the whole table and ensure
-- vbox w... | -- A very simple table formatting class
-- Calling conventions:
-- myClass:loadPackage("simpletable", {
-- tableTag = "a",
-- trTag = "b",
-- tdTag = "c"
-- })
-- Defines commands \a, \b and \c equivalent to HTML
-- <table>, <tr> and <td> tags.
-- Todo: Set a maximum width for the whole table and ensure
-- vbox w... | fix empty simpletable #555 and indentation of table data | fix empty simpletable #555 and indentation of table data
| Lua | mit | simoncozens/sile,simoncozens/sile,simoncozens/sile,alerque/sile,alerque/sile,simoncozens/sile,alerque/sile,alerque/sile |
1bd0902fe7d3457fd96e55f5ed04c46f81fe6968 | plugins/mod_saslauth.lua | plugins/mod_saslauth.lua | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_reso... | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_reso... | Fixed: mod_saslauth: "anonymous_login" currently makes SASL ANONYMOUS an exclusive mechanism. Corrected advertised mechanisms and error replies. | Fixed: mod_saslauth: "anonymous_login" currently makes SASL ANONYMOUS an exclusive mechanism. Corrected advertised mechanisms and error replies.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
35c228b0149e406b04d3b8175c37d5653085d8e4 | lua/entities/gmod_wire_forcer.lua | lua/entities/gmod_wire_forcer.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Forcer"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Forcer"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
self:NetworkVar( "Bool", 0, "ShowBeam" )
self:NetworkVar( "Bool", 1, "BeamHighlight"... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Forcer"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Forcer"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
self:NetworkVar( "Bool", 0, "ShowBeam" )
self:NetworkVar( "Bool", 1, "BeamHighlight"... | Fix ApplyForce/physics-crash with Forcer. (#1196) | Fix ApplyForce/physics-crash with Forcer. (#1196)
| Lua | apache-2.0 | wiremod/wire,bigdogmat/wire,NezzKryptic/Wire,sammyt291/wire,dvdvideo1234/wire,Grocel/wire,garrysmodlua/wire,thegrb93/wire |
a9add89332585302ed817c0279d341643cef444b | lua_modules/keystone/lib/init.lua | lua_modules/keystone/lib/init.lua | --[[
Copyright 2012 Rackspace
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 or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
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 or agreed to in writing, software
dis... | fixes(auth): use the cloudMonitoring service catalog | fixes(auth): use the cloudMonitoring service catalog
| Lua | apache-2.0 | christopherjwang/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-m... |
06053f695c3ebe2bc7a8b9228b01fb5887aeb9ed | src/lib/interlink.lua | src/lib/interlink.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
-- Based on MCRingBuffer, see
-- http://www.cse.cuhk.edu.hk/%7Epclee/www/pubs/ipdps10.pdf
local shm = require("core.shm")
local ffi = require("ffi")
local band = require("bit").band
local SIZE = link.max + 1
... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
-- Based on MCRingBuffer, see
-- http://www.cse.cuhk.edu.hk/%7Epclee/www/pubs/ipdps10.pdf
local shm = require("core.shm")
local ffi = require("ffi")
local band = require("bit").band
local SIZE = link.max + 1
... | lib.interlink: fix initialization race. | lib.interlink: fix initialization race.
| Lua | apache-2.0 | eugeneia/snabbswitch,eugeneia/snabb,SnabbCo/snabbswitch,snabbco/snabb,Igalia/snabb,Igalia/snabb,alexandergall/snabbswitch,snabbco/snabb,snabbco/snabb,alexandergall/snabbswitch,dpino/snabbswitch,eugeneia/snabb,Igalia/snabbswitch,Igalia/snabbswitch,dpino/snabbswitch,dpino/snabb,dpino/snabb,alexandergall/snabbswitch,alexa... |
f757587b3d951a2676c08a4d76eb1e19fa9d39fb | hostinfo/packages.lua | hostinfo/packages.lua | --[[
Copyright 2014 Rackspace
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 or agreed to in writing, software
dis... | --[[
Copyright 2014 Rackspace
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 or agreed to in writing, software
dis... | fix(hostinfo/packages): This check was broken, need to initialize sigar context with :new, cant just req(sigar).ctx | fix(hostinfo/packages): This check was broken, need to initialize sigar context with :new, cant just req(sigar).ctx
refactor(hostinfo/packages): one lined the vendor info getter and a few other variable declarations
fix(hostinfo/packages): This check was broken, need to initialize sigar context with :new, cant just r... | Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent |
bbe4ccd9490a4b9177b85d75a011dcb0db611a47 | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | require "luci.sys"
require "luci.tools.webadmin"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- System --
f = SimpleForm("syst... | require "luci.sys"
require "luci.tools.webadmin"
local bit = require "bit"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- Syste... | Fix display of v6 Routing metric on Freifunk status pages | Fix display of v6 Routing metric on Freifunk status pages
| Lua | apache-2.0 | deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci |
d05e569fedbeb3343de7d060a0c9cae600056393 | gmod_wire_starfall_processor/compiler/parser.lua | gmod_wire_starfall_processor/compiler/parser.lua | /******************************************************************************\
Expression 2 Parser for Garry's Mod
Andreas "Syranide" Svensson, me@syranide.com
Modified for Starfall
By Colonel Thirty Two
initrd.gz@gmail.com
\*************************************************************************... | /******************************************************************************\
Expression 2 Parser for Garry's Mod
Andreas "Syranide" Svensson, me@syranide.com
Modified for Starfall
By Colonel Thirty Two
initrd.gz@gmail.com
\*************************************************************************... | [Starfall] [parser.lua] Fixed bugs | [Starfall]
[parser.lua] Fixed bugs
| Lua | bsd-3-clause | Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,Xandaros/Starfall |
f77317ac254114c1a4379b9696c7532bfd9bade1 | utils/kobo_touch_probe.lua | utils/kobo_touch_probe.lua | -- touch probe utility
-- usage: ./luajit util/kobo_touch_probe.lua
require "defaults"
package.path = "common/?.lua;rocks/share/lua/5.1/?.lua;frontend/?.lua;" .. package.path
package.cpath = "common/?.so;common/?.dll;/usr/lib/lua/?.so;rocks/lib/lua/5.1/?.so;" .. package.cpath
local DocSettings = require("docsettings"... | -- touch probe utility
-- usage: ./luajit util/kobo_touch_probe.lua
require "defaults"
package.path = "common/?.lua;rocks/share/lua/5.1/?.lua;frontend/?.lua;" .. package.path
package.cpath = "common/?.so;common/?.dll;/usr/lib/lua/?.so;rocks/lib/lua/5.1/?.so;" .. package.cpath
local DocSettings = require("docsettings"... | touch_probe(fix): do not filter probe touch event by range | touch_probe(fix): do not filter probe touch event by range
| Lua | agpl-3.0 | pazos/koreader,mwoz123/koreader,chihyang/koreader,poire-z/koreader,mihailim/koreader,Hzj-jie/koreader,Frenzie/koreader,robert00s/koreader,frankyifei/koreader,Frenzie/koreader,koreader/koreader,NiLuJe/koreader,NickSavage/koreader,houqp/koreader,apletnev/koreader,Markismus/koreader,poire-z/koreader,lgeek/koreader,NiLuJe/... |
b6458cbe0ce49a87d975dc5e7dde698e16045842 | weather-widget/weather.lua | weather-widget/weather.lua | local wibox = require("wibox")
local http = require("socket.http")
local json = require("json")
local naughty = require("naughty")
local city = "Montreal,ca"
local open_map_key = "<openWeatherMap api key>"
local path_to_icons = "/usr/share/icons/Arc/status/symbolic/"
local icon_widget = wibox.widget {
{
i... | local wibox = require("wibox")
local http = require("socket.http")
local json = require("json")
local naughty = require("naughty")
local city = "Montreal,ca"
local open_map_key = "<openWeatherMap api key>"
local path_to_icons = "/usr/share/icons/Arc/status/symbolic/"
local icon_widget = wibox.widget {
{
i... | fix weather widget crash with no internet connection | fix weather widget crash with no internet connection
| Lua | mit | streetturtle/AwesomeWM,streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets |
1d69218e96489d845b841156a70e81fed4a0c0ac | samples/gtkbuilder.lua | samples/gtkbuilder.lua | #! /usr/bin/env lua
-- Note: demo.ui loaded by this example is copied verbatim from gtk3-demo, and
-- is probably covered by its appropriate license.
-- Import lgi and get Gtk package.
local lgi = require 'lgi'
local Gtk = lgi.Gtk
-- There are two ways to access Gtk.Builder; using standard Gtk API's
-- get_object() ... | #! /usr/bin/env lua
-- Note: demo.ui loaded by this example is copied verbatim from gtk3-demo, and
-- is probably covered by its appropriate license.
-- Import lgi and get Gtk package.
local lgi = require 'lgi'
local Gtk = lgi.Gtk
-- There are two ways to access Gtk.Builder; using standard Gtk API's
-- get_object() ... | Fix gtkbuilder sample | Fix gtkbuilder sample
Fixes github issue #3.
| Lua | mit | zevv/lgi,psychon/lgi,pavouk/lgi |
ec9d27052c96550ad2bcba184644c4329cdc4e50 | lua-project/src/creator/components/AnimationComponent.lua | lua-project/src/creator/components/AnimationComponent.lua |
local cc = cc
local DEBUG_VERBOSE = cc.DEBUG_VERBOSE
local ccp = cc.p
local ccsize = cc.size
local ccrect = cc.rect
local ComponentBase = cc.import(".ComponentBase")
local AnimationComponent = cc.class("cc.Animation", ComponentBase)
local _LOOP_NORMAL = 1
local _LOOP_LOOP = 2
AnimationComponent.LOOP_NORMAL = _LOO... |
local cc = cc
local DEBUG_VERBOSE = cc.DEBUG_VERBOSE
local ccp = cc.p
local ccsize = cc.size
local ccrect = cc.rect
local ComponentBase = cc.import(".ComponentBase")
local AnimationComponent = cc.class("cc.Animation", ComponentBase)
local _LOOP_NORMAL = 1
local _LOOP_LOOP = 2
AnimationComponent.LOOP_NORMAL = _LOO... | fix AnimationComponent | fix AnimationComponent
| Lua | mit | dualface/creator-lua,dualface/creator-lua,dualface/creator-lua,dualface/creator-lua,dualface/creator-lua |
ba84e7431e1b4b2cad599f880ff88ad04414d0f6 | plugins/mod_posix.lua | plugins/mod_posix.lua |
local want_pposix_version = "0.3.0";
local pposix = assert(require "util.pposix");
if pposix._VERSION ~= want_pposix_version then module:log("warn", "Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version); end
local signal = select(2, pcall(require, "util.signal")... |
local want_pposix_version = "0.3.0";
local pposix = assert(require "util.pposix");
if pposix._VERSION ~= want_pposix_version then module:log("warn", "Unknown version (%s) of binary pposix module, expected %s", tostring(pposix._VERSION), want_pposix_version); end
local signal = select(2, pcall(require, "util.signal")... | mod_posix: Fix calls to log() (replace with module:log) and make some global accesses explicit | mod_posix: Fix calls to log() (replace with module:log) and make some global accesses explicit
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
97f230499f0222da368f9f730a5e3f1d6c541d82 | murphy/murphy-ivi.lua | murphy/murphy-ivi.lua | zone { name = "driver" }
zone { name = "passanger1" }
zone { name = "passanger2" }
zone { name = "passanger3" }
zone { name = "passanger4" }
routing_group {
name = "default_driver",
node_type = node.output,
accept = function(self, n)
return (n.type ~= node.bluetooth_carkit and n.type ~= node.hdmi)
... | zone { name = "driver" }
zone { name = "passanger1" }
zone { name = "passanger2" }
zone { name = "passanger3" }
zone { name = "passanger4" }
routing_group {
name = "default_driver",
node_type = node.output,
accept = function(self, n)
return (n.type ~= node.bluetooth_carkit and n.type ~= node.hdmi)
... | Make temporary fix for Modello navigator. | Make temporary fix for Modello navigator.
Take into account that this fix will make all
synthetic speech coming from TTS behaving like
it would come from navigator. That means that
it is attenuating the underlying music stream and
mixing with it. This might actually work for most
TTS cases, but not for all. Eventually... | Lua | lgpl-2.1 | otcshare/pulseaudio-module-murphy-ivi,otcshare/pulseaudio-module-murphy-ivi,otcshare/pulseaudio-module-murphy-ivi,otcshare/pulseaudio-module-murphy-ivi |
5510bdabaecfd1bd5d5e7f2b0ffb8114ae3a2dd2 | scripts/run_tests.lua | scripts/run_tests.lua | #!/usr/bin/env lua5.1
-- Weee
local SCRIPTS_PATH = string.sub(arg[0], 1, -15)
dofile(SCRIPTS_PATH .. "/common.lua")
require("lfs")
local prev_wd = lfs.currentdir()
lfs.chdir(SCRIPTS_PATH .. "/..")
local ROOT = lfs.currentdir()
local group_data = {}
group_data["core"] = {
excluded = {},
args = {},
}
group_data["l... | #!/usr/bin/env lua5.1
-- Weee
local SCRIPTS_PATH = string.sub(arg[0], 1, -15)
dofile(SCRIPTS_PATH .. "/common.lua")
require("lfs")
local prev_wd = lfs.currentdir()
lfs.chdir(SCRIPTS_PATH .. "/..")
local ROOT = lfs.currentdir()
local group_data = {}
group_data["core"] = {
excluded = {},
args = {},
}
group_data["l... | scripts/run_tests.lua: fixed text args lookup; tidy. | scripts/run_tests.lua: fixed text args lookup; tidy.
| Lua | mit | komiga/quanta,komiga/quanta,komiga/quanta |
5352e3b35483530877b3312d8c9b358aa910bc4b | third_party/gflags.lua | third_party/gflags.lua | group("third_party")
project("gflags")
uuid("e319da87-75ed-4517-8f65-bd25e9cc02a3")
kind("StaticLib")
language("C++")
links({
})
defines({
"PATH_SEPARATOR=%%27\\\\%%27",
"GFLAGS_DLL_DECL=",
"GFLAGS_DLL_DEFINE_FLAG=",
"GFLAGS_DLL_DECLARE_FLAG=",
"_LIB",
})
includedirs({
"gflags/sr... | group("third_party")
project("gflags")
uuid("e319da87-75ed-4517-8f65-bd25e9cc02a3")
kind("StaticLib")
language("C++")
links({
})
defines({
"GFLAGS_DLL_DECL=",
"GFLAGS_DLL_DEFINE_FLAG=",
"GFLAGS_DLL_DECLARE_FLAG=",
"_LIB",
})
includedirs({
"gflags/src",
})
files({
"gflags/src/... | Fixing gflags linux build. | Fixing gflags linux build.
| Lua | bsd-3-clause | xenia-project/build-tools,xenia-project/build-tools |
27138a649892fe30e90246c3fad9cef0132e36f1 | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.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$
]]--
requ... | --[[
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$
]]--
requ... | * luci/admin-full: fixed bug that prevented creation of interface sections in dhcp page | * luci/admin-full: fixed bug that prevented creation of interface sections in dhcp page
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2711 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | stephank/luci,8devices/carambola2-luci,projectbismark/luci-bismark,gwlim/luci,projectbismark/luci-bismark,yeewang/openwrt-luci,ReclaimYourPrivacy/cloak-luci,gwlim/luci,alxhh/piratenluci,Canaan-Creative/luci,yeewang/openwrt-luci,freifunk-gluon/luci,ch3n2k/luci,freifunk-gluon/luci,projectbismark/luci-bismark,vhpham80/luc... |
85fdffad70c41332fcb2c5eaf23b8ad62fda097a | conditions/Casting.lua | conditions/Casting.lua | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012, 2013 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 LICE... | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012, 2013 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 LICE... | Fix Casting() which returned the wrong value for boolean condition. | Fix Casting() which returned the wrong value for boolean condition.
In Ovale, proper boolean conditions return time spans that either contain
(true) or do not contain (false) the current time.
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@1498 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | ultijlam/ovale,eXhausted/Ovale,ultijlam/ovale,eXhausted/Ovale,ultijlam/ovale,eXhausted/Ovale,Xeltor/ovale |
caf6732d48273335fa79e480136179d4d4075ba6 | monster/mon_29_animals.lua | monster/mon_29_animals.lua | require("monster.base.drop")
require("monster.base.lookat")
require("monster.base.quests")
require("base.messages");
module("monster.mon_29_animals", package.seeall)
function ini(Monster)
init=true;
monster.base.quests.iniQuests();
killer={}; --A list that keeps track of who attacked the monster last
end
... | require("monster.base.drop")
require("monster.base.lookat")
require("monster.base.quests")
require("base.messages");
module("monster.mon_29_animals", package.seeall)
function ini(Monster)
init=true;
monster.base.quests.iniQuests();
killer={}; --A list that keeps track of who attacked the monster last
end
... | Fixed bug | Fixed bug
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content |
775c4ae1c345ae1fd7594f7fd436d0dca442f0e0 | packages/luci-app-wifishark/files/usr/lib/lua/luci/controller/openairview/survey.lua | packages/luci-app-wifishark/files/usr/lib/lua/luci/controller/openairview/survey.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2013 Nicolas Echaniz <nicoechaniz@altermundi.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 License at
http://www.apache.org/licenses/LICENSE-2.0
]]-... | --[[
LuCI - Lua Configuration Interface
Copyright 2013 Nicolas Echaniz <nicoechaniz@altermundi.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 License at
http://www.apache.org/licenses/LICENSE-2.0
]]-... | luci-app-openairview: fix path names on menus | luci-app-openairview: fix path names on menus
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages |
940935fb16cde82ed673b4fc4cf1f986288e1b8e | tools/migration/migrator/prosody_sql.lua | tools/migration/migrator/prosody_sql.lua |
local assert = assert;
local have_DBI, DBI = pcall(require,"DBI");
local print = print;
local type = type;
local next = next;
local pairs = pairs;
local t_sort = table.sort;
local json = require "util.json";
local mtools = require "migrator.mtools";
local tostring = tostring;
local tonumber = tonumber;
if not have_DB... |
local assert = assert;
local have_DBI, DBI = pcall(require,"DBI");
local print = print;
local type = type;
local next = next;
local pairs = pairs;
local t_sort = table.sort;
local json = require "util.json";
local mtools = require "migrator.mtools";
local tostring = tostring;
local tonumber = tonumber;
if not have_DB... | migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases | migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
5fb9958432c3c02c12dc81d1f520e65aef3b28f6 | lua/entities/gmod_wire_screen.lua | lua/entities/gmod_wire_screen.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Screen"
ENT.WireDebugName = "Screen"
ENT.Editable = true
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:SetupDataTables()
self:NetworkVar("Bool", 0, "SingleValue", { KeyName = "SingleValue",
Edit = { type = "Boolean", title = "#Tool_... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Screen"
ENT.WireDebugName = "Screen"
ENT.Editable = true
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:SetupDataTables()
self:NetworkVar("Bool", 0, "SingleValue", { KeyName = "SingleValue",
Edit = { type = "Boolean", title = "#Tool_... | Update gmod_wire_screen.lua (#2129) | Update gmod_wire_screen.lua (#2129)
fix the background | Lua | apache-2.0 | Grocel/wire,wiremod/wire,dvdvideo1234/wire |
60118c78e1fba6f79957134fe434382f2e3b2b3d | kong/plugins/rate-limiting/daos.lua | kong/plugins/rate-limiting/daos.lua | return {
{
name = "ratelimiting_metrics",
primary_key = { "identifier", "period", "period_date", "service_id", "route_id" },
generate_admin_api = false,
ttl = true,
fields = {
{
identifier = {
type = "string",
re... | return {
{
name = "ratelimiting_metrics",
primary_key = { "identifier", "period", "period_date", "service_id", "route_id" },
generate_admin_api = false,
ttl = true,
db_export = false,
fields = {
{
identifier = {
t... | fix(db) do not export ratelimiting_metrics (#6442) | fix(db) do not export ratelimiting_metrics (#6442)
### Summary
Rate-limiting metrics is problematic on db exports / imports as
reported by @jeremyjpj0916 on #6310.
There are several issues on that, but it seems like the main issue
is that Cassandra schema specifies the value of ratelimiting_metrics
as `COUNTE... | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
599e0fd1df12f65f59f78e0753fb9e49524ddc6a | fontchooser.lua | fontchooser.lua | require "rendertext"
require "keys"
require "graphics"
FontChooser = {
-- font for displaying file/dir names
face = freetype.newBuiltinFace("sans", 25),
fhash = "s25",
-- font for page title
tface = freetype.newBuiltinFace("Helvetica-BoldOblique", 32),
tfhash = "hbo32",
-- font for paging display
sface = freet... | require "rendertext"
require "keys"
require "graphics"
FontChooser = {
-- font for displaying file/dir names
face = freetype.newBuiltinFace("sans", 25),
fhash = "s25",
-- font for page title
tface = freetype.newBuiltinFace("Helvetica-BoldOblique", 32),
tfhash = "hbo32",
-- font for paging display
sface = freet... | fix: do full page refresh to get better user experience | fix: do full page refresh to get better user experience
| Lua | agpl-3.0 | houqp/koreader-base,NiLuJe/koreader,koreader/koreader-base,frankyifei/koreader-base,houqp/koreader,NickSavage/koreader,koreader/koreader-base,houqp/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader,robert00s/koreader,lgeek/koreader,frankyifei/koreader,Hzj-jie/koreader-base,frankyifei/koreader-base,Frenzie/koreader-ba... |
3f353a69940ab45a9e0bf65369d82ee704f46da6 | xmake/modules/detect/sdks/find_vstudio.lua | xmake/modules/detect/sdks/find_vstudio.lua | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | fix find_vstudio bug | fix find_vstudio bug
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake |
09c9f8f059e8aa00b0e632028391a7b155436e13 | mods/bonemeal/init.lua | mods/bonemeal/init.lua | local plant_tab = {
"air",
"default:grass_1",
"default:grass_2",
"default:grass_3",
"default:grass_4",
"default:grass_5",
"flowers:dandelion_white",
"flowers:dandelion_yellow",
"flowers:geranium",
"flowers:rose",
"flowers:tulip",
"flowers:viola"
}
local function can_grow(pos)
pos.y = pos.y-1
local node_u... | local plant_tab = {
"air",
"default:grass_1",
"default:grass_2",
"default:grass_3",
"default:grass_4",
"default:grass_5",
"flowers:dandelion_white",
"flowers:dandelion_yellow",
"flowers:geranium",
"flowers:rose",
"flowers:tulip",
"flowers:viola"
}
local function can_grow(pos)
pos.y = pos.y-1
local node_u... | [bonemeal] Fix bonemeal | [bonemeal] Fix bonemeal
| Lua | unlicense | MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative |
f297cfe3191e17e1e95429b8b3a5905ff44f6869 | util/pluginloader.lua | util/pluginloader.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 plugin_dir = CFG_PLUGINDIR or "./plugins/";
local io_open, os_time = io.open, os.time;
local load... | -- 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 plugin_dir = CFG_PLUGINDIR or "./plugins/";
local io_open, os_time = io.open, os.time;
local load... | util.pluginloader: Fix loading of plugins, plugin libraries and resources in subfolders (e.g., when loading 'a/b', load 'a/mod_b.lua', and not 'mod_a/b.lua'). | util.pluginloader: Fix loading of plugins, plugin libraries and resources in subfolders (e.g., when loading 'a/b', load 'a/mod_b.lua', and not 'mod_a/b.lua').
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
13157fde3f274609f48d9e7dc590023d318dc7ee | src/lua-factory/sources/grl-euronews.lua | src/lua-factory/sources/grl-euronews.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... | euronews: Fix parsing of metadata | euronews: Fix parsing of metadata
The base url of euronews source might depend on the language now.
The url previously pointed to flash stream as now it points to a m3u8
playlist, like:
| #EXTM3U
| #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2000000,RESOLUTION=1280x720
| ewnsabrdepri_ger_720p.m3u8
| #EXT-X-STREAM-I... | Lua | lgpl-2.1 | jasuarez/grilo-plugins,GNOME/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins |
4cbb59891663946fc96accf8b9980bca69b9860d | src/elasticsearch/endpoints/Endpoint.lua | src/elasticsearch/endpoints/Endpoint.lua | -------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local parser = require "elasticsearch.parser"
-------------------------------------------------------------------------------
-- Declaring... | -------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local parser = require "elasticsearch.parser"
-------------------------------------------------------------------------------
-- Declaring... | Fixes #15 Cleared parameters before setting them again. | Fixes #15 Cleared parameters before setting them again.
| Lua | mit | DhavalKapil/elasticsearch-lua |
12481bce0f4dbda9186f1e58e8c7a559fa394a5f | src/patch/ui/hooks/after_stagingroom.lua | src/patch/ui/hooks/after_stagingroom.lua | if _mpPatch and _mpPatch.enabled and _mpPatch.isModding then
local startLock = false
local StartCountdownOld = StartCountdown
function StartCountdown(...)
if not Matchmaking.IsHost() then
_mpPatch.overrideModsFromPreGame()
end
return StartCountdownOld(...)
end
l... | 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... | Try to fix stagingroom... again. | Try to fix stagingroom... again.
| Lua | mit | Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MultiverseModManager,Lymia/CivV_Mod2DLC,Lymia/MPPatch,Lymia/MPPatch |
195a3d33fd4b653d11503f4bdd5af29c3949f4ec | misc.lua | misc.lua | -- Assorted global functions that don't belong in their own file.
-- 5.3 compatibility
local unpack = unpack or table.unpack
local loadstring = loadstring or load
-- "safe require", returns nil,error if require fails rather than
-- throwing an error
function srequire(...)
local s,r = pcall(require, ...)
if s then
... | -- Assorted global functions that don't belong in their own file.
-- 5.3 compatibility
local unpack = unpack or table.unpack
local loadstring = loadstring or load
-- "safe require", returns nil,error if require fails rather than
-- throwing an error
function srequire(...)
local s,r = pcall(require, ...)
if s then
... | Fix luajit-without-5.2 detection | Fix luajit-without-5.2 detection
| Lua | mit | ToxicFrog/luautil |
7733f20d623ddf39f3cd3fd91ccee145698407b8 | src/program/config/common.lua | src/program/config/common.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local S = require("syscall")
local ffi = require("ffi")
local lib = require("core.lib")
local shm = require("core.shm")
local rpc = require("lib.yang.rpc")
local yang = require("lib.yang.yang")
local data = requi... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local S = require("syscall")
local ffi = require("ffi")
local lib = require("core.lib")
local shm = require("core.shm")
local rpc = require("lib.yang.rpc")
local yang = require("lib.yang.yang")
local data = requi... | Fix #638 - Validate path on snabb config get | Fix #638 - Validate path on snabb config get
| Lua | apache-2.0 | dpino/snabb,alexandergall/snabbswitch,eugeneia/snabb,eugeneia/snabb,eugeneia/snabbswitch,Igalia/snabb,dpino/snabbswitch,alexandergall/snabbswitch,Igalia/snabbswitch,Igalia/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,alexandergall/snabbswitch,eugeneia/snabbswitch,eugeneia/snabb,alexandergall/snabbswitch,SnabbCo/snabbsw... |
13a3423f61a2d5410679a9cca14d2f70a9dc4075 | modules/gmake2/_preload.lua | modules/gmake2/_preload.lua | --
-- Name: gmake2/_preload.lua
-- Purpose: Define the gmake2 action.
-- Author: Blizzard Entertainment (Tom van Dijck)
-- Modified by: Aleksi Juvani
-- Vlad Ivanov
-- Created: 2016/01/01
-- Copyright: (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
lo... | --
-- Name: gmake2/_preload.lua
-- Purpose: Define the gmake2 action.
-- Author: Blizzard Entertainment (Tom van Dijck)
-- Modified by: Aleksi Juvani
-- Vlad Ivanov
-- Created: 2016/01/01
-- Copyright: (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
lo... | A few gmake2 fixes due to it moving into a module. | A few gmake2 fixes due to it moving into a module. | Lua | bsd-3-clause | aleksijuvani/premake-core,sleepingwit/premake-core,Blizzard/premake-core,dcourtois/premake-core,noresources/premake-core,tvandijck/premake-core,Zefiros-Software/premake-core,noresources/premake-core,noresources/premake-core,aleksijuvani/premake-core,premake/premake-core,LORgames/premake-core,TurkeyMan/premake-core,tvan... |
08ecf99df258859c53c982d9fded1c52d06aedd6 | openwrt/package/linkmeter/luasrc/linkmeterd.lua | openwrt/package/linkmeter/luasrc/linkmeterd.lua | #! /usr/bin/env lua
local io = require("io")
local os = require("os")
local rrd = require("rrd")
local nixio = require("nixio")
nixio.fs = require("nixio.fs")
local uci = require("uci")
local SERIAL_DEVICE = "/dev/ttyS1"
local RRD_FILE = "/tmp/hm.rrd"
local JSON_FILE = "/tmp/json"
local probeNames = { "Pit", "Food P... | #! /usr/bin/env lua
local io = require("io")
local os = require("os")
local rrd = require("rrd")
local nixio = require("nixio")
nixio.fs = require("nixio.fs")
local uci = require("uci")
local SERIAL_DEVICE = "/dev/ttyS1"
local RRD_FILE = "/tmp/hm.rrd"
local JSON_FILE = "/tmp/json"
local probeNames = { "Pit", "Food P... | [lm] Updated to support new setment ID prefixes. Reads probenames and RF manager data too | [lm] Updated to support new setment ID prefixes. Reads probenames and RF manager data too
| Lua | mit | kdakers80/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,C... |
0453b2dd967918693b0549b4250a147fd7c801fb | kong/plugins/oauth2/migrations/postgres.lua | kong/plugins/oauth2/migrations/postgres.lua | return {
{
name = "2015-08-03-132400_init_oauth2",
up = [[
CREATE TABLE IF NOT EXISTS oauth2_credentials(
id uuid,
name text,
consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE,
client_id text UNIQUE,
client_secret text UNIQUE,
redirect_uri text,... | return {
{
name = "2015-08-03-132400_init_oauth2",
up = [[
CREATE TABLE IF NOT EXISTS oauth2_credentials(
id uuid,
name text,
consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE,
client_id text UNIQUE,
client_secret text UNIQUE,
redirect_uri text,... | fix(oauth2) correct array type for redirect_uri | fix(oauth2) correct array type for redirect_uri
An OAuth2 migration switches the type of the `redirect_uri` field to
`string`. This would break later validations of this field as we expect
it to be iterable via `ipairs`.
We now correctly switch it back to `array`.
| Lua | apache-2.0 | Kong/kong,ccyphers/kong,akh00/kong,icyxp/kong,jebenexer/kong,shiprabehera/kong,salazar/kong,Kong/kong,Mashape/kong,Kong/kong,li-wl/kong |
7c1cd884d1c8e5d16698ba4ba612e716bec4a824 | mod_lastlog/mod_lastlog.lua | mod_lastlog/mod_lastlog.lua | local datamanager = require "util.datamanager";
local jid = require "util.jid";
local time = os.time;
local log_ip = module:get_option_boolean("lastlog_ip_address", false);
local host = module.host;
module:hook("authentication-success", function(event)
local session = event.session;
if session.username then
datama... | local datamanager = require "util.datamanager";
local jid = require "util.jid";
local time = os.time;
local log_ip = module:get_option_boolean("lastlog_ip_address", false);
local host = module.host;
module:hook("authentication-success", function(event)
local session = event.session;
if session.username then
datama... | mod_lastlog: Fix traceback if no session included with event (eg from mod_register_web) (thanks biszkopcik) | mod_lastlog: Fix traceback if no session included with event (eg from mod_register_web) (thanks biszkopcik)
| Lua | mit | prosody-modules/import,softer/prosody-modules,heysion/prosody-modules,obelisk21/prosody-modules,joewalker/prosody-modules,stephen322/prosody-modules,mardraze/prosody-modules,prosody-modules/import,jkprg/prosody-modules,asdofindia/prosody-modules,vince06fr/prosody-modules,olax/prosody-modules,asdofindia/prosody-modules,... |
ac174f6643982e419323a5de43f98a3632d21730 | 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 jid_prep = require "util.jid".prep
local jid_split = require "util.jid".split
local usermanager = require "core.usermanager"
local b64_decode ... | -- 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_decode ... | mod_register_json: fixed typo, added https/http switch and default value to it. | mod_register_json: fixed typo, added https/http switch and default value to it.
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
905bae0e17888420c6edd1e420df1a2467a49a79 | plugins/mod_compression.lua | plugins/mod_compression.lua | -- Prosody IM
-- Copyright (C) 2009 Tobias Markmann
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local zlib = require "zlib";
local print = print
local xmlns_compression_feature = "http://jabber.org/features/co... | -- Prosody IM
-- Copyright (C) 2009 Tobias Markmann
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local zlib = require "zlib";
local print = print
local xmlns_compression_feature = "http://jabber.org/features/co... | Add FIXME to remember TLS compression detection. | Add FIXME to remember TLS compression detection.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
3ae1f86df11c84f75c9dd452a9716a86081c22f9 | MMOCoreORB/bin/scripts/managers/jedi/village/village_jedi_manager_township.lua | MMOCoreORB/bin/scripts/managers/jedi/village/village_jedi_manager_township.lua | -- Additional Includes.
-- includeFile("village/fs_experience_converter_conv_handler.lua")
local ObjectManager = require("managers.object.object_manager")
local ScreenPlay = require("screenplays.screenplay")
-- Utils.
local Logger = require("utils.logger")
require("utils.helpers")
VillageJediManagerTownship = Screen... | local ObjectManager = require("managers.object.object_manager")
local ScreenPlay = require("screenplays.screenplay")
-- Utils.
local Logger = require("utils.logger")
require("utils.helpers")
VillageJediManagerTownship = ScreenPlay:new {
screenplayName = "VillageJediManagerTownship"
}
VILLAGE_PHASE_ONE = 1
VILLAGE_P... | [fixed] Village phase change event not rescheduling on long server uptime periods, villagephase conf txt now depreciated. | [fixed] Village phase change event not rescheduling on long server
uptime periods, villagephase conf txt now depreciated.
Change-Id: I83ebac86817ab85acf00c3213a934c9a1f3e1135
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/... |
39fe582678d598746a0e1698a48c9771d8adf6a3 | icesl-gallery/twisted.lua | icesl-gallery/twisted.lua | --[[
The MIT License (MIT)
Copyright (c) 2015 Loïc Fejoz
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, ... | --[[
The MIT License (MIT)
Copyright (c) 2015 Loïc Fejoz
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, ... | fix(twistted): upgrade to latest version | fix(twistted): upgrade to latest version
| Lua | mit | loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments |
52a573ebcc2ae08ca57f15d2b72463c51001d786 | src/lua/log.lua | src/lua/log.lua | -- log.lua
--
local ffi = require('ffi')
ffi.cdef[[
typedef void (*sayfunc_t)(int level, const char *filename, int line,
const char *error, const char *format, ...);
extern sayfunc_t _say;
extern void say_logrotate(int);
enum say_level {
S_FATAL,
S_SYSERROR,
S_ER... | -- log.lua
--
local ffi = require('ffi')
ffi.cdef[[
typedef void (*sayfunc_t)(int level, const char *filename, int line,
const char *error, const char *format, ...);
extern sayfunc_t _say;
extern void say_logrotate(int);
enum say_level {
S_FATAL,
S_SYSERROR,
S_ER... | Fix #659: builtin/log.lua: attempt to concatenate a nil value | Fix #659: builtin/log.lua: attempt to concatenate a nil value
| Lua | bsd-2-clause | ocelot-inc/tarantool,nvoron23/tarantool,KlonD90/tarantool,mejedi/tarantool,dkorolev/tarantool,Sannis/tarantool,condor-the-bird/tarantool,Sannis/tarantool,condor-the-bird/tarantool,KlonD90/tarantool,rtsisyk/tarantool,condor-the-bird/tarantool,ocelot-inc/tarantool,vasilenkomike/tarantool,guard163/tarantool,Sannis/taranto... |
65d644c923d69a7a06b9426bf56976d7d13c2b00 | packages/nn/LookupTable.lua | packages/nn/LookupTable.lua | local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module')
LookupTable.__version = 2
function LookupTable:__init(nIndex, ...)
parent.__init(self)
if select('#', ...) == 1 and type(select(1, ...)) ~= "number" then
local size = select(1, ...)
self.size = torch.LongStorage(#size + 1)
... | local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module')
LookupTable.__version = 2
function LookupTable:__init(nIndex, ...)
parent.__init(self)
if select('#', ...) == 1 and type(select(1, ...)) ~= "number" then
local size = select(1, ...)
self.size = torch.LongStorage(#size + 1)
... | Again, bug corrections in LookupTable $%^&*()_ | Again, bug corrections in LookupTable $%^&*()_
| Lua | bsd-3-clause | soumith/TH,soumith/TH,soumith/TH,soumith/TH |
2084cafad4f76c61eb7b40de342270beee72f3c5 | luasrc/mch/logger.lua | luasrc/mch/logger.lua | #!/usr/bin/env lua
-- -*- lua -*-
-- Copyright 2012 Appwill Inc.
-- Author : KDr2
--
--
-- 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
-... | #!/usr/bin/env lua
-- -*- lua -*-
-- Copyright 2012 Appwill Inc.
-- Author : KDr2
--
--
-- 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
-... | fix for previous | fix for previous
| Lua | apache-2.0 | lilien1010/moochine,appwilldev/moochine,lilien1010/moochine,appwilldev/moochine,lilien1010/moochine |
28fcb3d74c28aea3bfb6c2f5dcba371312797362 | Interface/AddOns/RayUI/modules/misc/altpower.lua | Interface/AddOns/RayUI/modules/misc/altpower.lua | local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local
local M = R:GetModule("Misc")
local function LoadFunc()
local holder = CreateFrame("Frame", "AltPowerBarHolder", UIParent)
holder:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 100)
holder:Size(128, 50)
PlayerPowerBarAlt:ClearAllPoints... | local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local
local M = R:GetModule("Misc")
local function LoadFunc()
local holder = CreateFrame("Frame", "AltPowerBarHolder", UIParent)
holder:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 70)
holder:Size(128, 50)
PlayerPowerBarAlt:ClearAllPoints(... | Fix altpower | Fix altpower
| Lua | mit | fgprodigal/RayUI |
90fccf236ba6f2a3e9d9782c05e5936f2602e833 | [resources]/GTWfastfood/food_c.lua | [resources]/GTWfastfood/food_c.lua | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | [Patch] Fixed a GUI issue triggering the buy function | [Patch] Fixed a GUI issue triggering the buy function
Any button would have triggered the buy function before this patch of an
earlier update today where implemented.
| Lua | bsd-2-clause | 404rq/GTW-RPG,SpRoXx/GTW-RPG,404rq/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,SpRoXx/GTW-RPG |
190815e984b0df43d36481a9a64a7dd843ff1423 | src/extensions/cp/websocket/frame.lua | src/extensions/cp/websocket/frame.lua | --- === cp.websocket.frame ===
---
--- Implementation of [RFC-6455](https://tools.ietf.org/html/rfc6455), Section 5
---
--- Reads and writes data to and from websocket frame wire protocol data.
local log = require "hs.logger" .new "wsframe"
local bytes = require "hs.bytes"
local bytesToHex ... | --- === cp.websocket.frame ===
---
--- Implementation of [RFC-6455](https://tools.ietf.org/html/rfc6455), Section 5
---
--- Reads and writes data to and from websocket frame wire protocol data.
local log = require "hs.logger" .new "wsframe"
local bytes = require "hs.bytes"
local bytesToHex ... | * Fixed frame.readFrame | * Fixed frame.readFrame
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
87d2536b75130f4df596b15fd60de065f7aea8d0 | mod_push_appserver_fcm/mod_push_appserver_fcm.lua | mod_push_appserver_fcm/mod_push_appserver_fcm.lua | -- mod_push_appserver_fcm
--
-- Copyright (C) 2017 Thilo Molitor
--
-- This file is MIT/X11 licensed.
--
-- Submodule implementing FCM communication
--
-- imports
local socket = require "socket";
local https = require "ssl.https";
local ltn12 = require "ltn12";
local string = require "string";
local t_remove = table.r... | -- mod_push_appserver_fcm
--
-- Copyright (C) 2017 Thilo Molitor
--
-- This file is MIT/X11 licensed.
--
-- Submodule implementing FCM communication
--
-- imports
-- unlock prosody globals and allow ltn12 to pollute the global space
-- this fixes issue #8 in prosody 0.11, see also https://issues.prosody.im/1033
prosod... | Fix #8 for prosody 0.11 | Fix #8 for prosody 0.11
LuaSocket tries to require "ltn12" and pollutes the global space.
Prosody prevents this by default and this fix turns of the protection
while loading LuaSocket.
See also https://issues.prosody.im/1033 for a similar issue
| Lua | mit | tmolitor-stud-tu/mod_push_appserver,tmolitor-stud-tu/mod_push_appserver |
425e7f73b42a69eb6319460d8d03183cabefd2cd | libs/sgi-webuci/root/usr/lib/boa/luci.lua | libs/sgi-webuci/root/usr/lib/boa/luci.lua | module("luci-plugin", package.seeall)
function normalize(path)
local newpath
while newpath ~= path do
if (newpath) then
path = newpath
end
newpath = string.gsub(path, "/[^/]+/../", "/")
end
return newpath
end
function init(path)
-- NB: path points to ROOT/usr/lib/boa, change it to /usr/lib/lua
root ... | module("luci-plugin", package.seeall)
function normalize(path)
local newpath
while newpath ~= path do
if (newpath) then
path = newpath
end
newpath = string.gsub(path, "/[^/]+/../", "/")
end
return newpath
end
function init(path)
-- NB: path points to ROOT/usr/lib/boa, change it to /usr/lib/lua
root ... | * Fixed host builds | * Fixed host builds
| Lua | apache-2.0 | 8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci |
18b1130711b6ff7aacba98034e2bd7f4893b33df | applications/luci-app-openvpn/luasrc/model/cbi/openvpn-file.lua | applications/luci-app-openvpn/luasrc/model/cbi/openvpn-file.lua | -- Licensed to the public under the Apache License 2.0.
local ip = require("luci.ip")
local fs = require("nixio.fs")
local util = require("luci.util")
local uci = require("luci.model.uci").cursor()
local cfg_file = uci:get("openvpn", arg[1], "config")
local auth_file = cfg_file:match("(.+)%..... | -- Licensed to the public under the Apache License 2.0.
local ip = require("luci.ip")
local fs = require("nixio.fs")
local util = require("luci.util")
local uci = require("luci.model.uci").cursor()
local cfg_file = uci:get("openvpn", arg[1], "config")
local auth_file = cfg_file:match("(.+)%..... | luci-app-openvpn: fix stray uci permission warning | luci-app-openvpn: fix stray uci permission warning
The OpenVPN file view uses a dummy Map() instance to render the breadcrumb
template which triggers a uci permission error since the view is being
rendered by a form() action which does not set up the expected permission
flags. CBI Map() instances should only be used f... | Lua | apache-2.0 | hnyman/luci,hnyman/luci,hnyman/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,openwrt/luci,lbthomsen/openwrt-luci,openwrt/luci,hnyman/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,hnyman/luci,hnyman/luci,openwrt/luci,hnyman/luci,hnyman/luci,o... |
d36a3eabddc9c3ac4019f68914804bec67225478 | nvim/lua/mappings.lua | nvim/lua/mappings.lua | local g = vim.g -- a table to access global variables
-- see https://github.com/numToStr/Comment.nvim/issues/14#issuecomment-939230851
-- visual comment with custom keyboard shortcut
local Ut = require('Comment.utils')
local Op = require('Comment.opfunc')
function _G.__toggle_visual(vmode)
local lcs, rcs = Ut.unwra... | local g = vim.g -- a table to access global variables
local function map(mode, lhs, rhs, opts)
local options = { noremap = true }
if opts then
options = vim.tbl_extend('force', options, opts)
end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
function _G.set_terminal_keymaps()
local opts = { norem... | fix: issue with manual commenting map | fix: issue with manual commenting map
| Lua | mit | drmohundro/dotfiles |
c5d9497dbb086f0fc9536e2992851b1b33c45445 | .config/awesome/widgets/battery.lua | .config/awesome/widgets/battery.lua | local wibox = require("wibox")
local awful = require("awful")
local gears = require("gears")
local naughty = require("naughty")
local beautiful = require("beautiful")
-- Create a widget and update its content using the output of a shell
-- command every 10 seconds:
local battery = {}
local battery_widget = wibox.widg... | local wibox = require("wibox")
local awful = require("awful")
local gears = require("gears")
local naughty = require("naughty")
local beautiful = require("beautiful")
-- Create a widget and update its content using the output of a shell
-- command every 10 seconds:
local battery = {}
local battery_widget = wibox.widg... | AwesomeWM: Fix battery tooltip | AwesomeWM: Fix battery tooltip
| Lua | mit | hershsingh/dotfiles,hershsingh/dotfiles |
f471a2f900c289bfed4c84a6fbaa36efb29b9ad6 | src/plugins/core/tools/caffeinate.lua | src/plugins/core/tools/caffeinate.lua | --- === plugins.core.tools.caffeinate ===
---
--- Prevents your Mac from going to sleep.
local require = require
--local log = require("hs.logger").new("caffeinate")
local caffeinate = require "hs.caffeinate"
local config = require "cp.config"
local i18n = requ... | --- === plugins.core.tools.caffeinate ===
---
--- Prevents your Mac from going to sleep.
local require = require
--local log = require("hs.logger").new("caffeinate")
local caffeinate = require "hs.caffeinate"
local config = require "cp.config"
local i18n = requ... | Fix formatting | Fix formatting
| Lua | mit | CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost |
bcc5e06753cb854bb6a12dd871ded7d6765b98a9 | MMOCoreORB/bin/scripts/mobile/tatooine/settler.lua | MMOCoreORB/bin/scripts/mobile/tatooine/settler.lua | settler = Creature:new {
objectName = "@mob/creature_names:settler",
socialGroup = "thug",
pvpFaction = "thug",
faction = "thug",
level = 6,
chanceHit = 0.250000,
damageMin = 50,
damageMax = 55,
baseXp = 113,
baseHAM = 180,
baseHAMmax = 220,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "",
meat... | settler = Creature:new {
objectName = "@mob/creature_names:settler",
socialGroup = "thug",
pvpFaction = "thug",
faction = "thug",
level = 6,
chanceHit = 0.250000,
damageMin = 50,
damageMax = 55,
baseXp = 113,
baseHAM = 180,
baseHAMmax = 220,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "",
meat... | (unstable) [fixed] Settler pants missing. | (unstable) [fixed] Settler pants missing.
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5642 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/... |
f58583f5cfd6cdaf4ed71ccc67775d739ddf629d | 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 | 8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci |
933f775cd7d1cefd4ba16949d765456de4644bb7 | .hammerspoon/Spoons/Quitter.spoon/init.lua | .hammerspoon/Spoons/Quitter.spoon/init.lua | --- === Quitter ===
--
-- Quits configured apps if they have not been used since a specified amount of time.
local obj = {}
obj.__index = obj
-- Metadata
obj.name = "Quitter"
obj.version = "0.1"
obj.author = "Alpha Chen <alpha@kejadlen.dev>"
obj.license = "MIT - https://opensource.org/licenses/MIT"
obj.logger = hs.... | --- === Quitter ===
--
-- Quits configured apps if they have not been used since a specified amount of time.
local obj = {}
obj.__index = obj
-- Metadata
obj.name = "Quitter"
obj.version = "0.1"
obj.author = "Alpha Chen <alpha@kejadlen.dev>"
obj.license = "MIT - https://opensource.org/licenses/MIT"
obj.logger = hs.... | [hammerspoon] fix stopping Quitter spoon | [hammerspoon] fix stopping Quitter spoon
| Lua | mit | kejadlen/dotfiles,kejadlen/dotfiles |
2455028e89520e7bb78fbe51442310fdca491a30 | src/core/main.lua | src/core/main.lua | module(...,package.seeall)
-- Default to not using any Lua code on the filesystem.
-- (Can be overridden with -P argument: see below.)
package.path = ''
local STP = require("lib.lua.StackTracePlus")
local ffi = require("ffi")
local zone = require("jit.zone")
local C = ffi.C
require("lib.lua.strict")
require("lib.l... | module(...,package.seeall)
-- Default to not using any Lua code on the filesystem.
-- (Can be overridden with -P argument: see below.)
package.path = ''
local STP = require("lib.lua.StackTracePlus")
local ffi = require("ffi")
local zone = require("jit.zone")
local C = ffi.C
require("lib.lua.strict")
require("lib.l... | main.lua: Replace tabs with spaces and fix identation on main(). | main.lua: Replace tabs with spaces and fix identation on main().
| Lua | apache-2.0 | snabbco/snabb,wingo/snabb,justincormack/snabbswitch,wingo/snabbswitch,plajjan/snabbswitch,andywingo/snabbswitch,SnabbCo/snabbswitch,Igalia/snabb,andywingo/snabbswitch,pavel-odintsov/snabbswitch,lukego/snabb,Igalia/snabbswitch,dpino/snabbswitch,heryii/snabb,eugeneia/snabb,kellabyte/snabbswitch,eugeneia/snabb,virtualopen... |
c4382d0b25ab7f887cfa363109193ebd114fddc0 | luastatic.lua | luastatic.lua | -- The author disclaims copyright to this source code.
local infile = arg[1]
if not infile then
print("usage: luastatic infile.lua")
os.exit()
end
local CC = os.getenv("CC") or "gcc"
do
local f = io.popen(CC .. " --version")
f:read("*all")
if not f:close() then
print("C compiler not found.")
os.exit... | -- The author disclaims copyright to this source code.
local infile = arg[1]
if not infile then
print("usage: luastatic infile.lua")
os.exit()
end
local CC = os.getenv("CC") or "gcc"
do
local f = io.popen(CC .. " --version")
f:read("*all")
if not f:close() then
print("C compiler not found.")
os.exit... | add --export-dynamic to fix dlopen | add --export-dynamic to fix dlopen
| Lua | cc0-1.0 | ers35/luastatic,ers35/luastatic |
daa369e880e944a76090522d32f7bbcfa32a3318 | bin/process/PooledEPRel2RelRel.lua | bin/process/PooledEPRel2RelRel.lua | local cmd = torch.CmdLine()
cmd:option('-inFile', '', 'input file')
cmd:option('-outFile', '', 'out file')
cmd:option('-kbMap', '', 'out file')
local params = cmd:parse(arg)
if params.kbMap ~= '' then
local vocab_map = {}
for line in io.lines(self.params.vocabFile) do
local token, id = string.match(l... | require 'nn'
--[[
Given a file processed by IntFile2PoolRelationsTorch.lua mapping entity pairs to a set of relations
creates a new file mapping a single relation to a set of relations
]]--
local cmd = torch.CmdLine()
cmd:option('-inFile', '', 'input file')
cmd:option('-outFile', '', 'out file')
cmd:option(... | fix pool relation script | fix pool relation script
| Lua | mit | patverga/torch-relation-extraction,patverga/torch-relation-extraction,patverga/torch-relation-extraction |
477c2a46c7b1a3779e7e69d4045d79767e67f8aa | mod_extauth/mod_extauth.lua | mod_extauth/mod_extauth.lua |
local nodeprep = require "util.encodings".stringprep.nodeprep;
local process = require "process";
local script_type = module:get_option("extauth_type");
assert(script_type == "ejabberd");
local command = module:get_option("extauth_command");
assert(type(command) == "string");
local host = module.host;
assert(not hos... | --
-- NOTE: currently this uses lpc; when waqas fixes process, it can go back to that
--
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local nodeprep = require ... | Add "generic" script support to mod_extauth, as well as lpc support until waqas fixes process | Add "generic" script support to mod_extauth, as well as lpc support until waqas fixes process
| Lua | mit | LanceJenkinZA/prosody-modules,drdownload/prosody-modules,cryptotoad/prosody-modules,drdownload/prosody-modules,jkprg/prosody-modules,BurmistrovJ/prosody-modules,BurmistrovJ/prosody-modules,asdofindia/prosody-modules,stephen322/prosody-modules,LanceJenkinZA/prosody-modules,stephen322/prosody-modules,jkprg/prosody-module... |
a48dc11063e8c6d88b808945396bd2f80c6f5fba | build/scripts/tools/ndk_server.lua | build/scripts/tools/ndk_server.lua | TOOL.Name = "SDKServer"
TOOL.Directory = "../SDK"
TOOL.Kind = "Library"
TOOL.TargetDirectory = "../lib"
TOOL.Defines = {
"NDK_BUILD",
"NDK_SERVER"
}
TOOL.Includes = {
"../SDK/include",
"../SDK/src"
}
TOOL.Files = {
"../SDK/include/NDK/**.hpp",
"../SDK/include/NDK/**.inl",
"../SDK/src/NDK/**.hpp",
"../SDK/sr... | TOOL.Name = "SDKServer"
TOOL.Directory = "../SDK"
TOOL.Kind = "Library"
TOOL.TargetDirectory = "../lib"
TOOL.Defines = {
"NDK_BUILD",
"NDK_SERVER"
}
TOOL.Includes = {
"../SDK/include",
"../SDK/src"
}
TOOL.Files = {
"../SDK/include/NDK/**.hpp",
"../SDK/include/NDK/**.inl",
"../SDK/src/NDK/**.hpp",
"../SDK/sr... | Fix compilation in server mode | Fix compilation in server mode
| Lua | mit | DigitalPulseSoftware/NazaraEngine |
0134ac3e34bd6ede9c989885e1168d1329b5ed5b | DeveloperTools/data2yaml/data2yaml.lua | DeveloperTools/data2yaml/data2yaml.lua | sptbl = {}
print(arg[1])
dofile(string.format("data/%s.lua", arg[1]))
YAML = { name=arg[1] }
function YAML.tables(self, tbl)
if(tbl.params.mandatory == nil) then return end
local ftbl = {}
local ft = {}
for k,v in pairs(tbl.params.mandatory) do
if(string.match(v.type, "sp_ftbl")) then
... | sptbl = {}
print(arg[1])
dofile(string.format("data/%s.lua", arg[1]))
YAML = { name=arg[1] }
function YAML.tables(self, tbl)
if(tbl.params.mandatory == nil) then return end
local ftbl = {}
for k,v in pairs(tbl.params.mandatory) do
if(string.match(v.type, "sp_ftbl")) then
local ft = {}
... | data2yaml fixes: repeating constants do not happen now | data2yaml fixes: repeating constants do not happen now
| Lua | mit | adamnemecek/AudioKit,eljeff/AudioKit,adamnemecek/AudioKit,adamnemecek/AudioKit,audiokit/AudioKit,eljeff/AudioKit,audiokit/AudioKit,eljeff/AudioKit,eljeff/AudioKit,adamnemecek/AudioKit,audiokit/AudioKit,audiokit/AudioKit |
111b8118d14dbb2390af1d911df287019bfb31fc | core/makedeps.lua | core/makedeps.lua | local makeDeps = {
_deps = {},
add = function (self, file)
if not file and file ~= "nil" then return end
self._deps[file] = true
end,
write = function (self)
if type(self.filename) ~= "string" then
self.filename = SILE.masterFilename .. ".d"
end
for dep, _ in pairs(package.loaded) do
... | local makeDeps = {
_deps = {},
add = function (self, file)
if not file and file ~= "nil" then return end
self._deps[file] = true
end,
write = function (self)
if type(self.filename) ~= "string" then
self.filename = SILE.masterFilename .. ".d"
end
for dep, _ in pairs(package.loaded) do
... | Revert "fix(core): Add Lua 5.1 compatibility hack to makedeps code" | Revert "fix(core): Add Lua 5.1 compatibility hack to makedeps code"
This reverts commit b6f6b3ea42b910c52ea88ac22166156c8165557c.
Compatibility now enabled via pl.compat
| Lua | mit | alerque/sile,simoncozens/sile,simoncozens/sile,simoncozens/sile,alerque/sile,alerque/sile,alerque/sile,simoncozens/sile |
3fbf4204a71803aefb59fcb76a2026ef6524103e | instacast.lua | instacast.lua | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
-- do not download following static files:
downloaded["https://instacastcloud.com/bootstrap/css/bootstrap... | instacast.lua: fixes and additions | instacast.lua: fixes and additions | Lua | unlicense | ArchiveTeam/instacast-grab,ArchiveTeam/instacast-grab |
cbe369a714cc1f1155bbcc0a4c9ce2a6d0ac09b6 | installer.lua | installer.lua | -- use build.xml to import the zip and json libraries directly
local zip = {}
local json = {}
do
local function zip_api_make()
@ZIP@
end
setfenv(zip_api_make, zip)
zip_api_make()
local function json_api_make()
@JSON@
end
setfenv(json_api_make, json)
json_api_make()
end
-- Begin installation
local githu... | -- use build.xml to import the zip and json libraries directly
local zip = setmetatable({}, {__index=getfenv()})
local json = setmetatable({}, {__index=getfenv()})
do
local function zip_api_make()
@ZIP@
end
setfenv(zip_api_make, zip)
zip_api_make()
local function json_api_make()
@JSON@
end
setfenv(json_ap... | Fixed installer | Fixed installer
| Lua | mit | apemanzilla/JVML-JIT,Team-CC-Corp/JVML-JIT |
6ec24fe5ce7af67eb5de3d357067bf647dfec329 | qwiki.lua | qwiki.lua | dofile("urlcode.lua")
dofile("table_show.lua")
JSON = (loadfile "JSON.lua")()
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
load_json_file = function(file)
if file then
local f = io.open(file)
local data = f:rea... | dofile("urlcode.lua")
dofile("table_show.lua")
JSON = (loadfile "JSON.lua")()
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
load_json_file = function(file)
if file then
local f = io.open(file)
local data = f:rea... | quizilla.lua: fix | quizilla.lua: fix | Lua | unlicense | ArchiveTeam/qwiki-grab,ArchiveTeam/qwiki-grab |
821ea827e0edce8625d47d3a45cbb2daa7dd32cc | core/src/demo/xmake.lua | core/src/demo/xmake.lua | -- add target
target("demo")
-- add deps
add_deps("xmake")
-- make as a binary
set_kind("binary")
-- add defines
add_defines("__tb_prefix__=\"xmake\"")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add includes directory
add_includedirs("$(projectdir... | -- add target
target("demo")
-- add deps
add_deps("xmake")
-- make as a binary
set_kind("binary")
-- add defines
add_defines("__tb_prefix__=\"xmake\"")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add includes directory
add_includedirs("$(projectdir... | fix core xmake.lua | fix core xmake.lua
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
68d744f36b34c9111553bffb74726fa87acae190 | hammerspoon/layouts/lapseofthought_com.lua | hammerspoon/layouts/lapseofthought_com.lua |
--------------------------------------------------------------------------------
-- LAYOUTS
-- SINTAX:
-- {
-- name = "App name" ou { "App name", "App name" }
-- title = "Window title" (optional)
-- func = function(index, win)
-- COMMANDS
-- end
-- },
--
-- It searches for application "name" and cal... |
--------------------------------------------------------------------------------
-- LAYOUTS
-- SINTAX:
-- {
-- name = "App name" ou { "App name", "App name" }
-- title = "Window title" (optional)
-- func = function(index, win)
-- COMMANDS
-- end
-- },
--
-- It searches for application "name" and cal... | Fix Adium positioning | Fix Adium positioning
| Lua | mit | sjthespian/dotfiles,sjthespian/dotfiles,sjthespian/dotfiles,sjthespian/dotfiles |
b977ba6fd0bf1b01431f7d878ca9895c8e2d6712 | kong/cmd/migrations.lua | kong/cmd/migrations.lua | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local tty = require "kong.cmd.utils.tty"
local meta = require "kong.meta"
local conf_loader = require "kong.conf_loader"
local kong_global = require "kong.global"
local migrations_utils = require "kong.cmd.utils.migrations"
local lapp = [[
Usage: k... | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local tty = require "kong.cmd.utils.tty"
local meta = require "kong.meta"
local conf_loader = require "kong.conf_loader"
local kong_global = require "kong.global"
local migrations_utils = require "kong.cmd.utils.migrations"
local lapp = [[
Usage: k... | fix(migrations) include configured Lua path (#5509) | fix(migrations) include configured Lua path (#5509)
Include lua_package_path in the package.path when running migrations.
This ensures that Kong runs migrations for plugins installed in
locations indicated by lua_package_path outside the standard Lua path. | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
0dc6f8d46924d82f22dad4d65c2cf0af5755769b | inventory.lua | inventory.lua | local c = require("component")
local sides = require("sides")
local inventory = {}
function inventory.dropAll(robot, side)
-- tries to drop all the robot's inventory into the storage on the given side
-- returns true if all if it could be unloaded, false if none or only some could
--robot.drop([number]) -- Returns... | local c = require("component")
local ic = c.inventory_controller
local sides = require("sides")
local inventory = {}
function inventory.dropAll(robot, side)
-- tries to drop all the robot's inventory into the storage on the given side
-- returns true if all if it could be unloaded, false if none or only some could
... | fixes torch placement, wrong var with selectItem | fixes torch placement, wrong var with selectItem
| Lua | apache-2.0 | InfinitiesLoop/oclib |
aa13182afcacd7c7b1208e01e0aff02b356f91d4 | src/caching/dependency.lua | src/caching/dependency.lua | local setmetatable = setmetatable
local Dependency = {}
local mt = {__index=Dependency}
local function get_keys(self, master_key)
local n = self.cache:get(master_key)
if not n then
return nil
end
local keys = {}
for i=1, n do
keys[i] = master_key .. tostring(i)
end
local ke... | local setmetatable = setmetatable
local Dependency = {}
local mt = {__index=Dependency}
local function get_keys(self, master_key)
local n = self.cache:get(master_key)
if not n then
return nil
end
local keys = {}
for i=1, n do
keys[i] = master_key .. tostring(i)
end
local ke... | Updated get keys with dependent keys; fixed misprints. | Updated get keys with dependent keys; fixed misprints.
| Lua | mit | akornatskyy/lucid |
65c12a3af5ea3a149eb1b83d84e89ee9a581f18f | MMOCoreORB/bin/scripts/object/tangible/wearables/armor/bounty_hunter/armor_bounty_hunter_helmet.lua | MMOCoreORB/bin/scripts/object/tangible/wearables/armor/bounty_hunter/armor_bounty_hunter_helmet.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program 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 of the License,
--or (at your option) any lat... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program 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 of the License,
--or (at your option) any lat... | (unstable) [fixed] equipment issue SWGEMU-349 (Boogles) | (unstable) [fixed] equipment issue SWGEMU-349 (Boogles)
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5664 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/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,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/... |
746c511ce9fd64345095a3514b72b07828e83834 | deps/process.lua | deps/process.lua | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
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 or agr... | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
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 or agr... | process.stdin fixes | process.stdin fixes
| Lua | apache-2.0 | luvit/luvit,zhaozg/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,kaustavha/luvit,kaustavha/luvit,bsn069/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit |
07aefc5be364b98fe2a90a91cabcc2b40061b4b6 | pud/component/Component.lua | pud/component/Component.lua | local Class = require 'lib.hump.class'
local property = require 'pud.component.property'
local message = require 'pud.component.message'
-- Component
--
local Component = Class{name='Component',
function(self, newProperties)
self._properties = {}
self:_createProperties(newProperties)
end
}
-- destructor
functio... | local Class = require 'lib.hump.class'
local property = require 'pud.component.property'
local message = require 'pud.component.message'
-- Component
--
local Component = Class{name='Component',
function(self, newProperties)
self._properties = {}
self:_createProperties(newProperties)
end
}
-- destructor
functio... | fix _setProperty to handle setting false boolean value | fix _setProperty to handle setting false boolean value
| Lua | mit | scottcs/wyx |
6f08f246d1f95a0bb2c27db1fb027aa2a2ca8117 | wtest.lua | wtest.lua | print(package.path)
package.path = "./frontend/?.lua"
require "ui/widget"
require "ui/ui"
require "ui/readerui"
require "ui/menu"
require "ui/infomessage"
require "ui/confirmbox"
require "document/document"
TestGrid = Widget:new{}
function TestGrid:paintTo(bb)
v_line = math.floor(bb:getWidth() / 50)
h_line = math.f... | print(package.path)
package.path = "./frontend/?.lua"
require "ui/widget"
require "ui/ui"
require "ui/readerui"
require "ui/menu"
require "ui/infomessage"
require "ui/confirmbox"
require "document/document"
-----------------------------------------------------
-- widget that paints the grid on the background
--------... | fix crash in wtest.lua | fix crash in wtest.lua
| Lua | agpl-3.0 | koreader/koreader-base,koreader/koreader-base,houqp/koreader-base,mwoz123/koreader,NickSavage/koreader,frankyifei/koreader,houqp/koreader,Hzj-jie/koreader,houqp/koreader-base,lgeek/koreader,Hzj-jie/koreader-base,chrox/koreader,frankyifei/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader-base,Frenzie/koreader-base,ap... |
fb1576ca9a4329d80fa11670b9a35d9b3b09c744 | groupped-list.lua | groupped-list.lua | -- cached id list key
local idListKey = KEYS[1];
-- meta key
local metadataKey = KEYS[2];
-- stringified [key]: [aggregateMethod] pairs
local aggregates = ARGV[1];
-- local cache
local rcall = redis.call;
local tinsert = table.insert;
local jsonAggregates = cjson.decode(aggregates);
local aggregateKeys = {};
local re... | -- cached id list key
local idListKey = KEYS[1];
-- meta key
local metadataKey = KEYS[2];
-- stringified [key]: [aggregateMethod] pairs
local aggregates = ARGV[1];
-- local cache
local rcall = redis.call;
local tinsert = table.insert;
local jsonAggregates = cjson.decode(aggregates);
local aggregateKeys = {};
local re... | fix: coerce to number earlier | fix: coerce to number earlier
| Lua | mit | makeomatic/redis-filtered-sort,makeomatic/redis-filtered-sort |
67e56973d1c0e0c3e73acc84d3f10ff71e15ae62 | kong/db/migrations/core/013_220_to_230.lua | kong/db/migrations/core/013_220_to_230.lua | local utils = require("kong.tools.utils")
local CLUSTER_ID = utils.uuid()
return {
postgres = {
up = string.format([[
CREATE TABLE IF NOT EXISTS "parameters" (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE
);
I... | local utils = require("kong.tools.utils")
local CLUSTER_ID = utils.uuid()
return {
postgres = {
up = string.format([[
CREATE TABLE IF NOT EXISTS "parameters" (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE
);
I... | fix(migrations) ensure inserts are performed after schema agreement (#7667) | fix(migrations) ensure inserts are performed after schema agreement (#7667)
When bootstrapping a multi-node Apache Cassandra cluster, the CREATE
TABLE response from the coordinator node does guarantee that the schema
altering statement will result in schema agreement across the cluster.
This update moves the insert... | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
cb44d0852c02f97c229d687cc3d249a2db687ddb | SVUI_UnitFrames/class_resources/paladin.lua | SVUI_UnitFrames/class_resources/paladin.lua | --[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.se... | --[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.se... | Paladin Power Fix | Paladin Power Fix
For real this time...
| Lua | mit | finalsliver/supervillain-ui,FailcoderAddons/supervillain-ui |
115bf08364683502777d3c54905dc0d5a4a5d916 | modules/game_cooldown/cooldown.lua | modules/game_cooldown/cooldown.lua | local ProgressCallback = {
update = 1,
finish = 2
}
cooldownWindow = nil
cooldownButton = nil
contentsPanel = nil
cooldownPanel = nil
lastPlayer = nil
function init()
connect(g_game, { onGameStart = online,
onSpellGroupCooldown = onSpellGroupCooldown,
onSpellCooldown = on... | local ProgressCallback = {
update = 1,
finish = 2
}
cooldownWindow = nil
cooldownButton = nil
contentsPanel = nil
cooldownPanel = nil
lastPlayer = nil
function init()
connect(g_game, { onGameStart = online,
onSpellGroupCooldown = onSpellGroupCooldown,
onSpellCooldown = on... | Fix spell cooldown timer | Fix spell cooldown timer
| Lua | mit | dreamsxin/otclient,kwketh/otclient,gpedro/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen,Cavitt/otclient_mapgen,Radseq/otclient,gpedro/otclient,dreamsxin/otclient,gpedro/otclient,kwketh/otclient,Radseq/otclient |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.