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 |
|---|---|---|---|---|---|---|---|---|---|
aff20746428310aaf07c82f4c45073f891079e1e | applications/luci-splash/luasrc/controller/splash/splash.lua | applications/luci-splash/luasrc/controller/splash/splash.lua | module("luci.controller.splash.splash", package.seeall)
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
node("splash").target = call("action_dispatch")
node("splash", "activate").target = call("action_activate")
node("splash", "splash").target = template("splash_sp... | module("luci.controller.splash.splash", package.seeall)
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
node("splash").target = call("action_dispatch")
node("splash", "activate").target = call("action_activate")
node("splash", "splash").target = template("splash_sp... | applications/luci-splash: properly fix mac address detection in mixed IPv4/IPv6 environments (thanks stargieg) | applications/luci-splash: properly fix mac address detection in mixed IPv4/IPv6 environments (thanks stargieg)
| Lua | apache-2.0 | deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci |
348db49b920f83f5885b9809313a38b2c8eb18ef | src/romdisk/system/lib/org/xboot/core/Application.lua | src/romdisk/system/lib/org/xboot/core/Application.lua | ---
-- The 'Application' class contains the execution environment of
-- current application.
--
-- @module Application
local M = Class()
---
-- Creates a new 'Application'.
--
-- @function [parent=#Application] new
-- @return New 'Application' object.
function M:init()
self.display = Display.new()
self.stage = Displ... | ---
-- The 'Application' class contains the execution environment of
-- current application.
--
-- @module Application
local M = Class()
---
-- Creates a new 'Application'.
--
-- @function [parent=#Application] new
-- @return New 'Application' object.
function M:init()
self.display = Display.new()
self.stage = Displ... | fix Application.lua | fix Application.lua
| Lua | mit | xboot/xboot,xboot/xboot |
34abe3d7a12056c2ea3cda47b5be197652176120 | src/plugins/finalcutpro/timeline/renameclip.lua | src/plugins/finalcutpro/timeline/renameclip.lua | --- === plugins.finalcutpro.timeline.renameclip ===
---
--- Rename Clip
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
--------------------------------------------------------------------------------
local require = require
---------------------------------------... | --- === plugins.finalcutpro.timeline.renameclip ===
---
--- Rename Clip
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
--------------------------------------------------------------------------------
local require = require
---------------------------------------... | #1583 | #1583
- Fixed @stickler-ci errors
| Lua | mit | CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
74a705f9e25f4e6bca295ea8ae8e9339a465b0d0 | test/utils.lua | test/utils.lua | local pop3 = require "pop3"
local lunit = require "lunit"
local assert_equal, assert_not_equal = lunit.assert_equal, lunit.assert_not_equal
DIRSEP = package.config:sub(1,1)
function new_message(...)
local msg = pop3.message(...)
msg:set_eol('\r\n')
msg:set_cp('windows-1251')
return msg
end
fun... | local pop3 = require "pop3"
local lunit = require "lunit"
local assert_equal, assert_not_equal = lunit.assert_equal, lunit.assert_not_equal
DIRSEP = package.config:sub(1,1)
function new_message(...)
local msg = pop3.message(...)
msg:set_eol('\r\n')
msg:set_cp('windows-1251')
return msg
end
fun... | Fix. Test on linux system. | Fix. Test on linux system.
| Lua | mit | moteus/lua-pop3 |
9b0dd01b01feb133d30f7cd42313cbe299882165 | gin/db/sql.lua | gin/db/sql.lua | -- perf
local error = error
local pairs = pairs
local require = require
local setmetatable = setmetatable
local required_options = {
adapter = true,
host = true,
port = true,
database = true,
user = true,
password = true,
pool = true
}
local SqlDatabase = {}
SqlDatabase.__index = SqlDatab... | -- perf
local error = error
local pairs = pairs
local require = require
local setmetatable = setmetatable
local SqlDatabase = {}
SqlDatabase.__index = SqlDatabase
function SqlDatabase.new(options)
-- check for required params
local required_options = {
adapter = true,
host = true,
po... | Fix adapter being hardcoded to MySQL and ensure params get redefined entirely. | Fix adapter being hardcoded to MySQL and ensure params get redefined entirely.
[#60908070]
| Lua | mit | ostinelli/gin,istr/gin |
fa82be6ea8559eb722ac96fff0181392bda02a4e | rima.lua | rima.lua | --
-- rima.lua
--
--
-- Task manager for imap collector.
-- Task's key is a user email address.
-- Rima can manage some tasks with the same key.
-- Tasks with identical keys will be groupped and managed as one bunch of tasks.
--
-- Producers can adds tasks by rima_put() calls.
-- Consumer request a bunch of tasks (wit... | --
-- rima.lua
--
--
-- Task manager for imap collector.
-- Task's key is a user email address.
-- Rima can manage some tasks with the same key.
-- Tasks with identical keys will be groupped and managed as one bunch of tasks.
--
-- Producers can adds tasks by rima_put() calls.
-- Consumer request a bunch of tasks (wit... | rima.lua: bug fixes | rima.lua: bug fixes
| Lua | bsd-2-clause | mailru/tntlua,BHYCHIK/tntlua,spectrec/tntlua,grechkin-pogrebnyakov/tntlua,derElektrobesen/tntlua |
d8e45b4e7c234e72d5dd87e88b4efdb45ddef2dd | frontend/ui/reader/readertypeset.lua | frontend/ui/reader/readertypeset.lua | ReaderTypeset = InputContainer:new{
css_menu_title = _("Set render style"),
css = nil,
internal_css = true,
}
function ReaderTypeset:init()
self.ui.menu:registerToMainMenu(self)
end
function ReaderTypeset:onReadSettings(config)
self.css = config:readSetting("css")
if self.css and self.css ~= "" then
self.ui.d... | ReaderTypeset = InputContainer:new{
css_menu_title = _("Set render style"),
css = nil,
internal_css = true,
}
function ReaderTypeset:init()
self.ui.menu:registerToMainMenu(self)
end
function ReaderTypeset:onReadSettings(config)
self.css = config:readSetting("css")
if self.css and self.css ~= "" then
self.ui.d... | bugfix: embedded css toggle now shows correct status | bugfix: embedded css toggle now shows correct status
| Lua | agpl-3.0 | mihailim/koreader,chihyang/koreader,Frenzie/koreader,houqp/koreader,robert00s/koreader,NiLuJe/koreader,poire-z/koreader,ashang/koreader,ashhher3/koreader,noname007/koreader,koreader/koreader,chrox/koreader,Hzj-jie/koreader,apletnev/koreader,poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,pazos/koreader,Markismus/kore... |
678cea9890ea6880c3e464d24a361ce0926b7152 | slt2.lua | slt2.lua | --[[
-- slt2 - Simple Lua Template 2
--
-- Project page: https://github.com/henix/slt2
--
-- @License
-- MIT License
--
-- @Copyright
-- Copyright (C) 2012-2013 henix.
--]]
local slt2 = {}
-- process included file
-- @return string
local function precompile(template, start_tag, end_tag)
local result = {}
local star... | --[[
-- slt2 - Simple Lua Template 2
--
-- Project page: https://github.com/henix/slt2
--
-- @License
-- MIT License
--
-- @Copyright
-- Copyright (C) 2012-2013 henix.
--]]
local slt2 = {}
-- process included file
-- @return string
local function precompile(template, start_tag, end_tag)
local result = {}
local star... | Allow yield nil values. Fix #5 | Allow yield nil values. Fix #5
| Lua | mit | FSMaxB/liluat |
b23d15d719d52bf961e23f9c3a060f7d0f97f646 | test.lua | test.lua | #!/usr/bin/env th
local torch = require 'torch'
torch.setdefaulttensortype('torch.DoubleTensor')
local gurobi = require 'gurobi'
local tester = torch.Tester()
local gurobiTest = torch.TestSuite()
local eps = 1e-5
function gurobiTest.SmallLP()
local env = gurobi.loadenv("")
local c = torch.Tensor{2.0, 1.0}
... | #!/usr/bin/env th
local torch = require 'torch'
torch.setdefaulttensortype('torch.DoubleTensor')
local gurobi = require 'gurobi'
local tester = torch.Tester()
local gurobiTest = torch.TestSuite()
local eps = 1e-5
function gurobiTest.SmallLP()
local env = gurobi.loadenv("")
local c = torch.Tensor{2.0, 1.0}
... | Fix multiple definitions of env. | Fix multiple definitions of env.
| Lua | apache-2.0 | bamos/gurobi.torch |
b646a1b8a34b238340ce4e17756c1b7fc9894490 | examples/login/gated.lua | examples/login/gated.lua | local msgserver = require "snax.msgserver"
local crypt = require "crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login server
... | local msgserver = require "snax.msgserver"
local crypt = require "crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login server
... | fix login example | fix login example
| Lua | mit | chuenlungwang/skynet,catinred2/skynet,puXiaoyi/skynet,lawnight/skynet,nightcj/mmo,hongling0/skynet,ag6ag/skynet,chenjiansnail/skynet,catinred2/skynet,icetoggle/skynet,zhangshiqian1214/skynet,ag6ag/skynet,QuiQiJingFeng/skynet,bttscut/skynet,great90/skynet,zhangshiqian1214/skynet,helling34/skynet,asanosoyokaze/skynet,zha... |
574eab280a869a55682d4408b516529b0a73864b | Hydra/API/hydra.lua | Hydra/API/hydra.lua | --- === ext ===
---
--- Standard high-level namespace for third-party extensions.
ext = {}
local function clear_old_state()
hydra.menu.hide()
hotkey.disableall()
pathwatcher.stopall()
timer.stopall()
textgrid.destroyall()
notify.unregisterall()
notify.applistener.stopall()
battery.watcher.stopall()
en... | --- === ext ===
---
--- Standard high-level namespace for third-party extensions.
ext = {}
local function clear_old_state()
hydra.menu.hide()
hotkey.disableall()
pathwatcher.stopall()
timer.stopall()
textgrid.destroyall()
notify.unregisterall()
notify.applistener.stopall()
battery.watcher.stopall()
en... | Fixed potential bugs in hydra.exec() by making it less convenient to use. | Fixed potential bugs in hydra.exec() by making it less convenient to use.
| Lua | mit | lowne/hammerspoon,peterhajas/hammerspoon,peterhajas/hammerspoon,joehanchoi/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,Stimim/hammerspoon,emoses/hammerspoon,kkamdooong/hammerspoon,tmandry/hammerspoon,Habbie/hammerspoon,latenitefilms/hammerspoon,asmagill/hammerspoon,Hammerspoon/hammerspoon,dopcn/hammers... |
aa19f6f3a2e376e8ff661edba7f7fe2554cd44e0 | lua/String.lua | lua/String.lua | local squote = string.byte("'")
local dquote = string.byte('"')
-- escape "sequences"
local escapeSequences = {
a = '\a',
b = '\b',
f = '\f',
r = '\r',
n = '\n',
t = '\t',
v = '\v',
['"'] = '"',
["'"] = "'",
['\\'] = '\\'
}
-- Parse a string like it's a Lua 5.2 string.
local function parseString52... | local squote = "'"
local dquote = '"'
-- escape "sequences"
local escapeSequences = {
a = '\a',
b = '\b',
f = '\f',
r = '\r',
n = '\n',
t = '\t',
v = '\v',
['"'] = '"',
["'"] = "'",
['\\'] = '\\'
}
local pads = {
z = "\\z",
x = "\\x",
['0'] = '\\0',
['1'] = '\\1',
['2'] = '\\2',
['3'] ... | Fix bugs | Fix bugs
| Lua | mit | SoniEx2/Stuff,SoniEx2/Stuff |
40c9aa96effa54875e2fb4921c5a199c86cecd1e | core/sile.lua | core/sile.lua | SILE = {}
SILE.version = "0.9.4-unreleased"
SILE.utilities = require("core/utilities")
SU = SILE.utilities
SILE.inputs = {}
SILE.Commands = {};
SILE.debugFlags = {}
SILE.nodeMakers = {}
SILE.tokenizers = {}
loadstring = loadstring or load -- 5.3 compatibility
if not unpack then unpack = table.unpack end -- 5.3 compati... | SILE = {}
SILE.version = "0.9.4-unreleased"
SILE.utilities = require("core/utilities")
SU = SILE.utilities
SILE.inputs = {}
SILE.Commands = {};
SILE.debugFlags = {}
SILE.nodeMakers = {}
SILE.tokenizers = {}
loadstring = loadstring or load -- 5.3 compatibility
if not unpack then unpack = table.unpack end -- 5.3 compati... | Test for stupidity. Fixes #263 | Test for stupidity. Fixes #263 | Lua | mit | neofob/sile,simoncozens/sile,simoncozens/sile,alerque/sile,alerque/sile,neofob/sile,neofob/sile,alerque/sile,simoncozens/sile,neofob/sile,simoncozens/sile,alerque/sile |
1a20ec501b5ad433c85c770f557185e3d398833f | tools/benchmark.lua | tools/benchmark.lua | local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)()
package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path
require 'xlua'
require 'pl'
require 'w2nn'
local iproc = require 'iproc'
local reconstruct = require 'reconstruct'
local image_loader = ... | local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)()
package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path
require 'xlua'
require 'pl'
require 'w2nn'
local iproc = require 'iproc'
local reconstruct = require 'reconstruct'
local image_loader = ... | Fix the evaluation metric in benchmark | Fix the evaluation metric in benchmark
| Lua | mit | nagadomi/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,Spitfire1900/upscaler,nagadomi/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x,Spitfire1900/upscaler,vitaliylag/waifu2x,higankanshi/waifu2x,higankanshi/waifu2x |
3089831ad2e7ccfb17c1d0d4a562242c3cd2def7 | framework/libs/flexihash.lua | framework/libs/flexihash.lua | -- TODO more hash alg
-- TODO refactor with ffi
local CRC = require "framework.libs.hasher.crc32"
local Flexihash = {
obj = nil
}
Flexihash.__index = Flexihash
local DEFAULT_REPLICAS = 64
local function empty_table(tbl)
for k, v in pairs(tbl) do
return false
end
return true
end
function Fle... | -- TODO more hash alg
-- TODO refactor with ffi
local CRC = require "framework.libs.hasher.crc32"
local Flexihash = {}
Flexihash.__index = Flexihash
local DEFAULT_REPLICAS = 64
local function empty_table(tbl)
for k, v in pairs(tbl) do
return false
end
return true
end
function Flexihash:instance... | fix bug: flexihash should not be singleton | fix bug: flexihash should not be singleton
| Lua | bsd-2-clause | nicholaskh/strawberry,nicholaskh/strawberry |
9b9b06759579581a01a103a239395976bbe4195d | src_trunk/resources/lvpd-system/c_headlights.lua | src_trunk/resources/lvpd-system/c_headlights.lua | -- Bind Keys required
function bindKeys(res)
bindKey("p", "down", toggleFlashers)
end
addEventHandler("onClientResourceStart", getResourceRootElement(), bindKeys)
function toggleFlashers()
local veh = getPedOccupiedVehicle(getLocalPlayer())
if (veh) then
local modelid = getElementModel(veh)
if (gove... | -- Bind Keys required
function bindKeys(res)
bindKey("p", "down", toggleFlashers)
for key, value in ipairs(getElementsByType("vehicle")) do
local modelid = getVehicleModel(value)
if (isElementStreamedIn(value)) then
if (governmentVehicle[modelid]) or exports.global:cdoesVehicleHaveItem(value, 61) then... | 0001012: LSPD/ES Emergency Light Mods bugging out | 0001012: LSPD/ES Emergency Light Mods bugging out
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1331 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
863c1b673d0986819b0228f324fb8e18e616c8c9 | Modules/Shared/Utility/QFrame.lua | Modules/Shared/Utility/QFrame.lua | --- CFrame representation as a quaternion
-- @module QFrame
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Quaternion = require("Quaternion")
local QFrame = {}
QFrame.__index = QFrame
function QFrame.new(px, py, pz, w, x, y, z)
local self = setmetatable({}, QFrame)
s... | --- CFrame representation as a quaternion
-- @module QFrame
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Quaternion = require("Quaternion")
local QFrame = {}
QFrame.__index = QFrame
function QFrame.new(px, py, pz, w, x, y, z)
local self = setmetatable({}, QFrame)
s... | Fix QFrame | Fix QFrame
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
220aa69a516476a952aafd4d15190771d132e669 | kong/cli/utils/utils.lua | kong/cli/utils/utils.lua | --[[
Kong CLI utilities
- Logging
- Luarocks helpers
]]
local ansicolors = require "ansicolors"
local constants = require "kong.constants"
local Object = require "classic"
local lpath = require "luarocks.path"
local IO = require "kong.tools.io"
--
-- Colors
--
local colors = {}
for _, v in ipairs({"red", "green", "... | --[[
Kong CLI utilities
- Logging
- Luarocks helpers
]]
local ansicolors = require "ansicolors"
local constants = require "kong.constants"
local Object = require "classic"
local lpath = require "luarocks.path"
local IO = require "kong.tools.io"
--
-- Colors
--
local colors = {}
for _, v in ipairs({"red", "green", "... | Fix ssl config | Fix ssl config
Former-commit-id: b22190171da0c2d978105d6cca19227ad9e74d7d | Lua | apache-2.0 | shiprabehera/kong,ccyphers/kong,akh00/kong,Kong/kong,isdom/kong,ind9/kong,jerizm/kong,streamdataio/kong,salazar/kong,Kong/kong,ejoncas/kong,isdom/kong,kyroskoh/kong,rafael/kong,icyxp/kong,smanolache/kong,vzaramel/kong,Vermeille/kong,li-wl/kong,xvaara/kong,jebenexer/kong,kyroskoh/kong,Kong/kong,ajayk/kong,vzaramel/kong,... |
b66a302082eb97fec9f3d55ef28b05a4bf785988 | languages/unicode.lua | languages/unicode.lua | require("char-def")
local chardata = characters.data
SILE.nodeMakers.base = std.object {
makeToken = function(self)
if #self.contents>0 then
coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options))
SU.debug("tokenizer", "Token: "..self.token)
self.contents = {} ; self.to... | require("char-def")
local chardata = characters.data
SILE.nodeMakers.base = std.object {
makeToken = function(self)
if #self.contents>0 then
coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options))
SU.debug("tokenizer", "Token: "..self.token)
self.contents = {} ; self.to... | Check for end-of-stream space. Fixes color-fonts, may break everything else... | Check for end-of-stream space. Fixes color-fonts, may break everything else... | Lua | mit | alerque/sile,neofob/sile,alerque/sile,alerque/sile,neofob/sile,neofob/sile,simoncozens/sile,simoncozens/sile,alerque/sile,neofob/sile,simoncozens/sile,simoncozens/sile |
0b4f9030c66682840904ed73ba1aaff2f2cadce9 | src/plugins/finalcutpro/tangent/video.lua | src/plugins/finalcutpro/tangent/video.lua | --- === plugins.finalcutpro.tangent.video ===
---
--- Final Cut Pro Video Inspector for Tangent
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
--------------------------------------------------------------------------------
local require = require
---------------... | --- === plugins.finalcutpro.tangent.video ===
---
--- Final Cut Pro Video Inspector for Tangent
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
--------------------------------------------------------------------------------
local require = require
---------------... | #1471 * Fixed issue where Video would display every time CP reloaded. | #1471
* Fixed issue where Video would display every time CP reloaded.
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
13295779a6dbc6924c28343e4ff47e5ef6345a40 | share/lua/playlist/jamendo.lua | share/lua/playlist/jamendo.lua | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | Fixed jamendo playlist demuxer. | Fixed jamendo playlist demuxer.
The check is a bit less strict to adapt to the various URL we can get.
It closes #5661.
| Lua | lgpl-2.1 | xkfz007/vlc,jomanmuk/vlc-2.2,krichter722/vlc,krichter722/vlc,krichter722/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,xkfz007/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,shyamalschandra/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,vlc-mirror/vlc,kricht... |
adec4bf7f83e5d9214c708e816f8041f0da94541 | src/luarocks/command_line.lua | src/luarocks/command_line.lua |
--- Functions for command-line scripts.
--module("luarocks.command_line", package.seeall)
local command_line = {}
local unpack = unpack or table.unpack
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
local path = require("luarocks.path")
local dir = require("luarocks.dir")
local deps = requ... |
--- Functions for command-line scripts.
--module("luarocks.command_line", package.seeall)
local command_line = {}
local unpack = unpack or table.unpack
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
local path = require("luarocks.path")
local dir = require("luarocks.dir")
local deps = requ... | Make sure --local always implies --tree=home. | Make sure --local always implies --tree=home.
Alternative fix for problem mentioned in #352.
| Lua | mit | starius/luarocks,xpol/luainstaller,keplerproject/luarocks,luarocks/luarocks,xpol/luainstaller,xpol/luarocks,starius/luarocks,xpol/luavm,ignacio/luarocks,xpol/luainstaller,tarantool/luarocks,xpol/luavm,starius/luarocks,tarantool/luarocks,xpol/luainstaller,robooo/luarocks,tarantool/luarocks,keplerproject/luarocks,xpol/lu... |
ccc4b3008eef0708123d56c6c9d118b74ddfac89 | src/tests/cp/apple/finalcutpro/plugins_spec.lua | src/tests/cp/apple/finalcutpro/plugins_spec.lua | local require = require
-- local log = require "hs.logger" .new "t_plugins"
-- local inspect = require "hs.inspect"
local spec = require "cp.spec"
local expect = require "cp.spec.expect"
local describe, it = spec.describe, spec.it
local config = require "cp.config"
local plugins ... | local require = require
-- local log = require "hs.logger" .new "t_plugins"
-- local inspect = require "hs.inspect"
local spec = require "cp.spec"
local expect = require "cp.spec.expect"
local describe, it = spec.describe, spec.it
local config = require "cp.config"
local plugins ... | * Fixed stickler issue. | * Fixed stickler issue.
| Lua | mit | CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks |
1be06f657e7caaa40ae199e0af671a275b695330 | src/symbolic.lua | src/symbolic.lua | local symbolic = {} -- package
--[[
Symbol metatable.
Symbol objects must not have any properties
in order to protect properties from user code.
Instead `properties` tables should be used.
--]]
local Symbol = {}
-- package global private variables
local symbols = {} -- list of symbols
local properties ... | local symbolic = {} -- package
--[[
Symbol metatable.
Symbol objects must not have any properties
in order to protect properties from user code.
Instead `properties` tables should be used.
--]]
local Symbol = {}
-- package global private variables
local symbols = {} -- list of symbols
local properties ... | fix name bug | fix name bug
| Lua | mit | kohyatoh/symboliclua,kohyatoh/symboliclua |
c99928d98d118b881e4bea1c3d4fbbed933aa7ce | app/commands/make.lua | app/commands/make.lua | local log = require('../lib/log')
local config = require('../lib/config')
local uv = require('uv')
local pathJoin = require('luvi').path.join
local db = config.db
local readPackageFs = require('../lib/read-package').readFs
local fs = require('coro-fs')
local git = require('git')
local parseDeps = require('../lib/parse-... | local log = require('../lib/log')
local config = require('../lib/config')
local uv = require('uv')
local pathJoin = require('luvi').path.join
local db = config.db
local readPackageFs = require('../lib/read-package').readFs
local fs = require('coro-fs')
local git = require('git')
local parseDeps = require('../lib/parse-... | Fix lit make on windows | Fix lit make on windows
| Lua | apache-2.0 | zhaozg/lit,1yvT0s/lit,kaustavha/lit,lduboeuf/lit,luvit/lit,DBarney/lit,squeek502/lit,kidaa/lit,james2doyle/lit |
1a965238a27b163ff19e5ed709e65314d6bca44f | atoms.lua | atoms.lua |
function list_pop()
local l = redis.call('LRANGE', KEYS[1], 0, -1)
local i = tonumber(ARGV[1]) + 1
local v = table.remove(l, i)
redis.call('DEL', KEYS[1])
redis.call('RPUSH', KEYS[1], unpack(l))
return v
end
function list_insert()
local l = redis.call('LRANGE', KEYS[1], 0, -1)
local i ... |
function list_pop()
local l = redis.call('LRANGE', KEYS[1], 0, -1)
local i = tonumber(ARGV[1]) + 1
local v = table.remove(l, i)
redis.call('DEL', KEYS[1])
redis.call('RPUSH', KEYS[1], unpack(l))
return v
end
function list_insert()
local l = redis.call('LRANGE', KEYS[1], 0, -1)
local i ... | Fix set_difference_update | Fix set_difference_update
| Lua | bsd-2-clause | stephenmcd/hot-redis,hwms/hot-redis,jmizgajski/hot-redis |
ed48242f4f08b7608e3db39f6379f857026054f8 | premake5.lua | premake5.lua | include("tools/build")
require("third_party/premake-export-compile-commands/export-compile-commands")
location(build_root)
targetdir(build_bin)
objdir(build_obj)
-- Define an ARCH variable
-- Only use this to enable architecture-specific functionality.
if os.is("linux") then
ARCH = os.outputof("uname -p")
else
AR... | include("tools/build")
require("third_party/premake-export-compile-commands/export-compile-commands")
location(build_root)
targetdir(build_bin)
objdir(build_obj)
-- Define an ARCH variable
-- Only use this to enable architecture-specific functionality.
if os.is("linux") then
ARCH = os.outputof("uname -p")
else
AR... | Fix Travis | Fix Travis
| Lua | bsd-3-clause | sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia |
924b47dfa0705ce3741bba59cac80ba0a3d491be | contrib/package/iwinfo/src/iwinfo.lua | contrib/package/iwinfo/src/iwinfo.lua | #!/usr/bin/lua
require "iwinfo"
function printf(fmt, ...)
print(string.format(fmt, ...))
end
function s(x)
if x == nil then
return "?"
else
return tostring(x)
end
end
function n(x)
if x == nil then
return 0
else
return tonumber(x)
end
end
function print_info(api, dev)
local iw = iwinfo[api]
print... | #!/usr/bin/lua
require "iwinfo"
function printf(fmt, ...)
print(string.format(fmt, ...))
end
function s(x)
if x == nil then
return "?"
else
return tostring(x)
end
end
function n(x)
if x == nil then
return 0
else
return tonumber(x)
end
end
function print_info(api, dev)
local iw = iwinfo[api]
local ... | [libiwinfo] fix crash in iwinfo cli when operating on monitor interfaces | [libiwinfo] fix crash in iwinfo cli when operating on monitor interfaces
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6257 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 |
5f646bbb2a50ab84602360dd907622495aea2d03 | lua/testdriver.lua | lua/testdriver.lua | require 'libinjection'
require 'Test.More'
require 'Test.Builder.Tester'
function print_token_string(tok)
local out = ''
if tok.str_open ~= '\0' then
out = out .. tok.str_open
end
out = out .. tok.val
if tok.str_close ~= '\0' then
out = out .. tok.str_close
end
return(out)
e... | require 'libinjection'
require 'Test.More'
require 'Test.Builder.Tester'
function trim(s)
return s:find'^%s*$' and '' or s:match'^%s*(.*%S)'
end
function print_token_string(tok)
local out = ''
if tok.str_open ~= '\0' then
out = out .. tok.str_open
end
out = out .. tok.val
if tok.str_cl... | fix testdriver | fix testdriver
| Lua | bsd-3-clause | ppliu1979/libinjection,fengjian/libinjection,fengjian/libinjection,dijkstracula/libinjection,ppliu1979/libinjection,fengjian/libinjection,fengjian/libinjection,ppliu1979/libinjection,fengjian/libinjection,fengjian/libinjection,dijkstracula/libinjection,ppliu1979/libinjection,fengjian/libinjection,dijkstracula/libinject... |
78b453d58a92c2ff34a80bf610d2c1c120eedc38 | languages/unicode.lua | languages/unicode.lua | local icu = require("justenoughicu")
require("char-def")
local chardata = characters.data
SILE.nodeMakers.base = std.object {
makeToken = function (self)
if #self.contents>0 then
coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options))
SU.debug("tokenizer", "Token: "..self.tok... | local icu = require("justenoughicu")
require("char-def")
local chardata = characters.data
SILE.nodeMakers.base = std.object {
makeToken = function (self)
if #self.contents>0 then
coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options))
SU.debug("tokenizer", "Token: "..self.tok... | fix(languages): Tidy up variable scope in languages/unicode.lua | fix(languages): Tidy up variable scope in languages/unicode.lua
Fixes #699 | Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
daa5c27ce8aa988436fc81c4e67d59d591cef411 | model.lua | model.lua | local _ = require 'moses'
local nn = require 'nn'
require 'modules/GradientRescale'
local image = require 'image'
local model = {}
local cudnn = false -- cuDNN flag
pcall(require, 'cudnn') -- Overwrites flag with cuDNN module if available
local fbcunn = pcall(require, 'fbcunn') -- fbcunn flag (cuDNN is a dependency)
... | local _ = require 'moses'
local nn = require 'nn'
require 'modules/GradientRescale'
local image = require 'image'
local model = {}
pcall(require, 'cudnn')
local cudnn = cudnn or false -- cuDNN flag
pcall(require, 'fbcunn')
local fbcunn = nn.SpatialConvolutionCuFFT and true or false -- fbcunn flag (cuDNN is a dependenc... | Fix cuDNN flag | Fix cuDNN flag
| Lua | mit | Kaixhin/Atari |
f51b5b8f8e5bdfb3cb19e05cdb0f595881aef67f | src/dns.resolvers.lua | src/dns.resolvers.lua | local loader = function(loader, ...)
local resolver = require"cqueues.dns.resolver"
local config = require"cqueues.dns.config"
local condition = require"cqueues.condition"
local monotime = require"cqueues".monotime
local random = require"cqueues.dns".random
local errno = require"cqueues.errno"
local ETIMEDOUT = ... | local loader = function(loader, ...)
local resolver = require"cqueues.dns.resolver"
local config = require"cqueues.dns.config"
local condition = require"cqueues.condition"
local monotime = require"cqueues".monotime
local random = require"cqueues.dns".random
local errno = require"cqueues.errno"
local ETIMEDOUT = ... | dns.resolvers: Put resolvers back into pool when queried | dns.resolvers: Put resolvers back into pool when queried
Fixes stall when garbage collector doesn't get called
Reported by @torhve
| Lua | mit | wahern/cqueues,daurnimator/cqueues,daurnimator/cqueues,wahern/cqueues |
a9f65fda1e6fdf15d8e695308e39859141373503 | core/src/lua-cjson/xmake.lua | core/src/lua-cjson/xmake.lua | target("lua-cjson")
set_kind("static")
set_warnings("all")
add_deps("luajit")
if is_plat("windows") then
set_languages("c89")
end
add_files("lua-cjson/*.c|fpconv.c")
-- Use internal strtod() / g_fmt() code for performance and disable multi-thread
add_defines("NDEBUG", "USE_INTER... | target("lua-cjson")
set_kind("static")
set_warnings("all")
add_deps("luajit")
if is_plat("windows") then
set_languages("c89")
end
add_files("lua-cjson/*.c|fpconv.c")
-- Use internal strtod() / g_fmt() code for performance and disable multi-thread
add_defines("NDEBUG", "USE_INTER... | fix strncasecmp for cjson | fix strncasecmp for cjson
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
c316675292571cdbab0a71b3823e4e9b274eb3af | MMOCoreORB/bin/scripts/mobile/naboo/plodding_falumpaset.lua | MMOCoreORB/bin/scripts/mobile/naboo/plodding_falumpaset.lua | plodding_falumpaset = Creature:new {
objectName = "@mob/creature_names:domestic_falumpaset",
socialGroup = "self",
pvpFaction = "",
faction = "",
level = 10,
chanceHit = 0.28,
damageMin = 80,
damageMax = 90,
baseXp = 292,
baseHAM = 1200,
baseHAMmax = 1400,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatT... | plodding_falumpaset = Creature:new {
objectName = "@mob/creature_names:domestic_falumpaset",
socialGroup = "self",
pvpFaction = "",
faction = "",
level = 10,
chanceHit = 0.28,
damageMin = 80,
damageMax = 90,
baseXp = 292,
baseHAM = 1200,
baseHAMmax = 1400,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatT... | [Fixed] plodding falumpaset to be tamable | [Fixed] plodding falumpaset to be tamable
Change-Id: I2c174093c05cf8be34fd3dc01725a8b0f234c47f
| 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,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/... |
7c66bfd6172a7c26dcdd479ec21331f265bf0f64 | src/cosy/email.lua | src/cosy/email.lua | local loader = require "cosy.loader"
local ssl = require "ssl"
local smtp = loader.hotswap "socket.smtp"
if _G.js then
error "Not available"
end
local Email = {}
-- First case: detection, using blocking sockets
-- Second case: email sending, using non-blocking sockets
local make_socket = {}
function make_so... | local loader = require "cosy.loader"
local ssl = require "ssl"
local smtp = loader.hotswap "socket.smtp"
if _G.js then
error "Not available"
end
local Email = {}
-- First case: detection, using blocking sockets
-- Second case: email sending, using non-blocking sockets
local make_socket = {}
function make_so... | Fix warnings. | Fix warnings.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
9ad20f6b44f178dc5696b41012c337c0efe809f2 | applications/luci-livestats/luasrc/controller/livestats.lua | applications/luci-livestats/luasrc/controller/livestats.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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 License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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 License at
h... | * luci/app/livestats: property fixup | * luci/app/livestats: property fixup
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci |
9e0cc9c7e4470d69ccda156f67940ee479161ffb | xmake.lua | xmake.lua | set_xmakever("2.5.4")
-- project
set_project("hikyuu")
add_rules("mode.debug", "mode.release")
if not is_plat("windows") then
add_rules("mode.coverage", "mode.asan", "mode.msan", "mode.tsan", "mode.lsan")
end
-- version
set_version("1.2.4", {build="%Y%m%d%H%M"})
set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别 ... | set_xmakever("2.5.4")
-- project
set_project("hikyuu")
add_rules("mode.debug", "mode.release")
if not is_plat("windows") then
add_rules("mode.coverage", "mode.asan", "mode.msan", "mode.tsan", "mode.lsan")
end
-- version
set_version("1.2.4", {build="%Y%m%d%H%M"})
set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别 ... | fixed fmt | fixed fmt
| Lua | mit | fasiondog/hikyuu |
f2b64fa882580e491025f880f11cf6c1038954ca | examples/table_align_fix.lua | examples/table_align_fix.lua | -- Replaces all "align" attributes with the CSS "text-align" property.
-- This can be used to filter Pandoc HTML output, which uses the
-- (deprecated) "align" attribute on th and td elements.
local gumbo = require "gumbo"
local document = assert(gumbo.parseFile(arg[1] or io.stdin))
local function fixAlignAttr(elemen... | -- Replaces all "align" attributes on td/th elements with a "style"
-- attribute containing the equivalent CSS "text-align" property.
-- This can be used to fix Pandoc HTML output.
local gumbo = require "gumbo"
local Set = require "gumbo.Set"
local document = assert(gumbo.parseFile(arg[1] or io.stdin))
local alignment... | Clean up table_align_fix example and rewrite to use Node:walk() | Clean up table_align_fix example and rewrite to use Node:walk()
| Lua | apache-2.0 | craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo |
4bffaf0337c87a35bbf8e886cb14ef4c1e6aaa5d | plugins/help_plug.lua | plugins/help_plug.lua | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
end
end
return iter
end... | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
end
end
return iter
end... | Updated Help_Plug.lua & Fixed bugs | Updated Help_Plug.lua & Fixed bugs
| Lua | mit | araeisy/araeisy,araeisy/araeisy,araeisy/araeisy,araeisy/araeisy,alomina007/botsgp,MAXrobotTelegram/abbas,WebShark025/NortTM,WebShark025/NortTM,alomina007/botsgp,WebShark025/NortTM,WebShark025/NortTM |
372493d38cdc4c8a85f21eb311ea08ba717e6603 | genie/toolchain.lua | genie/toolchain.lua | --
-- Copyright (c) 2012-2015 Daniele Bartolini and individual contributors.
-- License: https://github.com/taylor001/crown/blob/master/LICENSE
--
function toolchain(build_dir, lib_dir)
newoption
{
trigger = "compiler",
value = "COMPILER",
description = "Choose compiler",
allowed =
{
{ "android-arm", "... | --
-- Copyright (c) 2012-2015 Daniele Bartolini and individual contributors.
-- License: https://github.com/taylor001/crown/blob/master/LICENSE
--
function toolchain(build_dir, lib_dir)
newoption
{
trigger = "compiler",
value = "COMPILER",
description = "Choose compiler",
allowed =
{
{ "android-arm", "... | Windows fixes | Windows fixes
| Lua | mit | dbartolini/crown,taylor001/crown,galek/crown,galek/crown,taylor001/crown,mikymod/crown,mikymod/crown,mikymod/crown,mikymod/crown,taylor001/crown,taylor001/crown,galek/crown,dbartolini/crown,galek/crown,dbartolini/crown,dbartolini/crown |
67000134f00499aa33b78ed07890edcd16e45370 | build/scripts/module/audio.lua | build/scripts/module/audio.lua | if (not _OPTIONS["united"]) then
project "NazaraAudio"
end
files
{
"../include/Nazara/Audio/**.hpp",
"../include/Nazara/Audio/**.inl",
"../src/Nazara/Audio/**.hpp",
"../src/Nazara/Audio/**.cpp"
}
if (os.is("windows")) then
excludes { "../src/Nazara/Audio/Posix/*.hpp", "../src/Nazara/Audio/Posix/*.cpp" }
links ... | if (not _OPTIONS["united"]) then
project "NazaraAudio"
end
defines "NAZARA_AUDIO_OPENAL"
files
{
"../include/Nazara/Audio/**.hpp",
"../include/Nazara/Audio/**.inl",
"../src/Nazara/Audio/**.hpp",
"../src/Nazara/Audio/**.cpp"
}
if (os.is("windows")) then
excludes { "../src/Nazara/Audio/Posix/*.hpp", "../src/Naza... | Fixed audio build script not defining NAZARA_AUDIO_OPENAL | Fixed audio build script not defining NAZARA_AUDIO_OPENAL
Former-commit-id: a2fcdc463e47bc1b6d8a0799fb5f667f96e9dd07 | Lua | mit | DigitalPulseSoftware/NazaraEngine |
2517cdd905aeb28a5b8f47d0c014d4337bf39d61 | UCDchat/rolePlay.lua | UCDchat/rolePlay.lua | function doChat( plr, _, ... )
local player = plr
if ( antiSpam[ player ] ) then
exports.UCDdx:new( player, "Your last sent message was less than one second ago!", 255, 0, 0 )
return false
end
local msg = table.concat( { ... }, " " )
if msg == "" or msg == " " then return end
if ( not exports.UCDaccounts:isP... | local antiSpam = {}
local range = 100
function doChat( plr, _, ... )
local player = plr
if ( antiSpam[ player ] ) then
exports.UCDdx:new( player, "Your last sent message was less than one second ago!", 255, 0, 0 )
return false
end
local msg = table.concat( { ... }, " " )
if msg == "" or msg == " " then retur... | UCDchat | UCDchat
- Fixed isPlayerInRangeOfPoint using wrong player in doChat.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
4f8e5ed9b6fb0a76f3a674605200506722aa090f | MMOCoreORB/bin/scripts/object/tangible/lair/base/objective_banner_rebel.lua | MMOCoreORB/bin/scripts/object/tangible/lair/base/objective_banner_rebel.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 later versio... | --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 later versio... | [Fixed] name of rebel banner lairs | [Fixed] name of rebel banner lairs
Change-Id: I25228e6962413170b1fe836e94d59c650c75f953
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/... |
61edb6493f8241a5ae850980f90748173f6baf1d | mod_ircd/mod_ircd.lua | mod_ircd/mod_ircd.lua | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | mod_ircd: Fixed handling of empty <body/> elements. | mod_ircd: Fixed handling of empty <body/> elements.
| Lua | mit | Craige/prosody-modules,heysion/prosody-modules,joewalker/prosody-modules,BurmistrovJ/prosody-modules,apung/prosody-modules,Craige/prosody-modules,asdofindia/prosody-modules,olax/prosody-modules,stephen322/prosody-modules,mmusial/prosody-modules,apung/prosody-modules,asdofindia/prosody-modules,cryptotoad/prosody-modules... |
2ef91a08b349a56f3c4dcabb4a4760fca7babbd7 | xupnpd/src/plugins/xupnpd_youtube.lua | xupnpd/src/plugins/xupnpd_youtube.lua | -- Copyright (C) 2011 Anton Burdinuk
-- clark15b@gmail.com
-- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd
-- 18 - 360p (MP4,h.264/AVC)
-- 22 - 720p (MP4,h.264/AVC) hd
-- 37 - 1080p (MP4,h.264/AVC) hd
-- 82 - 360p (MP4,h.264/AVC) stereo3d
-- 83 - 480p (MP4,h.264/AVC) hq stereo3d
-- 84 - 720p (MP4,h.264/AV... | -- Copyright (C) 2011 Anton Burdinuk
-- clark15b@gmail.com
-- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd
-- 18 - 360p (MP4,h.264/AVC)
-- 22 - 720p (MP4,h.264/AVC) hd
-- 37 - 1080p (MP4,h.264/AVC) hd
-- 82 - 360p (MP4,h.264/AVC) stereo3d
-- 83 - 480p (MP4,h.264/AVC) hq stereo3d
-- 84 - 720p (MP4,h.264/AV... | YouTube hotfix | YouTube hotfix
| Lua | mit | rollokb/tsdemuxer,lapayx/tsdemuxer,lapayx/tsdemuxer,cgommel/tsdemuxer,cgommel/tsdemuxer,johnymarek/tsdemuxer,cgommel/tsdemuxer,rollokb/tsdemuxer,johnymarek/tsdemuxer,lapayx/tsdemuxer,johnymarek/tsdemuxer,johnymarek/tsdemuxer,rollokb/tsdemuxer,rollokb/tsdemuxer,lapayx/tsdemuxer,cgommel/tsdemuxer |
9058d903180457ca977e874323ce044d579f0909 | train.lua | train.lua | require 'torch'
require 'cutorch'
require 'nn'
require 'cunn'
require 'image'
require 'optim'
local DataLoader = require 'dataloader'
display = require('display')
require 'src/utils'
require 'src/descriptor_net'
----------------------------------------------------------
-- Parameters
-------------------------------... | require 'torch'
require 'cutorch'
require 'nn'
require 'cunn'
require 'image'
require 'optim'
local DataLoader = require 'dataloader'
use_display, display = pcall(require, 'display')
if not use_display then
print('torch.display not found. unable to plot')
end
require 'src/utils'
require 'src/descriptor_net'
---... | fixes #18, #31 | fixes #18, #31
| Lua | apache-2.0 | DmitryUlyanov/texture_nets |
cfc0210a1a2e99d2551460ce311bfdd2a9b26289 | kong/plugins/rate-limiting/policies/init.lua | kong/plugins/rate-limiting/policies/init.lua | local policy_cluster = require "kong.plugins.rate-limiting.policies.cluster"
local timestamp = require "kong.tools.timestamp"
local reports = require "kong.reports"
local redis = require "resty.redis"
local kong = kong
local pairs = pairs
local null = ngx.null
local shm = ngx.shared.kong_rate_limiting_counters
local ... | local policy_cluster = require "kong.plugins.rate-limiting.policies.cluster"
local timestamp = require "kong.tools.timestamp"
local reports = require "kong.reports"
local redis = require "resty.redis"
local kong = kong
local pairs = pairs
local null = ngx.null
local shm = ngx.shared.kong_rate_limiting_counters
local ... | fix(plugin/rate-limiting) correctly handle `config.redis_database` | fix(plugin/rate-limiting) correctly handle `config.redis_database`
Use the default connection pool if `config.redis_database` is `0`.
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
a1b1fd337f99aed98e62bfe4fcf305927735b07a | src/plugins/finalcutpro/watchfolders/media/init.lua | src/plugins/finalcutpro/watchfolders/media/init.lua | --- === plugins.finalcutpro.watchfolders.media ===
---
--- Final Cut Pro Media Watch Folder Plugin.
local require = require
local config = require "cp.config"
local fcp = require "cp.apple.finalcutpro"
local MediaFolder = require "MediaFolder"
local panel = require "panel"
... | --- === plugins.finalcutpro.watchfolders.media ===
---
--- Final Cut Pro Media Watch Folder Plugin.
local require = require
--local log = require "hs.logger".new "WatchFolderMedia"
local config = require "cp.config"
local fcp = require "cp.apple.finalcutpro"
local Me... | Fixed a bug where a deleted media watch folder would reappear on app restart | Fixed a bug where a deleted media watch folder would reappear on app restart
- Added missing documentation.
- Closes #2283
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost |
68f5298e8136d8744a7c9d224e7c06884f40a836 | src/websocket/client_lluv.lua | src/websocket/client_lluv.lua | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-websocket library.
--
... | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-websocket library.
--
... | Fix. Set sync to `nil` if there error load. | Fix. Set sync to `nil` if there error load.
| Lua | mit | moteus/lua-lluv-websocket,moteus/lua-lluv-websocket,moteus/lua-lluv-websocket |
221966d43487d5bc47477a762be8ae446911b15a | net/http/server.lua | net/http/server.lua |
local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat;
local parser_new = require "net.http.parser".new;
local events = require "util.events".new();
local addserver = require "net.server".addserver;
local log = require "util.logger".init("http.server");
local os_date = os.date;
local pairs = pa... |
local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat;
local parser_new = require "net.http.parser".new;
local events = require "util.events".new();
local addserver = require "net.server".addserver;
local log = require "util.logger".init("http.server");
local os_date = os.date;
local pairs = pa... | net.http.server: Fix legacy net.httpserver fallback (httpserver is no longer a global). | net.http.server: Fix legacy net.httpserver fallback (httpserver is no longer a global).
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
076229381209d653720d8d35c76d2f6781b98b42 | Modules/Shared/Promise/Promise.lua | Modules/Shared/Promise/Promise.lua | --- Promises, but without error handling as this screws with stack traces, using Roblox signals
-- @classmod Promise
-- See: https://promisesaplus.com/
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local fastSpawn = require("fastSpawn")
local function isPromise(value)
retur... | --- Promises, but without error handling as this screws with stack traces, using Roblox signals
-- @classmod Promise
-- See: https://promisesaplus.com/
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local fastSpawn = require("fastSpawn")
local function isPromise(value)
retur... | Fix uncaught exceptions when resolving to another promise | Fix uncaught exceptions when resolving to another promise
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
a23b2000a2675f005b6a60b3c2bd0a5917970fb8 | xmake/modules/private/action/build/object.lua | xmake/modules/private/action/build/object.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix pass object opt | fix pass object opt
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
838238d3a45f85c0d75bc00ac2ffc82d65afa548 | Modules/Utility/os.lua | Modules/Utility/os.lua | -- @author Narrev
local function date(formatString, unix)
--- Allows you to use os.date in RobloxLua!
-- date ([format [, time]])
-- This doesn't include the explanations for the math. If you want to see how the numbers work, see the following:
-- http://howardhinnant.github.io/date_algorithms.html#weekday_from_d... | -- @author Narrev
local function date(formatString, unix)
--- Allows you to use os.date in RobloxLua!
-- date ([format [, time]])
-- This doesn't include the explanations for the math. If you want to see how the numbers work, see the following:
-- http://howardhinnant.github.io/date_algorithms.html#weekday_from_d... | Remove suffix function | Remove suffix function
os now runs without any additional functions! | Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
68545546ccad5bce0ea86be2baffdfe514663528 | src/lua/browser.lua | src/lua/browser.lua | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local min = min
local max = max
local int = math.floor
local string_rep = string.rep
local Write = wg.write
local GotoXY = wg.gotoxy
local SetNormal = wg.setnormal
local ... | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local min = min
local max = max
local int = math.floor
local string_rep = string.rep
local Write = wg.write
local GotoXY = wg.gotoxy
local SetNormal = wg.setnormal
local ... | Fix annoying crash on Win7 where fake directories don't get a .. entry. | Fix annoying crash on Win7 where fake directories don't get a ..
entry.
| Lua | mit | rodoviario/wordgrinder,Munchotaur/wordgrinder,rodoviario/wordgrinder,NRauh/wordgrinder,Munchotaur/wordgrinder,NRauh/wordgrinder |
21b6bb5e8baca9baba4a56fa51b4ce62a3483972 | hymn/inputhandler.lua | hymn/inputhandler.lua | local Class = require "shared.middleclass"
local GameMath = require "shared.gamemath"
local InputHandler = Class "InputHandler"
local EntityStatics = require "hymn.staticdata.entitystatics"
function InputHandler:initialize(logicCore)
self.logicCore = logicCore
self.translate = GameMath.Vector2:new(0, 0)
end
l... | local Class = require "shared.middleclass"
local GameMath = require "shared.gamemath"
local InputHandler = Class "InputHandler"
local EntityStatics = require "hymn.staticdata.entitystatics"
function InputHandler:initialize(logicCore)
self.logicCore = logicCore
self.translate = GameMath.Vector2:new(0, 0)
end
l... | Fix: Possible crash when deselecting | Fix: Possible crash when deselecting
| Lua | mit | ExcelF/project-navel |
7358a06ba23b42abb133cbc548666e0caa79a095 | src/pf/lang.lua | src/pf/lang.lua | module("pf.lang",package.seeall)
local function skip_whitespace(str, pos)
while pos <= #str and str:match('^%s', pos) do
pos = pos + 1
end
return pos
end
local punctuation = {
'(', ')', '[', ']', '!', '!=', '<', '<=', '>', '>=', '=',
'+', '-', '*', '/', '%', '&', '|', '^', '&&', '||', '<<', '>>'
... | module("pf.lang",package.seeall)
local function skip_whitespace(str, pos)
while pos <= #str and str:match('^%s', pos) do
pos = pos + 1
end
return pos
end
local punctuation = {}
do
local ops = {
'(', ')', '[', ']', '!', '!=', '<', '<=', '>', '>=', '=',
'+', '-', '*', '/', '%', '&', '|', '... | Fix punctuation table | Fix punctuation table
* src/pf/lang.lua: Fix punctuation table to not contain integers.
| Lua | apache-2.0 | mpeterv/pflua,SnabbCo/pflua |
49be4b7f1a762b1cdaa203828f1ff8f4e213d4b6 | interface/configenv/packet.lua | interface/configenv/packet.lua | local Dynvars = require "configenv.dynvars"
local Packet = {}
function Packet.new(proto, tbl, error)
local self = {
proto = proto,
fillTbl = {},
dynvars = Dynvars.new()
}
for i,v in pairs(tbl) do
local pkt, var = string.match(i, "^([%l%d]+)(%u[%l%d]*)$");
if pkt then
if type(v) == "function" then
... | local Dynvars = require "configenv.dynvars"
local Packet = {}
function Packet.new(proto, tbl, error)
local self = {
proto = proto,
fillTbl = {},
dynvars = Dynvars.new()
}
for i,v in pairs(tbl) do
local pkt, var = string.match(i, "^([%l%d]+)(%u[%l%d]*)$");
if pkt then
if type(v) == "function" then
... | Fix inability to instance one flow twice. | Fix inability to instance one flow twice.
| Lua | mit | gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,emmericp/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,dschoeffm/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,emmericp/MoonGen |
4cccaa0b93b665768e314bb0387cfd9eef03eb0c | lua/include/stats.lua | lua/include/stats.lua | local mod = {}
local dpdk = require "dpdk"
local device = require "device"
function mod.average(data)
local sum = 0
for i, v in ipairs(data) do
sum = sum + v
end
return sum / #data
end
function mod.median(data)
return mod.percentile(data, 50)
end
function mod.percentile(data, p)
local sortedData = { }
for... | local mod = {}
local dpdk = require "dpdk"
local device = require "device"
function mod.average(data)
local sum = 0
for i, v in ipairs(data) do
sum = sum + v
end
return sum / #data
end
function mod.median(data)
return mod.percentile(data, 50)
end
function mod.percentile(data, p)
local sortedData = { }
for... | fix ignoreFirstAndLast parameter | fix ignoreFirstAndLast parameter
| Lua | mit | slyon/MoonGen,dschoeffm/MoonGen,emmericp/MoonGen,wenhuizhang/MoonGen,werpat/MoonGen,gallenmu/MoonGen,pavel-odintsov/MoonGen,dschoeffm/MoonGen,atheurer/MoonGen,bmichalo/MoonGen,NetronomeMoongen/MoonGen,wenhuizhang/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,bmichalo/MoonGen,duk3luk3/MoonGen,schoenb/MoonGen,werpat/MoonGen,s... |
70a0bd1826f9907e897f04c6b4f13809da77b2b9 | vanilla/v/request.lua | vanilla/v/request.lua | -- Request moudle
-- @since 2015-08-17 10:54
-- @author idevz <zhoujing00k@gmail.com>
-- version $Id$
-- perf
local error = error
local pairs = pairs
local setmetatable = setmetatable
local Reqargs = require 'vanilla.v.libs.reqargs'
local Request = {}
function Request:new()
-- local headers = ngx.req.get_headers... | -- Request moudle
-- @since 2015-08-17 10:54
-- @author idevz <zhoujing00k@gmail.com>
-- version $Id$
-- perf
local error = error
local pairs = pairs
local pcall = pcall
local setmetatable = setmetatable
local Reqargs = require 'vanilla.v.libs.reqargs'
local Request = {}
function Request:new()
-- local headers =... | Request:getParam key nil bug | Request:getParam key nil bug
| Lua | mit | idevz/vanilla,idevz/vanilla |
963645e268900a78c2d25733410d1c30923337b4 | mod_ircd/mod_ircd.lua | mod_ircd/mod_ircd.lua | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | fixed broadcast PRIVMSG bug | fixed broadcast PRIVMSG bug
| Lua | mit | brahmi2/prosody-modules,1st8/prosody-modules,vince06fr/prosody-modules,syntafin/prosody-modules,asdofindia/prosody-modules,jkprg/prosody-modules,obelisk21/prosody-modules,stephen322/prosody-modules,joewalker/prosody-modules,LanceJenkinZA/prosody-modules,cryptotoad/prosody-modules,drdownload/prosody-modules,BurmistrovJ/... |
0b6940cba71fbde9be463bce62445247c7d4d7a1 | plugins/delword.lua | plugins/delword.lua | local function get_censorships_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':censorships'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':censorships'
end
return false
end
local function setunset_delword(msg, var_name)
... | local function get_censorships_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':censorships'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':censorships'
end
return false
end
local function setunset_delword(msg, var_name)
... | fix useless gsub | fix useless gsub
| Lua | agpl-3.0 | xsolinsx/AISasha |
d8a90e7417658f17da678798393f8d9f8719b146 | btCommandScripts/move.lua | btCommandScripts/move.lua | local Logger = VFS.Include(LUAUI_DIRNAME .. "Widgets/BtUtils/debug_utils/logger.lua", nil, VFS.RAW_FIRST)
--local baseCommand = VFS.Include(LUAUI_DIRNAME .. "Widgets/btCommandScripts/command.lua", nil, VFS.RAW_FIRST)
local cmdClass = VFS.Include(LUAUI_DIRNAME .. "Widgets/btCommandScripts/command.lua", nil, VFS.RAW_FIR... | local Logger = VFS.Include(LUAUI_DIRNAME .. "Widgets/BtUtils/debug_utils/logger.lua", nil, VFS.RAW_FIRST)
--local baseCommand = VFS.Include(LUAUI_DIRNAME .. "Widgets/btCommandScripts/command.lua", nil, VFS.RAW_FIRST)
local cmdClass = VFS.Include(LUAUI_DIRNAME .. "Widgets/btCommandScripts/command.lua", nil, VFS.RAW_FIR... | Excessive move fails fixed. | Excessive move fails fixed.
| Lua | mit | MartinFrancu/BETS |
e07ee5a4f644a03ba52f9be74c7b9d3486acf5d5 | plugins/mod_posix.lua | plugins/mod_posix.lua | -- Prosody IM
-- 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 want_pposix_version = "0.3.1";
local pposix = assert(require "util.pposix");
if pposix._VERSION ~... | -- Prosody IM
-- 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 want_pposix_version = "0.3.1";
local pposix = assert(require "util.pposix");
if pposix._VERSION ~... | mod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where the same 'fix' can't be applied) - shall investigate tomorrow | mod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where the same 'fix' can't be applied) - shall investigate tomorrow
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
3b1eabc2a2c8a71ed3b4dedfba44ff5c74390532 | lua/wincent/commandt/private/ui.lua | lua/wincent/commandt/private/ui.lua | -- SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors.
-- SPDX-License-Identifier: BSD-2-Clause
local ui = {}
local MatchListing = require('wincent.commandt.private.match_listing').MatchListing
local Prompt = require('wincent.commandt.private.prompt').Prompt
local cmdline_enter_autocmd = ni... | -- SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors.
-- SPDX-License-Identifier: BSD-2-Clause
local ui = {}
local MatchListing = require('wincent.commandt.private.match_listing').MatchListing
local Prompt = require('wincent.commandt.private.prompt').Prompt
local cmdline_enter_autocmd = ni... | fix(lua): don't try to open nothing | fix(lua): don't try to open nothing
No, that's not a double negative.
| Lua | bsd-2-clause | wincent/command-t,wincent/command-t,wincent/command-t |
74d0303dc3cd490183bbaff8ef2302ee64d27efd | mods/invtweak/init.lua | mods/invtweak/init.lua | local auto_refill = minetest.setting_getbool("invtweak_auto_refill") or true
local tweak = {}
tweak.formspec = {}
tweak.buttons = {
--sort_asc
"0.8,0.6;sort_asc;^]".."tooltip[sort_asc;sort Items asc.;#30434C;#FFF]",
--sort_desc
"0.8,0.6;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]",
--concatenate
... | local auto_refill = minetest.setting_getbool("invtweak_auto_refill") or true
local tweak = {}
tweak.formspec = {}
tweak.buttons = {
--sort_asc
"0.8,0.6;sort_asc;^]".."tooltip[sort_asc;sort Items asc.;#30434C;#FFF]",
--sort_desc
"0.8,0.6;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]",
--concatenate
... | Fixed very rare occurrence with invtweak's formspec - Solves #70 and crash on May 30th, 2015, 18h58 | Fixed very rare occurrence with invtweak's formspec
- Solves #70 and crash on May 30th, 2015, 18h58
| Lua | unlicense | Gael-de-Sailly/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Coethium/server-minetestforfun,paly2/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,Ombridride/minetest-minetest... |
795ba58832217e5716fe15f88bffeeded364f422 | src/modules/time_service/utils/best.lua | src/modules/time_service/utils/best.lua | redis.replicate_commands()
-- REDIS SYNTAX == EVAL {script} layer_prefix:layer_name , date_time
-- Routine called by Redis. If best_layer exists, script will update :best key
-- GITC mod: Add new date and only update if there was a change
if ARGV[1] ~= nil then
local result = 0
if ARGV[1]:match("(%d+)-(%d+)-(%d+)")... | redis.replicate_commands()
-- REDIS SYNTAX == EVAL {script} layer_prefix:layer_name , date_time
-- Routine called by Redis. If best_layer exists, script will update :best key
-- GITC mod: Add new date and only update if there was a change
if ARGV[1] ~= nil then
local result = 0
if ARGV[1]:match("(%d+)-(%d+)-(%d+)")... | best bug | best bug
| Lua | apache-2.0 | nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth |
f7ea7b13e9a5caa6749ccfa3ba1522a2c0bd126b | _glua-tests/issues.lua | _glua-tests/issues.lua |
-- issue #10
local function inspect(options)
options = options or {}
return type(options)
end
assert(inspect(nil) == "table")
local function inspect(options)
options = options or setmetatable({}, {__mode = "test"})
return type(options)
end
assert(inspect(nil) == "table")
-- issue #16
local ok, msg = ... |
-- issue #10
local function inspect(options)
options = options or {}
return type(options)
end
assert(inspect(nil) == "table")
local function inspect(options)
options = options or setmetatable({}, {__mode = "test"})
return type(options)
end
assert(inspect(nil) == "table")
-- issue #16
local ok, msg = ... | Issue #202 : fixed a bug when try to remove elements from a table with 0 length | Issue #202 : fixed a bug when try to remove elements from a table with 0 length
| Lua | mit | yuin/gopher-lua,kohkimakimoto/gopher-lua,kohkimakimoto/gopher-lua,yuin/gopher-lua |
ff6d3d7056234188208de520f67b110f53dff038 | plugins/mod_motd.lua | plugins/mod_motd.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-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 host = module:get_host();
local motd_text = module:get_option_s... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-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 host = module:get_host();
local motd_text = module:get_option_s... | mod_motd: Use presence/bare to catch a client's initial presence and send the MOTD then (fixes #282) | mod_motd: Use presence/bare to catch a client's initial presence and send the MOTD then (fixes #282)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
a5f0c015346c90906e7bbfe76f39a64e262c3c6a | spec/helpers/perf/drivers/local.lua | spec/helpers/perf/drivers/local.lua | local perf = require("spec.helpers.perf")
local pl_path = require("pl.path")
local tools = require("kong.tools.utils")
local helpers
local _M = {}
local mt = {__index = _M}
local UPSTREAM_PORT = 62412
local WRK_SCRIPT_PREFIX = "/tmp/perf-wrk-"
local KONG_ERROR_LOG_PATH = "/tmp/error.log"
function _M.new(opts)
ret... | local perf = require("spec.helpers.perf")
local pl_path = require("pl.path")
local tools = require("kong.tools.utils")
local helpers
local _M = {}
local mt = {__index = _M}
local UPSTREAM_PORT = 62412
local WRK_SCRIPT_PREFIX = "/tmp/perf-wrk-"
local KONG_ERROR_LOG_PATH = "/tmp/error.log"
function _M.new(opts)
ret... | fix(tests) add pl_path.mkdir(nginx_prefix) (#8272) | fix(tests) add pl_path.mkdir(nginx_prefix) (#8272)
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
8be1423276d1993887bfd9c365ec31a86e515494 | MMOCoreORB/bin/scripts/mobile/lair/tatooine_eopie_lair_neutral_small.lua | MMOCoreORB/bin/scripts/mobile/lair/tatooine_eopie_lair_neutral_small.lua | -- Generated by LairTool
tatooine_eopie_lair_neutral_small = Lair:new {
mobiles = {{"eopie", 0}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_insecthill_small.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_insecthill_small.iff"},
buildingsMedium = {"object/tangibl... | -- Generated by LairTool
tatooine_eopie_lair_neutral_small = Lair:new {
mobiles = {{"eopie", 0}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/eopie/lair_eopie.iff"},
buildingsEasy = {"object/tangible/lair/eopie/lair_eopie.iff"},
buildingsMedium = {"object/tangible/lair/eopie/lair_eopie.iff"},
buil... | [fixed] Mantis 3076: Eopie lair type | [fixed] Mantis 3076: Eopie lair type
Change-Id: I596f3e3cecc8bf58e0a5b7165122755d518ab96d
| Lua | agpl-3.0 | 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,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/... |
d4867ba654b20ac684ce401bd56daf65cddc66b1 | Boilerplate_!Base/src/lib/LoadingEnd.lua | Boilerplate_!Base/src/lib/LoadingEnd.lua | --------------------------------------------------------
-- This file is part of the JX3 Plugin Project.
-- @desc : ɴ
-- @copyright: Copyright (c) 2009 Kingsoft Co., Ltd.
--------------------------------------------------------
----------------------------------------------------------------------------------------... | --------------------------------------------------------
-- This file is part of the JX3 Plugin Project.
-- @desc : ɴ
-- @copyright: Copyright (c) 2009 Kingsoft Co., Ltd.
--------------------------------------------------------
----------------------------------------------------------------------------------------... | fix: 修复加载完成报错问题 | fix: 修复加载完成报错问题
| Lua | bsd-3-clause | tinymins/MY |
c8b699c068c96bf8d8e7181c47246072c74c8460 | frontend/document/document.lua | frontend/document/document.lua | --[[
This is a registry for document providers
]]--
DocumentRegistry = {
providers = { }
}
function DocumentRegistry:addProvider(extension, mimetype, provider)
table.insert(self.providers, { extension = extension, mimetype = mimetype, provider = provider })
end
function DocumentRegistry:getProvider(file)
-- TODO: ... | --[[
This is a registry for document providers
]]--
DocumentRegistry = {
providers = { }
}
function DocumentRegistry:addProvider(extension, mimetype, provider)
table.insert(self.providers, { extension = extension, mimetype = mimetype, provider = provider })
end
function DocumentRegistry:getProvider(file)
-- TODO: ... | bugfix: check renderpg hash before hinting page | bugfix: check renderpg hash before hinting page
| Lua | agpl-3.0 | mwoz123/koreader,Markismus/koreader,NiLuJe/koreader,koreader/koreader,pazos/koreader,koreader/koreader-base,NiLuJe/koreader-base,noname007/koreader,NiLuJe/koreader-base,koreader/koreader-base,frankyifei/koreader,frankyifei/koreader-base,ashhher3/koreader,Hzj-jie/koreader-base,NiLuJe/koreader,Frenzie/koreader-base,Frenz... |
fa994c7900b6331092c2262116ecc7410621e4ac | libremap-agent/luasrc/libremap/plugins/olsr.lua | libremap-agent/luasrc/libremap/plugins/olsr.lua | --[[
Copyright 2013 Patrick Grimm <patrick@lunatiki.de>
Copyright 2013-2014 André Gaul <gaul@web-yard.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0... | --[[
Copyright 2013 Patrick Grimm <patrick@lunatiki.de>
Copyright 2013-2014 André Gaul <gaul@web-yard.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0... | [olsr] fix tiny bug | [olsr] fix tiny bug
| Lua | apache-2.0 | libre-mesh/libremap-agent,libremap/libremap-agent-openwrt,rogerpueyo/libremap-agent-openwrt |
8a167f30072b12c3063116e4ae31960bec2b2b09 | check/plugin.lua | check/plugin.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... | fix(plugins): ruby 1.9.1p0 crashes when stdin is closed | fix(plugins): ruby 1.9.1p0 crashes when stdin is closed
| Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-m... |
a4af35f442ca4779d1320a6dd4a38eba5a7e4e33 | lualib/snax/interface.lua | lualib/snax/interface.lua | local skynet = require "skynet"
return function (name , G, loader)
loader = loader or loadfile
local mainfunc
local function func_id(id, group)
local tmp = {}
local function count( _, name, func)
if type(name) ~= "string" then
error (string.format("%s method only support string", group))
end
if ty... | local skynet = require "skynet"
return function (name , G, loader)
loader = loader or loadfile
local mainfunc
local function func_id(id, group)
local tmp = {}
local function count( _, name, func)
if type(name) ~= "string" then
error (string.format("%s method only support string", group))
end
if ty... | fix issue #364 | fix issue #364
| Lua | mit | chuenlungwang/skynet,lawnight/skynet,letmefly/skynet,bttscut/skynet,ag6ag/skynet,cloudwu/skynet,jxlczjp77/skynet,lawnight/skynet,Ding8222/skynet,letmefly/skynet,nightcj/mmo,zhangshiqian1214/skynet,bingo235/skynet,sundream/skynet,pigparadise/skynet,czlc/skynet,catinred2/skynet,zhangshiqian1214/skynet,gitfancode/skynet,k... |
2cf9380b1826a547abe79694f826a734d36b966b | packages/lime-webui/luasrc/controller/lime.lua | packages/lime-webui/luasrc/controller/lime.lua | --[[
Copyright (C) libremesh.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distr... | --[[
Copyright (C) libremesh.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distr... | Fix #141 - Logout error on Simple Config area | Fix #141 - Logout error on Simple Config area
| Lua | agpl-3.0 | libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages |
a91693e5b58dead9919f7fb39251fa84a2ea594d | .config/nvim/lua/cmp_config.lua | .config/nvim/lua/cmp_config.lua | local cmp = require("cmp")
local lspkind = require("lspkind")
local luasnip = require("luasnip")
local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end
cmp.setu... | local cmp = require("cmp")
local lspkind = require("lspkind")
local luasnip = require("luasnip")
local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end
cmp.setu... | nvim: disallow prefix unmatching for completion | nvim: disallow prefix unmatching for completion
| Lua | mit | nkcfan/Dotfiles,nkcfan/Dotfiles,nkcfan/Dotfiles |
5a92e2b753faa69fabdc8dd4671eaf2e5cad2a87 | .config/nvim/lua/config/cmp.lua | .config/nvim/lua/config/cmp.lua | local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local snip_status_ok, luasnip = pcall(require, "luasnip")
if not snip_status_ok then
return
end
require("luasnip/loaders/from_vscode").lazy_load()
local check_backspace = function()
local col = vim.fn.col(".") - 1
return col ==... | local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local snip_status_ok, luasnip = pcall(require, "luasnip")
if not snip_status_ok then
return
end
require("luasnip/loaders/from_vscode").lazy_load()
local check_backspace = function()
local col = vim.fn.col(".") - 1
return col ==... | [nvim] Fix cmp config | [nvim] Fix cmp config
| Lua | mit | masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles |
5d2c2ad61da94987ef8d534f07836b916bb5861e | src_trunk/resources/realism-system/c_nametags.lua | src_trunk/resources/realism-system/c_nametags.lua | local localPlayer = getLocalPlayer()
local show = true
function startRes(res)
if (res==getThisResource()) then
for key, value in ipairs(getElementsByType("player")) do
setPlayerNametagShowing(value, false)
end
end
end
addEventHandler("onClientResourceStart", getRootElement(), startRes)
function s... | local localPlayer = getLocalPlayer()
local show = true
function startRes(res)
if (res==getThisResource()) then
for key, value in ipairs(getElementsByType("player")) do
setPlayerNametagShowing(value, false)
end
end
end
addEventHandler("onClientResourceStart", getRootElement(), startRes)
function s... | Few bug fixes to nametags | Few bug fixes to nametags
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1169 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
ff8e5847a9b109f0826124ba646d20ee77b329ea | lua/mediaplayer/players/components/voteskip.lua | lua/mediaplayer/players/components/voteskip.lua | --[[--------------------------------------------
Voteskip Manager
----------------------------------------------]]
local VoteskipManager = {}
VoteskipManager.__index = VoteskipManager
local VOTESKIP_REQ_VOTE_RATIO = 2/3
---
-- Initialize the Voteskip Manager object.
--
function VoteskipManager:New( ratio )
local o... | --[[--------------------------------------------
Voteskip Manager
----------------------------------------------]]
local VoteskipManager = {}
VoteskipManager.__index = VoteskipManager
local VOTESKIP_REQ_VOTE_RATIO = 2/3
---
-- Initialize the Voteskip Manager object.
--
function VoteskipManager:New( ratio )
local o... | Fixed voteskips occuring when there are 0 players. | Fixed voteskips occuring when there are 0 players.
| Lua | mit | pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer |
3e31b22e85bd9e3ceeeb88295c9b4f03f576a0ff | src/luarocks/show.lua | src/luarocks/show.lua |
--- Module implementing the LuaRocks "show" command.
-- Shows information about an installed rock.
module("luarocks.show", package.seeall)
local search = require("luarocks.search")
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
local path = require("luarocks.path")
local dir = require("luar... |
--- Module implementing the LuaRocks "show" command.
-- Shows information about an installed rock.
module("luarocks.show", package.seeall)
local search = require("luarocks.search")
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
local path = require("luarocks.path")
local dir = require("luar... | Only show detailed field if present in rockspec (Fix to bug reported by Steve Donovan) | Only show detailed field if present in rockspec
(Fix to bug reported by Steve Donovan)
| Lua | mit | rrthomas/luarocks,xpol/luarocks,xiaq/luarocks,ignacio/luarocks,luarocks/luarocks,aryajur/luarocks,xpol/luainstaller,starius/luarocks,aryajur/luarocks,coderstudy/luarocks,coderstudy/luarocks,ignacio/luarocks,luarocks/luarocks,xpol/luavm,xpol/luainstaller,keplerproject/luarocks,coderstudy/luarocks,robooo/luarocks,xpol/lu... |
0ce3015cf0884ec4e6b1f33b71b50f2bbfdc6601 | 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 regression in expandtoken | Fix regression in expandtoken
| Lua | bsd-3-clause | dcourtois/premake-core,resetnow/premake-core,jstewart-amd/premake-core,mendsley/premake-core,starkos/premake-core,xriss/premake-core,lizh06/premake-core,mendsley/premake-core,aleksijuvani/premake-core,sleepingwit/premake-core,aleksijuvani/premake-core,CodeAnxiety/premake-core,lizh06/premake-core,starkos/premake-core,dc... |
674e33fb69beac030ba90be039e614b387821998 | pud/view/GameCam.lua | pud/view/GameCam.lua | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local math_max, math_min = math.max, math.min
local _zoomLevels = {1, 0.5, 0.25}
local _isVector = function(...)
local n = select('#',...)
... | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local math_max, math_min = math.max, math.min
local _zoomLevels = {1, 0.5, 0.25}
local _isVector = function(...)
local n = select('#',...)
... | fix camera limits | fix camera limits
| Lua | mit | scottcs/wyx |
382bed6aea286d775479bda5f0186b43798f8e83 | core/pagebuilder.lua | core/pagebuilder.lua | local awful_bad = 1073741823
local inf_bad = 10000
local eject_penalty = -inf_bad
local deplorable = 100000
SILE.pagebuilder = {
collateVboxes = function(vboxlist)
local i
local output = SILE.nodefactory.newVbox({nodes = {} })
local h = SILE.length.new({})
for i=1,#vboxlist do
table.insert(outp... | local awful_bad = 1073741823
local inf_bad = 10000
local eject_penalty = -inf_bad
local deplorable = 100000
SILE.pagebuilder = {
collateVboxes = function(vboxlist)
local i
local output = SILE.nodefactory.newVbox({nodes = {} })
local h = SILE.length.new({})
for i=1,#vboxlist do
table.insert(outp... | *EXPERIMENTAL* fix to page breaking algorithm. | *EXPERIMENTAL* fix to page breaking algorithm. | Lua | mit | anthrotype/sile,WAKAMAZU/sile_fe,alerque/sile,simoncozens/sile,neofob/sile,simoncozens/sile,shirat74/sile,alerque/sile,Nathan22Miles/sile,anthrotype/sile,WAKAMAZU/sile_fe,neofob/sile,shirat74/sile,neofob/sile,Nathan22Miles/sile,shirat74/sile,anthrotype/sile,anthrotype/sile,shirat74/sile,WAKAMAZU/sile_fe,Nathan22Miles/s... |
e485aae55bddf605f9984757c734e1b9ea4ac21c | service/clusterd.lua | service/clusterd.lua | local skynet = require "skynet"
require "skynet.manager"
local cluster = require "skynet.cluster.core"
local config_name = skynet.getenv "cluster"
local node_address = {}
local node_sender = {}
local command = {}
local config = {}
local nodename = cluster.nodename()
local connecting = {}
local function open_channel(... | local skynet = require "skynet"
require "skynet.manager"
local cluster = require "skynet.cluster.core"
local config_name = skynet.getenv "cluster"
local node_address = {}
local node_sender = {}
local command = {}
local config = {}
local nodename = cluster.nodename()
local connecting = {}
local function open_channel(... | This may fix #1080 | This may fix #1080
| Lua | mit | korialuo/skynet,pigparadise/skynet,icetoggle/skynet,cloudwu/skynet,pigparadise/skynet,icetoggle/skynet,sanikoyes/skynet,bigrpg/skynet,wangyi0226/skynet,wangyi0226/skynet,xcjmine/skynet,bigrpg/skynet,jxlczjp77/skynet,JiessieDawn/skynet,sanikoyes/skynet,wangyi0226/skynet,bigrpg/skynet,korialuo/skynet,hongling0/skynet,xcj... |
25e94bd5cf4f4ea80bc247f625e921092a674f33 | src/instructions.lua | src/instructions.lua | local Gamestate = require 'vendor/gamestate'
local window = require 'window'
local camera = require 'camera'
local sound = require 'vendor/TEsound'
local fonts = require 'fonts'
local controls = require 'controls'
local VerticalParticles = require "verticalparticles"
local Menu = require 'menu'
local state = Gamestate.... | local Gamestate = require 'vendor/gamestate'
local window = require 'window'
local camera = require 'camera'
local sound = require 'vendor/TEsound'
local fonts = require 'fonts'
local controls = require 'controls'
local VerticalParticles = require "verticalparticles"
local Menu = require 'menu'
local state = Gamestate.... | Prompts player for input and fixes assert failure | Prompts player for input and fixes assert failure
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua |
b80ca7eb2fd2b7236e50d2297e42f779902384c2 | test/lua/unit/url.lua | test/lua/unit/url.lua | -- URL parser tests
context("URL check functions", function()
local mpool = require("rspamd_mempool")
local ffi = require("ffi")
ffi.cdef[[
struct rspamd_url {
char *string;
int protocol;
int ip_family;
char *user;
char *password;
char *host;
char *port;
char *data;
char *query;
char *... | -- URL parser tests
context("URL check functions", function()
local mpool = require("rspamd_mempool")
local ffi = require("ffi")
ffi.cdef[[
struct rspamd_url {
char *string;
int protocol;
int ip_family;
char *user;
char *password;
char *host;
char *port;
char *data;
char *query;
char *... | Fix url extraction tests. | Fix url extraction tests.
| Lua | apache-2.0 | amohanta/rspamd,minaevmike/rspamd,minaevmike/rspamd,awhitesong/rspamd,amohanta/rspamd,amohanta/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,dark-al/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,awhitesong/rspamd,awhitesong/rspamd,andrejzverev/rspamd,dark-al/rspamd,andrejzverev/rspamd,dark-al/rs... |
b73efc6a916f862b7d381758bce42d87fa77723b | test_scripts/RC/GetInteriorVehicleData/007.lua | test_scripts/RC/GetInteriorVehicleData/007.lua | ---------------------------------------------------------------------------------------------------
-- RPC: GetInteriorVehicleData
-- Script: 007
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local commonRC = require('test_scripts/R... | ---------------------------------------------------------------------------------------------------
-- RPC: GetInteriorVehicleData
-- Script: 007
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local commonRC = require('test_scripts/R... | Fix obligation of parameter | Fix obligation of parameter
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
cfaf294a8b44dff2821cc13823862d8cf750bad5 | test_scripts/Polices/Policy_Table_Update/050_ATF_P_User_Trigger_PTU_While_Another_Is_In_Progress.lua | test_scripts/Polices/Policy_Table_Update/050_ATF_P_User_Trigger_PTU_While_Another_Is_In_Progress.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- User triggering PTU while another PTU request is still in progress
--
-- Description:
-- If a user triggers a policy table update while another request is currently in progress (in the timeout window... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- User triggering PTU while another PTU request is still in progress
--
-- Description:
-- If a user triggers a policy table update while another request is currently in progress (in the timeout window... | Fix issues in script | Fix issues in script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
d77c9ab5ff10e06bee8022176f9a47a5346c119b | mods/invtweak/init.lua | mods/invtweak/init.lua | local auto_refill = minetest.setting_getbool("invtweak_auto_refill") or true
local tweak = {}
tweak.formspec = {}
tweak.buttons = {
--sort_asc
"0.8,0.6;sort_asc;^]".."tooltip[sort_asc;sort Items asc.;#30434C;#FFF]",
--sort_desc
"0.8,0.6;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]",
--concatenate
... | local auto_refill = minetest.setting_getbool("invtweak_auto_refill") or true
local tweak = {}
tweak.formspec = {}
tweak.buttons = {
--sort_asc
"0.8,0.6;sort_asc;^]".."tooltip[sort_asc;sort Items asc.;#30434C;#FFF]",
--sort_desc
"0.8,0.6;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]",
--concatenate
... | fixed crash when player leave during the join server | fixed crash when player leave during the join server
| Lua | unlicense | sys4-fr/server-minetestforfun,MinetestForFun/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Coethium/server-minetestforfun,Ombridride/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Coethium/server-min... |
c061236a8af0d027d18b42fd555e7ab543730706 | src/nodes/platform.lua | src/nodes/platform.lua | local Timer = require 'vendor/timer'
local Platform = {}
Platform.__index = Platform
function Platform.new(node, collider)
local platform = {}
setmetatable(platform, Platform)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
lo... | local Timer = require 'vendor/timer'
local Platform = {}
Platform.__index = Platform
function Platform.new(node, collider)
local platform = {}
setmetatable(platform, Platform)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
lo... | Dropping issue. Fixes #244 | Dropping issue. Fixes #244
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua |
b07cba45976ccfca938d54605a9915f5a06c1821 | MMOCoreORB/bin/scripts/mobile/lair/tatooine_desert_eopie_lair_neutral_small.lua | MMOCoreORB/bin/scripts/mobile/lair/tatooine_desert_eopie_lair_neutral_small.lua | -- Generated by LairTool
tatooine_desert_eopie_lair_neutral_small = Lair:new {
mobiles = {{"desert_eopie", 0}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_insecthill_small_fog_mustard.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_insecthill_small_fog_mustard.iff"... | -- Generated by LairTool
tatooine_desert_eopie_lair_neutral_small = Lair:new {
mobiles = {{"desert_eopie", 0}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/eopie/lair_eopie.iff"},
buildingsEasy = {"object/tangible/lair/eopie/lair_eopie.iff"},
buildingsMedium = {"object/tangible/lair/eopie/lair_eopi... | [fixed] Desert Eopie lair's now display the correct lair. | [fixed] Desert Eopie lair's now display the correct lair.
Change-Id: I3c9bb4161a0fd09f36857ecd7d2abcc9c8da47f5
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/... |
368384e4bbd1b34d00b39d7fb681201e205f7ade | third_party/bullet/premake5.lua | third_party/bullet/premake5.lua | dofile("../../tools/premake/options.lua")
dofile("../../tools/premake/globals.lua")
if _ACTION == "vs2017" or _ACTION == "vs2015" then
platform_dir = _ACTION
end
link_cmd = ""
if platform_dir == "osx" then
link_cmd = "-mmacosx-version-min=10.8"
end
solution "bullet_build"
location ("build/" .. platform_dir )
co... | dofile("../../tools/premake/options.lua")
dofile("../../tools/premake/globals.lua")
link_cmd = ""
if platform_dir == "osx" then
link_cmd = "-mmacosx-version-min=10.8"
end
solution "bullet_build"
location ("build/" .. platform_dir )
configurations { "Debug", "Release" }
-- Project
project "bullet_monolithic"
s... | - compile fix for ci win32 | - compile fix for ci win32
| Lua | mit | polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech |
92fc62fb4bcb459e5fa8a0dc019f1a23ecd1078d | MCServer/Plugins/MagicCarpet/plugin.lua | MCServer/Plugins/MagicCarpet/plugin.lua | local PLUGIN = {}
local Carpets = {}
function Initialize( Plugin )
PLUGIN = Plugin
Plugin:SetName( "MagicCarpet" )
Plugin:SetVersion( 1 )
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_MOVING)
PluginManager:AddHook(Plugin, cPluginManager.HOOK_... | local PLUGIN = {}
local Carpets = {}
function Initialize( Plugin )
PLUGIN = Plugin
Plugin:SetName( "MagicCarpet" )
Plugin:SetVersion( 1 )
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_MOVING)
PluginManager:AddHook(Plugin, cPluginManager.HOOK_DISCONNECT)... | Fixed The MagicCarpet plugin | Fixed The MagicCarpet plugin
git-svn-id: ffe80d23790c2318db4f9b6ad70c6163efa9c8e4@1590 0a769ca7-a7f5-676a-18bf-c427514a06d6
| Lua | apache-2.0 | MuhammadWang/MCServer,mmdk95/cuberite,kevinr/cuberite,johnsoch/cuberite,Frownigami1/cuberite,ionux/MCServer,QUSpilPrgm/cuberite,Frownigami1/cuberite,thetaeo/cuberite,linnemannr/MCServer,guijun/MCServer,zackp30/cuberite,QUSpilPrgm/cuberite,electromatter/cuberite,Haxi52/cuberite,SamOatesPlugins/cuberite,MuhammadWang/MCSe... |
5e3ca2709a877eac01f2aacad7bff5ae796d1aa0 | modules/lua/commands.lua | modules/lua/commands.lua | -- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- Commands for the lua module.
module('_m.lua.commands', package.seeall)
---
-- Patterns for auto 'end' completion for control structures.
-- @class table
-- @name control_structure_patterns
-- @see try_to_autocomplete_end
local control_str... | -- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- Commands for the lua module.
module('_m.lua.commands', package.seeall)
---
-- Patterns for auto 'end' completion for control structures.
-- @class table
-- @name control_structure_patterns
-- @see try_to_autocomplete_end
local control_str... | Fix bug when file is not matched in modules/lua/commands.lua. | Fix bug when file is not matched in modules/lua/commands.lua.
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
edae4b2a0f26fbef1d23860e5b06f2bffa17c414 | src/camerastoryutils/src/Client/CameraStoryUtils.lua | src/camerastoryutils/src/Client/CameraStoryUtils.lua | ---
-- @module CameraStoryUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local InsertServiceUtils = require("InsertServiceUtils")
local Promise = require("Promise")
local Math = require("Math")
local CameraStoryUtils = {}
function... | ---
-- @module CameraStoryUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local InsertServiceUtils = require("InsertServiceUtils")
local Promise = require("Promise")
local Math = require("Math")
local CameraStoryUtils = {}
function... | fix: camera story parents relative to the camera | fix: camera story parents relative to the camera
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
149ea4cc6270649790392c4eb4c6a143714eb1b9 | src/premake/SchemaCompiler.lua | src/premake/SchemaCompiler.lua |
local function runexe(name)
if (os.get() == "windows") then
return name
else
return './'..name
end
end
filter "files:**.fbs"
buildmessage "flatc: Compiling %{file.relpath}"
buildcommands
{
runexe('flatc')..' -c -o "../../PGTA/public/schema" %{file.relpath}',
run... |
local function runexe(name)
if (os.get() == "windows") then
return name
else
return './'..name
end
end
filter "files:**.fbs"
buildmessage "flatc: Compiling %{file.relpath}"
buildcommands
{
runexe('flatc')..' -c -o "../../PGTA/public/schema" %{file.relpath}',
run... | Fixed fbs generated files not being generated from VS build | Fixed fbs generated files not being generated from VS build
| Lua | mit | PGTA/PGTA,PGTA/PGTA,PGTA/PGTA |
1d2be59be1b849a4bcbe3b1adf38dbba86acd5e3 | forward/testing/packet_synthesis.lua | forward/testing/packet_synthesis.lua | local GRE = require("lib.protocol.gre")
local Datagram = require("lib.protocol.datagram")
local Ethernet = require("lib.protocol.ethernet")
local IPV4 = require("lib.protocol.ipv4")
local TCP = require("lib.protocol.tcp")
local ffi = require("ffi")
local networking_magic_numbers = require("networking_magic_numbers")
... | local GRE = require("lib.protocol.gre")
local Datagram = require("lib.protocol.datagram")
local Ethernet = require("lib.protocol.ethernet")
local IPV4 = require("lib.protocol.ipv4")
local TCP = require("lib.protocol.tcp")
local ffi = require("ffi")
local networking_magic_numbers = require("networking_magic_numbers")
... | fix wrong fragment length passed to make_ipv4_packet in fragmented packet synthesis | fix wrong fragment length passed to make_ipv4_packet in fragmented packet synthesis
| Lua | mit | krawthekrow/spike,krawthekrow/spike |
664ea594080f717edcd4a1c90216912af3e2965d | packages/lime-proto-olsr2/src/olsr2.lua | packages/lime-proto-olsr2/src/olsr2.lua | #!/usr/bin/lua
local network = require("lime.network")
local config = require("lime.config")
local fs = require("nixio.fs")
local libuci = require("uci")
local wireless = require("lime.wireless")
local utils = require("lime.utils")
local ip = require("luci.ip")
olsr2 = {}
olsr2.configured = false
function olsr2.conf... | #!/usr/bin/lua
local network = require("lime.network")
local config = require("lime.config")
local fs = require("nixio.fs")
local libuci = require("uci")
local wireless = require("lime.wireless")
local utils = require("lime.utils")
local ip = require("luci.ip")
olsr2 = {}
olsr2.configured = false
function olsr2.conf... | Finished fixing and testing olsrd2 plugin. | Finished fixing and testing olsrd2 plugin.
| Lua | agpl-3.0 | p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages |
96300693140e1af90a953b74cf8d1341537f2bac | libs/http/luasrc/http/protocol/conditionals.lua | libs/http/luasrc/http/protocol/conditionals.lua | --[[
HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28
(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 License at
... | --[[
HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28
(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 License at
... | libs/http: fix incorrent treatment of If-None-Match (#100) | libs/http: fix incorrent treatment of If-None-Match (#100)
| Lua | apache-2.0 | 8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.