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 |
|---|---|---|---|---|---|---|---|
4f716ddbcc65c9aaf89db18ee8caa07899ebe43c | Add facility to not save responses when certain conditions hold true (needsRetryMatcher) | src/recorder.js | src/recorder.js | const passThrough = require('./pass_through');
module.exports = function recorded(settings) {
const { catalog } = settings;
const capture = passThrough(true);
return function(request, callback) {
let host = request.url.hostname;
if (request.url.port && request.url.port !== '80')
host = `${hos... | JavaScript | 0 | @@ -1279,16 +1279,425 @@
else%0A
+ if (settings.needsRetryMatchers && settings.needsRetryMatchers%5Bhost%5D) %7B%0A if (settings.needsRetryMatchers%5Bhost%5D(request, response)) %7B%0A // if responseNeedsRetryMatchers matches, just return response,%0A // and do not reco... |
8657461040aedb17cbadffa43162c6d86a0dc780 | add checkout router. | src/router-config.js | src/router-config.js | import VueRouter from 'vue-router'
import Bus from './bus';
import PassportLayout from './components/Passport.vue';
import Signin from './views/passport/Signin.vue';
import Signup from './views/passport/Signup.vue';
import Home from './views/Home.vue'
import Video from './views/pr/Video.vue'
import Comments from './v... | JavaScript | 0 | @@ -579,24 +579,76 @@
Layout.vue'%0A
+import Checkout from './views/payment/Checkout.vue'%0A
import NotFo
@@ -680,16 +680,17 @@
d.vue'%0A%0A
+%0A
let rout
@@ -2463,32 +2463,121 @@
%7D,%0A %7B %0A
+ path: '/checkout/:id',%0A component: Checkout%0A %7D,%0A %7B %0A
... |
9301d75faeaf7545133bf7cf6bfb5d29bbd4bd63 | add payment router path. | src/router-config.js | src/router-config.js | import VueRouter from 'vue-router'
import Bus from './bus';
import PassportLayout from './components/Passport.vue';
import Signin from './views/passport/Signin.vue';
import Signup from './views/passport/Signup.vue';
import Home from './views/Home.vue'
import Video from './views/pr/Video.vue'
import Comments from './v... | JavaScript | 0 | @@ -631,24 +631,74 @@
eckout.vue'%0A
+import Payment from './views/payment/Payment.vue'%0A
import NotFo
@@ -2602,32 +2602,119 @@
%7D,%0A %7B %0A
+ path: '/payment/:id',%0A component: Payment%0A %7D,%0A %7B %0A
path
|
cc96b2734c845d4b17c8bacd26a3a40708b24acb | fix bug with presets selection after updating (#376) | src/webcomponents/commons/filters/consequence-type-select-filter.js | src/webcomponents/commons/filters/consequence-type-select-filter.js | /**
* Copyright 2015-2019 OpenCB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | JavaScript | 0 | @@ -2288,32 +2288,56 @@
d active presets
+ using selected CT terms
%0A
@@ -2372,21 +2372,22 @@
forEach(
-alias
+preset
=%3E %7B%0A
@@ -2429,21 +2429,22 @@
ected =
-alias
+preset
.terms.e
@@ -2578,25 +2578,27 @@
set(
-alias
+preset
.name,
-alias
+preset
);%0A
|
02da01fd19fb9c1c576690dd9edcc491f9ff4158 | update routes.js | src/router/routes.js | src/router/routes.js | // Routes
import Landing from '@/components/Landing'
import Welcome from '@/components/Welcome'
import Login from '@/components/auth/Login'
import UpdateProfile from '@/components/auth/UpdateProfile'
import App from '@/components/App'
import NotFound from '@/components/errors/404'
const routes = [{
path: '/',
... | JavaScript | 0.000002 | @@ -276,16 +276,39 @@
s/404'%0A%0A
+import Vue from 'vue'%0A%0A
const ro
|
4eac51d2f3610f576232cd085b8dee7c07fbab08 | Remove default wildcard route pointed to home | src/router/routes.js | src/router/routes.js | // import app pages
import Home from '@/app/pages/Home'
// import admin page components
import Admin from '@/admin/pages/Admin'
import Login from '@/admin/pages/Login'
import Settings from '@/admin/pages/settings/Settings'
import Routing from '@/admin/pages/Routing'
import Media from '@/admin/pages/Media'
import Datab... | JavaScript | 0 | @@ -1835,73 +1835,8 @@
%5D%0A
- %7D,%0A %7B%0A path: '*',%0A name: 'default',%0A component: Home%0A
%7D%0A
|
4a5fb9470bdd08365d90a320beec89dd31b91f6a | Update src/router/routes.js | src/router/routes.js | src/router/routes.js | // Routes
import Layout from '@/components/Layout'
import Welcome from '@/components/Welcome'
import Login from '@/components/auth/Login'
import UpdateProfile from '@/components/auth/UpdateProfile'
import App from '@/components/App'
import NotFound from '@/components/errors/404'
import Firestore from '@/components/Fire... | JavaScript | 0.000002 | @@ -1,14 +1,4 @@
-// Routes%0A
impo
@@ -1258,17 +1258,16 @@
%5D%0A%7D%5D%0A%0A
-%0A
export d
|
0194f21b9c916a284f62b1fb9a376c3370ae3e73 | fix logger for pattern init | src/registry.js | src/registry.js | /*
* changes to previous patterns.register/scan mechanism
* - if you want initialised class, do it in init
* - init returns set of elements actually initialised
* - handle once within init
* - no turnstile anymore
* - set pattern.jquery_plugin if you want it
*/
define([
"jquery",
"./logging",
"./util... | JavaScript | 0 | @@ -1503,16 +1503,13 @@
log.
-critical
+error
(%22Er
|
9476834c445cfa21207e5be3dc61e98b8c14e7f7 | Fix typo | src/routes/tokens.js | src/routes/tokens.js | 'use strict'
const { send, json, createError } = require('micro')
const tokens = require('../database/tokens')
const response = (entry) => ({
type: 'token',
data: {
id: entry.id,
created: entry.created,
updated: entry.updated
}
})
const add = async (req, res) => {
const { username, password } = await jso... | JavaScript | 0.999999 | @@ -541,24 +541,25 @@
ng in enviro
+n
ment')%0A%09if (
@@ -644,16 +644,17 @@
n enviro
+n
ment')%0A%0A
|
d48f837105182f88df63ffa466f30973a4ff6668 | Use right encoding | GulpFlow.js | GulpFlow.js | /**
* GulpFlow provides a [gulp](https://gulpjs.com) plugin for [Flow](http://flowtype.org).
*
* @module GulpFlow
* @main GulpFlow
*/
var _ = require("underscore");
var Class = require("yajscf");
var through = require("through2");
var gutil = require("gulp-util");
var PluginError = gutil.PluginError;
var execFile... | JavaScript | 0.000018 | @@ -1803,15 +1803,16 @@
ing(
-%22utf-8%22
+encoding
)%0A
|
661a58a0a23c9a20b9b1b27b865f5e1580628c6d | Fix init exceptions. | src/registry.js | src/registry.js | /**
* Patterns registry - Central registry and scan logic for patterns
*
* Copyright 2012-2013 Simplon B.V.
* Copyright 2012-2013 Florian Friesdorf
* Copyright 2013 Marko Durkovic
* Copyright 2013 Rok Garbas
*/
/*
* changes to previous patterns.register/scan mechanism
* - if you want initialised class, do it ... | JavaScript | 0.000015 | @@ -4271,32 +4271,161 @@
%7C dont_catch) %7B%0A
+ pattern.init($el);%0A plog.debug(%22done.%22);%0A %7D else %7B%0A
@@ -4686,137 +4686,8 @@
%7D%0A
- %7D else %7B%0A patter... |
fefd045f7a7cf752bd554317f72c3458bcb5eeee | Remove unnecessary gulp task dependency | Gulpfile.js | Gulpfile.js | 'use strict';
var fork = require('child_process').fork,
gulp = require('gulp'),
eslint = require('gulp-eslint'),
mocha = require('gulp-mocha'),
install = require('gulp-install'),
benchmark = require('gulp-benchmark'),
rename = require('gulp-rename'),
download = require('gulp-download'),
... | JavaScript | 0.00005 | @@ -3566,51 +3566,8 @@
rk',
- %5B'install-memory-benchmark-dependencies'%5D,
fun
|
1754a498ce71ba072d7c28fb485908df29eecb7a | Add Tumblr AJAX calls | src/scripts/theme.js | src/scripts/theme.js | (function () {
})(); | JavaScript | 0.000001 | @@ -12,14 +12,690 @@
) %7B%0A
+/**%0A * @desc This will be triggered when a new page of Notes is loaded and ready to be inserted.%0A * @param %7BElement%7D html - The HTML node that the AJAX notes loading function returns.%0A * @returns %7BBoolean%7D - If this function returns false, it will block t... |
a022b5ca37bd9a2ffd806b912e7998c29653a6b0 | Use fetchJsonp | src/sdk/instagram.js | src/sdk/instagram.js | import { getHashValue, getQueryStringValue, rslError } from '../utils'
const INSTAGRAM_API = 'https://api.instagram.com/v1'
let instagramAuth = 'https://api.instagram.com/oauth/authorize/?response_type=token'
let instagramAppId
let instagramRedirect
let instagramAccessToken
// Load fetch polyfill for browsers not su... | JavaScript | 0.000003 | @@ -1,8 +1,46 @@
+import fetchJsonp from 'fetch-jsonp'%0A%0A
import %7B
@@ -178,75 +178,8 @@
Auth
- = 'https://api.instagram.com/oauth/authorize/?response_type=token'
%0Alet
@@ -1739,28 +1739,26 @@
%3E %7B%0A
-window.
fetch
+Jsonp
(%60$%7BINST
@@ -2222,16 +2222,23 @@
%7D)
+%0A
.catch((
|
7bfb29c45f76ed7e81c5e5c79341a7e84f3ff771 | Change bar drinks sorts | src/selectors/bar.js | src/selectors/bar.js | export const getDrinkById = state => drinkId => {
const filteredDrinks = state.bar.drinks.filter(drink => drinkId === drink.id)
return filteredDrinks[0]
}
export const getNameDrinkById = state => drinkId => {
const drink = getDrinkById(state)(drinkId) || {}
return drink.name || ''
}
export const sortDrinkByCa... | JavaScript | 0.000001 | @@ -365,21 +365,16 @@
n drinks
-%0A
.filter(
@@ -414,21 +414,16 @@
oryName)
-%0A
.sort((a
@@ -425,24 +425,273 @@
rt((a, b) =%3E
+ %7B%0A // a %D0%B4%D0%BE%D0%BB%D0%B6%D0%BD%D0%BE %D0%B1%D1%8B%D1%82%D1%8C %D1%80%D0%B0%D0%B2%D0%BD%D1%8B%D0%BC b%0A const aEnable = a.status !== 'DISABLED'%0A const bEn... |
b4cae9c80ba937e722cb61467685eabd2431c051 | Update isEdge docs to note it detects Legacy Edge (#8287) | modules/tinymce/tools/docs/tinymce.Env.js | modules/tinymce/tools/docs/tinymce.Env.js | /**
* Returns the current browser name.
*
* @property browser.current
* @type String
*/
/**
* Returns the current browser major and minor version.
*
* @property browser.version
* @type Object
*/
/**
* Returns <code>true</code> if the user's browser is Microsoft Edge.
*
* @method browser.isEdge
* @return... | JavaScript | 0 | @@ -260,32 +260,105 @@
er is Microsoft
+Edge Legacy. Does not return true for the newer Chromium-based Microsoft
Edge.%0A *%0A * @met
@@ -458,24 +458,31 @@
crosoft Edge
+ Legacy
.%0A */%0A%0A/**%0A
|
adce94747e95d35985d550a19a06af76a9bea2da | fix wrong routing in the presence of bundle.js | src/server/server.js | src/server/server.js | 'use strict';
const app = require('koa')();
const compress = require('koa-compress');
const cors = require('kcors');
const fs = require('fs');
const http = require('http');
const passport = require('koa-passport');
const path = require('path');
const responseTime = require('koa-response-time');
const serve = require('... | JavaScript | 0.000002 | @@ -1979,30 +1979,17 @@
tsWith(%60
-$%7BproxyPrefix%7D
+/
db%60) %7C%7C
@@ -2010,30 +2010,17 @@
tsWith(%60
-$%7BproxyPrefix%7D
+/
auth%60))
|
0172887f3d9835020751e8206644645be4f4ee5c | Use node backend to create projects. | website/mcapp.projects/src/app/models/api/projects-api.service.js | website/mcapp.projects/src/app/models/api/projects-api.service.js | /*@ngInject*/
function projectsAPIService(Restangular) {
let onChangeFn = null;
const projectsAPIRoute = _.partial(Restangular.one('v2').one, 'projects');
return {
getAllProjects: function() {
return projectsAPIRoute().getList();
},
getProject: function(projectId) {
... | JavaScript | 0 | @@ -480,16 +480,26 @@
ar.one('
+v2').one('
projects
|
628d00797663a6df9fc49de5f3a88b876b1d6466 | Change '!=' to '!==' in simple sample. | node/device/samples/simple_sample_http.js | node/device/samples/simple_sample_http.js | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var device = require('azure-iot-device');
var connectionString = '[IoT Device Connection String]';
var client = new device.Client(connectionString, new... | JavaScript | 0.000005 | @@ -1375,16 +1375,17 @@
sCode !=
+=
204)) c
|
4ad1c0ce2c990b8c5df5829f13c2cac11c8dd6b6 | Fix the typeoff | nodejs-grovepi-azureiot/GrovePiSensors.js | nodejs-grovepi-azureiot/GrovePiSensors.js | var GrovePi = require('node-grovepi').GrovePi;
var DHTDigitalSensor = GrovePi.sensors.DHTDigital;
var UltrasonicDigitalSensor = GrovePi.sensors.UltrasonicDigital;
var LightAnalogSensor = GrovePi.sensors.LightAnalog;
var AnalogSensor =GrovePi.sensors.base.Analog;
function GrovePiSensors(dhtPin = 2, ultrasonicPin = 4,... | JavaScript | 0.999999 | @@ -649,17 +649,16 @@
var res
-+
= this.s
|
3986d50a1402ea12b3d9b2687f39c02fcfb4c785 | Fix enemy pooling | src/sprites/Enemy.js | src/sprites/Enemy.js | import Phaser from 'phaser'
import SingleShot from '../weapons/SingleShot';
import SpreadShot from '../weapons/SpreadShot';
import TwinCannons from '../weapons/TwinCannons';
import Beam from '../weapons/Beam';
export default class extends Phaser.Sprite {
constructor ({ game, player, x, y, weapon }) {
supe... | JavaScript | 0.000121 | @@ -887,16 +887,50 @@
*= 1.75
+%0A this.weaponName = weapon;
%0A%0A
@@ -1517,130 +1517,167 @@
if (
-!
this.
-exists) %7B%0A return%0A
+x %3C= 100 %7C%7C this.health %3C= 0) %7B%0A this.weapon = null;%0A
-%7D%0A%0A
- if (this.x %3C= 100 %7C%7C this.health %3C= 0... |
384d537fc59490deacd2f665fd74b1cce87c3df0 | 插入page.css兼容原来的runtime | packages/chameleon-loader/src/selector.js | packages/chameleon-loader/src/selector.js | // this is a utility loader that takes a *.cml file, parses it and returns
// the requested language block, e.g. the content inside <template>, for
// further processing.
const path = require('path')
const parse = require('./parser')
const getRunTimeSnippet = require('./cml-compile/runtime/index.js');
const {getScript... | JavaScript | 0 | @@ -1370,24 +1370,205 @@
= 'true') %7B%0A
+ let pageCssPath = path.join(cml.projectRoot, 'node_modules', %60chameleon-runtime/src/platform/$%7Bquery.cmlType%7D/style/page.css%60)%0A let hasPageCss = cmlUtils.isFile(pageCssPath)%0A
if (quer
@@ -1588,16 +1588,30 @@
= 'page'
+ && hasPageCss
) %7B%0A
|
a3583a8e6497f390f7be6616f46b27731951dafb | add stats | example/inspector.js | example/inspector.js | import Stats from 'stats.js/src/Stats';
import * as THREE from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
import { GUI } from 'dat.gui';
import {
acceleratedRaycast, computeBoundsTree, disposeBoundsTree, ... | JavaScript | 0 | @@ -1,44 +1,4 @@
-import Stats from 'stats.js/src/Stats';%0A
impo
@@ -554,19 +554,8 @@
e;%0A%0A
-let stats;%0A
let
@@ -1592,88 +1592,8 @@
);%0A%0A
-%09// stats setup%0A%09stats = new Stats();%0A%09document.body.appendChild( stats.dom );%0A%0A
%09win
|
cd5afa980aa07571f2a094d1243500c3f9d80308 | Add support for custom eventId | eventFactory.js | eventFactory.js | var assert = require('assert');
var uuid = require('uuid');
module.exports = {
NewEvent: function(eventType, data, metadata) {
assert(eventType);
assert(data);
var event = {
eventId: uuid.v4(),
eventType: eventType,
data: data
}
if (meta... | JavaScript | 0 | @@ -121,16 +121,25 @@
metadata
+, eventId
) %7B%0A
@@ -226,16 +226,27 @@
eventId:
+ eventId %7C%7C
uuid.v4
|
2f833df7f4d6faba5a6e020c25e745fc76c62d3a | make output of error handler nicer | plugins/c9.ide.errorhandler/raygun_error_handler.js | plugins/c9.ide.errorhandler/raygun_error_handler.js | /**
* This error handler catches window.onerror and sends them to raygun.io
*
* @extends Plugin
* @singleton
*/
define(function(require, exports, module) {
"use strict";
main.consumes = [
"Plugin", "info"
];
main.provides = ["error_handler"];
return main;
function main(options, im... | JavaScript | 0.000002 | @@ -1995,14 +1995,77 @@
tion
-.stack
+);%0A if (customData)%0A console.log(customData
);%0A
|
e3df7154aab6496b10baa6b64e87f8b7cc642865 | fix circular feature | deep-iterable.js | deep-iterable.js |
((module) => {
'use strict';
var createClassFromSuper = require('simple-class-utils').createClass.super.handleArgs;
var createClass = require('./create-class.js');
var isIterable = require('./utils/is-iterable.js');
var Root = require('./root.js').class;
var _key_iterator = Symbol.iterator;
class DeepIterabl... | JavaScript | 0.000001 | @@ -570,16 +570,36 @@
%0A%09%09%09if (
+isIterable(base) &&
deeper(b
@@ -949,30 +949,8 @@
ect'
- && isIterable(object)
;%0A%09%09
|
a26ea2a270b7a59f783bc300769585438ae75637 | update demo: show matched text gray when it was matched | demo/js/index.js | demo/js/index.js | $(function(){
var getUniqueArray = function( array ){
return array.filter(function(elem, pos, self) {
return self.indexOf(elem) === pos;
});
};
var getUniqueWordListFromSource = function( $target ){
var tmpArray = [];
$target.each(function(){
tmpArra... | JavaScript | 0 | @@ -399,24 +399,361 @@
);%0A %7D;%0A%0A
+ var getUniqueElementListFromSource = function( $target )%7B%0A var tmpObj = %7B%7D;%0A $target.each(function()%7B%0A if (! tmpObj.hasOwnProperty($(this).text())) %7B%0A tmpObj%5B $(this).text() %5D = %5B%5D;%0A %7D%0A ... |
08d1ecdab586d85d464fbe410ba2fb5061eab4f9 | Fix ToolQuery query bug | src/main/js/bundles/dn_querybuilder/QueryController.js | src/main/js/bundles/dn_querybuilder/QueryController.js | /*
* Copyright (C) 2018 con terra GmbH (info@conterra.de)
*
* 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 b... | JavaScript | 0 | @@ -4545,32 +4545,74 @@
rWidgetModel) %7B%0A
+ if(queryBuilderWidgetModel) %7B%0A
queryBui
@@ -4652,16 +4652,26 @@
essing;%0A
+ %7D%0A
|
b33f30cd2dc8534d069202b867d9c9827e79ec3f | add banana phone | SLACKBOT.js | SLACKBOT.js | var FS = require('fs');
var MARKOV = require('markoff');
var MARK = new MARKOV();
var API = require('slack-api');
function ISLOUD(MSG)
{
return MSG !== MSG.toLowerCase() && MSG === MSG.toUpperCase();
}
var STARTERFILE = __dirname + '/STARTERS';
var STARTERS = FS.readFileSync(STARTERFILE, 'UTF8');
STARTERS = START... | JavaScript | 0.999731 | @@ -3000,16 +3000,182 @@
;%0A %7D%0A
+%09if (MSG.toUpperCase().match(/BANANA%5C.*PHONE/))%0A %7B%0A return 'https://s-media-cache-ak0.pinimg.com/736x/fb/e1/cd/fbe1cdbc1b728fbb5e157375905d576f.jpg';%0A %7D%0A
%7D;%0A%0ALOUD
|
3f1f2244e1a95fae6650fe32ed3349b5cba7d434 | update Label#domRender | dev/src/Label.js | dev/src/Label.js | /**
* @scope enchant.Label.prototype
*/
enchant.Label = enchant.Class.create(enchant.Entity, {
/**
[lang:ja]
* Labelオブジェクトを作成する.
[/lang]
[lang:en]
* Create Label object.
[/lang]
[lang:de]
* Erstellt ein Label Objekt.
[/lang]
* @constructs
* @extends enchant.E... | JavaScript | 0 | @@ -2855,24 +2855,76 @@
(element) %7B%0A
+ if (element.innerHTML !== this._text) %7B%0A
elem
@@ -2943,32 +2943,42 @@
L = this._text;%0A
+ %7D%0A
element.
|
9728aff063399579cce16e1e43bb308fa6c1ff2d | Use username if no displayName. Extra check to try and get email. | web/js/client.js | web/js/client.js | 'use strict';
var app = angular.module('ngPeerPerks', [
'firebase',
'config.app',
'ngRoute',
'service.lodash',
'service.participant',
'service.activity',
'directive.reward',
'directive.perk'
])
.config(function ($routeProvider, $locationProvider) {
$locationProvider
.html5Mode(true)
;
$... | JavaScript | 0 | @@ -1420,16 +1420,17 @@
%09email:
+(
$scope.u
@@ -1457,16 +1457,99 @@
ta.email
+) ? $scope.user.thirdPartyUserData.email : $scope.user.thirdPartyUserData.emails%5B0%5D
,%0A%09%09%09%09%09%09
@@ -1550,24 +1550,25 @@
%09%09%09%09%09%09name:
+(
$scope.user.
@@ -1578,16 +1578,66 @@
playName
+) ? $scope.user.displa... |
a3d1a8736201317ba6caddba19944a67086ba404 | Remove incorrect comment (the initEvent call does work in Safari) | web/js/common.js | web/js/common.js | //////////// STUDY CALENDAR JS STYLES
var SC = new Object();
SC.slideAndHide = function(element, options) {
var e = $(element);
new Effect.Parallel(
[
new Effect.BlindUp(e, {sync:true}),
new Effect.Fade(e, {sync:true})
], $H(options).merge({
duration: 1.0
... | JavaScript | 0 | @@ -2682,91 +2682,8 @@
) %7B%0A
- // this is based on the DOM 2 standard, but doesn't seem to work in Safari%0A
|
cc6492c2f4781d2fad1bec5463dbb5be8e4d15ff | fix panorama-preview.test warnings | src/panorama/services/preview/panorama-preview.test.js | src/panorama/services/preview/panorama-preview.test.js | import panoPreview from './panorama-preview';
import { getByUrl } from '../../../shared/services/api/api';
jest.mock('../../../shared/services/api/api');
describe('panoPreview service', () => {
it('should return an object filled with data if response is ok', () => {
getByUrl.mockReturnValueOnce(Promise.resolve(... | JavaScript | 0.000001 | @@ -1,26 +1,24 @@
import
-panoPreview
+fetchPano
from '.
@@ -391,35 +391,33 @@
%7D));%0A
-panoPreview
+fetchPano
(%7B latitude:
@@ -840,27 +840,25 @@
));%0A
-panoPreview
+fetchPano
(%7B latit
@@ -1019,32 +1019,98 @@
, async () =%3E %7B%0A
+ const error = new Error('Error requesting a panoramic vi... |
ba158560ac4f44307821a4be919696f70b6354ab | fix for genome level | public/js/p3/widget/ProteinFamiliesGridContainer.js | public/js/p3/widget/ProteinFamiliesGridContainer.js | define([
"dojo/_base/declare", "dojo/_base/lang", "dojo/on", "dojo/topic",
"dijit/popup", "dijit/TooltipDialog",
"./ProteinFamiliesGrid", "./GridContainer"
], function(declare, lang, on, Topic,
popup, TooltipDialog,
ProteinFamiliesGrid, GridContainer){
var vfc = '<div class="wsActionTooltip" rel="dna">View F... | JavaScript | 0.000022 | @@ -2195,24 +2195,69 @@
%09%09%7D));%0A%09%09%7D,%0A
+%09%09buildQuery: function()%7B%0A%09%09%09return %22%22;%0A%09%09%7D,%0A
%09%09_setQueryA
|
1c3c8f086968e8d391b4a2e1c1f60e23218cd07c | Use course permission check if file is a submission | src/services/fileStorage/utils/filePermissionHelper.js | src/services/fileStorage/utils/filePermissionHelper.js | const { FileModel } = require('../model');
const { userModel } = require('../../user/model');
const getFile = id => FileModel
.findOne({ _id: id })
.populate('owner')
.exec();
const checkPermissions = (permission) => {
return async (user, file) => {
const fileObject = await getFile(file);
const {
permissio... | JavaScript | 0 | @@ -86,16 +86,77 @@
model');
+%0Aconst %7B submissionModel %7D = require('../../homework/model');
%0A%0Aconst
@@ -567,16 +567,100 @@
);%0A%09%09%7D%0A%0A
+%09%09const isSubmission = await submissionModel.findOne(%7B fileIds: fileObject._id %7D);%0A%0A
%09%09// or
@@ -711,16 +711,32 @@
'course'
+ %7C%7C isSubmiss... |
3a461d7fb32127aca6d426bafb5ec682a51846de | Refactor componentWillMount to async/await func instead of promises | src/web/client/src/components/services/service-list.js | src/web/client/src/components/services/service-list.js | import React from 'react'
import lodash from 'lodash'
import './service-list.scss'
export default class ServiceList extends React.Component {
constructor () {
super()
this.state = {
services: []
}
}
componentWillMount () {
fetch('/graphql', {
method: 'post',
headers: new Header... | JavaScript | 0 | @@ -218,16 +218,22 @@
%0A %7D%0A%0A
+async
componen
@@ -252,16 +252,39 @@
) %7B%0A
+const response = await
fetch('/
@@ -511,73 +511,54 @@
%7D)
-.then((response) =%3E %7B%0A response.json().then((body) =%3E %7B
+%0A%0A const body = await response.json()
%0A
+%0A
@@ -573,20 +573,16 @@
... |
49293f352299ce625e8c4bed71114e94aa0e4460 | Create UserArticleLink in askingArticleSubmissionConsent | src/webhook/handlers/askingArticleSubmissionConsent.js | src/webhook/handlers/askingArticleSubmissionConsent.js | import { t } from 'ttag';
import ga from 'src/lib/ga';
import gql from 'src/lib/gql';
import { SOURCE_PREFIX, getArticleURL } from 'src/lib/sharedUtils';
import {
ManipulationError,
createArticleShareBubble,
createSuggestOtherFactCheckerReply,
getArticleSourceOptionFromLabel,
createReasonButtonFooter,
} from ... | JavaScript | 0 | @@ -325,16 +325,86 @@
tils';%0A%0A
+import UserArticleLink from '../../database/models/userArticleLink';%0A%0A
export d
@@ -1471,24 +1471,100 @@
userId %7D);%0A%0A
+ await UserArticleLink.create(%7B userId, articleId: CreateArticle.id %7D);%0A%0A
const ar
|
3c3760981f4bf88ace3e4e0c3c215250fba66b81 | fix task worker status | static/js/task/controllers/task-overview.controller.js | static/js/task/controllers/task-overview.controller.js | (function () {
'use strict';
angular
.module('crowdsource.task.controllers')
.controller('TaskOverviewController', TaskOverviewController);
TaskOverviewController.$inject = ['$window', '$location', '$scope', '$mdToast', 'Task',
'$filter', '$routeParams', 'Authentication'];
/**... | JavaScript | 0.001481 | @@ -1847,9 +1847,9 @@
==
-4
+5
)%7B%0A
@@ -1918,33 +1918,33 @@
se if(status ==
-5
+4
)%7B%0A
|
d55c9ae843a6c54eb8b82fde6f23468ba9213748 | Fix skipped tests | test/unit/specs/components/GeneratePaletteForm.spec.js | test/unit/specs/components/GeneratePaletteForm.spec.js | import { mount } from 'avoriaz';
import Vue from 'vue';
import sinon from 'sinon';
import { expect } from 'chai';
import Vuex from 'vuex';
import GeneratePaletteForm from '@/components/GeneratePaletteForm';
Vue.use(Vuex);
describe('GeneratePaletteForm.vue', () => {
let actions;
let store;
beforeEach(() => {
... | JavaScript | 0 | @@ -331,45 +331,8 @@
= %7B%0A
- generatePalette: sinon.stub(),%0A
@@ -444,13 +444,8 @@
it
-.skip
('ca
@@ -516,32 +516,109 @@
icked', () =%3E %7B%0A
+ const rgb = 'rgb(0,0,0)';%0A const $store = %7B dispatch: sinon.stub() %7D;%0A
const wrappe
@@ -654,46 +654,30 @@
, %7B
-store %7D);%0A c... |
508d06e894bd278fba15190b2babb7b9f3a7361a | Fix ESLint errors (STRIPES-100) | ViewUser.js | ViewUser.js | import _ from 'lodash';
// We have to remove node_modules/react to avoid having multiple copies loaded.
// eslint-disable-next-line import/no-unresolved
import React, { Component, PropTypes } from 'react';
import Pane from '@folio/stripes-components/lib/Pane';
import PaneMenu from '@folio/stripes-components/lib/PaneMen... | JavaScript | 0.000018 | @@ -962,24 +962,107 @@
opTypes = %7B%0A
+ currentPerms: PropTypes.object, // eslint-disable-line react/forbid-prop-types%0A
params:
@@ -5891,16 +5891,17 @@
ntPerms%7D
+
/%3E%0A
|
4eeaaaeb2ede16c81f6c0513d61af5cfa98e1eed | Add function to the correct prototype. | ad/graph.js | ad/graph.js | 'use strict';
var Tensor = require('../tensor.js');
// Base class for all compute graph nodes
function Node(x, parents, inputs, backward, name) {
this.x = x;
this.parents = parents;
this.inputs = inputs;
if (backward !== undefined) this.backward = backward;
this.outDegree = 0;
this.name = name || 'node';
}
Node... | JavaScript | 0.000001 | @@ -2355,24 +2355,28 @@
);%0A%7D;%0ATensor
+Node
.prototype.c
|
10408b6d60b3c4326819688b5d52c2ba9cce6a8a | change search string | _config_.js | _config_.js | /**
* Config for backend limits, thresholds, database etc
* Also a layer of indirection above env variables to allow easy overrides during dev.
*
* :TODO: prepopulate legislator info into mongo from source data
*/
module.exports = {
server_port : process.env.PORT,
mongo_connection_uri : process.env.MONGOHQ_URL,
... | JavaScript | 0.00001 | @@ -453,12 +453,21 @@
: '
-@eff
+#stopthespies
',%0A%09
|
5a681fef8049bdf3f349e6d8dcddeace064328db | Make reflection topic browser-independent | topics/about_reflection.js | topics/about_reflection.js | module("About Reflection (topics/about_reflection.js)");
var A = function() {
this.aprop = "A";
};
var B = function() {
this.bprop = "B";
};
B.prototype = new A();
test("typeof", function() {
equal(__, typeof({}), 'what is the type of an empty object?');
equal(__, typeof('apple'), 'what is the t... | JavaScript | 0 | @@ -55,24 +55,16 @@
);%0A%0A
-var A =
function
() %7B
@@ -51,32 +51,34 @@
js)%22);%0A%0Afunction
+ A
() %7B%0A this.ap
@@ -91,33 +91,21 @@
%22A%22;
-
%0A%7D;%0A%0A
-var B =
function
() %7B
@@ -92,32 +92,34 @@
A%22;%0A%7D;%0A%0Afunction
+ B
() %7B%0A this.bp
@@ -434,10 +434,8 @@
?');
-%09%09
%0A... |
207f85b124bc9cc4b59acceef17d3c11713db1ff | Fix selector | github-issue-add-details.user.js | github-issue-add-details.user.js | // ==UserScript==
// @name GitHub Issue Add Details
// @version 1.0.9
// @description A userscript that adds a button to insert a details block into comments
// @license MIT
// @author Rob Garrison
// @namespace https://github.com/Mottie
// @include https://github.com/*
// @run-at documen... | JavaScript | 0.000001 | @@ -72,17 +72,18 @@
1.0.
-9
+10
%0A// @des
@@ -2025,16 +2025,17 @@
ia-label
+*
='Add a
@@ -2065,26 +2065,9 @@
btn.
-parentNode.insertB
+b
efor
@@ -2094,25 +2094,8 @@
rue)
-, btn.nextSibling
);%0A%09
|
eb2ddcb3b58f8098f1b46be00ff5ab140eae2bc8 | remove check on rules arguments number | packages/mjml-validator/src/MJMLRulesCollection.js | packages/mjml-validator/src/MJMLRulesCollection.js | import warning from 'warning'
import { mapKeys } from 'lodash'
import * as rules from './rules'
const MJMLRulesCollection = {}
export function registerRule(rule, name) {
if (typeof rule !== 'function' || rule.length !== 2) {
return warning(
false,
'Your rule must be a function and must have two par... | JavaScript | 0.000001 | @@ -202,29 +202,8 @@
ion'
- %7C%7C rule.length !== 2
) %7B%0A
@@ -274,121 +274,8 @@
tion
- and must have two parameters which are the element to validate and the components object imported from mjml-core
',%0A
|
856d721573765b22cc3a336168650337381291ff | Fix `optimal-imports` to support v4 and v5-alpha, beta (#28812) | packages/mui-codemod/src/v5.0.0/optimal-imports.js | packages/mui-codemod/src/v5.0.0/optimal-imports.js | import { dirname } from 'path';
import addImports from 'jscodeshift-add-imports';
import getJSExports from '../util/getJSExports';
// istanbul ignore next
if (process.env.NODE_ENV === 'test') {
const resolve = require.resolve;
require.resolve = (source) =>
resolve(source.replace(/^@material-ui\/core\/modern/, ... | JavaScript | 0 | @@ -267,22 +267,111 @@
resolve(
-source
+%0A source%0A .replace(/%5E@material-ui%5C/core%5C/es/, '../../../mui-material/src')%0A
.replace
@@ -430,16 +430,22 @@
al/src')
+,%0A
);%0A%7D%0A%0Aex
@@ -1598,45 +1598,187 @@
-const whitelist = getJSExports(%0A
+let loader;%0A try %7B%0... |
80a36b18c67780d949b07ea1ecbc72ee6244513d | Add story with error | packages/react-input-feedback/src/index.stories.js | packages/react-input-feedback/src/index.stories.js | import { storiesOf } from '@storybook/react'
import { createElement as r } from 'react'
import Input from './index.ts'
storiesOf('InputFeedback', module).add('default', () => r(Input))
| JavaScript | 0.000001 | @@ -148,16 +148,19 @@
module)
+%0A
.add('de
@@ -183,8 +183,103 @@
Input))%0A
+ .add('with error', () =%3E%0A r(Input, %7B meta: %7B error: 'Error text', touched: true %7D %7D),%0A )%0A
|
08f3e0ecc313dcd41378983d3ff3ea3ef5a00356 | Apply PR feedback | packages/strapi-generate-new/json/database.json.js | packages/strapi-generate-new/json/database.json.js | 'use strict';
module.exports = scope => {
// Production/Staging Template
if (['production', 'staging'].includes(scope.keyPath.split('/')[2])) {
// All available settings (bookshelf and mongoose)
const settingsBase = {
client: scope.client.database,
host: '${process.env.DATABASE_HOST || 127.0.0.... | JavaScript | 0 | @@ -728,25 +728,8 @@
%0A
- const settings =
Obj
@@ -762,29 +762,25 @@
ttings).
-reduce((acc,
+forEach((
key) =%3E
@@ -779,35 +779,55 @@
key) =%3E %7B%0A
-acc
+scope.database.settings
%5Bkey%5D = settings
@@ -841,38 +841,16 @@
y%5D;%0A
- return acc;%0A %7D, %7B
%7D);%0A%0A
@@ -1137,24 +113... |
bcde4c20fdc2904459f5925eb3e465859c4aaa78 | remove console.log | layout/pulse/layer-card/component.js | layout/pulse/layer-card/component.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Link, Router } from 'routes';
// Utils
import { LAYERS_PLANET_PULSE } from 'utils/layers/pulse_layers';
// Components
import Legend from 'layout/pulse/legend';
import WidgetChart from 'comp... | JavaScript | 0.000006 | @@ -2781,70 +2781,8 @@
l;%0A%0A
- console.log('activeContextLayers', activeContextLayers);%0A%0A
|
99cd4e07c24755ed77ed24e6fb7de034ca214061 | Update es6.typed.array-buffer.js | modules/es6.typed.array-buffer.js | modules/es6.typed.array-buffer.js | 'use strict';
var $export = require('./_export');
var $typed = require('./_typed');
var buffer = require('./_typed-buffer');
var anObject = require('./_an-object');
var toAbsoluteIndex = require('./_to-absolute-index');
var toLength = require('./_to-length');
var isObject = require('./_is-object');
var ArrayBuffer = re... | JavaScript | 0.999393 | @@ -1397,18 +1397,16 @@
var fin
-al
= toAbs
@@ -1527,18 +1527,16 @@
ngth(fin
-al
- first
@@ -1634,16 +1634,16 @@
ex = 0;%0A
+
whil
@@ -1656,18 +1656,16 @@
st %3C fin
-al
) %7B%0A
|
fa8c1721548a74d40d173743e27ca32cbddea514 | The jump is too high | projects/dwlg/main.js | projects/dwlg/main.js | var game = new Phaser.Game(640, 480, Phaser.AUTO, '', { preload: preload, create: create, update: update });
//player
var player;
var speed = 250;
//physics
var gravity = 500;
//maps
var map;
var layer;
//input
var cursors;
var jump;
var shift;
function preload(){
//loads all of the game assets
this.load.ima... | JavaScript | 0.999957 | @@ -2221,18 +2221,18 @@
ty.y = -
+1
5
-0
0;%0A %7D
|
3a1ad0c467e02854c8b8cceda133c698a63fcaca | Update path for local development | fateOfAllFools.dev.user.js | fateOfAllFools.dev.user.js | // ==UserScript==
// @author Robert Slifka (GitHub @rslifka)
// @connect docs.google.com
// @connect rslifka.github.io
// @copyright 2017-2018, Robert Slifka (https://github.com/rslifka/fate_of_all_fools)
// @description (DEVELOPMENT) Enhancements to the Destiny Item Manager
// @grant GM_addStyle
/... | JavaScript | 0 | @@ -786,37 +786,38 @@
te_of_all_fools/
-build
+public
/fateOfAllFools.
@@ -915,13 +915,14 @@
ols/
-build
+public
/fat
|
72fb5795e5344a6df8c91596d177255e5e80c473 | Make import-insert.html less flaky | LayoutTests/fast/html/imports/resources/import-helpers.js | LayoutTests/fast/html/imports/resources/import-helpers.js |
function waitAndTest(tests)
{
window.jsTestIsAsync = true;
function runNext()
{
var options = tests.shift();
if (!options)
return finishJSTest();
return runSingleTest(options);
}
function runSingleTest(options)
{
var ntries = 10;
function c... | JavaScript | 0.999949 | @@ -262,32 +262,58 @@
(options)%0A %7B%0A
+ var interval = 1;%0A
var ntri
@@ -321,10 +321,9 @@
s =
-10
+8
;%0A
@@ -483,32 +483,59 @@
%0A %7D%0A%0A
+ interval *= 2;%0A
if (
@@ -602,17 +602,24 @@
nReady,
-0
+interval
);%0A%0A
|
55e9657309cb9bb26c6846709595c80e2c15bb2e | update sandbox server port | chat/chat.js | chat/chat.js | /**
* @overview ccm component for simple chats
* @author André Kless <andre.kless@web.de> 2016
*/
ccm.component( {
name: 'chat',
config: {
html: [ ccm.store, { local: 'templates.json' } ],
key: 'test',
store: [ ccm.store, { url: 'ws://ccm.inf.h-brs.de:8080/sandbox.js', store: 'chat' } ],
s... | JavaScript | 0 | @@ -274,17 +274,16 @@
s.de:808
-0
/sandbox
|
49706d3a232a481928711b92c49535a31c828cf5 | Allow selectChoose to receive the parentElement of the trigger | test-support/helpers/ember-power-select.js | test-support/helpers/ember-power-select.js | import Ember from 'ember';
import Test from 'ember-test';
import wait from 'ember-test-helpers/wait';
import { click, fillIn, keyEvent, triggerEvent, find, findAll } from 'ember-native-dom-helpers';
/**
* @private
* @param {String} selector CSS3 selector of the elements to check the content
* @param {String} text Su... | JavaScript | 0 | @@ -2119,35 +2119,212 @@
-trigger = cssPathOrTrigger;
+if (cssPathOrTrigger.classList.contains('ember-power-select-trigger')) %7B%0A trigger = cssPathOrTrigger;%0A %7D else %7B%0A trigger = find('.ember-power-select-trigger', cssPathOrTrigger);%0A %7D
%0A
|
e57f745ec1f8fb2a347ef903245b022bc3672248 | Remove console.log statement. | website/app/application/core/projects/project/files/files-controller.js | website/app/application/core/projects/project/files/files-controller.js | Application.Controllers.controller("FilesController",
["$scope", "projectFiles", "applySearch",
"pubsub", "mcfile", "$state", "pubsub", FilesController]);
function FilesController($scope, projectFiles, applySearch,
$filter, mcfile, $state, pubsub) {
var f = projectFiles.model.p... | JavaScript | 0 | @@ -2498,45 +2498,8 @@
) %7B%0A
- console.log('yeah');%0A
|
1cc390262adb5c03968aee1753bcd1e8aad3b604 | Fix problem launching app with webpack | webpack.config.base.js | webpack.config.base.js | /**
* Base webpack config used across other specific configs
*/
const path = require('path');
const validate = require('webpack-validator');
const config = validate({
entry: [
'babel-polyfill',
'./views/components/App.jsx'
],
module: {
loaders: [{
test: /\.jsx?$/,
loaders: ['babel-loa... | JavaScript | 0.000315 | @@ -214,19 +214,8 @@
ews/
-components/
App.
|
ee6afcec0e84f449d0abe09c64b42c2f76bad42a | Update config.js | featurescape/fun/config.js | featurescape/fun/config.js | console.log('config.js');
var config = {
domain: 'http://sbu-bmi.github.io/FeatureScapeApps',
//domain: 'http://localhost:63342/FeatureScapeApps',
//findAPI: 'https://falcon.bmi.stonybrook.edu',
findAPI: 'http://quip1.uhmc.sunysb.edu',
port: 4000,
quipUrl: 'http://quip.bmi.stonybrook.edu/camicr... | JavaScript | 0.000002 | @@ -530,16 +530,18 @@
2%22,%0A
+//
mongoUrl
|
0b05f0e00c1e4a53c0e3df531e1013cebe584ec1 | allow webpack to resolve .json (#1672) | webpack.config.base.js | webpack.config.base.js | // Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// This file uses CommonJS.
/* eslint-disable import/no-commonjs */
'use strict';
const childProcess = require('child_process');
const webpack = require('webpack');
... | JavaScript | 0 | @@ -1302,16 +1302,25 @@
, '.jsx'
+, '.json'
%5D,%0A %7D
|
417664c790c6220c1ef9982b6db86a94dc427ef8 | add a css class to the view pills | webapp/src/main/webapp/app/cockpit/directives/viewPills.js | webapp/src/main/webapp/app/cockpit/directives/viewPills.js | ngDefine('cockpit.directives', [ 'angular' ], function(module, angular) {
'use strict';
module.directive('viewPills', [ '$location', 'Views', function($location, Views) {
var ViewPillsController = [ '$scope', 'Views', '$location', function($scope, Views, $location) {
var providers = Views.getProvide... | JavaScript | 0.000001 | @@ -1,8 +1,37 @@
+/* global ngDefine: false */%0A
ngDefine
@@ -58,19 +58,8 @@
', %5B
- 'angular'
%5D, f
@@ -76,17 +76,8 @@
dule
-, angular
) %7B%0A
@@ -130,64 +130,23 @@
', %5B
- '$location', 'Views', function($location, Views) %7B%0A
+%0A function() %7B
%0A
@@ -173,16 +173,22 @@
ller = %5B
+%0A
... |
a0661224a0fbff6b6b0df891538f7e6ee290f9f7 | Increase delay on live search fields | lib/assets/javascripts/magic_grid.js | lib/assets/javascripts/magic_grid.js | // vim: ts=4 et sw=4 sts=4
$(function () {
// Micro-plugin for positioning the cursor
$.fn.setCursor = $.fn.setCursor || function(pos) {
return this.each(function() {
if (this.setSelectionRange) {
this.focus();
this.setSelectionRange(pos, pos);
} ... | JavaScript | 0 | @@ -2409,16 +2409,26 @@
== 280ms
+/keystroke
%0A
@@ -2461,16 +2461,26 @@
== 120ms
+/keystroke
%0A
@@ -2516,10 +2516,10 @@
1 :
-2
5
+0
0;%0A
|
fcf65d2dd7e98a182e037d8d9e385a1c4708b7bf | Fix error reporting/returning when ensuring indices exist | webapplication/indexing/initialize/elastic-search-index.js | webapplication/indexing/initialize/elastic-search-index.js | 'use strict';
/**
* This initializes the ElasticSearch index.
*
* @param {Object} state The state of which we are about to initialize.
*/
const es = require('../../lib/services/elasticsearch');
const config = require('../../../shared/config');
const seriesMapping = {
properties: {
url: {
type: 'keywo... | JavaScript | 0 | @@ -2149,23 +2149,24 @@
.
-then(function()
+catch((error) =%3E
%7B%0A
@@ -2184,304 +2184,156 @@
ole.
-log('Index created.');%0A return state;%0A %7D, function(err) %7B%0A // TODO: Add a recursive check for this message.%0A if (err.message === 'No Living connections') %7B%0A th... |
4410d00af624cae1e5c01d62ed3b60fe5da44c05 | remove unused test properties | test/integration/init-test.js | test/integration/init-test.js | 'use strict';
const fs = require('fs-extra');
const path = require('path');
const { describe, it } = require('../helpers/mocha');
const { expect } = require('../helpers/chai');
const {
buildTmp,
processExit,
fixtureCompare: _fixtureCompare
} = require('git-fixtures');
const init = require('../../src/init');
cons... | JavaScript | 0.000001 | @@ -655,33 +655,8 @@
th,%0A
- blueprint,%0A from,%0A
@@ -698,150 +698,18 @@
com
-pareOnly,%0A statsOnly,%0A runCodemods,%0A listCodemods,%0A createCustomDiff,%0A commitMessage,%0A beforeMerge = () =%3E Promise.resolve()
+mitMessage
,%0A
@@ -838,34 +838,8 @@
);%0A%0A
- await befor... |
ce7da40d354785543e91b7a5ae7ba26c1abc6a28 | Remove old entries from webpack.test.config.js | webpack.test.config.js | webpack.test.config.js | const commonConfig = require('./webpack.common');
const path = require('path');
module.exports = Object.assign(commonConfig, {
entry: {
test: './test/index.js',
'sandbox-basic': './sandbox/basic.js',
'sandbox-dom': './sandbox/dom.js',
'sandbox-multirender': './sandbox/multirender.js'
},
output: {... | JavaScript | 0.000002 | @@ -163,145 +163,8 @@
.js'
-,%0A 'sandbox-basic': './sandbox/basic.js',%0A 'sandbox-dom': './sandbox/dom.js',%0A 'sandbox-multirender': './sandbox/multirender.js'
%0A %7D
|
eed5fe0dc6bf80dfa75e35bbec15be12b804adfb | Fix test issue | test/e2e/Tests/TasksNumberDecrease.spec.js | test/e2e/Tests/TasksNumberDecrease.spec.js | var TaskList = require('../POMs/TasksList.js');
describe('Check that tasks count decreases after marking tasks completed', function () {
beforeAll(function() {
TaskList.actionsBeforeAll();
});
it('Verify that tasks count decreases after marking tasks completed', function () {
//Adding two new task
... | JavaScript | 0.000003 | @@ -313,19 +313,19 @@
ask%0A
-let
+var
timesta
@@ -345,19 +345,19 @@
();%0A
-let
+var
firstTa
@@ -413,17 +413,19 @@
ring
+()
;%0A
-let
+var
sec
@@ -483,16 +483,18 @@
toString
+()
;%0A%0A T
|
03cf75d1ffe66ce09e10067a4dd69b2dbe87eee7 | move plugin in the optimizations section | webpack/prod.config.js | webpack/prod.config.js | import webpack from 'webpack'
import _debug from 'debug'
import WebpackIsomorphicToolsPlugin from 'webpack-isomorphic-tools/plugin'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import CleanWebpackPlugin from 'clean-webpack-plugin'
import isomorphicToolsConfig from './isomorphic.tools.config'
import proj... | JavaScript | 0.000001 | @@ -2610,84 +2610,8 @@
%7D),
-%0A new webpack.optimize.CommonsChunkPlugin('vendors', '%5Bname%5D.%5Bhash%5D.js'),
%0A%0A
@@ -3241,24 +3241,100 @@
%7D%0A %7D),
+%0A new webpack.optimize.CommonsChunkPlugin('vendors', '%5Bname%5D.%5Bhash%5D.js'),
%0A%0A webpac
|
ee44e8a291a6ae93a3f041872a760a08f8d5b470 | Add custom event triggers `trigger()` | dom/events.js | dom/events.js | /* eslint-disable no-underscore-dangle */
import {splitStringValue} from "./utils";
/**
* Registers an event listener for the given events
*
* @param {HTMLElement|HTMLElement[]} element
* @param {string|string[]} type
* @param {function(*):*} handler
*/
export function on (element, type, handler)
{
const li... | JavaScript | 0 | @@ -3237,28 +3237,995 @@
%0A return intermediate;%0A%7D%0A
+%0A%0A/**%0A * Dispatches an event%0A *%0A * @param %7BHTMLElement%7D element%0A * @param %7Bstring%7D type%0A * @param %7B*%7D data%0A */%0Aexport function trigger (element, type, data = null)%0A%7B%0A const event = createEvent(type, %7B%0A bubb... |
758876ebccf1551b71203f661106e3ff8a2f3ddf | set screen size for tests to be just smaller than our mac displays (which are 1440x900) | test/e2e/utils/protractor.configuration.js | test/e2e/utils/protractor.configuration.js | exports.getConfig = function(options) {
var config = {
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
framework: 'jasmine2',
capabilities: {
//browserName: 'internet explorer',
//browserName: 'firefox',
browserName: 'chrome',
version: 'latest', /... | JavaScript | 0 | @@ -661,14 +661,13 @@
ze=1
-920,19
+280,7
20'%5D
|
f078ed4dfc8331dbe47fe94f785bb48382b34283 | Remove Loadable from Stop (web) | web/src/index.js | web/src/index.js | import React, { Fragment } from 'react';
import { render } from 'react-dom';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import { TransitionGroup, CSSTransition } from 'react-transition-group';
import Loadable from 'react-loadable';
import Map from 'containers/Map';
import NavBar from 'components/... | JavaScript | 0 | @@ -252,42 +252,8 @@
';%0A%0A
-import Map from 'containers/Map';%0A
impo
@@ -344,16 +344,91 @@
oading';
+%0Aimport Map from 'containers/Map';%0Aimport Stop from 'containers/Stop/Stop';
%0A%0Aimport
@@ -763,102 +763,8 @@
);%0A%0A
-const Stop = Loadable(%7B%0A%09loader: () =%3E import('containers/Stop/Stop'),%0A%09l... |
43745715d5f1861e178ea1c8bceec1ea51f3d57b | Enforce peerDependencies via defaults (#64) | src/tasks/package.js | src/tasks/package.js | const { json, install } = require('mrm-core');
const packages = [
// Utilities
'nsp',
'del-cli',
'cross-env',
'standard-version',
// Jest
'jest',
'babel-jest',
// Babel
'babel-cli',
'babel-polyfill',
'babel-preset-env',
'babel-plugin-transform-object-rest-spread',
// ESLint
'eslint',
... | JavaScript | 0 | @@ -738,24 +738,113 @@
%60,%0A %7D,%0A
+ peerDependencies: %7B%0A webpack: '%5E2.0.0 %7C%7C %3E= 3.0.0-rc.0 %7C%7C %5E3.0.0',%0A %7D,%0A
script
|
f2cdd2bb052d3eb3b6343deb5b24347fa6a5bae6 | revert bump task | src/tasks/release.js | src/tasks/release.js | import gulp from 'gulp';
import header from 'gulp-header';
import size from 'gulp-size';
import bump from 'gulp-bump';
import git from 'gulp-git';
gulp.task('tag', (done) => {
var pkg = require(process.cwd() + '/package.json'),
v = 'v' + pkg.version,
message = 'Release ' + v;
gulp.src('./*')
... | JavaScript | 0.000017 | @@ -562,98 +562,406 @@
p',
-(params) =%3E %7B%0A gulp.src('./package.json')%0A .pipe(bump(%7B type: gulp.env.type %7D
+function() %7B%0A bumpHelper(%7B%7D);%0A%7D);%0A%0A gulp.task('bump:patch', function() %7B%0A bumpHelper(%7B%7D);%0A %7D);%0A%0A gulp.task('bump:minor', function() %7B%0A... |
237d91cb396977931d2d2f66a3416d4f0174f803 | set mockserver Enviro to 'test'; mockeserver minor fixes | test/middleware/mockserver.js | test/middleware/mockserver.js | #!/usr/bin/env node
'use strict';
const Hapi = require('hapi');
const Sequelize = require('sequelize');
// const pg = require('pg');
const api = require('../../src/modules/middleware/index.js');
const routes = require('../../src/modules/middleware/routes/index.routes');
const rt_ctx_env = process.env.LEDWAX_ENVIRO || ... | JavaScript | 0 | @@ -102,19 +102,18 @@
');%0A
-//
const
-pg
+Path
= r
@@ -121,17 +121,19 @@
quire('p
-g
+ath
');%0Acons
@@ -319,11 +319,12 @@
%7C%7C '
-dev
+test
';%0Ac
@@ -407,19 +407,19 @@
_env%5D;%0A%0A
-var
+let
interna
@@ -501,19 +501,19 @@
env%5D%0A%7D;%0A
-var
+let
db;%0A%0Amo
@@ -558,11 +558,11 @@
%7B%0A%0A%09
... |
4c3fa5fa31e24f4633f65060ba3a4e5ee278d6ac | Update test, fix test size | test/multidevice/selectAny.js | test/multidevice/selectAny.js | "use strict";
var assert = require('chai').assert;
var xdTesting = require('../../lib/index')
var templates = require('../../lib/templates');
var q = require('q');
describe('MultiDevice - selectAny', function () {
var test = this;
test.baseUrl = "http://localhost:8090/";
it('should select a single devic... | JavaScript | 0 | @@ -316,21 +316,22 @@
device @
-large
+medium
', funct
@@ -498,32 +498,94 @@
remote(options)%0A
+ .getCount().then(count =%3E assert.equal(count, 2))%0A
.sel
@@ -762,13 +762,14 @@
ck @
-large
+medium
', f
|
2bb7a65a1d0b9d4d7b6a537d205199fdb6cf8338 | Fix misusing assert.notStrictEqual() in the test for Option<T>.flatMap() | test/option-t/test_flatmap.js | test/option-t/test_flatmap.js | 'use strict';
const assert = require('assert');
const { createSome, createNone, } = require('../../__dist/cjs/Option');
describe('Option<T>.flatMap()', function(){
describe('self is `None`', function () {
let option = null;
let isNotCalled = true;
before(function(){
const none... | JavaScript | 0.000678 | @@ -2264,20 +2264,17 @@
qual(val
- !==
+,
rv);%0A
|
69bf5c5ccc450cc8e884bea9b685ba86b54b04a8 | Update nextMillenniumBidAdapter.js (#7972) | modules/nextMillenniumBidAdapter.js | modules/nextMillenniumBidAdapter.js | import { isStr, _each, getBidIdParameter } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
const BIDDER_CODE = 'nextMillennium';
const ENDPOINT = 'https://pbs.nextmillmedia.com/openrtb2/auction';
const SYNC_ENDPOINT = 'https://st... | JavaScript | 0 | @@ -3180,24 +3180,134 @@
ponse) =%3E %7B%0A
+ if (!(response && response.body && response.body.ext && response.body.ext.responsetimemillis)) return%0A
_eac
|
e94b69e74f6880674bd8ccb9aa7bfe56f826ca3e | Make the information visible when the query succeeds | src/twitterclient.js | src/twitterclient.js | // Copyright (c) 2012, David Haglund
// 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, this list of... | JavaScript | 0.00054 | @@ -2189,56 +2189,210 @@
-$('#description').text(jsonTwitter.description);
+if (jsonTwitter.description != %22%22) %7B%0A $('#description').text(jsonTwitter.description);%0A %7D else %7B%0A $('#description').html(' ');%0A %7D
%0A
|
3fabfb25222709d444c7dd334db3efeb029de146 | fix test in firefox | test/test-js-regress-GH-14.js | test/test-js-regress-GH-14.js | var common = require('../lib/common');
var test = require('tape');
test('should be able to detect ftypmp42 as a valid mp4 header type', function (t) {
var buf = new Buffer(12);
buf[0] = '0x00'
buf[1] = '0x00'
buf[2] = '0x00'
buf[3] = '0x18'
buf[4] = '0x66' // f
buf[5] = '0x74' // t
buf[6] = '0... | JavaScript | 0.000001 | @@ -174,336 +174,175 @@
fer(
-12);%0A buf%5B0%5D = '0x00'%0A buf%5B1%5D = '0x00'%0A buf%5B2%5D = '0x00'%0A buf%5B3%5D = '0x18'%0A buf%5B4%5D = '0x66' // f%0A buf%5B5%5D = '0x74' // t%0A buf%5B6%5D = '0x79' // y%0A buf%5B7%5D = '0x70' // p%0A buf%5B8%5D = '0x6D' // m%0A buf%5B9%5D = '0x70' // p%0A ... |
0b0e941a582c0cf9f364f612991c9613a925ceca | Increase timeout in CssComposer test | test/specs/css_composer/e2e/CssComposer.js | test/specs/css_composer/e2e/CssComposer.js | module.exports = {
run() {
describe('E2E tests', () => {
var fixtures;
var fixture;
var gjs;
var cssc;
var clsm;
var domc;
var rulesSet;
var rulesSet2;
before(() => {
fixtures = $("#fixtures");
fixture = $('<div class="... | JavaScript | 0 | @@ -396,18 +396,16 @@
-//
this.tim
|
769520bf1ac90987d942cec4e08bd78b34480c5c | Add submit button to upload images dialog | app/assets/javascripts/views/experiences/add_image_to_experience_form.js | app/assets/javascripts/views/experiences/add_image_to_experience_form.js | function addImageToExperienceForm(experienceID) {
var assetURL = "/users/" + getCurrentUser() + "/assets/new"
$.ajax({
method: "get",
url: assetURL,
})
.done(function(response){
var postURL = "/users/" + getCurrentUser() + "/assets"
clearMainFrame()
hideMainMenu()
var $experienceID = $("... | JavaScript | 0 | @@ -508,16 +508,101 @@
enceID)%0A
+ $submit = $(%22%3Cinput type='submit'%3E%22).addClass(%22form-submit%22).appendTo($dropzone)%0A
appe
|
d675c0cf10e92eee9a549d059bd10f20dd8d6ba7 | fix conflict | test/unit/angular-carousel.js | test/unit/angular-carousel.js | /*global beforeEach, afterEach, describe, it, inject, expect, module, spyOn, fullcalendar, angular, $*/
describe('carousel', function () {
'use strict';
var scope, $compile, $sandbox;
beforeEach(module('angular-carousel'));
beforeEach(inject(function ($rootScope, _$compile_) {
scope = $rootScope;
... | JavaScript | 0.031708 | @@ -66,29 +66,8 @@
ule,
- spyOn, fullcalendar,
ang
|
c240ae3ab08f9640bb3a15cb1ee66a707eea7029 | Remove typo in numeric validator unit test | test/unit/specs/validators/numeric.spec.js | test/unit/specs/validators/numeric.spec.js | import numeric from 'src/validators/numeric'
describe('numeric validator', () => {
it('should validate undefined', () => {
expect(numeric(undefined)).to.be.true
})
it('should validate null', () => {
expect(numeric(null)).to.be.true
})
it('should validate empty string', () => {
expect(numeric(''... | JavaScript | 0.000018 | @@ -844,11 +844,8 @@
alse
-sSt
%0A %7D
|
f076a9d390816b25f6952d0c7bb26ecaacd2c308 | Remove needless code | tests/dummy/app/initializers/router-ext.js | tests/dummy/app/initializers/router-ext.js | import Ember from 'ember';
let hasRan = false;
let newSetup = true;
function initialize() {
if (hasRan) { return; }
hasRan = true;
Ember.Router.reopen({
assetLoader: Ember.inject.service(),
setupRouter() {
let isSetup = this._super(...arguments);
if (newSetup) {
// Different vers... | JavaScript | 0.9998 | @@ -270,32 +270,8 @@
s);%0A
- if (newSetup) %7B%0A
@@ -340,18 +340,16 @@
ute%60 vs%0A
-
//
@@ -369,18 +369,16 @@
.%0A
-
if (this
@@ -412,34 +412,32 @@
== undefined) %7B%0A
-
this._ro
@@ -485,34 +485,32 @@
lver(%0A
-
this._routerMicr
@@ -554,31 +554,27 @@
ib)%... |
f8a7fd62d549c067fa6d7af325ddb0c2a0a8619e | 更新 currCase | client/containers/Project/Interface/InterfaceCol/InterfaceCaseContent.js | client/containers/Project/Interface/InterfaceCol/InterfaceCaseContent.js | import React, { Component } from 'react'
import { connect } from 'react-redux';
import PropTypes from 'prop-types'
import { withRouter } from 'react-router'
import axios from 'axios'
import { message } from 'antd'
import { fetchInterfaceColList, setColData, fetchCaseData } from '../../../../reducer/modules/interfaceCol... | JavaScript | 0.000001 | @@ -3342,16 +3342,52 @@
'%E6%9B%B4%E6%96%B0%E6%88%90%E5%8A%9F')%0A
+ this.props.fetchCaseData(id);%0A
%7D%0A
|
104e2c02bb6fbb10dcde73376fcddd643d8fe748 | Fix adding sentences using IME | webroot/js/sentences_lists.add_new_sentence_to_list.js | webroot/js/sentences_lists.add_new_sentence_to_list.js | /**
* Tatoeba Project, free collaborative creation of multilingual corpuses project
* Copyright (C) 2009-2010 HO Ngoc Phuong Trang <tranglich@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Fre... | JavaScript | 0.012933 | @@ -878,10 +878,12 @@
.key
-up
+down
(fun
|
f641e94c1c64a7e8dfde55a88fb12a5c0d49db93 | Format code. | website/app/application/core/login/login-controller.js | website/app/application/core/login/login-controller.js | (function(module) {
module.controller('LoginController', LoginController);
LoginController.$inject = ["$state", "User", "toastr",
"mcapi", "pubsub", "model.projects",
"projectFiles", "$anchorScroll", "$location"];
/* @ngInject */
function LoginController($state, User, toastr, m... | JavaScript | 0.000001 | @@ -2,16 +2,17 @@
function
+
(module)
@@ -141,20 +141,16 @@
-
%22mcapi%22,
@@ -178,20 +178,16 @@
jects%22,%0A
-
@@ -539,17 +539,16 @@
on login
-
() %7B%0A
|
e891643396d84f493dec902c3c209c5f7013caa9 | fix string error | www/CookieJar.js | www/CookieJar.js | /*
* Copyright 2013 Ernests Karlsons
* https://github.com/bez4pieci
* http://www.karlsons.net
*
* 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
* withou... | JavaScript | 0.000776 | @@ -1619,17 +1619,9 @@
tag
-.%0A
+,
%22cl
|
3c28b4e1ac63120fed2099fe768435fb3ea9fdb7 | remove old code/license [skip ci] | packages/babel-plugin-transform-regenerator/src/index.js | packages/babel-plugin-transform-regenerator/src/index.js | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
export... | JavaScript | 0 | @@ -1,332 +1,20 @@
-/**%0A * Copyright (c) 2014, Facebook, Inc.%0A * All rights reserved.%0A *%0A * This source code is licensed under the BSD-style license found in the%0A * https://raw.github.com/facebook/regenerator/master/LICENSE file. An%0A * additional grant of patent rights can be found in the PATENTS file in%0A... |
b8e1f82f3710d1bda436e9c57f6c819efe610362 | fix leave editor modal | core/client/app/components/modals/leave-editor.js | core/client/app/components/modals/leave-editor.js | import ModalComponent from 'ghost/components/modals/base';
export default ModalComponent.extend({
actions: {
confirm() {
this.get('confirm').finally(() => {
this.send('closeModal');
});
}
}
});
| JavaScript | 0 | @@ -158,16 +158,18 @@
onfirm')
+()
.finally
|
010be07663e5506694de2ae2a4f008c64df60c35 | Add task id to the modal | public/javascripts/Admin/src/Admin.GSVLabelView.js | public/javascripts/Admin/src/Admin.GSVLabelView.js | function AdminGSVLabel() {
var self = {};
var _init = function() {
_resetModal();
};
function _resetModal() {
self.modal =
$('<div class="modal fade" id="labelModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">'+
'<div class="modal-dialog" rol... | JavaScript | 0.000008 | @@ -1988,32 +1988,215 @@
'%3C/tr%3E'+%0A
+ '%3Ctr%3E' +%0A '%3Cth%3ETask ID%3C/th%3E' +%0A '%3Ctd id=%22task%22%3E%3C/td%3E' +%0A '%3C/tr%3E'+%0A
@@ -2721,24 +2721,75 @@
criptio... |
655710bd141ca7c0f54310bd5b49712f0ff04def | configure gruntfile to copy needed codemirror files to assets dir | www/Gruntfile.js | www/Gruntfile.js | module.exports = function (grunt) {
grunt.loadNpmTasks( 'grunt-browserify' )
grunt.loadNpmTasks( 'gruntify-eslint' )
grunt.loadNpmTasks( 'grunt-contrib-copy' )
grunt.loadNpmTasks( 'grunt-contrib-less' )
var allJSFilesInJSFolder = 'js/**/*.js'
var distFolder = '../wikipedia/assets/'
grunt.initConfig( {
... | JavaScript | 0 | @@ -1908,16 +1908,232 @@
ss.map%60%0A
+ %7D,%0A %7B%0A expand: true,%0A cwd: '../Carthage/Checkouts/mediawiki-extensions-CodeMirror/resources/',%0A src: %5B'**'%5D,%0A dest: %60$%7BdistFolder%7Dcodemirror/resources/%60%0A
|
fae22b745a40bbeb49bc7c1d811045782831e1b7 | fix flaky test with removal of Date.now() checks | packages/cf-component-notifications/test/Notification.js | packages/cf-component-notifications/test/Notification.js | import React from 'react';
import renderer from 'react-test-renderer';
import { render, unmountComponentAtNode } from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import { Notification } from '../../cf-component-notifications/src/index';
import jsdom from 'jsdom';
// timeout as second arg is so annoyi... | JavaScript | 0 | @@ -816,172 +816,32 @@
%3E %7B%0A
- let start = Date.now();%0A%0A let onClose = () =%3E %7B%0A let end = Date.now();%0A expect(end - start).toBeLessThan(300);%0A expect(end - start).toBeGreaterThan(50);
+%0A let onClose = () =%3E %7B
%0A
|
04adbf203075613dfc8f70fb4a6008c7acdc2311 | remove parens from single param arrow functions | src/utils/generic.js | src/utils/generic.js | export function deepAssign (target, ...sources) {
if (isObject(target)) {
sources.forEach((source) => {
forOwn(source, (property) => {
if (isObject(source[property])) {
if (!target[property] || !isObject(target[property])) {
target[property] = {};
}
deepAssign(target[property], source[pro... | JavaScript | 0.000001 | @@ -90,16 +90,14 @@
ach(
-(
source
-)
=%3E
@@ -116,25 +116,24 @@
source,
-(
property
) =%3E %7B%0A%09
@@ -116,33 +116,32 @@
source, property
-)
=%3E %7B%0A%09%09%09%09if (is
@@ -584,25 +584,24 @@
second,
-(
property
) =%3E %7B%0A%09
@@ -592,17 +592,16 @@
property
-)
=%3E %7B%0A%09%09
|
7d8733e303e92f10ba4539c56f3c29fe0aef806e | Add missing paren. | wnprc_billing/resources/queries/ehr_billing/invoice.js | wnprc_billing/resources/queries/ehr_billing/invoice.js | require("ehr/triggers").initScript(this);
function onUpsert(helper, scriptErrors, row, oldRow) {
LABKEY.Query.selectRows({
requiredVersion: 9.1,
schemaName: 'ehr_billing',
queryName: 'invoiceRuns',
columns: ['objectId, runDate'],
filterArray: [LABKEY.Filter.create('objectId... | JavaScript | 0.00007 | @@ -2585,32 +2585,50 @@
return false;%0A
+ %7D%0A
%7D%0A%0A
|
df46bb81776cba0723fa09a686bd13a2bb9ccd7d | Remove info message after 5sec. | public/js/app/controllers/ApplicationController.js | public/js/app/controllers/ApplicationController.js | define(["app/app",
"ember"], function(App, Ember) {
"use strict";
App.ApplicationController = Ember.Controller.extend({
hasMessage: function() {
var message = this.get('session.message')
return message && message.length > 0
}.property('session.message'),
displayError: function(erro... | JavaScript | 0 | @@ -314,24 +314,168 @@
on(error) %7B%0A
+ window.setTimeout(function () %7B%0A $(%22.box-message%22).slideUp(300, function () %7B%0A $(this).remove()%0A %7D)%0A %7D, 5000)%0A
this.g
|
d44b5b0c41b019774c6d0ba79cc29927455e921d | create tests for the model | tests/subscriptions-api/subscription.model.spec.js | tests/subscriptions-api/subscription.model.spec.js | var request = require('mongoose'),
app = require('http://localhost:4000/subscriptions'); | JavaScript | 0 | @@ -1,92 +1,2387 @@
var
-request = require('mongoose'),%0A app = require('http://localhost:4000/subscriptions'
+app = require('./../../server.js');%0Avar SubscriptionModel = require('./../../app/models/subscription.model');%0Avar subscription;%0Avar id;%0Avar deleteID;%0Avar updateID;%0Avar edit;%0A%0Adescribe('Su... |
dbe8a2344c666f8cbf066ea902fb48f6a8bf3bf6 | fix optional parameters and implement callbacks | www/analytics.js | www/analytics.js | function UniversalAnalyticsPlugin() {};
UniversalAnalyticsPlugin.prototype.startTrackerWithId = function(id) {
cordova.exec(function() {}, function() {}, 'UniversalAnalytics', 'startTrackerWithId', [id]);
};
UniversalAnalyticsPlugin.prototype.trackView = function(screen) {
cordova.exec(function() {}, function() {},... | JavaScript | 0 | @@ -101,16 +101,32 @@
ction(id
+, success, error
) %7B%0A%09cor
@@ -139,36 +139,22 @@
xec(
-function() %7B%7D, function() %7B%7D
+success, error
, 'U
@@ -268,16 +268,32 @@
n(screen
+, success, error
) %7B%0A%09cor
@@ -306,36 +306,22 @@
xec(
-function() %7B%7D, function() %7B%7D
+success, error
, 'U
@@ -439,24 +... |
200964edff92648408f479ffd8fed199e9494e17 | Use numberpicker up/down buttons for up/down keys (fixes #1232) | public/viewjs/components/numberpicker.js | public/viewjs/components/numberpicker.js | $(".numberpicker-down-button").unbind('click').on("click", function()
{
var inputElement = $(this).parent().parent().find('input[type="number"]');
inputElement.val(parseFloat(inputElement.val()) - 1);
inputElement.trigger('keyup');
inputElement.trigger('change');
});
$(".numberpicker-up-button").unbind('click').on... | JavaScript | 0 | @@ -3398,8 +3398,255 @@
ve once%0A
+%0A$(%22.numberpicker%22).on(%22keydown%22, function(e)%0A%7B%0A%09if (e.key == %22ArrowUp%22)%0A%09%7B%0A%09%09e.preventDefault();%0A%09%09$(%22.numberpicker-up-button%22).click();%0A%09%7D%0A%09else if (e.key == %22ArrowDown%22)%0A%09%7B%0A%09%09e.preventDefault();%0A%09%09$(%22.n... |
4022f0ad98948a27db464f2f11e84c811c3a1165 | Move process.nextTick() to run() method | lib/emitters/custom-event-emitter.js | lib/emitters/custom-event-emitter.js | var util = require("util")
, EventEmitter = require("events").EventEmitter
module.exports = (function() {
var CustomEventEmitter = function(fct) {
this.fct = fct;
var self = this;
process.nextTick(function() {
if (self.fct) {
self.fct.call(self, self)
}
}.bind(this));
... | JavaScript | 0 | @@ -198,125 +198,8 @@
is;%0A
- process.nextTick(function() %7B%0A if (self.fct) %7B%0A self.fct.call(self, self)%0A %7D%0A %7D.bind(this));%0A
%7D%0A
@@ -318,16 +318,144 @@
f = this
+;%0A %0A process.nextTick(function() %7B%0A if (self.fct) %7B%0A self.fct.call(self, self)%... |
d968fe324bddd13c645d75aa874c811cfcc98056 | Edit function for password validation | server/helpers/encrypt.js | server/helpers/encrypt.js | import bcrypt from 'bcrypt';
module.exports = {
encryptPassword(password) {
const passwordHash = bcrypt.hashSync(password, 10);
return passwordHash;
},
};
| JavaScript | 0.000001 | @@ -75,16 +75,19 @@
d) %7B%0A
+ //
const p
@@ -134,16 +134,19 @@
10);%0A
+ //
return
@@ -159,16 +159,150 @@
rdHash;%0A
+ const salt = bcrypt.genSaltSync(10);%0A const hash = bcrypt.hashSync(password, salt);%0A return %7B%0A hash,%0A salt%0A %7D;%0A
%7D,%0A%0A%7D;
|
c3df2f941dccf5e135ac48408fccc25cf3c5da30 | attach promise utils atop bluebird | src/utils/promise.js | src/utils/promise.js | /*
Copyright 2019 The Matrix.org Foundation C.I.C.
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 ... | JavaScript | 0.000002 | @@ -573,16 +573,126 @@
se.%0A*/%0A%0A
+// This is only here to allow access to methods like done for the time being%0Aimport Promise from %22bluebird%22;%0A%0A
// @flow
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.