commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4
values | license stringclasses 13
values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
039bda9c3ffb82749732ef1109c869c3a733d003 | posts/index.js | posts/index.js | module.exports = [
{
"title": "BibleJS NPM Module"
, "slug": "bible-js"
, "publishedAt": "25-05-2014"
, "content": "bible-js.md"
}
, {
"title": "Testing Code Highlight"
, "slug": "testing-code-highlight"
, "publishedAt": "18-05-2014"
, "content": "testing-co... | module.exports = [
{
"title": "BibleJS NPM Module"
, "slug": "bible-js"
, "publishedAt": "25-05-2014"
, "path": "bible-js.md"
}
, {
"title": "Testing Code Highlight"
, "slug": "testing-code-highlight"
, "publishedAt": "18-05-2014"
, "path": "testing-code-hig... | Save name of md file in path field | Save name of md file in path field
| JavaScript | mit | IonicaBizau/ionicabizau.net,IonicaBizau/ionicabizau.net | ---
+++
@@ -3,18 +3,18 @@
"title": "BibleJS NPM Module"
, "slug": "bible-js"
, "publishedAt": "25-05-2014"
- , "content": "bible-js.md"
+ , "path": "bible-js.md"
}
, {
"title": "Testing Code Highlight"
, "slug": "testing-code-highlight"
, "publishedAt": ... |
60679fa6c82d5b858d9323bfeff41612c6b8b7b3 | lib/parser.js | lib/parser.js | var sax = require('sax')
var parser = {}
parser.stream = function () {
return sax.createStream({
trim: true,
normalize: true,
lowercase: true
})
}
parser.capture = function (stream) {
return new Promise(function (resolve, reject) {
var frames = [{}]
stream.on('opentagstart', (node) => frame... | var sax = require('sax')
var parser = {}
parser.stream = function () {
return sax.createStream({
trim: true,
normalize: true,
lowercase: true
})
}
parser.capture = function (stream) {
return new Promise(function (resolve, reject) {
var frames = [{}]
stream.on('opentagstart', (node) => frame... | Throw an error if the XML is invalid. | Throw an error if the XML is invalid.
| JavaScript | mpl-2.0 | Schoonology/boardgamegeek | ---
+++
@@ -20,6 +20,7 @@
.concat(frames[frames.length - 2][name] || [])
.concat(frames.pop()))
stream.on('end', () => resolve(frames.pop()))
+ stream.on('error', reject)
})
}
|
902bf0c2a79c6967ad339adee867893e86763663 | lib/runner.js | lib/runner.js | var util = require("util");
var thunkify = require("thunkify");
var spawn = require("child_process").spawn;
var debug = require("debug")("offload:runner");
var runner = function(cmd, args, body, cb){
debug("preping job");
var envCopy = util._extend({}, process.env);
envCopy.OFFLOAD_WORKSPACE = this.workspace;
... | var util = require("util");
var thunkify = require("thunkify");
var spawn = require("child_process").spawn;
var debug = require("debug")("offload:runner");
var runner = function(cmd, args, body, cb){
debug("preping job");
var envCopy = util._extend({}, process.env);
envCopy.OFFLOAD_WORKSPACE = this.workspace;
... | Send back stderr for command-line jobs | Send back stderr for command-line jobs
| JavaScript | mit | socialtables/offload | ---
+++
@@ -45,7 +45,7 @@
jobProcess.on("exit", function(code){
if (code != 0) {
debug("job done with error");
- cb({cmd:cmd, args:args});
+ cb({cmd:cmd, args:args, error:error});
}
else{
cb(null, result); |
b58c49d85de57f7def4917f0df99fec2391f2114 | app/sentry.js | app/sentry.js | var Raven = require('raven-js');
Raven
.config('https://fde1d4c9741e4ef3a3416e4e88b61392@sentry.data.gouv.fr/17', {
ignoreUrls: [
/^file:\/\//i
]
})
.addPlugin(require('raven-js/plugins/angular'), window.angular)
.install();
| var Raven = require('raven-js');
Raven
.config('https://fde1d4c9741e4ef3a3416e4e88b61392@sentry.data.gouv.fr/17', {
whitelistUrls: [
/mes-aides\.gouv\.fr/
],
ignoreUrls: [
/^file:\/\//i
]
})
.addPlugin(require('raven-js/plugins/angular'), window.angul... | Add production domain to whitelistUrls. | Add production domain to whitelistUrls.
| JavaScript | agpl-3.0 | sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui | ---
+++
@@ -2,6 +2,9 @@
Raven
.config('https://fde1d4c9741e4ef3a3416e4e88b61392@sentry.data.gouv.fr/17', {
+ whitelistUrls: [
+ /mes-aides\.gouv\.fr/
+ ],
ignoreUrls: [
/^file:\/\//i
] |
66ca45a0a094507eb319ba594c9a4030128dc776 | index.js | index.js | var GraphemeBreaker = require('grapheme-breaker');
var assign = require('object-assign');
/**
* Extracts a section of a string and returns a new string.
*/
function slice(str, beginSlice, endSlice) {
return GraphemeBreaker.break(str)
.slice(beginSlice, endSlice)
.join('');
}
/**
* Truncates string if it’... | var GraphemeBreaker = require('grapheme-breaker');
var assign = require('object-assign');
/**
* Extracts a section of a string and returns a new string.
*/
function slice(str, beginSlice, endSlice) {
return GraphemeBreaker.break(str)
.slice(beginSlice, endSlice)
.join('');
}
/**
* Truncates string if it’... | Fix truncate incorrectly handling length < omission.length | Fix truncate incorrectly handling length < omission.length
| JavaScript | mit | Lokiedu/grapheme-utils | ---
+++
@@ -27,6 +27,10 @@
var length = options.length - options.omission.length;
+ if (length < 0) {
+ length = 0;
+ }
+
return slice(str, 0, length) + options.omission;
}
|
64ffd76107741f8894faf91f3de1d2fc54682bbf | index.js | index.js | var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/dist'));
// views is directory for all template files
// app.set('views', __dirname + '/views');
// app.set('view engine', 'ejs');
app.get('/', function(request, response) {
res... | var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/dist'));
app.listen(app.get('port'), function() {
console.log('Node app is running on port', app.get('port'));
});
| Trim out old demo code | Trim out old demo code
| JavaScript | mit | RobEasthope/lazarus,RobEasthope/lazarus | ---
+++
@@ -5,14 +5,6 @@
app.use(express.static(__dirname + '/dist'));
-// views is directory for all template files
-// app.set('views', __dirname + '/views');
-// app.set('view engine', 'ejs');
-
-app.get('/', function(request, response) {
- response.render('dist');
-});
-
app.listen(app.get('port'), functio... |
2e045cd85f4e1ce600eeecd378c51184a8d60776 | schema/me/update_collector_profile.js | schema/me/update_collector_profile.js | import gravity from '../../lib/loaders/gravity';
import { CollectorProfileType } from './collector_profile';
import {
GraphQLBoolean,
} from 'graphql';
export default {
type: CollectorProfileType,
decription: 'Updating a collector profile (loyalty applicant status).',
args: {
loyalty_applicant: {
typ... | import gravity from '../../lib/loaders/gravity';
import { CollectorProfileType } from './collector_profile';
import {
GraphQLBoolean,
} from 'graphql';
export default {
type: CollectorProfileType,
decription: 'Updating a collector profile (loyalty applicant status).',
args: {
loyalty_applicant: {
typ... | Switch to PUT over POST | Switch to PUT over POST
| JavaScript | mit | mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,broskoski/metaphysics,craigspaeth/metaphysics,craigspaeth/metaphysics,artsy/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1 | ---
+++
@@ -21,7 +21,7 @@
}, request, { rootValue: { accessToken } }) => {
if (!accessToken) return null;
return gravity.with(accessToken, {
- method: 'POST',
+ method: 'PUT',
})('me/collector_profile', { loyalty_applicant, professional_buyer });
},
}; |
c9f287a5f683a53eed3b18646f29b047c410ea4f | src/updater/updaters/MerchandisesUpdater.js | src/updater/updaters/MerchandisesUpdater.js | const Updater = require('./Updater');
const SplatNet = require('../splatnet');
const { getOriginalGear } = require('../../js/splatoon');
class MerchandisesUpdater extends Updater {
constructor() {
super({
name: 'Merchandises',
filename: 'merchandises.json',
request: (spl... | const Updater = require('./Updater');
const SplatNet = require('../splatnet');
const { getOriginalGear } = require('../../js/splatoon');
class MerchandisesUpdater extends Updater {
constructor() {
super({
name: 'Merchandises',
filename: 'merchandises.json',
request: (spl... | Remove original_gear brand data from merchandises.json | Remove original_gear brand data from merchandises.json
This is a bit redundant and doesn't really add anything we don't already have. | JavaScript | mit | misenhower/splatoon2.ink,misenhower/splatoon2.ink,misenhower/splatoon2.ink | ---
+++
@@ -19,8 +19,15 @@
}
processData(data) {
- for (let merchandise of data.merchandises)
- merchandise.original_gear = getOriginalGear(merchandise.gear);
+ for (let merchandise of data.merchandises) {
+ let originalGear = getOriginalGear(merchandise.gear);
+
+ ... |
269ccb8878f11531b71df3dbb1d990317b2a275b | server.js | server.js | var express = require('express');
var port = process.env.PORT || 3333;
var app = express();
app.use(express.static(__dirname + '/dev/patterns'));
app.get('/', function (req, res) {
res.sendFile('index.html');
});
app.listen(port);
| var express = require('express');
var port = process.env.PORT || 3333;
var app = express();
// Controlling shutdown of nodemon
// https://github.com/remy/nodemon#controlling-shutdown-of-your-script
process.once('SIGUSR2', function () {
process.kill(process.pid, 'SIGUSR2');
});
app.use(express.static(__dirname + '/... | Add process killer for controlling shutdown of nodemon When manually starting and stopping `npm run dev` script, which includes nodemon, the nodemon process doesn't always exit cleanly. This code (I think) controls the shutdown process so that there's always a clean exit | Add process killer for controlling shutdown of nodemon
When manually starting and stopping `npm run dev` script, which includes
nodemon, the nodemon process doesn't always exit cleanly.
This code (I think) controls the shutdown process so that there's always
a clean exit
| JavaScript | apache-2.0 | carbon-design-system/carbon-components,carbon-design-system/carbon-components,carbon-design-system/carbon-components | ---
+++
@@ -1,6 +1,13 @@
var express = require('express');
var port = process.env.PORT || 3333;
var app = express();
+
+
+// Controlling shutdown of nodemon
+// https://github.com/remy/nodemon#controlling-shutdown-of-your-script
+process.once('SIGUSR2', function () {
+ process.kill(process.pid, 'SIGUSR2');
+});
... |
c5e1d62e88221c0780c04683b8f66a01a4008f75 | server.js | server.js | 'use strict'
const express = require('express')
const Slapp = require('slapp')
const ConvoStore = require('slapp-convo-beepboop')
const Context = require('slapp-context-beepboop')
// use `PORT` env var on Beep Boop - default to 3000 locally
var port = process.env.PORT || 3000
var slapp = Slapp({
// Beep Boop sets ... | 'use strict'
const express = require('express')
const Slapp = require('slapp')
const ConvoStore = require('slapp-convo-beepboop')
const Context = require('slapp-context-beepboop')
// use `PORT` env var on Beep Boop - default to 3000 locally
var port = process.env.PORT || 3000
var slapp = Slapp({
// Beep Boop sets ... | Test of regex is the issue | Test of regex is the issue | JavaScript | mit | andreascreten/zoom-links | ---
+++
@@ -19,6 +19,11 @@
// Setup different handlers for messages
//*********************************************
+slapp.message('3020791579', (msg) => {
+ msg.say('https://teamleader.zoom.us/j/' + msg.replace('-', ''))
+})
+
+
// response to the user typing "help"
slapp.message('^([0-9-]{9,12})$', (msg) => ... |
bb0e24071e545d06b62d1028f53bfa0a0850361d | index.js | index.js | 'use strict';
var isSvg = require('is-svg');
var SVGO = require('svgo');
var through = require('through2');
module.exports = function (opts) {
opts = opts || {};
return through.ctor({objectMode: true}, function (file, enc, cb) {
if (file.isNull()) {
cb(null, file);
return;
}
if (file.isStream()) {
... | 'use strict';
var isSvg = require('is-svg');
var SVGO = require('svgo');
var through = require('through2');
module.exports = function (opts) {
opts = opts || {};
return through.ctor({objectMode: true}, function (file, enc, cb) {
if (file.isNull()) {
cb(null, file);
return;
}
if (file.isStream()) {
... | Return the original file if SVGO fails | Return the original file if SVGO fails
| JavaScript | mit | imagemin/imagemin-svgo | ---
+++
@@ -30,6 +30,10 @@
});
svgo.optimize(file.contents.toString('utf8'), function (res) {
+ if (!res.data) {
+ cb(null, file);
+ }
+
if (res.data && res.data.length) {
res.data = res.data.replace(/&(?!amp;)/g, '&');
} |
b22c3e01fb12c170f651f92758241ddf1499990b | index.js | index.js | module.exports = asString
module.exports.add = append
function asString(fonts) {
var href = getHref(fonts)
return '<link href="' + href + '" rel="stylesheet" type="text/css">'
}
function asElement(fonts) {
var href = getHref(fonts)
var link = document.createElement('link')
link.setAttribute('href', href)
... | module.exports = asString
module.exports.add = append
function asString(fonts) {
var href = getHref(fonts)
return '<link href="' + href + '" rel="stylesheet" type="text/css">'
}
function asElement(fonts) {
var href = getHref(fonts)
var link = document.createElement('link')
link.setAttribute('href', href)
... | Use a protocol relative URL so the package can be used other HTTPS as well | Use a protocol relative URL so the package can be used other HTTPS as well | JavaScript | mit | hughsk/google-fonts,hughsk/google-fonts | ---
+++
@@ -24,7 +24,7 @@
: name + ':' + makeArray(details).join(',')
}).join('|')
- return 'http://fonts.googleapis.com/css?family=' + family
+ return '//fonts.googleapis.com/css?family=' + family
}
function append(fonts) { |
e81cde0e9247ef9b52e50bada6eb2cc0e804ddf4 | src/systems/simulation/handle-collisions.js | src/systems/simulation/handle-collisions.js | "use strict";
var onEntityDelete = require("splat-ecs/lib/systems/box-collider").onEntityDelete;
function getCamera(entities) {
return entities[1];
}
module.exports = function(ecs, data) { // eslint-disable-line no-unused-vars
ecs.addEach(function(entity, elapsed) { // eslint-disable-line no-unused-vars
if (enti... | "use strict";
var onEntityDelete = require("splat-ecs/lib/systems/box-collider").onEntityDelete;
function getCamera(entities) {
return entities[1];
}
module.exports = function(ecs, data) { // eslint-disable-line no-unused-vars
ecs.addEach(function(entity, elapsed) { // eslint-disable-line no-unused-vars
if (enti... | Attach to player, not other things | Attach to player, not other things
| JavaScript | mit | TwoScoopGames/Cluster-Junk,TwoScoopGames/Cluster-Junk,TwoScoopGames/Cluster-Junk | ---
+++
@@ -11,6 +11,7 @@
if (entity.collisions.length === 0) {
return;
}
+ var player = data.entities.entities[0];
entity.collisions.forEach(function(id) {
var other = data.entities.entities[id];
if (other.sticky) {
@@ -21,9 +22,9 @@
data.canvas.height += 50;
other.match = {
- id: ... |
c46bdbc1225dc1883c71cb6c32363573d7beab28 | server.js | server.js | var express = require('express')
var expressApp = express()
var path = require('path')
var pickerApp = require('./src/bootstrap')
var registerRoutes = require('./src/routes')
var port = 8080
// Open up the static files
expressApp.use(express.static('dist'))
// Serve index.html
expressApp.get('/', function(req, res) ... | var express = require('express')
var expressApp = express()
var path = require('path')
var pickerApp = require('./src/bootstrap')
var registerRoutes = require('./src/routes')
var port = 8080
// Open up the static files
expressApp.use(express.static(path.join(__dirname + '/dist')))
// Serve index.html
expressApp.get(... | Use absolute path for serving static files | Use absolute path for serving static files
| JavaScript | mit | cvalarida/name-picker,cvalarida/name-picker | ---
+++
@@ -7,7 +7,7 @@
var port = 8080
// Open up the static files
-expressApp.use(express.static('dist'))
+expressApp.use(express.static(path.join(__dirname + '/dist')))
// Serve index.html
expressApp.get('/', function(req, res) { |
266d52354571e3f341996e1fa1c74c490f290a75 | src/transformers/importExportDeclaration.js | src/transformers/importExportDeclaration.js | import replacePath from "../helpers/replacePath";
export default function (t, path, state, {toMatch, toRemove, toReplace}) {
const pathIsImportDeclaration = path.isImportDeclaration();
const pathToMatch = path.get("source"),
pathToRemove = pathIsImportDeclaration && !path.node.specifiers.length && path,
pathToRe... | import replacePath from "../helpers/replacePath";
const replaceImport = (t, replacementObj, pathToReplace) => {
const props = [];
let firstDeclaration, firstIdentifier;
for(let specifier of pathToReplace.node.specifiers) {
if(t.isImportNamespaceSpecifier(specifier)) {
firstDeclaration = t.variableDeclarator(... | Allow to replace named imports with objects per property | feat(transformers): Allow to replace named imports with objects per property
| JavaScript | mit | Velenir/babel-plugin-import-redirect | ---
+++
@@ -1,4 +1,38 @@
import replacePath from "../helpers/replacePath";
+
+const replaceImport = (t, replacementObj, pathToReplace) => {
+ const props = [];
+ let firstDeclaration, firstIdentifier;
+
+ for(let specifier of pathToReplace.node.specifiers) {
+ if(t.isImportNamespaceSpecifier(specifier)) {
+ firs... |
0662a23ca1b5b9ac8fd09cd3b94fcf79ccbe37d3 | server/frontend/components/Landing.js | server/frontend/components/Landing.js | import React, { PropTypes, Component } from 'react';
import d3 from 'd3';
//import * as parcoords from './lib/d3.parcoords.js';
import Parallel from './Parallel.js';
export default class Landing extends Component {
constructor() {
super();
this.state = {data: []}
}
// componentDidMount() {
// d3.... | import React, { PropTypes, Component } from 'react';
import d3 from 'd3';
//import * as parcoords from './lib/d3.parcoords.js';
import Parallel from './Parallel.js';
export default class Landing extends Component {
constructor() {
super();
this.state = {data: []}
}
// componentDidMount() {
// d3.... | Clean up test text from landing page | Clean up test text from landing page
| JavaScript | mit | benjaminhoffman/Encompass,benjaminhoffman/Encompass,benjaminhoffman/Encompass | ---
+++
@@ -23,7 +23,6 @@
render() {
return (
<div>
- <div>Landing Test</div>
<Parallel data={this.state.data} />
</div>
); |
d80648f8854a168d33eec16bbac453ebbf0b4820 | lib/jsdom/living/aborting/AbortSignal-impl.js | lib/jsdom/living/aborting/AbortSignal-impl.js | "use strict";
const { setupForSimpleEventAccessors } = require("../helpers/create-event-accessor");
const EventTargetImpl = require("../events/EventTarget-impl").implementation;
const Event = require("../generated/Event");
class AbortSignalImpl extends EventTargetImpl {
constructor(args, privateData) {
super()... | "use strict";
const { setupForSimpleEventAccessors } = require("../helpers/create-event-accessor");
const EventTargetImpl = require("../events/EventTarget-impl").implementation;
const Event = require("../generated/Event");
class AbortSignalImpl extends EventTargetImpl {
constructor(args, privateData) {
super()... | Set abort event isTrusted to true | Set abort event isTrusted to true
| JavaScript | mit | mzgol/jsdom,mzgol/jsdom,mzgol/jsdom,tmpvar/jsdom,tmpvar/jsdom | ---
+++
@@ -26,7 +26,14 @@
algorithm();
}
this.abortAlgorithms.clear();
- this._dispatch(Event.createImpl(["abort"]), false);
+
+ this._dispatch(Event.createImpl(
+ [
+ "abort",
+ { bubbles: false, cancelable: false }
+ ],
+ { isTrusted: true }
+ ));
}
_a... |
0e54f763654fc79af4005e49dae810c1478fe128 | server.js | server.js | var express = require('express');
var childProcess = require('child_process');
var middleware = require('./config/initializers/middleware.js');
var router = require('./config/routes.js');
var host = process.env.HOST;
var port = process.env.PORT || 4000;
var app = express();
middleware.configure(app);
router.route(app)... | var express = require('express');
var childProcess = require('child_process');
var middleware = require('./config/initializers/middleware.js');
var router = require('./config/routes.js');
var host = process.env.HOST;
var port = process.env.PORT || 4000;
var app = express();
middleware.configure(app);
router.route(app)... | Add child process for payments monitor | [FEATURE] Add child process for payments monitor
| JavaScript | isc | zealord/gatewayd,crazyquark/gatewayd,Parkjeahwan/awegeeks,whotooktwarden/gatewayd,xdv/gatewayd,crazyquark/gatewayd,Parkjeahwan/awegeeks,whotooktwarden/gatewayd,zealord/gatewayd,xdv/gatewayd | ---
+++
@@ -10,6 +10,15 @@
router.route(app);
host ? app.listen(port, host) : app.listen(port);
+
+var incomingPaymentsMonitor = childProcess.spawn("node", ["workers/listener.js"]);
+incomingPaymentsMonitor.stdout.on('data', function(data){
+ console.log(data.toString());
+});
+
+incomingPaymentsMonitor.stderr.o... |
d05d48d6ab8a4fc29412f74247a028ff3921e215 | index.js | index.js | 'use strict';
var PluginError = require('plugin-error'),
through = require('through2'),
inlineCss = require('inline-css');
module.exports = function (opt) {
return through.obj(function (file, enc, cb) {
var self = this,
_opt = JSON.parse(JSON.stringify(opt || {}));
// 'url' op... | 'use strict';
var PluginError = require('plugin-error'),
through = require('through2'),
inlineCss = require('inline-css');
module.exports = function (opt) {
return through.obj(function (file, enc, cb) {
var self = this,
_opt = JSON.parse(JSON.stringify(opt || {}));
// 'url' op... | Convert file to string before sending downstream. | Convert file to string before sending downstream.
| JavaScript | mit | jonkemp/gulp-inline-css,jonkemp/gulp-inline-css | ---
+++
@@ -25,9 +25,9 @@
return;
}
- inlineCss(file.contents, _opt)
+ inlineCss(String(file.contents), _opt)
.then(function (html) {
- file.contents = new Buffer(String(html));
+ file.contents = new Buffer(html);
self... |
a1939530519f310e7e4e957b9360ac125ace618a | index.js | index.js | var Batcher = require('byte-stream')
var manualMergeStream = require('manual-merge-stream')
var diff2daff = require('diff2daff')
module.exports = function (diffStream, opts, merge) {
if (!opts) {
opts = {}
}
var limit = (opts.limit || 20) * 2
var batchStream = Batcher(limit)
var vizFn = opts.vizFn || dif... | var Batcher = require('byte-stream')
var manualMergeStream = require('manual-merge-stream')
var diff2daff = require('diff2daff')
module.exports = function (diffStream, opts, merge) {
if (!opts) {
opts = {}
}
var limit = (opts.limit || 20) * 2
var batchStream = Batcher(limit)
var opts = {
vizFn: opts... | Use new manual-merge-stream vizFn opts | Use new manual-merge-stream vizFn opts
| JavaScript | bsd-2-clause | karissa/knead,finnp/knead | ---
+++
@@ -8,11 +8,10 @@
}
var limit = (opts.limit || 20) * 2
var batchStream = Batcher(limit)
- var vizFn = opts.vizFn || diff2daff
+ var opts = {
+ vizFn: opts.vizFn || diff2daff,
+ merge: merge
+ }
- var mergeStream
- if (merge) mergeStream = manualMergeStream(vizFn, merge)
- else mergeStr... |
14c2d99e593603f4cd49a1b152f30dbc19ac9cf5 | index.js | index.js | /* eslint-env node */
'use strict';
const htmlTags = require('html-tags');
const diff = require('lodash/difference');
const compileCSS = require('broccoli-postcss');
const removeableElements = () => {
const whitelistedTags = ['html', 'body'];
const removeableTags = diff(htmlTags, whitelistedTags);
const { getIt... | /* eslint-env node */
'use strict';
const htmlTags = require('html-tags');
const diff = require('lodash/difference');
const merge = require('lodash/merge');
const compileCSS = require('broccoli-postcss');
const removeableElements = () => {
const whitelistedTags = ['html', 'body'];
const removeableTags = diff(htmlT... | Remove classes that are not present in application | Remove classes that are not present in application
| JavaScript | mit | fauxton/ember-tachyons-sweeper,fauxton/ember-tachyons-sweeper | ---
+++
@@ -2,6 +2,7 @@
'use strict';
const htmlTags = require('html-tags');
const diff = require('lodash/difference');
+const merge = require('lodash/merge');
const compileCSS = require('broccoli-postcss');
const removeableElements = () => {
@@ -18,12 +19,27 @@
);
};
+const removeableClasses = () => {
+... |
3ab481b770d2aeb7aba08a73733043210cb6fb99 | index.js | index.js | #!/usr/bin/env node
console.log("Starting bert. Type 'exit' when you're done.")
// TODO: run file watcher
// TODO: add command line option to specify logs location
let logDir = resolveHome('~/.bert/');
// create the log directory if it doesn't already exist
createDirectory(logDir);
// start `script`
var spawn = requ... | #!/usr/bin/env node
console.log("Starting bert. Type 'exit' when you're done.")
// TODO: run file watcher
// TODO: add command line option to specify logs location
let logDir = resolveHome('~/.bert/');
// create the log directory if it doesn't already exist
createDirectory(logDir);
// start `script`
var spawn = requ... | Disable script start and end messages | Disable script start and end messages
| JavaScript | mit | oliveroneill/bert | ---
+++
@@ -11,7 +11,7 @@
// start `script`
var spawn = require('child_process').spawn;
// we won't intercept the output to avoid causing user disruption
-spawn('script', ['-F', logDir + generateNewLogName()], { stdio: 'inherit' });
+spawn('script', ['-q', '-F', logDir + generateNewLogName()], { stdio: 'inherit' }... |
781a59f0ae255040bebd4d3ea54de70b812c049f | express/models/rule_parser.js | express/models/rule_parser.js | // L-System Rule Parser
function RuleParser(str) {
this.str = str;
this.rules = {};
this.parse = function() {
var c, d;
var env = 0;
var rule_str;
var variable;
for (var i = 0; i < this.str.length; i++) {
c = this.str[i];
if (i > 0) {
d = this.str[i-1];
} else {
d = null;... | // L-System Rule Parser
function RuleParser(str) {
this.str = str;
this.rules = {};
this.parse = function() {
var c, d;
var env = 0;
var rule_str;
var variable;
for (var i = 0; i < this.str.length; i++) {
c = this.str[i];
if (i > 0) {
d = this.str[i-1];
} else {
d = null;... | Allow control char as rule "variable" | Allow control char as rule "variable"
| JavaScript | bsd-3-clause | dwjackson/html_fractals | ---
+++
@@ -20,7 +20,8 @@
if (c == '(') {
env = 1;
rule_str = "";
- } else if (c.search(/[A-Z]/) == 0 && env == 1) {
+ } else if ((c.search(/[A-Z]/) == 0 || c.search(/[\+\-\[\]]/) == 0)
+ && env == 1) {
variable = c;
} else if (c == '>' && d == '-') {
env = 2; |
a3238411dc7bde812d20ee6385f3be8e2eefd548 | index.js | index.js | 'use strict';
var React = require('react');
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var Range = Reac... | 'use strict';
var React = require('react');
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var Range = Reac... | Check if user passes in their own keyDown function | Check if user passes in their own keyDown function
| JavaScript | isc | mapbox/react-range | ---
+++
@@ -20,7 +20,7 @@
if (this.props.onChange) this.props.onChange(e);
},
onRangeKeyDown: function(e) {
- if (this.props.onMouseMove) this.props.onMouseMove(e);
+ if (this.props.onKeyDown) this.props.onKeyDown(e);
if (this.props.onChange) this.props.onChange(e);
},
componentWillReceive... |
468570966eb500348066665bc29177c218b663d3 | tests/unit/odata/execute-odata-CRUD-test.js | tests/unit/odata/execute-odata-CRUD-test.js | import Ember from 'ember';
import { module, test } from 'qunit';
import ODataAdapter from 'ember-flexberry-data/adapters/odata';
import startApp from '../../helpers/start-app';
import config from '../../../../dummy/config/environment';
export default function executeTest(testName, callback) {
if (config.APP.testOD... | import Ember from 'ember';
import { module, test } from 'qunit';
import ODataAdapter from 'ember-flexberry-data/adapters/odata';
import startApp from '../../helpers/start-app';
import config from '../../../../dummy/config/environment';
export default function executeTest(testName, callback) {
if (config.APP.testOD... | Fix execute-odata helper base-store now default | Fix execute-odata helper base-store now default
| JavaScript | mit | Flexberry/ember-flexberry-projections,Flexberry/ember-flexberry-data,Flexberry/ember-flexberry-data,Flexberry/ember-flexberry-data,Flexberry/ember-flexberry-projections | ---
+++
@@ -13,10 +13,10 @@
const app = startApp();
const store = app.__container__.lookup('service:store');
- const adapter = ODataAdapter.create();
+ const adapter = ODataAdapter.create(app.__container__.ownerInjection());
Ember.set(adapter, 'host', baseUrl);
- store.reopen({
+ store.... |
b62e6b8b50dd8f7c45bab95b1986c73a14ff27f0 | server.js | server.js | // Import modules
var connect = require('connect');
var http = require('http');
var serveStatic = require('serve-static');
// Create middleware functions, from nodeJS, to set up server
var app = connect();
app.use(serveStatic('./dist'));
app.use(serveStatic('./'));
// Start server
console.log('Starting webserver on h... | // Import modules
var connect = require('connect');
var http = require('http');
var serveStatic = require('serve-static');
var fs = require('fs');
var url = require('url');
// Create middleware functions, from nodeJS, to set up server
var app = connect();
app.use(serveStatic('./dist'));
app.use(serveStatic('./'));
//... | Add lines for another app.use() for coveringall expected URLs to be used in the SPA (Single Page App). Tried to come up with a regex to replace the basic regex on line 23. Function was written by Chad Killingsworth as an in-class example, in the msu-calendar project. | Add lines for another app.use() for coveringall expected URLs to be used in the SPA (Single Page App). Tried to come up with a regex to replace the basic regex on line 23. Function was written by Chad Killingsworth as an in-class example, in the msu-calendar project.
I learned how the first block of statements are rel... | JavaScript | mit | NBumgardner/YouTube-Notes,NBumgardner/YouTube-Notes | ---
+++
@@ -2,12 +2,44 @@
var connect = require('connect');
var http = require('http');
var serveStatic = require('serve-static');
+var fs = require('fs');
+var url = require('url');
// Create middleware functions, from nodeJS, to set up server
var app = connect();
app.use(serveStatic('./dist'));
app.use(ser... |
534f5464d21d3b7ff5485422169e31366ddb1c41 | index.js | index.js | var core = require("./core");
var prompt = require("prompt-sync")();
var fs = require("fs");
var env = process.env.NODE_ENV || "development";
module.exports = function(filepath, password) {
var out = fs.readFileSync(filepath).toString();
var json = JSON.parse(out);
if(!password) {
if(env === "development")... | var core = require("./core");
var prompt = require("./bin/prompt");
var fs = require("fs");
var env = process.env.NODE_ENV || "development";
module.exports = function(filepath, password) {
var out = fs.readFileSync(filepath).toString();
var json = JSON.parse(out);
if(!password) {
if(env === "development") ... | Fix for js API to store in key chain | Fix for js API to store in key chain
| JavaScript | mit | orangemug/encrypt-conf | ---
+++
@@ -1,5 +1,5 @@
var core = require("./core");
-var prompt = require("prompt-sync")();
+var prompt = require("./bin/prompt");
var fs = require("fs");
var env = process.env.NODE_ENV || "development";
@@ -10,7 +10,7 @@
if(!password) {
if(env === "development") {
- password = prompt("Passphars... |
729e73e920ddfd4beb67d4558e7dc17a1fb648df | project/src/js/ui/tournament/tournamentCtrl.js | project/src/js/ui/tournament/tournamentCtrl.js | import socket from '../../socket';
import * as utils from '../../utils';
import * as xhr from './tournamentXhr';
import socketHandler from './socketHandler';
import helper from '../helper';
import m from 'mithril';
const tournament = m.prop([]);
export default function controller() {
let id = m.route.param('id');
... | import socket from '../../socket';
import * as utils from '../../utils';
import * as xhr from './tournamentXhr';
import socketHandler from './socketHandler';
import helper from '../helper';
import m from 'mithril';
export default function controller() {
const tournament = m.prop([]);
function reload (data) {
... | Make tournament a private variable of controller | Make tournament a private variable of controller
| JavaScript | mit | btrent/lichobile,btrent/lichobile,btrent/lichobile,btrent/lichobile | ---
+++
@@ -5,9 +5,28 @@
import helper from '../helper';
import m from 'mithril';
-const tournament = m.prop([]);
+
export default function controller() {
+ const tournament = m.prop([]);
+ function reload (data) {
+ tournament(data);
+ if(data.socketVersion)
+ socket.setVersion(data.socketVersion... |
2a284b62b649a352ddaa3810790ab26ef76edc3e | index.js | index.js | module.exports = function styleInject (css, returnValue) {
css = css || '';
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(do... | module.exports = function styleInject (css, returnValue) {
if (typeof document === 'undefined') {
return returnValue;
}
css = css || '';
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
... | Allow usage in isomorphic components | Allow usage in isomorphic components
Any dependency of this package will fail if run in a Node environment. This commit allows code to be run on the server by simply returning if no `document` is available. | JavaScript | mit | egoist/style-inject | ---
+++
@@ -1,4 +1,7 @@
module.exports = function styleInject (css, returnValue) {
+ if (typeof document === 'undefined') {
+ return returnValue;
+ }
css = css || '';
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style'); |
1d7229a91ce127276235fa327ec33d8aba1335f9 | index.js | index.js | /**
* Module dependencies
*/
var request = require('superagent')
, _ = require('underscore');
// Factory
module.exports = function (opts) {
return new Affilinet(opts);
};
// Api endpoint
var endpoint = 'http://product-api.affili.net/V3/productservice.svc/JSON/SearchProducts';
var Affilinet = function Affilinet... | /**
* Module dependencies
*/
var request = require('superagent')
, _ = require('underscore');
// Factory
module.exports = function (opts) {
return new Affilinet(opts);
};
// Api endpoint
var endpoint = 'http://product-api.affili.net/V3/productservice.svc/JSON/SearchProducts';
var Affilinet = function Affilinet... | Remove byte order indicator before attempting parse | Remove byte order indicator before attempting parse
Really? Really? Really? Really?
| JavaScript | mit | urgeiolabs/node-affilinet-lookup | ---
+++
@@ -41,3 +41,18 @@
return cb(null, result.body);
});
};
+
+// Take care of affilinet byte ordering foolishness
+request.parse['application/json'] = function (res, fn) {
+ res.text = '';
+ res.setEncoding('utf8');
+ res.on('data', function (chunk) { res.text += chunk; });
+ res.on('end', funct... |
8d5527791bcc7f664a784e7e8554d700815a47a1 | play-audio.js | play-audio.js | module.exports = function(RED) {
function PlayAudioNode(config) {
RED.nodes.createNode(this,config);
var node = this;
this.on('input', function(msg) {
RED.comms.publish("playaudio", msg.payload);
});
}
RED.nodes.registerType("play audio", PlayAudioNode);
}
| module.exports = function(RED) {
function PlayAudioNode(config) {
RED.nodes.createNode(this,config);
var node = this;
this.on('input', function(msg) {
if(Buffer.isBuffer(msg.payload)){
RED.comms.publish("playaudio", msg.payload);
}
});
}
RED.nodes.registerType("play audio", PlayAudioNode);
}
| Make sure input data is a buffer | Make sure input data is a buffer
| JavaScript | apache-2.0 | lorentzlasson/node-red-contrib-play-audio,lorentzlasson/node-red-contrib-play-audio | ---
+++
@@ -3,7 +3,9 @@
RED.nodes.createNode(this,config);
var node = this;
this.on('input', function(msg) {
- RED.comms.publish("playaudio", msg.payload);
+ if(Buffer.isBuffer(msg.payload)){
+ RED.comms.publish("playaudio", msg.payload);
+ }
});
}
RED.nodes.registerType("play audio", PlayAud... |
39dc300c60583cfa66cec96b01869f4ec33286d5 | examples/basic/babel.config.js | examples/basic/babel.config.js | module.exports = {
presets: [
[
'@babel/env',
{
debug: true,
modules: false,
useBuiltIns: 'usage',
},
],
'@babel/react',
],
plugins: ['@babel/plugin-proposal-class-properties'],
};
| module.exports = {
presets: [
[
'@babel/env',
{
modules: false,
useBuiltIns: 'usage',
},
],
'@babel/react',
],
plugins: ['@babel/plugin-proposal-class-properties'],
};
| Disable Babel debug mode in the basic example | Chore: Disable Babel debug mode in the basic example
| JavaScript | mit | styleguidist/react-styleguidist,sapegin/react-styleguidist,sapegin/react-styleguidist,styleguidist/react-styleguidist,styleguidist/react-styleguidist | ---
+++
@@ -3,7 +3,6 @@
[
'@babel/env',
{
- debug: true,
modules: false,
useBuiltIns: 'usage',
}, |
6ae83b945f7ca90b5886e50c4dbcb848cd5deab8 | public/javascripts/home/index.js | public/javascripts/home/index.js | $(function() {
var pageToFetch = 2;
$(".more").click(function() {
$(this).addClass("loading");
$.get("/home/mock_set", {page: pageToFetch}, function(data) {
$(".more").removeClass("loading");
if (data.trim().length > 0) {
$(data).insertBefore('.more');
}
if (pageToFetch === ... | $(function() {
var pageToFetch = 2;
var prevQueryLength = 0;
$(".more").click(function() {
$(this).addClass("loading");
$.get("/home/mock_set", {page: pageToFetch}, function(data) {
$(".more").removeClass("loading");
if (data.trim().length > 0) {
$(data).insertBefore('.more');
}... | Improve mockr project search speed | Improve mockr project search speed
As a hackathon project, we use some smarter search techniques to hide
and show fewer list elements when each search is performed. For each
keystroke, this narrows down or broadens the existing list instead of
hiding and showing everything.
This is motivated by the slowdown in speed ... | JavaScript | mit | causes/mockr,causes/mockr,causes/mockr | ---
+++
@@ -1,5 +1,6 @@
$(function() {
var pageToFetch = 2;
+ var prevQueryLength = 0;
$(".more").click(function() {
$(this).addClass("loading");
@@ -22,14 +23,26 @@
});
$('.project_filter').keyup(function() {
- var projects = $('.project_list li');
+ var $projects = $('.project_list li')... |
3b59fd06535fa25aa9611259a0eaf82e38df6a81 | editor/collections/commands.js | editor/collections/commands.js | var Q = require("q");
var _ = require("hr.utils");
var Collection = require("hr.collection");
var logger = require("hr.logger")("commands");
var Command = require("../models/command");
var Commands = Collection.extend({
model: Command,
// Initialize
initialize: function() {
Commands.__super__.ini... | var Q = require("q");
var _ = require("hr.utils");
var Collection = require("hr.collection");
var logger = require("hr.logger")("commands");
var Command = require("../models/command");
var Commands = Collection.extend({
model: Command,
// Initialize
initialize: function() {
Commands.__super__.ini... | Fix error message when command not found | Fix error message when command not found
| JavaScript | apache-2.0 | CodeboxIDE/codebox,indykish/codebox,kustomzone/codebox,quietdog/codebox,nobutakaoshiro/codebox,nobutakaoshiro/codebox,rodrigues-daniel/codebox,blubrackets/codebox,Ckai1991/codebox,LogeshEswar/codebox,code-box/codebox,ahmadassaf/Codebox,rodrigues-daniel/codebox,listepo/codebox,quietdog/codebox,LogeshEswar/codebox,ahmada... | ---
+++
@@ -26,10 +26,9 @@
},
// Run a command
- run: function(cmd, args) {
-
- cmd = this.get(cmd);
- if (!cmd) return Q.reject(new Error("Command not found: '"+cmd+"'"));
+ run: function(_cmd, args) {
+ var cmd = this.get(_cmd);
+ if (!cmd) return Q.reject(new Error("Co... |
27e6e8d24e213c9d7fb787a5103222c8ef28f1fe | src/article/converter/r2t/FootnoteConverter.js | src/article/converter/r2t/FootnoteConverter.js | import { findChild, findAllChildren } from '../util/domHelpers'
export default class FootnoteConverter {
get type () { return 'fn' }
get tagName () { return 'fn' }
import (el, node, importer) {
// TODO: at some point we want to retain the label and determine if the label should be treated as custom
// ... | import { findChild, findAllChildren } from '../util/domHelpers'
import { getLabel } from '../../shared/nodeHelpers'
// TODO: at some point we want to retain the label and determine if the label should be treated as custom
// or be generated.
export default class FootnoteConverter {
get type () { return 'fn' }
get... | Fix export of footnote labels. | Fix export of footnote labels.
| JavaScript | mit | substance/texture,substance/texture | ---
+++
@@ -1,16 +1,16 @@
import { findChild, findAllChildren } from '../util/domHelpers'
+import { getLabel } from '../../shared/nodeHelpers'
+// TODO: at some point we want to retain the label and determine if the label should be treated as custom
+// or be generated.
export default class FootnoteConverter {
... |
9ee1f3962dc33d4f0a431b81ac375900af3b866d | src/components/views/elements/AppPermission.js | src/components/views/elements/AppPermission.js | import React from 'react';
import PropTypes from 'prop-types';
import url from 'url';
export default class AppPermission extends React.Component {
constructor(props) {
super(props);
const curl = this.getCurl();
this.state = {
curl: curl,
};
console.log('curl', c... | import React from 'react';
import PropTypes from 'prop-types';
import url from 'url';
export default class AppPermission extends React.Component {
constructor(props) {
super(props);
const curl = this.getCurl();
this.state = {
curl: curl,
};
console.log('curl', c... | Set display URL from wurl if curl not specified. | Set display URL from wurl if curl not specified.
| JavaScript | apache-2.0 | matrix-org/matrix-react-sdk,aperezdc/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,aperezdc/matrix-react-sdk,aperezdc/matrix-react-sdk,aperezdc/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk | ---
+++
@@ -21,7 +21,10 @@
if(searchParams && searchParams.get('url')) {
curl = searchParams.get('url');
}
- curl = curl || wurl;
+ if (!curl && wurl) {
+ wurl.search = wurl.query = "";
+ curl = wurl.format();
+ }
return curl;
}
... |
e0f1af644da67217118f9b49caaac8d30816fd34 | src/createDisposableWorker.js | src/createDisposableWorker.js | export const createDisposableWorker = response => {
const URL = window.URL || window.webkitURL
const blob = new Blob([response], { type: 'application/javascript' }) // eslint-disable-line
const worker = new Worker(URL.createObjectURL(blob)) // eslint-disable-line
worker.post = message =>
new Promise((resolv... | export const createDisposableWorker = response => {
const URL = window.URL || window.webkitURL
const blob = new Blob([response], { type: 'application/javascript' }) // eslint-disable-line
const objectURL = URL.createObjectURL(blob)
const worker = new Worker(objectURL) // eslint-disable-line
worker.post = mess... | Fix object URL not being revoked at when the worker is not being used anymore | Fix object URL not being revoked at when the worker is not being used anymore
| JavaScript | mit | israelss/simple-web-worker,israelss/simple-web-worker | ---
+++
@@ -1,11 +1,12 @@
export const createDisposableWorker = response => {
const URL = window.URL || window.webkitURL
const blob = new Blob([response], { type: 'application/javascript' }) // eslint-disable-line
- const worker = new Worker(URL.createObjectURL(blob)) // eslint-disable-line
+ const objectURL... |
2e52ced1b1d03db640618ae2eba5cb6851435dd3 | components/subreddit/post-row.js | components/subreddit/post-row.js | const React = require('react-native');
const {
Image,
Text,
StyleSheet,
View,
} = React;
module.exports = React.createClass({
render: function() {
const data = this.props.rowData.data;
var Thumbnail;
if (data.thumbnail) {
Thumbnail = (
<Image source={{uri: data.thumbnail}} style={... | const React = require('react-native');
const {
Image,
Text,
StyleSheet,
View,
} = React;
module.exports = React.createClass({
render: function() {
const data = this.props.rowData.data;
var Thumbnail;
if (data.thumbnail) {
Thumbnail = (
<Image source={{uri: data.thumbnail}} style={... | Add post meta to individual rows | Add post meta to individual rows
When viewing posts meta is shown below the title, including the
subreddit, the domain it was posted to, and the author.
| JavaScript | mit | BlakeWilliams/newred | ---
+++
@@ -21,7 +21,12 @@
return (
<View style={styles.row}>
{Thumbnail}
- <Text style={styles.rowText}>{data.title}</Text>
+ <View style={styles.textContainer}>
+ <Text style={styles.title}>{data.title}</Text>
+ <Text style={styles.meta}>
+ {data.subre... |
935bb29bd5116a08a476592b49214d312d871244 | src/addon/pnacl/lib/axiom_pnacl/executables.js | src/addon/pnacl/lib/axiom_pnacl/executables.js | // Copyright (c) 2014 The Axiom Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import AxiomError from 'axiom/core/error';
import environment from 'axiom_shell/environment';
import PnaclCommand from 'axiom_pnacl/pnacl_command';
//... | // Copyright (c) 2014 The Axiom Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import AxiomError from 'axiom/core/error';
import environment from 'axiom_shell/environment';
import PnaclCommand from 'axiom_pnacl/pnacl_command';
//... | Fix running python by setting PYTHONHOME to '/'. | Fix running python by setting PYTHONHOME to '/'.
| JavaScript | apache-2.0 | umop/axiom_old_private,chromium/axiom,rpaquay/axiom,ussuri/axiom,mcanthony/axiom | ---
+++
@@ -10,8 +10,8 @@
// @note ExecuteContext from 'axiom/bindings/fs/execute_context'
-var createCommand = function(commandName, sourceUrl, tarFilename) {
- var command = new PnaclCommand(commandName, sourceUrl, tarFilename);
+var createCommand = function(name, sourceUrl, opt_tarFilename, opt_env) {
+ var... |
f9923404dd63dc4ea1288dabde34332fb3ca8b58 | pkg/time/index.js | pkg/time/index.js | const timeout = (dispatch, props) =>
setTimeout(() => dispatch(props.action), props.delay)
const interval = (dispatch, props) => {
const id = setInterval(() => {
dispatch(props.action, Date.now())
}, props.delay)
return () => clearInterval(id)
}
const getTime = (dispatch, props) => dispatch(props.action, ... | const timeout = (dispatch, props) =>
setTimeout(() => dispatch(props.action), props.delay)
const interval = (dispatch, props) => {
const id = setInterval(() => {
dispatch(props.action, Date.now())
}, props.delay)
return () => clearInterval(id)
}
const getTime = (dispatch, props) => dispatch(props.action, ... | Use valid jsdoc comment syntax | Use valid jsdoc comment syntax
| JavaScript | mit | hyperapp/hyperapp,hyperapp/hyperapp,jbucaran/hyperapp | ---
+++
@@ -10,26 +10,25 @@
const getTime = (dispatch, props) => dispatch(props.action, Date.now())
-/**
+/**
* @example
- *
- app({
- subscriptions: (state) => [
- // Dispatch RequestResource every delayInMilliseconds
- every(state.delayInMilliseconds, RequestResource),
- ],
- })
+ * app(... |
2c0bd5dfeef5aaff007f5a1ff0391bdc89c16276 | app/assets/javascripts/factsheet/drawLegend.js | app/assets/javascripts/factsheet/drawLegend.js | /* globals I18n $ */
/**
* Given the definition for a chart, returns an array of <div/> elements
* describing each series in the chart.
*/
function drawLegend(definition, periods) {
var showPeriods = periods || ['future'];
var list = definition.map(function(series) {
var key = series.key.replace(/_/g, '-')... | /* globals I18n $ */
/**
* Given the definition for a chart, returns an array of <div/> elements
* describing each series in the chart.
*/
function drawLegend(definition, periods) {
var showPeriods = periods || ['future'];
var list = definition.map(function(series) {
var key = series.key.replace(/_/g, '-')... | Remove hard-coded TJ unit from legends | Factsheet: Remove hard-coded TJ unit from legends
| JavaScript | mit | quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel | ---
+++
@@ -24,7 +24,6 @@
showPeriods.map(function(period) {
return $('<td class="value" />')
.attr('data-query', series.key)
- .attr('data-as', 'TJ')
.attr('data-no-unit', true)
.attr('data-period', period)
.html('—'); |
f301299ba20a0067f44d86e359bf1814d810a9a1 | public/app/ui/components/search/results/SearchResultsComponent.js | public/app/ui/components/search/results/SearchResultsComponent.js | (function () {
'use strict';
define(
[
'lodash',
'knockout',
'config/routes',
'util/container'
],
function (_, ko, routes, container) {
return function (parameters) {
var typeFor = function (result) {
... | (function () {
'use strict';
define(
[
'lodash',
'knockout',
'config/routes',
'util/container'
],
function (_, ko, routes, container) {
return function (parameters) {
var typeFor = function (result) {
... | Add missing error handling logic. | Add missing error handling logic.
| JavaScript | mit | rwahs/research-frontend,rwahs/research-frontend | ---
+++
@@ -19,6 +19,9 @@
}
if (!parameters.modeSwitcher) {
throw new Error('SearchResultsComponent missing required parameter: `modeSwitcher`.');
+ }
+ if (!parameters.resultFields) {
+ throw new Error('SearchResu... |
53827506709f2a501bb4328b848cfbf470dac5e7 | app/js/app/controllers/AdminPageControllers.js | app/js/app/controllers/AdminPageControllers.js | /**
* Copyright 2014 Ian Davies
*
* 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... | /**
* Copyright 2014 Ian Davies
*
* 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... | Fix bug introduced in previous commit. | Fix bug introduced in previous commit.
| JavaScript | mit | ucam-cl-dtg/isaac-app,ucam-cl-dtg/isaac-app,ucam-cl-dtg/isaac-app,ucam-cl-dtg/isaac-app | ---
+++
@@ -25,7 +25,8 @@
$scope.setVersion = function() {
$scope.versionChange = "IN_PROGRESS"
api.contentVersion.set({version: $scope.contentVersion.liveVersion}, {}).$promise.then(function(data) {
- $scope.contentVersion = api.contentVersion.get().$promise.then(function() {
+ $scope.contentVersion... |
19dfa3f30e552f3cfed7e176262a3282d0380a19 | lib/commit-panel-component.js | lib/commit-panel-component.js | /** @babel */
/** @jsx etch.dom */
import etch from 'etch'
import StagingAreaComponent from './staging-area-component'
export default class CommitPanelComponent {
constructor ({repository}) {
this.repository = repository
etch.initialize(this)
}
destroy () {
this.subscription.dispose()
return et... | /** @babel */
/** @jsx etch.dom */
import etch from 'etch'
import StagingAreaComponent from './staging-area-component'
export default class CommitPanelComponent {
constructor ({repository}) {
this.repository = repository
etch.initialize(this)
}
destroy () {
this.subscription.dispose()
return et... | Delete extra div that's not needed for position purposes | :fire: Delete extra div that's not needed for position purposes
| JavaScript | mit | atom/github,atom/github,atom/github | ---
+++
@@ -20,7 +20,7 @@
return (
<div className='git-CommitPanel'>
<div className='git-CommitPanel-item no-repository'>
- <div>In order to use git features, please open a file that belongs to a git repository.</div>
+ In order to use git features, please open a file ... |
e78b0b6f4c8ddd378da9c3e5c81d59cfd5746617 | src/main/resources/static/js/script.js | src/main/resources/static/js/script.js | $('body').scrollspy({
target: '.bs-docs-sidebar',
offset: 40
});
| $('body').scrollspy({
target: '.bs-docs-sidebar',
offset: 40
});
if ($('textarea#content').length > 0) {
var regex = new RegExp('https?://[^\\s]*', 'g');
var subst = new Array(24).join('.');
$('label[for="content"]').append('<div class="small text-muted">(<span id="charcount">0</span> of 140 chars)</div>')... | Add JS char counter for Tweet content | Add JS char counter for Tweet content
| JavaScript | epl-1.0 | spinfo/autoChirp,spinfo/autoChirp,spinfo/autoChirp | ---
+++
@@ -2,3 +2,18 @@
target: '.bs-docs-sidebar',
offset: 40
});
+
+if ($('textarea#content').length > 0) {
+ var regex = new RegExp('https?://[^\\s]*', 'g');
+ var subst = new Array(24).join('.');
+
+ $('label[for="content"]').append('<div class="small text-muted">(<span id="charcount">0</span> of 140 ... |
b78f6e0e9f8a9ca3e7c8c096400dd32428550397 | lib/fs/readdir-directories.js | lib/fs/readdir-directories.js | // Read all filenames from directory and it's subdirectories
'use strict';
var fs = require('fs')
, aritize = require('es5-ext/lib/Function/aritize').call
, curry = require('es5-ext/lib/Function/curry').call
, invoke = require('es5-ext/lib/Function/invoke')
, k = require('es5-ext/lib/Function/k'... | // Read all filenames from directory and it's subdirectories
'use strict';
var fs = require('fs')
, aritize = require('es5-ext/lib/Function/prototype/aritize')
, invoke = require('es5-ext/lib/Function/invoke')
, k = require('es5-ext/lib/Function/k')
, a2p = require('deferred/lib/async-to-promi... | Update up to changes in es5-ext | Update up to changes in es5-ext
| JavaScript | mit | medikoo/node-ext | ---
+++
@@ -3,14 +3,13 @@
'use strict';
var fs = require('fs')
- , aritize = require('es5-ext/lib/Function/aritize').call
- , curry = require('es5-ext/lib/Function/curry').call
+ , aritize = require('es5-ext/lib/Function/prototype/aritize')
, invoke = require('es5-ext/lib/Function/invoke')
, k ... |
5293f49e247b3cb8617e943f7e0b33431de8d1ae | assets/js/components/page-header-date-range.js | assets/js/components/page-header-date-range.js | /**
* PageHeaderDateRange component.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE... | /**
* PageHeaderDateRange component.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE... | Remove unnecessary filter from within . | Remove unnecessary filter from within .
| JavaScript | apache-2.0 | google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp | ---
+++
@@ -17,19 +17,12 @@
*/
/**
- * WordPress dependencies
- */
-import { applyFilters } from '@wordpress/hooks';
-
-/**
* Internal dependencies
*/
import DateRangeSelector from './date-range-selector';
export default function PageHeaderDateRange() {
- const showDateRangeSelector = applyFilters( `goog... |
d7107ec75e0be80a100705ce790f593f4014df90 | lib/server/plugins/map/src.js | lib/server/plugins/map/src.js | var fs = require('fs'),
path = require('path'),
_ = require('lodash'),
gulp = require('gulp'),
through = require('through2'),
file = require('gulp-file');
module.exports = mapSrcPlugin;
var contents = {};
/**
* @ignore
* Loads `map.json` into stream.
* @alias "map.src"
* @param {Object} data ... | var fs = require('fs'),
path = require('path'),
_ = require('lodash'),
gulp = require('gulp'),
through = require('through2'),
file = require('gulp-file');
module.exports = mapSrcPlugin;
var contents = {};
function requireFresh (src) {
delete require.cache[require.resolve(src)];
return req... | Allow watching changes in modules map for ymb dev mode | Allow watching changes in modules map for ymb dev mode
| JavaScript | mpl-2.0 | yandex/yms | ---
+++
@@ -9,6 +9,11 @@
var contents = {};
+function requireFresh (src) {
+ delete require.cache[require.resolve(src)];
+ return require(src);
+}
+
/**
* @ignore
* Loads `map.json` into stream.
@@ -17,8 +22,10 @@
* @returns {stream.Transform} Stream
*/
function mapSrcPlugin (data) {
- if (!co... |
7fcb5b81f41088cdcb780e6c42dd529f8160ced5 | src/js/app/global.js | src/js/app/global.js | import Helper from "./Helper";
const h = new Helper;
export let userItems;
if (h.detectEnvironment() === "development") {
userItems = "./src/data/list.json";
} else if (h.detectEnvironment() === "production") {
userItems = global.process.resourcesPath + "/app/src/data/list.json";
} else {
throw `global |... | import Helper from "./Helper";
const h = new Helper;
export let userItems;
export let settings;
if (h.detectEnvironment() === "development") {
userItems = "./src/data/list.json";
settings = "./src/data/settings.json";
} else if (h.detectEnvironment() === "production") {
userItems = global.process.resourc... | Fix wrong path to settings in production | Fix wrong path to settings in production
| JavaScript | mpl-2.0 | LosEagle/MediaWorld,LosEagle/MediaWorld | ---
+++
@@ -3,13 +3,14 @@
const h = new Helper;
export let userItems;
+export let settings;
if (h.detectEnvironment() === "development") {
userItems = "./src/data/list.json";
+ settings = "./src/data/settings.json";
} else if (h.detectEnvironment() === "production") {
userItems = global.process.r... |
f8e2bc8801ddda5301f4ff7c473ee72583c442e8 | src/lib/analytics.js | src/lib/analytics.js | import GoogleAnalytics from 'react-ga';
GoogleAnalytics.initialize('UA-30688952-5', {
debug: (process.env.NODE_ENV !== 'production'),
titleCase: true,
sampleRate: 100,
forceSSL: true
});
export default GoogleAnalytics;
| import GoogleAnalytics from 'react-ga';
GoogleAnalytics.initialize('UA-30688952-5', {
debug: (process.env.NODE_ENV !== 'production'),
titleCase: true,
sampleRate: (process.env.NODE_ENV === 'production') ? 100 : 0,
forceSSL: true
});
export default GoogleAnalytics;
| Make sure GA events are not transmitted outside of production | Make sure GA events are not transmitted outside of production
| JavaScript | bsd-3-clause | cwillisf/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui | ---
+++
@@ -3,7 +3,7 @@
GoogleAnalytics.initialize('UA-30688952-5', {
debug: (process.env.NODE_ENV !== 'production'),
titleCase: true,
- sampleRate: 100,
+ sampleRate: (process.env.NODE_ENV === 'production') ? 100 : 0,
forceSSL: true
});
|
ae9d478e9abecb289c875ac9069dbff0dba96bcb | src/utils/storage.js | src/utils/storage.js | export default class Storage {
} | import fs from 'fs'
export default class Storage {
static async addHistoryItem (title, url) {
return new Promise((resolve, reject) => {
if (title != null && url != null) {
// Get today's date.
let today = new Date()
let dd = today.getDate()
let mm = today.getMonth() + 1
... | Add saving & reading history functions | Add saving & reading history functions
| JavaScript | apache-2.0 | Nersent/Wexond,Nersent/Wexond | ---
+++
@@ -1,3 +1,95 @@
+import fs from 'fs'
+
export default class Storage {
-
+ static async addHistoryItem (title, url) {
+ return new Promise((resolve, reject) => {
+ if (title != null && url != null) {
+ // Get today's date.
+ let today = new Date()
+ let dd = today.getDate()
... |
46c0243fce1efc22a61998033f45956d88ed6421 | tools/static-assets/server/npm-rebuild-args.js | tools/static-assets/server/npm-rebuild-args.js | // Command-line arguments passed to npm when rebuilding binary packages.
var args = [
"rebuild",
// The --no-bin-links flag tells npm not to create symlinks in the
// node_modules/.bin/ directory when rebuilding packages, which helps
// avoid problems like https://github.com/meteor/meteor/issues/7401.
"--no-... | // Command-line arguments passed to npm when rebuilding binary packages.
var args = [
"rebuild",
// The --no-bin-links flag tells npm not to create symlinks in the
// node_modules/.bin/ directory when rebuilding packages, which helps
// avoid problems like https://github.com/meteor/meteor/issues/7401.
"--no-... | Support additional `meteor rebuild` flags via environment variable. | Support additional `meteor rebuild` flags via environment variable.
| JavaScript | mit | Hansoft/meteor,chasertech/meteor,mjmasn/meteor,Hansoft/meteor,chasertech/meteor,mjmasn/meteor,chasertech/meteor,mjmasn/meteor,chasertech/meteor,mjmasn/meteor,Hansoft/meteor,chasertech/meteor,Hansoft/meteor,chasertech/meteor,Hansoft/meteor,Hansoft/meteor,mjmasn/meteor,Hansoft/meteor,chasertech/meteor,mjmasn/meteor,mjmas... | ---
+++
@@ -13,6 +13,13 @@
"--update-binary"
];
+// Allow additional flags to be passed via the $METEOR_NPM_REBUILD_FLAGS
+// environment variable.
+var flags = process.env.METEOR_NPM_REBUILD_FLAGS;
+if (flags) {
+ args.push.apply(args, flags.split(/\s+/g));
+}
+
exports.get = function () {
// Make a defen... |
4d1935449f76de2fb775a6a70518e2a897e32b90 | src/content-tooltip/constants.js | src/content-tooltip/constants.js | export const TOOLTIP_DEFAULT_OPTION = true
export const POSITION_DEFAULT_OPTION = 'mouse'
export const HIGHLIGHTS_DEFAULT_OPTION = true
export const HIGHLIGHTS_STORAGE_NAME = 'memex_link_highlights'
export const TOOLTIP_STORAGE_NAME = 'memex_link_tooltip'
export const POSITION_STORAGE_NAME = 'memex_link_position'
expor... | export const TOOLTIP_DEFAULT_OPTION = true
export const POSITION_DEFAULT_OPTION = 'mouse'
export const HIGHLIGHTS_DEFAULT_OPTION = true
export const HIGHLIGHTS_STORAGE_NAME = 'memex_link_highlights'
export const TOOLTIP_STORAGE_NAME = 'memex_link_tooltip'
export const POSITION_STORAGE_NAME = 'memex_link_position'
expor... | Change keyboard shortcut defaults to shift+ | Change keyboard shortcut defaults to shift+
| JavaScript | mit | WorldBrain/WebMemex,WorldBrain/WebMemex | ---
+++
@@ -10,15 +10,15 @@
export const KEYBOARDSHORTCUTS_DEFAULT_STATE = {
shortcutsEnabled: false,
- linkShortcut: 'shift+l',
- toggleSidebarShortcut: 'shift+r',
- toggleHighlightsShortcut: 'shift+h',
- createAnnotationShortcut: 'shift+a',
- createHighlightShortcut: 'shift+n',
- createBoo... |
951089170b2b7c3e9e53f292c537165bbd1c5551 | lib/mailer/transporter.js | lib/mailer/transporter.js | const nodemailer = require('nodemailer')
const config = require('../config')
let opts = config.get('mailer.service')
? config.get('mailer')
: config.get('nodemailer')
// Use directTransport when nothing is configured
if (opts && Object.keys(opts).length === 0) {
opts = undefined
}
const transport = opts ?
no... | const nodemailer = require('nodemailer')
const config = require('../config')
let opts = config.get('mailer.service')
? config.get('mailer')
: config.get('nodemailer')
// Use directTransport when nothing is configured
if (opts && Object.keys(opts).length === 0) {
opts = undefined
}
const transport = opts ?
no... | Fix Cannot set property 'mailer' of undefined error | Fix Cannot set property 'mailer' of undefined error
| JavaScript | mit | DemocracyOS/notifier | ---
+++
@@ -12,6 +12,6 @@
const transport = opts ?
nodemailer.createTransport(opts) :
- nodemailer.createTransport()
+ nodemailer.createTransport({})
module.exports = transport |
2136ad411edde6f3f2208acc12ce204c2d7137c6 | lib/collections/projects.js | lib/collections/projects.js | Projects = new Mongo.Collection('projects');
Meteor.methods({
insertProject: function(projectAttributes) {
check(Meteor.userId(), String);
check(projectAttributes, {
name: Match.Where(function(val) {
check(val, String);
return val.length > 0;
}),
description: String
});
... | Projects = new Mongo.Collection('projects');
Meteor.methods({
insertProject: function(projectAttributes) {
check(Meteor.userId(), String);
check(projectAttributes, {
name: Match.Where(function(val) {
check(val, String);
return val.length > 0;
}),
description: String
});
... | Update request status to 'accepted' | Update request status to 'accepted'
| JavaScript | mit | PUMATeam/puma,PUMATeam/puma | ---
+++
@@ -48,6 +48,10 @@
}
});
+ Requests.update({_id: requestAttributes.requestId}, {
+ status: 'accepted'
+ });
+
Meteor.call('setNotificationAsRead', requestAttributes.notificationId, function(err, result) {
if (err) {
console.log(err)... |
4e6ebfc002b096753575f9bc966ffe30e201411f | test/git-describe.js | test/git-describe.js | /*
* Copyright 2017 HM Revenue & Customs
*
* 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 a... | /*
* Copyright 2017 HM Revenue & Customs
*
* 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 a... | Switch execFile out for spawn and flatten args in tests | Switch execFile out for spawn and flatten args in tests
| JavaScript | apache-2.0 | hmrc/node-git-versioning | ---
+++
@@ -16,7 +16,7 @@
import path from 'path'
import test from 'tape'
-import { execFileSync } from 'child_process'
+import { spawnSync } from 'child_process'
import suiteName from './utils/suite'
import gitDescribe from '../lib/git-describe'
@@ -33,15 +33,9 @@
})
test(`${suite} Return the sha of the ... |
6fa2ccc5eee5e7d3fa76a989a029f4a8ba6ee0a7 | app.js | app.js | var express = require('express'), app = express(), swig = require('swig');
var bodyParser = require('body-parser');
var https = require('https'), config = require('./config');
app.engine('html', swig.renderFile);
app.set('view engine', 'html');
app.set('views', __dirname + '/pages');
app.set('view cache', false);
sw... | var express = require('express'), app = express(), swig = require('swig');
var bodyParser = require('body-parser');
var https = require('https'), config = require('./config');
app.engine('html', swig.renderFile);
app.set('view engine', 'html');
app.set('views', __dirname + '/pages');
app.set('view cache', false);
sw... | Convert debug info to string | Convert debug info to string
| JavaScript | mit | iveysaur/PiCi | ---
+++
@@ -25,7 +25,7 @@
'path': '/repos/' + config.repoURL + '/status/' + req.body.after + '?access_token=' + config.githubToken,
'method': 'POST'}, function(res) {
res.on('data', function(data) {
- console.log(data);
+ console.log(data.toString());
});
});
request.write(JSON.string... |
17d489ce36b25598ee22a6eec5570b5395fd52c3 | app.js | app.js | var express = require('express');
var bunyan = require('bunyan');
var log = bunyan.createLogger({ name: 'app' });
var app = express();
var pkg = require('./index.js');
pkg.boot(app, 'somesecret');
app.post('/', pkg.router(function(req, res, event) {
log.info(req.body);
switch (event) {
case 'ping':
... | var express = require('express');
var bunyan = require('bunyan');
var log = bunyan.createLogger({ name: 'app' });
var app = express();
var pkg = require('./index.js');
pkg.boot(app, 'somesecret');
app.post('/', pkg.router(function(req, res, event) {
log.info(req.body, event);
switch (event) {
case 'ping... | Add the event to the log | Add the event to the log
| JavaScript | mit | datashaman/datashaman-webhooks | ---
+++
@@ -8,7 +8,7 @@
pkg.boot(app, 'somesecret');
app.post('/', pkg.router(function(req, res, event) {
- log.info(req.body);
+ log.info(req.body, event);
switch (event) {
case 'ping': |
a8688da380bd94ecc62c3b3e5591e39358fe2e05 | app.js | app.js | const express = require('express');
const app = express();
const port = 3000;
require('./middleware.js')(app, express);
app.listen(port, function() {
console.log('Now listening on port', port);
});
module.exports = app;
| const express = require('express');
const app = express();
const port = process.env.PORT || 3000;
require('./middleware.js')(app, express);
app.listen(port, function() {
console.log('Now listening on port', port);
});
module.exports = app;
| Fix server port for Heroku deployment | Fix server port for Heroku deployment
| JavaScript | mit | MapReactor/SonderServer,aarontrank/SonderServer,aarontrank/SonderServer,MapReactor/SonderServer | ---
+++
@@ -1,6 +1,6 @@
const express = require('express');
const app = express();
-const port = 3000;
+const port = process.env.PORT || 3000;
require('./middleware.js')(app, express);
|
f72cae72a9227502282e63d5bacb7c520cbfdf73 | app.js | app.js | var WebSocketServer = require('websocket').server;
var http = require('http');
var argv = require('yargs')
.alias('e', 'exec')
.default('port', 8080)
.alias('p', 'password')
.describe('p', 'Set a specific password to the WebSocket server')
.demand(['e'])
.argv;
var controllers = require('./lib/connectio... | var WebSocketServer = require('websocket').server;
var http = require('http');
var argv = require('yargs')
.alias('e', 'exec')
.default('port', 8080)
.alias('p', 'password')
.alias('ssl', 'https')
.boolean('ssl')
.describe('ssl', 'Add https support')
.describe('ssl-key', 'Route to SSL key')
... | ADD https flags and flags improvement | ADD https flags and flags improvement
| JavaScript | mit | Drag0s/node-websocketd | ---
+++
@@ -4,8 +4,17 @@
.alias('e', 'exec')
.default('port', 8080)
.alias('p', 'password')
+ .alias('ssl', 'https')
+ .boolean('ssl')
+ .describe('ssl', 'Add https support')
+ .describe('ssl-key', 'Route to SSL key')
+ .describe('ssl-cert', 'Route to SSL certificate')
+ .describe('port'... |
6935fb259a228bca7d11ac173e23c56235d235dc | app.js | app.js | /*
* Mailchimp AJAX form submit VanillaJS
* Vanilla JS
* Author: Michiel Vandewalle
* Github author: https://github.com/michiel-vandewalle
* Github project: https://github.com/michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS
*/
(function () {
document.getElementsByTagName('form')[0].addEventListener('... | /*
* Mailchimp AJAX form submit VanillaJS
* Vanilla JS
* Author: Michiel Vandewalle
* Github author: https://github.com/michiel-vandewalle
* Github project: https://github.com/michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS
*/
(function () {
if (document.getElementsByTagName('form').length > 0) {
... | Make sure the subscribe form is available before running the script | Make sure the subscribe form is available before running the script
| JavaScript | mit | michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS,michiel-vandewalle/Mailchimp-AJAX-form-submit-vanillaJS | ---
+++
@@ -7,37 +7,39 @@
*/
(function () {
- document.getElementsByTagName('form')[0].addEventListener('submit', function (e) {
- e.preventDefault();
+ if (document.getElementsByTagName('form').length > 0) {
+ document.getElementsByTagName('form')[0].addEventListener('submit', function (e) {... |
857435f7c5981286f2ac479661f5d60ad8360f45 | cli.js | cli.js | #!/usr/bin/env node
'use strict';
var npmMan = require('./');
var help = require('help-version')(usage()).help,
minimist = require('minimist'),
manPager = require('man-pager'),
defaultPager = require('default-pager');
function usage() {
return 'Usage: npm-man [--no-man] <package>';
}
var opts = min... | #!/usr/bin/env node
'use strict';
var npmMan = require('./');
var help = require('help-version')(usage()).help,
minimist = require('minimist'),
manPager = require('man-pager'),
defaultPager = require('default-pager');
function usage() {
return 'Usage: npm-man [--no-man] <package>';
}
var opts = min... | Use default pager for Markdown | Use default pager for Markdown
| JavaScript | mit | eush77/npm-man | ---
+++
@@ -32,8 +32,10 @@
return help(argv.length);
}
+ var pager = opts.man ? manPager : defaultPager;
+
npmMan(argv[0], opts, function (err, man) {
if (err) return console.error(err);
- manPager().end(man);
+ pager().end(man);
});
}(opts, opts._)); |
d659a3fb4492ebe6a782ada2407030fc47853487 | tests/integration/components/back-link-test.js | tests/integration/components/back-link-test.js | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('back-link', 'Integration | Component | back link', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any ac... | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('back-link', 'Integration | Component | back link', {
integration: true
});
test('it renders', function(assert) {
this.render(hbs`{{back-link}}`);
assert.equal(this.$().text().trim(), 'Back'... | Fix bad test for back-link helper | Fix bad test for back-link helper
| JavaScript | mit | ilios/common,ilios/common | ---
+++
@@ -6,20 +6,7 @@
});
test('it renders', function(assert) {
-
- // Set any properties with this.set('myProperty', 'value');
- // Handle any actions with this.on('myAction', function(val) { ... });
-
this.render(hbs`{{back-link}}`);
- assert.equal(this.$().text().trim(), '');
-
- // Template block ... |
a45d5b16fe896c216622f429e0af95eb141f485b | web/src/main/ember/app/serializers/application.js | web/src/main/ember/app/serializers/application.js | import Ember from 'ember';
import DS from 'ember-data';
// Adapted from http://springember.blogspot.com.au/2014/08/using-ember-data-restadapter-with.html
export default DS.RESTSerializer.extend({
serializeIntoHash: function(hash, type, record, options) {
var serialized = this.serialize(record, options);
... | import Ember from 'ember';
import DS from 'ember-data';
// Adapted from http://springember.blogspot.com.au/2014/08/using-ember-data-restadapter-with.html
export default DS.RESTSerializer.extend({
serializeIntoHash: function(hash, type, record, options) {
var serialized = this.serialize(record, options);
... | Fix serializer to keep 'false' values | Fix serializer to keep 'false' values
| JavaScript | agpl-3.0 | MarSik/shelves,MarSik/shelves,MarSik/shelves,MarSik/shelves | ---
+++
@@ -14,7 +14,7 @@
//Remove null values
Object.keys(serialized).forEach(function(k) {
- if (!serialized[k]) {
+ if (serialized[k] === null) {
delete serialized[k];
}
}); |
d44e463495dc2636253a747018eaafd447d652a6 | src/routes/index.js | src/routes/index.js | import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import App from '../containers/App'
import Article from '../containers/Article'
import Blank from '../containers/Blank'
import Category from '../containers/Category'
import Home from '../containers/Home'
import Photograp... | import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import App from '../containers/App'
import Article from '../containers/Article'
import Blank from '../containers/Blank'
import Category from '../containers/Category'
import Home from '../containers/Home'
import Photograp... | Add Topic landing page route | [Add] Add Topic landing page route
| JavaScript | agpl-3.0 | garfieldduck/twreporter-react,twreporter/twreporter-react,nickhsine/twreporter-react,hanyulo/twreporter-react,garfieldduck/twreporter-react,hanyulo/twreporter-react | ---
+++
@@ -10,10 +10,12 @@
import Search from '../containers/Search'
import Tag from '../containers/Tag'
import Topic from '../containers/Topic'
+import TopicLandingPage from '../containers/TopicLandingPage'
export default function (history = browserHistory) {
return (
<Router history={history} onUpdat... |
9f4973cb9a688c1b611895472c7285b68aa90896 | src/sources/tlds.js | src/sources/tlds.js | 'use babel';
import fs from 'fs';
import readInTld from '../readInTld';
import {add as addToRegistry} from '../registry';
export function register() {
const userHome = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME'];
let tldPathes = [];
// TODO: refresh on config change
atom.con... | 'use babel';
import fs from 'fs';
import readInTld from '../readInTld';
import {add as addToRegistry} from '../registry';
export function register() {
const userHome = process.env[process.platform === 'win32' ? 'USERPROFILE' : 'HOME'];
const tldSources = atom.config.get('autocomplete-jsp.tldSources');
/... | Load tld files completely async | Load tld files completely async
| JavaScript | mit | MoritzKn/atom-autocomplete-jsp | ---
+++
@@ -6,46 +6,53 @@
export function register() {
- const userHome = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME'];
+ const userHome = process.env[process.platform === 'win32' ? 'USERPROFILE' : 'HOME'];
+ const tldSources = atom.config.get('autocomplete-jsp.tldSources');
- ... |
1d4203d51cea5ebc090bec9772e03ad89a892127 | vendor/assets/javascripts/vis.js | vendor/assets/javascripts/vis.js | //= require ../vis/module/header
//= require moment
//= require hammer
//= require ../component/emitter
//= require ../vis/shim
//= require ../vis/util
//= require ../vis/DataSet
//= require ../vis/DataView
//= require ../vis/timeline/stack
//= require ../vis/timeline/TimeStep
//= require ../vis/timeline/component/Co... | //= require_relative ../vis/module/header
//= require moment
//= require hammer
//= require_relative ../component/emitter
//= require_relative ../vis/shim
//= require_relative ../vis/util
//= require_relative ../vis/DataSet
//= require_relative ../vis/DataView
//= require_relative ../vis/timeline/stack
//= require_re... | Add require_relative to work with Rails 4.1.5 | Add require_relative to work with Rails 4.1.5
| JavaScript | apache-2.0 | AlexVangelov/vis-rails,mariowise/vis-rails | ---
+++
@@ -1,35 +1,35 @@
-//= require ../vis/module/header
+//= require_relative ../vis/module/header
//= require moment
//= require hammer
-//= require ../component/emitter
+//= require_relative ../component/emitter
-//= require ../vis/shim
-//= require ../vis/util
-//= require ../vis/DataSet
-//= require ../vi... |
1f5a5d92290005b2301e41f0e7fe69e24569b489 | vendor/leaflet.div-control.js | vendor/leaflet.div-control.js | L.Control.Div = L.Control.extend({
initialize(element, options) {
L.Control.prototype.initialize.call(this, options);
this._container = element || L.DomUtil.create('div', '');
if(this.options.disableClickPropagation) {
L.DomEvent.disableClickPropagation(this._container);
}
if(this.options.... | L.Control.Div = L.Control.extend({
initialize: function(element, options) {
L.Control.prototype.initialize.call(this, options);
this._container = element || L.DomUtil.create('div', '');
if(this.options.disableClickPropagation) {
L.DomEvent.disableClickPropagation(this._container);
}
if(thi... | Fix travis hang on vendor file, change es6 to es5 style | Fix travis hang on vendor file, change es6 to es5 style
| JavaScript | mit | Flexberry/ember-flexberry-gis,Flexberry/ember-flexberry-gis,Flexberry/ember-flexberry-gis | ---
+++
@@ -1,5 +1,5 @@
L.Control.Div = L.Control.extend({
- initialize(element, options) {
+ initialize: function(element, options) {
L.Control.prototype.initialize.call(this, options);
this._container = element || L.DomUtil.create('div', '');
@@ -16,7 +16,7 @@
return this._container;
},
- ... |
7a9a992ed7ea73f67a31944035dc8e7a5779d3f4 | src/http/action-http.js | src/http/action-http.js | import * as actionCore from '../core/action-core';
import {createJsonRoute, throwStatus} from '../util/express';
import {assert} from '../validation';
import * as imageHttp from './image-http';
import * as throttleCore from '../core/throttle-core';
let postAction = createJsonRoute(function(req, res) {
const action =... | import * as actionCore from '../core/action-core';
import {createJsonRoute, throwStatus} from '../util/express';
import {assert} from '../validation';
import * as banCore from '../core/ban-core';
import * as imageHttp from './image-http';
import * as throttleCore from '../core/throttle-core';
let postAction = createJs... | Check if user is banned in /actions API | Check if user is banned in /actions API
| JavaScript | mit | futurice/wappuapp-backend,futurice/wappuapp-backend,kaupunki-apina/prahapp-backend,kaupunki-apina/prahapp-backend | ---
+++
@@ -1,6 +1,7 @@
import * as actionCore from '../core/action-core';
import {createJsonRoute, throwStatus} from '../util/express';
import {assert} from '../validation';
+import * as banCore from '../core/ban-core';
import * as imageHttp from './image-http';
import * as throttleCore from '../core/throttle-c... |
c8679aa22383c8966844788d6af1b8c0e232fd91 | gpm-dlv/js/main.js | gpm-dlv/js/main.js | (function() {
var element = null;
var nav_elements = document.querySelectorAll('.nav-item-container');
for (var i = 0; i < nav_elements.length; i++) {
var current = nav_elements[i];
if (current.innerHTML == 'My Library') {
element = current;
break;
}
}
... | (function() {
function findTarget(element) {
if (element.nodeType === 1) {
var candidates = element.querySelectorAll('.nav-item-container');
for (var i = 0; i < candidates.length; i++) {
if (candidates[i].textContent == 'My Library') {
return cand... | Handle dynamic insertion of page elements | Handle dynamic insertion of page elements
| JavaScript | mit | bluekeyes/gpm-dlv,bluekeyes/gpm-dlv | ---
+++
@@ -1,20 +1,38 @@
(function() {
- var element = null;
- var nav_elements = document.querySelectorAll('.nav-item-container');
- for (var i = 0; i < nav_elements.length; i++) {
- var current = nav_elements[i];
- if (current.innerHTML == 'My Library') {
- element = current;
-... |
c40900b5793ae62b3b6747f5c4f95e077acc636f | app/scripts/app/utils/parse-fields-metadata.js | app/scripts/app/utils/parse-fields-metadata.js | function parseFields (payload) {
if (Array.isArray(payload)) {
payload.forEach(parseFields);
return;
}
if (typeof payload === 'object' && payload.hasOwnProperty('fields')) {
payload.fields = JSON.parse(payload.fields);
}
}
export default parseFields;
| var fields = ['fields', 'date'];
function parseFields (payload) {
var i;
if (Array.isArray(payload)) {
payload.forEach(parseFields);
return;
}
if (typeof payload !== 'object') {
return;
}
for (i = 0; i !== fields.length; ++i) {
if (payload.hasOwnProperty(fields[i])) {
if (fields[i]... | Update parseFields to handle `date` property | Update parseFields to handle `date` property
| JavaScript | mit | darvelo/wishlist,darvelo/wishlist | ---
+++
@@ -1,11 +1,25 @@
+var fields = ['fields', 'date'];
+
function parseFields (payload) {
+ var i;
+
if (Array.isArray(payload)) {
payload.forEach(parseFields);
return;
}
- if (typeof payload === 'object' && payload.hasOwnProperty('fields')) {
- payload.fields = JSON.parse(payload.fields)... |
41eb7a6919ea9693543ce10fd4dd40e6553a1d0a | app/assets/javascripts/components/ClearInput.js | app/assets/javascripts/components/ClearInput.js | define(['jquery', 'DoughBaseComponent'], function($, DoughBaseComponent) {
'use strict';
var ClearInput,
uiEvents = {
'keydown [data-dough-clear-input]' : 'updateResetButton',
'click [data-dough-clear-input-button]' : 'resetForm'
};
ClearInput = function($el, config) {
this.uiEvents... | define(['jquery', 'DoughBaseComponent'], function($, DoughBaseComponent) {
'use strict';
var ClearInput,
uiEvents = {
'keydown [data-dough-clear-input]' : 'updateResetButton',
'click [data-dough-clear-input-button]' : 'resetForm'
};
ClearInput = function($el, config) {
this.uiEvents... | Fix search box with initial value after search | Fix search box with initial value after search
| JavaScript | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | ---
+++
@@ -14,6 +14,8 @@
this.$resetInput = this.$el.find('[data-dough-clear-input]');
this.$resetButton = this.$el.find('[data-dough-clear-input-button]');
+
+ this.updateResetButton();
};
/**
@@ -37,9 +39,11 @@
// We are progressively enhancing the form with JS. The CSS button, type 'reset'... |
194e348fa2691a12e8360cadae714b971b77df97 | test/stream.spec.js | test/stream.spec.js | "use strict";
let chai = require('chai');
let expect = chai.expect;
let Stream = require('../src/stream');
describe('Stream', () => {
describe('#constructor', () => {
it('returns an instanceof stream', () => {
let stream = new Stream.default("123");
expect(stream).to.be.an.instanceof(Stream.default);
});... | "use strict";
let chai = require('chai');
let expect = chai.expect;
let Stream = require('../src/stream');
describe('Stream', () => {
describe('#constructor', () => {
it('returns an instanceof stream', () => {
let stream = new Stream.default("123");
expect(stream).to.be.an.instanceof(Stream.default);
});... | Test what happens in dockerhub when a node test fails | Test what happens in dockerhub when a node test fails
Signed-off-by: Tobias Sjöndin <04a8cd48feee91827ce7c6d1356384bcca091996@op5.com>
| JavaScript | mit | tsjondin/cody,tsjondin/cody | ---
+++
@@ -38,5 +38,13 @@
expect(stream.current()).to.eql('2');
});
+ it('will fail', () => {
+ let stream = new Stream.default("123");
+ let segment = stream.until(character => (character === '3'));
+ expect(segment).to.eql('12');
+ stream.backward();
+ expect(stream.current()).to.eql('1');
+ }... |
a448207928f130cd13a0a109138b0ff0b93d84c4 | test/utils/index.js | test/utils/index.js | 'use strict'
let cp = require('child_process'),
fs = require('fs'),
started = false
module.exports.start = function (done) {
if (started) {
return done()
}
// Fork server
fs.copyFileSync('node_modules/log-sink-server/example-config.js', 'node_modules/log-sink-server/config.js')
let children = cp.fork('.', [... | 'use strict'
let cp = require('child_process'),
fs = require('fs'),
started = false
module.exports.start = function (done) {
if (started) {
return done()
}
fs.writeFileSync(
'node_modules/log-sink-server/config.js',
fs.readFileSync('node_modules/log-sink-server/example-config.js')
)
// Fork server
let... | Remove copyFileSync call from test | Remove copyFileSync call from test
| JavaScript | mit | clubedaentrega/log-sink | ---
+++
@@ -9,8 +9,12 @@
return done()
}
+ fs.writeFileSync(
+ 'node_modules/log-sink-server/config.js',
+ fs.readFileSync('node_modules/log-sink-server/example-config.js')
+ )
+
// Fork server
- fs.copyFileSync('node_modules/log-sink-server/example-config.js', 'node_modules/log-sink-server/config.js')
l... |
86a91b9727883cbd9635ca6e48c48661548c98ef | app/facebook/facebook.js | app/facebook/facebook.js | 'use strict';
angular.module('ngSocial.facebook', ['ngRoute','ngFacebook'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/facebook', {
templateUrl: 'facebook/facebook.html',
controller: 'FacebookCtrl'
});
}])
.config( function( $facebookProvider ) {
$facebookProvider.setAp... | 'use strict';
angular.module('ngSocial.facebook', ['ngRoute','ngFacebook'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/facebook', {
templateUrl: 'facebook/facebook.html',
controller: 'FacebookCtrl'
});
}])
.config( function( $facebookProvider ) {
$facebookProvider.setAp... | Add Facebook login test 2 | Add Facebook login test 2
| JavaScript | mit | PohrebniakOleskandr/ng-facebook-app,PohrebniakOleskandr/ng-facebook-app | ---
+++
@@ -26,6 +26,7 @@
.controller('FacebookCtrl', ['$scope', '$facebook', function($scope,$facebook) {
+ console.log('hello!');
$scope.isLoggedIn = false;
$scope.login = function(){
$facebook.login().then(function(){ |
1591d0f60a8db1ba924959ec5aa6891fd3b74aa5 | app/assets/javascripts/solidus_subscription_boxes/subscription_selection.js | app/assets/javascripts/solidus_subscription_boxes/subscription_selection.js | // Meal Selection Page
$('.meal-selection').click( function(event) {
if( $('.meal-selection input:checked').length > 3) {
alert("Please only pick 3 feals");
event.target.checked = false;
event.preventDefault();
}
if( $('.meal-selection input:checked').length == 3) {
$('input[type=submit]').remove... | // Meal Selection Page
$('.meal-selection').click( function(event) {
if( $('.meal-selection input:checked').length > 3) {
alert("Please only pick 3 meals");
event.target.checked = false;
event.preventDefault();
}
if( $('.meal-selection input:checked').length == 3) {
$('input[type=submit]').remove... | Change the word "feals" to "meals" in error messaging. | Change the word "feals" to "meals" in error messaging.
| JavaScript | bsd-3-clause | joeljackson/solidus_subscription_boxes,joeljackson/solidus_subscription_boxes,joeljackson/solidus_subscription_boxes | ---
+++
@@ -1,7 +1,7 @@
// Meal Selection Page
$('.meal-selection').click( function(event) {
if( $('.meal-selection input:checked').length > 3) {
- alert("Please only pick 3 feals");
+ alert("Please only pick 3 meals");
event.target.checked = false;
event.preventDefault();
} |
b50067997bf1c1bb78b078b4333f199baf9f42b4 | app/assets/javascripts/cancel_appointment.js | app/assets/javascripts/cancel_appointment.js | var cancelAppointment = function(timeslot_id) {
$("#modal_remote").modal('hide');
swal({
title: "Are you sure?",
text: "You will be removed from this appointment.",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#EF5350",
confirmButtonText: "Yes, cancel... | var cancelAppointment = function(timeslot_id) {
$("#modal_remote").modal('hide');
swal({
title: "Are you sure?",
text: "You will be removed from this appointment.",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#EF5350",
confirmButtonText: "Yes, cancel... | Hide button, enable timer for swal, note confirm color is white swal doesn't completely hide the button | Hide button, enable timer for swal, note confirm color is white swal doesn't completely hide the button
| JavaScript | mit | theresaboard/theres-a-board,theresaboard/theres-a-board,theresaboard/theres-a-board | ---
+++
@@ -9,7 +9,7 @@
confirmButtonText: "Yes, cancel my appointment.",
cancelButtonText: "No, I don't want to cancel.",
closeOnConfirm: false,
- closeOnCancel: false
+ closeOnCancel: true
},
function(isConfirm){
if (isConfirm) {
@@ -21,7 +21,10 @@
... |
8f9737a551807974a261c4afa1a1c48f0eedf2a3 | app/assets/javascripts/helpers/prop_types.js | app/assets/javascripts/helpers/prop_types.js | (function() {
window.shared || (window.shared = {});
// Allow a prop to be null, if the prop type explicitly allows this.
// Then fall back to another validator if a value is passed.
var nullable = function(validator) {
return function(props, propName, componentName) {
if (props[propName] === null) r... | (function() {
window.shared || (window.shared = {});
// Allow a prop to be null, if the prop type explicitly allows this.
// Then fall back to another validator if a value is passed.
var nullable = function(validator) {
return function(props, propName, componentName) {
if (props[propName] === null) r... | Remove deprecated notes from PropTypes helper | Remove deprecated notes from PropTypes helper
| JavaScript | mit | erose/studentinsights,erose/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,erose/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,jhilde/studentinsights,erose/studentinsights | ---
+++
@@ -36,7 +36,6 @@
discontinued: React.PropTypes.array.isRequired
}),
deprecated: React.PropTypes.shape({
- notes: React.PropTypes.array.isRequired,
interventions: React.PropTypes.array.isRequired
})
}) |
7fa187cc34d53cfda7189d95cda2e0970a9c8d11 | bugminer-server/src/main/frontend/app/js/app.js | bugminer-server/src/main/frontend/app/js/app.js | (function(angular) {
'use strict';
var app = angular.module('bugminerApp', ['ngResource', 'ngRoute']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'partials/projects/index.html',
controller: 'ProjectsCtrl'
})
.when('/projects/:name/bugs', {... | (function(angular) {
'use strict';
var app = angular.module('bugminerApp', ['ngResource', 'ngRoute']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'partials/projects/index.html',
controller: 'ProjectsCtrl'
})
.when('/projects/:name/bugs', {... | Use $routeParams for retrieving project name | Use $routeParams for retrieving project name
| JavaScript | mit | bugminer/bugminer,bugminer/bugminer,bugminer/bugminer,bugminer/bugminer | ---
+++
@@ -30,8 +30,8 @@
});
});
- app.controller('ProjectBugsCtrl', function($scope, Bug) {
- Bug.query({name: 'Bugminer'}, function(data) {
+ app.controller('ProjectBugsCtrl', function($scope, $routeParams, Bug) {
+ Bug.query({name: $routeParams.name}, function(data) {
$scope.bugs = data;
console... |
3662d990b6b0b438b7223ba403ee39c6c16a75d0 | ui/frontend/index.js | ui/frontend/index.js | /* global process:false */
import "babel-polyfill";
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore, compose } from 'redux';
import createLogger from 'redux-logger';
import thunk from 'redux-thunk';
import persistState from 're... | /* global process:false */
import "babel-polyfill";
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore, compose } from 'redux';
import createLogger from 'redux-logger';
import thunk from 'redux-thunk';
import persistState from 're... | Allow loading code from a CGI parameter | Allow loading code from a CGI parameter
Closes #62
| JavaScript | apache-2.0 | integer32llc/rust-playground,integer32llc/rust-playground,integer32llc/rust-playground,integer32llc/rust-playground,integer32llc/rust-playground | ---
+++
@@ -14,7 +14,7 @@
import { configureRustErrors } from './highlighting';
import { serialize, deserialize } from './local_storage';
import playgroundApp from './reducers';
-import { gotoPosition, performGistLoad } from './actions';
+import { gotoPosition, editCode, performGistLoad } from './actions';
import... |
65809e2efdea1c7a7952def23dbcf100c6f82bd7 | app/settings/settings.js | app/settings/settings.js | export default {
'vt-source': 'http://52.207.244.74', // source of current vector tiles
'vt-hist-source': 'http://52.207.244.74', // source of historic vector tiles for compare feature
}
| export default {
'vt-source': 'http://da-tiles.osm-analytics.org', // source of current vector tiles
'vt-hist-source': 'http://da-tiles.osm-analytics.org', // source of historic vector tiles for compare feature
}
| Use DNS for da-tiles server | Use DNS for da-tiles server
| JavaScript | bsd-3-clause | hotosm/osm-analytics,ekastimo/osm-analytics-fsp,ekastimo/osm-analytics-fsp,hotosm/osm-analytics,ekastimo/osm-analytics-fsp,hotosm/osm-analytics | ---
+++
@@ -1,4 +1,4 @@
export default {
- 'vt-source': 'http://52.207.244.74', // source of current vector tiles
- 'vt-hist-source': 'http://52.207.244.74', // source of historic vector tiles for compare feature
+ 'vt-source': 'http://da-tiles.osm-analytics.org', // source of current vector tiles
+ 'vt-hist-sou... |
28d611136cb715dba5c9df021d026d611576153d | cla_frontend/assets-src/javascripts/app/js/controllers/case_edit_details.js | cla_frontend/assets-src/javascripts/app/js/controllers/case_edit_details.js | (function(){
'use strict';
angular.module('cla.controllers')
.controller('CaseEditDetailCtrl',
['$scope', 'AlternativeHelpService', '$state',
function($scope, AlternativeHelpService, $state){
// when viewing coming back to the details view
// clear out the Alternative Help sel... | (function(){
'use strict';
angular.module('cla.controllers')
.controller('CaseEditDetailCtrl',
['$scope', 'AlternativeHelpService',
function($scope, AlternativeHelpService){
// when viewing coming back to the details view
// clear out the Alternative Help selections.
... | Remove case detail redirect to diagnosis as blocks deep linking into means test tabs | Remove case detail redirect to diagnosis as blocks deep linking into means test tabs
| JavaScript | mit | ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend | ---
+++
@@ -3,8 +3,8 @@
angular.module('cla.controllers')
.controller('CaseEditDetailCtrl',
- ['$scope', 'AlternativeHelpService', '$state',
- function($scope, AlternativeHelpService, $state){
+ ['$scope', 'AlternativeHelpService',
+ function($scope, AlternativeHelpService){
... |
72e7ec921e523e7088c9305aa323f586d4f995e5 | src/Jailor.js | src/Jailor.js | var Jailor;
(function(GLOBAL) {
var conditions = [];
Jailor = {
init: function initJailor() {
var previousBeforeUnloadHandler = GLOBAL.onbeforeunload;
GLOBAL.onbeforeunload = Jailor.check;
Jailor.lock(previousBeforeUnloadHandler);
},
lock: function lock(condition) {
if (condition)
conditio... | var Jailor;
(function(GLOBAL) {
var conditions = [];
Jailor = {
init: function initJailor() {
var previousBeforeUnloadHandler = GLOBAL.onbeforeunload;
GLOBAL.onbeforeunload = Jailor.check;
Jailor.lock(previousBeforeUnloadHandler);
},
lock: function lock(condition) {
if (condition)
conditio... | Correct attachment with no condition | Correct attachment with no condition | JavaScript | mit | MESHMD/Jailor | ---
+++
@@ -21,16 +21,17 @@
},
check: function check() {
- var result = '';
+ var result = [];
conditions.forEach(function(condition) {
var evaluationResult = condition();
- if (typeof result == 'string')
- result += evaluationResult;
+ if (typeof evaluationResult == 'string')
+ ... |
cbe0db51d7806fb07ee4b4d87f1c1f12f1eba7bb | util/test-regexp.js | util/test-regexp.js | let tests = [
// expect, string to match against
[ true, 'foobar' ],
[ false, 'foobaz' ],
[ true, 'wheelbarrow' ],
];
let re = /bar/;
for (let i = 0; i < tests.length; i++) {
var test = tests[i];
var expected = test[0];
var string = test[1];
var result = !!string.match(re);
print(i + ": '" + string ... | let tests = [
// what result to expect, string to match against
[ true, '/home/mike/git/work/stripes-experiments/stripes-connect' ],
[ true, '/home/mike/git/work/stripes-loader/' ],
[ true, '/home/mike/git/work/stripes-experiments/okapi-console/' ],
[ true, '/home/mike/git/work/stripes-experiments/stripes-cor... | Switch to actual regexp and paths. Rather obvious demo that Jason was right about node_modules. | Switch to actual regexp and paths. Rather obvious demo that Jason was right about node_modules.
| JavaScript | apache-2.0 | folio-org/stripes-experiments,folio-org/stripes-experiments | ---
+++
@@ -1,11 +1,14 @@
let tests = [
- // expect, string to match against
- [ true, 'foobar' ],
- [ false, 'foobaz' ],
- [ true, 'wheelbarrow' ],
+ // what result to expect, string to match against
+ [ true, '/home/mike/git/work/stripes-experiments/stripes-connect' ],
+ [ true, '/home/mike/git/work/stripes... |
6284d330c64d3b8323032bc7a002349cc35f3a29 | src/config.js | src/config.js | 'use strict';
var load = require('../src/loader.js');
function config(params) {
var cfg = false;
if ('object' == typeof params) cfg = params;
if ('string' == typeof params && (params.endsWith('.yaml') || params.endsWith('.yml'))) cfg = load.yaml(params);
if ('string' == typeof params && params.endsWit... | 'use strict';
var load = require('../src/loader.js');
function config(params) {
var cfg = false;
if ('object' == typeof params) cfg = params;
if ('string' == typeof params && /\.ya?ml$/.test(params)) cfg = load.yaml(params);
if ('string' == typeof params && /\.json$/.test(params)) cfg = load.json(para... | Change String.endsWith() calls with regex tests to make compatible with node 0.10+ | Change String.endsWith() calls with regex tests to make compatible with node 0.10+
| JavaScript | mit | mrajo/metalsmith-grep | ---
+++
@@ -5,8 +5,8 @@
function config(params) {
var cfg = false;
if ('object' == typeof params) cfg = params;
- if ('string' == typeof params && (params.endsWith('.yaml') || params.endsWith('.yml'))) cfg = load.yaml(params);
- if ('string' == typeof params && params.endsWith('.json')) cfg = load.js... |
1636d6643cfb5f77089886bac4d6921a3c3915e0 | src/api/thrusterRoutes.js | src/api/thrusterRoutes.js | var shipSystems = require('../shipSystems.js');
var thrusters = shipSystems.getSystemById('thrusters');
exports.registerRoutes = function (app, config) {
app.post('/api/systems/thrusters/attitude', function (request, response) {
thrusters.setAttitude(request.body);
response.send(thrusters.attitude);
... | var shipSystems = require('../shipSystems.js');
var thrusters = shipSystems.getSystemById('thrusters');
exports.registerRoutes = function (app, config) {
app.post('/api/systems/thrusters/attitude', function (request, response) {
thrusters.setAttitude(request.body);
response.send(thrusters.attitude);
... | Add route for updating thruster velocity | Add route for updating thruster velocity
| JavaScript | apache-2.0 | openstardrive/server,openstardrive/server,openstardrive/server | ---
+++
@@ -6,4 +6,9 @@
thrusters.setAttitude(request.body);
response.send(thrusters.attitude);
});
+
+ app.post('/api/systems/thrusters/velocity', function (request, response) {
+ thrusters.setVelocity(request.body);
+ response.send(thrusters.velocity);
+ });
}; |
0d9b89986950ce0e4089f8c98f15a33568c83ae5 | spec/exfmt-atom-spec.js | spec/exfmt-atom-spec.js | "use babel";
import AtomExfmt from "../lib/exfmt-atom";
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
//
// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
// or `fdescribe`). Remove the `f` to unfocus the block.
describe("AtomExfmt", () => {
let worksp... | "use babel";
import * as path from "path";
import ExfmtAtom from "../lib/exfmt-atom";
const simplePath = path.join(__dirname, "fixtures", "simple.ex");
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
//
// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
// ... | Add spec tests for package activation and default setting values | Add spec tests for package activation and default setting values
| JavaScript | mit | rgreenjr/exfmt-atom | ---
+++
@@ -1,17 +1,50 @@
"use babel";
-import AtomExfmt from "../lib/exfmt-atom";
+import * as path from "path";
+import ExfmtAtom from "../lib/exfmt-atom";
+
+const simplePath = path.join(__dirname, "fixtures", "simple.ex");
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
//
// ... |
eb2055576a4f10c31c020e00f520d4fc260df095 | dear.js | dear.js | var tablePrefix = '__dear_';
function createTable(tableName) {
if (!localStorage[tableName]) {
localStorage[tablePrefix + tableName] = '{}';
}
}
function readTable(tableName) {
// Read tableModel from local storage
return JSON.parse(localStorage[tablePrefix + tableName]);
}
function writeTable(tableName,... | var tablePrefix = '__dear_';
function createTable(tableName) {
if (!localStorage[tableName]) {
localStorage[tablePrefix + tableName] = '{}';
}
}
function readTable(tableName) {
// Read tableModel from local storage
return JSON.parse(localStorage[tablePrefix + tableName]);
}
function writeTable(tableName,... | Remove demo-related jQuery from library code | Remove demo-related jQuery from library code
| JavaScript | mit | strburst/dear,strburst/dear | ---
+++
@@ -39,7 +39,6 @@
function deleteTable(tableName) {
delete localStorage[tablePrefix + tableName];
- $('#changeTable option[value=' + tableName + ']').remove();
}
function listTables() { |
67696ac08bf39662aa796ce44e556b73e96594a5 | html.js | html.js | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body, route} = this.... | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body, route} = this.... | Correct the usage of title as a component | Correct the usage of title as a component
Documentation for this feature can be found [here](https://github.com/nfl/react-helmet#as-react-components) | JavaScript | mit | maxgrok/maxgrok.github.io,ochaloup/blog.chalda.cz,renegens/blog,wpioneer/gatsby-starter-lumen,hb-gatsby/gatsby-starter-lumen,Chogyuwon/chogyuwon.github.io,maxgrok/maxgrok.github.io,nicklanasa/nicklanasa.github.io,Chogyuwon/chogyuwon.github.io,alxshelepenok/gatsby-starter-lumen,alxshelepenok/gatsby-starter-lumen,YoruNoH... | ---
+++
@@ -11,7 +11,7 @@
},
render() {
const {body, route} = this.props
- const head = Helmet.rewind()
+ const {title} = Helmet.rewind()
const font = <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,700&subset=latin,cyrillic' rel='stylesheet' type... |
41a256c6fc37c7754520eb7df4582f6ae3276838 | src/components/TldrApp.js | src/components/TldrApp.js | import React from 'react';
//import { createHistory } from 'history';
import createHistory from 'history/lib/createHashHistory';
// Import components
import SearchBar from './SearchBar';
import Results from './Results';
let history = createHistory();
class TldrApp extends React.Component {
render () {
retur... | import React from 'react';
//import { createHistory } from 'history';
import createHistory from 'history/lib/createHashHistory';
// Import components
import SearchBar from './SearchBar';
import Results from './Results';
import { Command } from '../actions/Command';
let history = createHistory();
class TldrApp ext... | Load index earlier because it's safe now | Load index earlier because it's safe now
| JavaScript | mit | ostera/tldr.jsx,ostera/tldr.jsx,ostera/tldr.jsx,ostera/tldr.jsx | ---
+++
@@ -6,9 +6,15 @@
import SearchBar from './SearchBar';
import Results from './Results';
+import { Command } from '../actions/Command';
+
let history = createHistory();
class TldrApp extends React.Component {
+
+ componentWillMount () {
+ Command.getIndex().subscribe();
+ }
render () {
... |
0a46358c5f1cafe9ff8b2cd946e6ac19fd298b08 | src/eeh-flot-directive.js | src/eeh-flot-directive.js | (function (angular) {
'use strict';
function FlotDirective(eehFlot) {
return {
restrict: 'AE',
scope: {
dataset: '=',
options: '@'
},
link: function link(scope, element) {
eehFlot(element, scope.dataset, sco... | (function (angular) {
'use strict';
function FlotDirective(eehFlot) {
return {
restrict: 'AE',
template: '<div class="eeh-flot"></div>',
scope: {
dataset: '=',
options: '@'
},
link: function link(scope, element)... | Use the inner div to render the chart | Use the inner div to render the chart
| JavaScript | mit | ethanhann/eeh-flot | ---
+++
@@ -4,12 +4,14 @@
function FlotDirective(eehFlot) {
return {
restrict: 'AE',
+ template: '<div class="eeh-flot"></div>',
scope: {
dataset: '=',
options: '@'
},
link: function link(scope, element) {
-... |
88df148411b9cb891a73933f2139a4a069fcec6f | app/serializers/agent.js | app/serializers/agent.js | import DS from 'ember-data';
export default DS.JSONSerializer.extend({
primaryKey: 'id',
attrs: {
division: 'divisionID',
},
});
| import DS from 'ember-data';
export default DS.JSONSerializer.extend({
attrs: {
division: 'divisionID',
},
});
| Remove primaryKey def since default | Remove primaryKey def since default
| JavaScript | agpl-3.0 | DINA-Web/collections-ui,DINA-Web/collections-ui,DINA-Web/collections-ui | ---
+++
@@ -1,7 +1,6 @@
import DS from 'ember-data';
export default DS.JSONSerializer.extend({
- primaryKey: 'id',
attrs: {
division: 'divisionID',
}, |
20122bc58b6bce1441494c9f502801e95af07631 | imports/ui/components/menu/drawer-navigation.js | imports/ui/components/menu/drawer-navigation.js | import React from 'react';
import Drawer from 'material-ui/Drawer';
import DrawerMenuItems from '../../containers/drawer-menu-items.js';
export default class DrawerNavigation extends React.Component {
render() {
return (
<Drawer docked={ false } width={ 300 } open={ this.props.isOpen } onRequestChange={ is... | import React from 'react';
import Drawer from 'material-ui/Drawer';
import DrawerMenuItems from '../../containers/drawer-menu-items.js';
export default class DrawerNavigation extends React.Component {
render() {
return (
<Drawer docked={ false } width={ 250 } open={ this.props.isOpen } onRequestChange={ is... | Set drawer size to 250 instead of 300, need space on mobile to close overlay | Set drawer size to 250 instead of 300, need space on mobile to close overlay
| JavaScript | mit | irvinlim/free4all,irvinlim/free4all | ---
+++
@@ -5,7 +5,7 @@
export default class DrawerNavigation extends React.Component {
render() {
return (
- <Drawer docked={ false } width={ 300 } open={ this.props.isOpen } onRequestChange={ isOpen => this.props.setDrawerOpen(isOpen) }>
+ <Drawer docked={ false } width={ 250 } open={ this.props.... |
c6a20794a55c3ee982c42b92a845b7b9a2582794 | src/resources/checkMinifiedJsFiles.js | src/resources/checkMinifiedJsFiles.js | import fetch from '../default/fetch.js';
import checkMinifiedJs from './checkMinifiedJs.js';
export default function(urls) {
return new Promise(function(resolve, reject) {
let chain = Promise.resolve();
urls.forEach((url) => {
chain = chain.then(() => {
return Promise.resolve(url)
.t... | import fetch from '../default/fetch.js';
import checkMinifiedJs from './checkMinifiedJs.js';
import checkHttpStatus from '../default/checkHttpStatus.js';
export default function(urls) {
return new Promise(function(resolve, reject) {
let chain = Promise.resolve();
urls.forEach((url) => {
chain = chain.... | Add check resources http status code | Add check resources http status code
| JavaScript | mit | juffalow/pentest-tool-lite,juffalow/pentest-tool-lite | ---
+++
@@ -1,5 +1,6 @@
import fetch from '../default/fetch.js';
import checkMinifiedJs from './checkMinifiedJs.js';
+import checkHttpStatus from '../default/checkHttpStatus.js';
export default function(urls) {
return new Promise(function(resolve, reject) {
@@ -9,7 +10,11 @@
chain = chain.then(() => {
... |
1cd7c41e29c98712c984676b1ad152bbfc8e88b5 | chrome.js | chrome.js | var extend = require('cog/extend');
var OPT_DEFAULTS = {
target: 'rtc.io screenshare'
};
module.exports = function(opts) {
var lastRequestId;
var extension = require('chromex/client')(extend({}, OPT_DEFAULTS, opts, {
target: (opts || {}).chromeExtension
}));
extension.available = function(callback) {
... | var extend = require('cog/extend');
var OPT_DEFAULTS = {
target: 'rtc.io screenshare'
};
module.exports = function(opts) {
var extension = require('chromex/client')(extend({}, OPT_DEFAULTS, opts, {
target: (opts || {}).chromeExtension
}));
extension.available = function(callback) {
return extension.sa... | Refactor the cancel logic - the extension will track the request id to cancel | Refactor the cancel logic - the extension will track the request id to cancel
| JavaScript | apache-2.0 | rtc-io/rtc-screenshare | ---
+++
@@ -4,7 +4,6 @@
};
module.exports = function(opts) {
- var lastRequestId;
var extension = require('chromex/client')(extend({}, OPT_DEFAULTS, opts, {
target: (opts || {}).chromeExtension
}));
@@ -15,7 +14,7 @@
// patch in our capture function
extension.request = function(callback) {
- ... |
49d4e7791e0daa9de597e228cbc82c70e8e7c027 | src/javascripts/module.js | src/javascripts/module.js | angular.module('rs.popover', []).run(function () {
'use strict';
var styleContent, styleTag;
styleContent = document.createTextNode('.rs-popover-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; opacity: 0 } \
.rs-popover-loading, .rs-popover-error { width: 200px; height: 140px } \
.rs-po... | angular.module('rs.popover', []).run(function () {
'use strict';
var styleContent, styleTag;
styleContent = document.createTextNode('.rs-popover-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; opacity: 0 } \
.rs-popover-loading, .rs-popover-error { width: 200px; height: 140px } \
.rs-po... | Add more browser prefixes for rs-popover-message | Add more browser prefixes for rs-popover-message
| JavaScript | mit | rackerlabs/rs-popover | ---
+++
@@ -6,7 +6,7 @@
styleContent = document.createTextNode('.rs-popover-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; opacity: 0 } \
.rs-popover-loading, .rs-popover-error { width: 200px; height: 140px } \
.rs-popover-error { color: #c40022 } \
- .rs-popover-message { width: 100... |
ac90b26cb0bba0ac5b27899686938533e08b0767 | src/tasks/tasks-router.js | src/tasks/tasks-router.js | /**
* Entry point for Step Functions Tasks Handler
*/
'use strict';
const
constants = require('../common/constants'),
error = require('../services/error'),
bottle = constants.BOTTLE_CONTAINER;
module.exports.handler = (event, context, callback) => {
event.parsedBody = JSON.parse(event.body || '{}');
let ... | /**
* Entry point for Step Functions Tasks Handler
*/
'use strict';
const
constants = require('../common/constants'),
error = require('../services/error'),
bottle = constants.BOTTLE_CONTAINER;
module.exports.handler = (event, context, callback) => {
let taskEvent = event.event;
let taskHandler = bottle.... | Add 2 states for state machine | Add 2 states for state machine
| JavaScript | mit | totem/totem-v3-orchestrator | ---
+++
@@ -9,9 +9,8 @@
bottle = constants.BOTTLE_CONTAINER;
module.exports.handler = (event, context, callback) => {
- event.parsedBody = JSON.parse(event.body || '{}');
- let taskEvent = event.parsedBody.event;
+ let taskEvent = event.event;
let taskHandler = bottle.container[`tasks-event-${taskEven... |
f2b71a43e13c7e43da55f3f856db842f1a17b258 | vao.js | vao.js | "use strict"
var createVAONative = require("./lib/vao-native.js")
var createVAOEmulated = require("./lib/vao-emulated.js")
function createVAO(gl, attributes, elements, elementsType) {
var ext = gl.getExtension('OES_vertex_array_object')
var vao
if(ext) {
vao = createVAONative(gl, ext)
} else {
vao = c... | "use strict"
var createVAONative = require("./lib/vao-native.js")
var createVAOEmulated = require("./lib/vao-emulated.js")
function ExtensionShim (gl) {
this.bindVertexArrayOES = gl.bindVertexArray.bind(gl)
this.createVertexArrayOES = gl.createVertexArray.bind(gl)
this.deleteVertexArrayOES = gl.deleteVertexArra... | Add support for WebGL 2 | Add support for WebGL 2
| JavaScript | mit | stackgl/gl-vao | ---
+++
@@ -3,9 +3,18 @@
var createVAONative = require("./lib/vao-native.js")
var createVAOEmulated = require("./lib/vao-emulated.js")
+function ExtensionShim (gl) {
+ this.bindVertexArrayOES = gl.bindVertexArray.bind(gl)
+ this.createVertexArrayOES = gl.createVertexArray.bind(gl)
+ this.deleteVertexArrayOES =... |
afd7d74acfd98069832f52c5fb899d2c9325e53f | config.js | config.js | export default {
authToken: process.env.AUTH_TOKEN || 'secret',
env: process.env.NODE_ENV,
host: process.env.HOST || 'localhost',
github: {
apiUrl: 'https://api.github.com',
username: process.env.GITHUB_USERNAME || 'username'
},
jobs: {
frequency: {
githubActivity: process.env.JOBS_FREQUEN... | export default {
authToken: process.env.AUTH_TOKEN || 'secret',
env: process.env.NODE_ENV,
host: process.env.HOST || 'localhost',
github: {
apiUrl: 'https://api.github.com',
username: process.env.GITHUB_USERNAME || 'username',
accessToken: process.env.GITHUB_ACCESS_TOKEN || '123abc'
},
jobs: {
... | Add GitHub access token option | Add GitHub access token option
| JavaScript | mit | franvarney/franvarney-api | ---
+++
@@ -4,7 +4,8 @@
host: process.env.HOST || 'localhost',
github: {
apiUrl: 'https://api.github.com',
- username: process.env.GITHUB_USERNAME || 'username'
+ username: process.env.GITHUB_USERNAME || 'username',
+ accessToken: process.env.GITHUB_ACCESS_TOKEN || '123abc'
},
jobs: {
f... |
ce2781b4057e950a2ab23a0244e347bce2d0ccae | test/rules.href_type.js | test/rules.href_type.js | describe('rules.href_type', function () {
var rule = require('../lib/rules/href_type'),
htmllint = require('../'),
Parser = require('../lib/parser'),
parser = null;
describe('process', function () {
var Parser = require('../lib/parser'),
parser = null;
it('should return... | describe('rules.href_type', function () {
var rule = require('../lib/rules/href_type'),
htmllint = require('../'),
Parser = require('../lib/parser'),
parser = null;
describe('process', function () {
var Parser = require('../lib/parser'),
parser = null;
it('should return... | Add more tests to href-type | Add more tests to href-type
| JavaScript | isc | htmllint/htmllint,htmllint/htmllint,KrekkieD/htmllint,KrekkieD/htmllint | ---
+++
@@ -14,7 +14,7 @@
expect(output).to.be.an.instanceOf(Array);
});
//this code is for if the flag is set to absolute
- it('should not match absolute links', function () {
+ it('should not match absolute links given absolute option', function () {
var p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.