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 |
|---|---|---|---|---|---|---|---|---|---|
a3c3f884bdd77c6e7c7dc71e0854a7e75a885fd3 | item/id_9_saw.lua | item/id_9_saw.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 testing function | Fix testing function
| Lua | agpl-3.0 | KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content |
c0745c508826c3feb49b1a35d7a9a9ebdfe11ba5 | kong/cmd/quit.lua | kong/cmd/quit.lua | local nginx_signals = require "kong.cmd.utils.nginx_signals"
local conf_loader = require "kong.conf_loader"
local pl_path = require "pl.path"
local kill = require "kong.cmd.utils.kill"
local log = require "kong.cmd.utils.log"
local function execute(args)
log.disable()
-- retrieve default prefix or use given one
... | local nginx_signals = require "kong.cmd.utils.nginx_signals"
local conf_loader = require "kong.conf_loader"
local pl_path = require "pl.path"
local kill = require "kong.cmd.utils.kill"
local log = require "kong.cmd.utils.log"
local function execute(args)
log.disable()
-- retrieve default prefix or use given one
... | fix(cli) log forceful shutdown message upon SIGQUIT timeout | fix(cli) log forceful shutdown message upon SIGQUIT timeout
The CLI `quit` command would even on a forceful exit still
print a 'graceful shutdown' message.
From #3061 | Lua | apache-2.0 | Kong/kong,jebenexer/kong,Kong/kong,Kong/kong,Mashape/kong |
1a8ead3db02a88c5527f15ef878288b6d82c0811 | mods/BeardLib-Editor/EditorCore.lua | mods/BeardLib-Editor/EditorCore.lua | if not _G.BeardLibEditor then
_G.BeardLibEditor = ModCore:new(ModPath .. "mod_config.xml")
local self = BeardLibEditor
self.HooksDirectory = self.ModPath .. "Hooks/"
self.ClassDirectory = self.ModPath .. "Classes/"
self.managers = {}
self._replace_script_data = {}
self.DBPaths =... | if not _G.BeardLibEditor then
_G.BeardLibEditor = ModCore:new(ModPath .. "mod_config.xml")
local self = BeardLibEditor
self.HooksDirectory = self.ModPath .. "Hooks/"
self.ClassDirectory = self.ModPath .. "Classes/"
self.managers = {}
self._replace_script_data = {}
self.DBPaths =... | Fix crash due to missing hashlist | Fix crash due to missing hashlist
| Lua | mit | simon-wh/PAYDAY-2-BeardLib-Editor |
41045dab992ed26828916d21e889102ded4df1e4 | frontend/device/kobo/powerd.lua | frontend/device/kobo/powerd.lua | local BasePowerD = require("device/generic/powerd")
local KoboPowerD = BasePowerD:new{
fl_min = 0, fl_max = 100,
flIntensity = 20,
restore_settings = true,
fl = nil,
batt_capacity_file = "/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/capacity",
is_charging_file = "/sys/devices/... | local BasePowerD = require("device/generic/powerd")
local KoboPowerD = BasePowerD:new{
fl_min = 0, fl_max = 100,
flIntensity = 20,
restore_settings = true,
fl = nil,
batt_capacity_file = "/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/capacity",
is_charging_file = "/sys/devices/... | Fix charging detection for Kobo devices | Fix charging detection for Kobo devices
I've tested this on a N905C. I assume this implementation never
worked (since charge_now is supposed to show state of charge), but
it would be useful to get a confirmation.
| Lua | agpl-3.0 | koreader/koreader,lgeek/koreader,Frenzie/koreader,Markismus/koreader,mihailim/koreader,koreader/koreader,robert00s/koreader,chrox/koreader,Hzj-jie/koreader,Frenzie/koreader,poire-z/koreader,frankyifei/koreader,ashhher3/koreader,poire-z/koreader,noname007/koreader,ashang/koreader,chihyang/koreader,NickSavage/koreader,pa... |
daac965de5a85233dd2c9e2097441be7969ca8c4 | ffi/framebuffer_linux.lua | ffi/framebuffer_linux.lua | local ffi = require("ffi")
local bit = require("bit")
local BB = require("ffi/blitbuffer")
require("ffi/linux_fb_h")
require("ffi/posix_h")
local framebuffer = {
device_node = "/dev/fb0",
fd = -1,
fb_size = nil,
data = nil,
}
--[[
The raw framebuffer memory is managed through Blitbuffer. When creati... | local ffi = require("ffi")
local bit = require("bit")
local BB = require("ffi/blitbuffer")
require("ffi/linux_fb_h")
require("ffi/posix_h")
local framebuffer = {
device_node = "/dev/fb0",
fd = -1,
fb_size = nil,
data = nil,
}
--[[
The raw framebuffer memory is managed through Blitbuffer. When creati... | framebuffer_linux(fix): compare pointer properly in mmap assert | framebuffer_linux(fix): compare pointer properly in mmap assert
| Lua | agpl-3.0 | Frenzie/koreader-base,koreader/koreader-base,apletnev/koreader-base,houqp/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,koreader/koreader-base,koreader/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,houqp/koreader-base,NiLuJe/koreader-base,koreader/koreade... |
1d0218df9840b90c387f8c94ca2166feb07a8385 | xmake/platforms/mingw/load.lua | xmake/platforms/mingw/load.lua | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | fix yasm arch for mingw | fix yasm arch for mingw
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake |
c914ec09d85ee9265b52f3a413464a54d00272d9 | 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
local fd = io.open(list[i])
if fd then
fd:close()
assert(nya... | 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... | Fixed open.lua could not open folders | Fixed open.lua could not open folders
Revert "Fixed open.lua did not print error when wildcard did not match anyfiles."
This reverts commit 119a5b069b9aaba108c4eef7ff817e952eb2a2f9.
| Lua | bsd-3-clause | hattya/nyagos,zetamatta/nyagos,kissthink/nyagos,kissthink/nyagos,nocd5/nyagos,tyochiai/nyagos,tsuyoshicho/nyagos,kissthink/nyagos,hattya/nyagos,hattya/nyagos |
66e6e4575f730b2b5221ac058ae2b6aea667f5a2 | lua/entities/gmod_wire_starfall_processor/init.lua | lua/entities/gmod_wire_starfall_processor/init.lua |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
include("libtransfer/libtransfer.lua")
assert(SF, "Starfall didn't load correctly!")
local context = SF.CreateContext()
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveTyp... |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
include("libtransfer/libtransfer.lua")
assert(SF, "Starfall didn't load correctly!")
ENT.WireDebugName = "Starfall Processor"
ENT.OverlayDelay = 0
local context = SF.CreateContext()
local name = n... | Processor's overlay fix. Made it show current ops. | Processor's overlay fix. Made it show current ops.
| Lua | bsd-3-clause | Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Xandaros/Starfall |
257e3ca0c2f2bda24b79efe110f8e996c2889237 | src/roslua/publisher.lua | src/roslua/publisher.lua |
----------------------------------------------------------------------------
-- publisher.lua - Topic publisher
--
-- Created: Mon Jul 27 17:04:24 2010 (at Intel Research, Pittsburgh)
-- License: BSD, cf. LICENSE file of roslua
-- Copyright 2010 Tim Niemueller [www.niemueller.de]
-- 2010 Carnegie Me... |
----------------------------------------------------------------------------
-- publisher.lua - Topic publisher
--
-- Created: Mon Jul 27 17:04:24 2010 (at Intel Research, Pittsburgh)
-- License: BSD, cf. LICENSE file of roslua
-- Copyright 2010 Tim Niemueller [www.niemueller.de]
-- 2010 Carnegie Me... | publisher: fix latching (typo) | publisher: fix latching (typo)
| Lua | bsd-3-clause | timn/roslua |
87ea426a55defb0842fbef13fb2fd7e2e22fe9c6 | nodes/status_bar/node.lua | nodes/status_bar/node.lua | --RasPegacy v0.1
--Status Bar Child
--Git is painful...
gl.setup(720, 40)
node.alias("status_bar")
-- good place to display Raspberry Pi and/or Subaru logo(s)
bg = resource.load_image("bg_bottom.png")
RPi = resource.load_image("RPi_small.png")
Subaru = resource.load_image("Subaru_Logo.png")
local font = resource.lo... | --RasPegacy v0.1
--Status Bar Child
--Git is painful...
gl.setup(720, 40)
node.alias("status_bar")
-- good place to display Raspberry Pi and/or Subaru logo(s)
bg = resource.load_image("bg_bottom.png")
RPi = resource.load_image("RPi_small.png")
Subaru = resource.load_image("Subaru_Logo.png")
local font = resource.lo... | fixed undefined locals and truthed msg | fixed undefined locals and truthed msg | Lua | apache-2.0 | sommersoft/RasPegacy |
56e2ecc9687dd8756d3ed1a0cc1ec331a3ba4d04 | spec/parsers/source_spec.lua | spec/parsers/source_spec.lua | local parser = require("fusion.core.parsers.source")
local lexer = require("fusion.core.lexer")
describe("parsers/source", function()
it("can compile FusionScript code", function()
local input_stream = coroutine.wrap(function()
coroutine.yield(lexer:match("print('test');")[1])
end)
parser.compile(input_strea... | local parser = require("fusion.core.parsers.source")
local lexer = require("fusion.core.lexer")
describe("parsers/source", function()
it("can compile FusionScript code", function()
parser.compile(lexer:match("print('test');"), function(output)
assert.same("print(\"test\")", output)
end)
end)
it("can compile ... | parsers/source_spec: fix .compile() | parsers/source_spec: fix .compile()
| Lua | mit | RyanSquared/FusionScript |
886548d99ba775b13a890373db577ccb0a22ef30 | src/api-umbrella/cli/run.lua | src/api-umbrella/cli/run.lua | local path = require "pl.path"
local setup = require "api-umbrella.cli.setup"
local unistd = require "posix.unistd"
local function start_perp(config, options)
local perp_base = path.join(config["etc_dir"], "perp")
local args = {
"-0", "api-umbrella (perpboot)",
"-P", "/tmp/perpboot.lock",
"perpboot",
... | local path = require "pl.path"
local setup = require "api-umbrella.cli.setup"
local unistd = require "posix.unistd"
local function start_perp(config, options)
local perp_base = path.join(config["etc_dir"], "perp")
local args = {
"-0", "api-umbrella (perpboot)",
"-P", "/tmp/perpboot.lock",
"perpboot",
... | Fix backgrounding for "api-umbrella start" command. | Fix backgrounding for "api-umbrella start" command.
| Lua | mit | apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,apinf/api-umbrella |
335994f0d74d0a647c40e27d0995519122739dc3 | otouto/plugins/luarun.lua | otouto/plugins/luarun.lua | local luarun = {}
function luarun:init(config)
luarun.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('lua', true):t('return', true).table
if config.luarun_serpent then
serpent = require('serpent')
luarun.serialize = function(t)
return serpent.block(t, {comment=false})
end
else
JSON =... | local luarun = {}
function luarun:init(config)
luarun.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('lua', true):t('return', true).table
if config.luarun_serpent then
serpent = require('serpent')
luarun.serialize = function(t)
return serpent.block(t, {comment=false})
end
else
JSON =... | Fixe Luarun | Fixe Luarun
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
0d7a4b3429eaffac4a5a60db8ca466ab04f33acb | lunaci/tasks/build.lua | lunaci/tasks/build.lua | -- LunaCI build task
-- Part of the LuaDist project - http://luadist.org
-- Author: Martin Srank, hello@smasty.net
-- License: MIT
module("lunaci.tasks.build", package.seeall)
local build_package = function(package, target, deploy_dir, manifest)
local config = require "lunaci.config"
local utils = require "l... | -- LunaCI build task
-- Part of the LuaDist project - http://luadist.org
-- Author: Martin Srank, hello@smasty.net
-- License: MIT
module("lunaci.tasks.build", package.seeall)
local build_package = function(package, target, deploy_dir, manifest)
local config = require "lunaci.config"
local utils = require "l... | Fix build task error handling | Fix build task error handling
| Lua | mit | smasty/LunaCI,smasty/LunaCI |
57dc5697711b96b9370a148ae36cf3a7929dd790 | Quadtastic/common.lua | Quadtastic/common.lua | local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local libquadtastic = require(current_folder.. ".libquadtastic")
-- Utility functions that don't deserve their own module
local common = {}
-- Load imagedata from outside the game's source and save folder
function common.load_imagedata(filepath)
loc... | local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local libquadtastic = require(current_folder.. ".libquadtastic")
-- Utility functions that don't deserve their own module
local common = {}
-- Load imagedata from outside the game's source and save folder
function common.load_imagedata(filepath)
loc... | Fix exporter not being able to handle keys with non-alphanumeric characters | Fix exporter not being able to handle keys with non-alphanumeric characters
| Lua | mit | 25A0/Quadtastic,25A0/Quadtastic |
ec4145a3efd3b94277ac861d3a733619b2a48b31 | SpatialMaxPooling.lua | SpatialMaxPooling.lua | local C = ccn2.C
local SpatialMaxPooling, parent = torch.class('ccn2.SpatialMaxPooling', 'nn.Module')
function SpatialMaxPooling:__init(kW, dW)
parent.__init(self)
self.kW = kW
self.dW = dW or kW
self.output = torch.Tensor()
self.gradInput = torch.Tensor()
self:cuda()
end
function SpatialMaxPool... | local C = ccn2.C
local SpatialMaxPooling, parent = torch.class('ccn2.SpatialMaxPooling', 'nn.Module')
function SpatialMaxPooling:__init(kW, dW)
parent.__init(self)
self.kW = kW
self.dW = dW or kW
self.output = torch.Tensor()
self.gradInput = torch.Tensor()
self:cuda()
end
function SpatialMaxPool... | removed unused local fixed stride bug - outputX should be ceiled instead of floored | removed unused local
fixed stride bug - outputX should be ceiled instead of floored
| Lua | apache-2.0 | monikajhuria/cuda-convnet2.torch-master_update,szagoruyko/cuda-convnet2.torch,szagoruyko/cuda-convnet2.torch,szagoruyko/cuda-convnet2.torch,monikajhuria/cuda-convnet2.torch-master_update,ajtao/my_ccn2_t,soumith/cuda-convnet2.torch,monikajhuria/cuda-convnet2.torch-master_update,soumith/cuda-convnet2.torch,soumith/cuda-c... |
653bbbfec00a12ff7783cc74a4315cb7151fe064 | src/cosy/configuration/init.lua | src/cosy/configuration/init.lua | local Loader = require "cosy.loader"
local I18n = require "cosy.i18n"
local Logger = require "cosy.logger"
local Layer = require "layeredata"
local layers = require "cosy.configuration.layers"
local i18n = I18n.load "cosy.configuration"
layers.default.locale = "en"
layers.default.__label__ = "configuration"
... | local Loader = require "cosy.loader"
local I18n = require "cosy.i18n"
local Logger = require "cosy.logger"
local Layer = require "layeredata"
local layers = require "cosy.configuration.layers"
local Lfs = require "lfs"
local i18n = I18n.load "cosy.configuration"
layers.default.locale = "en"
layers.default.... | Compute /etc/cosy.conf path using prefix. | Compute /etc/cosy.conf path using prefix.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
1776136d37e8f9983984bca18fae4c2198091af7 | premake.lua | premake.lua | -- TODO: Because there is plenty ...
-- 1. What about other IDE's that Premake supports? e.g. codeblocks, xcode
-- 2. x86/x64 switching
-- 3. get macosx library for zlib
-- 4. actually test linux/mac build configurations
-- 5. clean this file up because I'm sure it could be organized better
--
-- NOTE: I... | -- TODO: Because there is plenty ...
-- 1. x86/x64 switching
-- 2. actually test linux build configuration
-- 3. clean this file up because I'm sure it could be organized better
-- 4. consider maybe switching to CMake because of the ugly hack below
--
-- NOTE: I am intentionally leaving out a "windows+gmake... | add ugly hack for FBX SDK path containing spaces when generating Xcode project files | add ugly hack for FBX SDK path containing spaces when generating Xcode project files
I need to fix this up so it's more general-purpose or switch to using CMake instad
| Lua | apache-2.0 | lvlonggame/fbx-conv,xoppa/fbx-conv,andyvand/fbx-conv,davidedmonds/fbx-conv,reduz/fbx-conv,iichenbf/fbx-conv,cocos2d-x/fbx-conv,super626/fbx-conv,cocos2d-x/fbx-conv,Maxwolf/Multimap.FBXConv,xoppa/fbx-conv,arisecbf/fbx-conv,lvlonggame/fbx-conv,super626/fbx-conv,Maxwolf/Multimap.FBXConv,davidedmonds/fbx-conv,andyvand/fbx-... |
38a70f0dc8bf66596bc8408ff9982a9b076d9131 | src_trunk/resources/admin-system/c_overlay.lua | src_trunk/resources/admin-system/c_overlay.lua | local sx, sy = guiGetScreenSize()
local localPlayer = getLocalPlayer()
local statusLabel = nil
local openReports = 0
local handledReports = 0
local unansweredReports = {}
local ownReports = {}
-- Admin Titles
function getAdminTitle(thePlayer)
local adminLevel = tonumber(getElementData(thePlayer, "adminlev... | local sx, sy = guiGetScreenSize()
local localPlayer = getLocalPlayer()
local statusLabel = nil
local openReports = 0
local handledReports = 0
local unansweredReports = {}
local ownReports = {}
-- Admin Titles
function getAdminTitle(thePlayer)
local adminLevel = tonumber(getElementData(thePlayer, "adminlev... | bugfix | bugfix
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1932 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
7360cfb4cf2c7dd8c73adf45e31a04811a745250 | spec/cache_spec.lua | spec/cache_spec.lua | local cache = require "luacheck.cache"
local fs = require "luacheck.fs"
local lfs = require "lfs"
local sha1 = require "luacheck.vendor.sha1"
setup(function()
end)
describe("cache", function()
describe("get_default_dir", function()
it("returns a string", function()
assert.is_string(cache.get_defaul... | local cache = require "luacheck.cache"
local fs = require "luacheck.fs"
local lfs = require "lfs"
local sha1 = require "luacheck.vendor.sha1"
setup(function()
end)
describe("cache", function()
describe("get_default_dir", function()
it("returns a string", function()
assert.is_string(cache.get_defaul... | Fix spec for windows | Fix spec for windows
| Lua | mit | mpeterv/luacheck,xpol/luacheck,xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck,xpol/luacheck |
e7d71c4ab698a20c560f43545704d3b7609dfd59 | objects/internal/scrollable/scrollbody.lua | objects/internal/scrollable/scrollbody.lua | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- scrollbar class
local newobject = loveframes.NewObject("scrollbody", "loveframes_object_scrollbody", true)
--[[---------... | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- scrollbar class
local newobject = loveframes.NewObject("scrollbody", "loveframes_object_scrollbody", true)
--[[---------... | Fix scrollbutton positioning issues | Fix scrollbutton positioning issues
| Lua | mit | SimLeek/the-Open-Source-Pony-Game |
d39fcf298c8ad026c92ba5fe600769706a5c9b0b | data/level.lua | data/level.lua | photon.gui.set_message("first I want you to gather 12 tnt...", 4)
photon.player.set_location(5, 2)
photon.level.set_victory_condition(function()
if photon.player.get_item_count("tnt") >= 12 then
photon.player.snap_to_beam(false)
photon.gui.set_message("good work! now destroy all the targets...", ... | -- sets the popup message with a timeout of 4 seconds.
photon.gui.set_message("first I want you to gather 12 tnt...", 4)
-- sets the photon's location.
photon.player.set_location(5, 2)
-- victory condition function returns > 0 on victory, < 0 on defeat and 0 otherwise.
photon.level.set_victory_condition(function()
... | added comments to level.lua fixed spelling of "congratulations" | added comments to level.lua
fixed spelling of "congratulations"
| Lua | mit | chipgw/photon-legacy,chipgw/photon-legacy |
7d1828ea8d5b1417bb95f5b6679f572d68956774 | busted/outputHandlers/junit.lua | busted/outputHandlers/junit.lua | local xml = require 'pl.xml'
local hostname = assert(io.popen('uname -n')):read('*l')
return function(options, busted)
local handler = require 'busted.outputHandlers.base'(busted)
local node
handler.testEnd = function(element, parent, status)
node.attr.tests = node.attr.tests + 1
node:addtag('testcase'... | local xml = require 'pl.xml'
local socket = require("socket")
local string = require("string")
return function(options, busted)
local handler = require 'busted.outputHandlers.base'(busted)
local xml_doc
local suiteStartTime, suiteEndTime
handler.suiteStart = function()
suiteStartTime = socket.gettime()
... | Fix junit -- @benbarbour | Fix junit -- @benbarbour
| Lua | mit | leafo/busted,sobrinho/busted,Olivine-Labs/busted,DorianGray/busted,istr/busted,xyliuke/busted,o-lim/busted,nehz/busted,ryanplusplus/busted,mpeterv/busted |
0a9d0cbd4e602936d76168c75099ffaeaf157a60 | genie.lua | genie.lua | function linkMono()
libdirs {[[c:/Program Files/Mono/lib/]]}
end
project "lumixengine_csharp"
libType()
files {
"src/**.c",
"src/api.txt",
"src/**.cpp",
"src/**.h",
"src/**.inl",
"genie.lua"
}
includedirs { "../lumixengine_csharp/src", [[c:/Program Files/Mono/include/mono-2.0]] }
buildoptions { "/wd... | function linkMono()
libdirs {[[c:/Program Files/Mono/lib/]]}
end
project "lumixengine_csharp"
libType()
files {
"src/**.c",
"src/api.txt",
"src/**.cpp",
"src/**.h",
"src/**.inl",
"genie.lua"
}
includedirs { "../lumixengine_csharp/src", [[c:/Program Files/Mono/include/mono-2.0]] }
buildoptions { "/wd... | fixed release build | fixed release build
| Lua | mit | nem0/lumixengine_csharp,nem0/lumixengine_csharp |
ff9da6cb7657704b07ed35b4ffb17b9d2bece43d | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/conntrack.lua | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/conntrack.lua | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: Conntrack entries",
vlabel = "Count",
number_format ... | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: Conntrack entries",
vlabel = "Count",
number_format ... | statistics: fix conntrack regression caused by collectd 5.5.0 | statistics: fix conntrack regression caused by collectd 5.5.0
Collectd 5.5.0 introduced new data to conntrack plugin:
In addition to the number of tracked connections there is also
the static max conntrack value and the calculated use percentage.
Luci's conntrack plugin intrepretes "conntrack-max" as a new data insta... | Lua | apache-2.0 | LuttyYang/luci,hnyman/luci,cshore/luci,bright-things/ionic-luci,artynet/luci,maxrio/luci981213,kuoruan/lede-luci,wongsyrone/luci-1,LuttyYang/luci,981213/luci-1,cappiewu/luci,artynet/luci,chris5560/openwrt-luci,zhaoxx063/luci,kuoruan/luci,ollie27/openwrt_luci,jorgifumi/luci,remakeelectric/luci,daofeng2015/luci,cappiewu/... |
9523035bc9ec53dfc30dbf092525fcf213eff126 | Modules/Utility/Binder.lua | Modules/Utility/Binder.lua | --- Bind class to Roblox Instance
-- @classmod Binder
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CollectionService = game:GetService("CollectionService")
local Maid = require("Maid")
local fastSpawn = require("fastSpawn")
local Binder = {}
Binder.__index = Binder
B... | --- Bind class to Roblox Instance
-- @classmod Binder
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CollectionService = game:GetService("CollectionService")
local Maid = require("Maid")
local fastSpawn = require("fastSpawn")
local Binder = {}
Binder.__index = Binder
B... | Fix binder with stuff that takes a while to load and fix spaces -> tabs | Fix binder with stuff that takes a while to load and fix spaces -> tabs
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
21ab12d9e566e1265b2940b149516b888b4bf6ab | lua/framework/graphics/mesh.lua | lua/framework/graphics/mesh.lua | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "class" )
local GL = require( "opengl" )
local ffi = require( "ffi" )
class( "framework.graphics.mesh" )
local mesh = framework... | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "class" )
local GL = require( "opengl" )
local ffi = require( "ffi" )
class( "framework.graphics.mesh" )
local mesh = framework... | Fix crash in mesh:draw() | Fix crash in mesh:draw()
| Lua | mit | Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework |
fa1f4c42a6e73483d8ed6284b177e5648f44a114 | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua | -- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.apcups",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
local voltagesdc = {
title = "%H: Voltages on APC UPS - Battery",
vlabel = "Vo... | -- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.apcups",package.seeall)
function rrdargs( graph, plugin, plugin_instance )
local lu = require("luci.util")
local rv = { }
-- Types and instances supported by APC... | luci-app-statistics: only graph data supported by APC UPS | luci-app-statistics: only graph data supported by APC UPS
Some graph definitions rely on data not supported across all APC UPSes.
Due to recent upstream changes in collectd, the daemon no longer creates
a NaN-filled .rrd file corresponding to any missing UPS data. Depending
on the connected UPS, this may result in som... | Lua | apache-2.0 | chris5560/openwrt-luci,artynet/luci,tobiaswaldvogel/luci,rogerpueyo/luci,nmav/luci,hnyman/luci,artynet/luci,chris5560/openwrt-luci,kuoruan/luci,openwrt-es/openwrt-luci,hnyman/luci,openwrt-es/openwrt-luci,hnyman/luci,artynet/luci,remakeelectric/luci,Noltari/luci,openwrt/luci,kuoruan/lede-luci,kuoruan/luci,tobiaswaldvoge... |
16c5d0e0df2506791614c87eacbf0332e5b32921 | packages/lime-system/files/usr/lib/lua/lime/config.lua | packages/lime-system/files/usr/lib/lua/lime/config.lua | #!/usr/bin/lua
--! LibreMesh is modular but this doesn't mean parallel, modules are executed
--! sequencially, so we don't need to worry about transactionality and all other
--! stuff that affects parrallels database, at moment we don't need parallelism
--! as this is just some configuration stuff and is not performan... | #!/usr/bin/lua
--! LibreMesh is modular but this doesn't mean parallel, modules are executed
--! sequencially, so we don't need to worry about transactionality and all other
--! stuff that affects parrallels database, at moment we don't need parallelism
--! as this is just some configuration stuff and is not performan... | lime-system: flush autogen before modifying it | lime-system: flush autogen before modifying it
This fixes a bug that prevented configs that were autogenerated
to be present in the lime-autogen file. This behaviour is very
confusing as reading the lime-autogen was measlieading.
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
e6a89b30c26bdaa92fb7c5bee3441fad03fa8f27 | xmake.lua | xmake.lua | set_project("UBWindow")
if is_mode("debug") then
add_defines("DEBUG")
set_symbols("debug")
set_optimize("none")
end
if is_mode("release") then
add_defines("NDEBUG")
set_symbols("hidden")
set_optimize("fastest")
set_strip("all")
end
add_includedirs("include")
target("ubwindow")
set_kind("static")
set_targ... | set_project("UBWindow")
if is_mode("debug") then
add_defines("DEBUG")
set_symbols("debug")
set_optimize("none")
end
if is_mode("release") then
add_defines("NDEBUG")
set_symbols("hidden")
set_optimize("fastest")
set_strip("all")
end
add_includedirs("include")
target("ubwindow")
set_kind("static")
set_targe... | Fixed xmake.lua | Fixed xmake.lua
| Lua | mit | yulon/pwre |
405b8e0be24efeab24ff6e842bdb903bf9c005fc | frontend/apps/reader/modules/readercropping.lua | frontend/apps/reader/modules/readercropping.lua | local InputContainer = require("ui/widget/container/inputcontainer")
local UIManager = require("ui/uimanager")
local Geom = require("ui/geometry")
local Event = require("ui/event")
local Screen = require("device").screen
local LeftContainer = require("ui/widget/container/leftcontainer")
local RightContainer = require("... | local InputContainer = require("ui/widget/container/inputcontainer")
local UIManager = require("ui/uimanager")
local Geom = require("ui/geometry")
local Event = require("ui/event")
local Screen = require("device").screen
local LeftContainer = require("ui/widget/container/leftcontainer")
local RightContainer = require("... | fix #1070 by associating conentwidth zoom mode to auto cropping | fix #1070 by associating conentwidth zoom mode to auto cropping
| Lua | agpl-3.0 | apletnev/koreader,NiLuJe/koreader,robert00s/koreader,pazos/koreader,chihyang/koreader,Hzj-jie/koreader,lgeek/koreader,houqp/koreader,chrox/koreader,koreader/koreader,Frenzie/koreader,poire-z/koreader,frankyifei/koreader,koreader/koreader,mihailim/koreader,ashhher3/koreader,poire-z/koreader,Markismus/koreader,noname007/... |
99815793c848a60213174adb2f2dae3eaeac7cd5 | UCDchat/instantMessaging.lua | UCDchat/instantMessaging.lua | -- Cancel in-built MTA messaging
addEventHandler("onPlayerPrivateMessage", root,
function ()
exports.UCDdx:new(source, "This function is not depracated. Use /im <message> instead.", 255, 174, 0)
cancelEvent()
end
)
local antiSpam = {}
local antiSpamTimer = 1000
function clearAntiSpam(plr)
if (antiSpam[plr]) th... | -- Cancel in-built MTA messaging
addEventHandler("onPlayerPrivateMessage", root,
function ()
exports.UCDdx:new(source, "This function is depracated. Use /im <player> <message> instead.", 255, 174, 0)
cancelEvent()
end
)
-- People will use /sms
addCommandHandler("sms",
function (plr)
exports.UCDdx:new(plr, "Th... | UCDchat | UCDchat
- Fixed message that informs players that /pm and /sms are depracated and to use /im.
- Added quick reply (/r and /re)
- Messages are now added to the phone IM gui.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
a07c5f3c480ccfb075ba1cecf9cb90e54b402df3 | kong/plugins/session/schema.lua | kong/plugins/session/schema.lua | local typedefs = require "kong.db.schema.typedefs"
local Schema = require "kong.db.schema"
local utils = require("kong.tools.utils")
local char = string.char
local rand = math.random
local encode_base64 = ngx.encode_base64
local samesite = Schema.define {
type = "string",
default = "Strict",
one_of = {
"Str... | local typedefs = require "kong.db.schema.typedefs"
local Schema = require "kong.db.schema"
local utils = require("kong.tools.utils")
local char = string.char
local rand = math.random
local encode_base64 = ngx.encode_base64
local samesite = Schema.define {
type = "string",
default = "Strict",
one_of = {
"Str... | fix(session) add no_consumer to correct fields | fix(session) add no_consumer to correct fields
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
ef4bf9ea5e551cde69caddc38db84f9adfb8fe38 | mod_register_redirect/mod_register_redirect.lua | mod_register_redirect/mod_register_redirect.lua | -- (C) 2010-2011 Marco Cirillo (LW.Org)
-- (C) 2011 Kim Alvefur
--
-- Registration Redirect module for Prosody
--
-- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration.
local st = require "util.stanza"
local cman = configmanager
function reg_redirect(event)
loca... | -- (C) 2010-2011 Marco Cirillo (LW.Org)
-- (C) 2011 Kim Alvefur
--
-- Registration Redirect module for Prosody
--
-- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration.
local st = require "util.stanza"
local cman = configmanager
function reg_redirect(event)
loca... | mod_register_redirect: rebacked in changeset c6f1427da79d (behaviour fixed). | mod_register_redirect: rebacked in changeset c6f1427da79d (behaviour fixed).
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
99e7449395e61063af3ac5580c6cd3045177297c | plugins/shout.lua | plugins/shout.lua | local command = 'shout <text>'
local doc = [[```
/shout <text>
Shouts something.
```]]
local triggers = {
'^/shout[@'..bot.username..']*'
}
local action = function(msg)
local input = msg.text:input()
if not input then
sendMessage(msg.chat.id, doc, true, msg.message_id, true)
return
end
input = input:trim()... | local command = 'shout <text>'
local doc = [[```
/shout <text>
Shouts something.
```]]
local triggers = {
'^/shout[@'..bot.username..']*'
}
local action = function(msg)
local input = msg.text:input()
if not input then
sendMessage(msg.chat.id, doc, true, msg.message_id, true)
return
end
input = input:trim()... | FIX shout | FIX shout | Lua | agpl-3.0 | TiagoDanin/SiD,Brawl345/Brawlbot-v2,bb010g/otouto,topkecleon/otouto,barreeeiroo/BarrePolice |
a48593c14516ef8a953eed9c36f2d57d5cc9fa00 | module/admin-core/src/controller/admin/index.lua | module/admin-core/src/controller/admin/index.lua | module("ffluci.controller.admin.index", package.seeall)
function action_wizard()
if ffluci.http.formvalue("ip") then
return configure_freifunk()
end
local ifaces = {}
local wldevs = ffluci.model.uci.show("wireless")
if wldevs then
for k, v in pairs(wldevs.wireless) do
if v[".type"] == "wifi-device" the... | module("ffluci.controller.admin.index", package.seeall)
function action_wizard()
if ffluci.http.formvalue("ip") then
return configure_freifunk()
end
local ifaces = {}
local wldevs = ffluci.model.uci.show("wireless")
if wldevs then
for k, v in pairs(wldevs.wireless) do
if v[".type"] == "wifi-device" the... | * Fixed Freifunk wizard | * Fixed Freifunk wizard
| Lua | apache-2.0 | ollie27/openwrt_luci,cshore/luci,maxrio/luci981213,taiha/luci,thess/OpenWrt-luci,Noltari/luci,db260179/openwrt-bpi-r1-luci,bittorf/luci,Sakura-Winkey/LuCI,teslamint/luci,jchuang1977/luci-1,oyido/luci,aa65535/luci,artynet/luci,Noltari/luci,jlopenwrtluci/luci,florian-shellfire/luci,daofeng2015/luci,Hostle/openwrt-luci-mu... |
febe973b5b91d5bbf9c11a5e0650335fc37bd966 | src/nodes/floor.lua | src/nodes/floor.lua | local Floor = {}
Floor.__index = Floor
function Floor.new(node, collider)
local floor = {}
setmetatable(floor, Floor)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
local polygon = node.polyline or node.polygon
local v... | local Floor = {}
Floor.__index = Floor
function Floor.new(node, collider)
local floor = {}
setmetatable(floor, Floor)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
local polygon = node.polyline or node.polygon
local v... | Fix #585. Players are now flinged correctly | Fix #585. Players are now flinged correctly
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua |
4018371abb8133b633b8395cd354b35c6577f78f | mod_smacks/mod_smacks.lua | mod_smacks/mod_smacks.lua | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmlns_sm };
local max_unacked_stanzas =... | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmlns_sm };
local max_unacked_stanzas =... | mod_smacks: Fix to reply to stream for s2s sessions | mod_smacks: Fix to reply to stream for s2s sessions
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
6de204cc2254234f8c1caa418ac36d75ee3b0488 | init.lua | init.lua | ----------------------------------------------------------------------
-- sys - a package that provides simple system (unix) tools
----------------------------------------------------------------------
local os = require 'os'
local io = require 'io'
local paths = require 'paths'
sys = {}
----------------------------... | ----------------------------------------------------------------------
-- sys - a package that provides simple system (unix) tools
----------------------------------------------------------------------
local os = require 'os'
local io = require 'io'
local paths = require 'paths'
sys = {}
----------------------------... | fixing readwhat option | fixing readwhat option | Lua | bsd-3-clause | torch/sys |
24f17b1446d10bdf1638ff1d84f6dce66be45add | home/.hammerspoon/windows.lua | home/.hammerspoon/windows.lua | -- copied and (lightly) adapted from
-- https://github.com/jasonrudolph/keyboard/blob/master/hammerspoon/windows.lua
hs.window.animationDuration = 0
-- +-----------------+
-- | | |
-- | HERE | |
-- | | |
-- +-----------------+
function hs.window.left(win)
local f = win:frame()
... | -- copied and (lightly) adapted from
-- https://github.com/jasonrudolph/keyboard/blob/master/hammerspoon/windows.lua
-- then I applied https://github.com/jasonrudolph/keyboard/pull/73 manually
-- what a mess
hs.window.animationDuration = 0
window = hs.getObjectMetatable("hs.window")
-- +-----------------+
-- | ... | 🐛 fix issues w/hammerspoon after hs upgrade | 🐛 fix issues w/hammerspoon after hs upgrade
| Lua | bsd-3-clause | jacobian/dotfiles,jacobian/dotfiles,jacobian/dotfiles,jacobian/dotfiles |
73344eac0f5cb651724b22f2620320b253783872 | src/common/premake.lua | src/common/premake.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fix cpp dialects insert path | Fix cpp dialects insert path
| Lua | mit | Zefiros-Software/ZPM |
02cade60f8f40b84c8d65ea2616a317b1fa9590e | SpatialBatchNormalization.lua | SpatialBatchNormalization.lua | local SpatialBatchNormalization, parent = torch.class('cudnn.SpatialBatchNormalization', 'nn.SpatialBatchNormalization')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
function SpatialBatchNormalization:__init(nFeature, eps, momentum, affine)
parent.__init(self, nFeature, eps, momentum, affine)
self.m... | local SpatialBatchNormalization, parent = torch.class('cudnn.SpatialBatchNormalization', 'nn.SpatialBatchNormalization')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
SpatialBatchNormalization.__version = 2
function SpatialBatchNormalization:__init(nFeature, eps, momentum, affine)
parent.__init(self, n... | serialization fix for older models | serialization fix for older models
| Lua | bsd-3-clause | phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch |
627de484c7d08b7e3f61b5d0c19fd60cbb32aea5 | files/hammerspoon.lua | files/hammerspoon.lua | -- Global Quake mode for Alacritty on Mac OS; Refs:
-- https://github.com/alacritty/alacritty/issues/862
-- https://gist.github.com/programus/d3bf9c6b8f9b7648891d1f59b665b35e
-- https://world.hey.com/jonash/alacritty-drop-down-guake-quake-style-terminal-setup-on-macos-6eef7d73
-- This package needs to be extracted/in... | -- Global Quake mode for Alacritty on Mac OS; Refs:
-- https://github.com/alacritty/alacritty/issues/862
-- https://gist.github.com/programus/d3bf9c6b8f9b7648891d1f59b665b35e
-- https://world.hey.com/jonash/alacritty-drop-down-guake-quake-style-terminal-setup-on-macos-6eef7d73
-- This package needs to be extracted/in... | Hammerspoon emacs-everywhere | Hammerspoon emacs-everywhere
Kinda buggy
| Lua | unlicense | gabrielalmeida/dotfiles |
5136f2b4bf6626313aeeda2bab7245a3ae0840f1 | app/commands/run.lua | app/commands/run.lua | local uv = require('uv')
local co = coroutine.running()
local env = require('env')
local newEnv = {}
local keys = env.keys()
for i = 1, #keys do
local key = keys[i]
local value = env.get(key)
if key ~= "LUVI_APP" then
newEnv[#newEnv + 1] = key .. "=" .. value
end
end
newEnv[#newEnv + 1] = "LUVI_APP=" .. u... | local uv = require('uv')
local co = coroutine.running()
local env = require('env')
local newEnv = {}
local keys = env.keys()
for i = 1, #keys do
local key = keys[i]
local value = env.get(key)
if key ~= "LUVI_APP" then
newEnv[#newEnv + 1] = key .. "=" .. value
end
end
newEnv[#newEnv + 1] = "LUVI_APP=" .. u... | Fix argument passing in lit run | Fix argument passing in lit run
| Lua | apache-2.0 | 1yvT0s/lit,kaustavha/lit,luvit/lit,james2doyle/lit,squeek502/lit,zhaozg/lit,kidaa/lit,lduboeuf/lit,DBarney/lit |
3ac83e8cd3d9d3fe76263501fbafd092a9a47a03 | test/tools.lua | test/tools.lua | odbc = require "odbc"
require "config"
function run_test(arg)
local _, emsg = xpcall(function()
lunit.main(arg)
end, debug.traceback)
if emsg then
print(emsg)
os.exit(1)
end
if lunit.stats.failed > 0 then
os.exit(1)
end
end
function is_dsn_exists(env, dsn_name)
local cnt... | odbc = require "odbc"
require "config"
IS_LUA52 = _VERSION >= 'Lua 5.2'
function run_test(arg)
local _, emsg = xpcall(function()
lunit.main(arg)
end, debug.traceback)
if emsg then
print(emsg)
os.exit(1)
end
if lunit.stats.failed > 0 then
os.exit(1)
end
end
function is_ds... | Fix. Test can be run one by one. | Fix. Test can be run one by one.
| Lua | mit | moteus/lua-odbc,moteus/lua-odbc,moteus/lua-odbc |
85f4ad7eebf5e7778c487cf6edbd8dc97fb0f40c | src/plugins/lua/fann_scores.lua | src/plugins/lua/fann_scores.lua | --[[
Copyright (c) 2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
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 ... | --[[
Copyright (c) 2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
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] Rework fann learning | [Fix] Rework fann learning
| Lua | bsd-2-clause | AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,... |
875ba15c4c2196f08926ce84c4839ae6c3d3edb2 | kong/templates/nginx_kong_stream.lua | kong/templates/nginx_kong_stream.lua | return [[
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
lua_package_path '${{LUA_PACKAGE_PATH}};;';
lua_package_cpath '${{LUA_PACKAGE_CPATH}};;';
lua_socket_pool_size ${{LUA_SOCKET_POOL_SIZE}};
lua_socket... | return [[
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
lua_package_path '${{LUA_PACKAGE_PATH}};;';
lua_package_cpath '${{LUA_PACKAGE_CPATH}};;';
lua_socket_pool_size ${{LUA_SOCKET_POOL_SIZE}};
lua_socket... | fix(template) fix iterator in stream shdict (#7078) | fix(template) fix iterator in stream shdict (#7078)
`kong.pdk.node` iterrates through ngx.shared magic table to
get list of shdict metrics, implement the __pairs metamethod so
it's happy.
Co-authored-by: Datong Sun <88ea7fe5b18d86dd626610096bab9e86520f1a58@konghq.com> | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
79c8a8023da5c9eee3d37de3ecce533977458c9d | kong/templates/nginx_kong.lua | kong/templates/nginx_kong.lua | return [[
charset UTF-8;
> if anonymous_reports then
${{SYSLOG_REPORTS}}
> end
error_log ${{PROXY_ERROR_LOG}} ${{LOG_LEVEL}};
> if nginx_optimizations then
>-- send_timeout 60s; # default value
>-- keepalive_timeout 75s; # default value
>-- client_body_timeout 60s; # default value
>-- client_header_ti... | return [[
charset UTF-8;
> if anonymous_reports then
${{SYSLOG_REPORTS}}
> end
error_log ${{PROXY_ERROR_LOG}} ${{LOG_LEVEL}};
> if nginx_optimizations then
>-- send_timeout 60s; # default value
>-- keepalive_timeout 75s; # default value
>-- client_body_timeout 60s; # default value
>-- client_header_ti... | fix(nginx-conf) add missing 'default_type' directive (#3542) | fix(nginx-conf) add missing 'default_type' directive (#3542)
Likely the result of a merge gone wrong, since this value was added in
cbe4a612ee85b395d176ab85b38561a3839db183. | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong,Mashape/kong |
acbec658adfe01fd22470533594a47175b1bc0fd | src/tools/msc.lua | src/tools/msc.lua | --
-- msc.lua
-- Interface for the MS C/C++ compiler.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
premake.tools.msc = {}
local msc = premake.tools.msc
local project = premake.project
local config = premake.config
--
-- Returns list of C preprocessor flags for a configuration.
--
functi... | --
-- msc.lua
-- Interface for the MS C/C++ compiler.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
premake.tools.msc = {}
local msc = premake.tools.msc
local project = premake.project
local config = premake.config
--
-- Returns list of C preprocessor flags for a configuration.
--
functi... | Fix broken MSC exception handling flag | Fix broken MSC exception handling flag
| Lua | bsd-3-clause | sleepingwit/premake-core,Tiger66639/premake-core,prapin/premake-core,soundsrc/premake-core,CodeAnxiety/premake-core,prapin/premake-core,tvandijck/premake-core,mendsley/premake-core,LORgames/premake-core,noresources/premake-core,noresources/premake-core,jsfdez/premake-core,sleepingwit/premake-core,mendsley/premake-core,... |
1570ee6835919e53d789e5b0d8519e3664818bf2 | test/bench.lua | test/bench.lua | #!/usr/bin/env lua
local basemem = collectgarbage("count")
local document, duration
do
local parse = require "gumbo.parse"
local have_socket, socket = pcall(require, "socket")
local clock = have_socket and socket.gettime or os.clock
local filename = assert(arg[1], "arg[1] is nil; expecting filename")
... | #!/usr/bin/env lua
local basemem = collectgarbage("count")
local document, duration
do
local parse = require "gumbo.parse"
local have_socket, socket = pcall(require, "socket")
local clock = have_socket and socket.gettime or os.clock
local filename = assert(arg[1], "arg[1] is nil; expecting filename")
... | Fix assertion in test/bench.lua | Fix assertion in test/bench.lua
| Lua | apache-2.0 | craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo |
f1be0e8b1f59e2a378a4e82a43414c4fa7f62603 | onmt/modules/BiEncoder.lua | onmt/modules/BiEncoder.lua | local function reverseInput(batch)
batch.sourceInput, batch.sourceInputRev = batch.sourceInputRev, batch.sourceInput
batch.sourceInputFeatures, batch.sourceInputRevFeatures = batch.sourceInputRevFeatures, batch.sourceInputFeatures
batch.sourceInputPadLeft, batch.sourceInputRevPadLeft = batch.sourceInputRevPadLeft... | local function reverseInput(batch)
batch.sourceInput, batch.sourceInputRev = batch.sourceInputRev, batch.sourceInput
batch.sourceInputFeatures, batch.sourceInputRevFeatures = batch.sourceInputRevFeatures, batch.sourceInputFeatures
batch.sourceInputPadLeft, batch.sourceInputRevPadLeft = batch.sourceInputRevPadLeft... | fix brnn gradInput with additional features | fix brnn gradInput with additional features
| Lua | mit | jsenellart/OpenNMT,cservan/OpenNMT_scores_0.2.0,jungikim/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,jungik... |
fe9c48334b2d75cb0faf85ba121806fe9f0ce774 | lib/lua/lunarender/reader.lua | lib/lua/lunarender/reader.lua | -- part of LunaRender
-- (c) 2015 Mikoláš Štrajt
-- MIT licensed
local lxp = require 'lxp'
local dkjson = require 'dkjson'
local push = table.insert
local _M = {}
-- reads OSM XML using luaExpat
--
-- output is one big self-referencing table
--
function _M.read_osm(fname)
local current, data, p
data = { nodes = {}... | -- part of LunaRender
-- (c) 2015 Mikoláš Štrajt
-- MIT licensed
local lxp = require 'lxp'
local dkjson = require 'dkjson'
local push = table.insert
local _M = {}
-- reads OSM XML using luaExpat
--
-- output is one big self-referencing table
--
function _M.read_osm(fname)
local current, data, p
data = { nodes = {}... | fixes in reading overpass json | fixes in reading overpass json
| Lua | mit | severak/lunarender,severak/lunarender,severak/lunarender |
7e43179f3fc0299ebdbfb349452460925db4b566 | lua/starfall/preprocessor.lua | lua/starfall/preprocessor.lua | -------------------------------------------------------------------------------
-- SF Preprocessor.
-- Processes code for compile time directives.
-- @author Colonel Thirty Two
-------------------------------------------------------------------------------
-- TODO: Make an @include-only parser
SF.Preprocessor = {}
SF... | -------------------------------------------------------------------------------
-- SF Preprocessor.
-- Processes code for compile time directives.
-- @author Colonel Thirty Two
-------------------------------------------------------------------------------
-- TODO: Make an @include-only parser
SF.Preprocessor = {}
SF... | Fixed GM13 related stuff (continue) | Fixed GM13 related stuff (continue)
| Lua | bsd-3-clause | Jazzelhawk/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall |
2e6546059f5a9509b7af70bb01c817490680cb82 | CastBarZ/CastBarZ.lua | CastBarZ/CastBarZ.lua | local AddonName, Addon = ...
local AceDB = LibStub("AceDB-3.0")
local AceConfigRegistry = LibStub("AceConfigRegistry-3.0")
_G[AddonName] = LibStub("AceAddon-3.0"):NewAddon(Addon, AddonName, "AceConsole-3.0")
local Addon = Addon
local OptionTable = {
name = AddonName .. " Options",
type = "group",
childGro... | local AddonName, Addon = ...
local AceDB = LibStub("AceDB-3.0")
local AceConfigRegistry = LibStub("AceConfigRegistry-3.0")
_G[AddonName] = LibStub("AceAddon-3.0"):NewAddon(Addon, AddonName, "AceConsole-3.0")
local Addon = Addon
local OptionTable = {
name = AddonName .. " Options",
type = "group",
childGro... | Fix loading config addon | Fix loading config addon
| Lua | unlicense | Guema/gCastBars,Guema/GuemUICastBars |
058c34e82ae9037a6dd4e09595dd1f736964b412 | focuspoints.lrdevplugin/ExifUtils.lua | focuspoints.lrdevplugin/ExifUtils.lua | --[[
Copyright 2016 Whizzbang Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | --[[
Copyright 2016 Whizzbang Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | Fix call to exiftool on OS/X if image path contains single quotes. | Fix call to exiftool on OS/X if image path contains single quotes.
| Lua | apache-2.0 | project802/Focus-Points,project802/Focus-Points,musselwhizzle/Focus-Points,rderimay/Focus-Points,musselwhizzle/Focus-Points,mkjanke/Focus-Points,rderimay/Focus-Points,mkjanke/Focus-Points,project802/Focus-Points,philmoz/Focus-Points,project802/Focus-Points,philmoz/Focus-Points |
c6f993428ec97de5dd8fa6006e70d88dfe29536b | lualib/sharemap.lua | lualib/sharemap.lua | local stm = require "stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp()
if ... | local stm = require "stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp()
if ... | bugfix #257 | bugfix #257
| Lua | mit | kebo/skynet,lc412/skynet,yinjun322/skynet,boyuegame/skynet,harryzeng/skynet,your-gatsby/skynet,icetoggle/skynet,letmefly/skynet,korialuo/skynet,ypengju/skynet_comment,microcai/skynet,vizewang/skynet,ludi1991/skynet,liuxuezhan/skynet,lc412/skynet,czlc/skynet,codingabc/skynet,yinjun322/skynet,felixdae/skynet,zhangshiqian... |
e234044290f33bc0632bc0e6ea72d1903ba3edb9 | build/scripts/actions/package.lua | build/scripts/actions/package.lua | newoption({
trigger = "pack-libdir",
description = "Specifiy the subdirectory in lib/ to be used when packaging the project"
})
ACTION.Name = "Package"
ACTION.Description = "Pack Nazara binaries/include/lib together"
ACTION.Function = function ()
local libDir = _OPTIONS["pack-libdir"]
if (not libDir or #libDi... | newoption({
trigger = "pack-libdir",
description = "Specifiy the subdirectory in lib/ to be used when packaging the project"
})
ACTION.Name = "Package"
ACTION.Description = "Pack Nazara binaries/include/lib together"
ACTION.Function = function ()
local libDir = _OPTIONS["pack-libdir"]
if (not libDir or #libDi... | Build/Package: Fix executable binaries not being packaged under Linux (Close #77) | Build/Package: Fix executable binaries not being packaged under Linux (Close #77)
Former-commit-id: 5c885f70af44968f33ee1dbd93646293bcea5d2e [formerly 8edfc3654005393c28e27f8c6cbe427a43152f3f] [formerly b66fb4ef5b275e63c649c336170f22bd3155f67b [formerly ac7655fa1c6e2e4d429dca86c5fd78a499481fd6]]
Former-commit-id: 0cf... | Lua | mit | DigitalPulseSoftware/NazaraEngine |
0131e9df3b91e95c4dd05d4a64aca7f3f1c6dcf5 | nyagos.d/suffix.lua | nyagos.d/suffix.lua | nyagos.suffixes={}
function suffix(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not nyagos.suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffix
i... | nyagos.suffixes={}
function suffix(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not nyagos.suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffix
i... | suffix.lua call previous nyagos.argsfilter if it exists. | suffix.lua call previous nyagos.argsfilter if it exists.
| Lua | bsd-3-clause | hattya/nyagos,kissthink/nyagos,zetamatta/nyagos,tyochiai/nyagos,hattya/nyagos,nocd5/nyagos,kissthink/nyagos,tsuyoshicho/nyagos,hattya/nyagos,kissthink/nyagos |
9d582f5ea4ef772c70b10b8638ab2c189c5b467f | lua/lualine/themes/hydrangea.lua | lua/lualine/themes/hydrangea.lua | -- Palette (LCH values were measured in GIMP 2.10.4)
local base03 = ("#171c26", 235) # L = 10, C = 8, H = 270
local base02 = ("#232833", 236) # L = 16, C = 8, H = 270
local base01 = ("#303540", 238) # L = 22, C = 8, H = 270
local base00 = ("#4b505d", 241) # L = 28, C = 8, H = 270
local base0 = (... | -- Palette (LCH values were measured in GIMP 2.10.4)
local base03 = ("#171c26", 235) -- L = 10, C = 8, H = 270
local base02 = ("#232833", 236) -- L = 16, C = 8, H = 270
local base01 = ("#303540", 238) -- L = 22, C = 8, H = 270
local base00 = ("#4b505d", 241) -- L = 28, C = 8, H = 270
local base0 ... | Fix the way to comment | Fix the way to comment
| Lua | mit | yuttie/hydrangea-vim |
1189b3f8e2596a05b5b7787eb00f93b1a1c6f31b | ExamTip/src/MY_ExamTip.lua | ExamTip/src/MY_ExamTip.lua | --
-- ƾ
-- by @ ˫ @ ݶ
-- Build 20140730
--
-- Ҫ: ƾ
--
local _L = MY.LoadLangPack(MY.GetAddonInfo().szRoot.."ExamTip/lang/")
local _Cache = {
szQueryUrl = "http://jx3.derzh.com/exam/?l=%s&q=%s",
szSubmitUrl = "http://jx3.derzh.com/exam/submit.php?l=%s&d=%s",
tCached = {},
tLastQu = "",
}
MY_ExamTip = {... | --
-- ƾ
-- by @ ˫ @ ݶ
-- Build 20140730
--
-- Ҫ: ƾ
--
local _L = MY.LoadLangPack(MY.GetAddonInfo().szRoot.."ExamTip/lang/")
local _Cache = {
szQueryUrl = "http://jx3.derzh.com/exam/?l=%s&q=%s",
szSubmitUrl = "http://jx3.derzh.com/exam/submit.php?l=%s&d=%s",
tCached = {},
tLastQu = "",
}
MY_ExamTip = {... | 科举助手BUG修复 | 科举助手BUG修复
| Lua | bsd-3-clause | tinymins/MY |
40b98e5feca95fc5afd48e48059beefc5f27123d | source-code/server.lua | source-code/server.lua | local deviceXML = require("ssdp")
local srv = net.createServer(net.TCP, 10)
local port = math.floor(node.chipid()/1000) + 8000
print("Heap: ", node.heap(), "HTTP: ", "Starting server at http://" .. wifi.sta.getip() .. ":" .. port)
srv:listen(port, function(conn)
conn:on("receive", function( sck, data )
local r... | local deviceXML = require("ssdp")
local srv = net.createServer(net.TCP, 10)
local port = math.floor(node.chipid()/1000) + 8000
print("Heap: ", node.heap(), "HTTP: ", "Starting server at http://" .. wifi.sta.getip() .. ":" .. port)
srv:listen(port, function(conn)
conn:on("receive", function( sck, data )
local r... | bug fix | bug fix
| Lua | apache-2.0 | konnected-io/konnected-security,konnected-io/konnected-security |
a84fce6a21771bf1e3816ebe0cddaffcb285e2ba | level_select_view.lua | level_select_view.lua | -- imports
local active_screen = require 'active_screen'
local game_view = require 'game_view'
local level_list = require 'level_list'
function exports()
local instance = {}
local backButton = love.graphics.newImage('level_select/back.png')
local backX = 20
local backY = 600
local backWidth = 300
local backHeig... | -- imports
local active_screen = require 'active_screen'
local game_view = require 'game_view'
local level_list = require 'level_list'
function exports()
local instance = {}
local backButton = love.graphics.newImage('level_select/back.png')
local backX = 20
local backY = 600
local backWidth = 300
local backHeig... | Fixed level select view | Fixed level select view
| Lua | mit | NamefulTeam/PortoGameJam2015 |
bcdbd5c93d222adc1055c4c17fb65a2ed3368f84 | rapidshare.lua | rapidshare.lua | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.ge... | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
size_file = funct... | rapidshare.lua: fixes, abort if traffic exhausted | rapidshare.lua: fixes, abort if traffic exhausted | Lua | unlicense | ArchiveTeam/rapidshare-grab,ArchiveTeam/rapidshare-grab |
81260e9adb2fee69d0cadd1b0f6ec4f73b8f8c87 | announce.lua | announce.lua | local mod = EPGP:NewModule("EPGP_Announce")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local function Announce(fmt, ...)
local medium = EPGP.db.profile.announce_medium
local channel = EPGP.db.profile.announce_channel or 0
local msg = string.format(fmt, ...)
local str = "EPGP:"
for _,s in pairs({s... | local mod = EPGP:NewModule("EPGP_Announce")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local function Announce(fmt, ...)
local medium = EPGP.db.profile.announce_medium
local channel = EPGP.db.profile.announce_channel or 0
-- Override raid and party if we are not grouped
if medium == "RAID" and not ... | Override raid and party announces and send them to the raid if the EPGP master is not in party or in raid respectively. | Override raid and party announces and send them to the raid if the
EPGP master is not in party or in raid respectively.
This fixes issue 245.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,hayword/tfatf_epgp,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,hayword/tfatf_epgp |
cad7ac5a8259f6374001e6b2b40cee2765bb966e | test_scripts/Polices/App_Permissions/021_ATF_P_TC_General_Result_Codes_Disallowed_In_Case_App_Current_Hmi_Level_Is_Not_Listed_In_Assigned_Policies.lua | test_scripts/Polices/App_Permissions/021_ATF_P_TC_General_Result_Codes_Disallowed_In_Case_App_Current_Hmi_Level_Is_Not_Listed_In_Assigned_Policies.lua | ---------------------------------------------------------------------------------------------
-- UNREADY: Only 6 RPCs are covered
-- Requirement summary:
-- HMI Levels the notification is allowed to be processed in
--
-- Description:
-- SDL must not send/ transfer (in case got from HMI) notification to mobile applicati... | ---------------------------------------------------------------------------------------------
-- UNREADY: Only 6 RPCs are covered
-- Requirement summary:
-- [GeneralResultCodes] DISALLOWED in case app's current HMI Level is not listed in assigned policies
--
-- Description:
-- SDL must return DISALLOWED resultCode and ... | Fixed description | Fixed description
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
8c08fb6e361178eaf2b2fdbebefcbe17e8c07067 | src/lpeg2c/codegen.lua | src/lpeg2c/codegen.lua | local numtab = {}
for i = 0, 255 do
numtab[string.char(i)] = ("%3d,"):format(i)
end
local function bin2c(str)
str = str .. '\0'
return str:gsub(".", numtab):gsub(("."):rep(80), "%0\n")
end
local function parsePattern(pattern)
local lpeg = require 'lpeg'
local parse = require 'lpeg2c.parseLpegByteCo... | local numtab = {}
for i = 0, 255 do
numtab[string.char(i)] = ("%3d,"):format(i)
end
local function bin2c(str)
str = str .. '\0'
return str:gsub(".", numtab):gsub(("."):rep(80), "%0\n")
end
local function parsePattern(pattern)
local lpeg = require 'lpeg'
local parse = require 'lpeg2c.parseLpegByteCo... | fix compilation of charset codes | fix compilation of charset codes
| Lua | mit | starius/lpeg2c,starius/lpeg2c,starius/lpeg2c |
6ed626fc19a1693bafbf12c8ce5d155d301893da | awesome/aweror.lua | awesome/aweror.lua | -- aweror.lua
-- Save this file as "aweror.lua" in awesome's system library directory "/usr/local/share/awesome/lib",
-- "/usr/share/awesome/lib", or your own config directory "~/.config/awesome/".
-- You will also need a "ror.lua" file (contains your key bindings) in your config directory.
-- Now you need to generate ... | -- aweror.lua
-- Save this file as "aweror.lua" in awesome's system library directory "/usr/local/share/awesome/lib",
-- "/usr/share/awesome/lib", or your own config directory "~/.config/awesome/".
-- You will also need a "ror.lua" file (contains your key bindings) in your config directory.
-- Now you need to generate ... | fix indentation, namespace bug | fix indentation, namespace bug
| Lua | mit | sarumont/xfiles,sarumont/xfiles,sarumont/xfiles,sarumont/xfiles |
ebb41b5612cacb95513f41ebc439f60262a54e0a | spec/fs_spec.lua | spec/fs_spec.lua | local fs = require "luacheck.fs"
describe("fs", function()
describe("is_dir", function()
it("returns true for directories", function()
assert.is_true(fs.is_dir("spec/folder"))
end)
it("returns false for files", function()
assert.is_false(fs.is_dir("spec/folder/foo"))
end)
... | local fs = require "luacheck.fs"
local P = fs.normalize
describe("fs", function()
describe("is_dir", function()
it("returns true for directories", function()
assert.is_true(fs.is_dir("spec/folder"))
end)
it("returns false for files", function()
assert.is_false(fs.is_dir("spec/fo... | Windows compat fixes for fs tests | Windows compat fixes for fs tests
| Lua | mit | mpeterv/luacheck,xpol/luacheck,xpol/luacheck,linuxmaniac/luacheck,xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck,linuxmaniac/luacheck |
141ef25a738ea24844a18895c3911018294c70cd | lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/13_pid_example.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/13_pid_example.lua | --[[
Name: 13_pid_example.lua
Desc: This script sets a DAC0 output according to a PID controller
Note: Requires FW 1.0282 or greater on the T7
Gets a setpoint from a host computer. Host computer writes new setpoint
to modbus address 46000
--]]
print("This is a PID example script that sets a DAC0 o... | --[[
Name: 13_pid_example.lua
Desc: This is a PID example script that sets a DAC0 output using AIN2 for
feedback
Note: Gets a setpoint from a host computer. Host computer writes the new
setpoint to modbus address 46000 (USER_RAM0_F32)
Requires FW 1.0282 or greater on the T7
-... | Fixed up the PID example | Fixed up the PID example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
f332906fd75b2f28c2a477016f6d18bebc531fd7 | apicast/src/resty/http_ng.lua | apicast/src/resty/http_ng.lua | ------------
--- HTTP NG module
-- Implements HTTP client.
-- @module http_ng
--- HTTP Client
-- @type HTTP
local type = type
local unpack = unpack
local assert = assert
local tostring = tostring
local setmetatable = setmetatable
local rawset = rawset
local upper = string.upper
local rawget = rawget
local pack = tabl... | ------------
--- HTTP NG module
-- Implements HTTP client.
-- @module http_ng
--- HTTP Client
-- @type HTTP
local type = type
local unpack = unpack
local assert = assert
local tostring = tostring
local setmetatable = setmetatable
local getmetatable = getmetatable
local rawset = rawset
local upper = string.upper
local... | [http] fix merging options on openresty 1.11.2.3 | [http] fix merging options on openresty 1.11.2.3
| Lua | mit | 3scale/docker-gateway,3scale/apicast,3scale/apicast,3scale/apicast,3scale/apicast,3scale/docker-gateway |
3d73bd93a62f54cafb8a963ffffa1906f9064e7e | src/items/recipes.lua | src/items/recipes.lua | -----------------------------------------
-- recipes.lua
-- Contains all the crafting recipies that the player can use
-- Created by HazardousPeach
-----------------------------------------
return {
{
{ type='material', name='rock' },
{ type='material', name='stick' },
{ type='weap... | -----------------------------------------
-- recipes.lua
-- Contains all the crafting recipies that the player can use
-- Created by HazardousPeach
-----------------------------------------
return {
{
{ type='material', name='rock' },
{ type='material', name='stick' },
{ type='weapon', name... | fixed master discrepancy | fixed master discrepancy
| Lua | mit | hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua |
18dd214b488da0a20187ce6857bfe7d8ed2cfaf7 | lua/starfall/libs_sh/vmatrix.lua | lua/starfall/libs_sh/vmatrix.lua | -- Credits to Radon & Xandaros
SF.VMatrix = {}
--- VMatrix type
local vmatrix_methods, vmatrix_metamethods = SF.Typedef("VMatrix")
local wrap, unwrap = SF.CreateWrapper( vmatrix_metamethods, true, false )
local vunwrap = SF.UnwrapObject
SF.VMatrix.Methods = vmatrix_methods
SF.VMatrix.Metatable = vmatrix_metamethods
S... | -- Credits to Radon & Xandaros
SF.VMatrix = {}
--- VMatrix type
local vmatrix_methods, vmatrix_metamethods = SF.Typedef( "VMatrix" )
local wrap, unwrap = SF.CreateWrapper( vmatrix_metamethods, true, false )
local vunwrap = SF.UnwrapObject
SF.VMatrix.Methods = vmatrix_methods
SF.VMatrix.Metatable = vmatrix_metamethods... | Fixed some issues with vmatrix vec/ang type | Fixed some issues with vmatrix vec/ang type
Also fixed some codestyle in VMatrix.
| Lua | bsd-3-clause | Jazzelhawk/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,INPStarfall/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall |
cf544183b4235355377fc17e31627b431467ef06 | kong/plugins/acl/migrations/001_14_to_15.lua | kong/plugins/acl/migrations/001_14_to_15.lua | return {
postgres = {
up = [[
DO $$
BEGIN
ALTER TABLE IF EXISTS ONLY "acls" ADD "cache_key" TEXT UNIQUE;
EXCEPTION WHEN DUPLICATE_COLUMN THEN
-- Do nothing, accept existing state
END;
$$;
ALTER TABLE IF EXISTS ONLY "acls"
ALTER "created_at" TYPE TIMESTA... | return {
postgres = {
up = [[
DO $$
BEGIN
ALTER TABLE IF EXISTS ONLY "acls" ADD "cache_key" TEXT UNIQUE;
EXCEPTION WHEN DUPLICATE_COLUMN THEN
-- Do nothing, accept existing state
END;
$$;
ALTER TABLE IF EXISTS ONLY "acls"
ALTER "created_at" TYPE TIMESTA... | fix(acl) prevent 014_to_015 migration from throwing an error | fix(acl) prevent 014_to_015 migration from throwing an error
The `id` column is a UUID, but given as a string, producing the error:
[Cassandra error] failed to run migration '001_14_to_15' teardown:
...are/lua/5.1/kong/plugins/acl/migrations/001_14_to_15.lua:81:
[Invalid] Invalid STRING constant (c8b871b7-7a18-45... | Lua | apache-2.0 | Kong/kong,Mashape/kong,Kong/kong,Kong/kong |
311e7f2c3154f4f6d289674d537fc341d80ee1bd | src/api/libraries.lua | src/api/libraries.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fix the twice package name in target dir | Fix the twice package name in target dir
| Lua | mit | Zefiros-Software/ZPM |
28f70289ee9a98348b6183f5214b45087937ad22 | core/loader.lua | core/loader.lua | -- Copyright (C) Dejiang Zhu (doujiang24)
local corehelper = require "system.helper.core"
local filehelper = require "system.helper.file"
local ltp = require "system.library.ltp.template"
local setmetatable = setmetatable
local pcall = pcall
local assert = assert
local loadfile = ... | -- Copyright (C) Dejiang Zhu (doujiang24)
local corehelper = require "system.helper.core"
local filehelper = require "system.helper.file"
local ltp = require "system.library.ltp.template"
local setmetatable = setmetatable
local pcall = pcall
local assert = assert
local loadfile = ... | bugfix: load:model return m when model:new return nil | bugfix: load:model return m when model:new return nil
| Lua | mit | doujiang24/durap-system |
120218dcddfcb4b8db358346d7adaa6760f25c4d | sys/lua/warmod/modules/core/stats.lua | sys/lua/warmod/modules/core/stats.lua | --[[---------------------------------------------------------------------------
Warmod Project
Dev(s): x[N]ir, Hajt, BCG2000
File: modules/core/stats.lua
Description: player stats tracker
--]]---------------------------------------------------------------------------
warmod.dmg = {}
warmod.total_dmg = {}... | --[[---------------------------------------------------------------------------
Warmod Project
Dev(s): x[N]ir, Hajt, BCG2000
File: modules/core/stats.lua
Description: player stats tracker
--]]---------------------------------------------------------------------------
-- MVP Variables
warmod.dmg = {}
warm... | Fixed MVP | Fixed MVP
| Lua | apache-2.0 | codneutro/warmod |
1e2b5a8b7dce3d5e4281844a1d8878bb196d2f4e | test/bench.lua | test/bench.lua | local gumbo = require "gumbo"
local parse = gumbo.parse
local open, write, stderr = io.open, io.write, io.stderr
local clock, assert, collectgarbage = os.clock, assert, collectgarbage
local filename = assert(arg[1], "arg[1] is nil; expecting filename")
local _ENV = nil
local document, duration
collectgarbage()
local b... | local gumbo = require "gumbo"
local parse = assert(gumbo.parse)
local open, write, stderr = io.open, io.write, io.stderr
local clock, assert, collectgarbage = os.clock, assert, collectgarbage
local filename = assert(arg[1], "arg[1] is nil; expecting filename")
local _ENV = nil
collectgarbage()
local basemem = collectg... | Make test/bench.lua compatible with Lua 5.3... | Make test/bench.lua compatible with Lua 5.3...
Changes the %d format specifier to %.0f to fix the "number has no
integer representation" error.
| Lua | apache-2.0 | craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo |
f0a50e067af07ee912a088283992bf20f6b44040 | lte/diet.lua | lte/diet.lua | -- Long Time Effect Script: Diet System
-- Effect ID: 12
require("item.food");
require("base.common");
module("lte.diet", package.seeall)
GermanAttributes = {
["constitution"] = "Ausdauer",
["strength"] = "Strke",
["dexterity"] = "Geschicklichkeit",
["agility"] = "Schnelligkeit",
["intelligence"] = "Intell... | -- Long Time Effect Script: Diet System
-- Effect ID: 12
require("item.food");
require("base.common");
module("lte.diet", package.seeall)
GermanAttributes = {
["constitution"] = "Ausdauer",
["strength"] = "Strke",
["dexterity"] = "Geschicklichkeit",
["agility"] = "Schnelligkeit",
["intelligence"] = "Intell... | Fix that buffs to certain attributes are removed but never given mantis #9132 | Fix that buffs to certain attributes are removed but never given
mantis #9132
| Lua | agpl-3.0 | KayMD/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content |
3fc5fc2ab074a67652bece7a1654088ada624e2d | lua/talk.lua | lua/talk.lua | -- parses incoming messages to populate dictionary
function talk_parse(event, origin, params)
local word1,word2
local words = str_split(params[2], " ")
for i=1,(#words+1) do
local word = words[i]
if word1 ~= nil then
if word2 ~= nil then
local temp = word
if temp == nil then
temp = ""
end
... | -- parses incoming messages to populate dictionary
function talk_parse(event, origin, params)
local word1,word2
local words = str_split(params[2], " ")
for i=1,(#words+1) do
local word = words[i]
if word1 ~= nil then
if word2 ~= nil then
local temp = word
if temp == nil then
temp = ""
end
... | fix error condition | fix error condition
| Lua | mit | wetfish/denice,pielover88888/denice |
98a7956e67231fc3bced6517da88de5aa8cf7754 | net/http.lua | net/http.lua |
local socket = require "socket"
local mime = require "mime"
local url = require "socket.url"
local server = require "net.server"
local connlisteners_get = require "net.connlisteners".get;
local listener = connlisteners_get("httpclient") or error("No httpclient listener!");
local t_insert, t_concat = table.insert, t... |
local socket = require "socket"
local mime = require "mime"
local url = require "socket.url"
local server = require "net.server"
local connlisteners_get = require "net.connlisteners".get;
local listener = connlisteners_get("httpclient") or error("No httpclient listener!");
local t_insert, t_concat = table.insert, t... | net.http: Fix to send query part of URL to server | net.http: Fix to send query part of URL to server
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
d1ead78b92556cac49e4b37bd7730cd32ca472dd | modules/corepkg/src/main/resources/moe/lymia/princess/core/pkg/core.pedit-pkg/_princess/predef/core/sandbox.lua | modules/corepkg/src/main/resources/moe/lymia/princess/core/pkg/core.pedit-pkg/_princess/predef/core/sandbox.lua | -- Copyright (c) 2017 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, copy, m... | -- Copyright (c) 2017 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, copy, m... | Fix source in sandbox.lua | Fix source in sandbox.lua
| Lua | mit | Lymia/PrincessEdit,Lymia/PrincessEdit,Lymia/PrincessEdit |
971a0312c170a8c94332db16b00ba14ff47feb5c | lua/entities/gmod_wire_simple_explosive/init.lua | lua/entities/gmod_wire_simple_explosive/init.lua | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "Simple Explosive"
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
local phys = self:GetPhysicsObject()
if (phys:IsV... | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "Simple Explosive"
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
local phys = self:GetPhysicsObject()
if (phys:IsV... | Fixes #135 | Fixes #135
| Lua | apache-2.0 | rafradek/wire,CaptainPRICE/wire,sammyt291/wire,immibis/wiremod,bigdogmat/wire,dvdvideo1234/wire,plinkopenguin/wiremod,mms92/wire,mitterdoo/wire,notcake/wire,wiremod/wire,Grocel/wire,Python1320/wire,thegrb93/wire,garrysmodlua/wire,NezzKryptic/Wire |
a08c0788207b2c07947e56737ad4452bf30e9f5d | mods/christmas_craft/settings.lua | mods/christmas_craft/settings.lua |
print (" ---- Overrider christmas_craft = true! ---- ")
local dirttiles = {"snow.png", "default_dirt.png", {name = "default_dirt.png^grass_w_snow_side.png", tileable_vertical = false}}
local snowballdrop = {items = {'default:snow'}, rarity = 0}
local add_drop = function (def)
if type(def.drop) == "table" then
if ... |
print (" ---- Overrider christmas_craft = true! ---- ")
local dirttiles = {"snow.png", "default_dirt.png", {name = "default_dirt.png^grass_w_snow_side.png", tileable_vertical = false}}
local snowballdrop = {items = {'default:snow'}, rarity = 0}
local add_drop = function (def)
if type(def.drop) == "table" then
if ... | [chistmas_craft] Fix leaves (were full snow) | [chistmas_craft] Fix leaves (were full snow)
Today I learned Minetests only displays one texture when drawtype is
allfaces_optional. Nowhere in the doc this is even mentionned.
Minetest is really a fucking damn dipshit game engine.
| Lua | unlicense | sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,crabman77/minetest-minetestforfun-server,... |
f682be7f251914cf1e8a0be89bad4477140ec409 | Modules/QuentyAdminCommands/AuthenticationServiceServer.lua | Modules/QuentyAdminCommands/AuthenticationServiceServer.lua | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local qString = LoadCustomLibrary("qString")
local QA... | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local qString = LoadCustomLibrary("qString")
local QA... | Fix queue issue. | Fix queue issue.
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
95cbfc50d8f7fc492f6def60720e355fdd0f62c1 | mods/stairs/init.lua | mods/stairs/init.lua | -- Minetest 0.4 mod: stairs
-- See README.txt for licensing and other information.
stairs = {}
-- Node will be called modname:stair_<subname>
function stairs.register_stair(subname, recipeitem, groups, images, description, sounds)
local modname = minetest.get_current_modname()
minetest.register_node(modname..":stai... | -- Minetest 0.4 mod: stairs
-- See README.txt for licensing and other information.
stairs = {}
-- Node will be called stairs:stair_<subname>
function stairs.register_stair(subname, recipeitem, groups, images, description, sounds)
minetest.register_node(":stairs:stair_" .. subname, {
description = description,
dr... | Fix incorrect slabs to full block transformation by changing the modname to 'stairs' for all stairs and slabs | Fix incorrect slabs to full block transformation by changing the modname to 'stairs' for all stairs and slabs
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
a07ad48fd152b15f2a50596dd2399f6489c6196d | plugins/mod_ping.lua | plugins/mod_ping.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 st = require "util.stanza";
module:add_feature("urn:xmpp:ping");
module:add_iq_handler({"c2s", ... | -- 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 st = require "util.stanza";
module:add_feature("urn:xmpp:ping");
local function ping_handler(even... | mod_ping: Updated to use events (which also fixes a few minor issues). | mod_ping: Updated to use events (which also fixes a few minor issues).
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
fb7aed881a972e01d4ad07ef209b688a3443b1df | mod_register_web/mod_register_web.lua | mod_register_web/mod_register_web.lua | local captcha_options = module:get_option("captcha_options", {});
local nodeprep = require "util.encodings".stringprep.nodeprep;
local usermanager = require "core.usermanager";
local http = require "util.http";
function template(data)
-- Like util.template, but deals with plain text
return { apply = function(values)... | local captcha_options = module:get_option("captcha_options", {});
local nodeprep = require "util.encodings".stringprep.nodeprep;
local usermanager = require "core.usermanager";
local http = require "util.http";
function template(data)
-- Like util.template, but deals with plain text
return { apply = function(values)... | mod_register_web: Indentation fix | mod_register_web: Indentation fix
| Lua | mit | crunchuser/prosody-modules,guilhem/prosody-modules,vfedoroff/prosody-modules,either1/prosody-modules,amenophis1er/prosody-modules,LanceJenkinZA/prosody-modules,jkprg/prosody-modules,apung/prosody-modules,joewalker/prosody-modules,syntafin/prosody-modules,joewalker/prosody-modules,1st8/prosody-modules,olax/prosody-modul... |
387bcc7c26b6e5ea93e318e8ae42a523641096c2 | prosody/mod_groups_wordpress.lua | prosody/mod_groups_wordpress.lua | -- Prosody Wordpress UAM Group
local rostermanager = require "core.rostermanager";
local datamanager = require "util.datamanager";
local jid = require "util.jid";
local DBI;
local connection;
local bare_sessions = bare_sessions;
local params = module:get_option("wordpress");
local module_host = module:get_host();
... | -- Prosody Wordpress UAM Group
local rostermanager = require "core.rostermanager";
local datamanager = require "util.datamanager";
local jid = require "util.jid";
local DBI;
local connection;
local bare_sessions = bare_sessions;
local params = module:get_option("wordpress");
local module_host = module:get_host();
... | Add roster to online contact. fixes #2 | Add roster to online contact. fixes #2
| Lua | mit | llun/wordpress-authenticator |
ab0353aab82e359bab559aa1ab9dcfe9fa7dbd89 | perf/fetch_add.lua | perf/fetch_add.lua | #!/usr/bin/env lua
-- Measure add-fetch-notification throughput and the impact of a growing
-- number of fetchers (which dont match).
-- The time is measured for adding and removing <count> states.
-- Afterwards, the number of fetchers is incremented by 20 and the test is repeated.
-- This (unrealistic) setup can not b... | #!/usr/bin/env lua
-- Measure add-fetch-notification throughput and the impact of a growing
-- number of fetchers (which dont match).
-- The time is measured for adding and removing <count> states.
-- Afterwards, the number of fetchers is incremented by 20 and the test is repeated.
-- Note that the add/remove peer stuf... | remove explicit batching, fix comment on batching | remove explicit batching, fix comment on batching
| Lua | mit | lipp/lua-jet |
52af622c1093c038e600feae7cc65e10e7f93025 | luasrc/mch/response.lua | luasrc/mch/response.lua | #!/usr/bin/env lua
-- -*- lua -*-
-- Copyright 2012 Appwill Inc.
-- Author : KDr2
--
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... | #!/usr/bin/env lua
-- -*- lua -*-
-- Copyright 2012 Appwill Inc.
-- Author : KDr2
--
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... | fixed MOOCHINE_APP_PATH and MOOCHINE_EXTRA_APP_PATH | fixed MOOCHINE_APP_PATH and MOOCHINE_EXTRA_APP_PATH
| Lua | apache-2.0 | appwilldev/moochine,appwilldev/moochine,lilien1010/moochine,lilien1010/moochine,lilien1010/moochine |
522e9fce277e0a3b99ccc39d41fb7dbfb5ce58ff | durden/tools/flair/destroy.lua | durden/tools/flair/destroy.lua | local destroy_shid;
local shaders = {
-- a more ambitious version would use a LUT to give a perlin-noise
-- like distribution, weight that with the contents and the distance
-- to the last known mouse cursor position, with an edge gradient
-- using yellow-red-blacks for the burn.
burn = {nil, nil, [[
uniform sampler2D... | local destroy_shid;
local shaders = {
-- a more ambitious version would use a LUT to give a perlin-noise
-- like distribution, weight that with the contents and the distance
-- to the last known mouse cursor position, with an edge gradient
-- using yellow-red-blacks for the burn.
dissolve = {nil, nil, [[
uniform sampl... | fix typo in destroy flair | fix typo in destroy flair
| Lua | bsd-3-clause | letoram/durden |
519f1e9b1feb9d2eb83aa7d0859c903feaa9c321 | scripts/lua/policies/mapping.lua | scripts/lua/policies/mapping.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 ... | --
-- 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 ... | Fix array handling during mapping operations (#359) | Fix array handling during mapping operations (#359)
| Lua | unknown | openwhisk/openwhisk-apigateway,openwhisk/apigateway,openwhisk/openwhisk-apigateway,openwhisk/openwhisk-apigateway,openwhisk/apigateway,openwhisk/apigateway |
a0c56a163baf43344d81f99213abbef5cc31d2f6 | nvim/lua/config/cmp.lua | nvim/lua/config/cmp.lua | local has_words_before = function()
if vim.api.nvim_buf_get_option(0, 'buftype') == 'prompt' then
return false
end
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match('%s') == nil
end
local feedkey = functio... | local has_words_before = function()
if vim.api.nvim_buf_get_option(0, 'buftype') == 'prompt' then
return false
end
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match('%s') == nil
end
local feedkey = functio... | fix: nvim-cmp for tab/s-tab | fix: nvim-cmp for tab/s-tab
| Lua | mit | drmohundro/dotfiles |
fd438e983afbae2192a4f109eef748d9329abf30 | packages/textcase/init.lua | packages/textcase/init.lua | local base = require("packages.base")
local package = pl.class(base)
package._name = "tetxcase"
local icu = require("justenoughicu")
local uppercase = function (class, input, extraArgs)
if type(class) ~= "table" or class.type ~= "class" then
input, extraArgs = class, input
end
if not extraArgs then extraAr... | local base = require("packages.base")
local package = pl.class(base)
package._name = "tetxcase"
local icu = require("justenoughicu")
function package:uppercase (input, extraArgs)
if type(self) ~= "table" or (self.type ~= "class" and self.type ~= "package") then
input, extraArgs = self, input
end
if not ext... | fix(packages): Correct (and improve scope of) exported testcase functions | fix(packages): Correct (and improve scope of) exported testcase functions
The internal uppercase() function was exported using the deprecated
export mechanism, but lowercase() and titlecase() were tripping over
their own shim logic.
This fixes the shim logic but also exports them as package functions
which should be ... | Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
7a0bc4bd85c3c3fc20aea34e6bd4efbe695cde97 | tools/ejabberdsql2prosody.lua | tools/ejabberdsql2prosody.lua | #!/usr/bin/env 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.
--
package.path = package.path ..";../?.lua";
local serialize = require "util.serializati... | #!/usr/bin/env 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.
--
package.path = package.path ..";../?.lua";
local serialize = require "util.serializati... | ejabberdsql2prosody: Fixed: pending-in subscriptions could halt processing | ejabberdsql2prosody: Fixed: pending-in subscriptions could halt processing
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
b13613a0e15fa30eac8e1e218ef08de528e7cf7a | share/ioncorelib-mplexfns.lua | share/ioncorelib-mplexfns.lua | --
-- ion/share/ioncorelib-mplexfns.lua -- Misc. functions for WMPlex:s
--
-- Copyright (c) Tuomo Valkonen 2003.
--
-- Ion is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the Li... | --
-- ion/share/ioncorelib-mplexfns.lua -- Misc. functions for WMPlex:s
--
-- Copyright (c) Tuomo Valkonen 2003.
--
-- Ion is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the Li... | trunk: changeset 1017 | trunk: changeset 1017
Small documentation fix.
darcs-hash:20031129143140-e481e-3f47a8ecb1e78a04acc5a986a0ce2dca5762e149.gz
| Lua | lgpl-2.1 | knixeur/notion,dkogan/notion.xfttest,dkogan/notion,raboof/notion,p5n/notion,p5n/notion,dkogan/notion,p5n/notion,knixeur/notion,p5n/notion,anoduck/notion,anoduck/notion,raboof/notion,dkogan/notion,knixeur/notion,knixeur/notion,neg-serg/notion,anoduck/notion,anoduck/notion,dkogan/notion.xfttest,anoduck/notion,neg-serg/no... |
68d5d58019d47f0f9ad15a8862f077f001305abc | l2l.lua | l2l.lua | local input, output = arg[1] or "test.lsp", arg[2] or "out.lua"
setmt, tostr, getmt = setmetatable, tostring, getmetatable
function id(a)return a end
-- list
list_mt = {__tostring=function(self)return "list("..sep(self,quote)..")" end
,__eq=function(s,o) return s[1]==o[1] and s[2]==o[2] end}
function list(v... | local input, output = arg[1] or "test.lsp", arg[2] or "out.lua"
setmt, tostr, getmt = setmetatable, tostring, getmetatable
function id(a)return a end
-- list
list_mt = {__tostring=function(self)return "list("..sep(self,quote)..")" end
,__eq=function(s,o) return s[1]==o[1] and s[2]==o[2] end}
function list(v... | Fix defun for zero argument functions | Fix defun for zero argument functions
| Lua | bsd-2-clause | carloscm/l2l,tst2005/l2l,meric/l2l,technomancy/l2l |
1ce4bd7dbeef5e61433e6f6893c20953e0867fe0 | nyagos.d/trash.lua | nyagos.d/trash.lua | if not nyagos.ole then
local status
status,nyagos.ole = pcall(require,"nyole")
if not status then
nyagos.ole = nil
end
end
if nyagos.ole then
local fsObj = nyagos.ole.create_object_utf8("Scripting.FileSystemObject")
local shellApp = nyagos.ole.create_object_utf8("Shell.Applicati... | if not nyagos.ole then
local status
status,nyagos.ole = pcall(require,"nyole")
if not status then
nyagos.ole = nil
end
end
if nyagos.ole then
local fsObj = nyagos.ole.create_object_utf8("Scripting.FileSystemObject")
local shellApp = nyagos.ole.create_object_utf8("Shell.Applicati... | Fixed trash.lua never printed error as if file(s) did not exists. | Fixed trash.lua never printed error as if file(s) did not exists.
| Lua | bsd-3-clause | hattya/nyagos,tyochiai/nyagos,kissthink/nyagos,hattya/nyagos,nocd5/nyagos,hattya/nyagos,zetamatta/nyagos,kissthink/nyagos,tsuyoshicho/nyagos,kissthink/nyagos |
eacf487a223d090745d13cd81e9ed4977e4c97a6 | AceConsole-3.0/AceConsole-3.0.lua | AceConsole-3.0/AceConsole-3.0.lua | --[[ $Id$ ]]
local MAJOR,MINOR = "AceConsole-3.0", 0
local AceConsole, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not AceConsole then return end -- No upgrade needed
AceConsole.embeds = AceConsole.embeds or {} -- table containing objects AceConsole is embedded in.
AceConsole.commands = AceConsole.commands or {} ... | --[[ $Id$ ]]
local MAJOR,MINOR = "AceConsole-3.0", 0
local AceConsole, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not AceConsole then return end -- No upgrade needed
AceConsole.embeds = AceConsole.embeds or {} -- table containing objects AceConsole is embedded in.
AceConsole.commands = AceConsole.commands or {} ... | Ace3 - AceConsole: - Fix error in errormessage - Add type check for slashcommand string - Change "persist"'s default to true. I'd rather have my "/addon enable" available when the dev screws up by default I think. | Ace3 - AceConsole:
- Fix error in errormessage
- Add type check for slashcommand string
- Change "persist"'s default to true. I'd rather have my "/addon enable" available when the dev screws up by default I think.
git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@223 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
40612d91555f0a88cdc41e1f7fde8cb37a214827 | packages/rebox.lua | packages/rebox.lua | SILE.registerCommand("rebox", function (options, content)
local box = SILE.Commands["hbox"]({}, content)
if options.width then box.width = SILE.toPoints(options.width) end
if options.height then box.height = SILE.toPoints(options.height) end
if options.depth then box.depth = SILE.toPoints(options.depth) end
i... | SILE.registerCommand("rebox", function (options, content)
local box = SILE.Commands["hbox"]({}, content)
if options.width then box.width = SILE.length.new({length = SILE.toPoints(options.width)}) end
if options.height then box.height = SILE.toPoints(options.height) end
if options.depth then box.depth = SILE.toP... | Some fixes. | Some fixes.
| Lua | mit | anthrotype/sile,alerque/sile,anthrotype/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,simoncozens/sile,neofob/sile,neofob/sile,anthrotype/sile,neofob/sile,alerque/sile,simoncozens/sile,neofob/sile,anthrotype/sile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.