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 |
|---|---|---|---|---|---|---|---|
9a2afba879e32c1de9e0cfaad56d3bf65ddcb7be | Update UniUsers.js | lib/UniUsers.js | lib/UniUsers.js | /* Meteor need globals */
/* eslint strict: 0 */
var _userIdFromPublication;
// ----- Collection clone -----
if (Meteor.users) {
UniUsers = Object.create(UniCollection.prototype);
Object.keys(Meteor.users).forEach(k => {
UniUsers[k] = Meteor.users[k];
});
UniUsers._init('users');
} else {
... | JavaScript | 0 | @@ -2204,206 +2204,187 @@
ram
-patternForMatch Pattern to match value against, if nothing w
+additionalPattern %7BObject=%7D Additional regiments that mast be checked.%0A * If true is p
as
-
se
-t UniUsers.matchingDocument() will be used.%0A * You can additionally check fields on user doc by params to UniUsers.mat... |
ede7de1f5f591a6cf84eb78dbea942c7c5b53f72 | Fix default callback | lib/api.base.js | lib/api.base.js | /*
* node-thrust: api.base.js
*
* Copyright (c) 2014, Stanislas Polu. All rights reserved.
*
* @author: spolu
*
* @log:
* - 2014-10-23 spolu Destroy accessor
* - 2014-10-14 spolu Destroy method & API registration
* - 2014-10-10 spolu Creation
*/
"use strict"
var common = require('./common.js');
var even... | JavaScript | 0.000006 | @@ -1958,24 +1958,42 @@
tion(err) %7B%0A
+ if(err) %7B%0A
common
@@ -2005,24 +2005,32 @@
error(err);%0A
+ %7D%0A
%7D);%0A
|
f56172e28748fcc6001c05ee05d2dc79882bbc50 | Make "configOverride" in `.lift()` optional to match `.load()` | lib/app/lift.js | lib/app/lift.js | /**
* Module dependencies.
*/
var async = require('async');
/**
* Sails.prototype.lift()
*
* Loads the app, then starts all attached servers.
*
* @api public
*/
module.exports = function lift(configOverride, cb) {
var sails = this;
// Callback is optional
cb = cb || function(err) {
if (err) return... | JavaScript | 0.000001 | @@ -55,16 +55,43 @@
async');
+%0Avar _ = require('lodash');
%0A%0A/**%0A *
@@ -266,16 +266,141 @@
this;%0A%0A
+ // configOverride is optional%0A if (_.isFunction(configOverride)) %7B%0A cb = configOverride;%0A configOverride = %7B%7D;%0A %7D%0A%0A
// Cal
|
291a65da908320aad51065594529556ebf439597 | Add brightstream.createClient factory method. | brightstream.js | brightstream.js | /**************************************************************************************************
*
* Copyright (c) 2013 Digium, Inc.
* All Rights Reserved. Licensed Software.
*
* @authors : Erin Spiceland <espiceland@digium.com>
* @test
*/
/**
* @author Erin Spiceland <espiceland@digium.com>
* @namespace b... | JavaScript | 0 | @@ -1212,24 +1212,268 @@
es%5Bid%5D;%0A%7D;%0A%0A
+/**%0A * @static%0A * @member brightstream%0A * @returns %7Bbrightstream.Client%7D%0A * @params %7Bobject%7D Parameters to the Client constructor%0A */%0Abrightstream.createClient = function (params) %7B%0A %22use strict%22;%0A return brightstream.Client(params)... |
46a9f7ce88edea07212a3234a6674c8ad4b19543 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -1102,8 +1102,9 @@
%7B;%7D%0A%7D%0A%0Ap
+r
|
9064d0d38b2b9ac0220c51f5e71ee5c2a2b83b9f | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -954,16 +954,17 @@
', args)%0A %7D%0A
+
|
f7980597b734f42db9677b29048fb52a0e1e181e | Work in Progress | commit.js | commit.js | var child_process = require('child_process')
var fs = require('fs');
var max_sleep = 300
var step = 10
//Added a comment that achieves no real goal.
//Non-blocking loop
//Adjustable step
//Status line
//Add a rough time indicator
//First cut at libfaketime support
var commit_messages = [
"Fixing an important issue w... | JavaScript | 0 | @@ -4191,12 +4191,13 @@
p), 0, step)
+%0A
|
9f96d042a55689a39c7ce331e2c85566571c5f85 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -643,12 +643,13 @@
t add %25s to
+g
|
6597abc7d9b38f524fbf7fa87afd4f9a1e9f8e49 | add redirect with window.location | packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/index.js | packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/index.js | import React from 'react'
import { I18n } from 'react-i18next'
import { Query } from 'react-apollo'
import { AuthAPI } from 'services/auth'
import { notify } from 'components/Notification'
import tokenVerify from './tokenVerify.graphql'
import CheckingToken from './CheckingToken'
import InvalidToken from './InvalidTok... | JavaScript | 0.000003 | @@ -1195,16 +1195,127 @@
ser %7D))%0A
+ // should redirect with window to rehydrate session%0A window.location.href = '/'%0A
|
a9cdee2033c48866d1d5830fe64cddb1de396775 | add proper uuid utils jsdoc | packages/node_modules/@ciscospark/react-component-utils/src/uuid-utils.js | packages/node_modules/@ciscospark/react-component-utils/src/uuid-utils.js | import {base64} from '@ciscospark/common';
/**
* Tests if a string is a UUID
* @param {String} string
* @returns {Boolean}
*/
export function isUuid(string) {
const uuidRegExp = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
return uuidRegExp.test(string);
}
/**
* Takes a Con... | JavaScript | 0.000075 | @@ -1565,23 +1565,92 @@
eturns %7B
-String%7D
+object%7D hydra%0A * @returns %7BString%7D hydra.id%0A * @returns %7BString%7D hyrdra.type
%0A */%0Aexp
|
46f9020c722d37d937d229f8d9063cc7fa3f15ed | fix config.js | config.js | config.js | // # Ghost Configuration
// Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments).
// Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Produ... | JavaScript | 0.000028 | @@ -669,16 +669,17 @@
%7D
+,
%0A%0A
|
ac0c31a94428c1180ef7b309c79410bfc28ccdf0 | Remove prod/staging ports so people don't get the idea to run this on these environments | config.js | config.js | var env = process.env.NODE_ENV || 'development';
var defaults = {
"static": {
port: 3003
},
"socket": {
options: {
origins: '*:*',
log: true,
heartbeats: false,
authorization: false,
transports: [
'websocket',
'flashsocket',
'htmlfile',
'xhr-p... | JavaScript | 0 | @@ -852,154 +852,8 @@
%7D;%0A%0A
-if (env === 'production' %7C%7C env === 'staging') %7B%0A defaults%5B%22static%22%5D.port = 80;%0A%7D%0A%0Aif (env === 'staging') %7B%0A defaults%5B'static'%5D.port = 3004;%0A%7D%0A%0A
modu
|
83fa82521f900059c48453261b07a1d67f8772ad | Update JSPM dependencies | config.js | config.js | System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
map: {
"babel": "npm:babel-core@5.8.38",
"babel-... | JavaScript | 0 | @@ -9,16 +9,32 @@
onfig(%7B%0A
+ baseURL: %22/%22,%0A
defaul
@@ -399,17 +399,17 @@
-js@1.2.
-6
+7
%22,%0A %22
@@ -753,17 +753,17 @@
ss@0.11.
-3
+9
%22%0A %7D,
@@ -835,32 +835,127 @@
@0.10.3%22%0A %7D,%0A
+ %22github:jspm/nodelibs-vm@0.1.0%22: %7B%0A %22vm-browserify%22: %22npm:vm-browserify@0... |
766bb72f23ddd2c6a584d1236698421631300531 | Add new field to OCI's dest. options fields | config.js | config.js | // @flow
import type { Config } from './src/types/Config'
const conf: Config = {
// The list of pages which will not appear in the navigation menu
// Remove or comment to enable them
disabledPages: [
'planning',
// Enabling users and projects page by default
// 'users',
// 'projects',
],
// Whet... | JavaScript | 0 | @@ -218,16 +218,18 @@
nning',%0A
+
// Ena
@@ -269,16 +269,18 @@
default%0A
+
// 'us
@@ -285,16 +285,18 @@
users',%0A
+
// 'pr
@@ -1748,16 +1748,35 @@
_domain'
+, 'vcn_compartment'
%5D,%0A %7D
|
09b0661a0fb8a1f18491ea2f77d95d142578e7bb | Change the site descriptions | config.js | config.js | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
export default {
title: 'Inkdrop',
description: 'The Notebook for Hackers',
googleAnalyticsId: 'UA-58709134-3'
}
| JavaScript | 0.000001 | @@ -210,21 +210,36 @@
Note
-book for Hack
+-Taking App for Markdown Lov
ers'
|
9a251ade409133b420bdb90f5e15597b0946ce7f | fix coordinates | config.js | config.js | // Load environment variables from .env file if available
require('dotenv').load();
var config = {
env: 'prod',
host: '0.0.0.0',
port: process.env.PORT || 5100,
theme: 'night-blue-countdown',
// clients configs
api: {
weather: {
apiToken: '059af4e4ea9461305917b71f21b1a8a3'
}
},
// def... | JavaScript | 0.022543 | @@ -1201,33 +1201,33 @@
1, rows: 1, x:
-0
+1
, y: 1%0A %7D
|
e4af41818560894a05b9d29c9d4af3812f2bd4fa | Use more agnostic variable name | create.js | create.js | 'use strict';
var value = require('es5-ext/object/valid-value')
, Database = require('dbjs')
, DbjsEvent = require('dbjs/_setup/event')
, validDbjs = require('dbjs/valid-dbjs')
, isGetter = require('dbjs/_setup/utils/is-getter')
, create = Object.create, getPrototypeOf = Object.getPrototypeOf
, migr... | JavaScript | 0.000565 | @@ -4232,21 +4232,23 @@
%7B%0A%09var
-stats
+reduced
Db;%0A%09val
@@ -4309,21 +4309,23 @@
ame));%0A%09
-stats
+reduced
Db = new
@@ -4338,21 +4338,23 @@
ase();%0A%09
-stats
+reduced
Db._done
@@ -4441,21 +4441,23 @@
e(Type,
-stats
+reduced
Db, prop
@@ -4479,21 +4479,23 @@
%09delete
-stats
+reduced
Db._done
... |
ad0497df29d1a1ba5ec1d25f3fff16ed63cc7d9e | fix that=this and use that to ensure that this is really the indendend this ;) | src/main/javascript/service/cat-validation-service.js | src/main/javascript/service/cat-validation-service.js | 'use strict';
/**
* Validation Context which holds all information about a validation context
* @param {string} uuid context identifier (optional)
* @constructor
*/
function ValidationContext(uuid) {
this.uuid = uuid;
this.global = undefined;
this.fieldErrors = {};
this.knownFields = [];
/**
... | JavaScript | 0 | @@ -194,24 +194,45 @@
ext(uuid) %7B%0A
+ var that = this;%0A
this.uui
@@ -533,18 +533,18 @@
tains(th
-is
+at
.knownFi
@@ -568,26 +568,26 @@
th
-is
+at
.knownFields
@@ -725,16 +725,37 @@
onfig) %7B
+%0A var that = this;
%0A%0A /*
@@ -2057,26 +2057,26 @@
context = th
-is
+at
.getContext(
... |
9ddf52b9c1204c4a845999e60fca8bc7869563a8 | use test $injector to get scope and compile | tests/app/stringToNumber_test.js | tests/app/stringToNumber_test.js | 'use strict';
beforeEach(module('SRWApp'));
describe('Directive: stringToNumber', function() {
var $scope, $compile, $sniffer;
beforeEach(inject(function(_$rootScope_, _$compile_, _$sniffer_) {
$scope = _$rootScope_.$new();
$compile = _$compile_;
$sniffer = _$sniffer_;
}));
fu... | JavaScript | 0 | @@ -161,32 +161,17 @@
ion(
-_$rootScope_, _$compile_
+$injector
, _$
@@ -199,17 +199,31 @@
scope =
-_
+$injector.get('
$rootSco
@@ -224,17 +224,18 @@
ootScope
-_
+')
.$new();
@@ -258,17 +258,31 @@
e =
-_
+$injector.get('
$compile
_;%0A
@@ -277,17 +277,18 @@
$compile
-_
+')
;%0A
|
641122e3a2f4808cc4f6c9aca1fc40a51f0bcf11 | Implement POST for sections | dev/app/services/sections.service.js | dev/app/services/sections.service.js | (function() {
"use strict";
angular
.module('VinculacionApp')
.factory('sections', sections);
sections.$inject = ['$http'];
function sections ($http) {
var url = 'http://fiasps.unitec.edu:8085/api/Sections';
var service = {
getSections: getSections
};
... | JavaScript | 0.000001 | @@ -285,17 +285,55 @@
Sections
+,%0A postSection: postSection
%0A
-
@@ -405,16 +405,17 @@
Sections
+
(success
@@ -467,16 +467,30 @@
get(url)
+%0A %09
.then(su
@@ -506,32 +506,205 @@
back)%0A
+ %09.catch(errorCallback);%0A %7D%0A%0A function postSection ... |
ad43d6fe96152ce7c55fbfd46f163957bf19a634 | Fix loading | app/javascript/app/components/emission-pathways/emission-pathways-graph/emission-pathways-graph.js | app/javascript/app/components/emission-pathways/emission-pathways-graph/emission-pathways-graph.js | import { PureComponent, createElement } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import qs from 'query-string';
import { getLocationParamUpdated } from 'utils/navigation';
import { actions as modalActions } from 'components/moda... | JavaScript | 0.000001 | @@ -2060,16 +2060,17 @@
ing) %7C%7C
+!
filtersS
|
d59351cbb3e3145c1a37742f099cde9f7c7d89d1 | Electron wrapper instructions | bin/wrappers/electron/install.js | bin/wrappers/electron/install.js | var
path = require('path'),
download = require('download-github-repo'),
ora = require('ora'),
uid = require('uid'),
log = require('../../../lib/log'),
qfs = require('../../../lib/qfs')
function generate (src, dest) {
qfs.copy(path.join(src, 'template'), dest)
log()
log.success('Elecron wrapper creat... | JavaScript | 0.99478 | @@ -336,15 +336,8 @@
llow
- + '%5Cn'
)%0A
@@ -473,16 +473,21 @@
%E2%98%85 Edit
+' + '
package.
@@ -491,16 +491,56 @@
ge.json'
+.yellow + ' and ' + 'electron.js'.yellow
)%0A log(
@@ -614,26 +614,24 @@
g()%0A log('
- %E2%98%85
To start El
@@ -673,33 +673,114 @@
-$ quasar dev')%0A log('
+Make sur... |
ffad104dc281dd94e4682c595612acad77c8c412 | fix documentation for currentindexchange event | src/base/CursorAPIMixin.js | src/base/CursorAPIMixin.js | import { booleanAttributeValue } from "../core/AttributeMarshallingMixin.js";
import ReactiveElement from "../core/ReactiveElement.js"; // eslint-disable-line no-unused-vars
import {
goFirst,
goLast,
goNext,
goPrevious,
raiseChangeEvents,
rendered,
setState,
state,
} from "./internal.js";
/**
* Expose... | JavaScript | 0 | @@ -4642,25 +4642,24 @@
tindexchange
-d
%0A */
|
168ab5bde19e6b2d5bcad11744d60cc6c37bd9f2 | Add an endpoint to the API that provides basic metrics for survey_reach. | api/controllers/SurveyResponse.js | api/controllers/SurveyResponse.js | function anonymize (survey) {
if (survey.attributes.userEmail) {
survey.attributes.userEmail = 'survey@okcandidate.code4hr.org'
}
if (survey.attributes.userPhone) {
survey.attributes.userPhone = '757-555-5555'
}
return survey
}
module.exports = function (server) {
const SurveyResponse = server.plu... | JavaScript | 0 | @@ -660,32 +660,922 @@
method: 'GET',%0A
+ path: '/api/survey_reach',%0A handler: (request, reply) =%3E %7B%0A SurveyResponse.fetchAll()%0A .then(survey_responses =%3E %7B%0A%0A const responses = survey_responses.toJSON()%0A const count = responses.length%0A const re... |
8568d341b37bb8ee892bbce878380400e4ec7fd5 | add bo actions | api/controllers/UserController.js | api/controllers/UserController.js | // UserController.js
//
// @description :: Server-side logic for managing users
// @help :: See http://links.sailsjs.org/docs/controllers
module.exports = {
};
| JavaScript | 0.000001 | @@ -160,11 +160,594 @@
s = %7B%0A%09%0A
+ boFind: function (req, res) %7B%0A User%0A .find()%0A .exec(function (err, instances) %7B%0A if(err) return res.negotiate(err);%0A%0A return res.ok(%7B users: instances %7D, 'users/find.ejs');%0A %7D);%0A %7D,%0A%0A boFindOne: function (req, re... |
ddab0e62e3127557f4f37003740ffb80daf7a8a6 | Fix DOM and window loading times with performance.timing | api/src/selenium/firefox/index.js | api/src/selenium/firefox/index.js | import { watch } from 'chokidar'
import firefox from 'selenium-webdriver/firefox'
import fs from 'fs'
import path from 'path'
import Promise from 'bluebird'
import webdriver from 'selenium-webdriver'
const { readFileAsync } = Promise.promisifyAll(fs)
function createOptions (prefs) {
const profile = new firefox.Prof... | JavaScript | 0 | @@ -1583,16 +1583,32 @@
meoutId%0A
+ let perf = %7B%7D%0A
return
@@ -2100,16 +2100,27 @@
get(url)
+%0A
.then(()
@@ -2117,32 +2117,34 @@
.then(() =%3E %7B%0A
+
timeou
@@ -2160,32 +2160,34 @@
Timeout(() =%3E %7B%0A
+
reje
@@ -2221,32 +2221,34 @@
'))%0A
+
wa... |
2ffda8af37a56e3102848a022b333fb6bed21b68 | remove class btn of the html | src/bootstrap-filestyle.js | src/bootstrap-filestyle.js | /*
* bootstrap-filestyle
* http://markusslima.github.com/bootstrap-filestyle/
*
* Copyright (c) 2013 Markus Vinicius da Silva Lima
* Version 1.0.0
* Licensed under the MIT license.
*/
!function ($) {
"use strict";
var Filestyle = function (element, options) {
this.options = options;
... | JavaScript | 0.000093 | @@ -2642,12 +2642,8 @@
ss=%22
-btn
'+th
@@ -5075,16 +5075,19 @@
utton: '
+btn
',%0A
|
7692daaee63b607b4b78a1e0aca263e52405d6ba | Add indent and outdent. Hattip @allochi. | src/bootstrap-wysihtml5.js | src/bootstrap-wysihtml5.js | !function($, wysi) {
"use strict"
var templates = {
"font-styles": "<li class='dropdown'>" +
"<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
"<i class='icon-font'></i> <span class='current-font'>Normal text</span> <b class='caret'></b>" +
"</a>" +
"<ul... | JavaScript | 0.000001 | @@ -1117,32 +1117,55 @@
rtUnorderedList'
+ title='Unordered List'
%3E%3Ci class='icon-
@@ -1247,24 +1247,45 @@
OrderedList'
+ title='Ordered List'
%3E%3Ci class='i
@@ -1304,26 +1304,268 @@
%3E%3C/i%3E%3C/a%3E%22 +
+%0A
%09%09
+%09%09%09%09%09 %22%3Ca class='btn' data-wysihtml5-command='Indent' title='Indent'%3... |
84d29938e12c5d0356099d5cdddd444eb3d63da6 | update modal fix. | totalimpactwebapp/static/src/common/services/profileService.js | totalimpactwebapp/static/src/common/services/profileService.js | angular.module('services.profileService', [
'resources.users'
])
.factory("ProfileService", function($q,
$timeout,
Update,
Page,
UserMessage,
... | JavaScript | 0 | @@ -1334,16 +1334,22 @@
url_slug
+, true
)%0A
|
1425f6043f3550d45dd3d77df503346fac1a42da | Stop on patch fail. | tasks/patch.js | tasks/patch.js | /*
* grunt-patch
* https://github.com/nettantra/grunt-patch
*
* Copyright (c) 2014 NetTantra Technologies
* Licensed under the MIT license.
* https://github.com/nettantra/grunt-patch/blob/master/LICENSE-MIT
*/
module.exports = function(grunt) {
'use strict';
var jsdiff = require('diff');
var fs = require... | JavaScript | 0 | @@ -1560,24 +1560,28 @@
grunt.
-log
+fail
.warn
+ing
('Patch
|
c3faf58c75452e6e10490b6602e62ecb69db517e | Use the right mimetype on the blob | src/cc/picture_debugger.js | src/cc/picture_debugger.js | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
base.requireStylesheet('cc.picture_debugger');
base.require('cc.picture');
base.require('tracing.analysis.generic_object_view');
base.... | JavaScript | 0.999996 | @@ -1818,32 +1818,32 @@
e: %22
-text/plain;charset=utf-8
+application/octet-binary
%22%7D);
|
3500c0844b149ce86fa3d2f0e5a2391e219381d0 | Update comment with right param | src/assets/js/packages/papi/properties/flexible.js | src/assets/js/packages/papi/properties/flexible.js | import $ from 'jquery/jquery';
import Repeater from 'papi/properties/repeater';
class Flexible extends Repeater {
/**
* The template to use.
*
* @var {function}
*/
get template() {
return window.wp.template('papi-property-flexible-row');
}
/**
* Initialize Property Flexible.
*/
static... | JavaScript | 0 | @@ -3429,17 +3429,21 @@
object%7D
-e
+$this
%0A */%0A
|
4a22ced266d962f68d046e2216cf86b41d3fdf73 | Edit submit email function | assets/javascript/events.js | assets/javascript/events.js | function emailFormHandler() {
var sendEmailBtn = document.getElementById('squatch-send-email');
var emailInput = document.getElementById('squatch-user-email');
handleClicks(sendEmailBtn, function() {
if (!isValidEmail(emailInput.value)) {
my_addClass(emailInput, 'invalid');
emailInput.onkeypress ... | JavaScript | 0 | @@ -598,24 +598,37 @@
i) %7B%0A
+ var reload =
window.fram
@@ -659,54 +659,276 @@
load
-(emailInput.value /*, JWT token if needed */);
+;%0A%0A if (window.parent.squatch && window.parent.squatch.EventBus) %7B%0A window.parent.squatch.EventBus.dispatch('submit_email', this, reload, emailInput.... |
b95921b816b9390319d64982fef7367b64177b90 | fix rsync port error, ref: https://github.com/hexojs/hexo-deployer-rsync/issues/20 | lib/deployer.js | lib/deployer.js | 'use strict';
var chalk = require('chalk');
var spawn = require('hexo-util/lib/spawn');
module.exports = function(args) {
if (!args.host || !args.user || !args.root) {
var help = '';
help += 'You should configure deployment settings in _config.yml first!\n\n';
help += 'Example:\n';
help += ' deplo... | JavaScript | 0.000001 | @@ -1194,32 +1194,17 @@
'-e
+%5C'
ssh
-',%0A args.user + '@
+ -p
' +
@@ -1212,142 +1212,57 @@
rgs.
-hos
+por
t + '
-:' + args.root%0A %5D;%0A%0A if (args.port && args.port %3E 0 && args.port %3C 65536) %7B%0A params.splice(params.length - 1, 0, '--port=
+%5C'',%0A args.user + '@' + args.host + ':
' ... |
44646a56f805368fae3a240b52655be1c80dc538 | update code style | app/assets/javascripts/controllers/floating_ip/floating_ip_form_controller.js | app/assets/javascripts/controllers/floating_ip/floating_ip_form_controller.js | ManageIQ.angular.app.controller('floatingIpFormController', ['$http', '$scope', 'floatingIpFormId', 'miqService', function($http, $scope, floatingIpFormId, miqService) {
var vm = this;
vm.floatingIpModel = { name: '' };
vm.formId = floatingIpFormId;
vm.afterGet = false;
vm.modelCopy = angular.copy( vm.floatin... | JavaScript | 0 | @@ -945,34 +945,32 @@
'new') %7B%0A
-
var url = '/floa
@@ -1013,18 +1013,16 @@
l';%0A
-
%7D else %7B
@@ -1022,18 +1022,16 @@
else %7B%0A
-
va
@@ -1100,18 +1100,16 @@
ancel';%0A
-
%7D%0A
|
9d12acf596d8b2bab7b5ea4238d83a9058464caf | check some loading stuff | test/basics.js | test/basics.js | // Testing basic crud functionality
var assert = require('assert');
var parseCmdLine = function(args) {
var driver = args[2] || 'disk',
i = 0,
arg = null,
parts = null,
results = {'driver': driver};
for (i = 3; i < args.length; i++) {
arg = args[i];
parts = ar... | JavaScript | 0 | @@ -640,24 +640,57 @@
%7D, Error
+, %22Error loading databank module%22
);%0A%0A // G
@@ -997,24 +997,46 @@
n get()%22);%0A%0A
+ assert.ok(bank);%0A%0A
bank.con
|
5d20372527340806e8126fde18ce8917c5720bcf | Update devtools.panels.create icon and panel urls to work correctly on Firefox >= 58 (#336) | devtools-panels/devtools/devtools.js | devtools-panels/devtools/devtools.js | /**
This script is run whenever the devtools are open.
In here, we can create our panel.
*/
function handleShown() {
console.log("panel is being shown");
}
function handleHidden() {
console.log("panel is being hidden");
}
/**
Create a panel, and add listeners for panel show/hide events.
*/
browser.devtools.panel... | JavaScript | 0 | @@ -340,16 +340,17 @@
el%22,%0A %22
+/
icons/st
@@ -361,16 +361,17 @@
ng%22,%0A %22
+/
devtools
|
bbd15617888d4c2ff8e2fff7bffda6ccd58fb356 | Remove adviser sort option | src/apps/interactions/macros/collection-sort-form.js | src/apps/interactions/macros/collection-sort-form.js | const options = [
{ value: '-date', label: 'Newest' },
{ value: 'company__name', label: 'Company: A-Z' },
{ value: 'dit_adviser__first_name,dit_adviser__last_name', label: 'Adviser: A-Z' },
{ value: '-dit_adviser__first_name,-dit_adviser__last_name', label: 'Adviser: Z-A' },
{ value: 'subject', label: 'Subjec... | JavaScript | 0.000001 | @@ -107,182 +107,8 @@
%7D,%0A
- %7B value: 'dit_adviser__first_name,dit_adviser__last_name', label: 'Adviser: A-Z' %7D,%0A %7B value: '-dit_adviser__first_name,-dit_adviser__last_name', label: 'Adviser: Z-A' %7D,%0A
%7B
|
2514d7f70cb73e8cb214eab94635bd0a87a3e94b | increase default PAGE_SIZE for galleries to 30 | src/client/GalleryStore.js | src/client/GalleryStore.js | import _ from 'lodash';
import moment from 'moment';
import axios from 'axios';
import {computed, action,observable} from 'mobx';
import UiState from './UiState';
class Gallery {
@observable data;
constructor(galleryData) {
this.data = galleryData;
}
@computed get id() {
return this.data._id;
... | JavaScript | 0.000002 | @@ -1381,10 +1381,10 @@
E =
-15
+30
;%0A
|
a8bc0deddf88ba1f27debdb4d8a53f31a4d10681 | Fix minification | tasks/minify-named-css.js | tasks/minify-named-css.js | 'use strict';
var path = require('path'),
time = require('../lib/time');
module.exports = {
/**
* Minify named css.
* @param {string} stylesName
* @param {Object} gulp
* @param {Object} plugins
* @param {Object} config
* @return {Stream}
*/
run: function (stylesName, gulp, plugins, config) {
retur... | JavaScript | 0.000019 | @@ -541,16 +541,62 @@
%09%09)%0A%09%09)%0A
+%09%09%09.pipe(plugins.concat(stylesName + '.css'))%0A
%09%09%09.pipe
|
68b2f137e3d846a29068c89499b50ca883e9eee9 | Increase the API limit of advisers | src/apps/investments/client/projects/create/tasks.js | src/apps/investments/client/projects/create/tasks.js | import axios from 'axios'
import { getMetadataOptions } from '../../../../../client/metadata'
import { transformCompanyToListItem } from '../transformers'
import urls from '../../../../../lib/urls'
import { CREATE_INVESTMENT_OPEN_CONTACT_FORM_ID } from './state'
const handleError = (error) => Promise.reject(Error(er... | JavaScript | 0.000001 | @@ -1122,16 +1122,58 @@
: true,%0A
+ limit: 100000,%0A offset: 0,%0A
%7D,
|
13dd64d32a8bc41b49ec87fe678ff23809976592 | add a verification of anonymous user and destroyet to avoid trash on db | hoodie.oauthio.js | hoodie.oauthio.js | /**
* Hoodie plugin template
* An example plugin, this is where you put your frontend code (if any)
*/
/* global Hoodie */
Hoodie.extend(function (hoodie) {
'use strict';
hoodie.account.oauthio = {
me: {},
provider: 'g+',
getOAuthConfig: function () {
// console.log('getOAuthConfig');
... | JavaScript | 0 | @@ -923,32 +923,33 @@
UpWith: function
+
(task) %7B%0A v
@@ -933,32 +933,32 @@
nction (task) %7B%0A
-
var defer
@@ -1306,32 +1306,444 @@
mise();%0A %7D,%0A%0A
+ verifyAnonymousUser: function (task) %7B%0A var defer = window.jQuery.Deferred();%0A // console.log('verifyAnonymousUser');%0... |
76db4d0cbad0ad82f2db01cd2900eb8b6de9e85a | Add TODO for document.js | lib/document.js | lib/document.js | 'use strict'
let Container = require('./container')
let LazyResult, NoWork, Processor
class Document extends Container {
constructor(defaults) {
// type needs to be passed to super, otherwise child roots won't be normalized correctly
super({ type: 'document', ...defaults })
if (!this.nodes) {
th... | JavaScript | 0.000001 | @@ -565,24 +565,201 @@
defined' &&%0A
+ // @TODO what to do with this warning option? do we need it here and in processor.js?%0A // Seems like we will not have a warning after NoWork is properly implemented.%0A
!opts.
|
13345b930c60b7fc5a44788fd851ed22958b54e0 | should now return long token | hooks/facebook.js | hooks/facebook.js | "use strict";
var http = require('http');
exports.tokenize = function (req, res) {
var response = {"Response":0};
if (!req.clientId) {
return res.sendUnauthenticated();
}
if ( req.body === undefined)
{
return res.MissingParameterError();
}
var jsondata = JSON.parse(req.body.data)
var usertoken =... | JavaScript | 0.998709 | @@ -15,16 +15,17 @@
var http
+s
= requi
@@ -36,12 +36,14 @@
http
+s
');%0A
+%0A
expo
@@ -260,51 +260,8 @@
%7D%0A
- var jsondata = JSON.parse(req.body.data)%0A
va
@@ -278,16 +278,16 @@
n =
-jsondata
+req.body
.use
@@ -309,16 +309,21 @@
ath = '/
+v2.3/
oauth/ac
@@ -498,20 +498,16 @@
response
-,res
)%7... |
b96b0cee3fc4a532747d07d5172f3be40010672d | Fix download async.series calls (#199) | lib/download.js | lib/download.js | var async = require('async');
var chalk = require('chalk');
var fs = require('fs-extra');
var tildify = require('tildify');
var figures = require('figures');
var dl = require('download');
var debug = require('debug')('mongodb-version-manager:download');
function download(model, done) {
debug('downloading artifact fr... | JavaScript | 0 | @@ -1347,48 +1347,193 @@
f
-s.exists.bind(null, model.bin_directory)
+unction(cb) %7B%0A fs.stat(model.bin_directory, function(err) %7B%0A if (err) %7B%0A cb();%0A %7D else %7B%0A cb(new Error('already exists'));%0A %7D%0A %7D);%0A %7D
,%0A
@@ -1570,32 +1570,41... |
a7121320ec5d1873936f1ec470051ec5392b317c | Remove props.id reference | app/assets/javascripts/service_types/IsServiceWorkingChart.js | app/assets/javascripts/service_types/IsServiceWorkingChart.js | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import moment from 'moment';
import * as GraphHelpers from '../helpers/GraphHelpers';
import HighchartsWrapper from '../components/HighchartsWrapper';
const styles = {
title: {
color: 'black',
paddingBottom: 20,
fontSi... | JavaScript | 0 | @@ -1,12 +1,13 @@
+f
import React
@@ -2979,27 +2979,8 @@
%3Cdiv
- id=%7Bthis.props.id%7D
sty
|
1f373ba72d95bd83c490c1378af7a80f875f4b31 | Add test for sourcemaps | test/bundle.js | test/bundle.js | var test = require('tap').test;
var browserify = require('browserify');
var vm = require('vm');
var pugify = require('../index.js');
test('no options bundle', function(t) {
t.plan(1);
var b = browserify();
b.add(__dirname + '/../example/bar.js');
b.transform(__dirname + '/..');
b.bundle(function (e... | JavaScript | 0 | @@ -73,24 +73,186 @@
var
-vm = require('vm
+fs = require('fs');%0Avar vm = require('vm');%0Avar path = require('path');%0Avar SourceMapConsumer = require('source-map').SourceMapConsumer;%0Avar convert = require('convert-source-map
');%0A
@@ -797,32 +797,32 @@
r) t.fail(err);%0A
-
testBund
@@ -842,24 +842,1... |
f2d9d47cf8c163a167b3eb37ed04ecc808180383 | Update webdriverjs.addCommand.example.js | examples/webdriverjs.addCommand.example.js | examples/webdriverjs.addCommand.example.js | var webdriverjs = require('../index');
var helper = require('./webdriverjs.externalAddCommandHelper')
var options = {
desiredCapabilities: {
browserName: 'chrome'
}
};
client = webdriverjs.remote(options);
client.addCommand('searchGoogle',helper.searchGoogle.bind(client));
var SearchString = 'webdrive... | JavaScript | 0.000004 | @@ -514,8 +514,14 @@
.end();
+%0A %0A
|
ae4ccb38df5f01ba162272b364eabbf820dbd846 | improve JSDoc for adjustSearch | src/sap.ui.mdc/src/sap/ui/mdc/field/FieldValueHelpDelegate.js | src/sap.ui.mdc/src/sap/ui/mdc/field/FieldValueHelpDelegate.js | /*
* ! ${copyright}
*/
// ---------------------------------------------------------------------------------------
// Helper class used to execute model specific logic in FieldBase
// ---------------------------------------------------------------------------------------
sap.ui.define([
'sap/ui/mdc/field/FieldHelpB... | JavaScript | 0.000001 | @@ -2626,14 +2626,15 @@
rch
-S
+s
tring
+.
%0A%09 *
@@ -2688,19 +2688,38 @@
on
-the
+which
back
+-
end
+ service is used
, th
@@ -2850,12 +2850,25 @@
ead
-True
+%3Ccode%3Etrue%3C/code%3E
if
@@ -2898,19 +2898,21 @@
r a type
+-
ahe
+a
d%0A%09 * @p
@@ -2969,17 +2969,17 @@
string%7D
-s
+S
earch st
@@ ... |
4f4c38a736f5ad62da775a5881efefe0b58adc3a | add files | lib/duplexer.js | lib/duplexer.js | /**
* Created by nuintun on 2015/9/25.
*/
'use strict';
var is = require('is');
var Stream = require('readable-stream');
var Duplex = Stream.Duplex;
var Readable = Stream.Readable;
/**
* Duplexer
* @type {Function}
*/
function Duplexer(options, writable, readable){
var self = this;
if (readable === undefin... | JavaScript | 0.000002 | @@ -840,15 +840,15 @@
if (
-typeof
+!is.fn(
read
@@ -860,23 +860,9 @@
read
- !== 'function'
+)
) %7B%0A
|
eae6dd0821aef18ec3ac38941cc6f83960a0af0a | replace console.log by logger.error and comment console.log for debuging | controllers/pubSub/pubsub.js | controllers/pubSub/pubsub.js | /**
Copyright (C) 2014 ATOS
This file is part of AEON.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later v... | JavaScript | 0.000001 | @@ -1416,18 +1416,16 @@
ion) %7B%0A%0A
-
if (!(
@@ -1482,31 +1482,28 @@
) %7B%0A
- console.log
+logger.error
(%22incorr
@@ -1530,20 +1530,16 @@
uest%22);%0A
-
retu
@@ -1548,26 +1548,25 @@
false;%0A
-
%7D%0A
+%0A
-
+//
console.
@@ -1589,19 +1589,16 @@
uest%22);%0A
-%0A
return... |
84755602f70baacba6822e59bcac7279865b8927 | Fix close function for sub watcher | lib/fs/watch.js | lib/fs/watch.js | 'use strict';
var create = Object.create
, remove = require('es5-ext/lib/Array/prototype/remove')
, invoke = require('es5-ext/lib/Function/invoke')
, noop = require('es5-ext/lib/Function/noop')
, memoize = require('memoizee')
, ee = require('event-emitter')
, resolve = require('path').res... | JavaScript | 0.000003 | @@ -204,16 +204,78 @@
/noop')%0A
+ , lock = require('es5-ext/lib/Function/prototype/lock')%0A
, memo
@@ -3022,24 +3022,15 @@
r;%0A%09
-watcher = watch(
+path =
reso
@@ -3046,16 +3046,39 @@
g(path))
+;%0A%09watcher = watch(path
);%0A%09emit
@@ -3134,23 +3134,31 @@
close =
+lock.call(
watch
-er
.clearRe... |
9a0781dc0fb5f850ffb0b79d3fd15e032b57e3ed | Rename deprecated lifecycle method for React 17 support | src/component/component.js | src/component/component.js | /*
* Project: redux-i18n
* File: component/component.js
*/
import React from 'react'
import {PropTypes} from 'prop-types'
import deepForceUpdate from 'react-deep-force-update'
import {setForceRefresh, setLanguage} from '../actions'
import getTranslateFunction from '../getTranslateFunction';
class I18n extends Re... | JavaScript | 0.000001 | @@ -1089,32 +1089,39 @@
%7D%0A %7D%0A %7D%0A%0A
+UNSAFE_
componentWillMou
|
265b26a04c29bbd457de0fb0d9f25483593849eb | remove removing tabindex | src/component/shortcuts.js | src/component/shortcuts.js | import React from 'react'
import ReactDOM from 'react-dom'
import invariant from 'invariant'
import Combokeys from 'combokeys'
let shortcuts = React.createFactory('shortcuts')
export default class extends React.Component {
static displayName = 'Shortcuts'
static contextTypes = {
shortcuts: React.PropTypes.o... | JavaScript | 0.000002 | @@ -4020,92 +4020,8 @@
%3E %7B%0A
- let element = this._getElementToBind()%0A element.removeAttribute('tabindex')%0A%0A
|
000051c705f2e56c075d19eef1fe169460d463a1 | change again getting ATOM property | lib/get_prop.js | lib/get_prop.js | var util = require('util');
var async = require('async');
var decoder = require('./decoder');
/*
* @param X client
* @param wid
* @param prop (name or atom)
* @param type (name or atom) (optional)
* @param cb. function(err, res)
*/
function get_property(X, wid, prop, type, cb) {
if (typeof type === 'function... | JavaScript | 0 | @@ -1411,160 +1411,90 @@
ype
-*/%0A if (prop_value.type === 0) %7B%0A var ret_data;%0A if (type === X.atoms.ATOM) %7B%0A ret_data = %7B%7D;%0A %7D%0A
+in this case it means that there's no data */%0A if (prop_value.type === 0) %7B
%0A
@@ -1527,16 +1527... |
d8b714516aa1af5292a9f082a660bb7722f77caa | add lineHeight to TextArea | src/components/TextArea.js | src/components/TextArea.js | import React, { PropTypes } from 'react';
const textStyle = {
color: '#222222',
backgroundColor: '#22FFFF',
};
const TextArea = ({ text }) => {
return (
<div style={textStyle}>
{text}
</div>
);
};
TextArea.propTypes = {
text: PropTypes.string.isRequired,
};
export default TextArea;
| JavaScript | 0.000002 | @@ -106,16 +106,38 @@
2FFFF',%0A
+ lineHeight: '170%25',%0A
%7D;%0A%0Acons
|
d68a322e830d835659ddf3bfbe96b701625f7583 | Add better error logging | lib/git-repo.js | lib/git-repo.js | var async = require('async'),
childProcess = require('child_process'),
config = require('./config'),
fs = require('fs'),
log = require('./log');
function loggedExec(tag, cmd, options, callback) {
log.log(cmd + '\n', cmd + '\n');
childProcess.exec(cmd, options, function(err, stdout, stderr) {
co... | JavaScript | 0.000002 | @@ -303,24 +303,84 @@
, stderr) %7B%0A
+ if (err) %7B%0A console.log(tag, 'error', err);%0A %7D%0A%0A
console.
|
367756b8aed88288f9bec5834abde002770abb7f | remove placeholder control components | src/components/controls.js | src/components/controls.js | import React from 'react';
import Radium from 'radium';
// import _ from 'lodash';
// import Flex from './framework/flex';
// import { connect } from 'react-redux';
// import { FOO } from '../actions';
import Button from "./framework/generic-button";
import DateSlider from "./controls/date_slider";
import ColorLegend f... | JavaScript | 0 | @@ -248,230 +248,8 @@
n%22;%0A
-import DateSlider from %22./controls/date_slider%22;%0Aimport ColorLegend from %22./controls/color_legend%22;%0Aimport ColorByInputs from %22./controls/color_by_inputs%22;%0Aimport SearchStrainsInput from %22./controls/search_strains_inputs%22;
%0A%0A//
@@ -920,108 +920,8 @@
%5D%7D%3E... |
4d564453e6bd23eff08da0b69e15eb4ec5cc917c | use file target for logger, and take the log_ath from config | lib/graphout.js | lib/graphout.js | var EE = require('events').EventEmitter,
Config = require('./config'),
Logger = require('./logger'),
Query = require('./query');
// constructor
var Graphout = module.exports = function(conf) {
this.events = new EE();
this.options = Config(conf);
this.log = new Logger.Instance();
... | JavaScript | 0 | @@ -501,49 +501,44 @@
et('
-console')%0A .withFormatter('syslog'
+file', %7Bfile: this.options.log_file%7D
)%0A
@@ -586,16 +586,49 @@
g_level)
+%0A .withFormatter('syslog')
;%0A%0A /
|
beda457f0337c0218892ecab60ccb719a2e2ad08 | set auth dialog width to client width if smaller than default width | lib/hashauth.js | lib/hashauth.js | 'use strict';
var crypto = require('crypto');
var Storages = require('js-storage');
var hashauth = {
apisecret: ''
, storeapisecret: false
, apisecrethash: null
, authenticated: false
, initialized: false
};
hashauth.init = function init(client, $) {
if (hashauth.initialized) {
return hashauth;
}... | JavaScript | 0.000001 | @@ -2157,24 +2157,95 @@
jectHtml();%0A
+ var clientWidth = Math.min(400, $( '#container')%5B0%5D.clientWidth);%0A%0A
$( '#req
@@ -2296,19 +2296,27 @@
width:
-400
+clientWidth
%0A ,
|
3453f00b0df43e83daa1b7fa2c9d94d2d4de4eb9 | Move responseType to be set after headers received. Fixes Firefox bug | lib/http/xhr.js | lib/http/xhr.js | /**
* Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | JavaScript | 0 | @@ -1160,46 +1160,8 @@
h;%0A%0A
- xhr.responseType = 'arraybuffer';%0A
@@ -1344,24 +1344,66 @@
RECEIVED) %7B%0A
+ xhr.responseType = 'arraybuffer';%0A
emit
|
de5f47a87aaabef5644afa2753851ce35b661631 | add support for vue files (#92) | src/config/lintstagedrc.js | src/config/lintstagedrc.js | const {resolveKcdScripts, resolveBin, isOptedOut} = require('../utils')
const kcdScripts = resolveKcdScripts()
const doctoc = resolveBin('doctoc')
module.exports = {
'README.md': [`${doctoc} --maxlevel 3 --notitle`, 'git add'],
'*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)': [
isOptedOut('aut... | JavaScript | 0 | @@ -288,16 +288,20 @@
phql%7Cmdx
+%7Cvue
)': %5B%0A
|
380b3ebbb8a170d94f2e5f46ee67b1c27108bd7f | Convert NotFound page | src/containers/NotFound.js | src/containers/NotFound.js | import React from 'react'
import { Provider, Heading, Container, Box, Text } from 'rebass'
import theme from '../theme'
import { Head, Link } from 'react-static'
import Nav from '../components/Nav'
import CTA from '../components/CTA'
import Footer from '../components/Footer'
export default () => (
<Provider theme={t... | JavaScript | 0.000019 | @@ -27,17 +27,24 @@
import %7B
-
+%0A Theme
Provider
@@ -44,16 +44,18 @@
rovider,
+%0A
Heading
@@ -55,16 +55,18 @@
Heading,
+%0A
Contain
@@ -72,27 +72,39 @@
ner,
- Box,
+%0A LargeButton,%0A
Text
-
+%0A
%7D from '
reba
@@ -103,43 +103,31 @@
om '
-rebass'%0Aimport theme from '../theme
+@hackclub/desi... |
a0a13ca37cf7817d7455fb6dddc3e452319693fe | Add missing cb calls | lib/ioscript.js | lib/ioscript.js | var fs = require('fs');
var path = require('path');
var async = require('async');
var program = require('commander');
var funkit = require('funkit');
var merge = funkit.common.merge;
function ioscript(o) {
if(!o.transform) quit('Your IO script is missing transform function');
if(!o.limit) o.limit = 10000;
... | JavaScript | 0.00016 | @@ -2186,24 +2186,29 @@
%3E 0) return
+ cb()
;%0A el
@@ -2242,16 +2242,21 @@
) return
+ cb()
;%0A %7D%0A
@@ -2600,16 +2600,21 @@
) return
+ cb()
;%0A%0A v
|
a40a2f385ebfb11cc3e21f81b71a4643107e09f9 | Fix small typo (#60) | src/controllers/service.js | src/controllers/service.js | 'use strict';
/**
* Pterodactyl - Daemon
* Copyright (c) 2015 - 2018 Dane Everitt <dane@daneeveritt.com>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, includi... | JavaScript | 0 | @@ -1868,18 +1868,18 @@
eggs aga
-n
i
+n
st Panel
|
1f6b44f0afbc1149a4eb3d125a2f055ed4f173b3 | better test description | test/column.js | test/column.js | define('test.column', ['app.column'], function(Column) {
function run() {
test('Column instance', function() {
var HEIGHT = 3
var column = new Column(HEIGHT),
allSlotsEmpty = [null, null, null],
firstSlotSet = ["X", null, null],
allSlotsSet = ["X", "Y", "X"]
o... | JavaScript | 0.983307 | @@ -563,24 +563,30 @@
lotSet), %22
+empty
slots are fi
@@ -587,25 +587,27 @@
are
-filled with
+represented by
null
-s
%22 )%0A
|
1b316bf878ee032e3c06b89c764164c67ea1c1e3 | Improve unit test for reading configuration | test/config.js | test/config.js | 'use strict';
var _ = require('lodash'),
assert = require('assert'),
config = require('../src/config');
process.env.silent = true;
process.env.engine = 'phantomjs';
describe('config', function () {
describe('read', function () {
it('default configuration should exist', function () {
... | JavaScript | 0.000001 | @@ -342,16 +342,131 @@
read();%0A
+ assert.equal(false, _.isEmpty(conf));%0A%0A // Parameters are configured in %22default.json%22 file.
%0A
@@ -561,53 +561,8 @@
l);%0A
- assert.equal(true, conf.silent);%0A
@@ -642,16 +642,64 @@
.cors);%0A
+ assert.equal(fals... |
ac77dc8ede2cb9e259798b8f75dffc655800ea65 | update pacman colors | src/presentations/reactDay/common/themes/darkTheme.js | src/presentations/reactDay/common/themes/darkTheme.js | import createTheme from "spectacle/lib/themes/default";
const initialTheme = createTheme({
primary: "white",
secondary: "black",
tertiary: "#09b5c4",
quartenary: "rgba(255, 219, 169, 0.43)",
}, {
primary: { name: "Droid Serif", googleFont: true, styles: [ "400", "700i" ] }
});
export const theme = {
...initialT... | JavaScript | 0 | @@ -736,16 +736,529 @@
ary%0A%09%09%09%7D
+,%0A%09%09%7D,%0A%09%09progress: %7B%0A%09%09%09...initialTheme.screen.progress,%0A%09%09%09pacman: %7B%0A%09%09%09%09...initialTheme.screen.progress.pacman,%0A%09%09%09%09pacmanBottom: %7B%0A%09%09%09%09%09...initialTheme.screen.progress.pacman.pacmanBottom,%0A%09%09%09%09%0... |
686d2c8c11a1191dfeebaf6d082bb971b971aad5 | apply review | src/customEvent/persist.js | src/customEvent/persist.js | eg.module("persist", [jQuery, window, document], function($, global, doc){
"use strict";
/**
* Support persist event in jQuery
* @ko jQuery custom persist 이벤트 지원
* @name jQuery#persist
* @event
* @param {Event} e event <ko>이벤트 객체</ko>
* @param {Object} e.state state info to be restored <ko>복원되어야 하는 상태의 정보</ko>
... | JavaScript | 0 | @@ -1007,32 +1007,33 @@
nction() %7B%0A%09%09if(
+!
isSupportState)
@@ -1038,106 +1038,8 @@
) %7B%0A
-%09%09%09return %7B %0A%09%09%09%09getItem : $.noop,%0A%09%09%09%09setItem : $.noop,%0A%09%09%09%09removeItem : $.noop%0A%09%09%09%7D;%0A%09%09%7D else %7B%0A
%09%09%09i
|
0b19c5db9f8d7186483f653fa6849339f3d4aad7 | Update app port. | config/env/development.js | config/env/development.js | /**
* Development environment settings
*
* This file can include shared settings for a development team,
* such as API keys or remote database passwords. If you're using
* a version control solution for your Sails app, this file will
* be committed to your repository unless you add it to your .gitignore
* file.... | JavaScript | 0 | @@ -820,11 +820,46 @@
// %7D%0A%0A
+ port: process.env.PORT %7C%7C 1337,%0A%0A
%7D;%0A
|
5c3af18ed65fa05becb816e64910cc996f99899f | Fix hierarchical SPID checking | src/foam/nanos/auth/ServiceProviderAwareSupport.js | src/foam/nanos/auth/ServiceProviderAwareSupport.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.auth',
name: 'ServiceProviderAwareSupport',
documentation: `Support methods for ServiceProviderAware DAOs and Sinks.
Use: see ServiceProviderAwareTest
... | JavaScript | 0.000073 | @@ -2847,38 +2847,42 @@
eturn sp
-id.equals(sp.getSpid()
+.getSpid().startsWith(spid
) %7C%7C%0A
@@ -3770,30 +3770,34 @@
n sp
-id.equals(sp.getSpid()
+.getSpid().startsWith(spid
) %7C%7C
|
ab4e9dbf014bdc4f8194631dd3ce970edfb7322a | Corrected wrong variable name | lib/lol-xmpp.js | lib/lol-xmpp.js | /**
The MIT License (MIT)
Copyright (c) 2014 Hristo Hristov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | JavaScript | 0.999201 | @@ -6472,20 +6472,18 @@
RegExp(
-name
+to
, 'i');%0A
|
020d75b527af47e1b01069344af57813eec6ba8b | Fix comment | src/services/helpers/scopePermissions/ScopeService.js | src/services/helpers/scopePermissions/ScopeService.js | const auth = require('@feathersjs/authentication');
const globalHooks = require('../../../hooks');
const { lookupScope, rejectQueryingOtherUsers } = require('./hooks');
/**
* Base class for scope services (nested under a top-level service)
* @class ScopeService
*/
class ScopeService {
/**
* Creates an instanc... | JavaScript | 0 | @@ -559,11 +559,8 @@
ice.
-%09 *
%0A
|
a8e604e5d1251091ae513436bf088314ff9b37c6 | add ramda placeholder and make tests consistent (#1270) | test/lensEq.js | test/lensEq.js | import { assert } from 'chai';
import { lens, lensIndex, lensPath, lensProp, path } from 'ramda';
import * as RA from '../src';
describe('lensEq', function() {
it('tests a lens for a value', function() {
assert.isTrue(RA.lensEq(lensIndex(1), 1, [0, 1]));
assert.isFalse(RA.lensEq(lensIndex(0), 1, [0, 1]));
... | JavaScript | 0 | @@ -161,38 +161,94 @@
%7B%0A
-it('tests a lens for a
+context(%0A 'given a data structure focused by the given lens equals provided
value',
fun
@@ -243,16 +243,20 @@
value',
+%0A
functio
@@ -269,59 +269,57 @@
-assert.isTrue(RA.lensEq(lensIndex(1), 1, %5B0, 1%5D));%0A
+ specify('should return tru... |
2f24b9dd5edd22458f3b93e55b29c0440db424f9 | correct prop type | src/victory-clip-container/victory-clip-container.js | src/victory-clip-container/victory-clip-container.js | import React from "react";
import PropTypes from "prop-types";
import { assign, defaults, isFunction } from "lodash";
import ClipPath from "../victory-primitives/clip-path";
export default class VictoryClipContainer extends React.Component {
static displayName = "VictoryClipContainer";
static role = "container";
... | JavaScript | 0.000005 | @@ -915,28 +915,30 @@
: PropTypes.
-bool
+number
,%0A style:
|
ca1d8c944dcbcfcdb396d93876bd0c5c3f8cc517 | minify: imports position | test/minify.js | test/minify.js | import {readFile} from 'fs/promises';
import {minify} from '../lib/minify.js';
import tryToCatch from 'try-to-catch';
import test from 'supertape';
import CleanCSS from 'clean-css';
import {minify as terserMinify} from 'terser';
import htmlMinifier from 'html-minifier-terser';
import {fileURLToPath} from 'url';
impor... | JavaScript | 0.999996 | @@ -43,38 +43,62 @@
rt %7B
-minify%7D from '../lib/minify.js
+fileURLToPath%7D from 'url';%0Aimport %7Bdirname%7D from 'path
';%0A%0A
@@ -309,65 +309,42 @@
rt %7B
-fileURLToPath%7D from 'url';%0Aimport %7Bdirname%7D from 'path
+minify%7D from '../lib/minify.js
';%0A
+%0A
cons
|
234c225d97cac0689020eefcad760cdb80d87a84 | correct path in | cdn/app/init.js | cdn/app/init.js | var base_url="//demos.techumber.com/cdn/";
var site_array=[
base_url+"css/style.css",
"//code.jquery.com/jquery-1.11.1.min.js",
base_url+"js/lib/easing.js",
base_url +"js/lib/motio.js",
base_url+"js/lib/preload.js"
];
var index_array=[
base_url+"css/index.css",
base_url+"js/lib/isotope.js",
... | JavaScript | 0.000006 | @@ -671,16 +671,17 @@
le.log(%22
+w
hole sit
@@ -718,17 +718,147 @@
ge type%0A
-%09
+ if(TU_PAGE == %22index%22)%7B%0A %09head.load(post_array,function()%7B%0A %09%09console.log(%22index array loadded....%22);%0A %09%7D);%0A %7D%0A%09 //
head.te
@@ -863,19 +863,22 @@
test(%0A%09
+//
+
(TU_P... |
0432bbab9ac39d87f55e4f8c3c7d3785448d09bd | Update enhanced-data.js | lib/projects/enhanced-data.js | lib/projects/enhanced-data.js | {
"id":16,
"name":"Enhanced Payments Data",
"description": "",
"theme": "Platforms",
"location": "Manchester",
"facing":"internal",
"phase":"discovery",
"sro":"John Fundry",
"service_man":"Martin Little",
"phase-history":{
"discovery": [
{"label":"Started", "date": "Nov 2015"}
]
},
... | JavaScript | 0 | @@ -105,18 +105,17 @@
%22: %22
-Manchester
+Stockport
%22,%0A
@@ -300,16 +300,163 @@
2015%22%7D%0A
+ %5D,%0A %22alpha%22: %5B%0A %7B%22label%22:%22Predicted%22, %22date%22: %22March 2016%22%7D%0A %5D,%0A %22beta%22: %5B%0A %7B%22label%22:%22Predicted Start Date%22, %22date%22: %22TBC%22%7D%0A... |
fb0993fb10b597884fb37f819743bce9d63accb0 | Update library name to be a timestamp | src/main/webapp/resources/js/apis/galaxy/galaxy.js | src/main/webapp/resources/js/apis/galaxy/galaxy.js | import axios from "axios";
export const getGalaxyClientAuthentication = clientId =>
axios
.get(
`${window.TL.BASE_URL}ajax/galaxy-export/authorized?clientId=${clientId}`
)
.then(({ data }) => data);
export const getGalaxySamples = () =>
axios
.get(`${window.TL.BASE_URL}ajax/galaxy-export/sam... | JavaScript | 0 | @@ -492,58 +492,73 @@
A-$%7B
-Math.random()%0A .toString()%0A .slice(2, 14)%7D%60;
+Date.now()%7D%60;%0A%0A /*%0A This structure is expected by galaxy.%0A */
%0A c
|
2c961257c15956083f9c0d50045515f65e506f5e | Fix test | test/object.js | test/object.js | (function() {
/* globals isUndefined, isObject, isNumber, isString, isPlainObj, extend */
var assert = chai.assert;
describe('Object', function() {
it('isUndefined', function() {
assert.equal(extend({b: 1}, {a: 2}).a, 2);
assert.equal(extend({b: 1}, {a: 2}).b, 1);
});
it('isUndefined', fu... | JavaScript | 0.000004 | @@ -147,34 +147,29 @@
) %7B%0A it('
-isUndefine
+exten
d', function
|
c8f90f804e8559f83dd9ca322c3cf040d5248c21 | fix build | build/utils.js | build/utils.js | const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const config = require('../config')
exports.assetsPath = function assetsPath(_path) {
const assetsSubDirectory = process.env.NODE_ENV === 'production'
? config.docs.assetsSubDirectory
: config.dev.assetsSubDirectory... | JavaScript | 0.000001 | @@ -1276,51 +1276,10 @@
css'
+,
-%5D%0A if (options.postcss) baseLoaders.push(
'pos
@@ -1283,17 +1283,18 @@
postcss'
-)
+ %5D
%0A%0A // h
|
1a6958f3aba84d261648b5f0ef8381e8a4812e69 | Fix syntax errors (oops) | lib/nodeftpd.js | lib/nodeftpd.js | // Third party dependencies
var program = require('commander');
var forever = require('forever');
var path = require('path');
// Get the root application directory
var rootDir = path.normalize(__dirname + '/..');
/**
* Display commander.js help output.
*/
exports.help = function () {
program.help();
};
/**
*... | JavaScript | 0.000016 | @@ -1168,16 +1168,46 @@
if (done
+ && typeof done === 'function'
) done()
|
9367424c2d433e52f8c1c96920ac13d02e38b26d | Add a test to the parser.parse function | test/parser.js | test/parser.js | var assert = require('assert')
var parser = require('../lib/parser.js')
describe('parser', function () {
describe('parse', function () {
it('should return a string', function () {
assert.equal('string', typeof parser.parse(''))
})
it('should return false if there\'s invalid any javascript in the j... | JavaScript | 0.000761 | @@ -533,32 +533,152 @@
ss(value) %7D)'))%0A
+ assert.equal('div %7B%5Cn display: block;%5Cn%7D%5Cntroll', parser.parse('div %7B%5Cn display: block;%5Cn%7D%5Cn css(%5C'troll%5C')'))%0A
%7D)%0A it('s
|
e0587c1185b1e70ec5fece2010ac6ef42e96f85b | Update aliases for CP methods | addon/index.js | addon/index.js | import Ember from 'ember';
import handleDescriptor from './utils/handle-descriptor';
import isDescriptor from './utils/is-descriptor';
import extractValue from './utils/extract-value';
export default function computedDecorator(...params) {
// determine if user called as @computed('blah', 'blah') or @computed
if (... | JavaScript | 0 | @@ -1128,106 +1128,312 @@
var
-empty = macroAlias(Ember.computed.empty);%0Aexport var notEmpty = macroAlias(Ember.computed.notEmpty
+and = macroAlias(Ember.computed.and);%0Aexport var bool = macroAlias(Ember.computed.bool);%0Aexport var collect = macroAlias(Ember.computed.collect);%0Aexport var empty = macroAlias(Emb... |
dbe1d3a64a4816c6d5e43b39a368d3b86bf5cfe5 | fix merge | build/config.js | build/config.js | var fs = require('fs'),
gulp = require('gulp'),
uglify = require('gulp-uglify')
gutil = require('gulp-util'),
time = require('pretty-hrtime');
gulp.Gulp.prototype.__runTask = gulp.Gulp.prototype._runTask;
gulp.Gulp.prototype._runTask = function(task) {
this.currentTask = task;
this.__r... | JavaScript | 0.000001 | @@ -550,48 +550,8 @@
: %5B%0A
- // 'dom',%0A // 'filters',%0A
|
c8d30cb7a6fe1bb5cc34f56fc43feac3fee3722e | fix nodelist sorting | lib/nodelist.js | lib/nodelist.js | define(["sorttable", "virtual-dom", "numeral"], function (SortTable, V, numeral) {
function getUptime(now, d) {
if (d.flags.online && "uptime" in d.statistics)
return Math.round(d.statistics.uptime)
else if (!d.flags.online && "lastseen" in d)
return Math.round(-(now.unix() - d.lastseen.unix()))
... | JavaScript | 0.000001 | @@ -1077,39 +1077,33 @@
eturn a.
-meshlinks - b.meshlinks
+uptime - b.uptime
%0A
|
0838ce47dea4e707029b631c039f4c94cde43471 | Fix lint errors | test/parser.js | test/parser.js | const expect = require('expect');
const fs = require('fs');
var peg = require('pegjs');
var parser = peg.generate(fs.readFileSync('./lib/parser.pegjs').toString());
describe('parser', () => {
it('parses multiple statements', () => {
expect(parser.parse(`
on issues.opened then close;
on pull_requests.... | JavaScript | 0.000396 | @@ -1,20 +1,16 @@
const
-expect
+fs
= requi
@@ -13,22 +13,18 @@
equire('
-expect
+fs
');%0Acons
@@ -21,26 +21,30 @@
fs');%0Aconst
-fs
+expect
= require('
@@ -47,17 +47,23 @@
re('
-fs');%0Avar
+expect');%0Aconst
peg
@@ -87,11 +87,14 @@
');%0A
-var
+%0Aconst
par
@@ -363,17 +363,16 @@
oEqual(%7B
-'
behav... |
6e9bce3eb1cc15f591cc4e9d1a1efc96fdd60ded | Replace jQuery with native features inside the mixin | addon/mixin.js | addon/mixin.js | import Mixin from '@ember/object/mixin';
import { computed } from '@ember/object';
import $ from 'jquery';
const bound = function(fnName) {
return computed(fnName, function() {
let fn = this.get(fnName);
if (fn) { // https://github.com/zeppelin/ember-click-outside/issues/1
return fn.bind(this);
}
... | JavaScript | 0.000001 | @@ -79,32 +79,8 @@
ct';
-%0Aimport $ from 'jquery';
%0A%0Aco
@@ -622,39 +622,44 @@
%7D%0A%0A
-$('body').css('
+document.body.style.
cursor
-',
+ =
'pointe
@@ -660,17 +660,16 @@
pointer'
-)
;%0A %7D,%0A%0A
@@ -788,35 +788,39 @@
-$('body').css('
+document.body.style.
cursor
-',
+ =
''
-)
;%0A
@@... |
2cf4b14b585cab0410b799ef2f450780caab5d4a | simplify expression | src/zbase/webui/widgets/z-codeeditor/z-codeeditor.js | src/zbase/webui/widgets/z-codeeditor/z-codeeditor.js | var CodeEditorComponent = function() {
var initCodeMirror = function(textarea) {
var codemirror_opts = {
autofocus: true,
lineNumbers: true,
lineWrapping: true
};
if (this.hasAttribute("data-readonly")) {
codemirror_opts.readOnly = true;
codemirror_opts.autofocus = false;
... | JavaScript | 0.999999 | @@ -1186,16 +1186,17 @@
= 13 &&
+(
e.ctrlKe
@@ -1203,27 +1203,8 @@
y %7C%7C
- e.keyCode == 13 &&
e.m
@@ -1210,16 +1210,17 @@
metaKey)
+)
%7B%0A
|
299da7c36be9afc4bdccff6d42534ef85ec5548d | DELETE test for status 404 for invalid pic id passing | test/1-pic-router-test.js | test/1-pic-router-test.js | 'use strict';
require('./lib/test-env.js');
const awsMocks = require('./lib/aws-mocks');
const expect = require('chai').expect;
const request = require('superagent');
const Promise = require('bluebird');
const mongoose = require('mongoose');
const debug = require('debug')('ht: pic-router-test');
const serverCtrl = ... | JavaScript | 0 | @@ -3370,32 +3370,33 @@
D', function()%7B%0A
+%0A
describe('wi
@@ -3879,28 +3879,501 @@
%7D);%0A %7D);
+%0A%0A describe('with invalid picID', function()%7B%0A before(done =%3E mockPic.call(this, done));%0A it('should return status 404', (done) =%3E %7B%0A request.delete(%60$%7Burl%7D/... |
6090e556d56aac18a5a5bf1b7a655575bb383a46 | reset suggestion column when index column is selected | dataprep-webapp/src/components/datagrid/services/datagrid-external-service.js | dataprep-webapp/src/components/datagrid/services/datagrid-external-service.js | (function() {
'use strict';
/**
* @ngdoc service
* @name data-prep.datagrid.service:DatagridExternalService
* @description Datagrid private service that manage the selected column action to the outer world (non dratagrid)
* @requires data-prep.services.statistics.service:StatisticsService
... | JavaScript | 0 | @@ -2546,32 +2546,211 @@
%7D, 200);%0A
+ %7D else %7B%0A $timeout(function() %7B%0A SuggestionService.reset();%0A StatisticsService.resetCharts();%0A %7D);%0A
%7D%0A
|
05c8c411ad6243d04991bc771f73adf9a6965908 | Remove the injection of `Stream` into `requestService` | examples/threaditjs/app.js | examples/threaditjs/app.js | T.time("Setup");
var Stream = require("../../util/stream")
var requestService = require("../../request/request")(window, Stream)
var request = requestService.xhr
var m = require("../../render/hyperscript")
var trust = require("../../render/trust")
var renderer = require("../../render/render")(window)
var router = requ... | JavaScript | 0 | @@ -117,16 +117,8 @@
ndow
-, Stream
)%0Ava
|
da0008fc6490d20a0e7b98cea3aa4b143928737c | fix failing test to build passes | test/plugin.js | test/plugin.js | // Load modules
var Code = require('code');
var Bassmaster = require('../');
var Lab = require('lab');
var Hapi = require('hapi');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.describe;
var it = lab.it;
var expect = Code.expect;
describe('b... | JavaScript | 0 | @@ -1617,32 +1617,61 @@
Hapi.Server();%0A
+ server.connection();%0A
var mock
@@ -1995,22 +1995,24 @@
ister(%7B
-plugin
+register
: Bassma
@@ -2107,16 +2107,18 @@
ot.exist
+()
;%0A
@@ -2141,16 +2141,31 @@
server.
+connections%5B0%5D.
table()%5B
|
249b18c54322b9620acce796d9f8c6dad80cda33 | Fix test | test/accept/test-hello.js | test/accept/test-hello.js | //acceptance tests
var request = require("request");
var util = require('util');
var assert = require('assert');
var baseUrl = "http://127.0.0.1:8001/";
/*
* A very simple acceptance test. This test requires the server to be running (this is setup via the 'grunt accept' task)
*/
exports.it_should_test_hello_in_serv... | JavaScript | 0.000004 | @@ -361,20 +361,15 @@
+ '
-?hello=world
+beacons
', f
@@ -639,26 +639,35 @@
data
-.msg, 'Hello world
+%5B%221%22%5D.label, 'iBeacon Label
');%0A
@@ -695,8 +695,9 @@
%7D);%0A%7D;
+%0A
|
2dbf8df7ae64c20afeacc76dd8aa6e56bb8479db | Fix test that checks for correct dustjs-core path | test/plugin.js | test/plugin.js | var dust = require('dustjs-linkedin');
var fs = require('fs');
var config = {
modules: {
nameCleaner: function(path) {
return path.replace(/^.*\//, ''); // remove all leading directories
}
}
};
describe('Plugin', function() {
var plugin;
beforeEach(function() {
plugin = new Plugin(config);
... | JavaScript | 0 | @@ -1003,24 +1003,25 @@
n.include())
+)
.to.be.true)
@@ -1019,17 +1019,16 @@
.be.true
-)
;%0A %7D);%0A
|
949546ad4bf4b2a9fbea695abd603fecf5bf6999 | Include badge parents in response. | app/routes/badges.js | app/routes/badges.js | const safeExtend = require('../lib/safe-extend')
const Badges = require('../models/badge');
const imageHelper = require('../lib/image-helper')
const errorHelper = require('../lib/error-helper')
const putBadge = imageHelper.putModel(Badges)
const dbErrorHandler = errorHelper.makeDbHandler('badge')
exports = module.ex... | JavaScript | 0 | @@ -4321,16 +4321,199 @@
archived
-%0A %7D;
+,%0A system: maybeObject(row.system),%0A issuer: maybeObject(row.issuer),%0A program: maybeObject(row.program),%0A %7D;%0A%7D%0A%0Afunction maybeObject(obj) %7B%0A return (obj && obj.id) ? obj : null
%0A%7D%0A
|
30971171112ed52a6a46f54bf572a820e708a2a1 | Remove unnecessary events from the content script | ext/data/content-script.js | ext/data/content-script.js | /* globals cloneInto, createObjectIn, exportFunction, unsafeWindow */
"use strict";
console.info("insidePage");
self.port.on("registerResponse", function(id, response) {
var value = cloneInto({id: id, response: response}, document.defaultView);
var event = new CustomEvent("u2f-register-response", { bubbles: true,... | JavaScript | 0.000004 | @@ -86,577 +86,66 @@
cons
-ole.info(%22insidePage%22);%0A%0Aself.port.on(%22registerResponse%22, function(id, response) %7B%0A var value = cloneInto(%7Bid: id, response: response%7D, document.defaultView);%0A var event = new CustomEvent(%22u2f-register-response%22, %7B bubbles: true, detail: value%7D);%0A document.... |
db20b379f6915cad46ac0fd1a47afde2dc7b4b04 | use source in link component | modules/link-factory.js | modules/link-factory.js | import {element} from 'deku'
// Use of a factory rather than source as having nested routers
// are not excluded
export default linkFactory
function linkFactory(router) {
let listeners = {}
let propTypes = {
label: {type: 'string', optional: false},
button: {type: 'boolean... | JavaScript | 0 | @@ -167,117 +167,51 @@
uter
-) %7B%0A let listeners = %7B%7D%0A%0A let propTypes = %7B%0A label: %7Btype: 'string', optional: false%7D,
+, useSource = true) %7B%0A let propTypes = %7B
%0A
@@ -416,21 +416,21 @@
iveClass
-Name:
+:
%7Btype:
@@ -528,32 +528,102 @@
nction'%7D%0A %7... |
514bed1111bf2d1ed0e6bf50480a9c0b2f074070 | Edit `resume` test | test/resume.js | test/resume.js | const lolex = require('lolex')
const test = require('tape')
const malarkey = require('../')
test('resumes the stopped sequence', function (t) {
t.plan(5)
const clock = lolex.install()
const results = []
function callback (text) {
results.push(text)
}
const m = malarkey(callback)
.type('foo')
t.fa... | JavaScript | 0.000012 | @@ -357,25 +357,24 @@
esults, %5B%5D)%0A
-%0A
m.stop()%0A
@@ -371,16 +371,35 @@
m.stop()
+%0A%0A clock.tick(150)
%0A t.tru
@@ -444,17 +444,16 @@
ts, %5B%5D)%0A
-%0A
m.resu
@@ -457,16 +457,17 @@
esume()%0A
+%0A
clock.
|
1e01aafe520b8cd30c3279fac933bc3726b66f30 | disable no-parameter-reassign | lib/tslint.config.js | lib/tslint.config.js | /* eslint-disable max-len */
module.exports = {
extends: 'tslint:all',
rules: {
// Personal configuration from eslint
'max-line-length': [true, 100],
'semicolon': [true, 'never'],
'trailing-comma': [true, {multiline: 'always', singleline: 'never'}],
'variable-name': [true, 'ban-keywords', 'check... | JavaScript | 0.000004 | @@ -1069,24 +1069,64 @@
le': false,%0A
+ 'no-parameter-reassignment': false,%0A
'arrow-p
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.