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 |
|---|---|---|---|---|---|---|---|---|---|
8314eaf15bfe72f89dce9366ab2597f7a3ac8da9 | modules/admin/config.lua | modules/admin/config.lua | --[[
modules/admin/config.lua
]]
local config = {
--nice name
name = 'Admin',
order = 7,
objects = {
},
--requests to capture
requests = {
get = {
default = { file = 'get/dashboard' },
users = { file = 'get/users' },
permissions = { file = 'ge... | --[[
modules/admin/config.lua
]]
local config = {
--nice name
name = 'Admin',
order = 7,
objects = {
},
--requests to capture
requests = {
get = {
default = { file = 'get/dashboard' },
users = { file = 'get/users' },
permissions = { file = 'ge... | refix logs endpoint | refix logs endpoint
| Lua | mit | Oxygem/Oxycore,Oxygem/Oxycore,Oxygem/Oxycore |
1f96aba38723354f6f0b389b370096b246427ff3 | projeto_final/hcsr04.lua | projeto_final/hcsr04.lua | trig = 7 -- D7
echo = 8 -- D8
gpio.mode(trig, gpio.OUTPUT)
gpio.mode(echo, gpio.INT)
function echocb(level, when)
print(level, when)
if level == 1 then
start = when
gpio.trig(echo, "down")
else
finish = when
end
end
function measure()
gpio.trig(echo, "up", echocb)
gpio.write(trig,... | local start = 0
local finish = 0
gpio.mode(7, gpio.OUTPUT)
gpio.mode(8, gpio.INT)
function interruptUP(level, when)
start_time = tmr.now()
print("START " .. start_time)
gpio.trig(8, "down", interruptDOWN)
end
function interruptDOWN(level, when)
finish = tmr.now()
print("FINISH " .. finish)
gpio.tr... | fixup! projeto final, inicio | fixup! projeto final, inicio
| Lua | mit | brunaaleixo/Sistemas-Reativos |
695f966b80bd262e14c93eb481278897a991a54b | pud/level/MapNode.lua | pud/level/MapNode.lua | require 'pud.util'
local Class = require 'lib.hump.class'
local MapType = require 'pud.level.MapType'
-- MapNode
-- represents a single map position
local MapNode = Class{name='MapNode',
function(self, ...)
self._isAccessible = false
self._isLit = false
self._isTransparent = false
self._wasSeen = false
self... | require 'pud.util'
local Class = require 'lib.hump.class'
local MapType = require 'pud.level.MapType'
-- MapNode
-- represents a single map position
local MapNode = Class{name='MapNode',
function(self, ...)
self._isAccessible = false
self._isLit = false
self._isTransparent = false
self._wasSeen = false
self... | fix setType() to not create a new MapType if one is passed in | fix setType() to not create a new MapType if one is passed in
| Lua | mit | scottcs/wyx |
c6813635411bc8ee6ad3908817a6c1420ea428ed | neovim/.config/nvim/lua/user/keymaps.lua | neovim/.config/nvim/lua/user/keymaps.lua | local opts = { noremap = true, silent = true }
local term_opts = { silent = true }
-- Shorten function name
local keymap = vim.api.nvim_set_keymap
--Remap space as leader key
keymap("", "<Space>", "<Nop>", opts)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Modes
-- normal_mode = "n",
-- insert_mode = "i"... | local opts = { noremap = true, silent = true }
local term_opts = { silent = true }
-- Shorten function name
local keymap = vim.api.nvim_set_keymap
--Remap space as leader key
keymap("", "<Space>", "<Nop>", opts)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Modes
-- normal_mode = "n",
-- insert_mode = "i"... | Nvim/lua - fix keymaps | Nvim/lua - fix keymaps
| Lua | unlicense | nexusstar/dotfiles |
72a23645a82866840fc34db67800c8c1d406b0b2 | profiles/lib/measure.lua | profiles/lib/measure.lua | local Sequence = require('lib/sequence')
Measure = {}
-- measurements conversion constants
local inch_to_meters = 0.0254
local feet_to_inches = 12
--- Parse string as a height in meters.
--- according to http://wiki.openstreetmap.org/wiki/Key:maxheight
function Measure.parse_value_meters(value)
local n = tonumber(... | local Sequence = require('lib/sequence')
Measure = {}
-- measurements conversion constants
local inch_to_meters = 0.0254
local feet_to_inches = 12
--- Parse string as a height in meters.
--- according to http://wiki.openstreetmap.org/wiki/Key:maxheight
function Measure.parse_value_meters(value)
local n = tonumber(... | Remove "can't parse value" log messages (#4810) | Remove "can't parse value" log messages (#4810)
* remove log output of measure.lua
* remove unneccessary return
* quick fix of #4794
| Lua | bsd-2-clause | felixguendling/osrm-backend,frodrigo/osrm-backend,yuryleb/osrm-backend,KnockSoftware/osrm-backend,frodrigo/osrm-backend,bjtaylor1/osrm-backend,KnockSoftware/osrm-backend,oxidase/osrm-backend,felixguendling/osrm-backend,felixguendling/osrm-backend,bjtaylor1/osrm-backend,oxidase/osrm-backend,bjtaylor1/osrm-backend,yuryle... |
d6e0e80b8c3827b7daa6bb96117d80413ddbcbb6 | test/test.lua | test/test.lua | scanning = true
pcall(require, "luacov")
print("------------------------------------")
print("Lua version: " .. (jit and jit.version or _VERSION))
print("------------------------------------")
print("")
local HAS_RUNNER = not not lunit
local lunit = require "lunit"
local TEST_CASE = lunit.TEST_CASE
local ci18n = re... | scanning = true
pcall(require, "luacov")
print("------------------------------------")
print("Lua version: " .. (jit and jit.version or _VERSION))
print("------------------------------------")
print("")
local HAS_RUNNER = not not lunit
local lunit = require "lunit"
local TEST_CASE = lunit.TEST_CASE
local ci18n = re... | Test fixed | Test fixed
| Lua | mit | v1993/cocos2d-x-lua-i18n |
02cafb772341394c9c9836391af8aeb4affd5fc7 | lua-project/src/convert-creator-build.lua | lua-project/src/convert-creator-build.lua |
require "cocos.framework.init"
cc.DEBUG = cc.DEBUG_VERBOSE
cc.DEBUG_DISABLE_DUMP_TRACEBACK = true
local args = {...}
local function help()
print [[
Convert Cocos Creator web-mobile build to Lua project.
syntax:
lua convert-creator-build.lua <BUILD_PATH>
example:
lua convert-creator-build.lua ../../... |
require "cocos.framework.init"
cc.DEBUG = cc.DEBUG_VERBOSE
cc.DEBUG_DISABLE_DUMP_TRACEBACK = true
local args = {...}
local function help()
print [[
Convert Cocos Creator web-mobile build to Lua project.
syntax:
lua convert-creator-build.lua <BUILD_PATH>
example:
lua convert-creator-build.lua ../../... | fix Lua 5.1 and 5.2+ support | fix Lua 5.1 and 5.2+ support
| Lua | mit | dualface/creator-lua,dualface/creator-lua,dualface/creator-lua,dualface/creator-lua,dualface/creator-lua |
0c1097fc1e60a5f64461f6883522abd983890db0 | src/remy/nginx.lua | src/remy/nginx.lua | -- Remy - Nginx compatibility
-- Copyright (c) 2014 Felipe Daragon
-- License: MIT
-- TODO: implement all functions from mod_lua's request_rec
local request = {
-- ENCODING/DECODING FUNCTIONS
base64_decode = function(_,...) return ngx.decode_base64(...) end,
base64_encode = function(_,...) return ngx.encode_base64(... | -- Remy - Nginx compatibility
-- Copyright (c) 2014 Felipe Daragon
-- License: MIT
-- TODO: implement all functions from mod_lua's request_rec
local request = {
-- ENCODING/DECODING FUNCTIONS
base64_decode = function(_,...) return ngx.decode_base64(...) end,
base64_encode = function(_,...) return ngx.encode_base64(... | Fixes #41 (error when trying to reset ngx_lua header) | Fixes #41 (error when trying to reset ngx_lua header)
| Lua | mit | sailorproject/sailor,Etiene/sailor,felipedaragon/sailor,felipedaragon/sailor,ignacio/sailor,noname007/sailor,jeary/sailor,mpeterv/sailor,mpeterv/sailor,ignacio/sailor,Etiene/sailor |
54da93216e8e5cef5c3dbeeb91bcf1606aae3ae3 | lualib/sys/socketdispatch.lua | lualib/sys/socketdispatch.lua | local socket = require "sys.socket"
local core = require "sys.core"
local pairs = pairs
local assert = assert
local tremove = table.remove
local CONNECTING = 1
local CONNECTED = 2
local CLOSE = 5
local FINAL = 6
local dispatch = {}
local mt = {
__index = dispatch,
__gc = function(tbl)
tbl:clo... | local socket = require "sys.socket"
local core = require "sys.core"
local pairs = pairs
local assert = assert
local tremove = table.remove
local CONNECTING = 1
local CONNECTED = 2
local CLOSE = 5
local FINAL = 6
local dispatch = {}
local mt = {
__index = dispatch,
__gc = function(tbl)
tbl:clo... | fix typo | fix typo
| Lua | mit | findstr/silly |
cc93050019ed4e8b92bd2f8f05d3d96269cc7535 | src/parser.lua | src/parser.lua | local lpeg = require "lpeg"
local type = type
local tonumber = tonumber
local match = lpeg.match
lpeg.locale(lpeg)
lpeg.setmaxstack(10000)
local R, S, V, P, C, Ct, Cp, Cg, Cb, Cc, Cf =
lpeg.R, lpeg.S, lpeg.V, lpeg.P, lpeg.C, lpeg.Ct,
lpeg.Cp, lpeg.Cg, lpeg.Cb, lpeg.Cc, lpeg.Cf
local Break = P"\r"^-1 * P... | local lpeg = require "lpeg"
local type = type
local tonumber = tonumber
local match = lpeg.match
lpeg.locale(lpeg)
lpeg.setmaxstack(10000)
local R, S, V, P, C, Ct, Cp, Cg, Cb, Cc, Cf =
lpeg.R, lpeg.S, lpeg.V, lpeg.P, lpeg.C, lpeg.Ct,
lpeg.Cp, lpeg.Cg, lpeg.Cb, lpeg.Cc, lpeg.Cf
local Break = P"\r"^-1 * P... | Fix style | Fix style
| Lua | mit | tianchaijz/lua-helium,tianchaijz/lua-helium |
e55b496585389a4a46b4820a9d43b1b866130b16 | busted/outputHandlers/base.lua | busted/outputHandlers/base.lua | local socket = require 'socket'
return function()
local busted = require 'busted'
local handler = {
successes = {},
successesCount = 0,
pendings = {},
pendingsCount = 0,
failures = {},
failuresCount = 0,
errors = {},
errorsCount = 0,
inProgress = {}
}
handler.cancelOnPendin... | local socket = require 'socket'
return function()
local busted = require 'busted'
local handler = {
successes = {},
successesCount = 0,
pendings = {},
pendingsCount = 0,
failures = {},
failuresCount = 0,
errors = {},
errorsCount = 0,
inProgress = {}
}
handler.cancelOnPendin... | Fix json output | Fix json output
Looks like the json module has issues with tables that have functions
in them. So remove output tables that have functions.
| Lua | mit | xyliuke/busted,istr/busted,DorianGray/busted,ryanplusplus/busted,o-lim/busted,Olivine-Labs/busted,sobrinho/busted,mpeterv/busted |
cb33fa6f2003ff4b3147b9c75c1002b9ff631371 | src/actions/vstudio/vs2010_rules_xml.lua | src/actions/vstudio/vs2010_rules_xml.lua | ---
-- vs2010_rules_xml.lua
-- Generate a Visual Studio 201x custom rules XML file.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
premake.vstudio.vs2010.rules.xml = {}
local m = premake.vstudio.vs2010.rules.xml
m.elements = {}
local p = premake
---
-- Entry point; generate the root <ProjectSch... | ---
-- vs2010_rules_xml.lua
-- Generate a Visual Studio 201x custom rules XML file.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
premake.vstudio.vs2010.rules.xml = {}
local m = premake.vstudio.vs2010.rules.xml
m.elements = {}
local p = premake
---
-- Entry point; generate the root <ProjectSch... | Basic support for boolean properties, some fixes | Basic support for boolean properties, some fixes
--HG--
branch : feature/rules
| Lua | bsd-3-clause | annulen/premake,annulen/premake,annulen/premake,annulen/premake |
d1b570fa5c1d98c1e98bcfc98d87ea10a975f772 | src/sailor/access.lua | src/sailor/access.lua | --------------------------------------------------------------------------------
-- access.lua, v0.2.2: controls access of sailor apps
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
--------------------------------------------... | --------------------------------------------------------------------------------
-- access.lua, v0.2.3: controls access of sailor apps
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
--------------------------------------------... | Fixing salt workflow on access module | Fixing salt workflow on access module
| Lua | mit | ignacio/sailor,ignacio/sailor,Etiene/sailor,jeary/sailor,mpeterv/sailor,mpeterv/sailor,noname007/sailor,felipedaragon/sailor,hallison/sailor,sailorproject/sailor,Etiene/sailor,felipedaragon/sailor |
de71e6f774e7239c17266ff1f5999c673a08614e | Peripherals/GPU/modules/miscellaneous.lua | Peripherals/GPU/modules/miscellaneous.lua | --GPU: Miscellaneous Things.
--luacheck: push ignore 211
local Config, GPU, yGPU, GPUVars, DevKit = ...
--luacheck: pop
local events = require("Engine.events")
local MiscVars = GPUVars.Misc
local RenderVars = GPUVars.Render
--==System Message==--
MiscVars.LastMSG = "" --Last system message.
MiscVars.LastMSGTColor ... | --GPU: Miscellaneous Things.
--luacheck: push ignore 211
local Config, GPU, yGPU, GPUVars, DevKit = ...
--luacheck: pop
local events = require("Engine.events")
local MiscVars = GPUVars.Misc
local RenderVars = GPUVars.Render
--==System Message==--
MiscVars.LastMSG = "" --Last system message.
MiscVars.LastMSGTColor ... | Fix GPU system message errors, and allow time to be 0 (for cancelling messages) | Fix GPU system message errors, and allow time to be 0 (for cancelling messages)
Former-commit-id: f21ed68153bf11327751c641ed39b930943efc63 | Lua | mit | RamiLego4Game/LIKO-12 |
b9d887e674eb574b1693dd1b6d77f917f41353a4 | hikyuu_pywrap/xmake.lua | hikyuu_pywrap/xmake.lua | option("boost-python-suffix")
set_default("3X")
set_showmenu(true)
set_category("hikyuu")
set_description("Set suffix of libboost_python. ",
"Boost.python 1.67 later use 3x like libboost_python35, ",
"but older is libboost_python3",
" - 3X a... | option("boost-python-suffix")
set_default("3X")
set_showmenu(true)
set_category("hikyuu")
set_description("Set suffix of libboost_python. ",
"Boost.python 1.67 later use 3x like libboost_python35, ",
"but older is libboost_python3",
" - 3X a... | fixed xmake cp | fixed xmake cp
| Lua | mit | fasiondog/hikyuu |
7b8ca3618287e6c75aaa85c0c57fbf0bac5260ec | food-chain/food-chain_test.lua | food-chain/food-chain_test.lua | local song = require('./food-chain')
describe('Food Chain', function ()
it('fly', function ()
local expected = "I know an old lady who swallowed a fly.\nI don't know why she swallowed the fly. Perhaps she'll die.\n"
assert.are.equals(song.verse(1),expected)
end)
it('spider', function ()
local exp... | local song = require('./food-chain')
describe('Food Chain', function ()
it('fly', function ()
local expected = "I know an old lady who swallowed a fly.\nI don't know why she swallowed the fly. Perhaps she'll die.\n"
assert.are.equal(expected, song.verse(1))
end)
it('spider', function ()
local expec... | Updated to match the provided style guide. Fixed expected and actual mix-up in assertions. | Updated to match the provided style guide. Fixed expected and actual mix-up in assertions.
| Lua | mit | exercism/xlua,fyrchik/xlua,ryanplusplus/xlua |
63de53d118b70b60e905e6e6f9479716d105af3c | mods/locked_sign/init.lua | mods/locked_sign/init.lua | --[[
Mod by kotolegokot
Version 2012.8.13.0
]]
minetest.register_privilege("sign_editor", "Can edit all locked signs")
minetest.register_node("locked_sign:sign_wall_locked", {
description = "Locked Sign",
drawtype = "signlike",
tiles = {"locked_sign_sign_wall_lock.png"},
inventory_image = "locked_sign_sign_wall_l... | --[[
Mod by kotolegokot
Version 2012.8.13.0
]]
minetest.register_privilege("sign_editor", "Can edit all locked signs")
minetest.register_node("locked_sign:sign_wall_locked", {
description = "Locked Sign",
drawtype = "signlike",
tiles = {"locked_sign_sign_wall_lock.png"},
inventory_image = "locked_sign_sign_wall_l... | [locked_sign] Lock sign for individual players, and fix formspec - Fix #20 | [locked_sign] Lock sign for individual players, and fix formspec
- Fix #20
| Lua | unlicense | MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative |
f2d52bd28171c4779ceb85f755768d2ec5bc658f | libs/httpd/luasrc/httpd.lua | libs/httpd/luasrc/httpd.lua | --[[
HTTP server implementation for LuCI - core
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the... | --[[
HTTP server implementation for LuCI - core
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the... | * libs/httpd: Fixed a memleak | * libs/httpd: Fixed a memleak
| Lua | apache-2.0 | 8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci |
11f0fa32c74c8af092691ae8624670408657b502 | durden/tools/advfloat.lua | durden/tools/advfloat.lua | --
-- Advanced float handler
--
-- Kept here as a means to start removing policy from tiler.lua
-- and letting more parts of the codebase be "opt out"
--
-- Since it is rather big, it have been split out into multiple subscripts,
-- while this one is kept as an entry point for consolidating menu
-- mapping and configur... | --
-- Advanced float handler
--
-- Kept here as a means to start removing policy from tiler.lua
-- and letting more parts of the codebase be "opt out"
--
-- Since it is rather big, it have been split out into multiple subscripts,
-- while this one is kept as an entry point for consolidating menu
-- mapping and configur... | advfloat, fix settings menu path registration | advfloat, fix settings menu path registration
| Lua | bsd-3-clause | letoram/durden |
c02879d6263354c77f09abccd7a015203095d037 | modules/android/vsandroid_androidproj.lua | modules/android/vsandroid_androidproj.lua | --
-- android/vsandroid_androidproj.lua
-- vs-android integration for vstudio.
-- Copyright (c) 2012-2015 Manu Evans and the Premake project
--
local p = premake
local android = p.modules.android
local vsandroid = p.modules.vsandroid
local vc2010 = p.vstudio.vc2010
local vstudio = p.vstudio
local project = p.pr... | --
-- android/vsandroid_androidproj.lua
-- vs-android integration for vstudio.
-- Copyright (c) 2012-2015 Manu Evans and the Premake project
--
local p = premake
local android = p.modules.android
local vsandroid = p.modules.vsandroid
local vc2010 = p.vstudio.vc2010
local vstudio = p.vstudio
local project = p.pr... | vpath android.link fix | vpath android.link fix
The issue that this solves is that if vpaths is used to resolve the
android needed file paths when they are referenced from other directories
within the directory structure but not considered external files.
| Lua | bsd-3-clause | premake/premake-core,dcourtois/premake-core,mandersan/premake-core,TurkeyMan/premake-core,TurkeyMan/premake-core,starkos/premake-core,noresources/premake-core,tvandijck/premake-core,starkos/premake-core,sleepingwit/premake-core,premake/premake-core,dcourtois/premake-core,starkos/premake-core,LORgames/premake-core,mande... |
37f6659ce4191efa66ca8e30002759797e1d1adc | MMOCoreORB/bin/scripts/object/tangible/powerup/weapon/melee_generic.lua | MMOCoreORB/bin/scripts/object/tangible/powerup/weapon/melee_generic.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | [fixed]mantis 0003683 melee power ups able to have min as a secondary stat and added action cost as a primary stat. | [fixed]mantis 0003683 melee power ups able to have min as a secondary
stat and added action cost as a primary stat.
Change-Id: I0fce5f91d84791fc1ea260d160c413947f9d353b
| Lua | agpl-3.0 | 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/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/... |
c518a94eabc1a27b0efe71a230a42fd1e146176f | src/cosy/fixpath/cli.lua | src/cosy/fixpath/cli.lua | local Lfs = require "lfs"
local Lustache = require "lustache"
local Colors = require 'ansicolors'
local Arguments = require "argparse"
local parser = Arguments () {
name = "cosy-fixpath",
description = "Fix PATH, CPATH, *LIBRARY_PATH in cosy binaries",
}
parser:argument "prefix" {
description = ... | local Lfs = require "lfs"
local Lustache = require "lustache"
local Colors = require 'ansicolors'
local Arguments = require "argparse"
local parser = Arguments () {
name = "cosy-fixpath",
description = "Fix PATH, CPATH, *LIBRARY_PATH in cosy binaries",
}
parser:argument "prefix" {
description = ... | Fix fixpath script. | Fix fixpath script.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
2efa26b4ad5dd515459ff0bd9fb1d13adc0bf02f | util/dependencies.lua | util/dependencies.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 fatal;
local function softreq(...) local ok, lib = pcall(require, ...); if ok then return lib; e... | -- 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 fatal;
local function softreq(...) local ok, lib = pcall(require, ...); if ok then return lib; e... | util.dependencies: Fix package name of LuaFilesystem | util.dependencies: Fix package name of LuaFilesystem
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
f69b04373f6a76a1797d9bca69109e5faf729bc3 | .config/nvim/lua/modules/lsp/lua-language-server.lua | .config/nvim/lua/modules/lsp/lua-language-server.lua | -- see https://www.chrisatmachine.com/Neovim/28-neovim-lua-development/ for how to
--install the lua-language-server
local M = {}
local system_name
if vim.fn.has("mac") == 1 then
system_name = "macOS"
elseif vim.fn.has("unix") == 1 then
system_name = "Linux"
elseif vim.fn.has("win32") == 1 then
system_nam... | -- see https://www.chrisatmachine.com/Neovim/28-neovim-lua-development/ for how to
--install the lua-language-server
local M = {}
-- install the language server at ~/code/lua-language-server
-- see https://github.com/sumneko/lua-language-server/wiki/Build-and-Run
local sumneko_root_path = os.getenv("HOME") .. "/code/l... | fix(lua-language-server.lua): update lua binary path | fix(lua-language-server.lua): update lua binary path
| Lua | mit | larrybotha/dotfiles,larrybotha/dotfiles |
887edd8b53b1bdd9bf8ab8d75a7d4faa4779142b | src/luarocks/persist.lua | src/luarocks/persist.lua |
--- Utility module for loading files into tables and
-- saving tables into files.
-- Implemented separately to avoid interdependencies,
-- as it is used in the bootstrapping stage of the cfg module.
local persist = {}
package.loaded["luarocks.persist"] = persist
local util = require("luarocks.util")
--- Load and run... |
--- Utility module for loading files into tables and
-- saving tables into files.
-- Implemented separately to avoid interdependencies,
-- as it is used in the bootstrapping stage of the cfg module.
local persist = {}
package.loaded["luarocks.persist"] = persist
local util = require("luarocks.util")
--- Load and run... | Fix persist for multiline strings ending with closing bracket prefix | Fix persist for multiline strings ending with closing bracket prefix
| Lua | mit | xpol/luavm,xpol/luainstaller,tarantool/luarocks,robooo/luarocks,tarantool/luarocks,tarantool/luarocks,xpol/luavm,xpol/luavm,luarocks/luarocks,keplerproject/luarocks,robooo/luarocks,xpol/luarocks,xpol/luavm,keplerproject/luarocks,xpol/luainstaller,robooo/luarocks,xpol/luavm,xpol/luarocks,luarocks/luarocks,xpol/luarocks,... |
ee2dd7bdf774c414674e06b3ff273521062ab7f1 | whisper.lua | whisper.lua | local mod = EPGP:NewModule("whisper", "AceEvent-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local senderMap = {}
function mod:CHAT_MSG_WHISPER(event_name, msg, sender)
if not UnitInRaid("player") then return end
if not msg:match("epgp standby") then return end
local member = msg:match("epgp sta... | local mod = EPGP:NewModule("whisper", "AceEvent-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local senderMap = {}
function mod:CHAT_MSG_WHISPER(event_name, msg, sender)
if not UnitInRaid("player") then return end
if not msg:match("epgp standby") then return end
local member = msg:match("epgp sta... | Fix issue 343. Whisper mod now disables announces properly when disabled. | Fix issue 343. Whisper mod now disables announces properly when disabled.
| Lua | bsd-3-clause | hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,ceason/epgp-tfatf,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,sheldon/epgp |
75180c469475818247e0ce09d73a4cadcb25620d | stdlib/event/changes.lua | stdlib/event/changes.lua | --- Configuration changed event handling.
-- This module registers events
-- @module Changes
-- @usage require('__stdlib__/stdlib/event/changes')
local Event = require('__stdlib__/stdlib/event/event')
local Changes = {
_module = 'Changes'
}
setmetatable(Changes, require('__stdlib__/stdlib/core'))
--[[
Config... | --- Configuration changed event handling.
-- This module registers events
-- @module Changes
-- @usage require('__stdlib__/stdlib/event/changes')
local Event = require('__stdlib__/stdlib/event/event')
local Changes = {
_module = 'Changes'
}
setmetatable(Changes, require('__stdlib__/stdlib/core'))
--[[
Config... | Fix Changes not loading version files correctly | Fix Changes not loading version files correctly
| Lua | isc | Afforess/Factorio-Stdlib |
552f1026aa1f9ae903bfdce05b8ec954c7df8e36 | tasks/dm1.lua | tasks/dm1.lua | local M = {}
local toribio = require 'toribio'
local sched = require 'lumen.sched'
local log = require 'lumen.log'
local selector = require 'lumen.tasks.selector'
local encoder_lib = require ('lumen.lib.dkjson')
local encode_f = encoder_lib.encode
local decode_f = encoder_lib.decode
local assert, tonumber, io_open = ... | local M = {}
local toribio = require 'toribio'
local sched = require 'lumen.sched'
local log = require 'lumen.log'
local selector = require 'lumen.tasks.selector'
local encoder_lib = require ('lumen.lib.dkjson')
local encode_f = encoder_lib.encode
local decode_f = encoder_lib.decode
local assert, tonumber, io_open, t... | fix pot angle handling, cleanup | fix pot angle handling, cleanup
| Lua | mit | xopxe/Toribio,xopxe/Toribio,xopxe/Toribio |
6f4b1b9b1a215f5baf6dcdb2484fb33421d1f3fc | mod_smacks/mod_smacks.lua | mod_smacks/mod_smacks.lua | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local timer = require "util.timer";
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmln... | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local timer = require "util.timer";
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmln... | mod_smacks: Fixed to use the correct events API. | mod_smacks: Fixed to use the correct events API.
| Lua | mit | vince06fr/prosody-modules,olax/prosody-modules,heysion/prosody-modules,BurmistrovJ/prosody-modules,syntafin/prosody-modules,amenophis1er/prosody-modules,cryptotoad/prosody-modules,apung/prosody-modules,iamliqiang/prosody-modules,guilhem/prosody-modules,mmusial/prosody-modules,cryptotoad/prosody-modules,either1/prosody-... |
aed97d24433c87ae8f25f45bedb6e7c7672b1823 | src/armor.lua | src/armor.lua | function getArmor(index)
local armor = game.players[index].get_inventory(defines.inventory.player_armor)[1]
return armor
end
function armorCheck(index)
local armor = getArmor(index)
if armor.grid ~= nil then
return true
end
return false
end
script.on_event(defines.events.on_player_armor_inventory_chan... | function getArmor(index)
local armor = game.players[index].get_inventory(defines.inventory.player_armor)[1]
if armor ~= nil and armor.valid_for_read == true then
return armor
end
return false
end
script.on_event(defines.events.on_player_armor_inventory_changed, function(event)
local index = event.player_... | fix and cleanup | fix and cleanup
| Lua | mit | kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor |
4b6aec11efe19d453961465753168d27f473e22c | generative-tree/generative-tree.lua | generative-tree/generative-tree.lua | function shallowcopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_value in pairs(orig) do
copy[orig_key] = orig_value
end
else -- number, string, boolean, etc
copy = orig
end
return copy
end
f... | function shallowcopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_value in pairs(orig) do
copy[orig_key] = orig_value
end
else -- number, string, boolean, etc
copy = orig
end
return copy
end
f... | fix(generative-tree): use merge instead of emit | fix(generative-tree): use merge instead of emit
| Lua | mit | loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments |
8f4e283a7121fe0ca64aa03661e00ae8426cd4cf | src/conf/ConfigReader.lua | src/conf/ConfigReader.lua | local ConfigReader = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local FILE_NAME = 'settings.cfg';
local TEMPLATE_PATH = 'res/templates/settings_template.cfg';
local INVALID_CONFIG_HEADER = 'Invalid config file';
local MISSING_SECTION_WAR... | local ConfigReader = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local FILE_NAME = 'settings.cfg';
local TEMPLATE_PATH = 'res/templates/settings_template.cfg';
local INVALID_CONFIG_HEADER = 'Invalid config file';
local MISSING_SECTION_WAR... | Fix default config file not being used | Fix default config file not being used
It looks like the default config file was never properly used.
| Lua | mit | rm-code/logivi |
18ca6465c64fdcfab915d3e56a3a1311604b5127 | kong/plugins/zipkin/opentracing.lua | kong/plugins/zipkin/opentracing.lua | --[[
This file is not a kong plugin; but the prototype for one.
A plugin that derives this should:
- Implement a :new_tracer(cond) method that returns an opentracing tracer
- The tracer must support the "http_headers" format.
- Implement a :initialise_request(conf, ctx) method if it needs to do per-request initiali... | --[[
This file is not a kong plugin; but the prototype for one.
A plugin that derives this should:
- Implement a :new_tracer(cond) method that returns an opentracing tracer
- The tracer must support the "http_headers" format.
- Implement a :initialise_request(conf, ctx) method if it needs to do per-request initiali... | kong/plugins/zipkin/opentracing.lua: Check that .id field exists before using service or route | kong/plugins/zipkin/opentracing.lua: Check that .id field exists before using service or route
Fixes #19
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
be7fc528d892eb4593ea3cf2ed00af2c2893b3fd | Makefile.lua | Makefile.lua | CFLAGS+=-Ilibuv/include -g -I/usr/local/include \
-DLUV_STACK_CHECK -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
-Werror -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement
uname_S=$(shell uname -s)
ifeq (Darwin, $(uname_S))
LDFLAGS+=-bu... | CFLAGS+=-Ilibuv/include -g -I/usr/local/include \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
-Werror -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement
uname_S=$(shell uname -s)
ifeq (Darwin, $(uname_S))
LDFLAGS+=-bundle -bundle_loade... | Fix Makefile.lua for linux | Fix Makefile.lua for linux
| Lua | apache-2.0 | daurnimator/luv,daurnimator/luv,luvit/luv,kidaa/luv,joerg-krause/luv,daurnimator/luv,zhaozg/luv,zhaozg/luv,luvit/luv,RomeroMalaquias/luv,NanXiao/luv,mkschreder/luv,joerg-krause/luv,xpol/luv,brimworks/luv,mkschreder/luv,kidaa/luv,brimworks/luv,leecrest/luv,NanXiao/luv,leecrest/luv,RomeroMalaquias/luv,DBarney/luv,RomeroM... |
6aa264748c87a5343b7d05061a0f3a3463987cc7 | util/sasl.lua | util/sasl.lua | -- sasl.lua v0.4
-- Copyright (C) 2008-2009 Tobias Markmann
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright ... | -- sasl.lua v0.4
-- Copyright (C) 2008-2009 Tobias Markmann
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright ... | Mostly making the code run; includes fixing typos and so on. | Mostly making the code run; includes fixing typos and so on.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
9f86901f5f91f88e2dfe11e4c5f46d74b6d5ad34 | modules/textadept/run.lua | modules/textadept/run.lua | -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local L = _G.locale.localize
---
-- Module for running/executing source files.
-- Typically, language-specific modules populate the 'compile_command',
-- 'run_command', and 'error_detail' tables for a particular language's file
-- extension.
mod... | -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local L = _G.locale.localize
---
-- Module for running/executing source files.
-- Typically, language-specific modules populate the 'compile_command',
-- 'run_command', and 'error_detail' tables for a particular language's file
-- extension.
mod... | Fixed bug in modules/textadept/run.lua from localization changes. | Fixed bug in modules/textadept/run.lua from localization changes.
| Lua | mit | jozadaquebatista/textadept,jozadaquebatista/textadept |
ebf1f199e66dc86348c671c24f96990a2025b5a6 | src/nova/object.lua | src/nova/object.lua |
--- LuaNova's object module.
-- This module is used to create objects from prototypes, through the use of
-- the nova.object:new() method. It also defines a reference to a nil object,
-- which may be acquired with nova.object.nilref().
module ("nova.object", package.seeall) do
--- Local instance of the "nil object".... |
--- LuaNova's object module.
-- This module is used to create objects from prototypes, through the use of
-- the nova.object:new() method. It also defines a reference to a nil object,
-- which may be acquired with nova.object.nilref().
module ("nova.object", package.seeall) do
--- Local instance of the "nil object".... | Fixed super class getter. | Fixed super class getter.
| Lua | mit | Kazuo256/luxproject |
af8bb1ebedca7d3a7f94b7cdaf04c51770f01546 | ardivink.lua | ardivink.lua | bootstrap = require("bootstrap")
bootstrap.init()
ci = require("ci")
--godi = require("godi")
oasis = require("oasis")
git = require("git")
ci.init()
-- godi.init()
git.init()
oasis.init()
--godi.bootstrap("3.12")
--godi.update()
--godi.upgrade()
--godi.build_many(
-- {"godi-findlib",
-- "godi-ocaml-fileutils",
... | ci = require("ci")
--godi = require("godi")
oasis = require("oasis")
git = require("git")
ci.init()
-- godi.init()
git.init()
oasis.init()
--godi.bootstrap("3.12")
--godi.update()
--godi.upgrade()
--godi.build_many(
-- {"godi-findlib",
-- "godi-ocaml-fileutils",
-- "godi-ocaml-data-notation",
-- "godi-ocaml-ex... | Fix missing bootstrap.lua. | Fix missing bootstrap.lua.
| Lua | lgpl-2.1 | diml/oasis,gerdstolpmann/oasis,jpdeplaix/oasis,jpdeplaix/oasis,Chris00/oasis,gerdstolpmann/oasis,RadicalZephyr/oasis,madroach/oasis,gerdstolpmann/oasis,jpdeplaix/oasis,RadicalZephyr/oasis,Chris00/oasis,madroach/oasis,Chris00/oasis,diml/oasis |
4bd2c0e087279f66aa312ad3fab03cfa583f554f | src/bidi/LinkedList.lua | src/bidi/LinkedList.lua | ----------------------------------------------------------------
-- Doubly-linked List
--
-- @classmod LinkedList
-- @author jose@josellausas.com
-- @usage
-- dll = LinkedList.new()
-- dll:pushBack("Some data")
-- print(dll:popBack())
----------------------------------------------------------------
local Node = require... | ----------------------------------------------------------------
-- Doubly-linked List
--
-- @classmod LinkedList
-- @author jose@josellausas.com
-- @usage
-- dll = LinkedList.new()
-- dll:pushBack("Some data")
-- print(dll:popBack())
----------------------------------------------------------------
local Node = require... | Fix method removed in error | Fix method removed in error
| Lua | mit | ufyTeX/luabidi |
41d4204c491037730908ffbc8818e0b4657a50fd | init.lua | init.lua | require 'action'
require 'hotkey_modal'
require 'profile'
----------------------------------------------------------------------------------------------------
-- Settings
----------------------------------------------------------------------------------------------------
hs.window.animationDuration = 0.15
hs.grid.set... | require 'action'
require 'hotkey_modal'
require 'profile'
----------------------------------------------------------------------------------------------------
-- Settings
----------------------------------------------------------------------------------------------------
hs.window.animationDuration = 0.15
hs.grid.set... | Fix Terminal window handling again | Fix Terminal window handling again
| Lua | mit | mgee/hammerspoon-config |
f4c67d996571566fc3d8432c07c7fd13ae010564 | layout-app.lua | layout-app.lua | local book = SILE.require("classes/book");
book:defineMaster({ id = "right", firstContentFrame = "content", frames = {
content = {left = "2mm", right = "100%pw-2mm", top = "12mm", bottom = "100%ph-2mm" },
runningHead = {left = "left(content)", right = "right(content)", top = "top(content)-10mm", bottom = "top(conte... | local book=SILE.require("classes/book");
book:defineMaster({ id="right", firstContentFrame="content", frames={
content={ left="2mm", right="100%pw-2mm", top="12mm", bottom="top(footnotes)" },
runningHead= {left="left(content)", right="right(content)", top="top(content)-10mm", bottom="top(content)-2mm" },
footnote... | Attach footnote frame to page bottom instead of top | Attach footnote frame to page bottom instead of top
Fixes viachristus/mujdeyi_kurtarmak#96
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
73f4dc82b707a0e369ed208a4ae0b4a1401a7ae1 | core/engine.lua | core/engine.lua | Engine = class("Engine")
function Engine:__init()
self.entities = {}
self.requirements = {}
self.entityLists = {}
self.allSystems = {}
self.logicSystems = {}
self.drawSystems = {}
self.freeIds = {}
end
function Engine:addEntity(entity)
if #self.freeIds == 0 then
table.insert... | Engine = class("Engine")
function Engine:__init()
self.entities = {}
self.requirements = {}
self.entityLists = {}
self.allSystems = {}
self.logicSystems = {}
self.drawSystems = {}
self.freeIds = {}
end
function Engine:addEntity(entity)
if #self.freeIds == 0 then
table.insert... | Bug fixed | Bug fixed
- componentAdded in Engine added Entities with wrong index into entitieLists
| Lua | mit | takaaptech/lovetoys,xpol/lovetoys |
89ede95aef19c2efa52ec329e5ef2e40fdd33494 | core/rostermanager.lua | core/rostermanager.lua |
local mainlog = log;
local function log(type, message)
mainlog(type, "rostermanager", message);
end
local setmetatable = setmetatable;
local format = string.format;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
require "util.datamanager"
local datamanager = datamanager;
module "rostermanager"
--[[fu... |
local mainlog = log;
local function log(type, message)
mainlog(type, "rostermanager", message);
end
local setmetatable = setmetatable;
local format = string.format;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local hosts = hosts;
require "util.datamanager"
local datamanager = datamanager;
module "... | Fixed: Typos caused by lack of sleep. Learned: Lua variable assignments are not expressions. | Fixed: Typos caused by lack of sleep.
Learned: Lua variable assignments are not expressions.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
f82ead2b39ef0a91ac384863103bf8e318302d10 | datastorage.lua | datastorage.lua | -- need low-level mechnism to detect android to avoid recursive dependency
local isAndroid, android = pcall(require, "android")
local lfs = require("libs/libkoreader-lfs")
local DataStorage = {}
local data_dir
local full_data_dir
function DataStorage:getDataDir()
if data_dir then return data_dir end
if isAn... | -- need low-level mechnism to detect android to avoid recursive dependency
local isAndroid, android = pcall(require, "android")
local lfs = require("libs/libkoreader-lfs")
local DataStorage = {}
local data_dir
local full_data_dir
function DataStorage:getDataDir()
if data_dir then return data_dir end
if isAn... | Fix koreader not using XDG_CONFIG_HOME on linux (#8507) | Fix koreader not using XDG_CONFIG_HOME on linux (#8507)
| Lua | agpl-3.0 | NiLuJe/koreader,koreader/koreader,koreader/koreader,poire-z/koreader,Frenzie/koreader,poire-z/koreader,Frenzie/koreader,NiLuJe/koreader |
c970f33bc26683e675000c39dc205f5d0e58ab17 | kong/db/strategies/cassandra/plugins.lua | kong/db/strategies/cassandra/plugins.lua | local cassandra = require "cassandra"
local split = require("pl.stringx").split
local cjson = require("cjson")
local insert = table.insert
local fmt = string.format
local Plugins = {}
-- Emulate the `select_by_cache_key` operation
-- using the `plugins` table of a 0.14 database.
-- @tparam string key a 0.15+ plug... | local cassandra = require "cassandra"
local split = require("pl.stringx").split
local cjson = require("cjson")
local insert = table.insert
local fmt = string.format
local Plugins = {}
-- Emulate the `select_by_cache_key` operation
-- using the `plugins` table of a 0.14 database.
-- @tparam string key a 0.15+ plug... | hotfix(db) fix Plugins cache_key translation function for C* 2.x | hotfix(db) fix Plugins cache_key translation function for C* 2.x
Complex queries (even with `ALLOW FILTERING`) can cause a Java exception in
Cassandra 2. This commit simplifies the query when using Cassandra 2 to only
filter by a single non-null entry -- either one of the ids set, or the plugin
name as a fallback -... | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong,Mashape/kong |
c8a3c4b755bf08e4cef431d98a0a2b9994db978d | scripts/entity_system.lua | scripts/entity_system.lua | entity_system = inherits_from ()
function entity_system:constructor(deletes_caller)
self.deletes_caller = deletes_caller
self.all_systems = {}
self.messages = {}
self.message_groups = {}
self.callbacks = {}
self.to_be_removed = {}
self.cpp_entity = cpp_entity_system:create()
self:register_systems( { ["cp... | entity_system = inherits_from ()
function entity_system:constructor(deletes_caller)
self.deletes_caller = deletes_caller
self.all_systems = {}
self.messages = {}
self.message_groups = {}
self.callbacks = {}
self.to_be_removed = {}
self.cpp_entity = cpp_entity_system:create()
self:register_systems( { ["cp... | bug correction (this is to refactor) #219 | bug correction (this is to refactor) #219
| Lua | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,DaTa-/Hypersomnia,DaTa-/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,DaTa-/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations |
16c79d80030684edd91e8b664c033a850e3db3be | premake4.lua | premake4.lua | function copy(src, dst, always)
local action = "\"" .. path.join(os.getcwd(), "copy-data.py") .. "\""
src = "\"" .. src .. "\""
dst = "\"" .. dst .. "\""
cwd = "\"" .. os.getcwd() .. "\""
postbuildcommands { action .. " " .. cwd .. " " .. src .. " " .. dst .. " " .. tostring(always) }
end
function resource... | function copy(src, dst, always)
local action = "\"" .. path.join(os.getcwd(), "copy-data.py") .. "\""
src = "\"" .. src .. "\""
dst = "\"" .. dst .. "\""
cwd = "\"" .. os.getcwd() .. "\""
postbuildcommands { action .. " " .. cwd .. " " .. src .. " " .. dst .. " " .. tostring(always) }
end
function resource... | Minor fixes in premake4.lua | Minor fixes in premake4.lua
| Lua | bsd-3-clause | bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph |
12bf282ef290340e7b9a668854e749042d2816a7 | graphics.lua | graphics.lua | --[[
Draw a border
@x: start position in x axis
@y: start position in y axis
@w: width of the border
@h: height of the border
@bw: line width of the border
@c: color for loading bar
@r: radius of for border's corner (nil or 0 means right corner border)
--]]
function blitbuffer.paintBorder(bb, x, y, w, h, bw, c, ... | --[[
Draw a border
@x: start position in x axis
@y: start position in y axis
@w: width of the border
@h: height of the border
@bw: line width of the border
@c: color for loading bar
@r: radius of for border's corner (nil or 0 means right corner border)
--]]
function blitbuffer.paintBorder(bb, x, y, w, h, bw, c, ... | fix bug in paintRoundedRect | fix bug in paintRoundedRect
rounded up decimal leads to wrong claculation
for bottom corners
| Lua | agpl-3.0 | koreader/koreader-base,apletnev/koreader-base,frankyifei/koreader-base,Hzj-jie/koreader,Hzj-jie/koreader-base,NiLuJe/koreader-base,apletnev/koreader-base,robert00s/koreader,koreader/koreader-base,lgeek/koreader,Hzj-jie/koreader-base,Hzj-jie/koreader-base,houqp/koreader-base,NiLuJe/koreader,Frenzie/koreader-base,Frenzie... |
bd6a32ea04e45fc821cdf8ac8eb5ae9039360a80 | files/init.lua | files/init.lua | HYPER = {"cmd", "alt", "ctrl", "shift"}
DEBUG = true
NUMBERS = {
["1"]=true,
["2"]=true,
["3"]=true,
["4"]=true,
["5"]=true,
["6"]=true,
["7"]=true,
["8"]=true,
["9"]=true
}
function tablelength(T)
local count = 0
for _ in pairs(T) do count = count + 1 end
return count
end
function run_resizer... | HYPER = {"cmd", "alt", "ctrl", "shift"}
DEBUG = true
NUMBERS = {
["1"]=true,
["2"]=true,
["3"]=true,
["4"]=true,
["5"]=true,
["6"]=true,
["7"]=true,
["8"]=true,
["9"]=true
}
function tablelength(T)
local count = 0
for _ in pairs(T) do count = count + 1 end
return count
end
function run_resizer... | [Hammerspoon] Fix A/D on multi monitor | [Hammerspoon] Fix A/D on multi monitor
| Lua | mit | k0nserv/dotfiles,k0nserv/dotfiles,k0nserv/dotfiles |
8cbd6df093ca06f98092b979a27e74628ba698cc | hikyuu_pywrap/xmake_on_load.lua | hikyuu_pywrap/xmake_on_load.lua | import("lib.detect.find_tool")
function main(target)
if is_plat("windows") then
-- detect installed python3
local python = assert(find_tool("python", {version = true}), "python not found, please install it first! note: python version must > 3.0")
assert(python.version > "3", "python version... | import("lib.detect.find_tool")
function main(target)
if is_plat("windows") then
-- detect installed python3
local python = assert(find_tool("python", {version = true}), "python not found, please install it first! note: python version must > 3.0")
assert(python.version > "3", "python version... | fix defect python on unit-like | fix defect python on unit-like
| Lua | mit | fasiondog/hikyuu |
51b3a697e2ea947757e7319a9d51f9d9265c9bbf | pud/util.lua | pud/util.lua | local select, type, tostring = select, type, tostring
local pairs, error, setmetatable = pairs, error, setmetatable
local format, io_stderr = string.format, io.stderr
-- pud namespace
pud = {}
--[[--
UTILITIES
--]]--
-----------------
-- fast assert --
-----------------
do
local oldassert... | local select, type, tostring = select, type, tostring
local pairs, error, setmetatable = pairs, error, setmetatable
local format, io_stderr = string.format, io.stderr
-- pud namespace
pud = {}
--[[--
UTILITIES
--]]--
-----------------
-- fast assert --
-----------------
do
local oldassert... | fix pudPaths and call require with xpcall | fix pudPaths and call require with xpcall
| Lua | mit | scottcs/wyx |
1147cd325a6dbcdbcfd514f41f782bf6c4870a49 | kong/plugins/session/schema.lua | kong/plugins/session/schema.lua | local utils = require("kong.tools.utils")
return {
no_consumer = true,
fields = {
secret = {
type = "string",
required = false,
default = utils.random_string,
},
cookie_name = { type = "string", default = "session" },
cookie_lifetime = { type = "number", default = 3600 },
... | local utils = require("kong.tools.utils")
local char = string.char
local rand = math.random
local encode_base64 = ngx.encode_base64
-- kong.utils.random_string with number of bytes config
local function random_string(n_bytes)
return encode_base64(get_rand_bytes(n_bytes or 32, true))
:gsub("/", char(rand(4... | fix(session) make random bytes 32, not 24 for sid | fix(session) make random bytes 32, not 24 for sid
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
3b15f029afecc75f951eea9d931d5cc1b42323e9 | luaforth.lua | luaforth.lua | -- LuaForth.
-- Simplistic Forth for Lua interaction.
-- Based on parts of MiniForth
-- The MIT License (MIT)
--
-- Copyright (c) 2016 Adrian Pistol
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in ... | -- LuaForth.
-- Simplistic Forth for Lua interaction.
-- Based on parts of MiniForth
-- The MIT License (MIT)
--
-- Copyright (c) 2016 Adrian Pistol
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in ... | Hoping to fix lua 5.3 support. | Hoping to fix lua 5.3 support.
| Lua | mit | vifino/luaforth |
ce0fe525a7a2cc5d4fb7d810125fc7a5f43cee7e | UCDvehicleShops/client.lua | UCDvehicleShops/client.lua | local markerInfo = {}
local sX, sY = guiGetScreenSize()
GUI = {
gridlist = {},
window = {},
button = {}
}
GUI.window = GuiWindow(1085, 205, 281, 361, "UCD | Vehicle Shop - Low End", false)
GUI.window.sizable = false
GUI.window.visible = false
GUI.window.alpha = 255
GUI.gridlist = GuiGridList(9, 28, 262, 28... | local markerInfo = {}
local sX, sY = guiGetScreenSize()
GUI = {
gridlist = {},
window = {},
button = {}
}
GUI.window = GuiWindow(1085, 205, 281, 361, "UCD | Vehicle Shop - Low End", false)
GUI.window.sizable = false
GUI.window.visible = false
GUI.window.alpha = 255
GUI.gridlist = GuiGridList(9, 28, 262, 28... | UCDvehicleShops | UCDvehicleShops
- Fixed to work with new dx side bar.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
c48123dca7deb4900e1e5b5bb75c4deda674623c | kong/cmd/hybrid.lua | kong/cmd/hybrid.lua | local log = require("kong.cmd.utils.log")
local pkey = require("resty.openssl.pkey")
local x509 = require("resty.openssl.x509")
local name = require("resty.openssl.x509.name")
local pl_file = require("pl.file")
local pl_path = require("pl.path")
local assert = assert
local tonumber = tonumber
local CERT_FILENAME = ... | local log = require("kong.cmd.utils.log")
local pkey = require("resty.openssl.pkey")
local x509 = require("resty.openssl.x509")
local name = require("resty.openssl.x509.name")
local pl_file = require("pl.file")
local pl_path = require("pl.path")
local assert = assert
local tonumber = tonumber
local CERT_FILENAME = ... | fix(cmd) kong hybrid gen_cert errors on permissions issues (#6368) | fix(cmd) kong hybrid gen_cert errors on permissions issues (#6368)
### Summary
It was reported by @hishamhm on #6365 that we give indication of success
even when we fail writing a certificate. This commit changes that to error
on such cases.
Fix #6365 | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
28d765d9f8bdb2e19fbdf39a38ac6d90ad8f2f72 | net/http/parser.lua | net/http/parser.lua |
local tonumber = tonumber;
local assert = assert;
local url_parse = require "socket.url".parse;
local urldecode = require "net.http".urldecode;
local function preprocess_path(path)
path = urldecode((path:gsub("//+", "/")));
if path:sub(1,1) ~= "/" then
path = "/"..path;
end
local level = 0;
for component in pa... |
local tonumber = tonumber;
local assert = assert;
local url_parse = require "socket.url".parse;
local urldecode = require "net.http".urldecode;
local function preprocess_path(path)
path = urldecode((path:gsub("//+", "/")));
if path:sub(1,1) ~= "/" then
path = "/"..path;
end
local level = 0;
for component in pa... | net.http.parser: Fix traceback on invalid URL in status line. | net.http.parser: Fix traceback on invalid URL in status line.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
0bed2a92c19ee9343cb907c375c6e40e07f0cd21 | mem.lua | mem.lua | _MEM = {
cls = {}, -- offsets for fixed fields inside classes
evt_off = 0, -- max event index among all classes
code_clss = nil,
}
function alloc (mem, n, al)
local al = al or n
--DBG(mem.off, n, _TP.align(mem.off,n))
mem.off = _TP.align(mem.off,al)
local cur = mem.off
m... | _MEM = {
cls = {}, -- offsets for fixed fields inside classes
evt_off = 0, -- max event index among all classes
code_clss = nil,
}
function alloc (mem, n, al)
local al = al or n
--DBG(mem.off, n, _TP.align(mem.off,n))
mem.off = _TP.align(mem.off,al)
local cur = mem.off
m... | (*) TODO: ints are using 1 byte (bug in CC2420) | (*) TODO: ints are using 1 byte (bug in CC2420)
| Lua | mit | Johnicholas/ceu,Johnicholas/ceu |
62610734569539eecab6c8cf3fc064c8cad371d4 | lua/entities/gmod_wire_adv_emarker.lua | lua/entities/gmod_wire_adv_emarker.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Adv Wire Entity Marker"
ENT.Author = "Divran"
ENT.WireDebugName = "Adv EMarker"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSo... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Adv Wire Entity Marker"
ENT.Author = "Divran"
ENT.WireDebugName = "Adv EMarker"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSo... | Fixed lua error in adv_emarker | Fixed lua error in adv_emarker
| Lua | apache-2.0 | garrysmodlua/wire,Grocel/wire,dvdvideo1234/wire,NezzKryptic/Wire,wiremod/wire,sammyt291/wire |
c517abf7bf62269d1f523ec32ebe5b43eaf27f45 | packages/footnotes.lua | packages/footnotes.lua | -- Footnotes class
-- Exports: The \footnote command
-- outputInsertions (call this in endPage)
SILE.require("packages/counters")
SILE.require("packages/raiselower")
local insertions = SILE.require("packages/insertions")
SILE.scratch.counters.footnote = { value= 1, display= "arabic" };
SILE.registerCommand(... | -- Footnotes class
-- Exports: The \footnote command
-- outputInsertions (call this in endPage)
SILE.require("packages/counters")
SILE.require("packages/raiselower")
local insertions = SILE.require("packages/insertions")
SILE.scratch.counters.footnote = { value= 1, display= "arabic" };
SILE.registerCommand(... | Switch frames when setting footnotes. (Fixes a bad interaction with grid.) | Switch frames when setting footnotes. (Fixes a bad interaction with grid.) | Lua | mit | alerque/sile,alerque/sile,shirat74/sile,WAKAMAZU/sile_fe,anthrotype/sile,neofob/sile,neofob/sile,simoncozens/sile,WAKAMAZU/sile_fe,WAKAMAZU/sile_fe,neofob/sile,alerque/sile,WAKAMAZU/sile_fe,anthrotype/sile,anthrotype/sile,simoncozens/sile,anthrotype/sile,simoncozens/sile,shirat74/sile,alerque/sile,shirat74/sile,simonco... |
bedd133daa5e9fab819bdd6ed0266bf6692b7ea3 | hydro/eqn/euler-lingr.lua | hydro/eqn/euler-lingr.lua | --[[
Euler fluid equations (rho, v^i, P) <-> (rho, m^i, ETotal)
with additional GEM (phi_g, A_g)
so that means no need for op/selfgrav because it's now built in as (phi, A)
--]]
local class = require 'ext.class'
local table = require 'ext.table'
local Euler = require 'hydro.eqn.euler'
local EulerLinGR = class(Euler... | --[[
Euler fluid equations (rho, v^i, P) <-> (rho, m^i, ETotal)
with additional GEM (phi_g, A_g)
so that means no need for op/selfgrav because it's now built in as (phi, A)
--]]
local class = require 'ext.class'
local table = require 'ext.table'
local Euler = require 'hydro.eqn.euler'
local EulerLinGR = class(Euler... | ok fixed warnings, but now GEM force is wrong | ok fixed warnings, but now GEM force is wrong
| Lua | mit | thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua |
55f0cddb0895db085429052562a1c42b997bd90b | deviceloaders/joystick.lua | deviceloaders/joystick.lua | --- Library for accesing a joystick.
-- This library allows to read data from a joystick,
-- such as it's coordinates and button presses.
-- The device will be named something like "joystick:/dev/input/js0", module "joystick".
-- @module joystick
-- @alias device
--https://www.kernel.org/doc/Documentation/input/joyst... | --- Library for accesing a joystick.
-- This library allows to read data from a joystick,
-- such as it's coordinates and button presses.
-- The device will be named something like "joystick:/dev/input/js0", module "joystick".
-- @module joystick
-- @alias device
--https://www.kernel.org/doc/Documentation/input/joyst... | fix breakage | fix breakage
| Lua | mit | xopxe/Toribio,xopxe/Toribio,xopxe/Toribio |
55406487260440e78e4eb4e97f7f926d5672195c | src/program/snabbnfv/traffic/traffic.lua | src/program/snabbnfv/traffic/traffic.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local lib = require("core.lib")
local nfvconfig = require("program.snabbnfv.nfvconfig")
local usage = require("program.snabbnfv.traffic.README_inc")
local ffi = require("ffi")
local C = ffi.C
local timer = requi... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local lib = require("core.lib")
local nfvconfig = require("program.snabbnfv.nfvconfig")
local usage = require("program.snabbnfv.traffic.README_inc")
local ffi = require("ffi")
local C = ffi.C
local timer = requi... | snabbnfv traffic: Only re-start engine when configuration changes | snabbnfv traffic: Only re-start engine when configuration changes
Before, snabbnfv would run the engine for one-second intervals, checking
for restart every second and restarting the engine. However this
interacts poorly with the latency-tracking mechanism, which expects to
be able to call non-performant functions li... | Lua | apache-2.0 | Igalia/snabbswitch,SnabbCo/snabbswitch,dpino/snabb,eugeneia/snabb,Igalia/snabb,alexandergall/snabbswitch,heryii/snabb,snabbco/snabb,heryii/snabb,kbara/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,eugeneia/snabb,eugeneia/snabb,Igalia/snabb,kbara/snabb,eugeneia/snabb,alexandergall/snabbswitch,eugeneia/snabb,... |
1474a1f1efd13de47b0fd7468c64f1e79845c930 | mod_auth_ldap/mod_auth_ldap.lua | mod_auth_ldap/mod_auth_ldap.lua |
local new_sasl = require "util.sasl".new;
local log = require "util.logger".init("auth_ldap");
local ldap_server = module:get_option_string("ldap_server", "localhost");
local ldap_rootdn = module:get_option_string("ldap_rootdn", "");
local ldap_password = module:get_option_string("ldap_password", "");
local ldap_tls ... |
local new_sasl = require "util.sasl".new;
local log = require "util.logger".init("auth_ldap");
local ldap_server = module:get_option_string("ldap_server", "localhost");
local ldap_rootdn = module:get_option_string("ldap_rootdn", "");
local ldap_password = module:get_option_string("ldap_password", "");
local ldap_tls ... | mod_auth_ldap: Fix set_password | mod_auth_ldap: Fix set_password
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
6803bda16dd64d3003d8bdd2457171a7b1065c7e | libs/core/luasrc/model/network/wireless.lua | libs/core/luasrc/model/network/wireless.lua | --[[
LuCI - Network model - Wireless extension
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless... | --[[
LuCI - Network model - Wireless extension
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless... | libs/core: i18n fixes for wds mode | libs/core: i18n fixes for wds mode
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5513 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | stephank/luci,gwlim/luci,ReclaimYourPrivacy/cloak-luci,eugenesan/openwrt-luci,zwhfly/openwrt-luci,eugenesan/openwrt-luci,ThingMesh/openwrt-luci,yeewang/openwrt-luci,saraedum/luci-packages-old,8devices/carambola2-luci,projectbismark/luci-bismark,Canaan-Creative/luci,stephank/luci,Flexibity/luci,ch3n2k/luci,zwhfly/openwr... |
e268052a8bc56803772eadcfb5f4399bcf8ba919 | ffi/framebuffer_linux.lua | ffi/framebuffer_linux.lua | local ffi = require("ffi")
local bit = require("bit")
local BB = require("ffi/blitbuffer")
local dummy = require("ffi/linux_fb_h")
local dummy = require("ffi/posix_h")
local framebuffer = {}
local framebuffer_mt = {__index={}}
local function einkfb_update(fb, refreshtype, waveform_mode, x, y, w, h)
local refarea = ... | local ffi = require("ffi")
local bit = require("bit")
local BB = require("ffi/blitbuffer")
local dummy = require("ffi/linux_fb_h")
local dummy = require("ffi/posix_h")
local framebuffer = {}
local framebuffer_mt = {__index={}}
local function einkfb_update(fb, refreshtype, waveform_mode, x, y, w, h)
local refarea = ... | fixes in device/framebuffer recognition | fixes in device/framebuffer recognition
we assume that 16bpp framebuffers are Kobo devices
| Lua | agpl-3.0 | koreader/koreader-base,Frenzie/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,Frenzie/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,koreader/koreader-base,houqp/koreade... |
4a9431ae1309025c7b46063cf17f3d56bd5f0ab1 | otouto/plugins/heise.lua | otouto/plugins/heise.lua | local heise = {}
heise.triggers = {
"heise.de/newsticker/meldung/(.*).html$"
}
function heise:get_heise_article(article)
local url = 'https://query.yahooapis.com/v1/public/yql?q=select%20content,src,strong%20from%20html%20where%20url=%22http://www.heise.de/newsticker/meldung/'..article..'.html%22%20and%20xp... | local heise = {}
heise.triggers = {
"heise.de/newsticker/meldung/(.*).html$"
}
function heise:get_heise_article(article)
local url = 'https://query.yahooapis.com/v1/public/yql?q=select%20content,src,strong%20from%20html%20where%20url=%22http://www.heise.de/newsticker/meldung/'..article..'.html%22%20and%20xp... | Heise: Fix | Heise: Fix
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
2990b9f06f2c57c79643aa384b5a58027cdd73bc | xmake/actions/require/impl/environment.lua | xmake/actions/require/impl/environment.lua | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | fix package envs | fix package envs
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake |
e310da1376a4d4861091ccc914d82d414490807e | samples/gtkbuilder.lua | samples/gtkbuilder.lua | #! /usr/bin/env lua
-- Note: demo.ui loaded by this example is copied verbatim from gtk3-demo, and
-- is probably covered by its appropriate license.
-- Import lgi and get Gtk package.
local lgi = require 'lgi'
local Gtk = lgi.Gtk
-- There are two ways to access Gtk.Builder; using standard Gtk API's
-- get_object() ... | #! /usr/bin/env lua
-- Note: demo.ui loaded by this example is copied verbatim from gtk3-demo, and
-- is probably covered by its appropriate license.
-- Import lgi and get Gtk package.
local lgi = require 'lgi'
local Gtk = lgi.Gtk
-- There are two ways to access Gtk.Builder; using standard Gtk API's
-- get_object() ... | Fix builder sample, do not use removed new_from_file method | Fix builder sample, do not use removed new_from_file method
| Lua | mit | psychon/lgi,zevv/lgi,pavouk/lgi |
63abe7c4d062a637ceb14ead079b49a54b008282 | boss.lua | boss.lua | local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[15953] = "Grand Widow Faerlina",
[159... | local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[15953] = "Grand Widow Faerlina",
[159... | Temporary fix to allow disabling/enabling the automatic boss kill module if it is hooked on DBM detection. | Temporary fix to allow disabling/enabling the automatic boss kill module if it is hooked on DBM detection.
| Lua | bsd-3-clause | hayword/tfatf_epgp,ceason/epgp-tfatf,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,sheldon/epgp |
e05f5016e88c716a36d59b1103b7a868052292fe | item/id_359_firefield.lua | item/id_359_firefield.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | fix script error in rare case that flame disappears upon character stepping on it | fix script error in rare case that flame disappears upon character stepping on it
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content |
936f810ca8110b052dd62d29162057f9145ad160 | src/lgix/GObject-Value.lua | src/lgix/GObject-Value.lua | ------------------------------------------------------------------------------
--
-- LGI GObject.Value support.
--
-- Copyright (c) 2010, 2011 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
---------------------------------------------------------------... | ------------------------------------------------------------------------------
--
-- LGI GObject.Value support.
--
-- Copyright (c) 2010, 2011 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
---------------------------------------------------------------... | Fix Value marshalling even for numeric gtypes | Fix Value marshalling even for numeric gtypes
| Lua | mit | pavouk/lgi,psychon/lgi,zevv/lgi |
518bef7c326d890dbcd5666c17d65f5c0f88de99 | plugins/welcome.lua | plugins/welcome.lua | local function set_welcome(msg, welcome)
local data = load_data(_config.moderation.data)
local data_cat = 'welcome'
data[tostring(msg.to.id)][data_cat] = welcome
save_data(_config.moderation.data, data)
return lang_text('newWelcome') .. welcome
end
local function get_welcome(msg)
local... | local function set_welcome(msg, welcome)
local data = load_data(_config.moderation.data)
local data_cat = 'welcome'
data[tostring(msg.to.id)][data_cat] = welcome
save_data(_config.moderation.data, data)
return lang_text('newWelcome') .. welcome
end
local function get_welcome(msg)
local... | fix nil values | fix nil values
| Lua | agpl-3.0 | xsolinsx/AISasha |
a8c8a632262a7464b6e7b3a196e204c97125797b | tests/test-json.lua | tests/test-json.lua | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | lint + add unicode json test | lint + add unicode json test
fixes #506
| Lua | apache-2.0 | kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,bsn069/luvit,rjeli/luvit,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,rjeli/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,luvit/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,kaustavha/luvit,... |
1cf4504109a4f36b939a6e659b5c59a63660efab | src_trunk/resources/tow-system/s_backup.lua | src_trunk/resources/tow-system/s_backup.lua | backupBlip = nil
backupPlayer = nil
function removeBackup(thePlayer, commandName)
if (exports.global:isPlayerAdmin(thePlayer)) then
if (backupPlayer~=nil) then
destroyElement(backupBlip)
removeEventHandler("onPlayerQuit", backupPlayer, destroyBlip)
removeEventHandler("savePlayer", backupPlayer, des... | backupBlip = false
backupPlayer = nil
function removeBackup(thePlayer, commandName)
if (exports.global:isPlayerAdmin(thePlayer)) then
if (backupPlayer~=nil) then
for k,v in ipairs(getPlayersInTeam ( getTeamFromName("McJones Towing") )) do
triggerClientEvent(v, "destroyBackupBlip", backupBlip)
... | Fixed tow truck backup | Fixed tow truck backup
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1124 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
dd78a8eca99ee5408055ed8b3d293c6013f077c3 | packages/verseindex.lua | packages/verseindex.lua | SILE.scratch.tableofverses = {}
local orig_href = SILE.Commands["href"]
local loadstring = loadstring or load
local writeTov = function (self)
local contents = "return " .. std.string.pickle(SILE.scratch.tableofverses)
local tovfile, err = io.open(SILE.masterFilename .. '.tov', "w")
if not tovfile then return S... | SILE.scratch.tableofverses = {}
local orig_href = SILE.Commands["href"]
local loadstring = loadstring or load
local writeTov = function (self)
local contents = "return " .. std.string.pickle(SILE.scratch.tableofverses)
local tovfile, err = io.open(SILE.masterFilename .. '.tov', "w")
if not tovfile then return S... | Hack in breaks after section splits, fixes viachristus/kurtarici_kitaplar#51 | Hack in breaks after section splits, fixes viachristus/kurtarici_kitaplar#51
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
29f210ac0033b72e5d82ee0bc0dd295d52ad6bad | lib/resty/chash/server.lua | lib/resty/chash/server.lua | local jchash = require "resty.chash.jchash"
local ok, new_table = pcall(require, "table.new")
if not ok then
new_table = function (narr, nrec) return {} end
end
local function svname(server)
-- @server: {addr, port, id}
-- @return: concat the addr and port with ":" as seperator
return string.format("%... | local jchash = require "resty.chash.jchash"
local ok, new_table = pcall(require, "table.new")
if not ok then
new_table = function (narr, nrec) return {} end
end
local function svname(server)
-- @server: {addr, port, id}
-- @return: concat the addr and port with ":" as seperator
return string.format("%... | fix: assertion would fail if servers privided have duplicated items | fix: assertion would fail if servers privided have duplicated items
| Lua | mit | ruoshan/lua-resty-jump-consistent-hash,ruoshan/lua-resty-jump-consistent-hash |
ab4341e18c607a6250a4fb33b7991148e6e06616 | premake4.lua | premake4.lua | --[[
DAGON
An Adventure Game Engine
This is a fairly basic Premake configuration that generates project files for
your preferred build system. Premake may be downloaded from the following
site:
http://industriousone.com/premake
Usage is as simple as typing 'premake4 [action]'. Please, do note that this
configuratio... | --[[
DAGON
An Adventure Game Engine
This is a fairly basic Premake configuration that generates project files for
your preferred build system. Premake may be downloaded from the following
site:
http://industriousone.com/premake
Usage is as simple as typing 'premake4 [action]'. Please, do note that this
configuratio... | Fixes for building on Windows. | Fixes for building on Windows.
| Lua | mpl-2.0 | Senscape/Dagon,Senscape/Dagon |
0c7fe29215c9c32adfbef1d5c2ec93c9f660ced3 | premake5.lua | premake5.lua | local build_dir = "build/" .. _ACTION
--------------------------------------------------------------------------------
solution "Format"
configurations { "release", "debug" }
architecture "x64"
location (build_dir)
objdir (build_dir .. "/obj")
warnings "Extra"
exceptionhandling "Off"... | local build_dir = "build/" .. _ACTION
--------------------------------------------------------------------------------
solution "Format"
configurations { "release", "debug" }
architecture "x64"
location (build_dir)
objdir (build_dir .. "/obj")
warnings "Extra"
exceptionhandling "Off"... | Fix warnings | Fix warnings
| Lua | mit | abolz/Format |
b7db402b47e4c1bc50c1d356bb6b37af01ebf2ff | lib/lua/checkStalledJobs.lua | lib/lua/checkStalledJobs.lua | --[[
key 1 -> bq:name:stallBlock
key 2 -> bq:name:stalling
key 3 -> bq:name:waiting
key 4 -> bq:name:active
arg 1 -> ms stallInterval
returns {resetJobId1, resetJobId2, ...}
workers are responsible for removing their jobId from the stalling set every stallInterval ms
if a jobId is not removed from the stalling set wi... | --[[
key 1 -> bq:name:stallBlock
key 2 -> bq:name:stalling
key 3 -> bq:name:waiting
key 4 -> bq:name:active
arg 1 -> ms stallInterval
returns {resetJobId1, resetJobId2, ...}
workers are responsible for removing their jobId from the stalling set every stallInterval ms
if a jobId is not removed from the stalling set wi... | Fix comment | Fix comment
| Lua | mit | LewisJEllis/bee-queue |
4b26f70657a4fa23d10a6493f93ea409b597e172 | src/python.lua | src/python.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fix python execution | Fix python execution
| Lua | mit | Zefiros-Software/ZPM |
62c09d33590c76d7618fb6c4edd7779c9ea0dd88 | plugins/mod_selftests.lua | plugins/mod_selftests.lua |
local st = require "util.stanza";
local register_component = require "core.componentmanager".register_component;
local core_route_stanza = core_route_stanza;
local socket = require "socket";
local open_pings = {};
local t_insert = table.insert;
local log = require "util.logger".init("mod_selftests");
local tests_j... |
local st = require "util.stanza";
local register_component = require "core.componentmanager".register_component;
local core_route_stanza = core_route_stanza;
local socket = require "socket";
local config = require "core.configmanager";
local ping_hosts = config.get("*", "mod_selftests", "ping_hosts") or { "jabber.org"... | Fix mod_selftests syntax, and switch it to use config | Fix mod_selftests syntax, and switch it to use config
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
2dda43a379d24b2bef3a4f469db41035d9a531ad | src/lua/smtp/smtp_io.lua | src/lua/smtp/smtp_io.lua |
local smtp_io = {}
smtp_io.__index = smtp_io
-- {{{ smtp_io.new()
function smtp_io.new(socket)
local self = {}
setmetatable(self, smtp_io)
self.socket = socket
self.send_buffer = {}
self.recv_buffer = ""
return self
end
-- }}}
-- {{{ smtp_io:close()
function smtp_io:close()
local enc =... |
local smtp_io = {}
smtp_io.__index = smtp_io
-- {{{ smtp_io.new()
function smtp_io.new(socket)
local self = {}
setmetatable(self, smtp_io)
self.socket = socket
self.send_buffer = {}
self.recv_buffer = ""
return self
end
-- }}}
-- {{{ smtp_io:close()
function smtp_io:close()
local enc =... | fixed bug with SSL'ed | fixed bug with SSL'ed
| Lua | mit | icgood/ratchet |
344ddf1b3fcccbf2f66d983beeb36abb06fa5c2c | main.lua | main.lua | --==================================================================================================
-- Copyright (C) 2014 - 2015 by Robert Machmer =
-- =
-- Permission is ... | --==================================================================================================
-- Copyright (C) 2014 - 2015 by Robert Machmer =
-- =
-- Permission is ... | Fix controls | Fix controls
Transforms the keyconstants which love.keypressed receives as parameters
to numbers (if possible) and the ' ' character to 'space'. This is done
so they correspond to the keybindings read from the config file.
Maybe it would be "cleaner" to fix this in the config reader, but for
now this should work.
| Lua | mit | rm-code/logivi |
c1542ef75f27ad349468bdbaacdd89ee49f8f8eb | LogisticsWagons/wagons/proxywagon.lua | LogisticsWagons/wagons/proxywagon.lua | -- Wagon class definitions and functions
local class = require 'middleclass'
ProxyWagon = class('ProxyWagon',Wagon)
function ProxyWagon:initialize(parent,data)
debugLog("Proxy wagon init")
Wagon.initialize(self, parent, data)
self.wagonType = "ProxyWagon"
if(data == nil) then
if parent ~= nil then
... | -- Wagon class definitions and functions
local class = require 'middleclass'
ProxyWagon = class('ProxyWagon',Wagon)
function ProxyWagon:initialize(parent,data)
debugLog("Proxy wagon init")
Wagon.initialize(self, parent, data)
self.wagonType = "ProxyWagon"
if(data == nil) then
if parent ~= nil then
... | Bug seems to have been in factorio, removing testing code | Bug seems to have been in factorio, removing testing code
| Lua | mit | gnzzz/Factorio-Logistics-Wagons |
6b70224faaa24e97abb23f0e76e9d7a9831200c1 | luastatic.lua | luastatic.lua | -- The author disclaims copyright to this source code.
local infile = arg[1]
local libluapath = arg[2]
if not infile or not libluapath then
print("usage: luastatic infile.lua /path/to/liblua.a")
os.exit()
end
if libluapath then
local f = io.open(libluapath, "r")
if not f then
print(("liblua.a not found: %... | -- The author disclaims copyright to this source code.
local infile = arg[1]
local libluapath = arg[2]
if not infile or not libluapath then
print("usage: luastatic infile.lua /path/to/liblua.a")
os.exit()
end
if libluapath then
local f = io.open(libluapath, "r")
if not f then
print(("liblua.a not found: %... | fix warnings | fix warnings
| Lua | cc0-1.0 | ers35/luastatic,ers35/luastatic |
ea2c17839cb1560df6ef1827291aec4773966547 | _config/awesome/theme/theme.lua | _config/awesome/theme/theme.lua | ---------------------------
-- Default awesome theme --
---------------------------
theme = {}
theme.font = "sans 8"
theme.bg_normal = "#222222"
theme.bg_focus = "#535d6c"
theme.bg_urgent = "#ff0000"
theme.bg_minimize = "#444444"
theme.bg_systray = theme.bg_normal
theme.fg_normal = "#... | ---------------------------
-- Default awesome theme --
---------------------------
theme = {}
theme.font = "sans 8"
theme.bg_normal = "#222222"
theme.bg_focus = "#535d6c"
theme.bg_urgent = "#ff0000"
theme.bg_minimize = "#444444"
theme.bg_systray = theme.bg_normal
theme.fg_normal = "#... | Fix awesome path | Fix awesome path
| Lua | unlicense | NeQuissimus/DevSetup |
c21f5e502301b9d7957d47595bbf47bcf4dd9f8c | src/common/http.lua | src/common/http.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fixed pattern matching | Fixed pattern matching
| Lua | mit | Zefiros-Software/ZPM |
c04d57e6411c4d6f3dba1a7d4306f3b42f071277 | src_trunk/resources/startup/s_startup.lua | src_trunk/resources/startup/s_startup.lua | -- This is a fix for the global resource not starting up
function resStart(res)
if (res==getThisResource()) then
setTimer(loadGlobal, 1000, 1)
end
end
addEventHandler("onResourceStart", getRootElement(), resStart)
function loadGlobal()
restartResource(getResourceFromName("account-system"))
restartRes... | -- This is a fix for the global resource not starting up
function resStart(res)
if (res==getThisResource()) then
setTimer(loadGlobal, 1000, 1)
end
end
addEventHandler("onResourceStart", getRootElement(), resStart)
function loadGlobal()
restartResource(getResourceFromName("account-system"))
restartRes... | Fixed vehicles disappearing | Fixed vehicles disappearing
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@589 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
2a9333eb09180edc7ef0e6aeef18020943e9321c | src/program/packetblaster/lwaftr/lwaftr.lua | src/program/packetblaster/lwaftr/lwaftr.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local engine = require("core.app")
local config = require("core.config")
local timer = require("core.timer")
local pci = require("lib.hardware.pci")
local intel10g = require("apps.intel.intel10g... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local engine = require("core.app")
local config = require("core.config")
local timer = require("core.timer")
local pci = require("lib.hardware.pci")
local intel10g = require("apps.intel.intel10g... | fix vlan support via vmdq | fix vlan support via vmdq
| Lua | apache-2.0 | alexandergall/snabbswitch,kbara/snabb,alexandergall/snabbswitch,eugeneia/snabb,heryii/snabb,kbara/snabb,dpino/snabbswitch,snabbco/snabb,wingo/snabb,alexandergall/snabbswitch,wingo/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,snabbco/snabb,Igalia/snabb,eugeneia/snabb,dpino/snabb,Igalia/snabbswitch,heryii/snabb,her... |
641baa4af267928c3af49c47ddfb02e6c4f22104 | UCDsafeZones/client.lua | UCDsafeZones/client.lua | local LS = createColTube(1181, -1324, 10, 30, 10) -- All Saints Hospital
local LS2 = createColRectangle(1980, -1454, 125, 80) -- Jefferson Hospital
local SF = createColRectangle(-2745, 576, 135, 100) -- SF Hospital
local LV = createColPolygon(1559, 1801, 1559, 1801, 1558, 1910, 1674, 1910, 1681, 1806) -- LV Hospital
l... | local LS = createColTube(1181, -1324, 10, 30, 10) -- All Saints Hospital
local LS2 = createColRectangle(1980, -1454, 125, 80) -- Jefferson Hospital
local SF = createColRectangle(-2745, 576, 135, 100) -- SF Hospital
local LV = createColPolygon(1559, 1801, 1559, 1801, 1558, 1910, 1674, 1910, 1681, 1806) -- LV Hospital
l... | UCDsafeZones | UCDsafeZones
- Fixed a bug where the exit message would output twice.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
b4bffa1694bbfb800ae904bfccd24f56455dfe30 | visitor/recurrentvisitorchain.lua | visitor/recurrentvisitorchain.lua | ------------------------------------------------------------------------
--[[ RecurrentVisitorChain ]]--
-- Composite, Visitor, Chain of Responsibility
-- Used by Recurrent Neural Networks to visit sequences of batches
------------------------------------------------------------------------
local RecurrentVisitorChain,... | ------------------------------------------------------------------------
--[[ RecurrentVisitorChain ]]--
-- Composite, Visitor, Chain of Responsibility
-- Used by Recurrent Neural Networks to visit sequences of batches
------------------------------------------------------------------------
local RecurrentVisitorChain,... | RecurrentVisitorChain fix | RecurrentVisitorChain fix
| Lua | bsd-3-clause | eulerreich/dp,kracwarlock/dp,fiskio/dp,nicholas-leonard/dp,rickyHong/dptorchLib,jnhwkim/dp,sagarwaghmare69/dp |
6d44027431cc689e975bd78d1a956b23839a4996 | util/multitable.lua | util/multitable.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local select = select;
local t_insert = table.insert;
local unpack, pairs, next, type = unpack, pairs, ne... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local select = select;
local t_insert = table.insert;
local unpack, pairs, next, type = unpack, pairs, ne... | util.multitable: Some fixes for iter()... always match against query, and pass value after path results | util.multitable: Some fixes for iter()... always match against query, and pass value after path results
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
d1c65f95bd970cda79895812b248907723a2b1e1 | extensions/dialog/init.lua | extensions/dialog/init.lua | --- === hs.dialog ===
---
--- A collection of useful dialog boxes, alerts and panels for user interaction.
--- === hs.dialog.font ===
---
--- A panel that allows users to select font styles.
--- === hs.dialog.color ===
---
--- A panel that allows users to select a color.
local USERDATA_TAG = "hs.dialog"
local module... | --- === hs.dialog ===
---
--- A collection of useful dialog boxes, alerts and panels for user interaction.
--- === hs.dialog.font ===
---
--- A panel that allows users to select font styles.
--- === hs.dialog.color ===
---
--- A panel that allows users to select a color.
local USERDATA_TAG = "hs.dialog"
local module... | Bug Fix | Bug Fix
| Lua | mit | Habbie/hammerspoon,bradparks/hammerspoon,bradparks/hammerspoon,latenitefilms/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,bradparks/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,CommandPost/CommandPost-App,bradparks/hammerspoon,Habbie/hammerspoon,asmagill/hammerspoon,Hammer... |
448fb5c69799ac54e946fe1f8a2de2539d8cdbd8 | modules/android/tests/test_android_project.lua | modules/android/tests/test_android_project.lua | local p = premake
local suite = test.declare("test_android_project")
local vc2010 = p.vstudio.vc2010
local android = p.modules.android
--
-- Setup
--
local wks, prj
function suite.setup()
p.action.set("vs2015")
wks, prj = test.createWorkspace()
end
local function prepare()
system "android"
local cf... | local p = premake
local suite = test.declare("test_android_project")
local vc2010 = p.vstudio.vc2010
local android = p.modules.android
--
-- Setup
--
local wks, prj
function suite.setup()
p.action.set("vs2015")
system "android"
wks, prj = test.createWorkspace()
end
local function prepare()
local cf... | Fixed inconsistencies in Android VS project test | Fixed inconsistencies in Android VS project test
| Lua | bsd-3-clause | dcourtois/premake-core,noresources/premake-core,dcourtois/premake-core,starkos/premake-core,starkos/premake-core,premake/premake-core,premake/premake-core,dcourtois/premake-core,starkos/premake-core,starkos/premake-core,dcourtois/premake-core,noresources/premake-core,noresources/premake-core,noresources/premake-core,no... |
1fb4780c1d63e667a7693463df2cd7322fe6f3f8 | packages/lime-webui/src/model/essentials.lua | packages/lime-webui/src/model/essentials.lua | --[[
Copyright (C) 2016 Libre-Mesh.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... | --[[
Copyright (C) 2016 Libre-Mesh.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... | lime-webui: fallback to doing 'reboot' on Save & Apply, since 'reload_config' triggers bugs | lime-webui: fallback to doing 'reboot' on Save & Apply, since 'reload_config' triggers bugs
| Lua | agpl-3.0 | p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
1596afd2ee226b1994f5429a7a892e052dfa052e | src/lua-factory/sources/grl-metrolyrics.lua | src/lua-factory/sources/grl-metrolyrics.lua | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | metrolyrics: fix html parser | metrolyrics: fix html parser
Seems that in some lyrics a new <div></div> can be included with some
info. That was breaking the html parser.
Instead on relying on ending </div> for the lyric, let's use something
else that is present and not so common (<p class="writers") as ending
point for the lyrics and remove what ... | Lua | lgpl-2.1 | GNOME/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins |
37f95326496dc8b645d18dbda08adb4bd60d8f94 | lib/core/src/quanta/core/vessel/Vessel.lua | lib/core/src/quanta/core/vessel/Vessel.lua | u8R""__RAW_STRING__(
local U = require "togo.utility"
local FS = require "togo.filesystem"
local T = require "Quanta.Time"
local M = U.module(...)
local function check_initialized()
U.assertl(1, M.initialized, "Quanta.Vessel has not been initialized")
end
function M.active_bucket()
return M.work_local and "local" ... | u8R""__RAW_STRING__(
local U = require "togo.utility"
local FS = require "togo.filesystem"
local T = require "Quanta.Time"
require "Quanta.Time.Gregorian"
local M = U.module(...)
local function check_initialized()
U.assertl(1, M.initialized, "Quanta.Vessel has not been initialized")
end
function M.active_bucket()
... | lib/core/vessel/Vessel.lua: tracker_path(): fixed path formatting; fixed time calls. | lib/core/vessel/Vessel.lua: tracker_path(): fixed path formatting; fixed time calls.
| Lua | mit | komiga/quanta,komiga/quanta,komiga/quanta |
a8a72c1ec8bc0625dad70f22ec85ff7e9e477074 | libs/web/luasrc/config.lua | libs/web/luasrc/config.lua | --[[
LuCI - Configuration
Description:
Some LuCI configuration values read from uci file "luci"
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a co... | --[[
LuCI - Configuration
Description:
Some LuCI configuration values read from uci file "luci"
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a co... | Fixed luci.config | Fixed luci.config
| Lua | apache-2.0 | Noltari/luci,lcf258/openwrtcn,bright-things/ionic-luci,david-xiao/luci,schidler/ionic-luci,mumuqz/luci,keyidadi/luci,LuttyYang/luci,sujeet14108/luci,shangjiyu/luci-with-extra,cshore/luci,lbthomsen/openwrt-luci,openwrt/luci,RuiChen1113/luci,aa65535/luci,sujeet14108/luci,rogerpueyo/luci,bittorf/luci,forward619/luci,kuoru... |
f13e394c4d607e65ac3bb99076a8726e1ed79941 | mods/builtin_item/init.lua | mods/builtin_item/init.lua | local time = tonumber(minetest.setting_get("remove_items"))
if not time then
time = 600
end
unwalkable_nodes = {}
minetest.after(0, function()
for itemname, node in pairs(minetest.registered_nodes) do
if node.walkable == false then
table.insert(unwalkable_nodes, 1, itemname)
end
end
end)
minetest.register_... | local time = tonumber(minetest.setting_get("remove_items"))
if not time then
time = 600
end
unwalkable_nodes = {}
minetest.after(0, function()
for itemname, node in pairs(minetest.registered_nodes) do
if node.walkable == false then
table.insert(unwalkable_nodes, 1, itemname)
end
end
end)
local get_flowing_... | try to fix issue https://github.com/MinetestForFun/server-minetestforfun/issues/313 improve builtin_item | try to fix issue https://github.com/MinetestForFun/server-minetestforfun/issues/313
improve builtin_item
| Lua | unlicense | Coethium/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,Coethium/server-minetestforfun,MinetestForFun/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,MinetestForFun/... |
bc19818f35349c00715185391f7959ed4accb120 | test_scripts/Polices/build_options/ATF_PTU_Trigger_IGN_cycles.lua | test_scripts/Polices/build_options/ATF_PTU_Trigger_IGN_cycles.lua | -- Requirement summary:
-- [PTU] Trigger: ignition cycles
--
-- Description:
-- When the amount of ignition cycles notified by HMI via BasicCommunication.OnIgnitionCycleOver gets equal to the value of
-- "exchange_after_x_ignition_cycles" field ("module_config" section) of policies database, SDL must trigger a PTU sequ... | -- Requirement summary:
-- [PTU] Trigger: ignition cycles
--
-- Description:
-- When the amount of ignition cycles notified by HMI via BasicCommunication.OnIgnitionCycleOver gets equal to the value of
-- "exchange_after_x_ignition_cycles" field ("module_config" section) of policies database, SDL must trigger a PTU sequ... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.