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
90bf6205a4d7ea2adc9e48698a43aef47bc3eade
Test for callback reinvocations.
test/capture-test.js
test/capture-test.js
"use strict"; var expect = require('chai').expect; var Capture = require('../src/capture'); describe("capture", function () { var robot = { adapter: { send: function () { return "original"; } }, listeners: [] }; var capture; beforeEach(function () { capture = new Capture(robot); });...
JavaScript
0
@@ -1491,12 +1491,1239 @@ %0A %7D);%0A%0A + it(%22reinvokes the callback when new results arrive%22, function () %7B%0A var patched0 = capture.patchedRobot(0);%0A var patched1 = capture.patchedRobot(1);%0A%0A var parts = null;%0A capture.onComplete(function (err, p) %7B%0A parts = p;%0A %7D);%0A%...
51dfafdf672d7f53deded9a3ed1f9d733c7ec4e8
Remove ring
js/lookButton.js
js/lookButton.js
var lookButtons = []; var lookButtonMaterial; var defaultScale = 0.2; var expandedScale = 0.2; function LookButton(pos, onTrigger) { this.pos = pos; this.sprite = new THREE.Sprite(lookButtonMaterial); this.sprite.position = pos; this.sprite.scale.set(0.2, 0.2, 0.2); scene.add(this.sprite); ...
JavaScript
0.000001
@@ -284,16 +284,18 @@ 2);%0A +// scene.ad
07d06033b5bac748617bfd72a5741d0a878d2406
clean up 'facts' endpoint
lib/http/endpoints/facts.js
lib/http/endpoints/facts.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0.999905
@@ -867,210 +867,66 @@ ;%0A%0A%0A -function listFacts(req, res) %7B%0A control.facts.getFacts(function(err, facts) %7B%0A if (err) %7B%0A castHttp.returnError(res, err);%0A %7D else %7B%0A castHttp.returnJson(res, 200, facts);%0A %7D%0A %7D);%0A%7D +var listFacts = castHttp.wrapCall(control.facts....
df639057ebf90c84eedff12facd8da6275ead943
handle notificationclick event in sw
static/javascripts/sw.js
static/javascripts/sw.js
importScripts('sw-offline-google-analytics.js'); goog.offlineGoogleAnalytics.initialize(); const CACHE_NAME = 'arnelle-v1.11'; const CACHE_PATHS = [ '/', '/static/manifest.json', '/static/stylesheets/main.css', '/static/javascripts/regular/main.js', '/static/javascripts/regular/lib/idb-fetch-mirror...
JavaScript
0
@@ -1757,100 +1757,161 @@ e: ' -Hello there!',%0A body: 'It%5C's me, Arnelle!',%0A icon: 'static/images/icon-144.png +Arnelle posted a new article',%0A body: 'Tap to check it out',%0A icon: 'static/images/icon-144.png',%0A data: 'https://arnellebalane.com/ '%0A @@ -2089,30 +2089,2...
a26326aaddd750ef053461b0908ef984c61bd5e7
validate type changing
test/database/run.js
test/database/run.js
'use strict'; describe('run', function () { let db; before(function () { return resetDb().then(instance => db = instance); }); after(function () { return db.instance.$pool.end(); }); it('runs raw unparameterized SQL', function () { return db.run('select * from products').then(res => { ...
JavaScript
0.000001
@@ -8,16 +8,52 @@ rict';%0A%0A +const types = require('pg').types;%0A%0A describe @@ -742,13 +742,338 @@ );%0A %7D); +%0A%0A it('changes types', function* () %7B%0A const stringCount = yield db.run('select count(*) from products');%0A%0A assert.typeOf(stringCount%5B0%5D.count, 'string');%0A%0A types.setTy...
b331d9b5cb1ce6122737a4b1136f0ae83449d282
Fix iframe info receiver using wrong url
lib/info-iframe-receiver.js
lib/info-iframe-receiver.js
'use strict'; var inherits = require('inherits') , EventEmitter = require('events').EventEmitter , JSON3 = require('json3') , XHRLocalObject = require('./transport/sender/xhr-local') , InfoAjax = require('./info-ajax') ; function InfoReceiverIframe(transUrl, baseUrl) { var self = this; EventEmitter.call...
JavaScript
0.000005
@@ -266,17 +266,8 @@ sUrl -, baseUrl ) %7B%0A @@ -342,12 +342,13 @@ jax( -base +trans Url,
0838cac6f7bb11a84920ed722f56636c49080727
Add original-fs to list of nils
packages/truffle/cli.webpack.config.js
packages/truffle/cli.webpack.config.js
var path = require("path"); var fs = require("fs"); var OS = require("os"); var prependFile = require('prepend-file'); var CopyWebpackPlugin = require('copy-webpack-plugin'); var CleanWebpackPlugin = require('clean-webpack-plugin'); var webpack = require('webpack'); var pkg = require("./package.json"); var outputDir =...
JavaScript
0.000025
@@ -2850,24 +2850,79 @@ ./nil.js%22),%0A + %22original-fs%22: path.join(__dirname, %22./nil.js%22),%0A %22scryp
e3f1b2bbaa17a21bfedd5610e31f99ba18e8d8ef
remove stubbed out if statement
lib/js/patterns/dropdown.js
lib/js/patterns/dropdown.js
// Cool Helpers import * as dom from '../helpers/dom' import * as classy from '../helpers/classy' import * as aria from '../helpers/aria' import * as event from '../helpers/event' import bus from '../helpers/bus' // ┌──────────┐ // │ Dropdown │ // └──────────┘ // show and hide dropdown menus function dropdown () { v...
JavaScript
0.000103
@@ -1083,30 +1083,8 @@ ) %7B%0A - if (!options) %7B%0A @@ -1115,26 +1115,24 @@ (toggle) %7B%0A - event. @@ -1179,18 +1179,10 @@ - %7D)%0A %7D +) %0A %7D
65e40a866ae1f4d0b0003ab5d01064b2cf441096
Add some protection to the json parse in BaseFormViewModel (used to crash for 404s)
src/CommonWeb/web/js/shared/app/BaseFormViewModel.js
src/CommonWeb/web/js/shared/app/BaseFormViewModel.js
/* A base view model to provide a common implementation of knockout client-side form behaviour. * Use "call" to apply. E.g. BaseFormViewModel.call(self, args..) * Copyright (c) 2014 University of Oxford. */ define([ "knockout", "jquery", "underscore" ], function (ko, $, _) { "use strict"; return...
JavaScript
0
@@ -2734,32 +2734,54 @@ .%22, %22success%22);%0A + try %7B%0A proc @@ -2801,32 +2801,116 @@ hr, %22success%22);%0A + %7D catch (e) %7B%0A // Ignore failed json parse%0A %7D%0A %7D;%0A%0A @@ -3373,32 +3373,59 @@ %7D%0A +%0A ...
bb6ed7dd61d25c5e036d3ae8b2a158cd164ffd39
Add colorblind option to user
app/models/user.js
app/models/user.js
'use strict'; module.exports = function(sequelize, DataTypes) { var User = sequelize.define('User', { firstname: DataTypes.STRING, lastname: DataTypes.STRING, username: { type: DataTypes.STRING, unique: true, }, password: DataTypes.STRING, r...
JavaScript
0
@@ -749,16 +749,46 @@ +colorblind: DataTypes.BOOLEAN %0A %7D,
9e55bf9f47dc18df335fe14d8c678c2cc5b42c3f
Update constant.js
packages/ve-table/src/util/constant.js
packages/ve-table/src/util/constant.js
// prefix export const PREFIX_CLS = "ve-table-"; // locale comp name export const LOCALE_COMP_NAME = "table"; // column types export const COLUMN_TYPES = { // expand row EXPAND: "expand", // checkbox CHECKBOX: "checkbox", // radio RADIO: "radio", }; // expand row trigger types export const EX...
JavaScript
0.000001
@@ -4201,12 +4201,421 @@ ByKeys%22,%0A%7D;%0A +%0A// contextmenu body options%0Aexport const CONTEXTMENU_BODY_OPTIONS = %5B%0A %7B%0A label: %22%E8%8F%9C%E5%8D%951%22,%0A type: %22type1%22,%0A %7D,%0A %7B%0A label: %22%E8%8F%9C%E5%8D%952%22,%0A type: %22type2%22,%0A children...
380b9a29df49ea6cac3e6d3e116d3b5d50474104
Throw an error instead of using alert if `addForm` is called when max forms is reached.
djangoformsetjs/static/js/jquery.formset.js
djangoformsetjs/static/js/jquery.formset.js
/** * Django formset helper */ (function($) { "use strict"; var pluginName = 'formset'; /** * Wraps up a formset, allowing adding, and removing forms */ var Formset = function(el, options) { var _this = this; //Defaults: this.opts = $.extend({}, Formset.defaults, optio...
JavaScript
0
@@ -1494,85 +1494,8 @@ rms' -,%0A hasMaxFormsMessage: 'The number of maximum forms has been reached.' %0A%0A @@ -1668,63 +1668,48 @@ -alert(this.opts.hasMaxFormsMessage);%0A return +throw new Error(%22MAX_NUM_FORMS reached%22) ;%0A
97f8f233846493d5809dd63155fe156acb635c43
Fix lint issues in JS
lib/assets/javascripts/views/shared/create_account_form.js
lib/assets/javascripts/views/shared/create_account_form.js
import ariatiseForm from '../../utils/ariatiseForm'; import { togglisePasswords } from '../../utils/passwordHelper'; import validateOrgSelection from '../shared/my_org'; import { isValidText } from '../../utils/isValidInputType'; $(() => { const options = { selector: '#create-account-form' }; ariatiseForm(options)...
JavaScript
0.000001
@@ -116,16 +116,18 @@ ;%0Aimport + %7B validat @@ -139,16 +139,18 @@ election + %7D from '. @@ -170,68 +170,8 @@ rg'; -%0Aimport %7B isValidText %7D from '../../utils/isValidInputType'; %0A%0A$(
915c7ab25fe26f14731711e3cba35ead69c482d6
Add comments
website/static/js/projectCreator.js
website/static/js/projectCreator.js
/** * A KO component for the project creation form. */ 'use strict'; var $ = require('jquery'); require('select2'); var ko = require('knockout'); var bootbox = require('bootbox'); var $osf = require('js/osfHelpers'); var nodeCategories = require('json!built/nodeCategories.json'); var CREATE_URL = '/api/v1/project/ne...
JavaScript
0
@@ -4813,16 +4813,213 @@ s.data); +%0A%0A // IE won't select template with id correctly. so we replace #createNodeTemplates with .createNodeTemplates%0A // More explanation -- https://github.com/CenterForOpenScience/osf.io/pull/2858 %0A $('
522a15e0fa0053343f1ad6c99fbcfd48c0d13e56
Fix function downloadCard in CardController
js/myapp/card.js
js/myapp/card.js
// ---------------------------------------------------------------- // Card Class class CardModel extends SwitchModel { constructor({ name, lsKeyView, triggerSelector, switchSelector } = {}) { super({ name: name, lsKeyView: lsKeyView, triggerSelector: triggerSelector, s...
JavaScript
0.000001
@@ -2326,18 +2326,24 @@ -t +dataT ype: +' json +' ,%0A
3d5e7c5cd8a1b8685fd5bbdf771b843e819c4b46
fix argument defaulting in system.getStats
lib/modules/system/index.js
lib/modules/system/index.js
var async = require('async'); var MeshError = require('../../system/shared/mesh-error'); var moment = require('moment'); var os = require('os'); var procStats = require('proc-stats'); var fs = require('fs-extra'); var diskspace = require('diskspace'); var Logger = require('happn-logger'); module.exports = function () ...
JavaScript
0.000012
@@ -1894,16 +1894,126 @@ back)%7B%0A%0A +%09%09if (typeof measureInterval === 'function') %7B%0A%09%09%09callback = measureInterval;%0A%09%09%09measureInterval = null;%0A%09%09%7D%0A%0A %09%09try%7B%0A%09
247363ea12dd9b73fd7ed228eecf402c2bc3a9ce
update usage
bailey.js
bailey.js
#!/usr/bin/env node var PEG = require('pegjs'); var argv = require('optimist').argv; var fs = require('fs'); var exec = require('child_process').exec; var walk = require('walk'); var path = require('path'); var colors = require('colors'); var mkdir = require('mkdirp'); var beautify = require('js-beautify').js_beautify...
JavaScript
0.000001
@@ -482,33 +482,21 @@ or(' -Arguments: node +Usage: bailey -.js sou @@ -501,16 +501,17 @@ ourcedir +/ targetd @@ -512,16 +512,55 @@ argetdir +/ %5B--node%5D %5B--remove-comments%5D %5B--bare%5D ')%0A
1464294d9c0571bff0eb80878b87a899769fe373
更新饼图 demo
examples/pie/rose/demo/donut-rose.js
examples/pie/rose/demo/donut-rose.js
import { Chart, getTheme } from '@antv/g2'; const data = [ { year: '2001', population: 41.8 }, { year: '2002', population: 38 }, { year: '2003', population: 33.7 }, { year: '2004', population: 30.7 }, { year: '2005', population: 25.8 }, { year: '2006', population: 31.7 }, { year: '2007', population: 33 }...
JavaScript
0
@@ -605,16 +605,21 @@ rt.coord +inate ('polar' @@ -703,17 +703,17 @@ setX: -1 -4 +0 0,%0A%7D);%0Ac
62bbcf06369d9b16a77cc1c127e6b4579fda4b4e
Fix proceedArrayMethods
lib/mongoose-data-source.js
lib/mongoose-data-source.js
/** * Created by vedi on 09/02/15. */ 'use strict'; var _ = require('lodash'), Bb = require('bluebird'), HTTP_STATUSES = require('http-statuses'), mongoose = require('mongoose'), ObjectID = mongoose.mongo.BSONPure.ObjectID; function MongooseDataSource(ModelClass) { this.ModelClass = ModelClass; } M...
JavaScript
0.000026
@@ -3008,14 +3008,8 @@ hod( -dest, sour @@ -3039,14 +3039,42 @@ me, -req) %7B +scope) %7B%0A var dest = scope.model; %0A /
e9ba7315eeec8fdda15d8e9a8e519a393722d680
Drop support for IE 10
test/karma.config.js
test/karma.config.js
/*eslint-env node*/ var webpackConfig = require("../webpack.config.js"); var _ = require("lodash"); function base() { return { frameworks: ["mocha"], files: ["tests.webpack.js"], preprocessors: { "tests.webpack.js": [ "webpack", "sourcemap" ] }, webpack: webpackConfig, webpackServer: { ...
JavaScript
0
@@ -946,145 +946,8 @@ %7D,%0A - sl_ie_10: %7B%0A base: %22SauceLabs%22,%0A browserName: %22internet explorer%22,%0A platform: %22Windows 7%22,%0A version: %2210%22%0A %7D,%0A
b9c623c920d1bdcad78ab1bffa00ce3a1550e260
fix react-native example (#10910)
examples/react-native/jest.config.js
examples/react-native/jest.config.js
module.exports = { preset: 'react-native', transform: { '\\.(js|ts|tsx)$': require.resolve('react-native/jest/preprocessor.js'), }, };
JavaScript
0.000003
@@ -1,8 +1,44 @@ +const %7Bresolve%7D = require('path');%0A%0A module.e @@ -171,11 +171,213 @@ ),%0A %7D,%0A + // this is specific to the Jest repo, not generally needed (the files we ignore will be in node_modules which is ignored by default)%0A transformIgnorePatterns: %5Bresolve(__dirname, '../../packages')%5D,...
d164a1de6f61700eb4a1f173ce68f4cf403e2dc8
Add ansistyles.bright
lib/optimist-config-file.js
lib/optimist-config-file.js
/** * Extends optimist with support for JSON/YAML config file * * Pass a path to the config file using --config option * * @see https://github.com/substack/node-optimist * @see https://github.com/substack/minimist */ var debug = require('debug')('optimist:config'), fs = require('fs'), optimist = require('optim...
JavaScript
0.999664
@@ -343,16 +343,53 @@ ce(2)),%0A +%09ansistyles = require('ansistyles'),%0A %09yaml = @@ -2967,25 +2967,50 @@ ush( -%5BnextHeader, opt%5D +%7B%0A%09%09%09label: nextHeader,%0A%09%09%09before: opt%0A%09%09%7D );%0A%09 @@ -3333,11 +3333,15 @@ s%5Bi%5D -%5B1%5D +.before ;%0A%09%09 @@ -3388,24 +3388,42 @@ %09s = %2...
010e41f3f996e557cf480555b40b6302e271b059
fix build
test/library.spec.js
test/library.spec.js
import chai from 'chai'; import Library from '../lib/index.js'; chai.expect(); const expect = chai.expect; var lib; describe('Given an instance of my library', function () { before(function () { lib = new Library(); }); describe('when I need the name', function () { it('should return the name', () => ...
JavaScript
0.000001
@@ -46,12 +46,8 @@ '../ -lib/ inde
f6714f00556bec5ee2f94156218d754bf6290160
Rewrite handleDetect
src/common/worker.js
src/common/worker.js
const { readImage, loadLang } = require('tesseract.js-utils'); const dump = require('./dump'); let TessModule; let api; let latestJob; let adapter = {}; const setImage = (image) => { const { w, h, bytesPerPixel, data, pix, } = readImage(TessModule, Array.from(image)); if (data === null) { api.SetImage(...
JavaScript
0.000012
@@ -2680,20 +2680,16 @@ results. -get_ best_res @@ -2691,18 +2691,16 @@ t_result -() ;%0A @@ -2722,20 +2722,16 @@ = best. -get_ orientat @@ -2736,18 +2736,16 @@ ation_id -() ;%0A @@ -2767,20 +2767,16 @@ = best. -get_ script_i @@ -2776,18 +2776,16 @@ cript_id -() ;%0A%0A @@ -2934,20 +2934,...
01a38baecec4673ea70a48f9262423edc9544790
Add payment method model to tests. didn't help.
test/models/index.js
test/models/index.js
module.exports = function(BillForward) { var models = {}; models.Account = function() { var address = new BillForward.Address({ 'addressLine1': 'address line 1', 'addressLine2': 'address line 2', 'addressLine3': 'address line 3', 'city': 'London', 'country': 'Gensokyo', 'provinc...
JavaScript
0
@@ -575,24 +575,314 @@ ress%5D%0A%09%09%7D);%0A +%09%09var paymentMethod = new BillForward.PaymentMethod(%7B%0A%09%09 'name': 'Credit Notes',%0A%09%09 'description': 'Pay using credit',%0A%09%09 'linkID': '',%0A%09%09 'gateway': 'credit_note',%0A%09%09 'userEditable': 0,%0A%09%09 'priority': 100,%0A%...
2feeaf8d4166dd925fe5afcdf2abae5e32feeda6
fix bugs
src/compiler/data.js
src/compiler/data.js
'use strict'; require('../globals'); module.exports = data; var vlfield = require('../field'), util = require('../util'), time = require('./time'); /** * Create Vega's data array from a given encoding. * * @param {Encoding} encoding * @return {Array} Array of Vega data. * This always inclu...
JavaScript
0.000001
@@ -3123,16 +3123,46 @@ %7BObject%7D + An array that might contain a filter @@ -3421,16 +3421,31 @@ ) return + filteredFields ; //coun @@ -3890,16 +3890,20 @@ s;%0A %7D +, %5B%5D );%0A%0A re @@ -3903,26 +3903,61 @@ ;%0A%0A return -%7B%0A +filteredFields.length %3E 0 ?%0A %5B%7B%0A type: 'f @@ -...
43f1cfba5abaa0418afffd78fdba3240165022f7
Fix a "kibana" leftover in comments
src/config.sample.js
src/config.sample.js
/** @scratch /configuration/config.js/1 * == Configuration * config.js is where you will find the core Grafana configuration. This file contains parameter that * must be set before kibana is run for the first time. */ define(['settings'], function (Settings) { "use strict"; return new Settings({ /** ...
JavaScript
0.000735
@@ -181,11 +181,12 @@ ore -kib +Graf ana
92ea308c351869e1f75db1f35e4a26e612967a53
update Port
src/config/config.js
src/config/config.js
// default config module.exports = { };
JavaScript
0.000001
@@ -30,12 +30,24 @@ rts = %7B%0A + port: 7777 %0A%7D;%0A
83b9264007ef6c8544e5a2ef51915261dfbe78f1
Update app.js with barcode directive code
app/scripts/app.js
app/scripts/app.js
console.log('\'Allo \'Allo!');
JavaScript
0.000001
@@ -1,31 +1,649 @@ -console.log('%5C'Allo %5C'Allo!' +'use strict';%0Aangular.module('myApp', %5B%5D)%0A .controller('HomeController', function($scope) %7B%0A $scope.barcode = '9002236311037';%0A %7D)%0A .directive('barcode', function() %7B%0A return %7B%0A restrict: 'E',%0A scope: %7B%0A code...
9263492051ac911f429e9585afce5568fe2eb8ff
Add routing for specified repos
app/scripts/app.js
app/scripts/app.js
'use strict'; angular .module('visualizerApp', [ 'ngRoute', 'angularFileUpload', 'angularMoment', 'angularPeity' ]) .config(function ($routeProvider) { $routeProvider .when('/', { redirectTo: '/read/' }) .when('/read/', { templateUrl: 'views/read.html', ...
JavaScript
0
@@ -526,24 +526,186 @@ y'%0A %7D)%0A + .when('/display/:owner/:repo/', %7B%0A templateUrl: 'views/display.html',%0A controller: 'DisplayController',%0A activetab: 'display'%0A %7D)%0A .other
af5419ccfd3cef69b362d9300ca51f46f5d0d47c
Improve variable names
app/scripts/app.js
app/scripts/app.js
/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.gi...
JavaScript
0
@@ -1260,17 +1260,17 @@ ;%0A%0A // -c +C ustom tr @@ -1570,16 +1570,21 @@ var d +etail = e.det @@ -1600,13 +1600,27 @@ var -m = d +heightDiff = detail .hei @@ -1626,16 +1626,21 @@ ight - d +etail .condens @@ -1658,16 +1658,21 @@ var y +Ratio = Math. @@ -1683,14 +1683,28 @@ 1, d -.y / m +etail.y / ...
fc773528c7d02b419503b6e3e0f20b336ec25711
use relative url for views/templates
app/scripts/app.js
app/scripts/app.js
'use strict'; /** * @ngdoc overview * @name sbAdminApp * @description * # sbAdminApp * * Main module of the application. */ angular .module('sbAdminApp', [ 'oc.lazyLoad', 'ui.router', 'ui.bootstrap', 'angular-loading-bar', ]) .config(['$stateProvider','$urlRouterProvider','$ocLazyLoadProvid...
JavaScript
0
@@ -618,17 +618,16 @@ teUrl: ' -/ views/da @@ -2572,25 +2572,24 @@ emplateUrl:' -/ views/dashbo @@ -3151,25 +3151,24 @@ emplateUrl:' -/ views/form.h @@ -3165,32 +3165,32 @@ ews/form.html',%0A + url:'/fo @@ -3246,33 +3246,32 @@ templateUrl:' -/ views/pages/blan @@ -3326,24 +3326,24 @@ e('login',%7B...
dac377b21a9104655ef687c6ebd427e96fad1888
Update module test
redef/patron-client/module-test/search.js
redef/patron-client/module-test/search.js
/*global require, it, describe, before, document, Promise*/ "use strict"; var chai = require("chai"), expect = chai.expect, sinon = require("sinon"), axios = require("axios"), fs = require("fs"), jsdom = require("mocha-jsdom"); describe("PatronClient", function () { describe("/search", function ...
JavaScript
0.000001
@@ -1038,21 +1038,18 @@ ire(%22../ -publi +sr c/search
fbccb79ed2ed063744b8e983139b91e094b90e32
Fix dependenciesDirname value
lib/search/search-engine.js
lib/search/search-engine.js
/* jshint node: true */ 'use strict'; var Dependency = require('../dependency.js'), checkIf = require('./check-if.js'), path = require('path'); function SearchEngine(tree) { this.dependenciesManager = tree.dependenciesManager; this.dependenciesType = tree.dependenciesType; this.dependenciesDirname = ...
JavaScript
0.000019
@@ -321,20 +321,35 @@ (this. -type +dependenciesManager === 'bo
19978d2f6f5f61d48ef0cf4c61b20d1d6a95370b
add logging
lib/server/routes/debits.js
lib/server/routes/debits.js
'use strict'; const moment = require('moment'); const inherits = require('util').inherits; const Router = require('./index'); const middleware = require('storj-service-middleware'); const authenticate = middleware.authenticate; const stripe = require('../vendor/stripe'); /** * Handles endpoints for all user related ...
JavaScript
0.000001
@@ -658,16 +658,155 @@ res) %7B%0A + console.log('Req header x-signature: %25j', req.header('x-signature'));%0A console.log('Req header x-pubkey: %25j', req.header('x-pubkey'));%0A%0A const
21d3e05ce05ee3d0e8eb2237c43335d8e4d12d8d
Align the variables slightly differently.
samples/fortytwo_test.js
samples/fortytwo_test.js
define(['chai', 'mocha', 'samples/fortytwo'], function(chai, mocha, fortytwo) { 'use strict'; var expect = chai.expect; describe('fortytwo', function() { it('should return fortytwo', function() { expect(fortytwo.fortytwo()).to.equal(42); }); }); });
JavaScript
0.000003
@@ -8,16 +8,24 @@ %5B'chai', +%0A 'mocha' @@ -25,16 +25,24 @@ 'mocha', +%0A 'sample @@ -54,16 +54,23 @@ tytwo'%5D, +%0A functio @@ -80,15 +80,53 @@ hai, - mocha, +%0A unusedMocha,%0A for
dde017e30964d24c554e98151561cc77efa2ae7c
Add undefined passing to the published library
publish.js
publish.js
import Coterminous from './src/coterminous.js'; import * as handshaker from './src/handshaker.js'; import * as rootInterface from './src/rootInterface.js'; import * as functionPassing from './src/functionPassing.js'; import * as promisePassing from './src/promisePassing.js'; import * as datePassing from './src/dat...
JavaScript
0.000001
@@ -376,32 +376,96 @@ exPassing.js';%0D%0A +import * as undefinedPassing from './src/undefinedPassing.js';%0D%0A import * as subs
7ee9dea3aecef987320e5d92b87592a7a6e5a3ca
Remove prefer-template rule
node4.js
node4.js
'use strict' module.exports = { extends: './base.js', plugins: [ 'node' ], rules: { 'node/no-unsupported-features': 'error', 'generator-star-spacing': ['error', { before: true }], 'template-curly-spacing': ['error', 'always'], 'prefer-arrow-callback': 'error', 'no-dupe-class-members': ...
JavaScript
0.000005
@@ -462,40 +462,8 @@ r',%0A - 'prefer-template': 'error',%0A
aa4c608eca05400f4fe5f6a1933d7ca00379cce8
use async exec in async win32
win32.js
win32.js
"use strict"; const execa = require("execa"); const ipRegex = require("ip-regex"); const os = require("os"); const gwArgs = "path Win32_NetworkAdapterConfiguration where IPEnabled=true get DefaultIPGateway,Index /format:table".split(" "); const ifArgs = index => `path Win32_NetworkAdapter where Index=${index} get Net...
JavaScript
0.000002
@@ -1513,32 +1513,38 @@ st ifTable = + await execa.s ync(%22wmic%22, @@ -1523,35 +1523,37 @@ = await execa.s -ync +tdout (%22wmic%22, ifArgs( @@ -1559,39 +1559,32 @@ (id), spawnOpts) -.stdout ;%0A name = par
b35b3289e153fb0b722d482ba543a708ba6177cf
Improve the layout of the power routing screen for JR engineering. Closes #1386
client/src/components/views/JrEngineering/powerRouting.js
client/src/components/views/JrEngineering/powerRouting.js
import React, { Component } from "react"; export default class PowerRouting extends Component { constructor(props) { super(props); this.state = { connections: [] }; this.generateColors = this.generateColors.bind(this); this.colors = this.generateColors(); } generateColors() { const colorList ...
JavaScript
0
@@ -165,16 +165,47 @@ ions: %5B%5D +, colors: this.generateColors() %7D;%0A @@ -262,49 +262,8 @@ s);%0A - this.colors = this.generateColors();%0A %7D%0A @@ -1530,24 +1530,30 @@ ? this. +state. colors%5Bthis. @@ -1638,24 +1638,30 @@ olor = this. +state. colors%5Bcol%5D%5B @@ -2495,16 +2495,22 @@ ...
c60a0bd83f322074a3e4be398aa13c266d7241e3
change icon title
wxBot.js
wxBot.js
function _debug(msg){ DEBUG && console.log(msg); } function callBotAPI(newmsg,callback,sendto,jumpback) { //jsonp proxy var url = 'https://cuhk.me/wx/jsonp.php'; $.ajax({ 'url': url, 'data': {msg: encodeURIComponent(newmsg), s: session_id} , 'dataType': 'jsonp', 'success...
JavaScript
0.000004
@@ -2177,33 +2177,19 @@ le=%22 -wxBot - a WeChat chat bot +%E6%88%91%E6%98%AF%E5%BE%AE%E4%BF%A1%E8%81%8A%E5%A4%A9%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%A4%A7%E7%99%BD %22 sr
faf991e20d1935e7600a3be989eba24e73029f9a
Clean up package tests.
test/package.test.js
test/package.test.js
var oauth2orize = require('..') , Server = require('../lib/server'); describe('oauth2orize', function() { it('should export createServer', function() { expect(oauth2orize).to.be.a('function'); expect(oauth2orize.createServer).to.be.a('function'); expect(oauth2orize).to.equal(oauth2orize.createSer...
JavaScript
0
@@ -558,38 +558,25 @@ orize.grant. -authorizationC +c ode).to.be.a @@ -618,24 +618,21 @@ e.grant. -implicit +token ).to.be. @@ -726,33 +726,46 @@ uth2orize.grant. -c +authorizationC ode).to.equal(oa @@ -776,38 +776,25 @@ orize.grant. -authorizationC +c ode);%0A ex @@ -812,29 +812,32 @@ orize.grant. -token +...
7cc6f119bdbea0a9760e94e63c092db97e35f8fa
fix path to nodes reducer
test/reducersSpec.js
test/reducersSpec.js
import * as Actions from '../app/actions'; import { newId, nodes, lastId, copyNode } from '../app/reducers'; import chai from 'chai'; import R from 'ramda'; describe('Nodes reducer', () => { const sharedNodeStore = { 0: { id: 0, position: { x: 0, y: 100, }, }, }; descri...
JavaScript
0.000002
@@ -99,16 +99,22 @@ reducers +/nodes ';%0Aimpor
dbfeb62f51fe243e633f185068156cf4e5e91546
Improve code coverage for rules/base64.js
test/rules/base64.js
test/rules/base64.js
exports.tests = [ { css: '.foo { background-image: url(data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D) }', // blank 1x1 gif metrics: { base64Length: 64 } } ];
JavaScript
0.000002
@@ -193,16 +193,295 @@ gth: 64%0A +%09%09%7D,%0A%09%09css: '.foo %7B background-image: url(data:image/gif;base64,' + 'FFFFFF'.repeat(1024) + ') %7D', // to big base64-encoded asset%0A%09%09metrics: %7B%0A%09%09%09base64Length: 6144%0A%09%09%7D,%0A%09%09offenders: %7B%0A%09%09%09base64Length: %5B%0A%09%09%09%09%22.foo ...
8af5763d42cd1408b87cd540bf3ffeec6eb79939
Add some basic checks and show errors
ydict.js
ydict.js
#!/usr/bin/env node "use strict"; var request = require("request"); var cheerio = require("cheerio"); var colors = require("colors"); var fetch = function (text, callback) { var options = { "url": "http://tw.dictionary.yahoo.com/dictionary?p="+text, }; request(options, function(error, response, bo...
JavaScript
0
@@ -1648,24 +1648,108 @@ on (info) %7B%0A + if (!info.word) %7B%0A console.log(%22%E6%9F%A5%E7%84%A1%E6%AD%A4%E5%AD%97%22.red.bold);%0A return 3;%0A %7D%0A if (info @@ -2362,24 +2362,38 @@ %7D%0A %7D);%0A + return 0;%0A %7D;%0A%0Aexports. @@ -2616,16 +2616,17 @@ ction () + %7B%0A ...
b615d7133c6faf67850d6ba46374618e9281fe4f
Create test case for URLs of different formats.
test/seo_dev_test.js
test/seo_dev_test.js
/** * SEO Checker Test Suite * ---------------------- * This file is for pre-build tests */ // A basic smoke test to tell us NodeUnit is working exports.testTest = function(test) { var a = true; test.equal(a, true); test.done(); }; // Begin test definitions module.exports = { /** * ## Setup method *...
JavaScript
0
@@ -470,32 +470,33 @@ allback();%0A %7D,%0A +%0A /**%0A * ## Sm @@ -699,32 +699,52 @@ unction(test) %7B%0A + test.expect(2);%0A var a = true @@ -766,24 +766,108 @@ l(a, true);%0A + test.ok(true, 'Smoke test says true === true. Looks good to me. Moving on...');%0A test.don @@ -868,32 +868,33 @@ ...
0c7bf589aa4c181022e19d6225ce7bfb5e9a8f6e
Check return status
ydict.js
ydict.js
#!/usr/bin/env node "use strict"; var request = require("request"); var cheerio = require("cheerio"); var colors = require("colors"); var path = require("path"); var fs = require("fs"); var childProcess = require('child_process'); var fetch = function (text, callback) { var encoded = encodeURIComponent(text) ...
JavaScript
0.000001
@@ -564,78 +564,16 @@ ns, -function(error, response, body) %7B%0A callback(error, body);%0A %7D +callback );%0A%7D @@ -3809,16 +3809,26 @@ on (err, + response, data) %7B @@ -3870,24 +3870,128 @@ lback(err);%0A + %7D else if (response.statusCode != 200) %7B%0A callback(%22Status %22 + ...
8520caa2d21425a81250a08310a58effe2fb8289
Remove assertion.
delta.js
delta.js
var rescuers = [], listeners = [], push = [].push var assert = require('assert') function Delta (callback) { if (!(this instanceof Delta)) { return new Delta(callback) } this._callback = callback this._results = [] this._waiting = 0 this._listeners = [] this._completed = false } De...
JavaScript
0.000005
@@ -46,39 +46,8 @@ push -%0Avar assert = require('assert') %0A%0Afu @@ -411,44 +411,8 @@ ) %7B%0A - assert(listener.delta === this)%0A
07d28940c615563b434c7a982bd89c8fc9356f15
Add intiialize method to InMemoryEventBusReceiver
lib/event_bus/in_memory/receiver.js
lib/event_bus/in_memory/receiver.js
var inherit = require("../../inherit"); var CommonEventBusReceiver = require("../common/receiver"); var InMemoryEventBus; inherit(InMemoryEventBusReceiver, CommonEventBusReceiver); function InMemoryEventBusReceiver(options) { CommonEventBusReceiver.call(this, options); InMemoryEventBus = InMemoryEv...
JavaScript
0.000001
@@ -351,16 +351,104 @@ y%22);%0A%7D%0A%0A +InMemoryEventBusReceiver.prototype.initialize = function (callback) %7B%0A callback();%0A%7D;%0A%0A InMemory
e17dad416a7205a4713cc35a3568f4887b39e477
change order of loader presets
lib/jview/utils/WebpackGenerator.js
lib/jview/utils/WebpackGenerator.js
const fsPath = require('fs-path'); const webpackSettings="var debug = process.env.NODE_ENV !== 'production';\n\ var webpack = require('webpack');\n\ var path = require('path');\n\ module.exports = {\n\ context: path.join(__dirname, '/'),\n\ devtool: debug ? 'inline-sourcemap' : null,\n\ entry: [\n\ ...
JavaScript
0
@@ -657,16 +657,25 @@ : %5B' +es2015',' react',' es20 @@ -670,22 +670,23 @@ react',' -es2015 +stage-0 '%5D, plug
514a51a605da9fc8c96a900f23f01c4dfd288ae6
Correct warning message
lib/rules/no-qualifying-elements.js
lib/rules/no-qualifying-elements.js
'use strict'; var helpers = require('../helpers'); module.exports = { 'name': 'no-qualifying-elements', 'defaults': { 'allow-element-with-attribute': false, 'allow-element-with-class': false, 'allow-element-with-id': false }, 'detect': function (ast, parser) { var result = []; ast.travers...
JavaScript
0.000066
@@ -913,20 +913,19 @@ allowed -with +for ' + ite
39e374aa43a42436aee2854193aba416200e04d7
remove the mocha throw test
test/unit/db_test.js
test/unit/db_test.js
var DB =require("../../lib/database/sqlite_helper") ,sqlite = new DB() ,_ = require("underscore"); describe('Throw Error Test', function() { sqlite.init(); it('should throw error on errorHandler', function () { expect(sqlite.errorHandler()).to.throw(); }); ...
JavaScript
0.000001
@@ -191,32 +191,34 @@ te.init();%0A%0A +// it('should throw @@ -256,24 +256,26 @@ on () %7B%0A +// expect(s @@ -308,24 +308,26 @@ hrow();%0A +// %7D);%0A%0A it(
125efe9e7799061315943e0210a0f90efcee2a10
fix error in short update test
test/update_short.js
test/update_short.js
var test = require('tap').test; var trumpet = require('../'); var fs = require('fs'); test('update', function (t) { t.plan(6); var html = fs.readFileSync(__dirname + '/update_target.html', 'utf8'); var tr = trumpet(); fs.createReadStream(__dirname + '/update.html').pipe(tr); var spans = [...
JavaScript
0.000003
@@ -436,58 +436,8 @@ ');%0A - t.same(node.attributes, %7B class : 'b' %7D);%0A @@ -683,24 +683,74 @@ me, 'div');%0A + t.same(node.attributes, %7B class : 'g' %7D);%0A t.eq
7b8da0787dc7b9889160b4b247f989fa534c95a9
correct typo
src/containers/Contact.js
src/containers/Contact.js
import React, { Component } from 'react'; class Contact extends Component { render(){ return( <div className="contact-page"> <article> <h2>Contact Us</h2> <section> <h3>cheif election officer</h3> Scott T. Nag...
JavaScript
0.999967
@@ -253,23 +253,23 @@ %3Ch3%3E -cheif e +Chief E lection offi @@ -264,17 +264,17 @@ lection -o +O fficer%3C/ @@ -346,37 +346,17 @@ ection%3E%0A - %0A + @@ -927,37 +927,17 @@ ection%3E%0A - %0A + @@ -1249,25 +1249,17 @@ %3C/div%3E%0A - %0A...
f847c9c04689cd0862508a247c12e6f5e0e214e7
Update daemon logs
src/daemon/http-router.js
src/daemon/http-router.js
var http = require('http') var httpProxy = require('http-proxy') var net = require('net') var address = require('network-address') var chalk = require('chalk') var procs = require('./procs') var render = require('./utils/render') var timer = require('./utils/timer') var util = require('...
JavaScript
0.000001
@@ -424,16 +424,17 @@ err ? ' + %5B' + err
e6c399e959aa60d54c421fd99b94fb82b3bb42d2
Remove dead variable.
src/docs/js/_load-data.js
src/docs/js/_load-data.js
const { hierarchy } = require("d3-hierarchy"); const JSON_PATH = "http://rawgit.com/interlockjs/interlock/master/docs/compilation.json"; function orderChildren (datum) { if (datum.children) { datum.children = datum.children.map((child, idx) => { child = orderChildren(child); child.position = idx; ...
JavaScript
0.000006
@@ -46,100 +46,8 @@ ;%0A%0A%0A -const JSON_PATH = %22http://rawgit.com/interlockjs/interlock/master/docs/compilation.json%22;%0A%0A%0A func
d4bf6223d56e890e7d18107bd5a88329eb4486fa
Add source-loader webpack config
examples/vue-kitchen-sink/webpack.config.js
examples/vue-kitchen-sink/webpack.config.js
const path = require('path'); const webpack = require('webpack'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, './dist'), publicPath: '/dist/', filename: 'build.js', }, plugins: [new VueLoaderPlugin()],...
JavaScript
0
@@ -892,24 +892,363 @@ %7D,%0A %7D,%0A + %7B%0A test: /%5C.stories%5C.jsx?$/,%0A loader: require.resolve('@storybook/source-loader'),%0A options: %7B%0A injectParameters: true,%0A inspectLocalDependencies: false,%0A inspectDependencies: false,%0A %7D,%0A...
40f0b060786c0cfbbc525c833542ff4f917fc589
Correct typo. Fixes #37
exercises/intro-scissor/submission/index.js
exercises/intro-scissor/submission/index.js
exports.init = function(gl) { } // Run every frame: use this to draw things to the screen. exports.draw = function(gl) { var w = gl.drawingBufferWidth var h = gl.drawBufferHeight //Clear background to black gl.clearColor(0,0,0,1) gl.clear(gl.COLOR_BUFFER_BIT) //Turn on scissor test gl.enable(gl.SCISSO...
JavaScript
0.000062
@@ -165,16 +165,19 @@ gl.draw +ing BufferHe
de57d4a33503698b265cd25802caf3f79a22a3ff
fix linting errors
examples/components/DatePickerPlayground.js
examples/components/DatePickerPlayground.js
import React from 'react'; import {Card, DatePicker, Button} from 'belle'; export default React.createClass({ render() { const selectedDate = new Date(); selectedDate.setDate(selectedDate.getDate() + 5); return ( <div> <h2>ComboBox</h2> <Card> <h3>Default Calendar Exam...
JavaScript
0.000002
@@ -105,16 +105,199 @@ lass(%7B%0A%0A + _resetValue() %7B%0A this.refs.calendar1.resetValue();%0A %7D,%0A%0A _renderDay(day) %7B%0A const date = day.getDate();%0A return (%0A %3Cdiv%3E%0A %F0%9F%8E%81%7B date %7D%0A %3C/div%3E%0A );%0A %7D,%0A%0A render @@ -519,36 +519,34 @@ %3...
0281b652d1c200a6142b59a5d2ac9b88a4b06766
Correct misspelling (dasboard => dashboard) (#12910)
docs/src/pages/page-layout-examples/PageLayoutExamples.js
docs/src/pages/page-layout-examples/PageLayoutExamples.js
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import CardMedia from '@material-ui/core/Card...
JavaScript
0.000012
@@ -800,16 +800,17 @@ imal das +h board wi
9d497cf7af42b3fd837fde2b640f85946f2ff96d
Update a sample
examples/selenium-webdriver/switch-active-window/index.js
examples/selenium-webdriver/switch-active-window/index.js
#!/usr/bin/env node // // Switch active window // // getAllWindowHandles: // http://selenium.googlecode.com/git/docs/api/javascript/class_webdriver_WebDriver.html#getAllWindowHandles // // switchTo: // http://selenium.googlecode.com/git/docs/api/javascript/class_webdriver_WebDriver.html#switchTo // var assert = r...
JavaScript
0
@@ -1243,18 +1243,18 @@ .get -CurrentUrl +PageSource ();%0A @@ -1275,18 +1275,19 @@ unction( -ur +htm l) %7B%0A @@ -1294,18 +1294,19 @@ assert( -ur +htm l.match( @@ -1310,20 +1310,23 @@ ch(' +%3Ch1%3E page-2 -.html$ +%3C/h1%3E '));
412c8f46f99efeb830bc5683fb238c0fb9990f18
Include libraries for transformation with Jest
generators/app/templates/src/__tools-jest._jest.config.js
generators/app/templates/src/__tools-jest._jest.config.js
// https://github.com/thymikee/jest-preset-angular#brief-explanation-of-config module.exports = { preset: 'jest-preset-angular', roots: ['src'], coverageDirectory: 'reports', setupFilesAfterEnv: ['<rootDir>/src/setup-jest.ts'], moduleNameMapper: { '@app/(.*)': '<rootDir>/src/app/$1', '@env': '<rootDir...
JavaScript
0
@@ -466,14 +466,14 @@ .%0A%3C%25 -%0A var + const exc @@ -503,17 +503,16 @@ t-test'%5D -; %0A if (p @@ -734,17 +734,17 @@ rap'); %7D -%0A + -%25%3E%0A tr
5ff540038fb714e19cbe9d565cf94b4ff17496da
Simplify name/title display.
slack.js
slack.js
var https = require('https'); var url = require('url'); var slackHookRequestOptions = getSlackHookRequestOptions(); module.exports.sendToSlack = sendToSlack; function getSlackHookRequestOptions() { var hookUri = url.parse(process.env.slackhookuri); return { ...
JavaScript
0.000001
@@ -1777,72 +1777,8 @@ - (type.toLowerCase() == 'updated' ? 'Updated: ' : 'Created: ') + par @@ -1895,17 +1895,76 @@ dy.Id + -' +type.toLowerCase() == 'updated' ? ' updated by ' : ' created by ' +
51db0f71ecb82cb158ab84b834c138f974575094
add gutter class names
split.js
split.js
Split = function (ids, options) { // Set defaults options = typeof options !== 'undefined' ? options : {}; if (!options.gutterSize) options.gutterSize = 10; if (!options.minSize) options.minSize = 100; if (!options.snapOffset) options.snapOffset = 30; if (!options.direction) options.directio...
JavaScript
0.000003
@@ -6861,76 +6861,99 @@ -gutter.className +if (options.direction = += ' -gutter';%0A%0A if (options.direction == ' +horizontal') %7B%0A gutter.className = 'gutter gutter- hori @@ -6951,35 +6951,33 @@ tter-horizontal' -) %7B +; %0A @@ -7038,32 +7038,93 @@ %7D...
cef083ac85b4413dd71faf0b3aeea128c91ccf07
Update _.js
src/_.js
src/_.js
/* * modula is currently not using grunt or something else to * automatically build a development file so in here will be * listed all files that have to be combined to get the * modula.js file * * @status : uncomplete */ var BUILDER = [ "src/modula.intro.js", "src/modula.modula.js", "src/modula.ou...
JavaScript
0.000002
@@ -291,24 +291,94 @@ modula.js%22,%0A + %22src/modula.modula.core.js%22,%0A %22src/modula.modula.extended.js%22,%0A %22src/mod
4944a5bcab6aeef1d1cbb5e7ceea2ad028d3197c
Add missing config model
lib/assets/javascripts/cartodb3/data/tables-collection.js
lib/assets/javascripts/cartodb3/data/tables-collection.js
var _ = require('underscore'); var Backbone = require('backbone'); var TableModel = require('./table-model'); var DEFAULT_FETCH_OPTIONS = { type: 'table', page: 1, per_page: 9, exclude_shared: false, tag_name: '', q: '' }; /** * A collection that holds Table models */ module.exports = Backbone.Collectio...
JavaScript
0.000003
@@ -2391,16 +2391,56 @@ _baseUrl +,%0A configModel: this._configModel %0A %7D
ce359cb45ada16489b12ebb8dd3582b08dc46b27
update the comments
src/p.js
src/p.js
var P = (function(prototype, ownProperty, undefined) { // helper functions that also help minification function isObject(o) { return typeof o === 'object'; } function isFunction(f) { return typeof f === 'function'; } function P(_superclass /* = Object */, definition) { // handle the case where no superclas...
JavaScript
0
@@ -475,1277 +475,161 @@ // - There are three ways C will be called:%0A //%0A // 1) We call %60new C%60 to create a new uninitialized object.%0A // The behavior is similar to Object.create, where the prototype%0A // relationship is set up, but the ::init method is not run.%0A // Note th +%0A ...
cbea1530a194d77032f1799a50975b498e3bb41f
include worker support in s.js
src/s.js
src/s.js
import './features/script-load.js'; import './features/basic-resolve.js';
JavaScript
0.000001
@@ -29,16 +29,52 @@ ad.js';%0A +import './features/worker-load.js';%0A import '
d48748aafe12927f81b9ff4b6d00b9ebe8c79d12
Fix spelling
client/app/scripts/selectors/chartSelectors.js
client/app/scripts/selectors/chartSelectors.js
import debug from 'debug'; import { createSelector, createSelectorCreator, defaultMemoize } from 'reselect'; import { Map as makeMap, is, Set } from 'immutable'; import { getAdjacentNodes } from '../utils/topology-utils'; const log = debug('scope:selectors'); // // `mergeDeepKeyIntersection` does a deep merge on k...
JavaScript
0.999999
@@ -1465,16 +1465,17 @@ ghtly st +r ange way
c5186be210b1a03286b68b244c40dd8912fdb88b
Add registrantAgeIs helper
client/templates/edit/registrant/registrant.js
client/templates/edit/registrant/registrant.js
Template.registrantDetails.helpers({ 'registrationTypeOptions': function () { // registration types used on the registration form return [ {label: "Commuter (sleeping elsewhere)", value: "commuter"}, {label: "Daily (staying overnight)", value: "daily"}, {label: "F...
JavaScript
0.000001
@@ -655,24 +655,295 @@ %7D%0A %7D +,%0A %22registrantAgeIs%22: function (age) %7B%0A // Get current age value from form%0A let registrantAge = AutoForm.getFieldValue(%22age%22)%0A%0A if (age) %7B%0A // Compare current value versus desired age threshold%0A return registrantAge ==...
181d2ce8bcffc566f3a3be9d7fca412195ed65f9
Make sure error type exists before flash message
client/views/settings/users/enroll/autoform.js
client/views/settings/users/enroll/autoform.js
AutoForm.addHooks('usersEnrollForm', { onError (formType, error) { // Show the error to end user // TODO: add internationalization support for specefic error type(s) FlashMessages.sendError(`${error.error}: ${error.reason}`, { autoHide: false }); } });
JavaScript
0.000001
@@ -169,16 +169,196 @@ type(s)%0A +%0A // Make sure there is an error type, otherwise don't show error%0A // to prevent 'unknown' or undefined error messages from triggering flash message%0A if (error.error) %7B%0A Flas @@ -434,16 +434,22 @@ lse %7D);%0A + %7D%0A %7D%0A%7D);%0A
a76f5fcb235cff5e291e545e4c9fd88f4d4c45aa
Refactor JSON calls to the new format
code/media/koowa/com_koowa/js/koowa.select2.js
code/media/koowa/com_koowa/js/koowa.select2.js
/* --- description: Custom configuration of Select2 tuned for Nooku Framework authors: - Stian Didriksen requires: - Select2 license: GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> copyright: Copyright (C) 2007 - 2013 Johan Janssens and Timble CVBA. (http://www.timble.net) ... */ (function ($) { ...
JavaScript
0.000001
@@ -1327,31 +1327,21 @@ ) %3C data -%5Boptions.model%5D +.meta .total; @@ -1427,36 +1427,25 @@ ach(data -%5Boptions.model%5D.data +.entities , functi @@ -1503,21 +1503,16 @@ ush(item -.data );%0A @@ -2157,36 +2157,20 @@ data -%5Boptions.model%5D.data%5B0%5D.data +.entities%5B0%5D );%0A
fc9b7f00e090b2eab44205d54c2e985b945f0f97
Switch to a real attribute @zachleat
comparisons/elements/getting_attributes/ie8.js
comparisons/elements/getting_attributes/ie8.js
el.getAttribute('tagname')
JavaScript
0
@@ -16,12 +16,13 @@ ('ta -gname +bindex ')%0A
dd58c25f80d52c4099064a0590bbbde860c9c9a3
Fix looping over files keys and save arguments
tagit.js
tagit.js
"use strict"; var path = require('path'); var fs = require('fs'); var findit = require('findit'); var _ = require('underscore'); var TAGIT_DIR = '.tagit'; var TAGIT_FILE = 'data.json'; var Tagit = exports.Tagit = function Tagit(workDir) { this.workDir = workDir || '.'; }; Tagit.prototype.init = function init(...
JavaScript
0.000001
@@ -1205,24 +1205,31 @@ rkDir);%0A +_.each( data.files.f @@ -1230,17 +1230,10 @@ iles -.forEach( +, func @@ -1744,16 +1744,24 @@ ave(self +.workDir , data);
4df22a4599f286d5e65fdf92bd1829974064d39b
Add data from game
stores/MatchStore.js
stores/MatchStore.js
import BaseStore from 'fluxible/addons/BaseStore'; import ChampionActions from '../ChampionActions'; import staticApi from '../static/api.js'; class MatchStore extends BaseStore { constructor(dispatcher) { super(dispatcher); this.goldData = this.getGoldData(); this.xpData = this.getXpData(); } setSu...
JavaScript
0.000001
@@ -401,32 +401,368 @@ getGoldData() %7B%0A + // Based off a random Gold player's game%0A function goldPerMin(minute) %7B%0A let gold = 228;%0A if (minute %3C 10) %7B%0A return gold;%0A %7D%0A gold += 443.5;%0A if (minute %3C 20) %7B%0A return gold;%0A %7D%0A gold...
7e91a411d7bbd19285f34b6043bba5aa144098b5
store clock for instant connect
terse.js
terse.js
var MessageStream = require('message-stream') var net = require('net') var argv = require('optimist').argv var EventEmitter = require('events').EventEmitter var seedPort = argv.port || 2503 var myIp = require('my-local-ip')() || 'localhost' var seedHost = argv.host || myIp var serverPort = argv.server || 2503 var id =...
JavaScript
0
@@ -956,24 +956,83 @@ ge.clock) %7B%0A + clock%5Bmessage.id%5D = clock%5Bmessage.id%5D %7C%7C 0%0A @@ -2420,17 +2420,16 @@ .host == -= myIp && @@ -2441,17 +2441,16 @@ .port == -= serverP
446564daa13cd270b2d6f2734dcd545e912c5baf
remove animations code from umd bundle
config/webpack/webpack.config.umd.js
config/webpack/webpack.config.umd.js
const webpack = require('webpack'); module.exports = { entry: './src/lib/components/index.ts', output: { path: './dist/bundle', filename: 'angular2-mdl.js', libraryTarget: 'umd', library: 'angular2Mdl' }, resolve: { extensions: ['.ts', '.js'] }, externals: { '@angular/core': { root: ['ng', 'core']...
JavaScript
0
@@ -903,143 +903,626 @@ lar/ -animations': %7B%0A%09%09%09root: %5B'ng', 'animations'%5D,%0A%09%09%09commonjs: '@angular/animations',%0A%09%09%09commonjs2: '@angular/animations',%0A%09%09%09amd: '@angula +platform-browser-dynamic': %7B%0A%09%09%09root: %5B'ng', 'platformBrowserDynamic'%5D,%0A%09%09%09commonjs: '@angul...
43d4fe0969dd1b69c398a0120cba107414c02a51
Update benchmarks to have chunk neighbours.
client/js/chunks/worker/bench.js
client/js/chunks/worker/bench.js
// This file benchmarks the mesh generation code. // run it with // node bench.js // and speed up all the meshing! var fs = require('fs'); // Hacks to mock require. Yay dependency injection! function requireJS(relativePath) { var path = '../../' + relativePath + '.js'; var code = fs.readFileSync(path); var lastDef...
JavaScript
0
@@ -635,16 +635,117 @@ = this;%0A +%09var neighbour = null;%0A%09self.setNeighbour = function (newNeighbour) %7B%0A%09%09neighbour = newNeighbour;%0A%09%7D%0A %09self.ch @@ -789,19 +789,24 @@ return n -ull +eighbour ;%0A%09%7D;%0A%7D%0A @@ -1675,16 +1675,78 @@ mesher); +%0Amanager.setNeighbour(geometry); // neighb...
35d1cabde5426e72d61ce4abc6672a6e3cb055fa
update wallaby config to work with ts
config/wallaby-mocha.js
config/wallaby-mocha.js
module.exports = function (wallaby) { process.env.NODE_PATH += `:${require('path').join(wallaby.localProjectDir, 'node_modules')}`; return { files: [ {pattern: 'test/**/*.spec.js*', ignore: true}, {pattern: 'test/**/*.js'}, {pattern: 'src/assets/**', instrument: false}, {pattern: 'src/**...
JavaScript
0
@@ -147,24 +147,80 @@ files: %5B%0A + %7Bpattern: 'src/templates/**', instrument: false%7D,%0A %7Bpatte @@ -231,35 +231,38 @@ 'test/**/*.spec. -js* +%5Bj%7Ct%5Ds ', ignore: true%7D @@ -290,19 +290,154 @@ st/**/*. -js' +spec.%5Bj%7Ct%5Dsx', ignore: true%7D,%0A %7Bpattern: 'src/**/*.spec.%5Bj%7Ct%...
72ad1b9be241108d5006f6c66728f7db22e68399
Change who to owner.
website/app/application/processes/processes.js
website/app/application/processes/processes.js
function Apt() { this.name = "APT"; this.description = "Atom Probe Tomography"; this._type = "APT"; this.input_files = []; this.output_files = []; this.input_samples = []; this.output_samples = []; this.transformed_samples = []; this.project_id = ""; this.what = ""; this.why...
JavaScript
0
@@ -333,11 +333,13 @@ his. -who +owner = %22
57fe4978257ed22c5be6342ba096908f5277c6b0
Update slide_show.js
js/slide_show.js
js/slide_show.js
var slideIndex = 0; showSlides(); function showSlides() { var i; var slides = document.getElementsByClassName("mySlides"); for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slideIndex++; if (slideIndex> slides.length) {slideIndex = 1} slides[slideIndex-1].s...
JavaScript
0.000002
@@ -1,412 +1,2646 @@ -var slideIndex = 0;%0AshowSlides();%0A%0Afunction showSlides() %7B%0A var i;%0A var slides = document.getElementsByClassName(%22mySlides%22);%0A for (i = 0; i %3C slides.length; i++) %7B%0A slides%5Bi%5D.style.display = %22none%22; %0A %7D%0A slideIndex++;%0A if (slideInde...
3c9fa527d8b4e822cf42c6141b3b584dbed0c1ce
make ?cacheBust QP a flag, https://github.com/phetsims/chipper/issues/767
js/sun-config.js
js/sun-config.js
// Copyright 2014-2019, University of Colorado Boulder /* * IMPORTANT: This file was auto-generated by "grunt generate-config". Please do not modify this directly. Instead * please modify sun/package.json to control dependencies. * * RequireJS configuration file for the sun sim. * Paths are relative to the locati...
JavaScript
0
@@ -1496,11 +1496,10 @@ be -dis +en able @@ -1519,14 +1519,8 @@ Bust -=false %0A u
e234d2379bd2745e277b136ec121880c5e481ebb
Fix log output
js/translator.js
js/translator.js
/* global translations */ /* MagicMirror² * Translator (l10n) * * By Christopher Fenner https://github.com/CFenner * MIT Licensed. */ const Translator = (function () { /** * Load a JSON file via XHR. * * @param {string} file Path of the file we want to load. * @param {Function} callback Function called w...
JavaScript
0.999996
@@ -3756,18 +3756,17 @@ allback -&& +? %22 fallb @@ -3769,16 +3769,21 @@ allback%22 + : %22%22 %7D: $%7Bfil
0ed3f0a85a5006a348f4ac8b410ba825b6d4051e
Check for device before trying to determine icon
public/app/admin/devices/device.controller.js
public/app/admin/devices/device.controller.js
angular .module('mage') .controller('AdminDeviceController', AdminDeviceController); AdminDeviceController.$inject = ['$scope', '$uibModal', '$filter', '$routeParams', '$location', 'LocalStorageService', 'DeviceService', 'UserService', 'LoginService']; function AdminDeviceController($scope, $uibModal, $filter, $r...
JavaScript
0
@@ -1278,24 +1278,50 @@ n(device) %7B%0A + if (!device) return;%0A%0A if (devi
3be2a785925a40769bd9c7f7cfd08279306663e4
add separator
src/common/directives/diDesignPiece/diDesignPiece.js
src/common/directives/diDesignPiece/diDesignPiece.js
/** * directive.diDesignPiece Module * * Description */ angular.module('directive.diDesignPiece', [ 'ngMessages', 'resource.GameData', 'service.ROTATION_MATRIX', 'service.GameManager' ]) .factory('CustomPiece', [ 'GameData', 'ROTATION_MATRIX', function ( GameData, ROTATION_MATRIX ){ ...
JavaScript
0.000006
@@ -902,16 +902,47 @@ ustom;%0A%0A + /////////////////////%0A %0A func
5ddcd65a063bfb934bb1847091e8d829f9c629cb
Remove 'exports' from declaration of globals
scope-level3-commonjs.js
scope-level3-commonjs.js
// Level 3 // CommonJS Modules // Implementation of scopeornot API // https://github.com/eric-brechemier/scopeornot // This script must be loaded in level 3 and depends on the availability // of the CommonJS require() function in the JavaScript environment. /*global scope, require, exports */ scope(function(parentCon...
JavaScript
0.000002
@@ -280,17 +280,8 @@ uire -, exports */%0A
e05609d5ec95f804daf0e403647b98483abc4fb5
Fix markdown style load error
extensions/markdown/media/loading.js
extensions/markdown/media/loading.js
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
JavaScript
0.000005
@@ -841,41 +841,8 @@ %09%09%7D%0A -%09%09const args = %5BunloadedStyles%5D;%0A %09%09wi @@ -884,121 +884,69 @@ d: ' -did-click-link',%0A%09%09%09data: %60command:_markdown.onPreviewStyleLoadError?$%7BencodeURIComponent(JSON.stringify(args))%7D%60 +_markdown.onPreviewStyleLoadError',%0A%09%09%09args: %5BunloadedStyle...
0d0bb355db5dcbfb901b892ab8adbcbd4b668883
Update settings
.hyper.js
.hyper.js
// Future versions of Hyper may add additional config options, // which will not automatically be merged into this file. // See https://hyper.is#cfg for all currently supported options. module.exports = { config: { // default font size in pixels for all tabs fontSize: 12, // font family with optional fa...
JavaScript
0
@@ -606,21 +606,25 @@ Shape: ' -BLOCK +UNDERLINE ',%0A%0A @@ -675,20 +675,19 @@ rBlink: -fals +tru e,%0A%0A @@ -2813,15 +2813,13 @@ ll: -'SOUND' +false ,%0A%0A @@ -3225,16 +3225,67 @@ .is/#cfg +%0A%0A hyperBorder: %7B%0A borderWidth: '3px'%0A %7D %0A %7D,%0A%0A @@ -3474,24 +3474,8 @@ s:...
2f421c3e530ccd623481dba0cb3419911f0acfb1
update jsdoc.js (#604)
.jsdoc.js
.jsdoc.js
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
JavaScript
0
@@ -1038,9 +1038,9 @@ 201 -8 +9 Goo @@ -1159,16 +1159,71 @@ 'lumen' +,%0A default: %7B%0A %22outputSourceFiles%22: false%0A %7D %0A %7D,%0A
a726a52ead879a3a1b3eaa7d80cc5027c6cae89a
use local variable with for...in to avoid deopt
src/Ractive/prototype/set.js
src/Ractive/prototype/set.js
import { isObject } from '../../utils/is'; import bind from '../../utils/bind'; import { splitKeypath } from '../../shared/keypaths'; import runloop from '../../global/runloop'; export default function Ractive$set ( keypath, value ) { const promise = runloop.start( this, true ); // Set multiple keypaths in one go ...
JavaScript
0
@@ -374,23 +374,23 @@ %09%09for ( -keypath +const k in map @@ -422,22 +422,16 @@ perty( k -eypath ) ) %7B%0A%09%09 @@ -448,29 +448,15 @@ s, k -eypath, map%5B keypath +, map%5Bk %5D );
cd71ab5e9f2d9003f99dd015cf1e11f2f35e1630
Remove unused function
packages/@sanity/document-store/src/createDocumentStore.js
packages/@sanity/document-store/src/createDocumentStore.js
import Observable from '@sanity/observable' import {omit} from 'lodash' import pubsub from 'nano-pubsub' import {BufferedDocument, Mutation} from '@sanity/mutator' function TODO(msg = 'TODO') { return function todo() { throw new Error(msg) } } const NOOP = () => {} function createBufferedDocument(documentId, ...
JavaScript
0.000001
@@ -162,96 +162,8 @@ r'%0A%0A -function TODO(msg = 'TODO') %7B%0A return function todo() %7B%0A throw new Error(msg)%0A %7D%0A%7D%0A cons
cd6144b8a34bfd7675096abf8028ec66ad342a4f
Disable lint rule
lib/node_modules/@stdlib/array/shared-buffer/lib/index.js
lib/node_modules/@stdlib/array/shared-buffer/lib/index.js
'use strict'; /** * Constructor returning an object used to represent a generic, fixed-length raw binary data buffer which can be used to create views of shared memory. * * @module @stdlib/array/shared-buffer * * @example * var ctor = require( '@stdlib/array/shared-buffer' ); * * var buf; * try { * buf = new ctor(...
JavaScript
0.000001
@@ -563,24 +563,57 @@ -support' ); + // eslint-disable-line id-length %0Avar builtin
915a135c5b4e298f7da60d241be57c253cf540a5
Add constructor to Levy namespace
lib/node_modules/@stdlib/math/base/dist/levy/lib/index.js
lib/node_modules/@stdlib/math/base/dist/levy/lib/index.js
'use strict'; /* * When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. */ // MODULES // var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); // MAIN // /** * Top-level namespace. * * @namespace levy */ var levy = {}; /** * @name cdf ...
JavaScript
0.000001
@@ -697,32 +697,232 @@ /entropy' ) );%0A%0A +/**%0A* @name Levy%0A* @memberof levy%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/math/base/dist/levy/ctor%7D%0A*/%0AsetReadOnly( levy, 'Levy', require( '@stdlib/math/base/dist/levy/ctor' ) );%0A%0A /**%0A* @name logp
59ae3dfd0cbb6ab59695185d06d1c3c30c77c270
change exporter to not export test files
src/utilities/exporter.js
src/utilities/exporter.js
/* eslint-disable no-sync, global-require */ const fs = require('fs'); const path = require('path'); const jsExtensions = [ '.js', '.jsx', ]; function appendProperty(obj, propName, value) { obj[propName] = value; return obj; } function exportModules(exportPath) { const normalizedExportPath = path...
JavaScript
0.000004
@@ -790,16 +790,28 @@ 'index' +%0A && jsEx @@ -834,16 +834,57 @@ s(f.ext) +%0A && !f.name.includes('.test') )%0A
95e14b5e6f1a0aa95b45ae2ef8e471f639736379
refactor tests/cancel.spec.js into async/await
tests/cancel.spec.js
tests/cancel.spec.js
const cachios = require('./../src'); const axios = require('axios'); const moxios = require('moxios'); describe('cachios cancelling', () => { beforeEach(() => { moxios.install(axios); }); afterEach(() => { moxios.uninstall(axios); }); test('nothing should explode if a request is cancelled', (done)...
JavaScript
0.002349
@@ -311,13 +311,15 @@ d', -(done +async ( ) =%3E @@ -533,16 +533,39 @@ ();%0A%0A + const cachiosPromise = cachios @@ -627,112 +627,205 @@ %7D) -.then((resp) =%3E %7B%0A // this should never happen!%0A expect(false).toBe(true);%0A done( +;%0A %0A source.cancel('test');%0A%0A try %7B%0...
8b741b6e14f92746bec94cb23a2c79f50a8f3d39
Reset token list when hide searching dropdown
src/js/containers/TransactionCommon/TokenSelector.js
src/js/containers/TransactionCommon/TokenSelector.js
import React from "react" import { connect } from "react-redux" import { TokenSelectorView } from '../../components/CommonElement' import { getTranslate } from 'react-localize-redux'; @connect((store, props) => { var listToken = [] Object.values(props.listItem).map((value, i) => { listToken.push(value) }) ...
JavaScript
0
@@ -1780,24 +1780,31 @@ .setState(%7B +%0A open: false, @@ -1804,16 +1804,23 @@ false, +%0A searchWo @@ -1825,16 +1825,69 @@ Word: %22%22 +, %0A listShowToken: %5B...this.props.listToken%5D%0A %7D)%0A %7D%0A
79791b54f78dc0fc49333a4482e108309bd1c8d9
Update router.spec.js
tests/router.spec.js
tests/router.spec.js
/*! * qwebs * Copyright(c) 2016 Benoît Claveau * MIT Licensed */ "use strict"; const Router = require('../lib/router'); const Injector = require("../lib/injector"); describe("router", () => { let init = () => { return Promise.resolve().then(() => { let injector = new Injector(); ...
JavaScript
0.000003
@@ -77,16 +77,55 @@ rict%22;%0A%0A +const Qwebs = require(%22../lib/qwebs%22);%0A const Ro
22a433394632a278fa92c42937fd53d71ef5955a
Fix component filtes in IE11
packages/bpk-docs/src/layouts/NeoSideNavLayout/NavList.js
packages/bpk-docs/src/layouts/NeoSideNavLayout/NavList.js
/* * Backpack - Skyscanner's Design System * * Copyright 2018 Skyscanner 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 * * Un...
JavaScript
0
@@ -2570,14 +2570,13 @@ s.in -cludes +dexOf (pro @@ -2593,16 +2593,21 @@ dFilter) + %3E= 0 ;%0A
0d0b9dbfacd45faff49c3895f232e1a97e46eb3f
Update quickstart.js
packages/google-cloud-memcache/samples/test/quickstart.js
packages/google-cloud-memcache/samples/test/quickstart.js
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
JavaScript
0.000001
@@ -1067,16 +1067,22 @@ jectId = + await memcach
252fb4d093832acb4d8bf7d72477aba98199b09f
fix bug
src/filters/logInject.js
src/filters/logInject.js
const logger = require( "../logger" ) const logInject = async ( req, res, next ) => { // 挂载log req.log = logger; const reqid = req.header[ "x-request-id" ]; logger.addContext( "reqid", reqid ); const start = +new Date(); logger.info( `[Start] ${req.method} ${req.url}` ); await next(); ...
JavaScript
0.000001
@@ -351,16 +351,20 @@ s.status +Code %7D $%7Bnew