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
68bdfe8bcd963f7fdc5a79e90dcba7d16a73a279
add missing [
topicCharacteristic.js
topicCharacteristic.js
var bleno = require('bleno'); function TopicCharacteristic(config, client) { bleno.Characteristic.call(this, { uuid: '6bcb06e2747542a9a62a54a1f3ce11e6', properties: 'read', 'write', 'notify'], descriptors: [ new bleno.Descriptor({ uuid: '2901', value: 'Topic: ' + config.topic }) ] }); this._v...
JavaScript
0.000033
@@ -164,16 +164,17 @@ erties: +%5B 'read',
d03ecbc5d056f521a2504530ebc9bf15f19af5cc
add support for subscriptions with additional arguments
moo.js
moo.js
"use strict"; function Moo(transport) { this.transport = transport; this.reqid = 0; this.subkey = 0; this.requests = {}; this.mooid = Moo._counter++; this.logger = transport.logger; } Moo._counter = 0; Moo.prototype._subscribe_helper = function(svcname, reqname, cb) { var self = this; ...
JavaScript
0
@@ -302,50 +302,239 @@ ar s -elf = this;%0A var subkey = self.subkey++ +ubscription_args = %7B%7D;%0A if (arguments.length == 4) %7B%0A cb = arguments%5B3%5D;%0A subscription_args = arguments%5B2%5D;%0A %7D%0A var self = this;%0A var subkey = self.subkey++;%0A subscription_args.subscrip...
2943f5b75fc93b8087911e29a5fe67d9d262b7ac
update sample
samples/options.cast.js
samples/options.cast.js
const parse = require('../lib/sync') const assert = require('assert') const data = ` 2000-01-01,date1 2050-11-27,date2 `.trim() const records = parse(data, { cast: function(value, context){ if(context.index === 0){ return `${value}T05:00:00.000Z` }else{ return context } }, trim: true...
JavaScript
0
@@ -375,39 +375,70 @@ 00.000Z', %7B%0A -quoting +column: 1, empty_line_count: 0, header : false, lines: @@ -434,62 +434,83 @@ se, -l in -es +dex : 1, - count: 0 +%0A quoting: false , +l in -dex +es : 1, -header: false, column: 1 +records: 0, skipped_line_count: 0%0A %7D %5D @@ -553,78 +553,130 @@ ...
23503f11bd10334eed4c793d4696036a15353125
Clear the timer in IAB.close to prevent the window from reopening.
patch_window.js
patch_window.js
// Meteor's OAuth flow currently only works with popups. Phonegap does // not handle this well. Using the InAppBrowser plugin we can load the // OAuth popup into it. Using the plugin by itself would not work with // the MeteorRider phonegap method, this fixes it. This has not been // tested on other Meteor phonegap met...
JavaScript
0
@@ -2964,16 +2964,52 @@ return;%0A +%0A clearInterval(timer);%0A%0A
f64413b6c2da3e2b10e4300eadee612c9df94b63
Revert "Revert "edit button no longer appears next to undefined in history tab""
js/history.js
js/history.js
// This tab should list all the transactions you have done with any of your accounts var HistoryPage = new (function () { var hist = {}; this.onShowTab = function () { $('#HistoryTable').empty(); _.each(hist, function (t, hash) { HistoryPage.renderTransaction(t); }); }; //<table class="da...
JavaScript
0
@@ -1264,30 +1264,24 @@ Name(toAcct) - %7C%7C %22%22 ,%0A %0A @@ -1371,15 +1371,357 @@ cct) - %7C%7C %22%22, +,%0A %0A // no button if name matches one of these%0A noBut = %7B 'you': 1, 'undefined': 1%7D;%0A editButtons = (' %3Cbutton class=%22edit%22 onclick=%22HistoryPage.editNa...
ce0347982b058ca8e52b2cc0c362fb21d2e709a2
Add timestamps to personality schema
models/personality.js
models/personality.js
'use strict'; const mongoose = require('mongoose'); const personalitySchema = mongoose.Schema({ twitter_handle: String, raw_response: Object, api_version: String }); const Personality = mongoose.model('Personality', personalitySchema); module.exports = Personality;
JavaScript
0.00136
@@ -163,16 +163,40 @@ String%0A +%7D, %7B%0A timestamps: true%0A %7D);%0A%0Acon
b7e095e581fb456b21efea51848570a34325d645
Update test dependencies.
test/deps.js
test/deps.js
// This file was autogenerated by calcdeps.js goog.addDependency("../../node_modules/closure-dom/src/dom.js", ["dom"], []); goog.addDependency("../../src/css.js", ["fontface.Css"], []); goog.addDependency("../../src/descriptors.js", ["fontface.Descriptors"], []); goog.addDependency("../../src/observer.js", ["fontface.O...
JavaScript
0
@@ -121,70 +121,8 @@ %5D);%0A -goog.addDependency(%22../../src/css.js%22, %5B%22fontface.Css%22%5D, %5B%5D);%0A goog @@ -289,23 +289,8 @@ dom%22 -,%22lang.Promise%22 %5D);%0A @@ -364,184 +364,4 @@ %5D);%0A -goog.addDependency(%22../../node_modules/promis/src/async.js%22, %5B%22lang.async%22%5D, %5B%5D);%0Agoog.add...
ea0d2a88ac4a2d43e3fa127fcf200cbef31f5b95
Fix notas en decimales
js/plugins.js
js/plugins.js
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function noop() {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profi...
JavaScript
0.999863
@@ -1892,25 +1892,16 @@ ia.push( -parseInt( res%5Bi%5D.v @@ -1905,17 +1905,16 @@ %5D.value) -) ; //esta @@ -2199,16 +2199,28 @@ ditos);%0A + %0A
b33afbce36e2b8c37c681853f79542b8a394def5
test res text
modules/msgHandler.js
modules/msgHandler.js
var weConfig = require('../config') var OAuth = require('wechat-oauth') var WechatAPI = require('wechat-api') var request = require('request') var client = new OAuth(weConfig.appid, weConfig.secret) var api = new WechatAPI(weConfig.appid, weConfig.secret) module.exports = function(req, res, next) { var msg = req.wei...
JavaScript
0.000005
@@ -852,16 +852,19 @@ + // if (err @@ -870,32 +870,35 @@ r) %7B%0A + // res.reply(' @@ -918,32 +918,35 @@ %60)')%0A + // next()%0A @@ -952,16 +952,19 @@ + // %7D else @@ -972,24 +972,27 @@ %0A + // var cha @@ -1060,24 +1060,27 @@ %0A ...
780bf690d6806eb1530039abd6b504232c0f5d04
fix a bug
js/scripts.js
js/scripts.js
$(window).load(function(){ hideLogo(); arrangeBoxes(); window.setTimeout("preShowModals(0)", 2000); $('.menu').bind("click", preShowModals); $('.contact').bind("click", showInfo); //リロード時、最上部へ移動 $('html,body').animate({ scrollTop: 0 }, '1'); //リサイズ時にボックスの配置をやり直す $(window).bind("resize", arra...
JavaScript
0.000016
@@ -327,16 +327,65 @@ es);%0D%0A%0D%0A +%09$(%22.prev-next%22).bind(%22click%22, arrangeBoxes);%0D%0A%0D%0A %0D%0A%09//%E5%8F%B3%E4%B8%8A%E3%81%AE
3bf2c0f495c17231c7c2a65147800f6199f465cf
Update scripts.js
js/scripts.js
js/scripts.js
/*! Title: Dev Portfolio Template Version: 1.2.1 Last Change: 08/27/2017 Author: Ryan Fitzgerald Repo: https://github.com/RyanFitzgerald/devportfolio-template Issues: https://github.com/RyanFitzgerald/devportfolio-template/issues Description: This file contains all the scripts associated wi...
JavaScript
0.000002
@@ -1,257 +1,7 @@ /*! -%0A Title: Dev Portfolio Template%0A Version: 1.2.1%0A Last Change: 08/27/2017%0A Author: Ryan Fitzgerald%0A Repo: https://github.com/RyanFitzgerald/devportfolio-template%0A Issues: https://github.com/RyanFitzgerald/devportfolio-template/issues %0A%0A
106595d0f722a14c4f7ddedd6ae252b9da0e0a74
Add check functions
js/toolbar.js
js/toolbar.js
function sanitizeInput(string) { console.log("test"); } function openNewTicket(ticket) { addHistory(ticket); chrome.storage.sync.get(function(items) { var url = items.useURL; var defaultProject = items.useDefaultProject; window.open(url + "/" + defaultProject + "-" + ticket, "_blank", "", false); }...
JavaScript
0.000001
@@ -6,54 +6,577 @@ ion -sanitizeInput(string) %7B%0A console.log(%22test%22); +formCustomProject(string) %7B%0A // Default ticket pattern%0A var regex = new RegExp('(%5Ba-z%5D%7B2,%7D-%5C%5Cd+)', 'i');%0A var text_found = string.match(regex);%0A%0A if (text_found) %7B%0A return text_found;%0A %7D%0A%0A //...
64d1f762767d0f289fae93854d8e2b22b3a5b375
fix bug
modules/monitoring/metrics/cpu-metric.js
modules/monitoring/metrics/cpu-metric.js
'use strict'; const os = require('os'); class CPUCoreInfo { constructor(core) { this.core = core; } get usedTime() { return this.core.user + this.core.nice + this.core.sys; } get totalTime() { return this.core.user + this.core.nice + this.core.sys + this.core.idle; } ...
JavaScript
0.000001
@@ -2367,38 +2367,36 @@ CPUCoreInfo.get -System +User Time(currentInfo @@ -2694,38 +2694,37 @@ CPUCoreInfo.get -System +Total Time(currentInfo
2fbb72c25637f7485d405030def449921d2f1cec
fix mistake -.-
roo.js
roo.js
(function( global, factory ){ 'use strict'; // Environment Detect global.document ? factory( global || this ) : console.log('Roo must run in Document !'); }) ( // As Window this, // Factory function( window, undefined ){ var // Window w = window, // Document d = w.document, // Body b = d.body, // H...
JavaScript
0.000262
@@ -681,20 +681,19 @@ %09%09%09%09if( -info +obj .constru
9f6c5ffe0bdf2d06836a7e50e23988b2e2c22ee6
Increase timeout delay
test/gulp.js
test/gulp.js
import '../src' import bufferEqual from 'buffer-equal' import gulp from 'gulp' import rump from 'rump' import timeout from 'timeout-then' import {colors} from 'gulp-util' import {readFile, writeFile} from 'mz/fs' import {sep} from 'path' import {spy} from 'sinon' const {stripColor} = colors describe('tasks', function...
JavaScript
0.000002
@@ -1735,33 +1735,34 @@ await timeout( -8 +30 00)%0A await @@ -1834,9 +1834,10 @@ out( -8 +30 00)%0A
80f1e9081b30f00c39730b0ce132544712c3cf0f
Test readDir
test/hoax.js
test/hoax.js
var path = require('path') , load = require('./load').loadModule , hoax = load(path.resolve(__dirname, '../lib/index.js')) , assert = require('assert'); // Test fixtures var flow = path.resolve(__dirname, './fixtures/01 Uppermost - Flow.mp3') , norm = path.resolve(__dirname, './fixtures/02 Uppermost...
JavaScript
0.000001
@@ -184,16 +184,69 @@ ures%0Avar + fixtures = path.resolve(__dirname, './fixtures')%0A , flow = @@ -307,16 +307,16 @@ w.mp3')%0A - , norm @@ -431,16 +431,17 @@ on () %7B%0A +%0A it('Sh @@ -709,19 +709,254 @@ %7D);%0A - %7D);%0A +%0A it('Can glob a directory looking for .mp3 files', function () %7B...
ee3623d9e6d407e91209844c87eb807f459f8492
Fix missing parameter in uncaughtException handler
run.js
run.js
// ## Kumascript server runner // // Command line KumaScript server runner /*jshint node: true, expr: false, boss: true */ // ### Prerequisites var util = require('util'), http = require('http'), fs = require('fs'), net = require('net'), _ = require('underscore'), nconf = require('nconf'), ...
JavaScript
0.000008
@@ -3705,32 +3705,35 @@ ion', function ( +err ) %7B%0A log.erro
43d52eaae45c75c983c9b847fcf619e597af3316
Add test of passing hogan template options
test/main.js
test/main.js
var compile = require('../'); var should = require('should'); var os = require('os'); var path = require('path'); var gutil = require('gulp-util'); var File = gutil.File; var Buffer = require('buffer').Buffer; require('mocha'); describe('gulp-compile-hogan', function() { var fakeFile, fakeFile2; before(funct...
JavaScript
0
@@ -674,24 +674,206 @@ %7D);%0A%0A + fakeFile3 = new File(%7B%0A cwd: %22%22,%0A base: %22test%22,%0A path: %22test/file3.js%22,%0A contents: new Buffer(%22%3C%25 greeting %25%3E world%22)%0A %7D);%0A %7D);%0A @@ -3674,81 +3674,8 @@ e) %7B -%0A...
c1afc1a8ac6f13d5ecbee5d7a85ff6ce7169fc34
Update init.js
physics/init.js
physics/init.js
const Physics = { airResistance: 0.99,//The velocity of everything is multiplied by this number each frame. airResistanceSleeping: 0.9,//The air resistance of something that is "asleep". gravityForce: 0.7,//The magnitude of gravity constraintCompensation: 0.2,//The intensity of rigid constraints' compensa...
JavaScript
0.000001
@@ -1,13 +1,28 @@ -const +if(!Physics) %7B%0A var Physics @@ -26,16 +26,18 @@ ics = %7B%0A + airRes @@ -120,16 +120,18 @@ frame.%0A + airRes @@ -206,16 +206,18 @@ ep%22.%0A %0A + gravit @@ -258,16 +258,18 @@ vity%0A %0A + constr @@ -360,16 +360,18 @@ tion.%0A + + constrai @@ -432,16 ...
e351e73bc6b50b2673f56eb6a67f19e9888435f2
Update tests to test with Unicode
test/node.js
test/node.js
var test = require('tape'); var crypto = require('crypto'); var cryptoB = require('../'); function assertSame(name, fn) { test(name, function (t) { t.plan(1); fn(crypto, function (err, expected) { fn(cryptoB, function (err, actual) { t.equal(actual, expected); ...
JavaScript
0
@@ -681,33 +681,33 @@ hm).update('hell -o +%C3%B8 ', 'utf-8').dige @@ -887,17 +887,17 @@ te('hell -o +%C3%B8 ', 'utf- @@ -1033,17 +1033,17 @@ = 'hell -o +%C3%B8 ';%0A @@ -1125,37 +1125,49 @@ gorithm).update( +new Buffer( seed) +) .digest('binary' @@ -1232,21 +1232,33 @@ .update( +new Buffer( seed) +) ...
793f6233bd5c6eca82dcf796f6d76dae305e6f98
append nodes
test/node.js
test/node.js
/** * Test dependencies. */ var Node = require('../lib/node'); var assert = require('assert'); describe("node api", function() { it('should create node with type', function() { var node = new Node(1); assert.equal(node.nodeType, 1); }); });
JavaScript
0.000136
@@ -93,17 +93,16 @@ ert');%0A%0A -%0A describe @@ -111,12 +111,8 @@ node - api %22, f @@ -127,11 +127,13 @@ ) %7B%0A -%09%0A%09 + %0A it(' @@ -176,18 +176,20 @@ ion() %7B%0A -%09%09 + var node @@ -208,10 +208,12 @@ 1);%0A -%09%09 + asse @@ -244,9 +244,284 @@ 1);%0A -%09 + %7D);%0A%0A describe('a...
462bc83b96740bf04d6c06d43ab3251833401b66
Add test for firewall privacy.
test/open.js
test/open.js
/*jslint node: true */ "use strict"; var dualapi = require('../index'); var _ = require('underscore'); var assert = require('assert'); describe('dualapi', function () { describe('open', function () { var dual = dualapi(); describe('send', function () { it('should listen for du...
JavaScript
0
@@ -3594,32 +3594,682 @@ %7D);%0A +%0A it('ctxt should be private to the firewall', function (done) %7B%0A%0A dual.mount(%5B'voiture7', '*'%5D, function (ctxt) %7B%0A assert.equal(ctxt.to%5B1%5D, 'rouge')%0A done();%0A %7D);%0A ...
4b26c31b3b2816610ccc5a0eff777153b08ec6ec
Remove unnecessary option "repo" from tests
test/page.js
test/page.js
var fs = require('fs'); var path = require('path'); var assert = require('assert'); var page = require('../').parse.page; function loadPage (name, options) { var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/' + name + '.md'), 'utf8'); return page(CONTENT, options).sections; } var LEXED = loadPa...
JavaScript
0.000013
@@ -2586,81 +2586,8 @@ , %7B%0A - // GitHub repo ID%0A repo: 'GitBookIO/javascript',%0A%0A @@ -2623,32 +2623,32 @@ f markdown file%0A + dir: @@ -3027,81 +3027,8 @@ , %7B%0A - // GitHub repo ID%0A repo: 'GitBookIO/javascript',%0A%0A @@ -3377,32 +337...
aafb77266ebd4b6c5c0164a774255c25f8f71861
optimize CircularProgress
src/CircularProgress/CircularProgress.js
src/CircularProgress/CircularProgress.js
/** * Created by DT314 on 2017/4/7. */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import Percent from '../_Percent'; import './CircularProgress.css'; export default class CircularProgress extends Component { constructor(props, ...restArgs) { super(props, ...restArgs);...
JavaScript
0.999998
@@ -2483,16 +2483,17 @@ es.bool%0A +%0A %7D;%0A%0ACirc @@ -2518,24 +2518,25 @@ ltProps = %7B%0A +%0A classNam @@ -2553,18 +2553,20 @@ style: -%7B%7D +null ,%0A%0A p @@ -2668,12 +2668,13 @@ d: true%0A +%0A %7D;%0A%0A
6f0195030557740873cb6db32518f25cf0d6b140
Remove stray log
src/client/components/header.es6
src/client/components/header.es6
import Cursors from 'cursors'; import React from 'react'; import * as store from 'client/store'; export default React.createClass({ mixins: [Cursors], getInitialState: function () { return { isLoading: false }; }, signOut: function () { store.remove('key'); this.update({ isLoading...
JavaScript
0.000002
@@ -1031,35 +1031,8 @@ ) %7B%0A - console.log(er, user);%0A
99cac3fb59e41403073ed6d6708b8a6fb70e30aa
Fix auto scroll in some cases by adding 10px pad
src/client/containers/Channel.js
src/client/containers/Channel.js
import _ from 'lodash' import React, { Component } from 'react' import { connect } from 'react-redux' import { isChannelLoadingSelector, getChannelSelector, getMessagesSelector, messageRowsSelector, } from '../selectors' import { loadMessages } from '../actions' import Link from '../components/Link' import Maybe fro...
JavaScript
0
@@ -1826,16 +1826,24 @@ Scroll = + (%0A wrapper @@ -1853,21 +1853,24 @@ e.scroll -Top + +Height - wrapper @@ -1878,49 +1878,62 @@ ode. -offsetHeight === wrapperNode.scrollHeight +scrollTop%0A %3C= wrapperNode.clientHeight + 10%0A ) %0A%0A
ffb161dc4217d12bd07dda59bbb67aa07190c269
Fix tests
test/test.js
test/test.js
/*global afterEach, beforeEach, describe, it */ 'use strict'; var assert = require('assert'); var binCheck = require('bin-check'); var BinBuild = require('bin-build'); var execFile = require('child_process').execFile; var fs = require('fs'); var path = require('path'); var rm = require('rimraf'); describe('mozjpeg()'...
JavaScript
0.000003
@@ -1003,23 +1003,24 @@ n(tmp, ' -moz jpeg +tran ')));%0A
ae71193e63172f427ed13a71deaedce666ca3010
Clean up karma.conf.js
karma.conf.js
karma.conf.js
const path = require('path'); const webpackConfiguration = require('./webpack.config.js'); delete webpackConfiguration.entry; webpackConfiguration.module.postLoaders = [ // instrument only testing sources with Istanbul { test: /\.js$/, include: path.resolve('src/'), loader: 'istanbul-instrumenter', ...
JavaScript
0.000345
@@ -90,89 +90,113 @@ );%0A%0A -delete webpackConfiguration.entry;%0AwebpackConfiguration.module.postLoaders = %5B%0A +// Remove default entry point since we're using test-main.js instead%0Adelete webpackConfiguration.entry;%0A%0A // i @@ -244,14 +244,53 @@ bul%0A - %7B%0A +webpackConfiguration.module.postLoader...
d158a5a8fffd4a6db1ff5266baff838387d27000
Add bower back to ignore
karma.conf.js
karma.conf.js
module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['mocha', 'browserify', 'chai...
JavaScript
0
@@ -500,19 +500,16 @@ - // 'app/bo
301149a14576fa5a072264e4b06c639f5b19e1c2
fix build scripts
karma.conf.js
karma.conf.js
module.exports = function (config) { config.set({ basePath: '', frameworks: ['mocha'], files: [ { pattern: 'https://cdn.polyfill.io/v2/polyfill.js?features=default,WeakMap,WeakSet&flags=gated', watched: false, served: false, included: true }, { pattern: 'node_modules/power-assert/build/power-a...
JavaScript
0.000006
@@ -192,16 +192,69 @@ ,WeakSet +,Array.prototype.findIndex,Array.prototype.@@iterator &flags=g
a6972b819eb941ce0abda8fbac60cfa6dc87ac1f
add port 5757
karma.conf.js
karma.conf.js
module.exports = function (config) { var customLaunchers = require('./test/browsers'); var configuration = { frameworks: ['mocha', 'chai'], files: [ 'node_modules/jquery/dist/jquery.js', 'node_modules/lodash/lodash.js', 'node_modules/backbone/backbone.js', 'node_modules/idb-wrapper...
JavaScript
0.000002
@@ -709,24 +709,44 @@ tOptions: %7B%0A + port: 5757,%0A logf
326dd582bf5851bbea076fb087198d8c4291b076
fix the karma refernce to the old define.debug file
karma.conf.js
karma.conf.js
// Karma configuration file // // For all available config options and default values, see: // https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54 module.exports = function (config) { 'use strict'; config.set({ // base path, that will be used to resolve files and exclude basePath: '', ...
JavaScript
0.000202
@@ -475,14 +475,8 @@ ine. -debug. js',
70b286a7a471ad5b3f3edc29d4409e488c36003a
fix nested test assertion
test/test.js
test/test.js
var path = require('path'); var assert = require('assert'); var glob = require('glob'); var exec = require('child_process').exec; var npmLinkCheck = require('../index.js'); var CMD = 'node ' + path.join(__dirname, '..', 'cmd.js') + ' '; var DELAY = 1000; describe('simple project', function() { var makeProject = ...
JavaScript
0.000015
@@ -2529,28 +2529,26 @@ /**/' + -' module -1111' +Name , functi
386f876d49f3a89a09aef5b318ea9dafffc083f6
add karma for all browsers
karma.conf.js
karma.conf.js
'use strict'; /** * Module dependencies. */ var applicationConfiguration = require('./config/config'); // Karma configuration module.exports = function(config) { config.set({ // Frameworks to use frameworks: ['jasmine'], // List of files / patterns to load in the browser files: applicationConfiguration.as...
JavaScript
0
@@ -1152,16 +1152,43 @@ sers: %5B' +Chrome', 'Firefox' , 'IE',' PhantomJ
3f9c17f1556af64e476b90234197073ee0885cfb
Update test.js
test/test.js
test/test.js
/* * BotFather * Copyright(c) 2016 Aleki * MIT Licensed */ 'use strict'; const TOKEN = process.env.TOKEN; const BotFather = require('../index.js'); const bf = new BotFather(TOKEN); bf.api('getMe') .then((json) => { if(json.ok) { const bot = json.result; console.info(`All right! Your @${bot.user...
JavaScript
0.000001
@@ -412,20 +412,23 @@ .catch(( -reas +excepti on) =%3E %7B @@ -450,14 +450,23 @@ ror( -reason +exception.stack );%0A
b1fc2079a01037e0d948a8ba85bb088440205fe7
create object should return object with default domain
test/test.js
test/test.js
var assert = require('assert'); describe('NIS', function() { describe('require', function() { it('should return object', function() { var nis = require('../build/Release/nis'); assert.equal('object', typeof(nis)); }) }) });
JavaScript
0.000011
@@ -24,16 +24,96 @@ ssert'); +%0Avar nis = require('../build/Release/nis');%0Aassert.equal('object', typeof(nis)); %0A%0Adescri @@ -149,23 +149,29 @@ scribe(' +c re -quire +ate object ', funct @@ -206,24 +206,44 @@ eturn object + with default domain ', function( @@ -266,44 +266,17 @@ var -nis = require('../bui...
c76463b8b9818788376f93f8f51ea6434bada420
update karma config
karma.conf.js
karma.conf.js
// Karma configuration module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: './', // frameworks to use frameworks: ['jasmine', 'systemjs'], // list of files / patterns to load in the browser files:...
JavaScript
0
@@ -774,17 +774,17 @@ nts/**/* -. +_ spec.js'
b8b8f147d1a1ebbc1ea07c4eb55b5716f39b2833
fix karma.conf.js
karma.conf.js
karma.conf.js
module.exports = function(config) { var webdriverConfig = { hostname: 'fe.nhnent.com', port: 4444, remoteHost: true }; config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) // karma runner 의 웹 서버 root를 변경할 수 있음 basePath: '....
JavaScript
0.000755
@@ -1118,31 +1118,40 @@ ents/jquery/ +dist/ jquery. +min. js',%0A @@ -1243,44 +1243,8 @@ s',%0A - 'src/js/datepicker.js',%0A
52b0b84ce4e897af7822ddb0ed74db6feaa9ff2c
Add negative tie test case
test/test.js
test/test.js
'use strict'; // MODULES // var test = require( 'tape' ); var round = require( './../lib' ); // TESTS // test( 'main export is a function', function test( t ) { t.ok( typeof round === 'function', 'main export is a function' ); t.end(); }); test( 'the function rounds a numeric value to the nearest integer', func...
JavaScript
0.99983
@@ -370,24 +370,68 @@ uals -4' );%0A +%09t.equal( round( -4.5 ), -4, 'equals -4' );%0A %09t.equal( ro
e08418021e8e73385c7d9c5336f8ebd9567a41e1
test that the processes can be restarted more than once
test/test.js
test/test.js
var fs = require('fs') , child = require('child_process') , expect = require('expect.js') var dir = __dirname + '/fixture' , bin = __dirname + '/../bin/node-dev' , msgFile = dir + '/message.js' , msg = 'module.exports = "Please touch message.js now"\n' function touch() { fs.writeFileSync(msgFile, msg) } ...
JavaScript
0
@@ -1129,32 +1129,500 @@ s', done)%0A %7D)%0A%0A + it('should restart the server twice', function(done) %7B%0A spawn('server.js', function(out) %7B%0A if (out.match(/touch message.js/)) %7B%0A setTimeout(touch, 500)%0A return function(out) %7B%0A if (out.match(/Restarting/)) %7B%0A ...
7a93ca1b367ef5c2150e00531a2dae5584b8d74a
Fix reference
test/test.js
test/test.js
'use strict' var test = require('ava') var eslint = require('eslint') var extend = require('extend') var path = require('path') var tempWrite = require('temp-write') var configs = {default: require('../default')} configs.browser = extend(true, {}, configs.default, require('../browser')) configs.esnext = extend(true, {...
JavaScript
0.000002
@@ -199,16 +199,8 @@ ('.. -/default ')%7D%0A
a18885b995ec0ac6fecc62fe4ca319cdbff4f407
.catch(done.fail), not .catch(done)
test/test.js
test/test.js
var expect = require('chai').expect; var rollup = require('..'); var Readable = require('stream').Readable; var hypothetical = require('rollup-plugin-hypothetical'); function collect(stream) { return new Promise(function(resolve, reject) { var data = ''; stream.on('end', function() { resolve(data); ...
JavaScript
0.999996
@@ -4147,16 +4147,21 @@ tch(done +.fail );%0A %7D
1a51a406c3fc28bcc0cbcd42a691a0727974811f
Fix `Customers` test
test/test.js
test/test.js
'use strict'; var auth = require('./auth.json'); var expect = require('chai').expect; var should = require('chai').should(); var sap = require('../index')(auth); describe('Access Token', function() { this.timeout(30000); it('Should create authentication token', function(done) { setTimeout(function()...
JavaScript
0.000304
@@ -196,18 +196,16 @@ ion() %7B%0A - this.t @@ -220,18 +220,16 @@ 0000);%0A%0A - it('Sh @@ -276,28 +276,24 @@ ion(done) %7B%0A - setTimeo @@ -314,22 +314,16 @@ %7B%0A - - should.e @@ -346,22 +346,16 @@ token);%0A - do @@ -360,20 +360,16 @@ done();%0A - %7D, 1 ...
ef0c8ed18ecbaeea8d5610798ae84b2070c5b1fb
Make event proxy test more robust
test/test.js
test/test.js
require('chai').should(); var Person = require('./models/person'); var describe = global.describe; var it = global.it; describe('People', function () { var mom = new Person({id: 1}); var dad = new Person({id: 2}); var childA = new Person({id: 3}); var childB = new Person({id: 4}); var childC = new Person({i...
JavaScript
0.000029
@@ -3348,24 +3348,50 @@ w Person();%0A + var c = new Person();%0A a.set('i @@ -3430,21 +3430,146 @@ -var calls = 0 +b.set('manager', c);%0A var calls = 0;%0A b.once('change:manager', function (model) %7B%0A model.should.equal(c);%0A ++calls;%0A %7D) ;%0A @@ -3566,32 +3566,34 @@ ...
8b8362369fe48144b4e1742f185f8a75155f7d2c
Fix logging message when errors are thrown in tests
test/test.js
test/test.js
const chalk = require('chalk'); const basicTests = require('./basicTests.js'); const docTests = require('./docTests.js'); const selectorTests = require('./selectorTests.js'); const tests = [ ...basicTests, ...docTests, ...selectorTests ]; let totalTests = 0; let numPassed = 0; let index = 0; (async () => { whi...
JavaScript
0.000004
@@ -511,88 +511,86 @@ -passed: false,%0A result: %7B%0A name: 'Error thrown in test ' + index +name: %60test $%7Bindex%7D; error thrown%60,%0A result: %7B%0A passed: false ,%0A
2ef20cf19635fe056e8690b2204f05e3b0ee4c62
update test files
test/test.js
test/test.js
var stream = require("stream"); var router = require("../"); router.setMap({ "/my/**/*":"func:testFun", "index":"url:index.html", "test?v=*":"url:my*.html", "nihao/**/ho*eo":"url:**/*.html", "/public/bi*/**/*":"url:public/**/*" }); router.on("notmatch" , function(){ console.log('not match'...
JavaScript
0
@@ -116,20 +116,16 @@ index%22:%22 -url: index.ht @@ -146,20 +146,16 @@ t?v=*%22:%22 -url: my*.html @@ -180,20 +180,16 @@ ho*eo%22:%22 -url: **/*.htm @@ -217,20 +217,16 @@ /**/*%22:%22 -url: public/*
baf897d1fdc004a45ba46fbf2f75e305291611c0
fix standard complaints
examples/js/components/headerRoute.js
examples/js/components/headerRoute.js
import React from 'react' import Playground from 'component-playground' import {Header, Icon} from '../../../' const defaultHeader = ` <Header title='title' subtitle='subtitle' /> ` const headerWithColorAndChildren = ` <Header title='title' subtitle='subtitle' className='custom'> <Icon.Button> <Icon.Search fi...
JavaScript
0.000006
@@ -211,17 +211,16 @@ hildren - =%0A%60%0A%3CHea
379bc577c29a366fb81a6a4b7295bee7eb6656fd
correct error message
longlist.js
longlist.js
// longlist 2.0 - a minimalist javascript list pager // Copyright 2011, 2012, 2013, 2014, 2015 Chris Forno // Copyright 2016 Dennis Rohner // Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). // Unsupported browsers: // Internet Explorer <= 8 // Assumptions: // * The list has a sin...
JavaScript
0.000049
@@ -901,16 +901,13 @@ ist -%3Ctbody%3E. +items ');%0A
3cde96ebb5a36f13efb779afc8157251a3750993
Improve module naming tests
test/test.js
test/test.js
/*global describe:true, beforeEach:true, it:true */ var assert = require('assert'); var helpers = require('yeoman-generator').test; var path = require('path'); describe('Generator test', function () { var jsmodule; beforeEach(function (cb) { helpers.testDirectory(path.join(__dirname, './tmp'), function (err)...
JavaScript
0
@@ -575,33 +575,34 @@ , deps, %5B'my -Component +-module.js '%5D);%0A j @@ -916,32 +916,33 @@ g files%0A +%5B 'package.json',%0A @@ -932,32 +932,59 @@ %5B'package.json', + /%22name%22: %22my-module.js%22/%5D, %0A // docs @@ -1080,32 +1080,48 @@ +%5B 'my -Component.js' +-module.js', ...
7649c2183d769f912149d7aba8dba0255de39aa1
test render without options
test/test.js
test/test.js
'use strict' const toHTML = require('vdom-to-html') const parse5 = require('parse5-utils') const assert = require('assert') const path = require('path') const fs = require('fs') const render = require('..') function renderFixture(fixtureName, locals) { const compiled = render(fixture(fixtureName), { filename: ...
JavaScript
0.000001
@@ -553,16 +553,251 @@ on () %7B%0A + it('should render a template without options', function () %7B%0A const compiled = render(fixture('attributes'))%0A assert(compiled.includes('class1'))%0A assert(compiled.includes('foo'))%0A assert(compiled.includes('doge'))%0A %7D)%0A%0A it('sh
5f779db54f0b46af58b064ba2925da387464fd6d
Add tests for point.distanceTo and rectangle.round
test/test.js
test/test.js
var test = require('tape'); var shapes = require('..'); var Point = shapes.Point; var Rect = shapes.Rectangle; var Circle = shapes.Circle; var Square = shapes.Square; test('Point constructor', function (t) { t.plan(2); var p = new Point(400,42); t.equal(p.x,400); t.equal(p.y,42); }); test('Circle construct...
JavaScript
0.000054
@@ -957,9 +957,510 @@ );%0A%7D);%0A%0A +test('Rectangle#round', function (t) %7B%0A t.plan(4);%0A var r = new Rect(new Point(33.4,2.1),44.7,88.9999).round();%0A t.equal(r.point.x,33);%0A t.equal(r.point.y,2);%0A t.equal(r.width,45);%0A t.equal(r.height,89);%0A%7D);%0A%0A%0Atest('Point#distaceTo', function (t) %7...
f73ef4d5464a56939b9500dd51d0cea51a278ed4
rename test packages.json to bundles.json
test/test.js
test/test.js
/* global describe, it */ 'use strict'; var should = require('chai').should(); // eslint-disable-line no-unused-vars var path = require('path'); var gp = require('../index.js').init({ applicationPath: '', yiiPackagesCommand: 'cat ' + path.join(__dirname, 'data', 'packages.json'), isAbsoluteCommandPath: fal...
JavaScript
0.999576
@@ -266,22 +266,21 @@ data', ' -packag +bundl es.json'
8192e3db806e0f9bc799b4b1e0f29f55b6a20dfd
Add test for json2csv
test/test.js
test/test.js
// var expect = require("chai").expect; var chai = require('chai'); var chaiHttp = require('chai-http'); var app = require("../app.js"); var json2csv = require("../lib/routes/json2csv.js"); var csv2json = require("../lib/routes/csv2json.js"); chai.use(chaiHttp); describe("Converting JSON to CSV", function() { desc...
JavaScript
0.000047
@@ -1,7 +1,32 @@ -// +var chai = require('chai');%0A var @@ -62,36 +62,8 @@ ct;%0A -var chai = require('chai');%0A var @@ -296,32 +296,33 @@ %22, function() %7B%0A +%0A describe(%22/jso @@ -334,32 +334,33 @@ %22, function() %7B%0A +%0A it(%22should g @@ -401,32 +401,36 @@ ests%22, function( +done ) %7...
a887413d17692f9275c40b78404738b6836e2b2b
update test to write error.json
test/test.js
test/test.js
var assert = require('assert') , tv4 = require('tv4') , esschema = require('../esschema.json') , Empty = require('./fixtures/Empty.json') , FortyTwo = require('./fixtures/FortyTwo.json') function valid(data, done) { var result = tv4.validateResult(data, esschema) if (result.error) { console.log(result....
JavaScript
0.000001
@@ -24,16 +24,39 @@ ssert')%0A + , fs = require('fs')%0A , tv4 @@ -321,32 +321,145 @@ -console.log(result.error +fs.writeFile(%0A './error.json', %0A JSON.stringify(result.error, null, 2), %0A function(err) %7B%0A console.err(err);%0A %7D );%0A
e3f0ddb6d696f86bf27198ece001260932e3ee19
update test case
test/test.js
test/test.js
/** * @module test * @license MIT * @version 2017/11/09 */ 'use strict'; const fs = require('fs'); const path = require('path'); const arch = require('arch'); const ADODB = require('../index'); const expect = require('chai').expect; const source = path.join(__dirname, 'node-adodb.mdb'); const mdb = fs.readFileSy...
JavaScript
0.000007
@@ -1824,16 +1824,19 @@ ror).to. +be. exist;%0A
ac85b5b48c3f24f6af0a2caa88f9562c2e3c4256
Load events don't bubble from detached node.
test/test.js
test/test.js
MockXHR.responses = { '/hello': function(xhr) { xhr.respond(200, '<div id="replaced">hello</div>') }, '/one-two': function(xhr) { xhr.respond(200, '<p id="one">one</p><p id="two">two</p>') }, '/boom': function(xhr) { xhr.respond(500, 'boom') } } window.XMLHttpRequest = MockXHR test('create fr...
JavaScript
0
@@ -1151,32 +1151,43 @@ ild(div)%0A%0A div. +firstChild. addEventListener @@ -1621,32 +1621,43 @@ ild(div)%0A%0A div. +firstChild. addEventListener
122c5616a107c8e099b439de747b2a5a7073f7ee
revert to use of var, until test script is updated to es6
test/test.js
test/test.js
const assert = require("assert"); const tfs = require("tfs-unlock"); const gutil = require("gulp-util"); const through = require("through2"); const prefixer = require("../"); describe("gulp-tfs-checkout", function() { it("should return true if file is empty", function(done) { const fakeFile = new gutil.File({ ...
JavaScript
0
@@ -1,13 +1,11 @@ -const +var assert @@ -25,21 +25,19 @@ sert%22);%0A -const +var tfs = r @@ -58,21 +58,19 @@ lock%22);%0A -const +var gutil = @@ -92,21 +92,19 @@ util%22);%0A -const +var through @@ -127,21 +127,19 @@ ugh2%22);%0A -const +var prefixe @@ -267,21 +267,19 @@ ) %7B%0A -const +var fake...
ecef6154098644bedadbff3292c923ca116234af
optimize code and bug fixed
test/test.js
test/test.js
var udeps = require('../index'); var expect = require('expect.js'); describe('get the right deps', function (){ var s = 'var RE=/[\\\\]/,str="\\\\"||"[\\\\]"||"/*";require("a");require(\'b"\');require("c\\"");'; var res = udeps(s); it('path', function (){ expect(res.map(function (o){ return o.path; ...
JavaScript
0
@@ -205,16 +205,31 @@ %22c%5C%5C%22%22); +require(%5B%22d%22%5D); ';%0A var
4c0dfb36c9814228c633a430041f516018114a9c
Revert "Prepare branch for section 2.4 tutorial"
routes/recipes/index.js
routes/recipes/index.js
var express = require('express'); var router = express.Router(); var JsonDB = require('node-json-db'); var _ = require('lodash'); // Escape a string for regexp use function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } // Recipes listing router.get('/', function (req, res, next) { ...
JavaScript
0
@@ -128,133 +128,8 @@ );%0A%0A -// Escape a string for regexp use%0Afunction escapeRegExp(string) %7B%0A return string.replace(/%5B.*+?%5E$%7B%7D()%7C%5B%5C%5D%5C%5C%5D/g, %22%5C%5C$&%22);%0A%7D%0A%0A // R
b94196faae17a013d8c32e8eb2b67f69c2a5a7f7
Allow calls to Promise.reject() with no arguments
rules/best-practices.js
rules/best-practices.js
'use strict'; module.exports = { rules: { // enforce getter and setter pairs in objects 'accessor-pairs': 'error', // enforce return statements in callbacks of array methods 'array-callback-return': 'error', // enforce the use of variables within the scope they are defined 'block-scoped-var...
JavaScript
0
@@ -6036,32 +6036,33 @@ ct-errors': +%5B 'error', %0A%0A // enf @@ -6041,32 +6041,59 @@ rors': %5B'error', + %7BallowEmptyReject: true%7D%5D, %0A%0A // enforce
563bf56f53db51ad2ecd1c4393c6b697649411bd
Update issue8test
neukinnis/spec/integration/issue8test.js
neukinnis/spec/integration/issue8test.js
/* * By: Frances Go * Date: Jan 2015 * Title: Casper Test Integration */ // casper.test.begin(testTitle, numberOfTests, callback) casper.test.begin('Testing About the Courses page', 13, function(test){ casper.start('http://localhost:3000/courses.html', function(){ this.test.assertUrlMatch('/courses.h...
JavaScript
0
@@ -892,32 +892,33 @@ .html', 'current +l y in the courses @@ -1519,32 +1519,33 @@ .html', 'current +l y in the instruc @@ -1861,16 +1861,17 @@ 'current +l y in the @@ -1879,32 +1879,88 @@ courses page');%0A + this.echo('Page title is: ' + this.getTitle());%0A this.tes
9747646ded68799f930c1a21345402a293b1c357
Tweak ajaxChosen
media/js/libs/chosen.ajax.jquery.js
media/js/libs/chosen.ajax.jquery.js
(function() { (function($) { return $.fn.ajaxChosen = function(options, callback) { var select; select = this; this.chosen().change(function() { $select = $(this); // New message if ($('body').hasClass('new-message')) { ...
JavaScript
0.000001
@@ -3719,24 +3719,25 @@ r('value');%0A +%0A @@ -3823,17 +3823,16 @@ , rem);%0A -%0A @@ -3855,24 +3855,24 @@ d.keyup();%0A%0A - @@ -3929,32 +3929,71 @@ ess !== null) %7B%0A + field.keyup();%0A
f93e38cda01f731f4847a507799550f4c4bd947f
Update comment for Navigation Component
src/main/webapp/components/Navigation.js
src/main/webapp/components/Navigation.js
import * as React from "react"; /** */ const NavigationItem = props => <li><a href={props.href}>{props.innerText}</a></li> /** * Main Navigation List. * Instance will be embedded in ./Header component. */ export const Navigation = (props) => { return ( <ul> {props.options.map(option => <NavigationItem...
JavaScript
0
@@ -200,16 +200,152 @@ ponent.%0A + * @param %7Boptions: %5Boption%5D%7D props arbituary object containing an array of%0A * options, where each option = %7Bhref:String, text: String%7D%0A */%0Aexpo
004610af9d698d59780520312896096ce465647e
Remove obsolete comments
test/trie.js
test/trie.js
var Trie = require('../app/trie'); describe('Trie', function() { var trie; beforeEach(function() { trie = new Trie(); }); it('should be an object', function() { expect(trie).to.be.ok; }); it('should have a root', function() { expect(trie.root).to.be.ok; }); it('should have add method', ...
JavaScript
0
@@ -2326,96 +2326,8 @@ );%0A%0A - // search not match return empty array%0A // search one match return one element array%0A //
ee132e914021647b5eb549aca3940dbd1732c0ee
Write test for built-in and custom event binding.
test/unit.js
test/unit.js
import 'skatejs-named-slots'; import { emit } from '../src/index'; import { number } from '../src/properties'; import * as IncrementalDOM from 'incremental-dom'; import kickflip from '../src/kickflip'; import state from '../src/state'; import vdom, { IncrementalDOM as VdomIncrementalDOM } from '../src/vdom'; import ver...
JavaScript
0
@@ -881,32 +881,719 @@ , function () %7B%0A + it('built-in events', function () %7B%0A let count = 0;%0A const el = element(%7B%0A render () %7B%0A vdom('div', %7B onclick: () =%3E ++count %7D);%0A %7D%0A %7D).shadowRoot.firstChild;%0A expect(count).to.equal(0);%0A expect(el.onclick).t...
3c9cfe145942a4f8706c2362442f0906ae9b6e70
fix bug fix with access_token
js/components/security.js
js/components/security.js
module.exports = function(oauth, settings) { return new Security(oauth, settings); } var _ = require('underscore'), basic_auth = require('http-auth'); var request = require("request"); var Promise = require('bluebird'); /** * AuthoriseClient * * @param {Object} config Instance of OAuth object * @para...
JavaScript
0.000001
@@ -989,24 +989,68 @@ == null) %7B%0A + var oAuthAccessToken = %22%22;%0A%0A @@ -1824,17 +1824,16 @@ body) %7B - %0A
8d513c55203e6200f5f9f2d4f40e2e54e9eb7f9e
swap getting token in util function
test/util.js
test/util.js
/** * Module dependencies */ var WPCOM = require('../'); /** * Detect client/server side */ var is_client_side = 'undefined' !== typeof window; /** * Testing data */ var fixture = require('./fixture'); module.exports = { wpcom: wpcom, wpcom_public: function() { return WPCOM(); } }; function wpcom() { ...
JavaScript
0.000053
@@ -715,16 +715,37 @@ token = + process.env.TOKEN %7C%7C require @@ -765,29 +765,8 @@ alue - %7C%7C process.env.TOKEN ;%0A
ed7322ff7b2de46786a2f81885b5142cf1b4442c
_.find is the preferred name for _.detect
js/saiku/views/Toolbar.js
js/saiku/views/Toolbar.js
/* * Copyright 2012 OSBI Ltd * * 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...
JavaScript
0.999999
@@ -1715,25 +1715,20 @@ var -dialog = _.detect +tab = _.find (Sai @@ -1844,22 +1844,19 @@ if ( -dialog +tab ) %7B%0A @@ -1863,22 +1863,19 @@ -dialog +tab .select(
d7020faa61ddd5e6ab6206278fa6f7e188a112be
Handle invite message
src/commands/handlers/channel.js
src/commands/handlers/channel.js
var _ = require('lodash'); var handlers = { RPL_CHANNELMODEIS: function(command) { var channel = command.params[1]; var modes = this.parseModeList.call(this, command.params[2], command.params.slice(3)); this.emit('channel info', { channel: channel, modes: modes ...
JavaScript
0
@@ -5558,32 +5558,369 @@ %7D);%0A %7D,%0A%0A%0A + INVITE: function(command) %7B%0A var time = command.getServerTime();%0A%0A this.emit('invite', %7B%0A nick: command.nick,%0A ident: command.ident,%0A hostname: command.hostname,%0A invited: command.para...
330ce166d7a701c7a47a3dfc9354835685bd9371
Check If Pagination Is Supported
js/tasks/LayerInfoTask.js
js/tasks/LayerInfoTask.js
/*global pulse, app, jQuery, require, document, esri, esriuk, Handlebars, console, $, mynearest, window, alert, unescape, define */ /* | Copyright 2015 ESRI (UK) Limited | | Licensed under the Apache License, Version 2.0 (the "License"); | you may not use this file except in compliance with the License. | You ma...
JavaScript
0
@@ -1773,18 +1773,54 @@ pacity %7D +,%0A maxRecordCount ;%0A - %0A @@ -2095,32 +2095,315 @@ %7D%0A%0A + // Check if layer supports pagination%0A if (_this._supportsPagination(data.layer)) %7B%0A maxRecordCount = data.layer.maxRe...
d6ca7cb6c5103bf8a8c9fafb932adf6ef3cd48d3
replace unused code with comment
js/views/ReadReactView.js
js/views/ReadReactView.js
// Copyright (C) 2012-present, Polis Technology Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY...
JavaScript
0.000002
@@ -1057,25 +1057,26 @@ se;%0A -var cardN +// Card n ames -= %5B +are %22w%22, @@ -1086,18 +1086,16 @@ ,%22y%22,%22z%22 -%5D; %0A%0Amodule
8e44d33c1e97ad5caa118f5cfeb6886bbe2a2e91
Remove buttonMarkup AMD-dependency.
js/widgets/collapsible.js
js/widgets/collapsible.js
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude); //>>description: Creates collapsible content blocks. //>>label: Collapsible //>>group: Widgets //>>css.structure: ../css/structure/jquery.mobile.collapsible.css //>>css.theme: ../css/themes/default/jquery.mobile.theme.css define( [ "jquery", "../jquery.mobi...
JavaScript
0
@@ -328,41 +328,8 @@ et%22, - %22../jquery.mobile.buttonMarkup%22, %22..
39525ee2b1b610b0cc472dde306e0caf390fb150
fix section titles in experimental tab
src/clincoded/static/components/variant_central/interpretation/functional.js
src/clincoded/static/components/variant_central/interpretation/functional.js
'use strict'; var React = require('react'); var _ = require('underscore'); var moment = require('moment'); var globals = require('../../globals'); var RestMixin = require('../../rest').RestMixin; var vciFormHelper = require('./shared/form'); var CurationInterpretationForm = vciFormHelper.CurationInterpretationForm; var...
JavaScript
0
@@ -1738,35 +1738,36 @@ le=%22 -Does variant result in LOF? +Hotspot or functional domain %22 pa @@ -2624,55 +2624,28 @@ le=%22 -Is LOF known mechanism for disease of interest? +Experimental Studies %22 pa
c4df78aa19c2aae208fd1f668c9a3535a27b4ecc
Disable PSI reporting for now
extension/src/browser_action/popup.js
extension/src/browser_action/popup.js
/* Copyright 2020 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 law or agreed to ...
JavaScript
0
@@ -6284,24 +6284,81 @@ tabs%5B0%5D;%0A + // TODO: Re-enable PSI support once LCP, CLS land%0A // console.log @@ -6419,16 +6419,19 @@ %7D%60);%0A + // fetchAP @@ -6449,24 +6449,25 @@ isTab.url);%0A +%0A // Retri
f2000d0d79c513e099f9cfc15b701d29d0fcd1fa
Fix Timeago Preact Type (#27113)
extensions/amp-timeago/0.2/timeago.js
extensions/amp-timeago/0.2/timeago.js
/** * Copyright 2019 The AMP HTML 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 require...
JavaScript
0
@@ -881,16 +881,19 @@ %7BPreact +Def .Rendera
8bfe7301debc79f50edf3c5fa59e84f17a8d4dc1
remove Meteor code that is no longer needed
plugin/index.js
plugin/index.js
import BabelInlineImportHelper from './helper'; export default function({ types: t }) { class BabelInlineImport { constructor() { return { visitor: { ImportDeclaration: { exit(path, state) { const givenPath = path.node.source.value; let reference = ...
JavaScript
0.000014
@@ -733,305 +733,8 @@ %7D%0A%0A - // Here we detect the use of Meteor by checking global.meteorBabelHelpers%0A if(global.meteorBabelHelpers && BabelInlineImportHelper.hasRoot(reference)) %7B%0A reference = BabelInlineImportHelper.transformRelativeToRootPath(reference);%0...
ee2bb68b1f8fc4bc06f6f67a26ae8489f947cff0
Remove hooks from echo plugin.
plugins/echo.js
plugins/echo.js
/* * Echo plugin * - echo: Repeats whatever is passed with the command */ var Echo = function() { this.commands = ['echo']; this.hooks = []; }; Echo.prototype.echo = function(bot, to, from, msg, callback) { bot.say(to, msg); callback(); }; exports.Plugin = Echo;
JavaScript
0
@@ -128,27 +128,8 @@ '%5D;%0A - this.hooks = %5B%5D;%0A %7D;%0A%0A @@ -230,16 +230,17 @@ ();%0A%7D;%0A%0A +%0A exports.
3dcba911435289c315d0727e969eec221bc7223e
Remove the smoketest image lookup
extras/build.gnome.org/controllers.js
extras/build.gnome.org/controllers.js
(function(exports) { 'use strict'; var bgoControllers = angular.module('bgoControllers', []); var taskNames = ['build', 'smoketest', 'integrationtest', 'applicationstest']; var ROOT = '/continuous/buildmaster/'; bgoControllers.controller('ContinuousStatusCtrl', function($scope, $http) { ...
JavaScript
0
@@ -1068,183 +1068,8 @@ ta); -%0A%0A if (taskName == 'smoketest')%0A $scope.smoketestImage = getUrl(data%5B'path'%5D + '/work-gnome-continuous-x86_64-runtime/screenshot-final.png'); %0A
a24f3943a13caa1d79399b84c70bceb7c22e8c22
Update testing for CLI
tests/cli.js
tests/cli.js
var assert = require('assert'), should = require('should'), childProcess = require('child_process'); describe('cli', function () { it('should return help instructions', function (done) { var command = 'sass-lint -h'; childProcess.exec(command, function (err, stdout) { if (err) { retur...
JavaScript
0.000001
@@ -1543,42 +1543,8 @@ %7D%0A - console.log(stdout.length);%0A
08a09fab9cf0485818ab5824f9cb0364f136a138
throw a new Error
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var webpack = require('webpack'); var jshint = require('gulp-jshint'); var map = require('map-stream'); var bump = require('gulp-bump'); var argv = require('yargs').argv; //var head...
JavaScript
0.000001
@@ -2984,16 +2984,26 @@ throw +new Error( %22No type @@ -3047,16 +3047,17 @@ rgument%22 +) ;%0A %7D%0A
6df68ac20aa0214dce10023adb81adccf6bf8e34
Disable coverage in tests until I figure out why it's failing on Windows
Gulpfile.js
Gulpfile.js
var gulp = require("gulp"); var typescript = require("gulp-typescript"); var mocha = require("gulp-mocha"); var cover = require("gulp-coverage"); gulp.task("tsc-src", function() { return gulp.src(["./src/*.ts"]) .pipe(typescript()) .js .pipe(gulp.dest("./bin/src")); }); gulp.task("tsc-test...
JavaScript
0.000001
@@ -591,32 +591,34 @@ alse %7D)%0A +// .pipe(cover.inst @@ -630,24 +630,26 @@ t(%7B%0A +// pattern: @@ -690,24 +690,26 @@ '%5D,%0A +// debugDir @@ -732,16 +732,18 @@ +// %7D))%0A @@ -779,16 +779,17 @@ spec%22%7D)) +; %0A @@ -781,32 +781,34 @@ ec%22%7D));%0A...
dcba243b58e5e5865c3c54b1e07da41b3ef0357f
Fix build and serve commands
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var exec = require('child_process').exec; var autoprefixer = require('autoprefixer-core'); var browserSync = require('browser-sync'); var reload = browserSync.reload; var compression = require('compression'); var remarkable = require('gulp-remarkable')...
JavaScript
0
@@ -475,17 +475,23 @@ .yaml -s - +source= ./app';%0A @@ -547,17 +547,17 @@ --source - += ./app --
333f92719cd055ea82fdb491b99130a95ae94eff
fix syntax error
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'), rimraf = require('rimraf'), uglify = require('gulp-uglify'), minifyCss = require('gulp-minify-css'), ngmin = require('gulp-ngmin'), useref = require('gulp-useref'), deploy = require('gulp-gh-pages'), gif = require('gulp-if'), es = require('event-stream'), lr = require('gulp...
JavaScript
0.000005
@@ -1329,16 +1329,17 @@ rch.xml' +, %0A 'sr
107d22a752d371cb36bf2e39174fea47a25533ba
Refactor `script/build-support.js`
script/build-support.js
script/build-support.js
'use strict'; /** * Dependencies. */ var fs, iso6393; fs = require('fs'); iso6393 = require('../'); /** * Write. */ fs.writeFileSync('Support.md', 'Supported Codes\n' + '=================\n' + '\n' + iso6393.keys().map(function (code) { return '- ' + code + ': ' + iso6393.get(code)...
JavaScript
0
@@ -215,24 +215,144 @@ '%5Cn' +%0A%0A + /**%0A * A nice table is too long: GitHub won't be able%0A * to render it, so we create a boring list.%0A */%0A%0A iso6393.
c97323cc81c6c61d83216a477aef83bc2148b1f4
Use === instead of ==.
src/SourceBrowser.Site/Scripts/search.js
src/SourceBrowser.Site/Scripts/search.js
$(document).ready(function () { var path = window.location.pathname; var splitPath = path.split('/'); splitPath = splitPath.filter(function (v) { return v !== '' }); if (splitPath.length <= 2) { $("#search-form").hide(); } }); search = { //Keeps track of whether a search is ongoing...
JavaScript
0.000002
@@ -752,16 +752,17 @@ query == += %22%22) %7B%0A @@ -2219,16 +2219,17 @@ ength == += 0) %7B%0A @@ -4105,16 +4105,18 @@ rentPath + = == newPa
44a77c31bc3a1bea2975b860d993454152af43e9
Update Button.js
lib/Button.js
lib/Button.js
module.exports = require('neoui-react-button');
JavaScript
0.000001
@@ -23,19 +23,11 @@ re(' -neoui-react +bee -but
27c57adb2bbc18ee186d6fb52534db8a68422f44
add a simple string diff to the analyse tool
test/analyse.js
test/analyse.js
var fs = require('fs'); var path = require('path'); var util = require('util'); var datamap = require('./reallife/datamap.json'); var article = require('../lib/article.js'); if (process.argv.length < 3) { return console.error('node analyse.js key'); } var href = null; for (var i = 0, l = datamap.length; i < l; i+...
JavaScript
0.00001
@@ -247,24 +247,51 @@ s key');%0A%7D%0A%0A +var key = process.argv%5B2%5D;%0A var href = n @@ -295,16 +295,16 @@ = null;%0A - for (var @@ -503,35 +503,1137 @@ %0A%7D%0A%0A -var key = process.argv%5B2%5D;%0A +function highlight(char) %7B%0A return '%5Cx1B%5B7m' + char + '%5Cx1B%5B27m';%0A%7D%0A%0Afunction spaces(n)...
d49939a612ff539bad290639a7c97582c892662e
Fix Puppetier error handling
test/browser.js
test/browser.js
/* eslint-disable no-console */ /* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable import/no-unresolved */ const puppeteer = require('puppeteer'); const path = require('path'); const args = process.argv.slice(2); let browser; process.on('unhandledRejection', (reason, promise) => { console.log...
JavaScript
0
@@ -282,25 +282,14 @@ n', -( reason -, promise) =%3E @@ -335,30 +335,8 @@ tion - at', promise, 'reason :', @@ -490,16 +490,33 @@ stack);%0A +%09if (browser) %7B%0A%09 %09await b @@ -531,16 +531,19 @@ lose();%0A +%09%7D%0A %09process
f50e765663594d37f2e22a2c2b0ff5c69b4dbab3
Update MediaFileProxy.js
lib/win8metro/plugin/win8metro/MediaFileProxy.js
lib/win8metro/plugin/win8metro/MediaFileProxy.js
var utils = require('cordova/utils'), File = require('cordova/plugin/File'), CaptureError = require('cordova/plugin/CaptureError'); module.exports = { getFormatData:function (successCallback, errorCallback, args) { var contentType = args[1]; Windows.Storage.StorageFile.getFileFromPathAsync(ar...
JavaScript
0
@@ -135,16 +135,78 @@ rror');%0D +%0A MediaFileData = require('cordova/plugin/MediaFileData');%0D %0A%0D%0Amodul
9731f408a89cf848959f7e593277cc2e67b1a437
Add "forDOM" var when rendering for DOM
lib/attach.js
lib/attach.js
var getDefaultHistory = require('./history/getHistory'); /** * Bootstraps the app by getting the initial state. */ function attach(Router, element, opts) { if (!opts) opts = {}; var router = new Router(); var history = opts.history || getDefaultHistory(); var render = function() { Router.engine.renderI...
JavaScript
0.000001
@@ -203,16 +203,45 @@ Router( +%7BdefaultVars: %7BforDOM: true%7D%7D );%0A var
30f6e256549de1883788b7d976c52cc632fa6db7
Correct expiration date property typo
lib/boleto.js
lib/boleto.js
var fs = require('fs') var ejs = require('ejs') var formatters = require('./formatters') var barcode = require('./barcode') var path = require('path') var banks = null var hashString = function (string) { var hash = 0 var i var chr var len if (string.length == 0) return hash for (i = 0, len = string.leng...
JavaScript
0
@@ -765,24 +765,25 @@ s%5B'data_ -expiraca +venciment o'%5D) %7B%0A @@ -803,16 +803,17 @@ ata_ -expiraca +venciment o'%5D
b1c549cac2a3dd0867200ea8d46296a3d0e06264
Add test for Argument#toPlaceholder()
test/command.js
test/command.js
/* * Optics test / command.js * copyright (c) 2016 Susisu */ "use strict"; const chai = require("chai"); const expect = chai.expect; const command = require("../lib/command.js"); const output = require("../lib/output.js"); describe("command", () => { describe("Argument", () => { describe("construc...
JavaScript
0.000001
@@ -2012,16 +2012,393 @@ %3C and %3E%22 +, () =%3E %7B%0A %7B%0A let arg = new command.Argument(%22foobar%22, x =%3E x);%0A expect(arg.toPlaceholder()).to.equal(%22%3Cfoobar%3E%22);%0A %7D%0A %7B%0A let arg = new comm...
c554932e596e3242c8b1802834cd175b080b09de
Add parsing exception for "cursor" CSS property (#551)
test/css/all.js
test/css/all.js
/** * Test individual CSS extracts. * * The tests run against the curated view of the extracts. * * Note: the tests are not run against the `@webref/css` package view of the * data because that view is a strict subset of the curated view. */ const assert = require('assert').strict; const path = require('path');...
JavaScript
0
@@ -956,14 +956,14 @@ 202 -1-12-1 +2-04-0 7)%0Ac @@ -978,24 +978,80 @@ pIgnore = %5B%0A + // Stacked combinator %22+#?%22 not supported by css-tree%0A %7B shortnam @@ -1116,24 +1116,199 @@ elector%3E' %7D, +%0A%0A // Stacked combinator %22#?%22 not supported by css-tree%0A %7B shortname: 'css-ui', prop: 'pro...
59390c61bd4d74b8e36b14f743d769d2e4a66cc4
fix nested modal closing (#685)
docs/lib/examples/ModalNested.js
docs/lib/examples/ModalNested.js
/* eslint react/no-multi-comp: 0, react/prop-types: 0 */ import React from 'react'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; class ModalExample extends React.Component { constructor(props) { super(props); this.state = { modal: false, nestedModal: false, ...
JavaScript
0
@@ -315,15 +315,37 @@ se,%0A + closeAll: false%0A %7D;%0A - %0A @@ -437,16 +437,64 @@ (this);%0A + this.toggleAll = this.toggleAll.bind(this);%0A %7D%0A%0A t @@ -602,24 +602,24 @@ .setState(%7B%0A - nested @@ -644,24 +644,161 @@ .nestedModal +,%0A closeAll: false%0A %7D);%0A %7D...
75ddab1d23d5931f0af7eeb2fd21d35f2d26c052
test valid air date
test/episode.js
test/episode.js
var assert = require("assert"); var API_KEY = process.env.TVDB_KEY; var TVDBClient = require(".."); describe("Episode endpoints", function() { describe("Node callback API", function() { it("should return an object of the episode with id \"4768125\"", function(done) { var client = new TVDBClie...
JavaScript
0.000079
@@ -541,32 +541,97 @@ , response.id);%0A + assert.equal(%222014-03-30%22, response.FirstAired);%0A @@ -1412,32 +1412,101 @@ , response.id);%0A + assert.equal(%222014-03-30%22, response.FirstAired);%0A
60e8a2cf2bc2e2eb96418981f4f2e871c0c555a8
Fix typo in example
test/example.js
test/example.js
require('longjohn') var DeeToo = require('..') , util = require('../lib/util.js') , _ = require('underscore') , d2 = DeeToo.init() , JOB_TIME = 5000 function _generateJobs() { function mkjob(i) { var id = 'demo'+j return {jobType:'demonstrate', jobData:{title: id}} } function showUpdates(err,...
JavaScript
0.000381
@@ -753,23 +753,24 @@ clear -Timeout +Interval (ticker)
b9a9046dfba941cd19def7c1523742ca542485b7
Modify example file
test/example.js
test/example.js
require('longjohn') var DeeToo = require('..') , util = require('../lib/util.js') , _ = require('underscore') , d2 = DeeToo.init() , JOB_TIME = 5000 function _generateJobs() { function mkjob(i) { var id = 'demo'+j return {id:id, jobType:'demonstrate', jobData:{title: id}} } function showUpdat...
JavaScript
0.000001
@@ -241,15 +241,8 @@ rn %7B -id:id, jobT @@ -468,161 +468,8 @@ %7D%0A%0A -%0A%0A%0A // TODO: check to see if job being replaced correctly if added twice%0A // TODO: check to see if job being replaced if delayed and added again%0A%0A%0A%0A%0A%0A%0A fo @@ -482,17 +482,18 @@ j=0; j%3C -1 +20 ; j++) %7B @@ -53...
5c8a96da19bb1345e878f167a011cd5d75b84134
Fix fn.gettext's tests to actually use fn.gettext
test/fn.test.js
test/fn.test.js
var assert = require('assert'); var fn = require('../lib/fn'); describe("fn", function() { it("should proxy to .gettext when called directly", function() { assert.deepEqual(fn('foo'), { method: 'gettext', params: {message: 'foo'} }); }); describe(".gettext", functio...
JavaScript
0.000002
@@ -467,16 +467,24 @@ n() %7B fn +.gettext (null); @@ -817,32 +817,40 @@ ert.deepEqual(fn +.gettext ('foo'), %7B%0A
d220b378191d4f1e44a53b10cfdf485ae0f95816
add source files
lib/common.js
lib/common.js
/** * Created by nuintun on 2015/4/27. */ 'use strict'; var is = require('is'); var path = require('path'); var join = path.join; var extname = path.extname; var through = require('through2'); var rename = require('rename'); var udeps = require('umd-deps'); var debug = require('debug')('transport:common'); var util...
JavaScript
0.000001
@@ -3252,14 +3252,20 @@ if ( -! query +.length ) %7B%0A @@ -3539,24 +3539,48 @@ js';%0A %7D%0A%0A + // add query string%0A id = id
6f91f0287f80adfbc9422fc5edf2db6aca0bc5cd
Fix placeholder image
lcp-critical-path/load.js
lcp-critical-path/load.js
export function insertImage() { const img = 'https://placedog.net/500/500'; const image = new Image(); image.src = img; document.getElementById('app').appendChild(image); }
JavaScript
0.000015
@@ -52,20 +52,27 @@ s:// +via. place -dog.net +holder.com /500