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 |
|---|---|---|---|---|---|---|---|---|---|---|
6593af6c87d41248d9cefc0248b8992a68658d59 | patterns-samples/Photos.PhotoDetailNarrowSample.js | patterns-samples/Photos.PhotoDetailNarrowSample.js | enyo.kind({
name: "moon.sample.photos.PhotoDetailNarrowSample",
kind : "moon.Panel",
classes: "photo-detail",
fit: true,
title : "PHOTO NAME",
titleAbove : "03",
titleBelow : "2013-04-08",
headerComponents : [
{ kind : "moon.IconButton", style : "border:none;", src : "assets... | enyo.kind({
name: "moon.sample.photos.PhotoDetailNarrowSample",
kind: "moon.Panel",
classes: "photo-detail",
fit: true,
title: "PHOTO NAME",
titleAbove: "03",
titleBelow: "2013-04-08",
headerComponents : [
{kind: "moon.IconButton", style: "border:none;", src: "assets/icon-fa... | Apply MVC to older one | GF-4661: Apply MVC to older one
Enyo-DCO-1.1-Signed-off-by: David Um <david.um@lge.com>
| JavaScript | apache-2.0 | mcanthony/moonstone,mcanthony/moonstone,mcanthony/moonstone,enyojs/moonstone | ---
+++
@@ -1,24 +1,63 @@
enyo.kind({
name: "moon.sample.photos.PhotoDetailNarrowSample",
- kind : "moon.Panel",
+ kind: "moon.Panel",
classes: "photo-detail",
fit: true,
- title : "PHOTO NAME",
- titleAbove : "03",
- titleBelow : "2013-04-08",
+ title: "PHOTO NAME",
+ titleAbove:... |
ed91eac72f4af9dc76e52d85fee204a65d604249 | node-red-contrib-alasql.js | node-red-contrib-alasql.js | module.exports = function (RED) {
var alasql = require('alasql');
function AlasqlNodeIn(config) {
RED.nodes.createNode(this, config);
var node = this;
node.query = config.query;
node.on("input", function (msg) {
var sql = this.query || 'SELECT * FROM ?';
... | module.exports = function (RED) {
var alasql = require('alasql');
function AlasqlNodeIn(config) {
RED.nodes.createNode(this, config);
var node = this;
node.query = config.query;
node.on("input", function (msg) {
var sql = this.query || 'SELECT * FROM ?';
... | Add on.('close') to clear node status on Deploy | Add on.('close') to clear node status on Deploy
| JavaScript | mit | AlaSQL/node-red-contrib-alasql,AlaSQL/node-red-contrib-alasql | ---
+++
@@ -17,7 +17,10 @@
node.error(err, msg);
});
});
+ this.on('close', () => {
+ node.status({});
+ });
}
RED.nodes.registerType("alasql", AlasqlNodeIn);
-}
+}; |
cd32c55741feb1bdbf5695b11ed2b0e4bdb11cf1 | src/constants/index.js | src/constants/index.js | export const SOCKET_URL = 'wss://ws.onfido.com:9876'
export const XHR_URL = 'https://api.onfido.com'
export const DOCUMENT_CAPTURE = 'DOCUMENT_CAPTURE'
export const FACE_CAPTURE = 'FACE_CAPTURE'
export const SET_TOKEN = 'SET_TOKEN'
export const SET_AUTHENTICATED = 'SET_AUTHENTICATED'
export const SET_WEBSOCKET_SUPPOR... | export const SOCKET_URL = 'wss://ws.onfido.com:9876'
export const SOCKET_URL_DEV = 'wss://document-check-staging.onfido.co.uk:9876'
export const XHR_URL = 'https://api.onfido.com'
export const DOCUMENT_CAPTURE = 'DOCUMENT_CAPTURE'
export const FACE_CAPTURE = 'FACE_CAPTURE'
export const SET_TOKEN = 'SET_TOKEN'
export ... | Add constants for capture valid | Add constants for capture valid
| JavaScript | mit | onfido/onfido-sdk-core | ---
+++
@@ -1,4 +1,5 @@
export const SOCKET_URL = 'wss://ws.onfido.com:9876'
+export const SOCKET_URL_DEV = 'wss://document-check-staging.onfido.co.uk:9876'
export const XHR_URL = 'https://api.onfido.com'
export const DOCUMENT_CAPTURE = 'DOCUMENT_CAPTURE'
@@ -11,3 +12,5 @@
export const SET_DOCUMENT_CAPTURED = '... |
649b7be4c27fc54464e3d1a0560f76e8f3505eb8 | examples/webpack/config.js | examples/webpack/config.js | const CopyPlugin = require('copy-webpack-plugin');
const ExampleBuilder = require('./example-builder');
const fs = require('fs');
const path = require('path');
const src = path.join(__dirname, '..');
const examples = fs.readdirSync(src)
.filter(name => /^(?!index).*\.html$/.test(name))
.map(name => name.replace(/... | const CopyPlugin = require('copy-webpack-plugin');
const ExampleBuilder = require('./example-builder');
const fs = require('fs');
const path = require('path');
const src = path.join(__dirname, '..');
const examples = fs.readdirSync(src)
.filter(name => /^(?!index).*\.html$/.test(name))
.map(name => name.replace(/... | Make common chunk (and sourcemap) work | Make common chunk (and sourcemap) work
| JavaScript | bsd-2-clause | fredj/ol3,ahocevar/ol3,stweil/ol3,mzur/ol3,stweil/ol3,ahocevar/ol3,stweil/ol3,fredj/ol3,mzur/ol3,adube/ol3,ahocevar/openlayers,geekdenz/ol3,ahocevar/openlayers,bjornharrtell/ol3,adube/ol3,stweil/openlayers,tschaub/ol3,bjornharrtell/ol3,adube/ol3,tschaub/ol3,tschaub/ol3,tschaub/ol3,geekdenz/openlayers,geekdenz/ol3,bjorn... | ---
+++
@@ -19,8 +19,12 @@
target: 'web',
entry: entry,
optimization: {
+ runtimeChunk: {
+ name: 'common'
+ },
splitChunks: {
- name: 'common', // TODO: figure out why this isn't working
+ name: 'common',
+ chunks: 'initial',
minChunks: 2
}
},
@@ -37,8 +41,7 @@
... |
04fd62bb2301d95fce136b3776e65c7fa9a7189b | src/chrome/lib/install.js | src/chrome/lib/install.js | (function () {
'use strict';
var browserExtension = new h.HypothesisChromeExtension({
chromeTabs: chrome.tabs,
chromeBrowserAction: chrome.browserAction,
extensionURL: function (path) {
return chrome.extension.getURL(path);
},
isAllowedFileSchemeAccess: function (fn) {
return chrome... | (function () {
'use strict';
var browserExtension = new h.HypothesisChromeExtension({
chromeTabs: chrome.tabs,
chromeBrowserAction: chrome.browserAction,
extensionURL: function (path) {
return chrome.extension.getURL(path);
},
isAllowedFileSchemeAccess: function (fn) {
return chrome... | Update the Chrome extension more aggressively | Update the Chrome extension more aggressively
Request a chrome update when the extension starts and reload the
extension when it's installed.
| JavaScript | bsd-2-clause | hypothesis/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension,project-star/browser-extension,hypothesis/browser-extension,project-star/browser-extension,project-star/browser-extension | ---
+++
@@ -14,7 +14,9 @@
browserExtension.listen(window);
chrome.runtime.onInstalled.addListener(onInstalled);
- chrome.runtime.onUpdateAvailable.addListener(onUpdateAvailable);
+ chrome.runtime.requestUpdateCheck(function (status) {
+ chrome.runtime.onUpdateAvailable.addListener(onUpdateAvailable);
+ ... |
96f0fe140e5cbe77d5c31feb60f40c4c562be059 | src/ui/Video.js | src/ui/Video.js | "use strict";
import React from 'react';
let { PropTypes } = React;
let Video = React.createClass({
propTypes: {
src: PropTypes.string.isRequired,
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
currentTimeChanged: PropTypes.func,
durationChanged: PropTypes.func,
},
... | "use strict";
import React from 'react';
let { PropTypes } = React;
module.exports = React.createClass({
displayName: 'Video',
propTypes: {
src: PropTypes.string.isRequired,
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
currentTimeChanged: PropTypes.func,
durationC... | Implement "shouldComponentUpdate" method to minimise noop render calls. | Implement "shouldComponentUpdate" method to minimise noop render calls.
| JavaScript | mit | Andreyco/react-video,Andreyco/react-video | ---
+++
@@ -3,7 +3,9 @@
import React from 'react';
let { PropTypes } = React;
-let Video = React.createClass({
+module.exports = React.createClass({
+
+ displayName: 'Video',
propTypes: {
src: PropTypes.string.isRequired,
@@ -29,17 +31,27 @@
video.removeEventListener('ended', this.props.onEnd);
... |
37786b6ca041b387ff9be400a1f13412f0f21db8 | src/token.js | src/token.js | var MaapError = require("./utils/MaapError.js");
const EventEmitter = require('events');
const util = require('util');
/**
* Set dsl's store and point to access at the any engine defined in MaaS.
* Token inherits from EventEmitter. Any engine create own events to
* comunicate with the other engines. The only once o... | var MaapError = require("./utils/MaapError");
const EventEmitter = require("events");
const util = require("util");
/**
* Set dsl's store and point to access at the any engine defined in MaaS.
* Token inherits from EventEmitter. Any engine create own events to
* comunicate with the other engines. The only once own ... | Remove unused array of model | Remove unused array of model
| JavaScript | mit | BugBusterSWE/DSLEngine | ---
+++
@@ -1,13 +1,20 @@
-var MaapError = require("./utils/MaapError.js");
-const EventEmitter = require('events');
-const util = require('util');
+var MaapError = require("./utils/MaapError");
+const EventEmitter = require("events");
+const util = require("util");
/**
* Set dsl's store and point to access at t... |
5866282cc1d94776dc92ab8eeccf447384860715 | test/filters.js | test/filters.js | var requirejs = require('requirejs');
var test = require('tape');
requirejs.config({
baseUrl: 'src',
});
test('simple substring can be found', function(t) {
t.plan(1);
var filters = requirejs('filters');
t.assert(filters.isMatch('world', 'hello world and friends'));
});
test('multi-word search criteria can... | var requirejs = require('requirejs');
var test = require('tape');
requirejs.config({
baseUrl: 'src',
});
test('simple substring can be found', function(t) {
t.plan(1);
var filters = requirejs('filters');
t.ok(filters.isMatch('world', 'hello world and friends'));
});
test('multi-word search criteria can be ... | Use ok/notOk instead of assert | Use ok/notOk instead of assert
notOk(condition) is more apparent than assert(!condition).
Use ok/notOk to be obvious and consistent.
| JavaScript | mit | lightster/quick-switcher,lightster/quick-switcher,lightster/quick-switcher | ---
+++
@@ -10,7 +10,7 @@
var filters = requirejs('filters');
- t.assert(filters.isMatch('world', 'hello world and friends'));
+ t.ok(filters.isMatch('world', 'hello world and friends'));
});
test('multi-word search criteria can be matched', function(t) {
@@ -18,7 +18,7 @@
var filters = requirejs('f... |
0c75269a50e1d140c8b2be6c8ef243ac692ba811 | test/index.js | test/index.js | var config = require('./config');
var should = require('should');
var nock = require('nock');
var up = require('../index')(config);
var baseApi = nock('https://jawbone.com:443');
describe('up', function(){
describe('.moves', function(){
describe('.get()', function(){
it('should return correct url', functi... | var config = require('./config');
var should = require('should');
var nock = require('nock');
var up = require('../index')(config);
var baseApi = nock('https://jawbone.com:443');
describe('up', function(){
describe('.moves', function(){
describe('.get()', function(){
it('should call correct url', function... | Update initial unit tests to use Nock | Update initial unit tests to use Nock
| JavaScript | mit | ryanseys/node-jawbone-up,banaee/node-jawbone-up | ---
+++
@@ -8,18 +8,38 @@
describe('up', function(){
describe('.moves', function(){
describe('.get()', function(){
- it('should return correct url', function(){
+ it('should call correct url', function(done){
+ var api = baseApi.matchHeader('Accept', 'application/json')
+ .get('/nud... |
d519b8e5022bc7ba0266182bcb3b6d225461d7e4 | test/index.js | test/index.js | 'use strict';
var expect = require('chaijs/chai').expect;
var entries = require('..');
describe('entries', function() {
it('produce a nested array of key-value pairs', function() {
var input = { a: 1, b: 2, '3': 'c', '4': 'd' };
var expected = [ ['a', 1], ['b', 2], ['3', 'c'], ['4', 'd'] ];
expect(entr... | 'use strict';
var expect = require('chaijs/chai').expect;
var entries = require('..');
describe('entries', function() {
it('produce a nested array of key-value pairs', function() {
var input = { a: 1, b: 2, '3': 'c', '4': 'd' };
var expected = [ ['a', 1], ['b', 2], ['3', 'c'], ['4', 'd'] ];
expect(entr... | Add enumerables, inherited props tests | Add enumerables, inherited props tests
| JavaScript | mit | ndhoule/entries | ---
+++
@@ -20,4 +20,26 @@
it('should work on an empty object', function() {
expect(entries({})).to.deep.have.members([]);
});
+
+ if (typeof Object.create === 'function') {
+ describe('IE9+ tests', function() {
+ it('should ignore inherited properties (IE9+)', function() {
+ var parent = {... |
85d8dbb12ac354540cd8a1f6d48db57e158c09d2 | tests/docs.js | tests/docs.js | 'use strict';
var docs = require('../docs/docs');
var expect = require('chai').expect;
var sinon = require('sinon');
var stub = sinon.stub;
var utils = require('./helpers/utils');
var each = utils.each;
var any = utils.any;
var getContextStub = require('./helpers/get-context-stub');
var Canvas = require('../lib/index.... | 'use strict';
var docs = require('../docs/docs');
var expect = require('chai').expect;
var sinon = require('sinon');
var stub = sinon.stub;
var utils = require('./helpers/utils');
var each = utils.each;
var any = utils.any;
var getContextStub = require('./helpers/get-context-stub');
var Canvas = require('../lib/index.... | Remove test for doc names & descriptions | Remove test for doc names & descriptions
| JavaScript | mit | JakeSidSmith/canvasimo,JakeSidSmith/canvasimo,JakeSidSmith/sensible-canvas-interface | ---
+++
@@ -37,15 +37,4 @@
});
});
- it('should have names and descriptions for all methods', function () {
- each(docs, function (group) {
- each(group.methods, function (method) {
- expect(method.name).to.exist;
- expect(method.description).to.exist;
- expect(method.name.leng... |
52d61f5483950edb225adbab7b2cadc47a7c84cf | pipeline/app/assets/javascripts/app.js | pipeline/app/assets/javascripts/app.js | 'use strict';
var pathwayApp = angular.module('pathwayApp', ['ui.router', 'templates', 'Devise', 'ngCookies']);
pathwayApp.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
//Default route
$urlRouterProvider.otherwise('/');
$locationProvider.html5Mode(true);
$stateProvider
.state('hom... | 'use strict';
var pathwayApp = angular.module('pathwayApp', ['ui.router', 'templates', 'Devise', 'ngCookies']);
pathwayApp.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
//Default route
$urlRouterProvider.otherwise('/');
$locationProvider.html5Mode(true);
$stateProvider
.state('hom... | Add brackets to end state | Add brackets to end state
| JavaScript | mit | aattsai/Pathway,aattsai/Pathway,aattsai/Pathway | ---
+++
@@ -25,6 +25,7 @@
url: '/discover',
templateUrl: 'discover.html',
controller: 'HomeController'
+ })
.state('createProject', {
url: '/project/new',
templateUrl: 'newProject.html', |
ce3a0467d18cbb96fb37614c8a26337bbe1d80ec | website/app/application/core/account/settings/settings.js | website/app/application/core/account/settings/settings.js | (function (module) {
module.controller("AccountSettingsController", AccountSettingsController);
AccountSettingsController.$inject = ["mcapi", "User", "toastr"];
/* @ngInject */
function AccountSettingsController(mcapi, User, toastr) {
var ctrl = this;
ctrl.fullname = User.attr().fullna... | (function (module) {
module.controller("AccountSettingsController", AccountSettingsController);
AccountSettingsController.$inject = ["mcapi", "User", "toastr"];
/* @ngInject */
function AccountSettingsController(mcapi, User, toastr) {
var ctrl = this;
ctrl.fullname = User.attr().fullna... | Update to User.save api references. | Update to User.save api references.
| JavaScript | mit | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | ---
+++
@@ -14,7 +14,8 @@
function updateName() {
mcapi('/users/%', ctrl.mcuser.email)
.success(function () {
- User.save(ctrl.mcuser);
+ User.attr.fullname = ctrl.fullname;
+ User.save();
toastr.succe... |
526e10a3a99be78506cd5a58fe2e03d8a5461d96 | src/render_template.js | src/render_template.js | "use strict";
var resolveItemText = require('./resolve_item_text')
, makeInlineCitation = require('./make_inline_citation')
, makeBibliographyEntry = require('./make_bibliography_entry')
, formatItems = require('./format_items')
, getCSLItems = require('./csl_from_documents')
module.exports = function renderT... | "use strict";
var resolveItemText = require('./resolve_item_text')
, makeInlineCitation = require('./make_inline_citation')
, makeBibliographyEntry = require('./make_bibliography_entry')
, formatItems = require('./format_items')
, getCSLItems = require('./csl_from_documents')
module.exports = function renderT... | Add second argument to render() method of markdown parser | Add second argument to render() method of markdown parser
| JavaScript | agpl-3.0 | editorsnotes/editorsnotes-markup-renderer | ---
+++
@@ -22,5 +22,5 @@
makeBibliographyEntry: makeBibliographyEntry.bind(null, cslEngine)
});
- return parser.render(opts.data);
+ return parser.render(opts.data, {});
} |
e01550117cb3911806f9eea8465b5fe709fc26ed | scripts/ayuda.js | scripts/ayuda.js | document.getElementById("ayuda").setAttribute("aria-current", "page");
function prueba() {
alert("prueba");
}
var aside = document.getElementById("complementario");
var button = document.createElement("BUTTON");
var text = document.createTextNode("Prueba");
button.appendChild(text);
aside.appendChild(button);
button... | document.getElementById("ayuda").setAttribute("aria-current", "page");
function prueba() {
alert("prueba");
}
var aside = document.getElementById("complementario");
var button = document.createElement("BUTTON");
var text = document.createTextNode("Prueba");
button.appendChild(text);
aside.appendChild(button);
button... | Use capture set to true in onclick event | Use capture set to true in onclick event
| JavaScript | mit | nvdaes/nvdaes.github.io,nvdaes/nvdaes.github.io | ---
+++
@@ -9,4 +9,4 @@
var text = document.createTextNode("Prueba");
button.appendChild(text);
aside.appendChild(button);
-button.addEventListener("click", prueba);
+button.addEventListener("click", prueba, true); |
27fa2729c44fd95129e81894bc52e8e937df5070 | management.js | management.js |
/**
* Management of a device. Supports quering it for information and changing
* the WiFi settings.
*/
class DeviceManagement {
constructor(device) {
this.device = device;
}
/**
* Get information about this device. Includes model info, token and
* connection information.
*/
info() {
return this.devic... |
/**
* Management of a device. Supports quering it for information and changing
* the WiFi settings.
*/
class DeviceManagement {
constructor(device) {
this.device = device;
}
/**
* Get information about this device. Includes model info, token and
* connection information.
*/
info() {
return this.devic... | Add ability to get wireless state of a device | Add ability to get wireless state of a device
| JavaScript | mit | aholstenson/miio | ---
+++
@@ -38,6 +38,15 @@
return true;
});
}
+
+ /**
+ * Get the wireless state of this device. Includes if the device is
+ * online and counters for things such as authentication failures and
+ * connection success and failures.
+ */
+ wirelessState() {
+ return this.device.call('miIO.wifi_assoc_sta... |
7d56f85029af381d27a70d3eec719a3270febe14 | src/hooks/verify-token.js | src/hooks/verify-token.js | import jwt from 'jsonwebtoken';
import errors from 'feathers-errors';
/**
* Verifies that a JWT token is valid
*
* @param {Object} options - An options object
* @param {String} options.secret - The JWT secret
*/
export default function(options = {}){
const secret = options.secret;
return function(hook) {
... | import jwt from 'jsonwebtoken';
import errors from 'feathers-errors';
/**
* Verifies that a JWT token is valid
*
* @param {Object} options - An options object
* @param {String} options.secret - The JWT secret
*/
export default function(options = {}){
const secret = options.secret;
if (!secret) {
consol... | Throw an error if you don't pass a secret to verifyToken hook | Throw an error if you don't pass a secret to verifyToken hook
| JavaScript | mit | feathersjs/feathers-passport-jwt,feathersjs/feathers-passport-jwt,feathersjs/feathers-authentication,eblin/feathers-authentication,eblin/feathers-authentication,m1ch3lcl/feathers-authentication,m1ch3lcl/feathers-authentication | ---
+++
@@ -9,6 +9,11 @@
*/
export default function(options = {}){
const secret = options.secret;
+
+ if (!secret) {
+ console.log('no secret', options);
+ throw new Error('You need to pass `options.secret` to the verifyToken() hook.');
+ }
return function(hook) {
const token = hook.params.tok... |
6b883624c19abad009db96f0d00d1ef84b1defe9 | scripts/cd-server.js | scripts/cd-server.js | // Continuous delivery server
const { spawn } = require('child_process')
const { resolve } = require('path')
const { createServer } = require('http')
const { parse } = require('qs')
const hostname = '127.0.0.1'
const port = 80
const server = createServer((req, res) => {
const { headers, method, url } = req
// Whe... | // Continuous delivery server
const { spawn } = require('child_process')
const { resolve } = require('path')
const { createServer } = require('http')
const { parse } = require('qs')
const hostname = '127.0.0.1'
const port = 80
const server = createServer((req, res) => {
const { headers, method, url } = req
// Whe... | Fix parsing bug in CD server. | Fix parsing bug in CD server.
| JavaScript | mit | jsonnull/jsonnull.com,jsonnull/jsonnull.com,jsonnull/jsonnull.com | ---
+++
@@ -26,11 +26,12 @@
.on('end', () => {
body = Buffer.concat(body).toString()
const { payload } = parse(body)
+ const data = JSON.parse(payload)
- console.log(payload.result + ' ' + payload.branch)
+ console.log(data.result + ' ' + data.branch)
- const p... |
9dc1d156c37c0d7ce8d30451371f1a42a9edd87c | app/assets/javascripts/angular/controllers/pie_ctrl.js | app/assets/javascripts/angular/controllers/pie_ctrl.js | angular.module("Prometheus.controllers").controller('PieCtrl',
["$scope", "$http",
"SharedWidgetSetup",
function($scope,
... | angular.module("Prometheus.controllers").controller('PieCtrl',
["$scope", "$http",
"SharedWidgetSetup",
function($scope,
... | Fix incorrect url for pie charts. | Fix incorrect url for pie charts.
| JavaScript | apache-2.0 | lborguetti/promdash,alonpeer/promdash,juliusv/promdash,jmptrader/promdash,juliusv/promdash,juliusv/promdash,jmptrader/promdash,lborguetti/promdash,jonnenauha/promdash,prometheus/promdash,alonpeer/promdash,prometheus/promdash,thooams/promdash,juliusv/promdash,jmptrader/promdash,jmptrader/promdash,jonnenauha/promdash,jon... | ---
+++
@@ -14,7 +14,7 @@
$scope.requestInFlight = true;
var url = document.createElement('a');
url.href = server.url;
- url.pathname = 'api/query_range'
+ url.pathname = 'api/query'
$http.get(url.href, {
params: {
expr: exp.expression |
d0be0c668a41dcd07c888a146d09ab57819fe432 | server/core/types.js | server/core/types.js | /* @flow */
'use babel';
export type Post = {
title: string,
content: string,
postCreated : any,
postPublished: string,
lastUpdated: string,
status: string,
author: string,
tags: Array<string>,
generated_keys?: any
}
export type Author = {
name: string,
email: string,
u... | /* @flow */
'use babel'
export type Post = {
title: string,
content: string,
postCreated : any,
postPublished: string,
lastUpdated: string,
status: string,
author: string,
tags: Array<string>,
generated_keys?: any
}
export type PostSum = {
title: string,
status: string,
id: string,
author: s... | Add PostSum type. This is post summary for list view | Add PostSum type. This is post summary for list view
| JavaScript | mit | junwatu/blogel,junwatu/blogel,junwatu/blogel | ---
+++
@@ -1,36 +1,43 @@
/* @flow */
-'use babel';
+'use babel'
export type Post = {
- title: string,
- content: string,
- postCreated : any,
- postPublished: string,
- lastUpdated: string,
- status: string,
- author: string,
- tags: Array<string>,
- generated_keys?: any
+ title: stri... |
b8db7e248edc31bd5231088832feacf35843b73e | app/assets/javascripts/student_profile/main.js | app/assets/javascripts/student_profile/main.js | $(function() {
// only run if the correct page
if (!($('body').hasClass('students') && $('body').hasClass('show'))) return;
// imports
var createEl = window.shared.ReactHelpers.createEl;
var PageContainer = window.shared.PageContainer;
var parseQueryString = window.shared.parseQueryString;
// mixpanel a... | $(function() {
// only run if the correct page
if (!($('body').hasClass('students') && $('body').hasClass('show'))) return;
// imports
var createEl = window.shared.ReactHelpers.createEl;
var PageContainer = window.shared.PageContainer;
var parseQueryString = window.shared.parseQueryString;
var MixpanelUt... | Fix bug in profile page import | Fix bug in profile page import
| JavaScript | mit | erose/studentinsights,erose/studentinsights,jhilde/studentinsights,erose/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,jhilde/studentinsights,erose/studentinsights,studentinsights/studentinsights | ---
+++
@@ -6,6 +6,7 @@
var createEl = window.shared.ReactHelpers.createEl;
var PageContainer = window.shared.PageContainer;
var parseQueryString = window.shared.parseQueryString;
+ var MixpanelUtils = window.shared.MixpanelUtils;
// mixpanel analytics
MixpanelUtils.registerUser(serializedData.curre... |
34b539fbe0b7af085bfc9a5e497b403694e3ac0e | Dangerfile.js | Dangerfile.js | // CHANGELOG check
const hasAppChanges = _.filter(git.modified_files, function(path) {
return _.includes(path, 'lib/');
}).length > 0
if (hasAppChanges && _.includes(git.modified_files, "CHANGELOG.md") === false) {
fail("No CHANGELOG added.")
}
const testFiles = _.filter(git.modified_files, function(path) {
ret... | // CHANGELOG check
const hasAppChanges = _.filter(git.modified_files, function(path) {
return _.includes(path, 'lib/');
}).length > 0
if (hasAppChanges && _.includes(git.modified_files, "CHANGELOG.md") === false) {
fail("No CHANGELOG added.")
}
const testFiles = _.filter(git.modified_files, function(path) {
ret... | Make test results not sticky | Make test results not sticky
| JavaScript | mit | artsy/emission,artsy/eigen,artsy/eigen,artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/emission | ---
+++
@@ -23,5 +23,5 @@
// Check that any new file has a corresponding tests file
const untestedFiles = _.difference(sourcePaths, logicalTestPaths)
if (untestedFiles.length > 0) {
- warn("The following files do not have tests: " + github.html_link(untestedFiles))
+ warn("The following files do not have tests: ... |
8b6befcd13104e8eb829947d42a843ec648b5296 | addon/utils/validators/ember-component.js | addon/utils/validators/ember-component.js | /**
* The PropTypes.EmberComponent validator
*/
import Ember from 'ember'
const {typeOf} = Ember
import logger from '../logger'
export default function (ctx, name, value, def, logErrors, throwErrors) {
const isObject = typeOf(value) === 'object'
const valid = isObject && Object.keys(value).some((key) => {
... | /**
* The PropTypes.EmberComponent validator
*/
import Ember from 'ember'
const {typeOf} = Ember
import logger from '../logger'
export default function (ctx, name, value, def, logErrors, throwErrors) {
const isObject = typeOf(value) === 'object'
const valid = isObject && Object.keys(value).some((key) => {
... | Fix EmberComponent prop type for Ember 2.11 | Fix EmberComponent prop type for Ember 2.11
| JavaScript | mit | ciena-blueplanet/ember-prop-types,sandersky/ember-prop-types,sandersky/ember-prop-types,sandersky/ember-prop-types,ciena-blueplanet/ember-prop-types,ciena-blueplanet/ember-prop-types | ---
+++
@@ -12,7 +12,10 @@
const valid = isObject && Object.keys(value).some((key) => {
// NOTE: this is based on internal API and thus could break without warning.
- return key.indexOf('COMPONENT_CELL') === 0
+ return (
+ key.indexOf('COMPONENT_CELL') === 0 || // Pre Glimmer 2
+ key.indexOf... |
0f68aa298d5cc7c2578126456197fe0ce0798db1 | build/start.js | build/start.js | require('./doBuild');
require('./server');
| var build = require('./build');
build()
.catch(function(err) {
require('trace');
require('clarify');
console.trace(err);
});
require('./server');
| Tweak heroku build to put it into production mode | Tweak heroku build to put it into production mode
| JavaScript | mit | LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements | ---
+++
@@ -1,2 +1,10 @@
-require('./doBuild');
+var build = require('./build');
+
+build()
+ .catch(function(err) {
+ require('trace');
+ require('clarify');
+ console.trace(err);
+ });
+
require('./server'); |
929e1be1fb2c7f9d42262cb0c53f39cc4c05b718 | app/components/default-clock/component.js | app/components/default-clock/component.js | import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
// TODO update time regularly
classNames: ['component', 'clock'],
timeFormat: '24h',
formattedTime: function() {
// TODO support 12h format
let output = new moment().format('H:mm');
return output;
}... | import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
classNames: ['component', 'clock'],
timeFormat: '24h',
time: new moment(),
tick() {
let self = this;
this.set('time', new moment());
setTimeout(function(){ self.tick(); }, 2000);
},
formattedTime:... | Update clock every couple of seconds | Update clock every couple of seconds
| JavaScript | agpl-3.0 | skddc/dashtab,skddc/dashtab,skddc/dashtab | ---
+++
@@ -2,21 +2,26 @@
import moment from 'moment';
export default Ember.Component.extend({
- // TODO update time regularly
classNames: ['component', 'clock'],
timeFormat: '24h',
+ time: new moment(),
+
+ tick() {
+ let self = this;
+ this.set('time', new moment());
+ setTimeout(function(){... |
cb755108580ee143b9e74883a2948598473e341d | src/transferring/index.js | src/transferring/index.js | import * as http_data from "./http-data";
import * as urlModule from "url";
const transferrers = {};
function transfer(request) {
// url - the resource URI to send a message to
// options.method - the method to use for transferring
// options.form - the Form API object representing the form data submission... | import * as http_data from "./http-data";
import * as urlModule from "url";
function transfer(request) {
// url - the resource URI to send a message to
// options.method - the method to use for transferring
// options.form - the Form API object representing the form data submission
// ... | Make Transfer Consistent w/ Views | Make Transfer Consistent w/ Views
| JavaScript | mit | lynx-json/jsua | ---
+++
@@ -1,6 +1,5 @@
import * as http_data from "./http-data";
import * as urlModule from "url";
-const transferrers = {};
function transfer(request) {
// url - the resource URI to send a message to
@@ -21,14 +20,16 @@
if (!protocol) throw new Error("'request.url' param must have a protocol scheme.");
... |
5575571bf0dca4f941e87164839605dc6aca0014 | js/buttons/delete-button.js | js/buttons/delete-button.js | "use strict";
/*global module, require*/
var modalDialogueFactory = require("./processes/modal-dialogue.js"),
commentFactory = require("./accordion-comment.js"),
online = {
online: true,
offline: false
},
standalone = {
embedded: false,
standalone: true
};
module.exports = function(store, ... | "use strict";
/*global module, require*/
var modalDialogueFactory = require("./processes/modal-dialogue.js"),
commentFactory = require("./accordion-comment.js"),
online = {
online: true,
offline: false
},
standalone = {
embedded: false,
standalone: true
};
module.exports = function(store, ... | Delete button enabled on the right occasions. | Delete button enabled on the right occasions.
| JavaScript | mit | cse-bristol/multiuser-file-menu,cse-bristol/multiuser-file-menu | ---
+++
@@ -55,7 +55,12 @@
{
onlineOffline: online,
embeddedStandalone: standalone,
- search: {}
+ readWriteSync: {
+ untitled: false,
+ read: false,
+ write: true,
+ sync: true
+ }
}
);
}; |
59db5d86469bf8f474f8a1ab40588d218831c99c | model/lib/data-snapshot/index.js | model/lib/data-snapshot/index.js | // Not to mix with `DataSnapshots` class which is about different thing
// (serialized list views updated reactively)
//
// This one is about snaphots of data made in specific moments of time.
// Snaphots are not reactive in any way. They're updated only if given specific moment repeats
// for entity it refers to.
// e... | // Not to mix with `DataSnapshots` class which is about different thing
// (serialized list views updated reactively)
//
// This one is about snaphots of data made in specific moments of time.
// Snaphots are not reactive in any way. They're updated only if given specific moment repeats
// for entity it refers to.
// e... | Introduce `generate` and `regenerate` methods | Introduce `generate` and `regenerate` methods
| JavaScript | mit | egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations | ---
+++
@@ -18,7 +18,14 @@
module.exports = memoize(function (db) {
extendBase(ensureDb(db));
return db.Object.extend('DataSnapshot', {
- jsonString: { type: db.String }
- // 'resolved' property evaluation is configured in ./resolve.js
+ jsonString: { type: db.String },
+ // Generates snapshot (if it was not... |
425470a41a20f416fb05c575a443ffffb9aac71d | test/load-json-spec.js | test/load-json-spec.js | /* global describe, it */
import assert from 'assert';
import {KATAS_URL, URL_PREFIX} from '../src/config.js';
import GroupedKata from '../src/grouped-kata.js';
describe('load ES6 kata data', function() {
it('loaded data are as expected', function(done) {
const loadRemoteFileStub = (url, onLoaded) => {
l... | /* global describe, it */
import assert from 'assert';
import GroupedKata from '../src/grouped-kata.js';
function remoteFileLoaderWhichReturnsGivenData(data) {
return (url, onLoaded) => {
onLoaded(null, data);
};
}
function remoteFileLoaderWhichReturnsError(error) {
return (url, onLoaded) => {
onLoaded(... | Refactor duplication out of tests. | Refactor duplication out of tests. | JavaScript | mit | wolframkriesing/es6-react-workshop,wolframkriesing/es6-react-workshop | ---
+++
@@ -1,47 +1,51 @@
/* global describe, it */
import assert from 'assert';
-import {KATAS_URL, URL_PREFIX} from '../src/config.js';
import GroupedKata from '../src/grouped-kata.js';
+
+function remoteFileLoaderWhichReturnsGivenData(data) {
+ return (url, onLoaded) => {
+ onLoaded(null, data);
+ };
+}
... |
a1d6637ecd4f9d8c0745d3ea59ec83742e371c24 | src/plugins/appVersion.js | src/plugins/appVersion.js | // install : cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git
// link : https://github.com/whiteoctober/cordova-plugin-app-version
angular.module('ngCordova.plugins.appVersion', [])
.factory('$cordovaAppVersion', ['$q', function ($q) {
return {
getAppVersio... | // install : cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git
// link : https://github.com/whiteoctober/cordova-plugin-app-version
angular.module('ngCordova.plugins.appVersion', [])
.factory('$cordovaAppVersion', ['$q', function ($q) {
return {
getVersionNu... | Update due to the plugin split into two functions getAppVersion.getVersionNumber() and getAppVersion.getVersionCode() to return build number | Update due to the plugin split into two functions getAppVersion.getVersionNumber() and getAppVersion.getVersionCode() to return build number
| JavaScript | mit | listrophy/ng-cordova,dangerfarms/ng-cordova,sesubash/ng-cordova,driftyco/ng-cordova,justinwp/ng-cordova,DavidePastore/ng-cordova,cihadhoruzoglu/ng-cordova,5amfung/ng-cordova,candril/ng-cordova,omefire/ng-cordova,alanquigley/ng-cordova,Jewelbots/ng-cordova,beauby/ng-cordova,GreatAnubis/ng-cordova,Freundschaft/ng-cordova... | ---
+++
@@ -6,10 +6,19 @@
.factory('$cordovaAppVersion', ['$q', function ($q) {
return {
- getAppVersion: function () {
+ getVersionNumber: function () {
var q = $q.defer();
- cordova.getAppVersion(function (version) {
+ cordova.getAppVersion.getVersionNumber(function (versi... |
bea6c3a94e10aafefba91fd791dece9a26a1fe13 | src/mist/io/static/js/app/views/image_list_item.js | src/mist/io/static/js/app/views/image_list_item.js | define('app/views/image_list_item', [
'text!app/templates/image_list_item.html','ember'],
/**
*
* Image List Item View
*
* @returns Class
*/
function(image_list_item_html) {
return Ember.View.extend({
tagName:'li',
starImage: ... | define('app/views/image_list_item', [
'text!app/templates/image_list_item.html','ember'],
/**
*
* Image List Item View
*
* @returns Class
*/
function(image_list_item_html) {
return Ember.View.extend({
tagName:'li',
starImage: ... | Fix star image from advanced search in javascript | Fix star image from advanced search in javascript
| JavaScript | agpl-3.0 | afivos/mist.io,munkiat/mist.io,afivos/mist.io,munkiat/mist.io,afivos/mist.io,munkiat/mist.io,zBMNForks/mist.io,Lao-liu/mist.io,munkiat/mist.io,Lao-liu/mist.io,kelonye/mist.io,zBMNForks/mist.io,DimensionDataCBUSydney/mist.io,johnnyWalnut/mist.io,kelonye/mist.io,zBMNForks/mist.io,johnnyWalnut/mist.io,DimensionDataCBUSydn... | ---
+++
@@ -16,14 +16,23 @@
};
var backend_id = this.image.backend.id
var image_id = this.image.id;
+ var that = this;
$.ajax({
url: '/backends/' + backend_id + '/images/' + image_id,
... |
e7da62df0ace6f30593df7d18ae983cb7e44c778 | test/test-creation.js | test/test-creation.js | /*global describe, beforeEach, it*/
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('browserify generator', function () {
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
... | /*global describe, beforeEach, it*/
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('browserify generator', function () {
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
... | Update tests to reflect addition of list prompts and compiler list in generator. | Update tests to reflect addition of list prompts and compiler list in generator.
| JavaScript | mit | dlmoody/generator-browserify,vincentmac/generator-browserify,dlmoody/generator-browserify | ---
+++
@@ -27,9 +27,12 @@
];
helpers.mockPrompt(this.app, {
- 'framework': 'foundation',
+ 'framework': ['foundation'],
+ 'compiler': ['libsass'],
+ 'foundation': true,
'modernizr': true,
- 'jade': true
+ 'jade': true,... |
0bb4c1bd060627ddeb098f107fc7ec5d8cddbb0d | core/client/assets/lib/touch-editor.js | core/client/assets/lib/touch-editor.js | var createTouchEditor = function createTouchEditor() {
var noop = function () {},
TouchEditor;
TouchEditor = function (el, options) {
/*jshint unused:false*/
this.textarea = el;
this.win = { document : this.textarea };
this.ready = true;
this.wrapping = document.... | var createTouchEditor = function createTouchEditor() {
var noop = function () {},
TouchEditor;
TouchEditor = function (el, options) {
/*jshint unused:false*/
this.textarea = el;
this.win = { document : this.textarea };
this.ready = true;
this.wrapping = document.... | Add off as a noop function to touch editor. | Add off as a noop function to touch editor.
Closes #3107
| JavaScript | mit | tandrewnichols/ghost,katiefenn/Ghost,situkangsayur/Ghost,anijap/PhotoGhost,tmp-reg/Ghost,ericbenson/GhostAzureSetup,rollokb/Ghost,Rovak/Ghost,aschmoe/jesse-ghost-app,JonSmith/Ghost,blankmaker/Ghost,jparyani/GhostSS,dai-shi/Ghost,dymx101/Ghost,ErisDS/Ghost,Smile42RU/Ghost,gabfssilva/Ghost,virtuallyearthed/Ghost,Feitiany... | ---
+++
@@ -46,7 +46,8 @@
nthLine: noop,
refresh: noop,
selectLines: noop,
- on: noop
+ on: noop,
+ off: noop
};
return TouchEditor; |
dd2db0cee5a24f8564a2d306aa9098eba400c1a4 | states/level-fail-menu.js | states/level-fail-menu.js | 'use strict';
const textUtil = require('../utils/text');
module.exports = {
init(nextLevelId, cameraPosition) {
this.nextLevelId = nextLevelId;
this.cameraPosition = cameraPosition;
},
create() {
// TODO: Add an overlay to darken the game.
this.camera.x = this.cameraPosition.x;
this.cam... | 'use strict';
const textUtil = require('../utils/text');
module.exports = {
init(nextLevelId, cameraPosition) {
this.nextLevelId = nextLevelId;
this.cameraPosition = cameraPosition;
},
create() {
// TODO: Fade this in.
const overlay = this.add.graphics();
overlay.beginFill(0x000000, 0.5... | Create an overlay to cover the level for the retry menu | Create an overlay to cover the level for the retry menu
| JavaScript | mit | to-the-end/to-the-end,to-the-end/to-the-end | ---
+++
@@ -9,7 +9,12 @@
},
create() {
- // TODO: Add an overlay to darken the game.
+ // TODO: Fade this in.
+ const overlay = this.add.graphics();
+
+ overlay.beginFill(0x000000, 0.5);
+ overlay.drawRect(0, 0, this.world.width, this.world.height);
+ overlay.endFill();
this.camera.x ... |
39db65de05c816848c07bfbc9b3562d590a34521 | scripts/assign-env-vars.js | scripts/assign-env-vars.js |
// Used to assign stage-specific env vars in our CI setup
// to the env var names used in app code.
// All env vars we want to pick up from the CI environment.
const envVars = [
'NODE_ENV',
'AWS_REGION',
// AWS Cognito
'COGNITO_REGION',
'COGNITO_IDENTITYPOOLID',
'COGNITO_USERPOOLID',
'COGNITO_CLIENTID',... |
// Used to assign stage-specific env vars in our CI setup
// to the env var names used in app code.
// All env vars we want to pick up from the CI environment.
const envVars = [
'NODE_ENV',
'AWS_REGION',
// AWS Cognito
'COGNITO_REGION',
'COGNITO_IDENTITYPOOLID',
'COGNITO_USERPOOLID',
'COGNITO_CLIENTID',... | Throw error if an expected env var is not set. | Throw error if an expected env var is not set.
| JavaScript | mpl-2.0 | gladly-team/tab,gladly-team/tab,gladly-team/tab | ---
+++
@@ -26,14 +26,23 @@
]
// Expect one argument, the stage name.
-const assignEnvVars = function (stageName) {
+const assignEnvVars = function (stageName, allEnvVarsRequired = true) {
// Using the name of the stage, assign the stage-specific
// value to the environment value name.
const stageNameUpp... |
e3d04be3e031feabc28d5b13deaa4b445f885a05 | static/js/views/dbView.js | static/js/views/dbView.js | _r(function (app) {
if ( ! window.app.views.hasOwnProperty('db')) {
app.views.db = {};
}
/**
* Database selection box
*/
app.views.db.box = app.base.formView.extend({
model: app.models.Db,
module: 'db',
action: 'box',
auto_render: true,
$el: $('<div id="db_box"></... | _r(function (app) {
if ( ! window.app.views.hasOwnProperty('db')) {
app.views.db = {};
}
/**
* Database selection box
*/
app.views.db.box = app.base.formView.extend({
model: app.models.Db,
module: 'db',
action: 'box',
auto_render: true,
$el: $('<div id="db_box"></... | Fix db box to hide itself on successful change | Fix db box to hide itself on successful change
| JavaScript | mit | maritz/nohm-admin,maritz/nohm-admin | ---
+++
@@ -44,8 +44,9 @@
},
saved: function () {
- this.render();
+ this.hideForm();
this.model.once('saved', this.saved);
+ app.reload();
}
});
|
85f32436c920101c8877462d11445ca44bc32832 | lib/plugins/body_parser.js | lib/plugins/body_parser.js | // Copyright 2012 Mark Cavage, Inc. All rights reserved.
var jsonParser = require('./json_body_parser');
var formParser = require('./form_body_parser');
var multipartParser = require('./multipart_parser');
var errors = require('../errors');
var UnsupportedMediaTypeError = errors.UnsupportedMediaTypeError;
functio... | // Copyright 2012 Mark Cavage, Inc. All rights reserved.
var jsonParser = require('./json_body_parser');
var formParser = require('./form_body_parser');
var multipartParser = require('./multipart_parser');
var errors = require('../errors');
var UnsupportedMediaTypeError = errors.UnsupportedMediaTypeError;
functio... | Check that options is not empty | Check that options is not empty
| JavaScript | mit | TheDeveloper/node-restify,prasmussen/node-restify,adunkman/node-restify,chaordic/node-restify,kevinykchan/node-restify,uWhisp/node-restify,jclulow/node-restify,ferhatsb/node-restify | ---
+++
@@ -28,7 +28,7 @@
return parseForm(req, res, next);
} else if (req.contentType === 'multipart/form-data') {
return parseMultipart(req, res, next);
- } else if (options.rejectUnknown !== false) {
+ } else if (options && options.rejectUnknown !== false) {
return next(new Unsuppor... |
623796045a00bb3cd67dd88ece4c89cae01e9f09 | karma.conf.js | karma.conf.js | module.exports = function(config) {
const files = [
{
pattern: 'browser/everything.html',
included: false,
served: true,
},
{
pattern: 'browser/everything.js',
included: true,
served: true,
},
{
pattern: 'spec/fixtures/*.json',
included: false,
... | module.exports = function(config) {
const files = [
{
pattern: 'browser/everything.html',
included: false,
served: true,
},
{
pattern: 'browser/everything.js',
included: true,
served: true,
},
{
pattern: 'spec/fixtures/*.json',
included: false,
... | Switch browser list when running in Travis | Switch browser list when running in Travis
| JavaScript | mit | noflo/noflo-browser,noflo/noflo-browser | ---
+++
@@ -44,7 +44,7 @@
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
- browsers: ['Chrome', 'ChromeHeadless', 'ChromeHeadlessNoSandbox'],
+ browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
@@ -55,5 +55,9 @@
... |
bbce11a5b7cf71b35d1ab77d48eacd8ddc755b9e | karma.conf.js | karma.conf.js | const options = {
frameworks: ['kocha', 'browserify'],
files: [
'packages/karma-kocha/__tests__/*.js'
],
preprocessors: {
'packages/karma-kocha/__tests__/*.js': ['browserify']
},
browserify: { debug: true },
reporters: ['progress'],
browsers: ['Chrome'],
singleRun: true,
plugins: [
requi... | const options = {
frameworks: ['kocha', 'browserify'],
files: [
'packages/karma-kocha/__tests__/*.js'
],
preprocessors: {
'packages/karma-kocha/__tests__/*.js': ['browserify']
},
browserify: { debug: true },
reporters: ['progress'],
browsers: ['Chrome'],
singleRun: true,
plugins: [
requi... | Revert "chore: disable sauce tests for now" | Revert "chore: disable sauce tests for now"
This reverts commit 28a0a9db5263bb5408507f520b6fe6aa7404b13b.
| JavaScript | mit | kt3k/kocha | ---
+++
@@ -17,7 +17,7 @@
]
}
-if (false && process.env.CI) {
+if (process.env.CI) {
// Sauce Labs settings
const customLaunchers = require('./karma.custom-launchers.js')
options.plugins.push('karma-sauce-launcher') |
245ddf33d7d4fecbf000a6cd42f3c54cbc476238 | karma.conf.js | karma.conf.js | /* global module:false */
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
reporters: ['dots', 'progress'],
browsers: ['ChromeIncognito', 'Firefox', 'Safari'],
singleRun: true,
customLaunchers: {
ChromeIncognito: {
base: 'Chrome'... | /* global module:false */
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
reporters: ['dots', 'progress'],
browsers: ['ChromeIncognito', 'Firefox'],
singleRun: true,
customLaunchers: {
ChromeIncognito: {
base: 'Chrome',
... | Remove Safari from automated tests | Remove Safari from automated tests
| JavaScript | mit | jensarps/IDBWrapper,jayfunk/IDBWrapper,jayfunk/IDBWrapper,jensarps/IDBWrapper | ---
+++
@@ -7,7 +7,7 @@
reporters: ['dots', 'progress'],
- browsers: ['ChromeIncognito', 'Firefox', 'Safari'],
+ browsers: ['ChromeIncognito', 'Firefox'],
singleRun: true,
|
0d6fd08589942a675b380a03dd1f35b100648ce8 | karma.conf.js | karma.conf.js | const base = require('skatejs-build/karma.conf');
module.exports = (config) => {
base(config);
config.files = [
// React
'https://scontent.xx.fbcdn.net/t39.3284-6/13591530_1796350410598576_924751100_n.js',
// React DOM
'https://scontent.xx.fbcdn.net/t39.3284-6/13591520_511026312439094_2118166596_n... | const base = require('skatejs-build/karma.conf');
module.exports = (config) => {
base(config);
config.files = [
// React
'https://scontent.xx.fbcdn.net/t39.3284-6/13591530_1796350410598576_924751100_n.js',
// React DOM
'https://scontent.xx.fbcdn.net/t39.3284-6/13591520_511026312439094_2118166596_n... | Revert "chore: test timeout increase" | Revert "chore: test timeout increase"
This reverts commit 844e5e87baa3b27ec0da354805d7c29f46d219d9.
| JavaScript | mit | chrisdarroch/skatejs,skatejs/skatejs,skatejs/skatejs,skatejs/skatejs,chrisdarroch/skatejs | ---
+++
@@ -11,5 +11,5 @@
].concat(config.files);
// Ensure mobile browsers have enough time to run.
- config.browserNoActivityTimeout = 120000;
+ config.browserNoActivityTimeout = 60000;
}; |
ee97033aab6492b08c23f7eb52e93c9f4f58b9bf | jest.config.js | jest.config.js | module.exports = {
"modulePaths": [
"<rootDir>/app",
"<rootDir>/node_modules"
],
"moduleFileExtensions": [
"js",
"json"
],
"testRegex": "/test/*/.*-test.js$",
"testEnvironment": "node",
"testTimeout": 10000,
"collectCoverage": true,
"reporters": [
... | module.exports = {
"modulePaths": [
"<rootDir>/app",
"<rootDir>/node_modules"
],
"moduleFileExtensions": [
"js",
"json"
],
"testRegex": "/test/*/.*-test.js$",
"testEnvironment": "node",
"testTimeout": 10000,
"collectCoverage": true,
"reporters": [
... | Add Cobertura Test coverage output | Add Cobertura Test coverage output
| JavaScript | apache-2.0 | stamp-web/stamp-webservices | ---
+++
@@ -30,6 +30,7 @@
"coverageReporters": [
"json",
"lcov",
- "html"
+ "html",
+ "cobertura"
]
} |
13b19fd044152ac6bf1213aa4d22fa0cb1623da6 | js/redirect.js | js/redirect.js | /*global chrome,document,window */
(function init(angular) {
"use strict";
try {
chrome.storage.local.get(["url", "tab.selected", "always-tab-update"], function (items) {
var url = items.url;
if (url) {
url = (0 !== url.indexOf("about:") && -1 === url.indexOf("://... | /*global chrome,document,window */
(function init(angular) {
"use strict";
try {
chrome.storage.local.get(["url", "tab.selected", "always-tab-update"], function (items) {
var url = items.url;
if (url) {
url = (0 !== url.indexOf("about:") && 0 !== url.indexOf("data... | Allow data URIs to be set as the new tab page | Allow data URIs to be set as the new tab page
| JavaScript | mit | jimschubert/NewTab-Redirect,jimschubert/NewTab-Redirect | ---
+++
@@ -5,7 +5,7 @@
chrome.storage.local.get(["url", "tab.selected", "always-tab-update"], function (items) {
var url = items.url;
if (url) {
- url = (0 !== url.indexOf("about:") && -1 === url.indexOf("://")) ? ("http://" + url) : url;
+ url = (0 !=... |
1696f212f0ff83997f2aadb6b14a9cd4d716a172 | src/commands/post.js | src/commands/post.js | const Command = require('../structures/Command');
const snekfetch = require('snekfetch');
const { inspect } = require('util');
class PostCommand extends Command {
constructor() {
super({
name: 'post',
description: 'Update the guild count on <https://bots.discord.pw>',
ownersOnly: true
});
}
async run(... | const Command = require('../structures/Command');
const snekfetch = require('snekfetch');
const { inspect } = require('util');
class PostCommand extends Command {
constructor() {
super({
name: 'post',
description: 'Update the guild count on <https://bots.discord.pw>',
ownersOnly: true
});
}
async run(... | Fix this logging n stuff | Fix this logging n stuff
| JavaScript | mit | robflop/robbot | ---
+++
@@ -20,9 +20,8 @@
.send(`{"server_count": ${guilds.size}}`)
.then(res => message.reply('POST request sent successfully!'))
.catch(err => {
- const errorDetails = `${err.host ? err.host : ''} ${err.text ? err.text : ''}`.trim();
- message.reply(`an error occurred updating the guild count: \`\`${er... |
7f4469c16415a1e2c6b02f750104eced8e1c7554 | src/config/server.js | src/config/server.js | import path from 'path';
import fs from 'fs';
export function requestHandler (req, res) {
const indexPagePath = path.resolve(__dirname + '/..') + '/index.html';
fs.readFile(indexPagePath, (err, data) => {
if (err) {
res.writeHead(500);
return res.end('Error loading index.html');
}
res.writ... | import path from 'path';
import fs from 'fs';
export function requestHandler (req, res) {
const indexPagePath = path.resolve(__dirname + '/../..') + '/index.html';
fs.readFile(indexPagePath, (err, data) => {
if (err) {
res.writeHead(500);
return res.end('Error loading index.html');
}
res.w... | Correct path for index html file | Correct path for index html file
| JavaScript | agpl-3.0 | empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core | ---
+++
@@ -2,7 +2,7 @@
import fs from 'fs';
export function requestHandler (req, res) {
- const indexPagePath = path.resolve(__dirname + '/..') + '/index.html';
+ const indexPagePath = path.resolve(__dirname + '/../..') + '/index.html';
fs.readFile(indexPagePath, (err, data) => {
if (err) {
res.... |
914e94f9e5531465fdf6028734fb99402fae3411 | templates/html5/output.js | templates/html5/output.js | ::if embeddedLibraries::::foreach (embeddedLibraries)::
::__current__::::end::::end::
// lime.embed namespace wrapper
(function ($hx_exports, $global) { "use strict";
$hx_exports.lime = $hx_exports.lime || {};
$hx_exports.lime.$scripts = $hx_exports.lime.$scripts || {};
$hx_exports.lime.$scripts["::APP_FILE::"] = (func... | var $hx_script = (function(exports, global) { ::SOURCE_FILE::});
(function ($hx_exports, $global) { "use strict";
$hx_exports.lime = $hx_exports.lime || {};
$hx_exports.lime.$scripts = $hx_exports.lime.$scripts || {};
$hx_exports.lime.$scripts["::APP_FILE::"] = $hx_script;
$hx_exports.lime.embed = function(projectName)... | Fix line numbers for HTML5 source maps | Fix line numbers for HTML5 source maps
| JavaScript | mit | madrazo/lime-1,player-03/lime,madrazo/lime-1,MinoGames/lime,openfl/lime,player-03/lime,openfl/lime,madrazo/lime-1,madrazo/lime-1,MinoGames/lime,openfl/lime,openfl/lime,madrazo/lime-1,player-03/lime,MinoGames/lime,openfl/lime,player-03/lime,player-03/lime,MinoGames/lime,MinoGames/lime,MinoGames/lime,player-03/lime,madra... | ---
+++
@@ -1,13 +1,8 @@
-::if embeddedLibraries::::foreach (embeddedLibraries)::
-::__current__::::end::::end::
-// lime.embed namespace wrapper
+var $hx_script = (function(exports, global) { ::SOURCE_FILE::});
(function ($hx_exports, $global) { "use strict";
$hx_exports.lime = $hx_exports.lime || {};
$hx_exports... |
22eb68d51eefaefaa8def3b0ef44d4a551babcca | lib/plugin/router/router.js | lib/plugin/router/router.js | "use strict";
const Item = require('./item');
const Handler = require('./handler');
const Plugin = require('../plugin');
const url = require('url');
const {coroutine: co} = require('bluebird');
class Router extends Plugin {
constructor(engine) {
super(engine);
engine.registry.http.incoming.set({id: 'http', ... | "use strict";
const Item = require('./item');
const Handler = require('./handler');
const Plugin = require('../plugin');
const url = require('url');
const {coroutine: co} = require('bluebird');
class Router extends Plugin {
constructor(engine) {
super(engine);
engine.registry.http.incoming.set({id: 'http', ... | Clarify httpResponse check with === | Clarify httpResponse check with ===
| JavaScript | mit | coreyp1/defiant,coreyp1/defiant | ---
+++
@@ -20,7 +20,7 @@
let handlers = Item.sortHandlers(this.router.collectHandlers(context.request._parsedUrl.pathname));
return co(function*() {
for (let key in handlers) {
- if (context.httpResponse == undefined) {
+ if (context.httpResponse === undefined) {
context.han... |
d64c1914a95e150b32ec750171187b8354059cd8 | lib/errors.js | lib/errors.js | /*
* Grasspiler / errors.js
* copyright (c) 2016 Susisu
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
ParseError,
CompileError
});
}
class ParseError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
... | /*
* Grasspiler / errors.js
* copyright (c) 2016 Susisu
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
ParseError,
CompileError
});
}
class ParseError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
... | Add name property to compile error | Add name property to compile error
| JavaScript | mit | susisu/Grasspiler | ---
+++
@@ -22,6 +22,7 @@
class CompileError extends Error {
constructor(trace, message) {
super(message);
+ this.name = this.constructor.name;
this.trace = trace;
}
@@ -31,7 +32,7 @@
toString() {
const traceStr = this.trace.map(t => t.toString() + ":\n").join(""... |
df3766e78ec0c5af757135192e5a1ff6b051199f | lib/errors.js | lib/errors.js | /**
* Copyright 2013 Rackspace
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /**
* Copyright 2014 Rackspace
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Add missing comment and fix copyright date. | Add missing comment and fix copyright date.
| JavaScript | apache-2.0 | racker/node-cassandra-client,racker/node-cassandra-client | ---
+++
@@ -1,5 +1,5 @@
/**
- * Copyright 2013 Rackspace
+ * Copyright 2014 Rackspace
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
/**
- *
+ * Error for when the client times out a query.
* @c... |
4b0660934648ff19db30803f5faf84bedfe2c5d2 | packages/github/github_client.js | packages/github/github_client.js | Github = {};
// Request Github credentials for the user
// @param options {optional}
// @param credentialRequestCompleteCallback {Function} Callback function to call on
// completion. Takes one argument, credentialToken on success, or Error on
// error.
Github.requestCredential = function (options, credentialReque... | Github = {};
// Request Github credentials for the user
// @param options {optional}
// @param credentialRequestCompleteCallback {Function} Callback function to call on
// completion. Takes one argument, credentialToken on success, or Error on
// error.
Github.requestCredential = function (options, credentialReque... | Fix 'popupOptions' typo in 'github' | Fix 'popupOptions' typo in 'github'
| JavaScript | mit | EduShareOntario/meteor,daltonrenaldo/meteor,dev-bobsong/meteor,youprofit/meteor,skarekrow/meteor,PatrickMcGuinness/meteor,DCKT/meteor,henrypan/meteor,HugoRLopes/meteor,jdivy/meteor,benjamn/meteor,yalexx/meteor,daltonrenaldo/meteor,youprofit/meteor,Profab/meteor,sitexa/meteor,TribeMedia/meteor,esteedqueen/meteor,yanisIk... | ---
+++
@@ -38,6 +38,6 @@
loginUrl: loginUrl,
credentialRequestCompleteCallback: credentialRequestCompleteCallback,
credentialToken: credentialToken,
- popupOptons: {width: 900, height: 450}
+ popupOptions: {width: 900, height: 450}
});
}; |
a0f8a7bcc765f8fb07a2760a09307faf39404aca | lib/adapter.js | lib/adapter.js | /*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://cksource.com/ckfinder/license
*/
( function( window, bender ) {
'use strict';
var unlock = bender.defer(),
originalRequire = window.require;
// TODO what if require is never called?
bende... | /*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://cksource.com/ckfinder/license
*/
( function( window, bender ) {
'use strict';
bender.require = function( deps, callback ) {
var unlock = bender.defer();
window.require( deps, function() {... | Move bender.defer() inside the require call. | Move bender.defer() inside the require call.
| JavaScript | mit | benderjs/benderjs-amd | ---
+++
@@ -6,12 +6,10 @@
( function( window, bender ) {
'use strict';
- var unlock = bender.defer(),
- originalRequire = window.require;
+ bender.require = function( deps, callback ) {
+ var unlock = bender.defer();
- // TODO what if require is never called?
- bender.require = function( deps, callback ) {
-... |
1057855e5c60e281e8c2450d4ac5560c385da771 | package.js | package.js | Package.describe({
name: 'verody:groupaccount',
version: '0.1.0',
summary: 'Account management package providing qualified access to a single Meteor server account from one or more sets of credentials.',
git: 'https://github.com/ekobi/meteor-groupaccount.git',
documentation: 'README.md'
});
Package... | Package.describe({
name: 'verody:groupaccount',
version: '0.1.0',
summary: 'Provides qualified access to a single Meteor user account from one or more sets of credentials.',
git: 'https://github.com/ekobi/meteor-groupaccount.git',
documentation: 'README.md'
});
Package.onUse(function(api) {
api... | Trim summary to fit 100 character limit. | Trim summary to fit 100 character limit.
| JavaScript | mit | ekobi/meteor-groupaccount,ekobi/meteor-groupaccount,ekobi/meteor-groupaccount | ---
+++
@@ -1,7 +1,7 @@
Package.describe({
name: 'verody:groupaccount',
version: '0.1.0',
- summary: 'Account management package providing qualified access to a single Meteor server account from one or more sets of credentials.',
+ summary: 'Provides qualified access to a single Meteor user account f... |
5010579e063b1534d77638b08e6f61646d6969c8 | tasks/ember-handlebars.js | tasks/ember-handlebars.js | /*
* grunt-ember-handlebars
* https://github.com/yaymukund/grunt-ember-handlebars
*
* Copyright (c) 2012 Mukund Lakshman
* Licensed under the MIT license.
*
* A grunt task that precompiles Ember.js Handlebars templates into
* separate .js files of the same name. This script expects the
* following setup:
*
*... | /*
* grunt-ember-handlebars
* https://github.com/yaymukund/grunt-ember-handlebars
*
* Copyright (c) 2012 Mukund Lakshman
* Licensed under the MIT license.
*
* A grunt task that precompiles Ember.js Handlebars templates into
* separate .js files of the same name. This script expects the
* following setup:
*
*... | Change file.src to filesSrc for grunt 0.4.0rc5. | Change file.src to filesSrc for grunt 0.4.0rc5.
See https://github.com/gruntjs/grunt/issues/606
| JavaScript | mit | yaymukund/grunt-ember-handlebars,gooddata/grunt-ember-handlebars,gooddata/grunt-ember-handlebars | ---
+++
@@ -26,7 +26,7 @@
grunt.registerMultiTask('ember_handlebars', 'Precompile Ember Handlebars templates', function() {
// Precompile each file and write it to the output directory.
- grunt.util._.forEach(this.file.src.map(path.resolve), function(file) {
+ grunt.util._.forEach(this.filesSrc.map(pa... |
fe3cf35e9c1ba40fe92e0b018bfa55026b6a786d | util/install-bundle.js | util/install-bundle.js | 'use strict';
const fs = require('fs');
const cp = require('child_process');
const os = require('os');
const commander = require('commander');
const parse = require('git-url-parse');
const gitRoot = cp.execSync('git rev-parse --show-toplevel').toString('utf8').trim();
process.chdir(gitRoot);
commander.command('insta... | 'use strict';
const fs = require('fs');
const cp = require('child_process');
const os = require('os');
const commander = require('commander');
const parse = require('git-url-parse');
const gitRoot = cp.execSync('git rev-parse --show-toplevel').toString('utf8').trim();
process.chdir(gitRoot);
commander.command('insta... | Fix typo in install bundle script | Fix typo in install bundle script
| JavaScript | mit | shawncplus/ranviermud | ---
+++
@@ -43,4 +43,4 @@
});
}
-console.log("Bundle installed. Commit the bundle with `git commit -m \"Added ${name} bundle\"`");
+console.log(`Bundle installed. Commit the bundle with: git commit -m \"Added ${name} bundle\""); |
3e968acae5397d7b33d409fc0c26da610c1ba9b0 | Resources/js/InjectCSS.js | Resources/js/InjectCSS.js | document.documentElement.style.webkitTouchCallout='none';
var root = document.getElementsByTagName( 'html' )[0]
root.setAttribute( 'class', 'hybrid' );
var styleElement = document.createElement('style');
root.appendChild(styleElement);
styleElement.textContent = '${CSS}';
| document.documentElement.style.webkitTouchCallout='none';
var root = document.getElementsByTagName( 'html' )[0]
root.setAttribute( 'class', 'neeman-hybrid-app' );
var styleElement = document.createElement('style');
root.appendChild(styleElement);
styleElement.textContent = '${CSS}';
| Switch HTML tag to one less likely to be used by another library. | Switch HTML tag to one less likely to be used by another library.
| JavaScript | mit | intellum/neeman,intellum/neeman,intellum/neeman,intellum/neeman | ---
+++
@@ -1,7 +1,7 @@
document.documentElement.style.webkitTouchCallout='none';
var root = document.getElementsByTagName( 'html' )[0]
-root.setAttribute( 'class', 'hybrid' );
+root.setAttribute( 'class', 'neeman-hybrid-app' );
var styleElement = document.createElement('style');
root.appendChild(styleElement... |
cfe506bf86d27cf1c1c9677adf7902e3c003dfe7 | lib/webhook.js | lib/webhook.js | /*
* Copyright (c) 2014-2020 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
const request = require('request')
const colors = require('colors/safe')
const logger = require('../lib/logger')
const utils = require('../lib/utils')
const os = require('os')
exports.notify = (challenge) => {
request.post(process.e... | /*
* Copyright (c) 2014-2020 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
const request = require('request')
const colors = require('colors/safe')
const logger = require('../lib/logger')
const utils = require('../lib/utils')
const os = require('os')
exports.notify = (challenge) => {
request.post(process.e... | Move additional field "issuer" out of the "solution" object | Move additional field "issuer" out of the "solution" object
| JavaScript | mit | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | ---
+++
@@ -14,11 +14,11 @@
json: {
solution:
{
- issuer: `owasp_juiceshop-${utils.version()}@${os.hostname()}`,
challenge: challenge.key,
evidence: null,
issuedOn: new Date().toISOString()
- }
+ },
+ issuer: `owasp_juiceshop-${utils.... |
84a3c8c53f6e5c307aacceb91b7caaec7829bb95 | src/webapp/api/scripts/importers/exhibit-json-importer.js | src/webapp/api/scripts/importers/exhibit-json-importer.js | /*==================================================
* Exhibit.ExhibitJSONImporter
*==================================================
*/
Exhibit.ExhibitJSONImporter = {
};
Exhibit.importers["application/json"] = Exhibit.ExhibitJSONImporter;
Exhibit.ExhibitJSONImporter.load = function(link, database, cont) {
... | /*==================================================
* Exhibit.ExhibitJSONImporter
*==================================================
*/
Exhibit.ExhibitJSONImporter = {
};
Exhibit.importers["application/json"] = Exhibit.ExhibitJSONImporter;
Exhibit.ExhibitJSONImporter.load = function(link, database, cont) {
... | Allow either a string (a (relative) url) or <link href> object passed to the exhibit json importer. | Allow either a string (a (relative) url) or <link href> object passed to the exhibit json importer.
| JavaScript | bsd-3-clause | zepheira/exhibit,zepheira/exhibit,zepheira/exhibit,zepheira/exhibit,zepheira/exhibit,zepheira/exhibit | ---
+++
@@ -8,7 +8,8 @@
Exhibit.importers["application/json"] = Exhibit.ExhibitJSONImporter;
Exhibit.ExhibitJSONImporter.load = function(link, database, cont) {
- var url = Exhibit.Persistence.resolveURL(link.href);
+ var url = typeof link == "string" ? link : link.href;
+ url = Exhibit.Persistence.resol... |
54b35d592d3d2c7e9c4357acc2c3cdc3a3c5478f | src/client/blog/posts/posts-service.js | src/client/blog/posts/posts-service.js | BlogPostsFactory.$inject = ['$resource'];
function BlogPostsFactory($resource){
return $resource('/api/v1/posts/:postId');
}
angular.module('blog.posts.service', [
'ngResource'
]).factory('Posts', BlogPostsFactory);
| BlogPostsFactory.$inject = ['$resource'];
function BlogPostsFactory($resource){
return $resource('/api/v1/posts/:postId', {postId: '@id'});
}
angular.module('blog.posts.service', [
'ngResource'
]).factory('Posts', BlogPostsFactory);
| Allow saving with the posts. | Allow saving with the posts.
| JavaScript | isc | RupertJS/rupert-example-blog,RupertJS/rupert-example-blog | ---
+++
@@ -1,6 +1,6 @@
BlogPostsFactory.$inject = ['$resource'];
function BlogPostsFactory($resource){
- return $resource('/api/v1/posts/:postId');
+ return $resource('/api/v1/posts/:postId', {postId: '@id'});
}
angular.module('blog.posts.service', [ |
ff4ac1f418508c005d5afa713027af33dcf29ff1 | test/helper.js | test/helper.js | var nock = require('nock')
, io = require('../index');
var helper = exports;
//
// Define the default options
//
var default_options = helper.default_options = {
endpoint: 'https://api.orchestrate.io',
api: 'v0'
};
//
// Create a new fake server
//
helper.fakeIo = require('./support/fake-io').createServer(defa... | /*
* helper.js
*
*/
var io = require('../index');
var helper = exports;
var default_options = helper.default_options = {
endpoint: 'https://api.orchestrate.io',
api: 'v0'
};
//
// Create a new fake server
//
helper.fakeIo = require('./support/fake-io').createServer(default_options);
helper.io = io;
| Stop to require a useless module | Stop to require a useless module
| JavaScript | mit | giraffi/node-orchestrate.io | ---
+++
@@ -1,11 +1,10 @@
-var nock = require('nock')
- , io = require('../index');
+/*
+ * helper.js
+ *
+ */
+var io = require('../index');
var helper = exports;
-
-//
-// Define the default options
-//
var default_options = helper.default_options = {
endpoint: 'https://api.orchestrate.io',
api: 'v0' |
ef35f61e3d19f4afefdf31343434d475a8a0e80f | test/tests/integration/endpoints/facebook-connect-test.js | test/tests/integration/endpoints/facebook-connect-test.js | var torii, container;
import buildFBMock from 'test/helpers/build-fb-mock';
import toriiContainer from 'test/helpers/torii-container';
import configuration from 'torii/configuration';
var originalConfiguration = configuration.endpoints['facebook-connect'],
originalGetScript = $.getScript,
originalFB = window.... | var torii, container;
import buildFBMock from 'test/helpers/build-fb-mock';
import toriiContainer from 'test/helpers/torii-container';
import configuration from 'torii/configuration';
var originalConfiguration = configuration.endpoints['facebook-connect'],
originalGetScript = $.getScript,
originalFB = window.... | Use appId instead of apiKey | Use appId instead of apiKey
| JavaScript | mit | Vestorly/torii,cjroebuck/torii,cibernox/torii,garno/torii,anilmaurya/torii,cjroebuck/torii,Vestorly/ember-tron,image-tester/torii,bantic/torii,rwjblue/torii,raycohen/torii,embersherpa/torii,gnagel/torii,garno/torii,rancher/torii,embersherpa/torii,abulrim/torii,curit/torii,gannetson/torii,anilmaurya/torii,greyhwndz/tori... | ---
+++
@@ -12,7 +12,7 @@
setup: function(){
container = toriiContainer();
torii = container.lookup('torii:main');
- configuration.endpoints['facebook-connect'] = {apiKey: 'dummy'};
+ configuration.endpoints['facebook-connect'] = {appId: 'dummy'};
window.FB = buildFBMock();
},
teardown: ... |
3d0972cc6f42359bc3a94254c808a1a6e34517a9 | src/custom/cappasity-users-activate.js | src/custom/cappasity-users-activate.js | const ld = require('lodash');
const moment = require('moment');
const setMetadata = require('../utils/updateMetadata.js');
/**
* Adds metadata from billing into usermix
* @param {String} username
* @return {Promise}
*/
module.exports = function mixPlan(username, audience) {
const { amqp, config } = this;
cons... | const Promise = require('bluebird');
const ld = require('lodash');
const moment = require('moment');
const setMetadata = require('../utils/updateMetadata.js');
/**
* Adds metadata from billing into usermix
* @param {String} username
* @return {Promise}
*/
module.exports = function mixPlan(username, audience) {
... | Add sleep in custom action | Add sleep in custom action
| JavaScript | mit | makeomatic/ms-users,makeomatic/ms-users | ---
+++
@@ -1,3 +1,4 @@
+const Promise = require('bluebird');
const ld = require('lodash');
const moment = require('moment');
const setMetadata = require('../utils/updateMetadata.js');
@@ -13,25 +14,30 @@
const route = [payments.prefix, payments.routes.planGet].join('.');
const id = 'free';
- return amqp
... |
b14b34b232b4873137ea3f3c7a90f86b9013885a | Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js | Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
import '../Core/InitializeCore';
| /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
// TODO: Remove this module when the import is removed from the React renderers.
// This modu... | Make runtime initialization from React renderers a no-op | Make runtime initialization from React renderers a no-op
Summary:
This module is imported by all flavors of the React Native renderers (dev/prod, Fabric/Paper, etc.), which itself imports `InitializeCore`. This is effectively a no-op in most React Native apps because Metro adds it as a module to execute before the ent... | JavaScript | mit | javache/react-native,javache/react-native,janicduplessis/react-native,javache/react-native,javache/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,facebook/react-native,facebook/react-native,janicduplessis/react-native,javache/react-native,janicduplessis/react-native,javache/react-n... | ---
+++
@@ -8,4 +8,13 @@
* @flow strict-local
*/
-import '../Core/InitializeCore';
+// TODO: Remove this module when the import is removed from the React renderers.
+
+// This module is used by React to initialize the React Native runtime,
+// but it is now a no-op.
+
+// This is redundant because all React Nat... |
dfb9b5b2b45d76a463af38eb6362922bf6ea9f9e | rikitrakiws.js | rikitrakiws.js | var log4js = require('log4js');
var logger = log4js.getLogger();
var express = require('express');
var favicon = require('serve-favicon');
var bodyParser = require('body-parser');
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
var ipaddress = process.env.OPENSHIFT_NODEJS_IP;
var loglevel = process.env.LOGLEVEL |... | var log4js = require('log4js');
var logger = log4js.getLogger();
var express = require('express');
var favicon = require('serve-favicon');
var bodyParser = require('body-parser');
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
var ipaddress = process.env.OPENSHIFT_NODEJS_IP;
var loglevel = process.env.LOGLEVEL |... | Drop header to avoid auth browser popup | Drop header to avoid auth browser popup
| JavaScript | mit | jimmyangel/rikitrakiws,jimmyangel/rikitrakiws | ---
+++
@@ -17,13 +17,12 @@
app.use(bodyParser.json({limit: '5mb'}));
app.use(bodyParser.raw({limit: '10mb', type: 'image/jpeg'}));
-
-app.use('/api/', require('./routes/').router);
-
app.use(function (req, res, next) {
res.removeHeader("WWW-Authenticate");
next();
});
+
+app.use('/api/', require('./routes/... |
e4b7c59821ba71bb49c212e65bc23da3eeaa26a6 | app/config.js | app/config.js | var mapboxDataTeam = require('mapbox-data-team');
const config = {
'API_BASE': 'https://api-osm-comments-staging.tilestream.net/api/v1/',
'MAPBOX_ACCESS_TOKEN': 'pk.eyJ1Ijoic2FuamF5YiIsImEiOiI3NjVvMFY0In0.byn_eCZGAwR1yaPeC-SVKw',
'OSM_BASE': 'https://www.openstreetmap.org/',
'STATIC_MAPS_BASE': 'https:... | var mapboxDataTeam = require('mapbox-data-team');
const config = {
'API_BASE': 'https://api-osm-comments-production.tilestream.net/api/v1/',
'MAPBOX_ACCESS_TOKEN': 'pk.eyJ1Ijoic2FuamF5YiIsImEiOiI3NjVvMFY0In0.byn_eCZGAwR1yaPeC-SVKw',
'OSM_BASE': 'https://www.openstreetmap.org/',
'STATIC_MAPS_BASE': 'htt... | Switch to the production endpoint | Switch to the production endpoint
| JavaScript | bsd-2-clause | mapbox/osm-comments,mapbox/osm-comments | ---
+++
@@ -1,7 +1,7 @@
var mapboxDataTeam = require('mapbox-data-team');
const config = {
- 'API_BASE': 'https://api-osm-comments-staging.tilestream.net/api/v1/',
+ 'API_BASE': 'https://api-osm-comments-production.tilestream.net/api/v1/',
'MAPBOX_ACCESS_TOKEN': 'pk.eyJ1Ijoic2FuamF5YiIsImEiOiI3NjVvMFY0... |
81d56eb96900ee77e31bd3cfc09751084f076c57 | src/containers/toputilizers/components/TopUtilizersForm.js | src/containers/toputilizers/components/TopUtilizersForm.js | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import ContentContainer from '../../../components/applayout/ContentContainer';
import TopUtilizersSelectionRowContainer from '../containers/TopUtilizersSelectionRowConta... | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import ContentContainer from '../../../components/applayout/ContentContainer';
import TopUtilizersSelectionRowContainer from '../containers/TopUtilizersSelectionRowConta... | Add key to selection rows | Add key to selection rows
| JavaScript | apache-2.0 | dataloom/gallery,kryptnostic/gallery,dataloom/gallery,kryptnostic/gallery | ---
+++
@@ -9,7 +9,7 @@
const getChildren = (rowData) => {
return rowData.map((row) => {
- return <TopUtilizersSelectionRowContainer id={row.id} />;
+ return <TopUtilizersSelectionRowContainer key={row.id} />;
});
};
|
58239dac2cc98052570cd13e87905c9fb3b11de5 | src/scenes/home/opCodeCon/opCodeCon.js | src/scenes/home/opCodeCon/opCodeCon.js | import React from 'react';
import commonUrl from 'shared/constants/commonLinks';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './opCodeCon.css';
const OpCodeCon = () => (
<div className={styles.hero}>
<div className={styles.heading}>
<h1>OpCodeCon</h1>
<h3>Join... | import React from 'react';
import commonUrl from 'shared/constants/commonLinks';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './opCodeCon.css';
const OpCodeCon = () => (
<div className={styles.hero}>
<div className={styles.heading}>
<h1>OpCodeCon</h1>
<h3>Join... | Fix ESLint error causing Travis build to fail | Fix ESLint error causing Travis build to fail
'jsx-max-props-per-line' rule | JavaScript | mit | sethbergman/operationcode_frontend,OperationCode/operationcode_frontend,sethbergman/operationcode_frontend,sethbergman/operationcode_frontend,hollomancer/operationcode_frontend,OperationCode/operationcode_frontend,hollomancer/operationcode_frontend,OperationCode/operationcode_frontend,hollomancer/operationcode_frontend | ---
+++
@@ -16,7 +16,13 @@
</a>{' '}
for sponsorship information.
</p>
- <LinkButton role="button" text="Donate" theme="red" link={commonUrl.donateLink} isExternal />
+ <LinkButton
+ role="button"
+ text="Donate"
+ theme="red"
+ link={commonUrl.donateLink... |
c4e00daab05ac6cc0b9965fd5a07539b3281bd2e | app/routes.js | app/routes.js | module.exports = {
bind : function (app) {
app.get('/', function (req, res) {
console.log("Clearing the session.")
delete req.session
res.render('index');
});
app.get('/examples/template-data', function (req, res) {
res.render('examples/template-data', { 'name' : 'Foo' });
})... | function clear_session(req) {
console.log("Clearing the session.")
delete req.session
}
module.exports = {
bind : function (app) {
app.get('/', function (req, res) {
clear_session(req);
res.render('index');
});
app.get('/index', function (req, res) {
clear_session(req);
res.... | Clear the session on accessing the index page too. | Clear the session on accessing the index page too.
| JavaScript | mit | stephenjoe1/pay-staff-tool,stephenjoe1/pay-staff-tool,stephenjoe1/pay-staff-tool | ---
+++
@@ -1,11 +1,21 @@
+function clear_session(req) {
+ console.log("Clearing the session.")
+ delete req.session
+}
+
module.exports = {
bind : function (app) {
app.get('/', function (req, res) {
- console.log("Clearing the session.")
- delete req.session
+ clear_session(req);
r... |
8ebb4b1d798c02dd62d7b0e584f567374c4a930c | NoteWrangler/public/js/routes.js | NoteWrangler/public/js/routes.js | // js/routes
(function() {
"use strict";
angular.module("NoteWrangler")
.config(config);
function config($routeProvider) {
$routeProvider
.when("/notes", {
templateUrl: "../templates/pages/notes/index.html",
controller: "NotesIndexController",
controllerAs: "notesIndexCtrl... | // js/routes
(function() {
"use strict";
angular.module("NoteWrangler")
.config(config);
function config($routeProvider) {
$routeProvider
.when("/notes", {
templateUrl: "../templates/pages/notes/index.html",
controller: "NotesIndexController",
controllerAs: "notesIndexCtrl... | Add templateUrl for default route | Add templateUrl for default route
| JavaScript | mit | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | ---
+++
@@ -27,7 +27,8 @@
controllerAs: "notesShowCtrl"
})
.otherwise({
- redirectTo: "/"
+ redirectTo: "/",
+ templateUrl: "templates/pages/index/index.html"
});
}
})(); |
d60038a85207a5126048733c700b15cd39b7e80b | modules/web.js | modules/web.js | var express = require('express');
var webInterface = function(dbot) {
var dbot = dbot;
var pub = 'public';
var app = express.createServer();
app.use(express.compiler({ src: pub, enable: ['sass'] }));
app.use(express.static(pub));
app.set('view engine', 'jade');
app.get('/', function(req,... | var express = require('express');
var webInterface = function(dbot) {
var dbot = dbot;
var pub = 'public';
var app = express.createServer();
app.use(express.compiler({ src: pub, enable: ['sass'] }));
app.use(express.static(pub));
app.set('view engine', 'jade');
app.get('/', function(req,... | Move listen port back to 443 | Move listen port back to 443
| JavaScript | mit | zuzak/dbot,zuzak/dbot | ---
+++
@@ -30,7 +30,7 @@
}
});
- app.listen(9443);
+ app.listen(443);
return {
'onDestroy': function() { |
b33eafc06f6f89166cecd8cde664c470cc249b31 | lib/app.js | lib/app.js | var app = require("express")();
app.get('/', function (req, res) {
res.send('c\'est ne une jsbin');
});
app.listen(3000);
| var express = require('express'),
path = require('path'),
app = express();
app.root = path.join(__dirname, '..', 'public');
app.use(express.logger());
app.use(express.static(app.root));
app.get('/', function (req, res) {
res.send('c\'est ne une jsbin');
});
module.exports = app;
// Run a local dev... | Add support for serving static files and logging | Add support for serving static files and logging
| JavaScript | mit | thsunmy/jsbin,jsbin/jsbin,filamentgroup/jsbin,mingzeke/jsbin,jwdallas/jsbin,kentcdodds/jsbin,jsbin/jsbin,knpwrs/jsbin,IvanSanchez/jsbin,martinvd/jsbin,blesh/jsbin,saikota/jsbin,pandoraui/jsbin,carolineartz/jsbin,dhval/jsbin,svacha/jsbin,mlucool/jsbin,dennishu001/jsbin,eggheadio/jsbin,Freeformers/jsbin,mcanthony/jsbin,c... | ---
+++
@@ -1,7 +1,19 @@
-var app = require("express")();
+var express = require('express'),
+ path = require('path'),
+ app = express();
+
+app.root = path.join(__dirname, '..', 'public');
+
+app.use(express.logger());
+app.use(express.static(app.root));
app.get('/', function (req, res) {
res.send... |
4390638b4674024c7abd266450916fbe4f78ea5a | prompts.js | prompts.js | 'use strict';
var _ = require('lodash');
var prompts = [
{
type: 'input',
name: 'projectName',
message: 'Machine-name of your project?',
// Name of the parent directory.
default: _.last(process.cwd().split('/')),
validate: function (input) {
return (input.search(' ') === -1) ? true : '... | 'use strict';
var _ = require('lodash');
var prompts = [
{
type: 'input',
name: 'projectName',
message: 'Machine-name of your project?',
// Name of the parent directory.
default: _.last(process.cwd().split('/')),
validate: function (input) {
return (input.search(' ') === -1) ? true : '... | Add support for memcache with Drupal config via override.settings.php. | Add support for memcache with Drupal config via override.settings.php.
| JavaScript | mit | phase2/generator-outrigger-drupal,phase2/generator-outrigger-drupal,phase2/generator-outrigger-drupal | ---
+++
@@ -38,6 +38,16 @@
return 'A validate docker image identifier is required.';
}
+ },
+ {
+ type: 'list',
+ name: 'cacheInternal',
+ message: 'Choose a cache backend:',
+ default: 'memcache',
+ choices: [
+ 'memcache',
+ 'database'
+ ]
}
];
|
9c69add5dbeb82687180f0f225defbe8cc2f0553 | shows/paste.js | shows/paste.js | function(doc, req) {
start({
"headers" : {
"Content-type": "text/html"
}
});
var Mustache = require("vendor/mustache");
var x = Mustache.to_html(this.templates.paste, doc);
return x;
}
| function(doc, req) {
start({
"Content-type": "text/html; charset='utf-8'"
});
var Mustache = require("vendor/mustache");
Mustache.to_html(this.templates.paste, doc, null, send);
}
| Use CouchDB send function when displaying the template | Use CouchDB send function when displaying the template
Also correct the start function which was wrong before.
| JavaScript | mit | gdamjan/paste-couchapp | ---
+++
@@ -1,10 +1,7 @@
function(doc, req) {
start({
- "headers" : {
- "Content-type": "text/html"
- }
+ "Content-type": "text/html; charset='utf-8'"
});
var Mustache = require("vendor/mustache");
- var x = Mustache.to_html(this.templates.paste, doc);
- return x;
+ Mustache... |
2aacce141e11e2e30f566cad900c9fa1f4234d2b | tests/dummy/app/routes/nodes/detail/draft-registrations.js | tests/dummy/app/routes/nodes/detail/draft-registrations.js | import Ember from 'ember';
export default Ember.Route.extend({
model() {
let node = this.modelFor('nodes.detail');
return node.get('draftRegistrations');
}
});
| import Ember from 'ember';
export default Ember.Route.extend({
model() {
let node = this.modelFor('nodes.detail');
let drafts = node.get('draftRegistrations');
return Ember.RSVP.hash({
node: node,
drafts: drafts
});
},
});
| Make both node and draft model available in draft template. | Make both node and draft model available in draft template.
| JavaScript | apache-2.0 | crcresearch/ember-osf,CenterForOpenScience/ember-osf,pattisdr/ember-osf,hmoco/ember-osf,baylee-d/ember-osf,hmoco/ember-osf,jamescdavis/ember-osf,CenterForOpenScience/ember-osf,pattisdr/ember-osf,chrisseto/ember-osf,binoculars/ember-osf,binoculars/ember-osf,cwilli34/ember-osf,jamescdavis/ember-osf,crcresearch/ember-osf,... | ---
+++
@@ -3,6 +3,10 @@
export default Ember.Route.extend({
model() {
let node = this.modelFor('nodes.detail');
- return node.get('draftRegistrations');
- }
+ let drafts = node.get('draftRegistrations');
+ return Ember.RSVP.hash({
+ node: node,
+ drafts: d... |
0ef49d43df60f47ba98979c19c1c10d9808d1443 | web/static/js/query.js | web/static/js/query.js | App.QueryController = Ember.Controller.extend({
needs: ['insight'],
columnsBinding: "controllers.insight.columns",
limitBinding: "controllers.insight.limit",
_schema: Em.ArrayProxy.create({content:[]}),
_records: Em.ArrayProxy.create({content:[]}),
schema: function(){
this.execute();
return this.... | App.QueryController = Ember.Controller.extend({
needs: ['insight'],
orderBy: null,
where: null,
columnsBinding: "controllers.insight.columns",
limitBinding: "controllers.insight.limit",
whereBinding: "controllers.insight.where",
_schema: Em.ArrayProxy.create({content:[]}),
_records: Em.ArrayProxy.creat... | Allow editing of filters, ordering and limits. | Allow editing of filters, ordering and limits. | JavaScript | mpl-2.0 | mozilla/caravela,mozilla/caravela,mozilla/caravela,mozilla/caravela | ---
+++
@@ -1,8 +1,10 @@
App.QueryController = Ember.Controller.extend({
needs: ['insight'],
-
+ orderBy: null,
+ where: null,
columnsBinding: "controllers.insight.columns",
limitBinding: "controllers.insight.limit",
+ whereBinding: "controllers.insight.where",
_schema: Em.ArrayProxy.create({content... |
1e28a1f64256b02c70d1534561760657c6076179 | ui/app/common/authentication/directives/pncRequiresAuth.js | ui/app/common/authentication/directives/pncRequiresAuth.js | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | Add title when action buttons is disabled - FF fix | Add title when action buttons is disabled - FF fix
| JavaScript | apache-2.0 | jdcasey/pnc,jbartece/pnc,jsenko/pnc,alexcreasy/pnc,ruhan1/pnc,thauser/pnc,alexcreasy/pnc,jsenko/pnc,jbartece/pnc,dans123456/pnc,thescouser89/pnc,matejonnet/pnc,matedo1/pnc,jdcasey/pnc,ruhan1/pnc,rnc/pnc,jbartece/pnc,matedo1/pnc,matedo1/pnc,pkocandr/pnc,thauser/pnc,alexcreasy/pnc,project-ncl/pnc,jsenko/pnc,dans123456/pn... | ---
+++
@@ -37,6 +37,7 @@
if (!authService.isAuthenticated()) {
attrs.$set('disabled', 'disabled');
attrs.$set('title', 'Log in to run this action');
+ attrs.$set('tooltip', ''); // hack to hide bootstrap tooltip in FF
elem.addClass('pointer-events-auto');
... |
c530d6bee2bc659945b711c215b9f0368f0a8981 | background.js | background.js | chrome.contextMenus.create(
{
"title": "Define \"%s\"",
"contexts":["selection"],
"onclick": function(info, tab){
chrome.tabs.create(
{url: "http://www.google.com/search?q=define" + encodeURIComponent(" " + info.selectionText)
});
}
});
| chrome.contextMenus.create(
{
"title": "Define \"%s\"",
"contexts":["selection"],
"onclick": function(info, tab){
chrome.tabs.create(
{url: "http://www.google.com/search?q=define" + encodeURIComponent(" " + info.selectionText).replace(/%20/g, "+")
});
... | Improve the looks of the tab's URL by using "+" instead of "%20" | Improve the looks of the tab's URL by using "+" instead of "%20"
| JavaScript | mit | nwjlyons/google-dictionary-lookup | ---
+++
@@ -4,7 +4,7 @@
"contexts":["selection"],
"onclick": function(info, tab){
chrome.tabs.create(
- {url: "http://www.google.com/search?q=define" + encodeURIComponent(" " + info.selectionText)
+ {url: "http://www.google.com/search?q=define" + encodeURIC... |
608891cff627257521353d513397b01294bbf855 | lib/logger.js | lib/logger.js | 'use strict';
var path = require('path');
var winston = require('winston');
//
// Logging levels
//
var config = {
levels: {
silly: 0,
verbose: 1,
debug: 2,
info: 3,
warn: 4,
error: 5
},
colors: {
silly: 'magenta',
verbose: 'cyan',
debug: 'blue',
info: 'green',
warn: ... | 'use strict';
var path = require('path');
var winston = require('winston');
//
// Logging levels
//
var config = {
levels: {
silly: 0,
verbose: 1,
debug: 2,
info: 3,
warn: 4,
error: 5
},
colors: {
silly: 'magenta',
verbose: 'cyan',
debug: 'blue',
info: 'green',
warn: ... | Disable debug mode by default | Disable debug mode by default
| JavaScript | apache-2.0 | mwaylabs/mcap-cli | ---
+++
@@ -29,7 +29,7 @@
label = path.relative(__dirname, label);
- var debug = true;
+ var debug = false;
if (process.env.DEBUG !== undefined) {
debug = process.env.DEBUG === 'true';
} |
e5e82e6af9505c9f5a04a8acbe8170349faf80b7 | modules/openlmis-web/src/main/webapp/public/js/shared/directives/angular-flot.js | modules/openlmis-web/src/main/webapp/public/js/shared/directives/angular-flot.js | /**
* Created with IntelliJ IDEA.
* User: issa
* Date: 2/10/14
* Time: 1:18 AM
*/
app.directive('aFloat', function() {
function link(scope, element, attrs){
scope.$watch('afData', function(){
init(scope.afData,scope.afOption);
});
scope.$watch('afOption', function(){
... | /**
* Created with IntelliJ IDEA.
* User: issa
* Date: 2/10/14
* Time: 1:18 AM
*/
app.directive('aFloat', function() {
function link(scope, element, attrs){
scope.$watch('afData', function(){
init(scope.afData,scope.afOption);
});
scope.$watch('afOption', function(){
... | Fix angular jqflot integration error | Fix angular jqflot integration error
| JavaScript | agpl-3.0 | OpenLMIS/open-lmis,jasolangi/jasolangi.github.io,jasolangi/jasolangi.github.io,USAID-DELIVER-PROJECT/elmis,OpenLMIS/open-lmis,vimsvarcode/elmis,vimsvarcode/elmis,vimsvarcode/elmis,kelvinmbwilo/vims,vimsvarcode/elmis,jasolangi/jasolangi.github.io,USAID-DELIVER-PROJECT/elmis,kelvinmbwilo/vims,vimsvarcode/elmis,kelvinmbwi... | ---
+++
@@ -20,10 +20,10 @@
var totalWidth = element.width(), totalHeight = element.height();
if (totalHeight === 0 || totalWidth === 0) {
- throw new Error('Please set height and width for the aFloat element'+'width is '+ele);
+ throw new Error('Please set he... |
596710cc1308f0da187aca5f3cbe4f0b39a478a6 | frontend/Components/Dashboard.style.js | frontend/Components/Dashboard.style.js | const u = require('../styles/utils');
module.exports = {
'.dashboard': {
'padding': u.inRem(20),
},
'.dashboard’s-title': {
'font-size': u.inRem(40),
'line-height': u.inRem(40),
},
'.dashboard’s-subtitle': {
'font-size': u.inRem(12),
'text-transform': 'uppercase',
'letter-spacing': ... | const u = require('../styles/utils');
const dashboardPadding = 20;
const categoryBorderWidth = 1;
const categoryBorder =
`${categoryBorderWidth}px solid rgba(255, 255, 255, .2)`;
module.exports = {
'.dashboard': {
'padding': u.inRem(dashboardPadding),
},
'.dashboard’s-title': {
'font-size': u.inRem(... | Make categories a bit prettier | Make categories a bit prettier
| JavaScript | mit | magnificat/magnificat.surge.sh,magnificat/magnificat.surge.sh,magnificat/magnificat.surge.sh | ---
+++
@@ -1,8 +1,14 @@
const u = require('../styles/utils');
+
+const dashboardPadding = 20;
+
+const categoryBorderWidth = 1;
+const categoryBorder =
+ `${categoryBorderWidth}px solid rgba(255, 255, 255, .2)`;
module.exports = {
'.dashboard': {
- 'padding': u.inRem(20),
+ 'padding': u.inRem(dashboard... |
96507503d52fef205e9462de3bdcd7d38f18c453 | lib/routes.js | lib/routes.js | Router.configure({
layoutTemplate: '_layout'
});
//From what I can tell this has been depreciated
//https://github.com/iron-meteor/iron-router/blob/739bcc1445db3ad6bf90bda4e0cab3203a0ae526/lib/router.js#L88
Router.map(function() {
// initiative routes
this.route('initiatives', {
path: '/',
template: 'in... | Router.configure({
layoutTemplate: '_layout'
});
//From what I can tell this has been depreciated
//https://github.com/iron-meteor/iron-router/blob/739bcc1445db3ad6bf90bda4e0cab3203a0ae526/lib/router.js#L88
Router.map(function() {
// initiative routes
this.route('initiatives', {
path: '/',
template: 'in... | Fix initiativeShow to subscribe to userData | Fix initiativeShow to subscribe to userData
| JavaScript | mit | mtr-cherish/cherish,mtr-cherish/cherish | ---
+++
@@ -23,6 +23,7 @@
template: 'initiativeShow',
data: function () {
return {
+ userData: Meteor.subscribe("userData"),
initiative: Initiatives.findOne(this.params._id)
}
} |
2e357b2fd8d384047a98a2d13f074c378c6c7cbb | src/background/settings.js | src/background/settings.js | /**
* Incomplete type for settings in the `settings.json` file.
*
* This contains only the settings that the background script uses. Other
* settings are used when generating the `manifest.json` file.
*
* @typedef Settings
* @prop {string} apiUrl
* @prop {string} buildType
* @prop {{ dsn: string, release: stri... | /**
* Incomplete type for settings in the `settings.json` file.
*
* This contains only the settings that the background script uses. Other
* settings are used when generating the `manifest.json` file.
*
* @typedef Settings
* @prop {string} apiUrl
* @prop {string} buildType
* @prop {{ dsn: string, release: stri... | Correct regex pattern in the replace | Correct regex pattern in the replace
I believe the intention is to strip out the last `/` character, if any
(as the comment say).
| JavaScript | bsd-2-clause | hypothesis/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension | ---
+++
@@ -21,5 +21,5 @@
...settings,
// Ensure API url does not end with '/'
- apiUrl: settings.apiUrl.replace(/\/^/, ''),
+ apiUrl: settings.apiUrl.replace(/\/$/, ''),
}); |
4fead2fa52d33a187879371f2cb5b9af2ad2aa14 | api/routes/houseRoutes.js | api/routes/houseRoutes.js | 'use strict'
var passport = require('passport')
module.exports = function(app) {
var house = require('../controllers/houseController')
app.route('/houses')
.get(house.list_all_houses)
.post(passport.authenticate('jwt', {
session: false
}),
function(req, res) {
var token = getT... | 'use strict'
var passport = require('passport')
module.exports = function(app) {
var house = require('../controllers/houseController')
var versioning = require('../config/versioning')
app.route(versioning.url + '/houses')
.get(house.list_all_houses)
.post(passport.authenticate('jwt', {
session:... | Add API versioning for House endpoints. | Add API versioning for House endpoints.
| JavaScript | apache-2.0 | sotirelisc/housebot-api | ---
+++
@@ -4,8 +4,9 @@
module.exports = function(app) {
var house = require('../controllers/houseController')
+ var versioning = require('../config/versioning')
- app.route('/houses')
+ app.route(versioning.url + '/houses')
.get(house.list_all_houses)
.post(passport.authenticate('jwt', {
... |
c1941e8deb1011fcda896467dea65f2a1a067bcd | app/libs/details/index.js | app/libs/details/index.js | 'use strict';
module.exports = {
get: function(task) {
return new Promise((resolve, reject) => {
// Check type
if ( task.type === undefined || ! ['show', 'move'].includes(task.type) ) {
return reject('Invalid job type "' + task.type + '" specified');
}
// Get metadata, auth wit... | 'use strict';
// Load requirements
const fs = require('fs'),
path = require('path');
// Define the config directory
let configDir = path.resolve('./config');
// Create config directory if we don't have one
if ( ! fs.existsSync(configDir) ) {
fs.mkdirSync(configDir);
}
module.exports = {
get: function(tas... | Create config directory if not present | WIP: Create config directory if not present
| JavaScript | apache-2.0 | transmutejs/core | ---
+++
@@ -1,4 +1,16 @@
'use strict';
+
+// Load requirements
+const fs = require('fs'),
+ path = require('path');
+
+// Define the config directory
+let configDir = path.resolve('./config');
+
+// Create config directory if we don't have one
+if ( ! fs.existsSync(configDir) ) {
+ fs.mkdirSync(configDir);
+}
... |
4b534e9a9412d28c5a5e741287c0153af2286c2f | addons/graphql/src/preview.js | addons/graphql/src/preview.js | import React from 'react';
import GraphiQL from 'graphiql';
import { fetch } from 'global';
import 'graphiql/graphiql.css';
import FullScreen from './components/FullScreen';
const FETCH_OPTIONS = {
method: 'post',
headers: { 'Content-Type': 'application/json' },
};
function getDefautlFetcher(url) {
return para... | import React from 'react';
import GraphiQL from 'graphiql';
import { fetch } from 'global';
import 'graphiql/graphiql.css';
import FullScreen from './components/FullScreen';
const FETCH_OPTIONS = {
method: 'post',
headers: { 'Content-Type': 'application/json' },
};
function getDefautlFetcher(url) {
return para... | Fix bug in addons/graphql in reIndentQuery | Fix bug in addons/graphql in reIndentQuery
| JavaScript | mit | enjoylife/storybook,storybooks/storybook,rhalff/storybook,jribeiro/storybook,nfl/react-storybook,jribeiro/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,rhalff/storybook,enjoylife/storybook,nfl/react-storybook,jribeiro/storybook,nfl/react-storybook,kadirahq/react-storybook,storybooks/sto... | ---
+++
@@ -21,7 +21,7 @@
function reIndentQuery(query) {
const lines = query.split('\n');
const spaces = lines[lines.length - 1].length - 1;
- return lines.map((l, i) => (i === 0 ? l : l.slice(spaces)).join('\n'));
+ return lines.map((l, i) => (i === 0 ? l : l.slice(spaces))).join('\n');
}
export functi... |
1208ee980cf3e5b3c2c847c2a8d27b4ec7207f0f | client/src/js/samples/components/Analyses/Create.js | client/src/js/samples/components/Analyses/Create.js | import React, { PropTypes } from "react";
import { Modal } from "react-bootstrap";
import { AlgorithmSelect, Button } from "virtool/js/components/Base";
const getInitialState = () => ({
algorithm: "pathoscope_bowtie"
});
export default class CreateAnalysis extends React.Component {
constructor (props) {
... | import React, { PropTypes } from "react";
import { Modal } from "react-bootstrap";
import { AlgorithmSelect, Button } from "virtool/js/components/Base";
const getInitialState = () => ({
algorithm: "pathoscope_bowtie"
});
export default class CreateAnalysis extends React.Component {
constructor (props) {
... | Hide create analysis modal on success | Hide create analysis modal on success
| JavaScript | mit | igboyes/virtool,igboyes/virtool,virtool/virtool,virtool/virtool | ---
+++
@@ -16,13 +16,14 @@
static propTypes = {
show: PropTypes.bool,
sampleId: PropTypes.string,
- onSubmit: PropTypes.func
+ onSubmit: PropTypes.func,
+ onHide: PropTypes.func
};
handleSubmit = (event) => {
event.preventDefault();
this.props... |
3d81d8597aec5d77525edf6b479e02317b75ca36 | app/dashboard/routes/importer/helper/determine_path.js | app/dashboard/routes/importer/helper/determine_path.js | var slugify = require('./slugify');
var join = require('path').join;
var moment = require('moment');
module.exports = function (title, page, draft, dateStamp) {
var relative_path_without_extension;
var slug = slugify(title);
var name = name || slug;
name = name.split('/').join('-');
if (page) {
relat... | var slugify = require("./slugify");
var join = require("path").join;
var moment = require("moment");
module.exports = function(title, page, draft, dateStamp, slug) {
var relative_path_without_extension;
var name;
slug = slugify(title || slug);
name = name || slug;
name = name.split("/").join("-");
if (p... | Allow optional slug in function which determines an imported entry's path | Allow optional slug in function which determines an imported entry's path
| JavaScript | cc0-1.0 | davidmerfield/Blot,davidmerfield/Blot,davidmerfield/Blot,davidmerfield/Blot | ---
+++
@@ -1,23 +1,30 @@
-var slugify = require('./slugify');
-var join = require('path').join;
-var moment = require('moment');
+var slugify = require("./slugify");
+var join = require("path").join;
+var moment = require("moment");
-module.exports = function (title, page, draft, dateStamp) {
+module.exports = fun... |
62ddd0bc9c88d199090089d5506d4894dc5d8737 | Resources/ui/handheld/android/ResponsesNewWindow.js | Resources/ui/handheld/android/ResponsesNewWindow.js | function ResponsesNewWindow(surveyID) {
try {
var ResponsesIndexView = require('ui/common/responses/ResponsesIndexView');
var ResponsesNewView = require('ui/common/responses/ResponsesNewView');
var ConfirmDialog = require('ui/common/components/ConfirmDialog');
var self = Ti.UI.createWindow({
navBarHidden... | function ResponsesNewWindow(surveyID) {
try {
var ResponsesIndexView = require('ui/common/responses/ResponsesIndexView');
var ResponsesNewView = require('ui/common/responses/ResponsesNewView');
var ConfirmDialog = require('ui/common/components/ConfirmDialog');
var self = Ti.UI.createWindow({
navBarHidden... | Add a guard clause to ResponseNewWindow | Add a guard clause to ResponseNewWindow
| JavaScript | mit | nilenso/ashoka-survey-mobile,nilenso/ashoka-survey-mobile | ---
+++
@@ -19,7 +19,9 @@
});
var confirmDialog = new ConfirmDialog(L("confirm"), L("confirm_clear_answers"), onConfirm = function(e) {
+ if(view) {
view.cleanup();
+ }
view = null;
self.close();
}); |
fc112a5d2fe9418150c15740b297e2c74af72ab2 | lib/VideoCapture.js | lib/VideoCapture.js | // This module is responsible for capturing videos
'use strict';
const config = require('config');
const PiCamera = require('pi-camera');
const myCamera = new PiCamera({
mode: 'video',
output: process.argv[2],
width: config.get('camera.videoWidth'),
height: config.get('camera.videoHeight'),
timeout: config.... | // This module is responsible for capturing videos
'use strict';
const config = require('config');
const PiCamera = require('pi-camera');
const myCamera = new PiCamera({
mode: 'video',
output: process.argv[2],
width: config.get('camera.videoWidth'),
height: config.get('camera.videoHeight'),
timeout: config.... | Add minor delay to video capture. Hopefully this helps the camera moduel keep up. | Add minor delay to video capture. Hopefully this helps the camera moduel keep up.
| JavaScript | mit | stetsmando/pi-motion-detection | ---
+++
@@ -18,15 +18,17 @@
myCamera.config = Object.assign(myCamera.config, message.set);
}
else if (message.cmd === 'capture') {
- myCamera.record()
- .then((result) => process.send({
- response: 'success',
- result,
- error: null,
- }))
- .catch((error) => process.... |
e6516d3ef113bb35bcee5fd199ab06d14ca3f036 | src/main/webapp/styles.js | src/main/webapp/styles.js | const propertiesReader = require("properties-reader");
const defaults = {
"primary-color": "#1890ff",
"info-color": "#1890ff",
"link-color": "#1890ff",
"font-size-base": "14px",
"border-radius-base": "2px",
};
function formatAntStyles() {
const custom = {};
const re = /styles.ant.([\w+-]*)/;
try {
... | const propertiesReader = require("properties-reader");
const fs = require("fs");
const defaults = {
"primary-color": "#1890ff",
"info-color": "#1890ff",
"link-color": "#1890ff",
"font-size-base": "14px",
"border-radius-base": "2px",
};
const iridaConfig = "/etc/irida/irida.conf";
const propertiesConfig = "..... | Check to see what values are in which file. | Check to see what values are in which file.
| JavaScript | apache-2.0 | phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida | ---
+++
@@ -1,4 +1,5 @@
const propertiesReader = require("properties-reader");
+const fs = require("fs");
const defaults = {
"primary-color": "#1890ff",
@@ -7,23 +8,37 @@
"font-size-base": "14px",
"border-radius-base": "2px",
};
+const iridaConfig = "/etc/irida/irida.conf";
+const propertiesConfig = "..... |
f998f5fe7aedb8e33a81727c8371b690a698c73b | src/browser.js | src/browser.js | /*
*
* This is used to build the bundle with browserify.
*
* The bundle is used by people who doesn't use browserify.
* Those who use browserify will install with npm and require the module,
* the package.json file points to index.js.
*/
import Auth0Lock from './classic';
import Auth0LockPasswordless from './pa... | /*
*
* This is used to build the bundle with browserify.
*
* The bundle is used by people who doesn't use browserify.
* Those who use browserify will install with npm and require the module,
* the package.json file points to index.js.
*/
import Auth0Lock from './classic';
// import Auth0LockPasswordless from '.... | Exclude passwordless stuff from build | Exclude passwordless stuff from build
| JavaScript | mit | mike-casas/lock,mike-casas/lock,mike-casas/lock | ---
+++
@@ -8,15 +8,15 @@
*/
import Auth0Lock from './classic';
-import Auth0LockPasswordless from './passwordless';
+// import Auth0LockPasswordless from './passwordless';
global.window.Auth0Lock = Auth0Lock;
-global.window.Auth0LockPasswordless = Auth0LockPasswordless;
+// global.window.Auth0LockPasswordles... |
0458bfe4e4fbe287049722f4efa46df1fa2be52f | lib/js/SetBased/Abc/Core/Page/CorePage.js | lib/js/SetBased/Abc/Core/Page/CorePage.js | /*jslint browser: true, single: true, maxlen: 120, eval: true, white: true */
/*global define */
/*global set_based_abc_inline_js*/
//----------------------------------------------------------------------------------------------------------------------
define(
'SetBased/Abc/Core/Page/CorePage',
['jquery',
'Set... | /*jslint browser: true, single: true, maxlen: 120, eval: true, white: true */
/*global define */
/*global set_based_abc_inline_js*/
//----------------------------------------------------------------------------------------------------------------------
define(
'SetBased/Abc/Core/Page/CorePage',
['jquery',
'Set... | Align with changes in OverviewTable. | Align with changes in OverviewTable.
| JavaScript | mit | SetBased/php-abc-core,SetBased/php-abc-core | ---
+++
@@ -20,7 +20,7 @@
Page.enableDatePicker();
- OverviewTable.registerTable('.overview_table');
+ OverviewTable.registerTable('.overview-table');
$('.icon_action').click(Page.showConfirmMessage);
|
2ddf6d6222e6c0fa6f6b29665b90a2ba6fbd5d0f | src/app/libparsio/technical/services/update.service.js | src/app/libparsio/technical/services/update.service.js | /*
* Author: Alexandre Havrileck (Oxyno-zeta)
* Date: 25/06/16
* Licence: See Readme
*/
(function () {
'use strict';
angular
.module('libparsio.technical.services')
.factory('updateService', updateService);
/** @ngInject */
function updateService($q, updateDaoService, updateWrapperService, updateCacheSer... | /*
* Author: Alexandre Havrileck (Oxyno-zeta)
* Date: 25/06/16
* Licence: See Readme
*/
(function () {
'use strict';
angular
.module('libparsio.technical.services')
.factory('updateService', updateService);
/** @ngInject */
function updateService($q, updateDaoService, updateWrapperService, updateCacheSer... | Remove mock version in code | [App] Remove mock version in code
| JavaScript | mit | oxyno-zeta/LibParsio,oxyno-zeta/LibParsio | ---
+++
@@ -39,8 +39,7 @@
$q.all(promises).then(function(response){
var release = response[0];
- //var appVersion = response[1];
- var appVersion = '0.1.0';
+ var appVersion = response[1];
var version = updateWrapperService.clean(release['tag_name']);
|
74b84e2aa981ed9d8972afa97b998c8110a6dc6e | packages/net/__imports__.js | packages/net/__imports__.js | exports.map = {
'node': ['net.env.node.stdio'],
'browser': ['net.env.browser.csp'],
'mobile': []
}
exports.resolve = function(env, opts) {
return exports.map[env] || [];
};
| exports.map = {
'node': [
'net.env.node.stdio'
],
'browser': [
'net.env.browser.csp',
'net.env.browser.postmessage'
],
'mobile': []
}
exports.resolve = function(env, opts) {
return exports.map[env] || [];
};
| Fix for missing dynamic import | Fix for missing dynamic import
| JavaScript | mit | hashcube/js.io,hashcube/js.io,gameclosure/js.io,gameclosure/js.io | ---
+++
@@ -1,6 +1,11 @@
exports.map = {
- 'node': ['net.env.node.stdio'],
- 'browser': ['net.env.browser.csp'],
+ 'node': [
+ 'net.env.node.stdio'
+ ],
+ 'browser': [
+ 'net.env.browser.csp',
+ 'net.env.browser.postmessage'
+ ],
'mobile': []
}
|
f390c9257874452e2a7e2aa918502a713d7ea4e2 | app/assets/javascripts/discourse/views/topic_footer_buttons_view.js | app/assets/javascripts/discourse/views/topic_footer_buttons_view.js | /**
This view is used for rendering the buttons at the footer of the topic
@class TopicFooterButtonsView
@extends Discourse.ContainerView
@namespace Discourse
@module Discourse
**/
Discourse.TopicFooterButtonsView = Discourse.ContainerView.extend({
elementId: 'topic-footer-buttons',
topicBinding: 'contro... | /**
This view is used for rendering the buttons at the footer of the topic
@class TopicFooterButtonsView
@extends Discourse.ContainerView
@namespace Discourse
@module Discourse
**/
Discourse.TopicFooterButtonsView = Discourse.ContainerView.extend({
elementId: 'topic-footer-buttons',
topicBinding: 'contro... | Hide the Invite button in topics in secured categories | Hide the Invite button in topics in secured categories
| JavaScript | mit | natefinch/discourse,natefinch/discourse | ---
+++
@@ -21,7 +21,7 @@
if (Discourse.User.current()) {
if (!topic.get('isPrivateMessage')) {
// We hide some controls from private messages
- if (this.get('topic.details.can_invite_to')) {
+ if (this.get('topic.details.can_invite_to') && !this.get('topic.category.read_restricted'... |
b05684290a939fc4475335aad1d348b208a22d0f | cloud-functions-angular-start/src/firebase-messaging-sw.js | cloud-functions-angular-start/src/firebase-messaging-sw.js | importScripts('https://www.gstatic.com/firebasejs/3.6.6/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/3.6.6/firebase-messaging.js');
// Initialize the Firebase app in the service worker by passing in the
// messagingSenderId.
firebase.initializeApp({
// TODO add your messagingSenderId
messag... | importScripts('https://www.gstatic.com/firebasejs/3.6.6/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/3.6.6/firebase-messaging.js');
// Initialize the Firebase app in the service worker by passing in the
// messagingSenderId.
firebase.initializeApp({
// TODO add your messagingSenderId
messag... | Remove hard-coded message sender id. | Remove hard-coded message sender id.
| JavaScript | apache-2.0 | firebase/codelab-friendlychat-web,firebase/codelab-friendlychat-web | ---
+++
@@ -5,6 +5,6 @@
// messagingSenderId.
firebase.initializeApp({
// TODO add your messagingSenderId
- messagingSenderId: '662518903527'
+ messagingSenderId: ''
});
var messaging = firebase.messaging(); |
cfac1524d1d33c1c6594f54f29d7691b121f89ab | background.js | background.js | (function () {
'use strict';
// Awesome Browser Shortcuts
chrome.commands.onCommand.addListener(function (command) {
var tabQuery = {active: true, currentWindow: true};
if (command === 'toggle-pin') {
// Get current tab in the active window
chrome.tabs.query(tabQuery, function(tabs) {
var currentTab = ... | (function () {
'use strict';
// Awesome Browser Shortcuts
chrome.commands.onCommand.addListener(function (command) {
var tabQuery = {active: true, currentWindow: true};
if (command === 'toggle-pin') {
// Get current tab in the active window
chrome.tabs.query(tabQuery, function(tabs) {
var currentTab = ... | Fix Duplicate Tab shortcut typo | Fix Duplicate Tab shortcut typo
| JavaScript | mit | djadmin/browse-awesome | ---
+++
@@ -24,11 +24,11 @@
chrome.tabs.move(currentTab.id, {'index': currentTab.index + 1});
});
}
- else if (command === 'duplicate=tab') {
+ else if (command === 'duplicate-tab') {
chrome.tabs.query(tabQuery, function (tabs) {
var currentTab = tabs[0];
chrome.tabs.duplicate(currentTab.i... |
ab4b56ad493205c736dea190cd776e2c89a42e5b | servers.js | servers.js | var fork = require('child_process').fork;
var amountConcurrentServers = process.argv[2] || 2;
var port = initialPortServer();
var servers = [];
var path = __dirname;
var disableAutomaticGarbageOption = '--expose-gc';
for(var i = 0; i < amountConcurrentServers; i++) {
var portForServer = port + i;
var serverIde... | var fork = require('child_process').fork;
var amountConcurrentServers = process.argv[2] || 2;
var port = initialPortServer();
var servers = [];
var path = __dirname;
var disableAutomaticGarbageOption = '--expose-gc';
for(var i = 0; i < amountConcurrentServers; i++) {
var portForServer = port + i;
var serverIde... | Add log for child process | Add log for child process
| JavaScript | mit | eltortuganegra/server-websocket-benchmark,eltortuganegra/server-websocket-benchmark | ---
+++
@@ -10,6 +10,27 @@
var serverIdentifier = i;
console.log('Creating server: ' + serverIdentifier + ' - ' + portForServer + ' - ' + serverIdentifier);
servers[i] = fork( path +'/server.js', [portForServer, serverIdentifier], {execArgv: [disableAutomaticGarbageOption]});
+ servers[i].on('exit',... |
aa044b333981737f5abf7f3f620965af043aa914 | package.js | package.js | Package.describe({
name: 'staringatlights:autoform-generic-error',
version: '1.0.0',
// Brief, one-line summary of the package.
summary: 'Enables generic error handling in AutoForm.',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/abecks/meteor-autoform-ge... | Package.describe({
name: 'staringatlights:autoform-generic-error',
version: '1.0.0',
// Brief, one-line summary of the package.
summary: 'Enables generic error handling in AutoForm.',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/abecks/meteor-autoform-ge... | Remove version constaint on AutoForm | Remove version constaint on AutoForm
| JavaScript | mit | abecks/meteor-autoform-generic-error,abecks/meteor-autoform-generic-error | ---
+++
@@ -12,7 +12,7 @@
Package.onUse(function(api) {
api.versionsFrom('1.1.0.3');
- api.use(['templating', 'aldeed:autoform@5.3.0'], 'client');
+ api.use(['templating', 'aldeed:autoform'], 'client');
api.addFiles('autoform-generic-error.html', 'client');
api.addFiles('autoform-generic-error.js', 'cli... |
0c8ac4b02930dc5ea3dbec668ac5077f0d834237 | lib/requiredKeys.js | lib/requiredKeys.js |
module.exports = [
{
type: 'bitcoin',
purpose: 'payment'
},
{
type: 'bitcoin',
purpose: 'messaging'
},
{
type: 'ec',
purpose: 'sign'
},
{
type: 'ec',
purpose: 'update'
}
]
|
module.exports = [
{
type: 'bitcoin',
purpose: 'payment'
},
{
type: 'bitcoin',
purpose: 'messaging'
},
{
type: 'ec',
purpose: 'sign'
},
{
type: 'ec',
purpose: 'update'
},
{
type: 'dsa',
purpose: 'sign'
}
]
| Revert "don't require dsa key" | Revert "don't require dsa key"
This reverts commit ce8f474a2832374f109129d9847cdce526ae318c.
| JavaScript | mit | tradle/identity | ---
+++
@@ -15,5 +15,9 @@
{
type: 'ec',
purpose: 'update'
+ },
+ {
+ type: 'dsa',
+ purpose: 'sign'
}
] |
0e28a2b11bd735e90410736548b88acd5c910eaf | src/components/layout.js | src/components/layout.js | import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import Navigation from '../components/navigation'
export default ({ children }) => (
<StaticQuery
query={graphql`
query NavigationQuery {
allMongodbPlacardDevSportsAndCountries {
edges {
node {
... | import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import Navigation from '../components/navigation'
export default ({ children }) => (
<StaticQuery
query={graphql`
query NavigationQuery {
allMongodbPlacardDevSportsAndCountries {
edges {
node {
... | Use short syntax version for the Fragment. | Use short syntax version for the Fragment.
| JavaScript | mit | LuisLoureiro/placard-wrapper | ---
+++
@@ -19,12 +19,12 @@
}
`}
render={data => (
- <div>
+ <>
<Navigation
sports={data.allMongodbPlacardDevSportsAndCountries.edges}
/>
{children}
- </div>
+ </>
)}
/>
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.