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 |
|---|---|---|---|---|---|---|---|---|---|
909ae73147b9caf3027e217d3f98184ea6cc9de9 | otouto/plugins/service_leave_group.lua | otouto/plugins/service_leave_group.lua | local leave_group = {}
leave_group.triggers = {
'^//tgservice group_chat_created$',
'^//tgservice supergroup_chat_created$'
}
local report_to_admin = true -- set to false to not be notified, when Bot leaves groups without you
function leave_group:check_for_admin(msg, config)
local result = bindings.request('ge... | local leave_group = {}
leave_group.triggers = {
'^//tgservice group_chat_created$',
'^//tgservice supergroup_chat_created$',
'^//tgservice new_chat_member$',
'^//tgservice (left_chat_member)$'
}
local report_to_admin = true -- set to false to not be notified, when Bot leaves groups without you
function leave... | Fixe service_leave_group | Fixe service_leave_group
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
1d39403cd0ea5debb605e9f48c7092e64a28b483 | Quadtastic/Dialog.lua | Quadtastic/Dialog.lua | local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local State = require(current_folder .. ".State")
local InputField = require(current_folder .. ".Inputfield")
local Layout = require(current_folder .. ".Layout")
local Button = require(current_folder .. ".Button")
local Label = require(current_folder .. ... | local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local State = require(current_folder .. ".State")
local InputField = require(current_folder .. ".Inputfield")
local Layout = require(current_folder .. ".Layout")
local Button = require(current_folder .. ".Button")
local Label = require(current_folder .. ... | Fix query dialog not accepting input on Enter | Fix query dialog not accepting input on Enter
| Lua | mit | 25A0/Quadtastic,25A0/Quadtastic |
930f37b188420a1eb1ce3e3fc2215eaa914c464f | views/pull.lua | views/pull.lua | -- TODO: race conditions are possible
local WANTED_CHATS = {"CHANNEL", "CHANNEL_ACTIVE", "GROUP", "GUILD",
"PRIVATE", "PRINT", "SECTOR"}
local json = dofile("lib/json.lua")
local change = {}
-- Target change
local function target(event, data)
change["target"] = GetTargetInfo()
end
RegisterE... | -- TODO: race conditions are possible
local WANTED_CHATS = {"CHANNEL", "CHANNEL_ACTIVE", "GROUP", "GUILD",
"PRIVATE", "PRINT", "SECTOR"}
local json = dofile("lib/json.lua")
local change = {}
-- Target change
local function target(event, data)
change["target"] = GetTargetInfo()
end
RegisterE... | pull: fixed return color | pull: fixed return color
| Lua | mit | fhirschmann/vocontrol |
bde4cfa36b5f9e0c1e3a9891c96e4ee21ee7eace | mod_pastebin/mod_pastebin.lua | mod_pastebin/mod_pastebin.lua |
local st = require "util.stanza";
local httpserver = require "net.httpserver";
local uuid_new = require "util.uuid".generate;
local os_time = os.time;
local t_insert, t_remove = table.insert, table.remove;
local add_task = require "util.timer".add_task;
local utf8_pattern = "[\194-\244][\128-\191]*$";
local function ... |
local st = require "util.stanza";
local httpserver = require "net.httpserver";
local uuid_new = require "util.uuid".generate;
local os_time = os.time;
local t_insert, t_remove = table.insert, table.remove;
local add_task = require "util.timer".add_task;
local utf8_pattern = "[\194-\244][\128-\191]*$";
local function ... | mod_pastebin: Fix issue with metatable not being set when a reload changes expires_after to 0 | mod_pastebin: Fix issue with metatable not being set when a reload changes expires_after to 0
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
efb763c6c578c06538a86b9a6383b8679db56d31 | third_party/vulkan/loader/premake5.lua | third_party/vulkan/loader/premake5.lua | group("third_party")
project("vulkan-loader")
uuid("07d77359-1618-43e6-8a4a-0ee9ddc5fa6a")
kind("StaticLib")
language("C++")
defines({
"_LIB",
"API_NAME=\"vulkan\"",
})
removedefines({
"_UNICODE",
"UNICODE",
})
includedirs({
".",
})
recursive_platform_files()
filter("platform... | group("third_party")
project("vulkan-loader")
uuid("07d77359-1618-43e6-8a4a-0ee9ddc5fa6a")
kind("StaticLib")
language("C")
defines({
"_LIB",
"API_NAME=\"vulkan\"",
})
removedefines({
"_UNICODE",
"UNICODE",
})
includedirs({
".",
})
recursive_platform_files()
filter("platforms:... | third_party: vulkan: loader: fix Linux build | third_party: vulkan: loader: fix Linux build
| Lua | bsd-3-clause | sephiroth99/xenia,maxton/xenia,maxton/xenia,maxton/xenia,sephiroth99/xenia,sephiroth99/xenia |
3600b6826c2884f2f482a1aa21bec2d30405cbc8 | nyagos.d/open.lua | nyagos.d/open.lua | nyagos.alias("open",function(args)
local count=0
for i=1,#args do
local list=nyagos.glob(args[i])
if list and #list >= 1 then
for i=1,#list do
assert(nyagos.shellexecute("open",list[i]))
end
else
if nyagos.access(args[i],0) the... | nyagos.alias("open",function(args)
local count=0
for i=1,#args do
local list=nyagos.glob(args[i])
if list and #list >= 1 then
for j=1,#list do
if nyagos.access(list[j],0) then
assert(nyagos.shellexecute("open",list[j]))
else... | Fixed(again) open.lua did not print error when wildcard did not match anyfiles." | Fixed(again) open.lua did not print error when wildcard did not match anyfiles."
| Lua | bsd-3-clause | hattya/nyagos,hattya/nyagos,tsuyoshicho/nyagos,tyochiai/nyagos,zetamatta/nyagos,kissthink/nyagos,hattya/nyagos,kissthink/nyagos,kissthink/nyagos,nocd5/nyagos |
0f8095f7a270d57ea2f6f0f3a811e6ff6afe1dfa | water.lua | water.lua | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2015 Paul Norman, MIT license
]]--
require "common"
function accept_water_area (tags)
return tags["natural"] == "water" or tags["waterway"] == "riverbank" or tags["landuse"] == "reservoir"
end
function transform_water_... | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2015 Paul Norman, MIT license
]]--
require "common"
function accept_water_area (tags)
return tags["natural"] == "water" or tags["waterway"] == "riverbank" or tags["landuse"] == "reservoir"
end
function transform_water_... | Handle waterway layer | Handle waterway layer
Fixes #3
| Lua | mit | pnorman/ClearTables,ClearTables/ClearTables |
3410887d02d7e947ddfc0debc05caae19504100a | spec/unit/pic_spec.lua | spec/unit/pic_spec.lua | local DrawContext = require("ffi/drawcontext")
local BB = require("ffi/blitbuffer")
local Pic = require("ffi/pic")
local SAMPLE_JPG = "spec/base/unit/data/sample.jpg"
describe("Pic module", function()
describe("basic API", function()
it("should return error on unkonw format", function()
assert... | local DrawContext = require("ffi/drawcontext")
local BB = require("ffi/blitbuffer")
local Pic = require("ffi/pic")
Pic.color = true
local SAMPLE_JPG = "spec/base/unit/data/sample.jpg"
describe("Pic module", function()
describe("basic API", function()
it("should return error on unkonw format", function()
... | fix pic.lua test spec | fix pic.lua test spec
Since working on pic.lua, tests were broken.
| Lua | agpl-3.0 | Hzj-jie/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,Hzj-jie/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,frankyifei/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,frankyifei/koreader-base,apletnev/koreader-base,apletnev/k... |
d0c3740395b38aa85f7a3483362fcae016e6a4b4 | tests/test-leaks.lua | tests/test-leaks.lua | return require('lib/tap')(function (test)
local function bench(uv, p, count, fn)
collectgarbage()
local before
local notify = count / 8
for i = 1, count do
fn()
if i % notify == 0 then
uv.run()
collectgarbage()
local now = uv.resident_set_memory()
if not be... | return require('lib/tap')(function (test)
local function bench(uv, p, count, fn)
collectgarbage()
local before
local notify = count / 8
for i = 1, count do
fn()
if i % notify == 0 then
uv.run()
collectgarbage()
local now = uv.resident_set_memory()
if not be... | Fix write test | Fix write test
| Lua | apache-2.0 | brimworks/luv,NanXiao/luv,daurnimator/luv,RomeroMalaquias/luv,kidaa/luv,NanXiao/luv,mkschreder/luv,daurnimator/luv,zhaozg/luv,xpol/luv,brimworks/luv,mkschreder/luv,RomeroMalaquias/luv,luvit/luv,luvit/luv,RomeroMalaquias/luv,joerg-krause/luv,joerg-krause/luv,xpol/luv,leecrest/luv,zhaozg/luv,kidaa/luv,DBarney/luv,DBarney... |
8be1c73eb3d54be42b50792be0b5d05221089b02 | Modules/Utility/os.lua | Modules/Utility/os.lua | -- to use: local os = require(this_script)
-- Adds an os.date() function back to the Roblox os table!
-- @author Narrev
-- Abbreviated tables have been left in for now. Could be replaced with dayNames[wday + 1]:sub(1,3)
-- local timeZone = math.ceil( os.difftime(os.time(), tick()) / 3600)
-- timeZoneDiff = os.date("*t... | -- to use: local os = require(this_script)
-- Adds an os.date() function back to the Roblox os table!
-- @author Narrev
-- Abbreviated tables have been left in for now. Could be replaced with dayNames[wday + 1]:sub(1,3)
-- local timeZone = math.ceil( os.difftime(os.time(), tick()) / 3600)
-- timeZoneDiff = os.date("*t... | Fixed for unixTime = 0 | Fixed for unixTime = 0 | Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
cc531e04a90dd8ff1312caa65965eb72c22084d5 | project.lua | project.lua | local utils = require("textadept-nim.utils")
local check_type = utils.check_type
local file_exists = utils.file_exists
local _M = {}
local sep = WIN32 and "\\" or "/"
local function parse_nimble(filename)
check_type("string", filename)
local project = {}
project.backend = "c" -- nimble builds project in C by d... | local utils = require("textadept-nim.utils")
local check_type = utils.check_type
local file_exists = utils.file_exists
local _M = {}
local sep = WIN32 and "\\" or "/"
local function parse_nimble(filename)
check_type("string", filename)
local project = {}
project.backend = "c" -- nimble builds project in C by d... | Fixed nimsuggest crash then bin file not exists | Fixed nimsuggest crash then bin file not exists
| Lua | mit | xomachine/textadept-nim |
9dab7e4739cb4e1d9b51117fbf1932a4b83635cc | xmake/core/project/config.lua | xmake/core/project/config.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix configdir | fix configdir
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
0564a11b151a7f3561b5cb8fe09805b8f0d0d7a6 | extensions/hints/init.lua | extensions/hints/init.lua | --- === hs.hints ===
---
--- Switch focus with a transient per-application keyboard shortcut
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This... | --- === hs.hints ===
---
--- Switch focus with a transient per-application keyboard shortcut
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This... | Fixing broken code. | Fixing broken code.
| Lua | mit | wvierber/hammerspoon,junkblocker/hammerspoon,heptal/hammerspoon,peterhajas/hammerspoon,zzamboni/hammerspoon,TimVonsee/hammerspoon,ocurr/hammerspoon,ocurr/hammerspoon,kkamdooong/hammerspoon,trishume/hammerspoon,heptal/hammerspoon,emoses/hammerspoon,trishume/hammerspoon,hypebeast/hammerspoon,latenitefilms/hammerspoon,wsm... |
0a0ffafd4370440541d935ff778674193e4a453f | mod_mam/rsm.lib.lua | mod_mam/rsm.lib.lua | local stanza = require"util.stanza".stanza;
local tostring, tonumber = tostring, tonumber;
local type = type;
local pairs = pairs;
local xmlns_rsm = 'http://jabber.org/protocol/rsm';
local element_parsers;
do
local function xs_int(st)
return tonumber((st:get_text()));
end
local function xs_string(st)
return s... | local stanza = require"util.stanza".stanza;
local tostring, tonumber = tostring, tonumber;
local type = type;
local pairs = pairs;
local xmlns_rsm = 'http://jabber.org/protocol/rsm';
local element_parsers;
do
local function xs_int(st)
return tonumber((st:get_text()));
end
local function xs_string(st)
return s... | mod_mam/rsm.lib: Remove log statement (fixes usage in verse) | mod_mam/rsm.lib: Remove log statement (fixes usage in verse)
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
6af6d6b3887ba4d93318a145500f317510e7ed1b | ffi/mupdfimg.lua | ffi/mupdfimg.lua | --[[
rendering image with mupdf library
--]]
local ffi = require("ffi")
local Blitbuffer = require("ffi/blitbuffer")
local mupdf = ffi.load("libs/libmupdf.so")
require("ffi/mupdf_h")
local Image = {}
function Image:initContext(cache_size)
-- Remember to change library version when upgrading MuPDF!
self.context = ... | --[[
rendering image with mupdf library
--]]
local ffi = require("ffi")
local Blitbuffer = require("ffi/blitbuffer")
local mupdf = ffi.load("libs/libmupdf.so")
require("ffi/mupdf_h")
local Image = {}
function Image:initContext(cache_size)
-- Remember to change library version when upgrading MuPDF!
self.cont... | fix memory leak in freeContext | fix memory leak in freeContext
| Lua | agpl-3.0 | Frenzie/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,houqp/koreader-base,koreader/koreader-base,Hzj-jie/koreader-base,frankyifei/koreader-base,apletnev/koreader-base,apletnev/koreader-base,frankyifei/koreader-base,apletnev/koreader-base,koreader/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,Frenzi... |
5b0bb640c1e512d5d40c1082b46150ccb1961ce0 | tools/bundler.lua | tools/bundler.lua | --[[
Copyright 2012 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 2012 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... | Fix mixed path separators on Windows platform in tools/bundler.lua | Fix mixed path separators on Windows platform in tools/bundler.lua
path.join() is the good replacement of hardcoded paths and it provides correct strings for both windows and
posix types of paths.
| Lua | apache-2.0 | DBarney/luvit,bsn069/luvit,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,boundary/luvit,sousoux/luvit,boundary/luvit,sousoux/luvit,DBarney/luvit,boundary/luvit,rjeli/luvit,kaustavha/luvit,luvit/luvit,GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,DBarney/luvit,rjeli/luvit,kaustavha/luvit,rjel... |
327c5319e1c3e53c78648f6d95c0ee91b075ba68 | motionLights.lua | motionLights.lua | --[[
%% properties
59 value
63 value
66 value
69 value
72 value
75 value
78 value
%% globals
--]]
-- Script to turn ON/OFF lights when motion is detected. One script handles them all :-)
-- Remi Bergsma github@remi.nl
-- Please note:
-- This script requires global variable 'Sun' to be defined in the Variables Panel.... | --[[
%% properties
59 value
63 value
66 value
69 value
72 value
75 value
78 value
%% globals
--]]
-- Script to turn ON/OFF lights when motion is detected. One script handles them all :-)
-- Remi Bergsma github@remi.nl
-- Please note:
-- This script requires global variable 'Sun' to be defined in the Variables Panel.... | fixed unneeded sleeping during day time | fixed unneeded sleeping during day time | Lua | apache-2.0 | remibergsma/fibaro-hc2-scenes |
99ddaad672fd74245ba79b292e428230460beddc | BIOS/setup.lua | BIOS/setup.lua | --BIOS Setup Screen
local Handled, Devkits = ... --It has been passed by the BIOS POST Screen :)
local BIOS = Handled.BIOS
local GPU = Handled.GPU
local CPU = Handled.CPU
local fs = Handled.HDD
GPU.clear(0)
GPU.color(7)
GPU.printCursor(0,0,0)
GPU.print("Setup")
GPU.print("Press F1 to reflash DiskOS")
GPU.print("Pr... | --BIOS Setup Screen
local Handled, Devkits = ... --It has been passed by the BIOS POST Screen :)
local BIOS = Handled.BIOS
local GPU = Handled.GPU
local CPU = Handled.CPU
local fs = Handled.HDD
local KB = Handled.Keyboard
local coreg = require("Engine.coreg")
local stopWhile = false
GPU.clear(0)
GPU.color(7)
KB.text... | Add more options to BIOS Setup | Add more options to BIOS Setup
Adding options such as booting from D: and wiping HDDs.
Also fixes keyboard state on mobile.
Former-commit-id: 29093de6f7930fcbdb214242eaeec1fc3d8cd536 | Lua | mit | RamiLego4Game/LIKO-12 |
81b93e510445d182e1c936a38e0e9b9ebbc7f667 | spec/spec_utils.lua | spec/spec_utils.lua | local say = require "say"
local types = require "cassandra.types"
local assert = require "luassert.assert"
local string_utils = require "cassandra.utils.string"
local unpack
if _VERSION == "Lua 5.3" then
unpack = table.unpack
else
unpack = _G.unpack
end
local _M = {}
function _M.create_keyspace(session, keyspace... | local say = require "say"
local types = require "cassandra.types"
local assert = require "luassert.assert"
local string_utils = require "cassandra.utils.string"
local unpack
if _VERSION == "Lua 5.3" then
unpack = table.unpack
else
unpack = _G.unpack
end
local _M = {}
function _M.create_keyspace(session, keyspace... | chore(spec) output of invalid fixture assertions | chore(spec) output of invalid fixture assertions
| Lua | mit | thibaultCha/lua-cassandra,thibaultCha/lua-cassandra |
a05a7137d938437cdbcf4f30821eb200acc08ffd | premake4.lua | premake4.lua | -- Gorgon Engine Solution
PROJ_NAME = "Gorgon"
-- Premake OS Constants
WINDOWS = "windows"
LINUX = "linux"
OSX = "macosx"
DEBUG_DEFINES = { "DEBUG" }
DEBUG_FLAGS = { "Symbols" }
RELEASE_DEFINES = { "NDEBUG" }
RELEASE_FLAGS = { "Optimize" }
DEBUG_LIB_DIRS = {}
RELEASE_LIB_DIRS = {}
WINDOWS_X86_DEBUG = "lib/debug/nt/... | -- Gorgon Engine Solution
PROJ_NAME = "Gorgon"
-- Premake OS Constants
WINDOWS = "windows"
LINUX = "linux"
OSX = "macosx"
DEBUG_DEFINES = { "DEBUG" }
DEBUG_FLAGS = { "Symbols" }
RELEASE_DEFINES = { "NDEBUG" }
RELEASE_FLAGS = { "Optimize" }
DEBUG_LIB_DIRS = {}
RELEASE_LIB_DIRS = {}
WINDOWS_X86_DEBUG = "lib/debug/nt/... | Library discovery fix | Library discovery fix
The insert method has been fixed to its proper usage when including directories
for library lookups.
| Lua | mit | dwsarber/flock,dwsarber/flock |
b22cce0cc38f359ee65f323eb769181e235b4ae6 | src/roslua/utils.lua | src/roslua/utils.lua |
----------------------------------------------------------------------------
-- utils.lua - Utilities used in the code
--
-- Created: Thu Jul 29 10:59:22 2010 (at Intel Research, Pittsburgh)
-- Copyright 2010 Tim Niemueller [www.niemueller.de]
--
-------------------------------------------------------------------... |
----------------------------------------------------------------------------
-- utils.lua - Utilities used in the code
--
-- Created: Thu Jul 29 10:59:22 2010 (at Intel Research, Pittsburgh)
-- Copyright 2010 Tim Niemueller [www.niemueller.de]
--
-------------------------------------------------------------------... | Extend Lua ROS package loader | Extend Lua ROS package loader
The ROS Lua package loader now also looks for packages with a _lua suffix
in their name. It is convenient to name ROS packages this way, but usually
not so much to name the Lua package like this.
| Lua | bsd-3-clause | timn/roslua |
fec50ceefea9d5ca16ab60872fa9eb972a445e9b | core/debug-output.lua | core/debug-output.lua | if (not SILE.outputters) then SILE.outputters = {} end
local f
local cx
local cy
SILE.outputters.debug = {
init = function()
print("Set paper size ", SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])
print("Begin page")
end,
newPage = function()
print("New page")
end,
finish = funct... | if (not SILE.outputters) then SILE.outputters = {} end
local f
local cx
local cy
SILE.outputters.debug = {
init = function()
print("Set paper size ", SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])
print("Begin page")
end,
newPage = function()
print("New page")
end,
finish = funct... | Fix drawLine debug output for lua 5.3 | Fix drawLine debug output for lua 5.3 | Lua | mit | neofob/sile,neofob/sile,neofob/sile,simoncozens/sile,simoncozens/sile,alerque/sile,alerque/sile,simoncozens/sile,alerque/sile,alerque/sile,neofob/sile,simoncozens/sile |
4a4cce6af80cfa4b19f8319ea6185a32952e924b | core/ext/key_commands_std.lua | core/ext/key_commands_std.lua | -- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- Defines the key commands used by the Textadept key command manager.
-- For non-ascii keys, see textadept.keys for string aliases.
-- This set of key commands is pretty standard among other text editors.
module('textadept.key_commands_std',... | -- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- Defines the key commands used by the Textadept key command manager.
-- For non-ascii keys, see textadept.keys for string aliases.
-- This set of key commands is pretty standard among other text editors.
module('textadept.key_commands_std',... | Fixed some conflicting key commands; core/ext/key_commands_std.lua | Fixed some conflicting key commands; core/ext/key_commands_std.lua
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
d86fd4212d7427d1a5be6dfb864991c0fd1a4738 | src/patch/ui/lib/mppatch_modutils.lua | src/patch/ui/lib/mppatch_modutils.lua | -- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com>
--
-- 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, co... | -- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com>
--
-- 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, co... | Fix mod dependencies for non-installed DLC. | Fix mod dependencies for non-installed DLC.
| Lua | mit | Lymia/CivV_Mod2DLC,Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch |
6a5e8d4d74bb767a307c4548eea831c814fc640e | mods/sponge/init.lua | mods/sponge/init.lua | minetest.register_node("sponge:sponge", {
description = "Sponge Dry",
drawtype = "normal",
tiles = {"sponge_sponge.png"},
paramtype = 'light',
walkable = true,
pointable = true,
diggable = true,
buildable_to = false,
stack_max = 99,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
after_pl... | minetest.register_node("sponge:sponge", {
description = "Sponge Dry",
drawtype = "normal",
tiles = {"sponge_sponge.png"},
paramtype = 'light',
walkable = true,
pointable = true,
diggable = true,
buildable_to = false,
stack_max = 99,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
after_pl... | [sponge] Improve spong - Make sponges able to suck river water - Fix #281 | [sponge] Improve spong
- Make sponges able to suck river water
- Fix #281
| Lua | unlicense | LeMagnesium/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun... |
a57e6e7afac22cb514f05576e571469837537525 | examples/pcap/replay-pcap.lua | examples/pcap/replay-pcap.lua | --- Replay a pcap file.
local mg = require "moongen"
local device = require "device"
local memory = require "memory"
local stats = require "stats"
local log = require "log"
local pcap = require "pcap"
local limiter = require "software-ratecontrol"
function configure(parser)
parser:argument("dev", "De... | --- Replay a pcap file.
local mg = require "moongen"
local device = require "device"
local memory = require "memory"
local stats = require "stats"
local log = require "log"
local pcap = require "pcap"
local limiter = require "software-ratecontrol"
function configure(parser)
parser:argument("dev", "De... | replay-pcap: fix out-of-bounds read | replay-pcap: fix out-of-bounds read
| Lua | mit | emmericp/MoonGen,emmericp/MoonGen,emmericp/MoonGen |
d6cc8032bb4c49580f8f41dee4a4993b39336ed5 | src/lounge/lua/mpv.lua | src/lounge/lua/mpv.lua | #!/lounge/bin/janosh -f
local util = require("util")
local helper = require("helpers")
Janosh:set("/player/active", "false")
Janosh:set("/player/paused", "false")
--Janosh:setenv("VDPAU_OSD","1")
Janosh:setenv("DISPLAY",":0")
Janosh:system("killall -9 mpv")
local MPID, MSTDIN, MSTDOUT, MSTDERR = Janosh:popen("mpv", ... | #!/lounge/bin/janosh -f
local util = require("util")
local helper = require("helpers")
Janosh:set("/player/active", "false")
Janosh:set("/player/paused", "false")
--Janosh:setenv("VDPAU_OSD","1")
Janosh:setenv("DISPLAY",":0")
Janosh:system("killall -9 mpv")
local MPID, MSTDIN, MSTDOUT, MSTDERR = Janosh:popen("mpv", ... | fix bug in playlist handling | fix bug in playlist handling
| Lua | agpl-3.0 | screeninvader/ScreenInvader,screeninvader/ScreenInvader |
96c3b953e5071c274272abe7f107a8528686e7f1 | notion/cfg_tiling.lua | notion/cfg_tiling.lua | --
-- Notion tiling module configuration file
--
-- Bindings for the tilings.
defbindings("WTiling", {
bdoc("Go to frame right of current frame."),
kpress(META.."Right", "ioncore.goto_next(_sub, 'right')"),
bdoc("Go to frame left of current frame."),
kpress(META.."Left", "ioncore.goto_next(_sub, 'left... | --
-- Notion tiling module configuration file
--
-- Bindings for the tilings.
defbindings("WTiling", {
bdoc("Go to frame right of current frame."),
kpress(META.."Right", "ioncore.goto_next(_sub, 'right')"),
bdoc("Go to frame left of current frame."),
kpress(META.."Left", "ioncore.goto_next(_sub, 'left... | adding root splits and fixing merge. | adding root splits and fixing merge.
| Lua | mit | moaxcp/notion-config |
848b91f5ab66f90e4c1d5ed2ca8f6e20acb9fcdf | languages/unicode.lua | languages/unicode.lua | local icu = require("justenoughicu")
require("char-def")
local chardata = characters.data
SILE.nodeMakers.base = std.object {
makeToken = function (self)
if #self.contents>0 then
coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options))
SU.debug("tokenizer", "Token: "..self.tok... | local icu = require("justenoughicu")
require("char-def")
local chardata = characters.data
SILE.nodeMakers.base = std.object {
makeToken = function (self)
if #self.contents>0 then
coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options))
SU.debug("tokenizer", "Token: "..self.tok... | fix(languages): Remove superfluous line | fix(languages): Remove superfluous line | Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
62f92c1162cde6fc005d85a6f3079ed5556438c8 | terminal.lua | terminal.lua | local Terminal = {}
--local api.EditorSheet = api.SpriteSheet(api.Image("/editorsheet.png"),24,12)
Terminal.blinktime = 0.5
Terminal.blinktimer = 0
Terminal.blinkstate = false
Terminal.textbuffer = {}
Terminal.textcolors = {}
Terminal.linesLimit = 14
Terminal.lengthLimit = 43
Terminal.currentLine = 1
Terminal.rootD... | local lume = require("libraries.lume")
local Terminal = {}
--local api.EditorSheet = api.SpriteSheet(api.Image("/editorsheet.png"),24,12)
Terminal.blinktime = 0.5
Terminal.blinktimer = 0
Terminal.blinkstate = false
Terminal.textbuffer = {}
Terminal.textcolors = {}
Terminal.linesLimit = 14
Terminal.lengthLimit = 43
T... | Fix terminal's tout to support multiple-line strings. | Fix terminal's tout to support multiple-line strings.
| Lua | mit | RamiLego4Game/LIKO-12 |
31a44a71b9e13c5a49049df92f9e9be333563236 | script/c80600029.lua | script/c80600029.lua | --ヴァンパイア・ソーサラー
function c80600029.initial_effect(c)
--to grave
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c80600029.condit... | --ヴァンパイア・ソーサラー
function c80600029.initial_effect(c)
--to grave
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c80600029.condit... | fix fixed effect not activating | fix
fixed effect not activating
| Lua | mit | SuperAndroid17/DevProLauncher,Tic-Tac-Toc/DevProLauncher,sidschingis/DevProLauncher |
449c65f7377613eea85907edf2ccd46e99abac4e | LuaAndCparticipants.lua | LuaAndCparticipants.lua | -- http://kodomo.fbb.msu.ru/wiki/Main/LuaAndC/Participants
local participants = {
{'Александра Галицына', 'agalicina', 'agalitsyna', 'https://github.com/agalitsyna/LOF.git'},
{'Анна Колупаева', 'kolupaeva', 'AnyaKol',
'https://github.com/AnyaKol/Lua_C'},
{'Александра Бойко', 'boyko.s', 'boykos', }... | -- http://kodomo.fbb.msu.ru/wiki/Main/LuaAndC/Participants
local participants = {
{'Александра Галицына', 'agalicina', 'agalitsyna', 'https://github.com/agalitsyna/LOF.git'},
{'Анна Колупаева', 'kolupaeva', 'AnyaKol',
'https://github.com/AnyaKol/Lua_C'},
{'Александра Бойко', 'boyko.s', 'boykos', }... | Fix style mistake | Fix style mistake
| Lua | mit | hbucius/LuaAndC,LuaAndC/LuaAndC |
d1eaa36b064994d0db43181fbd7423696c7df6e4 | site/api/lib/aaa.lua | site/api/lib/aaa.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 Apache License, Version 2.0
(the "License"); you may not use ... | --[[
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 Apache License, Version 2.0
(the "License"); you may not use ... | Bug: lib/aaa.lua various bugs | Bug: lib/aaa.lua various bugs
This relates to #140
Some bugs still remain, but the code is at least usable | Lua | apache-2.0 | quenda/ponymail,jimjag/ponymail,Humbedooh/ponymail,jimjag/ponymail,jimjag/ponymail,quenda/ponymail,quenda/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,jimjag/ponymail |
2f785c75ecad700eb45b0ad7a7359b3a6c11df9e | modules/dokpro.lua | modules/dokpro.lua | local htmlparser = require'htmlparser'
local trim = function(s)
if not s then return nil end
return s:match('^()%s*$') and '' or s:match('^%s*(.*%S)')
end
local parseData = function(data)
if(data:match('ordboksdatabasene')) then
return nil, 'Service down. :('
end
-- This page is a typical example of someone u... | local htmlparser = require'htmlparser'
local trim = function(s)
if not s then return nil end
return s:match('^()%s*$') and '' or s:match('^%s*(.*%S)')
end
local parseData = function(data)
if(data:match('ordboksdatabasene')) then
return nil, 'Service down. :('
end
-- This page is a typical example of someone u... | dokpro: more html parsing fixes | dokpro: more html parsing fixes
Former-commit-id: e6ff0b940d36ae5585c915e429809e66fd7cc611 [formerly 7a600b727205da4eb8f49cbdd31eac55e881bef6]
Former-commit-id: b48910d19e83d3708a43cdfac7279b95ae83c7d2 | Lua | mit | torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2 |
b17c77eeadba3c98f56836d32007c712342cf421 | plugins/wikipedia.lua | plugins/wikipedia.lua | local command = 'wikipedia <query>'
local doc = [[```
/wikipedia <query>
Returns an article from Wikipedia.
Aliases: /w, /wiki
```]]
local triggers = {
'^/wikipedia[@'..bot.username..']*',
'^/wiki[@'..bot.username..']*',
'^/w[@'..bot.username..']*$',
'^/w[@'..bot.username..']* '
}
local action = function(msg)
l... | local command = 'wikipedia <query>'
local doc = [[```
/wikipedia <query>
Returns an article from Wikipedia.
Aliases: /w, /wiki
```]]
local triggers = {
'^/wikipedia[@'..bot.username..']*',
'^/wiki[@'..bot.username..']*',
'^/w[@'..bot.username..']*$',
'^/w[@'..bot.username..']* '
}
local action = function(msg)
l... | fixed bug in wikipedia.lua | fixed bug in wikipedia.lua
| Lua | mit | barreeeiroo/BarrePolice,topkecleon/otouto,bb010g/otouto,TiagoDanin/SiD,Brawl345/Brawlbot-v2 |
913588f8a001e102501ecb3293ef65403eef10a5 | item/bottles.lua | item/bottles.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 labels on big bottles | Fix labels on big bottles
(Mantis 0009518)
| Lua | agpl-3.0 | KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content |
6d238397f45a544aef63d9ecf4f534859ca1268a | kong/dao/migrations/cassandra.lua | kong/dao/migrations/cassandra.lua | return {
{
name = "2015-01-12-175310_skeleton",
up = function(db, kong_config)
local keyspace_name = kong_config.cassandra_keyspace
local strategy, strategy_properties = kong_config.cassandra_repl_strategy, ""
-- Format strategy options
if strategy == "SimpleStrategy" then
str... | return {
{
name = "2015-01-12-175310_skeleton",
up = function(db, kong_config)
local keyspace_name = kong_config.cassandra_keyspace
local strategy, strategy_properties = kong_config.cassandra_repl_strategy, ""
-- Format strategy options
if strategy == "SimpleStrategy" then
str... | fix(cassandra) migrations with NetworkTopology and explicit datacenters | fix(cassandra) migrations with NetworkTopology and explicit datacenters
| Lua | apache-2.0 | Kong/kong,Kong/kong,jerizm/kong,icyxp/kong,Mashape/kong,Vermeille/kong,akh00/kong,Kong/kong,li-wl/kong,salazar/kong,ccyphers/kong,shiprabehera/kong,beauli/kong,jebenexer/kong |
c16f18a866d49d7ac602219978ac9cc9a09d3dc7 | love2d/world.lua | love2d/world.lua | require "tileset"
require "map"
require "pawn"
require "mapGenerator"
function love.game.newWorld()
local o = {}
o.mapG = nil
o.map = nil
o.mapWidth = 32
o.mapHeight = 24
o.tileset = nil
o.offsetX = 0
o.offsetY = 0
o.zoom = 1
o.offsetX = 0
o.offsetY = 0
o.goalX = 7
o.goalY =7
o.init = function()
o.m... | require "tileset"
require "map"
require "pawn"
require "mapGenerator"
function love.game.newWorld()
local o = {}
o.mapG = nil
o.map = nil
o.mapWidth = 32
o.mapHeight = 24
o.tileset = nil
o.offsetX = 0
o.offsetY = 0
o.zoom = 1
o.offsetX = 0
o.offsetY = 0
o.goalX = 7
o.goalY =7
o.init = function()
o.m... | Fix mouse target. | Fix mouse target.
| Lua | mit | nczempin/lizard-journey |
4551ddaaa6099f8432313cded6392888ad72e9fe | tools/benchmark.lua | tools/benchmark.lua | require 'pl'
local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)()
package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path
require 'xlua'
require 'w2nn'
local iproc = require 'iproc'
local reconstruct = require 'reconstruct'
local image_loader = r... | require 'pl'
local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)()
package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path
require 'xlua'
require 'w2nn'
local iproc = require 'iproc'
local reconstruct = require 'reconstruct'
local image_loader = r... | Add support to reproduce the dynamic range bug in PSNR | Add support to reproduce the dynamic range bug in PSNR
I think some academic paper has this bug.
| Lua | mit | nagadomi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x,Spitfire1900/upscaler,vitaliylag/waifu2x,higankanshi/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,Spitfire1900/upscaler,nagadomi/waifu2x,higankanshi/waifu2x,vitaliylag/waifu2x |
61a9bb2b474c600cfd87f214d19ba567585ee1e3 | mods/creative/init.lua | mods/creative/init.lua | -- minetest/creative/init.lua
local creative_inventory = {}
-- Create detached creative inventory after loading all mods
minetest.after(0, function()
local inv = minetest.create_detached_inventory("creative", {
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
if minetest.setti... | -- minetest/creative/init.lua
local creative_inventory = {}
creative_inventory.creative_inventory_size = 0
-- Create detached creative inventory after loading all mods
minetest.after(0, function()
local inv = minetest.create_detached_inventory("creative", {
allow_move = function(inv, from_list, from_index, to_list... | Fix crash when a player happens to join the server quicker than the creative inventory filler is called | Fix crash when a player happens to join the server quicker than the creative inventory filler is called
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
200a515abd3828587e2371ebe71b8866ab43381c | core/ext/mime_types.lua | core/ext/mime_types.lua | -- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
local locale = _G.locale
--- Handles file-specific settings (based on file extension).
module('textadept.mime_types', package.seeall)
---
-- File extensions with their associated lexers.
-- @class table
-- @... | -- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
local locale = _G.locale
--- Handles file-specific settings (based on file extension).
module('textadept.mime_types', package.seeall)
---
-- File extensions with their associated lexers.
-- @class table
-- @... | Fixed bug with lexer restoration. | Fixed bug with lexer restoration.
--HG--
extra : rebase_source : f993faacdece52277ecbc3289fd2044edeaef80a
| Lua | mit | jozadaquebatista/textadept,jozadaquebatista/textadept |
f644e0d2708dcb5648bc3f4f2f9654d6aa3447f6 | modules/protocol/ipv4/ipv4lua.lua | modules/protocol/ipv4/ipv4lua.lua | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--local ipv4 = require('protocol/ipv4')
local ipv4_dissector = haka.dissector.new{
type = haka.helper.PacketDissect... | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local ipv4 = require('protocol/ipv4')
local ipv4_dissector = haka.dissector.new{
type = haka.helper.PacketDissector... | Fix ipv4lua | Fix ipv4lua
| Lua | mpl-2.0 | haka-security/haka,nabilbendafi/haka,nabilbendafi/haka,haka-security/haka,haka-security/haka,nabilbendafi/haka |
bc4efb11300bfbb43e47bb0103813c9362217b7b | utils/generate.lua | utils/generate.lua | --[[------------------------------
Load fake WoW environment.
--]]------------------------------
local root = "../"
do
local state = {
class = "DRUID",
level = 90,
}
dofile(root .. "WoWAPI.lua")
WoWAPI:Initialize("Ovale", state)
WoWAPI:ExportSymbols()
end
do
-- Load all of the addon files.
WoWAPI:LoadAddon... | --[[------------------------------
Load fake WoW environment.
--]]------------------------------
local root = "../"
do
local state = {
class = "DRUID",
level = 90,
}
dofile(root .. "WoWAPI.lua")
WoWAPI:Initialize("Ovale", state)
WoWAPI:ExportSymbols()
end
do
-- Load all of the addon files.
WoWAPI:LoadAddon... | Fix directory name passed to Windows "mkdir". | Fix directory name passed to Windows "mkdir".
| Lua | mit | eXhausted/Ovale,eXhausted/Ovale,ultijlam/ovale,Xeltor/ovale,ultijlam/ovale,ultijlam/ovale,eXhausted/Ovale |
4f73ab09ff5413b5ff6186d9e12b47b21d0c6522 | heartbeat.lua | heartbeat.lua | -- This scripts conducts a heartbeat for a job, and returns
-- either the new expiration or False if the lock has been
-- given to another node
--
-- Args:
-- 1) jid
-- 2) worker
-- 3) now
-- 4) [data]
if #KEYS > 0 then error('Heartbeat(): No Keys should be provided') end
local jid = assert(ARGV[1] ... | -- This scripts conducts a heartbeat for a job, and returns
-- either the new expiration or False if the lock has been
-- given to another node
--
-- Args:
-- 1) jid
-- 2) worker
-- 3) now
-- 4) [data]
if #KEYS > 0 then error('Heartbeat(): No Keys should be provided') end
local jid = assert(ARGV[1] ... | Small bug fix | Small bug fix
| Lua | mit | seomoz/qless-core,seomoz/qless-core,backupify/qless-core |
852ba2245c156159627b6aef0873ee942cba1e79 | wezterm/wezterm.lua | wezterm/wezterm.lua | local wezterm = require 'wezterm'
local os = require 'os'
local nvtop = { domain = "CurrentPaneDomain", args = {"nvtop"}, }
local htop = { domain = "CurrentPaneDomain", args = {"htop"}, }
local assigned_keys = {
-- emacs like keybindings
{ key = "c", mods = "LEADER", action = wezterm.action{ SpawnTab = "Current... | local wezterm = require 'wezterm'
local os = require 'os'
local nvtop = { domain = "CurrentPaneDomain", args = {"nvtop"}, }
local htop = { domain = "CurrentPaneDomain", args = {"htop"}, }
local assigned_keys = {
-- emacs like keybindings
{ key = "c", mods = "LEADER", action = wezterm.action{ SpawnTab = "Current... | fix wrong place | fix wrong place
| Lua | mit | katsyoshi/dotfiles,katsyoshi/dotfiles,katsyoshi/dotfiles |
70d48fcb2a8d3d1cfbf6b92375b7197b6f9db246 | config/awesome/rc.lua | config/awesome/rc.lua | -- standard requires
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
local wibox = require("wibox")
local beautiful = require("beautiful")
-- custom requires
local errors = require("misc.errors")
local workspace = require("misc.workspace")
local input = require("misc.input")
lo... | -- standard requires
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
local wibox = require("wibox")
local beautiful = require("beautiful")
-- custom requires
local errors = require("misc.errors")
local workspace = require("misc.workspace")
local input = require("misc.input")
lo... | [awesome] fixes & alacritty | [awesome] fixes & alacritty
use alacritty as default terminal & fix situations where private.lua
does not exist
| Lua | mit | tobi-wan-kenobi/dotfiles |
bf35bb0930a4be110ecaa9153d081f3cc0f241c9 | PhotoDeckAPIXSLT.lua | PhotoDeckAPIXSLT.lua | local LrXml = import 'LrXml'
local logger = import 'LrLogger'( 'PhotoDeckPublishLightroomPlugin' )
logger:enable('logfile')
local xsltheader = [[
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
]]
local xsltfooter = [[
<xsl:template match="request|que... | local LrXml = import 'LrXml'
local logger = import 'LrLogger'( 'PhotoDeckPublishLightroomPlugin' )
logger:enable('logfile')
local xsltheader = [[
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
]]
local xsltfooter = [[
<xsl:template match="request|que... | Multiple websites fix | Multiple websites fix
| Lua | mit | cmaion/photodeck.lrdevplugin,willthames/photodeck.lrdevplugin |
f7c50fb33fb385b3525be606977e6c6934247c5b | src/pegasus/request.lua | src/pegasus/request.lua | local Request = {}
function Request:new(client)
local newObj = {}
self.__index = self
newObj.client = client
newObj.firstLine = nil
newObj._method = nil
newObj._path = nil
newObj._params = {}
newObj._headers_parsed = false
newObj._headers = {}
newObj._form = {}
newObj._is_valid = false
newObj._... | local Request = {}
function Request:new(client)
local newObj = {}
self.__index = self
newObj.client = client
newObj.firstLine = nil
newObj._method = nil
newObj._path = nil
newObj._params = {}
newObj._headers_parsed = false
newObj._headers = {}
newObj._form = {}
newObj._is_valid = false
newObj._... | fix fetching content when there is none | fix fetching content when there is none
| Lua | mit | EvandroLG/pegasus.lua,dieseltravis/pegasus.lua |
cdb88a6a4d5b41082bd9fe11386e2674f748d940 | src_lua/EnumManager.lua | src_lua/EnumManager.lua | ---
--- Created by slanska
--- DateTime: 2017-11-06 11:03 PM
---
--[[
Enums in Flexilite is pretty much the same as references. When property is declared as enum,
new enum class will be automatically created, or existing enum class will
be used if classRef has valid class name.
Auto created enum class will have 2 pro... | ---
--- Created by slanska
--- DateTime: 2017-11-06 11:03 PM
---
--[[
Enums in Flexilite is pretty much the same as references. When property is declared as enum,
new enum class will be automatically created, or existing enum class will
be used if classRef has valid class name.
Auto created enum class will have 2 pro... | fixing schema create | fixing schema create
| Lua | mpl-2.0 | slanska/flexilite,slanska/flexilite |
20acb568fc7e223278891a769d29fa89fe55b31d | src/hs/finalcutpro/MenuBar.lua | src/hs/finalcutpro/MenuBar.lua | --- hs.finalcutpro.MenuBar
---
--- Represents the Final Cut Pro X menu bar, providing functions that allow different tasks to be accomplished.
---
--- Author: David Peterson (david@randombits.org)
---
--- Standard Modules
local log = require("hs.logger").new("menubar")
local json = require("hs.json... | --- hs.finalcutpro.MenuBar
---
--- Represents the Final Cut Pro X menu bar, providing functions that allow different tasks to be accomplished.
---
--- Author: David Peterson (david@randombits.org)
---
--- Standard Modules
local log = require("hs.logger").new("menubar")
local json = require("hs.json... | Fixed bug with MenuBar:isEnabled(…) | Fixed bug with MenuBar:isEnabled(…)
| Lua | mit | cailyoung/CommandPost,fcpxhacks/fcpxhacks,cailyoung/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost |
adc3576f52da491f1aff7b0f55e4f9d3d0f84c13 | src/nodish/net/socket.lua | src/nodish/net/socket.lua | local S = require'syscall'
local emitter = require'nodish.emitter'
local stream = require'nodish.stream'
local ev = require'ev'
local loop = ev.Loop.default
-- TODO: employ ljsyscall
local isip = function(ip)
local addrinfo,err = socket.dns.getaddrinfo(ip)
if err then
return false
end
return true
end
-- ... | local S = require'syscall'
local emitter = require'nodish.emitter'
local stream = require'nodish.stream'
local ev = require'ev'
local loop = ev.Loop.default
-- TODO: employ ljsyscall
local isip = function(ip)
local addrinfo,err = socket.dns.getaddrinfo(ip)
if err then
return false
end
return true
end
-- ... | fix connect handling | fix connect handling
| Lua | mit | lipp/nodish |
9a9f6f5d2888769c756f29c5d1d2506807c8f8e4 | frontend/ui/elements/mass_storage.lua | frontend/ui/elements/mass_storage.lua | local Device = require("device")
local UIManager = require("ui/uimanager")
local _ = require("gettext")
local MassStorage = {}
-- if required a popup will ask before entering mass storage mode
function MassStorage:requireConfirmation()
return not G_reader_settings:isTrue("mass_storage_confirmation_disabled")
end
... | local Device = require("device")
local UIManager = require("ui/uimanager")
local _ = require("gettext")
local MassStorage = {}
-- if required a popup will ask before entering mass storage mode
function MassStorage:requireConfirmation()
return not G_reader_settings:isTrue("mass_storage_confirmation_disabled")
end
... | [fix] Save document settings before activating USBMS (#6713) | [fix] Save document settings before activating USBMS (#6713)
As things were, when I activated USBMS, any bookmarks recently added and not yet stored in the sidecar file would be lost after returning to the reader. These changes fix that. | Lua | agpl-3.0 | Frenzie/koreader,Frenzie/koreader,koreader/koreader,mwoz123/koreader,poire-z/koreader,poire-z/koreader,koreader/koreader,NiLuJe/koreader,Markismus/koreader,pazos/koreader,NiLuJe/koreader,Hzj-jie/koreader |
eaba51d9d4fab32b7569afda6c55171114f8fb77 | google-helpouts.lua | google-helpouts.lua | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | google-helpouts.lua: fixes | google-helpouts.lua: fixes | Lua | unlicense | ArchiveTeam/google-helpouts-grab,ArchiveTeam/google-helpouts-grab |
6861470d307bad7b66390814c1eca36ed0aac04d | plugins/mod_roster.lua | plugins/mod_roster.lua | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza"
local jid_split = require "util.jid".split;
local t_concat = tab... | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza"
local jid_split = require "util.jid".split;
local jid_prep = req... | Fixed: mod_roster: Prep JIDs being added to roster (part of issue #57) | Fixed: mod_roster: Prep JIDs being added to roster (part of issue #57)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
5dff4afb03e7fbfb721285c4a95dfd2366badd64 | src/plugins/lua/forged_recipients.lua | src/plugins/lua/forged_recipients.lua | -- Plugin for comparing smtp dialog recipients and sender with recipients and sender
-- in mime headers
local symbol_rcpt = 'FORGED_RECIPIENTS'
local symbol_sender = 'FORGED_SENDER'
function check_forged_headers(task)
local msg = task:get_message()
local smtp_rcpt = task:get_recipients(1)
local res = false
if s... | -- Plugin for comparing smtp dialog recipients and sender with recipients and sender
-- in mime headers
local symbol_rcpt = 'FORGED_RECIPIENTS'
local symbol_sender = 'FORGED_SENDER'
function check_forged_headers(task)
local smtp_rcpt = task:get_recipients(1)
local res = false
if smtp_rcpt then
local mime_rcpt ... | Fix forged_recipients plugin. | Fix forged_recipients plugin.
| Lua | apache-2.0 | dark-al/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,dark-al/rspamd,minaevmike/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,amohanta/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,... |
84e292faf0f7cbb8f9bf9ded2804cd9caa478089 | hammerspoon/luncher.lua | hammerspoon/luncher.lua | local hyper = {"cmd", "shift"}
local browsers = {{"Google Chrome", "Safari"}}
local editorAndIDEs = {{"com.github.atom", "org.vim.MacVim", "Emacs", "com.jetbrains.intellij.ce"}}
local emails = {{"com.mailplaneapp.Mailplane3"}}
local chats = {{"HipChat", "WeChat", "Messages"}}
local tweets = {{"Tweetbot"}}
local termin... | local hyper = {"cmd", "shift"}
local browsers = {{"Google Chrome", "Safari"}}
local editorAndIDEs = {{"com.github.atom", "org.vim.MacVim", "Emacs", "com.jetbrains.intellij.ce"}}
local emails = {{"com.mailplaneapp.Mailplane3"}}
local chats = {{"HipChat", "WeChat", "Messages"}}
local tweets = {{"Tweetbot"}}
local termin... | Fix #4; Try to open first available app if the no app is open in the app group | Fix #4; Try to open first available app if the no app is open in the app group
| Lua | mit | xcv58/Hammerspoon-xcv58 |
e791afe05f6e94e4f54869c5017632cb5a7af281 | classes/actor.lua | classes/actor.lua | mrequire "classes/class"
mrequire "classes/dialogue"
mrequire "classes/item"
mrequire "classes/task"
Actors = { }
newclass("Actor",
function(id, name, costume, color)
local actor = {
id = id,
name = name,
costume = CostumeController.new(costume),
speed = 150... | mrequire "classes/class"
mrequire "classes/dialogue"
mrequire "classes/item"
mrequire "classes/task"
Actors = { }
newclass("Actor",
function(id, name, costume, color)
local actor = {
id = id,
name = name,
costume = CostumeController.new(costume),
speed = 150... | Fixed issues due to blocking walking | Fixed issues due to blocking walking
Walking to XY doesn't block the main actor thread anymore, which means we can do finer grained pressing, prioritizing and walk canceling
| Lua | mit | isovector/adventure,isovector/adventure |
86d137059fd6f54a9969668fcf42f1c9d5dd5a4d | game/scripts/vscripts/modules/structures/structures.lua | game/scripts/vscripts/modules/structures/structures.lua | Structures = Structures or class({})
ModuleRequire(..., "data")
ModuleRequire(..., "shops")
ModuleLinkLuaModifier(..., "modifier_arena_healer")
ModuleLinkLuaModifier(..., "modifier_arena_courier")
ModuleLinkLuaModifier(..., "modifier_fountain_aura_arena")
ModuleLinkLuaModifier(..., "modifier_fountain_aura_invulnerabil... | Structures = Structures or class({})
ModuleRequire(..., "data")
ModuleRequire(..., "shops")
ModuleLinkLuaModifier(..., "modifier_arena_healer")
ModuleLinkLuaModifier(..., "modifier_arena_courier")
ModuleLinkLuaModifier(..., "modifier_fountain_aura_arena")
ModuleLinkLuaModifier(..., "modifier_fountain_aura_invulnerabil... | fix(structures): update courier spawn method | fix(structures): update courier spawn method
| Lua | mit | ark120202/aabs |
b7fd1a7083837cc65773b4a064afc31784f6b4b9 | tarantoolapp/commands/dep.lua | tarantoolapp/commands/dep.lua | local errno = require 'errno'
local fio = require 'fio'
local yaml = require 'yaml'
local fileio = require 'tarantoolapp.fileio'
local util = require 'tarantoolapp.util'
local cfg
local function printf(f, ...)
print(string.format('[%s] ' .. f, cfg.name, ...))
end
local function errorf(f, ...)
print(string.... | local errno = require 'errno'
local fio = require 'fio'
local yaml = require 'yaml'
local fileio = require 'tarantoolapp.fileio'
local util = require 'tarantoolapp.util'
local cfg
local function printf(f, ...)
print(string.format('[%s] ' .. f, cfg.name, ...))
end
local function raisef(f, ...)
error(string.... | fix dep local | fix dep local
| Lua | mit | moonlibs/tarantoolapp,moonlibs/tarantoolapp |
339d5cd178d2adca9c52b57ca6b22e567d203e41 | core/componentmanager.lua | core/componentmanager.lua | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local log = require "util.logger".init("componentmanager");
local configmanager = require "core.c... | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local log = require "util.logger".init("componentmanager");
local configmanager = require "core.c... | core.componentmanager: Fix global access | core.componentmanager: Fix global access
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
592bb1c7a5315e4f2582dad415e03e42f5a43cad | src/lua-factory/sources/grl-euronews.lua | src/lua-factory/sources/grl-euronews.lua | --[[
* Copyright (C) 2014 Bastien Nocera
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at you... | --[[
* Copyright (C) 2014 Bastien Nocera
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at you... | lua-factory: port grl-euronews.lua to the new lua system | lua-factory: port grl-euronews.lua to the new lua system
https://bugzilla.gnome.org/show_bug.cgi?id=753141
Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
| Lua | lgpl-2.1 | GNOME/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins |
72f9c5690f0ae09b1226b588df4bfda230b1ade4 | filechooser.lua | filechooser.lua | require "rendertext"
require "keys"
require "graphics"
FileChooser = {
-- Class vars:
-- font for displaying file/dir names
face = freetype.newBuiltinFace("sans", 25),
fhash = "s25",
-- font for paging display
sface = freetype.newBuiltinFace("sans", 16),
sfhash = "s16",
-- spacing between lines
spacing = 40... | require "rendertext"
require "keys"
require "graphics"
FileChooser = {
-- Class vars:
-- font for displaying file/dir names
face = freetype.newBuiltinFace("sans", 25),
fhash = "s25",
-- font for paging display
sface = freetype.newBuiltinFace("sans", 16),
sfhash = "s16",
-- spacing between lines
spacing = 40... | fix: detect emu mode in rotationMode | fix: detect emu mode in rotationMode
if in emu mode, simply return 0
| Lua | agpl-3.0 | Hzj-jie/koreader-base,ashang/koreader,koreader/koreader-base,apletnev/koreader-base,chrox/koreader,poire-z/koreader,NiLuJe/koreader-base,NiLuJe/koreader-base,apletnev/koreader-base,koreader/koreader,NickSavage/koreader,pazos/koreader,houqp/koreader,poire-z/koreader,Frenzie/koreader,apletnev/koreader-base,frankyifei/kor... |
39afac1826ecbea9a6cad46eb1bc3c7bc8868884 | src/application.lua | src/application.lua | if not cfg.data.sta_ssid then
print('Wifi: No config')
return
end
if not (cfg.data.mqtt_user and cfg.data.mqtt_password) then
print('MQTT: No config')
return
end
local queue_report = nil
local send_report = nil
local flush_data = nil
local mq_prefix = "/nodes/" .. node_id
local mq = mqtt.Client(node_id, 120,... | if not cfg.data.sta_ssid then
print('Wifi: No config')
return
end
if not (cfg.data.mqtt_user and cfg.data.mqtt_password) then
print('MQTT: No config')
return
end
local queue_report = nil
local send_report = nil
local flush_data = nil
local mq_prefix = "/nodes/" .. node_id
local mq = mqtt.Client(node_id, 120,... | bugfix to the bugfix for prefixing report data with mq_prefix | bugfix to the bugfix for prefixing report data with mq_prefix
Signed-off-by: Kalman Olah <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d@kalmanolah.net>
| Lua | mit | kalmanolah/kalmon-ESP8266 |
7dd1921b0aac56fc517072a4f6b4b6bdb8d575e8 | src/core/packet.lua | src/core/packet.lua | module(...,package.seeall)
local debug = false
local ffi = require("ffi")
local C = ffi.C
local buffer = require("core.buffer")
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
require("core.packet_h")
initial_fuel = 1000
max_packets = 1e6
pac... | module(...,package.seeall)
local debug = false
local ffi = require("ffi")
local C = ffi.C
local buffer = require("core.buffer")
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
require("core.packet_h")
initial_fuel = 1000
max_packets = 1e6
pac... | packet.lua: Fix broken clone(). | packet.lua: Fix broken clone().
| Lua | apache-2.0 | dpino/snabb,eugeneia/snabb,kbara/snabb,wingo/snabbswitch,Igalia/snabbswitch,alexandergall/snabbswitch,lukego/snabb,virtualopensystems/snabbswitch,eugeneia/snabb,andywingo/snabbswitch,Igalia/snabb,Igalia/snabbswitch,wingo/snabbswitch,pavel-odintsov/snabbswitch,pirate/snabbswitch,justincormack/snabbswitch,virtualopensyst... |
1f13986318d04343f9cd10d85208c25c13612ea2 | lua/drivers.lua | lua/drivers.lua | local mod = {}
local dpdkc = require "dpdkc"
local ffi = require "ffi"
mod.net_i40e = require "driver.i40e"
mod.net_ixgbe = require "driver.ixgbe"
mod.net_ixgbevf = require "driver.ixgbevf"
mod.net_igb = require "driver.igb"
mod.net_virtio = require "driver.virtio"
mod.net_vmxnet3 = require "driver.vmxnet3"
mod.net_m... | local mod = {}
local dpdkc = require "dpdkc"
local ffi = require "ffi"
mod.net_i40e = require "driver.i40e"
mod.net_ixgbe = require "driver.ixgbe"
mod.net_ixgbevf = require "driver.ixgbevf"
mod.net_e1000_igb = require "driver.igb"
mod.net_e1000_em = require "driver.igb"
mod.net_virtio = require "driver.virtio"
mod.ne... | fix driver patching for gigabit nics | fix driver patching for gigabit nics
| Lua | mit | emmericp/libmoon,emmericp/libmoon,scholzd/libmoon,libmoon/libmoon,emmericp/libmoon,libmoon/libmoon,libmoon/libmoon,scholzd/libmoon,scholzd/libmoon |
a824fd6a69ffb2e84068860a7b7e1ca485655743 | lexers/perl.lua | lexers/perl.lua | -- Copyright 2006-2012 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Perl LPeg lexer.
local l = lexer
local token, style, color, word_match = l.token, l.style, l.color, l.word_match
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
local M = { _NAME = 'perl' }
-- Whitespace.
local ws = token(l.WHITESPACE, l.spa... | -- Copyright 2006-2012 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Perl LPeg lexer.
local l = lexer
local token, style, color, word_match = l.token, l.style, l.color, l.word_match
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
local M = { _NAME = 'perl' }
-- Whitespace.
local ws = token(l.WHITESPACE, l.spa... | Fixed bug with '$$' variables and added DATA and END markers; lexers/perl.lua | Fixed bug with '$$' variables and added DATA and END markers; lexers/perl.lua
| Lua | mit | rgieseke/scintillua |
1cefd279465c32c7ad15e0990ddc950c41603c44 | frontend/apps/cloudstorage/dropboxapi.lua | frontend/apps/cloudstorage/dropboxapi.lua | local DocumentRegistry = require("document/documentregistry")
local JSON = require("json")
local http = require("socket.http")
local ltn12 = require("ltn12")
local socket = require("socket")
local socketutil = require("socketutil")
local _ = require("gettext")
local DropBoxApi = {
}
local API_URL_INFO = "https://api.... | local DocumentRegistry = require("document/documentregistry")
local JSON = require("json")
local http = require("socket.http")
local logger = require("logger")
local ltn12 = require("ltn12")
local socket = require("socket")
local socketutil = require("socketutil")
local _ = require("gettext")
local DropBoxApi = {
}
l... | DropboxAPI: Handle pagination (#7621) | DropboxAPI: Handle pagination (#7621)
Fix #7600
Co-authored-by: NiLuJe <6bf62f45c467b95188165a5729a51c9dcbdd2864@gmail.com>
Co-authored-by: Frans de Jonge <807d67be87a9aeacd1bff8b3eb885eb0f5b378c8@gmail.com> | Lua | agpl-3.0 | koreader/koreader,NiLuJe/koreader,poire-z/koreader,NiLuJe/koreader,poire-z/koreader,Frenzie/koreader,Frenzie/koreader,koreader/koreader,mwoz123/koreader |
b08ea4ea1d4f5f39d2efe50231d59262a7ea3a49 | .build.1.lua | .build.1.lua |
local modules = {}
function addModules( mods )
if type(mods) ~= "table" then
mods = {mods}
end
for _, mod in mods do
if table.contains( modules, mod ) == false then
modules.insert( mod )
zpm.submodules( mod )
zpm.export [[
includedirs ... |
local modules = {}
function addModules( mods )
if type(mods) ~= "table" then
mods = {mods}
end
for _, mod in mods do
if table.contains( modules, mod ) == false then
modules.insert( mod )
zpm.submodules( mod )
zpm.export "includedirs \"".. mod .."\""
... | Syntax fix | Syntax fix
| Lua | mit | Zefiros-Software/Boost,Zefiros-Software/Boost |
1f22216d7c615cdf3cf17644aabcbc3bfa969533 | lualib/snax/gateserver.lua | lualib/snax/gateserver.lua | local skynet = require "skynet"
local netpack = require "skynet.netpack"
local socketdriver = require "skynet.socketdriver"
local gateserver = {}
local socket -- listen socket
local queue -- message queue
local maxclient -- max client
local client_number = 0
local CMD = setmetatable({}, { __gc = function() netpack.c... | local skynet = require "skynet"
local netpack = require "skynet.netpack"
local socketdriver = require "skynet.socketdriver"
local gateserver = {}
local socket -- listen socket
local queue -- message queue
local maxclient -- max client
local client_number = 0
local CMD = setmetatable({}, { __gc = function() netpack.c... | fix #1188 | fix #1188
| Lua | mit | JiessieDawn/skynet,hongling0/skynet,JiessieDawn/skynet,xjdrew/skynet,icetoggle/skynet,korialuo/skynet,icetoggle/skynet,hongling0/skynet,xcjmine/skynet,wangyi0226/skynet,xjdrew/skynet,cloudwu/skynet,pigparadise/skynet,bigrpg/skynet,pigparadise/skynet,bigrpg/skynet,bigrpg/skynet,cloudwu/skynet,sanikoyes/skynet,hongling0/... |
4eae9de1bb4d7b9bd4c3b40af62d76ef59307c1b | UCDanticheat/togglecontrol.lua | UCDanticheat/togglecontrol.lua | addCommandHandler("tog",
function ()
outputDebugString(tostring(not isControlEnabled("fire")))
toggleControl("fire", not isControlEnabled("fire"))
end
)
local aimKeys = getBoundKeys("aim_weapon")
local fireKeys = getBoundKeys("fire")
local exceptedWeapons = {[41] = true}
local exceptedSlots = {[0] = true, [1] =... | addCommandHandler("tog",
function ()
outputDebugString(tostring(not isControlEnabled("fire")))
toggleControl("fire", not isControlEnabled("fire"))
end
)
local aimKeys = getBoundKeys("aim_weapon")
local fireKeys = getBoundKeys("fire")
local exceptedWeapons = {[0] = true, [41] = true}
local exceptedSlots = {[0] =... | UCDanticheat | UCDanticheat
- Fixed the toggle control not allowing players to use their fists.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
e16bc88f148ffa743757ea101776a61fb3048a7b | lua/shdict.lua | lua/shdict.lua | local _M = {
_VERSION = "1.2.0"
}
local cjson = require "cjson"
local function decode(value)
if value then
return cjson.decode(value)
end
return nil
end
local function make_cache(cache, prefix)
local shm = ngx.shared[prefix]
if shm then
cache.count = 1
cache.data[1] = shm
return
end
... | local _M = {
_VERSION = "1.8.2"
}
local cjson = require "cjson"
local function decode(value)
if value then
return cjson.decode(value)
end
return nil
end
local function make_cache(cache, prefix)
local shm = ngx.shared[prefix]
if shm then
cache.count = 1
cache.data[1] = shm
return
end
... | fix flush_expired: returning value | fix flush_expired: returning value
| Lua | bsd-2-clause | ZigzagAK/nginx-resty-auto-healthcheck-config,ZigzagAK/nginx-resty-auto-healthcheck-config |
7a727b26ab4ebd3914e28a977d258b4c4f598677 | vim/plugin/setup.lua | vim/plugin/setup.lua | -- vim.lsp.set_log_level("debug")
local lspconfig = require "lspconfig"
local lsp_spinner = require "lsp_spinner"
lsp_spinner.setup {
placeholder = " ",
}
local function on_attach(client, bufnr)
require("lsp_spinner").on_attach(client, bufnr)
end
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.wi... | -- vim.lsp.set_log_level("debug")
local lspconfig = require "lspconfig"
local lsp_spinner = require "lsp_spinner"
lsp_spinner.setup {
placeholder = " ",
}
local function on_attach(client, bufnr)
require("lsp_spinner").on_attach(client, bufnr)
end
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.wi... | [nvim] Fix treesitter compat | [nvim] Fix treesitter compat
| Lua | mit | keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles |
d63570877410809583719c44f637ed4aa4525b93 | src/daemon.lua | src/daemon.lua | --[[
transitd daemon main file
@file daemon.lua
@license The MIT License (MIT)
@author Alex <alex@maximum.guru>
@author William Fleurant <william@netblazr.com>
@author Serg <sklassen410@gmail.com>
@copyright 2016 Alex
@copyright 2016 William Fleurant
@copyright 2016 Serg
--]]
local config = require("... | --[[
transitd daemon main file
@file daemon.lua
@license The MIT License (MIT)
@author Alex <alex@maximum.guru>
@author William Fleurant <william@netblazr.com>
@author Serg <sklassen410@gmail.com>
@copyright 2016 Alex
@copyright 2016 William Fleurant
@copyright 2016 Serg
--]]
local config = require("config")
local ... | Small fix | Small fix
| Lua | mit | pdxmeshnet/mnigs,pdxmeshnet/mnigs,intermesh-networks/transitd,transitd/transitd,intermesh-networks/transitd,transitd/transitd,transitd/transitd |
41eccd4ca6fe51f8174dd43744e7a4bab4daf2cb | src/luarocks/new_version.lua | src/luarocks/new_version.lua |
--- Module implementing the LuaRocks "new_version" command.
-- Utility function that writes a new rockspec, updating data from a previous one.
local new_version = {}
local util = require("luarocks.util")
local download = require("luarocks.download")
local fetch = require("luarocks.fetch")
local persist = require("lua... |
--- Module implementing the LuaRocks "new_version" command.
-- Utility function that writes a new rockspec, updating data from a previous one.
local new_version = {}
local util = require("luarocks.util")
local download = require("luarocks.download")
local fetch = require("luarocks.fetch")
local persist = require("lua... | Fix crash when given a remote rockspec. | Fix crash when given a remote rockspec.
| Lua | mit | luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks,keplerproject/luarocks,xpol/luavm,robooo/luarocks,robooo/luarocks,xpol/luavm,keplerproject/luarocks,tarantool/luarocks,robooo/luarocks,xpol/luavm,tarantool/luarocks,xpol/luainstaller,xpol/luarocks,robooo/luarocks,xpol/luainstaller,xpol/luarocks,xpol/luains... |
e4a807db741c48710fdb63161a3aa1ac9b2fba7b | script/c80600046.lua | script/c80600046.lua | --CNo.96 ブラック・ストーム
function c80600046.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_DARK),3),4)
c:EnableReviveLimit()
--battle
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_REFLECT_BATTLE_DAMAGE)
... | --CNo.96 ブラック・ストーム
function c80600046.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_DARK),3),4)
c:EnableReviveLimit()
--battle
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PR... | fix | fix
fixed controller not receving battle damage | Lua | mit | SuperAndroid17/DevProLauncher,Tic-Tac-Toc/DevProLauncher,sidschingis/DevProLauncher |
ba18cd806ad3b1d05fce1b1eaa4c70f0a576551b | lualib/sys/db/redis.lua | lualib/sys/db/redis.lua | local dispatch = require "sys.socketdispatch"
local type = type
local assert = assert
local tostring = tostring
local tonumber = tonumber
local tinsert = table.insert
local tunpack = table.unpack
local tconcat = table.concat
local sub = string.sub
local upper = string.upper
local format = string.format
local redis = ... | local dispatch = require "sys.socketdispatch"
local type = type
local assert = assert
local tostring = tostring
local tonumber = tonumber
local tinsert = table.insert
local tunpack = table.unpack
local tconcat = table.concat
local sub = string.sub
local upper = string.upper
local format = string.format
local redis = ... | bugfix redis null element in arrays | bugfix redis null element in arrays
| Lua | mit | findstr/silly |
d52158855af0cf214ff24a8aa06a738166b58661 | src/lua/snabb-shm.lua | src/lua/snabb-shm.lua | #!/usr/bin/env luajit
-- Copyright 2012 Snabb Gmbh.
local ffi = require("ffi")
local fabric = ffi.load("fabric")
ffi.cdef(io.open("/home/luke/hacking/QEMU/net/snabb-shm-dev.h"):read("*a"))
ffi.cdef(io.open("/home/luke/hacking/snabb-fabric/src/c/fabric.h"):read("*a"))
print("loaded ffi'ery")
print(ffi.sizeof("struct ... | #!/usr/bin/env luajit
-- Copyright 2012 Snabb Gmbh.
local ffi = require("ffi")
local C = ffi.C
local fabric = ffi.load("fabric")
ffi.cdef(io.open("/home/luke/hacking/QEMU/net/snabb-shm-dev.h"):read("*a"))
ffi.cdef(io.open("/home/luke/hacking/snabb-fabric/src/c/fabric.h"):read("*a"))
print("loaded ffi'ery")
print(ffi... | snabb-shm: Now continuously dumping packets to a pcap file. (Buggy.) | snabb-shm: Now continuously dumping packets to a pcap file. (Buggy.)
| Lua | apache-2.0 | andywingo/snabbswitch,dwdm/snabbswitch,lukego/snabb,lukego/snabbswitch,kellabyte/snabbswitch,dpino/snabb,Igalia/snabbswitch,virtualopensystems/snabbswitch,eugeneia/snabb,Igalia/snabbswitch,wingo/snabb,aperezdc/snabbswitch,SnabbCo/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch,snabbco/snabb,luke... |
2138ed6593ba52e5cf56316705321b16d424ad67 | content/gatheringcraft/stonecutting.lua | content/gatheringcraft/stonecutting.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 #0010734 | fix #0010734
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content |
0e9d8e7ac35755835e016eb4912ac367e1b49078 | SVUI_Skins/components/blizzard/macro.lua | SVUI_Skins/components/blizzard/macro.lua | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
--[[ ADDON ]]--
local SV = _G['SVUI'];
lo... | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
--[[ ADDON ]]--
local SV = _G['SVUI'];
lo... | Fix #141 | Fix #141 | Lua | mit | FailcoderAddons/supervillain-ui,finalsliver/supervillain-ui |
6e10cc712958d76154ccebb83bf6096673b474a5 | agents/monitoring/tests/check/apache.lua | agents/monitoring/tests/check/apache.lua | local async = require('async')
local fs = require('fs')
local testUtil = require('monitoring/default/util/test')
local path = require('path')
local fmt = require('string').format
local ApacheCheck = require('monitoring/default/check').ApacheCheck
local PORT = 32321
local HOST = '127.0.0.1'
local exports = {}
export... | local async = require('async')
local fs = require('fs')
local testUtil = require('monitoring/default/util/test')
local path = require('path')
local fmt = require('string').format
local ApacheCheck = require('monitoring/default/check').ApacheCheck
local PORT = 32321
local HOST = '127.0.0.1'
local exports = {}
export... | fix pathing for win32 porting team | fix pathing for win32 porting team
| Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,virgo-agent-toolki... |
e9cfdba22a43e4ef9caf29b4f711ab27231426a0 | lualib/snax/hotfix.lua | lualib/snax/hotfix.lua | local si = require "snax.interface"
local io = io
local hotfix = {}
local function envid(f)
local i = 1
while true do
local name, value = debug.getupvalue(f, i)
if name == nil then
return
end
if name == "_ENV" then
return debug.upvalueid(f, i)
end
i = i + 1
end
end
local function collect_uv(f , ... | local si = require "snax.interface"
local io = io
local hotfix = {}
local function envid(f)
local i = 1
while true do
local name, value = debug.getupvalue(f, i)
if name == nil then
return
end
if name == "_ENV" then
return debug.upvalueid(f, i)
end
i = i + 1
end
end
local function collect_uv(f , ... | 'hotfix' code cannot use '_ENV' | 'hotfix' code cannot use '_ENV'
If there's no global variable or function used in any interface of a snax service,the upvalue "_ENV" for 'hotfix' is not set. This modify is not complete, it depend's on the 'collect_uv' method having upvalue '_ENV',maybe other good method to get upvalue index of '_ENV'. | Lua | mit | codingabc/skynet,chfg007/skynet,bigrpg/skynet,asanosoyokaze/skynet,matinJ/skynet,ilylia/skynet,wangyi0226/skynet,enulex/skynet,matinJ/skynet,chfg007/skynet,javachengwc/skynet,lc412/skynet,nightcj/mmo,longmian/skynet,KittyCookie/skynet,LiangMa/skynet,MoZhonghua/skynet,great90/skynet,bttscut/skynet,vizewang/skynet,QuiQiJ... |
868f4fd64db26aa9d579b56de0043bb9749bcec7 | tests/modules/tap.lua | tests/modules/tap.lua | local uv = require('uv')
local utils = require('utils')
local stdin = utils.stdin
local stdout = utils.stdout
local stderr = utils.stderr
local colorize = utils.colorize
-- Capture output from global print and prefix with two spaces
local print = _G.print
_G.print = function (...)
local n = select('#', ...)
local ... | local uv = require('uv')
local utils = require('utils')
local colorize = utils.colorize
-- Capture output from global print and prefix with two spaces
local print = _G.print
_G.print = function (...)
local n = select('#', ...)
local arguments = {...}
for i = 1, n do
arguments[i] = tostring(arguments[i])
en... | Fix test library to ignore any and all pre-existing handles | Fix test library to ignore any and all pre-existing handles
| Lua | apache-2.0 | DBarney/luvit,zhaozg/luvit,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,kaustavha/luvit,rjeli/luvit,bsn069/luvit,kaustavha/luvit,luvit/luvit,rjeli/luvit,DBarney/luvit,bsn069/luvit,luvit/luvit,zhaozg/luvit,kaustavha/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,DBarney/luvit,GabrielNico... |
028e9a14904206b52cf09ded22c85ef2e4d962af | scripts/tundra/util.lua | scripts/tundra/util.lua | local _tostring = tostring
module(..., package.seeall)
function tostring(value)
local str = ''
if (type(value) ~= 'table') then
if (type(value) == 'string') then
str = string.format("%q", value)
else
str = _tostring(value)
end
else
local auxTable = {}
table.foreach(value, function(i, v)
if (tonu... | local _tostring = tostring
module(..., package.seeall)
function tostring(value)
local str = ''
if (type(value) ~= 'table') then
if (type(value) == 'string') then
str = string.format("%q", value)
else
str = _tostring(value)
end
else
local auxTable = {}
for k, v in pairs(value) do
auxTable[#auxTab... | Fixed tostring() for table keys. | Fixed tostring() for table keys.
| Lua | mit | deplinenoise/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,bmharper/tundra |
ffd70ceb68eb2146e939b4e4e3a15fa48bb12adc | share/lua/meta/art/01_musicbrainz.lua | share/lua/meta/art/01_musicbrainz.lua | --[[
Gets an artwork from amazon
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version... | --[[
Gets an artwork from amazon
$Id$
Copyright © 2007-2010 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ve... | Try a second musicbrainz query if the first one failed. This allows for fuzzier matches (like not taking spaces into account in 1980 - 1990 for example) but still doesn't fix issues with minor spelling errors. | Try a second musicbrainz query if the first one failed. This allows for fuzzier matches (like not taking spaces into account in 1980 - 1990 for example) but still doesn't fix issues with minor spelling errors.
| Lua | lgpl-2.1 | xkfz007/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.1,krichter722/vlc,krichter722/vlc,vlc-mirror/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,vlc-mirror/vlc,krichter722/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,vlc... |
d3e2a391a6cd9814887093b05e926c3d8d6fea2f | pages/community/guilds/invite/post.lua | pages/community/guilds/invite/post.lua | require "guild"
function post()
if not session:isLogged() then
http:redirect("/")
return
end
local guild = db:singleQuery("SELECT name, ownerid, id FROM guilds WHERE name = ?", http.postValues["guild-name"])
if guild == nil then
http:redirect("/")
return
end
l... | require "guild"
function post()
if not session:isLogged() then
http:redirect("/")
return
end
local guild = db:singleQuery("SELECT name, ownerid, id FROM guilds WHERE name = ?", http.postValues["guild-name"])
if guild == nil then
http:redirect("/")
return
end
l... | Fix guild invite | Fix guild invite
| Lua | mit | Raggaer/castro,Raggaer/castro,Raggaer/castro |
4efa27916f19dc6a862f37004cf733903f66aa82 | modules/admin-core/luasrc/tools/webadmin.lua | modules/admin-core/luasrc/tools/webadmin.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | Add missing number conversion (fixed #108) | Add missing number conversion (fixed #108)
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci |
b041f730df970ab3f68d0a8739b8ec6d3bb24445 | epgp_Events.lua | epgp_Events.lua | -------------------------------------------------------------------------------
-- Event Handlers for tracking a raid
-------------------------------------------------------------------------------
-- CHAT_MSG_LOOT parsing
-- returns receiver, count, itemlink
local EPGP_LOOT_ITEM = "^(%S+) receives loot: (.+)%.$"
loca... | -------------------------------------------------------------------------------
-- Event Handlers for tracking a raid
-------------------------------------------------------------------------------
-- CHAT_MSG_LOOT parsing
-- returns receiver, count, itemlink
local EPGP_LOOT_ITEM = "^(%S+) receives loot: (.+)%.$"
loca... | Fix bug in parsing and logging loot. | Fix bug in parsing and logging loot.
| Lua | bsd-3-clause | hayword/tfatf_epgp,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,sheldon/epgp,sheldon/epgp |
d84e87e0c8b900c659e06b58c065846fb1d5b4c2 | ZeroGrad.lua | ZeroGrad.lua | local ZeroGrad, parent = torch.class("nn.ZeroGrad", "nn.Module")
local function recursiveZero(t1,t2)
if torch.type(t2) == 'table' then
t1 = (torch.type(t1) == 'table') and t1 or {t1}
for key,_ in pairs(t2) do
t1[key], t2[key] = recursiveZero(t1[key], t2[key])
end
elseif torch.isTensor(... | local ZeroGrad, parent
if nn.ZeroGrad then -- prevent name conflicts with rnn
ZeroGrad, parent = nn.ZeroGrad, nn.Module
else
ZeroGrad, parent = torch.class('nn.ZeroGrad', 'nn.Module')
end
local function recursiveZero(t1,t2)
if torch.type(t2) == 'table' then
t1 = (torch.type(t1) == 'table') and t1 or {t1... | fix dependency bug | fix dependency bug
| Lua | mit | clementfarabet/lua---nnx |
38faabb4db2fc127bc67bd9052e7d16f1bf4a64e | vrp/client/survival.lua | vrp/client/survival.lua | -- api
function tvRP.varyHealth(variation)
local ped = GetPlayerPed(-1)
local n = math.floor(GetEntityHealth(ped)+variation)
SetEntityHealth(ped,n)
end
function tvRP.getHealth()
return GetEntityHealth(GetPlayerPed(-1))
end
function tvRP.setHealth(health)
local n = math.floor(health)
SetEntityHealth(GetP... | -- api
function tvRP.varyHealth(variation)
local ped = GetPlayerPed(-1)
local n = math.floor(GetEntityHealth(ped)+variation)
SetEntityHealth(ped,n)
end
function tvRP.getHealth()
return GetEntityHealth(GetPlayerPed(-1))
end
function tvRP.setHealth(health)
local n = math.floor(health)
SetEntityHealth(GetP... | Fix restart coma duration on respawn | Fix restart coma duration on respawn
| Lua | mit | ENDrain/vRP-plusplus,ImagicTheCat/vRP,ENDrain/vRP-plusplus,ENDrain/vRP-plusplus,ImagicTheCat/vRP |
a306cdfbbe5e4231ee918b21248930048ae4fcb1 | plugins/mod_posix.lua | plugins/mod_posix.lua | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local want_pposix_version = "0.3.1";
local pposix = assert(require "util.pposix");
if pposix._VERSION ~... | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local want_pposix_version = "0.3.1";
local pposix = assert(require "util.pposix");
if pposix._VERSION ~... | mod_posix: Remove the lines added to work around the util.signal loop bug | mod_posix: Remove the lines added to work around the util.signal loop bug
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
2ede85b706f13b6f48d673de91cd05eac8faba00 | handlers.lua | handlers.lua | local pairs = pairs
local error = error
local tonumber = tonumber
local table = table
module "irc"
handlers = {}
handlers["PING"] = function(o, prefix, query)
o:send("PONG :%s", query)
end
handlers["001"] = function(o, prefix, me)
o.authed = true
o.nick = me
end
handlers["PRIVMSG"] = function(o, prefix, channel... | local pairs = pairs
local error = error
local tonumber = tonumber
local table = table
module "irc"
handlers = {}
handlers["PING"] = function(o, prefix, query)
o:send("PONG :%s", query)
end
handlers["001"] = function(o, prefix, me)
o.authed = true
o.nick = me
end
handlers["PRIVMSG"] = function(o, prefix, channel... | fix crash on startup (seems to be when WHO response happens before the channel is joined) | fix crash on startup (seems to be when WHO response happens before the channel is joined)
| Lua | mit | wolfy1339/LuaIRC |
3524ce46d44cf587b7ed6004980b598e6ea85c8e | Resources/Scripts/Tests/JaggedList.lua | Resources/Scripts/Tests/JaggedList.lua | function ObjectIterator(list)
local function jaggedObjectListOterator(list, index)
if index[2] == nil then
index[1] = next(list, index[1])
if index[1] == nil then
return nil, nil
end
end
local i, k = next(list[index[1]], index[2])
i... | __idmt = {
__lt = function(a, b)
if a[1] == b[1] then
if a[2] == nil then print(debug.traceback("A")) end
if b[2] == nil then print(debug.traceback("B")) end
return a[2] < b[2]
else
return a[1] < b[1]
end
end;
__le = function(a, b)
... | Fixes to the test. | Fixes to the test.
Signed-off-by: Scott McClaugherty <8e7c5f3edf627752a626365ddad308cf01055c6e@gmail.com>
| Lua | mit | adam000/xsera,prophile/xsera,prophile/xsera,prophile/xsera,adam000/xsera,adam000/xsera,adam000/xsera,prophile/xsera,prophile/xsera |
f7d878b6bbae17291eee4b66380f654864f03e3a | regress/readdir-errno.lua | regress/readdir-errno.lua | #!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua -r5.2 "$0" "$@"
]]
require"regress".export".*"
local unix = require"unix"
local tmpdir = check(mkdtemp())
local nofile = 256
for i=1,nofile do
local path = string.format("%s/%02x-%s", tmpdir, i - 1, tmpnonce())
check(io.open(path, "w+"))
end
info("created %d fi... | #!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua -r5.2 "$0" "$@"
]]
require"regress".export".*"
local unix = require"unix"
local tmpdir = check(mkdtemp())
local nofile = 256
for i=1,nofile do
local path = string.format("%s/%02x-%s", tmpdir, i - 1, tmpnonce())
check(io.open(path, "w+"))
end
info("created %d fi... | fix readdir-errno regressin test | fix readdir-errno regressin test
| Lua | mit | wahern/lunix,Redfoxmoon3/lunix,wahern/lunix,Redfoxmoon3/lunix |
efe8584781f172e21463c4ce74eab8a66cf077aa | scripts/format.lua | scripts/format.lua | -- Get the Gerrit base URL from the given change URL.
local function get_gerrit_base_url(change_url)
return string.sub(change_url, 1, #change_url - string.find(string.reverse(change_url), "/"))
end
-- Get a URL for a Gerrit query.
local function get_query_url(base_url, query, ...)
return string.format("%s/q/%s... | -- Get the Gerrit base URL from the given change URL.
local function get_gerrit_base_url(change_url)
return string.sub(change_url, 1, #change_url - string.find(string.reverse(change_url), "/"))
end
-- Get a URL for a Gerrit query.
local function get_query_url(base_url, query, ...)
return string.format("%s/q/%s... | improve approvals formatting | improve approvals formatting
* fix handling old values
* don't show labels that didn't change
* sort labels by type
| Lua | apache-2.0 | boxdot/gerritbot-rs,boxdot/gerritbot-rs,boxdot/gerritbot-rs |
4f58b097785c5cf9384bdc44a9f8324a22422e7a | site/api/mbox.lua | site/api/mbox.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 Apache License, Version 2.0
(the "License"); you may not use ... | --[[
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 Apache License, Version 2.0
(the "License"); you may not use ... | Unused requires; fix comment | Unused requires; fix comment | Lua | apache-2.0 | jimjag/ponymail,quenda/ponymail,quenda/ponymail,jimjag/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,jimjag/ponymail,Humbedooh/ponymail,quenda/ponymail,jimjag/ponymail |
97ae2d892811d4d56ce051ebca59082c074682be | gjk.lua | gjk.lua | --[[
Copyright (c) 2012 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | --[[
Copyright (c) 2012 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | Fix commit adfe9a9a breaking EPA. | Fix commit adfe9a9a breaking EPA.
| Lua | mit | aswyk/botrot |
2794f6a99bd4057e9439c0e08b0ad9134f89a077 | src/core/link.lua | src/core/link.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local debug = _G.developer_debug
local shm = require("core.shm")
local ffi = require("ffi")
local C = ffi.C
local packet = require("core.packet")
require("core.packet_h")
local counter = require("core.counter"... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local debug = _G.developer_debug
local shm = require("core.shm")
local ffi = require("ffi")
local C = ffi.C
local packet = require("core.packet")
require("core.packet_h")
local counter = require("core.counter"... | core.link: free any packets left in link when freeing link | core.link: free any packets left in link when freeing link
Due to how the engine works, the case that a link is non-empty between
breaths is rare (specifically, it should only occur when an app pushes
to a “slow” output interface). That’s probably why this went unnoticed
until now. I don’t even have a case that trigge... | Lua | apache-2.0 | Igalia/snabb,Igalia/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,eugeneia/snabb,Igalia/snabbswitch,eugeneia/snabb,dpino/snabb,eugeneia/snabb,alexandergall/snabbswitch,Igalia/snabb,SnabbCo/snabbswitch,snabbco/snabb,Igalia/snabbswitch,dpino/snabbswitch,dpino/snabb,Snabb... |
ed63b2a1b158a0837edad1dc6111f37e27cc66b9 | helper.lua | helper.lua | -- Helper Module
--
local setup = require "setup"
local dbmodule = require "dbmodule"
local config = require "config"
scriptdb = config.scriptdb
local helper = {}
helper.mainMenu = {"Help (h)", "Initial Setup (i)", "Search by Name of Script (s)", "Search by Category (c)", "Create script.db backup (b)", "Exit (q)"}
hel... | -- Helper Module
--
local setup = require "setup"
local dbmodule = require "dbmodule"
local config = require "config"
scriptdb = config.scriptdb
local helper = {}
helper.mainMenu = {"Help (h)", "Initial Setup (i)", "Search by Name of Script (s)", "Search by Category (c)", "Create script.db backup (b)", "Exit (q)"}
hel... | fixing call functions | fixing call functions
| Lua | apache-2.0 | JKO/nsearch,JKO/nsearch |
9f3030d04618a29f0f97c1cb491425ab85283e05 | src/soul.lua | src/soul.lua | local soul = {}
local conversation = require("conversation")
local utils = require("utils")
local lfs = require("lfs")
commands = {}
for file in lfs.dir("commands") do
local command = file:match("^(.+).lua")
if (command) then
local path = "commands." .. command
package.loaded[path] = nil
... | local soul = {}
local conversation = require("conversation")
local utils = require("utils")
local lfs = require("lfs")
commands = {}
for file in lfs.dir("commands") do
local command = file:match("^(.+).lua")
if (command) then
local path = "commands." .. command
package.loaded[path] = nil
... | fix: indexed nil value in conversation | fix: indexed nil value in conversation
| Lua | apache-2.0 | SJoshua/Project-Small-R |
1304dbc73cb92e6d9c6df7890ca37220c00d43d5 | core/configmanager.lua | core/configmanager.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 _G = _G;
local setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type, pairs, ta... | -- 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 _G = _G;
local setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type, pairs, ta... | configmanager: Fix very wacky indentation | configmanager: Fix very wacky indentation
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.