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 |
|---|---|---|---|---|---|---|---|---|---|
ecefe356aef54f353603c574460b99403dc64db0 | MMOCoreORB/bin/scripts/object/weapon/melee/unarmed/unarmed_default_player.lua | MMOCoreORB/bin/scripts/object/weapon/melee/unarmed/unarmed_default_player.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | [fixed] Fists doing so much more damage than a VK | [fixed] Fists doing so much more damage than a VK
git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@2710 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/... |
fe6b05bfcfdda461f5ea6d76f441b922724d7380 | testserver/item/doors.lua | testserver/item/doors.lua | require("base.common")
require("base.doors")
module("item.doors", package.seeall)
-- UPDATE common SET com_script='item.doors' WHERE com_itemid IN (86, 87,927,317,476,477,478,479,499,900,901,902,484,485,924,923,668,669,660,661,684,685,664,665,670,666,671,667,662,686,663,687,715,714,712,713,497,922,925,926,480,481,482... | require("base.common")
require("base.doors")
module("item.doors", package.seeall)
-- UPDATE common SET com_script='item.doors' WHERE com_itemid IN (86, 87,927,317,476,477,478,479,499,900,901,902,484,485,924,923,668,669,660,661,684,685,664,665,670,666,671,667,662,686,663,687,715,714,712,713,497,922,925,926,480,481,482... | fixed lookat | fixed lookat
| Lua | agpl-3.0 | vilarion/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content |
b45f47f2acd92f065055923d0ba9c4a3419f824f | Utilities/openLuup_install.lua | Utilities/openLuup_install.lua | -- first-time download and install of openLuup files from GitHub
-- 2018.02.17 add local ./www/ directory
-- 2018.08.05 use servertables for myIP (thanks @samunders)
-- 2018.08.10 add parameter for install branch (thanks @vwout)
-- 2019.02.12 fix tslv1_2 protocol error
local lua = "lua5.1" -- change this t... | -- first-time download and install of openLuup files from GitHub
-- 2018.02.17 add local ./www/ directory
-- 2018.08.05 use servertables for myIP (thanks @samunders)
-- 2018.08.10 add parameter for install branch (thanks @vwout)
-- 2019.02.15 fix tslv1_2 protocol error (properly, this time!)
local lua = "lua5.... | 2019.02.15 | 2019.02.15
- fix tslv1_2 protocol error (properly, this time!)
| Lua | apache-2.0 | akbooer/openLuup |
953835020d18263fd7a422b0bb6d48b15c50f3ef | modules/textadept/command_entry.lua | modules/textadept/command_entry.lua | -- Copyright 2007-2014 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Abbreviated environment and commands from Jay Gould.
local M = ui.command_entry
--[[ This comment is for LuaDoc.
---
-- Textadept's Command Entry.
--
-- ## Modes
--
-- The command entry supports multiple [modes](#keys.Modes) that have their own... | -- Copyright 2007-2014 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Abbreviated environment and commands from Jay Gould.
local M = ui.command_entry
--[[ This comment is for LuaDoc.
---
-- Textadept's Command Entry.
--
-- ## Modes
--
-- The command entry supports multiple [modes](#keys.Modes) that have their own... | Fixed autocomplete bug in curses; modules/textadept/command_entry.lua | Fixed autocomplete bug in curses; modules/textadept/command_entry.lua
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
8b13d4ab9b3bd805cf062643fba4aa37f6b9d527 | Modules/Shared/Character/HumanoidTracker.lua | Modules/Shared/Character/HumanoidTracker.lua | --- Tracks a player's character's humanoid
-- @classmod HumanoidTracker
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local fastSpawn = require("fastSpawn")
local Maid = require("Maid")
local Signal = require("Signal")
local ValueObject = require("ValueObject")
local Promise ... | --- Tracks a player's character's humanoid
-- @classmod HumanoidTracker
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local fastSpawn = require("fastSpawn")
local Maid = require("Maid")
local Signal = require("Signal")
local ValueObject = require("ValueObject")
local Promise ... | Fix humanoid tracking so it untracks on character change | Fix humanoid tracking so it untracks on character change
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
2420557085ecd34a330b786437c296121bcfc4a0 | frontend/document/doccache.lua | frontend/document/doccache.lua | --[[
"Global" LRU cache used by Document & friends.
--]]
local Cache = require("cache")
local CanvasContext = require("document/canvascontext")
local DataStorage = require("datastorage")
local lfs = require("libs/libkoreader-lfs")
local logger = require("logger")
local md5 = require("ffi/sha2").md5
local util = requir... | --[[
"Global" LRU cache used by Document & friends.
--]]
local Cache = require("cache")
local CanvasContext = require("document/canvascontext")
local DataStorage = require("datastorage")
local lfs = require("libs/libkoreader-lfs")
local logger = require("logger")
local md5 = require("ffi/sha2").md5
local util = requir... | DocCache: Unbreak on !Linux platforms (#9566) | DocCache: Unbreak on !Linux platforms (#9566)
Regression since #9529
Fix #9565 | Lua | agpl-3.0 | poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,poire-z/koreader,NiLuJe/koreader,koreader/koreader,Frenzie/koreader,koreader/koreader |
623359772af1753844cd3e6826ed41b252993f94 | scripts/tundra/path.lua | scripts/tundra/path.lua | -- Copyright 2010 Andreas Fredriksson
--
-- This file is part of Tundra.
--
-- Tundra is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version... | -- Copyright 2010 Andreas Fredriksson
--
-- This file is part of Tundra.
--
-- Tundra is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version... | Add source suffix to object filenames. | Add source suffix to object filenames.
This allows code to have multiple source files with the same base name,
for example foo.c and foo.asm can both be used in the same unit.
Previously, an error was printed in this case due to a DAG conflict.
| Lua | mit | bmharper/tundra,deplinenoise/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra |
2f8a38258d654e8f2448e9266aa42427770c34ba | entity/bump.lua | entity/bump.lua | local Bump = {}
Bump.__index = Bump
function Bump.create(def, game)
local bump = {
game = game,
x = def.x,
y = def.y,
timer = 0
}
setmetatable(bump, Bump)
table.insert(game.bumps, bump)
bump.body = love.physics.newBody(game.world, def.x, def.y,"static")
bump.body:setUserData(bump)
... | local Bump = {}
Bump.__index = Bump
function Bump.create(def, game)
local bump = {
game = game,
x = def.x,
y = def.y,
timer = 0
}
setmetatable(bump, Bump)
table.insert(game.bumps, bump)
bump.body = love.physics.newBody(game.world, def.x, def.y,"static")
bump.body:setUserData(bump)
... | Fix transparency issue | Fix transparency issue
| Lua | mit | GuiSim/pixel |
678c0b2d5ba77092ca4c422b6a3c3e3eefe86b01 | applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua | applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
local dsp = require "luci.dispatcher"
local uci = require "uci"
local m, mwan_rule, src_ip, src_port, dest_ip, dest_port, proto, use_policy
functio... | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
local dsp = require "luci.dispatcher"
local uci = require "uci"
local m, mwan_rule, src_ip, src_port, dest_ip, dest_port, proto, use_policy
functio... | luci-app-mwan3: check rule name length on create | luci-app-mwan3: check rule name length on create
fixes #13499
Signed-off-by: Florian Eckert <ee3e4af9c48a69f5a5c47153eb4a777754bfbe6f@dev.tdt.de>
| Lua | apache-2.0 | lbthomsen/openwrt-luci,hnyman/luci,hnyman/luci,hnyman/luci,hnyman/luci,openwrt/luci,hnyman/luci,hnyman/luci,lbthomsen/openwrt-luci,openwrt/luci,hnyman/luci,hnyman/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,openwrt/luci,lbthomsen/openwrt-luci,openwrt/luci,openwrt/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luc... |
a520d887d67fb32b4e781d6ad914f4c5eee96f2d | test_scripts/Defects/5_0/2670_4_GetInteriorVD_after_ignition_off.lua | test_scripts/Defects/5_0/2670_4_GetInteriorVD_after_ignition_off.lua | ---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_core/issues/2670
--
-- Steps to reproduce:
-- 1. default section in preloaded_pt.json is defined without moduleType parameter
-- 2. Update groups in default with "Rem... | ---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_core/issues/2670
--
-- Steps to reproduce:
-- 1. default section in preloaded_pt.json is defined without moduleType parameter
-- 2. Update groups in default with "Rem... | Fix update/restore SDL PreloadedPT | Fix update/restore SDL PreloadedPT
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
2a7403274511ba008d4a9427f9e676d21786f074 | mods/default/craftitems.lua | mods/default/craftitems.lua | -- mods/default/craftitems.lua
minetest.register_craftitem("default:stick", {
description = "Stick",
inventory_image = "default_stick.png",
groups = {stick = 1, flammable = 2},
})
minetest.register_craftitem("default:paper", {
description = "Paper",
inventory_image = "default_paper.png",
groups = {flammable = 3... | -- mods/default/craftitems.lua
minetest.register_craftitem("default:stick", {
description = "Stick",
inventory_image = "default_stick.png",
groups = {stick = 1, flammable = 2},
})
minetest.register_craftitem("default:paper", {
description = "Paper",
inventory_image = "default_paper.png",
groups = {flammable = 3... | Books: Fix backwards compatibility issues | Books: Fix backwards compatibility issues
Commit c68b8274fed183f30bd7609018766a261448b83d prevented books from
being copied in the crafting grid, and made it so that old books, though
seemingly successfully transferred to the new format, could not be written
to as the old data still persisted.
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
b8a7b3d8e12ea941537d5443bd36445fda529986 | mods/mobs/dungeonmaster.lua | mods/mobs/dungeonmaster.lua |
-- Dungeon Master by PilzAdam
-- Node which cannot be destroyed by DungeonMasters' fireballs
local excluded = {"nether:netherrack","default:obsidian_glass","doors:door_steel_b_1","doors:door_steel_t_1","doors:door_steel_b_2","doors:door_steel_t_2","default:chest_locked"}
mobs:register_mob("mobs:dungeon_master", {
-... |
-- Dungeon Master by PilzAdam
-- Node which cannot be destroyed by DungeonMasters' fireballs
local excluded = {"nether:netherrack","default:obsidian_glass","default:obsidian","default:bedrock", "doors:door_steel_b_1", "doors:door_steel_t_1", "doors:door_steel_b_2", "doors:door_steel_t_2","default:chest_locked"}
mobs... | add obsidian and fix wrong var | add obsidian and fix wrong var
| Lua | unlicense | Gael-de-Sailly/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,crabman77/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,sys4-fr/server-minetestforfun,Ombridride/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,paly... |
720a8356c8b447d764f8d139ce281dcf34b78d6f | src/plugins/core/webapp/init.lua | src/plugins/core/webapp/init.lua | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- W E B A P P --
-----------------------------------------------------------------------------... | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- W E B A P P --
-----------------------------------------------------------------------------... | Fixed Bug in WebApp | Fixed Bug in WebApp
| Lua | mit | cailyoung/CommandPost,fcpxhacks/fcpxhacks,cailyoung/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
6ac92a9967bd4f14b4f729b45aac1222e24d6cba | lib/switchboard_modules/lua_script_debugger/premade_scripts/12_rtc_triggered_logging.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/12_rtc_triggered_logging.lua | print("Log voltage of AIN1 to file every 10 minutes. RTC value checked every 1000ms.")
--Requires micro SD Card installed inside the T7 or T7-Pro.
--Requires FW 1.0150 or newer.
--T7 uSD card. http://labjack.com/support/datasheets/t7/sd-card
--Timestamp (real-time-clock) available on T7-Pro only
--Note that as of Firmw... | --[[
Name: 12_rtc_triggered_logging.lua
Desc: Example showing how to log AIN values to file on an SD card
Note: Requires a micro SD Card installed inside the T7 or T7-Pro
T7 uSD card:
http://labjack.com/support/datasheets/t7/sd-card
Timestamp (real-time-clock) is only avai... | Fixed up the formatting of the rtc triggered logging example | Fixed up the formatting of the rtc triggered logging example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
5dfbad3a970a7ed7f368adf93b52d1ed0d46c6ed | lib/resty/kafka/broker.lua | lib/resty/kafka/broker.lua | -- Copyright (C) Dejiang Zhu(doujiang24)
local response = require "resty.kafka.response"
local to_int32 = response.to_int32
local setmetatable = setmetatable
local tcp = ngx.socket.tcp
local _M = { _VERSION = "0.01" }
local mt = { __index = _M }
function _M.new(self, host, port, socket_config)
return setmet... | -- Copyright (C) Dejiang Zhu(doujiang24)
local response = require "resty.kafka.response"
local to_int32 = response.to_int32
local setmetatable = setmetatable
local tcp = ngx.socket.tcp
local _M = { _VERSION = "0.01" }
local mt = { __index = _M }
function _M.new(self, host, port, socket_config)
return setmet... | bugfix: only recieve timeout can not be safe retry in socket errors | bugfix: only recieve timeout can not be safe retry in socket errors
| Lua | bsd-3-clause | wangfakang/lua-resty-kafka,wzb56/lua-resty-kafka,doujiang24/lua-resty-kafka |
f6b3d4e7334d5f5f71e334a998037ca01b234086 | src/Options.lua | src/Options.lua | local Log = require 'Log'
local P = {}
P.__index = P
function P:new(config)
local this = {
config = { long = {}, short = {} },
init = {}
}
setmetatable(this, self)
for _, item in ipairs(config or {}) do
local opt, cfg = {}, ''
if type(item[1]) == 'string' then
... | local Log = require 'Log'
local P = {}
P.__index = P
function P:new(config)
local this = {
config = { long = {}, short = {} },
init = {}
}
setmetatable(this, self)
for _, item in ipairs(config or {}) do
local opt, cfg = {}, ''
if type(item[1]) == 'string' then
... | Fix args stringification ignoring some flags | Fix args stringification ignoring some flags
String conversion function of Options was incorrect causing it to miss
true/false values. In particular --quiet which is supposed to be set
implicitly for build command without arguments.
The regression introduced in b05cfbee.
| Lua | mit | bazurbat/jagen |
93f68201992bd34d5db235076e793d36faf40061 | Hydra/screen.lua | Hydra/screen.lua | doc.screen.__doc = [[
Manipulate screens (i.e. monitors).
You usually get a screen through a window (see `window.screen`). But you can get screens by themselves through this module, albeit not in any defined/useful order.
Hydra's coordinate system assumes a grid that is the union of every screen's rect (see `screen.f... | doc.screen.__doc = [[
Manipulate screens (i.e. monitors).
You usually get a screen through a window (see `window.screen`). But you can get screens by themselves through this module, albeit not in any defined/useful order.
Hydra's coordinate system assumes a grid that is the union of every screen's rect (see `screen.f... | Mention that screen methods wrap; fixes #126. | Mention that screen methods wrap; fixes #126.
| Lua | mit | lowne/hammerspoon,chrisjbray/hammerspoon,chrisjbray/hammerspoon,wsmith323/hammerspoon,Hammerspoon/hammerspoon,junkblocker/hammerspoon,wsmith323/hammerspoon,knu/hammerspoon,cmsj/hammerspoon,emoses/hammerspoon,wvierber/hammerspoon,wvierber/hammerspoon,dopcn/hammerspoon,Hammerspoon/hammerspoon,asmagill/hammerspoon,zzambon... |
5f0b31c9341ba87574acfa68a647de0af8862738 | watcher.lua | watcher.lua | directions = require 'directions'
local function exports(x, y, direction)
assert(directions.is_direction(direction))
local instance = {}
instance.type = 'watcher'
instance.x = x
instance.y = y
instance.direction = direction
instance.image = love.graphics.newImage('placeholders/watcher.png')
instance.quad = l... | directions = require 'directions'
local function exports(x, y, direction)
assert(directions.is_direction(direction))
local instance = {}
instance.type = 'watcher'
instance.x = x
instance.y = y
instance.direction = direction
instance.image = love.graphics.newImage('placeholders/watcher.png')
instance.quad = l... | Fix glider kill. | Fix glider kill.
| Lua | mit | NamefulTeam/PortoGameJam2015 |
578a2ebf3043ba5fe8dee7073359f0db01776331 | LibGuildStorage-1.0.lua | LibGuildStorage-1.0.lua | -- This library handles storing information in officer notes. It
-- streamlines and optimizes access to these notes. The API is as
-- follows:
--
-- GetNote(name): Returns the officer note of member 'name'
--
-- SetNote(name, note): Sets the officer note of member 'name' to
-- 'note'
--
-- GetClass(name): Returns the c... | -- This library handles storing information in officer notes. It
-- streamlines and optimizes access to these notes. The API is as
-- follows:
--
-- GetNote(name): Returns the officer note of member 'name'
--
-- SetNote(name, note): Sets the officer note of member 'name' to
-- 'note'
--
-- GetClass(name): Returns the c... | Fix thinko and add some documentation about the states. | Fix thinko and add some documentation about the states.
| Lua | bsd-3-clause | sheldon/epgp,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,ceason/epgp-tfatf |
4f744b474d17073d6a7d13d3e6af7e807e358a53 | stock-widget.lua | stock-widget.lua | local wibox = require("wibox")
local awful = require("awful")
awful.util = require("awful.util")
local os = require("os")
local function color_tags(color)
if color
then return '<span color="' .. color .. '">', '</span>'
else return '', ''
end
end
local function substitute(template, context)
if ty... | local wibox = require("wibox")
local awful = require("awful")
awful.util = require("awful.util")
local os = require("os")
local naughty = require("naughty")
local function color_tags(color)
if color
then return '<span color="' .. color .. '">', '</span>'
else return '', ''
end
end
local function subs... | Basic notification for errors getting stock info | Basic notification for errors getting stock info
- Fixes #1
| Lua | mit | whwright/stock-widget |
722e67faf14f80b46c7f89cbd73f4a3378917c49 | spec/model/row_spec.lua | spec/model/row_spec.lua | local model = require 'npge.model'
local Row = model.Row
describe("model.row", function()
it("throws on empty string", function()
assert.has_error(function()
Row("")
end)
end)
it("uses row A-T-G-C", function()
local r = Row("A-T-G-C")
assert.are.equal(r:length()... | local model = require 'npge.model'
local Row = model.Row
describe("model.row", function()
it("throws on empty string", function()
assert.has_error(function()
Row("")
end)
end)
it("uses row A-T-G-C", function()
local r = Row("A-T-G-C")
assert.are.equal(r:length()... | fix error in row_spec | fix error in row_spec
tests were not applied :(
| Lua | mit | starius/lua-npge,starius/lua-npge,npge/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge |
2d7f26d689c17f9e0f7d9a05681e7647e1c02703 | stdlib/log/logger.lua | stdlib/log/logger.lua | --- Logger module
-- @module log
Logger = {}
--- Creates a new logger object
-- In debug mode, the logger writes immediately. Otherwise it buffers lines.
-- Logger flushes after 60 seconds has elapsed since the last message.
-- @param mod_name [required] the name of the mod to create the logger for
-- @param log_name... | --- Logger module
-- @module log
Logger = {}
--- Creates a new logger object
-- In debug mode, the logger writes immediately. Otherwise it buffers lines.
-- Logger flushes after 60 seconds has elapsed since the last message.
-- @param mod_name [required] the name of the mod to create the logger for
-- @param log_name... | Fix invalid default value for logger options | Fix invalid default value for logger options
| Lua | isc | Afforess/Factorio-Stdlib |
c8cef7fcb008f9d33a7ef1c689e5a6481177a3ec | src/actions/vstudio/vs2005.lua | src/actions/vstudio/vs2005.lua | --
-- actions/vstudio/vs2005.lua
-- Add support for the Visual Studio 2005 project formats.
-- Copyright (c) 2008-2013 Jason Perkins and the Premake project
--
premake.vstudio.vs2005 = {}
local vs2005 = premake.vstudio.vs2005
local vstudio = premake.vstudio
---
-- Register a command-line action for Visual Studio... | --
-- actions/vstudio/vs2005.lua
-- Add support for the Visual Studio 2005 project formats.
-- Copyright (c) 2008-2013 Jason Perkins and the Premake project
--
premake.vstudio.vs2005 = {}
local vs2005 = premake.vstudio.vs2005
local vstudio = premake.vstudio
---
-- Register a command-line action for Visual Studio... | This fixes issue #41 by simply resetting the indentation to its default at the beginning of solution generation, i.e. in vs2005.generateSolution, shared by all VS implementations | This fixes issue #41 by simply resetting the indentation to its default at the beginning of solution generation, i.e. in vs2005.generateSolution, shared by all VS implementations
| Lua | bsd-3-clause | dimitarcl/premake-dev,dimitarcl/premake-dev,dimitarcl/premake-dev |
b4f76da576e577944521d50663b84a1780ffa2cb | test_scripts/RC/ButtonPress/005_check_rpc_paramters_for_button_press.lua | test_scripts/RC/ButtonPress/005_check_rpc_paramters_for_button_press.lua | ---------------------------------------------------------------------------------------------------
-- RPC: ButtonPress
-- Script: 005
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local commonRC = require('test_scripts/RC/commonRC'... | ---------------------------------------------------------------------------------------------------
-- RPC: ButtonPress
-- Script: 005
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local commonRC = require('test_scripts/RC/commonRC'... | fix issues according to pull request comments | fix issues according to pull request comments
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
d53f0daa86d210e2e60b4ac8c68e8b4fb18b3a66 | nvim/nvim/lua/_/completion.lua | nvim/nvim/lua/_/completion.lua | local has_cmp, cmp = pcall(require, 'cmp')
local has_lspkind, lspkind = pcall(require, 'lspkind')
local utils = require '_.utils'
local M = {}
local check_back_space = function()
local col = vim.fn.col('.') - 1
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
return true
else
return fal... | local has_cmp, cmp = pcall(require, 'cmp')
local has_lspkind, lspkind = pcall(require, 'lspkind')
local utils = require '_.utils'
local M = {}
local check_back_space = function()
local col = vim.fn.col('.') - 1
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
return true
else
return fal... | fix(nvim): completion of nvim-cmp | fix(nvim): completion of nvim-cmp
| Lua | mit | skyuplam/dotfiles,skyuplam/dotfiles |
95b15ae1bb5546be54bd94e563a404d89e36e110 | lib/switchboard_modules/lua_script_debugger/premade_scripts/digital_io_ef/PWM_Library.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/digital_io_ef/PWM_Library.lua | --This script can be used as a library of functions to configure the PWM registers for output and write new duty cycles to the PWM channel.
--PWM is available on the T7 on FIO0-FIO5 (T4 PWM is on FIO6 & FIO7)
--See the device datasheet for more information on PWM output.
--Functions to configure T7/T4
outPin = 0--FIO... | --This script can be used as a library of functions to configure the PWM registers for output and write new duty cycles to the PWM channel.
--PWM is available on the T7 on FIO0-FIO5 (T4 PWM is on FIO6 & FIO7)
--See the device datasheet for more information on PWM output.
-- Details about compatible DIO channels (tables... | Update PWM_Library.lua | Update PWM_Library.lua
Fixed issue where duty cycle was immediately set to 0% after initializing. Added additional comments about T-Series PWM features. | Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
f4e34264f309cbb67099febffe45734e6d2c77aa | src/module/settings.lua | src/module/settings.lua | -- This module adds a settings API.
local obj = {}
obj._init = function()
-- Define global cfg object
cfg = {}
cfg.data = {}
cfg.file = 'settings.json'
obj.load()
end
obj._configuration_fields = function()
return {
sta_ssid = {},
sta_psk = {},
ap_psk = {
default = 'ESP-8266'
},
... | -- This module adds a settings API.
local obj = {}
obj._init = function()
-- Define global cfg object
cfg = {}
cfg.data = {}
cfg.file = 'settings.json'
obj.load()
end
obj._configuration_fields = function()
return {
sta_ssid = {
type = 'text',
default = ''
},
sta_psk = {
type ... | bugfixes | bugfixes
Signed-off-by: Kalman Olah <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d@kalmanolah.net>
| Lua | mit | kalmanolah/kalmon-ESP8266 |
6c0489b5f3f7161d1c9a7e535d2f892a2a533ad3 | mods/BeardLib-Editor/Classes/Map/Elements/filterelement.lua | mods/BeardLib-Editor/Classes/Map/Elements/filterelement.lua | EditorFilter = EditorFilter or class(MissionScriptEditor)
function EditorFilter:create_element()
self.super.create_element(self)
self._element.class = "ElementFilter"
self._element.values.difficulty_easy = true
self._element.values.difficulty_normal = true
self._element.values.difficulty_hard = true
self._element... | EditorFilter = EditorFilter or class(MissionScriptEditor)
function EditorFilter:create_element()
self.super.create_element(self)
self._element.class = "ElementFilter"
self._element.values.difficulty_easy = true
self._element.values.difficulty_normal = true
self._element.values.difficulty_hard = true
self._element... | Fixed filter element | Fixed filter element
Added the missing true values on the new difficulties. Removed unused code :
if self._element.values.difficulty_overkill_290 == nil then
self._element.values.difficulty_overkill_290 = self._element.values.difficulty_overkill_145
end | Lua | mit | simon-wh/PAYDAY-2-BeardLib-Editor |
525da459d78596cfc8dce9ed2fc690fb395b5a55 | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | admin-full: Better fix for the last change (timeserver setup), add button to add the missing section | admin-full: Better fix for the last change (timeserver setup), add button to add the missing section
| Lua | apache-2.0 | palmettos/test,palmettos/test,tcatm/luci,NeoRaider/luci,cappiewu/luci,bright-things/ionic-luci,Wedmer/luci,deepak78/new-luci,wongsyrone/luci-1,Hostle/luci,deepak78/new-luci,slayerrensky/luci,zhaoxx063/luci,shangjiyu/luci-with-extra,ollie27/openwrt_luci,maxrio/luci981213,ff94315/luci-1,harveyhu2012/luci,hnyman/luci,lcf2... |
a329dfbd1a047f3e7b64fab2e73680cdf9e3d10c | lantern/core/history.lua | lantern/core/history.lua | --
-- Utility functions for measuring improvements in the training and testing
-- metrics.
--
function lantern.improved_metrics(old, new)
local improved = {}
for k, v in pairs(old) do
local dir = lantern.performance_metrics[k]
if not new[k] and dir then
improved[k] = v
elseif new[k] and dir == "increasin... | --
-- Utility functions for measuring improvements in the training and testing
-- metrics.
--
function lantern.improved_metrics(old, new)
local improved = {}
for k, v in pairs(old) do
local dir = lantern.performance_metrics[k]
if not new[k] and dir then
improved[k] = v
elseif new[k] and dir == "increasin... | Fixed bug. | Fixed bug.
| Lua | bsd-3-clause | adityaramesh/lantern |
4ec7ae1e199b1ddf5ba8a8913a3a6b4a85d76755 | src/register.lua | src/register.lua | -- register.lua -- Hardware device register abstraction
module(...,package.seeall)
--- ### Register object
--- There are three types of register objects, set by the mode when created:
--- * `RO` - read only.
--- * `RW` - read-write.
--- * `RC` - read-only and return the sum of all values read. This
--- mode is for ... | -- register.lua -- Hardware device register abstraction
module(...,package.seeall)
--- ### Register object
--- There are three types of register objects, set by the mode when created:
--- * `RO` - read only.
--- * `RW` - read-write.
--- * `RC` - read-only and return the sum of all values read. This
--- mode is for ... | register.lua: Workaround JIT bug (?) on readrc() with jit.off(). | register.lua: Workaround JIT bug (?) on readrc() with jit.off().
| Lua | apache-2.0 | SnabbCo/snabbswitch,Igalia/snabb,andywingo/snabbswitch,SnabbCo/snabbswitch,dwdm/snabbswitch,Igalia/snabb,mixflowtech/logsensor,dpino/snabb,Igalia/snabb,SnabbCo/snabbswitch,aperezdc/snabbswitch,dpino/snabb,alexandergall/snabbswitch,wingo/snabbswitch,wingo/snabb,dpino/snabbswitch,dpino/snabbswitch,snabbnfv-goodies/snabbs... |
b7a473545fd7373dfb3ccb197546c872313370cc | lstm/MemoryChain.lua | lstm/MemoryChain.lua | local MemoryChain, parent = torch.class('lstm.MemoryChain', 'nn.Module')
function MemoryChain:__init(inputSize, hiddenSize, maxLength)
print("MemoryChain("..inputSize..','..hiddenSize..','..maxLength..')')
parent.__init(self)
self.inputSize = inputSize
self.hiddenSize = hiddenSize
self.maxLength = maxLength
... | local MemoryChain, parent = torch.class('lstm.MemoryChain', 'nn.Module')
function MemoryChain:__init(inputSize, hiddenSize, maxLength)
print("MemoryChain("..inputSize..','..hiddenSize..','..maxLength..')')
parent.__init(self)
self.inputSize = inputSize
self.hiddenSize = hiddenSize
self.maxLength = maxLength
... | fixed bug that broke parameter sharing | fixed bug that broke parameter sharing
| Lua | mit | kbullaughey/lstm-play,kbullaughey/lstm-play,kbullaughey/lstm-play |
14622912424da6a4668a2856cbbaf5841359bfa8 | src/loader.lua | src/loader.lua | local Gamestate = require 'vendor/gamestate'
local Level = require 'level'
local window = require 'window'
local fonts = require 'fonts'
local state = Gamestate.new()
local home = require 'menu'
local nextState = 'home'
function state:init()
state.finished = false
state.current = 1
state.assets = {}
... | local Gamestate = require 'vendor/gamestate'
local Level = require 'level'
local window = require 'window'
local fonts = require 'fonts'
local state = Gamestate.new()
local home = require 'menu'
local nextState = 'home'
function state:init()
state.finished = false
state.current = 1
state.assets = {}
... | Fixing master branch commit issue | Fixing master branch commit issue
| Lua | mit | hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua |
fdf44a0b6b4296fbb467eda64fcee4235a94d257 | irc/handlers.lua | irc/handlers.lua | local pairs = pairs
local error = error
local tonumber = tonumber
local print=print
module "irc"
handlers = {}
handlers["PING"] = function(o, prefix, query)
o:send("PONG :%s", query)
end
handlers["001"] = function(o, prefix, me)
o.authed = true
o.nick = me
end
handlers["PRIVMSG"] = function(o, prefix, channel, ... | local pairs = pairs
local error = error
local tonumber = tonumber
local print=print
module "irc"
handlers = {}
handlers["PING"] = function(o, prefix, query)
o:send("PONG :%s", query)
end
handlers["001"] = function(o, prefix, me)
o.authed = true
o.nick = me
end
handlers["PRIVMSG"] = function(o, prefix, channel, ... | fix possible crash when someone changes nicks | fix possible crash when someone changes nicks
| Lua | mit | Brilliant-Minds/BMNBot-2,wolfy1339/WolfyBot,wolfy1339/WolfyBot,cracker64/Crackbot,GLolol/Crackbot,Brilliant-Minds/BMNBot-2,GLolol/Crackbot,wolfy1339/WolfyBot,cracker64/Crackbot |
7937f5507396a780d8c9aa390f5978828706a6d8 | premake4.lua | premake4.lua | --
-- Premake 5.x build configuration script
-- Use this script to configure the project with Premake4.
--
--
-- Define the project. Put the release configuration first so it will be the
-- default when folks build using the makefile. That way they don't have to
-- worry about the /scripts argument and all that.
--
... | --
-- Premake 5.x build configuration script
-- Use this script to configure the project with Premake4.
--
--
-- Define the project. Put the release configuration first so it will be the
-- default when folks build using the makefile. That way they don't have to
-- worry about the /scripts argument and all that.
--
... | Fix bootstrapping with premake4 | Fix bootstrapping with premake4
| Lua | bsd-3-clause | Meoo/premake-core,Yhgenomics/premake-core,jstewart-amd/premake-core,dcourtois/premake-core,PlexChat/premake-core,jstewart-amd/premake-core,xriss/premake-core,xriss/premake-core,premake/premake-core,Yhgenomics/premake-core,sleepingwit/premake-core,mendsley/premake-core,kankaristo/premake-core,saberhawk/premake-core,Plex... |
88adae0d3de046e5ac0f44c8662f51051b737e43 | premake5.lua | premake5.lua | workspace "Dab"
location "build"
configurations { "Debug", "Release" }
function dab_common_setup(name)
project(name)
kind "ConsoleApp"
language "C++"
targetdir "bin/"
flags "C++11"
warnings "Extra"
flags "FatalCompileWarnings"
files { "src/cshared/**.h", "src/cshared/**.cpp" }
f... | workspace "Dab"
location "build"
configurations { "Debug", "Release" }
function dab_common_setup(name)
project(name)
kind "ConsoleApp"
language "C++"
targetdir "bin/"
flags "C++11"
warnings "Extra"
flags "FatalCompileWarnings"
files { "src/cshared/**.h", "src/cshared/**.cpp" }
f... | premake: fix configuration for windows | premake: fix configuration for windows
| Lua | mit | thomas-pendragon/dablang,thomas-pendragon/dablang,thomas-pendragon/dablang,thomas-pendragon/dablang |
4ce917a633c080dd0955f856e6e64efe69f948b6 | src/table/src/Shared/Table.lua | src/table/src/Shared/Table.lua | --[=[
Provide a variety of utility table operations
@class Table
]=]
local Table = {}
--[=[
Concats `target` with `source`.
@param target table -- Table to append to
@param source table -- Table read from
@return table -- parameter table
]=]
function Table.append(target, source)
for _, value in pairs(source) ... | --[=[
Provide a variety of utility table operations
@class Table
]=]
local Table = {}
--[=[
Concats `target` with `source`.
@param target table -- Table to append to
@param source table -- Table read from
@return table -- parameter table
]=]
function Table.append(target, source)
for _, value in pairs(source) ... | fix: Use table.clone for table.copy | fix: Use table.clone for table.copy
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
cd544009babb29cf54a1e8d31da94833c178a4f8 | lua/entities/gmod_wire_spawner.lua | lua/entities/gmod_wire_spawner.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Prop Spawner"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Prop Spawner"
if CLIENT then return end -- No more client
local GlobalUndoList = {}
hook.Add("EntityRemoved", "wire_spawner_EntityRemoved", function(ent)
if not Gl... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Prop Spawner"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Prop Spawner"
if CLIENT then return end -- No more client
local wire_spawner_delay = CreateConVar( "wire_spawner_delay", game.SinglePlayer() and 0 or 0.2 )
local Gl... | Fix #553. Nerf the prop spawner. | Fix #553. Nerf the prop spawner.
It now can't spawn props if one of its spawned props is already inside
it, or after a fixed delay (controlled by convar wire_spawner_delay).
| Lua | apache-2.0 | NezzKryptic/Wire,garrysmodlua/wire,immibis/wiremod,plinkopenguin/wiremod,thegrb93/wire,sammyt291/wire,bigdogmat/wire,notcake/wire,mms92/wire,Grocel/wire,Python1320/wire,rafradek/wire,CaptainPRICE/wire,dvdvideo1234/wire,wiremod/wire,mitterdoo/wire |
9a72ae7d82f622ea051a101b5c5918147be03a65 | prosody-modules/mod_auth_external.lua | prosody-modules/mod_auth_external.lua | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local use... | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local use... | Fix "attempt to index global 'lpty' (a nil value)" on Prosody 0.11 | Fix "attempt to index global 'lpty' (a nil value)" on Prosody 0.11
In reference to https://github.com/jsxc/xmpp-cloud-auth/issues/74
Moved line 23 below line 36.
I guess it's because Prosody 0.11 supports async while 0.10 does not. | Lua | mit | jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth |
342b0ed11f771fc3157efdd37a6450267fc064f3 | scripts/bimg.lua | scripts/bimg.lua | --
-- Copyright 2010-2017 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
--
project "bimg"
kind "StaticLib"
includedirs {
path.join(BX_DIR, "include"),
path.join(BIMG_DIR, "include"),
}
files {
path.join(BIMG_DIR, "src/image.*"),
}
project "bimg_d... | --
-- Copyright 2010-2017 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
--
project "bimg"
kind "StaticLib"
includedirs {
path.join(BX_DIR, "include"),
path.join(BIMG_DIR, "include"),
}
files {
path.join(BIMG_DIR, "src/image.*"),
}
configuration ... | Fixed shared lib build. | Fixed shared lib build.
| Lua | bsd-2-clause | bkaradzic/bimg,bkaradzic/bimg |
cc25601b2f1b999cc7ecbc750efb132176cd60aa | home/lib/mpm/rstools.lua | home/lib/mpm/rstools.lua | -----------------------------------------------------
--name : home/lib/mpm/rstools.lua
--description: a library that makes working with redstone easier
--author : mpmxyz
--github page: https://github.com/mpmxyz/ocprograms
--forum page : http://oc.cil.li/index.php?/topic/
-------------------------------------... | -----------------------------------------------------
--name : home/lib/mpm/rstools.lua
--description: a library that makes working with redstone easier
--author : mpmxyz
--github page: https://github.com/mpmxyz/ocprograms
--forum page : http://oc.cil.li/index.php?/topic/
-------------------------------------... | mpm.rstools: fixed some bugs, "address" can now be a proxy table, added documentation | mpm.rstools: fixed some bugs, "address" can now be a proxy table, added documentation
| Lua | mit | mpmxyz/ocprograms |
ee610b780b6891bc68da151f809a7a4111fe24dd | spec/plugins/basicauth/access_spec.lua | spec/plugins/basicauth/access_spec.lua | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local STUB_GET_URL = spec_helper.STUB_GET_URL
local STUB_POST_URL = spec_helper.STUB_POST_URL
describe("Authentication Plugin", function()
setup(function()
spec_helper.prepare_db()... | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local PROXY_URL = spec_helper.PROXY_URL
describe("Authentication Plugin", function()
setup(function()
spec_helper.prepare_db()
spec_helper.insert_fixtures {
api = {
... | Fixing test | Fixing test
| Lua | apache-2.0 | peterayeni/kong |
6a3145acab79dc0b1f2c4124ed13e9f8e355543f | deps/require.lua | deps/require.lua |
if exports then
exports.name = "luvit/require"
exports.version = "0.2.1"
end
local luvi = require('luvi')
local bundle = luvi.bundle
local pathJoin = luvi.path.join
local env = require('env')
local os = require('ffi').os
local uv = require('uv')
local realRequire = _G.require
local tmpBase = os == "Windows" and... |
if exports then
exports.name = "luvit/require"
exports.version = "0.2.1"
end
local luvi = require('luvi')
local bundle = luvi.bundle
local pathJoin = luvi.path.join
local env = require('env')
local os = require('ffi').os
local uv = require('uv')
local realRequire = _G.require
local tmpBase = os == "Windows" and... | Import key vs logical path fix from luvit require | Import key vs logical path fix from luvit require
| Lua | apache-2.0 | kidaa/lit,squeek502/lit,DBarney/lit,james2doyle/lit,lduboeuf/lit,1yvT0s/lit,zhaozg/lit,luvit/lit,kaustavha/lit |
6d740ea2674ed03394555d54854e3967f7e00bef | nyagos.lua | nyagos.lua | --------------------------------------------------------------------------
-- DO NOT EDIT THIS. PLEASE EDIT ~\.nyagos OR ADD SCRIPT INTO nyagos.d\ --
--------------------------------------------------------------------------
if nyagos == nil then
print("This is the startup script for NYAGOS")
print("Do n... | --------------------------------------------------------------------------
-- DO NOT EDIT THIS. PLEASE EDIT ~\.nyagos OR ADD SCRIPT INTO nyagos.d\ --
--------------------------------------------------------------------------
if nyagos == nil then
print("This is the startup script for NYAGOS")
print("Do n... | Fix (c) on nyagos.lua | Fix (c) on nyagos.lua
| Lua | bsd-3-clause | hattya/nyagos,nocd5/nyagos,hattya/nyagos,kissthink/nyagos,tyochiai/nyagos,zetamatta/nyagos,tsuyoshicho/nyagos,hattya/nyagos,kissthink/nyagos,kissthink/nyagos |
5b752c101afea99d38eda304663b17a601240bba | spec/env/env.lua | spec/env/env.lua | local inspect = require 'spec.env.inspect'
local http = require 'spec.env.http'
local sha = require 'spec.env.sha'
local bucket = require 'spec.env.bucket'
local Console = require 'spec.env.console'
local send = require 'spec.env.send'
local metric = require 'spec.env.metr... | local inspect = require 'spec.env.inspect'
local http = require 'spec.env.http'
local sha = require 'spec.env.sha'
local bucket = require 'spec.env.bucket'
local Console = require 'spec.env.console'
local send = require 'spec.env.send'
local metric = require 'spec.env.metr... | Fix timer.http method | Fix timer.http method
| Lua | mit | APItools/middleware |
6e747a0221f1770b3362a234d0ffe6bcb50353b4 | core/xmlhandlers.lua | core/xmlhandlers.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.
--
require "util.stanza"
local st = stanza;
local tostring = tostring;
local pairs = pairs;
local ipairs ... | -- 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.
--
require "util.stanza"
local st = stanza;
local tostring = tostring;
local pairs = pairs;
local ipairs ... | xmlhandlers: Reset state on error or stream close, fixes possible traceback | xmlhandlers: Reset state on error or stream close, fixes possible traceback
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
f0231a2dd7ca04a274e2aaeaba3a98dc5d779be3 | kong/api/routes/upstreams.lua | kong/api/routes/upstreams.lua | local endpoints = require "kong.api.endpoints"
local utils = require "kong.tools.utils"
local knode = (kong and kong.node) and kong.node or
require "kong.pdk.node".new()
local unescape_uri = ngx.unescape_uri
local escape_uri = ngx.escape_uri
local null = ngx.null
local fmt = string.format
local functi... | local endpoints = require "kong.api.endpoints"
local utils = require "kong.tools.utils"
local knode = (kong and kong.node) and kong.node or
require "kong.pdk.node".new()
local unescape_uri = ngx.unescape_uri
local escape_uri = ngx.escape_uri
local null = ngx.null
local fmt = string.format
local functi... | fix(api) catch invalid inputs in upstream endpoints | fix(api) catch invalid inputs in upstream endpoints
Refactors the upstream endpoints using new functionality from
`kong.api.endpoints` in order to produce 404 upon invalid targets
(instead of failing with 500).
Includes a performance improvement (avoiding needless queries)
when fetching targets by uuid.
Fixes #4132.... | Lua | apache-2.0 | Mashape/kong,Kong/kong,Kong/kong,Kong/kong |
dba1668011baba6bb37a3d7c0e759beb96352c30 | build/scripts/common.lua | build/scripts/common.lua | -- Configuration gnrale
configurations
{
-- "DebugStatic",
-- "ReleaseStatic",
"DebugDLL",
"ReleaseDLL"
}
defines "NAZARA_BUILD"
language "C++"
location(_ACTION)
includedirs
{
"../include",
"../src/",
"../extlibs/include"
}
libdirs "../lib"
if (_OPTIONS["x64"]) then
libdirs "../extlibs/lib/x64"
end
libdirs ... | -- Configuration gnrale
configurations
{
-- "DebugStatic",
-- "ReleaseStatic",
"DebugDLL",
"ReleaseDLL"
}
defines "NAZARA_BUILD"
language "C++"
location(_ACTION)
includedirs
{
"../include",
"../src/",
"../extlibs/include"
}
libdirs "../lib"
if (_OPTIONS["x64"]) then
libdirs "../extlibs/lib/x64"
end
libdirs ... | Fixed SSE2 not being enabled | Fixed SSE2 not being enabled
Former-commit-id: b4b6b3e014bac4dedfe684a30f9729b4c8f03a36 | Lua | mit | DigitalPulseSoftware/NazaraEngine |
00f8b0fd1ec140d21ae9b303c5824788bc083272 | 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) schema errors | fix(session) schema errors
* remove unused endpoint_key
* enum -> one_of
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
a483a6bed3c41af57c21536dea88e90eafa50bb3 | plugins/mod_saslauth.lua | plugins/mod_saslauth.lua | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_reso... | -- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_reso... | mod_saslauth: Various logging fixes | mod_saslauth: Various logging fixes
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
8fe8b3e13b0fdede1fd908cdc0ff3b1bdb405870 | Modules/Shared/Events/StepUtils.lua | Modules/Shared/Events/StepUtils.lua | --- Binds animations into step, where the animation only runs as needed
-- @module StepUtils
-- @author Quenty
local HttpService = game:GetService("HttpService")
local RunService = game:GetService("RunService")
local StepUtils = {}
-- update should return true while it needs to update
function StepUtils.bindToRender... | --- Binds animations into step, where the animation only runs as needed
-- @module StepUtils
-- @author Quenty
local HttpService = game:GetService("HttpService")
local RunService = game:GetService("RunService")
local StepUtils = {}
-- update should return true while it needs to update
function StepUtils.bindToRender... | Fix reentrance issue with step utils | Fix reentrance issue with step utils
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
e708a666c77bf8b66526325d6a8bef99d8f23eb4 | init.lua | init.lua | -- Copyright 2016 BMC Software, 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 requi... | -- Copyright 2016 BMC Software, 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 requi... | Jira-PLUG-118 issue fixed | Jira-PLUG-118 issue fixed
| Lua | apache-2.0 | boundary/boundary-plugin-openstack |
75cb0ba631b9849435444a266c0d14fef7c7f73c | joinme/joinme.lua | joinme/joinme.lua | -- joinme.lua
-- do initial wifi config for NodeMCU over HTTP
-- preliminaries
joinme = {}
nu = require("nmutils")
-- debug code
print("are we running on NodeMCU? ", nu.isnodemcu())
-- config data
local conffile = "joinmeconf.lua"
-- local utilities
local function printip() print("Wifi station ip: ", wifi.sta.getip... | -- joinme.lua
-- do initial wifi config for NodeMCU over HTTP
-- preliminaries
joinme = {}
nu = require("nmutils")
-- debug code
print("are we running on NodeMCU? ", nu.isnodemcu())
-- config data
local conffile = "joinmeconf.lua"
-- local utilities
local function printip() print("Wifi station ip: ", wifi.sta.getip... | fix uploader issue | fix uploader issue
| Lua | agpl-3.0 | hamishcunningham/fishy-wifi,pastukhov/fishy-wifi,pastukhov/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,pastukhov/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,pastukhov/fishy-wifi |
8543df2868f809dcdb8c25039e0edcd21b73d5c9 | cookie-cutter/cookie-cutter.lua | cookie-cutter/cookie-cutter.lua | -- Cookie cutter module
local cookie_cutter_module = {}
function cookie_cutter_module.svg_extrude_centered(filename, dpi, height)
local svg_shapes = svg_ex(filename, dpi)
for i, contour in pairs(svg_shapes) do
obj = linear_extrude(
v(0, 0, height),
contour:outline())
--obj = scale(-1, 1, 1) * ... | -- Cookie cutter module
local cookie_cutter_module = {}
function cookie_cutter_module.svg_extrude_centered(filename, dpi, height)
local svg_shapes = svg_ex(filename, dpi)
local shapes = {}
for i, contour in pairs(svg_shapes) do
obj = linear_extrude(
v(0, 0, height),
contour:outline())
--obj ... | fix(cookie-cutter): Handle multiple paths | fix(cookie-cutter): Handle multiple paths
| Lua | mit | loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments |
1c22a4ecf43224ec665d7e184d1bd9f400babd55 | lunaci/Worker.lua | lunaci/Worker.lua | module("lunaci.Worker", package.seeall)
local log = require "lunaci.log"
local utils = require "lunaci.utils"
local config = require "lunaci.config"
local PackageReport = require "lunaci.PackageReport"
local Package = require "rocksolver.Package"
local pl = require "pl.import_into"()
local Worker = {}
Worker.__ind... | module("lunaci.Worker", package.seeall)
local log = require "lunaci.log"
local utils = require "lunaci.utils"
local config = require "lunaci.config"
local PackageReport = require "lunaci.PackageReport"
local Package = require "rocksolver.Package"
local pl = require "pl.import_into"()
local Worker = {}
Worker.__ind... | Fix rockspec loading | Fix rockspec loading
| Lua | mit | smasty/LunaCI,smasty/LunaCI |
33a25cb86021ab29ed93f7586dd013d07c5b688e | lua/framework/graphics/init.lua | lua/framework/graphics/init.lua | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "framework.graphics.opengl" )
require( "framework.graphics.primitive" )
require( "framework.graphics.shader" )
require( "framework... | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "framework.graphics.opengl" )
require( "framework.graphics.primitive" )
require( "framework.graphics.shader" )
require( "framework... | Fix matrix stack leak | Fix matrix stack leak
| Lua | mit | Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework |
b07a44acf7695abefdb1a4e880c521118519f191 | src/apps/config/alarm_codec.lua | src/apps/config/alarm_codec.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local S = require("syscall")
local channel = require("apps.config.channel")
local ffi = require("ffi")
local UINT32_MAX = 0xffffffff
local alarm_names = { 'raise_alarm', 'clear_alarm' }
local alarm_codes = {}
f... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local S = require("syscall")
local channel = require("apps.config.channel")
local ffi = require("ffi")
local UINT32_MAX = 0xffffffff
local alarm_names = { 'raise_alarm', 'clear_alarm' }
local alarm_codes = {}
f... | Fix unroll of sparse table | Fix unroll of sparse table
| Lua | apache-2.0 | Igalia/snabbswitch,eugeneia/snabb,eugeneia/snabb,eugeneia/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,Igalia/snabb,eugeneia/snabb,dpino/snabbswitch,eugeneia/snabbswitch,SnabbCo/snabbswitch,Igalia/snabbswitch,dpino/snabb,eugeneia/snabb,dpino/snabb,eugeneia/snabb,alexandergall/snabbswitch,dpino/snabbswitch,eugenei... |
945047f381384d74193ed412da89fc2556649daf | extensions/hints/init.lua | extensions/hints/init.lua | --- === hs.hints ===
---
--- Switch focus with a transient per-application keyboard shortcut
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This... | --- === hs.hints ===
---
--- Switch focus with a transient per-application keyboard shortcut
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This... | Fix up docs for preceeding PR | Fix up docs for preceeding PR
| Lua | mit | Stimim/hammerspoon,latenitefilms/hammerspoon,hypebeast/hammerspoon,zzamboni/hammerspoon,Stimim/hammerspoon,chrisjbray/hammerspoon,tmandry/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,lowne/hammerspoon,zzamboni/hammerspoon,kkamdooong/hammerspoon,cmsj/hammerspoon,CommandPost/CommandPost-App,asmagill/hamm... |
eabe8561139b46728a8ead4ca23bf3ab07c4119d | lua/tests/types/undefined_t.lua | lua/tests/types/undefined_t.lua | -- Copyright (c) 2009-2010 Incremental IP Limited
-- see LICENSE for license information
local type = type
local series = require("test.series")
local undefined_t = require("rima.types.undefined_t")
local object = require("rima.lib.object")
local rima = require("rima")
module(...)
-- Tests -------------------------... | -- Copyright (c) 2009-2010 Incremental IP Limited
-- see LICENSE for license information
local type = type
local series = require("test.series")
local undefined_t = require("rima.types.undefined_t")
local object = require("rima.lib.object")
local lib = require("rima.lib")
local core = require("rima.core")
local rima ... | rima: fixed up tests for undefined_t | rima: fixed up tests for undefined_t
| Lua | mit | geoffleyland/rima,geoffleyland/rima,geoffleyland/rima |
9591f86d1807be9ce29c2e0ed2b327d410d3d411 | mod_auth_ldap/mod_auth_ldap.lua | mod_auth_ldap/mod_auth_ldap.lua | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[\\*\\(\\)\\\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
l... | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[\\*\\(\\)\\\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
l... | mod_auth_ldap: Fix issue with some versions of LuaLDAP | mod_auth_ldap: Fix issue with some versions of LuaLDAP
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
6cf7b83cee5bcd2c0923b09700851c4bed09ab54 | mod_seclabels/mod_seclabels.lua | mod_seclabels/mod_seclabels.lua | local st = require "util.stanza";
local xmlns_label = "urn:xmpp:sec-label:0";
local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:0";
module:add_feature(xmlns_label);
local labels = {
Classified = {
SECRET = { color = "black", bgcolor = "aqua", label = "THISISSECRET" };
PUBLIC = { label = "THISISPUBLIC" };
... | local st = require "util.stanza";
local xmlns_label = "urn:xmpp:sec-label:0";
local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:0";
module:add_feature(xmlns_label);
module:hook("account-disco-info", function(event)
local stanza = event.stanza;
stanza:tag('feature', {var=xmlns_label}):up();
stanza:tag('featu... | mod_seclabels: Advertise features in account disco#info, fixes interop with Swift | mod_seclabels: Advertise features in account disco#info, fixes interop with Swift
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
80b9a2414f9f2b6b5ff946cf8ebe43e796770d2d | lua-binding/CCB/Loader.lua | lua-binding/CCB/Loader.lua | local CCBLoader = {}
local function fillCallbacks(proxy, owner, names, nodes, events)
if not owner then return end
--Callbacks
for i = 1, #names do
local callbackName = names[i]
local callbackNode = tolua.cast(nodes[i],"cc.Node")
proxy:setCallback(callbackNode, function(sender, ev... | local CCBLoader = {}
local function fillCallbacks(proxy, owner, names, nodes, events)
if not owner then return end
--Callbacks
for i = 1, #names do
local callbackName = names[i]
local callbackNode = tolua.cast(nodes[i],"cc.Node")
proxy:setCallback(callbackNode, function(sender, ev... | solve sub node ctor not called bug | solve sub node ctor not called bug
| Lua | mit | Jennal/CocosBuilder,Jennal/CocosBuilder,Jennal/CocosBuilder,Jennal/CocosBuilder,Jennal/CocosBuilder |
31eb022a200a9f3fa11ff33b7129482a17f63953 | fblualib/util/test/digraph_test.lua | fblualib/util/test/digraph_test.lua | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local digraph =... | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local digraph =... | Fix unused variables in `digraph_test.lua` | Fix unused variables in `digraph_test.lua`
Summary: doesexactlywhatitsaysonthetin
Test Plan:
```
∴ fbconfig fblualib/util/test && mt
...
fblualib/util/test:error_handling_test: 0s
fblualib/util/test:find_test: 6s
fblualib/util/test:reactor_test: 0s
fblualib/util/test:trace_test: 0s
fblualib/util/test:util_test: 0s
T... | Lua | bsd-3-clause | facebook/fblualib,soumith/fblualib,facebook/fblualib,szagoruyko/fblualib,raphaelamorim/fblualib,szagoruyko/fblualib,raphaelamorim/fblualib,soumith/fblualib |
c5ac3c2ae2d2bdf9283ba0e6dce21dde811e8629 | lua/json/decode/util.lua | lua/json/decode/util.lua | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local select = select
local pairs, ipairs = pairs, ipairs
local tonumber = tonumber
local string_char = require("string").char
local rawset = rawset
local jsonutil = require("json.... | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local select = select
local pairs, ipairs = pairs, ipairs
local tonumber = tonumber
local string_char = require("string").char
local rawset = rawset
local jsonutil = require("json.... | decoder: fixes missing symbol problem in enhanced error reporting | decoder: fixes missing symbol problem in enhanced error reporting
| Lua | mit | renchunxiao/luajson |
a13ec1a67a6c2c5a38363a89971aa75aba40d970 | cache_table.lua | cache_table.lua | -- Copyright (C) 2012 Matthieu Tourne
-- @author Matthieu Tourne <matthieu@cloudflare.com>
-- Simple Cached table - Use with openresty or ngx_lua
-- A cache_table is a Full Lua table
-- All the magic for caching lives in the metatable
-- It can be serialized like a normal table (json etc)
-- Usage :
-- local my_t... | -- Copyright (C) 2012 Matthieu Tourne
-- @author Matthieu Tourne <matthieu@cloudflare.com>
-- Simple Cached table - Use with openresty or ngx_lua
-- A cache_table is a Full Lua table
-- All the magic for caching lives in the metatable
-- It can be serialized like a normal table (json etc)
-- Usage :
-- local my_t... | Fix API when caching is turned off | Fix API when caching is turned off
| Lua | bsd-2-clause | mtourne/ngx.cache_table |
e20451c7997a930b4e8ff8d25a5da6265e1529bf | scripts/texturec.lua | scripts/texturec.lua | --
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "texturec"
uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26"
kind "ConsoleApp"
includedirs {
path.join(BX_DIR, "include"),
path.join(BGFX_DIR, "include"),
path.join(BGFX_DIR, "sr... | --
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "texturec"
uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26"
kind "ConsoleApp"
defines {
"ENTRY_CONFIG_PROFILER=0",
}
includedirs {
path.join(BX_DIR, "include"),
path.join(BGF... | Fixed texturec build with --with-profiler enabled | Fixed texturec build with --with-profiler enabled
| Lua | bsd-2-clause | v3n/bgfx,marco-we/bgfx,jpcy/bgfx,elmindreda/bgfx,mmicko/bgfx,emoon/bgfx,mendsley/bgfx,jdryg/bgfx,jdryg/bgfx,emoon/bgfx,v3n/bgfx,attilaz/bgfx,mendsley/bgfx,attilaz/bgfx,attilaz/bgfx,bkaradzic/bgfx,LWJGL-CI/bgfx,LWJGL-CI/bgfx,0-wiz-0/bgfx,andr3wmac/bgfx,aonorin/bgfx,bkaradzic/bgfx,0-wiz-0/bgfx,kondrak/bgfx,jpcy/bgfx,0-wi... |
2398c22a91ae286011f90fc0bb4ce17f64d39239 | src/cosy/nginx/conf.lua | src/cosy/nginx/conf.lua | return function (loader)
local Lfs = loader.require "lfs"
local Default = loader.load "cosy.configuration.layers".default
-- Compute www path:
local main = loader.hotswap.searchpath ("cosy.nginx", package.path)
if main:sub (1, 1) == "." then
main = Lfs.currentdir () .. "/" .. main
end
Default.h... | return function (loader)
local Lfs = loader.require "lfs"
local Default = loader.load "cosy.configuration.layers".default
-- Compute www path:
local main = loader.hotswap.searchpath ("cosy.nginx", package.path)
if main:sub (1, 1) == "." then
main = Lfs.currentdir () .. "/" .. main
end
Default.h... | Fix nginx path. | Fix nginx path.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
92f7cc2ef47eaf7a0de8c9722a1f5ef64139a23c | source/main.lua | source/main.lua | -- Commands interface. A simple way to handle dispatching commands and parse
-- arguments.
--
-- This file is licensed under the BSD 2-Clause license.
--
-- Copyright (c) 2016 Aaron Bolyard.
local command = require 'command'
local crypto = require 'crypto'
local database = require 'database'
local function write(...)
... | -- Blobby application implementation.
--
-- This file is licensed under the BSD 2-Clause license.
--
-- Copyright (c) 2016 Aaron Bolyard.
local command = require 'command'
local crypto = require 'crypto'
local database = require 'database'
local function write(...)
io.write(string.format(...))
end
local function wri... | Added main logic loop and a few commands. | Added main logic loop and a few commands.
* Added logic loop to use commands on the database.
* Implemented 'add', 'remove', 'list', and 'exit' commands.
* Fixed copy-paste in the file header for 'main.lua'.
| Lua | bsd-2-clause | aaronbolyard/blobby |
6717a04e73a0f030cc53c69eb6e199f114fa94c2 | src/accuracy.lua | src/accuracy.lua | -- Adapted from https://github.com/hpenedones/metrics
ROC = {}
ROC.__index = ROC
function variance_explained(Yf, preds)
local num_seqs = Yf:dataspaceSize()[1]
local Ydim = Yf:dataspaceSize()[2]
local R2s = torch.Tensor(Ydim)
for yi = 1,Ydim do
-- read Yi from file
local Yi = Yf:partia... | -- Adapted from https://github.com/hpenedones/metrics
ROC = {}
ROC.__index = ROC
function variance_explained(Yf, preds)
local num_seqs = Yf:dataspaceSize()[1]
local Ydim = Yf:dataspaceSize()[2]
local R2s = torch.Tensor(Ydim)
for yi = 1,Ydim do
-- read Yi from file
local Yi = Yf:partia... | R2 bug and spearmanr | R2 bug and spearmanr
| Lua | mit | davek44/Basset,davek44/Basset |
95919e775c1b10a0f40d7159133002afb1751453 | build.lua | build.lua | --[[
MIT License
Copyright (c) 2017-2018 Cody Tilkins
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, mo... | --[[
MIT License
Copyright (c) 2017-2018 Cody Tilkins
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, mo... | Updated a few things... | Updated a few things...
- Dropped need to -DLUA_51, etc (except for LUA_JIT_51)
- Defaulted to luajit
- Updated gcc table parameters
- Indented a lot to make it look neat
- Fixed up a few comments
- lua_define now works as a variable
| Lua | mit | Hydroque/LuaConsole,Hydroque/LuaConsole,Hydroque/LuaConsole |
f6fffa683c30c24d19a10cbd962138cd1825e74a | scripts/walk.lua | scripts/walk.lua | local scene = Ogre.getSceneManager()
am = AnimationManager.getSingleton()
nv = NavigationMesh( Vector3.ZERO, Quaternion.IDENTITY, Vector3.UNIT_SCALE )
scene:destroyEntity'Nav'
ne = scene:createEntity( 'FloorNav.mesh' )
nv:buildFromEntity( ne )
function moveTo( v )
local ma = MovementAnimation( player.node, v, play... | local scene = Ogre.getSceneManager()
am = AnimationManager.getSingleton()
nv = NavigationMesh( Vector3.ZERO, Quaternion.IDENTITY, Vector3.UNIT_SCALE )
scene:destroyEntity'Nav'
ne = scene:createEntity( 'FloorNav.mesh' )
nv:buildFromEntity( ne )
function moveTo( v )
local ma = MovementAnimation( player.node, v, play... | Fix race condidtion in walking code | Fix race condidtion in walking code
When the walk function is called, and it is already waiting for the
previous walk task to finish, it simply exits. This only happens when
called repeativly very quickly.
| Lua | mit | merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed |
11e7b164ae26f151e21d051fb2757af193d3443c | src/main/resources/wol/Vec3.lua | src/main/resources/wol/Vec3.lua | -- Lua Module for the Vec3 class
require "wol.Check"
-- Checks if obj is an instance of Vec3. If not, a error is thrown.
-- TODO provide a generic function in check that can do this.
function Check.isVec3(obj,i)
local ok=instanceOf(Vec3,obj)
if i==nil then
assert(ok, "bad argument (Vec3 expected, got %s)", ty... | -- Lua Module for the Vec3 class
require "wol.Check"
-- Checks if obj is an instance of Vec3. If not, a error is thrown.
-- TODO provide a generic function in check that can do this.
function Check.isVec3(obj,i)
local ok=instanceOf(Vec3,obj)
if i==nil then
assert(ok, "bad argument (Vec3 expected, got %s)", ty... | Fixes #150 - Add Vec3.floor() | Fixes #150 - Add Vec3.floor()
| Lua | apache-2.0 | mkarneim/luamod |
0aee02485b3093db9362b1f7e4f6f07d69050c68 | durden/tools/advfloat/spawnctl.lua | durden/tools/advfloat/spawnctl.lua | gconfig_register("advfloat_spawn", "auto");
gconfig_register("advfloat_actionreg", false);
local pending, pending_vid;
local function setup_cursor_pick(wm, wnd)
wnd:hide();
pending = wnd;
local w = math.ceil(wm.width * 0.15);
local h = math.ceil(wm.height * 0.15);
pending_vid = null_surface(w, h);
link_image(pe... | gconfig_register("advfloat_spawn", "auto");
gconfig_register("advfloat_actionreg", false);
local pending, pending_vid;
local function setup_cursor_pick(wm, wnd)
wnd:hide();
pending = wnd;
local w = math.ceil(wm.width * 0.15);
local h = math.ceil(wm.height * 0.15);
pending_vid = null_surface(w, h);
link_image(pe... | spawnctl - superflous animation fix | spawnctl - superflous animation fix
| Lua | bsd-3-clause | letoram/durden |
9744d8983ef5507bd29d4c990704b75fad4dae99 | .hammerspoon/bindings.lua | .hammerspoon/bindings.lua | --
-- Key binding setup for all modules and misc functionality
--
local bindings = {}
local uapp = require('utils.app')
-- define some modifier key combinations
local mod = {
cc = {'cmd', 'ctrl'},
ca = {'cmd', 'alt'},
as = {'alt', 'shift'},
cas = {'cmd', 'alt', 'shift'},
hyper = {'cmd', 'alt... | --
-- Key binding setup for all modules and misc functionality
--
local bindings = {}
local uapp = require('utils.app')
-- define some modifier key combinations
local mod = {
s = {'shift'},
a = {'alt'},
cc = {'cmd', 'ctrl'},
ca = {'cmd', 'alt'},
as = {'alt', 'shift'},
cas = {'cmd'... | Fix Hyper key in Sierra | Fix Hyper key in Sierra
| Lua | mit | scottcs/dot_hammerspoon |
ac18db705bc39e00f316cebf315435a019fca7d0 | build/scripts/Torque6.lua | build/scripts/Torque6.lua | function Torque6()
project "Torque6"
targetname "Torque6"
language "C++"
kind "SharedLib"
targetdir (BUILD_DIR)
includedirs {
path.join(LIB_DIR, "assimp/include"),
path.join(LIB_DIR, "bgfx/include"),
path.join(LIB_DIR, "bullet"),
... | function Torque6()
project "Torque6"
targetname "Torque6"
language "C++"
kind "SharedLib"
targetdir (BUILD_DIR)
includedirs {
path.join(LIB_DIR, "assimp/include"),
path.join(LIB_DIR, "bgfx/include"),
path.join(LIB_DIR, "bullet"),
... | Potential fix for linux 32-bit builds. | Potential fix for linux 32-bit builds.
| Lua | mit | JeffProgrammer/Torque6,lukaspj/Torque6,RichardRanft/Torque6,JeffProgrammer/Torque6,andr3wmac/Torque6,andr3wmac/Torque6,lukaspj/Torque6,JeffProgrammer/Torque6,JeffProgrammer/Torque6,andr3wmac/Torque6,lukaspj/Torque6,lukaspj/Torque6,RichardRanft/Torque6,JeffProgrammer/Torque6,JeffProgrammer/Torque6,RichardRanft/Torque6,R... |
3a2142f9370433773c2c9fad14e0b6a50026c5bd | lua/framework/graphics/font.lua | lua/framework/graphics/font.lua | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "class" )
local FT = require( "freetype" )
local ffi = require( "ffi" )
local GL = require( "opengl" )
local ft = ffi.new( "FT_... | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "class" )
local FT = require( "freetype" )
local ffi = require( "ffi" )
local GL = require( "opengl" )
local ft = ffi.new( "FT_... | Fix `font:getWidth()` not using glyph advances | Fix `font:getWidth()` not using glyph advances
| Lua | mit | Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework |
ac2bc3c8fe4cc8b4070b0e2e0edba01c1373fa2a | src/extensions/cp/ui/StaticText.lua | src/extensions/cp/ui/StaticText.lua | --- === cp.ui.StaticText ===
---
--- Static Text Module.
local require = require
local timer = require("hs.timer")
local Element = require("cp.ui.element")
local notifier = require("cp.ui.notifier")
local prop = require("cp.prop")
local delayedTimer ... | --- === cp.ui.StaticText ===
---
--- Static Text Module.
local require = require
local timer = require "hs.timer"
local Element = require "cp.ui.Element"
local notifier = require "cp.ui.notifier"
local prop = require "cp.prop"
local delayedTimer = timer.del... | Bug Fix | Bug Fix
- Fixed typo in `cp.ui.StaticText` which caused CommandPost to fail to
load on case-sensitive file systems.
- Closes #2006
| Lua | mit | CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost |
4a64d1ca11b090e529f44cedbf33f746710c80b4 | pud/component/AttachmentComponent.lua | pud/component/AttachmentComponent.lua | local Class = require 'lib.hump.class'
local ModelComponent = getClass 'pud.component.ModelComponent'
local EntityArray = getClass 'pud.entity.EntityArray'
local property = require 'pud.component.property'
local message = require 'pud.component.message'
-- AttachmentComponent
--
local AttachmentComponent = Class{name=... | local Class = require 'lib.hump.class'
local ModelComponent = getClass 'pud.component.ModelComponent'
local EntityArray = getClass 'pud.entity.EntityArray'
local property = require 'pud.component.property'
local message = require 'pud.component.message'
-- AttachmentComponent
--
local AttachmentComponent = Class{name=... | fix getProperty to not return empty table when empty | fix getProperty to not return empty table when empty
| Lua | mit | scottcs/wyx |
d7abdc92283842fe36e2f20df333825441ca15c4 | qtlua/packages/qttorch/init.lua | qtlua/packages/qttorch/init.lua | require 'qt'
require 'torch'
require 'libqttorch'
qt.QImage.fromTensor = function(tensor, scale)
return tensor.qttorch.QImageFromTensor(tensor, scale)
end
qt.QImage.toTensor = function(self, tensor, scale)
if type(tensor) == 'userdata' then
... | require 'qt'
require 'torch'
require 'libqttorch'
qt.QImage.fromTensor = function(tensor, scale)
return tensor.qttorch.QImageFromTensor(tensor, scale)
end
qt.QImage.toTensor = function(self, tensor, scale)
if type(tensor) == 'userdata' then
... | Little fix to allow QImage.toTensor to create tensors on the fly. | Little fix to allow QImage.toTensor to create tensors on the fly.
| Lua | bsd-3-clause | soumith/TH,soumith/TH,soumith/TH,soumith/TH |
f1fe86fd766b3b5dd17a0e2e0221d0e7f00a768b | vim/plugin/setup.lua | vim/plugin/setup.lua | -- vim.lsp.set_log_level("debug")
local lspconfig = require "lspconfig"
local lsp_spinner = require "lsp_spinner"
lsp_spinner.setup {
placeholder = " ",
}
require("lsp-inlayhints").setup()
local function on_attach(client, bufnr)
require("lsp_spinner").on_attach(client, bufnr)
require("lsp-inlayhints").on_att... | -- vim.lsp.set_log_level("debug")
local lspconfig = require "lspconfig"
local lsp_spinner = require "lsp_spinner"
lsp_spinner.setup {
placeholder = " ",
}
require("lsp-inlayhints").setup()
local function on_attach(client, bufnr)
require("lsp_spinner").on_attach(client, bufnr)
require("lsp-inlayhints").on_att... | [nvim] Manually configure pyright | [nvim] Manually configure pyright
I think this fixes a CPU issue I had where pyright would consume 100%
CPU forever even when I didn't have any python files open, but I'm not
entirely sure.
| Lua | mit | keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles |
d83135627d0cf3bebd7802565c76a812b37e8407 | Engine/coreg.lua | Engine/coreg.lua | --Corouting Registry: this file is responsible for providing LIKO12 it's api--
local coreg = {reg={}}
--Returns the current active coroutine if exists
function coreg:getCoroutine()
return self.co
end
--Sets the current active coroutine
function coreg:setCoroutine(co)
self.co = co
return self
end
... | --Corouting Registry: this file is responsible for providing LIKO12 it's api--
local coreg = {reg={}}
--Returns the current active coroutine if exists
function coreg:getCoroutine()
return self.co, self.coglob
end
--Sets the current active coroutine
function coreg:setCoroutine(co,glob)
self.co = co
self.coglob ... | Bugfixes | Bugfixes | Lua | mit | RamiLego4Game/LIKO-12 |
2f9cec7d502fcfcdfee3eb165961721d3e83143d | mods/BeardLib-Editor/Hooks/Fixes.lua | mods/BeardLib-Editor/Hooks/Fixes.lua | if not Global.editor_mode then
return
end
local F = table.remove(RequiredScript:split("/"))
local UnitIds = Idstring("unit")
local civ = F == "elementspawncivilian"
if civ or F == "elementspawnenemydummy" then
local C = civ and ElementSpawnCivilian or ElementSpawnEnemyDummy
--Makes sure unit path is updated.
Hook... | if not Global.editor_mode then
return
end
local F = table.remove(RequiredScript:split("/"))
local UnitIds = Idstring("unit")
local civ = F == "elementspawncivilian"
if civ or F == "elementspawnenemydummy" then
local C = civ and ElementSpawnCivilian or ElementSpawnEnemyDummy
--Makes sure unit path is updated.
Hook... | Fixed #210 | Fixed #210 | Lua | mit | simon-wh/PAYDAY-2-BeardLib-Editor |
df9c883bd00348e2556d90ce5b894e0b8caa460a | lua/autorun/mediaplayer.lua | lua/autorun/mediaplayer.lua | local basepath = "mediaplayer/"
local function IncludeMP( filepath )
include( basepath .. filepath )
end
local function LoadMediaPlayer()
print( "Loading 'mediaplayer' addon..." )
-- Check if MediaPlayer has already been loaded
if MediaPlayer then
MediaPlayer.__refresh = true
end
-- shared includes
Include... | local basepath = "mediaplayer/"
local function IncludeMP( filepath )
include( basepath .. filepath )
end
local function LoadMediaPlayer()
print( "Loading 'mediaplayer' addon..." )
-- Check if MediaPlayer has already been loaded
if MediaPlayer then
MediaPlayer.__refresh = true
-- HACK: Lua refresh fix; acces... | Readded baseclass Lua refresh fix to the mediaplayer loader. | Readded baseclass Lua refresh fix to the mediaplayer loader.
| Lua | mit | pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer |
11a7b884345c5b0ab2278255674e70c458ca9c77 | mods/dye/init.lua | mods/dye/init.lua | -- minetest/dye/init.lua
-- To make recipes that will work with any dye ever made by anybody, define
-- them based on groups.
-- You can select any group of groups, based on your need for amount of colors.
-- basecolor: 9, excolor: 17, unicolor: 89
--
-- Example of one shapeless recipe using a color group:
-- Note: As... | -- minetest/dye/init.lua
-- To make recipes that will work with any dye ever made by anybody, define
-- them based on groups.
-- You can select any group of groups, based on your need for amount of colors.
-- basecolor: 9, excolor: 17, unicolor: 89
--
-- Example of one shapeless recipe using a color group:
-- Note: As... | Fix visibility of global/local dye tables | Fix visibility of global/local dye tables
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
f0520cd46c7e413e2ca991fa3c979b3addac449c | deployment_scripts/puppet/modules/lma_collector/files/plugins/common/lma_utils.lua | deployment_scripts/puppet/modules/lma_collector/files/plugins/common/lma_utils.lua | -- Copyright 2015 Mirantis, 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 ... | -- Copyright 2015 Mirantis, 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 ... | Fix the OOM of heka monitoring filter | Fix the OOM of heka monitoring filter
This change resets the table that holds data for the heka monitoring
filter. Otherwise the table may grow infinitely and the sandbox will
eventually be killed by Heka.
Change-Id: If8c07944e42700d913831b500466b33831a41482
Partial-Bug: #1545743
| Lua | apache-2.0 | stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector |
0156744164f4aab43d8e3562855874626fcddd91 | game/scripts/vscripts/util/playerresource.lua | game/scripts/vscripts/util/playerresource.lua | function CDOTA_PlayerResource:SetPlayerStat(PlayerID, key, value)
local pd = PLAYER_DATA[PlayerID]
if not pd.HeroStats then pd.HeroStats = {} end
pd.HeroStats[key] = value
end
function CDOTA_PlayerResource:GetPlayerStat(PlayerID, key)
local pd = PLAYER_DATA[PlayerID]
return pd.HeroStats == nil and 0 or (pd.HeroSt... | function CDOTA_PlayerResource:SetPlayerStat(PlayerID, key, value)
local pd = PLAYER_DATA[PlayerID]
if not pd.HeroStats then pd.HeroStats = {} end
pd.HeroStats[key] = value
end
function CDOTA_PlayerResource:GetPlayerStat(PlayerID, key)
local pd = PLAYER_DATA[PlayerID]
return pd.HeroStats == nil and 0 or (pd.HeroSt... | fix(utils): SetPlayerTeam not extends team slots | fix(utils): SetPlayerTeam not extends team slots
| Lua | mit | ark120202/aabs |
7b33b1154b77ed7e573a6e23ded6526845e8a23c | src_trunk/resources/social-system/s_friends.lua | src_trunk/resources/social-system/s_friends.lua | -- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | -- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | Bug fix for friends | Bug fix for friends
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@258 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
090d600351bfd88cd7470408ea5c69936143bb69 | modules/title/post/olds.lua | modules/title/post/olds.lua | local sql = require'lsqlite3'
local date = require'date'
local uri = require"handler.uri"
local uri_parse = uri.parse
local patterns = {
-- X://Y url
"^(https?://%S+)",
"^<(https?://%S+)>",
"%f[%S](https?://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
}
local openDB = functio... | local sql = require'lsqlite3'
local date = require'date'
local uri = require"handler.uri"
local uri_parse = uri.parse
local patterns = {
-- X://Y url
"^(https?://%S+)",
"^<(https?://%S+)>",
"%f[%S](https?://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
}
local openDB = functio... | title/olds: Don't yell if the poster is the same as the first. | title/olds: Don't yell if the poster is the same as the first.
Fixes #45.
| Lua | mit | haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2 |
46258028054ebb3ba39b3a134921b95db7cd5c84 | nvim/.config/nvim/lua/configs.lua | nvim/.config/nvim/lua/configs.lua | -- nvim-treesitter
require "nvim-treesitter.configs".setup {
ensure_installed = "all",
highlight = {enable = true},
refactor = {
highlight_definitions = {enable = false},
highlight_current_scope = {enable = false}
},
textobjects = {
select = {
enable = true,
keymaps = {
["af"] ... | -- nvim-treesitter
require "nvim-treesitter.configs".setup {
ensure_installed = "all",
highlight = {enable = true},
refactor = {
highlight_definitions = {enable = false},
highlight_current_scope = {enable = false}
},
textobjects = {
select = {
enable = true,
keymaps = {
["af"] ... | [nvim] more fixes for changes in lsp config | [nvim] more fixes for changes in lsp config
| Lua | mit | meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles |
5bcaf6c90585d6d37263bfa7ad77a31eb2996048 | share/lua/meta/art/02_frenchtv.lua | share/lua/meta/art/02_frenchtv.lua | --[[
Gets an artwork from amazon
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version... | --[[
Gets an artwork from amazon
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version... | Fix links to French TV icons | Fix links to French TV icons
Control: forwarded -1 vlc-devel@videolan.org
Hi,
Some links pointing to TV icons were broken. Attached patch fixes that.
Original report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782229
Typical output:
[0x1e2ba18] access_http access error: error: HTTP/1.1 404 Not Found
[0x1e2b... | Lua | lgpl-2.1 | vlc-mirror/vlc,shyamalschandra/vlc,vlc-mirror/vlc,xkfz007/vlc,shyamalschandra/vlc,vlc-mirror/vlc,vlc-mirror/vlc,xkfz007/vlc,xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,krichter722/vlc,vlc-mirror/vlc,shyamalschandra/vlc,vlc-mirror/vlc,xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,shyamalschandra/vlc,xkfz007/vlc,sh... |
8f141323bf8df14be16f54d5f74cb8329f797a81 | kong/plugins/session/schema.lua | kong/plugins/session/schema.lua | local utils = require("kong.tools.utils")
local char = string.char
local rand = math.random
local encode_base64 = ngx.encode_base64
-- kong.utils.random_string with number of bytes config
local function random_string(n_bytes)
return encode_base64(get_rand_bytes(n_bytes or 32, true))
:gsub("/", char(rand(4... | local utils = require("kong.tools.utils")
local char = string.char
local rand = math.random
local encode_base64 = ngx.encode_base64
--- kong.utils.random_string with 32 bytes instead
-- @returns random string of length 44
local function random_string()
return encode_base64(utils.get_rand_bytes(32, true))
... | fix(session) fix random string arg since config is passed | fix(session) fix random string arg since config is passed
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
3557f5138405ddbcb2d409c8bd266de834208bea | otouto/plugins/antilink.lua | otouto/plugins/antilink.lua | local bindings = require('otouto.bindings')
local utilities = require('otouto.utilities')
local autils = require('otouto.administration')
local antilink = {}
function antilink:init()
assert(self.named_plugins.flags, antilink.name .. ' requires flags')
self.named_plugins.flags.flags[antilink.name] =
'P... | local bindings = require('otouto.bindings')
local utilities = require('otouto.utilities')
local autils = require('otouto.administration')
local antilink = {}
function antilink:init()
assert(self.named_plugins.flags, antilink.name .. ' requires flags')
self.named_plugins.flags.flags[antilink.name] =
'P... | Fixed bug where usernames were not triggering antilink by adding a trigger for usernames (duh). Also added functionality to antilink to ban a user for three antilink triggers within one day of eachother. | Fixed bug where usernames were not triggering antilink by adding a trigger for usernames (duh).
Also added functionality to antilink to ban a user for three antilink triggers within one day of eachother.
| Lua | agpl-3.0 | topkecleon/otouto |
52debf3294a11ea9706d7b73828f4616e7457aba | groupped-list.lua | groupped-list.lua | -- cached id list key
local idListKey = KEYS[1];
-- meta key
local metadataKey = KEYS[2];
-- stringified [key]: [aggregateMethod] pairs
local aggregates = ARGV[1];
-- local cache
local rcall = redis.call;
local tinsert = table.insert;
local jsonAggregates = cjson.decode(aggregates);
local aggregateKeys = {};
local re... | -- cached id list key
local idListKey = KEYS[1];
-- meta key
local metadataKey = KEYS[2];
-- stringified [key]: [aggregateMethod] pairs
local aggregates = ARGV[1];
-- local cache
local rcall = redis.call;
local tinsert = table.insert;
local jsonAggregates = cjson.decode(aggregates);
local aggregateKeys = {};
local re... | fix: try/catch local funcs | fix: try/catch local funcs
| Lua | mit | makeomatic/redis-filtered-sort,makeomatic/redis-filtered-sort |
7701d61b55d991f11c6823bae55ec190f77be7d5 | mods/mesecons/mesecons_receiver/init.lua | mods/mesecons/mesecons_receiver/init.lua | rcvboxes = {
{ -3/16, -3/16, -8/16 , 3/16, 3/16 , -13/32 }, -- the smaller bump
{ -1/32, -1/32, -3/2 , 1/32, 1/32 , -1/2 }, -- the wire through the block
{ -2/32, -1/2 , -.5 , 2/32, 0 , -.5002+3/32 }, -- the vertical wire bit
{ -2/32, -1/2 , -7/16+0.002 , 2/32, -14/32, ... | rcvboxes = {
{ -3/16, -3/16, -8/16 , 3/16, 3/16 , -13/32 }, -- the smaller bump
{ -1/32, -1/32, -3/2 , 1/32, 1/32 , -1/2 }, -- the wire through the block
{ -2/32, -1/2 , -.5 , 2/32, 0 , -.5002+3/32 }, -- the vertical wire bit
{ -2/32, -1/2 , -7/16+0.002 , 2/32, -14/32, ... | Fix duplication bug when place or remove mesecons receiver | Fix duplication bug when place or remove mesecons receiver
| Lua | unlicense | sys4-fr/server-minetestforfun,sys4-fr/server-minetestforfun,sys4-fr/server-minetestforfun |
f31adf071cd0ba8580a2ccd5ed2bfa58c5f44d75 | splash/lua_modules/wraputils.lua | splash/lua_modules/wraputils.lua | --
-- This modules provides utilities to access Python
-- objects from Lua. It should be used together with
-- utilities in qtrender_lua.
--
-- This function works very much like standard Lua assert, but:
--
-- * the first argument is the stack level to report the error at (1 being
-- current level, like for `error`... | --
-- This modules provides utilities to access Python
-- objects from Lua. It should be used together with
-- utilities in qtrender_lua.
--
-- This function works very much like standard Lua assert, but:
--
-- * the first argument is the stack level to report the error at (1 being
-- current level, like for `error`... | add FIXME | add FIXME
| Lua | bsd-3-clause | pawelmhm/splash,pawelmhm/splash,pawelmhm/splash |
309bd27e0d4d4df4e85ba76f44ff13f955017fb3 | modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua | modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | Fix saving of ipkg configuration file | Fix saving of ipkg configuration file
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@4042 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | ThingMesh/openwrt-luci,8devices/carambola2-luci,vhpham80/luci,gwlim/luci,yeewang/openwrt-luci,alxhh/piratenluci,gwlim/luci,vhpham80/luci,phi-psi/luci,eugenesan/openwrt-luci,Flexibity/luci,ReclaimYourPrivacy/cloak-luci,gwlim/luci,8devices/carambola2-luci,jschmidlapp/luci,phi-psi/luci,jschmidlapp/luci,stephank/luci,freif... |
80581dc1e7722459086e0888fc05fa596f557c11 | src/servicebag/src/Shared/ServiceBag.lua | src/servicebag/src/Shared/ServiceBag.lua | ---
-- @classmod ServiceBag
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local Signal = require("Signal")
local BaseObject = require("BaseObject")
local ServiceBag = setmetatable({}, BaseObject)
ServiceBag.ClassName = "ServiceBag"
ServiceBag.__index = ServiceBag
-- parentProvider is ... | ---
-- @classmod ServiceBag
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local Signal = require("Signal")
local BaseObject = require("BaseObject")
local ServiceBag = setmetatable({}, BaseObject)
ServiceBag.ClassName = "ServiceBag"
ServiceBag.__index = ServiceBag
-- parentProvider is ... | fix: Better error messages | fix: Better error messages
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
d824f74ba25f0c19691eeb86aaa712250bd1b300 | jet/socket.lua | jet/socket.lua | local ev = require'ev'
local socket = require'socket'
local cjson = require'cjson'
require'pack' -- blends pack/unpack into string table
local print = print
local pairs = pairs
local tinsert = table.insert
local tconcat = table.concat
local ipairs = ipairs
local assert = assert
local spack = string.pack
local sunpack ... | local ev = require'ev'
local socket = require'socket'
local cjson = require'cjson'
require'pack' -- blends pack/unpack into string table
local print = print
local pairs = pairs
local tinsert = table.insert
local tconcat = table.concat
local ipairs = ipairs
local assert = assert
local spack = string.pack
local sunpack ... | bugfix unprobable send error | bugfix unprobable send error
| Lua | mit | lipp/lua-jet |
db83e9ede06dedf89112a7d9d76e185df90f6dba | classes/jplain.lua | classes/jplain.lua | -- Basic! Transitional! In development! Not very good! Don't use it!
local plain = require("classes.plain")
local jplain = pl.class(plain)
jplain._name = "jplain"
jplain.defaultFrameset.content = {
left = "8.3%pw",
top = "11.6%ph",
gridsize = 10,
linegap = 7,
linelength = 50,
linecount = 30
}
function jp... | -- Basic! Transitional! In development! Not very good! Don't use it!
local plain = require("classes.plain")
local jplain = pl.class(plain)
jplain._name = "jplain"
jplain.defaultFrameset.content = {
left = "8.3%pw",
top = "11.6%ph",
gridsize = 10,
linegap = 7,
linelength = 50,
linecount = 30
}
function jp... | fix(classes): Clarify the scopes of `tate` and `jplain` | fix(classes): Clarify the scopes of `tate` and `jplain`
As I've been attempting to enforce through my commits, counter to how
Simon did things initially:
* `tate` and `ruby`: General purpose libraries that *should not be loading
any fonts* or *assuming a Japanese document*.
* `jplain`: The Japanese language class,... | Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
05f293a0c0467f63975172e25dfe2f2cb92e71a6 | test/test.lua | test/test.lua | #!/usr/bin/env lua
addonData = { ["Version"] = "1.0",
}
require "wowTest"
test.outFileName = "testOut.xml"
-- Figure out how to parse the XML here, until then....
GoldRate_Frame = CreateFrame()
--SendMailNameEditBox = CreateFontString("SendMailNameEditBox")
-- require the file to test
package.path = "../src/?.lua;... | #!/usr/bin/env lua
addonData = { ["Version"] = "1.0",
}
require "wowTest"
test.outFileName = "testOut.xml"
-- Figure out how to parse the XML here, until then....
GoldRate_Frame = CreateFrame()
--SendMailNameEditBox = CreateFontString("SendMailNameEditBox")
-- require the file to test
package.path = "../src/?.lua;... | Fixing tests for faction | Fixing tests for faction
| Lua | mit | opussf/GoldRate,opussf/GoldRate |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.