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 |
|---|---|---|---|---|---|---|---|---|---|
cf39991cbf1840bcd9796065b00088d61d6d7e2a | share/util/resolve_redirections.lua | share/util/resolve_redirections.lua | -- libquvi-scripts
-- Copyright (C) 2012-2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 Fre... | -- libquvi-scripts
-- Copyright (C) 2012-2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 Fre... | FIX: resolve_redirections.lua: Normalize YouTube input URL | FIX: resolve_redirections.lua: Normalize YouTube input URL
libquvi will always attempt to resolve URL redirections. This means
that quvi_media_new (for example) will always resolve first and only
then pass the input URL to the media scripts to determine the support
Problem:
- g00gle now redirects the embedded medi... | Lua | agpl-3.0 | alech/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts |
03c86dcd74d10f6a4bd6b4190064f35f0e69c0bc | lib/luvit-websocket/libs/server.lua | lib/luvit-websocket/libs/server.lua | local net = require('net')
local b64 = require('./base64.lua')
local sha1 = require('./sha1.lua')
local table = require('table')
local math = require('math')
local bit = require('bit')
local table = require('table')
local string = require('string')
require('./table.lua')(table)
require('./string.lua')(string)
function... | local net = require('net')
local b64 = require('./base64.lua')
local sha1 = require('./sha1.lua')
local table = require('table')
local math = require('math')
local bit = require('bit')
local table = require('table')
local string = require('string')
require('./table.lua')(table)
require('./string.lua')(string)
function... | Fix luvit-websocket bug in send function | Fix luvit-websocket bug in send function
| Lua | bsd-2-clause | elflang/elf,elflang/elf,elflang/elf |
a36f54d7a75f83e59e4854f3dd02ca3a2a2a5a05 | lua/starfall/libs_sh/coroutine.lua | lua/starfall/libs_sh/coroutine.lua | --- Coroutine library
--- Coroutine library
-- @shared
local coroutine_library, _ = SF.Libraries.Register( "coroutine" )
local coroutine = coroutine
local _, thread_metamethods = SF.Typedef( "thread" )
local wrap, unwrap = SF.CreateWrapper( thread_metamethods, true, false )
local coroutines = setmetatable( {}, { __m... | --- Coroutine library
--- Coroutine library
-- @shared
local coroutine_library, _ = SF.Libraries.Register( "coroutine" )
local coroutine = coroutine
local _, thread_metamethods = SF.Typedef( "thread" )
local wrap, unwrap = SF.CreateWrapper( thread_metamethods, true, false )
local coroutines = setmetatable( {}, { __m... | Fixed coroutine resumes not passing > 1 arg. | Fixed coroutine resumes not passing > 1 arg.
Fixes #280
| Lua | bsd-3-clause | INPStarfall/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall |
47f0719148aacf7fb076f6e3b16d0bdbb7b8406c | toshiba.lua | toshiba.lua | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | toshiba.lua: fixes | toshiba.lua: fixes | Lua | unlicense | ArchiveTeam/toshiba-grab,ArchiveTeam/toshiba-grab |
e8b5fdd7d625a7a2b461e8b673521fc969d4104a | src/auxiliary.lua | src/auxiliary.lua | -- Miscellaneous auxiliary functions.
function form_date(days)
_check_required(days, 'number')
return os.date("%d-%b-%Y", os.time() - days * 60 * 60 * 24)
end
function get_password(prompt)
_check_optional(prompt, 'string')
if (prompt ~= nil) then
io.write(prompt)
else
io.write('... | -- Miscellaneous auxiliary functions.
function form_date(days)
_check_required(days, 'number')
return os.date("%d-%b-%Y", os.time() - days * 60 * 60 * 24)
end
function get_password(prompt)
_check_optional(prompt, 'string')
if (prompt ~= nil) then
io.write(prompt)
else
io.write('... | Fix become_daemon() call to ifsys.daemon() | Fix become_daemon() call to ifsys.daemon()
Make sure that the two optional arguments of ifsys.daemon() are of type
boolean as expected.
| Lua | mit | eliteraspberries/imapfilter,makinacorpus/imapfilter,makinacorpus/imapfilter,lefcha/imapfilter |
d703b416b5056f28fe76623a39e7a534cf598092 | Modules/Utility/os.lua | Modules/Utility/os.lua | -- @author Narrev
local firstRequired = os.time()
local date = function(optString, unix)
local stringPassed = false
if not (optString == nil and unix == nil) then
-- This adds compatibility for Roblox JSON and MarketPlace format, and the different ways this function accepts parameters
if type(optString) == "nu... | -- @author Narrev
local date = function(optString, unix)
local stringPassed = false
if not (optString == nil and unix == nil) then
-- This adds compatibility for Roblox JSON and MarketPlace format, and the different ways this function accepts parameters
if type(optString) == "number" or optString:match("/Date%(... | fix table returning | fix table returning | Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
eddab803d5a89dca79eaec2fb7603f4050a608a1 | Dotfiles/hydra.lua | Dotfiles/hydra.lua | -- autostart hydra
autolaunch.set(true)
-- watch for changes
pathwatcher.new(os.getenv("HOME") .. "/.hydra/", hydra.reload):start()
-- notify on start
notify.show("Hydra", "Started!", "", "")
-- window margin
local margin = 10
-- push to screen edge
function push(win, direction)
local screen = win:screen():frame_w... | -- autostart hydra
autolaunch.set(true)
-- watch for changes
pathwatcher.new(os.getenv("HOME") .. "/.hydra/", hydra.reload):start()
-- notify on start
notify.show("Hydra", "Started!", "", "")
-- window margin
local margin = 10
-- push to screen edge
function push(win, direction)
local screen = win:screen():frame_w... | typo fix in hydra config | typo fix in hydra config
| Lua | mit | szymonkaliski/Dotfiles,szymonkaliski/Dotfiles,szymonkaliski/Dotfiles,szymonkaliski/Dotfiles,szymonkaliski/Dotfiles |
e7fd8e21d38d7ab848348eeda4a5729505fba368 | framework/graphics/font.lua | framework/graphics/font.lua | --=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "class" )
local FT = require( "freetype" )
local ffi = require( "ffi" )
local GL = require( "opengl" )
local ft = ffi.new( "FT_... | --=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
require( "class" )
local FT = require( "freetype" )
local ffi = require( "ffi" )
local GL = require( "opengl" )
local ft = ffi.new( "FT_... | Fix missing glBindTexture call in font() | Fix missing glBindTexture call in font()
| Lua | mit | Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework |
1a6d57345ec3a282d8679a3f7c2a31bb13b35752 | Engine/sandbox.lua | Engine/sandbox.lua | --A function that creates new sandboxed global environment.
local basexx = require("Engine.basexx")
local bit = require("bit")
local _LuaBCHeader = string.char(0x1B).."LJ"
return function(parent)
local GLOB = {
assert=assert,
error=error,
ipairs=ipairs,
pairs=pairs,
next=next,
pcall=pcall,
... | --A function that creates new sandboxed global environment.
local basexx = require("Engine.basexx")
local bit = require("bit")
local _LuaBCHeader = string.char(0x1B).."LJ"
return function(parent)
local GLOB = {
assert=assert,
error=error,
ipairs=ipairs,
pairs=pairs,
next=next,
pcall=pcall,
... | Fix math.randomSeed not returning the seed when no arguments are passed. | Fix math.randomSeed not returning the seed when no arguments are passed.
Former-commit-id: de2353b7ef5fc731ae06a8587027f4a2f1d7a982 | Lua | mit | RamiLego4Game/LIKO-12 |
b59c14c350cc8b0dd7147d7faf07c5bb10ec22b9 | lib/switchboard_modules/lua_script_debugger/premade_scripts/i2c/io-expander-sx1059.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/i2c/io-expander-sx1059.lua | --This is an example that uses the SX1509 I/O Expander on the I2C Bus on EIO4(SCL) and EIO5(SDA)
--[[
User RAM registers- change these in another program (LabVIEW, Python, C++ and more) to change the state of pins
To understand this script, it is very important to be familiar with the datasheet
This script uses only a... | --[[
Name: io-expander-sx1059.lua
Desc: This is an example that uses the SX1509 I/O Expander on the I2C Bus
on EIO4(SCL) and EIO5(SDA)
Note: User RAM registers- change these in another program (LabVIEW,
Python, C++ and more) to change the state of pins. To understand this
scrip... | Fixed the formatting of the io-expander example | Fixed the formatting of the io-expander example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
21d9cc420396d57d59603220aba193936342ac52 | mods/tsm_pyramids/room.lua | mods/tsm_pyramids/room.lua | pyramids.saved_chests = {}
pyramids.timer = 0
pyramids.max_time = 30*60
local room = {"a","a","a","a","a","a","a","a","a",
"a","c","a","c","a","c","a","c","a",
"a","s","a","s","a","s","a","s","a",
"a","a","a","a","a","a","a","a","a",
"a","a","a","a","a","a","a","a","a",
"a","a","a","a","a","a","a","a","a",
"a","... | pyramids.saved_chests = {}
pyramids.timer = 0
pyramids.max_time = 30*60
local room = {"a","a","a","a","a","a","a","a","a",
"a","c","a","c","a","c","a","c","a",
"a","s","a","s","a","s","a","s","a",
"a","a","a","a","a","a","a","a","a",
"a","a","a","a","a","a","a","a","a",
"a","a","a","a","a","a","a","a","a",
"a","... | Fix strange crash with tsm_pyramids - Solves #207 | Fix strange crash with tsm_pyramids
- Solves #207
| Lua | unlicense | MinetestForFun/minetest-minetestforfun-server,Coethium/server-minetestforfun,sys4-fr/server-minetestforfun,paly2/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/serv... |
af3cd6e9128919c74e2436ed222d7dfdf692e561 | generator/types.lua | generator/types.lua | #!/usr/bin/lua
--[[
Copyright (c) 2007-2009 Mauro Iazzi
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, ... | #!/usr/bin/lua
--[[
Copyright (c) 2007-2009 Mauro Iazzi
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, ... | Fix QIoDevice::write missing (unknown type __int64), reported by Mostafa Vahedi | Fix QIoDevice::write missing (unknown type __int64), reported by Mostafa Vahedi
| Lua | mit | mkottman/lqt,mkottman/lqt |
5ad30a22562b50d8e7d81eb877c607aa2a963ded | core/languages.lua | core/languages.lua | SILE.languageSupport = {
languages = {},
loadLanguage = function(language)
if SILE.languageSupport.languages[language] then return end
if SILE.hyphenator.languages[language] then return end
if not(language) or language == "" then language = "en" end
ok, fail = pcall(function () SILE.require("languag... | SILE.languageSupport = {
languages = {},
loadLanguage = function(language)
if SILE.languageSupport.languages[language] then return end
if SILE.hyphenator.languages[language] then return end
if not(language) or language == "" then language = "en" end
ok, fail = pcall(function () SILE.require("languag... | Fix some warnings | Fix some warnings | Lua | mit | alerque/sile,simoncozens/sile,alerque/sile,alerque/sile,neofob/sile,simoncozens/sile,simoncozens/sile,neofob/sile,simoncozens/sile,neofob/sile,neofob/sile,alerque/sile |
6ea77c29724776a696a6e6722bfce3fcac886cc3 | lua/entities/gmod_wire_indicator.lua | lua/entities/gmod_wire_indicator.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Indicator"
ENT.WireDebugName = "Indicator"
ENT.RenderGroup = RENDERGROUP_BOTH
-- Helper functions
function ENT:GetFactorFromValue( value )
return math.Clamp((value-self.a)/(self.b-self.a), 0, 1)
end
function ENT:GetColorFromValue( valu... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Indicator"
ENT.WireDebugName = "Indicator"
ENT.RenderGroup = RENDERGROUP_BOTH
-- Helper functions
function ENT:GetFactorFromValue( value )
return math.Clamp((value-self.a)/(self.b-self.a), 0, 1)
end
function ENT:GetColorFromValue( valu... | Fixed some issues with the new indicator overlay | Fixed some issues with the new indicator overlay
| Lua | apache-2.0 | NezzKryptic/Wire,bigdogmat/wire,garrysmodlua/wire,Grocel/wire,sammyt291/wire,dvdvideo1234/wire,thegrb93/wire,wiremod/wire |
0e429980d245688fd2c292c4cdfa943ffe3621ee | Statlist.lua | Statlist.lua | --[[
This module prints a list of all
Pokémon statistics
--]]
local s = {}
local css = require('Css')
local ms = require('MiniSprite')
local list = require('Wikilib-lists')
local oop = require('Wikilib-oop')
local tab = require('Wikilib-tables')
local txt = require('Wikilib-strings')
local c = require("Colore-data"... | --[[
This module prints a list of all
Pokémon base statistics
--]]
local s = {}
local css = require('Css')
local ms = require('MiniSprite')
local list = require('Wikilib-lists')
local oop = require('Wikilib-oop')
local tab = require('Wikilib-tables')
local txt = require('Wikilib-strings')
local c = require("Colore-... | Minor graphical fixes on statslist | Minor graphical fixes on statslist
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
95b08955583748e56679d7e17c2b4a60c9cd0fff | lua/SgdMomentum.lua | lua/SgdMomentum.lua | local SgdMomentum = torch.class('nn.SgdMomentum')
function SgdMomentum:__init(module, criterion)
self.learningRate = 1e-2
self.learningRateDecay = 0.3
self.maxIteration = 100
self.convergeEps = 1e-6
self.momentum = 0.9
self.shuffleIndices = true
self.module = module
self.criterion = criterion
e... | local SgdMomentum = torch.class('nn.SgdMomentum')
function SgdMomentum:__init(module, criterion)
self.learningRate = 1e-2
self.learningRateDecay = 0.3
self.maxIteration = 100
self.convergeEps = 1e-6
self.momentum = 0.9
self.shuffleIndices = true
self.module = module
self.criterion = criterion
e... | Fix iteration convergence bug. | Fix iteration convergence bug.
Trainer would crash when converged.
| Lua | bsd-3-clause | blr246/midi-machine |
030e57b9312703978a4f109a9e39829611510fd9 | test_scripts/Polices/build_options/017_ATF_P_TC_PoliciesManager_Sets_Status_UPDATING_HTTP.lua | test_scripts/Polices/build_options/017_ATF_P_TC_PoliciesManager_Sets_Status_UPDATING_HTTP.lua | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] PoliciesManager changes status to “UPDATING”
-- [HMI API] OnStatusUpdate
--
-- Description:
-- PoliciesManager must change the status to “UPDATING” and notify HMI with
-- OnStatu... | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] PoliciesManager changes status to “UPDATING”
-- [HMI API] OnStatusUpdate
--
-- Description:
-- PoliciesManager must change the status to “UPDATING” and notify HMI with
-- OnStatu... | Fix wrong check in expect_notification | Fix wrong check in expect_notification
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
9ac78a9f145afbd1e214ecf41cb9f42e74d42f21 | example-rcfile.lua | example-rcfile.lua | function Set(t)
local s = {}
for _,v in pairs(t) do s[v] = true end
return s
end
function set_contains(t, e)
return t[e]
end
-- The set of global shortcuts we don't want to swap cmd/alt.
global_excludes = Set{ "shift-cmd-tab",
"cmd-tab" }
-- The set of apps we want to consider swapping keys for... | function Set(t)
local s = {}
for _,v in pairs(t) do s[v] = true end
return s
end
function set_contains(t, e)
return t[e]
end
-- The set of global shortcuts we don't want to swap cmd/alt.
global_excludes = Set{ "shift-cmd-tab",
"cmd-tab" }
-- The set of apps we want to consider swapping keys for... | Added an example of a Process with spaces in the name | Added an example of a Process with spaces in the name
Updated the example lua script to show how to specify a process
that has one or more spaces in its name (e.g., "NX Player for OS X").
Also fixed a bug when addressing a table that doesn't have an
"exclude" key.
| Lua | mit | frobware/cmd-key-happy,frobware/cmd-key-happy,frobware/cmd-key-happy,frobware/cmd-key-happy,andymcd/cmd-key-happy,jaequery/cmd-key-happy,frobware/cmd-key-happy,andymcd/cmd-key-happy,andymcd/cmd-key-happy,andymcd/cmd-key-happy,jaequery/cmd-key-happy,jaequery/cmd-key-happy,andymcd/cmd-key-happy |
17ce055658cd8bfb61a610ca04be8b343504c81e | applications/luci-splash/luasrc/controller/splash/splash.lua | applications/luci-splash/luasrc/controller/splash/splash.lua | module("luci.controller.splash.splash", package.seeall)
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
node("splash").target = call("action_dispatch")
node("splash", "activate").target = call("action_activate")
node("splash", "splash").target = template("splash_sp... | module("luci.controller.splash.splash", package.seeall)
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
node("splash").target = call("action_dispatch")
node("splash", "activate").target = call("action_activate")
node("splash", "splash").target = template("splash_sp... | applications/luci-splash: properly fix mac address detection in mixed IPv4/IPv6 environments (thanks stargieg) | applications/luci-splash: properly fix mac address detection in mixed IPv4/IPv6 environments (thanks stargieg)
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@4734 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 |
305929ef82ceb9cd02e027b69e2c21a4b28ab935 | test_scripts/Polices/build_options/007_ATF_P_TC_Policy_Table_Update_Trigger_After_N_Days_HTTP.lua | test_scripts/Polices/build_options/007_ATF_P_TC_Policy_Table_Update_Trigger_After_N_Days_HTTP.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PTU] Trigger: days
--
-- Description:
-- If the difference between current system time value_2 and system time value_1 when the previous
-- UpdatedPollicyTable was applied is equal or greater than t... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PTU] Trigger: days
--
-- Description:
-- If the difference between current system time value_2 and system time value_1 when the previous
-- UpdatedPollicyTable was applied is equal or greater than t... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
19d82e2d4867b6cbac407f5aecaba5ea69a556d5 | LUA/spec/eep/EepFunktionen_spec.lua | LUA/spec/eep/EepFunktionen_spec.lua | describe("EepFunktionen.lua", function()
require("ak.eep.AkEepFunktionen")
it("EEPVer steht auf \"15\"", function()
assert.are.equals("15", EEPVer)
end)
it("print() Funktion ", function()
clearlog()
end)
describe("EEPSetSignal", function()
describe("setzt Signal 2 auf Stellung 4", funct... | describe("EepFunktionen.lua", function()
require("ak.eep.AkEepFunktionen")
it("EEPVer steht auf \"15\"", function()
assert.are.equals(15, EEPVer)
end)
it("print() Funktion ", function()
clearlog()
end)
describe("EEPSetSignal", function()
describe("setzt Signal 2 auf St... | fix busted error - correct EEP-Version (number) | fix busted error - correct EEP-Version (number)
| Lua | mit | Andreas-Kreuz/ak-lua-skripte-fuer-eep,Andreas-Kreuz/ak-lua-skripte-fuer-eep |
5ca43e2c919987b702e2a49df361786563bfca9b | classes/diglot.lua | classes/diglot.lua | local plain = SILE.require("classes/plain");
local diglot = std.tree.clone(plain);
SILE.require("packages/counters");
SILE.scratch.counters.folio = { value = 1, display = "arabic" };
SILE.scratch.diglot = {}
if not(SILE.scratch.headers) then SILE.scratch.headers = {}; end
diglot:declareFrame("a", {left = "8.3%", ... | local plain = SILE.require("classes/plain");
local diglot = std.tree.clone(plain);
SILE.require("packages/counters");
SILE.scratch.counters.folio = { value = 1, display = "arabic" };
SILE.scratch.diglot = {}
if not(SILE.scratch.headers) then SILE.scratch.headers = {}; end
diglot:declareFrame("a", {left = "8.3%", ... | Fix font problems with parallels. (There are bigger unfixed problems.) | Fix font problems with parallels. (There are bigger unfixed problems.) | Lua | mit | simoncozens/sile,Nathan22Miles/sile,Nathan22Miles/sile,Nathan22Miles/sile,alerque/sile,WAKAMAZU/sile_fe,anthrotype/sile,simoncozens/sile,neofob/sile,shirat74/sile,neofob/sile,simoncozens/sile,anthrotype/sile,anthrotype/sile,neofob/sile,alerque/sile,alerque/sile,Nathan22Miles/sile,WAKAMAZU/sile_fe,WAKAMAZU/sile_fe,alerq... |
0b4c7a55d5d4012debc85b1dfc7c180f395b2347 | agents/monitoring/tests/net/init.lua | agents/monitoring/tests/net/init.lua | local table = require('table')
local async = require('async')
local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream
local misc = require('monitoring/default/util/misc')
local helper = require('../helper')
local timer = require('timer')
local fixtures = require('../fixtures')
l... | local table = require('table')
local async = require('async')
local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream
local misc = require('monitoring/default/util/misc')
local helper = require('../helper')
local timer = require('timer')
local fixtures = require('../fixtures')
l... | Change the net test, test_reconnects, to skip itself as it uses a test_server_fixture_blocking that calls a SIGUSR1. Windows can't SIGUSR1, see: http://docs.python.org/2/library/signal.html#signal.signal We'll need a Windows specific way of emulating the SIGUSR1 functionality in the Agent. | Change the net test, test_reconnects, to skip itself as it uses
a test_server_fixture_blocking that calls a SIGUSR1. Windows can't
SIGUSR1, see: http://docs.python.org/2/library/signal.html#signal.signal
We'll need a Windows specific way of emulating the SIGUSR1 functionality
in the Agent.
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
ca21c0d887b15a3f0f089d9a1e4dc98b0b66ed3a | agents/monitoring/lua/lib/protocol/connection.lua | agents/monitoring/lua/lib/protocol/connection.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... | Fix line parsing - use a better approach. | Fix line parsing - use a better approach.
| Lua | apache-2.0 | christopherjwang/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitorin... |
4e068f89c3d477996a97cb2bd537320a1e7c9a41 | ffi/framebuffer_android.lua | ffi/framebuffer_android.lua | local ffi = require("ffi")
local android = require("android")
local BB = require("ffi/blitbuffer")
local C = ffi.C
--[[ configuration for devices with an electric paper display controller ]]--
-- does the device has an e-ink screen?
local has_eink_screen, eink_platform = android.isEink()
-- does the device needs to ... | local ffi = require("ffi")
local android = require("android")
local BB = require("ffi/blitbuffer")
local C = ffi.C
--[[ configuration for devices with an electric paper display controller ]]--
-- does the device has an e-ink screen?
local has_eink_screen, eink_platform = android.isEink()
-- does the device needs to ... | [Android] Fix partial updates in landscape orientation (#1029) | [Android] Fix partial updates in landscape orientation (#1029)
| Lua | agpl-3.0 | Frenzie/koreader-base,koreader/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base |
833774664548775c9b1139aff2203afb571e8379 | src/tools/clang.lua | src/tools/clang.lua | --
-- clang.lua
-- Clang toolset adapter for Premake
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
premake.tools.clang = {}
local clang = premake.tools.clang
local gcc = premake.tools.gcc
local config = premake.config
--
-- Build a list of flags for the C preprocessor corresponding to the
-- se... | --
-- clang.lua
-- Clang toolset adapter for Premake
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
premake.tools.clang = {}
local clang = premake.tools.clang
local gcc = premake.tools.gcc
local config = premake.config
--
-- Build a list of flags for the C preprocessor corresponding to the
-- se... | Fix optimize 'Debug' for clang | Fix optimize 'Debug' for clang
The compiler flag '-Og' isn't valid for clang, so just turn
optimizations off when 'Debug' is specified.
| Lua | bsd-3-clause | lizh06/premake-core,dcourtois/premake-core,soundsrc/premake-core,starkos/premake-core,xriss/premake-core,xriss/premake-core,dcourtois/premake-core,noresources/premake-core,premake/premake-core,bravnsgaard/premake-core,jstewart-amd/premake-core,aleksijuvani/premake-core,TurkeyMan/premake-core,lizh06/premake-core,manders... |
455943552ea93a7d4a2c8c50701ca9f82e33e835 | mods/hbhunger/init.lua | mods/hbhunger/init.lua | if minetest.setting_getbool("enable_damage") then
hbhunger = {}
-- HUD statbar values
hbhunger.hunger = {}
hbhunger.hunger_out = {}
-- HUD item ids
local hunger_hud = {}
HUNGER_HUD_TICK = 1.0
--Some hunger settings
hbhunger.exhaustion = {} -- Exhaustion is experimental!
HUNGER_HUNGER_TICK = 800 -- time in seconds... | if minetest.setting_getbool("enable_damage") then
hbhunger = {}
-- HUD statbar values
hbhunger.hunger = {}
hbhunger.hunger_out = {}
-- HUD item ids
local hunger_hud = {}
HUNGER_HUD_TICK = 1.0
--Some hunger settings
hbhunger.exhaustion = {} -- Exhaustion is experimental!
HUNGER_HUNGER_TICK = 800 -- time in seconds... | Fix crash | Fix crash | Lua | unlicense | Gael-de-Sailly/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Coethium/server-minetestforfun,sys... |
96d5a0b9ee72c87ea43d6c41308dc3c703ca87fb | mod_register_web/mod_register_web.lua | mod_register_web/mod_register_web.lua | local captcha_options = module:get_option("captcha_options", {});
local nodeprep = require "util.encodings".stringprep.nodeprep;
local usermanager = require "core.usermanager";
local http = require "util.http";
function template(data)
-- Like util.template, but deals with plain text
return { apply = function(values)... | local captcha_options = module:get_option("captcha_options", {});
local nodeprep = require "util.encodings".stringprep.nodeprep;
local usermanager = require "core.usermanager";
local http = require "util.http";
function template(data)
-- Like util.template, but deals with plain text
return { apply = function(values)... | mod_register_web: Indentation fix | mod_register_web: Indentation fix
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
abd95832386c9a304da6c18ba3bde6e66e7600a7 | user_modules/utils.lua | user_modules/utils.lua | ---------------------------------------------------------------------------------------------------
-- Utils
---------------------------------------------------------------------------------------------------
--[[ General configuration parameters ]]
config.mobileHost = "127.0.0.1"
--[[ Required Shared libraries ]]
loc... | ---------------------------------------------------------------------------------------------------
-- Utils
---------------------------------------------------------------------------------------------------
--[[ General configuration parameters ]]
config.mobileHost = "127.0.0.1"
--[[ Required Shared libraries ]]
loc... | Fix issue in cloneTable function regarding empty arrays | Fix issue in cloneTable function regarding empty arrays
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
66cc52fa52d0231aa3191028063b6759f8b6cd0e | mod_lastlog/mod_lastlog.lua | mod_lastlog/mod_lastlog.lua | local datamanager = require "util.datamanager";
local time = os.time;
local log_ip = module:get_option_boolean("lastlog_ip_address", false);
local host = module.host;
module:hook("authentication-success", function(event)
local session = event.session;
if session.username then
datamanager.store(session.username, h... | local datamanager = require "util.datamanager";
local time = os.time;
local log_ip = module:get_option_boolean("lastlog_ip_address", false);
local host = module.host;
module:hook("authentication-success", function(event)
local session = event.session;
if session.username then
datamanager.store(session.username, h... | mod_lastlog: Fix command | mod_lastlog: Fix command
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
76fcc528fcdf4fb0b7f1683f7a2d1483105116b8 | lib/redis_hook.lua | lib/redis_hook.lua | -- Helper Methods
function getCountry()
local country = geodb:query_by_addr(ngx.var.remote_addr, "id")
return geoip.name_by_id(country)
end
function normalizeKeys(tbl)
local normalized = {}
for k, v in pairs(tbl) do
local key = k:gsub("amp;", "")
normalized[key] = v
end
return normalized
end
funct... | -- Helper Methods
function getCountry()
local country = geodb:query_by_addr(ngx.var.remote_addr, "id")
return geoip.name_by_id(country)
end
function normalizeKeys(tbl)
local normalized = {}
for k, v in pairs(tbl) do
local key = k:gsub("amp;", "")
normalized[key] = v
end
return normalized
end
funct... | fix year (and not just week) for the last week of the year | fix year (and not just week) for the last week of the year
| Lua | mit | FTBpro/count-von-count,FTBpro/count-von-count |
669c893b086450abb1239c22e7c03dc09c9bf972 | src/json/decode.lua | src/json/decode.lua | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local util = require("json.util")
local setmetatable, getmetatable = setmetatable, getmetatable
local assert = assert
local print = print
local tonumber = tonumber
local ipairs = ... | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local util = require("json.util")
local setmetatable, getmetatable = setmetatable, getmetatable
local assert = assert
local print = print
local tonumber = tonumber
local ipairs = ... | decode: Fix to support empty objects | decode: Fix to support empty objects
| Lua | mit | renchunxiao/luajson |
ead331924f7d8eb29e1f1a42fb4641fe0f0792da | frontend/ui/widget/toggleswitch.lua | frontend/ui/widget/toggleswitch.lua |
ToggleLabel = TextWidget:new{
bgcolor = 0,
fgcolor = 1,
}
function ToggleLabel:paintTo(bb, x, y)
renderUtf8Text(bb, x, y+self._height*0.75, self.face, self.text, true, self.bgcolor, self.fgcolor)
end
ToggleSwitch = InputContainer:new{
width = scaleByDPI(216),
height = scaleByDPI(30),
}
function ToggleSwitch:in... |
ToggleLabel = TextWidget:new{
bgcolor = 0,
fgcolor = 1,
}
function ToggleLabel:paintTo(bb, x, y)
renderUtf8Text(bb, x, y+self._height*0.75, self.face, self.text, true, self.bgcolor, self.fgcolor)
end
ToggleSwitch = InputContainer:new{
width = scaleByDPI(216),
height = scaleByDPI(30),
bgcolor = 0, -- unfoused i... | fix toggle color inconsistency | fix toggle color inconsistency
| Lua | agpl-3.0 | chrox/koreader,robert00s/koreader,mihailim/koreader,NiLuJe/koreader,Frenzie/koreader,mwoz123/koreader,poire-z/koreader,koreader/koreader,frankyifei/koreader,Hzj-jie/koreader,Frenzie/koreader,poire-z/koreader,houqp/koreader,NickSavage/koreader,lgeek/koreader,Markismus/koreader,NiLuJe/koreader,noname007/koreader,chihyang... |
8b295b583711cc4a79234849477ea31182a9d986 | plugins/kobolight.koplugin/main.lua | plugins/kobolight.koplugin/main.lua | local Device = require("device")
if not ((Device:isKindle() or Device:isKobo()) and Device:hasFrontlight()) then
return { disabled = true, }
end
local WidgetContainer = require("ui/widget/container/widgetcontainer")
local Screen = Device.screen
local UIManager = require("ui/uimanager")
local Notification = requir... | local Device = require("device")
if not ((Device:isKindle() or Device:isKobo()) and Device:hasFrontlight()) then
return { disabled = true, }
end
local WidgetContainer = require("ui/widget/container/widgetcontainer")
local Screen = Device.screen
local UIManager = require("ui/uimanager")
local Notification = requir... | Fix KoboLight sensitivity | Fix KoboLight sensitivity
Which was increasing after each opening of a document.
Closes #2605
| Lua | agpl-3.0 | koreader/koreader,Markismus/koreader,apletnev/koreader,Frenzie/koreader,poire-z/koreader,NiLuJe/koreader,lgeek/koreader,Frenzie/koreader,poire-z/koreader,houqp/koreader,NiLuJe/koreader,koreader/koreader,mihailim/koreader,robert00s/koreader,mwoz123/koreader,Hzj-jie/koreader,pazos/koreader |
54447400603783b2bc15d0882e4ba997796da354 | game/scripts/vscripts/modules/bosses/boss_loot.lua | game/scripts/vscripts/modules/bosses/boss_loot.lua | function Bosses:CreateBossLoot(unit, team)
local id = team .. "_" .. Bosses.NextVoteID
Bosses.NextVoteID = Bosses.NextVoteID + 1
local dropTables = PlayerTables:copy(DROP_TABLE[unit:GetUnitName()])
local totalDamage = 0
local damageByPlayers = {}
for pid, damage in pairs(unit.DamageReceived) do
if PlayerResour... | function Bosses:CreateBossLoot(unit, team)
local id = team .. "_" .. Bosses.NextVoteID
Bosses.NextVoteID = Bosses.NextVoteID + 1
local dropTables = PlayerTables:copy(DROP_TABLE[unit:GetUnitName()])
local totalDamage = 0
local damageByPlayers = {}
for pid, damage in pairs(unit.DamageReceived) do
if PlayerResour... | fix(bosses): hero changing now will be retried until success | fix(bosses): hero changing now will be retried until success
| Lua | mit | ark120202/aabs |
fbb244ee962ddcf483dc4c6adec30de6c2616436 | src/lua-factory/sources/grl-lastfm-cover.lua | src/lua-factory/sources/grl-lastfm-cover.lua | --[[
* Copyright (C) 2015 Bastien Nocera.
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at yo... | --[[
* Copyright (C) 2015 Bastien Nocera.
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at yo... | lua-factory: port grl-lastfm-cover.lua to the new lua system | lua-factory: port grl-lastfm-cover.lua to the new lua system
https://bugzilla.gnome.org/show_bug.cgi?id=753141
Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
| Lua | lgpl-2.1 | GNOME/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins |
f884bcbac382157800e0a02853960828fe6707ca | libs/fs.lua | libs/fs.lua | local prev, pl, dirname, dir = ...
local glob = prev.require 'posix.glob'.glob
local romPath = pl.path.normpath(pl.path.join(dirname, 'cc'))
local function findRomFile(path)
return pl.path.normpath(pl.path.join(romPath, path))
end
local function betterifyPath(path)
local oldPath
while oldPath ~= path do
oldPath... | local prev, pl, dirname, dir = ...
local glob = prev.require 'posix.glob'.glob
local romPath = pl.path.normpath(pl.path.join(dirname, 'cc'))
local function findRomFile(path)
return pl.path.normpath(pl.path.join(romPath, path))
end
local function betterifyPath(path)
local oldPath
while oldPath ~= path do
oldPath... | Add `fs.getDir` and `fs.getFreeSpace`, Fix `fs.getSize` | Add `fs.getDir` and `fs.getFreeSpace`, Fix `fs.getSize`
| Lua | mit | CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu |
f95e5426f35a1bb3f09a4e71a8126781b75d772d | orange/plugins/kafka/handler.lua | orange/plugins/kafka/handler.lua | local BasePlugin = require("orange.plugins.base_handler")
local cjson = require "cjson"
local producer = require "resty.kafka.producer"
local client = require "resty.kafka.client"
local KafkaHandler = BasePlugin:extend()
KafkaHandler.PRIORITY = 2000
function KafkaHandler:new(store)
KafkaHandler.super.new(self, "... | local BasePlugin = require("orange.plugins.base_handler")
local cjson = require "cjson"
local producer = require "resty.kafka.producer"
local KafkaHandler = BasePlugin:extend()
KafkaHandler.PRIORITY = 2000
function KafkaHandler:new(store)
KafkaHandler.super.new(self, "key_auth-plugin")
self.store = store
end... | fix phase bug: 1. Api disabled in log phrase 2.access phrase could not get fully info | fix phase bug: 1. Api disabled in log phrase 2.access phrase could not get fully info
| Lua | mit | thisverygoodhhhh/orange,thisverygoodhhhh/orange,sumory/orange,sumory/orange,sumory/orange,thisverygoodhhhh/orange |
7b16a973864e08684ad29d6753d1fd14c7bafb9c | src/daemon.lua | src/daemon.lua | --[[
transitd daemon main file
@file daemon.lua
@license The MIT License (MIT)
@author Alex <alex@maximum.guru>
@author William Fleurant <william@netblazr.com>
@author Serg <sklassen410@gmail.com>
@copyright 2016 Alex
@copyright 2016 William Fleurant
@copyright 2016 Serg
--]]
local config = require("... | --[[
transitd daemon main file
@file daemon.lua
@license The MIT License (MIT)
@author Alex <alex@maximum.guru>
@author William Fleurant <william@netblazr.com>
@author Serg <sklassen410@gmail.com>
@copyright 2016 Alex
@copyright 2016 William Fleurant
@copyright 2016 Serg
--]]
local config = require("... | Small fix | Small fix
| Lua | mit | transitd/transitd,intermesh-networks/transitd,transitd/transitd,intermesh-networks/transitd,transitd/transitd,pdxmeshnet/mnigs,pdxmeshnet/mnigs |
04ca12bb7fabca7004e42a8c2956c0cfd5fe72b5 | frontend/device/remarkable/device.lua | frontend/device/remarkable/device.lua | local Generic = require("device/generic/device") -- <= look at this file!
local logger = require("logger")
local function yes() return true end
local function no() return false end
local Remarkable = Generic:new{
model = "reMarkable",
isRemarkable = yes,
hasKeys = yes,
hasOTAUpdates = yes,
canRebo... | local Generic = require("device/generic/device") -- <= look at this file!
local logger = require("logger")
local function yes() return true end
local function no() return false end
local Remarkable = Generic:new{
model = "reMarkable",
isRemarkable = yes,
hasKeys = yes,
hasOTAUpdates = yes,
canRebo... | Fix remarkable pen input (#6031) | Fix remarkable pen input (#6031)
fixes #6030 | Lua | agpl-3.0 | NiLuJe/koreader,pazos/koreader,Frenzie/koreader,NiLuJe/koreader,Hzj-jie/koreader,koreader/koreader,Frenzie/koreader,koreader/koreader,poire-z/koreader,poire-z/koreader,Markismus/koreader,mwoz123/koreader |
9fec566036d1c3f79386129eae3a51fca4bf059b | triggerfield/lakeoflife_triggers.lua | triggerfield/lakeoflife_triggers.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... | Fixes | Fixes
| Lua | agpl-3.0 | Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content |
32ee1873ac89f2bd510d8982d702e127fc19d39b | modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua | modules/luci-mod-system/luasrc/model/cbi/admin_system/admin.lua | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("system", translate("Router Password"),
translate("Changes the administrator password for accessing the device"))
s = ... | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("system", translate("Router Password"),
translate("Changes the administrator password for accessing the device"))
m.app... | luci-base: fix misleading warning message when adding SSH keys | luci-base: fix misleading warning message when adding SSH keys
Prevent an incorrect / misleading "There are no changes to apply" message
from popping up when adding a new SSH key to the text box.
Fixes #2048.
Signed-off-by: Dirk Brenken <34c6fceca75e456f25e7e99531e2425c6c1de443@brenken.org>
[reword commit message]
Si... | Lua | apache-2.0 | openwrt/luci,openwrt/luci,tobiaswaldvogel/luci,openwrt-es/openwrt-luci,artynet/luci,openwrt-es/openwrt-luci,hnyman/luci,tobiaswaldvogel/luci,artynet/luci,Noltari/luci,openwrt-es/openwrt-luci,nmav/luci,openwrt/luci,Noltari/luci,lbthomsen/openwrt-luci,openwrt/luci,openwrt/luci,tobiaswaldvogel/luci,lbthomsen/openwrt-luci,... |
c919d8f108d7a5e00b477cdbe6c7aa8514a8f4cc | src/cli/config.lua | src/cli/config.lua | #!/usr/bin/env lua
local cutils = require "kong.cli.utils"
local constants = require "kong.constants"
local args = require("lapp")(string.format([[
Duplicate an existing configuration for given environment.
Usage: kong config [options]
Options:
-c,--config (default %s) configuration file
-o,--output (default .) ... | #!/usr/bin/env lua
local cutils = require "kong.cli.utils"
local constants = require "kong.constants"
local args = require("lapp")(string.format([[
Duplicate an existing configuration for given environment.
Usage: kong config [options]
Options:
-c,--config (default %s) configuration file
-o,--output (default .) ... | fix: TEST and DEVELOPMENT run in ./nginx_tmp | fix: TEST and DEVELOPMENT run in ./nginx_tmp
| Lua | apache-2.0 | Skyscanner/kong,skynet/kong,puug/kong,bbalu/kong,ChristopherBiscardi/kong,paritoshmmmec/kong,sbuettner/kong,wakermahmud/kong,ropik/kong,AnsonSmith/kong,peterayeni/kong,vmercierfr/kong,chourobin/kong |
cbde8473cf7b39597589a76aa3907c5ee9dd36c8 | src/demo/xmake.lua | src/demo/xmake.lua |
-- add target
target("demo")
-- add the dependent target
add_deps("tbox")
-- make as a binary
set_kind("binary")
-- add defines
add_defines("__tb_prefix__=\"demo\"")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add links directory
add_linkdirs("$(b... |
-- add target
target("demo")
-- add the dependent target
add_deps("tbox")
-- make as a binary
set_kind("binary")
-- add defines
add_defines("__tb_prefix__=\"demo\"")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add links directory
add_linkdirs("$(b... | fix compile error for spider | fix compile error for spider
| Lua | apache-2.0 | waruqi/tbox,tboox/tbox,waruqi/tbox,tboox/tbox |
1d3a8c551b152463ed41142354686d8f567216b2 | src/lua/lluv/redis.lua | src/lua/lluv/redis.lua | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-redis library.
--
----... | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-redis library.
--
----... | Fix. Set ready before open callback. | Fix. Set ready before open callback.
| Lua | mit | moteus/lua-lluv-redis |
9d45b4f99445fdb75346710955bdb7e2b29a1cc2 | BatchNormalization.lua | BatchNormalization.lua | --Based on: http://arxiv.org/pdf/1502.03167v3
--If input dimension is larger than 1, a reshape is needed before and after usage.
--Usage example:
------------------------------------
-- model:add(nn.Reshape(3 * 32 * 32))
-- model:add(batchNormalization(3 * 32 * 32))
-- model:add(nn.Reshape(3 , 32 , 32))
--... | --Based on: http://arxiv.org/pdf/1502.03167v3
--Usage example:
------------------------------------
-- model:add(nn.BatchNormalization(3 * 32 * 32))
------------------------------------
require 'nn'
require 'cunn'
local BatchNormalization, parent = torch.class('nn.BatchNormalization', 'nn.Module')
functio... | Activation function based on: http://arxiv.org/pdf/1502.03167v3 | Activation function based on: http://arxiv.org/pdf/1502.03167v3
Fixed the comment
| Lua | mit | clementfarabet/lua---nnx |
1f996001a3d4fa6cd98905b0de9158bdc2895e1c | Modules/Utility/os.lua | Modules/Utility/os.lua | -- @author Narrev
local function date(formatString, unix)
--- Allows you to use os.date in RobloxLua!
-- date ([format [, time]])
-- This is an optimized version. If you want to see how the numbers work, see the following:
-- https://github.com/Narrev/Unix-Epoch-Date-and-Time-Calculations/blob/master/Time%20Funct... | -- @author Narrev
local function date(formatString, unix)
--- Allows you to use os.date in RobloxLua!
-- date ([format [, time]])
-- This is an optimized version. If you want to see how the numbers work, see the following:
-- https://github.com/Narrev/Unix-Epoch-Date-and-Time-Calculations/blob/master/Time%20Funct... | Added optimized suffix function | Added optimized suffix function | Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
30d5ec4160a3204236dd4c8079b3ecc995165bdf | src/npge/algo/SequencesToLua.lua | src/npge/algo/SequencesToLua.lua | return function(blockset)
local wrap, yield = coroutine.wrap, coroutine.yield
return wrap(function()
yield [[do
local Sequence = require 'npge.model.Sequence'
local name2seq = {}
]]
local text = "name2seq[%q] = Sequence.fromRef(%q)\n"
for seq in blockset:i... | return function(blockset)
local wrap, yield = coroutine.wrap, coroutine.yield
return wrap(function()
local preamble = [[do
local Sequence = require 'npge.model.Sequence'
local name2seq = {}
]]
yield(preamble)
local text = "name2seq[%q] = Sequence.fromRef(%... | change SequencesToLua to increase coverage | change SequencesToLua to increase coverage
(workaround luacov's bug)
| Lua | mit | npge/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge |
8528fa3aa22d45ae9292690134dbf0c343dcb7b9 | libs/core/luasrc/model/wireless.lua | libs/core/luasrc/model/wireless.lua | --[[
LuCI - Wireless model
Copyright 2009 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
Unless required by applica... | --[[
LuCI - Wireless model
Copyright 2009 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
Unless required by applica... | libs/core: fixes luci.model.wireless | libs/core: fixes luci.model.wireless
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5438 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 |
247761ae57af548c52a8bb0d5dbb60fba9729a18 | src/lib/cpuset.lua | src/lib/cpuset.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local numa = require('lib.numa')
local S = require('syscall')
local CPUSet = {}
function new()
return setmetatable({by_node={}}, {__index=CPUSet})
end
do
local cpuset = false
function global_cpuset()
... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local numa = require('lib.numa')
local S = require('syscall')
local CPUSet = {}
function new()
return setmetatable({by_node={}}, {__index=CPUSet})
end
do
local cpuset = false
function global_cpuset()
... | lib.cpuset: fix assertion in add, add contains/remove/list methods | lib.cpuset: fix assertion in add, add contains/remove/list methods
| Lua | apache-2.0 | snabbco/snabb,snabbco/snabb,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb |
46b127a9ccee3a01f95bee47e81305238ab17f3a | src/lua-factory/sources/grl-video-title-parsing.lua | src/lua-factory/sources/grl-video-title-parsing.lua | --[[
* Copyright (C) 2014 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) 2014 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-video-title-parsing.lua to the new lua system | lua-factory: port grl-video-title-parsing.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 | jasuarez/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins |
566c7b3e548011950503b3bfa7139fac3cc02fa0 | test_scripts/Polices/build_options/ATF_transfer_SystemRequest_from_app_to_HMI.lua | test_scripts/Polices/build_options/ATF_transfer_SystemRequest_from_app_to_HMI.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PTU-Proprietary] Transfer SystemRequest from mobile app to HMI
--
-- Description:
-- 1. Used preconditions: SDL is built with "DEXTENDED_POLICY: ON" flag. Trigger for PTU occurs
-- 2. Performed step... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PTU-Proprietary] Transfer SystemRequest from mobile app to HMI
--
-- Description:
-- 1. Used preconditions: SDL is built with "DEXTENDED_POLICY: ON" flag. Trigger for PTU occurs
-- 2. Performed step... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
64949444f65385455bd4bbdc1af6a14040eecfd7 | frontend/ui/reader/readerzooming.lua | frontend/ui/reader/readerzooming.lua | ReaderZooming = InputContainer:new{
zoom = 1.0,
-- default to nil so we can trigger ZoomModeUpdate events on start up
zoom_mode = nil,
DEFAULT_ZOOM_MODE = "page",
current_page = 1,
rotation = 0
}
function ReaderZooming:init()
if Device:hasKeyboard() then
self.key_events = {
ZoomIn = {
{ "Shift", Input.... | ReaderZooming = InputContainer:new{
zoom = 1.0,
-- default to nil so we can trigger ZoomModeUpdate events on start up
zoom_mode = nil,
DEFAULT_ZOOM_MODE = "page",
current_page = 1,
rotation = 0
}
function ReaderZooming:init()
if Device:hasKeyboard() then
self.key_events = {
ZoomIn = {
{ "Shift", Input.... | bugfix: calculate page zoom before hinting | bugfix: calculate page zoom before hinting
| Lua | agpl-3.0 | frankyifei/koreader-base,pazos/koreader,mwoz123/koreader,chihyang/koreader,mihailim/koreader,koreader/koreader,NiLuJe/koreader-base,apletnev/koreader-base,frankyifei/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,noname007/koreader,houqp/koreader-base,NickSavage/koreader,Hzj-jie/koreader,chrox/koreader,Frenzi... |
9dbec408c321b4f1f58cecf208913d3e7ac81982 | fusion/stdlib/functional.lua | fusion/stdlib/functional.lua | --- Module for "functional" iterators and functions.
-- @module fusion.stdlib.functional
local unpack = unpack or table.unpack -- luacheck: ignore 113
--- Return an iterator over a value if possible or the value passed.
-- Possible value types can be strings and any object with __pairs or __ipairs
-- metadata.
-- @tpa... | --- Module for "functional" iterators and functions.
-- @module fusion.stdlib.functional
local unpack = unpack or table.unpack -- luacheck: ignore 113
--- Return an iterator over a value if possible or the value passed.
-- Possible value types can be strings and any object with __pairs or __ipairs
-- metadata.
-- @tpa... | functional: fix iter() and map() | functional: fix iter() and map()
| Lua | mit | RyanSquared/FusionScript |
5ce3fd1b678b5cece1034bb64f61a90c3e390d4c | framework/sound.lua | framework/sound.lua | --=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
local AL = require( "openal" )
local SDL = require( "SDL" )
local SDL_sound = require( "SDL_sound" )
require( "class" )
local ffi = require... | --=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
local AL = require( "openal" )
local SDL = require( "sdl" )
local SDL_sound = require( "sdl_sound" )
require( "class" )
local ffi = require... | Fix OpenAL and SDL_sound integration | Fix OpenAL and SDL_sound integration
| Lua | mit | Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework |
755756a66f5500e4d4e1150fda582a09025eaef0 | init.lua | init.lua | local framework = require('framework')
local CommandOutputDataSource = framework.CommandOutputDataSource
local PollerCollection = framework.PollerCollection
local DataSourcePoller = framework.DataSourcePoller
local Plugin = framework.Plugin
local os = require('os')
local table = require('table')
local string = require(... | local framework = require('framework')
local CommandOutputDataSource = framework.CommandOutputDataSource
local PollerCollection = framework.PollerCollection
local DataSourcePoller = framework.DataSourcePoller
local Plugin = framework.Plugin
local os = require('os')
local table = require('table')
local string = require(... | Fix when host is not found. | Fix when host is not found.
Signed-off-by: GabrielNicolasAvellaneda <83a8591a9a34d9745961eaad83d1d871cc3e5445@gmail.com>
| Lua | apache-2.0 | GabrielNicolasAvellaneda/boundary-plugin-ping-check,jdgwartney/boundary-plugin-ping-check,boundary/boundary-plugin-ping-check |
fe7c50d0826a477782e5d76404da43090f0ced42 | examples/l2-load-latency.lua | examples/l2-load-latency.lua | -- vim:ts=4:sw=4:noexpandtab
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local ts = require "timestamping"
local stats = require "stats"
local hist = require "histogram"
local PKT_SIZE = 60
function master(...)
local txPort, rxPort, rate = tonumberall(...)
if not ... | -- vim:ts=4:sw=4:noexpandtab
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local ts = require "timestamping"
local stats = require "stats"
local hist = require "histogram"
local PKT_SIZE = 60
local ETH_DST = "11:12:13:14:15:16"
function master(...)
local txPort, rxPo... | examples: fix dst addr in l2-load-latency | examples: fix dst addr in l2-load-latency
| Lua | mit | emmericp/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,atheurer/MoonGen,slyon/MoonGen,scholzd/MoonGen,bmichalo/MoonGen,schoenb/MoonGen,gallenmu/MoonGen,wenhuizhang/MoonGen,scholzd/MoonGen,kidaa/MoonGen,duk3luk3/MoonGen,werpat/MoonGen,wenhuizhang/MoonGen,bmichalo/MoonGen,duk3luk3/MoonGen,kidaa/MoonGen,NetronomeMoongen/Moon... |
d7a899d4c9c26ae418711cf9a2b4e3727d4efd26 | kong/plugins/filelog/log.lua | kong/plugins/filelog/log.lua | -- Copyright (C) Mashape, Inc.
local ffi = require "ffi"
local bit = require "bit"
local cjson = require "cjson"
local fd_util = require "kong.plugins.filelog.fd_util"
local basic_serializer = require "kong.plugins.log_serializers.basic"
ffi.cdef[[
int open(char * filename, int flags, int mode);
int write(int fd, voi... | -- Copyright (C) Mashape, Inc.
local ffi = require "ffi"
local bit = require "bit"
local cjson = require "cjson"
local fd_util = require "kong.plugins.filelog.fd_util"
local basic_serializer = require "kong.plugins.log_serializers.basic"
ffi.cdef[[
int open(char * filename, int flags, int mode);
int write(int fd, voi... | Fixing file permissions, closes #461 | Fixing file permissions, closes #461
| Lua | apache-2.0 | ChristopherBiscardi/kong,AnsonSmith/kong,peterayeni/kong,skynet/kong |
1c8a0adbf78a755c821da515e83fce11b5543cdc | nyagos.d/comspec.lua | nyagos.d/comspec.lua | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
if nyagos.goos == "windows" then
for _,name in pairs{
"assoc",
"dir",
"mklink",
"ren",
"rename",
} do
nyagos.alias[name] = "%COMSPEC% /c "..name.." $*"
end... | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
if nyagos.goos == "windows" then
local comspec = nyagos.env.comspec
if not comspec or comspec == "" then
comspec = "CMD.EXE"
end
for _,name in pairs{
"assoc",
"dir",
"m... | Fix: aliases using CMD.EXE did not work when %COMSPEC% is not defined. | Fix: aliases using CMD.EXE did not work when %COMSPEC% is not defined.
| Lua | bsd-3-clause | zetamatta/nyagos,nocd5/nyagos,tsuyoshicho/nyagos |
4ef548cc9dea1424707edafead3eed64150a996f | script/c27971137.lua | script/c27971137.lua | --腐乱犬
function c27971137.initial_effect(c)
--atk change
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetOperation(c27971137.atop)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(... | --腐乱犬
function c27971137.initial_effect(c)
--atk change
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetOperation(c27971137.atop)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(... | Update c27971137.lua | Update c27971137.lua
fix | Lua | mit | SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher |
9840697e96b35f3a65baba0aa683b4e2823bba45 | rima.lua | rima.lua | --
-- rima.lua
--
--
-- Task manager for imap collector.
-- Task's key is a user email address.
-- Rima can manage some tasks with the same key.
-- Tasks with identical keys will be groupped and managed as one bunch of tasks.
--
-- Producers can adds tasks by rima_put() calls.
-- Consumer request a bunch of tasks (wit... | --
-- rima.lua
--
--
-- Task manager for imap collector.
-- Task's key is a user email address.
-- Rima can manage some tasks with the same key.
-- Tasks with identical keys will be groupped and managed as one bunch of tasks.
--
-- Producers can adds tasks by rima_put() calls.
-- Consumer request a bunch of tasks (wit... | rima.lua: remove debug message; fix | rima.lua: remove debug message; fix
| Lua | bsd-2-clause | spectrec/tntlua,grechkin-pogrebnyakov/tntlua,mailru/tntlua,BHYCHIK/tntlua,derElektrobesen/tntlua |
1a6615b79152e36724c8083557d98c94aa3b55ad | lib/http.lua | lib/http.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... | fixes for http.lua | fixes for http.lua
| Lua | apache-2.0 | sousoux/luvit,AndrewTsao/luvit,bsn069/luvit,boundary/luvit,kaustavha/luvit,connectFree/lev,kaustavha/luvit,rjeli/luvit,sousoux/luvit,boundary/luvit,boundary/luvit,zhaozg/luvit,luvit/luvit,DBarney/luvit,sousoux/luvit,AndrewTsao/luvit,sousoux/luvit,boundary/luvit,DBarney/luvit,rjeli/luvit,boundary/luvit,rjeli/luvit,bound... |
881f6f9e4909b0ecc8e7c1df10232938b90bc3fb | src/extensions/cp/console/history.lua | src/extensions/cp/console/history.lua | --- === cp.console.history ===
---
--- Console History Manager.
---
--- Based on code by @asmagill
--- https://github.com/asmagill/hammerspoon-config-take2/blob/master/utils/_actions/consoleHistory.lua
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
---------------... | --- === cp.console.history ===
---
--- Console History Manager.
---
--- Based on code by @asmagill
--- https://github.com/asmagill/hammerspoon-config-take2/blob/master/utils/_actions/consoleHistory.lua
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
---------------... | Tweaks | Tweaks
- Fixed an error message that would occur the first time you install
CommandPost where the Console History will try to write `nil` to the
JSON prop.
- Removed unnecesssary code from `cp.console.history`
| Lua | mit | CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks |
4f2789ca0df4b51af264f11c2de3510c1db874d2 | util/hashes.lua | util/hashes.lua |
local softreq = function (...) return select(2, pcall(require, ...)); end
local error = error;
module "hashes"
local md5 = softreq("md5");
if md5 then
if md5.digest then
local md5_digest = md5.digest;
local sha1_digest = sha1.digest;
function _M.md5(input)
return md5_digest(input);
end
function _M.sha1... |
local softreq = function (...) local ok, lib = pcall(require, ...); if ok then return lib; else return nil; end end
local error = error;
module "hashes"
local md5 = softreq("md5");
if md5 then
if md5.digest then
local md5_digest = md5.digest;
local sha1_digest = sha1.digest;
function _M.md5(input)
return ... | Fix softreq, so it reports when no suitable MD5 library is found | Fix softreq, so it reports when no suitable MD5 library is found
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
829e7388c12114e634fed630af16488585e326c3 | 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.
]]
local players = {}
local staminaHud = {}
minetest.reg... | --[[
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.
]]
local players = {}
local staminaHud = {}
minetest.reg... | remove useless condition (bug?) | remove useless condition (bug?)
| Lua | unlicense | sys4-fr/server-minetestforfun,sys4-fr/server-minetestforfun,Coethium/server-minetestforfun,sys4-fr/server-minetestforfun,MinetestForFun/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforf... |
888a86b8a191d5f2e490419b9b4e674eb1d14629 | net/http/parser.lua | net/http/parser.lua | local tonumber = tonumber;
local assert = assert;
local url_parse = require "socket.url".parse;
local urldecode = require "util.http".urldecode;
local function preprocess_path(path)
path = urldecode((path:gsub("//+", "/")));
if path:sub(1,1) ~= "/" then
path = "/"..path;
end
local level = 0;
for component in pa... | local tonumber = tonumber;
local assert = assert;
local url_parse = require "socket.url".parse;
local urldecode = require "util.http".urldecode;
local function preprocess_path(path)
path = urldecode((path:gsub("//+", "/")));
if path:sub(1,1) ~= "/" then
path = "/"..path;
end
local level = 0;
for component in pa... | net.http.parser: Fix whitespace/indentation | net.http.parser: Fix whitespace/indentation
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
925991715f2472d66ce73f5e636d72cfa40d9db2 | lua_modules/ds18b20/ds18b20.lua | lua_modules/ds18b20/ds18b20.lua | --------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- by @voborsky, @devsaurus
-- encoder module is needed only for debug output; lines can be removed if no
-- debug output is needed and/or encoder module is missing
--
-- by default the module is for ... | --------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- by @voborsky, @devsaurus
-- encoder module is needed only for debug output; lines can be removed if no
-- debug output is needed and/or encoder module is missing
--
-- by default the module is for ... | Fix float version, auto-detect int/float, OO tmr (#1866) | Fix float version, auto-detect int/float, OO tmr (#1866)
| Lua | mit | FelixPe/nodemcu-firmware,HEYAHONG/nodemcu-firmware,djphoenix/nodemcu-firmware,FrankX0/nodemcu-firmware,nwf/nodemcu-firmware,luizfeliperj/nodemcu-firmware,oyooyo/nodemcu-firmware,eku/nodemcu-firmware,vsky279/nodemcu-firmware,devsaurus/nodemcu-firmware,HEYAHONG/nodemcu-firmware,vsky279/nodemcu-firmware,marcelstoer/nodemc... |
4d27c5b7a95718db5e1892574b2ec2ab3cbbc4a7 | OvalePassiveAura.lua | OvalePassiveAura.lua | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2014 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
file accompanying this program.
--]... | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2014 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
file accompanying this program.
--]... | Fix the cooldown recovery rate for Vial of Living Corruption. | Fix the cooldown recovery rate for Vial of Living Corruption.
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@1488 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | eXhausted/Ovale,ultijlam/ovale,eXhausted/Ovale,Xeltor/ovale,ultijlam/ovale,ultijlam/ovale,eXhausted/Ovale |
6a471a219912c1bc7a3daccebe0d6e81e2eac684 | Modules/Shared/Character/HumanoidTeleportUtils.lua | Modules/Shared/Character/HumanoidTeleportUtils.lua | --- Utility for teleporting humanoids
-- @module HumanoidTeleportUtils
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Raycaster = require("Raycaster")
local HumanoidTeleportUtils = {}
local REQUIRED_SPACE = 7
local SEARCH_UP_TO = 40
-- @param[opt=nil] raycaster Option... | --- Utility for teleporting humanoids
-- @module HumanoidTeleportUtils
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Raycaster = require("Raycaster")
local HumanoidTeleportUtils = {}
local REQUIRED_SPACE = 7
local SEARCH_UP_TO = 40
-- @param[opt=nil] raycaster Option... | Fix teleport predicate filter | Fix teleport predicate filter
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
1e1043b29ca48a0cc181bac3a5e60ea982f3640a | nyagos.d/suffix.lua | nyagos.d/suffix.lua | nyagos.suffixes={}
local function _suffix(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not nyagos.suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffix
... | nyagos.suffixes={}
local function _suffix(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not nyagos.suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffix
... | Update suffix.py | Update suffix.py
| Lua | bsd-3-clause | hattya/nyagos,kissthink/nyagos,tyochiai/nyagos,kissthink/nyagos,hattya/nyagos,zetamatta/nyagos,nocd5/nyagos,kissthink/nyagos,hattya/nyagos,tsuyoshicho/nyagos |
20b8f8d7202c1c398c9287f73ed00133e50f5ed3 | pud/view/GameCam.lua | pud/view/GameCam.lua | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local math_max, math_min = math.max, math.min
local _zoomLevels = {1, 0.5, 0.25}
local _isVector = function(...)
local n = select('#',...)
... | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local math_max, math_min = math.max, math.min
local _zoomLevels = {1, 0.5, 0.25}
local _isVector = function(...)
local n = select('#',...)
... | fix stack overflow when following an already followed target | fix stack overflow when following an already followed target
| Lua | mit | scottcs/wyx |
9ef9a4349ae65ae12c3080fd997641c56a24f111 | ios-icons/cache.lua | ios-icons/cache.lua | local format = string.format
local cache = {}
-- add a function to get a list of keys
-- add delete function
-- what about a protocol so that we can have caches with a backend other than the file system?
-- (then what about Lua FUSE?)
function cache.new(path, keytransform)
assert(type(path) == 'string' and #path ... | local format = string.format
local execute = os.execute
local open = io.open
local cache = {}
-- add a function to get a list of keys
-- what about a protocol so that we can have caches with a backend other than the file system?
-- (then what about Lua FUSE?)
function cache.new(path, keytransform)
assert(type(pat... | fixed bug in get; added remove function | fixed bug in get; added remove function
| Lua | mit | profburke/ios-icons,profburke/ios-icons,profburke/ios-icons |
a26e0aba244379df13334f4a8bf22f8a3739f1a1 | regress/regress.lua | regress/regress.lua | local require = require -- may be overloaded by regress.require
local auxlib = require"cqueues.auxlib"
local regress = {
cqueues = require"cqueues",
socket = require"cqueues.socket",
thread = require"cqueues.thread",
errno = require"cqueues.errno",
condition = require"cqueues.condition",
auxlib = auxlib,
assert... | local require = require -- may be overloaded by regress.require
local auxlib = require"cqueues.auxlib"
local regress = {
cqueues = require"cqueues",
socket = require"cqueues.socket",
thread = require"cqueues.thread",
errno = require"cqueues.errno",
condition = require"cqueues.condition",
auxlib = auxlib,
assert... | fix test 87-alpn-disappears, which relies on package.searchpath, for Lua 5.1 | fix test 87-alpn-disappears, which relies on package.searchpath, for Lua 5.1
| Lua | mit | wahern/cqueues,wahern/cqueues,daurnimator/cqueues,daurnimator/cqueues |
1fc34a088a0ab5215bc3c2978875fe1c23d97c2b | resources/syncplay.lua | resources/syncplay.lua | --[==========================================================================[
syncplay.lua: Syncplay interface module
--[==========================================================================[
Author: Etoh
--]==========================================================================]
require "common"
require "... | --[==========================================================================[
syncplay.lua: Syncplay interface module
--[==========================================================================[
Author: Etoh
--]==========================================================================]
require "common"
require "... | update resources/syncplay.lua - fixed play/pause | update resources/syncplay.lua - fixed play/pause | Lua | apache-2.0 | Syncplay/syncplay,Syncplay/syncplay,NeverDecaf/syncplay,NeverDecaf/syncplay,alby128/syncplay,alby128/syncplay |
7b75aba6fc43cf8b2552b181bd851d4f79e5ed15 | src/program/lisper/dev-env/l2tp.lua | src/program/lisper/dev-env/l2tp.lua | #!/usr/bin/env luajit
io.stdout:setvbuf'no'
io.stderr:setvbuf'no'
--L2TP IP-over-IPv6 tunnelling program for testing.
local function assert(v, ...)
if v then return v, ... end
error(tostring((...)), 2)
end
local ffi = require'ffi'
local S = require'syscall'
local C = ffi.C
local htons = require's... | #!/usr/bin/env luajit
io.stdout:setvbuf'no'
io.stderr:setvbuf'no'
--L2TP IP-over-IPv6 tunnelling program for testing.
local function assert(v, ...)
if v then return v, ... end
error(tostring((...)), 2)
end
local ffi = require'ffi'
local S = require'syscall'
local C = ffi.C
local htons = require's... | bugfix for incredible silliness | bugfix for incredible silliness
| Lua | apache-2.0 | eugeneia/snabbswitch,kbara/snabb,Igalia/snabb,Igalia/snabb,Igalia/snabb,Igalia/snabbswitch,mixflowtech/logsensor,alexandergall/snabbswitch,Igalia/snabbswitch,dpino/snabb,snabbco/snabb,alexandergall/snabbswitch,mixflowtech/logsensor,mixflowtech/logsensor,Igalia/snabb,eugeneia/snabb,wingo/snabbswitch,wingo/snabb,snabbco/... |
8c1eab280d6fd1d01b5214a8713192d0dc3b6a77 | src/apps/ddos/ddos.lua | src/apps/ddos/ddos.lua | module(..., package.seeall)
local app = require("core.app")
local buffer = require("core.buffer")
local datagram = require("lib.protocol.datagram")
local ffi = require("ffi")
local filter = require("lib.pcap.filter")
local ipv4 = require("lib.protocol.ipv4")
local lib = require("core.lib")
local link = require("core.l... | module(..., package.seeall)
local app = require("core.app")
local buffer = require("core.buffer")
local datagram = require("lib.protocol.datagram")
local ffi = require("ffi")
local filter = require("lib.pcap.filter")
local ipv4 = require("lib.protocol.ipv4")
local lib = require("core.lib")
local link = require("core.l... | Fix bug and add stats | Fix bug and add stats
| Lua | apache-2.0 | plajjan/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch |
435640f3500a1b4ba4d5487cef64f8256fd0483c | pud/view/GameCam.lua | pud/view/GameCam.lua | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local _zoomLevels = {1, 0.5, 0.25}
local _isVector = function(...)
local n = select('#',...)
for i=1,n do
local v = select(i,...)
assert... | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local _zoomLevels = {1, 0.5, 0.25}
local _isVector = function(...)
local n = select('#',...)
for i=1,n do
local v = select(i,...)
assert... | fix destructor | fix destructor
| Lua | mit | scottcs/wyx |
39678e68b35c83317c5dcd04513dcb0799e2a99b | src/ui/MainMenuView.lua | src/ui/MainMenuView.lua | local class = require 'lib/30log'
local GameObject = require 'src/GameObject'
local Transform = require 'src/component/Transform'
local Renderable = require 'src/component/Renderable'
local Interfaceable = require 'src/component/Interfaceable'
local Polygon = require 'src/datatype/Polygon'
local TouchDelegate = require... | local class = require 'lib/30log'
local GameObject = require 'src/GameObject'
local Transform = require 'src/component/Transform'
local Renderable = require 'src/component/Renderable'
local Interfaceable = require 'src/component/Interfaceable'
local Polygon = require 'src/datatype/Polygon'
local TouchDelegate = require... | fixed main menu scaling | fixed main menu scaling
| Lua | mit | Sewerbird/Helios2400,Sewerbird/Helios2400,Sewerbird/Helios2400 |
24038a8a6a70a6d0f28099479504487b6042bdb0 | premake4.lua | premake4.lua | ------------------------------------------------------------------
-- premake 4 Pyros3D solution
------------------------------------------------------------------
solution "Pyros3D"
-- Make Directories
os.mkdir("bin");
os.mkdir("build");
os.mkdir("include");
os.mkdir("libs");
newoption {
... | ------------------------------------------------------------------
-- premake 4 Pyros3D solution
------------------------------------------------------------------
solution "Pyros3D"
-- Make Directories
os.mkdir("bin");
os.mkdir("build");
os.mkdir("include");
os.mkdir("libs");
newoption {
... | Fixed Premake file | Fixed Premake file
| Lua | mit | Peixinho/Pyros3D,Peixinho/Pyros3D,Peixinho/Pyros3D |
622f70f6e31180e1d9b32a90fca73eeb6a3c4199 | mglupdate-2.x/index.lua | mglupdate-2.x/index.lua | --ihaveamac--
-- updater issues go to https://github.com/ihaveamac/another-file-manager/issues
-- licensed under the MIT license: https://github.com/ihaveamac/another-file-manager/blob/master/LICENSE.md
getstate_url = "http://ianburgwin.net/mglupdate/updatestate.php"
versionh_url = "http://ianburgwin.net/mglupdate/ver... | --ihaveamac--
-- updater issues go to https://github.com/ihaveamac/mashers-gl-updater/issues
-- licensed under the MIT license: https://github.com/ihaveamac/mashers-gl-updater/blob/master/LICENSE.md
getstate_url = "http://ianburgwin.net/mglupdate-2/updatestate.php"
versionh_url = "http://ianburgwin.net/mglupdate-2/ver... | fix urls, add debug code for testing | fix urls, add debug code for testing
| Lua | mit | ihaveamac/mashers-gl-updater,ihaveamac/mashers-gl-updater |
89fa73eff9baf29da4070caa957dfd32702a2c7b | soressa/soressa.lua | soressa/soressa.lua | local led = require "led"
local time = require "time"
local mq
local DEVICE_ID = wifi.sta.getmac()
local on_wifi = wifi.sta.eventMonReg
local void = function (...) end
local function stop_events()
uart.on("data")
tmr.stop(1)
if mq then mq:close() end
end
local function wifi_err(...)
print("Wifi error... | local ap = require "ap"
local led = require "led"
local time = require "time"
local mq
local DEVICE_ID = wifi.sta.getmac()
local on_wifi = wifi.sta.eventMonReg
local void = function (...) end
local function stop_events()
uart.on("data")
tmr.stop(1)
if mq then mq:close() end
end
local function wifi_err(..... | Fix to compile. | Fix to compile.
| Lua | mit | alexandrevicenzi/tcc,alexandrevicenzi/tcc,alexandrevicenzi/tcc,alexandrevicenzi/tcc |
7692c244e300feb5d686f71caf025a909951afc9 | kong/dao/error.lua | kong/dao/error.lua | -- DAOs need more specific error objects, specifying if the error is due
-- to the schema, the database connection, a constraint violation etc, so the
-- caller can take actions based on the error type.
--
-- We will test this object and might create a KongError class too
-- if successful and needed.
--
-- Ideally, tho... | -- DAOs need more specific error objects, specifying if the error is due
-- to the schema, the database connection, a constraint violation etc, so the
-- caller can take actions based on the error type.
--
-- We will test this object and might create a KongError class too
-- if successful and needed.
--
-- Ideally, tho... | fix: comply to resty-cassandra's new errors | fix: comply to resty-cassandra's new errors
| Lua | apache-2.0 | akh00/kong,Vermeille/kong,kyroskoh/kong,kyroskoh/kong,ccyphers/kong,ind9/kong,salazar/kong,vzaramel/kong,streamdataio/kong,icyxp/kong,isdom/kong,isdom/kong,rafael/kong,jebenexer/kong,jerizm/kong,Mashape/kong,beauli/kong,ind9/kong,vzaramel/kong,ejoncas/kong,rafael/kong,streamdataio/kong,xvaara/kong,smanolache/kong,ejonc... |
e6997ab93ef7c0d29ab6b89c9086870ef681afea | evaluation.lua | evaluation.lua | --
-- Created by IntelliJ IDEA.
-- User: bking
-- Date: 1/30/17
-- Time: 2:25 AM
-- To change this template use File | Settings | File Templates.
--
package.path = ';/homes/iws/kingb12/LanguageModelRNN/?.lua;'..package.path
require 'torch'
require 'nn'
require 'nnx'
require 'util'
require 'torch-rnn'
require 'Dynamic... | --
-- Created by IntelliJ IDEA.
-- User: bking
-- Date: 1/30/17
-- Time: 2:25 AM
-- To change this template use File | Settings | File Templates.
--
package.path = ';/homes/iws/kingb12/LanguageModelRNN/?.lua;'..package.path
require 'torch'
require 'nn'
require 'nnx'
require 'util'
require 'torch-rnn'
require 'Dynamic... | fixed eval script for first run | fixed eval script for first run
| Lua | mit | kingb12/languagemodelRNN,kingb12/languagemodelRNN,kingb12/languagemodelRNN |
508bc42ecf785aaf17b32e485d881e58c8251051 | layout-app.lua | layout-app.lua | SILE.scratch.layout = "app"
local class = SILE.documentState.documentClass
SILE.documentState.paperSize = SILE.paperSizeParser("80mm x 128mm")
SILE.documentState.orgPaperSize = SILE.documentState.paperSize
class:defineMaster({
id = "right",
firstContentFrame = "content",
frames = {
content = {
... | SILE.scratch.layout = "app"
local class = SILE.documentState.documentClass
SILE.documentState.paperSize = SILE.paperSizeParser("80mm x 128mm")
SILE.documentState.orgPaperSize = SILE.documentState.paperSize
class:defineMaster({
id = "right",
firstContentFrame = "content",
frames = {
content = {
... | Fix #49 in a way that doesn't break pre-toc pages | Fix #49 in a way that doesn't break pre-toc pages
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
51100b4173c5546927cfd53d26e25d944fc60b4d | tests/lua/pipeline/test-process.lua | tests/lua/pipeline/test-process.lua | #!/usr/bin/env python
--ckwg +5
-- Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
-- KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
-- Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
function log(msg)
io.stderr:write(string.format("%s\n", msg))
end
fu... | #!/usr/bin/env python
--ckwg +5
-- Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
-- KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
-- Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
function log(msg)
io.stderr:write(string.format("%s\n", msg))
end
fu... | Fix calls in process tests for Lua | Fix calls in process tests for Lua
| Lua | bsd-3-clause | mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit |
1569e924fa750c7753a72e66b3323608d98d4ac3 | Hydra/log.lua | Hydra/log.lua | api.log = {}
doc.api.log = {__doc = "Functionality to assist with debugging and experimentation."}
api.log.rawprint = print
function print(...)
api.log.rawprint(...)
local strs = table.pack(...)
local str = table.concat(strs, "\t") .. "\n"
api.log._gotline(str)
end
doc.api.log.lines = {"api.log.lines = {}", "... | api.log = {}
doc.api.log = {__doc = "Functionality to assist with debugging and experimentation."}
api.log.rawprint = print
function print(...)
api.log.rawprint(...)
local vals = table.pack(...)
for k = 1, vals.n do
vals[k] = tostring(vals[k])
end
local str = table.concat(vals, "\t") .. "\n"
api.log.... | Fixing new print function to accept all types. | Fixing new print function to accept all types.
| Lua | mit | hypebeast/hammerspoon,knl/hammerspoon,Stimim/hammerspoon,cmsj/hammerspoon,bradparks/hammerspoon,lowne/hammerspoon,heptal/hammerspoon,latenitefilms/hammerspoon,emoses/hammerspoon,cmsj/hammerspoon,tmandry/hammerspoon,knu/hammerspoon,zzamboni/hammerspoon,Habbie/hammerspoon,hypebeast/hammerspoon,hypebeast/hammerspoon,chris... |
cd1cec921a2c6933fe03ab3669d86a3c3547ad43 | data/pipelines/film_grain.lua | data/pipelines/film_grain.lua | local film_grain_shader = nil
function postprocess(env, transparent_phase, ldr_buffer, gbuffer0, gbuffer1, gbuffer_depth, shadowmap)
if not enabled then return ldr_buffer end
if transparent_phase ~= "post_tonemap" then return ldr_buffer end
local res = env.createRenderbuffer(1, 1, true, "rgba8")
env.beginBlock("fi... | local film_grain_shader = nil
function postprocess(env, transparent_phase, ldr_buffer, gbuffer0, gbuffer1, gbuffer_depth, shadowmap)
if not enabled then return ldr_buffer end
if transparent_phase ~= "post_tonemap" then return ldr_buffer end
local res = env.createRenderbuffer(1, 1, true, "rgba8", "film_grain")
env.... | fixed film grain | fixed film grain
| Lua | mit | nem0/LumixEngine,nem0/LumixEngine,nem0/LumixEngine |
fdb17150ffeacd40de2ad297aa6629c1d9335f35 | hammerspoon/.config/hammerspoon/emojipicker.lua | hammerspoon/.config/hammerspoon/emojipicker.lua | local utils = require("utils")
local settings = require("hs.settings")
local styledtext = require("hs.styledtext")
local mod = {}
local file = io.open("emojis.txt", "r")
local emojis = {}
for line in file:lines() do
table.insert(emojis, 1, line)
end
function utf8.sub(s, i, j)
i = utf8.offset(s, i)
j = ut... | local utils = require("utils")
local settings = require("hs.settings")
local styledtext = require("hs.styledtext")
local mod = {}
local file = io.open("emojis.txt", "r")
local emojis = {}
for line in file:lines() do
table.insert(emojis, 1, line)
end
function utf8.sub(s, i, j)
i = utf8.offset(s, i)
j = ut... | [emacs] fix emoji picker | [emacs] fix emoji picker
Emoji picker broke now that we are using styledtext instead of simple
text field and we cannot get the value. This should fix it.
| Lua | mit | meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles |
55579cd74d64b9f3498dfb2ca2351e6278842791 | nyagos.d/catalog/fuzzyfinder.lua | nyagos.d/catalog/fuzzyfinder.lua | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
-- default/non-configured setting: Use fzf
local ff = {}
ff.cmd = "fzf.exe"
ff.args = {}
ff.args.dir = ""
ff.args.cmdhist = ""
ff.args.cdhist = ""
ff.args.gitlog = "--preview='git show {1}... | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
-- default/non-configured setting: Use fzf(exists)/peco
local ff = {}
if nyagos.which("fzf.exe") then
ff.cmd = "fzf.exe"
else
ff.cmd = "peco.exe"
end
ff.args = {}
ff.args.dir = ""
f... | fix: fuzzyfinder.lua default command selection | fix: fuzzyfinder.lua default command selection
| Lua | bsd-3-clause | tsuyoshicho/nyagos |
b812e84e1d05b5200ead9b6a7d09a0af054e38ee | Assets/ToLua/Lua/System/coroutine.lua | Assets/ToLua/Lua/System/coroutine.lua | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-------------------------------------------------------------... | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-------------------------------------------------------------... | 1.0.7.391 fixed coroutine stop other's timer | 1.0.7.391 fixed coroutine stop other's timer
| Lua | mit | topameng/tolua |
cd3279ab658c0c2cf5586b385a3506673a7e6dd2 | tests/test_util_jid.lua | tests/test_util_jid.lua |
function split(split)
function test(jid, node, server, resource)
local rnode, rserver, rresource = split(jid);
assert_equal(node, rnode, "split("..jid..") failed");
assert_equal(server, rserver, "split("..jid..") failed");
assert_equal(resource, rresource, "split("..jid..") failed");
end
test("node@server",... |
function split(split)
function test(jid, node, server, resource)
local rnode, rserver, rresource = split(jid);
assert_equal(node, rnode, "split("..tostring(jid)..") failed");
assert_equal(server, rserver, "split("..tostring(jid)..") failed");
assert_equal(resource, rresource, "split("..tostring(jid)..") faile... | Fix jid.split test function | Fix jid.split test function
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
f7df9e4b80801579cb54ee1a4c59f8c86180e435 | src/extensions/cp/apple/finalcutpro/inspector/info/InfoProjectInspector.lua | src/extensions/cp/apple/finalcutpro/inspector/info/InfoProjectInspector.lua | --- === cp.apple.finalcutpro.inspector.info.InfoProjectInspector ===
---
--- Info Inspector Module when a Project is selected.
local require = require
--local log = require "hs.logger".new "infoInspect"
local axutils = require "cp.ui.axutils"
local BasePanel ... | --- === cp.apple.finalcutpro.inspector.info.InfoProjectInspector ===
---
--- Info Inspector Module when a Project is selected.
local require = require
--local log = require "hs.logger".new "infoInspect"
local axutils = require "cp.ui.axutils"
local BasePanel ... | #1826 | #1826
- Fixed @stickler-ci errors
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
4c93ae675580410bfb29364d457e129ddd6e0f8d | xmake/packages/git/xmake.lua | xmake/packages/git/xmake.lua | package("git")
set_kind("binary")
set_homepage("https://git-scm.com/")
set_description("A free and open source distributed version control system")
set_versions("v1.0.1")
if os.host() == "windows" then
if os.arch() == "x64" then
-- add_urls("https://coding.net/u/waruqi/p/xmake-w... | package("git")
set_kind("binary")
set_homepage("https://git-scm.com/")
set_description("A free and open source distributed version control system")
set_versions("v1.0.1")
if os.host() == "windows" then
if os.arch() == "x64" then
add_urls("https://gitee.com/tboox/xmake-winenv/ra... | fix git mirror urls | fix git mirror urls
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake |
4ca160c02b5755d816b60f202be4bced59dcdd76 | xmake/core/base/process.lua | xmake/core/base/process.lua | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | fix process.runjobs | fix process.runjobs
| Lua | apache-2.0 | waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake |
cc6cf72d6039604ba33fdddf2a410db34756e633 | src/base/detoken.lua | src/base/detoken.lua | --
-- detoken.lua
--
-- Expands tokens.
--
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.detoken = {}
local p = premake
local detoken = p.detoken
--
-- Expand tokens in a value.
--
-- @param value
-- The value containing the tokens to be expanded.
-- @param environ
-- An execu... | --
-- detoken.lua
--
-- Expands tokens.
--
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.detoken = {}
local p = premake
local detoken = p.detoken
--
-- Expand tokens in a value.
--
-- @param value
-- The value containing the tokens to be expanded.
-- @param environ
-- An execu... | Fix bug in recursive calls to detoken. | Fix bug in recursive calls to detoken.
| Lua | bsd-3-clause | dcourtois/premake-core,prapin/premake-core,mandersan/premake-core,mendsley/premake-core,Zefiros-Software/premake-core,Zefiros-Software/premake-core,sleepingwit/premake-core,tvandijck/premake-core,resetnow/premake-core,sleepingwit/premake-core,dcourtois/premake-core,Zefiros-Software/premake-core,jstewart-amd/premake-cor... |
ce6e262c6d840d636fcfbecb8dd6c989a6ec5f29 | packages/lime-proto-bmx6/src/bmx6.lua | packages/lime-proto-bmx6/src/bmx6.lua | #!/usr/bin/lua
local network = require("lime.network")
local config = require("lime.config")
local fs = require("nixio.fs")
local libuci = require("uci")
local wireless = require("lime.wireless")
bmx6 = {}
function bmx6.setup_interface(ifname, args)
if ifname:match("^wlan%d.ap") then return end
vlanId = args[2] or... | #!/usr/bin/lua
local network = require("lime.network")
local config = require("lime.config")
local fs = require("nixio.fs")
local libuci = require("uci")
local wireless = require("lime.wireless")
bmx6 = {}
function bmx6.setup_interface(ifname, args)
if ifname:match("^wlan%d.ap") then return end
vlanId = args[2] or... | lime-proto-bmx6: hotfix firewall.bmxtun.conntrack=1 | lime-proto-bmx6: hotfix firewall.bmxtun.conntrack=1
| Lua | agpl-3.0 | libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages |
764b95aa6e6cfdd181a6c1992bd192a10c99ea27 | modules.lua | modules.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fix install module command line | Fix install module command line
| Lua | mit | Zefiros-Software/ZPM |
a604a8b410b46bb602546afd02284f930d2ee8ab | src/cosy/webclient/dashboard/init.lua | src/cosy/webclient/dashboard/init.lua | return function (loader)
local I18n = loader.load "cosy.i18n"
local Scheduler = loader.load "cosy.scheduler"
local Webclient = loader.load "cosy.webclient"
local i18n = I18n.load {
"cosy.webclient.dashboard",
}
i18n._locale = Webclient.window.navigator.language
local Dashboard = {
... | return function (loader)
local I18n = loader.load "cosy.i18n"
local Scheduler = loader.load "cosy.scheduler"
local Webclient = loader.load "cosy.webclient"
local i18n = I18n.load {
"cosy.webclient.dashboard",
}
i18n._locale = Webclient.window.navigator.language
local Dashboard = {
... | Fix illegal mix between loop iteration and loop insertion. Fix #209 | Fix illegal mix between loop iteration and loop insertion.
Fix #209
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
e023cee4f2bdffb7a4a9b047b63767201a4b90eb | src/3rdparty/Ads.lua | src/3rdparty/Ads.lua | --------------------------------------------------------------------------------
--
--
--
--------------------------------------------------------------------------------
local Mock = require("Mock")
local AdProvider = require("AdProvider")
local Ads = class()
-- workaround lua bug with math.random
math.random() mat... | --------------------------------------------------------------------------------
--
--
--
--------------------------------------------------------------------------------
local Mock = require("Mock")
local AdProvider = require("AdProvider")
local Ads = class()
local HttpTask = MOAIHttpTaskNSURL or MOAIHttpTask or Mo... | remote config fixes | remote config fixes
| Lua | mit | Vavius/moai-framework,Vavius/moai-framework |
85301c7c344efaaa700e88a18986a390661eff8f | lib/EssentialModeApi.lua | lib/EssentialModeApi.lua | --
-- Contains MySQL method to be compatible with EssentialMode < 3.0
--
-- This functions are however deprecated, you should change them in a near future
--
Logger:Debug('EssentialModeApi is deprecated, please use the new API instead')
-- @deprecated
function MySQL.open(self, server, database, userid, password)
... | --
-- Contains MySQL method to be compatible with EssentialMode < 3.0
--
-- This functions are however deprecated, you should change them in a near future
--
Logger:Debug('EssentialModeApi is deprecated, please use the new API instead')
-- @deprecated
function MySQL.open(self, server, database, userid, password)
... | Fix BC layer, do not send 2 queries, correctly shutdown / close old connections | Fix BC layer, do not send 2 queries, correctly shutdown / close old connections
| Lua | mit | brouznouf/fivem-mysql-async,brouznouf/fivem-mysql-async,brouznouf/fivem-mysql-async |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.