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
08fab995cccffd35a7f6618c539394a38c3eb0d8
Make the issue appear in the tests
test/specs/scenarios.js
test/specs/scenarios.js
const expect = require('expect'); const { run, createProject } = require('../cli'); describe('Child Entries', () => { beforeEach(createProject); it('should be able to delete a child entry with a new configuration', function* () { const firstConfig = { parent: { entry: 'entryToDelete' }, ...
JavaScript
0.000039
@@ -92,20 +92,16 @@ be(' -Child Entrie +Scenario s', @@ -136,24 +136,66 @@ eProject);%0A%0A + describe('Child Entries', () =%3E %7B%0A it('shou @@ -275,24 +275,28 @@ ) %7B%0A + const firstC @@ -297,32 +297,36 @@ firstConfig = %7B%0A + pare @@ -353,24 +353,28 @@ oDelete' ...
d14b044e1ebd2b87c60274aeec23e48301bf0e47
improve term test
test/standalone/term.js
test/standalone/term.js
// https://github.com/chuckremes/nn-core/blob/master/spec/nn_term_spec.rb var nano = require('../../'); var test = require('tape'); test('throw exception when seding on socket after term() called', function (t) { t.plan(1); var sock = nano.socket('pub'); sock.on('error', function (err) { t.ok('e...
JavaScript
0.000003
@@ -156,16 +156,17 @@ when se +n ding on @@ -209,18 +209,16 @@ n (t) %7B%0A - t.plan @@ -223,18 +223,16 @@ an(1);%0A%0A - var so @@ -256,19 +256,53 @@ 'pub');%0A -%0A +sock.bind('tcp://127.0.0.1:9999')%0A%0A sock.o @@ -337,27 +337,102 @@ - t.ok('error was +t.equals(err.message,%0A ...
7d1a708cbfccbc528ea817d5c38fce8eb6e6a072
Fix apiClient middleware action issue
src/api-client.js
src/api-client.js
import Url from 'url' import Superagent from 'superagent' import { merge } from 'lodash' export default function clientMiddleware(req, options) { let client = new ApiClient(req, options) return store => next => action => { return next({ client, action }) } } const methods = [...
JavaScript
0.000009
@@ -249,24 +249,51 @@ action =%3E %7B%0A + action.client = client%0A return n @@ -300,26 +300,14 @@ ext( -%7B client, action - %7D )%0A
1b7348124d31489aad9f74e8b5cd4ede25397e0f
Add delete stage route
src/api/routes.js
src/api/routes.js
'use strict' let express = require('express') let middleware = { auth: require('./middleware/auth'), notFound: require('./middleware/not-found') } let controllers = { pipelines: require('./controllers/pipelines'), pipelineExecutions: require('./controllers/pipeline-executions'), projects: require('./controll...
JavaScript
0.000001
@@ -1583,24 +1583,25 @@ lableTypes)%0A +%0A app.post(' @@ -1654,16 +1654,85 @@ eConfig) +%0A app.delete('/api/stage/:id', controllers.stages.deleteStageConfig) %0A%0A // P
22dbc645d370d8421b2feebe28a3096b00125ec2
Add (failing) test for stripping file paths from error messages
test/error-parser.js
test/error-parser.js
const assert = require('assert'); var ErrorParser = require("../lib/error-parser.js"); /** * The first test in this suite will take some time to run, this is because * its loading the `pos` library */ describe('ErrorParser', function() { describe('parse', function() { let parser = new ErrorParser(); let ...
JavaScript
0
@@ -3906,32 +3906,717 @@ cted);%0A %7D);%0A%0A + it('should remove file paths from errors', function() %7B%0A // given%0A let message = %22PHP Parse error: syntax error, unexpected ';' in /Users/tallytarik/work/bert/test.php on line 1%22;%0A // when%0A let result = parser.parse(message);%0A ...
22fa94039a8583377fbb9d38eb286e5856dbf78b
Improve extends query tests
test/extends.test.js
test/extends.test.js
var path = require('path') var fs = require('fs-extra') var browserslist = require('../') var mocked = [] function mock (name, exports) { var dir = path.join(__dirname, '..', 'node_modules', name) mocked.push(dir) return fs.ensureDir(dir).then(() => { var content = 'module.exports = ' + JSON.stringify(expo...
JavaScript
0.000002
@@ -725,24 +725,246 @@ %5D)%0A %7D)%0A%7D)%0A%0A +it('uses file in package', () =%3E %7B%0A return mock('browserslist-config-test/ie', %5B'ie 11'%5D).then(() =%3E %7B%0A var result = browserslist(%5B'extends browserslist-config-test/ie'%5D)%0A expect(result).toEqual(%5B'ie 11'%5D)%0A %7D)%0A%7D)%0A%0A it('wo...
8d48b736a14a55f521f93c37f2302581453ffab7
use createEndpoint()
test/fileEndpoint.js
test/fileEndpoint.js
/* global describe, it*/ /* jslint node: true, esnext: true */ "use strict"; const fs = require('fs'); const path = require('path'); const assert = require('assert'); const endpointImpl = require('../lib/endpointImplementation'); describe('file endpoint implementation', function () { const fileImpl = endpointImp...
JavaScript
0.000001
@@ -283,18 +283,17 @@ n () %7B%0A%0A - +%09 const fi @@ -337,18 +337,17 @@ .file;%0A%0A - +%09 const my @@ -361,22 +361,8 @@ t = -Object.create( endp @@ -374,23 +374,22 @@ mpl. -default +create Endpoint , %7B%0A @@ -388,36 +388,25 @@ oint -, %7B%0A value: %7B%0A value +('e1', %7B%0A%09%09target ...
1507ca2dc9360481181ffc4ed28c298f5f90f380
remove only
test/git-checkout.js
test/git-checkout.js
describe.only("git-checkout, when GHM is in use,", function(){ beforeEach(function(done){ TEST_SUITE.setup(true, true, true, function(err){ if(err){ done(err); } else{ TEST_SUITE.git.__makeAddAndCommitFile("test", "test", done); } }); }); describe("when checking out a branch", function(){ ...
JavaScript
0.000001
@@ -5,13 +5,8 @@ ribe -.only (%22gi
05793a2a9489a999074e769220947d3734cbda6e
Add launch() convenience function
test/support/TestApp.js
test/support/TestApp.js
'use strict'; import sinon from 'sinon' import Promise from 'bluebird' import { Dispatcher } from '../../' class TestApp extends Dispatcher { constructor() { super() this.log = sinon.spy(); this.config = {}; this.on = sinon.spy(this.on); this.once = sinon.spy(this.once); this.await =...
JavaScript
0.000003
@@ -692,16 +692,156 @@ ;%0A%0A %7D%0A%0A + launch() %7B%0A return new Promise.mapSeries(%5B'init', 'load', 'startup', 'launch'%5D, (e) =%3E %7B%0A return this.emit(e).with();%0A %7D)%0A %7D%0A%0A %7D%0A%0Aexpor
85eb691c41360e0652396fb9de41ec54aaa1dae8
use new resource() function
test/journey-test.js
test/journey-test.js
var journey = require('../lib/journey'), vows = require('../../vows/lib/vows'); var sys = require('sys'), http = require('http'), assert = require('assert'), url = require('url'); var mock = { mockRequest: function (method, path, headers) { var uri = url.parse(path || '/', true); r...
JavaScript
0.000003
@@ -2136,20 +2136,19 @@ resource -s%5Br%5D +(r) .index(r
d0282aad4f2fed5a777ac9f99828e2e1c800dfca
Fix flowtype
src/background.js
src/background.js
// @flow declare var chrome: any import shouldCompress from './background/shouldCompress' import patchContentSecurity from './background/patchContentSecurity' import getHeaderValue from './background/getHeaderIntValue' import parseUrl from './utils/parseUrl' import deferredStateStorage from './utils/deferredStateStorag...
JavaScript
0.000001
@@ -948,16 +948,21 @@ return +self. createIm
0f17246e5374f1cf7be2bb44935e33e2f7f3a6fd
Use YUI JSON
lib/ymdp/javascripts/jquery/init.js
lib/ymdp/javascripts/jquery/init.js
/* INITIALIZER CODE */ // Adds behaviors/observers to elements on the page // YMDP.Init.addBehaviors = function() { // overwrite this function locally }; // hide the loading screen and show the main body of the summary YMDP.Init.show = function() { Debug.log("YMDP.Init.show"); $('#utility').hide(); $('#erro...
JavaScript
0.000004
@@ -2289,32 +2289,96 @@ = function() %7B%0A + YUI().use('json', function (Y) %7B%0A window.JSON = Y.JSON;%0A%0A Debug.log(%22OIB @@ -2427,16 +2427,18 @@ e %25%3E%22);%0A + Logger @@ -2446,16 +2446,18 @@ init();%0A + Tags.i @@ -2459,24 +2459,26 @@ ags.init();%0A + YMDP.Init. @@ -2484,24 +248...
57b2df65a3b5f60e4626c5b3db3b2fc580de56b4
Fix spawn arguments sent to the runner
src/bin/runner.js
src/bin/runner.js
import { spawn } from "child_process" import { join } from "path" const cwd = process.cwd() export default (defaultOptions) => (argv) => { // get real args, after the node script // by relying on yargs $0 const realArgs = process.argv.slice(process.argv.indexOf(argv.$0) + 1) // get argv that are ...
JavaScript
0
@@ -427,39 +427,28 @@ -spawn(%0A %22node%22,%0A +const spawnArgs = %5B%0A - @@ -485,26 +485,24 @@ js%22),%0A - join(cwd, ar @@ -523,117 +523,89 @@ - // pass collected args, or default if there is none%0A ...args.length ? args : defaultOptions,%0A %5D +...defaultOpt...
a0abea9dd8b112f2da6a2c395ebea055cf74df11
version bump
dist/boily.js
dist/boily.js
/*! * boily v4.1.2 * (c) 2016 KFlash * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Boily = factory()); }(this, function () { 'use...
JavaScript
0.000001
@@ -11,17 +11,17 @@ ly v4.1. -2 +4 %0A * (c)
c244b8bc3d1b88aa07fc1e5814e4cb57f9932752
change ver
src/buryPoint2.js
src/buryPoint2.js
/** * @file: PoliceDog web performance script for client side * @author by zhangxiang * @update 2017.05 */ (function(){ /** * Browser compatibility: * Some brower cannot handle the interface(window.performance), so we must add some code to compatibile some bowser * */ if(window....
JavaScript
0.000003
@@ -2313,31 +2313,25 @@ %0A %7D%0A%0A -policeR +r eport%5B'stati @@ -2512,39 +2512,33 @@ ookupStart;%0A -policeR +r eport%5B'DNS Query @@ -2673,31 +2673,25 @@ tStart;%0A -policeR +r eport%5B'TCP C @@ -2954,31 +2954,25 @@ eStart;%0A -policeR +r eport%5B'Reque @@ -3098,31 +3098,25 @@ nStart;%0...
08cce4aad15baa004f131a4a0ff9cc9896a1ef3c
Update version string to 2.5.4-pre.2
version.js
version.js
(function (enyo, scope) { /** A library of UI widgets designed for use alongside Enyo core in the development of smart TV applications. @namespace moon */ var moon = scope.moon = scope.moon || {}; if (enyo && enyo.version) { enyo.version.moonstone = "2.5.3-pre.7"; } /** * Global *design-time* configur...
JavaScript
0.000001
@@ -266,15 +266,15 @@ 2.5. -3 +4 -pre. -7 +2 %22;%0A%09
2e082d4417fe44f3499b75e0fdd198f23dc97c3c
Add test to verify initialize behavior
test/reducer.spec.js
test/reducer.spec.js
import { reducer } from '../src' import { authenticateSucceeded, authenticateFailed, invalidateSession, restore, restoreFailed } from '../src/actions' describe('session reducer', () => { it('returns default state when initialized', () => { const expected = { authenticator: null, isAuthentic...
JavaScript
0
@@ -82,16 +82,30 @@ Failed,%0A + initialize,%0A invali @@ -437,32 +437,418 @@ expected)%0A %7D)%0A%0A + it('handles INITIALIZE', () =%3E %7B%0A const sessionData = %7B%0A authenticated: %7B%0A authenticator: 'credentials',%0A token: 'abcde'%0A %7D%0A %7D%0A const expected = %7B%...
d6ab2e5e5f0ca5c8c59aa576a80aa07e737a7fe6
load debugging
api/index.js
api/index.js
const express = require('express'); const bodyParser = require('body-parser'); const siteSession = require('./siteConfig').siteSession; const router = require('./router'); const socket = require('./socket'); const cors = require('cors'); const app = express(); app.use(cors()); app.use(bodyParser.urlencoded({extended: ...
JavaScript
0.000002
@@ -411,11 +411,8 @@ p);%0A -/*%0A cons @@ -461,11 +461,8 @@ io); -%0A*/ %0A%0Aco
bade894ba774530e6593d128b503f14400d0d549
add test, 4 failed now
test/test-context.js
test/test-context.js
'use strict'; var assert = require('chai').assert, testlib = require('../lib/test'), context = require('../lib/context.js'); describe('context', function () { it('.query should be a subtask', function (done) { assert.equal(true, testlib.isSubtask(testlib.getMockContext().query)); done(); ...
JavaScript
0
@@ -790,32 +790,193 @@ one();%0A %7D);%0A%0A + it('.module should be a subtask', function (done) %7B%0A assert.equal(true, testlib.isSubtask(testlib.getMockContext().module));%0A done();%0A %7D);%0A%0A it('.page sh
2f8b7d983e764b13977e9d16b230e40793308e81
Update test description
test/test-suspend.js
test/test-suspend.js
var StringBuilder = require('../src/string-builder'); var assert = require('chai').assert; var sinon = require('sinon'); var jsonfile = require('jsonfile'); var file = './fixtures/data.json'; var fixtures = jsonfile.readFileSync(file); describe('StringBuilder #suspend', function() { it('Iterate over collection', ...
JavaScript
0.000001
@@ -291,31 +291,20 @@ it(' -Iterate over collection +Suspend wrap ', f
361811758797996fbba4ade55e97e164f84ada36
Fix DreamView to not load dreams on initialize. #17
toast/public/assets/js/app.js
toast/public/assets/js/app.js
$(function() { //////// // Views //////// // Dream mini view var DreamMiniView = Backbone.View.extend ( { tagName: "div", className: "span3 center", template: $("#dreamTemplate").html(), render: function () { var variables = {name: this.model.get('name'), count: this.model.get('count')}; var tmpl =...
JavaScript
0
@@ -4353,19 +4353,27 @@ 'render' +, 'load' );%0A - @@ -4533,83 +4533,8 @@ s(); -%0A self.topDreams.fetch();%0A self.recentDreams.fetch(); %0A%0A @@ -5066,32 +5066,211 @@ return this;%0A + %7D,%0A load: function() %7B%0A var self = this;%0A //...
9cabfe315a8eb4a564afda1c72dc8717e3e8b678
configure baseUrl comment
src/client/app.js
src/client/app.js
(function() { var lib_path = '/res/lib/'; var config = { paths: { jquery: lib_path + 'jquery', 'jquery-ui': lib_path + 'jquery-ui', 'd3': lib_path + 'd3/d3', FileSaver: lib_path + 'FileSaver', caret: lib_path + 'caret', autocomplete...
JavaScript
0.000001
@@ -656,16 +656,160 @@ else %7B%0A + // %5B!%5D no need to configure baseUrl, as in%0A // config.baseUrl = ...%0A // generated script URLs include the basepath of app.js%0A%0A // M
e8255cf46ee77626e9eef1c2909899c9508173da
add `timeoutAfter` test with Promises
test/timeoutAfter.js
test/timeoutAfter.js
'use strict'; var tape = require('../'); var tap = require('tap'); var concat = require('concat-stream'); var stripFullStack = require('./common').stripFullStack; tap.test('timeoutAfter test', function (tt) { tt.plan(1); var test = tape.createHarness(); var tc = function (rows) { tt.same(stripFu...
JavaScript
0
@@ -965,12 +965,1760 @@ %7D);%0A%7D);%0A +%0Atap.test('timeoutAfter with Promises', function (tt) %7B%0A tt.plan(1);%0A%0A var test = tape.createHarness();%0A var tc = function (rows) %7B%0A tt.same(stripFullStack(rows.toString('utf8')), %5B%0A 'TAP version 13',%0A '# timeoutA...
0b7b30bed0608f81a6a52b45481af0b7b6fe533c
Add correspondingCost handling to old model
model/submission/index.js
model/submission/index.js
'use strict'; var Map = require('es6-map') , memoize = require('memoizee/plain') , defineStringLine = require('dbjs-ext/string/string-line') , _ = require('mano').i18n.bind('Model: Submissions') , defineDocument = require('../document'); module.exports = memoize(function...
JavaScript
0
@@ -250,24 +250,70 @@ Document = + require('../document')%0A , defineCost = require('.. @@ -440,16 +440,43 @@ ment(db) +%0A%09 , Cost = defineCost(db) ;%0A%0A%09var @@ -939,16 +939,125 @@ id%22) %7D,%0A +%09%09// If upload concerns payment receipt, this links cost it corresponds%0A%09%09correspondingCo...
f1e916dbd7fe9ad3b5c2a4621b03a2dcbfa1fe10
Update Mergemons
mods/mergemons/scripts.js
mods/mergemons/scripts.js
'use strict'; exports.BattleScripts = { init: function () { let learnsets = Object.assign({}, this.data.Learnsets); let dex = []; for (let i in this.data.Pokedex) { if (this.data.Pokedex[i].num <= 0) continue; if (this.data.Pokedex[i].evos) continue; if (!learnsets[i]) continue; if (this.data.Format...
JavaScript
0
@@ -683,16 +683,142 @@ - 1)%5D;%0A +%09%09%09while (this.data.Pokedex%5Bpokemon%5D.num === this.data.Pokedex%5Btarget%5D.num) %7B%0A%09%09%09%09target = dex%5Bdex.indexOf(target) - 1%5D;%0A%09%09%09%7D%0A %09%09%09let m @@ -1279,16 +1279,148 @@ + 1)%5D;%0A +%09%09%09%09%09while (this.data.Pokedex%5Bpokemon%5D.num ...
30e41cadca5a4d23b8858eee2f030ed6def5c745
Add test case for clear icon
tests/Select.spec.js
tests/Select.spec.js
import expect from 'expect.js'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils, { Simulate } from 'react-addons-test-utils'; import Select, { Option } from 'rc-select'; import $ from 'jquery'; describe('Select', () => { let instance; let div; beforeEach(() => { div = document....
JavaScript
0
@@ -3114,11 +3114,366 @@ uld -hav +show clear button', () =%3E %7B%0A instance = ReactDOM.render(%0A %3CSelect value=%221%22 allowClear%3E%0A %3COption value=%221%22%3E1%3C/Option%3E%0A %3COption value=%222%22%3E2%3C/Option%3E%0A %3C/Select%3E,%0A div);%0A expect(TestUtils.scryRende...
60f306f38879867e4e837fcb5c05768445b9089c
add error inspect for tester
tests/_lib/tester.js
tests/_lib/tester.js
"use strict"; var _ = require('lodash'); var inspect = require('./inspect'); var Schema = require('./schema'); var tester = function (testCase) { return function (test) { testCase.schema.verifier(testCase.options).verify(testCase.value, function (err) { if (testCase.expect) { test.ok(!err, 'must be valid!'...
JavaScript
0
@@ -312,24 +312,140 @@ e valid!');%0A +%09%09%09%09if (err instanceof Schema.ValidationError) %7B%0A%09%09%09%09%09console.log('%3E%3Eerror:', inspect(err));%0A%09%09%09%09%09err = null;%0A%09%09%09%09%7D%0A %09%09%09%7D else if
27d9823492cd248b30c22c4eea4a2bbb158cdf30
Remove trivial variable
modules/gulpease/index.js
modules/gulpease/index.js
const fs = require( 'fs' ); const spawnSync = require( 'child_process' ).spawnSync; /** Get the number of letters inside the text @param text : string - Text where count the number of letters @return {number} - Number of letters */ function letters( text ) { return text.match( /\w/g ).length; } /** G...
JavaScript
0.02782
@@ -2714,49 +2714,8 @@ );%0A - var words = words( cleanText );%0A %0A @@ -2744,13 +2744,26 @@ / words +( cleanText ) ;%0A%7D %0A
29a0d3d1c8fa72322da34cf27e18b11ddc4e0430
use __dirname instead of cwd
.babelrc.js
.babelrc.js
const cwd = process.cwd(); module.exports = { "plugins": [ ["transform-runtime", { helpers: true, polyfill: false, regenerator: false }], "transform-es2015-modules-commonjs", ["check-es2015-constants", { "loose": true }], ["transform-es2015-arrow-functions", ...
JavaScript
0.000612
@@ -3,27 +3,39 @@ nst -cwd = process.cwd() +buildDir = %60$%7B__dirname%7D/build%60 ;%0A%0Am @@ -769,18 +769,17 @@ %5B%60$%7B -cwd%7D/ build +Dir%7D /bab
ca266ba478cb1115392a53c86b999eb3d54023f2
Fix typo
.babelrc.js
.babelrc.js
module.exports = api => ({ presets: [ ['@babel/env', { ...(api.env('test') ? { targets: { browsers: ['chrome >= 60', 'firefox >= 56'], // Test in these browsers is enough } } : {}), }], api("test") && ['@babel/react', { runtime: "automatic" }], ].filter(Boolean), ...
JavaScript
0.999999
@@ -234,16 +234,20 @@ %0A api +.env (%22test%22)
e81329526532e7562e29ed068c805e541c787d93
Fix for CI failure due to PhantomJS incompatibility.
tests/test-helper.js
tests/test-helper.js
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>'); Ember.testing = true; window.startApp = require('appkit/tests/helpers/start-app')['default']; window.isolatedContainer = require('appkit/tests/helpers/isolated-container')['default']; function exists(selector) { retu...
JavaScript
0
@@ -915,12 +915,941 @@ trictEqual;%0A +%0A// Fix for failures in PhantomJS due to Function not having bind() in that env.%0A//%0A// Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind%0A//%0Aif (!Function.prototype.bind) %7B%0A Function.prototype.bind = functio...
334e6b460376d1e7e01bfbf4c231ace5c67f3032
Remove arrow functions for browser compatibility
src/connection.js
src/connection.js
var EventEmitter = require('eventemitter3'); var _ = require('lodash'); var ircLineParser = require('./irclineparser'); function Connection(options) { EventEmitter.call(this); this.options = options || {}; this.connected = false; this.requested_disconnect = false; this.auto_re...
JavaScript
0.000001
@@ -1696,19 +1696,37 @@ g', -out =%3E this +function (out) %7B%0A that .deb @@ -1735,16 +1735,23 @@ Out(out) +;%0A %7D );%0A%0A @@ -6250,24 +6250,45 @@ urn;%0A %7D%0A%0A + var that = this;%0A var line @@ -6972,13 +6972,18 @@ out( -() =%3E +function() %7B%0A @@ -6995,18 +6995,18 @@ ...
8259ef083fbca90166e5d136471e2357cd91918a
Update UDPefef
benchmark.js
benchmark.js
'use strict' /** * Created by tungtouch on 2/9/15. */ var cluster = require('cluster'); var numCPUs = require('os').cpus().length; var dgram = require('dgram'); var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe:"); var client = dgram.createSocket("udp4"); var async = requir...
JavaScript
0
@@ -621,22 +621,22 @@ 28.199.1 -26.250 +09.202 %22, funct
176d80dab80e74c6cda1498d2dc6c929b54321c5
Update build script to build development.
bin/build.js
bin/build.js
#!/usr/bin/env node var shell = require('shelljs'); shell.exec('node ./node_modules/brunch/bin/brunch build --production'); process.exit(0);
JavaScript
0
@@ -106,21 +106,8 @@ uild - --production ');%0A
1461591ea397cf1f7b1b482a0b900e25223b4bae
Add progress message
bin/index.js
bin/index.js
#!/usr/bin/env node var exec = require('child_process').exec; var fs = require('fs'); var os = require("os"); var isWindows = os.type() == "Windows_NT"; if (isWindows) var scm = "scm"; else var scm = "lscm"; // some requests print a lot of information // increase the buffer to handle the size of these requests ...
JavaScript
0.000001
@@ -2433,16 +2433,204 @@ rom RTC%0A + console.log(%22%5Cn=======================================%22);%0A console.log(%22Processing change set %22 + (index+1) + %22 of %22 + history.length + %22 (%22 + (history.length - index - 1) + %22 left)%22);%0A echoAn
615ef66f622e9364c3f53a965d8ccc370db88458
Remove data from context once we're done with it
bin/index.js
bin/index.js
#!/usr/bin/env node var program = require('commander') , fs = require('fs') , path = require('path') , util = require('util') , extend = require('extend') , Handlebars = require('handlebars'); program .version('0.0.0') .usage('[options] <file ...>') .option('-o, --output [file]', 'write JSON output to...
JavaScript
0.000014
@@ -2792,24 +2792,118 @@ ted%0A %7D;%0A%0A + // Remove template and data from context%0A delete context.template;%0A delete context.data;%0A%0A if (contex @@ -2985,16 +2985,44 @@ lpers);%0A + delete context.helpers;%0A %7D%0A%0A t @@ -4223,24 +4223,86 @@ rue%0A %7D;%0A%0A + // Remove template fro...
47358c6fc5a1c53d5f1bbf29a7de3b2b9d90673c
Fix typo
bin/konga.js
bin/konga.js
#!/usr/bin/env node bin var argv = require('minimist')(process.argv.slice(2)); var child_process = require('child_process'); var spawn = child_process.spawn var path = require('path') var _ = require('lodash'); var Sails = require('sails'); if (argv._[0] === 'help') { console.log("Usage:"); logHelp() proc...
JavaScript
0.999999
@@ -1957,16 +1957,17 @@ complete +d !%22)%0A
41e8395374c2a56e6699112c93e43c778ec91ba7
use math module in group
src/core/group.js
src/core/group.js
import { mat4 } from 'gl-matrix'; import { obj_to_vec } from '../misc/utils.js'; import { zero_vector, unit_vector } from '../misc/defaults.js'; class Group { constructor(options = {}) { this.position = options.position || Object.assign({}, zero_vector); this.rotation = options.rotation || Object.assign({}, ...
JavaScript
0.000004
@@ -5,17 +5,17 @@ rt %7B mat -4 +h %7D from @@ -19,17 +19,17 @@ om ' -gl-matrix +./math.js ';%0Ai @@ -677,16 +677,21 @@ atrix = +math. mat4.ide @@ -696,16 +696,21 @@ dentity( +math. mat4.cre @@ -717,24 +717,29 @@ ate());%0A +math. mat4.transla @@ -971,24 +971,29 @@ %7D);%0A%0A +math. mat4.tran...
b57d4b1e4a6af512ca9fddb91f466df28fed5c8b
end is negative's bug
src/core/index.js
src/core/index.js
/** * @file index * @author Cuttle Cong * @date 2018/2/26 * @description */ import defaultPlugin from './plugins/default' import highlight from './utils/highlight' import markdown from './utils/markdown' import parseUrl from './utils/parseQuerystring' import each from 'lodash/each' export default class Telescope ...
JavaScript
0.998293
@@ -2343,16 +2343,17 @@ h - 1 + ++ end%0A
ac2832e4544c9b2c98c324505865eb7a4796c3a2
Revert to previous readyState logic per @scottjehl comments and this: https://github.com/mobify/mobifyjs/blob/526841be5509e28fc949038021799e4223479f8d/src/capture.js#L128
src/core/ready.js
src/core/ready.js
//>>excludeStart("exclude", pragmas.exclude); define([ "shoestring" ], function(){ //>>excludeEnd("exclude"); /** * Bind callbacks to be run when the DOM is "ready". * * @param {function} fn The callback to be run * @return shoestring * @this shoestring */ shoestring.ready = function( fn ){ if( ready ...
JavaScript
0.000001
@@ -949,16 +949,66 @@ 28%0A%09if ( +doc.attachEvent ? doc.readyState === %22complete%22 : doc.read
2aef9c4164e2578ee6a3669e5a981dcfc153d347
Add some logging
src/core/scope.js
src/core/scope.js
'use strict'; const d = require('./util').log; const clone = require('clone'); function createScope(obj, parentScope) { d('Creating new scope...'); d(obj); d(parentScope); obj = clone(obj) || {}; Object.defineProperty(obj, '__parent__', { value: parentScope }); d('new obj __parent__'); d(obj.__p...
JavaScript
0.000001
@@ -1341,32 +1341,88 @@ nProperty(temp)) + %7B%0A d('Found item in scope');%0A d(scope%5Btemp%5D);%0A return scope%5Bte @@ -1426,16 +1426,20 @@ %5Btemp%5D;%0A + %7D%0A return @@ -1613,28 +1613,109 @@ ;%0A -d(value.toString()); +if ('function' === typeof value) d(value.toString());%0A else d(value);...
239a18047e7cbe10524da890af2690c3cb76e671
Update join.js
tests/useful/join.js
tests/useful/join.js
import join from '../../src/commands/useful/join'; describe('join/join-server', () => { it('should join execute joinServer and respond with with a success message', done => { function reply(res) { res.should.equal(`To invite me to your server, click the link below and select a server. Only users with **Ma...
JavaScript
0.000001
@@ -573,17 +573,17 @@ ons= -268823767 +403041495 %60);%0A
0d57e6ba0d3b4fc9cfb2e694f804dbab0a7fdfe8
Disable caching
thumbhub/thumbhub.js
thumbhub/thumbhub.js
var express = require('express'), fs = require('fs'), path = require('path'), url = require('url'), request = require('request'), dns = require('dns'), jimp = require('jimp'), tmp = require("tmp"), common; var metahub_srv = "bokeh-metahub.service.consul." var photohub_srv = "bokeh-photohub-3000.service.consul." var th...
JavaScript
0.000001
@@ -2714,19 +2714,20 @@ %09%09%09%09if ( -err +true )%7B%0A%09%09%09%09%09
2392ad25ecc293c07fc9820c488f17dce3ab9748
Revert null check removal
src/diff/props.js
src/diff/props.js
import { IS_NON_DIMENSIONAL } from '../constants'; import options from '../options'; /** * Diff the old and new properties of a VNode and apply changes to the DOM node * @param {import('../internal').PreactElement} dom The DOM node to apply * changes to * @param {object} newProps The new props * @param {object} o...
JavaScript
0
@@ -817,16 +817,30 @@ 'key' && + (!newProps %7C%7C !(i in @@ -849,16 +849,17 @@ wProps)) +) %7B%0A%09%09%09se
262fcdc40ed7775f13dbe593f0ecf120cf181a62
remove dummy/debugger rectangle
source/main.js
source/main.js
import init from './app/init'; init((ctx, { ts, dts }, { w, h, hw, hh }) => { ctx.fillStyle = '#f0f'; ctx.fillRect(hw - 50, hh - 50, 100, 100); });
JavaScript
0.001009
@@ -80,77 +80,39 @@ -ctx.fillStyle = '#f0f';%0A ctx.fillRect(hw - 50, hh - 50, 100, 100); +// do stuff with particles here %0A%7D);
eea25ff052d2dfd33c4b6f52a182d8352220f9ae
Fix setPositionVisible on dropdown when in mobile.
source/assets/javascripts/locastyle/_dropdown.js
source/assets/javascripts/locastyle/_dropdown.js
var locastyle = locastyle || {}; locastyle.dropdown = (function() { 'use strict'; function init() { unbind(); bindClickOnTriggers(); bindClickOutsideTriggers(); } function unbind() { $("[data-ls-module=dropdown] > a:first-child").off("click.ls"); $("body").off("click.ls"); } function...
JavaScript
0
@@ -1121,16 +1121,12 @@ $(' -.ls-main +body ');%0A
479faa17acc3f90fbef034caa2a7e6aed6f2241d
Improve metric stack chart colors
core/app/scripts/services/keyed-color-pools.js
core/app/scripts/services/keyed-color-pools.js
/* * Copyright 2014 the original author or authors. * * 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 l...
JavaScript
0.000001
@@ -13,16 +13,21 @@ ght 2014 +-2015 the ori @@ -737,14 +737,14 @@ , '# -afd8f8 +9dc2df ', ' @@ -838,17 +838,17 @@ ation = -0 +1 ;%0A%0A f @@ -983,19 +983,21 @@ code is -cop +modif ied from @@ -1075,18 +1075,8 @@ gth%5D - %7C%7C '#666' );%0A @@ -1119,36 +1119,32 @@ && i) %7B%0A -if ( variation...
d316dfea2036cb175b6bb2044a4aca49627e931a
Edit MySpec test suite
spec/MySpec.js
spec/MySpec.js
describe("MyClass", function() { it("should be true", function() { expect(true).toBeTruthy(); }); });
JavaScript
0
@@ -74,19 +74,20 @@ expect( -tru +fals e).toBeT
58249e6f72fc7e45b932bd469e5ae1b69f4a0df1
Create file upload (#114)
addon/components/uni-file-upload.js
addon/components/uni-file-upload.js
import Ember from 'ember'; import layout from '../templates/components/uni-file-upload'; const { Component } = Ember; export default Component.extend({ layout, accept: null, renderFile: false, label: '', filename: '', handleFile() {}, actions: { triggerInputFile() { this.$('.uni-file-upload'...
JavaScript
0
@@ -147,16 +147,51 @@ xtend(%7B%0A + classNames: %5B'uni-file-upload'%5D,%0A layout
c407a7b2ac32d7fae985dc94bc4a2b109c6b76f0
update Switcher
src/Switcher/Switcher.js
src/Switcher/Switcher.js
/** * @file Switcher component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import IconButton from '../IconButton'; import CircularLoading from '../CircularLoading'; import Theme from '../Theme...
JavaScript
0
@@ -353,16 +353,71 @@ s/Util'; +%0Aimport ComponentUtil from '../_vendors/ComponentUtil'; %0A%0Aclass @@ -1344,183 +1344,174 @@ -componentWillReceiveProps(nextProps) %7B%0A if (nextProps.value !== this.state.value) %7B%0A this.setState(%7B%0A value: !!nextProps.value%0A ...
181a90e284f73ee862de323cdf569e94cd9e6440
Update gruntfile.js
samples/grunt/gruntfile.js
samples/grunt/gruntfile.js
/* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information. */ module.exports = function(grunt) { grunt.loadNpmTasks("grunt-typescript"); grunt.initConfig({ typescript: { base: { s...
JavaScript
0.000001
@@ -1064,15 +1064,43 @@ %22-- -ant +device%22,%22--gradleArg=--no-daemon %22%5D, - / @@ -1199,24 +1199,52 @@ %22--device%22%5D, + // spec @@ -1325,18 +1325,46 @@ release%22 +, %22--device%22 %5D, + @@ -1456,17 +1456,37 @@ release%22 -%5D +, %22--de...
cb8d299e570a5222f78247f4c2512f7166bf7d13
add some stories
spark/components/awards/react/SprkAward-story.js
spark/components/awards/react/SprkAward-story.js
import React from 'react'; import { storiesOf } from '@storybook/react'; import { SprkAward } from '@sparkdesignsystem/spark-react'; storiesOf('Award', module) .add('test', () => ( <SprkAward heading="Award Component Heading" idString="award-1" disclaimerText=" This is an example of d...
JavaScript
0
@@ -772,32 +772,24 @@ href: -%0A '#nogo',%0A @@ -794,32 +794,24 @@ src: -%0A 'https://ww @@ -888,32 +888,24 @@ alt: -%0A 'Spark Plac @@ -939,32 +939,24 @@ yticsString: -%0A 'award-1',%0A @@ -975,64 +975,30 @@ ent: -%0A 'a',%0A %7D,%0A ...
fc0eadb0cb8c161cf02f7fd4be6653f8677c29c9
Fix questions post
www/app/features/labelEffects/labelEffects.js
www/app/features/labelEffects/labelEffects.js
'use strict'; /** * @ngdoc function * @name gapFront.controller:LabelEffectsCtrl * @description * # LabelEffectsCtrl * Controller of the gapFront */ angular.module('gapFront') .controller('LabelEffectsCtrl', function ($scope, IntegrationService, APIService, DrugService) { $scope.effects = []; $scope.s...
JavaScript
0.000129
@@ -4004,24 +4004,51 @@ accurate) %7B%0A + console.log(term);%0A var @@ -4110,16 +4110,23 @@ ct: term +.effect , respon
fe69034bc7d1f04b130d668f278ea63964ffc77e
add mouse over
www/static_src/scripts/services/mapService.js
www/static_src/scripts/services/mapService.js
import 'leaflet'; import 'topojson'; import angular from 'angular'; require('../../../../node_modules/leaflet.vectorgrid/dist/Leaflet.VectorGrid.js'); class mapService { constructor(ajaxService) { 'ngInject'; this.ajaxService = ajaxService; } initialize() { this.map = L.map('map', { center...
JavaScript
0.000001
@@ -1317,85 +1317,655 @@ %7D -%0A %7D);%0A%0A this.map.addLayer(tileLayer);%0A %7D);%0A %7D); +,%0A onMouseOver: this._onMouseOver.bind(this),%0A onMouseOut: this._onMouseOut.bind(this),%0A onMouseMove: this._onMouseMove.bind(this)%0A %7D);%0A%...
488da56a757282dec675f67fcffbfb3b25f30bce
support array of lua lines
src/rule.js
src/rule.js
import { Criteria } from './criteria.js'; import { Behavior } from './behavior.js'; export class Rule { constructor(name, criteria, criteriaMustSatisfy, behaviors, children, skipBehaviors, valueMap, depth) { this.name = name; this.criteria = criteria; this.criteriaMustSatisfy = criteriaMus...
JavaScript
0
@@ -4041,24 +4041,195 @@ urResult) %7B%0A + if (Array.isArray(behaviourResult)) %7B%0A behaviorArray = %5B...behaviorArray, ...behaviourResult%5D;%0A %7D else %7B%0A @@ -4273,16 +4273,38 @@ esult);%0A + %7D%0A
f5c61e997d8e49b0398954199d298b66b6d98dd2
Fix linting errors
src/send.js
src/send.js
import { busy, scheduleRetry } from './actions'; import { JS_ERROR } from './constants'; import type { Config, OfflineAction, ResultAction } from './types'; const complete = ( action: ResultAction, success: boolean, payload: {} ): ResultAction => ({ ...action, payload, meta: { ...action.meta, success, comp...
JavaScript
0.000075
@@ -1124,16 +1124,17 @@ d = true +; %0A t @@ -1204,16 +1204,17 @@ retries) +; %0A %7D @@ -1219,16 +1219,17 @@ %7D catch + (e) %7B%0A @@ -1249,16 +1249,17 @@ .warn(e) +; %0A %7D
49eb704692bdadeae6da08aa9b3ff52c981e9adb
Make slider slide automatically
assets/js/app.js
assets/js/app.js
$(document).ready(function() { $('#menu .toggle').click(function (event) { $(this).closest('header').find('nav').slideToggle(300) event.preventDefault() }) function PopupCenter(url, title, w, h) { var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left var dualScreen...
JavaScript
0.000001
@@ -1041,16 +1041,40 @@ nslider( +%7B%0A autoplay: true%0A %7D )%0A%0A $('
e990e83ca5e95d3945be263ead3c4744c14688b9
check against non-configured stage type before apply color
app/scripts/modules/delivery/executionBar.controller.js
app/scripts/modules/delivery/executionBar.controller.js
'use strict'; angular.module('spinnaker.delivery.executionBar.controller', [ 'spinnaker.pipelines.config', 'ui.router', ]) .controller('executionBar', function($scope, $filter, $stateParams, pipelineConfig, $state) { var controller = this; controller.getStageWidth = function() { return 100 / $scop...
JavaScript
0
@@ -491,32 +491,47 @@ if (stageConfig + && stageConfig .executionBarCol
be46eb73747805567d5e251051524f3952ed7ada
Add tests for _meta and _metaid
tests/bookmarks.spec.js
tests/bookmarks.spec.js
/* Copyright 2015 Open Ag Data Alliance * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
JavaScript
0.000005
@@ -2848,24 +2848,206 @@ body._id) %7B%0A + // TODO: _meta schema?%0A t.ok(res.body._meta, 'has a _meta: ' + id);%0A t.ok(res.body._meta._metaid, 'has a _metaid: ' + id);%0A%0A
3e39a32199f7c00339a5cf594c6cb9f3489b6c2f
update cartridge directory name
test/directoryStructureSpec.js
test/directoryStructureSpec.js
var path = require('path'); var chai = require('chai'); chai.use(require('chai-fs')); chai.should(); const ROOT_DIR = path.join(process.cwd()); describe('As a dev', function() { describe('When testing cartridge directory structure', function() { var pathToTest; it('then _cartridge folder shoul...
JavaScript
0.000002
@@ -376,37 +376,40 @@ in(ROOT_DIR, '_c -onfig +artridge ');%0A @@ -821,8 +821,9 @@ %7D);%0A%0A%7D); +%0A
c9f53411b6145cf41893c835c4893f7a02d0c980
set the extractor's spec expectation straight w.r.t. the amount of spacing in the error message
test/extract/extractor.spec.js
test/extract/extractor.spec.js
"use strict"; const expect = require('chai').expect; const extractor = require('../../src/extract/extractor'); const cjsFixtures = require('../extractor-fixtures/cjs.json'); const es6Fixtures = require('../extractor-fixtures/es6.json'); const amdFixtures = require('../extractor-fixtures/amd.json'); const tsFixt...
JavaScript
0
@@ -1523,16 +1523,21 @@ ul of... +%5Cn%5Cn ENOENT: @@ -1591,16 +1591,18 @@ file.js' +%5Cn %22%0A
25b2162f8283e3e500c70b521cf7f794f44e0774
Disable FOREIGN_KEY_CHECKS before sync
test/helpers/fixtures/index.js
test/helpers/fixtures/index.js
var fixtures = require('node-require-directory')(__dirname); exports.load = function(specificFixtures) { return exports.unload().then(function() { if (typeof specificFixtures === 'string') { specificFixtures = [specificFixtures]; } var promises = []; Object.keys(fixtures).filter(function(key) {...
JavaScript
0.000001
@@ -629,80 +629,8 @@ es;%0A - %7D).catch(function(e) %7B%0A console.error('Load fixtures', e);%0A @@ -715,81 +715,300 @@ %7D) -;%0A%7D;%0A%0Aexports.unload = function() %7B%0A return sequelize.sync(%7B force: true +.catch(function(err) %7B%0A console.error(err.stack);%0A %7D);%0A%7D;%0A%0Aexp...
1526cf8f4f7885f1baa8e7d2a95a69692bd2f896
set fixed distance from axis to bars
mptracker/static/votesimilaritychart.js
mptracker/static/votesimilaritychart.js
(function() { "use strict"; app.render_votesimilaritychart = function(options) { var margin = {top: 20, right: 20, bottom: 30, left: 60}, width = options.container.width() - margin.left - margin.right, height = 300 - margin.top - margin.bottom; var data = options.vote_similarity_list; var x = d3.s...
JavaScript
0
@@ -135,16 +135,40 @@ t: 60%7D,%0A + axis_padding = 5,%0A wi @@ -926,188 +926,81 @@ . -call(yAxis)%0A .append(%22text%22)%0A .attr(%22transform%22, %22rotate(-90)%22)%0A .attr(%22y%22, 6)%0A .attr(%22dy%22, %22.71em%22)%0A .style(%22text-anchor%22, %22end%22)%0A .text(%22Sim...
589960f23524f2466ecce2e973bb3a25014beb7a
make sure chart is shown, even on narrow pages
mptracker/static/votesimilaritychart.js
mptracker/static/votesimilaritychart.js
(function() { "use strict"; app.render_votesimilaritychart = function(options) { var margin = {top: 20, right: 20, bottom: 30, left: 60}, axis_padding = 5, width = options.container.width() - margin.left - margin.right, height = 300 - margin.top - margin.bottom; var data = options.vote_similari...
JavaScript
0
@@ -323,16 +323,61 @@ _list;%0A%0A + width = d3.max(%5Bwidth, data.length + 1%5D);%0A%0A var x
638689e0ad177e722249cc07758490d789db4451
Add parsing unit tests
test/lib/parsers/javascript.js
test/lib/parsers/javascript.js
'use strict'; var test = require('tap').test, parse = require('../../../lib/parsers/javascript'); function toComment(fn, filename) { return parse({ file: filename || 'test.js', source: fn instanceof Function ? '(' + fn.toString() + ')' : fn }); } test('parse - unknown tag', function (t) { t.equal(toC...
JavaScript
0.000001
@@ -113,16 +113,17 @@ oComment +s (fn, fil @@ -197,71 +197,496 @@ ce: -fn instanceof Function ? '(' + fn.toString() + ')' : fn%0A %7D +'(' + fn.toString() + ')'%0A %7D);%0A%7D%0A%0Atest('parse - leading comment', function (t) %7B%0A t.deepEqual(toComments(function () %7B%0A /** one */%0A /** two */%0A f...
80269989131cf02b7a512d5fa58582f4ebf20123
Update showHidePassword.js
script/showHidePassword.js
script/showHidePassword.js
// show/hide password in forms const nodeList = document.getElementsByTagName("input"); let isShown = false; [...nodeList].forEach(node => { if(!isShown && node.getAttribute("type") === "password"){ node.setAttribute('type', 'text'); isShown = true } else { node.setAttribute('type', 'password'); } }...
JavaScript
0
@@ -1,8 +1,33 @@ +/*jshint esversion: 6 */%0A // show/
e0cb20aed9ddde8510c5042c20e89c189c1f2a72
Fix other regexp in createTempFile() test
test/ringo/utils/files_test.js
test/ringo/utils/files_test.js
var assert = require("assert"); var files = require('ringo/utils/files'); var fs = require('fs'); const PARENT = '/home/ringo/'; const CHILD = 'Projects'; const RELATIVE_CHILD = './' + CHILD; const FOO = 'foo'; exports.testResolveUri = function () { // Should work the same for both normal and relative child notat...
JavaScript
0.000009
@@ -1440,19 +1440,21 @@ ue(/ -%5E.*%5C/ +%5B%5C/%5C%5C%5D ringo -. +%5Cw *%5C.j
d046f11c20397c7683518bf36b1ce98d5e176a63
Make checkbox labels clickable again
src/filterForm.js
src/filterForm.js
import React, {Component, PropTypes} from 'react'; class FilterForm extends Component { constructor(props) { super(props); this.values = { certificate: [ 'DGNP-Gold', 'Green Globe', 'GCB Green Member', 'FSC-Papier', ], foodImpact: [ 'Gering', ...
JavaScript
0.000004
@@ -813,16 +813,63 @@ i) =%3E %7B%0A + const checkboxId = %60$%7Bname%7D_$%7Bi%7D%60;%0A @@ -1103,30 +1103,26 @@ id=%7B -%60$%7Bname%7D_$%7Bi%7D%60 +checkboxId %7D%0A @@ -1170,17 +1170,16 @@ or=%7B -%60 checkbox $%7Bi%7D @@ -1174,21 +1174,18 @@ checkbox -$%7Bi%7D%60 +Id %7D%3E%7Bv...
0fab2689f7308fab09b9bf0e1f7ea570da6b6ce8
Disable suspected test to confirm if it pass without it
test/test-canonical-fs-uris.js
test/test-canonical-fs-uris.js
'use strict' const tabs = require('sdk/tabs') const { prefs } = require('sdk/simple-prefs') const fs = require('../lib/protocols.js').fs.createInstance() const gw = require('../lib/gateways.js') const self = require('sdk/self') const testpage = self.data.url('linkify-demo.html') const mdownPath = 'ipfs/QmSrCRJmzE4zE1...
JavaScript
0
@@ -7,16 +7,19 @@ trict'%0A%0A +// const ta @@ -39,24 +39,24 @@ 'sdk/tabs')%0A - const %7B pref @@ -189,24 +189,27 @@ teways.js')%0A +// const self = @@ -229,16 +229,19 @@ /self')%0A +// const te @@ -284,16 +284,19 @@ .html')%0A +// const md @@ -375,16 +375,19 @@ ple.md'%0A +// const sr @@ -684,198 +68...
35a67c4637533df09191e234aede2f19d059d83d
update gh
scripts/github-commands.js
scripts/github-commands.js
module.exports = function(robot) { 'use strict'; var slackMsgs = require('./slackMsgs.js'); /* set Github Account */ var GitHubApi = require("github"); //var Trello = require(https://api.trello.com/1/client.js?key=51def9cb08cf171cd0970d8607ad8f97); var github = new GitHubApi({ /* optional */ // d...
JavaScript
0.000001
@@ -1773,24 +1773,362 @@ ployment': %0A +%09%09%09%09if (adapter == 'slack')%7B%0A%09%09%09%09%09let msg = slackMsgs.githubEvent();%0A%09%09%09%09%09msg.attachments%5B0%5D.title = %60Deployment $%7Bpayload.deployment_status%7D%60;%0A%09%09%09%09%09msg.attachments%5B0%5D.pretext = '';%0A%09%09%09%09%09msg.attachments%5...
f13a009b679930d8b0bf9c24be105eed4e13f870
No await, no async
src/test.js
src/test.js
import fs from 'fs'; import { all, promisify, reject, resolve } from 'bluebird'; import { either, evolve, filter, inc, startsWith, tryCatch } from 'ramda'; import { compileES6 } from './compiler'; import { getLocaleStrings } from './i18n'; import { emitError, emitInfo, emitSuccess } from './inpu...
JavaScript
0.999079
@@ -1832,22 +1832,16 @@ t loop = - async (%5Btest,
d2b8c1c6c0d45b967694533cf879a3ddb08e89b0
Adding test file path as argument of the rtcBot run command's arguments.
tools/rtcbot/test.js
tools/rtcbot/test.js
// Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing proj...
JavaScript
0.999995
@@ -2368,16 +2368,25 @@ runTest( +botType, testfile @@ -2548,23 +2548,15 @@ est( -process.argv%5B2%5D +botType ) %7D) @@ -2572,41 +2572,39 @@ est( -%22./test/webrtc_video_streaming.js%22 +process.argv%5B2%5D, process.argv%5B3%5D );%0A
21c4caf2f703f182cb79956edd2c23c762bf20c3
Resolve paths with path.resolve
tools/server/boot.js
tools/server/boot.js
var Fiber = require("fibers"); var fs = require("fs"); var path = require("path"); var Future = require(path.join("fibers", "future")); var _ = require('underscore'); var sourcemap_support = require('source-map-support'); // This code is duplicated in tools/main.js. var MIN_NODE_VERSION = 'v0.10.28'; if (require('sem...
JavaScript
0.000021
@@ -5595,16 +5595,29 @@ ePath = +path.resolve( __dirnam @@ -5621,16 +5621,9 @@ name - + %22/%22 + +, fil @@ -5632,16 +5632,17 @@ nfo.path +) ;%0A va
55a6a8293050a481d419f5875df6d6381e16a178
test run async
src/test.js
src/test.js
import defRules from './rules' import * as util from './util' const allDevices = Object.keys(util.devices).map(key => util.devices[key]) const severity = function (val) { switch (val) { case 0: case 'off': return 'off' case 1: case 'warn': return 'warn' case 2: case 'error': ...
JavaScript
0.000002
@@ -2200,16 +2200,22 @@ .reduce( +async function @@ -2216,16 +2216,17 @@ nction ( +p prev, de @@ -2372,16 +2372,52 @@ havn't-%0A + const prev = await prev%0A @@ -3011,16 +3011,22 @@ t pass = + await test(ta
5836293913a76dc0a1a4f5c18fa84e6b7bed16ae
Fix code bug in test
test/unit/testExecutionPlan.js
test/unit/testExecutionPlan.js
'use strict'; var jf = require('../../'), expect = require('chai').expect; const testFilePath = './' + Math.random() + '.json'; var testValue1 = { msg: "test value 1" }; var testValue2 = { msg: "test value 2" }; describe('Chained operation ', function () { it('can be branched.', function (done) { let ...
JavaScript
0.00001
@@ -623,18 +623,16 @@ ath ) =%3E - %7B filePat @@ -648,18 +648,16 @@ FilePath - %7D );%0A%0A
6fe1d2e648eea075c5c55d92735925db9b929ad2
Add a method to post to GH commit status
src/github-api.js
src/github-api.js
import './babel-maybefill'; import url from 'url'; import _ from 'lodash'; import request from 'request-promise'; import parseLinkHeader from 'parse-link-header'; import pkg from '../package.json'; import {asyncMap} from './promise-array'; import createLRU from 'lru-cache'; const d = require('debug')('serf:github-api...
JavaScript
0
@@ -462,28 +462,39 @@ , token=null +, body=null ) %7B%0A - let tok = @@ -575,22 +575,15 @@ let -ret = request( +opts = %7B%0A @@ -769,19 +769,113 @@ n: true%0A - %7D +;%0A%0A if (body) %7B%0A opts.body = body;%0A opts.method = 'post';%0A %7D%0A%0A let ret = request(opts );%0A%0A le @@ -2291,1...
237df1fb0602c5616b195a23366a965a88cf2d2e
Fix code fragments printing.
src/util.js
src/util.js
import fs from 'fs'; import path from 'path'; import mkdirp from 'mkdirp'; import yaml from 'js-yaml'; import chalk from 'chalk'; import striptags from 'striptags'; import escapeHtml from 'escape-html'; import IntlMessageFormat from 'intl-messageformat'; import { DateTimeFormat } from 'intl'; import createFormatCache f...
JavaScript
0.000005
@@ -3759,21 +3759,29 @@ (file), +Number( line) +) ;%0A%09%7D%0A%09re @@ -3965,20 +3965,30 @@ %09%3Cpre%3E$%7B +_.escape( code +) %7D%3C/pre%3E%0A
68b2e7e38ca5624855d451fd3e18d68f0e21b32e
increase random assigned memory
src/util.js
src/util.js
import { OPERATORS } from '@/const'; export function getRandom(min, max) { const minCeil = Math.ceil(min); const maxFloor = Math.floor(max); return Math.floor(Math.random() * ((maxFloor - minCeil) + 1)) + minCeil; } export function generateProcessValues() { const operators = Object.values(OPERATORS); ret...
JavaScript
0.000001
@@ -345,13 +345,13 @@ dom( -2, 10 +6, 25 ),%0A
c4c11a06806a9b198999111b8f0afc45030e831d
write weather to file
edison-cli.js
edison-cli.js
/** * Edison CLI to provide time-saving Bash calls via NPM */ var util = require('util'), exec = require('child_process').exec, request = require("request"), moment = require("moment"), child = require('child_process'), async = require('async'); var EdisonCLI = function () {}; EdisonCLI.prototype = {...
JavaScript
0.000026
@@ -1118,51 +1118,8 @@ ) %7B%0A -%09%09 %09//var bodyparse = JSON.parse(body);%0A %09%09 @@ -1164,16 +1164,17 @@ ll, 4);%0A +%0A %09%09 %09/ @@ -1178,191 +1178,350 @@ %09// -var observation = bodyparse.response.current_observation;%0A%09%09 //var entries = %22temp: %22 + observation.temp_f + %22 wi...
a268c9fc2dcee44170bca34bf7c0af14b0f2f81b
update trigger function try-catch style
src/util.js
src/util.js
/** * Utilties */ // export default for holding the Vue reference const exports = {} export default exports /** * warn * * @param {String} msg * @param {Error} [err] * */ export function warn (msg, err) { if (window.console) { console.warn('[vue-validator] ' + msg) if (err) { console.warn(er...
JavaScript
0.000003
@@ -2018,20 +2018,16 @@ %0A try %7B -%0A el.disp @@ -2042,18 +2042,16 @@ t(e) -%0A %7D catch (e) @@ -2046,16 +2046,17 @@ %7D catch + (e) %7B%7D%0A%7D
eecf8f0fb24140cbd16a31f1043e705363e46246
Test travis fail build
src/wall.js
src/wall.js
// --- Application objects ---------------------------------------------------- class WallClient { constructor(host, port, path) { this.clientId = WallClient.generateClientId(); var client = new Paho.MQTT.Client(host, port, path, this.clientId); var connectOption...
JavaScript
0
@@ -81,16 +81,18 @@ %0A%0D%0Aclass +xx WallCli
d778353f111fbc75e3d80cf2f043b6d568cf5212
rename bindActionOnSet to onSet
src/html/scope.js
src/html/scope.js
function Scope(templateName, _parent, params, holder) { if (!templates[templateName]) { console.error("unknown template ", templateName); } this.template = templates[templateName].cloneNode(true); // deep this._parent = _parent; this.params = params; this.cleanUp = []; if (_parent) for (var key in...
JavaScript
0.000026
@@ -3304,19 +3304,9 @@ ,%0A -bindActionO +o nSet @@ -3799,17 +3799,16 @@ nding = -d ataBindi
3f7d4fab6862abd8bfce270d3f9bdb83205582e8
Add tests for link adding for simple graph
src/index.test.js
src/index.test.js
var expect = require("chai").expect; var graph = require("./index"); describe("Graph", function () { var graphs = [ { obj: graph.UndirectedUnweightedGraph, name: "Undirected Unweighted Graph", type: {weighted: false, directed: false} }, { obj: graph.Undi...
JavaScript
0.000001
@@ -1981,13 +1981,1002 @@ %7D);%0A +%0A describe(%22Add and has link%22, function()%7B%0A it(%22Add link in unweighted undirected graph%22, function()%7B%0A var g = graph.UndirectedUnweightedGraph();%0A g.addNode(%22One%22, 1);%0A g.addNode(%22Two%22, 2);%0A g....
854686fac0c37feb0968f80ce567a2f3463b2105
remove catch all route
src/indexRoute.js
src/indexRoute.js
import {getEnv} from "./getEnv"; import {version} from "../package.json"; const IMAGE_QUALITY = getEnv("IMAGE_QUALITY").optional(50).number(); const CACHE_TTL = getEnv("CACHE_TTL").optional(3600000).number(); const WIDTH_POST = getEnv("WIDTH_POST").optional(1024).number(); const WIDTH_THREAD = getEnv("WIDTH_THREAD").o...
JavaScript
0.001225
@@ -411,12 +411,17 @@ ver. -use( +get(%22/%22, (req @@ -880,16 +880,100 @@ %0A %7D); +%0A%0A webserver.use((req, res) =%3E %7B%0A res.status(404).send(%22400 + 4%22);%0A %7D); %0A ret
ba5b5cabc38165ebcb443ad57f81b13191311a19
Use afterClean event.
src/inlineMode.js
src/inlineMode.js
'use strict'; // Creates a <br>. function br () { return document.createElement('br') } function onKeydown (e) { if (e.keyCode === 13) e.preventDefault() } function onInput () { var first this.selection.save() this.sanitizer.clean(this.elem) // Remove all whitespace at the beginning of the element...
JavaScript
0
@@ -185,20 +185,8 @@ () %7B -%0A var first %0A%0A @@ -243,16 +243,85 @@ .elem)%0A%0A + this.selection.restore()%0A%7D%0A%0Afunction afterClean () %7B%0A var first%0A%0A%0A // Rem @@ -372,16 +372,49 @@ lement.%0A + // FIXME: doesn't really work.%0A first @@ -483,16 +483,23 @@ rst.data +.trim() ) %7B%0...
3da06e1ba7c9497607fd5439fb6124d2336e43eb
Add comment.
src/item/Group.js
src/item/Group.js
/* * Paper.js * * This file is part of Paper.js, a JavaScript Vector Graphics Library, * based on Scriptographer.org and designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Distributed under the MIT license. See LICENSE file for details. * * Copyright (c) 2011, Juerg ...
JavaScript
0
@@ -2874,16 +2874,106 @@ ld;%0A%09%09%7D%0A +%09%09// Make sure we're setting _clipItem to null so it won't be searched for%0A%09%09// nex time.%0A %09%09return
a9c50da9f3e6a09f47e995dcd152bbbf41043c57
Fix import
scripts/update-location.js
scripts/update-location.js
#!/usr/bin/env node let { existsSync, dirname } = require('fs') let { writeFile, mkdir } = require('fs').promises let { join } = require('path') let dotenv = require('dotenv') let MyError = require('./lib/my-error') let read = require('./lib/read') let get = require('./lib/get') dotenv.config() const FILE = join(__...
JavaScript
0.000002
@@ -24,52 +24,8 @@ t %7B -existsSync, dirname %7D = require('fs')%0Alet %7B writ @@ -74,16 +74,62 @@ t %7B join +, dirname %7D = require('path')%0Alet %7B existsSync %7D = req @@ -130,28 +130,26 @@ = require(' -path +fs ')%0Alet doten
ef5421530011e231f3693e33947108b37583d0f6
Remove unused parameter
src/js/options.js
src/js/options.js
'use strict'; import $ from 'jquery'; import Promise from 'bluebird'; const getTeamIcon = function(config) { // TODO: jQuery捨てるときにPromiseをreturnしないようにしてresolve/rejectをそれぞれreturn/throwを使って置き換える return new Promise(function(resolve, reject) { $.ajax({ type: 'GET', url: 'https://api.esa.io/v1/teams/' ...
JavaScript
0.000002
@@ -684,30 +684,24 @@ = function( -config ) %7B%0A let te
2f31ff8d0df6577a875189e52bbfae92c40cd3aa
Add Brazilian Portuguese
src/lang/index.js
src/lang/index.js
'use strict'; import da from './da'; import de from './de'; import en from './en'; import fr from './fr'; import ja from './ja'; import ko from './ko'; import ru from './ru'; import zh_cn from './zh_cn'; export { da, de, en, fr, ja, ko, ru, zh_cn }; export default { da, de, en, fr, ja, ko, ru, zh_cn };
JavaScript
0.999929
@@ -169,16 +169,45 @@ './ru';%0A +import pt_br from './pt_br';%0A import z @@ -266,24 +266,31 @@ o, ru, zh_cn +, pt_br %7D;%0Aexport d @@ -331,12 +331,19 @@ u, zh_cn +, pt_br %7D;%0A
ec6ae3fe32a1d22e1d4004b5dad0e9af9b6438d2
support additional headers
src/lib/rpcapi.js
src/lib/rpcapi.js
import 'whatwg-fetch'; const url = "http://localhost:1920"; const headers = { 'Content-Type': 'application/json' }; let requestSeq = 1; export function rpc(name, params) { const data = { "jsonrpc": "2.0", "method": name, "params": params, "id": requestSeq++ }; return f...
JavaScript
0
@@ -60,17 +60,21 @@ ;%0Aconst -h +baseH eaders = @@ -172,16 +172,25 @@ , params +, headers ) %7B%0A @@ -361,24 +361,51 @@ headers: + Object.assign(baseHeaders, headers , body: @@ -396,16 +396,17 @@ headers +) , body:
dd770446bee0d9fe1b279835fdcc9c73d2b53012
Update bignum.js
bignum/bignum.js
bignum/bignum.js
var numVals = {} numVals.add = function(key, value) { numVals[key] = value + ""; } for( var i = 0; i < 10; i++ ) { var val = i + 48; numVals.add(i, val); } for( var i = 0; i < 26; i++ ) { var val = i + 65; var char = String.fromCharCode(val); numVals.add(char, val); numVals.add(i + 10, val); } function num...
JavaScript
0.000001
@@ -1625,32 +1625,34 @@ iggerThanOrEqual +To ( otherNumber )%0A @@ -1737,16 +1737,18 @@ nOrEqual +To ( otherN
6f6d9bd5a8f79a42d3893d179c6eefe734d3f679
Simplify chokidar event handler
bin/6to5/file.js
bin/6to5/file.js
var sourceMap = require("source-map"); var chokidar = require("chokidar"); var util2 = require("../../lib/6to5/util"); var path = require("path"); var util = require("./util"); var fs = require("fs"); var _ = require("lodash"); module.exports = function (commander, filenames) { var resu...
JavaScript
0.000615
@@ -2962,106 +2962,35 @@ %7D) -;%0A%0A _.each(%5B%22add%22, %22change%22, %22unlink%22%5D, function (type) %7B%0A watcher.on(type, function ( +.on(%22all%22, function (type, file @@ -2989,34 +2989,32 @@ pe, filename) %7B%0A - console. @@ -3042,26 +3042,24 @@ - walk();%0A ...
a23773a500a5d9a2a98754cfd2f4f3249cffb695
Rebuild prior to validation
bin/presidium.js
bin/presidium.js
#! /usr/bin/env node var yargs = require('yargs'); var config = require('../src/config'); var presidium = require('../src/presidium'); var conf = config.load('_config.yml'); var argv = yargs.usage('$0 command') .command('requirements', 'Install jekyll gems and npm dependencies', function (yargs) { presidiu...
JavaScript
0
@@ -873,32 +873,128 @@ ction (yargs) %7B%0A + presidium.clean(conf);%0A presidium.generate(conf);%0A presidium.build(conf);%0A presidiu
fde0b36912a78604ed4932af737ac3263dd2b129
add missing propType "extra"
src/line-chart.js
src/line-chart.js
import * as array from 'd3-array' import * as scale from 'd3-scale' import * as shape from 'd3-shape' import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import { StyleSheet, View } from 'react-native' import Svg from 'react-native-svg' import Path from './animated-path' import { Constants }...
JavaScript
0
@@ -4708,24 +4708,53 @@ pes.number,%0A + extras: PropTypes.array,%0A renderDe
8d25eb87fe34e0178e4d18f0d698289abecd7be1
Reset settings functionality added
src/main/index.js
src/main/index.js
const { electron, globalShortcut, app, BrowserWindow, Tray, Menu, shell, ipcMain, dialog } = require('electron'); const settings = require('electron-settings'); const path = require('path'); const url = require('url'); const fs = require('fs'); const stripJsonComments = require('strip-json-comments');...
JavaScript
0
@@ -3760,24 +3760,42 @@ t are there%0A + try %7B%0A be @@ -3834,16 +3834,18 @@ + stripJso @@ -3865,24 +3865,26 @@ + fs.readFileS @@ -3884,24 +3884,26 @@ adFileSync(%0A + @@ -3964,24 +3964,26 @@ + 'utf8'%0A @@ -3983,34 +3983,38 @...
d202f3baea0fdb7f69f9131430f44d99b9b20d14
add flow types to makeAreaSlug
modules/hanson-format/make-area-slug.js
modules/hanson-format/make-area-slug.js
import kebabCase from 'lodash/kebabCase' export function makeAreaSlug(name) { return kebabCase((name || '').replace("'", '')).toLowerCase() }
JavaScript
0
@@ -1,8 +1,17 @@ +// @flow%0A import k @@ -77,17 +77,33 @@ lug(name -) +: string): string %7B%0A%09retu
fb541c65383729737577febde46dcdf93f4043d8
add small speed up to action calls
src/Actions.js
src/Actions.js
import Rx from 'rx'; import invariant from 'invariant'; import assign from 'object.assign'; import debugFactory from 'debug'; import waitFor from './waitFor'; const debug = debugFactory('thundercats:actions'); const protectedProperties = [ 'displayName', 'constructor' ]; export function getActionNames(ctx) { r...
JavaScript
0
@@ -709,82 +709,8 @@ ) %7B%0A - /* istanbul ignore else */%0A if (typeof map === 'function') %7B%0A @@ -730,24 +730,16 @@ (value); -%0A %7D %0A%0A @@ -2989,24 +2989,16 @@ itions = -%0A actionD @@ -3015,16 +3015,25 @@ .concat( +%0A actionNa @@ -3055,20 +3055,53 @@ (%...
e45e949947e1986e89ee5bbad86b4095636fe45b
add log to get out the problems on travis integation tests
src/services/user/services/AdminUsers.js
src/services/user/services/AdminUsers.js
/* eslint-disable no-param-reassign */ /* eslint-disable class-methods-use-this */ const { BadRequest, Forbidden } = require('@feathersjs/errors'); const { authenticate } = require('@feathersjs/authentication').hooks; const moment = require('moment'); const logger = require('../../../logger'); const { createMultiDocume...
JavaScript
0
@@ -2320,117 +2320,112 @@ s%5B0%5D -);%0A%09%09%09%09// else if (_id) resolve(res%5B0%5D.data%5B0%5D %7C%7C %7B%7D);%0A%09%09%09%09// else resolve(res%5B0%5D);%0A%09%09%09%7D));%0A%09%09%7D catch (err) %7B + %7C%7C %7B%7D);%0A%09%09%09%7D));%0A%09%09%7D catch (err) %7B%0A%09%09%09logger.error('------------------------...
6e5da323ca2ad20b79779af5eb2a2838bab73d17
Remove App.js from tests
src/App.test.js
src/App.test.js
/*jshint ignore: start*/ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App />, div); ReactDOM.unmountComponentAtNode(div); });
JavaScript
0.000001
@@ -83,33 +83,8 @@ om'; -%0Aimport App from './App'; %0A%0Ait
22ec30abcef58a0e9216892edea6af4995caec0a
Update autoClear.js
service/autoClear.js
service/autoClear.js
/** * Created by chriscai on 2014/10/14. */ var MongoClient = require('mongodb').MongoClient; var log4js = require('log4js'), logger = log4js.getLogger(); var url = global.MONGODB.url; var mongoDB; // Use connect method to connect to the Server MongoClient.connect(url, function(err, db) { if(err){ ...
JavaScript
0.000001
@@ -502,9 +502,17 @@ %0A// -5 +%E6%B8%85%E7%90%86 maxAge %E5%A4%A9%E5%89%8D%E7%9A%84