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 |
|---|---|---|---|---|---|---|---|---|---|
bcf0a9923c8480ef57bbc83e6357c6ca1b3d912c | frontend/device/screen.lua | frontend/device/screen.lua | local Blitbuffer = require("ffi/blitbuffer")
local einkfb = require("ffi/framebuffer")
local Geom = require("ui/geometry")
local util = require("ffi/util")
local DEBUG = require("dbg")
--[[
Codes for rotation modes:
1 for no rotation,
2 for landscape with bottom on the right side of screen, etc.
2
+---... | local Blitbuffer = require("ffi/blitbuffer")
local einkfb = require("ffi/framebuffer")
local Geom = require("ui/geometry")
local util = require("ffi/util")
local DEBUG = require("dbg")
--[[
Codes for rotation modes:
1 for no rotation,
2 for landscape with bottom on the right side of screen, etc.
2
+---... | (really?) fix refresh viewport calculations | (really?) fix refresh viewport calculations
This adds more documentation about the viewport offset calculations
for refreshing rotated viewports.
The old behaviour also was (still) buggy, even after the latest round
of fixes. Now, the offsets when rotated are hopefully calculated correct.
| Lua | agpl-3.0 | ashang/koreader,Markismus/koreader,NiLuJe/koreader,poire-z/koreader,NickSavage/koreader,Hzj-jie/koreader,Frenzie/koreader,houqp/koreader,robert00s/koreader,mwoz123/koreader,koreader/koreader,apletnev/koreader,lgeek/koreader,pazos/koreader,mihailim/koreader,Frenzie/koreader,koreader/koreader,chrox/koreader,frankyifei/ko... |
15ce30b1c9536d522bcda35eed4b6ee0dbbdb2b2 | lib/switchboard_modules/lua_script_debugger/premade_scripts/11b_user_ram_fifo.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/11b_user_ram_fifo.lua | --[[
Name: 11b_user_ram_fifo.lua
Desc: Example showing how to use USER RAM FIFO buffers to transfer an array
of data to/from an external computer
Note: This system is considered an advanced topic. Simple data transfer
to/from Lua is easiest with USER_RAM, not a FIFO. These FIFO buffers
... | --[[
Name: 11b_user_ram_fifo.lua
Desc: Example showing how to use USER RAM FIFO buffers to transfer an array
of data to/from an external computer
Note: This system is considered an advanced topic. Simple data transfer
to/from Lua is easiest with USER_RAM, not a FIFO. These FIFO buffers
... | Fixed the USER_RAM FIFO example | Fixed the USER_RAM FIFO example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
7c72d241faf37ae3fdfe3cb997ad75ef8d230a2c | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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
]]--
loc... | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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
]]--
loc... | protocols/core: fix defaultroute setting for DHCP interfaces | protocols/core: fix defaultroute setting for DHCP interfaces
| Lua | apache-2.0 | thesabbir/luci,ReclaimYourPrivacy/cloak-luci,Hostle/openwrt-luci-multi-user,male-puppies/luci,cshore-firmware/openwrt-luci,tobiaswaldvogel/luci,ReclaimYourPrivacy/cloak-luci,chris5560/openwrt-luci,openwrt-es/openwrt-luci,MinFu/luci,lbthomsen/openwrt-luci,kuoruan/luci,thesabbir/luci,zhaoxx063/luci,dwmw2/luci,jorgifumi/l... |
1010955910c8440423a11dfeb49853e0a40e9074 | statistics.lua | statistics.lua | local dkim_space = 0
local from_space = 1
local envfrom_space = 2
local sender_ip_space = 3
local dkim_msgtype_ts_space = 4
local dkim_senderip_space = 5
field_count = 10
timeout = 0.006
max_attempts = 5
-- BEG deprecated interface
function increment_or_insert(space, key, field)
retry = true
count = 0
wh... | local dkim_space = 0
local from_space = 1
local envfrom_space = 2
local sender_ip_space = 3
local dkim_msgtype_ts_space = 4
local dkim_senderip_space = 5
local field_count = 10
local timeout = 0.006
local max_attempts = 5
local function increment_stat3(space, key, subject, timestamp)
retry = true
count = 0
... | statistics.lua: fix bug with call of local function from global function | statistics.lua: fix bug with call of local function from global function
| Lua | bsd-2-clause | spectrec/tntlua,BHYCHIK/tntlua,derElektrobesen/tntlua,grechkin-pogrebnyakov/tntlua,mailru/tntlua |
a735d467bfe2070756f98f48a8a31e44a3c10e4e | profile.lua | profile.lua | -- Begin of globals
bollards_whitelist = { [""] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["no"] = true, ["sally_port"] = true, ["gate"] = true}
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["d... | -- Begin of globals
bollards_whitelist = { [""] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["no"] = true, ["sally_port"] = true, ["gate"] = true}
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["d... | Fixes issue #430 | Fixes issue #430 | Lua | bsd-2-clause | hydrays/osrm-backend,neilbu/osrm-backend,chaupow/osrm-backend,frodrigo/osrm-backend,felixguendling/osrm-backend,Tristramg/osrm-backend,KnockSoftware/osrm-backend,ibikecph/osrm-backend,felixguendling/osrm-backend,Carsten64/OSRM-aux-git,deniskoronchik/osrm-backend,ibikecph/osrm-backend,KnockSoftware/osrm-backend,bjtaylor... |
f0782f31c129fcfb8963bc774d95d67e9b2e2c9f | BIOS/setup.lua | BIOS/setup.lua | --BIOS Setup Screen
local Handled, Devkits = ... --It has been passed by the BIOS POST Screen :)
local BIOS = Handled.BIOS
local GPU = Handled.GPU
local CPU = Handled.CPU
local fs = Handled.HDD
local KB = Handled.Keyboard
local coreg = require("Engine.coreg")
local stopWhile = false
GPU.clear(0)
GPU.color(7)
KB.text... | --BIOS Setup Screen
local Handled, love = ... --Handled is passed by BIOS POST, love is available too.
local BIOS = Handled.BIOS
local GPU = Handled.GPU
local CPU = Handled.CPU
local fs = Handled.HDD
local KB = Handled.Keyboard
local coreg = require("Engine.coreg")
local stopWhile = false
local wipingMode = false
GPU... | Fix to pass luacheck | Fix to pass luacheck
Fixed 10 warnings
Former-commit-id: 7da00e328d806d97669734075ea0c2056dd61b52 | Lua | mit | RamiLego4Game/LIKO-12 |
aa64dfbc8e2dd7e48c0e472fac2ebb58f99e1713 | runners/hostinfo_runner.lua | runners/hostinfo_runner.lua | --[[
Copyright 2015 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 2015 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(runners/hostinfo_runner): Make hostinfo runner types case insensitive;closes #806 | fix(runners/hostinfo_runner): Make hostinfo runner types case insensitive;closes #806
| Lua | apache-2.0 | kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent |
b5768add077703a644f8c4d1e2a7f052bd7e870a | src/base/os.lua | src/base/os.lua | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | Fixed broken lib search path from last commit (h/t coh) | Fixed broken lib search path from last commit (h/t coh)
| Lua | bsd-3-clause | dimitarcl/premake-dev,dimitarcl/premake-dev,dimitarcl/premake-dev |
00b21d845d18a0e6dd9df1665bd5c3037147e264 | deps/semver.lua | deps/semver.lua | exports.name = "creationix/semver"
exports.version = "1.0.2"
local parse, normalize, match
-- Make the module itself callable
setmetatable(exports, {
__call = function (_, ...)
return match(...)
end
})
function parse(version)
if not version then return end
return
assert(tonumber(string.match(version, "... | exports.name = "creationix/semver"
exports.version = "1.0.2"
local parse, normalize, match
-- Make the module itself callable
setmetatable(exports, {
__call = function (_, ...)
return match(...)
end
})
function parse(version)
if not version then return end
return
assert(tonumber(string.match(version, "... | Fix edge equality test | Fix edge equality test
| Lua | apache-2.0 | squeek502/lit,DBarney/lit,zhaozg/lit,kaustavha/lit,lduboeuf/lit,kidaa/lit,james2doyle/lit,1yvT0s/lit,luvit/lit |
8ec945b0c04f5dabdd7aecf46eefadcdde3b9133 | src/romdisk/samples/main.lua | src/romdisk/samples/main.lua | local button = require("button")
local scene1 = require("scene1")
local scene2 = require("scene2")
local scene_manager = require("scene_manager")
require("easing")
----------------------------------------------------------------------------------
local runtime = display_object:new("runtime")
local background = displa... | local button = require("button")
local scene1 = require("scene1")
local scene2 = require("scene2")
local scene_manager = require("scene_manager")
require("easing")
----------------------------------------------------------------------------------
local runtime = display_object:new("runtime")
local background = displa... | fix main.lua | fix main.lua
| Lua | mit | xboot/xboot,xboot/xboot |
14cbc2c6690ec6e6ac1c79afc0f1ce167969ac0d | luci-access-control/luasrc/model/cbi/access_control.lua | luci-access-control/luasrc/model/cbi/access_control.lua | --[[
LuCI - Lua Configuration Interface - Internet access control
Copyright 2015 Krzysztof Szuster.
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
$Id... | --[[
LuCI - Lua Configuration Interface - Internet access control
Copyright 2015 Krzysztof Szuster <@openwrt.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/L... | minor fix in screen layout | minor fix in screen layout
| Lua | apache-2.0 | k-szuster/luci-access-control |
73376d66c1a76a8d39faa7d24884b60ab6976b88 | check/plugin.lua | check/plugin.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(update-check): Plugin Timeouts | fix(update-check): Plugin Timeouts
| Lua | apache-2.0 | christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-m... |
a006fa2047df5b6157334087d40ed2c2b316f3be | states/game.lua | states/game.lua | local Scene = require 'entities.scene'
local Dynamo = require 'entities.scenes.dynamo'
local Sprite = require 'entities.sprite'
local Bit = require 'bit'
local game = {}
function game:init()
self.dynamo = Dynamo:new()
self.scene = Scene:new()
self.catalogs = {
art = require 'catalogs.art',
}... | local Scene = require 'entities.scene'
local Dynamo = require 'entities.scenes.dynamo'
local Sprite = require 'entities.sprite'
local Bit = require 'bit'
local game = {}
function game:init()
self.dynamo = Dynamo:new()
self.scene = Scene:new()
self.catalogs = {
art = require 'catalogs.art',
}... | Fix crash | Fix crash
| Lua | mit | Nuthen/ludum-dare-39 |
3461ef584f91e17fd17d3ad36e408d64361aeb4b | yahoo-stobo.lua | yahoo-stobo.lua | #!./bin/lua
local inspect = require 'inspect'
local http = require 'socket.http'
local https = require 'ssl.https'
local cjson = require 'cjson'
local api_url = 'https://finance-yql.media.yahoo.com/v7/finance/chart/%s?period1=%s&period2=%s&interval=%s'
-- Quote
Quote = {} do
local numberOrNil = function(number)
... | #!./bin/lua
local inspect = require 'inspect'
local http = require 'socket.http'
local https = require 'ssl.https'
local cjson = require 'cjson'
local api_url = 'https://finance-yql.media.yahoo.com/v7/finance/chart/%s?period1=%s&period2=%s&interval=%s'
-- Quote
Quote = {} do
local numberOrNil = function(number)
... | Fixing from yahoo order | Fixing from yahoo order
| Lua | mit | henriquegogo/stobo,henriquegogo/stobo,henriquegogo/stobo,henriquegogo/stobo |
c75df7121e12ecfd183c278cafba09ebddba13e9 | assets/objects/enemy.lua | assets/objects/enemy.lua | local class = require 'libs.middleclass'
local Enemy = class('Enemy')
function Enemy:initialize(speed, width, height, x, y, spacing, enemy_table)
self.speed = speed
self.width = width
self.height = height
self.x = x
self.y = y
self.spacing = spacing
self.enemy_table = enemy_table
end
func... | local class = require 'libs.middleclass'
local Enemy = class('Enemy')
function Enemy:initialize(speed, width, height, x, y, spacing, enemy_table)
self.speed = speed
self.width = width
self.height = height
self.x = x
self.y = y
self.spacing = spacing
self.enemy_table = enemy_table
end
func... | fixed some glitches, but it still doesn't as intended | fixed some glitches, but it still doesn't as intended
| Lua | mit | MeArio/Space_Invaders |
9154e1468de436f4805c63704bbe49a1e98eed46 | toribio.lua | toribio.lua | --- Embedded Robotics Library.
-- Toribio is a library for developing robotics applications. It is based on Lumen cooperative
-- scheduler, and allows to write coroutine, signal and callback based applications.
-- Toribio provides a mechanism for easily accesing hardware, and is geared towards
-- low end hardware, such... | --- Embedded Robotics Library.
-- Toribio is a library for developing robotics applications. It is based on Lumen cooperative
-- scheduler, and allows to write coroutine, signal and callback based applications.
-- Toribio provides a mechanism for easily accesing hardware, and is geared towards
-- low end hardware, such... | fix typo | fix typo
| Lua | mit | xopxe/Toribio,xopxe/Toribio,xopxe/Toribio |
c5c234422f1bd5be46c9b51a5b38b45800b1fe05 | test/LanguageModel_test.lua | test/LanguageModel_test.lua | require 'torch'
require 'nn'
require 'LanguageModel'
local tests = {}
local tester = torch.Tester()
local function check_dims(x, dims)
tester:assert(x:dim() == #dims)
for i, d in ipairs(dims) do
tester:assert(x:size(i) == d)
end
end
-- Just a smoke test to make sure model can run forward / backward
fun... | require 'torch'
require 'nn'
require 'LanguageModel'
local tests = {}
local tester = torch.Tester()
local function check_dims(x, dims)
tester:assert(x:dim() == #dims)
for i, d in ipairs(dims) do
tester:assert(x:size(i) == d)
end
end
-- Just a smoke test to make sure model can run forward / backward
fun... | fix broken test | fix broken test
| Lua | mit | phanhuy1502/FYP,antihutka/torch-rnn,billzorn/torch-rnn,guillitte/torch-rnn,phanhuy1502/FYP,JackHopkins/torch-rnn,jcjohnson/torch-rnn,JackHopkins/torch-rnn,JackHopkins/torch-rnn,tmp6154/torch-rnn,oneyanshi/transcend-exe,gabrielegiannini/torch-rnn-repo,spaceraccoon/bilabot,JackHopkins/torch-rnn,JackHopkins/torch-rnn,Jack... |
6b2e492eb058f4feb3b1e29994e6d97493276543 | test/compat_luaunit_v2x.lua | test/compat_luaunit_v2x.lua | lu = require('luaunit')
--[[
Use Luaunit in the v2.1 fashion and check that it still works.
Exercise every luaunit v2.1 function and have it executed successfully.
Coverage:
x Made LuaUnit:run() method able to be called with 'run' or 'Run'.
x Made LuaUnit.wrapFunctions() function able to be called with 'wrapFunction... | EXPORT_ASSERT_TO_GLOBALS = true
lu = require('luaunit')
--[[
Use Luaunit in the v2.1 fashion and check that it still works.
Exercise every luaunit v2.1 function and have it executed successfully.
Coverage:
x Made LuaUnit:run() method able to be called with 'run' or 'Run'.
x Made LuaUnit.wrapFunctions() function able... | Compatibility with luaunit v2x needs global variable export + small fixes. luaunit.isXXX is discarded, it does not add any value. | Compatibility with luaunit v2x needs global variable export + small fixes. luaunit.isXXX is discarded, it does not add any value.
| Lua | bsd-2-clause | GuntherStruyf/luaunit,GuntherStruyf/luaunit |
d161475ba5a74e36356aa9bfd2ac404b38011ffc | premake5.lua | premake5.lua | workspace "pwre"
language "C++"
flags { "C++11" }
location ( "build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
objdir("build/obj/%{cfg.system}")
includedirs { "include" }
project "pwre"
kind "StaticLib"
targetdir("lib/%{cfg.system}/%{cfg.platform}")
files {
"include/*.... | workspace "pwre"
language "C++"
flags { "C++11" }
location ( "build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
objdir("build/obj/%{cfg.system}")
includedirs { "include" }
project "pwre"
kind "StaticLib"
targetdir("lib/%{cfg.system}/%{cfg.platform}")
files {
"include/*.... | Fixed files | Fixed files
| Lua | mit | yulon/pwre |
a13d522d992ceb6ef989b8a50816c2f912e80f39 | otherplatforms/raspberry-pi/premake4.lua | otherplatforms/raspberry-pi/premake4.lua | ------------------------------------------------------------------
-- premake 4 Pyros3D solution
------------------------------------------------------------------
solution "Pyros3D"
newoption {
trigger = "shared",
description = "Ouput Shared Library"
}
newoption {
trigger = "sta... | ------------------------------------------------------------------
-- premake 4 Pyros3D solution
------------------------------------------------------------------
solution "Pyros3D"
newoption {
trigger = "shared",
description = "Ouput Shared Library"
}
newoption {
trigger = "sta... | Fixed raspberry premake file | Fixed raspberry premake file
| Lua | mit | Peixinho/Pyros3D,Peixinho/Pyros3D,Peixinho/Pyros3D |
481c3841369695fdfe913fcdd4f7c816660ad2b0 | keybindings.lua | keybindings.lua | local module = {}
local utils = require "utils"
-- ------------------
-- simple vi-mode
-- ------------------
local arrows = {
h = 'left',
j = 'down',
k = 'up',
l = 'right'
}
local enableSimpleViMode = function()
for k, v in pairs(arrows) do
utils.keymap(k, 'alt', v, nil)
utils.keymap(k, 'alt+shift',... | local module = {}
local utils = require "utils"
-- ------------------
-- simple vi-mode
-- ------------------
local arrows = {
h = 'left',
j = 'down',
k = 'up',
l = 'right'
}
local enableSimpleViMode = function()
for k, v in pairs(arrows) do
utils.keymap(k, 'alt', v, nil)
utils.keymap(k, 'alt+shift',... | Bugfixing | Bugfixing
- Simple tab switching wouldn't work (because hotkeys between iTerm and Chrome
were shared vars) - immutability matters!
- appSpecific["*"] functions wouldn't execute
| Lua | mit | agzam/spacehammer |
67c815d0419a2f9f9f6b1817bc7a849b073dae0c | lib/envconf.lua | lib/envconf.lua | local focusSetting = {
submitCmd = 'sbatch',
submitIDRow = 4,
delCmd = 'scancel',
statCmd = 'fjstat',
statStateColumn = 5,
statStateRow = 4,
jobEndFunc = function (t)
if (t[1][1] == 'Invalid' and t[1][2] == 'job' and t[1][3] == 'ID') then return true
else return false end
... | local focusSetting = {
submitCmd = 'sbatch',
submitIDRow = 4,
delCmd = 'scancel',
statCmd = 'fjstat',
statStateColumn = 5,
statStateRow = 4,
jobEndFunc = function (t)
if (t[1][1] == 'Invalid' and t[1][2] == 'job' and t[1][3] == 'ID') then return true
else return false end
... | fixed for windows | fixed for windows
| Lua | bsd-2-clause | avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI,digirea/hpcpfGUI,digirea/hpcpfGUI,avr-aics-riken/hpcpfGUI,avr-aics-riken/hpcpfGUI |
3b92157dfc3c3a69308157562018a541e3c3b633 | mod_ircd/mod_ircd.lua | mod_ircd/mod_ircd.lua | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | mod_ircd: Fixed handling of empty <subject/> elements. | mod_ircd: Fixed handling of empty <subject/> elements.
| Lua | mit | dhotson/prosody-modules,asdofindia/prosody-modules,BurmistrovJ/prosody-modules,olax/prosody-modules,1st8/prosody-modules,dhotson/prosody-modules,crunchuser/prosody-modules,mardraze/prosody-modules,joewalker/prosody-modules,guilhem/prosody-modules,either1/prosody-modules,drdownload/prosody-modules,amenophis1er/prosody-m... |
b075060a944f46400d38c52757513c40f66f0698 | MMOCoreORB/bin/scripts/mobile/faction/imperial/stormtrooper_medic.lua | MMOCoreORB/bin/scripts/mobile/faction/imperial/stormtrooper_medic.lua | stormtrooper_medic = Creature:new {
objectName = "@mob/creature_names:stormtrooper_medic",
socialGroup = "imperial",
pvpFaction = "imperial",
faction = "imperial",
level = 25,
chanceHit = 0.36,
damageMin = 240,
damageMax = 250,
baseXp = 2637,
baseHAM = 7200,
baseHAMmax = 8800,
armor = 0,
resists = {15,15,4... | stormtrooper_medic = Creature:new {
objectName = "@mob/creature_names:stormtrooper_medic",
socialGroup = "imperial",
pvpFaction = "imperial",
faction = "imperial",
level = 25,
chanceHit = 0.36,
damageMin = 240,
damageMax = 250,
baseXp = 2637,
baseHAM = 7200,
baseHAMmax = 8800,
armor = 0,
resists = {15,15,4... | [Fixed] stormtrooper medics are no longer recruiters | [Fixed] stormtrooper medics are no longer recruiters
Change-Id: I3f0ce80cae39054b48300a384fe1142e50d129f4
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/... |
6617f526a2a6d3f201df8180f9d01a6124074ff6 | Bilinear.lua | Bilinear.lua | local Bilinear, parent = torch.class('nn.Bilinear', 'nn.Module')
local function isint(x) return type(x) == 'number' and x == math.floor(x) end
function Bilinear:__assertInput(input)
assert(input and type(input) == 'table' and #input == 2,
'input should be a table containing two data Tensors')
assert(input[... | local Bilinear, parent = torch.class('nn.Bilinear', 'nn.Module')
local function isint(x) return type(x) == 'number' and x == math.floor(x) end
function Bilinear:__assertInput(input)
assert(input and type(input) == 'table' and #input == 2,
'input should be a table containing two data Tensors')
assert(input[... | fixing bilinear bias-free path | fixing bilinear bias-free path
| Lua | bsd-3-clause | joeyhng/nn,xianjiec/nn,apaszke/nn,diz-vara/nn,jonathantompson/nn,PraveerSINGH/nn,kmul00/nn,andreaskoepf/nn,nicholas-leonard/nn,eriche2016/nn,sagarwaghmare69/nn,jhjin/nn,colesbury/nn,caldweln/nn,elbamos/nn |
95fad443fd00d02d42746235e06bc8ede28564b3 | LocalSpatialConvolution.lua | LocalSpatialConvolution.lua | local C = ccn2.C
local SpatialConvolution, parent = torch.class('ccn2.SpatialConvolution', 'nn.Module')
function SpatialConvolution:__init(nInputPlane, nOutputPlane, kH, dH, padding)
parent.__init(self)
dH = dH or 1 -- stride
padding = padding or 0
if not (nInputPlane >= 1 and (nInputPlane <= 3 or math.... | local C = ccn2.C
local LocalSpatialConvolution, parent = torch.class('ccn2.LocalSpatialConvolution', 'nn.Module')
function LocalSpatialConvolution:__init(nInputPlane, nOutputPlane, ini, kH, dH, padding)
parent.__init(self)
dH = dH or 1 -- stride
padding = padding or 0
if not (nInputPlane >= 1 and (nInpu... | fixed class name issue | fixed class name issue
| Lua | apache-2.0 | monikajhuria/cuda-convnet2.torch-master_update,ajtao/my_ccn2_t,szagoruyko/cuda-convnet2.torch,szagoruyko/cuda-convnet2.torch,ajtao/my_ccn2_t,soumith/cuda-convnet2.torch,szagoruyko/cuda-convnet2.torch,ajtao/my_ccn2_t,soumith/cuda-convnet2.torch,soumith/cuda-convnet2.torch,monikajhuria/cuda-convnet2.torch-master_update,m... |
141b85dbe72535082563f7642b5085e89dde6a24 | MapTable.lua | MapTable.lua | local MapTable, parent = torch.class('nn.MapTable', 'nn.Container')
function MapTable:__init(module, shared)
parent.__init(self)
self.shared = shared or {'weight', 'bias', 'gradWeight', 'gradBias'}
self.output = {}
self.gradInput = {}
self:add(module)
end
function MapTable:_extend(n)
self.modules[1]... | local MapTable, parent = torch.class('nn.MapTable', 'nn.Container')
function MapTable:__init(module, shared)
parent.__init(self)
self.shared = shared or {'weight', 'bias', 'gradWeight', 'gradBias'}
self.output = {}
self.gradInput = {}
self:add(module)
end
function MapTable:_extend(n)
self.modules[1]... | Fix memory issue with MapTable module removal | Fix memory issue with MapTable module removal
Fixes Issue #1141: https://github.com/torch/nn/issues/1141
| Lua | bsd-3-clause | joeyhng/nn,apaszke/nn,nicholas-leonard/nn |
16fa2856c18f7de34b2fc0b49c9fbb7bd1f7b998 | libs/uvl/luasrc/uvl/errors.lua | libs/uvl/luasrc/uvl/errors.lua | --[[
UCI Validation Layer - Error handling
(c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | --[[
UCI Validation Layer - Error handling
(c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | libs/uvl: fix i18n handling for errors | libs/uvl: fix i18n handling for errors
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5475 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 |
6aa4f7be48d0152046972f2e419209971e2dfe18 | src/lua/Parallel.lua | src/lua/Parallel.lua | local zmq = require "lzmq"
local zloop = require "lzmq.loop"
local zthreads = require "lzmq.threads"
local mp = require "cmsgpack"
local zassert = zmq.assert
local ENDPOINT = "inproc://main"
local THREAD_STARTER = [[
local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[
local zmq = require "lzm... | local zmq = require "lzmq"
local zloop = require "lzmq.loop"
local zthreads = require "lzmq.threads"
local mp = require "cmsgpack"
local zassert = zmq.assert
local ENDPOINT = "inproc://main"
local THREAD_STARTER = [[
local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[
local zmq = require "lzm... | Fix. Watchdog test threads only until first alive thread. | Fix. Watchdog test threads only until first alive thread.
| Lua | mit | moteus/lua-Parallel,kidaa/lua-Parallel |
df32e586a3ad1a6c53639424986f96735082d3d8 | modules/admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua | modules/admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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
$Id$
]]--
lo... | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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
$Id$
]]--
lo... | modules/admin-full: fix extroot and fsck availability check (https://dev.openwrt.org/ticket/13837) | modules/admin-full: fix extroot and fsck availability check (https://dev.openwrt.org/ticket/13837)
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@9866 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | ReclaimYourPrivacy/cloak-luci,gwlim/luci,ReclaimYourPrivacy/cloak-luci,vhpham80/luci,ReclaimYourPrivacy/cloak-luci,yeewang/openwrt-luci,yeewang/openwrt-luci,phi-psi/luci,gwlim/luci,zwhfly/openwrt-luci,zwhfly/openwrt-luci,phi-psi/luci,ReclaimYourPrivacy/cloak-luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,phi-psi/luci,z... |
3795de92647086762d1cdd8db5548f009fb5a8c2 | extensions/milight/init.lua | extensions/milight/init.lua | --- === hs.milight ===
---
--- Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb)
local milight = require "hs.milight.internal"
milight.cmd = milight._cacheCommands()
local milightObject = hs.getObjectMetatable("hs.milight")
--- hs.milight.minBrightness
--- Constant
--- Specifie... | --- === hs.milight ===
---
--- Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb)
local milight = require "hs.milight.internal"
milight.cmd = milight._cacheCommands()
local milightObject = hs.getObjectMetatable("hs.milight")
--- hs.milight.minBrightness
--- Constant
--- Specifie... | Fix hs.milight to work post-LuaSkin transition | Fix hs.milight to work post-LuaSkin transition
| Lua | mit | Habbie/hammerspoon,kkamdooong/hammerspoon,chrisjbray/hammerspoon,zzamboni/hammerspoon,Habbie/hammerspoon,cmsj/hammerspoon,heptal/hammerspoon,kkamdooong/hammerspoon,wsmith323/hammerspoon,TimVonsee/hammerspoon,latenitefilms/hammerspoon,TimVonsee/hammerspoon,zzamboni/hammerspoon,cmsj/hammerspoon,TimVonsee/hammerspoon,Habb... |
ccf9fc99ac9abd44630b899276fbb36ac8e216f8 | photos/node.lua | photos/node.lua | local COUNTDOWN = 3
gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT)
pictures = util.generator(function()
local out = {}
for name, _ in pairs(CONTENTS) do
if name:match(".*jpg") then
out[#out + 1] = name
end
end
return out
end)
node.event("content_remove", function(filename)
pictu... | local COUNTDOWN = 3
gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT)
pictures = util.generator(function()
local out = {}
for name, _ in pairs(CONTENTS) do
if name:match(".*jpg") then
out[#out + 1] = name
end
end
return out
end)
node.event("content_remove", function(filename)
pictu... | fix gc problem | fix gc problem
| Lua | bsd-2-clause | dividuum/info-beamer-nodes,dividuum/info-beamer-nodes |
f003c83218b6d3dde6c432b4cb256529a93eaa81 | check/plugin.lua | check/plugin.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 a plugin error on windows 2012 using spaces in the plugin path | Fix a plugin error on windows 2012 using spaces in the plugin path
| Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-m... |
d00e228f77189ed3253e2ad75a686c9dae1f3915 | src/moonhowl/img_store.lua | src/moonhowl/img_store.lua | local lgi = require "lgi"
local GdkPixbuf = lgi.GdkPixbuf
local img_store = {}
local cache = {}
local requests = {}
function img_store.get_cached(url)
return cache[url]
end
function img_store.join_request(url, obj)
local req = requests[url]
req[#req + 1] = obj
end
local function pixbuf_from_image_data(... | local lgi = require "lgi"
local GdkPixbuf = lgi.GdkPixbuf
local img_store = {}
local cache = {}
local requests = {}
function img_store.get_cached(url)
return cache[url]
end
function img_store.join_request(url, obj)
local req = requests[url]
req[#req + 1] = obj
end
local function pixbuf_from_image_data(... | fix callback handler for img_store | fix callback handler for img_store
| Lua | mpl-2.0 | darkstalker/moonhowl |
7c0d516da1cc5527182281a3688945e35ae7ce82 | share/media/break.lua | share/media/break.lua | -- libquvi-scripts
-- Copyright (C) 2010-2012 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) 2010-2012 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: media/break.lua | FIX: media/break.lua
Fix patterns {title,id,filepath,filehash}.
Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
| Lua | agpl-3.0 | legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts |
3f2d8f432d160b20670b5c817b8a5d5648220f51 | lualib/http/internal.lua | lualib/http/internal.lua | local table = table
local type = type
local sockethelper = require "http.sockethelper"
local M = {}
local LIMIT = 8192
local function chunksize(readbytes, body)
while true do
local f,e = body:find("\r\n",1,true)
if f then
return tonumber(body:sub(1,f-1),16), body:sub(e+1)
end
if #body > 128 then
-- pe... | local table = table
local type = type
local M = {}
local LIMIT = 8192
local function chunksize(readbytes, body)
while true do
local f,e = body:find("\r\n",1,true)
if f then
return tonumber(body:sub(1,f-1),16), body:sub(e+1)
end
if #body > 128 then
-- pervent the attacker send very long stream without ... | Fix #1452 | Fix #1452
| Lua | mit | icetoggle/skynet,icetoggle/skynet,icetoggle/skynet |
5513841940e29f4eb6050e461b88451d97487d38 | NaoTHSoccer/Make/premake4.lua | NaoTHSoccer/Make/premake4.lua | -- set the default global platform
PLATFORM = _OPTIONS["platform"]
if PLATFORM == nil then
PLATFORM = "Native"
end
-- load the global default settings
dofile "projectconfig.lua"
-- load some helpers
dofile (FRAMEWORK_PATH .. "/BuildTools/info.lua")
dofile (FRAMEWORK_PATH .. "/BuildTools/protoc.lua")
--dofile (FRAME... | -- set the default global platform
PLATFORM = _OPTIONS["platform"]
if PLATFORM == nil then
PLATFORM = "Native"
end
-- load the global default settings
dofile "projectconfig.lua"
-- load some helpers
dofile (FRAMEWORK_PATH .. "/BuildTools/info.lua")
dofile (FRAMEWORK_PATH .. "/BuildTools/protoc.lua")
--dofile (FRAME... | Fix for using clang on macOS. | Fix for using clang on macOS.
| Lua | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
4a43d51426073b31c5cb6240fa75d6b60ec887e3 | src/_premake_main.lua | src/_premake_main.lua | --
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
local shorthelp = "Type 'premake5 --help' for help"
local versionhelp = "premake5 (Premake Build Script Generator) %s"
_WORKING_DIR = os.getcwd()
--
-- S... | --
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
local shorthelp = "Type 'premake5 --help' for help"
local versionhelp = "premake5 (Premake Build Script Generator) %s"
_WORKING_DIR = os.getcwd()
--
-- S... | Fix action check to work with new interactive prompt | Fix action check to work with new interactive prompt
| Lua | bsd-3-clause | annulen/premake,annulen/premake,annulen/premake,annulen/premake |
379437b21fcceafaafd02bd399511db5cba6533a | src/lua/csv.lua | src/lua/csv.lua | -- csv.lua (internal file)
do
local ffi = require 'ffi'
ffi.cdef[[
typedef void (*csv_emit_row_t)(void *ctx);
typedef void (*csv_emit_field_t)(void *ctx, const char *field, const char *end);
struct csv
{
void *emit_ctx;
csv_emit_row_t emit_row;
csv_emit_field_t emit_field;
... | -- csv.lua (internal file)
local ffi = require('ffi')
local log = require('log')
ffi.cdef[[
typedef void (*csv_emit_row_t)(void *ctx);
typedef void (*csv_emit_field_t)(void *ctx, const char *field, const char *end);
struct csv
{
void *emit_ctx;
csv_emit_row_t emit_row;
csv_emi... | Style fixes | Style fixes
| Lua | bsd-2-clause | guard163/tarantool,KlonD90/tarantool,ocelot-inc/tarantool,guard163/tarantool,mejedi/tarantool,KlonD90/tarantool,Sannis/tarantool,rtsisyk/tarantool,condor-the-bird/tarantool,ocelot-inc/tarantool,guard163/tarantool,KlonD90/tarantool,KlonD90/tarantool,vasilenkomike/tarantool,Sannis/tarantool,vasilenkomike/tarantool,mejedi... |
6e1d2eed2c2a65ad60d0895dbbc52d405c56564c | share/lua/website/tube8.lua | share/lua/website/tube8.lua |
-- libquvi-scripts
-- Copyright (C) 2010 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; ei... |
-- libquvi-scripts
-- Copyright (C) 2010 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; ei... | Fix tube8.lua url parsing | Fix tube8.lua url parsing
| Lua | agpl-3.0 | alech/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer,DangerCove/libquvi-scripts,DangerCove/libquvi-scripts,alech/libquvi-scripts,hadess/libquvi-scripts-iplayer |
5ba6fb47c3e0b36a0bafacda0bd2c86ba7db646d | mods/base/req/hooks.lua | mods/base/req/hooks.lua |
_G.Hooks = Hooks or {}
Hooks._registered_hooks = Hooks._registered_hooks or {}
Hooks._prehooks = Hooks._prehooks or {}
Hooks._posthooks = Hooks._posthooks or {}
--[[
Hooks:Register( key )
Registers a hook so that functions can be added to it, and later called
key, Unique identifier for the hook, so that hooked f... |
_G.Hooks = Hooks or {}
Hooks._registered_hooks = Hooks._registered_hooks or {}
Hooks._prehooks = Hooks._prehooks or {}
Hooks._posthooks = Hooks._posthooks or {}
--[[
Hooks:Register( key )
Registers a hook so that functions can be added to it, and later called
key, Unique identifier for the hook, so that hooked f... | Fixed hooks with duplicate id's being added twice | Fixed hooks with duplicate id's being added twice
| Lua | mit | Olipro/Payday-2-BLT_Club-Sandwich-Edition,antonpup/Payday-2-BLT,SirWaddles/Payday-2-BLT,JamesWilko/Payday-2-BLT,SirWaddles/Payday-2-BLT,JamesWilko/Payday-2-BLT,antonpup/Payday-2-BLT,Olipro/Payday-2-BLT_Club-Sandwich-Edition |
0c220601207265cb4dfc520d4d35cbf244c5c4b5 | share/lua/website/guardian.lua | share/lua/website/guardian.lua |
-- libquvi-scripts
-- Copyright (C) 2011 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free So... |
-- libquvi-scripts
-- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... | FIX: website/guardian.lua: all patterns | FIX: website/guardian.lua: all patterns
* Remove stream interation (only one appears to be available now)
* Parse all media properties from the media page
* Remove unused Guardian.* functions
* Improve thumbnail URL parsing
Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
| Lua | agpl-3.0 | alech/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts |
c23c49630414156c15635f77e03d3c51a268f723 | themes/term.lua | themes/term.lua | -- Copyright 2007-2020 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Terminal theme for Textadept.
-- Contributions by Ana Balan.
local view, colors, styles = view, lexer.colors, lexer.styles
-- Normal colors.
colors.black = 0x000000
colors.red = 0x000080
colors.green = 0x008000
colors.yellow = 0x008080
colors.b... | -- Copyright 2007-2020 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Terminal theme for Textadept.
-- Contributions by Ana Balan.
local view, colors, styles = view, lexer.colors, lexer.styles
-- Normal colors.
colors.black = 0x000000
colors.red = 0x000080
colors.green = 0x008000
colors.yellow = 0x008080
colors.b... | Fixed call tip style display in the terminal version. It does not appear to inherit from STYLE_DEFAULT. The bug was introduced in r2817. | Fixed call tip style display in the terminal version.
It does not appear to inherit from STYLE_DEFAULT.
The bug was introduced in r2817.
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
f81d529e36399feeb9d674f40013d469d43178af | modulefiles/Core/eemt/0.1.lua | modulefiles/Core/eemt/0.1.lua | help(
[[
This module loads the EEMT stack which includes a bunch of GIS tools
]])
whatis("Loads the EEMT GIS system")
local version = "0.1"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/eemt/"..version
prepend_path("PATH", base.."/grass-6.4.4/bin")
prepend_path("PATH", base.."/grass-6.4.4/scripts")
prepe... | help(
[[
This module loads the EEMT stack which includes a bunch of GIS tools
]])
whatis("Loads the EEMT GIS system")
local version = "0.1"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/eemt/"..version
setenv("GISBASE", base.."/grass-6.4.4")
prepend_path("PATH", base.."/grass-6.4.4/bin")
prepend_path("P... | EEMT fix | EEMT fix
| Lua | apache-2.0 | OSGConnect/modulefiles,OSGConnect/modulefiles,OSGConnect/modulefiles |
f33051f68fb931a66026e228719a194e09e4f2b7 | packages/lime-proto-anygw/files/usr/lib/lua/lime/proto/anygw.lua | packages/lime-proto-anygw/files/usr/lib/lua/lime/proto/anygw.lua | #!/usr/bin/lua
local fs = require("nixio.fs")
local network = require("lime.network")
local config = require("lime.config")
anygw = {}
anygw.configured = false
anygw.SAFE_CLIENT_MTU = 1350
function anygw.configure(args)
if anygw.configured then return end
anygw.configured = true
local ipv4, ipv6 = network.pri... | #!/usr/bin/lua
local fs = require("nixio.fs")
local network = require("lime.network")
local config = require("lime.config")
anygw = {}
anygw.configured = false
anygw.SAFE_CLIENT_MTU = 1350
function anygw.configure(args)
if anygw.configured then return end
anygw.configured = true
local ipv4, ipv6 = network.pri... | anygw: use dnsmasq host-record instead of address | anygw: use dnsmasq host-record instead of address
This fixes dnsmasq returning the anycast address when the dns query
is for a host if dnsmasq does not know about it. For example
pepe.thisnode.info was returning the anycast address if pepe was not
known by dnsmasq (or only the ipv4 was known and the ipv6 was
requested... | Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
94a383fb17871bc5842fa0893e771491cd162f79 | libs/httpd/luasrc/httpd.lua | libs/httpd/luasrc/httpd.lua | --[[
HTTP server implementation for LuCI - core
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the... | --[[
HTTP server implementation for LuCI - core
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the... | * libs/httpd: Fixed a memleak | * libs/httpd: Fixed a memleak
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2488 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | dtaht/cerowrt-luci-3.3,Canaan-Creative/luci,ThingMesh/openwrt-luci,yeewang/openwrt-luci,projectbismark/luci-bismark,alxhh/piratenluci,ReclaimYourPrivacy/cloak-luci,ReclaimYourPrivacy/cloak-luci,8devices/carambola2-luci,Flexibity/luci,gwlim/luci,Canaan-Creative/luci,alxhh/piratenluci,Canaan-Creative/luci,Flexibity/luci,... |
02e2b3bd478013bab88ca9c197fd6f981ce2f85e | profiles/car.lua | profiles/car.lua | -- Begin of globals
require("lib/access")
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true}
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = tru... | -- Begin of globals
--require("lib/access") --function temporarily inlined
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true}
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_ve... | temporarily fixes #811 plus 16 others | temporarily fixes #811 plus 16 others
| Lua | bsd-2-clause | frodrigo/osrm-backend,atsuyim/osrm-backend,neilbu/osrm-backend,ammeurer/osrm-backend,prembasumatary/osrm-backend,oxidase/osrm-backend,atsuyim/osrm-backend,bjtaylor1/Project-OSRM-Old,stevevance/Project-OSRM,felixguendling/osrm-backend,Project-OSRM/osrm-backend,tkhaxton/osrm-backend,bjtaylor1/Project-OSRM-Old,ammeurer/os... |
f08e8c9f3caf50d6553bd7224407c629374d04aa | src/socket.lua | src/socket.lua |
-- defined below
local close
-- metatable to allow garbage-collecting file descriptors
local fd_mt = {
__gc = function(wrapper)
close(wrapper.fd)
--print("GC: closed "..wrapper.fd)
end
}
local function wrapFd(fd)
return setmetatable({fd = fd}, fd_mt)
end
-- Functions to establish sockets
local socketPath = ... |
-- defined below
local close
-- metatable to allow garbage-collecting file descriptors
local fd_mt = {
__gc = function(wrapper)
close(wrapper.fd)
--print("GC: closed "..wrapper.fd)
end
}
local function wrapFd(fd)
-- propagate nil
if fd == nil then return nil end
return setmetatable({fd = fd}, fd_mt)
end
--... | Fix regression where error-signaling nil fds got wrapped, masking their error status. | Fix regression where error-signaling nil fds got wrapped, masking
their error status.
| Lua | mit | Tangent128/sema,Tangent128/sema,Tangent128/sema |
14a22809ccfe733859808d1e0dc9cc08c59cac97 | lexers/yaml.lua | lexers/yaml.lua | -- Copyright 2006-2015 Mitchell mitchell.att.foicica.com. See LICENSE.
-- YAML LPeg lexer.
-- It does not keep track of indentation perfectly.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'yaml'}
-- Whitespace.
local indent = #l.... | -- Copyright 2006-2015 Mitchell mitchell.att.foicica.com. See LICENSE.
-- YAML LPeg lexer.
-- It does not keep track of indentation perfectly.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'yaml'}
-- Whitespace.
local indent = #l.... | Fix multiple key highlighting on a single line; lexers/yaml.lua | Fix multiple key highlighting on a single line; lexers/yaml.lua
| Lua | mit | rgieseke/scintillua |
bd704da395775081b23f1dc79e213b3b69bfcec2 | src/jet/daemon/radix.lua | src/jet/daemon/radix.lua | -- Implements a radix tree for the jet-daemon
local pairs = pairs
local next = next
local type = type
local tinsert = table.insert
local tremove = table.remove
local new = function()
local j = {}
-- the table that holds the radix_tree
local radix_tree = {}
-- elments that can be filled by several functi... | -- Implements a radix tree for the jet-daemon
local pairs = pairs
local next = next
local tinsert = table.insert
local tremove = table.remove
local new = function()
local j = {}
-- the table that holds the radix_tree
j.radix_tree = {}
-- elments that can be filled by several functions
-- and be return... | fix usage of next. don't use expensive type comparisons. | fix usage of next. don't use expensive type comparisons.
| Lua | mit | lipp/lua-jet |
3c7097a8972ac5eaf58fe737a1c615ada1afb3d4 | src/inputkeymaputils/src/Shared/ProximityPromptInputUtils.lua | src/inputkeymaputils/src/Shared/ProximityPromptInputUtils.lua | --[=[
Utility functions to configure a proximity prompt based upon the
input key map given.
@class ProximityPromptInputUtils
]=]
local require = require(script.Parent.loader).load(script)
local InputKeyMapList = require("InputKeyMapList")
local InputModeTypes = require("InputModeTypes")
local InputKeyMap = require... | --[=[
Utility functions to configure a proximity prompt based upon the
input key map given.
@class ProximityPromptInputUtils
]=]
local require = require(script.Parent.loader).load(script)
local InputKeyMapList = require("InputKeyMapList")
local InputModeTypes = require("InputModeTypes")
local InputKeyMap = require... | fix: Proximity prompt has tap in the custom input prompt too | fix: Proximity prompt has tap in the custom input prompt too
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
11fb712fe116554a746fa700768b2e510e164501 | test/bench/memtier.test.lua | test/bench/memtier.test.lua | #!/usr/bin/env tarantool
local tap = require('tap')
local fio = require('fio')
local has_popen, popen = pcall(require, 'popen')
package.cpath = './?.so;' .. package.cpath
local memcached = require('memcached')
local test = tap.test('memcached benchmarks')
if not has_popen then
test:plan(0)
os.exit(0)
end
tes... | #!/usr/bin/env tarantool
local tap = require('tap')
local fio = require('fio')
local has_popen, popen = pcall(require, 'popen')
package.cpath = './?.so;' .. package.cpath
local memcached = require('memcached')
local test = tap.test('memcached benchmarks')
if not has_popen then
test:plan(0)
os.exit(0)
end
tes... | test: fixes for memtier benchmark wrapper | test: fixes for memtier benchmark wrapper
Suppress output with DEVNULL instead of PIPE when test-run is used for
running benchmark and reflect test run status in exit code.
Follows up #81
| Lua | bsd-2-clause | tarantool/memcached,tarantool/memcached |
839f5643e92f5c8f5624359c668cb68bcf012180 | test_scripts/Polices/build_options/ATF_P_Check_STATUS_vai_USER_Request.lua | test_scripts/Polices/build_options/ATF_P_Check_STATUS_vai_USER_Request.lua | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] OnStatusUpdate(UPDATE_NEEDED) on new PTU request
--
-- Note: copy PTUfilename - ptu.json on this way /tmp/fs/mp/images/ivsu_cache/
-- Description:
-- SDL should request PTU... | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] OnStatusUpdate(UPDATE_NEEDED) on new PTU request
--
-- Note: copy PTUfilename - ptu.json on this way /tmp/fs/mp/images/ivsu_cache/
-- Description:
-- SDL should request PTU... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
1000d76a79472044a063b59003c730fda9c72209 | packages/shared-state/files/usr/lib/lua/shared-state.lua | packages/shared-state/files/usr/lib/lua/shared-state.lua | #!/usr/bin/lua
--! Minimalistic CRDT-like shared state structure suitable for mesh networks
--!
--! Copyright (C) 2019 Gioacchino Mazzurco <gio@altermundi.net>
--!
--! This program is free software: you can redistribute it and/or modify
--! it under the terms of the GNU Affero General Public License version 3 as
--! ... | #!/usr/bin/lua
--! Minimalistic CRDT-like shared state structure suitable for mesh networks
--!
--! Copyright (C) 2019 Gioacchino Mazzurco <gio@altermundi.net>
--!
--! This program is free software: you can redistribute it and/or modify
--! it under the terms of the GNU Affero General Public License version 3 as
--! ... | Fixes when shared-state plugin doesnt have any hooks defined. | Fixes when shared-state plugin doesnt have any hooks defined.
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
758c277d5748ddae9dae1d26b533250c476c6682 | src/lgix/GObject-Object.lua | src/lgix/GObject-Object.lua | ------------------------------------------------------------------------------
--
-- LGI Object handling.
--
-- Copyright (c) 2010, 2011 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
---------------------------------------------------------------------... | ------------------------------------------------------------------------------
--
-- LGI Object handling.
--
-- Copyright (c) 2010, 2011 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
---------------------------------------------------------------------... | Fix access of interface elements from object instances | Fix access of interface elements from object instances
| Lua | mit | zevv/lgi,psychon/lgi,pavouk/lgi |
6f18f5b0e6b5c47f8c770e75fbd4c7aaa02942c3 | src/npge/algo/BlastHits.lua | src/npge/algo/BlastHits.lua | local makeblastdb = function(bank_fname, consensus_fname)
local args = {
'makeblastdb',
'-dbtype nucl',
'-out', bank_fname,
'-in', consensus_fname,
}
-- not os.execute to suppress messages produced by blast
local f = assert(io.popen(table.concat(args, ' ')))
f:read('*... | local makeblastdb = function(bank_fname, consensus_fname)
local args = {
'makeblastdb',
'-dbtype nucl',
'-out', bank_fname,
'-in', consensus_fname,
}
-- not os.execute to suppress messages produced by blast
local f = assert(io.popen(table.concat(args, ' ')))
f:read('*... | BlastHits: fix whole row of gaps case | BlastHits: fix whole row of gaps case
I failed to reproduce this in tests.
Blast can produce the following output:
Query 31492 GAGCGCAGCGGCCGTATTCTTCACTGCCCCACTGCCCCACTGCCCCACTGCCCCACT--- 31548
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sbjct 5309 GAGCGCAGCGGCCGTATTCTTCACTGCCCCACTGC... | Lua | mit | npge/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge |
328d5c17c44b4c7cb0623103c926dbae215745e4 | init.lua | init.lua | require 'libpaths'
local assert = assert
local debug = debug
local pcall = pcall
local type = type
local ipairs = ipairs
local os = os
function paths.is_win()
return paths.uname():match('Windows')
end
function paths.is_mac()
return paths.uname():match('Darwin')
end
if paths.is_win() then
paths.home = os.ge... | require 'libpaths'
local assert = assert
local debug = debug
local pcall = pcall
local type = type
local ipairs = ipairs
local os = os
function paths.is_win()
return paths.uname():match('Windows')
end
function paths.is_mac()
return paths.uname():match('Darwin')
end
if paths.is_win() then
paths.home = os.ge... | fix 5.2 compatibility patch | fix 5.2 compatibility patch
| Lua | bsd-3-clause | LinusU/paths,nicholas-leonard/paths,torch/paths |
6801f6075db62801ba738233c1f83f98a19d38af | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | modules/admin-full: fix crash on network interface overview page | modules/admin-full: fix crash on network interface overview page
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6099 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 |
784e43b234a6b993dde63d60940e5c9276de4bca | letsjustchat.lua | letsjustchat.lua | #!/usr/bin/env carbon
-- Lets just chat!
event = require("libs.event")
logger = require("libs.logger")
loader = require("libs.loader")
logger.log("Main", logger.normal, "Loading Init files...")
local loaded, loadtime = loader.load("init.d/*")
logger.log("Main", logger.normal, "Loaded "..tostring(loaded).." Init Files... | #!/usr/bin/env carbon
-- Lets just chat!
event = require("libs.event")
logger = require("libs.logger")
loader = require("libs.loader")
logger.log("Main", logger.normal, "Loading Init files...")
local loaded, loadtime = loader.load("init.d/*")
logger.log("Main", logger.normal, "Loaded "..tostring(loaded).." Init Files... | Small fix for websocket errors. | Small fix for websocket errors.
| Lua | mit | vifino/letsjustchat |
b1257ee0a5d940f495b145d967302223239e8817 | src/gamepad.lua | src/gamepad.lua | -- PibePlayer's GamePad Interface
-- by @PibePlayer
--[[How to use:
Buttons:
(1: Exit Button - 2: Up - 3: Down - 4: Left - 5: Right
6: X - 7: Z)
Practical Use:
gamepad=require "gamepad"
g=gamepad:new() --initialization
g:update() --updates itself
g:draw() ... | -- PibePlayer's GamePad Interface
-- by @PibePlayer
--[[How to use:
Buttons:
(1: Exit Button - 2: Left - 3: Right - 4: Up - 5: Down
6: X - 7: Z)
Practical Use:
gamepad=require "gamepad"
g=gamepad:new() --initialization
g:update() --updates itself
g:draw() ... | Fixed wrong gamepad relation between numbers and buttons | Fixed wrong gamepad relation between numbers and buttons
| Lua | mit | FreeBlues/neko8 |
660ee9263287eddf480683c450fbb4d6100c36b0 | statistics.lua | statistics.lua | field_count = 10
timeout = 0.05
function increment_or_insert(space, key, field)
retry = true
while retry do
status, result = pcall(box.update, space, key, '+p', field, 1)
if status then
--success update or tuple is not exist
retry = false
if result == nil then
--insert new tuple
... | field_count = 10
timeout = 0.006
max_attempts = 5
function increment_or_insert(space, key, field)
retry = true
count = 0
while retry do
status, result = pcall(box.update, space, key, '+p', field, 1)
if status then
--success update or tuple is not exist
retry = false
if result == nil then
... | fix date, add logging, max attempts | fix date, add logging, max attempts
| Lua | bsd-2-clause | mailru/tntlua,spectrec/tntlua,grechkin-pogrebnyakov/tntlua,BHYCHIK/tntlua,derElektrobesen/tntlua |
4e8c79aa7cb1e929d555e9721420f3a4ac386260 | MMOCoreORB/bin/scripts/managers/jedi/village/village_jedi_manager_township.lua | MMOCoreORB/bin/scripts/managers/jedi/village/village_jedi_manager_township.lua | -- Additional Includes.
-- includeFile("village/fs_experience_converter_conv_handler.lua")
local ObjectManager = require("managers.object.object_manager")
local ScreenPlay = require("screenplays.screenplay")
-- Utils.
local Logger = require("utils.logger")
require("utils.helpers")
VillageJediManagerTownship = Screen... | -- Additional Includes.
-- includeFile("village/fs_experience_converter_conv_handler.lua")
local ObjectManager = require("managers.object.object_manager")
local ScreenPlay = require("screenplays.screenplay")
-- Utils.
local Logger = require("utils.logger")
require("utils.helpers")
VillageJediManagerTownship = Screen... | [fixed] Spawning of Villager npc's in township script. | [fixed] Spawning of Villager npc's in township script.
Change-Id: I342f0d60165fed4d0bf6377f6b8eceae3fc610ee
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege... |
2099afdbbc40afba71f0689ae29868a8b1341c7b | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | modules/admin-full: fix static routes page | modules/admin-full: fix static routes page
| Lua | apache-2.0 | artynet/luci,slayerrensky/luci,Kyklas/luci-proto-hso,Noltari/luci,tobiaswaldvogel/luci,teslamint/luci,zhaoxx063/luci,ff94315/luci-1,aa65535/luci,chris5560/openwrt-luci,opentechinstitute/luci,wongsyrone/luci-1,Hostle/luci,teslamint/luci,jlopenwrtluci/luci,oyido/luci,dwmw2/luci,nwf/openwrt-luci,teslamint/luci,Hostle/luci... |
c0566411d4bd70caab0ddcf62b1510f46cbf0a8e | spec/os_spec.lua | spec/os_spec.lua | describe('lift.os', function()
local WAIT = 100 -- how much to wait for a process to finish
if os.getenv('CI') then
WAIT = 200
end
local os = require 'lift.os'
local ls = require 'lift.string'
local async = require 'lift.async'
local config = require 'lift.config'
local su = require 'spec.util'
... | describe('lift.os', function()
local WAIT = 100 -- how much to wait for a process to finish
if os.getenv('CI') then
WAIT = 200
end
local os = require 'lift.os'
local ls = require 'lift.string'
local async = require 'lift.async'
local config = require 'lift.config'
local su = require 'spec.util'
... | Fix test | Fix test
| Lua | mit | tbastos/lift |
f61e5a22d7d76561cfb10a8d83e14e324d2a772a | src/luarocks/build/cmake.lua | src/luarocks/build/cmake.lua |
--- Build back-end for CMake-based modules.
--module("luarocks.build.cmake", package.seeall)
local cmake = {}
local fs = require("luarocks.fs")
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
--- Driver function for the "cmake" build back-end.
-- @param rockspec table: the loaded rockspec.
... |
--- Build back-end for CMake-based modules.
--module("luarocks.build.cmake", package.seeall)
local cmake = {}
local fs = require("luarocks.fs")
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
--- Driver function for the "cmake" build back-end.
-- @param rockspec table: the loaded rockspec.
... | cmake backend: Generate 64 bits build when appropiate | cmake backend: Generate 64 bits build when appropiate
Adds -DCMAKE_GENERATOR_PLATFORM=x64 when needed. It seems that
CMake does not do that by default (although I might be wrong on that).
fixes #382
| Lua | mit | robooo/luarocks,robooo/luarocks,rrthomas/luarocks,coderstudy/luarocks,luarocks/luarocks,lxbgit/luarocks,ignacio/luarocks,rrthomas/luarocks,xpol/luainstaller,ignacio/luarocks,ignacio/luarocks,aryajur/luarocks,usstwxy/luarocks,keplerproject/luarocks,xpol/luavm,xpol/luainstaller,xpol/luarocks,robooo/luarocks,starius/luaro... |
b1f7c2486be9bf054eabc4181944133588127778 | premake4.lua | premake4.lua |
local action = _ACTION or ""
solution "island"
location ( "build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
targetdir("build")
language "C"
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "Debug"
defines { "DEBUG" }
... |
local action = _ACTION or ""
solution "island"
location (".project")
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
targetdir ("bin")
language "C"
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "Debug"
targetsuffix "_d"
... | Add suffix to debug binaries. | Add suffix to debug binaries.
| Lua | mit | island-org/island,island-org/island |
6d931d5b931e89d3b7f4237fac2bcd3ecb9a2721 | bin/TerrainEditorData/LuaScripts/TerrainEditFilters/roadbuilder2.lua | bin/TerrainEditorData/LuaScripts/TerrainEditFilters/roadbuilder2.lua | -- New road builder
return
{
name="Road Builder v2.0",
description="Construct a road from the current list of waypoints.",
options=
{
{name="Spline", type="spline", value=nil},
{name="Bed width", type="value", value=16},
{name="Bed Hardness", type="value", value=0.5},
{name="Paving Width", type="value", v... | -- New road builder
return
{
name="Road Builder v2.0",
description="Construct a road from the current list of waypoints.",
options=
{
{name="Spline", type="spline", value=nil},
{name="Bed width", type="value", value=16},
{name="Bed Hardness", type="value", value=0.5},
{name="Paving Width", type="value", v... | Fix spline elevations. | Fix spline elevations.
| Lua | mit | JTippetts/U3DTerrainEditor,JTippetts/U3DTerrainEditor,JTippetts/U3DTerrainEditor,JTippetts/U3DTerrainEditor |
364d39c5babe32e702c0ceeeb898ee345ec60d32 | verizon.lua | verizon.lua | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.download_ch... | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:close()
return data
else
return ""
end
end
wget.callbacks.download_ch... | verizon.lua: fixed problem in script | verizon.lua: fixed problem in script | Lua | unlicense | ArchiveTeam/verizon-grab,ArchiveTeam/verizon-grab,ArchiveTeam/verizon-grab |
3938319134b8d88ce3dbc332f30c85a0dad2c87c | src/lounge/lua/playlist.lua | src/lounge/lua/playlist.lua | #!/lounge/bin/janosh -f
function remove(key, op, value)
Janosh:transaction(function()
value = tonumber(value)
idx = tonumber(Janosh:get("/playlist/index").index)
Janosh:remove_t("/playlist/items/#" .. value .. "/.")
if value < idx then
Janosh:set_t("/playlist/index", idx - 1);
end
end)
e... | #!/lounge/bin/janosh -f
function remove(key, op, value)
Janosh:transaction(function()
value = tonumber(value)
idx = tonumber(Janosh:get("/playlist/index").index)
Janosh:remove_t("/playlist/items/#" .. value .. "/.")
if value < idx then
Janosh:set_t("/playlist/index", idx - 1);
end
end)
e... | fixed index handling on shift | fixed index handling on shift
| Lua | agpl-3.0 | screeninvader/ScreenInvader,screeninvader/ScreenInvader |
8a5972485f673d441a5a9e1e811af3721bdb4259 | mod_carbons/mod_carbons.lua | mod_carbons/mod_carbons.lua | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[... | -- XEP-0280: Message Carbons implementation for Prosody
-- Copyright (C) 2011 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[... | mod_carbons: Fix handling of messages from remote hosts | mod_carbons: Fix handling of messages from remote hosts
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
a3ef61f1658b1a4dad91ec737e0075051bb692ba | triggerfield/noobia_henry.lua | triggerfield/noobia_henry.lua | -- INSERT INTO triggerfields VALUES (37,20,100,'triggerfield.noobia_henry');
-- INSERT INTO triggerfields VALUES (37,21,100,'triggerfield.noobia_henry');
-- INSERT INTO triggerfields VALUES (37,22,100,'triggerfield.noobia_henry');
-- INSERT INTO triggerfields VALUES (38,20,100,'triggerfield.noobia_henry');
-- INSERT IN... | -- INSERT INTO triggerfields VALUES (37,20,100,'triggerfield.noobia_henry');
-- INSERT INTO triggerfields VALUES (37,21,100,'triggerfield.noobia_henry');
-- INSERT INTO triggerfields VALUES (37,22,100,'triggerfield.noobia_henry');
-- INSERT INTO triggerfields VALUES (38,20,100,'triggerfield.noobia_henry');
-- INSERT IN... | Trying to fix this triggerfield | Trying to fix this triggerfield
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content |
382a33f40a76cedc945ae6895a1341118ca48e4e | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | modules/admin-full: fix crash on network interface overview page | modules/admin-full: fix crash on network interface overview page
| Lua | apache-2.0 | LuttyYang/luci,deepak78/new-luci,keyidadi/luci,david-xiao/luci,shangjiyu/luci-with-extra,hnyman/luci,Kyklas/luci-proto-hso,florian-shellfire/luci,bittorf/luci,jorgifumi/luci,lcf258/openwrtcn,florian-shellfire/luci,ff94315/luci-1,aa65535/luci,Kyklas/luci-proto-hso,dwmw2/luci,mumuqz/luci,forward619/luci,kuoruan/luci,flor... |
ded2434dac6e73be5d21ae0080a6349700b4be06 | lib/gsmake/sync/github.com/gsmake/curl/src/plugin/lua/plugin.lua | lib/gsmake/sync/github.com/gsmake/curl/src/plugin/lua/plugin.lua | local fs = require "lemoon.fs"
local sys = require "lemoon.sys"
local class = require "lemoon.class"
local filepath = require "lemoon.filepath"
local logger = class.new("lemoon.log","gsmake")
local console = class.new("lemoon.log","console")
task.sync_init = function(self)
if sys.h... | local fs = require "lemoon.fs"
local sys = require "lemoon.sys"
local class = require "lemoon.class"
local filepath = require "lemoon.filepath"
local logger = class.new("lemoon.log","gsmake")
local console = class.new("lemoon.log","console")
task.sync_init = function(self)
if sys.h... | fix windows curl lookup bug | fix windows curl lookup bug
| Lua | mit | gsmake/gsmake,gsmake/gsmake |
246be3208a36a7a917995c2bd691e11ae2f64288 | modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua | modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | Fix: Mountpoints cannot be disabled | Fix: Mountpoints cannot be disabled
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@4602 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | ReclaimYourPrivacy/cloak-luci,saraedum/luci-packages-old,jschmidlapp/luci,zwhfly/openwrt-luci,ch3n2k/luci,yeewang/openwrt-luci,phi-psi/luci,gwlim/luci,vhpham80/luci,phi-psi/luci,freifunk-gluon/luci,yeewang/openwrt-luci,stephank/luci,gwlim/luci,yeewang/openwrt-luci,saraedum/luci-packages-old,jschmidlapp/luci,saraedum/lu... |
350724470e02ce9f2ce2de13e51c0d35f3d2475e | cardshifter-fx/src/main/resources/com/cardshifter/core/start.lua | cardshifter-fx/src/main/resources/com/cardshifter/core/start.lua | -- Always name this function "startGame"
function startGame(game)
local endturnAction = require "src/main/resources/com/cardshifter/core/actions/player/endturn"
game:on('actionUsed', onActionUsed)
game:on('turnStart', onTurnStart)
local numPlayers = game:getPlayers():size()
for i = 0, numPlayers - 1 do
loc... | -- Always name this function "startGame"
function startGame(game)
local endturnAction = require "src/main/resources/com/cardshifter/core/actions/player/endturn"
game:on('actionUsed', onActionUsed)
game:on('turnStart', onTurnStart)
local numPlayers = game:getPlayers():size()
for i = 0, numPlayers - 1 do
loc... | Also fixed #13 for JavaFX | Also fixed #13 for JavaFX | Lua | apache-2.0 | Cardshifter/Cardshifter,Cardshifter/Cardshifter,June92/Cardshifter,SirPython/Cardshifter,June92/Cardshifter,June92/Cardshifter,SirPython/Cardshifter,SirPython/Cardshifter,Cardshifter/Cardshifter |
83f3faf4a3a66fa720652507cacda5cb7640e5e3 | otouto/plugins/currency.lua | otouto/plugins/currency.lua | local currency = {}
currency.command = 'cash [Menge] <von> <zu>'
function currency:init(config)
currency.triggers = {
"^/cash ([A-Za-z]+)$",
"^/cash ([A-Za-z]+) ([A-Za-z]+)$",
"^/cash (%d+[%d%.,]*) ([A-Za-z]+) ([A-Za-z]+)$",
"^(/eur)$"
}
currency.doc = [[*
]]..config.cmd_pat..[[cash* _[Menge]_ _<... | local currency = {}
currency.command = 'cash [Menge] <von> <zu>'
function currency:init(config)
currency.triggers = {
"^/cash ([A-Za-z]+)$",
"^/cash ([A-Za-z]+) ([A-Za-z]+)$",
"^/cash (%d+[%d%.,]*) ([A-Za-z]+) ([A-Za-z]+)$",
"^(/cash)$"
}
currency.inline_triggers = {
"^c ([A-Za-z]+)$",
"^c ... | Currency: Stelle auf Fixer.io um und ergänze Inline (danke @Centzilius) | Currency: Stelle auf Fixer.io um und ergänze Inline (danke @Centzilius)
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
4c1c749057fa1c760b2338d82e824e99774ddeb6 | deps/buffer.lua | deps/buffer.lua | --[[
Copyright 2014-2015 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 o... | --[[
Copyright 2014-2015 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 o... | fix bug when luajit link with static run times lib, eg. /MT link flags | fix bug when luajit link with static run times lib, eg. /MT link flags
| Lua | apache-2.0 | bsn069/luvit,kaustavha/luvit,bsn069/luvit,zhaozg/luvit,zhaozg/luvit,kaustavha/luvit,luvit/luvit,luvit/luvit,bsn069/luvit,kaustavha/luvit |
003db709c33e3b1c73141c683bc234e63883f3fa | src/premake5.lua | src/premake5.lua | vk_path = os.getenv("VULKAN_SDK");
if (vk_path == nil) then
vk_path = os.getenv("VK_SDK_PATH")
end
if (vk_path == nil) then
print("No vulkan sdk path. Set environment variable VULKAN_SDK or VK_SDK_PATH to the vulkan sdk directory")
os.exit()
end
workspace("Frodo")
startproject "Sandbox"... | vk_path = os.getenv("VULKAN_SDK");
if (vk_path == nil) then
vk_path = os.getenv("VK_SDK_PATH")
end
if (vk_path == nil) then
print("No vulkan sdk path. Set environment variable VULKAN_SDK or VK_SDK_PATH to the vulkan sdk directory")
os.exit()
end
workspace("Frodo")
startproject "Sandbox"... | Fixed defines: FD_DEBUG and FD_RELEASE | Fixed defines: FD_DEBUG and FD_RELEASE
| Lua | mit | JeppeSRC/Frodo,JeppeSRC/Frodo,JeppeSRC/Frodo |
46f09b9e6c3d36fe6f7b1866c5fee42117acc1e2 | plugins/exporter.koplugin/base.lua | plugins/exporter.koplugin/base.lua | --[[--
Base for highlight exporters.
Each target should inherit from this class and implement *at least* an `export` function.
@module baseexporter
]]
local BaseExporter = {
clipping_dir = require("datastorage"):getDataDir() .. "/clipboard"
}
function BaseExporter:new(o)
o = o or {}
assert(type(o.name) ... | --[[--
Base for highlight exporters.
Each target should inherit from this class and implement *at least* an `export` function.
@module baseexporter
]]
local getSafeFilename = require("util").getSafeFilename
local BaseExporter = {
clipping_dir = require("datastorage"):getDataDir() .. "/clipboard"
}
function Base... | exporter.koplugin: use safe filename | exporter.koplugin: use safe filename
fix #9130: files missing in some devices. | Lua | agpl-3.0 | koreader/koreader,NiLuJe/koreader,poire-z/koreader,poire-z/koreader,NiLuJe/koreader,Frenzie/koreader,Frenzie/koreader,koreader/koreader |
83c86bf78d306eaf5ef808f46b979ab04993ed96 | extensions/hints/init.lua | extensions/hints/init.lua | --- === hs.hints ===
---
--- Switch focus with a transient per-application keyboard shortcut
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This... | --- === hs.hints ===
---
--- Switch focus with a transient per-application keyboard shortcut
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This... | Fix hs.hints to not run icons off the bottom of the screen if there are lots of them. Closes #211 | Fix hs.hints to not run icons off the bottom of the screen if there are
lots of them. Closes #211
| Lua | mit | ocurr/hammerspoon,junkblocker/hammerspoon,knl/hammerspoon,lowne/hammerspoon,bradparks/hammerspoon,cmsj/hammerspoon,junkblocker/hammerspoon,TimVonsee/hammerspoon,knl/hammerspoon,heptal/hammerspoon,chrisjbray/hammerspoon,Hammerspoon/hammerspoon,tmandry/hammerspoon,latenitefilms/hammerspoon,zzamboni/hammerspoon,CommandPos... |
46e942b9f84e9bc899d7be577d6c1b883a6097aa | luasrc/mch/logger.lua | luasrc/mch/logger.lua | #!/usr/bin/env lua
-- -*- lua -*-
-- Copyright 2012 Appwill Inc.
-- Author : KDr2
--
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... | #!/usr/bin/env lua
-- -*- lua -*-
-- Copyright 2012 Appwill Inc.
-- Author : KDr2
--
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... | fix logger's shortened method | fix logger's shortened method
| Lua | apache-2.0 | lilien1010/moochine,lilien1010/moochine,lilien1010/moochine,appwilldev/moochine,appwilldev/moochine |
b7e6caee95ea498313ab759175e08a77e970e17f | source/scenes/singlePlayer/game.lua | source/scenes/singlePlayer/game.lua | -- TODO: clean this up!
require "source/utilities/vector"
require "source/utilities/extensions/math"
require "source/scenes/singlePlayer/enemy"
require "source/pathfinder"
local Towers = require "assets/towers"
-- import
local flower = flower
local math = math
local vector = vector
local MOAIGridSpace = MOAIGridSpac... | -- TODO: clean this up!
require "source/utilities/vector"
require "source/utilities/extensions/math"
require "source/scenes/singlePlayer/enemy"
require "source/pathfinder"
local Towers = require "assets/towers"
-- import
local flower = flower
local math = math
local vector = vector
local MOAIGridSpace = MOAIGridSpac... | Fixed bug where an enemy would not be updated. | Fixed bug where an enemy would not be updated.
| Lua | mit | BryceMehring/Hexel |
6cafd14a03843927eef53e80d9080f5730b2ac9b | scripts/case.lua | scripts/case.lua | -- demlo script
-- Set case in tags either to title case or sentence case.
-- See https://en.wikipedia.org/wiki/Letter_case.
-- Global options.
local sentencecase = scase or false
local constants = const or {}
-- TODO: No verb? (am, are, was, is) No word > 3 chars? (against, between, from, into, onto)
const_en = con... | -- demlo script
-- Set case in tags either to title case or sentence case.
-- See https://en.wikipedia.org/wiki/Letter_case.
-- Global options.
local sentencecase = scase or false
local const_custom = const or {}
-- TODO: No verb? (am, are, was, is) No word > 3 chars? (against, between, from, into, onto)
const_en = ... | scripts/case.lua: Capitalize after '/' and fix unused user-defined 'const' | scripts/case.lua: Capitalize after '/' and fix unused user-defined 'const'
| Lua | mit | Ambrevar/Demlo,Ambrevar/Demlo |
5fd032d4aac74d577b8f30dd4d616710decd3cae | gga.lua | gga.lua | solution "gga"
configurations {"Release", "Debug" }
location (_OPTIONS["to"])
-------------------------------------
-- glfw static lib
-------------------------------------
project "glfw_proj"
targetname "glfw"
language "C"
kind "StaticLib"
defines {
"_CRT_SECURE_NO_WARNINGS"
}
... | solution "gga"
configurations {"Release", "Debug" }
location (_OPTIONS["to"])
-------------------------------------
-- glfw static lib
-------------------------------------
project "glfw_proj"
targetname "glfw"
language "C"
kind "StaticLib"
defines {
"_CRT_SECURE_NO_WARNINGS"
}
... | linking mistake with msvcrt on Windows fixed. | linking mistake with msvcrt on Windows fixed.
| Lua | mit | mrTag/GreatGreenArkleseizure,mrTag/GreatGreenArkleseizure |
9c332b96f366235dbcf6f2e490e6aef32fb9f189 | spec/cl_spec.lua | spec/cl_spec.lua | -- Tests the commandline options by executing busted through
-- os.execute(). It can be run through the following command:
--
-- busted --pattern=cl_test.lua --defer-print
local ditch
local error_started
local error_start = function()
if ditch == "" then return end
print("=======================================... |
local path = require("pl.path")
local ditch = " > /dev/null 2>&1"
if path.is_windows then
ditch = " 1> NUL 2>NUL"
end
--ditch = "" -- uncomment this line, to show output of failing commands, for debugging
local error_started
local error_start = function()
if ditch ~= "" then return end
print("=================... | bugfix | bugfix
| Lua | mit | leafo/busted,istr/busted,mpeterv/busted,o-lim/busted,nehz/busted,ryanplusplus/busted,xyliuke/busted,sobrinho/busted,Olivine-Labs/busted,DorianGray/busted |
cab4d9d23ec9d9786827477654c8b9b9d1f22967 | obj/commands/Node.lua | obj/commands/Node.lua | local Command = require("obj.Command")
--- test command
local Node = Command:clone()
Node.name = "Node"
Node.keywords = {}
--- Execute the command
function Node:execute(input,user,par)
if par == "tcp" then
if user.node or user.master then
return Request:subexecute(input,user,par)
end
end
return false
end
f... | local Command = require("obj.Command")
--- test command
local Node = Command:clone()
Node.name = "Node"
Node.keywords = {}
--- Execute the command
function Node:execute(input,user,par)
if par == "tcp" then
return Node:subexecute(input,user,par)
end
return false
end
function Node:subexecute(input,user,par)
loca... | minor error fixes | minor error fixes
fixed some minor errors
| Lua | mit | PhilMo6/Lua_pi_pan,PhilMo6/Lua_pi_pan,PhilMo6/Lua_pi_pan,PhilMo6/Lua_pi_pan |
111d95cea2841eb11a141a06b255897b2fa4bb19 | src/logfactory/LogReader.lua | src/logfactory/LogReader.lua | local LogReader = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local EVENT_NEW_COMMIT = 'NEW_COMMIT';
local EVENT_CHANGED_FILE = 'LOGREADER_CHANGED_FILE';
local MOD_ADD = 'A';
local MOD_DELETE = 'D';
-- --------------------------------------... | local LogReader = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local EVENT_NEW_COMMIT = 'NEW_COMMIT';
local EVENT_CHANGED_FILE = 'LOGREADER_CHANGED_FILE';
local MOD_ADD = 'A';
local MOD_DELETE = 'D';
-- --------------------------------------... | Fix file extension not being sent to the graph | Fix file extension not being sent to the graph
| Lua | mit | rm-code/logivi |
fee2aa29b34edb8b96a6145b3e7e192b03fa59cf | spec/keycloak_spec.lua | spec/keycloak_spec.lua | local _M = require 'oauth.keycloak'
local test_backend_client = require 'resty.http_ng.backend.test'
describe('Keycloak', function()
local test_backend
before_each(function() test_backend = test_backend_client.new() end)
after_each(function() test_backend.verify_no_outstanding_expectations() end)
d... | local _M = require 'oauth.keycloak'
local test_backend_client = require 'resty.http_ng.backend.test'
describe('Keycloak', function()
local test_backend
before_each(function() test_backend = test_backend_client.new() end)
after_each(function() test_backend.verify_no_outstanding_expectations() end)
descri... | Add some keycloak tests | Add some keycloak tests
Add some keycloak tests
Some more keycloak tests
Some more keycloak tests
Fix tests
Fix tests
Some more tests
Some more tests
| Lua | mit | 3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/apicast,3scale/docker-gateway |
379b6fa3fdcee7c840246a15b917e50b47423105 | Modules/Utility/Binder.lua | Modules/Utility/Binder.lua | --- Bind class to Roblox Instance
-- @classmod Binder
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CollectionService = game:GetService("CollectionService")
local Maid = require("Maid")
local fastSpawn = require("fastSpawn")
local Binder = {}
Binder.__index = Binder
B... | --- Bind class to Roblox Instance
-- @classmod Binder
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CollectionService = game:GetService("CollectionService")
local Maid = require("Maid")
local fastSpawn = require("fastSpawn")
local Binder = {}
Binder.__index = Binder
B... | Fix binder and add :Bind method | Fix binder and add :Bind method
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
62fade570951964115136f2cd47487633cd529be | libs/core/luasrc/init.lua | libs/core/luasrc/init.lua | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | libs/core: make sure that bitlib is loaded, fixes some sdk problems | libs/core: make sure that bitlib is loaded, fixes some sdk problems
| Lua | apache-2.0 | Sakura-Winkey/LuCI,slayerrensky/luci,lcf258/openwrtcn,jchuang1977/luci-1,rogerpueyo/luci,bittorf/luci,tcatm/luci,keyidadi/luci,aircross/OpenWrt-Firefly-LuCI,fkooman/luci,LazyZhu/openwrt-luci-trunk-mod,981213/luci-1,cappiewu/luci,remakeelectric/luci,chris5560/openwrt-luci,LuttyYang/luci,palmettos/test,florian-shellfire/... |
9f9d269a4a84255a6120c60a801033f06be75e4c | busted/modules/files/terra.lua | busted/modules/files/terra.lua | local path = require 'pl.path'
local ret = {}
local terra_available, terralib = not not terralib, terralib --grab the injected global if it exists
if not terra_available then
terra_available, terralib = pcall(require, 'terra') --otherwise, attempt to load terra as a shared library
end
local getTrace = function(file... | local path = require 'pl.path'
local ret = {}
local terra_available, terralib = not not terralib, terralib --luacheck: ignore
if not terra_available then
terra_available, terralib = pcall(require, 'terra') --otherwise, attempt to load terra as a shared library
end
local getTrace = function(filename, info)
local i... | fix(ci) fix linter errors introduced by terra change | fix(ci) fix linter errors introduced by terra change
| Lua | mit | Olivine-Labs/busted |
65a551f363df76f7334d5326f3fb8b3280fcc357 | ladleutil.lua | ladleutil.lua | local ladleutil = {}
mime = require('mimetypes')
function ladleutil.scandir(directory)
local i, t, popen = 0, {}, io.popen
for filename in popen('ls -a "'..directory..'"'):lines() do
i = i + 1
t[i] = filename
end
return t
end
function ladleutil.getRequestedFileInfo(request)
local fil... | local ladleutil = {}
mime = require('mimetypes')
function ladleutil.scandir(directory)
local i, t, popen = 0, {}, io.popen
for filename in popen('ls -a "'..directory..'"'):lines() do
i = i + 1
t[i] = filename
end
return t
end
function ladleutil.getRequestedFileInfo(request)
local fil... | Fixes, improvements: add query string parsing and urldecode | Fixes, improvements: add query string parsing and urldecode
getRequestedFileInfo(): improve pattern, remove unnecessary check
parseQueryString(): parse query string, urldecode from lua-wiki
parseRequest(): hunting for weird requests, improve patterns
trace(): trying to centralize output
| Lua | mit | danielrempel/ladle |
ffa479fbf9b1f367780a6cfa57d907a18a6fb58f | mod_smacks/mod_smacks.lua | mod_smacks/mod_smacks.lua | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local timer = require "util.timer";
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmln... | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local timer = require "util.timer";
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmln... | mod_smacks: Fixed to use the correct events API. | mod_smacks: Fixed to use the correct events API.
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
55d01a56851543f397b5dd1eeda809cf412b36fa | hostinfo/misc.lua | hostinfo/misc.lua | --[[
Copyright 2015 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 2015 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(hostinfo/misc): make the readcast function not insert empty objects into the outtable. Fixes #805 | fix(hostinfo/misc): make the readcast function not insert empty objects into the outtable. Fixes #805
| Lua | apache-2.0 | virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent |
02ddce7ab28ac5d7c91b05a5695c611e0c4e1c03 | packages/unichar/init.lua | packages/unichar/init.lua | local base = require("packages.base")
local package = pl.class(base)
package._name = "unichar"
function package:registerCommands ()
self:registerCommand("unichar", function(_, content)
local cp = content[1]
if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end
local hlist = SILE.typese... | local base = require("packages.base")
local package = pl.class(base)
package._name = "unichar"
function package:registerCommands ()
self:registerCommand("unichar", function(_, content)
local cp = content[1]
if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end
local hlist = SILE.typese... | docs(packages): Fixup unichar documentation, work around known bug (#1549) | docs(packages): Fixup unichar documentation, work around known bug (#1549)
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
b0731f9f8067b460325e86ca3cde2d1c96cf9ff9 | libs/web/luasrc/dispatcher.lua | libs/web/luasrc/dispatcher.lua | --[[
LuCI - Dispatcher
Description:
The request dispatcher and module dispatcher generators
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of... | --[[
LuCI - Dispatcher
Description:
The request dispatcher and module dispatcher generators
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of... | * Added timing fix | * Added timing fix
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2222 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | ch3n2k/luci,Flexibity/luci,freifunk-gluon/luci,vhpham80/luci,8devices/carambola2-luci,yeewang/openwrt-luci,alxhh/piratenluci,Canaan-Creative/luci,eugenesan/openwrt-luci,vhpham80/luci,ch3n2k/luci,saraedum/luci-packages-old,phi-psi/luci,yeewang/openwrt-luci,dtaht/cerowrt-luci-3.3,ReclaimYourPrivacy/cloak-luci,jschmidlapp... |
e9fb9abca54a15dc8b4139e437d2b29c68d6d4eb | LanguageModel.lua | LanguageModel.lua | require 'torch'
require 'nn'
require 'VanillaRNN'
require 'LSTM'
require 'GRU'
require 'GRIDGRU'
local utils = require 'util.utils'
local LM, parent = torch.class('nn.LanguageModel', 'nn.Module')
function LM:__init(kwargs)
self.idx_to_token = utils.get_kwarg(kwargs, 'idx_to_token')
self.token_to_idx = {}
se... | require 'torch'
require 'nn'
require 'VanillaRNN'
require 'LSTM'
require 'GRU'
require 'GRIDGRU'
local utils = require 'util.utils'
local LM, parent = torch.class('nn.LanguageModel', 'nn.Module')
function LM:__init(kwargs)
self.idx_to_token = utils.get_kwarg(kwargs, 'idx_to_token')
self.token_to_idx = {}
se... | Fix GridGRU BatchNorm dimension error | Fix GridGRU BatchNorm dimension error
GridGRU causes `BatchNormalization.lua:80: got D-feature tensor, expected H` if D ~= H. | Lua | mit | antihutka/torch-rnn,tmp6154/torch-rnn |
0194d832842fc8e32988751cad7211a69fc3b4d7 | lua/entities/gmod_starfall_hologram/cl_init.lua | lua/entities/gmod_starfall_hologram/cl_init.lua | include( "shared.lua" )
ENT.RenderGroup = RENDERGROUP_BOTH
-- Umsgs may be recieved before the entity is initialized, place
-- them in here until initialization.
local msgQueueNames = {}
local msgQueueData = {}
local function msgQueueAdd ( umname, ent, udata )
local names, data = msgQueueNames[ ent ], msgQueueData[... | include( "shared.lua" )
ENT.RenderGroup = RENDERGROUP_BOTH
-- Umsgs may be recieved before the entity is initialized, place
-- them in here until initialization.
local msgQueueNames = {}
local msgQueueData = {}
local function msgQueueAdd ( umname, ent, udata )
local names, data = msgQueueNames[ ent ], msgQueueData[... | Change RenderGroup based upon hologram alpha. | Change RenderGroup based upon hologram alpha.
Fixes #44
| Lua | bsd-3-clause | INPStarfall/Starfall,Xandaros/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Ingenious-Gaming/Starfall |
f767678f47ef5fb7e9f7dfdd869cd84e61142385 | lib/etcd.lua | lib/etcd.lua | local http = require("http")
local cjson = require("cjson")
-- Client implements a new etcd Client
local Client = {}
local keyPrefix = "/v1/keys"
function Client:new(url)
local c = {}
setmetatable(c, self)
self.__index = self
c.base_url = url or "http://127.0.0.1:4001"
return c
end
function Client:_keyURL... | local http = require("http")
local cjson = require("cjson")
-- Client implements a new etcd Client
local Client = {}
local keyPrefix = "/v1/keys"
-- new returns a new etcd.Client object
function Client:new(url)
local c = {}
setmetatable(c, self)
self.__index = self
c.base_url = url or "http://127.0.0.1:4001"... | fix(etcd): add some doc strings | fix(etcd): add some doc strings
| Lua | apache-2.0 | kgrvamsi/corelb,coreos/corelb,dmitryint/corelb |
4bc29ea5fcec3e655426026f24d418953df5f938 | luasnake/game.lua | luasnake/game.lua | -- game.lua
local game = {} ; game.__index = game
require('graphics')
local sound = require('sounds')
local Grid = require('grid')
local Fruit = require('fruit')
local Snake = require('snake')
local directions = {["up"] = 1, ["right"] = 2, ["down"] = 3, ["left"] = 4}
local configFile = "config.txt"
function game.new... | -- game.lua
local game = {} ; game.__index = game
require('graphics')
local sound = require('sounds')
local Grid = require('grid')
local Fruit = require('fruit')
local Snake = require('snake')
local directions = {["up"] = 1, ["right"] = 2, ["down"] = 3, ["left"] = 4}
local configFile = "config.txt"
function game.new... | Can now quit by pressing q, some refactoring, fixed config bug | Can now quit by pressing q, some refactoring, fixed config bug
| Lua | apache-2.0 | owenjones/LuaSnake |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.