commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
95a08dff5534587ddbbec9183f01a92a1bc52642 | Update TestFilters2D.js | CNN/jsPerf/TestFilters2D.js | CNN/jsPerf/TestFilters2D.js | import * as ShuffleNetV2_MobileNetV2_Block from "../Layer/ShuffleNetV2_MobileNetV2_Block.js";
export { Base };
/**
* Testing Filters of multiple blocks.
*
* @member {string} name
* This test filters' name.
*
* @member {number[]} sourceImageHeightWidth
* The size (i.e. [ height, width ]) of the source image... | JavaScript | 0 | @@ -4808,16 +4808,24 @@
ge = tf.
+browser.
fromPixe
|
81cbf8a45fbe35cc556c476a9790b5a5ba848d70 | Support name as an alternative to friendlyName in command line create | src/command-line-tool.js | src/command-line-tool.js |
const core = require('./core'),
nodeGetoptLong = require('node-getopt-long'),
P = require('bluebird'),
config = require('./config'),
readline = require('readline'),
logger = require('./logger')
const commands = {
'list': list(),
'create': create(),
'run': run(),
'ensure-no-development-scripts': ensu... | JavaScript | 0.000001 | @@ -1576,16 +1576,21 @@
dlyName%7C
+name%7C
n=s', 'F
|
f07cec5f1d4024ae95188c98a36bf05e329bb2db | allow generic callback to getMp3 | server.js | server.js | var url = require('url'),
fs = require('fs'),
http = require('http'),
bee = require('beeline'),
SC_CLIENT_ID = '1288146c708a6fa789f74748fe960337';
var errorHandler = function (err, response) {
console.log(err);
response.writeHead(500);
response.end();
};
var serveError = function (response) {
... | JavaScript | 0 | @@ -1684,32 +1684,33 @@
sponse, callback
+s
) %7B%0A var respon
@@ -1900,16 +1900,20 @@
callback
+s%5B0%5D
(data, r
@@ -1911,32 +1911,46 @@
%5D(data, response
+, callbacks%5B1%5D
);%0A %7D);%0A %7D;%0A
@@ -2013,24 +2013,34 @@
ck, response
+, callback
) %7B%0A track
@@ -2336,26 +2336,16 @@
se,
-serveMp3... |
7275d4ab75302defa8e949cc891ad3ad70492612 | update library constructor to set the api key if provided | lib/library.js | lib/library.js | // --- Dependencies ---
var join = require('path').join;
var debug = require('debug')('zotero:library');
var Client = require('./client');
var proxy = require('./proxy');
var items = require('./items');
var collections = require('./collections');
var utils = require('./utils');
var extend = utils.extend;
var omit =... | JavaScript | 0 | @@ -1212,16 +1212,242 @@
.user;%0A%0A
+ /**%0A * The API key to use for this library. The key will be%0A * added automatically to every request made for this%0A * library.%0A *%0A * @property key%0A * @type String%0A */%0A if (options.key) this.key = options.key;%0A%0A
/**%0A
@@ -1645,16 +1645,23 ... |
f88c9958ac8a9340499bd9a7a52f94816eb17582 | Fix color stripping from console logger (#11853) | lib/logsink.js | lib/logsink.js | import npmlog from 'npmlog';
import { createLogger, format, transports } from 'winston';
import { fs, logger } from 'appium-support';
import dateformat from 'dateformat';
import _ from 'lodash';
// set up distributed logging before everything else
logger.patchLogger(npmlog);
global._global_npmlog = npmlog;
// npmlog... | JavaScript | 0 | @@ -1919,16 +1919,54 @@
t,%0A
+ args.logNoColors ? stripColorFormat :
coloriz
|
630130725e7f70de7f2b13980aa52a8b5a2e7274 | Fix actions and decisions | src/components/Editor.js | src/components/Editor.js | import React from "react";
import styled from "styled-components";
import {
Editor as FabricEditor,
EditorContext,
WithEditorActions
} from "@atlaskit/editor-core";
const EditorWrapper = styled.div`
flex-grow: 1;
overflow-y: scroll;
overflow-x: hidden;
height: 100%;
position: relative;
display: flex;... | JavaScript | 0.000035 | @@ -633,61 +633,38 @@
rmer
-Provider = () =%3E (%7B%0A encode(doc) %7B%0A return %7B%0A
+ = (doc) =%3E Promise.resolve(%7B%0A
co
@@ -684,20 +684,16 @@
JSON(),%0A
-
time:
@@ -704,20 +704,16 @@
.now(),%0A
-
textCo
@@ -736,20 +736,16 @@
ontent,%0A
-
size:
@@ -771,19 +771,8 @@
gth%0A
... |
100dabb77e7b3eaacfd8ca9ff40ba4113d30dd84 | Reset ball/strike count on pa end | js/pt-model.js | js/pt-model.js | /* pt-model.js
* -----------
* A model for the pitch tracker data
*/
// the model object containing all information from this session
var Model = {};
// an array to hold all pitches
Model.plateAppearances = [];
// counters
var paCount = 0;
var ballCount = 0;
var strikeCount = 0;
// get the session date and put i... | JavaScript | 0.000001 | @@ -2826,16 +2826,45 @@
pearance
+ and prepares for the next pa
%0AptModel
@@ -2953,10 +2953,40 @@
Result;%0A
+%09ballCount = strikeCount = 0;%0A
%7D%0A
|
6445ef598da67942a863241847d411c150410568 | remove @styled-system/css code from footer | src/components/Footer.js | src/components/Footer.js | import React from 'react'
import PropTypes from 'prop-types'
import { useStaticQuery, graphql } from 'gatsby'
import styled from 'styled-components'
import { Box, Flex, Text } from 'rebass'
import css from '@styled-system/css'
import ArrowLink from './ArrowLink'
import { List, ListItem } from './Typography'
import { th... | JavaScript | 0 | @@ -187,45 +187,8 @@
ss'%0A
-import css from '@styled-system/css'%0A
impo
@@ -1105,18 +1105,12 @@
%3C
-Flex%0A
+Text
as=
@@ -1113,25 +1113,88 @@
as=%22footer%22
-%0A
+ fontFamily=%22monospace%22 mt=%22auto%22 mb=%7B%5B3, 3, 4%5D%7D%3E%0A %3CFlex%0A
alignI
@@ -1207,16 +1207,18 @@
center%22%... |
59fdf87fd49135e1a9074e751b92cd099e869304 | add zindex to close button to bring it in front of spinner | src/components/Header.js | src/components/Header.js | import PropTypes from 'prop-types';
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import defaults from '../theme';
import deepMerge from '../utils/deepMerge';
import Icon from './Icon';
function Header ({
customControls,
onClose,
showCloseButton,
closeButtonTitle,
...props,... | JavaScript | 0 | @@ -1243,16 +1243,29 @@
bottom',
+%0A%09%09zIndex: 1,
%0A%0A%09%09// i
|
3c4d324f12b4f26d91b259917f694e06b2b6858b | allow for user to specify an alternate tile class to use with WFS | lib/OpenLayers/Layer/WFS.js | lib/OpenLayers/Layer/WFS.js | /* Copyright (c) 2006 MetaCarta, Inc., published under the BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the full
* text of the license. */
// @require: OpenLayers/Layer/Grid.js
// @require: OpenLayers/Layer/Markers.js
/**
* @class
*/
OpenLayers.Layer.WFS = Class.create();
OpenLayers.L... | JavaScript | 0.000001 | @@ -467,18 +467,16 @@
specify
-a
special
@@ -484,36 +484,41 @@
lass
- to use to display features.
+es for features and tiles.%0A *
%0A
@@ -563,16 +563,8 @@
of
-feature
beha
@@ -576,28 +576,76 @@
. Th
-is property%0A *
+e defaults are %0A * set here, but to override it, the property
sh... |
a38fc2ae352996e3401e903bd39475326d7fc8c5 | Add row & remove row primers | js/repeater.js | js/repeater.js | /* global wp, _, kirki */
wp.customize.controlConstructor['kirki-repeater'] = wp.customize.kirkiDynamicControl.extend( {
initKirkiControl: function() {
var control = this,
rowDefaults = {};
_.each( control.params.fields, function( field, key ) {
rowDefaults[ key ] = ( ! _.isUndefined( field['default'... | JavaScript | 0 | @@ -169,15 +169,291 @@
=
+ this;%0A%0A%09%09control.container.html( kirki.template.repeaterControl( control ) );%0A%0A%09%09control.repeaterRowAddButton();%0A%09%09control.repeaterRowRemoveButton();%0A%0A%09%7D,%0A%0A%09/**%0A%09 * Actions to run when clicking on the %22add row%22 button.%0A%09 */%0A%09repeaterRowA... |
e29963ef0d90c42e0d96fcda39e25b10a8a0583c | Add request counter to logging | server.js | server.js | let PROTO_PATH = __dirname + "/wkrpt401.proto"
let grpc = require('grpc');
let proto = grpc.load(PROTO_PATH).wkrpt401;
function getBestPersonality(call, callback) {
let userData = call.request;
let name = userData.name;
let level = userData.level;
var maxPersonalityName = "";
var maxPersonalityValue = -1;
... | JavaScript | 0 | @@ -114,16 +114,38 @@
pt401;%0A%0A
+var requestCount = 0%0A%0A
function
@@ -844,16 +844,33 @@
yValue;%0A
+ requestCount++%0A
consol
@@ -935,16 +935,53 @@
se + %22'%22
+ + %22 (request #%22 + requestCount + %22)%22
);%0A cal
|
139ea6db87ae71d676e207cc97042615e3e04ab0 | Add trace to fix Travis build failure. | lib/package.js | lib/package.js | 'use strict';
var path = require('path'),
cwd = process.cwd(),
fs = require('fs'),
deferred = require('deferred'),
rimraf = deferred.promisify(require('rimraf')),
mkdirp = deferred.promisify(require('mkdirp')),
log = require('npmlog'),
Download = require('download'),
cache = require('np... | JavaScript | 0 | @@ -3115,47 +3115,8 @@
()%7B%0A
- console.log('cached');%0A
@@ -3895,36 +3895,259 @@
-fs.chmodSync(filepath, '755'
+var s = fs.statSync(filepath);%0A console.log('stat before : ', filepath, parseInt(s.mode.toString(8), 10));%0A fs.chmodSync(filepath, '755');%0A s = fs.statSync(filep... |
8e4d1b4c14710e988cbefae02e53df5c78203485 | fix initialize function | js/template.js | js/template.js | TrelloPowerUp.initialize({
'card-buttons': function(t, options){
return [{
icon: './images/logo.png',
text: 'Button Text',
callback: function(t){
return t.popup({
title: "Card Button Popup",
url: './overlay.html'
});
}
}];
}
});
| JavaScript | 0.000027 | @@ -1,295 +1,1396 @@
-TrelloPowerUp.initialize(%7B%0A 'card-buttons': function(t, options)%7B%0A return %5B%7B%0A icon: './images/logo.png',%0A text: 'Button Text',%0A callback: function(t)%7B%0A return t.popup(%7B%0A title: %22Card Button Popup%22,%0A url: './overlay.html'%0... |
601312ec9afa51ad75e55acd57e875683b65a61f | store status in database | server.js | server.js | var express = require('express'),
path = require('path'),
exec = require('child_process').exec,
i18n = require('i18n-abide'),
_ = require('underscore'),
backboneio = require('backbone.io'),
conf = require('config'),
mbc = require('mbc-common'),
moment = require('moment'... | JavaScript | 0 | @@ -4436,16 +4436,84 @@
%7D%0A%7D);%0A
+statusbackend.use(backboneio.middleware.mongoStore(db, 'status'));%0A%0A
_(%5Bmedia
|
8985eeab9c3fb70e1d864986508eb1f603357788 | Update tripcode.js | js/tripcode.js | js/tripcode.js | "use strict";
(function() {
var readyCount = 0;
var tickInterval = 100;
var tickIntervalContainer = null;
var currentPass = "";
var passInput = null;
var tripInput = null;
var suffix = "H.";
var saltTable =
".............................................../0123456789ABCDEF" +
"GABCDEFGHIJKLMNOPQRS... | JavaScript | 0 | @@ -159,24 +159,96 @@
;%0A var
-tripInpu
+passCount = null;%0A var tripInput = null;%0A var replInput = null;%0A var replCoun
t = null
@@ -1122,16 +1122,200 @@
ntities%0A
+ replInput.value = pass;%0A replCount.innerHTML = pass.length;%0A if (pass.length %3E 8) %7B%0A replCount.className = %22bad%2... |
ec58e904376bcbb4a17d9fba4eac64bccc53c8c6 | make log to use localstorage service | js/util/log.js | js/util/log.js | var config = config || require('../../config');
var _ = require('lodash');
var LS = require('../plugins/LocalStorage');
var ls = new LS();
/**
* @desc
* A simple logger that wraps the <tt>console.log</tt> methods when available.
*
* Usage:
* <pre>
* log = new Logger('copay');
* log.setLevel('info');
* l... | JavaScript | 0 | @@ -64,24 +64,25 @@
('lodash');%0A
+%0A
var LS = req
@@ -2972,71 +2972,91 @@
if (
-typeof localStorage !== %22undefined%22 && localStorage.getItem) %7B%0A
+ls.getItem) %7B%0A ls.getItem(%22config%22, function(err, value) %7B%0A if (err) return;%0A
va
@@ -3086,41 +3086,18 @@
rse(
-localStorage.getItem(%22co... |
d3f114f33b76e9b64879fc6c845f1702cc74da22 | fix undefined bug | src/redux/actions.js | src/redux/actions.js | import {globalStore} from '../listener';
import {findMirrorExitId, findStartExitId} from '../engines/strape';
import {
EXIT_STRATEGY_MIRROR,
EXIT_STRATEGY_START,
EXIT_STRATEGY_MEMORY,
BINDER_TYPE,
} from '../constants';
export const NAME = '@@keys';
export const ACTIVE_KEYBINDER = [NAME, '/ACTIVE_KEYBINDER'].j... | JavaScript | 0.000003 | @@ -2582,32 +2582,98 @@
State()%5BNAME%5D);%0A
+ newState%5BbinderId%5D = %7B...newState%5BbinderId%5D, ...binderState%7D;%0A
if (newState
@@ -2811,74 +2811,8 @@
%7D%0A
- newState%5BbinderId%5D = %7B...newState%5BbinderId%5D, ...binderState%7D;%0A
|
74a4f9146b7d0c7459860e88a1f7f9e0a47d3fc4 | Fix express views directory when PWD differs from the script directory | server.js | server.js | var _ = require('lodash');
var express = require('express');
var compress = require('compression');
var cookieParser = require('cookie-parser');
var cookieSession = require('cookie-session');
var bodyParser = require('body-parser');
var morgan = require('morgan');
var util = require('util');
var config = require('./li... | JavaScript | 0 | @@ -1135,16 +1135,56 @@
'ejs');
+%0Aapp.set('views', __dirname + '/views');
%0A%0Aapp.us
|
e1847a9ddbb53efb1430847c1435282affd3e90a | remove pointless deletion of arguments | src/remoteStorage.js | src/remoteStorage.js | define([
'require',
'./lib/widget',
'./lib/baseClient',
'./lib/store',
'./lib/sync',
'./lib/wireClient',
'./lib/nodeConnect',
'./lib/util'
], function(require, widget, baseClient, store, sync, wireClient, nodeConnect, util) {
"use strict";
var claimedModules = {}, modules = {};
var logger = uti... | JavaScript | 0.000004 | @@ -5490,58 +5490,8 @@
rg;%0A
- delete arguments%5Barguments.length - 1%5D;%0A
|
8a592fda028513bbec602cf6322c7853bcd6b18f | fix hit test bug | src/renderer.base.js | src/renderer.base.js | 'use strict';
var Utils = require('./helpers/utils');
var Easing = require('./helpers/easing');
var Tayberry = require('./base').Tayberry;
class Renderer {
constructor(ctx, tayberry, series) {
this.ctx = ctx;
this.tb = tayberry;
this.series = null;
this.renderedSeries = null;
... | JavaScript | 0.000001 | @@ -4071,16 +4071,21 @@
Index =
+this.
startCat
|
2be398ea10e768f71a4224e6d24a10e51e27d2c5 | Fix state name bug in ephemeral. | lib/axiom/core/ephemeral.js | lib/axiom/core/ephemeral.js | // Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | JavaScript | 0 | @@ -2203,30 +2203,30 @@
l('W
-AIT
+ait
', 'C
-LOSED
+losed
', 'E
-RROR
+rror
');%0A
@@ -4407,22 +4407,22 @@
l('C
-LOSED
+losed
', 'E
-RROR
+rror
'))%0A
@@ -4726,19 +4726,19 @@
meral('W
-AIT
+ait
');%0A th
@@ -5000,20 +5000,20 @@
meral('R
-EADY
+eady
');%0A th
@@ -5223,20 +5223,20 @@
l('R
-EADY
+eady
', '... |
4f8fac31bd55d371d2adf41b76df50e46ced03b0 | Add Nodemailer | server.js | server.js | var express = require("express");
var handlebars = require("handlebars");
var cons = require("consolidate"); // template engine consolidation library
var http = require("http");
var fs = require('fs');
var path = require('path');
var nodemailer = require("nodemailer");
var mail = nodemailer.mail;
var app = express();
... | JavaScript | 0 | @@ -290,16 +290,230 @@
er.mail;
+%0A// create reusable transport method (opens pool of SMTP connections)%0Avar transport = nodemailer.createTransport(%22SES%22, %7B%0A AWSAccessKeyID: process.env.AWS_KEY_ID,%0A AWSSecretKey: process.env.AWS_SECRET_KEY%0A%7D);
%0A%0Avar ap
@@ -1561,63 +1561,750 @@
-console... |
f4fbebb7ff7ea83aebc7a64b7cc680180fc3d9c1 | use error before result in callback functions | lib/promise.js | lib/promise.js | /* global rdf:true, Promise:false */
'use strict';
var funcTemplate = function (func, PromiseClass) {
return function () {
var args = arguments;
return new PromiseClass(function (resolve, reject) {
var callback = function (result, error) {
if (error) {
reject(error);
} else ... | JavaScript | 0 | @@ -239,21 +239,21 @@
on (
-result, error
+error, result
) %7B%0A
|
d03be37c90e2e7143b72009cadcb57e1ad65f329 | add runasync function | lib/promise.js | lib/promise.js | /**
* Created by obiwankenobi on 11/08/2015.
*/
"use strict";
var VALID_STATES = {
"PENDING": "__PENDING__",
"ACCEPTED": "__ACCEPTED__",
"REJECTED": "__REJECTED__"
};
function resolvePromise ( promise, x ) {
var wasResolved = false;
return wasResolved;
}
function then ( promise, onSuccess, on... | JavaScript | 0.000003 | @@ -177,16 +177,89 @@
__%22%0A%7D;%0A%0A
+/**%0A *%0A * @param %7BPromise%7D promise%0A * @param x%0A * @returns %7Bboolean%7D%0A */%0A
function
@@ -352,139 +352,429 @@
%0A%7D%0A%0A
-function then ( promise, onSuccess, onError ) %7B%0A%7D%0A%0Afunction reject ( promise, reason ) %7B%0A%7D%0A%0Afunction accept ( prom... |
b3d0aa65156e3480b19427af645ac6f483da899a | Remove spurious requires and other cruft from server.js | server.js | server.js | var http = require('http');
var connect = require('connect');
var gulp = require('gulp');
var path = require('path');
var pkg = require('./package.json');
var send = require('./lib/gulp-send');
var template = require('gulp-template');
var buildDir = 'dist';
var ROOT = __dirname;
var app = connect();
var staticDir =... | JavaScript | 0 | @@ -64,221 +64,25 @@
var
-gulp = require('gulp');%0Avar path = require('path');%0Avar pkg = require('./package.json');%0Avar send = require('./lib/gulp-send');%0Avar template = require('gulp-template');%0A%0Avar buildDir = 'dist';%0Avar ROOT = __dirname
+buildDir = 'dist'
;%0A%0Av
@@ -146,17 +146,16 @@
ildDir;%0A
-... |
f9036bc69db138ba18f71a1fada1e5516af55462 | remove some spaces & linebreaks | lib/promise.js | lib/promise.js | (function () {
function unit ( x ) {
return x;
}
var
PENDING = -1,
FULFILLED = 0,
REJECTED = 1;
function transitionTo ( promise, state, value ) {
if ( promise.state !== PENDING ) return promise;
promise.state = state;
promise.value = value;
... | JavaScript | 0.000144 | @@ -1386,19 +1386,16 @@
on%22 ) %7B%0A
-%0A%0A%0A
|
5bda9a44c2f2886f9a008533f7e8b21a087ffa5a | Fix wrong array parsing for array of subtasks | server.js | server.js | var restify = require('restify');
var bunyan = require('bunyan');
var util = require("util");
var config = require('./param.json');
var logger = bunyan.createLogger({
name: "mantisbt-sync-jira"
});
var server = restify.createServer({
name: "mantisbt-sync-jira",
log: logger
});
var mantisClient = restify... | JavaScript | 0.00037 | @@ -760,24 +760,99 @@
arentKey) %7B%0A
+%0A%09console.log(%22Start create subtasks%22 + JSON.stringify(config.subTasks));%0A%0A
if (conf
@@ -945,29 +945,72 @@
Key);%0A%09%0A
- for (
+%09%09for (var i = 0; i %3C config.subTasks.length; i++) %7B%0A%09%09%09
var subt
@@ -1013,18 +1013,17 @@
subtask
-in
+=... |
cedb75d3f3716e14374428d9bf58f1637cbf7355 | Remove unused config variable | server.js | server.js | var path = require('path')
var express = require('express')
var nunjucks = require('nunjucks')
var routes = require('./app/routes.js')
var app = express()
var bodyParser = require('body-parser')
var config = require('./app/config.js')
var port = (process.env.PORT || 3000)
var IS_HEROKU = process.env.hasOwnProperty('IS_... | JavaScript | 0.000002 | @@ -192,48 +192,8 @@
r')%0A
-var config = require('./app/config.js')%0A
var
|
299378e879411d43a45ad1e222fe311db56bf3f9 | add express.loger | server.js | server.js | var fs = require('fs'),
execFile = require('child_process').execFile,
express = require('express'),
request = require('request'),
_ = require('underscore'),
temp = require('temp'),
config = require('./config'),
app = express(),
basePath = config.basePath,
convertArguments = config.co... | JavaScript | 0.000722 | @@ -532,24 +532,51 @@
proxy%7D);%0A%7D%0A%0A
+app.use(express.logger());%0A
app.get(/%5E(%5C
|
db7581312e7e8249c6f7d527ab9c153b3db935a5 | add headers | server.js | server.js | 'use strict';
const express = require('express');
const app = express();
const path = require('path');
const cors = require('express-cors')
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const knex = require('./knex');
const bcrypt = require ('bcrypt');
const saltRounds = 10;... | JavaScript | 0.000001 | @@ -646,16 +646,361 @@
%5D%0A%7D));%0A%0A
+app.use(function (req, res, next) %7B%0A res.setHeader('Access-Control-Allow-Origin', '*');%0A res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');%0A res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');%... |
2a4be5fd4f7e4fe26ada98198223fcf42a803e7c | Add insert mongo operation for POST issues | server.js | server.js | 'use strict';
const express = require('express');
const bodyParser = require('body-parser');
const MongoClient = require('mongodb').MongoClient;
const app = express();
app.use(express.static('static'));
app.use(bodyParser.json());
const issues = [
{
id: 1, status: 'Open', owner: 'Ravan',
created: new Date(... | JavaScript | 0 | @@ -231,399 +231,8 @@
);%0A%0A
-const issues = %5B%0A %7B%0A id: 1, status: 'Open', owner: 'Ravan',%0A created: new Date('2016-08-15'), effort: 5, completionDate: undefined,%0A title: 'Error in console when clicking Add',%0A %7D,%0A %7B%0A id: 2, status: 'Assigned', owner: 'Eddie',%0A created: new Da... |
96626ae1b6cc5f61ae7dcbad2df167f89e69823e | change port | server.js | server.js | var connect = require('connect');
var serveStatic = require('serve-static');
var proxy = require('proxy-middleware');
var app = connect();
var TSHEETS_URL = 'https://rest.tsheets.com/';
app.use(serveStatic(__dirname + '/dist'));
app.use('/tsheets', proxy(TSHEETS_URL));
app.listen(3000);
| JavaScript | 0.000001 | @@ -280,11 +280,9 @@
ten(
-300
+8
0);%0A
|
cbf2218e0f82195139af5ced03d7cd5f71b267c6 | Remove the logger for production | server.js | server.js |
/**
* Module dependencies.
*/
require('coffee-script');
if(typeof process.env.NODE_ENV === 'undefined')
process.env.NODE_ENV = 'development'
if (process.env.NODE_ENV === 'development')
process.env.PORT = 3000
process.env.HOST = 'localhost'+process.env.PORT
if (process.env.NODE_ENV === 'test')
process.e... | JavaScript | 0 | @@ -965,24 +965,72 @@
uploads/');%0A
+ if (process.env.NODE_ENV == 'development')%7B%0A
app.use(ex
@@ -1042,24 +1042,28 @@
.logger());%0A
+ %7D%0A
app.use(ex
|
85d427d8d13320bab57e2b0ba6707143f8a66bc5 | Remove excessive cache header | server.js | server.js | require('dotenv/config')
const jalla = require('jalla')
const mount = require('koa-mount')
const mongoose = require('mongoose')
const compose = require('koa-compose')
const router = require('./lib/router')
const lang = require('./lib/middleware/lang')
const app = jalla('index.js', { css: 'index.css' })
app.keys = [pr... | JavaScript | 0.000001 | @@ -1121,25 +1121,8 @@
ge=0
-, must-revalidate
')%0A
|
c63476b3384d342e336490e9bd709ef938bba58c | Update MobileNetV1.js | CNN/Conv/Stage/Stage_BlockParamsCreator/MobileNetV1.js | CNN/Conv/Stage/Stage_BlockParamsCreator/MobileNetV1.js | export { MobileNetV1 };
import * as Pool from "../../../util/Pool.js";
import * as ValueDesc from "../../../Unpacker/ValueDesc.js";
import { Params } from "../Stage_Params.js";
import { Base } from "./Base.js";
/**
* Provide parameters for MobileNetV1 (i.e. no-add-inut-to-output, pointwise1 is same size of pointwise... | JavaScript | 0 | @@ -3107,24 +3107,32 @@
this.out
-C
+put_c
hannel
-s
+Count
0 = this
@@ -3169,24 +3169,32 @@
this.out
-C
+put_c
hannel
-s
+Count
1 = 0;%0A
@@ -3486,16 +3486,24 @@
.out
-C
+put_c
hannel
-s
+Count
0;%0A
|
31df41432710382a85fe38e7521ab94a4674ca82 | enable all tests | client/components/Links2.spec.js | client/components/Links2.spec.js | import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
import { Links } from './Links';
describe('Links Component - List Items', function () {
let git;
let stack;
let error;
let wrapper;
let spy;
function mockGit() {
return [
... | JavaScript | 0.000002 | @@ -976,13 +976,8 @@
it
-.only
('re
|
b894f205c6783fa43001cac5d1b38e3cb219490f | Fix spell problem | client/src/actions/collection.js | client/src/actions/collection.js | import { createAction } from 'redux-actions';
import { uniq } from 'lodash';
import { hideModal } from './activeModal';
import { showNotification } from './notification';
import * as api from '../utilities/api';
/* Fetched all collections */
export const fetchCollectionsSuccess = createAction('FETCH_COLLECTIONS_SUCCE... | JavaScript | 0.000005 | @@ -4079,16 +4079,17 @@
ts.raste
+r
s.has(o)
|
f714340a68f9daa853f25ee53bf04d75b045e582 | Allow passing an optional DomHelper to goog.ui.AnimatedZippy's constructor. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=45105665 | closure/goog/ui/animatedzippy.js | closure/goog/ui/animatedzippy.js | // Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | JavaScript | 0.000001 | @@ -1521,16 +1521,86 @@
false.%0A
+ * @param %7Bgoog.dom.DomHelper=%7D opt_domHelper An optional DOM helper.%0A
* @cons
@@ -1697,27 +1697,103 @@
opt_expanded
-) %7B
+, opt_domHelper) %7B%0A var domHelper = opt_domHelper %7C%7C goog.dom.getDomHelper();%0A
%0A // Create
@@ -1853,24 +1853,25 @@
apper =
-goog.dom... |
846a65230e66064b03a71e30e862a0caaf401912 | move static propTypes & defaultProps outside of the component class | components/button/ButtonGroup.js | components/button/ButtonGroup.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import omit from 'lodash.omit';
import Box, { omitBoxProps } from '../box';
import Button from './Button';
import cx from 'classnames';
import isComponentOfType from '../utils/is-component-of-type';
import theme from './theme.css';
class... | JavaScript | 0 | @@ -354,560 +354,8 @@
t %7B%0A
- static propTypes = %7B%0A /** The content to display inside the button group. */%0A children: PropTypes.node,%0A /** A class name for the wrapper to give custom styles. */%0A className: PropTypes.string,%0A /** If true, child components will be displayed segmented. */%0... |
06b96852ba1be48138f2afac1dedca732dfd7401 | fix async eventhandler | config-helpers/after.scenario.js | config-helpers/after.scenario.js | // See hooks https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/hooks.md
// and https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/event_handlers.md
const {defineSupportCode} = require('cucumber');
const path = require('path');
const fs = require('fs-extra');
const Reporting = re... | JavaScript | 0.000073 | @@ -559,18 +559,8 @@
step
-, callback
) =%3E
@@ -592,32 +592,39 @@
) %7B%0A
+return
browser.reportin
@@ -694,16 +694,30 @@
-callback
+return Promise.resolve
();%0A
|
0a5a962770bf41ff605365d9d27339b2e6c646c9 | Simplify set | jsonpointer.js | jsonpointer.js | var console = require("console");
var traverse = function(obj, pointer, value) {
// assert(isArray(pointer))
var part = unescape(pointer.shift());
if(typeof obj[part] === "undefined") {
throw("Value for pointer '" + pointer + "' not found.");
return;
}
if(pointer.length != 0) { // keep traversin!
... | JavaScript | 0.000003 | @@ -1119,28 +1119,19 @@
obj;%0A %7D
- else %7B%0A
+%0A
-
pointer
@@ -1161,18 +1161,16 @@
ice(1);%0A
-
return
@@ -1201,20 +1201,16 @@
value);%0A
- %7D%0A
%7D%0A%0Aexpor
|
ccb8f035d5c127efd4382640433657d1ee54ed11 | handle multiple timolo event listeners | junctionbox.js | junctionbox.js | var fs = require('fs-extra');
var gpio = require('rpi-gpio');
var SPI = require('spi');
var config = require('nconf');
var async = require("async");
var PythonShell = require('python-shell');
var leds = require("./modules/leds.js");
var audio = require("./modules/mic.js");
var tempSensor = require("./modules/am2302.js... | JavaScript | 0 | @@ -3985,16 +3985,66 @@
olo'))%7B%0A
+ timolo.removeAllListeners('message');%0A
|
7c1fbbfea0681bb4949697d2ccfe3c00ee2bd695 | Add more browsers | karma.sauce.js | karma.sauce.js | /**
* Dependencies.
*/
var env = require('envc');
/**
* Browsers.
*/
var browsers = {
'SL_IE_8': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '8'
},
'SL_IE_9': {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 200... | JavaScript | 0 | @@ -86,16 +86,326 @@
ers = %7B%0A
+ 'SL_Chrome': %7B%0A base: 'SauceLabs',%0A browserName: 'chrome'%0A %7D,%0A 'SL_Firefox_26': %7B%0A base: 'SauceLabs',%0A browserName: 'firefox',%0A platform: 'Windows XP',%0A version: '26'%0A %7D,%0A 'SL_Safari': %7B%0A base: 'SauceLabs',%0A browserName:... |
141ea876f93bf9f2991219adc2c1edbf6a03143b | update error check | front/src/app.js | front/src/app.js | var request = require('superagent');
var HUB_HOST = 'http://127.0.0.1:3000';
function signin(nameOrEmail, password, callback) {
request.post(HUB_HOST + '/api/signin/', {
username: nameOrEmail,
password: password
}, function(err, res) {
if (err) {
return alert('Error: ' + err);
}
var rsp =... | JavaScript | 0 | @@ -340,18 +340,13 @@
rsp.
-code !== 0
+error
) %7B%0A
|
069e035942650e74f23847b1bc29010cec14d9c1 | Fix metadata output validation | src/middleware/validation/server_output_syntax.js | src/middleware/validation/server_output_syntax.js | 'use strict';
const { validate } = require('../../validation');
const { actions } = require('../../idl');
// Check API output, for the errors that should not happen, i.e. server-side (e.g. 500)
// In short: response should be an array of objects
const validateServerOutputSyntax = function ({ action, response }) {
... | JavaScript | 0.000689 | @@ -822,47 +822,536 @@
a: %7B
+%7D,
%0A
- type: 'object',%0A %7D,%0A %7D
+%7D,%0A // Metadata has the same signature as data, i.e. object or array of objects%0A allOf: %5B%0A %7B%0A properties: %7B%0A if: %7B%0A data: %7B%0A type: 'object'%0A ... |
0ce50c1bb05efb4581f49b7b8773f85511546a56 | Fix close on ipad/tablets | L.Control.Basemaps.js | L.Control.Basemaps.js | L.Control.Basemaps = L.Control.extend({
_map: null,
includes: L.Evented ? L.Evented.prototype : L.Mixin.Event,
options: {
position: "bottomright",
tileX: 0,
tileY: 0,
tileZ: 0,
layers: [] // list of basemap layer objects, first in list is default and added to map with... | JavaScript | 0.000015 | @@ -4466,32 +4466,271 @@
altIdx%5D, %22alt%22);
+%0A%0A%09%09%09if(L.Browser.touch) %7B%0A%09%09%09 // fix close on ipad tablets ...%0A%09%09%09 if(L.DomUtil.hasClass(container, %22closed%22))%7B%0A%09%09%09%09L.DomUtil.removeClass(container, %22closed%22);%0A%09%09%09 %7Delse%7B%0A%09%09%09%09L.DomUtil.addCl... |
91be782420cf8e5f434af8dc376f07fbfc6a9ac8 | add some documentation to PageSchema | models.js | models.js | var mongoose = require('mongoose'),
path = require('path');
var TemplateSchema = new mongoose.Schema({
template_name: { type: String, validate: [function(n) { return n.length > 0 }, 'Template must have a name'] },
body: String
});
var PageSchema = new mongoose.Schema({
path: { type: String,
... | JavaScript | 0 | @@ -269,32 +269,219 @@
ngoose.Schema(%7B%0A
+ // The path to the page within webroot. i.e. if webroot is '/webroot/' and%0A // a page's .path is '/index.html', the page will be compiled and saved to%0A // '/webroot/index.html'%0A
path: %7B type
@@ -482,32 +482,32 @@
%7B type: String,%0A
-
v... |
8802130d79ed413ea23175122f6ce72e35bd745a | Add spec | lib/assets/test/spec/cartodb/common/dialogs/create/listing/imports/import_data_view.spec.js | lib/assets/test/spec/cartodb/common/dialogs/create/listing/imports/import_data_view.spec.js | var cdb = require('cartodb.js');
cdb.admin = require('cdb.admin');
var _ = require('underscore');
var ImportDataView = require('../../../../../../../../javascripts/cartodb/common/dialogs/create/listing/imports/import_data_view');
describe('common/dialogs/create/imports/import_data_view', function() {
beforeEach(fu... | JavaScript | 0.000001 | @@ -1133,24 +1133,324 @@
e');%0A %7D);%0A%0A
+ it('should return to a default state', function() %7B%0A this.view.model.set(%7B state: %22selected%22, value: %22http://www.cartodb.com%22 %7D);%0A this.view.model.set(%7B state: %22idle%22 %7D);%0A expect(this.view.model.get(%22type%22)).toEqual(undefined);%0... |
3870a324039d1e60240dc3c67b1e64aba298f805 | remove the 'coverage' postfix from the class names used in the example | examples/playground.js | examples/playground.js | var pileup = require('pileup');
// We are going to use the same data source for multiple tracks
var bamSource = pileup.formats.bam({
url: '/test-data/synth3.normal.17.7500000-7515000.bam',
indexUrl: '/test-data/synth3.normal.17.7500000-7515000.bam.bai'
});
var sources = [
{
viz: pileup.viz.genome(),
isR... | JavaScript | 0.000001 | @@ -834,25 +834,16 @@
'normal
--coverage
',%0A n
@@ -1051,17 +1051,8 @@
umor
--coverage
',%0A
|
7e36cc37cb75809528080bdd413ad63a72f29b75 | remove unnecessary code | atomCssConfig.js | atomCssConfig.js | var path = require('path');
module.exports = {
cssDest: './css/main.css',
options: {
namespace: '#root',
},
configs: {
breakPoints: {
},
custom: {
'1': '1px solid #000',
},
classNames: []
}
} | JavaScript | 0.00242 | @@ -1,33 +1,4 @@
-var path = require('path');%0A%0A
modu
|
83b5f3fdb3b9ebcf931b1a11fa3e63afb225559c | Refactor StreamInsert | lib/common/stream-insert.js | lib/common/stream-insert.js | 'use strict';
var util = require('util');
var Transform = require('stream').Transform;
function StreamInsert(insertions, search, before) {
if (!(this instanceof StreamInsert)) {
return new StreamInsert(insertions, search, before);
}
Transform.call(this);
this.insertions = Array.isArray(insertions) ? in... | JavaScript | 0.000001 | @@ -125,22 +125,23 @@
search,
-before
+prepend
) %7B%0A if
@@ -225,22 +225,23 @@
search,
-before
+prepend
);%0A %7D%0A%0A
@@ -379,27 +379,29 @@
his.
-before = before
+prepend = prepend
%7C%7C
@@ -677,102 +677,60 @@
-if (this.search.test(line) && this.before) %7B
+var pushes = %5Bline%5D;%0A
%... |
6dfd9d21541ceb87e845e5e24afdabfa5dc46b28 | Remove double scaling from Sandbox | lib/sandbox.js | lib/sandbox.js | 'use strict';
var _ = require('lodash');
var units = require('./units')();
var profile = require('./profilefunctions')();
function init ( ) {
var sbx = {};
function reset () {
sbx.properties = [];
sbx.scaleBg = scaleBg;
sbx.displayBg = displayBg;
sbx.roundInsulinForDisplayFormat = roundInsulinFor... | JavaScript | 0.000001 | @@ -4646,28 +4646,16 @@
5m: ' +
-sbx.scaleBg(
scaled%5B2
@@ -4655,17 +4655,16 @@
caled%5B2%5D
-)
+ ' ' +
|
2d66d246d15a87427a65af64e9152013536e8b24 | Add configuration requirements and building notes | sidney.js | sidney.js | var example = require("washington")
var assert = require("assert")
example("Async: by default")
example("Endpoint: match with glob style wildcards")
example("Repeater: Repeat events back and forth on repeater venue")
example("Repeater: Scope out prefix when sending to repeater")
example("Repeater: Add prefix ... | JavaScript | 0 | @@ -332,20 +332,592 @@
ing from repeater%22)%0A
+%0Aexample(%22Configuration: disable async per call%22)%0A%0Aexample(%22Configuration: disable async per venue%22)%0A%0Aexample(%22Configuration: set event clone to shallow per call%22)%0A%0Aexample(%22Configuration: set event clone to disabled per call%22)%0A%0Aexample... |
aba6615221d239b11f60ea078808328d6d5a1c50 | Add Link component to new event link | pages/index.js | pages/index.js | // @flow
import React from 'react';
import Head from 'next/head';
import Button from '@material/react-button';
import TopAppBar from '@material/react-top-app-bar';
import MaterialIcon from '@material/react-material-icon';
import UserInfo from '../components/UserInfo';
import '../styles/style.css';
export default () =>... | JavaScript | 0 | @@ -59,16 +59,45 @@
/head';%0A
+import Link from 'next/link'%0A
import B
@@ -1315,22 +1315,20 @@
%3C
-Button
+Link
href=%22e
@@ -1338,16 +1338,41 @@
t/new%22%3E%0A
+ %3CButton%3E%0A
@@ -1455,16 +1455,18 @@
+
%3C/Button
@@ -1459,32 +1459,52 @@
%3C/Button%3E%0A
+ ... |
e3fb952b7848f712fcd2f5d209fec0ce10d2ebf2 | Fix Uglify-JS options | lib/init/assets/compression.js | lib/init/assets/compression.js | "use strict";
/*global nodeca, _*/
// stdlib
var fs = require('fs');
var path = require('path');
var crypto = require('crypto');
// 3rd-party
var Mincer = require('mincer');
var uglify = require('uglify-js');
var Csso = require('csso');
var FsTools = require('nlib').Vendor.FsTools;
... | JavaScript | 0.000076 | @@ -392,25 +392,24 @@
//////////%0A%0A
-%0A
var CACHE_DI
@@ -495,16 +495,35 @@
CFG = %7B%0A
+ gen_options: %7B%0A
beauti
@@ -570,16 +570,18 @@
e.env),%0A
+
indent
@@ -590,16 +590,20 @@
evel: 2%0A
+ %7D%0A
%7D;%0Avar S
|
88015746500cb27d232c7b00a19fa2f8f584e6c1 | Update install-deps.js | scripts/install-deps.js | scripts/install-deps.js | #!/usr/bin/env node
const sh = require('shelljs')
const path = require('path')
const vars = require('./vars')
const log = require('npmlog')
const localBinPath = path.resolve(__dirname, '../node_modules/.bin');
const npx = `${localBinPath}/npx`;
log.info('deps', 'app')
sh.cd('app')
sh.exec(`${npx} yarn install --forc... | JavaScript | 0.000001 | @@ -330,16 +330,81 @@
('..')%0A%0A
+sh.cd('web')%0Ash.exec(%60$%7Bnpx%7D yarn install --force%60)%0Ash.cd('..')%0A%0A
vars.bui
|
55dd839644914c133f87733ddcd6f4abb3e3dd5f | fix `plotter.Job.point()` referenceError | lib/src/job.js | lib/src/job.js | const SVG = require('./svg');
const sh = require('kool-shell');
const config = require('./../config.json');
function Job(jobName) {
let buffer = [];
let penIsUp = true;
const api = {
callback: function(){},
getName() { return jobName; },
getBuffer() { return [...buffer]; },
// ---------... | JavaScript | 0.000004 | @@ -3751,24 +3751,28 @@
y) %7B%0A
+api.
move(x, y);%0A
|
edee7e5f28feb139ecdc91b2dc78d358e269b777 | Bump cache version to reset paths on upgrade | lib/storage.js | lib/storage.js | "use strict";
const {sep} = require("path");
const AtomFS = require("atom-fs");
const LRUCache = require("lru-cache");
const isWin = "\\" === sep;
const MAX_SIZE = 10000;
const version = 0x004;
let locked = false;
let data = null;
/**
* Cache for session-specific data.
*
* @class
*/
class Sto... | JavaScript | 0 | @@ -199,9 +199,9 @@
0x00
-4
+5
;%0Ale
|
2217d652f6e42b245ea60fe4a429cfba6af76ecc | remove .only | test/lib.imageUrlToAmazonUrl.js | test/lib.imageUrlToAmazonUrl.js | import config from 'config';
import imageUrlToAmazonUrl from '../server/lib/imageUrlToAmazonUrl';
import { expect } from 'chai';
import sinon from 'sinon';
//import knox from '../server/gateways/knox';
import MultiPartUpload from 'knox-mpu-alt'
const SAMPLE = 'https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/1dca3d82-... | JavaScript | 0.000001 | @@ -351,21 +351,16 @@
describe
-.only
('lib.im
|
7955f33198cb3f3b44171f56d0800635144d3fb4 | Remove redundant require call | test/parliament/helpers.spec.js | test/parliament/helpers.spec.js | // Include our testing frameworks
const expect = require("chai").expect; // Expectations
const sinon = require("sinon"); // Spying
const mockery = require("mockery");
const Bluebird = require("Bluebird");
// Include the subject of our tests
const helpers = require("../../lib/parliament/helpers");
const languag... | JavaScript | 0.000014 | @@ -170,46 +170,8 @@
y%22);
-%0Aconst Bluebird = require(%22Bluebird%22);
%0A%0A//
|
e8e3c8d4b0075f13530939d38158b2a98bfc0af3 | Revert "Fix lib/to_tree.js on sections with `parent` === undefined" | lib/to_tree.js | lib/to_tree.js | "use strict";
/**
* to_tree(source[, root = null]) -> array
* - source (array): array of sections
* - root (mongodb.BSONPure.ObjectID|String): id of common root for result first level.
*
* Build sections tree (nested) from flat sorted array.
**/
module.exports = function (source, root) {
var result = [];
... | JavaScript | 0 | @@ -762,16 +762,25 @@
e.parent
+ !== null
) %7B%0A
|
ba3d800e0a0cf3d559f0e6dc249ca8f09fa4b0a6 | Allow custom anchors for the tooltip | lib/tooltip.js | lib/tooltip.js | var React = require('react'),
ReactDOM = require('react-dom'),
PureRenderMixin = require('react-pure-render/mixin'),
TooltipInternal = require('./tooltip_internal');
const nubClasses = {
top: 'bottom-nub tooltip-nub',
bottom: 'top-nub tooltip-nub',
left: 'right-nub tooltip-nub',
right: 'left-nub tooltip-... | JavaScript | 0 | @@ -463,16 +463,120 @@
string,%0A
+ anchor: typeof Element === 'undefined' ? React.PropTypes.any : React.PropTypes.instanceOf(Element),%0A
chil
@@ -2205,16 +2205,37 @@
anchor=%7B
+this.props.anchor %7C%7C
this._co
|
c508e7e79b0413d45884ab5b7c0ad6401bead806 | Add to bulk docs testing | tests/test.bulk_docs.js | tests/test.bulk_docs.js | module('bulk_docs', {
setup : function () {
this.name = 'test' + genDBName();
}
});
asyncTest('Testing bulk docs', function() {
pouch.open(this.name, function(err, db) {
var docs = makeDocs(5);
db.bulkDocs({docs: docs}, function(err, results) {
ok(results.length === 5, 'results length matches')... | JavaScript | 0 | @@ -880,48 +880,521 @@
i%5D._
-deleted = true;%0A %7D%0A start(
+rev = results%5Bi%5D.rev;%0A docs%5Bi%5D._deleted = true;%0A %7D%0A db.put(docs%5B0%5D, function(err, doc) %7B%0A db.bulkDocs(%7Bdocs: docs%7D, function(err, results) %7B%0A ok(results%5B0%5D.error... |
d4beaddefd9be492f727b737125a9530fb3138cd | test workover, adjust to new markup | src/pat/passwordstrength/passwordstrength.test.js | src/pat/passwordstrength/passwordstrength.test.js | define([
"expect",
"jquery",
"pat-registry",
"mockup-patterns-passwordstrength",
], function (expect, $, registry, PasswordStrength) {
"use strict";
window.mocha.setup("bdd");
$.fx.off = true;
/* ==========================
TEST: Password strength
========================== */
... | JavaScript | 0.000001 | @@ -1519,35 +1519,23 @@
find(%22.p
-at-passwordstrength
+rogress
%22).lengt
@@ -1576,97 +1576,40 @@
ect(
-%0A $el.find(%22.pat-passwordstrength-meter%22).hasClass(%22level-0%22)%0A
+$el.find(%22.progress-bar%22).length
).to
@@ -1618,20 +1618,17 @@
e.equal(
-true
+1
);%0A
@@ -3411,3... |
2c498fabea08c64e2cd520888d3d21fa948a81e8 | Remove unused siteMetadata | gatsby-config.js | gatsby-config.js | module.exports = {
siteMetadata: {
city: 'Helsinki',
country: 'Finland',
dribbble: 'https://dribbble.com/iiroj',
email: 'iiro@jappinen.fi',
github: 'https://github.com/iiroj',
jobTitle: 'UX & UI Designer',
linkedin: 'https://fi.linkedin.com/in/iiroj',
... | JavaScript | 0 | @@ -36,281 +36,8 @@
: %7B%0A
- city: 'Helsinki',%0A country: 'Finland',%0A dribbble: 'https://dribbble.com/iiroj',%0A email: 'iiro@jappinen.fi',%0A github: 'https://github.com/iiroj',%0A jobTitle: 'UX & UI Designer',%0A linkedin: 'https://fi.linkedin.com/in/iiroj',%0A
... |
1dbb6fc34f4ab570bfcb754b9e702ffabcef5198 | fix prettier@2 breaking changes | gatsby-config.js | gatsby-config.js | require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
siteUrl: "https://mondora.com",
title: ":mondora - Building software, creating benefit",
description:
"Software and advisory company specialized in custom cloud solutions.... | JavaScript | 0.000086 | @@ -60,17 +60,16 @@
DE_ENV%7D%60
-,
%0A%7D);%0A%0Amo
@@ -579,17 +579,16 @@
view:-1%22
-,
%0A %7D,%0A
@@ -958,17 +958,16 @@
lmBcorp%22
-,
%0A
@@ -964,33 +964,32 @@
p%22%0A %7D
-,
%0A %7D,%0A
@@ -1338,17 +1338,16 @@
imal-ui%22
-,
%0A
@@ -1344,33 +1344,32 @@
i%22%0A ... |
fdb80f1a554e50fb93297d822a96fe1d2af3bc0d | Modify Tile Shader to produce scaled layers that look identical to the Canvas renderer scaling (add uCentreOffset, scale the drawing coordinates, subtract uCentreOffset). | src/pixi/renderers/webgl/shaders/TilemapShader.js | src/pixi/renderers/webgl/shaders/TilemapShader.js | /**
* @author Mat Groves http://matgroves.com/ @Doormat23
*/
/**
* @class TilemapShader
* @constructor
* @param gl {WebGLContext} the current WebGL drawing context
*/
PIXI.TilemapShader = function(gl)
{
/**
* @property _UID
* @type Number
* @private
*/
this._UID = PIXI._UID++;
/*... | JavaScript | 0 | @@ -892,28 +892,62 @@
m vec2 u
-ScrollOffset
+CentreOffset;%22,%0A %22 uniform vec2 uScale
;%22,%0A
@@ -1123,16 +1123,17 @@
on.xy =
+(
aPositio
@@ -1141,17 +1141,43 @@
.xy
-- uScroll
++ uCentreOffset) * uScale - uCentre
Offs
@@ -1892,30 +1892,30 @@
;%0A this.u
-Scroll
+Centre
Offset = gl.
@@ -1... |
c74f05f9d2fddfecdd6dc1d50c9fd915575d123a | Simplify default values for TransactionOutput | lib/protocol/TransactionOutput.js | lib/protocol/TransactionOutput.js | 'use strict';
var LEB128 = require('./LEB128'),
MarkerOutput = require('./MarkerOutput'),
Opcode = require('bitcore/lib/Opcode'),
OutputType = require('./OutputType'),
Parser = require('bitcore/util/BinaryParser'),
Put = require('bufferput'),
Script = require(... | JavaScript | 0.000007 | @@ -1681,16 +1681,38 @@
e =
+(
value
-%7C%7C
+!= undefined) ? value :
nul
@@ -1997,26 +1997,8 @@
+
- ((this.value) ?
thi
@@ -2029,23 +2029,41 @@
-: null)
+
+ ', '
|
4c436c9adc291619546493e1c9cb1c04b8b07476 | fix typo | lib/service/protocol/Websocket.js | lib/service/protocol/Websocket.js | 'use strict';
const
_protocol = 'websocket',
WebSocketServer = require('ws').Server,
ClientConnection = require('../../core/clientConnection'),
Request = require('kuzzle-common-objects').Request,
BadRequestError = require('kuzzle-common-objects').errors.BadRequestError;
let
_proxy = {};
/**
* @construct... | JavaScript | 0.999991 | @@ -460,17 +460,16 @@
if (!
-_
proxy.co
|
5bc97a313fe96f87876575f151bcbd92aa2b4e2a | fix base64 encoding function | lib/shared/addon/oauth/service.js | lib/shared/addon/oauth/service.js | import Service, { inject as service } from '@ember/service';
import { addQueryParam, addQueryParams, popupWindowOptions } from 'shared/utils/util';
import { get, set } from '@ember/object';
import C from 'shared/utils/constants';
const googleOauthScope = 'openid profile email';
const githubOauthScope = 'read:org';
ex... | JavaScript | 0.0013 | @@ -1041,22 +1041,8 @@
_',%0A
- '=': ''%0A
@@ -1123,16 +1123,22 @@
m%5Bchar%5D
+ %7C%7C ''
)%0A %7D,%0A%0A
|
351c5dfbeb7b6a12cf8a913dddb1834b42f2d03b | add select change event listener | lib/tool-bar-thera-button-view.js | lib/tool-bar-thera-button-view.js | 'use babel';
import {CompositeDisposable, Emitter} from 'atom';
const electron = require('electron')
const GENERIC_DEVICE = 'GenericDevice'
export default class ToolBarTheraView {
constructor (options) {
this.element = document.createElement('select')
this.element.classList.add('form-control-tools')
... | JavaScript | 0.000001 | @@ -465,31 +465,27 @@
= '
-Click to load simulator
+no device connected
'%0A
@@ -549,16 +549,139 @@
ion1);%0A%0A
+ this.element.addEventListener(%22change%22, function () %7B%0A alert(this.options%5Bthis.selectedIndex%5D.innerHTML)%0A %7D);%0A%0A
// i
|
35d732543cea582db91f67d18af1b91d39b0ac61 | use static call, and check is a virtual property now | src/classes/Component.js | src/classes/Component.js |
"use strict";
import {ListController} from '../controllers/ListController';
import {CrudController} from '../controllers/CrudController';
import {Navigation} from '../services/Navigation';
let nav = new Navigation();
let defaults = {
list: {
options: {
controller: ListController,
... | JavaScript | 0 | @@ -189,36 +189,8 @@
';%0A%0A
-let nav = new Navigation();%0A
let
@@ -3455,19 +3455,26 @@
-n
+N
av
+igation
.registe
|
1bc2fed3bd74fd56a187ce970230186f8d5d5e50 | Tweak help text | src/cli/commands/init.js | src/cli/commands/init.js | import * as constants from '../../constants'
import * as colors from '../colors'
import * as emoji from '../emoji'
import * as utils from '../utils'
export const usage = 'init [file]'
export const description =
'Creates Tailwind config file. Default: ' +
colors.file(utils.getSimplePath(constants.defaultConfigFile)... | JavaScript | 0 | @@ -481,31 +481,25 @@
ate
-a
postcss
-
+.
config
-uration
+.js
fil
|
88656963aa2f2b37f2a2d6ef5bd8c1c2a95f1485 | call service to delete todo and then dispatch | lib/scripts/actions/actions.js | lib/scripts/actions/actions.js | var constants = require('../constants/constants'),
service = require('../services/todo-service');
var actions = {
addTodo: function(text) {
var _this = this;
service.addTodo({text: text}).then(function() {
_this.dispatch(constants.ADD_TODO, {text: text});
});
},
toggleTodo: function(todo) ... | JavaScript | 0 | @@ -479,32 +479,104 @@
ion(todo) %7B%0A
+var _this = this;%0A service.deleteTodo(todo).then(function() %7B%0A _
this.dispatch(co
@@ -609,16 +609,25 @@
: todo%7D)
+;%0A %7D);
%0A %7D,%0A%0A
|
825dc3683d23c4ca72c15f739e700243420e55e2 | Handle extraction of errors with <Error> tags | lib/service_interface/query.js | lib/service_interface/query.js | /**
* Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | JavaScript | 0.000007 | @@ -1923,24 +1923,64 @@
body);%0A %7D
+%0A%0A if (data.Error) data = data.Error;
%0A if (dat
|
a9fd0e44e4f1313702b92b64052a2c24533e8e48 | allow 'sublayer_id' | src/overpass-layer-list.js | src/overpass-layer-list.js | require('./overpass-layer-list.css')
var isTrue = require('./isTrue')
function OverpassLayerList (layer, options) {
// compatibility <1.0
let parentDom
if (arguments.length > 1 && arguments[1].constructor.name === 'OverpassLayer') {
parentDom = arguments[0]
layer = arguments[1]
console.error('overpa... | JavaScript | 0.000029 | @@ -1,16 +1,43 @@
+/* eslint camelcase: 0 */%0A%0A
require('./overp
|
2504a1fe38a5fadf9cacd5f199b1eb838ce7f40a | Allow object to be null (= deleted) | lib/user_rpc/userModelStoreRPC.js | lib/user_rpc/userModelStoreRPC.js | var debug = require('debug')('notification:rpc');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var when = require('when');
var whennode = require('when/node');
var Joi = require('joi');
var VALID_MODELS = ['room', 'thing'];
function UserModelStoreServiceFacet(service, name) {
this.... | JavaScript | 0 | @@ -3000,16 +3000,28 @@
wn(true)
+.allow(null)
%0A %7D));%0A
|
148abda6ec5a0a304ed7970513178076c5baa89b | update the generate method to handle all the invalid case | src/commands/generate.js | src/commands/generate.js | var path = require('path'),
fs = require('fs'),
exec = require('child_process').exec,
argv = require('minimist')(process.argv.slice(2)),
gulp = require('gulp'),
gutil = require('gulp-util');
var create = function(generatorPath, options) {
if (argv._.length < 2) {
gutil.log(gutil.colors.red("[... | JavaScript | 0.000018 | @@ -253,16 +253,71 @@
ions) %7B%0A
+ // Error out when user did not provide any arugments%0A
if (ar
@@ -751,18 +751,76 @@
'mixin'%5D
-;%0A
+,%0A gen;%0A%0A // Arugments must be in this format: type:name
%0A if( g
@@ -911,43 +911,454 @@
s%5B0%5D
-;%0A if (validTypes.indexOf(type))
+,%0A name = gen... |
15d4a40aa654b13be17e8ed730b192c59ec98982 | remove unnecessary next param | lib/templates/server/routes.js | lib/templates/server/routes.js | (function () {
'use strict';
/* jshint -W098 */
// The Package is past automatically as first parameter
module.exports = function (__class__, app, auth, database) {
app.get('/api/__name__/example/anyone', function (req, res, next) {
res.send('Anyone can access this');
});
app.get('/api/__na... | JavaScript | 0.000002 | @@ -222,38 +222,32 @@
nction (req, res
-, next
) %7B%0A res.se
@@ -357,38 +357,32 @@
nction (req, res
-, next
) %7B%0A res.se
@@ -511,38 +511,32 @@
nction (req, res
-, next
) %7B%0A res.se
@@ -660,14 +660,8 @@
res
-, next
) %7B%0A
|
ebf52c99aace7decddb0867be48788924108ea8d | Add some more debug to error cases when fetching signatures | app/assets/javascripts/faye-authentication.js | app/assets/javascripts/faye-authentication.js | function FayeAuthentication(client, endpoint, options) {
this._client = client;
this._endpoint = endpoint || '/faye/auth';
this._signatures = {};
this._outbox = {};
this._options = options || {};
this._waiting_signatures = [];
this._timer = null;
}
FayeAuthentication.prototype.endpoint = function() {
r... | JavaScript | 0 | @@ -1001,16 +1001,411 @@
%7D)%5B0%5D;%0A
+ if (typeof signature === 'undefined') %7B%0A self.error('No signature found in ajax reply for channel ' + params.channel + ' and clientId ' + params.clientId);%0A %7D else if (signature && !signature.signature) %7B%0A self.error('Error when fetching s... |
cf4765a1df10adf26ef8f85429be6cdbce7e3e5b | Revert "util: make DeflateRaw Checksum hook into _transform so that it mimicks the norms." | lib/util/DeflateRawChecksum.js | lib/util/DeflateRawChecksum.js | var zlib = require('zlib');
var inherits = require('util').inherits;
var util = require('./');
function DeflateRawChecksum(options) {
zlib.DeflateRaw.call(this, options);
this.checksum = util.crc32.createCRC32();
this.digest = null;
this.rawSize = 0;
this.compressedSize = 0;
this.on('data', function(ch... | JavaScript | 0 | @@ -526,26 +526,21 @@
ototype.
-_transform
+write
= funct
@@ -550,34 +550,18 @@
(chunk,
-encoding, callback
+cb
) %7B%0A if
@@ -682,18 +682,13 @@
ype.
-_transform
+write
.cal
@@ -706,26 +706,10 @@
nk,
-encoding, callback
+cb
);%0A%7D
|
c508734f6e58404cb71d5e832a1840185fe86856 | satisfy jslint | src/scripts/directives/fa-header-footer-layout.js | src/scripts/directives/fa-header-footer-layout.js | /**
* @ngdoc directive
* @name faHeaderFooterLayout
* @module famous.angular
* @restrict EA
* @description
* This directive will create a Famo.us HeaderFooterLayout containing
* a Header, Content, and Footer based on the order of its child elements.
* See [https://famo.us/docs/views/HeaderFooterLayout]
*
* @... | JavaScript | 0.998436 | @@ -3920,16 +3920,17 @@
e.$id !=
+=
scope.$
@@ -3931,24 +3931,24 @@
cope.$id) %7B%0A
-
@@ -3990,16 +3990,17 @@
if
+
(_number
@@ -4016,16 +4016,17 @@
n === 1)
+
%7B%0A
@@ -4094,39 +4094,41 @@
%7D
+
else if
+
(_numberOfChildr
@@ -4136,16 +4136,17 @@
n === 2)
+
%7... |
556a28d729b46d3c2c5c5a949e500a67b118074e | Replace partials[name] with spec.partials[name] and unpack single-line if | source.js | source.js | /*!
ICanHaz.js version @VERSION@ -- by @HenrikJoreteg
Licensed under the "You should follow @HenrikJoreteg on Twitter to use this" license. (Because, apparently I'm a twitter whore like that)
This is a simple template storage and retrieval system.
Templates are stored in the document as script elements with type="tex... | JavaScript | 0 | @@ -1172,33 +1172,16 @@
-%0A
if(addAs
@@ -1189,16 +1189,40 @@
artial)
+%7B%0A %09spec.
partials
@@ -1238,32 +1238,50 @@
templateString;%0A
+ %7D%0A
|
cf1abedd9119ec321b06dec1befba6bc9de18c3c | use switch over if statement | source.js | source.js | import 'core-js/modules/es6.object.assign';
import 'core-js/modules/es6.array.from';
export function parallax(selector, options) {
let lastPosition = -1;
// Establish default settings
const settings = Object.assign({
speed: 0.15,
}, options);
const elems = (() => {
if (typeof selector === 'string')... | JavaScript | 0.001272 | @@ -257,37 +257,28 @@
%0A%0A
-cons
+le
t elems
- = (() =%3E %7B%0A if
+;%0A%0A switch
(ty
@@ -290,20 +290,26 @@
selector
- ===
+) %7B%0A case
'string
@@ -309,32 +309,29 @@
'string'
-) %7B
+:
%0A
- return
+elems =
Array.f
@@ -380,104 +380,97 @@
-%7D else if (Array.isArray(selector)) %7B%0A ... |
d620d92b84656ddf360467cc19881ead878fc320 | apply macro only in current open ticket | src/pages/helpdesk/desk.js | src/pages/helpdesk/desk.js | (function ($) {
"use strict";
if (!$) {
return;
}
$(function () {
window.gorgiasApplyMacroSuggestion = function (macroId) {
$('.ui-macrobox-select button').click();
$('.ui-macrobox-select button').click();
$('a[itemid=' + macroId + ']').click();
... | JavaScript | 0 | @@ -155,33 +155,138 @@
) %7B%0A
-$
+var activeTicket = $('.active_ticket_type:not(.ui-tabs-hide)');%0A var button = activeTicket.find
('.ui-macrobox-s
@@ -291,32 +291,53 @@
-select button')
+;%0A%0A button
.click();%0A
@@ -346,39 +346,14 @@
-$('.ui-macrobox-select
but... |
ae1e032ee55a4dbcecf787ba30b4eb408f647261 | Add key prop to video thank you page. (#1746) | src/pages/jan-thank-you.js | src/pages/jan-thank-you.js | import React from 'react';
import MozillaFooter from '../components/mozilla/footer.js';
import ThankYouHeader from '../components/jan-thank-you-header.js';
import ga from 'react-ga';
var pageDataSet = {
cute: {
videoSrc: [
"https://d24kjznqej0s8a.cloudfront.net/2016/eoy/Cute/Cute_Final.mp4",
"https:/... | JavaScript | 0 | @@ -2040,16 +2040,23 @@
videoSrc
+, index
) %7B%0A
@@ -2082,16 +2082,37 @@
(%3Csource
+ key=%7B%22vid-%22 + index%7D
src=%7Bvi
|
2611ec27e7d35cf3761a780f9d2b0b8e5e753aac | Disable optimization for main.data file | gulp/scripts.js | gulp/scripts.js | 'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var babel = require('babel-core');
var vm = require('vm');
var util = require('util');
var fs = require('fs');
var browserSync = require('browser-sync');
var webpack = require('webpack-stream');
var $ = require('gulp... | JavaScript | 0.000001 | @@ -1624,16 +1624,34 @@
ata.js%22)
+, %7Bcompact: false%7D
).code;%0A
|
4aff5a06b82567944e45cac08369e2188d7beaef | correct check conditions | src/compiler/compiler.js | src/compiler/compiler.js | 'use strict';
var summary = module.exports = require('datalib/src/stats').summary;
require('../globals');
/**
* Module for compiling Vega-lite spec into Vega spec.
*/
var compiler = module.exports = {};
var Encoding = require('../Encoding'),
axis = compiler.axis = require('./axis'),
legend = compiler.legend =... | JavaScript | 0.000001 | @@ -3577,32 +3577,43 @@
%0A if (legends
+.length %3E 0
) %7B%0A output
@@ -3931,16 +3931,27 @@
if (axes
+.length %3E 0
) %7B%0A
@@ -3993,16 +3993,27 @@
(legends
+.length %3E 0
) %7B%0A
|
d3c16bcd6ef03f3b57211cab4d8c4c97d15e22a9 | disable Hover prop | src/components/Button.js | src/components/Button.js | const React = require('react');
const Radium = require('radium');
const Spin = require('./Spin');
const StyleConstants = require('../constants/Style');
const Icon = require('../components/Icon');
const Button = React.createClass({
propTypes: {
actionText: React.PropTypes.string,
icon: React.PropTypes.stri... | JavaScript | 0.000001 | @@ -279,24 +279,64 @@
pes.string,%0A
+ disableHover: React.PropTypes.bool,%0A
icon: Re
@@ -353,24 +353,24 @@
pes.string,%0A
-
isActive
@@ -2525,32 +2525,65 @@
':hover':
+ this.props.disableHover ? null :
%7B%0A bac
@@ -3270,32 +3270,65 @@
':hover':
+ this.props.disableHover ? n... |
3f0d3f6a37bcc7fed442510202b61a569ccc2d8c | Add default branch for case statement | src/components/Button.js | src/components/Button.js | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from './Icon';
import translations from '../translations';
const { labels } = translations;
const iconMap = {
create: 'plus-square',
delete: 'trash',
publish: 'send-o',
save: 'save',
upload: 'uplo... | JavaScript | 0.000001 | @@ -769,20 +769,9 @@
abel
- = '';%0A let
+,
tri
@@ -785,13 +785,8 @@
abel
- = ''
;%0A
@@ -1191,16 +1191,93 @@
break;%0A
+ default:%0A label = '%3CLABEL%3E';%0A triggeredLabel = '%3CNEXT LABEL%3E';%0A
%7D%0A%0A c
|
e525ddb3f36c7abe61d8c848cb8bcc7b8c347ba1 | Fix empty avg charts | app/components/stationsAvg/StationAvgChart.js | app/components/stationsAvg/StationAvgChart.js | // @flow
import React, {Component, PropTypes} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {remote} from 'electron';
import {Icon} from 'antd';
import moment from 'moment';
import LineChart from './../chart/LineChart';
import StationAvgMenu from './StationAvgMenu';... | JavaScript | 0.999999 | @@ -1938,36 +1938,8 @@
%5B%5D;
-%0A let lineHasValues = %7B%7D;
%0A%0A
@@ -1996,32 +1996,64 @@
rangeKey) =%3E %7B%0A
+ let lineHasValues = %7B%7D;%0A
let lati
@@ -3442,20 +3442,18 @@
();%0A
-cons
+le
t isEmpt
@@ -3470,22 +3470,141 @@
redData.
-length
+some((latitudeRange) =%3E %7B%0A ... |
cfc36b953b8ed2525565273e934f8e5da8fc2a05 | Fix merits like Fast Reflexes not adding their bonuses to pools | app/javascript/lca/utils/calculated/_pools.js | app/javascript/lca/utils/calculated/_pools.js | import { specialtiesFor, maxExcellency } from '.'
export const attr = (character, attribute) => character[`attr_${attribute}`]
export const abil = (character, ability) => {
let abil
if (ability.startsWith('martial arts')) {
abil = character.abil_martial_arts.find((art) => `martial arts (${art.style})` == abili... | JavaScript | 0 | @@ -847,17 +847,17 @@
ength %3E
-1
+0
)%0A mb
@@ -886,19 +886,20 @@
(a,
-v
+b
) =%3E
-v + a
+a + (b
.sit
@@ -917,16 +917,20 @@
0 :
-a
+b
.bonus)
+, 0)
%0A%0A
|
86a44de823b84e6a472db58cb23eb6c35eafa6a4 | Fix private chat | helpers/chat.js | helpers/chat.js | var Crypto = require("crypto");
var Database = require("./database");
var config = require("./config");
var Tools = require("./tools");
var createHash = function(user) {
var sha256 = Crypto.createHash("sha256");
sha256.update(user.hashpass || user.ip);
return sha256.digest("hex");
};
module.exports.sendM... | JavaScript | 0 | @@ -1251,17 +1251,82 @@
nderHash
-)
+%0A && JSON.parse(msg%5B0%5D).receiverHash != c.senderHash) %7B
%0A
@@ -1403,24 +1403,34 @@
already%22));%0A
+ %7D%0A
retu
|
311bd1b0a61a2efdcecfaf596f50ea0092826122 | fix variable name so it makes sense | heroku/index.js | heroku/index.js | 'use strict';
const smoochBot = require('smooch-bot');
const MemoryLock = smoochBot.MemoryLock;
const SmoochApiStore = smoochBot.SmoochApiStore;
const SmoochApiBot = smoochBot.SmoochApiBot;
const StateMachine = smoochBot.StateMachine;
const app = require('../app');
const script = require('../script');
const SmoochCore... | JavaScript | 0.017952 | @@ -2533,23 +2533,24 @@
var is
-Trigger
+Postback
= req.b
@@ -3172,23 +3172,24 @@
if(!is
-Trigger
+Postback
) %7B%0A
|
721c036a719437db01ce1562fabada58231c1ac8 | Fix incorrectly named function | src/go.js | src/go.js | /*eslint consistent-return: 0*/
import {Core, isFuture} from './core';
import {isFunction, isIterator} from './internal/is';
import {isIteration} from './internal/iteration';
import {show, showf, noop} from './internal/fn';
import {invalidArgument, typeError, invalidFuture} from './internal/throw';
import {Undetermine... | JavaScript | 0.000082 | @@ -1737,23 +1737,10 @@
ion
-Future$chainRec
+Go
$can
|
c475ffc1617fc9d8d7f19a988f5bcd057f896152 | Create .meteor/local directory if necessary for `meteor {node,npm}`. | tools/cli/dev-bundle.js | tools/cli/dev-bundle.js | // Note that this file is required before we install our Babel hooks in
// ../tool-env/install-babel.js, so we can't use ES2015+ syntax here.
// This file replicates some functionality from elsewhere in tools code,
// but that's unavoidable if we don't want to install Babel and load all
// the rest of the code every t... | JavaScript | 0 | @@ -1081,24 +1081,84 @@
ectory%22)) %7B%0A
+ try %7B%0A fs.mkdirSync(localDir);%0A %7D catch (e) %7B%0A
return d
@@ -1173,32 +1173,38 @@
vBundlePromise;%0A
+ %7D%0A
%7D%0A%0A var devBu
|
407f81ee2514e34b83790dd351e9307cf6e87e32 | Fix some code comments | src/s3.js | src/s3.js |
var awspublish = require('gulp-awspublish');
var mergeStream = require('merge-stream');
var rename = require('gulp-rename');
var rimraf = require('rimraf');
var sprintf = require('sprintf');
var vfs = require('vinyl-fs');
var path = require('path')
var through2 = require('through2').obj
var entryPoints = [
'**/*.h... | JavaScript | 0.00537 | @@ -1858,31 +1858,44 @@
);%0A%7D%0A%0A/*%0A *
-Publish
+Get file streams for
all entry p
@@ -2100,23 +2100,36 @@
%0A%0A/*%0A *
-Publish
+Get file streams for
all has
|
4a3fcb1067b18a2b373926334584704cdaaa548d | add help on default route | homework/app.js | homework/app.js | var express = require('express'),
app = express(),
filmService = require('./filmService');
app.get('/api/filmlist', function (req, res) {
res.send(filmService.getFilmList());
});
app.get('/api/filmdetails', function (req, res) {
res.send(filmService.getFilm(req.query.name));
});
app.listen(3000);
console.log('Se... | JavaScript | 0.000001 | @@ -276,24 +276,331 @@
ame));%0A%7D);%0A%0A
+app.get('/', function(req, res)%7B%0A%09var text = %5B%0A%09%09'%3Cb%3Elocalhost:3000/api/filmlist%3C/b%3E',%0A%09%09'returns the list of films available',%0A%09%09'%3Cbr /%3E',%0A%09%09'%3Cb%3Elocalhost:3000/api/filmdetails?name=%25filmname%25%3C/b%3E',%0A%09%09'where %3Cb... |
cd95899986fac68a154593f8f72090696d145205 | introduce maxDelay | src/su.js | src/su.js | "use strict";
var url = require('url');
var ZeroServer = require('./ZeroServer');
var ZeroStream = require('./ZeroStream');
var adaptors;
if (typeof(window)==='object') {
adaptors = window.stream_url_adaptors = window.stream_url_adaptors || {};
} else {
adaptors = process.stream_url_adaptors = process.stream_u... | JavaScript | 0.000001 | @@ -1447,16 +1447,66 @@
%7C 1000,%0A
+ maxDelay: options.reconnect.maxDelay,%0A
@@ -3235,32 +3235,161 @@
ector.minDelay;%0A
+ if (connector.maxDelay) %7B%0A timeout = Math.min(timeout, connector.maxDelay);%0A %7D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.