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
ed3d077efcbf483a2962a8cfd1c272f709a7a1e6
Fix createHrefForState with custom createURL
packages/instantsearch-react/src/InstantSearch.js
packages/instantsearch-react/src/InstantSearch.js
import {PropTypes, Component, Children} from 'react'; import {createHistory} from 'history'; import createHistoryStateManager from './createHistoryStateManager'; import createInstantSearchManager from './createInstantSearchManager'; function formatProps(props) { return props.map(prop => `\`${prop}\``).join(', '); }...
JavaScript
0
@@ -2523,35 +2523,25 @@ this.h -istoryState +s Manager = cr @@ -2767,35 +2767,25 @@ ate = this.h -istoryState +s Manager.getS @@ -3420,35 +3420,25 @@ this.h -istoryState +s Manager.unli @@ -3571,33 +3571,183 @@ tate =%3E -this.historyState +%7B%0A if (this.props.createURL) %7B%0A return this...
6702275c0835d5d861d12cfcbef47d40f4f92e17
update expected error case handling
packages/mwp-api-proxy-plugin/src/handler.test.js
packages/mwp-api-proxy-plugin/src/handler.test.js
import rison from 'rison'; import { mockQuery, MOCK_AUTH_HEADER, MOCK_RENDERPROPS, } from 'meetup-web-mocks/lib/app'; import { getServer } from 'mwp-test-utils'; import { parseRequestQueries } from './handler'; describe('parseRequestQueries', () => { const headers = { authorization: MOCK_AUTH_HEADER }; const qu...
JavaScript
0.000007
@@ -2067,13 +2067,14 @@ it(' -throw +return s an @@ -2388,21 +2388,16 @@ %09expect( -() =%3E %0A%09%09%09pars @@ -2465,14 +2465,26 @@ ).to -Throw( +BeInstanceOf(Error );%0A%09
d6241eb8d505c3f8995b633fb482bb6729280f79
update SwitchOnOff after clicking it, so that actual state is displayed (see also https://github.com/domoticz/domoticz/issues/4035)
src/widgets/SwitchOnOff.js
src/widgets/SwitchOnOff.js
import React, { Component } from 'react'; import MqttClientSingleton from '../util/MqttClientSingleton' import './SwitchOnOff.css'; class SwitchOnOff extends Component { constructor(props) { super(props); this.mqtt = new MqttClientSingleton(); } getPushCommand = () => { if (this.props.pushOn) { ...
JavaScript
0
@@ -705,16 +705,93 @@ ssage);%0A + this.mqtt.publish(%7B'command': 'getdeviceinfo', 'idx': this.props.idx %7D);%0A %7D%0A%0A g
24732f65d1748f8ca4b47a3105a707cb3f2e5356
fix getRefetchMetadata to handle both commonjs and es … (#2875)
packages/relay-experimental/getRefetchMetadata.js
packages/relay-experimental/getRefetchMetadata.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+relay * @flow strict-local * @format */ 'use strict'; const invariant = require('invariant'); import type { ...
JavaScript
0.000034
@@ -1332,34 +1332,219 @@ %0A%0A -const refetchableRequest = +// handle both commonjs and es modules%0A const refetchableRequest:%0A %7C ConcreteRequest%0A %7C string = (refetchMetadata: $FlowFixMe).operation.default%0A ? (refetchMetadata: $FlowFixMe).operation.default%0A : ref
124f0a95798d7425bd0a91a969fef36c0c0f8c11
Add sigterm
packages/nylas-sync/sync-process-manager.js
packages/nylas-sync/sync-process-manager.js
const os = require('os'); const SyncWorker = require('./sync-worker'); const {DatabaseConnector, PubsubConnector, SchedulerUtils} = require(`nylas-core`) const IDENTITY = `${os.hostname()}-${process.pid}`; const { ACCOUNTS_FOR, ACCOUNTS_UNCLAIMED, ACCOUNTS_CLAIMED_PREFIX, HEARTBEAT_FOR, HEARTBEAT_EXPIRES, ...
JavaScript
0.999967
@@ -1949,16 +1949,66 @@ Int());%0A + process.on('SIGTERM', () =%3E this.onSigInt());%0A %7D%0A%0A u
bf16c3188c444a57810c19f680ed4be75f49b4f9
Fix webapi
actions/store_variable_from_webapi_MOD.js
actions/store_variable_from_webapi_MOD.js
module.exports = { //--------------------------------------------------------------------- // Created by General Wrex // Add URL to json object, // add path to the object you want from the json // set your variable type and name // example URL: https://api.github.com/repos/HellionCommunity/HellionExtendedServer/r...
JavaScript
0.000001
@@ -5340,32 +5340,66 @@ arName, cache);%0A +%09%09%09%09%09%09this.callNextAction(cache);%0A %09%09%09%09%09%7D else if ( @@ -5587,32 +5587,66 @@ arName, cache);%0A +%09%09%09%09%09%09this.callNextAction(cache);%0A %09%09%09%09%09%7D else %7B%0A%09%09
c64850b18a9108e9ff8882ce95fbb5985bf6a8ad
Remove changes
scripts/cudasign.js
scripts/cudasign.js
module.exports = function(robot) { var getBasicToken = function(env) { if(env === 'eval') { return 'MGZjY2RiYzczNTgxY2EwZjliZjhjMzc5ZTZhOTY4MTM6MzcxOWExMjRiY2ZjMDNjNTM0ZDRmNWMwNWI1YTE5NmI='; } else { return new Buffer(process.env.CS_CLIENT_ID + ':' + process.env.CS_CLIENT_SECRET, 'base64').toString('utf8'); ...
JavaScript
0.000002
@@ -32,28 +32,50 @@ ) %7B%0A -%09var getB + robot.respond(/get me a b asic -T + t oken - = +/i, fun @@ -84,400 +84,129 @@ ion( -env +res ) %7B%0A -%09%09if(env === 'eval') %7B%0A%09%09%09return 'MGZjY2RiYzczNTgxY2EwZjliZjhjMzc5ZTZhOTY4MTM6MzcxOWExMjRiY2ZjMDNjNTM0ZDRmNWMwNWI1YTE5NmI=';%0A%09%09%7D else %7B%0A%...
cfca3408e64e4eaf9fa084bd2fa7fb3291b954f8
Refactor JS
scripts/main.js
scripts/main.js
// start loading sounds without waiting for any event var sounds = (function(){ var soundNames = ["tick1", "tock1", "tick2", "tock2"]; function makeNamedSounds(names, nameToUrlTransformer) { var sounds = {}; names.forEach(function(name) { var url = nameToUrlTransformer(name); sounds[name] = new Audio(url); ...
JavaScript
0
@@ -439,16 +439,296 @@ %0A%7D)();%0A%0A +function playTickSound() %7B%0A%09playSound(_.sample(%5B%22tick1%22, %22tick2%22%5D));%0A%7D%0Afunction playTockSound() %7B%0A%09playSound(_.sample(%5B%22tock1%22, %22tock2%22%5D));%0A%7D%0Afunction playSound(name) %7B%0A%09sounds%5Bname%5D.play();%0A%7D%0A%0Afunction trueWithP...
ba401e99566fc342ba6dfd7bf3ca435f252497f0
Add image upload animation
static/script/user/view.js
static/script/user/view.js
var UserView = { showUploadedImage: function( source ) { $( ".avatar img" ).remove(); $image = $( '<img src="' + source + '" alt="Profile Picture" />' ); $image.load( function() { UserView.fixImageSize( $image ); } ); $( ".avatar" ).append( $image ); }, cr...
JavaScript
0.000001
@@ -10,16 +10,100 @@ iew = %7B%0A + uploading: false,%0A UploadLinkOpacityMax: 0.8,%0A UploadLinkOpacityMin: 0.5,%0A show @@ -134,24 +134,24 @@ source ) %7B%0A - $( %22 @@ -781,79 +781,8 @@ t(); -%0A console.log( 'Width: ' + imgWidth + ' height: ' + imgHeight ); %0A%0A @@ -1194,24 +...
3c22a675814e6c6e4b3f50ba05d80bcaa2613ddd
fix BrowserWindow
src/containers/subscription/SubscriptionFormScreen.js
src/containers/subscription/SubscriptionFormScreen.js
import React, { Component } from 'react'; import { BrowserWindow, getCurrentWindow } from '@electron/remote'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import PaymentStore from '../../stores/PaymentStore'; import SubscriptionForm from '../../components/subscription/Subscriptio...
JavaScript
0.000001
@@ -1195,24 +1195,91 @@ wTag: true,%0A + enableRemoteModule: true,%0A contextIsolation: false,%0A %7D,%0A
568a43c4819d2fae783a0842a78eb8b73b2f9156
Add tracking to download button click.
scripts/homepage.js
scripts/homepage.js
(function () { var payment_minimum = 100; // Let's make the minimum $1.00 for now var previous_amount = 'amount-ten'; var current_amount = 'amount-ten'; var amountClick = function() { // Remove existing checks. $('.target-amount').removeClass('checked'); // Add current check. ...
JavaScript
0
@@ -1460,32 +1460,161 @@ ayment_amount);%0A + if (window.ga) %7B%0A ga('send', 'event', 'Freya Beta Download (Payment)', 'Homepage', payment_amount);%0A %7D%0A if (paym
8d134ba89eb509c0c2db1ad7781562f9210d291c
disable babel cache
static/transforms/index.js
static/transforms/index.js
/** * Copyright 2018-present Facebook. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @format */ const generate = require('@babel/generator').default; const babylon = require('@babel/parser'); const babel = require('@babel/core'); cons...
JavaScript
0
@@ -2687,16 +2687,274 @@ nsform,%0A + // Disable caching of babel transforms all together. We haven't found a good%0A // way to cache our transforms, as they rely on side effects like env vars or%0A // the existence of folders in the file system.%0A getCacheKey: () =%3E Math.random().toString(36),%0A proces
66d58c6540fd32fe60991e2a93cf6cfc61bbcc2f
Fix typo in functions__debounce specs (closes #449)
common.blocks/functions/__debounce/functions__debounce.spec.js
common.blocks/functions/__debounce/functions__debounce.spec.js
modules.define('spec', ['functions__debounce'], function(provide, throttle) { describe('functions__debounce', function() { it('should properly debounce given function', function(done) { var res = [], debouncedFn = throttle( function(arg) { res.push(arg); ...
JavaScript
0.000001
@@ -59,23 +59,23 @@ rovide, -throttl +debounc e) %7B%0A%0Ade @@ -224,39 +224,39 @@ debouncedFn = -throttl +debounc e(%0A @@ -884,39 +884,39 @@ debouncedFn = -throttl +debounc e(%0A @@ -1563,15 +1563,15 @@ n = -throttl +debounc e(%0A
4044ce86184712122f4e301d84566dd0b67716cf
Increase delay
cd/src/change-set-create/index.js
cd/src/change-set-create/index.js
/** * @typedef { import('aws-lambda').SNSEvent } SNSEvent */ const AWS = require('aws-sdk'); const AdmZip = require('adm-zip'); const fs = require('fs'); const os = require('os'); const path = require('path'); const cloudformation = new AWS.CloudFormation({ apiVersion: '2010-05-15' }); const codepipeline = new AWS....
JavaScript
0.000002
@@ -5649,17 +5649,17 @@ esolve, -1 +2 0000));%0A
765774f096294f11a99bd02c0a72684f30664f6e
Format global test param.
web/src/scripts/service/CartDataService.js
web/src/scripts/service/CartDataService.js
'use strict'; /* global _, PouchDB, moment, CartUtility, CartConst */ module.exports = function($http, $q) { var db = new PouchDB(CartConst.DB_NAME); //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- //-* MODELS //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*...
JavaScript
0
@@ -428,17 +428,30 @@ %0A * -T +Structure of t emporari @@ -5650,182 +5650,35 @@ E re -move later%0A global.db = db;%0A global.dbFlush = dbFlush;%0A global.dbSave = dbSave;%0A global.postSaveTmp = postSaveTmp;%0A global.postGetTmp = postGetTmp;%0A%0A return +format later%0A var apis = %7B...
782d2f784cad224a35b5dad12f1f4fa6d4277958
Update index.js
imports/startup/client/index.js
imports/startup/client/index.js
import { Meteor } from 'meteor/meteor'; import React from 'react'; import { render } from 'react-dom'; import App from '../../ui/layouts/App'; Meteor.startup(() => { render(<App />, document.getElementById('render-target')); }); if (module.hot) { module.hot.accept(); }
JavaScript
0.000002
@@ -230,48 +230,4 @@ %7D);%0A -%0Aif (module.hot) %7B%0A module.hot.accept();%0A%7D%0A
54e98e62b25cb24389ae1ac8e316e1a41d113184
Update the flat-json to v1.2.0
src/extensions/flat-json/bootstrap-table-flat-json.js
src/extensions/flat-json/bootstrap-table-flat-json.js
/** * @author: Dennis Hernández * @webSite: http://djhvscf.github.io/Blog * @version: v1.1.0 */ (function ($) { 'use strict'; var flatJSON = function (el, data) { if (el.options.flat) { el.options.data = sd.flatHelper(data); } if (el.options.sidePagination === 'server'...
JavaScript
0.999428
@@ -85,17 +85,17 @@ ion: v1. -1 +2 .0%0A */%0A%0A @@ -134,252 +134,8 @@ ';%0A%0A - var flatJSON = function (el, data) %7B%0A if (el.options.flat) %7B%0A el.options.data = sd.flatHelper(data);%0A %7D%0A if (el.options.sidePagination === 'server') %7B%0A el.data = el.optio...
924eb271fd948a3a7be6736d4b118334f0ab8d31
add Chrome for browser testing.
src/main/webapp/inc/js/app/tests/karma.config.js
src/main/webapp/inc/js/app/tests/karma.config.js
// Karma configuration // Generated on Wed Dec 10 2014 11:44:22 GMT+0100 (CET) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
JavaScript
0
@@ -1811,16 +1811,26 @@ Firefox' +, 'Chrome' %5D,%0A%0A%0A
1dd5cc9d39a3b22a35a76d39d382667f4102dff3
Fix ComponentsView tests
test/specs/dom_components/view/ComponentsView.js
test/specs/dom_components/view/ComponentsView.js
import DomComponents from 'dom_components'; import ComponentsView from 'dom_components/view/ComponentsView'; import Components from 'dom_components/model/Components'; import Editor from 'editor/model/Editor'; describe('ComponentsView', () => { var model; var view; var dcomp; var compOpts; const em = new Edit...
JavaScript
0.000001
@@ -588,24 +588,46 @@ mponentTypes +,%0A config: %7B em %7D %0A %7D);%0A
2a5a51a83c67a151958a132168364da1a51e7cd8
Fix failing test
test/unit/directives/mwlCollapseFallback.spec.js
test/unit/directives/mwlCollapseFallback.spec.js
'use strict'; var angular = require('angular'); describe('mwlCollapseFallback directive', function() { var element, scope, $rootScope, template = '<div mwl-collapse-fallback="isCollapsed"></div>'; function prepareScope(vm) { //These variables MUST be set as a minimum for the calendar to work ...
JavaScript
0.000032
@@ -1058,17 +1058,20 @@ .value(' -c +uibC ollapseD
d8b0259791bab12ab6ef5b9130dbb34b18e4b4e9
set target to the link element
src/mw-ui-components/directives/mw_arrow_link.js
src/mw-ui-components/directives/mw_arrow_link.js
angular.module('mwUI.UiComponents') //Todo rename .directive('mwLinkShow', function () { return { restrict: 'A', scope: { link: '@mwLinkShow', linkTarget: '@?' }, templateUrl: 'uikit/mw-ui-components/directives/templates/mw_arrow_link.html', link: function (scope, ...
JavaScript
0.000001
@@ -315,17 +315,16 @@ cope, el -m ) %7B%0A @@ -363,17 +363,26 @@ el -m +.find('a') .attr('t
054c18687eb1c61599fd88675751e9538a66f019
Add TODO
tasks/check-for-missing.js
tasks/check-for-missing.js
const gulp = require('gulp'); function checkForUnusedTask(options) { gulp.task('check-for-unused', async done => { done(); }); } module.exports = checkForUnusedTask;
JavaScript
0.000002
@@ -90,14 +90,15 @@ for- -unused +missing ', a @@ -112,16 +112,28 @@ ne =%3E %7B%0A + // TODO%0A done
95d72929bd29f9af674e11cffdac61125fb50396
Make TASK argument optional, and add in the synchronous flag.
lib/node_modules/sake/options.js
lib/node_modules/sake/options.js
var nomnom = require("nomnom"), FS = require("fs"), Path = require("path"), sutil = require("sake/util"), pkgFile = Path.join(__dirname, "..", "..", "..", "package.json"), pkgJson = FS.readFileSync(pkgFile, "utf8"), pkgInfo = JSON.parse(pkgJson), opts = { task: { ...
JavaScript
0
@@ -330,12 +330,14 @@ g: %22 +%5B TASK +%5D %22,%0A @@ -995,32 +995,238 @@ e.%22%0A %7D,%0A%0A + synchronous: %7B%0A string: %22-S, -synchronous%22,%0A flag: true,%0A default: false,%0A help: %22Make all task resolution 'synchronous' by default.%22%0A ...
894da7fbdfe05c17a352381ac8c9cecf16107d73
Write a test against pack method throwing errors when converting a large string
test/atomic/string.spec.js
test/atomic/string.spec.js
import { expect } from 'chai' import AtomicString from '../../src/atomic/string' /** @test {AtomicString} */ describe('AtomicString', () => { const bitArrayHello = [104, 97, 108, 108, 111, 0, 0, 0] let atomic before(() => { atomic = new AtomicString('hallo') }) /** @test {AtomicString#unpack} */ des...
JavaScript
0.000113
@@ -76,16 +76,155 @@ tring'%0A%0A +function generateLongString(length = 500000) %7B%0A let str = ''%0A%0A for (let i = 0; i %3C length; i += 1) %7B%0A str += 'a'%0A %7D%0A%0A return str%0A%7D%0A%0A /** @tes @@ -334,16 +334,17 @@ , 0, 0%5D%0A +%0A let at @@ -1199,21 +1199,358 @@ )%0A %7D) +%0A%0A ...
053f30ed4ddbeeddec4950bc464939b824e06fbc
Fix jshint errors
test/canvas-motion-test.js
test/canvas-motion-test.js
const chai = require('chai'); const assert = chai.assert; const CanvasMotion = require('../lib/canvas-motion'); const Boat = require('../lib/boat'); const Fish = require('../lib/fish').Fish; const canvasWidth = 750; const canvasHeight = 500; describe('CanvasMotion', function() { var canvasMotion = ...
JavaScript
0.000318
@@ -2035,16 +2035,17 @@ = fish.x +; %0A%0A @@ -2073,32 +2073,33 @@ initialPosition) +; %0A canvasMot @@ -2333,32 +2333,33 @@ initialPosition) +; %0A canvasMot @@ -2597,32 +2597,33 @@ initialPosition) +; %0A canvasMot @@ -3052,16 +3052,17 @@ = fish.x +; %0A c @@ -3080,24 +3080,25 @@ ...
2216267155ededb298da6cb72ce8d229c2674e95
improve assertion against noise
test/clients/heap-dumps.js
test/clients/heap-dumps.js
// Copyright (c) 2015 Uber Technologies, Inc. // // 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, merge...
JavaScript
0.000007
@@ -1677,64 +1677,80 @@ ert. -equal +ok (logs. -length, 1);%0A assert.equal(logs%5B0%5D.msg, +some(function findExpected(log) %7B%0A return log.msg === 'wr @@ -1768,18 +1768,19 @@ napshot' -); + && %0A @@ -1784,28 +1784,22 @@ -assert.equal(logs%5B0%5D + log .met @@ -1804,...
dc8b6338edb2b10fa89a7ce8d03cf85ff1340c1b
Modify myApp.run in ionic-hello-world app
ionic-hello-world/www/js/app.js
ionic-hello-world/www/js/app.js
var myApp = angular.module('myApp', [ 'ionic' ]); myApp.run(function($ionicPlatform) { });
JavaScript
0.999949
@@ -85,8 +85,277 @@ ) %7B%0A + $ionicPlatform.ready(function() %7B%0A if (window.cordova && window.cordova.plugins.Keyboard) %7B%0A cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);%0A %7D%0A if (window.StatusBar) %7B%0A StatusBar.styleDefault();%0A %7D%0A ...
d85e64930b70a527f686d0dbffe063002b820883
test spec updated
test/components/Counter.js
test/components/Counter.js
import { expect } from 'chai'; import React from 'react'; import { shallow } from 'enzyme'; import Counter from 'components/Counter'; describe('<Counter />', () => { it('should render 2 buttons', () => { const wrapper = shallow(<Counter />); expect(wrapper.find('button')).to.have.length(2); }); });
JavaScript
0
@@ -294,17 +294,17 @@ .length( -2 +3 );%0A %7D);
0bab288e4bf4dc9aa300f3c69d5a4bc1ad86102f
Fix test/core-introspection.js
test/core-introspection.js
test/core-introspection.js
var b = require('../core') , ffi = require('node-ffi') , className = process.argv[2] || 'NSMutableArray' var c = b.objc_getClass(className); if (c.isNull()) { console.error('Could not load Class: %s', className); process.exit(1); } var name = b.class_getName(c); console.error('class_getName: %s', name); var...
JavaScript
0.000012
@@ -716,17 +716,19 @@ ing()%0A -b +ffi .free(r) @@ -911,17 +911,19 @@ ();%0A -b +ffi .free(a) @@ -1052,17 +1052,19 @@ ter);%0A%7D%0A -b +ffi .free(me
b2e20a572a796b7cc97a428ebe42e7e3705b29c2
Update GraphQL tests to use latest Apollo mocking API
src/server/modules/counter/tests/graphql.test.js
src/server/modules/counter/tests/graphql.test.js
import chai from "chai"; import chaiAsPromised from "chai-as-promised"; import { mockServer } from "graphql-tools"; import AMOUNT_QUERY from '!raw-loader!client/modules/counter/graphql/count_get.graphql'; import ADD_COUNT_MUTATION from "!raw-loader!client/modules/counter/graphql/count_add_mutation.graphql"; import roo...
JavaScript
0
@@ -74,26 +74,97 @@ mport %7B -mockServer +graphql %7D from %22graphql%22;%0Aimport %7B makeExecutableSchema, addMockFunctionsToSchema %7D from @@ -439,17 +439,24 @@ %0Aimport -s +counterS chema fr @@ -590,50 +590,11 @@ mock -edServer = mockServer(rootSchema + schema, +s = %7B%0A @@ -733,20 +733,144 @@ %7D...
f2d0bceed8655bf9f01ab9e33ab600353aa2e3a4
add progressbar
src/javascript/astra_z_progressbar.js
src/javascript/astra_z_progressbar.js
JavaScript
0.000001
@@ -0,0 +1,757 @@ +var ProgressBar = Class.create(Widget, %7B%0A setup: function() %7B%0A this.setting = %7B%0A width : %2260%25%22, %0A step : 10, %0A events : %7B%7D%0A %7D;%0A %7D,%0A create: function($super) %7B%0A var html = $super(ProgressBar);%0A this.bar = html.element;%0A %0...
17afc19a33bbc20a6aae5c7f7e37a7be528a11e8
Fix `undefined` bug in Open All Notifications feature
source/features/open-all-notifications.js
source/features/open-all-notifications.js
import {h} from 'dom-chef'; import select from 'select-dom'; import delegate from 'delegate'; import {groupButtons} from '../libs/utils'; import {isNotifications} from '../libs/page-detect'; function openNotifications() { const urls = select.all('.unread .js-notification-target').map(el => el.href); browser.runtime....
JavaScript
0
@@ -1069,16 +1069,22 @@ rm_box') + %7C%7C '' );%0A%0A%09if
cca8baa30b2e4076e0bd76a1d3be28098c2b0585
Use sid which contains the stateID rather than id which contains the projectID.
website/app/application/core/projects/project/samples/create.js
website/app/application/core/projects/project/samples/create.js
Application.Controllers.controller('projectSamplesCreate', ["$scope", "mcapi", "model.projects", "projectState", "$stateParams", "pubsub", "recent", "project", projectSamplesCreate]); function projectSamplesCreate($scope, mcapi, Projects, projectSt...
JavaScript
0
@@ -390,16 +390,17 @@ eParams. +s id;%0A%0A
72270c3df3f9dd0ab830b7cef12fff8d5c800638
Fix typo.
client/script/model/NetworkSet.js
client/script/model/NetworkSet.js
/** * @license MIT License * * Copyright (c) 2015 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> * Copyright (c) 2015 Yusuke Suzuki <utatane.tea@gmail.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 ...
JavaScript
0.001604
@@ -4387,18 +4387,16 @@ (channel -Id .isSome)
256a98dcf79e063601a7c32de0c45de5ff13224b
Add hexagons to the CTA section
src/views/enterprise/components/enterpriseCta.js
src/views/enterprise/components/enterpriseCta.js
import {connect} from 'zefir/utils' import Button from '../../../components/ui/button' import Hexagon from '../../../components/ui/hexagon' import {MatchAsGuest} from '../../../components/ui/router' const EnterpriseCTA = ({toggleBookMeetingModal}) => ( <MatchAsGuest component={() => ( <div className='Section u-w...
JavaScript
0.000005
@@ -697,11 +697,10 @@ th=%7B -100 +36 %7D fi @@ -727,644 +727,106 @@ n=%7B%7B -top: '-80px', left: '-60px'%7D%7D opacity='.25' /%3E%0A %3CHexagon width=%7B24%7D fill='#60e0ae' position=%7B%7Btop: '0px', left: '150px'%7D%7D /%3E%0A %3CHexagon width=%7B42%7D fill='#b4f1d9' position=%7B%7Btop +bottom : '...
ebab256d38f9919ed19c9ec9df2141a4e31c7c04
clean formatMessage usage (#9059)
packages/react-dev-utils/formatWebpackMessages.js
packages/react-dev-utils/formatWebpackMessages.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const chalk = require('chalk'); const friendlySyntaxErrorLabel = 'Syntax error:'; function isLikelyASyntaxError(message)...
JavaScript
0
@@ -3662,187 +3662,82 @@ ap(f -unction (message) %7B%0A return formatMessage(message, true);%0A %7D);%0A const formattedWarnings = json.warnings.map(function (message) %7B%0A return formatMessage(message, false);%0A %7D +ormatMessage);%0A const formattedWarnings = json.warnings.map(formatMessage );%0A
fe965fc89463897b4f397aa12a61357d52f228a9
Add __CACHE__ as a supported module tag
packages/react-server-gulp-module-tagger/index.js
packages/react-server-gulp-module-tagger/index.js
var replace = require("gulp-replace") , forEach = require("gulp-foreach") // This pattern matches either of these: // - "__LOGGER__" // - "__LOGGER__({ /* options */ })" var isWindows = ('win32' === process.platform) , REPLACE_TOKEN = /(?:__LOGGER__|__CHANNEL__)(?:\(\s*(\{[\s\S]*?\})\s*\))?/g , THIS_MODULE ...
JavaScript
0
@@ -263,16 +263,26 @@ HANNEL__ +%7C__CACHE__ )(?:%5C(%5Cs
0bba93daa38a125a517fd6643d93f97d265799e7
Fix bookshelf search query builder strips unicode/cyrillic characters
packages/strapi/lib/core-api/queries/bookshelf.js
packages/strapi/lib/core-api/queries/bookshelf.js
const _ = require('lodash'); const { convertRestQueryParams, buildQuery } = require('strapi-utils'); module.exports = ({ model, modelKey }) => { return { find(params, populate) { const withRelated = populate || model.associations .filter(ast => ast.autoPopulate !== false) ...
JavaScript
0.000005
@@ -3768,11 +3768,35 @@ ace( -/%5B%5E +%0A /%5B%5E%5Cu0400-%5Cu04FF%5Cu002B a-zA @@ -3809,19 +3809,26 @@ -%5Cs%5D+/g, - '' +%0A ''%0A );%0A%0A co
4c488573d3b17cceea7458b00c1a36191f5b5ba3
删除main.js无用代码
shcx/src/main/resources/static/js/main.js
shcx/src/main/resources/static/js/main.js
$(function() { $(".delete-link").click(function() { var href = '/api/v1' + $(this).attr('href'); $('#alert-modal #confirm').click(function() { $.post(href, function() { // 刷新页面 window.location.reload(); }); }); $('#alert-modal').modal('show'); return false; }); $(".has-error input").hover(...
JavaScript
0.000001
@@ -408,1466 +408,173 @@ ;%0A%09%0A -//%09var url = %22/api/v1/image/temp%22;%0A//%09$(%22#fileupload%22).fileupload(%7B%0A//%09%09url: url,%0A// previewMaxWidth: 100,%0A// previewMaxHeight: 100,%0A// previewCrop: true,%0A//%09%09done: function (e, data) %7B%0A//%09%09%09$(%22#uploadpicture%22).pr...
aae0706e5a1827efa86972e8a7bbd38178f4ad1d
Update moves.js
mods/trademarked/moves.js
mods/trademarked/moves.js
'use strict'; exports.BattleMovedex = { "copycat": { num: 383, accuracy: true, basePower: 0, category: "Status", desc: "The user uses the last move used by any Pokemon, including itself. Fails if no move has been used, or if the la...
JavaScript
0.000001
@@ -2701,24 +2701,79 @@ ngshot = 1;%0A + noCopycat.fakeout = 1;%0A
6086c9e1d14c9a80248f29d55f1d9bc8c430f985
Switch reports/index to graphql
client/src/pages/reports/Index.js
client/src/pages/reports/Index.js
import React from 'react' import {Table} from 'react-bootstrap' import {Link} from 'react-router' import API from '../../api' import Breadcrumbs from '../../components/Breadcrumbs' import moment from 'moment' export default class ReportsIndex extends React.Component { constructor(props) { super(props) this.stat...
JavaScript
0
@@ -370,17 +370,21 @@ I.query( -' +%60%0A%09%09%09 reports( @@ -423,29 +423,69 @@ 0) %7B - id %7D')%0A%09%09%09.log()%0A%09%09%09 +%0A%09%09%09%09id, intent, state%0A%09%09%09%09author %7B%0A%09%09%09%09%09name%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%60) .the
05c23542d610f0c2039654a8101fb74f235ec609
remove useless require
test/helpers/list-files.js
test/helpers/list-files.js
"use strict"; require('should'); var fs = require("fs"); var path = require("path"); var listFiles = require('../../lib/helpers/list-files'); var getCursorFromDirectory = listFiles.getCursorFromDirectory; var retrieveFiles = listFiles.retrieveFiles; var cursor = require('../../lib/helpers/cursor'); describe("getCu...
JavaScript
0.000001
@@ -250,59 +250,8 @@ s;%0A%0A -var cursor = require('../../lib/helpers/cursor');%0A%0A %0Ades
d9025b068a44a4b52b9b06b7938e2e9ca70602a6
test checks for styleguide.html
test/install-main-tests.js
test/install-main-tests.js
'use strict'; const expect = require('chai').expect; const fs = require('fs-extra'); describe('Main Installer', function () { it('should copy conf.yml to the root directory', function () { expect(fs.existsSync('conf.yml')).to.equal(true); }); it('should copy patternlab-config.json to the root directory', f...
JavaScript
0
@@ -1045,13 +1045,198 @@ );%0A %7D); +%0A%0A it('should compile styleguide.html to public/node_modules/fepper-ui/', function () %7B%0A expect(fs.existsSync('public/node_modules/fepper-ui/styleguide.html')).to.equal(true);%0A %7D); %0A%7D);%0A
a0cfb7718439f03d957b4235a81eec0bb3556d0e
Move repeated vars to top
test/lib/baseObjectTest.js
test/lib/baseObjectTest.js
import should from 'should/as-function'; import Syncano from '../../src/syncano'; describe('Base Object', function() { let baseObject = null; beforeEach(function() { baseObject = Syncano(); }); describe('#init()', function() { it('should have model factories automatically injected as properties', f...
JavaScript
0
@@ -76,17 +76,16 @@ cano';%0A%0A -%0A describe @@ -137,16 +137,82 @@ = null; +%0A let testKey = '123';%0A let testUrl = 'http://api.syncano.rocks' %0A%0A befo @@ -227,24 +227,25 @@ unction() %7B%0A +%0A baseObje @@ -2727,35 +2727,8 @@ ))%0A%0A - let testKey = '123';%0A @@ -3018,35 +3018,8 @@ ...
8fb01fb0e3d74861c7768d196c8d9cd42c635cbb
Remove .only
test/local-storage.test.js
test/local-storage.test.js
import { expect } from "chai"; import localStorage from "../src/local-storage"; describe.only("LocalStorage", () => { describe("nothing", () => { it("undefined", () => { const KEY = "undefined-key"; expect(localStorage.prop(KEY)).to.equal(undefined); }); it("reset with null", () => { ...
JavaScript
0.000001
@@ -87,13 +87,8 @@ ribe -.only (%22Lo
d75ab5089f56253fa3a986fd20295041018e0fc2
use own directory for medea_compact_test
test/medea_compact_test.js
test/medea_compact_test.js
var assert = require('assert'); var fs = require('fs'); var Medea = require('../'); var directory = __dirname + '/tmp/medea_test'; var db; var setup = function (done) { require('rimraf')(directory, function () { db = new Medea({ maxFileSize: 512 }); db.open(directory, done); }); } var shutdown = function (...
JavaScript
0
@@ -118,16 +118,24 @@ p/medea_ +compact_ test';%0Av
58301db36448feb429f86aae156910af19c188c8
Return getBranch promise
test/testLiveAsTemplate.js
test/testLiveAsTemplate.js
var assert = require('assert'); var expect = require('chai').expect; var path = require('path'); var fse = require('fs-extra'); var childProcess = require('child_process'); var readYaml = require('read-yaml'); var temp = require('temp').track(); var GitHub = require('github'); var github = new GitHub({ version: '3.0...
JavaScript
0.00001
@@ -4526,16 +4526,23 @@ %7B%0A +return getBranc
93da89bd3e62a2dfd2dc3d73e5439e89ec23b11e
simplify TestServer using in mailer remote tests
test/test_mailer_server.js
test/test_mailer_server.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /*eslint no-console: 0*/ var P = require('../lib/promise') var request = require('request') var createDBServer = ...
JavaScript
0
@@ -203,101 +203,8 @@ */%0A%0A -/*eslint no-console: 0*/%0A%0Avar P = require('../lib/promise')%0Avar request = require('request')%0A var @@ -331,525 +331,8 @@ %0A%7D%0A%0A -function waitLoop(testServer, url, cb) %7B%0A request(%0A url,%0A function (err) %7B%0A if (err) %7B%0A if (err.errno !== '...
3a15019861525dc031beba5950a6f829216396bf
Check if need to hide search box after window stops animating
js/app/modules/window/simple.js
js/app/modules/window/simple.js
// Copyright 2014 Endless Mobile, Inc. /* exported Simple */ const Endless = imports.gi.Endless; const GObject = imports.gi.GObject; const Gtk = imports.gi.Gtk; const Gio = imports.gi.Gio; const Actions = imports.app.actions; const Dispatcher = imports.app.dispatcher; const HistoryStore = imports.app.historyStore; c...
JavaScript
0.000005
@@ -3627,32 +3627,81 @@ %7D else %7B%0A + this._show_or_hide_search_box();%0A @@ -4297,24 +4297,151 @@ _forward();%0A + this._show_or_hide_search_box();%0A this._present_if_needed();%0A %7D,%0A%0A _show_or_hide_search_box: function () %7B %0A if @@ ...
d2f855bac63f721afcf5d93ba053fb9b3a3c322f
Fix bug in the user app's storage
js/apps/system/users/storage.js
js/apps/system/users/storage.js
/*global require, exports, applicationContext */ (function () { 'use strict'; var _ = require('underscore'), joi = require('joi'), arangodb = require('org/arangodb'), db = arangodb.db, Foxx = require('org/arangodb/foxx'), errors = require('./errors'), User = Foxx.Model.extend({ schema:...
JavaScript
0.000007
@@ -1823,22 +1823,16 @@ ta: -%7Bactive: true%7D +authData %0A @@ -3600,8 +3600,9 @@ s;%0A%7D()); +%0A
675ab6510ecfea622d6dee23cab748e69e0029a4
Use the new foam.ui.md.DateFieldView for dueDate
js/foam/apps/todo/model/Todo.js
js/foam/apps/todo/model/Todo.js
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
0
@@ -1330,24 +1330,63 @@ 'dueDate',%0A + view: 'foam.ui.md.DateFieldView'%0A %7D,%0A %5D,%0A
9db2ab05e8f2aa717b136737ca19e565dbf2253e
Fix bad reference.
js/frontend/providers/wallet.js
js/frontend/providers/wallet.js
'use strict'; define(['./module', 'darkwallet'], function (providers, DarkWallet) { function WalletProvider($scope) { this.addresses = {}; this.allAddresses = []; } WalletProvider.prototype.onIdentityLoaded = function(identity) { this.addresses = {}; this.allAddresses.splice(0, this.all...
JavaScript
0.000005
@@ -2990,20 +2990,30 @@ kWallet. -core +service.wallet .removeA
688de8abc8de692841603c462646ee240657be5a
Fix parameters story
examples/official-storybook/stories/core/parameters.stories.js
examples/official-storybook/stories/core/parameters.stories.js
/* eslint-disable react/prop-types */ import React from 'react'; // We would need to add this in config.js idiomatically however that would make this file a bit confusing import { addParameters } from '@storybook/react'; import { addDecorator } from '@storybook/react/dist/client/preview'; addDecorator(fn => fn({ cust...
JavaScript
0.000185
@@ -885,28 +885,26 @@ %0A %3Cpre%3E -StoryContext +Parameters : %7BJSON. @@ -917,19 +917,8 @@ ify( -%7B ...rest, para @@ -923,18 +923,16 @@ rameters - %7D , null,
7d6c583629414c1cb55666f4bcd4504742f895a8
Add isSafeProperty unit tests
test/utils/customs.test.js
test/utils/customs.test.js
// test boolean utils var assert = require('assert'); var approx = require('../../tools/approx'); var customs = require('../../lib/utils/customs'); var math = require('../../index'); describe ('customs', function () { describe ('isSafeMethod', function() { it ('plain objects', function () { var object = ...
JavaScript
0.000001
@@ -3585,16 +3585,988 @@ %0A %7D);%0A%0A + describe ('isSafeProperty', function () %7B%0A%0A it ('plain objects', function () %7B%0A var object = %7B%0A foo: true%0A %7D;%0A assert.equal(customs.isSafeProperty(object, '__proto__'), false);%0A assert.equal(customs.isSafeProperty(object, ...
2944eeb970e2743a425ddc9a1059fa6a509e81fc
remove stray reference to deepEqual
test/utils/generic.spec.js
test/utils/generic.spec.js
import { deepAssign, deepEqual, isObject, forOwn, nextUniqueId } from '../../src/utils/generic' describe('Generic Utilities', () => { describe('deepAssign()', () => { it('should assign source values to target object', () => { const target = { foo: 'bar', bun: 'baz' } const source = { foo: 'bonk!', bif: 'ba...
JavaScript
0.000006
@@ -17,19 +17,8 @@ ign, - deepEqual, isO
86a596ac73e62f39973ae59edfcc79a6de431f03
fix typo in userInstanceQuestionHomework.js
backend/pages/userInstanceQuestionHomework/userInstanceQuestionHomework.js
backend/pages/userInstanceQuestionHomework/userInstanceQuestionHomework.js
var ERR = require('async-stacktrace'); var _ = require('lodash'); var path = require('path'); var async = require('async'); var csvStringify = require('csv').stringify; var express = require('express'); var router = express.Router(); var question = require('../../question'); var logger = require('../../logger'); var s...
JavaScript
0.001785
@@ -4762,18 +4762,16 @@ %7D);%0A%7D -); %0A%0Arouter
9262d9b2a2c1cd6670bc76ec41e109ef8b893734
make dist
dist/jquery.sp-modal-request.min.js
dist/jquery.sp-modal-request.min.js
/*! jQuery.spModalRequest v0.1.0 | Copyright (c) 2015 Gonzalo Chumillas | https://github.com/soloproyectos-js/jquery.sp-modal-request/blob/master/LICENSE */ !function(t){t.spModalRequestClass=function(e,s,o,r){t.inArray(e,["get","post"])<0&&t.error("Method not allowed: "+e),this._method=e,this._args=Array.prototype.sli...
JavaScript
0.998903
@@ -200,17 +200,17 @@ n(e,s,o, -r +a )%7Bt.inAr @@ -370,17 +370,83 @@ s._type= -r +a%7D,t.spModalRequestClass.prototype.labels=%7Bdialog:%7Baccept:%22Accept%22%7D %7D,t.spMo @@ -660,16 +660,23 @@ )%7Bvar e= +this,s= new t.De @@ -686,16 +686,16 @@ red, -s +o =null, -o +a =new @@ -719,17 +719,17 @@ ;return -o ...
80f1075cd5bb0ef9d53e49ee5b24610c799df199
Remove max width on p tags
src/theme/globalStyle.js
src/theme/globalStyle.js
import { injectGlobal } from 'styled-components'; import styledNormalize from 'styled-normalize'; import { theme, typography } from './variables'; import { mediaMax } from './style-utils'; import FiraCode from './fonts/FiraCode-Regular.ttf'; /* eslint-disable */ injectGlobal` ${styledNormalize} @font-face { ...
JavaScript
0
@@ -1036,40 +1036,8 @@ %7D%0A%0A - p %7B%0A max-width: 40em;%0A %7D%0A%0A a @@ -1153,138 +1153,8 @@ or%7D; -%0A%0A @media only screen and (min-width: 800px) %7B%0A .mobile %7B%0A display: none;%0A %7D%0A%0A .large %7B%0A display: block;%0A %7D %0A %7D
8ea5b59812ccc9a779d82ed7169773922ec38d77
Fix error in init.js
app/Resources/packages/Base-keosu/init.js
app/Resources/packages/Base-keosu/init.js
var app = angular.module('keosuApp', ['angularSpinner','angular-carousel','ngSanitize', 'ngTouch', 'ngRoute','angular-inview','LocalStorageModule','CacheManagerModule','ui.bootstrap','chart.js']); app.controller('main_Controller', function($http, $rootScope, $scope) { $http.get('data/globalParam.json').success(functi...
JavaScript
0.000018
@@ -179,19 +179,8 @@ rap' -,'chart.js' %5D);%0A
ac0655b5d9b3404e66bd1c92f4e7d1b58109851f
Remove routes file from assets set.
app/assets/javascripts/alchemy/alchemy.js
app/assets/javascripts/alchemy/alchemy.js
// Alchemy CMS Sprockets Manifest // ------------------------------ //= require jquery //= require jquery_ujs //= require turbolinks //= require jquery.ui.datepicker //= require jquery.ui.draggable //= require jquery.ui.effect-drop //= require jquery.ui.effect-fade //= require jquery.ui.sortable //= require jquery.ui.t...
JavaScript
0
@@ -551,43 +551,8 @@ _de%0A -//= require alchemy/alchemy.routes%0A //=
2024ff41530273d3d3ff2f4fd53d63b9f7c5fccd
Fix thread scroller again
app/assets/javascripts/thread_scroller.js
app/assets/javascripts/thread_scroller.js
$(document).ready(function () { var viewMessageId = $('[data-view-message-id]').data('view-message-id') if (viewMessageId) { document.getElementById('message_' + viewMessageId).scrollIntoView(true) } })
JavaScript
0
@@ -1,22 +1,25 @@ $( -document).ready( +window).on('load', func @@ -28,16 +28,29 @@ on () %7B%0A + var offset%0A var vi @@ -146,33 +146,21 @@ -document.getElementById +offset = $ (' +# mess @@ -186,27 +186,144 @@ Id). -scrollIntoView(true +offset()%0A %7D%0A if (!window.location.hash && offset) %7B%0...
f4c9e6e48752c2457e3a1346ad519344bc7db310
Fix approximate marker size padding calculation for SPLOM as well
src/traces/splom/calc.js
src/traces/splom/calc.js
'use strict'; var Lib = require('../../lib'); var AxisIDs = require('../../plots/cartesian/axis_ids'); var calcMarkerSize = require('../scatter/calc').calcMarkerSize; var calcAxisExpansion = require('../scatter/calc').calcAxisExpansion; var calcColorscale = require('../scatter/colorscale_calc'); var convertMarkerSele...
JavaScript
0
@@ -2793,13 +2793,8 @@ d = -2 * ( opts @@ -2827,17 +2827,16 @@ size, 3) -) ;%0A %7D
0e29fbfabf19359632e6248f5f23a7147c8091ab
Fix storage use gauge in Chrome now
chrome/options.js
chrome/options.js
// -*- js3-indent-level: 8; js3-indent-tabs-mode: t -*- document.addEventListener( 'DOMContentLoaded', onDOMContentLoaded, false ); function onDOMContentLoaded() { var version_span = document.getElementById( 'bookkeeper-version' ), clear_button = document.getElementById( 'bookkeeper-clear-button' ); version_sp...
JavaScript
0
@@ -617,17 +617,19 @@ umber' ) + %7B %0A - %09%09beginU @@ -648,18 +648,28 @@ hore();%0A -%0A%0A +%09%7D%0A%09else %7B%0A%09 %09// Else @@ -724,16 +724,21 @@ support +%0A%09%09// Chrome' @@ -738,20 +738,16 @@ Chrome's -%0A%09// full st @@ -787,16 +787,21 @@ t's just +%0A%09%09// hide th @@ -811,20 +811,1...
be6801b2ba4df96e78c82694ed40b5119a5e37d4
이벤트 디스패치 this 객체 롤백
src/util/eventHandler.js
src/util/eventHandler.js
/** * Add event listener * @param {!string} eventName * @param {function} fn */ Entry.addEventListener = function(eventName, fn) { if (!this.events_) { this.events_ = {}; } if (!this.events_[eventName]) { this.events_[eventName] = []; } if (fn instanceof Function) { this...
JavaScript
0.999932
@@ -503,41 +503,8 @@ ) %7B%0A - const that = this %7C%7C Entry;%0A%0A @@ -510,18 +510,18 @@ if (!th -at +is .events_ @@ -534,18 +534,18 @@ th -at +is .events_ @@ -595,18 +595,18 @@ nts = th -at +is .events_
932f0b18b445d52c3eb315f29915049f2b4f6746
Check before scrolling to result in result-list (#2670)
src/utils/result-list.js
src/utils/result-list.js
const { isFirefox } = require("devtools-config"); function scrollList(resultList, index) { const resultEl = resultList[index]; if (isFirefox()) { resultEl.scrollIntoView({ block: "end", behavior: "smooth" }); } else { chromeScrollList(resultEl, index); } } function chromeScrollList(elem, index) { c...
JavaScript
0
@@ -77,32 +77,92 @@ tList, index) %7B%0A + if (!resultList.hasOwnProperty(index)) %7B%0A return;%0A %7D%0A%0A const resultEl
35d8ceef686cb04354108eca2c6169cc94c8f23a
Add service func that calculates permissions
src/web/services/user.js
src/web/services/user.js
const fetch = require('node-fetch') const moment = require('moment') const log = require('../../util/logger.js') const discordAPIConstants = require('../constants/discordAPI.js') const discordAPIHeaders = require('../constants/discordAPIHeaders.js') const guildServices = require('./guild.js') const roleServices = requi...
JavaScript
0.000002
@@ -2175,32 +2175,501 @@ return data%0A%7D%0A%0A +/**%0A * @param %7BObject%3Cstring, any%3E%7D guild - User guild data from API%0A * @returns %7Bboolean%7D%0A */%0Aasync function hasGuildPermission (guild) %7B%0A const isOwner = guild.owner%0A const managesChannel = (guild.permissions & MANAGE_CHANNEL_PERMISSION) ...
6f1919487ae8c55e94c6077374f774627a776620
Fix build: Project page title has changed
tests/browserFunctional.js
tests/browserFunctional.js
// This file is written as an AMD module that will be loaded by the Intern // test-runner. The test runner is communicating with a Selenium server // that is controlling a browser. These tests can remote-control the browser // and probe the displayed pages to verify that pages are functioning and // displaying as expec...
JavaScript
0
@@ -2369,25 +2369,41 @@ platatus - %C2%B7 GitHub +: Project Platform Status ');%0A
1cced84dd3766273906e230d7d0abf164d932d8e
Clarify test name
tests/cases/mount/mount.js
tests/cases/mount/mount.js
import {findOne} from "../../../dom/traverse"; import QUnit from "qunit"; import {mount} from "../../../mount"; QUnit.module("mount()", { beforeEach: () => { findOne("#qunit-fixture").innerHTML = ` <div id="fixture-1" class="fixture"></div> <div id="fixture-2" class="fixture"></...
JavaScript
0.000019
@@ -425,17 +425,67 @@ t() test -s + that the correct parameters are passed, fixes #158 %22,%0A (
c83b78a0af047bec6afe6e5c1828f5248c843cb1
add jstestdriver
src/ydn/object/object.js
src/ydn/object/object.js
// Copyright 2012 YDN Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
JavaScript
0.000001
@@ -870,28 +870,17 @@ @param %7B -Object%7CArray +T %7D obj ob @@ -914,20 +914,9 @@ rn %7B -Object%7CArray +T %7D cl @@ -920,32 +920,47 @@ cloned object.%0A + * @template T%0A */%0Aydn.object.c
5ca56385d577a84bf45da44384f247e5e00673d3
Fix linter
scripts/webstore-upload.js
scripts/webstore-upload.js
const fs = require('fs'); var AdmZip = require('adm-zip'); console.log("Creating zip archive..."); var zip = new AdmZip(); zip.addLocalFolder('./build', 'heutagogy'); zip.writeZip('heutagogy.zip'); const webStore = require('chrome-webstore-upload')({ extensionId: process.env.WEBSTORE_EXTENSION_ID, clientId: proce...
JavaScript
0.000002
@@ -18,20 +18,44 @@ e('fs'); -%0Avar + //eslint-disable-line%0Aconst AdmZip @@ -71,24 +71,132 @@ ('adm-zip'); + //eslint-disable-line%0Aconst chromeWebstoreUpload = require('chrome-webstore-upload'); //eslint-disable-line %0A%0Aconsole.lo @@ -197,17 +197,17 @@ ole.log( -%22 +' Creating @@ -225,15 +225,17 @@ e....
5df3b702ab59576d043ccc9ee6ae12510da2a738
Fix gdb execution on docker
tests/nasm/gen_fixtures.js
tests/nasm/gen_fixtures.js
#!/usr/bin/env node "use strict"; const fs = require("fs"); const os = require("os"); const path = require("path"); const { spawn, spawnSync } = require("child_process"); const DEBUG = process.env.DEBUG || false; // Maximum number of gdb processes to spawn in parallel const MAX_PARALLEL_PROCS = +process.env.MAX_PARAL...
JavaScript
0.000001
@@ -660,16 +660,97 @@ batch%22,%0A + %22--eval-command=set disable-randomization off%22, // allow execution on docker%0A %60--c
e097424223eaba8ef429a5fdc395bcd3134144de
fix SecuritySystemAlarmType
services/SecuritySystem.js
services/SecuritySystem.js
/* eslint unicorn/filename-case: "off", func-names: "off", camelcase: "off", no-unused-vars: "off" */ module.exports = function (iface) { const {mqttPub, mqttSub, mqttStatus, log, Service, Characteristic} = iface; return function createService_SecuritySystem(acc, settings, subtype) { acc.addService(Se...
JavaScript
0.000001
@@ -1710,22 +1710,16 @@ tics')(' -Status Security
44f47b1fc4174275240e99f2ec647e194a550482
add breadcrumb
src/modules/file/admin/client/src/components/Files.js
src/modules/file/admin/client/src/components/Files.js
import React, {Fragment} from 'react'; import withDrafterbit from 'drafterbit-module-admin/client/src/withDrafterbit'; import TablePage from 'drafterbit-module-admin/client/src/components/TablePage'; import ApiClient from '../ApiClient' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCheckSq...
JavaScript
0.000003
@@ -1,12 +1,37 @@ +import path from 'path';%0A import React @@ -1748,15 +1748,81 @@ = %5B -%22Files%22 +%7B%0A label: %22Files%22,%0A path: %22/files?path=/%22%0A %7D %5D;%0A @@ -1862,29 +1862,23 @@ -p +let restP ath -s = -paths.concat( deco @@ -1932,17 +1932,17 @@ =%3E !!...
5cfaacf25dee5fe5728b583cde55a1e2680e8bf3
Fix failing test
tests/unit/helpers.spec.js
tests/unit/helpers.spec.js
(function() { 'use strict'; var expect = require('chai').expect; var helper = require('../../lib/helpers'); var httpMocks = require('node-mocks-http'); describe('Helpers test', function() { context('getRules', function() { var path; var rules; beforeEach(function() { path = '....
JavaScript
0.000209
@@ -734,70 +734,8 @@ ) %7B%0A - var error = new Error('Error: Unknown encoding: 1');%0A%0A @@ -839,43 +839,39 @@ ect( -err.message).to.equal(error.message +helper.getRules).to.throw(Error );%0A
1468c8e59f9b4370e70d103f2a00e3cb512d83b9
Fix wrong import of debug output for aggregate functions
lib/AggregateFunctions.js
lib/AggregateFunctions.js
module.exports = AggregateFunctions; function AggregateFunctions(opts) { if (typeof opts.driver.getQuery != "function") { throw new Error("This driver does not support aggregate functions"); } if (!Array.isArray(opts.driver.aggregate_functions)) { throw new Error("This driver does not support aggregate function...
JavaScript
0.000028
@@ -2912,16 +2912,17 @@ quire(%22. +/ Debug%22).
41aa183c95d765a7e30975a6af67b78f6ccf8b79
fix some func for object
lib/FractalField.store.js
lib/FractalField.store.js
import set from './set'; const CHANGE_VALUE = 'CHANGE_VALUE'; const CHANGE_FIELD_VALUE = 'CHANGE_FIELD_VALUE'; const CHANGE_LOCAL_ERROR = 'CHANGE_LOCAL_ERROR'; const CHANGE_FOREIGN_ERROR = 'CHANGE_FOREIGN_ERROR'; const CHANGE_CHILD_META = 'CHANGE_CHILD_META'; const SET_TOUCH = 'SET_TOUCH'; const SET_UNTOUCH = 'SET_UNT...
JavaScript
0.99854
@@ -1,8 +1,40 @@ +import some from 'lodash/some';%0A import s @@ -3051,24 +3051,29 @@ lid && ! +some( children .some((v @@ -3068,14 +3068,10 @@ dren -.some( +, (val
1342822c6d7dfdad1b86fdeec1ba94390aaf83cd
Fix phaser 3 wheel3D example
docs/examples/js/phaser3/wheel3D.js
docs/examples/js/phaser3/wheel3D.js
var config = { type: Phaser.AUTO, width: 600, height: 400, scene: { preload: preload, create: create, } }; var game = new Phaser.Game(config); function preload() { var assetRoot = '../../assets/wheel3D/'; this.load.image("icon", assetRoot + "icon.png"); this.load.image("m...
JavaScript
0
@@ -4166,20 +4166,16 @@ nction ( -item ) %7B%0A @@ -4170,36 +4170,36 @@ on () %7B%0A if ( -item +this .dir === 0)%7B%0A @@ -4195,36 +4195,36 @@ === 0)%7B%0A -item +this .wheel.moveBack( @@ -4240,20 +4240,20 @@ if ( -item +this .dir === @@ -4265,20 +4265,20 @@ -item +this .wheel....
e1e4f55d0a49fc1782c344fea6fd4f405a45df71
Use LogManager if exists in ChildrenConfig plugin.
src/plugins/Examples/ChildrenConfig/ChildrenConfig.js
src/plugins/Examples/ChildrenConfig/ChildrenConfig.js
/** * Created by pmeijer on 3/26/2014. */ define(['plugin/PluginConfig', 'plugin/PluginBase'], function (PluginConfig, PluginBase) { 'use strict'; var ChildrenConfigPlugin = function () {}; ChildrenConfigPlugin.prototype = Object.create(PluginBase.prototype); ChildrenConfigPlugin.getDefault...
JavaScript
0
@@ -196,19 +196,198 @@ nction ( -) %7B +LogManager) %7B%0A if (LogManager) %7B%0A this.logger = LogManager.create('Plugin.ChildrenConfigPlugin');%0A %7D else %7B%0A this.logger = console;%0A %7D%0A %7D;%0A%0A @@ -1043,18 +1043,43 @@ ctedNode +,%0A self = ...
048b27c2fa21d6f617d68b625d13e6cb225bbf1f
enforce consistency around module imports
recommended.js
recommended.js
module.exports = { plugins: ["eslint-comments", "import", "prettier"], extends: [ "eslint:recommended", "problems", "plugin:eslint-comments/recommended", "plugin:import/errors", "plugin:import/warnings", "prettier", "plugin:prettier/recommended", // Must be last ], rules: { // F...
JavaScript
0
@@ -559,24 +559,953 @@ %22: %22error%22,%0A + // Enforce consistency in where import groups appear. The linter should jsut take care of this%0A // kind of thing.%0A %22import/first%22: %22error%22,%0A // Enforce conventions around import groups. (Source files like js, ts shouldn't require an%0A // exten...
46c92deca8129b5b64093d5b9c522a458966b67c
change object, key and argument names to make editing easier later
BasicCard.js
BasicCard.js
//******** tools for basic card ********// //all this shit in BasicCard has empty values for now, fill with "new" function BasicCard(trigger, front, back) { this.trigger = true; this.front = message; //my questions this.answer = type; //user answers; compare this shit to the stored answers in a json package this....
JavaScript
0
@@ -418,23 +418,16 @@ %7D%0A%0Avar q -uestion Obj = %7B%7D @@ -429,35 +429,21 @@ = %7B%7D;%0Aq -uestionObj.question +Obj.q One = ne @@ -517,35 +517,21 @@ , 40);%0Aq -uestionObj.question +Obj.q Two = ne @@ -609,35 +609,21 @@ ies%22);%0Aq -uestionObj.question +Obj.q Three = @@ -686,35 +686,21 @@ cat%22);%0Aq -...
18b8e0b970c7743be4fc17d3fbcedc6f6d3095fc
tidy code, improve perf
src/virtualNodeConstructors/NativeVirtualAudioNode.js
src/virtualNodeConstructors/NativeVirtualAudioNode.js
const createAudioNode = require('../tools/createAudioNode'); const {contains, forEach, keys, pick, omit} = require('ramda'); const capitalize = require('capitalize'); const constructorParamsKeys = [ 'maxDelayTime', ]; const audioParamProperties = [ 'delayTime', 'detune', 'frequency', 'gain', 'pan', 'Q', ]; c...
JavaScript
0.000001
@@ -629,58 +629,8 @@ s);%0A - params = omit(constructorParamsKeys, params);%0A @@ -1188,16 +1188,110 @@ y) =%3E %7B%0A + const param = params%5Bkey%5D;%0A if (this.params && this.params%5Bkey%5D === param) return;%0A if @@ -1364,38 +1364,32 @@ y%5D.value = param -s%5Bkey%5D ;%0A ret...
5a0a90e93a4376f35d50cfda46cd4c938ebb4669
Use overridden fluent-logger with the new API
lib/backend/connection.js
lib/backend/connection.js
/** * var connection = new Connection({ tag: 'kotoumi', * hostName: 'localhost', * port: 24224, * receiveHostName: 'localhost', * receivePort: 10...
JavaScript
0.000001
@@ -771,16 +771,207 @@ 24224;%0A +var DEFAULT_FLUENT_MAX_RETRY_COUNT =%0A Connection.DEFAULT_FLUENT_MAX_RETRY_COUNT =%0A 3;%0Avar DEFAULT_FLUENT_RETRY_DELAY =%0A Connection.DEFAULT_FLUENT_RETRY_DELAY =%0A 1000;%0A var DEFA @@ -1673,23 +1673,173 @@ -reconnect: true +maxRetryCount: this._...
67f0d69f3371b9eb2b1763302eef5d6128397282
Attach code properly on ping
utils/remote.js
utils/remote.js
var interpret = require('./interpret'); var conf = require('../conf.json'); require('date-utils'); var queue = []; function init(cubeUrl, dims, delay) { delay = delay || 500; var code; function play() { var playableItem = queue[0]; var now = new Date(); if(playableItem) { ...
JavaScript
0.000001
@@ -983,45 +983,162 @@ -if(i %3E= 0) queue%5Bi%5D.age = new Date(); +console.log('pinging');%0A if(i %3E= 0) %7B%0A console.log('found item at ping');%0A queue%5Bi%5D.age = new Date();%0A queue%5Bi%5D.code = code;%0A %7D %0A%7D%0Ae
508737fb891f95955de24af7d2d9db706365dcda
Allow to take screen captures with PhantomJS.
lib/browsers/phantomjs.js
lib/browsers/phantomjs.js
/* * Copyright 2012 Amadeus s.a.s. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
JavaScript
0
@@ -1735,32 +1735,223 @@ %7D);%0D%0A + %7D,%0D%0A screenshot: function (file) %7B%0D%0A window.callPhantom(%7B%0D%0A name: %22screenshot%22,%0D%0A file: file%0D%0A %7D);%0D%0A %7D%0D%0A @@ -2347,24 +2347,...
82daa3d9feb58a4f7409501f9c3a3be77f13243d
Update base.js
lib/buildenvsetup/base.js
lib/buildenvsetup/base.js
// Copyright (c) 2020, Compiler Explorer Authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // thi...
JavaScript
0.000001
@@ -3482,16 +3482,32 @@ return + result.stdout ? result. @@ -3532,16 +3532,24 @@ archFor) + : false ;%0A
9424b3e1623583f88f97253085427825e67c6d44
Move recursive rendering into a pre-hook.
lib/classes/Renderable.js
lib/classes/Renderable.js
var hooks = require('hooks'); var async = require('async'); function Renderable(View) { this.data = {}; this.mode = 'main'; this.view = {}; if (typeof View === 'function') { this.view = new View(); } this.render = function(cb) { // recursively render any Renderable objects inside this.data //...
JavaScript
0
@@ -213,235 +213,379 @@ %7D%0A -%0A this.render = function(cb) %7B%0A // recursively render any Renderable objects inside this.data%0A // this currently has one flaw, Renderable objects cannot be in nested objects,%0A // or you need to render them manually%0A +%7D%0A%0Afor (var k in hooks) %7B%0A // Per...
568eb0491a87827b71d20ec7ef9c5bfa296ad664
add default async option to true
lib/command/shrinkwrap.js
lib/command/shrinkwrap.js
'use strict'; var wrapper = require('cortex-shrinkwrap'); var cortex_json = require('read-cortex-json'); var fs = require('fs'); var node_path = require('path'); exports.run = function (options, callback) { var cwd = options.cwd; var logger = this.logger; var profile = this.profile; cortex_json.read(cwd, func...
JavaScript
0.000009
@@ -398,17 +398,16 @@ ion done - (err, sh @@ -998,16 +998,35 @@ false,%0A + async: true,%0A st @@ -1076,16 +1076,18 @@ ne)%0A + .on('war @@ -1113,24 +1113,26 @@ ge) %7B%0A + logger.warn( @@ -1141,16 +1141,18 @@ ssage);%0A + %7D);%0A @@ -1159,10 +1159,8 @@ %7D);%0A%7D; -%0A%...
5dda871ee43eab524440557e9b1b4888c39b566c
Fix help text
lib/commands/site.log._js
lib/commands/site.log._js
/** * Copyright (c) Microsoft. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
JavaScript
0.999992
@@ -3171,35 +3171,40 @@ .description(' -Liv +Configur e diagnostic log @@ -3191,36 +3191,33 @@ igure diagnostic - log +s ')%0A .option('
bbd145726c276dbe509f1b2d6a0d4ec03ed18b8f
Fix `specEndpoints` handling
lib/completers/openapi.js
lib/completers/openapi.js
const SwaggerParser = require('swagger-parser') const OPENAPI_SPEC_PATHS = ['openapi.json', 'openapi/v1', 'openapi/v2'] const postfixWith = postfix => str => str + postfix const prefixWith = prefix => str => prefix + str class OpenAPIPlugin { constructor ({ specEndpoints }) { this.spec = undefined this.spe...
JavaScript
0.000001
@@ -325,16 +325,32 @@ points = + specEndpoints ? %5BspecEn @@ -365,18 +365,17 @@ .flat() -%7C%7C +: OPENAPI
c2be8659dba4baff2b87d1993431365ad528c10a
Change path to favicon
lib/gulp/tasks/favicon.js
lib/gulp/tasks/favicon.js
'use strict'; import gulp from 'gulp'; import config from '../config'; import favicons from 'gulp-favicons'; gulp.task('fav', function () { gulp.src(config.path.src + 'img/sprite/*.png').pipe(favicons({ appName: config.server.name, appDescription: config.server.name, developerName: 'Shevchenko Nik...
JavaScript
0.00002
@@ -179,14 +179,11 @@ img/ -sprite +fav /*.p
6678f217fb9938bfcc02a140cf680155c541c954
Fix decrypt middleware
lib/middleware/decrypt.js
lib/middleware/decrypt.js
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /*jslint node: true, nomen: true, stupid: true */ 'use strict'; // Export module module.exports = { /** * Return middleware function * * @returns {Function} */ middleware: function (config, utility) { const encrypt = co...
JavaScript
0.998434
@@ -782,50 +782,16 @@ ta: -Buffer.from(req.body.toString(), 'binary') +req.body ,%0A
d46e4459f565c9f8deaf1254c5180abc6eae2bce
fix crash on minimap plugin deactivation
lib/minimap-codeglance.js
lib/minimap-codeglance.js
'use babel'; import { CompositeDisposable, Point } from 'atom'; import { addEventListener, addEventListenerOnce } from './utils.js'; var MinimapCodeglanceElement; var MinimapCodeglance = { initialize() { if(!MinimapCodeglanceElement) MinimapCodeglanceElement = require('./minimap-codeglance-element.js'); thi...
JavaScript
0
@@ -487,16 +487,27 @@ element. +getModel(). destroy(
af3b5e5bb06fc99d74832868f47b937b10546729
Add safety net in helma/webapp/response, makes it easier to build mock objects
modules/helma/webapp/response.js
modules/helma/webapp/response.js
include('hashp'); include('helma/buffer'); include('helma/webapp/util'); export('Response', 'SkinnedResponse', 'JSONResponse', 'RedirectResponse' /*, 'NotFoundResponse', 'ServerErrorResponse'*/); function Response() { var config = require('helma/webapp/env').config; var status = 200; var charset = config...
JavaScript
0
@@ -306,16 +306,26 @@ harset = + config && config. @@ -365,16 +365,26 @@ ntType = + config && config.
153035d06acfd57e98c5f236a461831a7a08b3d9
remove logs
lib/render/merge/index.js
lib/render/merge/index.js
export default (node, dom) => { const children = node.childNodes let i = children.length while (i--) { let child = children[0] console.log(child.tagName, children.length) let tag = child.tagName if (tag === 'body' || tag === 'head') { console.log('REPLACE', tag) let j = dom.childNodes....
JavaScript
0.000001
@@ -134,56 +134,8 @@ %5B0%5D%0A - console.log(child.tagName, children.length)%0A @@ -206,42 +206,8 @@ ) %7B%0A - console.log('REPLACE', tag)%0A
2c87dfd4dd74f0bf3c33205ec96c9ffa9d7c5250
Update the inline docs
lib/resources/disputes.js
lib/resources/disputes.js
'use strict' const ApiRequestor = require('../api-requestor') module.exports = class Disputes { constructor (chargehound) { this._chargehound = chargehound } /** * Retrieve a dispute * This endpoint will return a single dispute. * @param {String} disputeId A dispute id * @param {function} [cal...
JavaScript
0
@@ -2353,276 +2353,121 @@ ate. -customer_name%5D Update the customer name. Will also update the customer name in the evidence fields.%0A * @param %7BString%7D %5BdisputeUpdate.customer_email%5D Update the customer email. Will also update the customer email in the evidence fields. Must be a valid email address +accou...
cb362b581be11679bab58ceec5bdc69af59daed6
update har-validator to promise version
lib/routes/bins/create.js
lib/routes/bins/create.js
'use strict' var debug = require('debug-log')('mockbin') var util = require('util') var uuid = require('node-uuid') var validate = require('har-validator') module.exports = function (req, res, next) { var mock = req.jsonBody // check for full HAR if (req.jsonBody && req.jsonBody.response) { mock = req.json...
JavaScript
0
@@ -1048,134 +1048,36 @@ mock -, function (err, valid) %7B%0A if (!valid) %7B%0A res.body = %7B%0A errors: err.errors%0A %7D%0A%0A return next()%0A %7D%0A%0A +)%0A .then(function () %7B%0A @@ -1100,16 +1100,18 @@ ()%0A%0A + + this.cli @@ -1154,24 +1154,26 @@ mock))%0A%0A...
8606735a0cb50d544dbbfe30ec0716dc3b44eb0c
remove unnecessary parens for substeps
lib/simplifyExpression.js
lib/simplifyExpression.js
'use strict'; const math = require('mathjs'); const flattenOperands = require('./flattenOperands'); const Fraction = require('./Fraction'); const hasUnsupportedNodes = require('./hasUnsupportedNodes'); const NodeStatus = require('./NodeStatus'); const print = require('./print'); const removeUnnecessaryParens = requir...
JavaScript
0.000001
@@ -4407,24 +4407,48 @@ 'oldNode': +removeUnnecessaryParens( nodeStatus.o @@ -4450,24 +4450,31 @@ tus.oldNode, + true), %0A 'newNod @@ -4473,24 +4473,48 @@ 'newNode': +removeUnnecessaryParens( nodeStatus.n @@ -4520,16 +4520,23 @@ newNode, + true), %0A 'su
c10593e5c15e224094b78358c6fe035a9370b369
Add ctrl/alt keys to Event wrapper.
lib/skit/browser/Event.js
lib/skit/browser/Event.js
'use strict'; 'browser-only'; /** * @license * (c) 2014 Cluster Labs, Inc. https://cluster.co/ * License: MIT */ /** @ignore */ var ElementWrapper = skit.browser.ElementWrapper; /** * A wrapper for native browser events to fix browser inconsistencies. * * @param {Event} evt The native browser event. * @cons...
JavaScript
0
@@ -581,16 +581,92 @@ %7C false; +%0A this.altKey = evt.altKey %7C%7C false;%0A this.ctrlKey = evt.ctrlKey %7C%7C false; %0A%0A var
f325234d689f60a6b2a2b71a57bf561bd2ca3ac4
Revert "init device panel when project path changed"
lib/thera-device-panel.js
lib/thera-device-panel.js
'use babel' window.$ = window.jQuery = require('jquery') import DevicePanelView from './thera-device-panel-view' const simulatorInfo = require('./simulatorInfo') const realDeviceInfo = require('./realDeviceInfo') const commandShowDevicePanel = 'thera-device-panel:show' const commandDeviceConnected = 'dumpling-server...
JavaScript
0
@@ -334,71 +334,8 @@ ed'%0A -const commandProjectPathChanged = 'mainwindow:projectChanged'%0A%0A %0Amod @@ -390,36 +390,70 @@ ate) %7B%0A this. -init +devicePanel = this.devicePanel %7C%7C new DevicePanel()%0A @@ -443,24 +443,28 @@ DevicePanel +View ()%0A atom. @@ -670,112 +670,8 @@ a))%0A - atom.co...
49a003d0d54fbc2f7cee0ad2e684dc442b94bd4d
Update binary search tree test variables
test/data-structures/trees/binary-search-tree-test.js
test/data-structures/trees/binary-search-tree-test.js
/** * @author Arnold Koh <arnold@kohded.com> * Developed: 3/19/2017 * File: binary-search-tree-test.js */ /* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable no-unused-expressions */ const expect = require('chai').expect; const BinarySearchTree = require('../../../data-structures/trees/binary...
JavaScript
0
@@ -376,24 +376,24 @@ %7B%0A let -bstE +e mpty +BST ;%0A let @@ -427,33 +427,23 @@ -bstEmpty = Object.create( +emptyBST = new Bina @@ -450,34 +450,25 @@ rySearchTree -.prototype +( );%0A bst = @@ -472,22 +472,12 @@ t = -Object.create( +new Bina @@ -492,18 +492,9 @@ Tree -.prototype +( );%0A @...