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
ed9701f078c02b341761655a13155942c94dd478
Update gennumplan.js
tools/phone/gennumplan.js
tools/phone/gennumplan.js
/* * gennumplan.js - ilib tool to generate the json numplan information from the libphonefmt-js * library * * Copyright © 2019 JEDLSoft * * 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...
JavaScript
0
@@ -930,16 +930,139 @@ %22tmp%22;%0A%0A +var skipCountry = %5B%22KR%22, %22US%22, %22GB%22, %22ES%22, %22MX%22, %22AR%22, %22CO%22, %22BR%22, %22CA%22, %22FR%22, %22IT%22, %22DE%22, %22RU%22, %22JP%22, %22CN%22, %22TW%22, %22NL%22%5D;%0A%0A if (proc @@ -2294,16 +2294,138 @@ 001%22 -) break; + %7C%7C%0A (skipCo...
fb425d0f24d41ca6c58db9fd986c6c0ada94bf49
test guest rules
app/modules/core/test/unit/auth-service-test.js
app/modules/core/test/unit/auth-service-test.js
'use strict'; describe('auth-service', function () { var AuthService, StorageService, StorageServiceMock, authClientMock = { $login: function(){}, $logout: function(){}, $getCurrentUser: function(){} }; beforeEach(module('kosh')); beforeEach(module(function($pro...
JavaScript
0.000001
@@ -3131,32 +3131,388 @@ d();%0A %7D);%0A%0A + it('should grant access if user is not logged in', function() %7B%0A var deferred = $q.defer(),%0A thenHandler = jasmine.createSpy('thenHandler');%0A AuthService.isAuthorized(USER_ROLES.GUEST).then(thenHandler);%0A deferred.resolv...
1c5491ec980c983c2df5c53e529360dc1788dd23
add padding to user dash table
app/src/components/UserDashboardTable/styles.js
app/src/components/UserDashboardTable/styles.js
import styled from 'styled-components'; import Box from 'grommet-udacity/components/Box'; import Heading from 'grommet-udacity/components/Heading'; import TableRow from 'grommet-udacity/components/TableRow'; import GrommetLabel from 'grommet-udacity/components/Label'; import GrommetSelect from 'grommet-udacity/componen...
JavaScript
0
@@ -717,16 +717,61 @@ er-box;%0A + padding-top: 40px;%0A padding-bottom: 40px;%0A %60;%0A%0Aexpo
5134bc1a387936dc7ea867c0bbcf66d600bfade9
Standardize on verify callback terminology.
lib/passport-browserid/strategy.js
lib/passport-browserid/strategy.js
/** * Module dependencies. */ var passport = require('passport') , https = require('https') , querystring = require('querystring') , util = require('util') /** * `Strategy` constructor. * * The BrowserID authentication strategy authenticates requests using the * BrowserID JavaScript API and Verified Email...
JavaScript
0
@@ -767,23 +767,21 @@ ply a %60v -alidate +erify %60 callba @@ -1513,23 +1513,21 @@ ction%7D v -alidate +erify %0A * @api @@ -1566,23 +1566,21 @@ tions, v -alidate +erify ) %7B%0A if @@ -1681,23 +1681,21 @@ if (!v -alidate +erify ) throw @@ -1751,23 +1751,21 @@ ires a v -alidate +erify functio @@ -1844,2...
c7ad9bfdad0bb6c202081c0ce8041f0532513d42
Add 'getHomeServerName' util to client peg
src/MatrixClientPeg.js
src/MatrixClientPeg.js
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
JavaScript
0.000001
@@ -2669,24 +2669,486 @@ %7D;%0A %7D%0A%0A + /**%0A * Return the server name of the user's home server%0A * Throws an error if unable to deduce the home server name%0A * (eg. if the user is not logged in)%0A */%0A getHomeServerName() %7B%0A const matches = /%5E@.+:(.+)$/.exec(this.mat...
27b3f5f6b1fc544fad043bd8623c38c973e826a8
create a global notif timeline set for each client
src/MatrixClientPeg.js
src/MatrixClientPeg.js
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
JavaScript
0
@@ -656,16 +656,161 @@ /utils'; +%0Aimport EventTimeline from 'matrix-js-sdk/lib/models/event-timeline';%0Aimport EventTimelineSet from 'matrix-js-sdk/lib/models/event-timeline-set'; %0A%0Aconst @@ -3417,16 +3417,389 @@ guest)); +%0A%0A var notifTimelineSet = new EventTimelineSet(null, null, %7B%0A ...
6dde7444c97385c05dd771b5813ade22a09fb7e1
Update put-spot.js
spots-api/api/put-spot.js
spots-api/api/put-spot.js
// put-spot.js module.exports = function(db) { return function(req, res) { var spots = db.collection('spots'); spots.update({_id: req.params.id}, {$set: req.body}, function(err, result) { if(err) throw err; res.json(result); }); } }
JavaScript
0.000012
@@ -209,17 +209,62 @@ rr) -throw err +return res.status(500).json(code: 'DbError', err: err) ;%0A%0A
26b5cae765777b83bc0b2cffc9302ef434ecc45e
clean up
content_scripts/entry.js
content_scripts/entry.js
let INTERVAL_ID = 'not_touched'; // the same members as storage.local's const SETTINGS = { update_check : true, update_check_interval : 14000, mute_by_key : false, block_by_key : false, }; const STORE_NAME = 'pptw_settings'; const pptw = { /** * click 'update' button, unless overlay appear i...
JavaScript
0.000887
@@ -3185,71 +3185,8 @@ );%0D%0A - // console.log(%60$%7BJSON.stringify(SETTINGS, null, 2)%7D%60);%0D%0A
343a6171fd419f76a6f94e6868b91b9e1b4baf08
Add example webpackDevServer config override.
packages/react-app-rewired/config-overrides.js
packages/react-app-rewired/config-overrides.js
/* DEFAULT */ module.exports = function override(config, env) { /* Modify the config as needed*/ return config; }; /* ALTERNATIVE */ /* module.exports = { webpack: function (config, env) { return config; }, jest: function (config) { return config; } } */
JavaScript
0
@@ -263,12 +263,1051 @@ ig;%0A + %7D,%0A // configFunction is the original react-scripts function that creates the%0A // Webpack Dev Server config based on the settings for proxy/allowedHost.%0A // react-scripts injects this into your function (so you can use it to%0A // create the standard config to start from),...
1de5b5ad96f56676c1b0b62e2ec88e5a089e975c
use GraphQLID to represents object id's
schemas/twitter.js
schemas/twitter.js
import * as twitter from '../apis/twitter'; import { GraphQLSchema, GraphQLObjectType, GraphQLString, GraphQLNonNull, GraphQLInt, GraphQLList, } from 'graphql'; let UserType = new GraphQLObjectType({ name: 'TwitterUser', description: 'Twitter user, or as we like to say in France: a \'...
JavaScript
0
@@ -85,24 +85,39 @@ ObjectType,%0A + GraphQLID,%0A GraphQLS @@ -119,24 +119,24 @@ phQLString,%0A - GraphQLN @@ -472,37 +472,68 @@ %7B type: GraphQLI -nt %7D, +D %7D, // GraphQLInt would return null %0A screen_ @@ -1385,38 +1385,34 @@ %7B type: GraphQL -String +ID %7D,%0A id_s @@ -2083...
db347219a260fc9bcf674c7e334e4b70877561bc
Fix Javascript
public/js/angular/modules/experience.js
public/js/angular/modules/experience.js
angular.module('experience', []).controller('ExperienceController', function($scope, $http) { $scope.companyname=''; $scope.companies = []; $scope.history = []; function loadLookupData(resourceName) { var responsePromise = $http.get('/api/lookup/' + resourceName); responsePromise.success(function(da...
JavaScript
0.000009
@@ -417,74 +417,8 @@ me%5D; -%0A%0A %09alert(JSON.stringify($scope.lookups%5BresourceName%5D%5B0%5D)); %0A @@ -603,69 +603,195 @@ %7D%0A%0A%09 -loadLookupData('jobstatus');%0A%09loadLookupData('committeerole') +$scope.lookups = %5B%5D;%0A%09%0A%09$scope.lookups.jobstatus = %5B%5D;%0A%09loadLookupData('jobs...
ff1facbacbfea0f9072805d78ff2db4f4db81a28
Update schedule.js
script/schedule.js
script/schedule.js
/* var blocks = { "regular":[ {"start":"7:45","end":"9:06","name":"Block 1","bold":false,"startHour":7,"startMinute":45,"endHour":9,"endMinute":6}, {"start":"9:06","end":"9:16","name":"Break","bold":true,"startHour":9,"startMinute":6,"endHour":9,"endMinute":16}, {"start":"9:21","end":"10:53","name":"Block...
JavaScript
0.000002
@@ -1795,16 +1795,159 @@ ) %5D;%0A%7D%0A%0A +function timeUpdate () %7B%0A $('#time').html('The time is currently ' + new Date().toLocaleTimeString() + '.');%0A $('#next').html(getNext());%0A%7D%0A%0A function @@ -4765,16 +4765,12 @@ %7D%0A -%7D);%0A%0Avar + %0A tim @@ -4776,16 +4776,34 @@ meUpdate +();%0A ...
010c6331820fcaebf552ef93a60e4be5fd19d2cd
add empty-option test check
specs/unit/patterns/behavioral/memento.spec.js
specs/unit/patterns/behavioral/memento.spec.js
/* globals expect, beforeEach, it, describe, jasmine, spyOn */ import mementoBuilder from '../../../../src/patterns/behavioral/memento.js'; import commandBuilder from '../../../../src/patterns/behavioral/command.js'; import chainOfResponsibilityBuilder from '../../../../src/patterns/behavioral/chainOfResponsibility.js'...
JavaScript
0.000002
@@ -778,32 +778,334 @@ get(key);%0A %7D);%0A + it('should allow empty options', function() %7B%0A var emptyOptions = undefined;%0A var Memento = mementoBuilder(emptyOptions).build();%0A var memento = new Memento();%0A var key = memento.add(%7Btest: 'testing'%7D);%0A var result = memento.get(key);%0A ...
e865a38a96ab136fd5e91de4945a2af3d01052cb
allow non-object values in slots
js/app/interfaces/module.js
js/app/interfaces/module.js
/* exported Class, Module */ const GObject = imports.gi.GObject; const Lang = imports.lang; const Knowledge = imports.app.knowledge; /** * Class: Class * Counterpart to Lang.Class for modules * * To create a new module, use this metaclass as you would use Lang.Class to * create a regular class: * * > const My...
JavaScript
0.000004
@@ -2256,24 +2256,73 @@ ecurse(o) %7B%0A + if (typeof o !== 'object')%0A return o;%0A Object.g
941be441335bb5dc706f123bbfa007f4e41cdd67
Throw error if indexed-db-configuration is not extended
addon/services/indexed-db-configuration.js
addon/services/indexed-db-configuration.js
import Ember from 'ember'; import computed from 'ember-computed'; const { Service, get, typeOf: getTypeOf, A: array } = Ember; /** * This service should be overwritten to configure IndexedDB. * Overwrite the `mapTable` property & add `versionX` properties to fit your application. * * @module Services * @...
JavaScript
0.000001
@@ -4375,24 +4375,176 @@ Version');%0A%0A + if (!currentVersion) %7B%0A throw new Error('You need to override services/indexed-db-configuration.js and provide at least one version.');%0A %7D%0A%0A for (let
942dbe6f3f3505709d132a481f7cef2d0898d499
add more comment
js/directives/fileselect.js
js/directives/fileselect.js
// watches changes in the file upload control (input[file]) and // puts the files selected in an attribute var app = angular.module("webui.directives.fileselect", ["webui.services.deps"]); app.directive("indeterminate", [ "$parse", function syncInput (parse) { return { require : "ngModel", ...
JavaScript
0
@@ -1164,293 +1164,8 @@ %7D;%0A - var setModelValueWithoutSideEffect = function (newVal) %7B%0A setter(scope, newVal);%0A ngModelCtrl.$modelValue = newVal;%0A ngModelCtrl.$viewValue = newVal;%0A ngModelCtrl.$render();%0A ...
8cc29bedaa9654ef17e1e40b2239e4f1c2f1f92b
fix CLI installation for NPM
slideshow-cli.js
slideshow-cli.js
/* ** slideshow -- Observe and Control Slideshow Applications ** Copyright (c) 2014 Ralf S. Engelschall <http://engelschall.com> ** ** This Source Code Form is subject to the terms of the Mozilla Public ** License (MPL), version 2.0. If a copy of the MPL was not distributed ** with this file, You can obtain one at...
JavaScript
0
@@ -1,8 +1,28 @@ +#!/usr/bin/env node%0A /*%0A** s
de72a7d3ef475d75033ce2c87b411d4fb326e77a
Fix CSP-headers
scripts/headers.js
scripts/headers.js
module.exports = { 'Content-Security-Policy-Report-Only': [ `default-src 'self'`, `script-src 'self' https://*.firebaseio.com/ https://unpkg.com`, `style-src 'self' 'unsafe-inline' blob: https://fonts.googleapis.com/`, `font-src 'self' https://fonts.gstatic.com/`, `img-src 'self' data blob: https:...
JavaScript
0.000002
@@ -300,16 +300,17 @@ lf' data +: blob: h @@ -401,16 +401,23 @@ lf' blob +: data: %60,%0A %60
bbbf40af14e7a187e563c2a6b0a9be46a89ca5ff
Fix #2 HTML templates not minified
gulp/tasks/scripts.js
gulp/tasks/scripts.js
const browserify = require('browserify'); const watchify = require('watchify'); const gulp = require('gulp'); const $ = require('gulp-load-plugins')(); const config = require('../config'); const source = require('vinyl-source-stream'); const buffer = require('vinyl-buffer'); let bundler = browserify(config.scripts.sou...
JavaScript
0.000245
@@ -446,16 +446,47 @@ ml'%5D %7D,%0A + minify: config.production,%0A %7D)%0A .
1c25a5f71f43b66acc6acaefc3c1d6562b816ebf
Stop capturing stderr for the test resutls, so we can dump stuff in stderr and not have it mess up the json to xml conversion.
gulp/tasks/testing.js
gulp/tasks/testing.js
// Use the gulp-help plugin which defines a default gulp task // which lists what tasks are available. var gulp = require('gulp-help')(require('gulp')); // Process and file manipulation to capture stdout // from the Cucumber tests. var spawn = require('child_process').spawn; var fs = require('fs'); // Sequential Gulp...
JavaScript
0
@@ -3130,85 +3130,8 @@ g);%0A - stream.stderr.setEncoding(baseEncoding);%0A stream.stderr.pipe(fileStream);%0A st
0bfd373e07efc1622bfe253c79d8a60810121cc2
Improve binary version verification error message (#409)
scripts/install.js
scripts/install.js
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const http = require('http'); const os = require('os'); const path = require('path'); const HttpsProxyAgent = require('https-proxy-agent'); const fetch = require('node-fetch'); const ProgressBar = require('progress'); const Proxy = require('proxy-from-env')...
JavaScript
0
@@ -3354,16 +3354,25 @@ w Error( +%0A %60Unexpec @@ -3393,18 +3393,18 @@ version -: +%22 $%7Bversio @@ -3405,17 +3405,48 @@ version%7D -%60 +%22, expected %22$%7Bexpected%7D%60%0A );%0A %7D
d7292a6243474324891caec88ef94d06f55cc009
Check routes before internal mappings to give full control over weird fact that Helma returns mappings as children (it should not...).
type/helma/Root/routes.js
type/helma/Root/routes.js
// Install UrlRouting in the root object, so other modules can install routes // for Root without having to define getChildElement again. UrlRouting.draw(this, {}); Root.inject({ getChildElement: function(name) { // TODO: Fix Helma bug where mappings are returned before subnodes. // e.g. this.get('Users') and th...
JavaScript
0
@@ -526,48 +526,144 @@ %0A%09%09%09 -obj = this.base(name);%0A%09%09%09if (!obj) +// Try url routes first, this.base as last, to really offer multiple%0A%09%09%09// ways to interfere with Helma returning internal mappings. %0A%09%09%09 -%09 obj @@ -695,16 +695,56 @@ name);%0A +%09%09%09if (!obj)%0A%09%09%09%09obj...
76a414329558a780cb815f16ca56a0068cef9811
Update node version check and remove unneccesary steps in publish script (#1151)
scripts/publish.js
scripts/publish.js
#!/usr/bin/env node const shell = require('shelljs'); shell.set('-e'); shell.set('+v'); /* * Assumptions: * 0. You have shelljs installed globally using `npm install -g shelljs`. * 1. The script is running locally - it's not optimized for Travis workflow * yet. * 2. The script is running in the right branch (...
JavaScript
0
@@ -553,19 +553,20 @@ h Node v -8.9 +10.2 .0 and a @@ -691,17 +691,18 @@ or) !== -8 +10 %7C%7C pars @@ -715,17 +715,17 @@ inor) %3C -9 +2 ) %7B%0A co @@ -806,11 +806,12 @@ ion -8.9 +10.2 .0.' @@ -3659,153 +3659,8 @@ );%0A%0A -// Add formatting changes%0Ashell.exec(%60git add .%60);%0A%0A// Commit back cha...
c455d73cba988361df5398fb4afb2face2779185
check for wrong input or arguments
treeJson.js
treeJson.js
var fs = require("fs"); var _ = require("underscore"); var pathModule = require("path"); function makeTree(directoryPath, parentName, nodeName, nodeChildren, exclude, allowedExtensions) { var excluded_nodes = exclude ? exclude : []; var allowed_extensions = allowedExtensions ? allowedExtensions : []; ...
JavaScript
0.000001
@@ -122,66 +122,11 @@ th, -parentName, nodeName, nodeChildren, exclude, allowedExtens +opt ions @@ -155,16 +155,24 @@ nodes = +options. exclude @@ -173,16 +173,24 @@ clude ? +options. exclude @@ -225,16 +225,24 @@ sions = +options. allowedE @@ -253,16 +253,24 @@ sions ? +options. allowedE @@ -366,61 +3...
2843bdf40e5d3a1f40c61eab3eb8890488c691b8
Add source on NuGet push
scripts/release.js
scripts/release.js
#!/usr/local/bin/jbash /* Releases dbup-sqlserver-scripting This includes: building in release mode, packaging, and publishing on NuGet, creating a GitHub release, uploading .nupkg to GitHub release. Example: release.sh 2.0.0 "Fixed DOW bug causing exception" */ // Halt on an error set("-e"); // cd to...
JavaScript
0.000001
@@ -1768,16 +1768,61 @@ pkgFile%7D + -Source https://www.nuget.org/api/v2/package %60)%0A%0A// C
adb4b475aeab362438bd4c4f19509ad91b6d4c30
Fix Complex.sqrt
Complex.js
Complex.js
/** @param {number} re * @param {number} im * @constructor */ function Complex(re, im) { this.re = re; this.im = im; } /** @return {number} */ Complex.prototype.abs = function() { return Math.sqrt(this.abs2()); }; /** @return {number} */ Complex.prototype.abs2 = function() { return this.re * this....
JavaScript
0.000143
@@ -1025,32 +1025,152 @@ im / abs2);%0A%7D;%0A%0A +/** @param %7BComplex%7D z%0A * @return %7Bboolean%7D */%0AComplex.isZero = function(z) %7B%0A return z.re === 0 && z.im === 0;%0A%7D;%0A%0A /** @param %7BComp @@ -1809,32 +1809,88 @@ = function(z) %7B%0A + if (Complex.isZero(z))%0A return Complex.zero...
c51d5627131cf73e44bdc7f5bf9afc89b0c68651
change tilemap color
src/Preloader.js
src/Preloader.js
/** * * The Preloader state is used to preload assets before the MainMenu is displayed. Once assets have been loaded the Preloader state * will start the MainMenu state */ Game.Preloader = function(game) { }; Game.Preloader.prototype = { preload:function(){ var preloadBG = this.add.sprite((this.world...
JavaScript
0
@@ -1300,21 +1300,27 @@ img/ -purpleT +chompermazet iles -et +32g .png
26c63306f8260bcfd49ddf6ebdf57cc1ab41d18a
Fix a null bug and add a default element filter.
src/analytics.js
src/analytics.js
/** * analytics.js - Provides an abstraction over code that calls Google Analytics * for user tracking. Attaches to router:navigation:success event to track when * a page has been loaded. Registers a click event handler for elements that are defined * in the filter function to track clicks. */ 'use strict'; impo...
JavaScript
0
@@ -717,16 +717,23 @@ ilter: ( +element ) =%3E %7B%0A%09 @@ -1038,16 +1038,200 @@ d: false +,%0A filter: (element) =%3E %7B%0A%09%09%09%09%09%09return element instanceof HTMLElement &&%0A%09%09%09%09%09%09(element.nodeName.toLowerCase() === 'a' %7C%7C%0A%09%09%09%09%09%09%09element.nodeName.toLowerCase() === 'but...
633b3c1396cbcbb273860a78c4eba316ab298ab9
fix themeEngine config with a default config
lib/themeEngine/loadThemeConfig.js
lib/themeEngine/loadThemeConfig.js
var _ = require('lodash'); var path = require ('path'); var configCache = null; /** * Load project theme configs * * @param {String} projectPath * @return {object} project plugin configs */ module.exports = function loadThemeConfig(projectPath) { if (! _.isEmpty(configCache) ) return configCache; if (!p...
JavaScript
0
@@ -354,16 +354,17 @@ .cwd();%0A +%0A var co @@ -371,16 +371,86 @@ nfig = %7B +%0A app: 'we-theme-site-wejs',%0A admin: 'we-theme-admin-default'%0A %7D;%0A%0A va @@ -745,107 +745,8 @@ %7D%0A - // project plugin config file not found%0A throw new Error('Theme config not found in :', p);%0A %7D...
224153318d538792165be4526d0aace12a898b63
Rename function
src/javascript/binary/websocket_pages/user/new_account/account_type.js
src/javascript/binary/websocket_pages/user/new_account/account_type.js
const BinarySocket = require('../../socket'); const BinaryPjax = require('../../../base/binary_pjax'); const Client = require('../../../base/client'); const urlFor = require('../../../base/url').urlFor; const AccountType = (() => { let url_real, url_ico, container; const onLoad = ...
JavaScript
0.000005
@@ -721,32 +721,24 @@ -addEventListener +onSubmit ();%0A @@ -842,24 +842,16 @@ nst -addEventListener +onSubmit = (
a05c1ca5b880767e541ef234b49e4ed93fa6d933
Update twitter.js
src/main/content/jcr_root/apps/wcm/core/clientlibs/sites/js/twitter.js
src/main/content/jcr_root/apps/wcm/core/clientlibs/sites/js/twitter.js
(function(window, document, Granite, $) { "use strict"; var TWITTER_ACTIVATOR = ".cq-siteadmin-admin-actions-twitter-activator"; $(document).on("click", TWITTER_ACTIVATOR, function(e) { var selection = $(".foundation-collection").first().find(".foundation-selections-item").first(); var pat...
JavaScript
0.000002
@@ -1,8 +1,667 @@ +/*%0A * #%25L%0A * aem-admin-extension-customize-sites%0A * %25%25%0A * Copyright (C) 2014 Adobe%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *...
b96ee5313619f4fde00091b3c42306cb6c44037b
Implement the patchOnePhoto callback for listingController. Close #55
server/config/listings/listingController.js
server/config/listings/listingController.js
const db = require('../../../database/schemas.js'); module.exports = { getOne: (req, res) => { db.Post.findOne({ where: { id: req.params.listId, }, }) .then((listing) => { res.send(listing); }); }, getAll: (req, res) => { db.Post.findAll({}) .then((listings) => ...
JavaScript
0
@@ -1476,24 +1476,267 @@ , res) =%3E %7B%0A + db.Picture.update(%0A %7B%0A img_name: req.body.img_name,%0A img_path: req.body.img_path,%0A %7D,%0A %7B%0A where: %7B%0A id: req.params.id,%0A %7D,%0A %7D)%0A .then((status) =%3E %7B%0A res.send(status);%...
95a8974e002d3fc821b1755e7e60613a56983726
Fix a clash of kings (#273)
server/game/cards/plots/01/aclashofkings.js
server/game/cards/plots/01/aclashofkings.js
const PlotCard = require('../../../plotcard.js'); class AClashOfKings extends PlotCard { setupCardAbilities() { this.reaction({ when: { afterChallenge: (e, challenge) => ( challenge.winner === this.controller && challenge.challengeType ===...
JavaScript
0.005419
@@ -361,16 +361,24 @@ e.loser. +faction. power %3E
ddfde6ef3daf887234148a20fbc23eca16df02ac
Add doc comments to thumbail.js
core/mixins/thumbnail.js
core/mixins/thumbnail.js
import { getThumbnailPath } from '@vue-storefront/core/helpers' export const thumbnail = { methods: { /** * Return thumbnail URL for specific base url and path * @param {string} relativeUrl * @param {number} width * @param {number} height * @param {string} pathType */ getThumbna...
JavaScript
0
@@ -291,16 +291,41 @@ athType%0A + * @returns %7Bstring%7D%0A */%0A @@ -606,24 +606,49 @@ ber%7D height%0A + * @returns %7Bstring%7D%0A */%0A
53a1f72ccf74f807074486cf6b80d4f98177d42e
Add name length validation
models/Player.js
models/Player.js
/** * Module dependencies. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema // create a schema const playerSchema = new Schema({ name: String, username: { type: String, required: true, unique: true, minlength: 1 }, team: Schema.Types.ObjectId, created_at: Date, }); // create a model ...
JavaScript
0.000003
@@ -157,22 +157,46 @@ name: -String +%7B type: String, minlength: 1 %7D ,%0A user @@ -500,18 +500,16 @@ d_at) %7B%0A - this
29ea906aba94b153d439675b26a3f15094fe472e
Remove async/await from 'accordion-item-title'.
src/AccordionItemTitle/accordion-item-title.js
src/AccordionItemTitle/accordion-item-title.js
// @flow import React, { Component, type ElementProps } from 'react'; import classNames from 'classnames'; type AccordionItemTitleProps = ElementProps<'div'> & { hideBodyClassName: string, uuid: string | number, }; type AccordionItemTitleState = {}; class AccordionItemTitle extends Component< AccordionI...
JavaScript
0
@@ -439,14 +439,8 @@ ck = - async () @@ -440,24 +440,24 @@ k = () =%3E %7B%0A + cons @@ -672,14 +672,8 @@ -await acco @@ -682,16 +682,29 @@ ionStore +%0A .setExpa @@ -744,27 +744,57 @@ xpanded) -;%0A%0A +%0A .then(() =%3E %7B%0A if (acco @@ -781,24 +781,2...
1cd11bbf96c5d4cf79b4fb15bc6712376991faf8
declare all attribute types
lib/adminService.js
lib/adminService.js
/* jslint node: true, esnext: true */ 'use strict'; const path = require('path'), process = require('process'), ssh2 = require('ssh2'), mat = require('model-attributes'), endpoint = require('kronos-endpoint'), service = require('kronos-service'); /** * */ class ServiceAdmin extends service.Service { static g...
JavaScript
0.000002
@@ -591,14 +591,14 @@ : 'i -nteger +p-port '%0A%09%09 @@ -673,16 +673,36 @@ ey(s)',%0A +%09%09%09%09%09%09type: 'blob',%0A %09%09%09%09%09%09ne
6df0daebb8c4be95ba41a8cb10e3188121073d5a
Bump version of `bundle-visualizer` to 1.0.3.
packages/non-core/bundle-visualizer/package.js
packages/non-core/bundle-visualizer/package.js
Package.describe({ version: '1.0.2', summary: 'Meteor bundle analysis and visualization.', documentation: 'README.md', }); Npm.depends({ "d3-selection": "1.0.5", "d3-shape": "1.0.6", "d3-hierarchy": "1.1.4", "d3-transition": "1.0.4", "pretty-bytes": "4.0.2", }); Package.onUse(function(api) { api.use...
JavaScript
0
@@ -28,17 +28,17 @@ n: '1.0. -2 +3 ',%0A sum
ad98186afcbcc34cf89948e52ccba0b8f5f94b5a
remove redundant semicolons from export declarations
test/core/fixtures/generation/types/ExportDeclaration-ExportSpecifier-ExportBatchSpecifier/actual.js
test/core/fixtures/generation/types/ExportDeclaration-ExportSpecifier-ExportBatchSpecifier/actual.js
export default 42; export default {}; export default []; export default foo; export default function () {}; export default class {}; export default function foo() {} export default class Foo {} export * from "foo"; export { foo } from "foo"; export { foo, bar } from "foo"; export { foo as bar } from "foo"; export { foo...
JavaScript
0.998592
@@ -91,33 +91,32 @@ t function () %7B%7D -; %0Aexport default @@ -123,17 +123,16 @@ class %7B%7D -; %0Aexport
be808b399ccfcb330d6a7c71c7c1d1e80dd3f993
Add asJS to immutableHelper
src/helper/immutableHelper.js
src/helper/immutableHelper.js
import { Iterable, fromJS } from 'immutable'; export const asImmutable = (obj) => (Iterable.isIterable(obj) ? obj : fromJS(obj));
JavaScript
0.000001
@@ -77,16 +77,19 @@ bj) =%3E ( +%0A Iterable @@ -124,11 +124,100 @@ mJS(obj) +%0A);%0A%0Aexport const asJS = (obj) =%3E (%0A obj && Iterable.isIterable(obj) ? obj.toJS() : obj%0A );%0A
8420b6cd3df03cb0f2e16293eb1d75f433b5fb4c
Update syntax for style on removal
modules/style.js
modules/style.js
var raf = requestAnimationFrame || setTimeout; var nextFrame = function(fn) { raf(function() { raf(fn); }); }; function setNextFrame(obj, prop, val) { nextFrame(function() { obj[prop] = val; }); } function updateStyle(oldVnode, vnode) { var cur, name, elm = vnode.elm, oldStyle = oldVnode.data.style || {}, ...
JavaScript
0
@@ -408,45 +408,26 @@ if -( (name -%5B0%5D !== 'r -' %7C%7C name%5B0%5D !== '-') +emove' &&%0A @@ -663,24 +663,83 @@ node, rm) %7B%0A + var s = vnode.data.style;%0A if (!s %7C%7C !s.remove) return;%0A var cur, n @@ -809,38 +809,24 @@ style = -vnode.data.style %7C%7C %7B%7D +s.remove ;%0A var @@ -867,...
fac44464f2958fb42e4593b17b0adbecfa0809d6
Update script2.js
scripts/script2.js
scripts/script2.js
var x_timer; $('#search').bind("keyup blur", function (event){ var exclud = [13,27,37,38,39,40]; clearTimeout(x_timer); //if (event.keyCode != '13' && event.keyCode != '40' && event.keyCode != '39' && event.keyCode != '38' && event.keyCode != '37') { x_timer = setTimeout(function(){ if (exclud.indexOf(event.which) ...
JavaScript
0.000001
@@ -2679,16 +2679,22 @@ ass='fa +fa-3x fa-arrow
aec0b918ac281761f5f843aa31f6afb146a1d1b8
change ref to element
src/collections/Form/Form.js
src/collections/Form/Form.js
import _ from 'lodash'; import $ from 'jquery'; import React, {Component, PropTypes} from 'react'; import classNames from 'classnames'; import META from 'src/utils/Meta'; export default class Form extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, settings: Pr...
JavaScript
0.000001
@@ -620,20 +620,23 @@ is.refs. -form +element ;%0A co
aa51cea25173b387201c833e34299803a226d3b5
Update Knex user model to create table properly (#233)
generators/service/templates/model/knex-user.js
generators/service/templates/model/knex-user.js
/* eslint-disable no-console */ // <%= name %>-model.js - A KnexJS // // See http://knexjs.org/ // for more of what you can do here. module.exports = function (app) { const db = app.get('knexClient'); db.schema.createTableIfNotExists('<%= kebabName %>', table => { table.increments('id'); <% if(authenticati...
JavaScript
0
@@ -199,16 +199,102 @@ ent');%0A%0A + db.schema.hasTable('%3C%25= kebabName %25%3E').then(exists =%3E %7B%0A if(!exists) %7B%0A db.sch @@ -312,19 +312,8 @@ able -IfNotExists ('%3C%25 @@ -336,24 +336,30 @@ table =%3E %7B%0A + table.in @@ -370,24 +370,30 @@ ents('id');%0A + %3C%...
f855ba861690d6ba954ffb7abdad509564428190
support ident log
gas-log.js
gas-log.js
(function () { /************************************************************************************** * * GasL - Google Apps Script Loging-framework * * Support log to Spreadsheet / Logger / LogEntries(next version) , * and very easy to extended to others. * * Github: https://github.com/zixia/gasl *...
JavaScript
0
@@ -1258,16 +1258,116 @@ rinter() +%0A var logIdent = 'GasL'%0A%0A if (options && options.ident) %7B%0A logIdent = options.ident%0A %7D %0A%0A if @@ -1626,17 +1626,20 @@ ter ' + -p +logP rinter + @@ -1657,17 +1657,17 @@ GasLog -p +P rinter!' @@ -3837,17 +3837,28 @@ gPrinter -( +.call(this, ...
821282e6a6579eafefd70c305f9834fc3e645ffb
add minor spacing
scripts/scripts.js
scripts/scripts.js
'use strict' const date = new Date(); module.exports = { // Utility Functions for Bot.js /** * normalizes input from chat for grimoire card searches * - converts all characters to lowercase * - removes any colons found in chat input * - removes any spaces and replaces with slug "-" */ normalizeCardInput: ...
JavaScript
0.000022
@@ -1141,16 +1141,17 @@ e();%0A%7D,%0A +%0A // Retur
edb165ef17ea0c506bc85d283d578550e4e0e3e4
Add back Image.isImage property that got lost by accident
lib/assets/Image.js
lib/assets/Image.js
var util = require('util'), extendWithGettersAndSetters = require('../util/extendWithGettersAndSetters'), Asset = require('./Asset'); var dprMatcher = /(?:@(\d+(?:[\.,]\d+)?)x)?$/; function Image(config) { Asset.call(this, config); if (this._fileName) { var dpr = this._fileName.replace(this._...
JavaScript
0
@@ -803,16 +803,35 @@ %0A */ +%0A isImage: true, %0A%0A no
c1368575ef26cd8c942719f66d0f9598c32d0ced
correct variable name
troposphere/static/js/stores/ProjectVolumeStore.js
troposphere/static/js/stores/ProjectVolumeStore.js
define( [ 'underscore', 'dispatchers/dispatcher', 'stores/store', 'rsvp', 'constants/ProjectVolumeConstants', 'controllers/notifications', 'models/volume', 'backbone', 'globals' ], function (_, Dispatcher, Store, RSVP, ProjectVolumeConstants, NotificationController, Volume, Bac...
JavaScript
0.99653
@@ -2146,17 +2146,24 @@ success( -m +successM essage);
de151d5cb1f1e644e24f75dc66a9d06a5d045703
update w/new instance API
src/horizontal-pager/index.js
src/horizontal-pager/index.js
/** * Entry point to horizontal-pager example. * * Copyright (c) 2017 Alex Grant (@localnerve), LocalNerve LLC * Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms. */ /* global document */ /* eslint-disable import/no-unresolved */ import createHorizontalPager from './horizontal...
JavaScript
0
@@ -960,16 +960,48 @@ e%0A %7D);%0A + horizontalPager.initialize();%0A %7D, %7B%0A o
1aa057ddd95028428ba19075360d3191da650693
update re landing page url
src/plugin/iframe_root/modules/widgets/genomes/kbaseGenomeRELineage.js
src/plugin/iframe_root/modules/widgets/genomes/kbaseGenomeRELineage.js
/** * Shows taxonomic lineage. * */ define(['jquery', 'uuid', 'kb_lib/html', 'kb_lib/jsonRpc/dynamicServiceClient', 'kbaseUI/widget/legacy/widget'], function ($, Uuid, html, DynamicServiceClient) { 'use strict'; const t = html.tag; const a = t('a'); const div = t('div'); const span = t('span'); ...
JavaScript
0
@@ -1193,33 +1193,24 @@ = %60/#review/ -taxonomy/ $%7BtaxonRef.n @@ -5478,17 +5478,8 @@ iew/ -taxonomy/ $%7Bta
0e759be3be2db0cc305ce63b43eea737a6a77b43
fix enterprise routing assertion (#6495)
ui/tests/acceptance/enterprise-replication-test.js
ui/tests/acceptance/enterprise-replication-test.js
import { click, fillIn, findAll, currentURL, find, visit, settled } from '@ember/test-helpers'; import { module, test } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import authPage from 'vault/tests/pages/auth'; import { pollCluster } from 'vault/tests/helpers/poll-cluster'; import withFlash from '...
JavaScript
0
@@ -811,23 +811,16 @@ /$%7Btype%7D -/manage %60, 'redi
b68d23487ca5c1d2c3fb52e0a13172dc75182c47
Update updateQuery params in TextField - pass object
packages/web/src/components/basic/TextField.js
packages/web/src/components/basic/TextField.js
import React, { Component } from "react"; import { connect } from "react-redux"; import { addComponent, removeComponent, watchComponent, updateQuery, setValue } from "@appbaseio/reactivecore/lib/actions"; import { isEqual, debounce, checkValueChange, checkPropChange } from "@appbaseio/reactivecore/lib/utils/h...
JavaScript
0
@@ -2299,24 +2299,29 @@ ;%0A%09%09let -callback +onQueryChange = null; @@ -2353,24 +2353,29 @@ e) %7B%0A%09%09%09 -callback +onQueryChange = props @@ -2414,16 +2414,34 @@ teQuery( +%7B%0A%09%09%09componentId: props.co @@ -2450,16 +2450,26 @@ onentId, +%0A%09%09%09query: query(v @@ -2481,23 +2481,36 @@ pr...
a27475fbc72e838727bae0e6662bdb7de4502702
Fix a invalid variable name
lib/callback-end.js
lib/callback-end.js
module.exports = function blocklike(func){ return function(){ var args = Array.prototype.slice.apply(arguments); var callback = args[args.length - 1]; if (typeof callback === 'function') { while (args.length < func.length) { args.splice(args.length - 1, 0, undefined); } } retur...
JavaScript
0.999999
@@ -23,17 +23,19 @@ ion -blocklike +callbackEnd (fun
edbb9203fe8288b81e3ba3be970db365134c3c9a
Fix in TextPropertyEditor.
ui/TextPropertyEditor.js
ui/TextPropertyEditor.js
'use strict'; var Surface = require('./Surface'); var TextProperty = require('./TextPropertyComponent'); /** Editor for a text property (annotated string). Needs to be instantiated inside a {@link ui/Controller} context. @class @component @extends ui/Surface @prop {String} name unique editor name @pro...
JavaScript
0
@@ -885,16 +885,28 @@ der. -call(thi +apply(this, argument s);%0A
c050d0c76dab885c7afb2563577da2381a893547
Refactor Attributes to render array of trait names
src/components/Attributes.js
src/components/Attributes.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Trait from './Trait'; const maxDots = 10; const rankDots = [7, 5, 3]; class Attributes extends Component { static propTypes = { attributes: PropTypes.object.isRequired, setRank: Prop...
JavaScript
0
@@ -189,16 +189,69 @@ , 5, 3%5D; +%0Aconst traitNames = %5B'physical', 'social', 'mental'%5D; %0A%0Aclass @@ -529,16 +529,18 @@ const + %7B attribu @@ -542,16 +542,18 @@ tributes + %7D = this. @@ -561,323 +561,115 @@ rops -.attributes;%0A%0A return (%0A %3Cdiv%3E%0A %3Ch3%3EAttributes%3C/h3%...
cb5782ad188f8939d8df68b7d7b7c47bb4934b6d
set timeout when checkout the new version
lib/check-update.js
lib/check-update.js
/** * Created by axetroy on 17-2-15. */ const path = require('path'); const co = require('co'); const Promise = require('bluebird'); const axios = require('axios'); const semver = require('semver'); const log4js = require('log4js'); const logger = log4js.getLogger('CHECK'); const pkg = require(path.join(__dirname, '...
JavaScript
0
@@ -494,16 +494,33 @@ /latest%60 +, %7Btimeout: 2000%7D )%0A .t
a0a5f459b26209deaa1d3faebc35b2c67cfa6e5e
Remove name property
lib/cmds/playing.js
lib/cmds/playing.js
'use strict'; exports.info = { name: 'playing', desc: 'Posts a list of members playing the specified game.', usage: '<game>', aliases: [], }; const utils = require('../utilities'); exports.run = (client, msg, params = []) => new Promise((resolve, reject) => { if (msg.channel.type === 'dm') { utils.dmDen...
JavaScript
0.000013
@@ -28,27 +28,8 @@ = %7B%0A - name: 'playing',%0A de
6b9f3c38ba15a803331a1846fc1e1d81be729343
Raise error same to synchronous version
lib/command-line.js
lib/command-line.js
var program = require('commander'); var nroonga = require('./wrapped-nroonga'); var Domain = require('./database/domain').Domain; var version = require('../package').version; var path = require('path'); var awssum = require('awssum'); var amazon = awssum.load('amazon/amazon'); var CloudSearch = awssum.load('amazon/clo...
JavaScript
0
@@ -6687,24 +6687,116 @@ , domain) %7B%0A + if (error)%0A self.raiseFatalError('You must specify an existing domain name.');%0A callba
5f45c42f6dac6c5c818e328b4c82ae6c1bcc5386
fix index off-by-one error.
search_last_occ.js
search_last_occ.js
var pattern = "Wor"; var m = pattern.length; var string = "Hello, World!"; var n = string.length; var last_occ = {}; for (var k = 0; k < m - 2; k++) { last_occ[pattern[k]] = m - 1 - k; } var i = 0; while (i <= n - m) { var j = 0; while (j < m && pattern[j] == string[i + j]) { j = j + 1; } if (j...
JavaScript
0.000001
@@ -131,16 +131,17 @@ = 0; k %3C += m - 2;
7e0f8fc57bfffbce320d7bb896d271d3931d7bb9
handle skipped message as information_source.
services/logs2slack/src/readFromRabbitMQ.js
services/logs2slack/src/readFromRabbitMQ.js
// @flow const { logger } = require('@lagoon/commons/src/local-logging'); const { getSlackinfoForProject } = require('@lagoon/commons/src/api'); var IncomingWebhook = require('@slack/client').IncomingWebhook; export type ChannelWrapper = { ack: (msg: Object) => void, } export type RabbitMQMsg = { content: Buff...
JavaScript
0
@@ -1198,24 +1198,56 @@ e:receive%22:%0A + case %22github:push:skipped%22:%0A sendTo
4dda3962aadb04d7e0e1dd0e2cd553963771b842
Update init.js
lib/console/init.js
lib/console/init.js
'use strict'; var pathFn = require('path'); var chalk = require('chalk'); var fs = require('hexo-fs'); var tildify = require('tildify'); var spawn = require('hexo-util/lib/spawn'); var assign = require('object-assign'); var Promise = require('bluebird'); var commandExistsSync = require('command-exists').sync; var ASS...
JavaScript
0.000001
@@ -1263,20 +1263,16 @@ cies');%0A - %0A if @@ -1365,16 +1365,17 @@ = 'npm' +; %0A %7D%0A%0A
b0e22ec674173e449d3858565b254ec007b690bc
increase timeout to 4sec
cypress/support/index.js
cypress/support/index.js
export const DEBUG_FLAG = false; // *********************************************************** // This example support/index.js is processed and // loaded automatically before your test files. // // This is a great place to put global configuration and // behavior that modifies Cypress. // // You can change the locat...
JavaScript
0.000044
@@ -1179,17 +1179,18 @@ cy.wait( -5 +10 0, %7B log
3cc730b9b5f98263b1c75a8d650144314617be3f
Add comments to PostsShow
src/components/posts_show.js
src/components/posts_show.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions'; class PostsShow extends Component { componentDidMount() { const { id } = this.props.match.params; this.props.fetchPost(id); } onDe...
JavaScript
0
@@ -224,24 +224,85 @@ idMount() %7B%0A + // fetch post with id that matches ID param value in URL%0A const %7B @@ -396,47 +396,180 @@ -const %7B id %7D = this.props.match.params; +// delete post with id that matches ID param value in URL%0A const %7B id %7D = this.props.match.params;%0A // pass ca...
ae20245de42bfa980f46709b40d24fbf6772f547
fix lint error
src/components/switch-box.js
src/components/switch-box.js
import React from 'react'; export default class SwitchBox extends React.Component { constructor() { super(); this.state = { hasStarted: false, isComplete: false, hasClicked: false }; this.startTime = null; this.stopTime = null; } componentWillMount() { // setTimeout((...
JavaScript
0.000006
@@ -1963,18 +1963,20 @@ %7D)%0A -le +cons t rand =
e1f23c0fee6cc3986bce73198105593f363ab730
Update RPC data encoding
src/conbo/net/HttpService.js
src/conbo/net/HttpService.js
/** * HTTP Service * * Base class for HTTP data services, default settings are designed for JSON * REST APIs; parseFunction required for XML data sources * * @class conbo.HttpService * @augments conbo.EventDispatcher * @author Neil Rackett */ conbo.HttpService = conbo.EventDispatcher.extend( /** @lends co...
JavaScript
0.000001
@@ -1236,19 +1236,16 @@ data);%0A -%09%09%0A %09%09data = @@ -1259,118 +1259,32 @@ sRpc -%0A%09%09%09? (method == 'GET' ? undefined : JSON.stringify(conbo.isFunction(data.toJSON) ? data.toJSON() : data))%0A%09%09%09 + ? JSON.stringify(data) : da @@ -1342,21 +1342,22 @@ %09%09type: -'GET' +method ,%0A%09%09%09h...
b7a3bc6ff840a9a35b6718eb53f5209677e07c27
add log out const
src/constants/ActionTypes.js
src/constants/ActionTypes.js
export const USER_LOGGED_IN = 'USER_LOGGED_IN'
JavaScript
0.000001
@@ -40,8 +40,57 @@ GED_IN'%0A +export const USER_LOGGED_OUT = 'USER_LOGGED_OUT'%0A
f75b90291b98921094813c7cf7fd65ca01c2e51f
make it better
src/containers/search_bar.js
src/containers/search_bar.js
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux' import {fetchWeather} from '../actions/index' function mapStateToProps(state) { return {}; } class SearchBar extends React.Component { constructor(props) { super(props); this.state = { term: '' ...
JavaScript
0.000086
@@ -875,16 +875,183 @@ de'%5D %7D); +%0A%0Agoogle.maps.event.addListener(autocomplete,'place_changed', ()=%3E%7B this.props.fetchWeather(autocomplete.getPlace().formatted_address); this.setState(%7Bterm: ''%7D) %7D); %0A %7D%0A%0A
ecc9a22b27f5163354f01b1b5b8ccf46da5b05ed
Add toggle cmd
src/core/group/group.view.js
src/core/group/group.view.js
import {View} from '../view'; import {Command} from '../command'; import {flatView as nodeFlatView} from '../node'; import {getFactory as valueFactory} from '../services/value'; export class GroupView extends View { constructor(model, commandManager) { super(model); this.valueFactory = valueFactory; this.toggl...
JavaScript
0.000001
@@ -420,24 +420,108 @@ row;%0A%09%09%09%09%7D%0A%0A +%09%09%09%09const toggle = model.group().toggle;%0A%09%09%09%09if (toggle.execute(node) !== false) %7B%0A%09 %09%09%09%09node.sta @@ -552,16 +552,17 @@ expand;%0A +%09 %09%09%09%09cons @@ -582,24 +582,25 @@ l.view;%0A%09%09%09%09 +%09 const nodes @@ -615,16 +6...
8c5922ff56feaf3891858e16d280803e74bc0aa8
Fix a few unlikely issues with empty trade iterations (Binance)
importers/exchanges/binance.js
importers/exchanges/binance.js
const moment = require('moment'); const util = require('../../core/util.js'); const _ = require('lodash'); const log = require('../../core/log'); var config = util.getConfig(); var dirs = util.dirs(); var Fetcher = require(dirs.exchanges + 'binance'); util.makeEventEmitter(Fetcher); var end = false; var done = fals...
JavaScript
0.000007
@@ -581,211 +581,189 @@ ate) +.utc() ;%0A -%0A if (last %3C from) %7B%0A log.debug(%0A 'Skipping data, they are before from date (probably a programming error)',%0A last.format()%0A );%0A return fetch();%0A %7D%0A %7D%0A%0A var next = + var next = last.clone();%0A %7D else %7...
36b73f8bbba1194cfeb222509b35e3d450601d42
add space between icon and autocomplete result
content/abAutoComplete.js
content/abAutoComplete.js
"use strict"; Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); //derived from https://dxr.mozilla.org/comm-central/source/mozilla/accessible/tests/mochitest/autocomplete.js var abAutoComplete = { tbSyncAutoCompleteSearch : null, /** * Register 'tbSyncAutoCompleteSearch' AutoCompleteSea...
JavaScript
0.000006
@@ -5265,32 +5265,39 @@ %7B%0A return + %22 %22 + this.getValueAt
09f39fdc3cf1b13b0b36a770d516411e883b1d4b
add not valid file
01-syntax/08-regexp/numbersAgain.js
01-syntax/08-regexp/numbersAgain.js
// Your code here.
JavaScript
0.000019
@@ -12,8 +12,19 @@ e here.%0A + var iiiii%0A
15c1a8d179e0ea6ba8621008ee24fd6ce00a4f73
Use MessageService in TermApplication
src/core/term-application.js
src/core/term-application.js
import { AbstractApplication } from 'yabf' import program from 'commander' import { LogUtils } from '../shared/utils' import { MessageService } from '../services' import { Command } from './command' export class TermApplication extends AbstractApplication { get version() { return this._version || '0.0.0' } ...
JavaScript
0
@@ -73,51 +73,8 @@ r'%0A%0A -import %7B LogUtils %7D from '../shared/utils'%0A impo @@ -1039,32 +1039,34 @@ -LogUtils.log(%7B message: +this.messageService.print( %60No @@ -1103,12 +1103,9 @@ ion%60 - %7D)%0A +) %0A
f4e5369fc11b698ada5fd26a301599962e06946b
Check existence of gamelist.xml
src/lib/utils.js
src/lib/utils.js
import config from 'config'; import fs from 'fs'; import path from 'path'; import md5File from 'md5-file'; import xml2js from 'xml2js'; export function uniqueID() { function chr4() { return Math.random().toString(16).slice(-4); } return chr4() + chr4() + '-' + chr4() + '-' + chr4() + '-' + chr4(...
JavaScript
0
@@ -2873,24 +2873,137 @@ = false) %7B%0A + const gameListPath = getSystemGamelistPath(system);%0A%0A if (!fs.existsSync(gameListPath)) %7B%0A return %7B%7D;%0A %7D%0A%0A const json @@ -3026,36 +3026,19 @@ on(g -etSystemG ame -l +L istPath -(system) );%0A%0A
4fd84db4c5c5572c973eb02a1c4c6eb339e9142d
remove JSON.stringify to properly serialize data
troposphere/static/js/actions/HelpActions.js
troposphere/static/js/actions/HelpActions.js
define( [ 'jquery', 'controllers/NotificationController', 'globals' ], function ($, NotificationController, globals) { return { sendFeedback: function (feedback) { var data = {}; // The message from the use data["message"] = feedback; // Size information ...
JavaScript
0.000119
@@ -771,28 +771,12 @@ ta: -JSON.stringify( data -) ,%0A
7c61e09661c641bfdc868dbff3cdee23484efff4
create keyPressListener callback before using it
content/komodowakatime.js
content/komodowakatime.js
var komodoWakatime = { VERSION: '2.0.1', action_frequency: 2, time: 0, api_key: '', view: null, fileName: '', keyPressListener: null, onLoad: function (thisObject) { var prefs = Components.classes['@activestate.com/koPrefService;1'] .getService(Components.interfaces....
JavaScript
0
@@ -395,65 +395,8 @@ y';%0A - komodoWakatime.initViewListener(komodoWakatime);%0A @@ -699,32 +699,89 @@ ame);%0A %7D%0A + komodoWakatime.initViewListener(komodoWakatime);%0A %7D,%0A log: @@ -2744,32 +2744,157 @@ (thisObject) %7B%0A + thisObject.keyPressListener = function ...
44e094541123d7fd08b68b05a0f9999d1ff0260e
Update apps.js
app/apps.js
app/apps.js
(function () { 'use strict'; angular .module('DeezerKids', [ // Angular modules. 'ngRoute', 'ngCookies', 'ngAnimate', 'ngMaterial', 'ngMessages' ]) .config(config) .run(run); config.$inject = ['$routePr...
JavaScript
0.000002
@@ -553,21 +553,23 @@ ctTo: '/ -login +welcome '%0A @@ -2413,276 +2413,8 @@ ) %7B%0A - // keep user logged in after page refresh%0A $rootScope.globals = $cookieStore.get('globals') %7C%7C %7B%7D;%0A if ($rootScope.globals.currentUser) %7B%0A $http.defaults.headers.common%5B'Auth...
4be491ce4501ae04fadc75e86017b1700b0d15f9
Add defensive code to LastSensorDownload
src/widgets/SensorHeader/LastSensorDownload.js
src/widgets/SensorHeader/LastSensorDownload.js
import React, { useEffect, useRef } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { StyleSheet } from 'react-native'; import * as Animatable from 'react-native-animatable'; import moment from 'moment'; import { useIntervalReRender } from '../../hooks'; import { TextWit...
JavaScript
0
@@ -2963,16 +2963,22 @@ = sensor + ?? %7B%7D ;%0A%0A ret
bf7cea8a85ef7c4238c624505407d38cd5f6af58
Drop localStorage timeout
ui/js/app/LocalStorage.js
ui/js/app/LocalStorage.js
import { connect } from 'react-redux'; import _ from 'underscore'; const STATE_KEY = 'rippl_v1'; /** * Load saved state from local storage */ export function loadState() { try { const savedState = JSON.parse(localStorage.getItem(STATE_KEY)); if (savedState) { return { district: { id: savedSt...
JavaScript
0
@@ -739,9 +739,9 @@ %0A%7D, -5 +2 * 1
c5aa58931a2471c4ec1de9eefe0a8099d7dda885
resolve less dependencies recursively
source/application/transforms/less/index.js
source/application/transforms/less/index.js
import {resolve} from 'path'; import less from 'less'; import PatternImporterPlugin from 'less-plugin-pattern-import'; import NPMImporterPlugin from 'less-plugin-npm-import'; async function render (source, config) { return await less.render(source, config); } export default function lessTransformFactory (applicati...
JavaScript
0.000024
@@ -49,17 +49,16 @@ 'less';%0A -%0A import P @@ -170,16 +170,17 @@ port';%0A%0A +%0A async fu @@ -315,24 +315,404 @@ lication) %7B%0A +%09// TODO: this is currently to permissive,%0A%09// forbid transitive access in the future%0A%09function getDependencies(file) %7B%0A%09%09return Object.entries(file.dependencies)...
319ffc13a3a533505201b340b0376b1e1995c880
Fix Hound linter comments and remove debugs
app/assets/javascripts/frontend/text-character-count.js
app/assets/javascripts/frontend/text-character-count.js
$.fn.charcount = function() { // Fixes label offset if ($(this).prev().is("label")) { $(this).prev().addClass("char-count-label"); } // Adds class to parent so that we can position the question and input closer var prevElement = this.closest(".question-group").prev(); if (prevElement.hasClass("clear"))...
JavaScript
0
@@ -4091,26 +4091,25 @@ var text -_e +E vents = $._d @@ -4139,26 +4139,25 @@ if (text -_e +E vents) %7B%0A @@ -4188,10 +4188,9 @@ text -_e +E vent @@ -4235,33 +4235,32 @@ yup%22, function ( -e ) %7B%0A @@ -4709,24 +4709,8 @@ ) %7B%0A - alert(1);%0A @@ -4836,17 +4836,16 @@ ...
a58293b0928fb94cfa1a105d2aeb44a71a910b4f
fix calnedar storage bug
platforms/software/storage/calendar/storage.js
platforms/software/storage/calendar/storage.js
'use strict'; const path = require('path'); const _ = require('lodash'); const moment = require('moment'); const low = require('lowdb'); const storage = require('lowdb/file-sync'); const db = low(path.resolve(__dirname, './calendar.json'), { storage }); /* { date: 'time', //day date meetin...
JavaScript
0
@@ -602,34 +602,42 @@ ion(day)%7B%0A -day. +return %7B%0A date - = +: Calendar.co @@ -639,39 +639,77 @@ ar.code( -day.date);%0A return day +new Date(day.date.valueOf())),%0A meetings: day.meetings%0A %7D ;%0A%7D;%0A%0ACa @@ -750,18 +750,26 @@ %7B%0A -day. +return %7B%0A date - = +: Cal @@ -79...
2efd2c476e24ed0b5e4ce70f5c7c5adf28687de0
Fix typo in `aria-labelledby`attribute
src/js/components/CheckBox.js
src/js/components/CheckBox.js
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component, PropTypes } from 'react'; const CLASS_ROOT = "check-box"; export default class CheckBox extends Component { set checked (value) { if ('refs' in this) { this.refs.input.checked = !!value; } } get chec...
JavaScript
0.999756
@@ -993,17 +993,17 @@ aria-l -e +a belledby
351a7d8b6c1c709243496d067796a411d620df9a
Fix schedules passed down to DaySchedule
src/js/components/Schedule.js
src/js/components/Schedule.js
import React, { Component, PropTypes } from 'react'; import _ from 'lodash'; import DaySchedule from './DaySchedule'; import TimeColumn from './TimeColumn'; import StageColumn from './StageColumn'; export default class Schedule extends Component { static propTypes = { schedule: PropTypes.array.isRequired }; ...
JavaScript
0.000001
@@ -683,18 +683,37 @@ le=%7B -schedule%5B0 +groupedSchedules%5B'2016-08-05' %5D%7D/%3E @@ -763,18 +763,37 @@ le=%7B -schedule%5B1 +groupedSchedules%5B'2016-08-06' %5D%7D/%3E @@ -841,18 +841,37 @@ le=%7B -schedule%5B2 +groupedSchedules%5B'2016-08-07' %5D%7D/%3E
132a94c014b2b499a9951939d13586ba28f08dd8
fix generalized data fetching
src/js/services/timeseries.js
src/js/services/timeseries.js
angular.module('n52.core.timeseries', []) .service('timeseriesService', ['$rootScope', 'interfaceService', 'statusService', 'styleService', 'settingsService', 'utils', function($rootScope, interfaceService, statusService, styleService, settingsService, utils) { var defaultDuration = settingsServ...
JavaScript
0.000007
@@ -1416,16 +1416,23 @@ mebuffer +), null , genera @@ -1440,17 +1440,16 @@ izeData) -) %0A
624353fe9284a939c0864ad38be10c0ad03ba8c5
Fix unit-test
app/lib/readings-daily-aggregates-to-highcharts-data.js
app/lib/readings-daily-aggregates-to-highcharts-data.js
import {addIndex, findIndex, findLastIndex, map, memoize} from "ramda"; import moment from "moment"; const mapIndexed = addIndex(map); function getDailyAggregate (dailyAggregates, chartState) { const {sensorId, day, measurementType, source} = chartState; const date = [ moment.utc(day).subtract({day: 1...
JavaScript
0.000929
@@ -6591,17 +6591,20 @@ oment(). -w +ISOW eekday(x
5b2f89a0c754bb7b2c25bf4594fc4be371a60ed0
Change checkpoint interval to 10m
server/codecity.js
server/codecity.js
/** * @license * Code City: Server * * Copyright 2017 Google Inc. * * 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 requi...
JavaScript
0.000023
@@ -3676,16 +3676,17 @@ oint, 60 +0 * 1000)
e37dc5bff5a33a11b13b937ab67d82c68206dcd0
Fix utils to get selection entities [ci skip]
app/scripts/RebooEditor/Toolbar/getSelectionEntities.js
app/scripts/RebooEditor/Toolbar/getSelectionEntities.js
import { Entity } from 'draft-js' const getSelectionEntities = (editorState, entityType) => { // Selection cursor const targetSelection = editorState.getSelection() const startOffset = targetSelection.getStartOffset() const endOffset = targetSelection.getEndOffset() const currentContent = editorState.getCu...
JavaScript
0
@@ -168,63 +168,8 @@ n()%0A - const startOffset = targetSelection.getStartOffset()%0A co @@ -575,30 +575,42 @@ %3E %7B%0A +%0A -if (start %3E= start +const isSelected = end %3E= end Offs @@ -615,19 +615,21 @@ fset && -end +start %3C= endO @@ -633,16 +633,36 @@ ndOffset +%0A%0A if (isSelected ) %7B...
49a1d84c7d33b3061bb8a991586d27c957068765
handle beta version release notes
sources/background_scripts/configuration.js
sources/background_scripts/configuration.js
NTT.Configuration = {}; // Version operations: { // Creates a new version identifier. function create(major, minor = 0, patch = 0, beta = 0) { return { major: major, minor: minor, patch: patch, beta : beta }; } // Returns true iff the specified object is a (non-strict) positive integer. function...
JavaScript
0
@@ -1597,20 +1597,19 @@ _NOTES: -fals +tru e,%0A%0A%09%09cr @@ -5364,16 +5364,49 @@ v.patch%7D +$%7Bv.beta %3E 0 ? %60b$%7Bv.beta%7D%60 : %22%22%7D .html%60,%0A
a4c26f044007d21b734c03e42f2e1c44c4bfbf24
add debug info
control/messagecontrol.js
control/messagecontrol.js
'use strict'; const CONVERSATION_SERVICE = 'conversation'; const CONVERSATION_VERSION_DATE = '2016-07-11'; const CONVERSATION_VERSION = 'v1'; var watson = require( 'watson-developer-cloud' ); // watson sdk var http = require('http'); var request = require('request'); function getConversationCredential() { if (...
JavaScript
0.000001
@@ -3137,16 +3137,20 @@ console +.log (%22!!!!!!
485f2efbadd1818018611c1c3328895e3088a254
Work around pingdom API bug
cronjobs.js
cronjobs.js
var fs = require('fs'); require('date-utils'); var config = require('./config'); var async = require('async'); var cronJob = require('cron').CronJob; var pingdom = require('pingdom-api')(config.pingdom); function init(cb) { writeJSON(cb); new cronJob(config.cron, writeJSON.bind(undefined, cb), null, true)...
JavaScript
0
@@ -931,11 +931,51 @@ hs(- -6 +5 ); + // XXX: work around pingdom bug for now %0A%0A
82c0bc6ac92b6eab2825df00974ff2e972bc4244
Support zoom/lat/long params from saved maps.
controllers/map-filter.js
controllers/map-filter.js
var settings = require('../helpers/settings') var fs = require('fs') var path = require('path') var moment = require('moment') const FILTERS_FOLDER = settings.getFiltersDirectory() function saveFilter (req, res, next) { var name = moment().format('YYYYMMDDHHmmss') var json = req.body fs.writeFile(path.join(FIL...
JavaScript
0
@@ -2337,16 +2337,276 @@ seLayer%0A + if (filterJson.zoom)%0A data%5B'mapZoom'%5D = filterJson.zoom%0A if (filterJson.latitude)%0A data%5B'mapCenterLat'%5D = filterJson.latitude%0A if (filterJson.longitude)%0A data%5B'mapCenterLong'%5D = filterJson.longitude%...
e1a49fbbb0388dd10de3afc126b8d01abdd785d6
use the DocumentProperties for storage
src/libs/lib.utils.storage.js
src/libs/lib.utils.storage.js
// Copyright 2016 Joseph W. May. 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 applica...
JavaScript
0
@@ -692,12 +692,16 @@ %0A * -user +document pro @@ -830,12 +830,16 @@ .get -User +Document Prop
0190a2d5cafc5a6a9e2d70d58fd6ab5322dd2944
Move matrix calcs from webglshadows
src/lights/SpotLightShadow.js
src/lights/SpotLightShadow.js
import { LightShadow } from './LightShadow.js'; import { _Math } from '../math/Math.js'; import { PerspectiveCamera } from '../cameras/PerspectiveCamera.js'; /** * @author mrdoob / http://mrdoob.com/ */ function SpotLightShadow() { LightShadow.call( this, new PerspectiveCamera( 50, 1, 0.5, 500 ) ); } SpotLightS...
JavaScript
0
@@ -452,15 +452,24 @@ e,%0A%0A -%09 + update +Matrices : fu @@ -482,20 +482,48 @@ ( light +, viewCamera, viewportIndex ) %7B + %0A%0A%09%09var @@ -542,16 +542,106 @@ s.camera +,%0A lookTarget = this._lookTarget,%0A lightPositionWorld = this._lightPositionWorld ;%0A%0A%09%09var @@ -972,17 +972,35...
401dafc476e4103a22f54998c8889f389d49a6af
remove factory call in browser entry point
app/main.js
app/main.js
/** @jsx React.DOM */ var React = require('react/addons'); var ReactApp = React.createFactory(require('./components/ReactApp').ReactApp); var mountNode = document.getElementById("react-main-mount"); React.renderComponent(new ReactApp({}), mountNode);
JavaScript
0
@@ -76,28 +76,8 @@ p = -React.createFactory( requ @@ -108,18 +108,8 @@ pp') -.ReactApp) ;%0A%0Av @@ -185,17 +185,8 @@ nder -Component (new
38e234589eb0f23c3e977e850c542495bd917175
Remove about page click action, standard window is fine. Fixes #4
app/menu.js
app/menu.js
var Menu = require('menu'); var MenuItem = require('menu-item'); module.exports = { setup: function (app, host) { var name = app.getName(); var template = [{ label: name, submenu: [ { label: 'About ' + name, role: 'about', click: function() { va...
JavaScript
0
@@ -269,465 +269,8 @@ out' -,%0A click: function() %7B%0A var win = new BrowserWindow(%7B width: 915, height: 600, show: false %7D);%0A win.on('closed', function() %7B%0A win = null;%0A %7D);%0A win.webContents.on('will-navigate', function (e,...
fd66728ba29f7f9b30e8b1f203eee863227caf98
create language and level storage objects
server/db/index.js
server/db/index.js
module.exports = function() { var db = require('./db.js'); var Users = require('./models/userModel.js'); var Languages = require('./models/languageModel.js'); var Levels = require('./models/levelModel.js'); var LanguagesLevels = require('./models/languageLevelModel.js'); var UsersLanguagesLevels = require('...
JavaScript
0.000001
@@ -2173,207 +2173,8 @@ %5D);%0A - %7D);%0A %7D)%0A .then(function() %7B%0A return Users.findOne(%7B where: %7B first_name: 'Ash' %7D %7D)%0A .then(function(result) %7B%0A return test(result.dataValues.id);%0A %7D);%0A %7D);%0A //
e9dadce167cf48f80d7f6d7347af4047d7e01143
refactor deckSpec to remove unneccessary verbosity / complexity
server/deckSpec.js
server/deckSpec.js
// all of the cards // verbose, but easily extendable for expansion packs // the key is the id-letter // the int in the array is part of the id, and represents how many // of a given card there is var deckSpec = { a: [0, 1], b: [0, 2, 3, 4], c: [0], d: [0, 1, 2, 3], e: [0, 1, 2, 3, 4], f: [0, 1], g: [0...
JavaScript
0.000014
@@ -219,385 +219,193 @@ a: -%5B0, 1%5D +2 ,%0A b: -%5B0, 2, 3, 4%5D +5 ,%0A c: -%5B0%5D +1 ,%0A d: -%5B0, 1, 2, 3%5D,%0A e: %5B0, 1, 2, 3, 4%5D +4,%0A e: 5 ,%0A f: -%5B0, 1%5D +2 ,%0A g: -%5B0%5D +1 ,%0A h: -%5B0, 1, 2%5D +3 ,%0A i: -%5B0, 1%5D +2 ,%0A j: -%5B0, 1, 2%5D,%0A k: %5B0, 1, 2%5...
d58bf0080eba5d4447c510a681b78316ecfd87cc
Store numbers for cbgs, not strings
lib/dexcom/parse.js
lib/dexcom/parse.js
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This progra...
JavaScript
0.000016
@@ -2728,16 +2728,23 @@ value: +Number( stringRe @@ -2768,16 +2768,17 @@ a.value) +) ,%0A @@ -2927,16 +2927,23 @@ value: +Number( rawData. @@ -2947,16 +2947,17 @@ ta.value +) ,%0A
820849bb2610ffe829b2e2d88094240b03829a6e
switch command order
server/evaluate.js
server/evaluate.js
var fs = require('fs') var tmp = require('tmp') var path = require('path') var exec = require('child_process').exec module.exports = function (dataset, values, cb) { function write (dir, cb) { fs.writeFile(path.join(dir, dataset + '.csv'), values, function (err) { if (err) return cb(err) else cb() ...
JavaScript
0.000009
@@ -430,15 +430,16 @@ ' + -dir + ' +'answers /' + @@ -455,32 +455,31 @@ + '.csv ' + -'answers +dir + ' /' + dataset
dcbb6609379d7ce892c88c18aa92233259516a58
fix hiding of no-events msg
imports/client/ui/pages/Map/EventsList/index.js
imports/client/ui/pages/Map/EventsList/index.js
import React, { Component, Fragment } from 'react' import PropTypes from 'prop-types' import { ListGroup } from 'reactstrap' import EventsListItem from './EventsListItem' import MinimizeButton from './MinimizeButton' import './styles.scss' class EventsList extends Component { state = { events: [], loading: t...
JavaScript
0.000261
@@ -1385,16 +1385,49 @@ .props%0A%0A + const hasData = !!events%5B0%5D%0A%0A retu @@ -2281,16 +2281,17 @@ %7B +( noData & @@ -2291,16 +2291,29 @@ oData && + !hasData) && (%0A