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 |
|---|---|---|---|---|---|---|---|---|---|
326ceb6afbf0a4fa6a0483f9a11cf440b8e16449 | mods/_misc/aliases.lua | mods/_misc/aliases.lua | local alias = minetest.register_alias
-- Remove duplicated items from the carbone subgame because of Moreores mod
-- Stone
alias("default:stone_with_tin", "default:stone")
alias("default:stone_with_silver", "default:stone")
-- Lump
alias("default:tin_lump", "default:stone")
alias("default:silver_lump", "default:stone")... | local alias = minetest.register_alias
-- Remove duplicated items from the carbone subgame because of Moreores mod
-- Stone
alias("default:stone_with_tin", "default:stone")
alias("default:stone_with_silver", "default:stone")
-- Lump
alias("default:tin_lump", "default:stone")
alias("default:silver_lump", "default:stone")... | [_misc] Register alias for ongen pine sapling; fix #481 | [_misc] Register alias for ongen pine sapling; fix #481
| Lua | unlicense | MinetestForFun/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,sys4-fr/server-minetes... |
0f290f8f0f274e7165de25a7f604f323c9a390bb | npc/base/talk.lua | npc/base/talk.lua | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
require("npc.base.responses")
module("npc.base.talk", package.seeall)
talkNPC = base.clas... | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
require("npc.base.responses")
module("npc.base.talk", package.seeall)
talkNPC = base.clas... | Fixed NPC bug | Fixed NPC bug
| Lua | agpl-3.0 | KayMD/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content |
8afe5afdb591bd3c74dbd9d76ec8cb983b711cee | components/Door.lua | components/Door.lua | -- A door. It can be open or shut. When shut it blocks both movement and LOS.
-- It has two faces, face_open and face_shut, and displays one or the other depending
-- on its state.
-- For this reason, it implements :render. Entities with a door component should
-- place it before the render component so it can affect t... | -- A door. It can be open or shut. When shut it blocks both movement and LOS.
-- It has two faces, face_open and face_shut, and displays one or the other depending
-- on its state.
-- For this reason, it implements :render. Entities with a door component should
-- place it before the render component so it can affect t... | Fix crash when attempting to close a door. Still kind of hacky. | Fix crash when attempting to close a door. Still kind of hacky.
| Lua | mit | ToxicFrog/ttymor |
8c2787320aa8e22e21df610904e8e999e2ece090 | fusion/stdlib/iterable.lua | fusion/stdlib/iterable.lua | local fnl = require("fusion.stdlib.functional")
local table = require("fusion.stdlib.table")
local unpack = unpack or table.unpack -- luacheck: ignore 113
local function mk_gen(fn)
return function(...)
local a = {...}
return coroutine.wrap(function()
return fn(unpack(a))
end)
end
end
-- Infinite generator... | local fnl = require("fusion.stdlib.functional")
local table = require("fusion.stdlib.table")
local unpack = unpack or table.unpack -- luacheck: ignore 113
local function mk_gen(fn)
return function(...)
local a = {...}
return coroutine.wrap(function()
return fn(unpack(a))
end)
end
end
-- Infinite generator... | iterable: minor fixes | iterable: minor fixes
| Lua | mit | RyanSquared/FusionScript |
80a46b5c1a83a598144278bea44de2ecb6a4036c | whisper.lua | whisper.lua | local mod = EPGP:NewModule("whisper", "AceEvent-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local senderMap = {}
function mod:CHAT_MSG_WHISPER(event_name, msg, sender)
if not UnitInRaid("player") then return end
if msg:sub(1, 12):lower() ~= 'epgp standby' then return end
local member = msg:mat... | local mod = EPGP:NewModule("whisper", "AceEvent-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local senderMap = {}
function mod:CHAT_MSG_WHISPER(event_name, msg, sender)
if not UnitInRaid("player") then return end
if msg:sub(1, 12):lower() ~= 'epgp standby' then return end
local member = msg:mat... | Report the right awards when whispering to standby members. | Report the right awards when whispering to standby members.
This fixes issue 461.
| Lua | bsd-3-clause | sheldon/epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp |
4f9f0a53f3ffbe7f43f10da2732b394d6685ac88 | busted/compatibility.lua | busted/compatibility.lua | return {
getfenv = getfenv or function(f)
f = (type(f) == 'function' and f or debug.getinfo(f + 1, 'f').func)
local name, value
local up = 0
repeat
up = up + 1
name, value = debug.getupvalue(f, up)
until name == '_ENV' or name == nil
return (name and value or _G)
end,
setfen... | return {
getfenv = getfenv or function(f)
f = (type(f) == 'function' and f or debug.getinfo(f + 1, 'f').func)
local name, value
local up = 0
repeat
up = up + 1
name, value = debug.getupvalue(f, up)
until name == '_ENV' or name == nil
return value
end,
setfenv = setfenv or fu... | Fix getfenv/setfenv for Lua 5.2 compatibility | Fix getfenv/setfenv for Lua 5.2 compatibility
It is possible for getfenv to return nil for a function with no globals.
Use unique upvalue for setfenv.
| Lua | mit | xyliuke/busted,mpeterv/busted,istr/busted,o-lim/busted,sobrinho/busted,Olivine-Labs/busted,DorianGray/busted,leafo/busted,ryanplusplus/busted,nehz/busted |
eb8dcbc5e9c764d3cfc4e075f900b80ccff4bf6d | cmder/powerline_coda.lua | cmder/powerline_coda.lua | local function get_py_env(env_var)
env = clink.get_env(env_var)
if env then
return env
end
return false
end
local function get_conda_env_filter()
local env = get_py_env("CONDA_DEFAULT_ENV")
if env then
env = addTextWithColor("", env.." ", ansiFgClrYellow, ansiBgClrBlack)
... | local function get_py_env(env_var)
env = clink.get_env(env_var)
if env then
return env
end
return false
end
local function basename(inputstr)
sep = "\\/"
local last = nil
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
last = str
end
... | fix: the env is the full path so shorten it | fix: the env is the full path so shorten it | Lua | mit | steveoh/configs,steveoh/configs,steveoh/configs |
87e5e6ef4610920ddfbf3e5a20f240eb34896c73 | examples/thread.lua | examples/thread.lua | --- Turbo.lua Example module
--
-- Copyright 2016 John Abrahamsen
--
-- 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... | --- Turbo.lua Example module
--
-- Copyright 2016 John Abrahamsen
--
-- 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... | Fixed threading example. | Fixed threading example.
| Lua | apache-2.0 | mniestroj/turbo,kernelsauce/turbo |
0564872438462e02a36a7120b23e2f2d7454eb11 | examples/languagemodel.lua | examples/languagemodel.lua | require 'dp'
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Train a Language Model on BillionWords dataset using SoftmaxTree')
cmd:text('Example:')
cmd:text('$> th languagemodel.lua --small --batchSize 512 ')
cmd:text('$> th languagemodel.lua --tiny --batchSize 512 ')
cmd:text('Options:')
cm... | require 'dp'
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Train a Language Model on BillionWords dataset using SoftmaxTree')
cmd:text('Example:')
cmd:text('$> th languagemodel.lua --small --batchSize 512 ')
cmd:text('$> th languagemodel.lua --tiny --batchSize 512 ')
cmd:text('Options:')
cm... | fixed languagemodel.lua fullsoftmax bug | fixed languagemodel.lua fullsoftmax bug
| Lua | bsd-3-clause | fiskio/dp,rickyHong/dptorchLib,sagarwaghmare69/dp,eulerreich/dp,nicholas-leonard/dp,jnhwkim/dp,kracwarlock/dp |
56dbd189fa33cda4062199d4d4d4702b442a82a7 | scene/game.lua | scene/game.lua | --
-- Scena z rozgrywką
--
-- Wymagane moduły
local composer = require( 'composer' )
local app = require( 'lib.app' )
local preference = require( 'preference' )
local fx = require( 'com.ponywolf.ponyfx' )
local deltatime = require( 'lib.deltatime' )
local ball = require( 'scene.game.lib.ball' )... | --
-- Scena z rozgrywką
--
-- Wymagane moduły
local composer = require( 'composer' )
local app = require( 'lib.app' )
local preference = require( 'preference' )
local fx = require( 'com.ponywolf.ponyfx' )
local deltatime = require( 'lib.deltatime' )
local ball = require( 'scene.game.lib.ball' )... | Bug fix: score text partially visible on start | Bug fix: score text partially visible on start
| Lua | mit | ldurniat/The-Great-Pong,ldurniat/My-Pong-Game |
b3c82ffb351e75df0ffed06ddd7b9035b0ba362a | home/.hammerspoon/jira.lua | home/.hammerspoon/jira.lua | local utils = require('utils')
local jiraAccount = require ('jiraAccount')
local log = hs.logger.new('init.lua', 'debug')
-- Public part
local jira = {}
-- Returns a Jira URL to browse the given issue Key
function jira.getBrowseUrl(key)
return string.format("%s%s%s", jiraAccount.getBaseUrl(), "browse/", key)
end
... | local utils = require('utils')
local jiraAccount = require ('jiraAccount')
local log = hs.logger.new('init.lua', 'debug')
-- Public part
local jira = {}
-- Returns a Jira URL to browse the given issue Key
function jira.getBrowseUrl(key)
return string.format("%s%s%s", jiraAccount.getBaseUrl(), "browse/", key)
end
... | Fixed a glitch when checking whether the selected issue has a Jira project prefix or not. | Fixed a glitch when checking whether the selected issue has a Jira project prefix or not.
| Lua | mit | maanuair/dotfiles_tmp,maanuair/dotfiles |
96138c9edb7fa49ccd14fea325d1b50e59e8ce6b | hostinfo_runner.lua | hostinfo_runner.lua | --[[
Copyright 2014 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2014 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | fix(host_info_runner): display usage | fix(host_info_runner): display usage
| Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-m... |
4f632c71eba1c0747611076395b6f6d53fe7964e | src/soul.lua | src/soul.lua | local soul = {}
local conversation = require("conversation")
local utils = require("utils")
local lfs = require("lfs")
commands = {}
broadcasts = {}
for file in lfs.dir("commands") do
local command = file:match("^(.+).lua")
if (command) then
local path = "commands." .. command
package.loaded[... | local soul = {}
local conversation = require("conversation")
local utils = require("utils")
local lfs = require("lfs")
commands = {}
broadcasts = {}
for file in lfs.dir("commands") do
local command = file:match("^(.+).lua")
if (command) then
local path = "commands." .. command
package.loaded[... | fix(soul): modified .emergency location | fix(soul): modified .emergency location
| Lua | apache-2.0 | SJoshua/Project-Small-R |
0e32a10d40d8f3cc4662e3602cb730fad695d97e | lua/plugins/treesitter.lua | lua/plugins/treesitter.lua | local nvim = require'nvim'
local load_module = require'tools'.helpers.load_module
local plugins = nvim.plugins
local set_autocmd = nvim.autocmds.set_autocmd
-- local set_command = nvim.commands.set_command
-- local set_mapping = nvim.mappings.set_mapping
local treesitter = load_module'nvim-treesitter... | local nvim = require'nvim'
local load_module = require'tools'.helpers.load_module
local plugins = nvim.plugins
local set_autocmd = nvim.autocmds.set_autocmd
-- local set_command = nvim.commands.set_command
-- local set_mapping = nvim.mappings.set_mapping
local treesitter = load_module'nvim-treesitter... | fix: Re-enable indent treesitter support | fix: Re-enable indent treesitter support
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
e060d212cdf6aa3f9b7fd67a8af15739bdd8052d | Hydra/API/updates.lua | Hydra/API/updates.lua | local function normalize(str)
return str:gsub("(%d+)", function(n) return ("%02d"):format(n) end)
end
--- updates.check(fn(isavailable))
--- Checks for an update. Calls the given function with a boolean representing whether a new update is available.
function updates.check(fn)
updates.getversions(function(versions... | local function normalize(str)
if str == 'v1.0.b99' then -- yeah, i messed up
return '00.00'
else
return str:gsub("(%d+)", function(n) return ("%02d"):format(n) end)
end
end
--- updates.check(fn(isavailable))
--- Checks for an update. Calls the given function with a boolean representing whether a new upda... | Fix updates (le sigh) for future and past releases. | Fix updates (le sigh) for future and past releases.
| Lua | mit | CommandPost/CommandPost-App,asmagill/hammerspoon,kkamdooong/hammerspoon,zzamboni/hammerspoon,chrisjbray/hammerspoon,TimVonsee/hammerspoon,knl/hammerspoon,bradparks/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,Stimim/hammerspoon,tmandry/hammerspoon,CommandPost/CommandPost-App,wsmith323/hammerspoon,laten... |
19dc2c92454dcc73d4ead8c582266d2961760c6b | orange/plugins/waf/api.lua | orange/plugins/waf/api.lua | local BaseAPI = require("orange.plugins.base_api")
local common_api = require("orange.plugins.common_api")
local stat = require("orange.plugins.waf.stat")
local api = BaseAPI:new("waf-api", 2)
api:merge_apis(common_api("waf"))
api:get("/waf/stat", function(store)
return function(req, res, next)
local max... | local BaseAPI = require("orange.plugins.base_api")
local common_api = require("orange.plugins.common_api")
local table_insert = table.insert
local stat = require("orange.plugins.waf.stat")
local api = BaseAPI:new("waf-api", 2)
api:merge_apis(common_api("waf"))
api:get("/waf/stat", function(store)
return function... | fix: missing table.insert | fix: missing table.insert
| Lua | mit | thisverygoodhhhh/orange,jxskiss/orange,wuhuatianbao007/orange,thisverygoodhhhh/orange,thisverygoodhhhh/orange,sumory/orange,sumory/orange,wuhuatianbao007/orange,jxskiss/orange,sumory/orange,wuhuatianbao007/orange,jxskiss/orange |
fe6075f7bbc971ba6c11db46fc8573bf15c8c5dc | plugins/get.lua | plugins/get.lua | local function get_variables_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'user' then
return 'user:' .. msg.from.id .. ':v... | local function get_variables_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'user' then
return 'user:' .. msg.from.id .. ':v... | fix get pre_process | fix get pre_process
| Lua | agpl-3.0 | xsolinsx/AISasha |
1483cab3e2b6858828a1ca78ee923491be396d81 | cherry/screens/leaderboard.lua | cherry/screens/leaderboard.lua | --------------------------------------------------------------------------------
local _ = require 'cherry.libs.underscore'
local gesture = require 'cherry.libs.gesture'
local group = require 'cherry.libs.group'
local http = require 'cherry.libs.http'
local Background = require 'cherry.component... | --------------------------------------------------------------------------------
local _ = require 'cherry.libs.underscore'
local gesture = require 'cherry.libs.gesture'
local group = require 'cherry.libs.group'
local http = require 'cherry.libs.http'
local Background = require 'cherry.component... | fixed leaderboard display | fixed leaderboard display
| Lua | bsd-3-clause | chrisdugne/cherry |
22e36f97b8195d93e258d673f0684754f20767d7 | src/base/context.lua | src/base/context.lua | --
-- base/context.lua
--
-- Provide a context for pulling out values from a configuration set. Each
-- context has an associated list of terms which constrain the values that
-- it will retrieve, i.e. "Windows, "Debug", "x64", and so on.
--
-- The context also provides caching for the values returned from the set.
--
... | --
-- base/context.lua
--
-- Provide a context for pulling out values from a configuration set. Each
-- context has an associated list of terms which constrain the values that
-- it will retrieve, i.e. "Windows, "Debug", "x64", and so on.
--
-- The context also provides caching for the values returned from the set.
--
... | Better performance on fix issue #884 | Better performance on fix issue #884
| Lua | bsd-3-clause | dcourtois/premake-core,noresources/premake-core,dcourtois/premake-core,sleepingwit/premake-core,starkos/premake-core,premake/premake-core,noresources/premake-core,starkos/premake-core,premake/premake-core,starkos/premake-core,LORgames/premake-core,TurkeyMan/premake-core,soundsrc/premake-core,Zefiros-Software/premake-co... |
b33269e785fbe4541c2b52700181c005066528d9 | share/lua/playlist/cue.lua | share/lua/playlist/cue.lua | --[[
Parse CUE files
$Id$
Copyright (C) 2009 Laurent Aimar
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This pro... | --[[
Parse CUE files
$Id$
Copyright (C) 2009 Laurent Aimar
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This pro... | cue.lua: fix file path concatenation | cue.lua: fix file path concatenation
Use the same approach as in the playlist module
This should fix #5398
Signed-off-by: Jean-Baptiste Kempf <7b85a41a628204b76aba4326273a3ccc74bd009a@videolan.org>
| Lua | lgpl-2.1 | shyamalschandra/vlc,vlc-mirror/vlc,vlc-mirror/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.1,xkfz007/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,vlc-mirror/vlc,xkfz007/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,xkfz007/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc-... |
94c587855025e9364d43ad14f60d25629e7f95d9 | TripletCriterion.lua | TripletCriterion.lua | local TripletCriterion, parent = torch.class('nn.TripletCriterion', 'nn.Criterion')
function TripletCriterion:__init(samples, blocks, norm, margin)
parent.__init(self)
self.norm = norm or 2
self.alpha = margin or 0.2
self.samples = samples or 1 -- use all anchor-positive pairs for (>1)
self.blocks ... | local TripletCriterion, parent = torch.class('nn.TripletCriterion', 'nn.Criterion')
function TripletCriterion:__init(samples, blocks, norm, margin)
parent.__init(self)
self.norm = norm or 2
self.alpha = margin or 0.2
self.samples = samples or 1 -- use all anchor-positive pairs for (>1)
self.blocks ... | BUG allert | BUG allert
| Lua | mit | jhjin/triplet-criterion |
d320951b5279d1068bb588d883c16b4365226677 | agents/monitoring/tests/agent-protocol/init.lua | agents/monitoring/tests/agent-protocol/init.lua | local fs = require('fs')
local JSON = require('json')
local AgentProtocol = require('monitoring/lib/protocol/protocol')
local AgentProtocolConnection = require('monitoring/lib/protocol/connection')
local exports = {}
exports['test_handshake_hello'] = function(test, asserts)
fs.readFile('./options.gypi', function(e... | local fs = require('fs')
local JSON = require('json')
local AgentProtocol = require('monitoring/lib/protocol/protocol')
local AgentProtocolConnection = require('monitoring/lib/protocol/connection')
local exports = {}
exports['test_handshake_hello'] = function(test, asserts)
fs.readFile('./agents/monitoring/tests/a... | fix filename | fix filename
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
6ebefb7a3bbd70a942164715f6b79c323144c97d | control.lua | control.lua | require 'util'
require 'gui'
function print(stuff)
game.players[1].print(stuff)
end
function printBool(stuff)
game.players[1].print(tostring(stuff))
end
function setup()
global.hoverboard = global.hoverboard or {}
end
function activateEquipment(index)
global.hoverboard[index].inserted = true
global.hoverb... | require 'util'
require 'gui'
require "stdlib/log/logger"
LOG = Logger.new("MagneticFloor")
function print(stuff)
game.players[1].print(stuff)
end
function printBool(stuff)
game.players[1].print(tostring(stuff))
end
function setup()
global.hoverboard = global.hoverboard or {}
end
function activateEquipment(in... | fix a crash bug on loading an existing save | fix a crash bug on loading an existing save
| Lua | mit | kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor |
88766a2c0fe267cc65d84ab1bbd526cadfbc213f | libs/httpd/luasrc/httpd/handler/luci.lua | libs/httpd/luasrc/httpd/handler/luci.lua | --[[
HTTP server implementation for LuCI - luci handler
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | --[[
HTTP server implementation for LuCI - luci handler
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | * luci/libs/httpd: fix spurious Overload errors in luci-httpd | * luci/libs/httpd: fix spurious Overload errors in luci-httpd
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@3586 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | zwhfly/openwrt-luci,phi-psi/luci,Flexibity/luci,phi-psi/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,yeewang/openwrt-luci,projectbismark/luci-bismark,eugenesan/openwrt-luci,gwlim/luci,ch3n2k/luci,freifunk-gluon/luci,vhpham80/luci,yeewang/openwrt-luci,dtaht/cerowrt-luci-3.3,ch3n2k/luci,stephank/luci,ThingMesh/op... |
197717f9920488157eded137c390f137723eb341 | sandbox/combateffect.lua | sandbox/combateffect.lua | local Class = require "smee.libs.middleclass"
local CombatEffect = Class "CombatEffect"
local function hasRunOutInstant(effect, roundUpdate)
return true
end
local function hasRunOutDuration(effect, roundUpdate)
if roundUpdate then
effect.duration = duration-1
if duration <= 0 then
... | local Class = require "smee.libs.middleclass"
local CombatEffect = Class "CombatEffect"
local function hasRunOutInstant(effect, roundUpdate)
return true
end
local function hasRunOutDuration(effect, roundUpdate)
if roundUpdate then
effect.duration = duration-1
if duration <= 0 then
... | Minor bugfixes. | Minor bugfixes.
| Lua | mit | ExcelF/project-navel |
c05998f28fd7368060c38148079a0cbb2d8ca4af | conditions/BuffCount.lua | conditions/BuffCount.lua | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2013 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
file accompanying this program.
--]... | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2013, 2014 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
file accompanying this progra... | Fix BuffCount() when the buff never expires. | Fix BuffCount() when the buff never expires.
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@1309 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | Xeltor/ovale,ultijlam/ovale,eXhausted/Ovale,ultijlam/ovale,eXhausted/Ovale,eXhausted/Ovale,ultijlam/ovale |
3d9d9102ef58f080d0200e73056bf183d6039c5e | lib/resty/kafka/producer.lua | lib/resty/kafka/producer.lua | -- Copyright (C) Dejiang Zhu(doujiang24)
local response = require "resty.kafka.response"
local request = require "resty.kafka.request"
local broker = require "resty.kafka.broker"
local setmetatable = setmetatable
local ngx_sleep = ngx.sleep
local ngx_log = ngx.log
local DEBUG = ngx.DEBUG
local ERR = ngx.ERR
local d... | -- Copyright (C) Dejiang Zhu(doujiang24)
local response = require "resty.kafka.response"
local request = require "resty.kafka.request"
local broker = require "resty.kafka.broker"
local setmetatable = setmetatable
local ngx_sleep = ngx.sleep
local ngx_log = ngx.log
local DEBUG = ngx.DEBUG
local ERR = ngx.ERR
local d... | bugfix: force refresh metadata when retry send; topic may be not existed | bugfix: force refresh metadata when retry send; topic may be not existed
| Lua | bsd-3-clause | wzb56/lua-resty-kafka,doujiang24/lua-resty-kafka,wangfakang/lua-resty-kafka |
2f55b44e1e3fd6f53ca43b9127d9dd5c49cc1880 | xmake/scripts/tools/gcc.lua | xmake/scripts/tools/gcc.lua | --!The Automatic Cross-platform Build Tool
--
-- XMake is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--
-- XMake is dis... | --!The Automatic Cross-platform Build Tool
--
-- XMake is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--
-- XMake is dis... | fix strip flags for clang | fix strip flags for clang
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake |
81785193201eb38dbfe1b9d38f57ffab771810fa | nvim/lua/raindev/plugins.lua | nvim/lua/raindev/plugins.lua | local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim... | local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim... | Fix failed attempt to relocate packer compile_path | Fix failed attempt to relocate packer compile_path
The configuration has to be supplied early on with the plugin's startup
call, rather than when adding packer to the list of plugins managed by
itself. Also move packer_compiled.lua to ~/.local/share/nvim/site/plugin
as ~/.local/share/nvim itself is not a part of runti... | Lua | mit | raindev/dotfiles |
88ffeb165b0fc47868d291af6f17f3cbe63eb138 | lexers/html.lua | lexers/html.lua | -- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- HTML LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
local M = {_NAME = 'html'}
case_insensitive_tags = true
-- Whitespace.
local ws = token(l.WHITESPACE... | -- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- HTML LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
local M = {_NAME = 'html'}
case_insensitive_tags = true
-- Whitespace.
local ws = token(l.WHITESPACE... | Fixed detection of "</script>" even within a JavaScript comment; lexers/html.lua | Fixed detection of "</script>" even within a JavaScript comment; lexers/html.lua
| Lua | mit | rgieseke/scintillua |
a8b2a09bc5214a28271825d120ef6bbbee1db83c | onmt/modules/RIndexLinear.lua | onmt/modules/RIndexLinear.lua | local RIndexLinear, parent = torch.class('onmt.RIndexLinear', 'nn.Linear')
--[[
MaskLinear is a Linear layer that allows the user to a set a collection of
output row indices. When the row indices are set, the layer will behave like a
Linear layer that output only these rows - all the other ones will be zero.
... | local RIndexLinear, parent = torch.class('onmt.RIndexLinear', 'nn.Linear')
--[[
MaskLinear is a Linear layer that allows the user to a set a collection of
output row indices. When the row indices are set, the layer will behave like a
Linear layer that output only these rows - all the other ones will be zero.
... | fix warning | fix warning
| Lua | mit | jsenellart/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,... |
4278069b2cc2b08260012cb93b76aaaa6c2284a7 | defaut/Paladin.lua | defaut/Paladin.lua | local code = [[
Define(avenging_wrath 31884)
SpellInfo(avenging_wrath duration=20 cd=180 )
SpellAddBuff(avenging_wrath avenging_wrath=1)
Define(blessing_of_kings 20217)
SpellInfo(blessing_of_kings duration=3600 )
SpellAddBuff(blessing_of_kings blessing_of_kings=1)
Define(blessing_of_might 19740)
SpellInfo(ble... | local code = [[
Define(avenging_wrath 31884)
SpellInfo(avenging_wrath duration=20 cd=180 )
SpellAddBuff(avenging_wrath avenging_wrath=1)
Define(blessing_of_kings 20217)
SpellInfo(blessing_of_kings duration=3600 )
SpellAddBuff(blessing_of_kings blessing_of_kings=1)
Define(blessing_of_might 19740)
SpellInfo(ble... | Paladin: Apply fixes after SimulationCraft import. | Paladin: Apply fixes after SimulationCraft import.
When using the Glyph of Mass Exorcism, the spell ID of Exorcism changes
from 879 to 122032.
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@766 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | ultijlam/ovale,Xeltor/ovale,eXhausted/Ovale,ultijlam/ovale,eXhausted/Ovale,eXhausted/Ovale,ultijlam/ovale |
62095a5df7c4b7a778fa4a84d18b6867c7944ecb | ui/Tree.lua | ui/Tree.lua | --
-- Default method implementations for the tree as a whole. --
--
local Tree = {
w = 0; h = 0;
_focused = 1;
colour = { 255, 255, 255 };
}
Tree.__index = Tree
-- Focus the given node.
function Tree:set_focus(index)
self:focused().focused = false
self._focused = (index-1) % #self.nodes + 1
self:focused(... | --
-- Default method implementations for the tree as a whole. --
--
local Tree = {
w = 0; h = 0;
_focused = 1;
colour = { 255, 255, 255 };
}
Tree.__index = Tree
-- Focus the given node.
function Tree:set_focus(index)
self:focused().focused = false
self._focused = (index-1) % #self.nodes + 1
self:focused(... | Fix comment in Tree.lua | Fix comment in Tree.lua
| Lua | mit | ToxicFrog/ttymor |
b7a7fb0500f7b6038e7a4444d0d67ea92a5f8ce7 | classes/book.lua | classes/book.lua | local plain = SILE.require("classes/plain");
local book = plain { id = "book" };
book:loadPackage("masters")
book:defineMaster({ id = "right", firstContentFrame = "content", frames = {
content = { left = "8.3%pw", right = "86%pw", top = "11.6%ph", bottom = "top(footnotes)" },
folio = { left = "left(content)", right... | local plain = SILE.require("classes/plain");
local book = plain { id = "book" };
book:loadPackage("masters")
book:defineMaster({ id = "right", firstContentFrame = "content", frames = {
content = { left = "8.3%pw", right = "86%pw", top = "11.6%ph", bottom = "top(footnotes)" },
folio = { left = "left(content)", right... | Fix race condition in book class (no paper size until init!) | Fix race condition in book class (no paper size until init!)
| Lua | mit | simoncozens/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,neofob/sile,neofob/sile,simoncozens/sile,alerque/sile,alerque/sile,neofob/sile |
cea7c44d8450842a77528d60ddbbb6ed49692816 | server.lua | server.lua | -- https://github.com/szym/display
-- Copyright (c) 2015, Szymon Jakubczak (MIT License)
-- Forwards any data POSTed to /events to an event-stream at /events.
-- Serves files from /static otherwise.
local port = tonumber(arg[1]) or 8000
local hostname = arg[2] or '127.0.0.1'
local async = require('async')
local fun... | -- https://github.com/szym/display
-- Copyright (c) 2015, Szymon Jakubczak (MIT License)
-- Forwards any data POSTed to /events to an event-stream at /events.
-- Serves files from /static otherwise.
local port = tonumber(arg[1]) or 8000
local hostname = arg[2] or '127.0.0.1'
local async = require('async')
local fun... | fix handling of not found static files | fix handling of not found static files
| Lua | mit | szym/display,szym/display,soumith/display,szym/display,soumith/display,soumith/display,soumith/display,szym/display |
b3fb3d283dc8e2b43c0055e8dbad8d290eaf1cc5 | src/Command.lua | src/Command.lua | local Log = require 'Log'
local Command = {}
function Command:new(...)
local o = { command = {...} }
setmetatable(o, self)
self.__index = self
return o
end
function Command:newf(f, ...)
return Command:new(string.format(f, ...))
end
function Command:append(...)
append(self.command, ...)
r... | local Log = require 'Log'
local Command = {}
function Command:new(...)
local o = { command = {...} }
setmetatable(o, self)
self.__index = self
return o
end
function Command:newf(f, ...)
return Command:new(string.format(f, ...))
end
function Command:append(...)
append(self.command, ...)
r... | Fix Command:exec incorrectly propagating return status | Fix Command:exec incorrectly propagating return status
This caused the 'build' subcommand to always finish with a 0 status even when the script actually failed.
| Lua | mit | bazurbat/jagen |
0634fac2079fbd0540f62dbd04bcc64412670829 | JoinTable.lua | JoinTable.lua | local JoinTable, parent = torch.class('nn.JoinTable', 'nn.Module')
function JoinTable:__init(dimension, nInputDims)
parent.__init(self)
self.size = torch.LongStorage()
self.dimension = dimension
self.gradInput = {}
self.nInputDims = nInputDims
end
function JoinTable:updateOutput(input)
local dimens... | local JoinTable, parent = torch.class('nn.JoinTable', 'nn.Module')
function JoinTable:__init(dimension, nInputDims)
parent.__init(self)
self.size = torch.LongStorage()
self.dimension = dimension
self.gradInput = {}
self.nInputDims = nInputDims
end
function JoinTable:updateOutput(input)
local dimensi... | fixes jointable backward bug | fixes jointable backward bug
| Lua | bsd-3-clause | diz-vara/nn,ominux/nn,abeschneider/nn,mlosch/nn,andreaskoepf/nn,jhjin/nn,zhangxiangxiao/nn,hughperkins/nn,zchengquan/nn,lvdmaaten/nn,eulerreich/nn,lukasc-ch/nn,xianjiec/nn,hery/nn,GregSatre/nn,noa/nn,ivendrov/nn,jzbontar/nn,davidBelanger/nn,jonathantompson/nn,witgo/nn,rotmanmi/nn,Jeffyrao/nn,vgire/nn,elbamos/nn,LinusU/... |
de455e666dbe2acd415a5e2bd7b631edeed7402f | samples/events/index.lua | samples/events/index.lua | --
-- Stream Server-Sent Events (SSE)
--
content("text/event-stream;charset=utf-8")
setheader("Cache-Control", "no-cache")
setheader("Connection", "keep-alive")
setheader("Access-Control-Allow-Origin", "*")
function event(message)
log("EVENT: " .. message)
print("data: " .. message .. "\n")
flush()
end
functio... | --
-- Stream Server-Sent Events (SSE)
--
content("text/event-stream;charset=utf-8")
setheader("Cache-Control", "no-cache")
setheader("Connection", "keep-alive")
setheader("Access-Control-Allow-Origin", "*")
function event(message)
log("streaming event: " .. message)
print("data: " .. message .. "\n")
flush()
en... | Fixed a typo. Better comments. | Fixed a typo. Better comments.
| Lua | bsd-3-clause | xyproto/algernon,xyproto/algernon,xyproto/algernon,xyproto/algernon |
e5290605c5a88f93810ad9392c670968e471a10a | common.lua | common.lua | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2015 Paul Norman, MIT license
]]--
-- Lua primer:
-- cond and "a" or "b" evaluates to a if cond is true, b if cond is false. This
-- is the idiomatic way to do an inline conditional in lua
--- Normalizes a tag value to tr... | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2015 Paul Norman, MIT license
]]--
-- Lua primer:
-- cond and "a" or "b" evaluates to a if cond is true, b if cond is false. This
-- is the idiomatic way to do an inline conditional in lua
--- Normalizes a tag value to tr... | fix oneway formatting | fix oneway formatting
| Lua | mit | pnorman/ClearTables,ClearTables/ClearTables |
4166fe7d321e52f3d5b7da79e8374aa1f449e08c | love2d/ambientsound.lua | love2d/ambientsound.lua | require "mapGenerator"
-- world map: lizGame.world.map.*
-- THIS IS ONLY THE SOUND PRODUCED BY THE AMBIENT (TODO the ambient consists of everything that is on the normal world map right now)
-- for sound produced by objects (e.g. the player or a door or an enemy) look at objectsound.lua (NYI)
--[[ possible sound source... | require "mapGenerator"
-- world map: lizGame.world.map.*
-- THIS IS ONLY THE SOUND PRODUCED BY THE AMBIENT (TODO the ambient consists of everything that is on the normal world map right now)
-- for sound produced by objects (e.g. the player or a door or an enemy) look at objectsound.lua (NYI)
--[[ possible sound source... | fix for issue #8 is fixed now and all the comments in the sound file are disabled | fix for issue #8 is fixed now and all the comments in the sound file are disabled
Conflicts:
love2d/ambientsound.lua
| Lua | mit | nczempin/lizard-journey |
41bd2a7e8179b30df2cce82ec6af528f63563fa8 | game/scripts/vscripts/modules/structures/modifier_fountain_aura_enemy.lua | game/scripts/vscripts/modules/structures/modifier_fountain_aura_enemy.lua | local FOUNTAIN_EFFECTIVE_TIME_THRESHOLD = 2100
local FOUNTAIN_DAMAGE_PER_SECOND_PCT = 5
modifier_fountain_aura_enemy = class({
IsDebuff = function() return true end,
IsPurgable = function() return false end,
GetTexture = function() return "fountain_heal" end,
OnTooltip = function() r... | local FOUNTAIN_EFFECTIVE_TIME_THRESHOLD = 2100
local FOUNTAIN_DAMAGE_PER_SECOND_PCT = 5
modifier_fountain_aura_enemy = class({
IsDebuff = function() return true end,
IsPurgable = function() return false end,
GetTexture = function() return "fountain_heal" end,
OnTooltip = function() r... | fix(structures): ignore Monkey King's summons by fountains | fix(structures): ignore Monkey King's summons by fountains
Fixes #107.
| Lua | mit | ark120202/aabs |
59450ee745df437701279f4498b8325252df68b6 | string.lua | string.lua | -- new string-related functions, all of them placed in table string
-- and thus callable with str:foo()
-- split, trim, join, rfind, count, interpolate
-- so you can s:tonumber()
string.tonumber = tonumber
-- python-style string formatting with %
getmetatable("").__mod = function(lhs, rhs)
if type(rhs) == "table"... | -- new string-related functions, all of them placed in table string
-- and thus callable with str:foo()
-- split, trim, join, rfind, count, interpolate
-- so you can s:tonumber()
string.tonumber = tonumber
-- python-style string formatting with %
getmetatable("").__mod = function(lhs, rhs)
if type(rhs) == "table"... | Fix string.interpolate for 5.2 | Fix string.interpolate for 5.2
| Lua | mit | ToxicFrog/luautil |
edf6ab65633d9d807000acb882ec4ad0df5a42af | npc/base/talk.lua | npc/base/talk.lua | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
-- $Id$
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
module("npc.base.talk", package.seeall)
talkNPC = base.class.class(function(self,... | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
-- $Id$
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
module("npc.base.talk", package.seeall)
talkNPC = base.class.class(function(self,... | Fixing nil bug in talking framework | Fixing nil bug in talking framework
| Lua | agpl-3.0 | KayMD/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content |
d073374d74a8189806ec5ec9c597cce8dfc7f2a0 | core/webserver.lua | core/webserver.lua | -- vim: set noexpandtab:
local server = require'http.server'
local new_headers = require "http.headers".new
local lconsole = require'logging.console'
local lfs = require'lfs'
local ivar2 = ...
local log = lconsole()
-- Keep this amount in mem before handler has to read from tmpfile
local BODY_BUFFER_SIZE = 2^17
local... | -- vim: set noexpandtab:
local server = require'http.server'
local new_headers = require "http.headers".new
local lconsole = require'logging.console'
local lfs = require'lfs'
local ivar2 = ...
local log = lconsole()
-- Keep this amount in mem before handler has to read from tmpfile
local BODY_BUFFER_SIZE = 2^17
local... | webserver: fix bug | webserver: fix bug
| Lua | mit | torhve/ivar2,torhve/ivar2,torhve/ivar2 |
d124c7e290de49d382d1ee7a663eeb293c1b1aec | editor/lib/lua/editor/classes/AssimpMesh.lua | editor/lib/lua/editor/classes/AssimpMesh.lua |
local BaseMesh = require("classes.BaseMesh")
---------------------------------------------------------------------------------
--
-- @type AssimpMesh
--
---------------------------------------------------------------------------------
local AssimpMesh = Class(BaseMesh, "AssimpMesh")
function AssimpMesh:init( size, ... |
local BaseMesh = require("classes.BaseMesh")
---------------------------------------------------------------------------------
--
-- @type AssimpMesh
--
---------------------------------------------------------------------------------
local AssimpMesh = Class(BaseMesh, "AssimpMesh")
function AssimpMesh:init( size, ... | fix mesh | fix mesh
| Lua | mit | cloudteampro/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,RazielSun/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor |
320a608c36b551edd16a488d3761719d5ef8aeb1 | service/datacenterd.lua | service/datacenterd.lua | local skynet = require "skynet"
local command = {}
local database = {}
local wait_queue = {}
local mode = {}
local function query(db, key, ...)
if key == nil then
return db
else
return query(db[key], ...)
end
end
function command.QUERY(key, ...)
local d = database[key]
if d then
return query(d, ...)
end
... | local skynet = require "skynet"
local command = {}
local database = {}
local wait_queue = {}
local mode = {}
local function query(db, key, ...)
if key == nil then
return db
else
return query(db[key], ...)
end
end
function command.QUERY(key, ...)
local d = database[key]
if d then
return query(d, ...)
end
... | bugfix: datacenter.wait | bugfix: datacenter.wait
| Lua | mit | plsytj/skynet,bingo235/skynet,KittyCookie/skynet,microcai/skynet,boyuegame/skynet,hongling0/skynet,LiangMa/skynet,ruleless/skynet,MetSystem/skynet,boyuegame/skynet,korialuo/skynet,xinmingyao/skynet,samael65535/skynet,lc412/skynet,Markal128/skynet,hongling0/skynet,LuffyPan/skynet,plsytj/skynet,your-gatsby/skynet,great90... |
446368a87bd96af5e49595f25e7aeb6d1f94ee85 | tests/test-callbacks.lua | tests/test-callbacks.lua | return require('lib/tap')(function (test)
-- Notes:
-- * When using a callable table as a callback, it will get itself as the first param when it is called.
-- This matches what happens when calling the callable table normally.
-- * expect wraps its argument in a function and returns the function, so expect ... | return require('lib/tap')(function (test)
-- Notes:
-- * When using a callable table as a callback, it will get itself as the first param when it is called.
-- This matches what happens when calling the callable table normally.
-- * expect wraps its argument in a function and returns the function, so expect ... | Fix test-callbacks when using libuv < 1.8.0 | Fix test-callbacks when using libuv < 1.8.0
| Lua | apache-2.0 | luvit/luv,zhaozg/luv,zhaozg/luv,luvit/luv |
ff48a968578bb5d01f3e019c30ad1647e0ee7bc8 | tools/release_model.lua | tools/release_model.lua | require('onmt.init')
local path = require('pl.path')
local cmd = torch.CmdLine()
cmd:option('-model', '', 'trained model file')
cmd:option('-output_model', '', 'released model file')
cmd:option('-gpuid', 0, [[1-based identifier of the GPU to use. CPU is used when the option is < 1]])
cmd:option('-force', false, 'forc... | require('onmt.init')
local path = require('pl.path')
local cmd = torch.CmdLine()
cmd:option('-model', '', 'trained model file')
cmd:option('-output_model', '', 'released model file')
cmd:option('-gpuid', 0, [[1-based identifier of the GPU to use. CPU is used when the option is < 1]])
cmd:option('-force', false, 'forc... | Fix release model script for BRNN | Fix release model script for BRNN
| Lua | mit | monsieurzhang/OpenNMT,da03/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,cservan/OpenNMT_scores_0.2.0,jungikim/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,srush/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,jsenellart-systran/Ope... |
5a215b90a2d943795897b608a9a85a830826cbae | mod_smacks/mod_smacks.lua | mod_smacks/mod_smacks.lua | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local timer = require "util.timer";
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmln... | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local timer = require "util.timer";
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmln... | mod_smacks: Fixed to use the correct events API. | mod_smacks: Fixed to use the correct events API.
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
ab49978eef13fd2f94671cf0673e72cc607a6ebf | plugins/mod_tls.lua | plugins/mod_tls.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local config = require "core.configmanager";
local create_context = require "core.certmanager".create_con... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local config = require "core.configmanager";
local create_context = require "core.certmanager".create_con... | mod_tls: Fix for components to more reliably inherit SSL settings from their parenthost (thanks Link Mauve) | mod_tls: Fix for components to more reliably inherit SSL settings from their parenthost (thanks Link Mauve)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
5e39edcb99711053d6767c7e175ab2e6159ae842 | apicast/src/oauth.lua | apicast/src/oauth.lua | local env = require 'resty.env'
local router = require 'router'
local apicast_oauth = require 'oauth.apicast_oauth'
local keycloak = require 'oauth.keycloak'
local _M = {
_VERSION = '0.0.2'
}
function _M.new()
local oauth
if keycloak.configured then
oauth = keycloak.new()
else
oauth = apicast_oauth.ne... | local router = require 'router'
local apicast_oauth = require 'oauth.apicast_oauth'
local keycloak = require 'oauth.keycloak'
local _M = {
_VERSION = '0.0.2'
}
function _M.new()
local oauth
if keycloak.configured then
oauth = keycloak.new()
else
oauth = apicast_oauth.new()
end
return oauth
end
fu... | Fix build | Fix build
Fix build
| Lua | mit | 3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/docker-gateway,3scale/apicast |
bfac5037312e1fa1862c6ded321c8e3974d54a04 | spec/lexer_spec.lua | spec/lexer_spec.lua | describe("lexer", function()
local lexer = require("fusion.core.lexer")
it("can do basic assignment", function()
assert.same(lexer:match("a = b;"), {
{ "assignment", {
variable_list = {
{"variable", "a"},
},
expression_list = {
{"variable", "b"}
}
}}
})
end)
it("can do multi valu... | describe("lexer", function()
local lexer = require("fusion.core.lexer")
it("can do basic assignment", function()
assert.same(lexer:match("a = b;"), {
{ "assignment", {
variable_list = {
{"variable", "a"},
},
expression_list = {
{"variable", "b"}
}
}}
})
end)
it("can do multi valu... | lexer_spec.lua: fix tests for expressions and add table tests | lexer_spec.lua: fix tests for expressions and add table tests
| Lua | mit | RyanSquared/FusionScript |
799fe08a6fe23457544c003a3245f69602149067 | spec/integration_spec.lua | spec/integration_spec.lua | describe('integration', function()
local port = '7070'
local url = 'http://localhost:' .. port
local executeCommand = function(command)
local handle = io.popen(command .. ' -s ' .. url)
local result = handle:read('*a')
handle:close()
return result
end
it('should return correct headers', fun... | describe('integration', function()
local port = '7070'
local url = 'http://localhost:' .. port
local executeCommand = function(command)
local handle = io.popen(command .. ' -s ' .. url)
local result = handle:read('*a')
handle:close()
return result
end
it('should return correct headers', fun... | fix problem with integration test | fix problem with integration test
| Lua | mit | EvandroLG/pegasus.lua |
45b8b3742a88810967d54b3866541c3d2738ffc1 | lua/settings/init.lua | lua/settings/init.lua | local api = vim.api
local sys = require('sys')
local nvim = require('nvim')
local plugs = require('nvim').plugs
local parent = require('sys').data
local mkdir = require('nvim').fn.mkdir
local isdirectory = require('nvim').fn.isdirectory
local tools = require('tools')
local function isempty(s)
retu... | local api = vim.api
local sys = require('sys')
local nvim = require('nvim')
local plugs = require('nvim').plugs
local parent = require('sys').data
local mkdir = require('nvim').fn.mkdir
local isdirectory = require('nvim').fn.isdirectory
local tools = require('tools')
local function isempty(s)
retu... | fix: Some minor changes to neovim settings | fix: Some minor changes to neovim settings
- Add fileencoding to global settings
- Set global grepprg and grepformat options
- Add missing fallback status line
- Change window option settings to nvim.wo instead of nvim.ex.set
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
476b73b6375861d09a0a64c22ee5f7c72ab4074c | deferrs.lua | deferrs.lua | local queue = require 'queue'
local fiber = require 'fiber'
local function show_error(str)
box.error(box.error.PROC_LUA, str)
end
if not queue then
show_error("Failed to load queue module")
end
if not queue.tube.deferrs then
queue.start()
end
box.once('deferrs_init', function ()
queue.create_tube('d... | local queue = require 'queue'
local fiber = require 'fiber'
local function show_error(str)
box.error(box.error.PROC_LUA, str)
end
if not queue then
show_error("Failed to load queue module")
end
if not queue.tube.deferrs then
queue.start()
end
box.once('deferrs_init', function ()
queue.create_tube('d... | deferrs: bug fix | deferrs: bug fix
| Lua | bsd-2-clause | mailru/tntlua,BHYCHIK/tntlua |
1412b200473691fc6e61befd0ad6332a146cc4f9 | display.lua | display.lua | local disp
local module = { }
local title = "Super Mario Count"
local title_offset = 0
local flash_title = title -- This one will actually be rendered
local flash_until = 0
local width = 128
local height = 64
function get_title_offset(str)
disp:setFont(u8g.font_7x14Br)
w = (disp:getWidth() - disp:getStrWidth(s... | local disp
local module = { }
local title = "Super Mario Count"
local title_offset = 0
local flash_title = title -- This one will actually be rendered
local flash_until = 0
local width = 128
local height = 64
function get_title_offset(str)
if (disp == nil) then return end -- too soon
disp:setFont(u8g.font_7x14... | Fix bugs in display | Fix bugs in display
| Lua | mit | DevLoL/super-mario-count |
d256656ed6decdebbf65532fdd858062b7638623 | model/module.lua | model/module.lua | ------------------------------------------------------------------------
--[[ Module ]]--
-- Decorates/Adapts a nn.Module to the dp.Model interface
-- A temporary fix until these are implemented into their own
-- Model subclasses
------------------------------------------------------------------------
local Module, pa... | ------------------------------------------------------------------------
--[[ Module ]]--
-- Decorates/Adapts a nn.Module to the dp.Model interface
-- A temporary fix until these are implemented into their own
-- Model subclasses
------------------------------------------------------------------------
local Module, pa... | fixed dp.Module | fixed dp.Module
| Lua | bsd-3-clause | sagarwaghmare69/dp,rickyHong/dptorchLib,eulerreich/dp,kracwarlock/dp,jnhwkim/dp,nicholas-leonard/dp,fiskio/dp |
9ce917b31725236c28f7ace7a38315b87f3cbd59 | src/main/lua/selectionConverter.lua | src/main/lua/selectionConverter.lua |
function updateClipboard(threadObj)
-- ENCODING among detect, sjis, utf16-be, utf16-le, utf8
local ENCODING = "detect"
-- any positive or negative integer
local STRICTNESS = 20
local hexView = getMemoryViewForm().HexadecimalView
local previousBytes = {}
local handle = io.popen(
"java.exe -jar \"" .. getCh... | function convertHexSelection(threadObj)
local STRATEGIES = {
stabilized = 2 ^ 0,
recurring = 2 ^ 1
}
-- definition: Determines the encoding used to decode the selection.
-- domain: among detect, sjis, utf16-be, utf16-le, utf8
local ENCODING = "detect"
-- definition: Filters converted strings deemed to be g... | Implement strategies to fix #1 and fix #5 | Implement strategies to fix #1 and fix #5
The rate and method used to capture the hexadecimal selection are now
configurable.
| Lua | mit | MX-Futhark/hook-any-text |
479ab0ccd0be4b9afbf42c3d135edddaa86b94bf | mod_roster_command/mod_roster_command.lua | mod_roster_command/mod_roster_command.lua | -----------------------------------------------------------
-- mod_roster_command: Manage rosters through prosodyctl
-- version 0.02
-----------------------------------------------------------
-- Copyright (C) 2011 Matthew Wild
-- Copyright (C) 2011 Adam Nielsen
--
-- This project is MIT/X11 licensed. Please see the
--... | -----------------------------------------------------------
-- mod_roster_command: Manage rosters through prosodyctl
-- version 0.02
-----------------------------------------------------------
-- Copyright (C) 2011 Matthew Wild
-- Copyright (C) 2011 Adam Nielsen
--
-- This project is MIT/X11 licensed. Please see the
--... | mod_roster_command: Fix traceback and log error message when loaded into Prosody (thanks epaulin) | mod_roster_command: Fix traceback and log error message when loaded into Prosody (thanks epaulin)
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
339f1041d31453e1d75444784f86e7f94e140ba8 | plugins/invite.lua | plugins/invite.lua | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | FIX value nil | FIX value nil | Lua | agpl-3.0 | Creedsteam/SuperCreed,NavidQuick/TeleSurena,MPCTeam/SpiderBot,persianTDT/TDT_BOT,hussian1997/bot-of-iraq,Abbasha/zxcabbasdd3,devwawi/VIP-TEAM_Wawi8,s4jj4d021/TgGuard,goldtgbot/GoldTG,sajjad0098/hitler_TG1,ehsanmoeenasa/mybot,CLiENTProJeCt/FeeDMaN,adel8268adelad/Bot-thebest,SPARKsaeedieckta/spark,Source-advan/hitler_TG1... |
1c749c6914ba8059df7f31a630bfc6a7481e7652 | utils/_actions/diskSpace.lua | utils/_actions/diskSpace.lua | local host = require("hs.host")
local fnutils = require("hs.fnutils")
local drawing = require("hs.drawing")
local stext = require("hs.styledtext")
local screen = require("hs.screen")
local disks = require("hs._asm.disks")
local volumesToIgnore = {}
local bytesToGB = 1024 * 1024 * 1024
local module = {}
modul... | local host = require("hs.host")
local fnutils = require("hs.fnutils")
local drawing = require("hs.drawing")
local stext = require("hs.styledtext")
local screen = require("hs.screen")
local disks = require("hs._asm.disks")
local volumesToIgnore = {}
local bytesToGB = 1024 * 1024 * 1024
local module = {}
modul... | fix for when dmg size small enough available size effectively 0... need to scale instead in future update | fix for when dmg size small enough available size effectively 0... need to scale instead in future update
| Lua | mit | asmagill/hammerspoon-config,asmagill/hammerspoon-config,asmagill/hammerspoon-config |
1d9cb0c801f565802771e75e4972078d1624391e | fusion/core/lexer.lua | fusion/core/lexer.lua | local pretty = require("pl.pretty");
local re = require("re"); -- vim:set noet sts=0 sw=3 ts=3:
local defs = {}
pattern = re.compile([[
statement_list <- {| (statement ws)* |}
statement_block <- '{' ws statement_list ws '}'
statement <- (
assignment /
function_call
) ws ';' ws / (
statement_block
)
funct... | local pretty = require("pl.pretty");
local re = require("re"); -- vim:set noet sts=0 sw=3 ts=3:
local defs = {}
pattern = re.compile([[
statement_list <- {| (statement ws)* |}
statement_block <- '{' ws statement_list ws '}'
statement <- (
assignment /
function_call
) ws ';' ws / (
statement_block
)
funct... | lexer.lua: fix binary and unary expressions | lexer.lua: fix binary and unary expressions
| Lua | mit | RyanSquared/FusionScript |
515688db79c25d344c09daa4a18befea50f1c2ee | lib/luvit.lua | lib/luvit.lua | -- clear some globals
-- This will break lua code written for other lua runtimes
_G.io = nil
_G.os = nil
_G.math = nil
_G.string = nil
_G.coroutine = nil
_G.jit = nil
_G.bit = nil
_G.debug = nil
_G.table = nil
local loadfile = _G.loadfile
_G.loadfile = nil
local dofile = _G.dofile
_G.dofile = nil
_G.print = nil
-- Loa... | -- clear some globals
-- This will break lua code written for other lua runtimes
local IO = _G.io -- TODO: implement sync File I/O using libuv
_G.io = nil
_G.os = nil
_G.math = nil
_G.string = nil
_G.coroutine = nil
_G.jit = nil
_G.bit = nil
_G.debug = nil
_G.table = nil
_G.loadfile = nil
_G.dofile = nil
_G.print = nil... | Fix up module loading paths | Fix up module loading paths
| Lua | apache-2.0 | rjeli/luvit,AndrewTsao/luvit,AndrewTsao/luvit,sousoux/luvit,boundary/luvit,bsn069/luvit,sousoux/luvit,sousoux/luvit,boundary/luvit,boundary/luvit,sousoux/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,boundary/luvit,rjeli/luvit,kaustavha/luvit,boundary/luvit,kaustavha/luvit,AndrewTsao/luvit,DBarney/luvit,DBa... |
9a92efb1439dd0c3090f3caf9d95ff421f04d30a | lw-replay.lua | lw-replay.lua | package.path = package.path..";./?.lua;./?/init.lua;"
require 'config'
require 'irc'
cjson = require 'cjson'
local sleep = require 'socket'.sleep
local s = irc.new{nick = config.nick, username = config.username, realname = config.realname}
s:hook('OnChat', function(user, channel, message)
print(('[%s] %s: %s'):... | package.path = package.path..";./?.lua;./?/init.lua;"
require 'config'
require 'irc'
cjson = require 'cjson'
local sleep = require 'socket'.sleep
local s = irc.new{nick = config.nick, username = config.username, realname = config.realname}
s:hook('OnChat', function(user, channel, message)
if message:match('%.ff... | fixed time | fixed time
| Lua | mit | Houshalter/lw-replay,Houshalter/lw-replay,Houshalter/lw-replay |
fd3869ccc68d4853b18baf7fd7a7fb57a6191a34 | languages/unicode.lua | languages/unicode.lua | local icu = require("justenoughicu")
local chardata = pl.pretty.load(pl.utils.readfile("lua-libraries/char-def.lua")).characters.data
SILE.nodeMakers.base = pl.class({
_init = function (self, options)
self.contents = {}
self.options = options
self.token = ""
self.lastnode = false
sel... | local icu = require("justenoughicu")
local chardata = pl.pretty.load(pl.utils.readfile("lua-libraries/char-def.lua")).characters.data
-- luacheck: globals lasttype
-- XXX - this is wrong and broken, but is also confusing. See bug #687
SILE.nodeMakers.base = pl.class({
_init = function (self, options)
self.... | style(languages): Make luacheck happy | style(languages): Make luacheck happy
This is a mess, but it’s a *known* mess. See bug #687 | Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
73368d5593848cc3643b7453155989374d69aa26 | kong/pdk/private/phases.lua | kong/pdk/private/phases.lua | local bit = require "bit"
local band = bit.band
local fmt = string.format
local ngx_get_phase = ngx.get_phase
local PHASES = {
--init = 0x00000001,
init_worker = 0x00000001,
certificate = 0x00000002,
--set = 0x00000004,
rewrite = 0x00000010,
access ... | local bit = require "bit"
local band = bit.band
local fmt = string.format
local ngx_get_phase = ngx.get_phase
local PHASES = {
--init = 0x00000001,
init_worker = 0x00000001,
certificate = 0x00000002,
--set = 0x00000004,
rewrite = 0x00000010,
access ... | fix(pdk) get_phases_names returns correct phase value for all phases (#8208) | fix(pdk) get_phases_names returns correct phase value for all phases (#8208)
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
82bf1abfc1e9343fa1d9e5b2812c8b7919c1da8b | premake4.lua | premake4.lua | solution "alloy"
configurations { "Debug", "Release" }
-- get data from shell
LLVM_OPTIONS = "--system-libs --libs "
LLVM_CONFIG = "core analysis executionengine jit interpreter native "
LLVM_CFLAGS = "$(" .. "llvm-config --cflags " .. LLVM_OPTIONS .. LLVM_CONFIG .. ")"
LLVM_LFLAGS = "$(" .. "llvm-config --ldfla... | solution "alloy"
configurations { "Debug", "Release" }
-- missing function
if not os.outputof then
function os.outputof(cmd)
local pipe = io.popen(cmd)
local result = pipe:read('*a')
pipe:close()
result = result:gsub ("\n", " ")
return result
end
end
-- get data from shell
LLVM_OPTIONS = "-... | fix various premake/makefile/LLVM errors | fix various premake/makefile/LLVM errors
| Lua | mit | 8l/ark-c,8l/ark-c,naegelejd/ark,8l/ark-c,naegelejd/ark,naegelejd/ark |
30824ce0d6b6c50c503ca5a8f94425dab9dd75f1 | test_scripts/Polices/Validation_of_PolicyTables/Check_count_of_removals_for_bad_behavior_too_many_pending_requests.lua | test_scripts/Polices/Validation_of_PolicyTables/Check_count_of_removals_for_bad_behavior_too_many_pending_requests.lua | ---------------------------------------------------------------------------------------------
-- See APPLINK-23481, APPLINK-16207
-- Requirement summary:
-- [Policies] "usage_and_error_counts" and "count_of_removals_for_bad_behavior" update
--
-- Description:
-- In case an application has been unregistered with any of:... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies] "usage_and_error_counts" and "count_of_removals_for_bad_behavior" update
--
-- Description:
-- In case an application has been unregistered with any of:
-- -> TOO_MANY_PENDING_REQUESTS,
--... | Fix script | Fix script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
3aaad4086837536984c96b5841889a52d7ea0a18 | tests/test-colors.lua | tests/test-colors.lua | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | Fix test-colors not being deterministic | Fix test-colors not being deterministic
Previously was relying on consistent iteration order in dump, which can't be relied on
| Lua | apache-2.0 | luvit/luvit,zhaozg/luvit,luvit/luvit,zhaozg/luvit |
992b348f97f4dd78e1eb233da06dfba27e44e67a | neovim/lua/plugin/lspconfig.lua | neovim/lua/plugin/lspconfig.lua | local lsp_status = require('lsp-status')
lsp_status.register_progress()
require('lsp_signature').setup({
bind = true,
toggle_key = '<C-h>',
})
local function on_attach(client, bufnr)
vim.bo[bufnr].omnifunc = 'v:lua.vim.lsp.omnifunc'
require('which-key').register({
n = {
name = '+l... | local lsp_status = require('lsp-status')
lsp_status.register_progress()
require('lsp_signature').setup({
bind = true,
toggle_key = '<C-h>',
})
local function on_attach(client, bufnr)
vim.bo[bufnr].omnifunc = 'v:lua.vim.lsp.omnifunc'
require('which-key').register({
n = {
name = '+l... | Fix completion snippet for lua | Fix completion snippet for lua
| Lua | mit | MPogoda/dotfiles |
0814fd90b422af25d815ac73a5be87c152e19d86 | src/apps/bridge/flooding.lua | src/apps/bridge/flooding.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- This class derives from lib.bridge.base and implements the simplest
-- possible bridge, which floods a packet arriving on a port to all
-- destination ports within its scope according to the split-horizon
-- topology.
module(..., packag... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- This class derives from lib.bridge.base and implements the simplest
-- possible bridge, which floods a packet arriving on a port to all
-- destination ports within its scope according to the split-horizon
-- topology.
module(..., packag... | apps.bridge.flooding: Fix regression introduced by 4b4b8ad / #638. | apps.bridge.flooding: Fix regression introduced by 4b4b8ad / #638.
| Lua | apache-2.0 | kbara/snabb,dpino/snabbswitch,snabbco/snabb,wingo/snabb,wingo/snabb,eugeneia/snabb,wingo/snabb,Igalia/snabbswitch,wingo/snabbswitch,wingo/snabbswitch,dpino/snabb,snabbco/snabb,snabbco/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,mixflowtech/logsensor,Igalia/snabb,alexandergall/snabbswitch,Igalia/snabb,snab... |
651117438ab71cbbe9b0690fa413bb75d1ef9f07 | tests/libs/tap.lua | tests/libs/tap.lua | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | tap: check for closing handles in shutdown | tap: check for closing handles in shutdown
fix #839
| Lua | apache-2.0 | zhaozg/luvit,luvit/luvit,zhaozg/luvit,luvit/luvit |
039370c2fc95443ef2564fa03ce90e514d5f08f4 | src/spy.lua | src/spy.lua | -- module will return spy table, and register its assertions with the main assert engine
local assert = require('luassert.assert')
local util = require('luassert.util')
-- Spy metatable
local spy_mt = {
__call = function(self, ...)
local arguments = {...}
arguments.n = select('#',...) -- add argument count ... | -- module will return spy table, and register its assertions with the main assert engine
local assert = require('luassert.assert')
local util = require('luassert.util')
-- Spy metatable
local spy_mt = {
__call = function(self, ...)
local arguments = {...}
arguments.n = select('#',...) -- add argument count ... | Fix internal assertion error levels for spies | Fix internal assertion error levels for spies
| Lua | mit | ZyX-I/luassert,mpeterv/luassert,o-lim/luassert |
846795bd6e86b676f02d816465b27bf56fd1ebcb | src/haka/lua/rule.lua | src/haka/lua/rule.lua | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local class = require('class')
local check = require('check')
local module = {}
module.rules = {}
function haka.ru... | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local class = require('class')
local check = require('check')
local module = {}
local log = haka.log_section("core")... | Fix log message | Fix log message
Update the rule reporting to match the new logging API.
| Lua | mpl-2.0 | nabilbendafi/haka,LubyRuffy/haka,haka-security/haka,lcheylus/haka,lcheylus/haka,nabilbendafi/haka,haka-security/haka,nabilbendafi/haka,haka-security/haka,Wingless-Archangel/haka,LubyRuffy/haka,lcheylus/haka,Wingless-Archangel/haka |
fe5b2f413b94623117322d2d1775f19fb998138d | plugins/mod_message.lua | plugins/mod_message.lua |
local full_sessions = full_sessions;
local bare_sessions = bare_sessions;
local jid_bare = require "util.jid".bare;
local user_exists = require "core.usermanager".user_exists;
local offlinemanager = require "core.offlinemanager";
local function select_top_resources(user)
local priority = 0;
local recipients = {};
... |
local full_sessions = full_sessions;
local bare_sessions = bare_sessions;
local jid_bare = require "util.jid".bare;
local jid_split = require "util.jid".split;
local user_exists = require "core.usermanager".user_exists;
local offlinemanager = require "core.offlinemanager";
local t_insert = table.insert;
local functi... | mod_message: Fix global access | mod_message: Fix global access
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
794a436d86d0c5ab4540780ff569f2877452c89c | mods/bucket/init.lua | mods/bucket/init.lua | -- Minetest 0.4 mod: bucket
-- See README.txt for licensing and other information.
minetest.register_alias("bucket", "bucket:bucket_empty")
minetest.register_alias("bucket_water", "bucket:bucket_water")
minetest.register_alias("bucket_lava", "bucket:bucket_lava")
minetest.register_craft({
output = 'bucket:bucket_emp... | -- Minetest 0.4 mod: bucket
-- See README.txt for licensing and other information.
minetest.register_alias("bucket", "bucket:bucket_empty")
minetest.register_alias("bucket_water", "bucket:bucket_water")
minetest.register_alias("bucket_lava", "bucket:bucket_lava")
minetest.register_craft({
output = 'bucket:bucket_emp... | Fix bucket code indentation | Fix bucket code indentation
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
a038717a448cfe129cec70a7f6f4bcb056e22700 | examples/repl.lua | examples/repl.lua | #!/bin/sh
_=[[
exec lua -i "$0" "$@"
]]
--
-- Interactive Lua session with a Twitter client logged in.
-- It uses pl.pretty and custom __tostring methods to display the returned data.
--
local cfg = require "_config"()
pl = require "pl.import_into" ()
pretty = pl.pretty
twitter = require "luatwit"
objects = require "lu... | #!/bin/sh
_=[[
exec lua -i "$0" "$@"
]]
--
-- Interactive Lua session with a Twitter client logged in.
-- It uses pl.pretty and custom __tostring methods to display the returned data.
--
local cfg = require "_config"()
pl = require "pl.import_into" ()
pretty = pl.pretty
twitter = require "luatwit"
objects = require "lu... | fixed examples/repl | fixed examples/repl
| Lua | mit | darkstalker/LuaTwit |
2a8948cdc83c78a943cc4c9dceb2cf25ba063c3c | BIOS/init.lua | BIOS/init.lua | --The BIOS should control the system of LIKO-12 and load the peripherals--
--For now it's just a simple BIOS to get LIKO-12 working.
local DevMode = love.filesystem.exists("devmode.txt")
local FThread --File tracking thread
local _LIKO_Version, _LIKO_Old = _LVer.magor..".".._LVer.minor..".".._LVer.patch..".".._LVer.b... | --The BIOS should control the system of LIKO-12 and load the peripherals--
--For now it's just a simple BIOS to get LIKO-12 working.
local DevMode = love.filesystem.exists("devmode.txt")
local _LIKO_Version, _LIKO_Old = _LVer.magor..".".._LVer.minor..".".._LVer.patch..".".._LVer.build
if love.filesystem.exists(".versi... | Various fixes | Various fixes
Former-commit-id: 98e189265dd44059af2f358a9dea83033dbe4a88 | Lua | mit | RamiLego4Game/LIKO-12 |
b4b2056c0430c76f9e398c03b5b6856f79c0cc0e | src/caching/null.lua | src/caching/null.lua | local Cache = {}
local mt = {__index = Cache}
local function new()
return setmetatable({}, mt)
end
function Cache:add(key, value, expiration)
assert(type(key) == 'string')
assert(value ~= nil)
assert(expiration == nil or type(expiration) == 'number')
return true
end
function Cache:set(key, value,... | local Cache = {}
local mt = {__index = Cache}
local function new()
return setmetatable({}, mt)
end
function Cache:add(key, value, expiration)
assert(type(key) == 'string')
assert(value ~= nil)
assert(expiration == nil or type(expiration) == 'number')
return true
end
function Cache:set(key, value,... | Fixed assert for offset in null cache incr/decr. | Fixed assert for offset in null cache incr/decr.
| Lua | mit | akornatskyy/lucid |
588fb1e006718d9b6100ba6b8056a7ad95d091cf | script/c800000041.lua | script/c800000041.lua | --CH キング・アーサー
function c800000041.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),4),2)
c:EnableReviveLimit()
--destroy replace
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFEC... | --CH キング・アーサー
function c800000041.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),4),2)
c:EnableReviveLimit()
--destroy replace
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFEC... | fix | fix
fixed Effect type | Lua | mit | SuperAndroid17/DevProLauncher,Tic-Tac-Toc/DevProLauncher,sidschingis/DevProLauncher |
4877d78d32a3db0f832ee4b92cce33f9238e309e | twilio.capability.lua | twilio.capability.lua | local jwt = require 'jwt'
local _scopes = {}
local _authToken = ""
local _accountSid = ""
local _clientName = ""
function initialize(accountSid, authToken)
_authToken = authToken
_accountSid = accountSid
end
function allowClientIncoming(clientName)
if (clientName:match("%W")) then
error("Only alphanumeric char... | local jwt = require 'jwt'
local _scopes = {}
local _authToken = ""
local _accountSid = ""
local _clientName = ""
local initialize = function(accountSid, authToken)
_authToken = authToken
_accountSid = accountSid
end
local allowClientIncoming = function(clientName)
if (clientName:match("%W")) then
error("Only a... | Fixing reference | Fixing reference
| Lua | bsd-3-clause | robertbrook/lib,thejeshgn/lib |
3b8e5a8064b4d359ab691369ace524c9b5b87575 | ClassNLLCriterion.lua | ClassNLLCriterion.lua | local THNN = require 'nn.THNN'
local ClassNLLCriterion, parent = torch.class('nn.ClassNLLCriterion', 'nn.Criterion')
function ClassNLLCriterion:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.sizeAverage = true
end
i... | local THNN = require 'nn.THNN'
local ClassNLLCriterion, parent = torch.class('nn.ClassNLLCriterion', 'nn.Criterion')
function ClassNLLCriterion:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.sizeAverage = true
end
i... | fixing bug in ClassNLLCriterion for single targets | fixing bug in ClassNLLCriterion for single targets
| Lua | bsd-3-clause | colesbury/nn,apaszke/nn,nicholas-leonard/nn,joeyhng/nn,sagarwaghmare69/nn |
11754df4459a827924d728f3f15f62a7ba48c312 | lua/functions.lua | lua/functions.lua | -- global variable for xml lib
xml = require('LuaXml')
-- select words above threshold size and add to a table
function big_words(str, thresh)
local r = {}
for i,word in pairs(str_split(str, " ")) do
if word:len() >= thresh then
r[#r+1] = word
end
end
return r
end
-- split function borrowed from http://lua... | -- global variable for xml lib
xml = require('LuaXml')
-- select words above threshold size and add to a table
function big_words(str, thresh)
local r = {}
for i,word in pairs(str_split(str, " ")) do
if word:len() >= thresh then
r[#r+1] = word
end
end
return r
end
-- split string by separator
function str_... | real bugfix for issue #1 | real bugfix for issue #1
| Lua | mit | wetfish/denice,pielover88888/denice |
c34f58657e369b7fed5b6288c0267eb88694e9a8 | argcheck.lua | argcheck.lua | local env = require 'argcheck.env' -- retrieve argcheck environement
env.istype = function(obj, typename)
if (typename == "Dataframe") then
return torch.isTypeOf(obj, Dataframe)
end
-- Either a number or string
if (typename == "number|string") then
return torch.type(obj) == "number" or
torch.type(obj) == "... | local env = require 'argcheck.env' -- retrieve argcheck environement
env.istype = function(obj, typename)
if (typename == "Dataframe") then
return torch.isTypeOf(obj, Dataframe)
end
-- Either a number or string
if (typename == "number|string") then
return torch.type(obj) == "number" or
torch.type(obj) == "... | Fixed missing Df_Array|boolean argcheck | Fixed missing Df_Array|boolean argcheck
| Lua | mit | AlexMili/torch-dataframe |
b9b84651e297d4b1e2994920bfc1dbf886602c39 | spec/02-kong_storage_spec.lua | spec/02-kong_storage_spec.lua | local storage = require("kong.plugins.acme.storage.kong")
local helpers = require "spec.helpers"
for _, strategy in helpers.each_strategy() do
describe("Plugin: acme (storage.kong) [#" .. strategy .. "]", function()
local _, db
lazy_setup(function()
_, db = helpers.get_db_utils(strategy, {
"... | local storage = require("kong.plugins.acme.storage.kong")
local helpers = require "spec.helpers"
for _, strategy in helpers.each_strategy() do
describe("Plugin: acme (storage.kong) [#" .. strategy .. "]", function()
local _, db
lazy_setup(function()
_, db = helpers.get_db_utils(strategy, {
"... | fix(acme) fix typo in tests (#5) | fix(acme) fix typo in tests (#5)
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
fb22235aac0f9c0e42ab6876f0516cee9445a11f | ardivink.lua | ardivink.lua | ci = require("ci")
--godi = require("godi")
oasis = require("oasis")
git = require("git")
ci.init()
-- godi.init()
git.init()
oasis.init()
--godi.bootstrap("3.12")
--godi.update()
--godi.upgrade()
--godi.build_many(
-- {"godi-findlib",
-- "godi-ocaml-fileutils",
-- "godi-ocaml-data-notation",
-- "godi-ocaml-ex... | ci = require("ci")
--godi = require("godi")
oasis = require("oasis")
git = require("git")
ci.init()
-- godi.init()
ci.prependenv("PATH", "/usr/opt/godi/bin")
ci.prependenv("PATH", "/usr/opt/godi/sbin")
git.init()
oasis.init()
--godi.bootstrap("3.12")
--godi.update()
--godi.upgrade()
--godi.build_many(
-- {"godi-fin... | Fix path for GODI installation on deci. | Fix path for GODI installation on deci.
| Lua | lgpl-2.1 | jpdeplaix/oasis,jpdeplaix/oasis,gerdstolpmann/oasis,madroach/oasis,jpdeplaix/oasis,madroach/oasis,Chris00/oasis,gerdstolpmann/oasis,diml/oasis,RadicalZephyr/oasis,Chris00/oasis,Chris00/oasis,RadicalZephyr/oasis,gerdstolpmann/oasis,diml/oasis |
24bff8935338438e11ae1c88b94fef203e0de960 | spec/os_spec.lua | spec/os_spec.lua | describe('lift.os', function()
local WAIT = 100 -- how much to wait for a process to finish
if os.getenv('CI') then
WAIT = 200
end
local os = require 'lift.os'
local ls = require 'lift.string'
local async = require 'lift.async'
local config = require 'lift.config'
local su = require 'spec.util'
... | describe('lift.os', function()
local WAIT = 100 -- how much to wait for a process to finish
if os.getenv('CI') then
WAIT = 200
end
local os = require 'lift.os'
local ls = require 'lift.string'
local async = require 'lift.async'
local config = require 'lift.config'
local su = require 'spec.util'
... | Fix test | Fix test
| Lua | mit | tbastos/lift |
0ad80ec34f1ac0a4c267ce84fcb0c5ac4d579a14 | org_v1/indri_query.lua | org_v1/indri_query.lua | -- TODO allow refining results (indri can query a given document set, the results)
-- TODO fix rendering of spots with long "strong" strings, #od(new driver)
local curses = require("curses") -- from lua posix
local QueryEnvironment = require("indri_queryenvironment")
curses.initscr()
curses.cbreak()
curses.nl(0)
curs... | -- TODO allow refining results (indri can query a given document set, the results)
-- TODO fix rendering of spots with long "strong" strings, #od(new driver)
local curses = require("curses") -- from lua posix
local QueryEnvironment = require("indri_queryenvironment")
curses.initscr()
curses.cbreak()
curses.nl(0)
curs... | fix char alginments | fix char alginments
| Lua | mit | jbalint/indri_stuff,jbalint/indri_stuff,jbalint/indri_stuff |
7350b4c8be670bb26ac505df040cc3266c6c74b8 | util/httpstream.lua | util/httpstream.lua |
local coroutine = coroutine;
local tonumber = tonumber;
local deadroutine = coroutine.create(function() end);
coroutine.resume(deadroutine);
module("httpstream")
local function parser(success_cb, parser_type, options_cb)
local data = coroutine.yield();
local function readline()
local pos = data:find("\r\n", nil... |
local coroutine = coroutine;
local tonumber = tonumber;
local deadroutine = coroutine.create(function() end);
coroutine.resume(deadroutine);
module("httpstream")
local function parser(success_cb, parser_type, options_cb)
local data = coroutine.yield();
local function readline()
local pos = data:find("\r\n", nil... | util.httpstream: Fixed a possible string to number comparison error. | util.httpstream: Fixed a possible string to number comparison error.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
8178cc6846714d7ecd86dca205c856ea092e2db2 | item/rings.lua | item/rings.lua | -- UPDATE common SET com_script = 'item.rings' WHERE com_itemid IN (68, 277, 278, 279, 280, 281, 282);
require("item.general.jewel")
require("content.jewelbonus")
module("item.rings", package.seeall, package.seeall(item.general.jewel))
function MoveItemAfterMove( User, SourceItem, TargetItem )
--User:inform("in ... | -- UPDATE common SET com_script = 'item.rings' WHERE com_itemid IN (68, 277, 278, 279, 280, 281, 282);
require("item.general.jewel")
require("content.jewelbonus")
module("item.rings", package.seeall)
function MoveItemAfterMove( User, SourceItem, TargetItem )
--User:inform("in move");
stoneNr,stoneStr=content... | Uber-Exploit Fix | Uber-Exploit Fix
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content |
fdae3d3603f551a59a9452bef93345460272da7b | kong/cache.lua | kong/cache.lua | local kong_mlcache = require "kong.mlcache"
local type = type
local max = math.max
local ngx_log = ngx.log
local ngx_now = ngx.now
local ERR = ngx.ERR
local NOTICE = ngx.NOTICE
local DEBUG = ngx.DEBUG
local SHM_CACHE = "kong_cache"
--[[
Hypothesis
----------
Item size: 1024 bytes
Max memory li... | local kong_mlcache = require "kong.mlcache"
local type = type
local max = math.max
local ngx_log = ngx.log
local ngx_now = ngx.now
local ERR = ngx.ERR
local NOTICE = ngx.NOTICE
local DEBUG = ngx.DEBUG
local SHM_CACHE = "kong_cache"
--[[
Hypothesis
----------
Item size: 1024 bytes
Max memory li... | fix(cache) do not use callback as hard-error wrapper keys | fix(cache) do not use callback as hard-error wrapper keys
Part of the fixes for #3277 for a regression introduced in
de6390e34c5301aa4c965d52f08e00ab81f91efa.
While the soft_to_hard error wrapper tries its best to be GC-friendly by
not keeping references on the DB cache callbacks as they are used as keys
to index the... | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong,Mashape/kong |
5d036a1d6da663bf82f62f40072a20a3d2614310 | tests/3drender/render.lua | tests/3drender/render.lua | require "sprite"
local maf = require "maf"
local PI = math.pi
local std = stead
local render = {
}
render.__index = render
local scene = {
}
scene.__index = scene
local object = {
}
object.__index = object
function render.object()
local o = {
shapes = {}
}
setmetatable(o, object)
return o
end
function objec... | require "sprite"
local maf = require "maf"
local PI = math.pi
local std = stead
local render = {
}
render.__index = render
local scene = {
}
scene.__index = scene
local object = {
}
object.__index = object
function render.object()
local o = {
shapes = {}
}
setmetatable(o, object)
return o
end
function objec... | vector fix | vector fix
| Lua | mit | gl00my/stead3 |
560b3f813abb6037c414e34dc5554cd4e719e7e0 | src/selectionimageutils/src/Client/SelectionImageUtils.lua | src/selectionimageutils/src/Client/SelectionImageUtils.lua | --- Provides a utility method to clearing selection images with blank values.
-- @module SelectionImageUtils
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local DialogTemplatesClient = require("DialogTemplatesClient")
local SelectionImageUtils = {}
functio... | --- Provides a utility method to clearing selection images with blank values.
-- @module SelectionImageUtils
-- @author Quenty
local SelectionImageUtils = {}
function SelectionImageUtils.overrideWithBlank(button)
local selectionImage = Instance.new("ImageLabel")
selectionImage.Image = ""
selectionImage.Size = UDim... | fix: Make SelectionImageUtils not use dialog templates (bad dependency) | fix: Make SelectionImageUtils not use dialog templates (bad dependency)
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
119526eb9cc25a481edd0f5346b92b5efe96587e | libs_sb/chonsole/exts/gl.lua | libs_sb/chonsole/exts/gl.lua | local engineTextures = {
-- atlases
"$units",
"$units1",
"$units2",
-- cubemaps
"$specular",
"$reflection",
"$map_reflection",
"$sky_reflection",
-- specials
"$shadow",
"$heightmap",
-- SMF-maps
"$grass",
"$detail",
"$minimap",
"$shading",
"$normals",
-- SSMF-maps
"$ssmf_normals",
"$ssmf_specula... | local engineTextures = {
-- atlases
"$units",
"$units1",
"$units2",
-- cubemaps
"$specular",
"$reflection",
"$map_reflection",
"$sky_reflection",
-- specials
"$shadow",
"$heightmap",
-- SMF-maps
"$grass",
"$detail",
"$minimap",
"$shading",
"$normals",
-- SSMF-maps
"$ssmf_normals",
"$ssmf_specula... | fix heightmap output | fix heightmap output
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
726f9762186506e68778c536d7370d693cb5e7bf | commands/init.lua | commands/init.lua | local core = require("core")()
local prompt = require("prompt")(require("pretty-print"))
local fs = require("coro-fs")
local env = require("env")
local log = require("log").log
local pathJoin = require("luvi").path.join
local cwd = require('uv').cwd()
local sprintf = require("string").format
local config = core.config... | local core = require("core")()
local prompt = require("prompt")(require("pretty-print"))
local fs = require("coro-fs")
local env = require("env")
local log = require("log").log
local pathJoin = require("luvi").path.join
local cwd = require('uv').cwd()
local sprintf = require("string").format
local config = core.config... | init: Fix ordering of parameters in package metadata | init: Fix ordering of parameters in package metadata
- Fixes #133 | Lua | apache-2.0 | james2doyle/lit,zhaozg/lit,squeek502/lit,luvit/lit |
42916ddf5670aa2d9e6f71c17a5241bd9846c25a | MMOCoreORB/bin/scripts/managers/player_creation_manager.lua | MMOCoreORB/bin/scripts/managers/player_creation_manager.lua | --Should all created players start with God Mode? 1 = yes, 0 = no
freeGodMode = 0;
--How many cash credits new characters start with after creating a character (changed during test phase, normal value is 100)
startingCash = 100
--startingCash = 100000
--How many bank credits new characters start with after creating a c... | --Should all created players start with God Mode? 1 = yes, 0 = no
freeGodMode = 0;
--How many cash credits new characters start with after creating a character (changed during test phase, normal value is 100)
startingCash = 100
--startingCash = 100000
--How many bank credits new characters start with after creating a c... | (unstable) [fixed] novice profession starting items | (unstable) [fixed] novice profession starting items
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5725 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2... |
e251af033a26afc90b73f05ebeafd9481274e1a4 | src/logfactory/LogCreator.lua | src/logfactory/LogCreator.lua | local LogCreator = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local GIT_COMMAND = 'git log --reverse --numstat --pretty=format:"info: %an|%ae|%ct" --name-status --no-merges';
local LOG_FOLDER = 'logs/';
local LOG_FILE = '/log.txt';
local IN... | local LogCreator = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local GIT_COMMAND = 'git -C "'
local LOG_COMMAND = '" log --reverse --numstat --pretty=format:"info: %an|%ae|%ct" --name-status --no-merges';
local LOG_FOLDER = 'logs/';
local LO... | Fix #31 - Directly pass the repository's path to the git command | Fix #31 - Directly pass the repository's path to the git command
| Lua | mit | rm-code/logivi |
6eef75d6cae94cc0b224d73a3c07038856f501ab | core/src/ffluci/sgi/webuci.lua | core/src/ffluci/sgi/webuci.lua | --[[
FFLuCI - SGI-Module for Haserl
Description:
Server Gateway Interface for Haserl
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Li... | --[[
FFLuCI - SGI-Module for Haserl
Description:
Server Gateway Interface for Haserl
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Li... | * Fixed ffluci.sgi.webuci | * Fixed ffluci.sgi.webuci
| Lua | apache-2.0 | deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci |
9c88f0993aa4612c5b2c81f1abeb16b8aa4d18ad | strictness.lua | strictness.lua | -- ================================================================
-- "strictness" tracks declaration and assignment of globals in Lua
-- Copyright (c) 2013 Roland Y., MIT License
-- v0.1.0 - compatible Lua 5.1, 5.2
-- ================================================================
local setmetatable = setmetatable
... | -- ================================================================
-- "strictness" tracks declaration and assignment of globals in Lua
-- Copyright (c) 2013 Roland Y., MIT License
-- v0.1.0 - compatible Lua 5.1, 5.2
-- ================================================================
local setmetatable = setmetatable
... | goto is reserved with Lua5.2, fixes #2, thanks to @lua4web | goto is reserved with Lua5.2, fixes #2, thanks to @lua4web
| Lua | mit | Yonaba/strictness |
632d2cc42919725fb5abe8f23baef72a3d29f0ec | monster/base/spells/base.lua | monster/base/spells/base.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | Verify bug fix | Verify bug fix
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.