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 |
|---|---|---|---|---|---|---|---|---|---|
19897554ce9735aa821279efae12750e8036f8e2 | lualib/http/client.lua | lualib/http/client.lua | local socket = require "socket"
local ssl = require "ssl"
local stream = require "http.stream"
local dns = require "dns"
local client = {}
local EMPTY = {}
local function parseurl(url)
local default = false
local scheme, host, port, path= string.match(url, "(http[s]-)://([^:/]+):?(%d*)([%w-%.?&=_/]*)")
if path == ... | local socket = require "socket"
local ssl = require "ssl"
local stream = require "http.stream"
local dns = require "dns"
local client = {}
local function parseurl(url)
local default = false
local scheme, host, port, path= string.match(url, "(http[s]-)://([^:/]+):?(%d*)([%w-%.?&=_/]*)")
if path == "" then
path = ... | bugfix: http client use default header | bugfix: http client use default header
| Lua | mit | findstr/silly |
1136c35cdafbc9e9264db51a16f998464a684e05 | libraries/map.lua | libraries/map.lua | --Must merge this with api.lua
local Map = _Class("liko12.map")
function Map:initialize(w,h)
self.w, self.h = w or 24, h or 28
--Initialize the map table
self.m = {}
for x=1, self.w do
self.m[x] = {}
for y=1, self.h do
self.m[x][y] = 0
end
end
end
--If called with a function, it will be c... | --Must merge this with api.lua
local Map = _Class("liko12.map")
function Map:initialize(w,h)
self.w, self.h = w or 24, h or 8
--Initialize the map table
self.m = {}
for x=1, self.w do
self.m[x] = {}
for y=1, self.h do
self.m[x][y] = 0
end
end
end
--If called with a function, it will be ca... | Bugfix | Bugfix | Lua | mit | RamiLego4Game/LIKO-12 |
36d13a227d6c9b26ee1e6101b1bb13377a802ef4 | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | protocols/6x4: fix turning off 6ro4 advertising on all interfaces | protocols/6x4: fix turning off 6ro4 advertising on all interfaces
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci |
ce70d514487bb30aec315828fe270695929163f4 | npc/base/responses.lua | npc/base/responses.lua | --- Response Parsers
--
-- This file is part of the easyNPC framework.
-- The function in this class take care for postprocessing the responses that
-- are said by the NPCs
--
-- Author: Martin Karing
require("base.class")
require("base.factions")
module("npc.base.responses", package.seeall)
processorList = {};
do
... | --- Response Parsers
--
-- This file is part of the easyNPC framework.
-- The function in this class take care for postprocessing the responses that
-- are said by the NPCs
--
-- Author: Martin Karing
require("base.class")
require("base.factions")
module("npc.base.responses", package.seeall)
processorList = {};
do
... | Trying to fix response processors of the NPCs | Trying to fix response processors of the NPCs
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content |
e7b006debbc7c211dbb1f9e3f400017934ddf74d | src/plugins/finalcutpro/timeline/transitions.lua | src/plugins/finalcutpro/timeline/transitions.lua | --- === plugins.finalcutpro.timeline.transitions ===
---
--- Controls Final Cut Pro's Transitions.
local require = require
--local log = require "hs.logger".new "transitions"
local timer = require "hs.timer"
local dialog = require "cp.dialog"
local fcp = r... | --- === plugins.finalcutpro.timeline.transitions ===
---
--- Controls Final Cut Pro's Transitions.
local require = require
--local log = require "hs.logger".new "transitions"
local timer = require "hs.timer"
local dialog = require "cp.dialog"
local fcp = r... | Fixed bug when applying transitions | Fixed bug when applying transitions
- Closes #2759
| Lua | mit | fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost |
007b82885fbc8f8adf7dfe99c510f2d478e6fa59 | module/admin-core/src/model/cbi/admin_services/olsrd.lua | module/admin-core/src/model/cbi/admin_services/olsrd.lua | -- ToDo: Autodetect things, Translate, Add descriptions
require("ffluci.fs")
m = Map("olsr", "OLSR", [[OLSR ist ein flexibles Routingprotokoll,
dass den Aufbau von mobilen Ad-Hoc Netzen unterstützt.]])
s = m:section(NamedSection, "general", "olsr", "Allgemeine Einstellungen")
debug = s:option(ListValue, "DebugLevel... | -- ToDo: Autodetect things, Translate, Add descriptions
require("ffluci.fs")
m = Map("olsr", "OLSR", [[OLSR ist ein flexibles Routingprotokoll,
dass den Aufbau von mobilen Ad-Hoc Netzen unterstützt.]])
s = m:section(NamedSection, "general", "olsr", "Allgemeine Einstellungen")
debug = s:option(ListValue, "DebugLevel... | * ffluci.model.cbi.admin_services.olsr: Fixed variable conversion | * ffluci.model.cbi.admin_services.olsr: Fixed variable conversion
| Lua | apache-2.0 | obsy/luci,oyido/luci,opentechinstitute/luci,RedSnake64/openwrt-luci-packages,Hostle/openwrt-luci-multi-user,jorgifumi/luci,daofeng2015/luci,thesabbir/luci,Noltari/luci,ff94315/luci-1,deepak78/new-luci,slayerrensky/luci,palmettos/test,keyidadi/luci,zhaoxx063/luci,kuoruan/luci,Wedmer/luci,palmettos/cnLuCI,jlopenwrtluci/l... |
00fb7773c7af447ce1d7b2f13d99abd0dff5d6b0 | helppage.lua | helppage.lua | require "rendertext"
require "keys"
require "graphics"
require "font"
require "inputbox"
require "selectmenu"
require "commands"
HelpPage = {
-- Other Class vars:
-- spacing between lines
spacing = 25,
-- state buffer
commands = nil,
items = 0,
page = 1,
-- font for displaying keys
fsize = 20,
face = Font... | require "rendertext"
require "keys"
require "graphics"
require "font"
require "inputbox"
require "selectmenu"
require "commands"
HelpPage = {
-- Other Class vars:
-- spacing between lines
spacing = 25,
-- state buffer
commands = nil,
items = 0,
page = 1,
-- font for displaying keys
fsize = 20,
face = Font... | add fix KEY_LPG{BCK,FWD} listening for helppage | add fix KEY_LPG{BCK,FWD} listening for helppage
| Lua | agpl-3.0 | Hzj-jie/koreader,NiLuJe/koreader,koreader/koreader-base,NiLuJe/koreader-base,noname007/koreader,koreader/koreader-base,mihailim/koreader,poire-z/koreader,Frenzie/koreader-base,mwoz123/koreader,NiLuJe/koreader,koreader/koreader,koreader/koreader,Markismus/koreader,frankyifei/koreader-base,apletnev/koreader-base,Frenzie/... |
81faff3db4317146aa77651164b4b230cd6ffbfb | pkg/torch/argtypes.lua | pkg/torch/argtypes.lua | torch.argtypes = {}
torch.argtypes["numbers"] = {
vararg = true, -- if needed, one can override it to false
check = function(self)
local idx = self.luaname:match('select%((%d+), %.%.%.%)')
if idx then -- ordered arguments
if self.vararg then -- can be (1, 2, 3) or... | torch.argtypes = {}
torch.argtypes["numbers"] = {
vararg = true, -- if needed, one can override it to false
check = function(self)
local idx = self.luaname:match('select%((%d+), %.%.%.%)')
if idx then -- ordered arguments
if self.vararg then -- can be (1, 2, 3) or... | bug correction for named numbers | bug correction for named numbers
| Lua | bsd-3-clause | torch/argcheck |
f7979de1e6aaa03d14d93227a4c81acf03bccd48 | test_scripts/Polices/App_Permissions/ATF_P_DISALLOWED_App_Which_Name_Does_Not_Match_With_Nickname_In_PT.lua | test_scripts/Polices/App_Permissions/ATF_P_DISALLOWED_App_Which_Name_Does_Not_Match_With_Nickname_In_PT.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [RegisterAppInterface] DISALLOWED app`s nickname does not match ones listed in Policy Table
--
-- Description:
-- PoliciesManager must disallow the app`s registration IN CASE the app`s nickname does ... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [RegisterAppInterface] DISALLOWED app`s nickname does not match ones listed in Policy Table
--
-- Description:
-- PoliciesManager must disallow the app`s registration IN CASE the app`s nickname does ... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
93d8e1f745a08592a5b769ab0055091d89bbde2d | data/sentenceset.lua | data/sentenceset.lua | ------------------------------------------------------------------------
--[[ SentenceSet ]]--
-- Inherits DataSet
-- Used for Language Modeling
-- Takes a sequence of words stored as a tensor of word ids,
-- and a tensor holding the start index of the sentence of its
-- commensurate word id (the one at the same index... | ------------------------------------------------------------------------
--[[ SentenceSet ]]--
-- Inherits DataSet
-- Used for Language Modeling
-- Takes a sequence of words stored as a tensor of word ids,
-- and a tensor holding the start index of the sentence of its
-- commensurate word id (the one at the same index... | Fix Int vs Long tensor issue | Fix Int vs Long tensor issue
| Lua | bsd-3-clause | fiskio/dp |
b0bc31e14b5eabd334ba78d26e69c32eefece72f | src_trunk/resources/job-system/trucker/c_trucker_job.lua | src_trunk/resources/job-system/trucker/c_trucker_job.lua | local blip
local jobstate = 0
local route = 0
local marker
local colshape
local routescompleted = 0
routes = { }
routes[1] = { 2648.64453125, 846.005859375, 6.1870636940002 }
routes[2] = { 2119.5634765625, 950.6748046875, 10.519774436951 }
routes[3] = { 2372.2021484375, 2548.2451171875, 10.526019096375 }
ro... | local blip
local jobstate = 0
local route = 0
local marker
local colshape
local routescompleted = 0
routes = { }
routes[1] = { 2648.64453125, 846.005859375, 6.1870636940002 }
routes[2] = { 2119.5634765625, 950.6748046875, 10.519774436951 }
routes[3] = { 2372.2021484375, 2548.2451171875, 10.526019096375 }
ro... | Fixed trucker job | Fixed trucker job
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@697 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
5c7d0f9409d53c0dce4ae5f1ee783ce84c26ea38 | Knapsack/Lua/Yonaba/knapsack.lua | Knapsack/Lua/Yonaba/knapsack.lua | -- Knapsack problem algorithm implementation
-- See: http://en.wikipedia.org/wiki/Knapsack_problem
-- Pops value at the head of an array
local function pop(s)
local head = s[1]
table.remove(s, 1)
return head
end
-- Note: the items to be passed should be represented this way
-- items = {
-- {name = 'item_name'... | -- Knapsack problem algorithm implementation
-- See: http://en.wikipedia.org/wiki/Knapsack_problem
-- Pops value at the head of an array
local function pop(s)
local head = s[1]
table.remove(s, 1)
return head
end
-- Note: the items to be passed should be represented this way
-- items = {
-- {name = 'item_name'... | Fixed indentation (tabs to 2-spaces) | Fixed indentation (tabs to 2-spaces)
| Lua | mit | kidaa/Algorithm-Implementations,Endika/Algorithm-Implementations,kennyledet/Algorithm-Implementations,AntonioModer/Algorithm-Implementations,girishramnani/Algorithm-Implementations,n1ghtmare/Algorithm-Implementations,sugiartocokrowibowo/Algorithm-Implementations,warreee/Algorithm-Implementations,jiang42/Algorithm-Imple... |
d19119bb89d91225b3b6bc7fe9d537a05bf6495d | mod_register_json/mod_register_json.lua | mod_register_json/mod_register_json.lua | -- Expose a simple servlet to handle user registrations from web pages
-- via JSON.
--
-- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur
-- aka Zash.
local jid_prep = require "util.jid".prep
local jid_split = require "util.jid".split
local usermanager = require "core.usermanager"
local b64_decode ... | -- Expose a simple servlet to handle user registrations from web pages
-- via JSON.
--
-- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur
-- aka Zash.
local jid_prep = require "util.jid".prep
local jid_split = require "util.jid".split
local usermanager = require "core.usermanager"
local b64_decode ... | mod_register_json: fixed typo, added https/http switch and default value to it. | mod_register_json: fixed typo, added https/http switch and default value to it.
| Lua | mit | drdownload/prosody-modules,asdofindia/prosody-modules,obelisk21/prosody-modules,crunchuser/prosody-modules,apung/prosody-modules,amenophis1er/prosody-modules,jkprg/prosody-modules,brahmi2/prosody-modules,apung/prosody-modules,heysion/prosody-modules,either1/prosody-modules,heysion/prosody-modules,vfedoroff/prosody-modu... |
216ccfd52cb0f0ef3c2f9135bc198fd6ab7cfb0d | mods/00_bt_mobs/mobs_animal/penguin.lua | mods/00_bt_mobs/mobs_animal/penguin.lua |
local S = mobs.intllib
-- Penguin by D00Med
mobs:register_mob("mobs_animal:penguin", {
type = "animal",
passive = true,
reach = 1,
hp_min = 5,
hp_max = 10,
armor = 200,
collisionbox = {-0.2, -0.0, -0.2, 0.2, 0.5, 0.2},
visual = "mesh",
mesh = "mobs_penguin.b3d",
visual_size = {x = 0.25, y = 0.25},
textu... |
local S = mobs.intllib
-- Penguin by D00Med
mobs:register_mob("mobs_animal:penguin", {
type = "animal",
passive = true,
reach = 1,
hp_min = 5,
hp_max = 10,
armor = 200,
collisionbox = {-0.2, -0.0, -0.2, 0.2, 0.5, 0.2},
visual = "mesh",
mesh = "mobs_penguin.b3d",
visual_size = {x = 0.25, y = 0.25},
textu... | Fixed pengiuns to now follow fishing mod fish instead of ethereal | Fixed pengiuns to now follow fishing mod fish instead of ethereal
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
837036f51eda102e4d5e33f677f6a928ba328c4a | lib/resty/kafka/broker.lua | lib/resty/kafka/broker.lua | -- Copyright (C) Dejiang Zhu(doujiang24)
local response = require "resty.kafka.response"
local to_int32 = response.to_int32
local setmetatable = setmetatable
local tcp = ngx.socket.tcp
local _M = { _VERSION = "0.01" }
local mt = { __index = _M }
function _M.new(self, host, port, socket_config)
return setmet... | -- Copyright (C) Dejiang Zhu(doujiang24)
local response = require "resty.kafka.response"
local to_int32 = response.to_int32
local setmetatable = setmetatable
local tcp = ngx.socket.tcp
local _M = { _VERSION = "0.01" }
local mt = { __index = _M }
function _M.new(self, host, port, socket_config)
return setmet... | bugfix: should settimeout before connect | bugfix: should settimeout before connect
| Lua | bsd-3-clause | doujiang24/lua-resty-kafka,wzb56/lua-resty-kafka,wangfakang/lua-resty-kafka |
71e37fa5df286eb189fd1c2ae87089cb355fb25e | lua/decoders/json_decoder.lua | lua/decoders/json_decoder.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/.
--[[
Parses a payload containing JSON. Does not modify any Heka message
attributes, only adds to the `Fields`.
Conf... | -- 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/.
--[[
Parses a payload containing JSON. Does not modify any Heka message
attributes, only adds to the `Fields`.
Conf... | modify payload, also fix nested objects | modify payload, also fix nested objects
| Lua | apache-2.0 | wxdublin/heka-clever-plugins |
ffda2bd2587543f7083740713a3083b9922dd991 | lua/entities/gmod_wire_turret.lua | lua/entities/gmod_wire_turret.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Turret"
ENT.WireDebugName = "Turret"
if ( CLIENT ) then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:DrawShadow( ... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Turret"
ENT.WireDebugName = "Turret"
if ( CLIENT ) then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:DrawShadow( ... | Fix turret shoot positions (#2172) | Fix turret shoot positions (#2172)
| Lua | apache-2.0 | wiremod/wire,dvdvideo1234/wire,Grocel/wire |
7d4c61f1e335adf2d58c3b537d3ecdbc0156ab07 | spec/unit/statics_spec.lua | spec/unit/statics_spec.lua | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local IO = require "kong.tools.io"
local fs = require "luarocks.fs"
describe("Static files", function()
describe("Constants", function()
it("version set in constants should match the one i... | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local IO = require "kong.tools.io"
local fs = require "luarocks.fs"
describe("Static files", function()
describe("Constants", function()
it("version set in constants should match the one i... | fix(tests) fix config test broken because of #580 | fix(tests) fix config test broken because of #580
| Lua | apache-2.0 | Mashape/kong,jebenexer/kong,akh00/kong,shiprabehera/kong,Kong/kong,jerizm/kong,icyxp/kong,Kong/kong,beauli/kong,Vermeille/kong,smanolache/kong,li-wl/kong,salazar/kong,xvaara/kong,ajayk/kong,ccyphers/kong,Kong/kong |
36854c14c128140cff0705cf86604f598757b5e1 | xmake.lua | xmake.lua | -- project
set_project("tbox")
-- set xmake minimum version
set_xmakever("2.5.1")
-- set project version
set_version("1.6.6", {build = "%Y%m%d%H%M"})
-- set warning all as error
set_warnings("all", "error")
-- set language: c99
stdc = "c99"
set_languages(stdc)
-- add defines to config.h
set_configvar("_GNU_SOURCE"... | -- project
set_project("tbox")
-- set xmake minimum version
set_xmakever("2.5.1")
-- set project version
set_version("1.6.6", {build = "%Y%m%d%H%M"})
-- set warning all as error
set_warnings("all", "error")
-- set language: c99
stdc = "c99"
set_languages(stdc)
-- add defines to config.h
set_configvar("_GNU_SOURCE"... | fix coroutine crash on windows/lto | fix coroutine crash on windows/lto | Lua | apache-2.0 | tboox/tbox,tboox/tbox,waruqi/tbox,waruqi/tbox |
10bb7ba540d8f7bad309ede646f901cdc2969683 | examples/lua/x20.lua | examples/lua/x20.lua | --[[ $Id$
plimage demo
--]]
-- initialise Lua bindings for PLplot examples.
dofile("plplot_examples.lua")
XDIM = 260
YDIM = 220
dbg = 0
nosombrero = 0
nointeractive = 0
f_name=""
-- Transformation function
function mypltr(x, y)
local x0 = (stretch["xmin"] + stretch["xmax"])*0.5
local y0 = (stretch["ymin"] ... | --[[ $Id$
plimage demo
--]]
-- initialise Lua bindings for PLplot examples.
dofile("plplot_examples.lua")
XDIM = 260
YDIM = 220
dbg = 0
nosombrero = 0
nointeractive = 0
f_name=""
-- Transformation function
function mypltr(x, y)
local x0 = (stretch["xmin"] + stretch["xmax"])*0.5
local y0 = (stretch["ymin"] ... | Fixes a problem for Lua 5.0. | Fixes a problem for Lua 5.0.
svn path=/trunk/; revision=9534
| Lua | lgpl-2.1 | FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot |
846a3cfff907e7f533498db62bafa2fc96a37606 | xmake/modules/detect/sdks/find_intel.lua | xmake/modules/detect/sdks/find_intel.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix bin path for icl/ia32 | fix bin path for icl/ia32
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
4e657e962e6edefc9351779342065b10b156d73e | src/cosy/loader/js.lua | src/cosy/loader/js.lua | if #setmetatable ({}, { __len = function () return 1 end }) ~= 1
then
error "Cosy requires Lua >= 5.2 to run."
end
return function (options)
options = options or {}
local loader = {}
for k, v in pairs (options) do
loader [k] = v
end
local global = _G or _ENV
loader.home = "/"
loader.prefix ... | if #setmetatable ({}, { __len = function () return 1 end }) ~= 1
then
error "Cosy requires Lua >= 5.2 to run."
end
return function (options)
options = options or {}
local loader = {}
for k, v in pairs (options) do
loader [k] = v
end
local global = _G or _ENV
loader.home = "/"
loader.prefix ... | Fix js scheduler. | Fix js scheduler.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
45e1b8c0d7e339244dce4d81e49a8414f5ae1316 | 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'
local spy -- must make local before defining table, because table contents refers to the table (recursion)
spy = {
new = function(self, callback)
... | -- module will return spy table, and register its assertions with the main assert engine
local assert = require('luassert.assert')
local util = require 'luassert.util'
local spy -- must make local before defining table, because table contents refers to the table (recursion)
spy = {
new = function(self, callback)
... | Fixed the spies, final tests failing on previous changes. Now only the actual bad error message test still fails. | Fixed the spies, final tests failing on previous changes. Now only the actual bad error message test still fails.
| Lua | mit | tst2005/lua-luassert,o-lim/luassert,mpeterv/luassert,ZyX-I/luassert |
543b917d1af8aac3d6fd9780061814f3735afcb9 | mod_listusers/mod_listusers.lua | mod_listusers/mod_listusers.lua | function module.command(args)
local action = table.remove(args, 1);
if not action then -- Default, list registered users
local data_path = CFG_DATADIR or "data";
if not pcall(require, "luarocks.loader") then
pcall(require, "luarocks.require");
end
local lfs = require "lfs";
function decode... | function module.command(args)
local action = table.remove(args, 1);
if not action then -- Default, list registered users
local data_path = CFG_DATADIR or "data";
if not pcall(require, "luarocks.loader") then
pcall(require, "luarocks.require");
end
local lfs = require "lfs";
function decode... | mod_listusers: fixed banner skipping cycle | mod_listusers: fixed banner skipping cycle
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
060a8628cebe4096914c100e297946c65eb6b606 | resources/prosody-plugins/mod_token_verification.lua | resources/prosody-plugins/mod_token_verification.lua | -- Token authentication
-- Copyright (C) 2015 Atlassian
local log = module._log;
local host = module.host;
local st = require "util.stanza";
local is_admin = require "core.usermanager".is_admin;
local parentHostName = string.gmatch(tostring(host), "%w+.(%w.+)")();
if parentHostName == nil then
log("error", "Failed ... | -- Token authentication
-- Copyright (C) 2015 Atlassian
local log = module._log;
local host = module.host;
local st = require "util.stanza";
local um_is_admin = require "core.usermanager".is_admin;
local function is_admin(jid)
return um_is_admin(jid, host);
end
local parentHostName = string.gmatch(tostring(host... | fixed admin check for token verification | fixed admin check for token verification
| Lua | apache-2.0 | gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet |
54b99c92654c9613d8847707147db9ea207a3b1a | test/benchmark-ping-pongs.lua | test/benchmark-ping-pongs.lua | local uv = require 'couv'
local MSG = "PING\n"
local startTime = uv.hrtime()
function exitCb(process, exitStatus, termSignal)
uv.close(process)
end
uv.spawn{args={uv.exepath(), 'examples/tcp-echo-server.lua'},
flags=uv.PROCESS_DETACHED,
exitCb=exitCb}
coroutine.wrap(function()
local handle = uv.tcp_crea... | local uv = require 'couv'
local MSG = "PING\n"
local startTime = uv.hrtime()
function exitCb(process, exitStatus, termSignal)
uv.close(process)
end
local process = uv.spawn{args={uv.exepath(), 'examples/tcp-echo-server.lua'},
flags=uv.PROCESS_DETACHED,
exitCb=exitCb}
function timerCb()
coroutine.wrap(fu... | Fix benchmark-ping-pongs to work on OSX too. | Fix benchmark-ping-pongs to work on OSX too.
| Lua | mit | hnakamur/couv,hnakamur/couv |
b62337fdc3651478fb67f86fd3f3a2cf62db0d33 | src/cosy/configuration.lua | src/cosy/configuration.lua | local loader = require "cosy.loader"
local Value = loader.value
local Logger = loader.logger
local Repository = loader.repository
local repository = Repository.new ()
Repository.options (repository).create = function () return {} end
Repository.options (repository).import = function () return {} end
rep... | local loader = require "cosy.loader"
local Logger = loader.logger
local Repository = loader.repository
local repository = Repository.new ()
Repository.options (repository).create = function () return {} end
Repository.options (repository).import = function () return {} end
repository.internal = {
locale = ... | Fix warnings. | Fix warnings.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
647cbac0c60847bd89eaa8de82de4a91713d9d49 | mod_smacks/mod_smacks.lua | mod_smacks/mod_smacks.lua | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmlns_sm };
local max_unacked_stanzas =... | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmlns_sm };
local max_unacked_stanzas =... | mod_smacks: Fix to reply to stream for s2s sessions | mod_smacks: Fix to reply to stream for s2s sessions
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
1f0fc79359bc5fa1043119ef1caa62b2bd7ecb8b | src/lua/xml.lua | src/lua/xml.lua | -- © 2013 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local coroutine_yield = coroutine.yield
local coroutine_wrap = coroutine.wrap
local writeu8 = wg.writeu8
--- Tokenises XML.
-- Given an XML string, this function returns... | -- © 2013 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local coroutine_yield = coroutine.yield
local coroutine_wrap = coroutine.wrap
local writeu8 = wg.writeu8
local string_find = string.find
local function cowcopy(t)
retur... | Improved the XML parsing performance no end by fixing some hideous bugs. | Improved the XML parsing performance no end by fixing some hideous bugs.
| Lua | mit | rodoviario/wordgrinder,NRauh/wordgrinder,rodoviario/wordgrinder,NRauh/wordgrinder,Munchotaur/wordgrinder,Munchotaur/wordgrinder |
3fa4087fe23f055694c7dce2e0c1e46daba667bd | platform/android/llapp_main.lua | platform/android/llapp_main.lua | local android = require("android")
android.dl.library_path = android.dl.library_path .. ":" .. android.dir .. "/libs"
local ffi = require("ffi")
local dummy = require("ffi/posix_h")
local C = ffi.C
-- check uri of the intent that starts this application
local file = android.getIntent()
if file ~= nil then
androi... | local android = require("android")
android.dl.library_path = android.dl.library_path .. ":" .. android.dir .. "/libs"
local ffi = require("ffi")
local dummy = require("ffi/posix_h")
local C = ffi.C
-- check uri of the intent that starts this application
local file = android.getIntent()
if file ~= nil then
androi... | [fix, Android] Set executable bit (#5349) | [fix, Android] Set executable bit (#5349)
Partially reverts d2536d8b7e9474bd7748b199d1f01a53f332942a.
Fixes <https://github.com/koreader/koreader/issues/5347>. | Lua | agpl-3.0 | Markismus/koreader,NiLuJe/koreader,pazos/koreader,Hzj-jie/koreader,mihailim/koreader,Frenzie/koreader,mwoz123/koreader,koreader/koreader,poire-z/koreader,Frenzie/koreader,koreader/koreader,NiLuJe/koreader,poire-z/koreader |
603510d2266ad5584c2247049babdcc429c72a48 | Modules/Geometry/TouchingParts/PartTouchingCalculator.lua | Modules/Geometry/TouchingParts/PartTouchingCalculator.lua | --- Determines if parts are touching or not
-- @classmod PartTouchingCalculator
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CollectionService = game:GetService("CollectionService")
local Workspace = game:GetService("Workspace")
local BoundingBox = require("BoundingBo... | --- Determines if parts are touching or not
-- @classmod PartTouchingCalculator
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CollectionService = game:GetService("CollectionService")
local Workspace = game:GetService("Workspace")
local BoundingBox = require("BoundingBo... | Fix CheckIfTouchingHumanoid | Fix CheckIfTouchingHumanoid
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
540c7050ee8b480875b60869a58bb2ae0d4d427d | units.tests.lua | units.tests.lua | require "tundra.syntax.glob"
require "tundra.path"
require "tundra.util"
-----------------------------------------------------------------------------------------------------------------------
local function Test(params)
Program {
Name = params.Name,
Env = {
CPPPATH = {
"api/include",
"src/extern... | require "tundra.syntax.glob"
require "tundra.path"
require "tundra.util"
-----------------------------------------------------------------------------------------------------------------------
local function Test(params)
Program {
Name = params.Name,
Env = {
CPPPATH = {
"api/include",
"src/extern... | Fixed link errors in dbgeng_test | Fixed link errors in dbgeng_test
| Lua | mit | emoon/ProDBG,v3n/ProDBG,kondrak/ProDBG,ashemedai/ProDBG,SlNPacifist/ProDBG,v3n/ProDBG,v3n/ProDBG,v3n/ProDBG,RobertoMalatesta/ProDBG,kondrak/ProDBG,SlNPacifist/ProDBG,emoon/ProDBG,ashemedai/ProDBG,v3n/ProDBG,SlNPacifist/ProDBG,RobertoMalatesta/ProDBG,SlNPacifist/ProDBG,RobertoMalatesta/ProDBG,kondrak/ProDBG,ashemedai/Pr... |
8b7a4994717eca80d1ea0e11680ad295e9b6e6bd | plugins/lua/init.lua | plugins/lua/init.lua | ENV = {}
require "superstring"
local tostring = require "stostring"
local scall = require "scall"
EOF = "\x00"
HEADERSTART = '['
HEADEREND = ']'
writepacket = io.write
-- Redefine io.write/print to save output to a per-user buffer for PMs.
-- See g_write in liolib.c
local stdo... | ENV = {}
require "superstring"
local tostring = require "stostring"
local scall = require "scall"
EOF = "\x00"
HEADERSTART = '['
HEADEREND = ']'
writepacket = io.write
-- Redefine io.write/print to save output to a per-user buffer for PMs.
-- See g_write in liolib.c
local stdo... | Set the RNG seed for each run through scall/pcall | Set the RNG seed for each run through scall/pcall
valve pls fix | Lua | cc0-1.0 | meepdarknessmeep/hash.js,SwadicalRag/hash.js |
f4dcf9befb2d7c2ebd60a4f5b2200f283e61c50b | home/config/nvim/lua/plugins/nvim-lspconfig.lua | home/config/nvim/lua/plugins/nvim-lspconfig.lua | local wk = require('which-key')
local lspinstaller = require('nvim-lsp-installer')
local lspconfig = require('lspconfig')
local illum = require('illuminate')
local aerial = require('aerial')
local lsp = vim.lsp
local diag = vim.diagnostic
wk.register(
{
l = {
name = 'LSP',
a = { '<Cmd>AerialToggle<Cr... | local wk = require('which-key')
local lspinstaller = require('nvim-lsp-installer')
local lspconfig = require('lspconfig')
local illum = require('illuminate')
local aerial = require('aerial')
local lsp = vim.lsp
local diag = vim.diagnostic
wk.register(
{
l = {
name = 'LSP',
a = { '<Cmd>AerialToggle<Cr... | fix(nvim): disable formatting using new 0.8 api | fix(nvim): disable formatting using new 0.8 api
| Lua | unlicense | knpwrs/dotfiles |
6bedf02d3de1913f91dc0cb2c80eed056ddc226f | test_scripts/RC/SetInteriorVehicleData/011_Cut-off_read-only_parameters_in_case_request_with_read-only_and_not_read-only_parameters.lua | test_scripts/RC/SetInteriorVehicleData/011_Cut-off_read-only_parameters_in_case_request_with_read-only_and_not_read-only_parameters.lua | ---------------------------------------------------------------------------------------------------
-- Description
-- In case:
-- 1) Application sends valid SetInteriorVehicleData with read-only parameters
-- 2) and one or more settable parameters in "radioControlData" struct, for moduleType: RADIO,
-- SDL must:
-- 1) ... | ---------------------------------------------------------------------------------------------------
-- Description
-- In case:
-- 1) Application sends valid SetInteriorVehicleData with read-only parameters
-- 2) and one or more settable parameters in "radioControlData" struct, for moduleType: RADIO,
-- SDL must:
-- 1) ... | SetInteriorVehicleData: fix issues in script | SetInteriorVehicleData: fix issues in script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
4df92ab81ab3e6fa7e9070ea6a8a18b84fc2e20d | config/init.lua | config/init.lua | -- Lua configration file for way-cooler. Ran at startup and when restarted.
-- Programs that Way Cooler can run
way_cooler.programs = {
-- Name of the window that will be the bar window.
-- This is a hack to get X11 bars and non-Way Cooler supported bars working.
--
-- Make sure you set your bar program to spa... | -- Lua configration file for way-cooler. Ran at startup and when restarted.
-- Programs that Way Cooler can run
way_cooler.programs = {
-- Name of the window that will be the bar window.
-- This is a hack to get X11 bars and non-Way Cooler supported bars working.
--
-- Make sure you set your bar program to spa... | Fixed accidental bad rebase | Fixed accidental bad rebase
| Lua | mit | Immington-Industries/way-cooler,way-cooler/way-cooler,way-cooler/way-cooler,Immington-Industries/way-cooler,way-cooler/way-cooler,Immington-Industries/way-cooler |
07fb7c841c98a9cb2858f4dd046a4eabc279606f | cgi-bin/highscore.lua | cgi-bin/highscore.lua | #!/usr/bin/env lua
local json = require("dkjson")
local config = require("config")
function template(body, title)
local template = [===[Content-type: text/html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | #!/usr/bin/env lua
local json = require("dkjson")
local config = require("config")
function template(body, title)
-- TODO: Make sure here are no pattern-characters!
local body = tostring(body):gsub("%%", "%%%%")
local title = tostring(title):gsub("%%", "%%%%")
local template = [===[Content-type: text/html
... | Fixed bug in template system | Fixed bug in template system
| Lua | mit | max1220/balloons,max1220/balloons,max1220/balloons |
c81ca8dae3e914b41b754e1cdc7cad3aeead9e66 | applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua | applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local has_ipv6 = fs.access("/proc/net/ipv6_route")
m = Map("ocserv", translate("OpenConnect VPN"))
s = m:section(TypedSection, "ocserv", "OpenConnect")
s.ano... | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local has_ipv6 = fs.access("/proc/net/ipv6_route")
m = Map("ocserv", translate("OpenConnect VPN"))
s = m:section(TypedSection, "ocserv", "OpenConnect")
s.ano... | ocserv: fix the public key ID calculation | ocserv: fix the public key ID calculation
New versions of certtool change its output format and thus break
the previous parsing. This update works with certtool 3.5.x or later.
It also restricts the output to valid values for openconnect 7.x or
later for simplification.
Signed-off-by: Nikos Mavrogiannopoulos <df6e1a4... | Lua | apache-2.0 | lbthomsen/openwrt-luci,tobiaswaldvogel/luci,hnyman/luci,lbthomsen/openwrt-luci,hnyman/luci,lbthomsen/openwrt-luci,openwrt/luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,hnyman/luci,tobiaswaldvogel/luci,rogerpueyo/luci,rogerpueyo/luci,openwrt/luci,hnyman/luci,rogerpueyo/luci,rogerpueyo/luci,hnyman/luci,openwrt/luci,ro... |
fcde0d9d52caee19bf7a101b896fb41328e48eb2 | lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/task-scheduler_1.0.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/task-scheduler_1.0.lua | print("LabJack Lua Task Scheduler Example. Version 1.0")
-- Requires Firmware 1.0199 or higher (for T7)
-- This script demonstrates a simple task scheduler used to execute multiple tasks
-- at regular intervals to 1ms resolution.
-- Note: Increase scheduler resolution to reduce CPU load on the T7 processor.
-- Directi... | --[[
Name: task-scheduler_1.0.lua
Desc: This script demonstrates a simple task scheduler used to execute
multiple tasks at regular intervals to 1ms resolution
Note: Requires Firmware 1.0199 or higher (for T7)
Increase scheduler resolution to reduce CPU load on the T7 processor
--]]
pri... | Fixed up the formatting of the task scheduler example | Fixed up the formatting of the task scheduler example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
61372e1e253daa78084909dcc3fa190bf3a74772 | kong/plugins/acl/migrations/003_200_to_210.lua | kong/plugins/acl/migrations/003_200_to_210.lua | local operations = require "kong.db.migrations.operations.200_to_210"
local plugin_entities = {
{
name = "acls",
primary_key = "id",
uniques = {},
fks = {{name = "consumer", reference = "consumers", on_delete = "cascade"}},
}
}
local function ws_migration_up(ops)
return ops:ws_adjust_fields(pl... | local operations = require "kong.db.migrations.operations.200_to_210"
local plugin_entities = {
{
name = "acls",
primary_key = "id",
uniques = {},
cache_key = { "consumer", "group" },
fks = {{name = "consumer", reference = "consumers", on_delete = "cascade"}},
}
}
local function ws_migration... | fix(migrations) acl migrations did not specify cache_key | fix(migrations) acl migrations did not specify cache_key
### Summary
This fixes ACLs migrations by telling migration function about the composite
cache key that need to be updated with workspace.
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
7ea1a4b995d6dd5410cc9b0637b6d7a4324cd638 | OS/DiskOS/Libraries/parser/languages/lua.lua | OS/DiskOS/Libraries/parser/languages/lua.lua | local keywords = {
"and", "break", "do", "else", "elseif",
"end", "false", "for", "function", "if",
"in", "local", "nil", "not", "or",
"repeat", "return", "then", "true", "until", "while"
}
local api = getAPI()
local callbacks = {"_draw","_init","_keypressed","_keyreleased","_mousemoved","_mousepressed"... | local keywords = {
"and", "break", "do", "else", "elseif",
"end", "false", "for", "function", "if",
"in", "local", "nil", "not", "or",
"repeat", "return", "then", "true", "until", "while"
}
local api = getAPI()
local callbacks = {"_draw","_init","_keypressed","_keyreleased","_mousemoved","_mousepressed"... | Fix syntax parsing | Fix syntax parsing
Fix a bug in the string parser where the opening quotation marks are
included in the first token returned.
| Lua | mit | RamiLego4Game/LIKO-12 |
2a29fd6c0ce846a6456b40a2882eec290bc20bd4 | agents/monitoring/default/check/disk.lua | agents/monitoring/default/check/disk.lua | --[[
Copyright 2012 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 2012 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... | fixes: remove snaptime metric | fixes: remove snaptime metric
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
0023bd375b2d1a2a240c7667cd95b8cc20698ac7 | mod_auth_external/mod_auth_external.lua | mod_auth_external/mod_auth_external.lua | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local lpt... | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local lpt... | mod_auth_external: Fix logging of errors | mod_auth_external: Fix logging of errors
| Lua | mit | syntafin/prosody-modules,brahmi2/prosody-modules,either1/prosody-modules,cryptotoad/prosody-modules,obelisk21/prosody-modules,BurmistrovJ/prosody-modules,1st8/prosody-modules,asdofindia/prosody-modules,guilhem/prosody-modules,obelisk21/prosody-modules,either1/prosody-modules,jkprg/prosody-modules,LanceJenkinZA/prosody-... |
2852e64fe91134e307908c9245210115b07b2e70 | src/luarocks/add.lua | src/luarocks/add.lua |
--- Module implementing the luarocks-admin "add" command.
-- Adds a rock or rockspec to a rocks server.
module("luarocks.add", package.seeall)
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
local fetch = require("luarocks.fetch")
local dir = require("luarocks.dir")
local manif = require("lu... |
--- Module implementing the luarocks-admin "add" command.
-- Adds a rock or rockspec to a rocks server.
module("luarocks.add", package.seeall)
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
local fetch = require("luarocks.fetch")
local dir = require("luarocks.dir")
local manif = require("lu... | fix use of relative paths | fix use of relative paths
git-svn-id: b90ab2797f6146e3ba3e3d8b20782c4c2887e809@50 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
| Lua | mit | tst2005/luarocks,starius/luarocks,starius/luarocks,xpol/luainstaller,xiaq/luarocks,xpol/luarocks,aryajur/luarocks,lxbgit/luarocks,starius/luarocks,lxbgit/luarocks,keplerproject/luarocks,tarantool/luarocks,xpol/luainstaller,aryajur/luarocks,tst2005/luarocks,ignacio/luarocks,xpol/luavm,coderstudy/luarocks,xpol/luavm,igna... |
a5cbe9808b73158fcc182db040dd98383f2c38a9 | libs/uvl/luasrc/uvl/errors.lua | libs/uvl/luasrc/uvl/errors.lua | --[[
UCI Validation Layer - Error handling
(c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | --[[
UCI Validation Layer - Error handling
(c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | libs/uvl: fix i18n handling for errors | libs/uvl: fix i18n handling for errors
| Lua | apache-2.0 | 8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci |
ef25d483c8776d115089f9bb84ed5f7a2b8c0630 | test_scripts/Polices/build_options/037_ATF_P_TC_PTU_Changes_Applied_OnPermissionChange_Notification_App_HTTP.lua | test_scripts/Polices/build_options/037_ATF_P_TC_PTU_Changes_Applied_OnPermissionChange_Notification_App_HTTP.lua | -- Requirement summary:
-- [PolicyTableUpdate] Apply PTU changes and OnPermissionChange notifying the apps
--
-- Description:
-- Right after the PoliciesManager merges the UpdatedPT with Local PT, it must apply the changes
-- and send onPermissionChange() notification to any registered mobile app in case the Updated PT... | -- Requirement summary:
-- [PolicyTableUpdate] Apply PTU changes and OnPermissionChange notifying the apps
--
-- Description:
-- Right after the PoliciesManager merges the UpdatedPT with Local PT, it must apply the changes
-- and send onPermissionChange() notification to any registered mobile app in case the Updated PT... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
1fac478b4f8617fcce3de9501c1397df01affddd | tundra.lua | tundra.lua |
-----------------------------------------------------------------------------------------------------------------------
local mac_opts = {
"-Wall",
"-Wno-switch-enum",
"-I.", "-DPRODBG_MAC",
"-Weverything", "-Werror",
"-Wno-unknown-warning-option",
"-Wno-c11-extensions",
"-Wno-variadic-mac... |
-----------------------------------------------------------------------------------------------------------------------
local mac_opts = {
"-Wall",
"-Wno-switch-enum",
"-I.", "-DPRODBG_MAC",
"-Weverything", "-Werror",
"-Wno-unknown-warning-option",
"-Wno-c11-extensions",
"-Wno-variadic-mac... | Fix compile issues due to clang support for msvc compilation | Fix compile issues due to clang support for msvc compilation
| Lua | mit | v3n/ProDBG,v3n/ProDBG,v3n/ProDBG,v3n/ProDBG,v3n/ProDBG,v3n/ProDBG |
67da133916d51cecbebd7b46b2947fc8ea1a71f2 | loader/DataLoader.lua | loader/DataLoader.lua | require 'paths'
require 'image'
require 'hdf5'
local DataLoader = torch.class('DataLoader')
require 'loader.utils'
function DataLoader:__init(dataTrain, dataVal, opts)
self.batchSize = opts.batchSize
self.mismatchFreq = opts.mismatchFreq -- percent of time a misaligned image should be presented
self.dataTrain =... | require 'paths'
require 'image'
require 'hdf5'
local DataLoader = torch.class('DataLoader')
require 'loader.utils'
function DataLoader:__init(dataTrain, dataVal, opts)
self.batchSize = opts.batchSize
self.mismatchFreq = opts.mismatchFreq -- percent of time a misaligned image should be presented
self.dataTrain =... | Fix HDF5 error | Fix HDF5 error
An issue was reported describing a possible malfunction of HDF5: https://github.com/torralba-lab/im2recipe/issues/5
This malfunction could be caused by the fact that each data loading threads open the hdf5 data file `data/data.h5` and close it each time `DataLoader:makebatch` is called.
Notice that for ... | Lua | mit | torralba-lab/im2recipe |
05c6f1d6e1dda227bd999a04d171ccdfe1e6a7df | modules/rroulette.lua | modules/rroulette.lua | local rr = ivar2.persist
if(not ivar2.timers) then ivar2.timers = {} end
local getBullet = function(n)
return n % 10
end
local getChamber = function(n)
return (n - getBullet(n)) / 10 % 10
end
return {
PRIVMSG = {
['^%prr$'] = function(self, source, destination)
local nick = source.nick
if(not rr['rr:'..... | local rr = ivar2.persist
local getBullet = function(n)
return n % 10
end
local getChamber = function(n)
return (n - getBullet(n)) / 10 % 10
end
return {
PRIVMSG = {
['^%prr$'] = function(self, source, destination)
local nick = source.nick
if(not rr['rr:'..destination]) then
rr['rr:'..destination] = 6... | rroulette: fix variables usage | rroulette: fix variables usage
| Lua | mit | torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2 |
db6569b284990840925ebe0e2e42f460f4776bf1 | src/achievements.lua | src/achievements.lua | local AchievementTracker = {}
AchievementTracker.__index = AchievementTracker
trophies = {
'adorable' = {
'headline' = "Aww, we're adorable",
'description' = "Start a new game",
'icon' = nil
},
"oh cool I'm alive" = {
'headline' = "Oh cool, I'm alive!",
'description'... | local AchievementTracker = {}
AchievementTracker.__index = AchievementTracker
trophies = {
["adorable"]={
["headline"]="Aww, we're adorable",
["description"]="Start a new game",
["icon"]=nil
},
["oh cool I'm alive"]={
["headline"]="Oh cool, I'm alive!",
["description... | #221 Some fixes for achievements.lua | #221 Some fixes for achievements.lua
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua |
375ab8436c368951d10c7d6e193efb14606a1421 | lua/framework/mouse.lua | lua/framework/mouse.lua | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
local ffi = require( "ffi" )
local SDL = require( "sdl" )
local framework = framework
module( "framework.mouse" )
function getPosition()... | --=========== Copyright © 2018, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
local ffi = require( "ffi" )
local SDL = require( "sdl" )
local framework = framework
module( "framework.mouse" )
function getPosition()... | Fix typo | Fix typo
| Lua | mit | Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework |
a01ffdb144743222e643926021db19b5c16bdb27 | premake5.lua | premake5.lua | local sep = "/"
local ext = ""
local copyFix = ""
if os.ishost("windows") then
sep = "\\"
ext = ".exe"
copyFix = "*"
end
cwd = os.getcwd()
-- Workspace definition.
workspace("Rendu")
-- Configurations
configurations({ "Debug", "Release"})
location("build")
targetdir ("build/%{prj.name}/%{cfg.longname}")
debug... | local sep = "/"
local ext = ""
local copyFix = ""
if os.ishost("windows") then
sep = "\\"
ext = ".exe"
copyFix = "*"
end
cwd = os.getcwd()
-- Workspace definition.
workspace("Rendu")
-- Configurations
configurations({ "Release", "Dev"})
location("build")
targetdir ("build/%{prj.name}/%{cfg.longname}")
debugdi... | Premake: fix for default project, configuration and SDK. | Premake: fix for default project, configuration and SDK.
Former-commit-id: 4d5f5e030e08e2bea96c645d6025bdce456e3d51 | Lua | mit | kosua20/GL_Template,kosua20/GL_Template |
0f0901159b2e279bb30c4f565f675f2fcc557390 | cabook.lua | cabook.lua | local book = SILE.require("classes/book")
local plain = SILE.require("classes/plain")
local cabook = book { id = "cabook" }
cabook:declareOption("crop", "true")
cabook:declareOption("background", "true")
cabook:declareOption("verseindex", "false")
cabook:loadPackage("verseindex", CASILE.casiledir)
cabook.endPage = f... | local book = SILE.require("classes/book")
local plain = SILE.require("classes/plain")
local cabook = book { id = "cabook" }
cabook:declareOption("crop", "true")
cabook:declareOption("background", "true")
cabook:declareOption("verseindex", "false")
cabook:loadPackage("verseindex", CASILE.casiledir)
cabook.endPage = f... | Fix option handaling so TOV actually builds | Fix option handaling so TOV actually builds
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
dcb5f4d9ff26916f499d04c6d77da3a541150d2f | src/extensions/cp/apple/finalcutpro/browser/Columns.lua | src/extensions/cp/apple/finalcutpro/browser/Columns.lua | --- === cp.apple.finalcutpro.browser.Columns ===
---
--- Final Cut Pro Browser List View Columns
local require = require
--local log = require("hs.logger").new("Columns")
local ax = require("hs._asm.axuielement")
local geometry = require("hs.geometry")
... | --- === cp.apple.finalcutpro.browser.Columns ===
---
--- Final Cut Pro Browser List View Columns
local require = require
--local log = require("hs.logger").new("Columns")
local ax = require("hs._asm.axuielement")
local geometry = require("hs.geometry")
... | #1701 | #1701
- Fixes a bug that still exists in
`cp.apple.finalcutpro.browser.Columns:show()`
- Closes #1701
| Lua | mit | CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
5fe4ded673a2bc38f5019ce2a647863353355282 | mods/food/food/init.lua | mods/food/food/init.lua | -- FOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> food/api.lua
-- The supporting api for the mod
-- =====================================
food = {
modules = {},
disabled_modules = {},
debug = false,
version = 2.3
}
-- Checks for extern... | -- FOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> food/api.lua
-- The supporting api for the mod
-- =====================================
food = {
modules = {},
disabled_modules = {},
debug = false,
version = 2.3
}
-- Checks for extern... | Fix [food] crashing when damage is disabled (hbhunger not loading) | Fix [food] crashing when damage is disabled (hbhunger not loading)
| Lua | unlicense | LeMagnesium/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,Coethium/server-minetes... |
fbfc43fc63fb1b05ab453bec468a753c4b4481b2 | mods/sprint/esprint.lua | mods/sprint/esprint.lua | --[[
Sprint mod for Minetest by GunshipPenguin
To the extent possible under law, the author(s)
have dedicated all copyright and related and neighboring rights
to this software to the public domain worldwide. This software is
distributed without any warranty.
]]
sprint.players = {}
local staminaHud = {}
-- Lil' helpi... | --[[
Sprint mod for Minetest by GunshipPenguin
To the extent possible under law, the author(s)
have dedicated all copyright and related and neighboring rights
to this software to the public domain worldwide. This software is
distributed without any warranty.
]]
sprint.players = {}
local staminaHud = {}
-- Lil' helpi... | [sprint] Fix method name and stamina HUD bar max_value change | [sprint] Fix method name and stamina HUD bar max_value change
| Lua | unlicense | paly2/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,sys4-fr/server-minetes... |
b994f779869287930c5ccb1065b8154283a0dc74 | make-runtime.lua | make-runtime.lua | local lm = require "luamake"
local platform = require "bee.platform"
lm.gcc = 'clang'
lm.gxx = 'clang++'
lm.arch = ARGUMENTS.arch or 'x64'
lm.bindir = ("build/%s/bin/%s"):format(lm.plat, lm.arch)
lm.objdir = ("build/%s/obj/%s"):format(lm.plat, lm.arch)
local BUILD_BIN = platform.OS ~= "Windows" or lm.arch == "x86"
... | local lm = require "luamake"
local platform = require "bee.platform"
lm.gcc = 'clang'
lm.gxx = 'clang++'
lm.arch = ARGUMENTS.arch or 'x64'
lm.bindir = ("build/%s/bin/%s"):format(lm.plat, lm.arch)
lm.objdir = ("build/%s/obj/%s"):format(lm.plat, lm.arch)
local BUILD_BIN = platform.OS ~= "Windows" or lm.arch == "x86"
... | Fixed #74 | Fixed #74
| Lua | mit | actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug |
5481c41e01c52fd55336c713bd530dbcd1c92a40 | lua/plugins/lsp.lua | lua/plugins/lsp.lua | local nvim = require('nvim')
local plugs = require('nvim').plugs
local executable = require('nvim').fn.executable
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
local nvim_set_command = require('nvim').nvim_set_command
local ok, lsp = pcall(require, 'nvim_lsp')
if not ok then
return nil
end
local serv... | local nvim = require('nvim')
local plugs = require('nvim').plugs
local executable = require('nvim').fn.executable
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
local nvim_set_command = require('nvim').nvim_set_command
local ok, lsp = pcall(require, 'nvim_lsp')
if not ok then
return nil
end
local serv... | fix: Made some lsp config fixes | fix: Made some lsp config fixes
Fix CursorHold autocmd
Add missing C-family filetypes
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
0dfdb55734267f03d9ee561f05c95d1a5d31c010 | src/kong/plugins/authentication/schema.lua | src/kong/plugins/authentication/schema.lua | local constants = require "kong.constants"
local stringy = require "stringy"
local function check_authentication_key_names(names, plugin_value)
print "HERE"
if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC then
return false, "This field is not available for \""..BASIC.."\" authentication... | local constants = require "kong.constants"
local utils = require "kong.tools.utils"
local stringy = require "stringy"
local function check_authentication_key_names(names, plugin_value)
if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC then
return false, "This field is not available for \""..B... | fixing import and removing debug info | fixing import and removing debug info
| Lua | apache-2.0 | ajayk/kong,rafael/kong,kyroskoh/kong,beauli/kong,smanolache/kong,icyxp/kong,isdom/kong,li-wl/kong,Kong/kong,ejoncas/kong,rafael/kong,streamdataio/kong,xvaara/kong,streamdataio/kong,ccyphers/kong,akh00/kong,jerizm/kong,jebenexer/kong,isdom/kong,Kong/kong,vzaramel/kong,Mashape/kong,ejoncas/kong,shiprabehera/kong,Vermeill... |
d52b64983ae9bfbfe859766095cb314be00fe40e | src/lfs/application.lua | src/lfs/application.lua | require("wipe")
local sensors = require("sensors")
local dht_sensors = require("dht_sensors")
local ds18b20_sensors = require("ds18b20_sensors")
local actuators = require("actuators")
local settings = require("settings")
local sensorTimer = tmr.create()
-- globals
sensorPut = {}
actuatorGet = {}
-- initialize binary ... | require("wipe")
local sensors = require("sensors")
local dht_sensors = require("dht_sensors")
local ds18b20_sensors = require("ds18b20_sensors")
local actuators = require("actuators")
local settings = require("settings")
local sensorTimer = tmr.create()
-- globals
sensorPut = {}
actuatorGet = {}
-- initialize binary ... | fix issue with low-level relays activating on reboot; always explicitly set to off | fix issue with low-level relays activating on reboot; always explicitly set to off
| Lua | apache-2.0 | konnected-io/konnected-security,konnected-io/konnected-security |
c9f644b6085dcd839ce80da6ff24bd464bf9460c | histArray.lua | histArray.lua | -- XXX: not fully implemented yet. See the tests in spec/
local M = {}
local function lookupKeyIn(proxy, private, key)
-- XXX
if type(key) == 'number' then
-- blah blah blah
elseif key == 'histSize' then
return private.histSize
else
return 'whatever'
end
end
local function... | -- XXX: not fully implemented yet. See the tests in spec/
local M = {}
local function computeActualIndexFor(key, histSize)
return ((key-1) % (histSize+1) + 1)
end
local function getAllElementsFrom(proxy, private)
local results = {}
local earliestIndex = private.latestIndex - private.histSize
for i=e... | Finish HistArray implementation | Finish HistArray implementation
Beware of bugs in this code. I have only shown it passes the 9 tests I
wrote, not tried to use it :)
| Lua | mit | graue/luasynth |
54ec82b70bf56816d16c142c0b9239769cd8b529 | nvim/.config/nvim/lua/sets.lua | nvim/.config/nvim/lua/sets.lua | vim.g.mapleader = ' '
local opt = vim.o
opt.termguicolors = true
opt.mouse = 'a'
-- Tab control
opt.tabstop = 2 -- the visible width of tabs
opt.softtabstop = opt.tabstop -- edit as if the tabs are 4 characters wide
opt.shiftwidth = opt.tabstop -- number of spaces to use for indent and unindent
opt.expandtab = true... | vim.g.mapleader = ' '
local opt = vim.api.nvim_set_option
opt('termguicolors', true)
opt('mouse', 'a')
-- Tab control
opt('tabstop', 2) -- the visible width of tabs
opt('softtabstop', 2) -- edit as if the tabs are 4 characters wide
opt('shiftwidth', 2) -- number of spaces to use for indent and unindent
opt('expandt... | Fix setting options | Fix setting options
| Lua | mit | gblock0/dotfiles |
15d7ac9da602c29c7d8b0d3ad28152487d4a6e1a | new/xml.lua | new/xml.lua | #!/usr/bin/lua
local parseargs, collect, strip_escapes
strip_escapes = function (s)
s = string.gsub(s, '>', '>')
s = string.gsub(s, '<', '<')
return s
end
function parseargs(s)
local arg = {}
string.gsub(s, "([%w_]+)=([\"'])(.-)%2", function (w, _, a)
arg[strip_escapes(w)] = strip_escapes(a)
end)
ret... | #!/usr/bin/lua
local parseargs, collect, strip_escapes
strip_escapes = function (s)
s = string.gsub(s, '>', '>')
s = string.gsub(s, '<', '<')
return s
end
function parseargs(s)
local arg = {}
string.gsub(s, "([%w_]+)=([\"'])(.-)%2", function (w, _, a)
arg[strip_escapes(w)] = strip_escapes(a)
end)
ret... | fixed how overloads were stored | fixed how overloads were stored
| Lua | mit | mkottman/lqt,mkottman/lqt |
d02b759ce383f8910e2eb6b2e431c08daa4d1b05 | tests/check/windows.lua | tests/check/windows.lua | local math = require('math')
local os = require('os')
local string = require('string')
local helper = require('../helper')
local fixtures = require('/tests/fixtures').checks
local WindowsChecks = require('/check/windows').checks
local exports = {}
exports['test_windowsperfos_check'] = function(test, asserts)
local ... | local math = require('math')
local os = require('os')
local string = require('string')
local helper = require('../helper')
local fixtures = require('/tests/fixtures').checks
local WindowsChecks = require('/check/windows').checks
local exports = {}
exports['test_windowsperfos_check'] = function(test, asserts)
local ... | mssql fixture tests should also be successful outside of win32 | mssql fixture tests should also be successful outside of win32
| Lua | apache-2.0 | kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-m... |
c67afc836e2013518d735cd9a21c8205ab3c33ad | share/luaplaylist/dailymotion.lua | share/luaplaylist/dailymotion.lua | -- $Id$
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "dailymotion.com" )
and vlc.peek( 9 ) == "<!DOCTYPE"
end
-- Parse function.
function parse()
while true
do
line = vlc.readline()
if not line then break end
if strin... | -- $Id$
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "dailymotion.com" )
and vlc.peek( 9 ) == "<!DOCTYPE"
end
-- Parse function.
function parse()
while true
do
line = vlc.readline()
if not line then break end
if strin... | * dailymotion.lua: fix. | * dailymotion.lua: fix.
| Lua | lgpl-2.1 | shyamalschandra/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,krichter722/vlc,krichter722/vlc,krichter722/vlc,vlc-mirror/vlc,krichter722/vlc,jomanmuk/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,vlc-mirror/vlc,krichter722/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc,xkfz... |
00a7d113594f26a360a04da72301c164323fa978 | lua/weapons/remotecontroller.lua | lua/weapons/remotecontroller.lua | AddCSLuaFile()
SWEP.Author = "Divran" -- Originally by ShaRose, rewritten by Divran at 2011-04-03
SWEP.Contact = ""
SWEP.Purpose = "Remote control for Pod Controllers in wire."
SWEP.Instructions = "Left Click on Pod Controller to link up, and use to start controlling."
SWEP.Category = "Wiremod"
SWEP.PrintName = "Remo... | AddCSLuaFile()
SWEP.Author = "Divran" -- Originally by ShaRose, rewritten by Divran at 2011-04-03
SWEP.Contact = ""
SWEP.Purpose = "Remote control for Pod Controllers in wire."
SWEP.Instructions = "Left Click on Pod Controller to link up, and use to start controlling."
SWEP.Category = "Wiremod"
SWEP.PrintName = "Remo... | Fix swapping from/to RC circumventing driver check | Fix swapping from/to RC circumventing driver check
Currently the RC only requires that one is linked to the pod (not driving) in order to call PlayerExited when you put the tool away. This allows the RC to pass the pod occupancy check when you pull the tool back out (PlayerExited sets HasPly to nil) and then it's poss... | Lua | apache-2.0 | sammyt291/wire,Grocel/wire,NezzKryptic/Wire,garrysmodlua/wire,wiremod/wire,dvdvideo1234/wire |
8c228d1bda9b716576348964c8a07311bd3900b6 | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | protocols/6x4: fix turning off 6ro4 advertising on all interfaces | protocols/6x4: fix turning off 6ro4 advertising on all interfaces
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8135 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
79c3b883ae3918fc0f675b70b67057331d1c0699 | modules/twitch.lua | modules/twitch.lua | -- Module to display, search and alert twitch.tv streams
-- vim: set noexpandtab:
local util = require'util'
local simplehttp = util.simplehttp
local json = util.json
local moduleName = 'twitch'
local key = moduleName
local store = ivar2.persist
local parseData = function(self, source, destination, data)
data = json.... | -- Module to display, search and alert twitch.tv streams
-- vim: set noexpandtab:
local util = require'util'
local simplehttp = util.simplehttp
local json = util.json
local moduleName = 'twitch'
local key = moduleName
local store = ivar2.persist
local parseData = function(self, source, destination, data)
data = json.... | twitch: Fix mixed indent. | twitch: Fix mixed indent.
Former-commit-id: 55f475de1ef2b6d906fc41ae621025eab2b44ec3 [formerly 66d3e8e48566dab17863c23ffa69ec20ff9ec8dd]
Former-commit-id: cfaebbbc0bd1bd90d960bfd8cbe0d541dc5659f3 | Lua | mit | torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2 |
efd20db318cbc034e58eb55c0dfef4538f6be5ef | twitpic.lua | twitpic.lua | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
dofile("urlcode.lua")
dofile("table_show.lua")
JSON = (loadfile "JSON.lua")()
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:clos... | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
dofile("urlcode.lua")
dofile("table_show.lua")
JSON = (loadfile "JSON.lua")()
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:clos... | twitpic.lua: fix to download videos | twitpic.lua: fix to download videos | Lua | unlicense | ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab |
cc3d090e8e8447549d02c0720f7eedc3f23aa3b9 | src/websocket/server_copas.lua | src/websocket/server_copas.lua |
local socket = require'socket'
local copas = require'copas'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local sync = require'websocket.sync'
local tconcat = table.concat
local tinsert = table.insert
local clients = {}
local client = fun... |
local socket = require'socket'
local copas = require'copas'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local sync = require'websocket.sync'
local tconcat = table.concat
local tinsert = table.insert
local clients = {}
local client = fun... | fix some copas yield stuff | fix some copas yield stuff
| Lua | mit | enginix/lua-websockets,OptimusLime/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,lipp/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets |
a670a566abcaaf20d1a7277fe3348d237117420e | tests/config/test_links.lua | tests/config/test_links.lua | --
-- tests/config/test_links.lua
-- Test the list of linked objects retrieval function.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.config_links = { }
local suite = T.config_links
local project = premake5.project
local config = premake5.config
--
-- Setup and teardown
--
local sln, prj, c... | --
-- tests/config/test_links.lua
-- Test the list of linked objects retrieval function.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.config_links = { }
local suite = T.config_links
local project = premake5.project
local config = premake5.config
--
-- Setup and teardown
--
local sln, prj, c... | Added test for libdirs fix | Added test for libdirs fix
| Lua | bsd-3-clause | warrenseine/premake,Lusito/premake,Lusito/premake,warrenseine/premake,Lusito/premake,annulen/premake,annulen/premake,warrenseine/premake,annulen/premake,Lusito/premake,annulen/premake |
461d8c75ba17ea119d03cd63519aa429feb6d621 | lua/entities/gmod_starfall_hologram/cl_init.lua | lua/entities/gmod_starfall_hologram/cl_init.lua | include( "shared.lua" )
ENT.RenderGroup = RENDERGROUP_BOTH
-- Umsgs may be recieved before the entity is initialized, place
-- them in here until initialization.
local msgQueueNames = {}
local msgQueueData = {}
local function msgQueueAdd(umname, ent, udata)
local names, data = msgQueueNames[ent], msgQueueData[ent]
... | include( "shared.lua" )
ENT.RenderGroup = RENDERGROUP_BOTH
-- Umsgs may be recieved before the entity is initialized, place
-- them in here until initialization.
local msgQueueNames = {}
local msgQueueData = {}
local function msgQueueAdd ( umname, ent, udata )
local names, data = msgQueueNames[ ent ], msgQueueData[... | Fix hologram net messages (setScale/setClip) | Fix hologram net messages (setScale/setClip)
Net messages can arrive before the entity is initialised.
While there was a queue to accomodate for that, the queue was indexed by
the entity. However, since all non-existant entities become
NULL-Entities, the queue was not working.
This changes the queue to be indexed by ... | Lua | bsd-3-clause | Ingenious-Gaming/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,INPStarfall/Starfall |
1b642a4e138f205c320fa0c9f20dbcd716d8f308 | mods/BeardLib-Editor/Hooks/GameStateMachine.lua | mods/BeardLib-Editor/Hooks/GameStateMachine.lua | Hooks:PostHook(GameStateMachine, "init", "BeardLibEditorGameStateInit", function(self)
local editor
local editor_func
local ingame_waiting_for_players
local ingame_waiting_for_players_func
local ingame_waiting_for_respawn
local ingame_lobby
local ingame_lobby_func
for state in pairs(self._transitions) do
if s... | Hooks:PostHook(GameStateMachine, "init", "BeardLibEditorGameStateInit", function(self)
local editor
local editor_func
local ingame_waiting_for_players
local ingame_waiting_for_players_func
local ingame_waiting_for_respawn
local ingame_lobby
local ingame_lobby_func
for name in pairs(self._transitions) do
state... | Fixed #189 | Fixed #189 | Lua | mit | simon-wh/PAYDAY-2-BeardLib-Editor |
57571d2183ddce17e8d03bc44718826a695d8ee0 | lua/settings/init.lua | lua/settings/init.lua | local nvim = require'nvim'
local sys = require'sys'
-- local select_grep = require'tools'.helpers.select_grep
local set_grep = require'tools'.helpers.set_grep
local parent = sys.data
local plugins = nvim.plugins
local mkdir = require'tools'.files.mkdir
local is_dir = require'tools'.files.is_dir
loc... | local nvim = require'nvim'
local sys = require'sys'
-- local select_grep = require'tools'.helpers.select_grep
local set_grep = require'tools'.helpers.set_grep
local parent = sys.data
local plugins = nvim.plugins
local mkdir = require'tools'.files.mkdir
local is_dir = require'tools'.files.is_dir
loc... | fix: Turn off some write-to-disk options in windows | fix: Turn off some write-to-disk options in windows
Remove swapfile and permanent backupfile from windows options
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
5178d3021f7b54401228ac719bcee5d5faafff56 | nyagos.d/catalog/subcomplete.lua | nyagos.d/catalog/subcomplete.lua | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
share.maincmds = {}
-- git
local githelp=io.popen("git help -a 2>nul","r")
if githelp then
local gitcmds={}
for line in githelp:lines() do
local word = string.match(line,"^ +(%S+)")
if nil ~=... | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
share.maincmds = {}
-- git
local githelp=io.popen("git help -a 2>nul","r")
if githelp then
local gitcmds={}
for line in githelp:lines() do
local word = string.match(line,"^ +(%S+)")
if nil ~=... | (#345) fix: subcomplete.lua: sub command completion for svn did notwork | (#345) fix: subcomplete.lua: sub command completion for svn did notwork
| Lua | bsd-3-clause | tsuyoshicho/nyagos,nocd5/nyagos,zetamatta/nyagos |
c26c3a166ea7bcd88abf69bf4808334c55693ae2 | Modules/Debug/Draw.lua | Modules/Debug/Draw.lua | ---
-- @module Draw
local Workspace = game:GetService("Workspace")
local lib = {}
lib._defaultColor = Color3.new(1, 0, 0)
function lib.SetColor(color)
lib._defaultColor = color
end
function lib.SetRandomColor()
lib.SetColor(Color3.fromHSV(math.random(), 0.5+0.5*math.random(), 1))
end
--- Draws a ray for debuggin... | --- Debug drawing library useful for debugging 3D abstractions
-- @module Draw
local Workspace = game:GetService("Workspace")
local lib = {}
lib._defaultColor = Color3.new(1, 0, 0)
--- Sets the lib's drawing color
-- @tparam {Color3} color The color to set
function lib.SetColor(color)
lib._defaultColor = color
end
... | Add documentation to draw, fix minor issues | Add documentation to draw, fix minor issues
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
c51d87183396295bf602ad68fa1290c00fcdbbd3 | MY_Toolbox/src/MY_ArenaHelper.lua | MY_Toolbox/src/MY_ArenaHelper.lua | --------------------------------------------------------
-- This file is part of the JX3 Mingyi Plugin.
-- @link : https://jx3.derzh.com/
-- @desc : ԶлŶƵ
-- @author : @˫ @Ӱ
-- @modifier : Emil Zhai (root@derzh.com)
-- @copyright: Copyright (c) 2013 EMZ Kingsoft Co., Ltd.
------------------------------------... | --------------------------------------------------------
-- This file is part of the JX3 Mingyi Plugin.
-- @link : https://jx3.derzh.com/
-- @desc : ԶлŶƵ
-- @author : @˫ @Ӱ
-- @modifier : Emil Zhai (root@derzh.com)
-- @copyright: Copyright (c) 2013 EMZ Kingsoft Co., Ltd.
------------------------------------... | fix: 修复常用工具名剑大会助手屏蔽问题 | fix: 修复常用工具名剑大会助手屏蔽问题
| Lua | bsd-3-clause | tinymins/MY |
4840d5eed72e0fd840a53003ba3352038ad77a36 | Peripherals/Audio/ctunethread.lua | Peripherals/Audio/ctunethread.lua | --Chiptune Thread
local chIn = ...
require("love.audio")
require("love.sound")
require("love.timer")
local QSource = require("Peripherals.Audio.QueueableSource")
local qs = QSource:new()
local rate = 44100
local buffer_size = rate/4
local wave, freq, amp
local waves = {}
--Sin
waves[0] = function(samples)
loc... | --Chiptune Thread
local chIn = ...
require("love.audio")
require("love.sound")
require("love.timer")
local QSource = require("Peripherals.Audio.QueueableSource")
local qs = QSource:new()
local rate = 44100
local buffer_size = rate/4
local sleeptime = 0.9/(rate/buffer_size)
local wave, freq, amp
local waves = {}
... | Bugfix Real CPU being completely used by chiptune thread | Bugfix Real CPU being completely used by chiptune thread
Former-commit-id: 5c6f102953092d02044e0dc010235cc4672095a5 | Lua | mit | RamiLego4Game/LIKO-12 |
7ffecf756cd9914c2fedc9c42d3f79d3afbd1275 | Quadtastic/tableplus.lua | Quadtastic/tableplus.lua | local table = table
-- Returns table[key][...]
-- That is, get(t, k1, k2, k3) is another way to write t[k1][k2][k3]
-- but there is no built-in way in Lua to do this in an automated way
function table.get(tab, key, ...)
if tab == nil then return nil
elseif select("#", ...) == 0 then
return tab[key]
else
... | local table = table
-- Returns table[key][...]
-- That is, get(t, k1, k2, k3) is another way to write t[k1][k2][k3]
-- but there is no built-in way in Lua to do this in an automated way
function table.get(tab, key, ...)
if tab == nil then return nil
elseif select("#", ...) == 0 then
return tab[key]
else
... | Fix set method in tableplus | Fix set method in tableplus
| Lua | mit | 25A0/Quadtastic,25A0/Quadtastic |
b7aa5d19be520b3886d235de32d43520f6d14ea2 | announce.lua | announce.lua | local mod = EPGP:NewModule("announce")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
function mod:AnnounceTo(medium, fmt, ...)
if not medium then return end
local channel = self.db.profile.channel or 0
-- Override raid and party if we are not grouped
if medium ==... | local mod = EPGP:NewModule("announce")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
function mod:AnnounceTo(medium, fmt, ...)
if not medium then return end
local channel = self.db.profile.channel or 0
-- Override raid and party if we are not grouped
if medium ==... | Check that we actually have a list of extras before we attempt to announce them. This fixes issue 462. | Check that we actually have a list of extras before we attempt to announce them. This fixes issue 462.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,hayword/tfatf_epgp |
9f9212630b33e9b5d641cd83257ad234d867232d | configdir/awesome/widgets/temp.lua | configdir/awesome/widgets/temp.lua | local awful = require("awful")
local utils = require("utils")
local lain = require("lain")
local icons = require("icons")
local BaseWidget = require("widgets.base").BaseWidget
local TempWidget = BaseWidget.derive()
function TempWidget:create(args)
args = args or {}
args.critical = args.critical or 80
args... | local awful = require("awful")
local utils = require("utils")
local lain = require("lain")
local icons = require("icons")
local BaseWidget = require("widgets.base").BaseWidget
local TempWidget = BaseWidget.derive()
function TempWidget:create(args)
args = args or {}
args.critical = args.critical or 80
args... | Fix possible crash in temperature widget | Fix possible crash in temperature widget
| Lua | mit | mphe/dotfiles,mphe/dotfiles,mphe/dotfiles,mphe/dotfiles,mphe/dotfiles,mphe/dotfiles |
0350dac73470b157902887edbef241a06b5ca4dd | item/cauldron.lua | item/cauldron.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | fix duplicate | fix duplicate
| Lua | agpl-3.0 | KayMD/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content |
975f15a46f6abbcae1d5667460b250619fac9733 | applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | applications/siitwizard: whitespace and typo fixes, svn property fixup | applications/siitwizard: whitespace and typo fixes, svn property fixup
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@3842 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | stephank/luci,saraedum/luci-packages-old,8devices/carambola2-luci,freifunk-gluon/luci,phi-psi/luci,saraedum/luci-packages-old,dtaht/cerowrt-luci-3.3,ThingMesh/openwrt-luci,ReclaimYourPrivacy/cloak-luci,8devices/carambola2-luci,ReclaimYourPrivacy/cloak-luci,stephank/luci,Flexibity/luci,dtaht/cerowrt-luci-3.3,8devices/ca... |
e2e49bf2f520c319b033bdceda027d26801a9b29 | durden/tools/advfloat/spawnctl.lua | durden/tools/advfloat/spawnctl.lua | gconfig_register("advfloat_spawn", "auto");
gconfig_register("advfloat_actionreg", false);
local pending, pending_vid;
local function setup_cursor_pick(wm, wnd)
wnd:hide();
pending = wnd;
local w = math.ceil(wm.width * 0.15);
local h = math.ceil(wm.height * 0.15);
pending_vid = null_surface(w, h);
link_image(pe... | gconfig_register("advfloat_spawn", "auto");
gconfig_register("advfloat_actionreg", false);
local pending, pending_vid;
local function setup_cursor_pick(wm, wnd)
wnd:hide();
pending = wnd;
local w = math.ceil(wm.width * 0.15);
local h = math.ceil(wm.height * 0.15);
pending_vid = null_surface(w, h);
link_image(pe... | first-frame resize disappearance solved | first-frame resize disappearance solved
This one was surprisingly gnarly and a follow up to the arcan fix in 14e74da68.
The interception done by the spawnctl/advfloat failed to forward-chain the
result, causing a missing window structure reference that then never received
the origo_ll flag.
| Lua | bsd-3-clause | letoram/durden |
a119cf4f29b714c2bc4c6875712a37fce1645c4e | luapak/luarocks/site_config.lua | luapak/luarocks/site_config.lua | local log = require 'luapak.logging'
local utils = require 'luapak.utils'
local concat = table.concat
local find = utils.find
local is_windows -- initialized later
--- Returns true if there's system command `name` on PATH, false otherwise.
local function has_command (name)
local command = (is_windows and 'where ... | local log = require 'luapak.logging'
local utils = require 'luapak.utils'
local concat = table.concat
local find = utils.find
local is_windows -- initialized later
--- Returns true if there's system command `name` on PATH, false otherwise.
local function has_command (name)
local cmd_tmpl = is_windows
and '... | Fix site_config to not print output of which/where commands | Fix site_config to not print output of which/where commands
| Lua | mit | jirutka/luapak,jirutka/luapak |
dac2c7ebfe6c79583020d5cc48c4fd9b8aa73acb | premake.lua | premake.lua | require ('premake-xbox360/xbox360')
require ("vstudio")
Workspace = "workspace/".._ACTION
-- Compilers
PlatformMSVC64 = "MSVC 64"
PlatformMSVC32 = "MSVC 32"
PlatformLLVM64 = "LLVM 64"
PlatformLLVM32 = "LLVM 32"
PlatformOSX64 = "OSX 64"
PlatformLinux64_GCC = "Linux64_GCC"
PlatformLinux64_Clang = "Linux64_Clang"
Pl... | require ('premake-xbox360/xbox360')
require ("vstudio")
Workspace = "workspace/".._ACTION
-- Compilers
PlatformMSVC64 = "MSVC 64"
PlatformMSVC32 = "MSVC 32"
PlatformLLVM64 = "LLVM 64"
PlatformLLVM32 = "LLVM 32"
PlatformOSX64 = "OSX 64"
PlatformLinux64_GCC = "Linux64_GCC"
PlatformLinux64_Clang = "Linux64_Clang"
Pl... | Fix premake.lua for Linux and Mac builds | Fix premake.lua for Linux and Mac builds
| Lua | mit | redorav/hlslpp,redorav/hlslpp,redorav/hlslpp |
2589bc5fb0ca32029dd61798a69c149db707a8e5 | LuaSource/frame/cppobjectbase.lua | LuaSource/frame/cppobjectbase.lua | require "luaclass"
CppObjectBase = Class(ObjectBase)
CppSingleton = Class(CppObjectBase)
addfunc(CppSingleton, Singleton)
local LinkAgainstGC = {}
local LevelActors = {}
function CppObjectBase:EndPlay(Reason)
if not self.m_HasEndPlay then
self.m_HasEndPlay = true
self:Release()
end
end
function CppO... | require "luaclass"
CppObjectBase = Class(ObjectBase)
CppSingleton = Class(CppObjectBase)
addfunc(CppSingleton, Singleton)
local setexisttable = _setexisttable
local LinkAgainstGC = {}
local LevelActors = {}
function CppObjectBase:EndPlay(Reason)
if not self.m_HasEndPlay then
self.m_HasEndPlay = true
sel... | cpp memory reuse bug | cpp memory reuse bug
| Lua | mit | asqbtcupid/unreal.lua,asqbtcupid/unreal.lua,asqbtcupid/unreal.lua |
bea8e082da513d90660de84f9213a4fd9552d2eb | src/lua-factory/sources/grl-appletrailers.lua | src/lua-factory/sources/grl-appletrailers.lua | --[[
* Copyright (C) 2015 Grilo Project
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your option) any later version.
*
* This library is ... | --[[
* Copyright (C) 2015 Grilo Project
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your option) any later version.
*
* This library is ... | lua-factory: port grl-appletrailers.lua to the new lua system | lua-factory: port grl-appletrailers.lua to the new lua system
https://bugzilla.gnome.org/show_bug.cgi?id=753141
Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
| Lua | lgpl-2.1 | MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins |
36e28061216ee749843f54a87956607545b106dd | lib/dxjob.lua | lib/dxjob.lua |
local dxjob = {}
local cxjob = require('cxjob')
function dxjob.new(targetConf)
if type(targetConf) ~= 'table' then
errorlog('[Error] failed dxjob new')
return
end
local inst = {
m_jobque = {}, -- job queue
m_submitque = {}, -- submitting job
m_doneque = {}, -- ended job
m_m... |
local dxjob = {}
local cxjob = require('cxjob')
function dxjob.new(targetConf)
if type(targetConf) ~= 'table' then
errorlog('[Error] failed dxjob new')
return
end
local inst = {
m_jobque = {}, -- job queue
m_submitque = {}, -- submitting job
m_doneque = {}, -- ended job
m_m... | fix tar compress | fix tar compress
| Lua | bsd-2-clause | avr-aics-riken/hpcpfGUI,avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI,digirea/hpcpfGUI,avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI |
8464001e75933758214707c21321a5dbb0368fe0 | quest/explorersguild.lua | quest/explorersguild.lua |
-- This module holds the core functions for the explorers guild.
-- The questIDs start at 130 and go to 150.
-- Written by Martin
require("base.common")
module("quest.explorersguild", package.seeall)
function CheckStone(Char,StoneNumber)
retVal=false;
StoneBase=130+math.floor((StoneNumber-1)/32); -- Stone 0... |
-- This module holds the core functions for the explorers guild.
-- The questIDs start at 130 and go to 150.
-- Written by Martin
require("base.common")
module("quest.explorersguild", package.seeall)
function CheckStone(Char,StoneNumber)
retVal=false;
StoneBase=130+math.floor((StoneNumber-1)/32); -- Stone 0... | Fixed check markerstones | Fixed check markerstones
| Lua | agpl-3.0 | vilarion/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content |
3b8db05d54d912849215cf90b66109b082875521 | share/lua/website/bikeradar.lua | share/lua/website/bikeradar.lua |
-- libquvi-scripts
-- Copyright (C) 2011-2012 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundatio... |
-- libquvi-scripts
-- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com>
-- Copyright (C) 2011-2012 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Publ... | FIX: website/bikeradar.lua: Look for embedURL | FIX: website/bikeradar.lua: Look for embedURL
Check page HTML for embedded URL, since bikeshed apparently uses YouTube
to host their media. Set `self.redirect_url' or croak.
* ident: Update media URL pattern
* parse: Set `self.redirect_url' only, do not parse anything else
Signed-off-by: Toni Gundogdu <eac2284b3c436... | Lua | agpl-3.0 | legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts |
0d112c4fa5fd6a008c3b2c51e35c8fc1265bbd60 | frontend/ui/networkmgr.lua | frontend/ui/networkmgr.lua | local ConfirmBox = require("ui/widget/confirmbox")
local UIManager = require("ui/uimanager")
local Device = require("ui/device")
local DEBUG = require("dbg")
local _ = require("gettext")
local NetworkMgr = {}
local function kindleEnableWifi(toggle)
local lipc = require("liblipclua")
local lipc_handle = nil
... | local ConfirmBox = require("ui/widget/confirmbox")
local UIManager = require("ui/uimanager")
local Device = require("ui/device")
local DEBUG = require("dbg")
local _ = require("gettext")
local NetworkMgr = {}
local function kindleEnableWifi(toggle)
local lipc = require("liblipclua")
local lipc_handle = nil
... | fix koboEnableWifi | fix koboEnableWifi
| Lua | agpl-3.0 | ashhher3/koreader,frankyifei/koreader,chihyang/koreader,poire-z/koreader,poire-z/koreader,apletnev/koreader,ashang/koreader,koreader/koreader,Hzj-jie/koreader,houqp/koreader,NiLuJe/koreader,noname007/koreader,mihailim/koreader,Frenzie/koreader,chrox/koreader,NickSavage/koreader,NiLuJe/koreader,lgeek/koreader,Markismus/... |
faff8b9847df7686f1640b0f28edf3f3f1696449 | lib/json.lua | lib/json.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 json to allow encoding numbers as keys. Also add streaming parser helper | Fix json to allow encoding numbers as keys. Also add streaming parser helper
| Lua | apache-2.0 | zhaozg/luvit,rjeli/luvit,boundary/luvit,sousoux/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,DBarney/luvit,connectFree/lev,luvit/luvit,boundary/luvit,zhaozg/luvit,AndrewTsao/luvit,kaustavha/luvit,luvit/luvit,sousoux/luvit,sousoux/luvit,AndrewTsao/luvit,boundary/luvit,AndrewTsao/luvit,boundary/luvit,boundar... |
7a9a7c2f08fc15a52bdab5bbcfd633451d439b73 | home/.hammerspoon/jira.lua | home/.hammerspoon/jira.lua | -- Requirements and local vars
local utils = require('utils')
local jiraAccount = require ('jiraAccount')
local log = hs.logger.new('init.lua', 'debug')
local jira = {}
-- Returns a Jira URL to browse the given issue Key
function jira.getBrowseUrl(key)
return string.format("%s%s%s", jiraAccount.getBaseUrl(), "brow... | -- Requirements and local vars
local utils = require('utils')
local jiraAccount = require ('jiraAccount')
local log = hs.logger.new('init.lua', 'debug')
local jira = {}
-- Returns a Jira URL to browse the given issue Key
function jira.getBrowseUrl(key)
local url = "";
-- Accordig to the issue key, we use either t... | feat: Can now browse to base or alternative JIRA url, based on default project prefix | feat: Can now browse to base or alternative JIRA url, based on default
project prefix
| Lua | mit | maanuair/dotfiles,maanuair/dotfiles_tmp |
b84da68a79738f6e9623bdb76b55e647dd81ab69 | lib/switchboard_modules/lua_script_debugger/premade_scripts/14_average_min_max.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/14_average_min_max.lua | print("Sampling average/min/max: Read AIN1 at set rate for certain number of samples. Outputs average, minimum, and maximum")
--Example program that samples an analog input at a set frequency for a certain number of samples.
--Takes the average, minimum, and maximum of sampled data and prints it to the console as well ... | --[[
Name: 14_average_min_max.lua
Desc: Example program that samples an analog input at a set frequency for a
certain number of samples. It takes the average, minimum, and maximum
of sampled data and prints it to the console as well as saving them
to the first 3 addresses of user R... | Fixed up the formatting of the AIN average, min, max example | Fixed up the formatting of the AIN average, min, max example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
79c52bed8ac40529d79671cdc2dc17cf707e6e86 | third_party/bullet/premake5.lua | third_party/bullet/premake5.lua | dofile("../../tools/premake/options.lua")
dofile("../../tools/premake/globals.lua")
link_cmd = ""
build_cmd = ""
solution "bullet_build"
location ("build/" .. platform_dir )
configurations { "Debug", "Release" }
-- Project
project "bullet_monolithic"
setup_env()
location ("build\\" .. platform_dir)
kind "Sta... | dofile("../../tools/premake/options.lua")
dofile("../../tools/premake/globals.lua")
link_cmd = ""
build_cmd = ""
if platform_dir == "osx" then
xcodebuildsettings {
["MACOSX_DEPLOYMENT_TARGET"] = "10.13"
}
end
solution "bullet_build"
location ("build/" .. platform_dir )
configurations { "Debug", "Release" }
-... | - fix warning | - fix warning
| Lua | mit | polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech |
2392842948b114670334eabbb593b66e1427747c | mods/fire/init.lua | mods/fire/init.lua | -- minetest/fire/init.lua
fire = {}
minetest.register_node("fire:basic_flame", {
description = "Fire",
drawtype = "firelike",
tiles = {{
name="fire_basic_flame_animated.png",
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1},
}},
inventory_image = "fire_basic_flame.png",
light_source = ... | -- minetest/fire/init.lua
-- Global namespace for functions
fire = {}
-- Register flame node
minetest.register_node("fire:basic_flame", {
description = "Fire",
drawtype = "firelike",
tiles = {{
name = "fire_basic_flame_animated.png",
animation = {type = "vertical_frames",
aspect_w = 16, aspect_h = 16, le... | Fire: Slow down fire spread and reduce lua load | Fire: Slow down fire spread and reduce lua load
Increase chance value of ABMs
Disable ignition from a distance
Only detect neighbouring extinguishing nodes
Fix code style issues and add comments
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
99a9b49f81b52268899e4911893e5693c855ae89 | lib/utils/parallel.lua | lib/utils/parallel.lua | --[[
This file provides generic parallel class - allowing to run functions
in different threads and on different GPU
]]--
local Parallel = {
gpus = {0},
_pool = nil,
count = 1,
gradBuffer = torch.Tensor()
}
-- Synchronizes the current stream on dst device with src device. This is only
-- necessary if we a... | --[[
This file provides generic parallel class - allowing to run functions
in different threads and on different GPU
]]--
local Parallel = {
gpus = {0},
_pool = nil,
count = 1,
gradBuffer = torch.Tensor()
}
-- Synchronizes the current stream on dst device with src device. This is only
-- necessary if we a... | fix nccl that was always disabled | fix nccl that was always disabled
| Lua | mit | monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,jungikim/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,srush/OpenNMT... |
5808b647c3ae9faf0b9c1dfcf0edbc7dff1e0874 | lib/utils/parallel.lua | lib/utils/parallel.lua | --[[
This file provides generic parallel class - allowing to run functions
in different threads and on different GPU
]]--
local cuda = require 'lib.utils.cuda'
local Parallel = {
gpus = {0},
_pool = nil,
count = 1
}
function Parallel.init(args)
if cuda.activated then
Parallel.count = args.npa... | --[[
This file provides generic parallel class - allowing to run functions
in different threads and on different GPU
]]--
local cuda = require 'lib.utils.cuda'
local Parallel = {
gpus = {0},
_pool = nil,
count = 1
}
function Parallel.init(args)
if cuda.activated then
Parallel.count = args.npa... | fix single-thread training | fix single-thread training
| Lua | mit | monsieurzhang/OpenNMT,da03/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,cservan/OpenNMT_scores_0.2.0,srush/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,jsenella... |
9d8f7086e1f469a24b032307b43dc801fe10fd92 | packages/rules.lua | packages/rules.lua | SILE.baseClass:loadPackage("raiselower")
SILE.baseClass:loadPackage("rebox")
SILE.registerCommand("hrule", function (options, _)
local width = SU.cast("length", options.width)
local height = SU.cast("length", options.height)
local depth = SU.cast("length", options.depth)
SILE.typesetter:pushHbox({
width = ... | SILE.baseClass:loadPackage("raiselower")
SILE.baseClass:loadPackage("rebox")
SILE.registerCommand("hrule", function (options, _)
local width = SU.cast("length", options.width)
local height = SU.cast("length", options.height)
local depth = SU.cast("length", options.depth)
SILE.typesetter:pushHbox({
width = ... | fix(packages): Make boxaround respect shrink/strech (rules package) | fix(packages): Make boxaround respect shrink/strech (rules package)
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.