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 |
|---|---|---|---|---|---|---|---|
f108c39c9399cd9c97da0228b1085bc202ffd72e | Handle catch before then | node_modules/gh-core/lib/globals/sequelize.js | node_modules/gh-core/lib/globals/sequelize.js | /**
* Copyright (c) 2015 "Fronteer LTD"
* Grasshopper Event Engine
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any late... | JavaScript | 0 | @@ -786,20 +786,476 @@
ise');%0A%0A
+/*!%0A * If an unhandled error is thrown inside the promise, we should promote it. This is needed because%0A * if an unhandled exception occurs in the %60callback%60 during the %60then%60 handler it is considered a%0A * rejection. Since we want things like unit tests to catch these... |
c33db62c36243c90fa669fb5a93ac6efc6bfbff5 | Fix broken tests (since I made error toasts sticky) | omod/src/test/webapp/resources/scripts/emr.js | omod/src/test/webapp/resources/scripts/emr.js |
var window;
window.messages = {};
describe("Tests of emr functions", function() {
it("should display success message", function() {
var jqueryWithSpy = jq();
emr.setJqObject(jqueryWithSpy);
spyOn(jqueryWithSpy,'toastmessage').andCallThrough(); // call through just to make sure the unde... | JavaScript | 0 | @@ -999,32 +999,46 @@
n : 'top-right',
+ sticky: true,
text : 'some er
@@ -3157,32 +3157,46 @@
n : 'top-right',
+ sticky: true,
text : 'some er
|
109e73553e6a9a42296398caff3ed0682c087cf2 | return width and height in bounding box | packages/d3fc-label-layout/src/boundingBox.js | packages/d3fc-label-layout/src/boundingBox.js | export default () => {
var bounds = [0, 0];
var strategy = (data) => data.map((d, i) => {
var tx = d.x;
var ty = d.y;
if (tx + d.width > bounds[0]) {
tx -= d.width;
}
if (ty + d.height > bounds[1]) {
ty -= d.height;
}
return {x: ... | JavaScript | 0.000037 | @@ -310,16 +310,50 @@
return %7B
+height: d.height, width: d.width,
x: tx, y
|
f3b4cf64865f772af1892a2a5761f488f683bec8 | Increase network timeout connection for Yarn users | packages/generators/app/lib/create-project.js | packages/generators/app/lib/create-project.js | 'use strict';
// FIXME
/* eslint-disable import/extensions */
const { join } = require('path');
const fse = require('fs-extra');
const chalk = require('chalk');
const execa = require('execa');
const ora = require('ora');
const _ = require('lodash');
const stopProcess = require('./utils/stop-process');
const { trackU... | JavaScript | 0 | @@ -5519,24 +5519,136 @@
(useYarn) %7B%0A
+ // Increase timeout for slow internet connections.%0A installArguments.push('--network-timeout 1000000');%0A%0A
return e
|
275c5a457b8fb89bf53c0a6b9d2241ba7ef8a513 | Allow <StaticRouter> to render <Route>s | packages/react-router/modules/StaticRouter.js | packages/react-router/modules/StaticRouter.js | import invariant from 'invariant'
import React, { PropTypes } from 'react'
import { createPath, parsePath } from 'history/PathUtils'
import Router from './Router'
const normalizeLocation = (object) => {
const { pathname = '/', search = '', hash = '' } = object
return {
pathname,
search: search === '?' ? '... | JavaScript | 0 | @@ -719,16 +719,39 @@
%0A )%0A%7D%0A%0A
+const noop = () =%3E %7B%7D%0A%0A
/**%0A * T
@@ -1745,16 +1745,49 @@
n)%0A %7D%0A%0A
+ handleListen = () =%3E%0A noop%0A%0A
render
@@ -2224,31 +2224,25 @@
en:
-staticH
+this.h
andle
-r('l
+L
isten
-')
%0A
|
51de94009604a64f855a161fd04359e093adf5ed | disable strict | actor-apps/app-web/webpack.config.js | actor-apps/app-web/webpack.config.js | import minimist from 'minimist';
import path from 'path';
import webpack from 'webpack';
const argv = minimist(process.argv.slice(2));
const DEBUG = !argv.release;
export default {
cache: DEBUG,
debug: DEBUG,
devtool: DEBUG ? 'inline-source-map' : 'source-map',
hotComponents: DEBUG,
entry: {
app: DEBUG... | JavaScript | 0.000001 | @@ -1504,43 +1504,8 @@
l%5B%5D=
-strict' +%0A '&optional%5B%5D=
es7.
|
2131d47bd5accef8e7f59b49867cd23dc7c229aa | remove duplicate declaration | addon/components/bc-sortable-list.js | addon/components/bc-sortable-list.js | /**
* @module component
*
*/
import { camelize } from '@ember/string';
import EmberObject from '@ember/object';
import { A } from '@ember/array';
import { assert } from '@ember/debug';
import { isNone } from '@ember/utils';
import Component from '@ember/component';
import layout from '../templates/components/bc-sort... | JavaScript | 0.000003 | @@ -1061,35 +1061,8 @@
');%0A
-%09%09let reportData = A(%5B%5D);%0A%0A
%09%09co
|
cd57d7971068eccabe7bbd5eccbc54f16e538302 | Allow to override progress property of backdrop-content | addon/components/content-backdrop.js | addon/components/content-backdrop.js | import Ember from "ember";
const {
Component,
computed,
String: { htmlSafe },
computed: { alias },
inject: { service },
get,
} = Ember;
export default Component.extend({
sideMenu: service(),
progress: alias("sideMenu.progress"),
attributeBindings: ["style"],
classNames: ["con... | JavaScript | 0 | @@ -100,21 +100,22 @@
uted: %7B
-alias
+oneWay
%7D,%0A
@@ -234,13 +234,14 @@
ss:
-alias
+oneWay
(%22si
|
c92996101dbc22011bd99670e5fbd1d88686c8e6 | Create attributes on load | addon/components/table-filterable.js | addon/components/table-filterable.js | import Ember from 'ember';
import layout from '../templates/components/table-filterable';
export default Ember.Component.extend({
layout,
store: Ember.inject.service(),
type: null,
page: 1,
per_page: 10,
direction: 'ASC',
onInit: Ember.on('init', function(){
this.send('createFilter');
}),
opera... | JavaScript | 0.000001 | @@ -232,86 +232,8 @@
C',%0A
-%0A onInit: Ember.on('init', function()%7B%0A this.send('createFilter');%0A %7D),%0A%0A
op
@@ -280,17 +280,16 @@
DESC'%5D,%0A
-%0A
filter
@@ -304,17 +304,16 @@
.A(%5B%5D),%0A
-%0A
attrib
@@ -322,242 +322,105 @@
es:
-Ember.computed('type', function()%7B%0A let attribute... |
753ca6e2327c61cc28ee420a57fc9d7a4acd5466 | Add test cases for aliases | test/anye-test.js | test/anye-test.js | "use strict";
var Anye = require( "../lib/anye.js" );
module.exports = {
setUp: function( fDone ) {
Anye.clear();
fDone();
},
"Anye Tests": function( oTest ) {
// Setting
oTest.equal( Anye.set( "simple", "/url/" ), "/url/", "Anye.set should return the given URL." );
... | JavaScript | 0.000001 | @@ -4386,32 +4386,376 @@
L-decoded.%22 );%0A%0A
+ // Aliases%0A oTest.equal( Anye.store( %22simple%22, %22/url/%22 ), %22/url/%22, %22Anye.store() should behave like Anye.set().%22 );%0A oTest.equal( Anye.retrieve( %22simple%22 ), %22/url/%22, %22Anye.retrieve() should behave like Anye.get().%22 )... |
d745919379e9814d2d749fe60821d378e1c8962a | Fix tests | test/app/index.js | test/app/index.js | const chai = require('chai');
const expect = chai.expect;
const spies = require('chai-spies');
chai.use(spies);
const _ = require('lodash');
const test = require('ava');
const TestUtils = require('fountain-generator').TestUtils;
let context;
const base = {
devDependencies: {
'jspm': '0.17.0-beta.25',
'system... | JavaScript | 0.000003 | @@ -1019,14 +1019,13 @@
ipt@
-4.0.16
+5.1.2
'%0A
|
253dc863ee3bb6c4cfce511993573abe96ac12d4 | Handle games with a TBD time. | _includes/js/application.js | _includes/js/application.js | (function() {
var Time = {
MINUTES_IN_HOUR : 60,
MILLISECONDS_IN_MINUTE : 60000,
OFFSETS : [300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300, 240,
300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300],
UNTILS : [1268550000000, 1289109600000, 1299999600000, 1320559200000,
... | JavaScript | 0 | @@ -3405,55 +3405,18 @@
-time.textContent = Time.formatTime(%0A
+var date =
new
@@ -3443,32 +3443,34 @@
ute(%22datetime%22))
+;%0A
%0A );%0A
@@ -3464,16 +3464,87 @@
+time.textContent = date.getHours() === 3 ? %22TBD%22 : Time.formatTime(date
);%0A
|
448e7c38da51560ee00a81dfb3e7b7ea1dc5bf39 | update default font | app/eme/config.js | app/eme/config.js | 'use strict'
const os = require('os')
const Config = require('./utils/electron-config')
const cmdOrCtrl = os.platform() === 'darwin' ? 'command' : 'ctrl'
const config = new Config({
defaults: {
recentFiles: [],
lastAppState: {
tabs: [],
currentTabIndex: null
},
settings: {
theme: '... | JavaScript | 0.000001 | @@ -419,129 +419,60 @@
nt:
-%60-apple-system, BlinkMacSystemFont,'avenir next', avenir,helvetica, 'helvetica neue',Ubuntu,'segoe ui', arial,sans-serif%60
+'Menlo, %22DejaVu Sans Mono%22, %22Lucida Console%22, monos'
,%0A
|
ab286ea464de684651e217f78abf9aa1b0ba6770 | add some more logs | functions/index.js | functions/index.js | 'use strict';
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
const functions = require('firebase-functions');
// The Firebase Admin SDK to access the Firebase Realtime Database.
const admin = require('firebase-admin');
var severDict = {'Larceny From Motor Vehicle' : 1, 'Harassm... | JavaScript | 0 | @@ -2557,24 +2557,74 @@
apshot =%3E %7B%0A
+ console.log(%22Got snapshot:%22, snapshot.key);%0A
snapsh
@@ -3017,24 +3017,79 @@
nt_value) %7B%0A
+ console.log(%22Got null current_value, skipping%22);%0A
return
|
906a433265c2ebee2ff87fc519a04707e0c20d24 | Document DefaultScheduler | src/default-scheduler.js | src/default-scheduler.js | // If the scheduler is not customized via `etch.setScheduler`, an instance of
// this class will be used to schedule updates to the document. The
// `updateDocument` method accepts functions to be run at some point in the
// future, then runs them on the next animation frame.
export default class DefaultScheduler {
c... | JavaScript | 0 | @@ -454,24 +454,237 @@
(this)%0A %7D%0A%0A
+ // Enqueues functions that write to the DOM to be performed on the next%0A // animation frame. Functions passed to this method should *never* read from%0A // the DOM, because that could cause synchronous reflows.%0A
updateDocu
@@ -863,16 +863,123 @@
%7D%0A %7D%0A%... |
c97e3d1359ff9538cf43446c2ed18f42b0e531c2 | fix regexes that match for error messages in tests. output changed with new less version | test/compiless.js | test/compiless.js | /*global describe, it, __dirname*/
var express = require('express'),
Path = require('path'),
unexpected = require('unexpected'),
compiless = require('../lib/compiless');
describe('compiless', function () {
var root = Path.resolve(__dirname, 'root'),
expect = unexpected.clone()
.inst... | JavaScript | 0.000013 | @@ -3562,114 +3562,10 @@
ling
- %5C/syntaxerror.less:.*(?:missing closing %60%5C%7D%60%7CUnrecognised input%5C. Possibly missing something) at line 8
/%0A
+
@@ -3960,66 +3960,23 @@
y: /
-body:before %5C%7B.*Error.*%5C/importerror%5C.less.*notfound%5C.less
+Error compiling
/%0A
@@ -4345,116 +4345,8 @@
ling
... |
e307a4045de639783524b97e753b08e0b1676c3f | Update query import for new export model | app/helpers/db.js | app/helpers/db.js | import treo from 'treo'
let schema = treo.schema()
.version(1)
.addStore('courses', { key: 'clbid' })
.addIndex('clbid', 'clbid', { unique: true })
.addIndex('credits', 'credits')
.addIndex('crsid', 'crsid')
.addIndex('dept', 'dept')
.addIndex('depts', 'depts', { multi: true })
.addIndex('deptnum'... | JavaScript | 0 | @@ -1578,18 +1578,16 @@
Database
-()
)%0A%09.use(
|
9a6b70cef8f44276e9905318a4b725c39eba3938 | Add initial registrar server connection listener | registrar/index.js | registrar/index.js | const program = require('commander');
program
.version('0.0.1')
.option('-p, --port <port>', 'specify the websocket port to listen to [9872]', 9872)
.parse(process.argv);
const io = require('socket.io'),
winston = require('winston'),
models = require('./models');
winston.level = 'debug';
win... | JavaScript | 0 | @@ -1895,12 +1895,128 @@
(PORT);%0A
+ socket.on('connection', (client) =%3E %7B%0A winston.debug('New connection from client ' + client.id);%0A %7D);%0A
%7D);%0A
|
16bf066cd528f08457eab92231e65ea070d45381 | Remove Document#bounds and #size, since this will be on Page. | src/document/Document.js | src/document/Document.js | /*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* Copyright (c) 2011, Juerg ... | JavaScript | 0 | @@ -1067,751 +1067,94 @@
;%0A%09%09
-// XXX: Introduce pages and remove Document#bounds!%0A%09%09var size = this.activeView && this.activeView._size%0A%09%09%09%09%7C%7C new Size(1024, 768);%0A%09%09this._bounds = Rectangle.create(0, 0, size.width, size.height);%0A%09%09this._selectedItems = %7B%7D;%0A%09%09this._sele... |
08bb48b047cd7e62517cce8720b74e21a52eb4e5 | improve $controller function doc readability | src/ng/controller.js | src/ng/controller.js | 'use strict';
/**
* @ngdoc object
* @name ng.$controllerProvider
* @description
* The {@link ng.$controller $controller service} is used by Angular to create new
* controllers.
*
* This provider allows controller registration via the
* {@link ng.$controllerProvider#register register} method.
*/
function $Cont... | JavaScript | 0.000016 | @@ -1768,16 +1768,18 @@
's just
+a
simple c
|
d8d64262de7a8dd4f3eaae33d9781ba447e39c61 | Tidy up shape store. | src/draw/Control.Draw.js | src/draw/Control.Draw.js | L.Map.mergeOptions({
drawControl: false
});
L.Control.Draw = L.Control.extend({
options: {
position: 'topleft',
polyline: {
title: 'Draw a polyline'
},
polygon: {
title: 'Draw a polygon'
},
rectangle: {
title: 'Draw a rectangle'
},
circle: {
title: 'Draw a circle'
},
marker: {
tit... | JavaScript | 0.000001 | @@ -414,16 +414,38 @@
ptions);
+%0A%0A%09%09this._shapes = %7B%7D;
%0A%09%7D,%0A%09%0A%09
@@ -734,84 +734,9 @@
');%0A
-%09%0A%09%09// TODO: should this be done in initialize()?%0A%09%09this._shapes = %7B%7D;%0A%0A%09%09//
+%0A
%0A%09%09i
|
ba8d17ee4ca4e7fb07a888b88a69824d7cf23445 | Add a method for querying last.fm | spotifyCurrentlyPlaying.js | spotifyCurrentlyPlaying.js | ;(function(global, $) {
var Spotify = function(selector, username, api_key, width, height) {
return new Spotify.init(selector, username, api_key, width, height);
}
Spotify.prototype = {
/*
* Display the Spotify player
*/
displayPlayer: function() {
if(!... | JavaScript | 0.000006 | @@ -1025,24 +1025,496 @@
);%0A %7D
+,%0A%0A /*%0A * Get the most recently scrobbled track from LastFM%0A */%0A queryLastFM: function() %7B%0A console.log('Querying Last.FM...');%0A%0A // TODO%0A // 1. Make an API call to get the most recent track in... |
73067e1cd7b35585e15567921429672f36676a19 | Add missing parameter to onFilterSuccess | app/assets/javascripts/filterable_list.js | app/assets/javascripts/filterable_list.js | /**
* Makes search request for content when user types a value in the search input.
* Updates the html content of the page with the received one.
*/
export default class FilterableList {
constructor(form, filter, holder) {
this.filterForm = form;
this.listFilterElement = filter;
this.listHolderElement... | JavaScript | 0.000001 | @@ -1652,16 +1652,21 @@
ess(data
+, xhr
) %7B%0A
|
8a5c0e544d3896e992547d90de8c1c0fbc32fd44 | Version the banner | app/assets/javascripts/global-bar-init.js | app/assets/javascripts/global-bar-init.js | //= require libs/GlobalBarHelper.js
//= require govuk_publishing_components/lib/cookie-functions
'use strict'
window.GOVUK = window.GOVUK || {}
// Bump this if you are releasing a major change to the banner
// This will reset the view count so all users will see the banner, even if previously seen
var BANNER_VERSION ... | JavaScript | 0 | @@ -319,9 +319,9 @@
N =
-5
+6
;%0Ava
|
98c568cd129356889dd0431c75055d506a02ccea | Make sure value is defined before trying to call length | app/assets/javascripts/identifier-form.js | app/assets/javascripts/identifier-form.js | (function() {
$('.assignment_invitations.identifier, .group_assignment_invitations.identifier').ready(function() {
return $('form').on('change keyup', function() {
return $('.js-form-submit').prop('disabled', $('#student_identifier_value').val().length === 0);
});
});
}).call(this);
| JavaScript | 0.000001 | @@ -159,24 +159,90 @@
unction() %7B%0A
+ if ($('#student_identifier_value').val() !== undefined) %7B%0A
return
@@ -332,16 +332,24 @@
=== 0);%0A
+ %7D%0A
%7D);%0A
|
9db26fa921e6afc71024f8adebef9d887a849012 | update closeBox | app/assets/js/controllers/organization.js | app/assets/js/controllers/organization.js | 'use strict';
function knyMiddleware(context){
return kny.syllbreak( kny.fontConvert(context, "unicode5"), "unicode5");
}
angular.module('MyanmarFlood')
.run(function($rootScope){
$rootScope.box = {
show: null,
description: null,
phone_numbers: null,
donation_location: null
}
})
.controller('Org... | JavaScript | 0.000001 | @@ -2104,16 +2104,142 @@
x.show =
+ false;%0A $rootScope.box.description = null;%0A $rootScope.box.phone_numbers = null;%0A $rootScope.box.donation_location =
null;%0A
|
066abe6388980f31949e88eb7ad94f271a1104f3 | Fix OAuthError::toString During the refactor I forgot to update this method | src/errors/OAuthError.js | src/errors/OAuthError.js | /*
* BSD 3-Clause License
*
* Copyright (c) 2020, Mapcreator
* 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, th... | JavaScript | 0.000014 | @@ -2064,17 +2064,16 @@
= this.
-_
error;%0A%0A
@@ -2194,25 +2194,24 @@
if (this.
-_
message) %7B%0A
@@ -2240,17 +2240,16 @@
$%7Bthis.
-_
message%7D
|
0c857c8611bb5dd4507bc81c2bae453164289da5 | Fix linking to engine's application route | addon/-private/link-to-component.js | addon/-private/link-to-component.js | import Ember from 'ember';
import { attributeMungingMethod } from './link-to-utils';
const {
LinkComponent,
getOwner,
get,
set
} = Ember;
export default LinkComponent.extend({
[attributeMungingMethod]() {
this._super(...arguments);
let owner = getOwner(this);
if (owner.mountPoint) {
// P... | JavaScript | 0 | @@ -368,131 +368,64 @@
-let fullRouteName = owner.mountPoint + '.' + get(this, 'targetRouteName');%0A set(this, 'targetRouteName', fullRouteName
+this._prefixProperty(owner.mountPoint, 'targetRouteName'
);%0A%0A
@@ -493,26 +493,12 @@
-let currentWhen =
+if (
get(
@@ -522,74 +522,50 @@
en')
-;%0A ... |
edb27d9a0290b19994033aa1ba60ec1251859903 | Work around Webconverger issue | cck2/chrome/content/cck2-extensions-overlay.js | cck2/chrome/content/cck2-extensions-overlay.js | Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://cck2/CCK2.jsm");
(function () {
var temp = {};
Components.utils.import("resource://cck2/Preferences.jsm", temp);
var Preferences = temp.Preferences;
let scope = {};
Services.scriptloader.loadSubScript("chrome:... | JavaScript | 0 | @@ -1203,18 +1203,31 @@
ex == 0)
-%0A%09
+ %7B%0A%09 try %7B%0A%09
gViewC
@@ -1273,16 +1273,81 @@
sion%22);%0A
+%09 %7D catch (ex) %7B%0A%09 // Ignore error from Webconverger%0A%09 %7D%0A%09%7D%0A
%7D%0A
|
b431acea482a7597a371146ac57742e5ba3e79c9 | fix spec | test/lib/route.js | test/lib/route.js | /**
* Route tests
*/
var koa = require('koa')
, http = require('http')
, request = require('supertest')
, router = require('../../lib/router')
, should = require('should')
, Route = require('../../lib/route');
describe('Route', function() {
it('supports regular expression route paths', function(done) {
... | JavaScript | 0.000001 | @@ -2526,23 +2526,16 @@
it('
-should
populate
|
f3c09436e592f2c6c6133fdbc42298da4c8dcc7a | remove tests for language and tag not specified | test/lib/utils.js | test/lib/utils.js | var rewire = require('rewire'),
expect = require('chai').expect,
path = require('path'),
utils = rewire('../../lib/utils');
utils.__set__('fs', { readFileSync: function(path) { return path; } });
var IMAGE_PREFIX = utils.__get__('IMAGE_PREFIX');
describe('Utils', function() {
describe('.formatImage()... | JavaScript | 0 | @@ -1151,377 +1151,8 @@
%7D);
-%0A%0A context('when no language is specified', function() %7B%0A var formated = utils.formatImage('grounds', '', 'latest');%0A%0A expectEmptyString(formated);%0A %7D);%0A%0A context('when no tag is specified', function() %7B%0A var ... |
9bd6a58691c8842261b43a1a2a41dcd75adc5951 | Replace querySelector(":scope > :frist-child") children[0] in PreferenceDialog | src/component/PreferenceDialog.js | src/component/PreferenceDialog.js |
(() => {
"use strict";
var doc = document.currentScript.ownerDocument;
class PreferenceDialog extends window.jikkyo.Modal {
createdCallback() {
super.createdCallback();
this.width = 500;
this.height = 340;
this.preference = null;
this.appendStyle(document.importNode(doc.que... | JavaScript | 0 | @@ -1189,46 +1189,19 @@
abs.
-querySelector(%22:scope %3E :first-child%22)
+children%5B0%5D
;%0A
@@ -1267,46 +1267,19 @@
efs.
-querySelector(%22:scope %3E :first-child%22)
+children%5B0%5D
;%0A
|
269ca76ae0c8143c4cf3cc56610611454131c627 | remove unused var | src/components/AboutPage/index.js | src/components/AboutPage/index.js | import React from 'react'
import { Button, Col, Row } from 'react-bootstrap'
import { setDocumentTitle } from '../../helpers'
import './@AboutPage.css'
export default class AboutPage extends React.Component {
render () {
setDocumentTitle('About')
return (
<div className={'AboutPage__root'}>
<se... | JavaScript | 0.000089 | @@ -31,16 +31,8 @@
rt %7B
- Button,
Col
|
cde20171dae65a724d4acb96dd927778a68f88b6 | Remove a “trick babel” hack in analytics | app/jsx/Department/DepartmentFilterBox.js | app/jsx/Department/DepartmentFilterBox.js | import ComboBox from 'compiled/widget/ComboBox'
import DepartmentRouter from '../Department/DepartmentRouter'
export default class DepartmentFilterBox extends ComboBox {
constructor(model) {
{
// Hack: trick Babel/TypeScript into allowing this before super.
if (false) { super(); }
let thisFn =... | JavaScript | 0.000004 | @@ -191,263 +191,212 @@
) %7B%0A
-%0A %7B%0A
-
//
-Hack: trick Babel/TypeScript into allowing this before super.%0A if (false) %7B super(); %7D%0A let thisFn = (() =%3E %7B return this; %7D).toString();%0A let thisName = thisFn.match(/_this%5Cd*/)%5B0%5D;%0A eval(%60$%7BthisName%7D = t... |
5d3007b1de31baa2e3a2a3e651a3583f1b0c4230 | Make composite children work | src/components/StaticGoogleMap.js | src/components/StaticGoogleMap.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Async from 'react-promise';
import invariant from 'invariant';
import MarkerStrategy from '../strategies/marker';
import PathStrategy from '../strategies/path';
import MarkerGroupStrategy from '../strategies/markergroup';
import PathG... | JavaScript | 0.000004 | @@ -465,16 +465,151 @@
es/map';
+%0Aimport %7B%0A isStatelessComponent,%0A renderStatelessComponent,%0A isClassComponent,%0A renderClassComponent,%0A%7D from '../strategies/utils';
%0A%0Aclass
@@ -1665,17 +1665,17 @@
ildren,
-C
+c
hild =%3E
@@ -1672,24 +1672,96 @@
child =%3E %7B%0A
+ if (!React.isVali... |
ee3173356e1f69da6e16cbd183ed445bf3f035c0 | fix fetchmark | www/js/lib/brandmark.js | www/js/lib/brandmark.js | var brandmark = null;
function fetch_mark(callback) {
$.get("../img/brandmark-grouped.svg", function(data) {
brandmark = data.documentElement;
if (typeof callback === 'function') {
callback();
}
});
}
function generateMark() {
console.log($('.logo-wrapper'));
$('.logo-wrapper').each(function (i, e) {... | JavaScript | 0.000001 | @@ -52,15 +52,34 @@
) %7B%0A
-%09$.get(
+ $.ajax(%7B%0A url:
%22../
@@ -105,16 +105,33 @@
ed.svg%22,
+%0A success:
functio
@@ -140,18 +140,28 @@
data) %7B%0A
-%09%09
+
brandmar
@@ -186,18 +186,28 @@
lement;%0A
-%09%09
+
if (type
@@ -240,28 +240,84 @@
) %7B%0A
-%09%09%... |
8115982e17ebcddb60169f1772b57cf7516f7568 | Remove log statements. | app/scripts/directives/vn-price-search.js | app/scripts/directives/vn-price-search.js | 'use strict';
/**
* @ngdoc directive
* @name vnToolboxCommonApp.directive:vnPriceSearch
* @description
* # vnPriceSearch
*/
angular.module('Volusion.toolboxCommon')
.directive('vnPriceSearch', ['vnProductParams', function (vnProductParams) {
return {
templateUrl: 'vn-faceted-search/vn-price-search.html',
... | JavaScript | 0 | @@ -1034,200 +1034,28 @@
%09%09%09%09
-console.log('enter detected running a product query');%0A%09%09%09%09%09%09scope.queryProducts();%0A%09%09%09%09%09%09console.log('log prodParams from price directive after query run: ', vnProductParams.getParamsObject()
+scope.queryProducts(
);%0A%09
|
0bfb068b6fa2a75b7346534359956f4850d5b75b | fix invalid prop node.type to Props | addons/info/src/components/Props.js | addons/info/src/components/Props.js | import React from 'react';
import PropTypes from 'prop-types';
import PropVal from './PropVal';
const stylesheet = {
propStyle: {},
propNameStyle: {},
propValueStyle: {},
};
export default function Props(props) {
const { maxPropsIntoLine, maxPropArrayLength, maxPropObjectKeys, maxPropStringLength } = props;
... | JavaScript | 0.000004 | @@ -1740,86 +1740,12 @@
pes.
-shape(%7B%0A props: PropTypes.object,%0A type: PropTypes.node.isRequired,%0A %7D)
+node
.isR
|
6ea852fedf6120bb51f30314b0a8bdb2d21e1066 | Change case for data size // Resolve #3 | app/scripts/filters/embedded-formatter.js | app/scripts/filters/embedded-formatter.js | /**
* Copyright 2014-2016 Ivan Kravets <me@ikravets.com>
*
* 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 appl... | JavaScript | 0 | @@ -1110,10 +1110,10 @@
= '
-Kb
+kB
';%0A
|
8e0d43c67d7df26bde922377cbaff19e0774a5d6 | Add custom children support to DialogHeader | src/Dialog/DialogHeader.js | src/Dialog/DialogHeader.js | import React, {PureComponent} from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
class DialogHeader extends PureComponent {
static displayName = 'DialogHeader'
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
}
render() {
const {
c... | JavaScript | 0 | @@ -276,20 +276,467 @@
string,%0A
+ title: PropTypes.node,%0A %7D%0A%0A _renderTitle() %7B%0A const %7Btitle%7D = this.props%0A if (title) %7B%0A if (React.isValidElement(title)) %7B%0A const cssClasses = classNames(%0A 'mdc-dialog__header__title',%0A title.props.className%0A ... |
cb351f8e56dd18aedda6e5526d1287999066663f | add main.appFont to be bached | src/helpers/serialize.js | src/helpers/serialize.js | import getSubset from './getSubset';
import toJson from './toJson';
export default function serialize(storage) {
return {
...storage,
put: (key, state, cb) => {
const data = getSubset(toJson(state), ['main.appLocale', 'main.writeDelay']);
return storage.put(key, data, cb);
}
};
}
| JavaScript | 0.000001 | @@ -227,16 +227,32 @@
Locale',
+ 'main.appFont',
'main.w
|
fd737426de42cee7b1147419bf8e793fe0c67e04 | add pagination params for elastic search api | nodegeqe/WebServer/routes/app/posts.js | nodegeqe/WebServer/routes/app/posts.js | var express = require('express');
var router = express.Router();
var netHelpers = just_include('netHelpers');
var ES_HOST = ''
var ES_PORT = 9200
/*
Get posts based on a bounding box and optinal text query
example: curl -H "Content-Type: application/json" -XPOST http://localhost:3000/app/posts/bin -d '{
... | JavaScript | 0 | @@ -120,18 +120,36 @@
HOST = '
+scc.silverdale.dev
'%0A
-
var ES_P
@@ -328,16 +328,58 @@
n -d '%7B%0A
+ %22from%22: 0,%0A %22size%22: 100,%0A
@@ -763,32 +763,138 @@
filtered%22: %7B%7D%7D%7D%0A
+ if (req.body.from) query%5B%22from%22%5D = req.body.from%0A if (req.body.size) query%5B... |
1369d97ca2a12e8181be11143f89c68bf4656e8a | Use classNames in overview table header component | web/src/containers/page/overview/table/header.js | web/src/containers/page/overview/table/header.js | import React from 'react';
import { OVERVIEW_COLUMNS } from '../../../../misc/const';
export default function OverviewTableHeader() {
const header = OVERVIEW_COLUMNS.map((column, key) => {
const className = [
'col',
column[0]
].join(' ');
return <div className={cla... | JavaScript | 0 | @@ -20,17 +20,53 @@
react';%0A
+import classNames from 'classnames';
%0A
-
import %7B
@@ -206,22 +206,41 @@
NS.map((
+%5B
column
+Class, columnName%5D
, key) =
@@ -273,69 +273,37 @@
e =
-%5B%0A 'col',%0A column%5B0%5D%0A %5D.join(' '
+classNames('col', columnClass
);%0A%0A
@@ -401,... |
2e245ba04f543662689d01250dda8af7b6e87b96 | Add new error | api/tests/unit/domain/errors_test.js | api/tests/unit/domain/errors_test.js | const {describe, it, expect} = require('../../test-helper');
const errors = require('../../../lib/domain/errors');
describe('Unit | Domain | Errors', () => {
it('should export a NotFoundError', () => {
expect(errors.NotFoundError).to.exist;
});
it('should export a InvalidTokenError', () => {
expect(err... | JavaScript | 0.000002 | @@ -1,15 +1,16 @@
const %7B
+
describe
@@ -21,16 +21,17 @@
, expect
+
%7D = requ
|
72a3c0d2ded06f02e81c871a6ad1244f59fc9c42 | fix full-text search | api/controllers/SearchController.js | api/controllers/SearchController.js | import { get } from 'lodash/fp'
import { normalizePost, normalizeComment, uniqize } from '../../lib/util/normalize'
const userColumns = q => q.column('id', 'name', 'avatar_url')
const findCommunityIds = req => {
if (req.param('communityId')) {
return Promise.resolve([req.param('communityId')])
} else if (req.... | JavaScript | 0 | @@ -2,19 +2,40 @@
mport %7B
-get
+flatten, flow, get, uniq
%7D from
@@ -194,16 +194,184 @@
_url')%0A%0A
+const fetchAllCommunityIds = userId =%3E%0A Promise.join(%0A Network.activeCommunityIds(userId),%0A Membership.activeCommunityIds(userId)%0A ).then(flow(flatten, uniq))%0A%0A
const fi
@@ -753,181 +753... |
7248fc412f712d10a4fcd34c66ab839516e40236 | use CommonJS | src/plugins/Redux.js | src/plugins/Redux.js | const Plugin = require('./Plugin')
export default class Redux extends Plugin {
constructor (core, opts) {
super(core, opts)
this.type = 'state-sync'
this.id = 'Redux'
this.title = 'Redux Emitter'
if (typeof opts.action === 'undefined') {
throw new Error('action option is not defined')
... | JavaScript | 0.000007 | @@ -33,22 +33,24 @@
')%0A%0A
-export default
+module.exports =
cla
|
b5b3b89da2efa98e7bc9d3f5f84a2ea64c56f28e | Fix spawn check | src/programs/city.js | src/programs/city.js | 'use strict'
class City extends kernel.process {
constructor (...args) {
super(...args)
this.priority = PRIORITIES_CITY
}
getDescriptor () {
return this.data.room
}
main () {
if (!Game.rooms[this.data.room] || !Game.rooms[this.data.room].controller.my) {
Room.removeCity(this.data.room... | JavaScript | 0 | @@ -466,16 +466,17 @@
length %3C
+=
0) %7B%0A
|
429a4e352679c0148cc984200ef0783eca768698 | fix lint | src/crypto/verification/QRCode.js | src/crypto/verification/QRCode.js | /*
Copyright 2018 New Vector Ltd
Copyright 2020 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 a... | JavaScript | 0.000013 | @@ -2791,16 +2791,37 @@
ind(d =%3E
+ %7B%0A return
d.devic
@@ -2871,16 +2871,27 @@
deviceId
+;%0A %7D
);%0A
@@ -3523,365 +3523,8 @@
%7D%0A
- // if (keyId !== masterKeyId) %7B%0A // console.error(%22key id doesn't match%22);%0A // throw newKeyMismat... |
828c69cd4b9f44cebbaa6f9eed06f53821786fab | update LazyImage | src/LazyImage/LazyImage.js | src/LazyImage/LazyImage.js | /**
* @file LazyImage component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component, createRef} from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash/debounce';
import classNames from 'classnames';
import eventOn from 'dom-helpers/events/on';
import eventOff from ... | JavaScript | 0 | @@ -387,24 +387,81 @@
rLoading';%0A%0A
+import LazyLoadStatus from '../_statics/LazyLoadStatus';%0A
import Event
@@ -521,24 +521,61 @@
omponent %7B%0A%0A
+ static Status = LazyLoadStatus;%0A%0A
construc
@@ -713,21 +713,38 @@
-imageState: 0
+status: LazyLoadStatus.PENDING
%0A
@@ -824,22 +824,39 @@
... |
1d4af2502ae5bcb9b122e86aa5958d7f01356403 | fix signpost formatting | app/assets/javascripts/d3_helpers.js | app/assets/javascripts/d3_helpers.js | /*global d3 */
var formatDate = d3.time.format.utc("%B %d, %Y"),
formatMonthYear = d3.time.format.utc("%B %Y"),
formatYear = d3.time.format.utc("%Y"),
formatDateTime = d3.time.format.utc("%d %b %Y %H:%M UTC"),
formatTime = d3.time.format.utc("%H:%M UTC"),
formatWeek = d3.time.format.utc("%U"),
... | JavaScript | 0.000016 | @@ -3847,20 +3847,19 @@
.events%5B
-name
+key
%5D));%0A
|
100f2875bf77ef1494c547051e1962107254ab74 | add keyboard event | app/assets/scripts/components/app.js | app/assets/scripts/components/app.js | import React,{Component} from "react";
import {connect} from "react-redux";
import {bindActionCreators} from "redux";
import {foldersFetch} from "../actions/index";
import File from "../libs/file";
import $ from "jquery";
import jQuery from "jquery";
window.$ = $;
window.jQuery = jQuery;
class App extends Component {... | JavaScript | 0.00001 | @@ -131,16 +131,32 @@
ersFetch
+,folderAdd,modal
%7D from %22
@@ -170,24 +170,24 @@
ons/index%22;%0A
-
import File
@@ -540,16 +540,193 @@
%7D);
+%0A%0A document.addEventListener('keyup', (e) =%3E %7B%0A if (e.shiftKey && e.keyCode == 65) %7B%0A props.modal(%22newFolder%22);%0... |
9bb157de771837903d4d819c0f33e914687e3f71 | fix : make pageRange flexible based on container width, keeping the pagination aligned horizontally. | app/containers/ProductsPage/index.js | app/containers/ProductsPage/index.js | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { createStructuredSelector } from 'reselect';
import Dimensions from 'react-dimensions';
import { FaAngleLeft, FaAngleR... | JavaScript | 0 | @@ -1519,31 +1519,51 @@
cons
-ole.log(containerWidth)
+t pageRange = containerWidth %3C= 400 ? 3 : 5
;%0A
@@ -2222,18 +2222,25 @@
played=%7B
-10
+pageRange
%7D%0A
|
7e73a113c209ada218b5bd1d4c30108b82aa814a | Add padding to circle grid | example/src/AnotherOne.js | example/src/AnotherOne.js | import React from 'react';
import {LayoutTransitionGroup} from '../../src/index';
class AnotherOne extends LayoutTransitionGroup {
state = {
config: 0,
};
config = (i) => {
return () => {
this.beginTransition((prevState) => ({
config: i,
}), [this.ba... | JavaScript | 0 | @@ -731,16 +731,89 @@
auto',%0A
+ paddingTop: config1 ? '20px' : config2 ? '100px' : ' 200px',%0A
|
4c840d29cbc07b2b03c603ade86137a32f804297 | Remove debugger. | app/assets/javascripts/histogram.js | app/assets/javascripts/histogram.js | var parseHistogram = function(infoHash) {
var dataset = []// = [{'x':0, 'y':0}];
var dateArray = [];
for (property in infoHash) {
if (infoHash.hasOwnProperty(property)) {
var d = new Date(d3.time.format("%Y-%m-%d").parse(infoHash[property].date.substring(0, 10)))
dateArray.push(d);
}
}
... | JavaScript | 0.000001 | @@ -604,20 +604,8 @@
%7D%0A
- debugger;%0A
//
@@ -748,16 +748,19 @@
y': 0%7D)%0A
+ %0A
displa
|
8966e86fd49844b8c9335f1ecbc794970e802ac7 | replace cmd component with textarea & modify style (#1003) | web/src/components/stageTemplate/add/Config.js | web/src/components/stageTemplate/add/Config.js | import PropTypes from 'prop-types';
import SectionCard from '@/components/public/sectionCard';
import MakeField from '@/components/public/makeField';
import { defaultFormItemLayout } from '@/lib/const';
import { Field, FieldArray } from 'formik';
import { Form, Input, Row, Col, Button } from 'antd';
const InputField =... | JavaScript | 0 | @@ -295,16 +295,87 @@
antd';%0A%0A
+const %7B TextArea %7D = Input;%0Aconst TextareaField = MakeField(TextArea);%0A
const In
@@ -475,61 +475,314 @@
nst
-ConfigSection = props =%3E %7B%0A const %7B values %7D = props
+inputMap = %7B%0A image: %7B%0A component: InputField,%0A props: %7B%7D,%0A %7D,%0A cmd: ... |
31a1db2b4090710016e886a645df3a826c5f32cc | Add CognitoIdentityServiceProvider into AWS when building it with webpack | src/deep-framework/scripts/aws.js | src/deep-framework/scripts/aws.js | const AWS = require('aws-sdk/global');
AWS.Lambda = require('aws-sdk/clients/lambda');
AWS.CognitoIdentity = require('aws-sdk/clients/cognitoidentity');
AWS.CognitoSync = require('aws-sdk/clients/cognitosync');
AWS.SQS = require('aws-sdk/clients/sqs');
module.exports = AWS;
| JavaScript | 0 | @@ -143,24 +143,120 @@
identity');%0A
+AWS.CognitoIdentityServiceProvider = require('aws-sdk/clients/cognitoidentityserviceprovider');%0A
AWS.CognitoS
|
a1b732a7a48568c4424f73085d0efebf0d7e1bf9 | fix CS title | src/components/calculatorSmall/presentation/CSlTitle.js | src/components/calculatorSmall/presentation/CSlTitle.js | 'use strict';
import React from 'react';
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
class CalculatorSmallTitle extends React.Component {
constructor(props) {
super(props);
}
render() {
const {discount, calcTitleDiscount: ctd, calcTitle: ct} = this.props;
... | JavaScript | 0.999907 | @@ -2176,22 +2176,20 @@
-%3Cdiv%3E%7B
+
calcTitl
@@ -2185,31 +2185,24 @@
calcTitle
-%7D%3C/div%3E
%0A )%0A
|
21d95b5d598362e5a17bebe3ffd0326014f03e63 | fix prod checks | src/defaults/asyncLocalStorage.js | src/defaults/asyncLocalStorage.js | const genericSetImmediate = typeof setImmediate === 'undefined' ? global.setImmediate : setImmediate
const nextTick = process && process.nextTick ? process.nextTick : genericSetImmediate
const noStorage = process && process.env && process.env.NODE_ENV === 'production'
? () => { /* noop */ return null }
: () => {
... | JavaScript | 0 | @@ -202,34 +202,8 @@
ge =
- process && process.env &&
pro
@@ -932,34 +932,8 @@
cess
- && process.env && process
.env
@@ -934,33 +934,33 @@
ss.env.NODE_ENV
-=
+!
== 'production')
|
4beb743002beb6ee883dc113635e8ab1a301289e | Remove pre-binding in game_list | app/chrome/components/game_list.es6 | app/chrome/components/game_list.es6 |
import React from "react";
import classNames from "classnames";
let remote = window.require("remote");
let AppActions = remote.require("./metal/actions/app_actions")
class GameCell extends React.Component {
constructor() {
super();
this.view_game = this.view_game.bind(this);
this.download = this.downlo... | JavaScript | 0 | @@ -207,138 +207,8 @@
t %7B%0A
- constructor() %7B%0A super();%0A this.view_game = this.view_game.bind(this);%0A this.download = this.download.bind(this);%0A %7D%0A%0A
re
@@ -548,19 +548,31 @@
nClick=%7B
-thi
+() =%3E AppAction
s.view_g
@@ -574,16 +574,22 @@
iew_game
+(game)
%7D style=
@@ -802,21 +80... |
8c771f73c223a83625244f50f9c396bbb8c47455 | return scorer posttoserver deferred | examples/dscore/Scorer.js | examples/dscore/Scorer.js | define(['jquery','app/API','underscore','./computeD','./msgCat','./parcelMng'],function($,API,_,computeData,msgMan,parcelMng){
var Scorer = {};
//comment
$.extend(Scorer, {
/* Function: Void addSettings.
Input: settings object.
Output: set the settings in computeD object or msgCat according to input
Descrip... | JavaScript | 0.000001 | @@ -2223,18 +2223,16 @@
data));%0A
-%0A%0A
%09%7D,%0A
|
cbc79e13a0e9c92b453a746892875258f0b8ff16 | fix percentage offset domain scale | examples/js/extensions.js | examples/js/extensions.js | var RenderControls = function(args) {
this.initialize = function() {
this.element = args.element;
this.graph = args.graph;
this.settings = this.serialize();
this.inputs = {
renderer: this.element.elements.renderer,
interpolation: this.element.elements.interpolation,
offset: this.element.elements.of... | JavaScript | 0 | @@ -774,16 +774,135 @@
'zero';%0A
+%09%09%09%7D else if (this.settings.offset == 'expand') %7B%0A%09%09%09%09config.unstack = true;%0A%09%09%09%09config.offset = this.settings.offset;%0A
%09%09%09%7D els
@@ -1357,25 +1357,24 @@
s.renderer%5D;
-%09
%0A%0A%09%09Array.pr
@@ -2092,17 +2092,16 @@
nderer%5D;
-%09
%0A%0... |
4f22ba54bf9779226dfee4c44d5c7bcd056e5662 | Add getAttributeNS to domstubs for SVG example | examples/node/domstubs.js | examples/node/domstubs.js | /* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
function xmlEncode(s){
var i = 0, ch;
s = String(s);
while (i < s.length && (ch = s[i]) !== '&' && ch !== '<' &&
ch !== '\"' && ch !== '\n' && ch !== '\r' && ch !== '\t') {
i++;
}
if (i >=... | JavaScript | 0 | @@ -1795,16 +1795,154 @@
pe = %7B%0A%0A
+ getAttributeNS: function DOMElement_getAttributeNS(NS, name) %7B%0A return name in this.attributes ? this.attributes%5Bname%5D : null;%0A %7D,%0A%0A
setAtt
|
77232f440e0dfa2ba5855f52bacd48345a133af2 | refactor for loop | app/assets/javascripts/feature/application.js | app/assets/javascripts/feature/application.js | //= require jquery
//= require_tree .
var bindFeatureBoxes = function() {
var featureBoxes = $('.feature-box');
for(i = 0, i < featureBoxes; i++) {
bindFeatureBox($(featureBoxes[i]));
};
}
var updateFeature = function (box, feature) {
if (feature.type == 'boolean') {
} else {
for(var input in box.f... | JavaScript | 0.000028 | @@ -137,16 +137,23 @@
ureBoxes
+.lenght
; i++) %7B
@@ -298,20 +298,16 @@
e %7B%0A
-for(
var inpu
@@ -307,19 +307,19 @@
ar input
- in
+s =
box.fin
@@ -328,16 +328,55 @@
'input')
+%0A%0A for(i = 0, i %3C inputs.lenght; i++
) %7B%0A
@@ -407,16 +407,20 @@
ta%5Binput
+s%5Bi%5D
.name%5D%0A
@@ -429,16 +... |
9b87434a1caa2db36994abd96c7d9e75d2d39fc8 | give true false for auth.isLoggedIn | app/assets/javascripts/service/authService.js | app/assets/javascripts/service/authService.js | module.factory('authService', [
'$rootScope',
'$location',
'$route',
'$cacheFactory',
'typeService',
'$window',
'$q',
'messageService',
'constantService',
'routerService',
'Party',
function ($rootScope, $location, $route, $cacheFactory, typeService, $window, $q, messages, constants, router, Party) {
var a... | JavaScript | 0.998469 | @@ -2995,32 +2995,35 @@
() %7B%0A%09%09%09return
+!!(
auth.user && aut
@@ -3053,16 +3053,17 @@
id != -1
+)
;%0A%09%09%7D;%0A%0A
|
89cf75ac80a9e934b33db3229857b3a35bda5142 | Define a preClickAction in depTree | app/js/arethusa.dep_tree/dep_tree.js | app/js/arethusa.dep_tree/dep_tree.js | 'use strict';
/* Dependency Tree Handler with Diff capabilities
*
* This service has not much to do - the tree itself is handled
* completely by the dependencyTree directive.
*
* It has however additional diff capabilities, that are triggered
* by a global diffLoaded event.
* Knows how to pass style information ... | JavaScript | 0.000127 | @@ -5264,24 +5264,578 @@
%7D%0A %7D%0A%0A
+ function awaitingHeadChange(id, event) %7B%0A return !state.isSelected(id) && state.hasClickSelections() && !event.ctrlKey;%0A %7D%0A%0A function preHeadChange(id, scope, element) %7B%0A element.bind('mouseenter', function (event) %7B%0A scope... |
e998e0c8ebe04ec6eb557e025ac67bc00813c8cb | Fix secondary nav bar alignment. | app/js/components/SecondaryNavBar.js | app/js/components/SecondaryNavBar.js | import React, { Component, PropTypes } from 'react'
import { Link } from 'react-router'
const SecondaryNavLink = props => {
const alignment = (props.align === "right") ? "float-right pull-right" : "float-left pull-left"
const active = props.isActive === true ? "active" : ""
return (
<Link
className={... | JavaScript | 0 | @@ -182,39 +182,18 @@
ight
- pull-right%22 : %22float-left pull
+%22 : %22float
-lef
@@ -495,39 +495,18 @@
ight
- pull-right%22 : %22float-left pull
+%22 : %22float
-lef
@@ -1276,37 +1276,32 @@
v className=%22col
--xs-6
%22%3E%0A %7B
@@ -1889,32 +1889,32 @@
%3C/div%3E%0A
+
%3Cdiv c... |
1fb56dc4d43b3ff15e18d0e055b4f225f52eb7eb | Remove paypal OAuth call for cleanup | app/js/main/controllers/LoginCtrl.js | app/js/main/controllers/LoginCtrl.js | app.controller('LoginCtrl', [
'$rootScope',
'$scope',
'$state',
'TweetFactory',
'TwitterUserFactory',
'PaypalFactory',
'$cookies',
function(
$rootScope,
$scope,
$state,
TweetFactory,
TwitterUserFactory,
PaypalFactory,
$cookies) {
$scope.twitter_authorized = false;
$scope.paypal_authorize... | JavaScript | 0 | @@ -1547,24 +1547,27 @@
se;%0A%09 %09%0A%09
+ //
%09PaypalF
@@ -1613,24 +1613,10 @@
%7B%0A%09
- %09%09debugger;%0A%09
+//
@@ -1663,24 +1663,27 @@
led') %7D);%0A%0A%09
+ //
%7D;%0A%09%09%7D).
@@ -1679,16 +1679,19 @@
%7D;%0A%09%09
+//
%7D).fail(
@@ -1710,16 +1710,19 @@
or) %7B%0A%09%09
+//... |
801af3ee29771865a5fb5b80eaaed1401b8ecdef | change callback to promise | app/js/src/managers/assetsManager.js | app/js/src/managers/assetsManager.js | const manifest = [
{ id: 'monster', src: 'img/monster-sprite.png' },
{ id: 'bird', src: 'img/bird-sprite.png' },
{ id: 'chicken', src: 'img/chicken-sprite.png' },
{ id: 'spike', src: 'img/spike.png' },
{ id: 'sky', src: 'img/bg/sky.png' },
{ id: 'start', src: 'img/bg/start.png' },
{ id: 'mountain', src: '... | JavaScript | 0 | @@ -1807,21 +1807,13 @@
%7B%0A
-load(callback
+init(
) %7B%0A
@@ -1990,16 +1990,53 @@
ifest);%0A
+%0A return new Promise(resolve =%3E%0A
this
@@ -2075,16 +2075,24 @@
e',
-callback
+() =%3E resolve())
);%0A
|
457affce4eae793d6d9b18f76f8243a1845484ff | support nested string literals | src/foam/u2/detail/SectionView.js | src/foam/u2/detail/SectionView.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.detail',
name: 'SectionView',
extends: 'foam.u2.View',
requires: [
'foam.core.ArraySlot',
'foam.core.ConstantSlot',
'foam.core.ProxySlot',
'... | JavaScript | 0.000003 | @@ -1428,28 +1428,426 @@
(x,
-g
+ str
) =%3E
-this.data%5Bg%5D);
+%7B%0A var obj = this.data.clone();%0A return this.getNestedPropValue(obj, str);%0A %7D);%0A %7D%0A %7D,%0A %7B%0A class: 'Function',%0A name: 'getNestedPropValue',%0A factory: function() %7B%0A ... |
f7ae4e2562e3f3cb5bafb59640096a0f4ea8fdcc | remove unused vars | app/scripts/controllers/analytics.js | app/scripts/controllers/analytics.js | 'use strict';
/**
* @ngdoc function
* @name wheretoliveApp.controller:AnalyticsCtrl
* @description
* # AnalyticsCtrl
* Controller of the wheretoliveApp
*/
angular.module('wheretoliveApp')
.controller('AnalyticsCtrl', ['$scope', 'Search',
function ($scope, Search) {
$scope.topCrimeAggrega... | JavaScript | 0.000001 | @@ -5825,49 +5825,8 @@
%7D%0A
- console.log(result);%0A
@@ -6003,18 +6003,8 @@
- var res =
Sea
@@ -6643,155 +6643,28 @@
%7D%5D;%0A
- $scope.topCrimeAggregateNumber = res1.length;%0A return res1;%0A%0A%0A %7D);%0A re... |
b4267c2812423d1da039f8b4a8913c2ce3fbebe1 | Fix the issue for regex inside the html file. | src/extensions/default/JavaScriptCodeHints/HintUtils.js | src/extensions/default/JavaScriptCodeHints/HintUtils.js | /*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0.000001 | @@ -2909,24 +2909,260 @@
le(token) %7B%0A
+ %0A function _isInsideRegExp(token) %7B%0A return token.state && (token.state.lastType === %22regexp%22 %7C%7C%0A (token.state.localState && token.state.localState.lastType === %22regexp%22));%0A %7D%0A %0A
sw... |
29854d3bd286b84ef2a6a9d22d94f38240d55cd9 | use tags/inbox to get inbox count | app/scripts/services/mailpile.api.js | app/scripts/services/mailpile.api.js | 'use strict';
/**
* @ngdoc service
* @name mailpile.api
* @description
* # mailpile.api
* Service in the blimpCockpitApp.
*/
angular.module('blimpCockpitApp')
.factory('mailpileApi', ['$resource', '$http', '$q', '$rootScope', '$state', '$localstorage', 'cockpitApi',
function ($resource, $http, $q, $rootSco... | JavaScript | 0 | @@ -614,26 +614,19 @@
+ '
-search/?q=in:
+tags/
inbox
+/
').%0A
@@ -706,38 +706,8 @@
ult
-&& response.data.result.stats
)%0A
@@ -778,19 +778,25 @@
ult.
-s
ta
-ts.total
+gs%5B0%5D.stats.new
);%0A
|
a85f68db940a6aebc2cdfbf10ce108954a975208 | allow to remove tag from category | app/components/browser/sidebar/SideBarTags.js | app/components/browser/sidebar/SideBarTags.js | import '../../../css/browser/side-bar-tags'
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { FormattedMessage as T, intlShape } from 'react-intl'
import cx from 'classnames'
import { Creatable } from 'react-select'
import partition from 'lodash.partition'
import uniq from 'lodash... | JavaScript | 0 | @@ -2648,24 +2648,39 @@
s = options.
+filter(o =%3E o).
map(o =%3E o.v
@@ -4394,40 +4394,8 @@
ble%0A
- clearable=%7B false %7D%0A
|
d139855430c7aa62eeff1c52398bd96ff90b6279 | Apply changes only to the preview that has loaded, otherwise latebloomers don't fade in. | client/js/directives/photo-stream-directive.js | client/js/directives/photo-stream-directive.js | "use strict";
angular.module("hikeio").
directive("photoStream", ["$document", "$rootScope", "$timeout", "config", function($document, $rootScope, $timeout, config) {
var normalImage = "small";
var biggerImage = "medium";
var template = "<div class='preview-list'>" +
"<a href='/hikes/{{hike.string_id}}' data... | JavaScript | 0 | @@ -1475,24 +1475,38 @@
() %7B%0A%09%09%09%09%09%09%09
+var preview =
$(this).pare
@@ -1518,16 +1518,32 @@
parent()
+;%0A%09%09%09%09%09%09%09preview
.css(%22op
@@ -1597,32 +1597,15 @@
%09%09%09%09
-element.find(%22.
preview
-%22)
.add
@@ -1640,32 +1640,15 @@
%09%09%09%09
-element.find(%22.
preview
-%22)
.ho... |
9ee3ebb027f45516de9fbd7987c8b2afb4b92b66 | Add background color | client/js/mini-app/components/resource-card.js | client/js/mini-app/components/resource-card.js | import React from 'react'
import injectSheet from 'react-jss'
const formatPhoneNumber = phoneNumber => {
const areaCode = phoneNumber.substring(2, 5)
const prefix = phoneNumber.substring(5, 8)
const lineNumber = phoneNumber.substring(8, 12)
return `${areaCode}-${prefix}-${lineNumber}`
}
const ResourceCard = ({ c... | JavaScript | 0.000002 | @@ -441,14 +441,75 @@
es.r
+esourceCardR
oot%7D%3E%0A
+%09%09%09%3Cdiv className=%7Bclasses.resourceCardBorder%7D%3E%0A%09
%09%09%09%3C
@@ -566,24 +566,25 @@
Name%7D%3C/div%3E%0A
+%09
%09%09%09%3Cdiv clas
@@ -616,24 +616,25 @@
dress%7D%3E%0A%09%09%09%09
+%09
%7Bline1%7D %3Cbr
@@ -636,16 +636,17 @@
%3Cbr /%3E%... |
4f4ee3967a9410fc22ebd0d26e6c289fbfaf5635 | fix client side test | ui/shared/components/page/Footer.test.js | ui/shared/components/page/Footer.test.js | import React from 'react'
import { shallow, configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import Footer from './Footer'
configure({ adapter: new Adapter() })
test('shallow-render without crashing', () => {
shallow(<Footer />)
})
| JavaScript | 0.000001 | @@ -109,16 +109,62 @@
act-16'%0A
+import configureStore from 'redux-mock-store'%0A
import F
@@ -185,16 +185,16 @@
Footer'%0A
-
%0Aconfigu
@@ -273,16 +273,79 @@
() =%3E %7B%0A
+ const store = configureStore()(%7B meta: %7Bversion: '0.1' %7D %7D)%0A%0A
shallo
@@ -353,16 +353,30 @@
(%3CFooter
+ store=%7Bstore%7D... |
7265f0f503c2fe24f195bc023f9367ec55201408 | Remove delete for _internal db | ui/src/admin/components/DatabaseTable.js | ui/src/admin/components/DatabaseTable.js | import React, {PropTypes} from 'react'
import DatabaseRow from 'src/admin/components/DatabaseRow'
import ConfirmButtons from 'src/admin/components/ConfirmButtons'
const {
func,
shape,
bool,
} = PropTypes
const DatabaseTable = ({
database,
notify,
isRFDisplayed,
onEditDatabase,
onKeyDownDatabase,
onC... | JavaScript | 0 | @@ -3870,24 +3870,83 @@
ext-right%22%3E%0A
+ %7B%0A database.name === '_internal' ? null :%0A
%3Cbutto
@@ -4034,15 +4034,23 @@
+
Delete%0A
+
@@ -4057,24 +4057,32 @@
%3C/button%3E%0A
+ %7D%0A
%3Cbutto
|
7f49b2acf87867abc792ceeddf62a186e3cb274b | Make the toggleButton function a self contained object binding to change events. | app/soc/content/js/melange.action.js | app/soc/content/js/melange.action.js | /* Copyright 2011 the Melange authors.
*
* 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... | JavaScript | 0 | @@ -1730,15 +1730,9 @@
$m.
-createT
+t
oggl
@@ -1755,39 +1755,232 @@
on (
-) %7B%0A $(window).load(
+id, type, post_url, init_state, labels) %7B%0A this.id = id;%0A this.type = type;%0A this.post_url = post_url;%0A this.state = init_state;%0A this.labels = labels;%0A%0A var self_obj = this;%0A%... |
a761a4713c9a5b4b142876d6b0619afa7fddb112 | Add const ERROR_CANCELLED | www/cordova-plugin-multiple-media-selection.js | www/cordova-plugin-multiple-media-selection.js | var exec = require('cordova/exec');
var MultipleMediaSelection = function(){};
MultipleMediaSelection.prototype.getPictures = function(success, error, options) {
options = options || {};
options.height = options.height || 0;
options.isTemporaryFile = typeof options.isTemporaryFile == 'undefined' || options.isTemp... | JavaScript | 0.000067 | @@ -74,16 +74,114 @@
n()%7B%7D;%0A%0A
+// Refer to MediaPicker.java:136%0AMultipleMediaSelection.prototype.ERROR_CANCELLED = 'Cancelled';%0A%0A
Multiple
|
f0c56820be9c728e704d69fe1ea90a03cbf6d1dc | Update admin settings controler for nodemailer | app/controllers/settings.server.controller.js | app/controllers/settings.server.controller.js | 'use strict';
var settingsService = require('../services/settings.server.service'),
nodemailer = require('nodemailer'),
_ = require('lodash');
exports.createSettings = function(req, res) {
settingsService.createSettings(req)
.then(function(settings) {
return res.status(200).send(settin... | JavaScript | 0 | @@ -1486,223 +1486,94 @@
ort(
-%7B%0A host: emailSettings.host,%0A port: emailSettings.port,%0A secure: emailSettings.ssl,%0A auth: %7B%0A user: emailSettings.user,%0A pass: emailSettings.password%0A %7D%0A %7D
+'smtps://'+emailSettings.user+'%2540gmail.com:'... |
bc10e69498a385d5f2d64bac1d2e8a7af7546733 | Fix Angular 5 + Webpack error: "Critical dependency: the request of a dependency is an expression" | generators/client/templates/angular/webpack/_webpack.common.js | generators/client/templates/angular/webpack/_webpack.common.js | <%#
Copyright 2013-2017 the original author or authors from the JHipster project.
This file is part of the JHipster project, see http://www.jhipster.tech/
for more information.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ma... | JavaScript | 0.000001 | @@ -4248,16 +4248,21 @@
/
+(.+)?
angular(
@@ -4276,22 +4276,12 @@
ore(
-%5C%5C%7C%5C/)@angular
+.+)?
/,%0A
|
b887126fe7158c24ee3300880bccadeb11ca86b0 | Add auto-hash prepend to channels | app/directives/beamNetworkClient.js | app/directives/beamNetworkClient.js | var irc = require('irc');
angular.module('beam.directives')
.directive('beamNetworkClient', function() {
return {
restrict: 'E',
templateUrl: '../templates/beamNetworkClient.html',
scope: {
settings: '@',
},
controller: function($compile, $scope, $rootScope, ircService, conf... | JavaScript | 0 | @@ -3774,32 +3774,162 @@
tion(channel) %7B%0A
+ if (!$scope.channelToJoin.startsWith('#')) %7B%0A $scope.channelToJoin = '#' + $scope.channelToJoin;%0A %7D%0A
this.c
|
bb6b05b724f7c83309467d8f20695eef423fd57b | Make header transport API consistent with cookie | js/server/modules/@arangodb/foxx/sessions/transports/header.js | js/server/modules/@arangodb/foxx/sessions/transports/header.js | 'use strict';
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2015 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may ob... | JavaScript | 0.000001 | @@ -125,16 +125,21 @@
ght 2015
+-2016
ArangoD
@@ -943,20 +943,19 @@
ansport(
-name
+cfg
) %7B%0A if
@@ -961,20 +961,19 @@
f (!
-name
+cfg
) %7B%0A
name
@@ -968,20 +968,19 @@
) %7B%0A
-name
+cfg
= 'X-Se
@@ -994,16 +994,76 @@
d';%0A %7D%0A
+ if (typeof cfg === 'string') %7B%0A cfg = %7Bname: cfg... |
9dace23d92a65a7dd2b6029173cce5432632c7f7 | Fix missing light shadows when some props have not been included | src/lib/descriptors/Light/DirectionalLightDescriptor.js | src/lib/descriptors/Light/DirectionalLightDescriptor.js | import THREE from 'three.js';
import LightDescriptorBase from './LightDescriptorBase';
import PropTypes from 'react/lib/ReactPropTypes';
class DirectionalLightDescriptor extends LightDescriptorBase {
constructor(react3Instance) {
super(react3Instance);
this.hasProp('intensity', {
type: PropTypes.numb... | JavaScript | 0.999999 | @@ -790,36 +790,72 @@
reeObject, value
+, hasProp
) %7B%0A
+ if (hasProp) %7B%0A
threeO
@@ -871,32 +871,44 @@
pName%5D = value;%0A
+ %7D%0A
%7D,%0A
@@ -1062,36 +1062,70 @@
reeObject, value
+, hasProp
) %7B%0A
+ if (hasProp) %7B%0A
threeObj
@@ -1148,32 ... |
a94333649a5374c593100a72aa6d8f442a4fce82 | Update `propTypes` for the `CTA` component | assets/js/components/notifications/CTA.js | assets/js/components/notifications/CTA.js | /**
* CTA component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | JavaScript | 0 | @@ -1924,16 +1924,50 @@
s.func,%0A
+%09ctaLinkExternal: PropTypes.bool,%0A
%7D;%0A%0ACTA.
@@ -2077,16 +2077,41 @@
=%3E %7B%7D,%0A
+%09ctaLinkExternal: false,%0A
%7D;%0A%0Aexpo
|
0ea8b47dc2f896130b166c93ec4b1c94310b95eb | Fix serialization | lib/node_modules/@stdlib/ndarray/base/memoized-ctor/lib/key.js | lib/node_modules/@stdlib/ndarray/base/memoized-ctor/lib/key.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... | JavaScript | 0.00715 | @@ -1342,16 +1342,24 @@
NS%5B i %5D,
+ String(
opts%5B O
@@ -1373,18 +1373,9 @@
i%5D %5D
-.toString(
+
) );
|
bb3085b3116ea6264eb7a8eb2a18a88ff73a79c9 | fix comments when loggedout | lib/site/topic-layout/topic-article/comments/list/component.js | lib/site/topic-layout/topic-article/comments/list/component.js | import React from 'react'
import Timeago from 'lib/site/timeago'
export default function CommentsList (props) {
const comments = props.comments || []
return (
<div className='comments-list'>
{
comments.map((item) => {
const handlers = {
onUnvote: () => props.onUnvote(item.i... | JavaScript | 0 | @@ -632,16 +632,17 @@
oted%7D =
+(
comment.
@@ -652,16 +652,23 @@
rentUser
+ %7C%7C %7B%7D)
%0A%0A func
|
7ee832a0de9ff490f620394c4f04f1485deeb0cd | Update mag-template.js | src/addons/mag-template.js | src/addons/mag-template.js | /*
Name: Mag-template v0.1.1
Description: run mag.module by html url, returns instance in promise
Example:
var promise = mag.template(
'my-template.html',
component,
props)
.then((magInstance) => {
magInstance(newProps)
});
Author: Michael Glazer
License: MIT
Homepage: https://github.com/magnumjs/mag.... | JavaScript | 0.000001 | @@ -43,21 +43,21 @@
run mag.
-modul
+creat
e by htm
@@ -65,37 +65,8 @@
url
-, returns instance in promise
%0AExa
@@ -334,152 +334,243 @@
*/%0A%0A
-//TODO: what about within a module, mag.create or attach to a specific node?%0A%0A;%0A(function(mag, document
+;%0A(function(mag, document) %7B%0A%0A 'use strict';%0A... |
7558195d5dea217463388167eba412b908ebb220 | fix comparison operator on residue classes | src/arithmetic/residues.js | src/arithmetic/residues.js | const _inverse = (a, m) => {
let [t, t1] = [0, 1];
let [r, r1] = [m, a];
while (r1 != 0) {
const q = Math.floor(r / r1);
[t, t1] = [t1, t - q * t1];
[r, r1] = [r1, r - q * r1];
}
if (r == 1)
return t < 0 ? t + m : t;
};
const _make = (a, m) => a < 0 ? (a % m) + m : a % m;
const _plus = (... | JavaScript | 0.000001 | @@ -516,17 +516,17 @@
b) - (a
-%3E
+%3C
b);%0A%0A%0Ae
|
cff38f770cbeb41ebab83305f8f68d3e52ccb741 | Update Light_accessory.js (#435) | accessories/Light_accessory.js | accessories/Light_accessory.js | var Accessory = require('../').Accessory;
var Service = require('../').Service;
var Characteristic = require('../').Characteristic;
var uuid = require('../').uuid;
var LightController = {
name: "Simple Light", //name of accessory
pincode: "031-45-154",
username: "FA:3C:ED:5A:1A:1A", // MAC like address used by H... | JavaScript | 0 | @@ -1024,23 +1024,8 @@
ower
- ? true : false
;%0A
|
9e2671da57f0756d41f14705bb86b90053ee841c | Reset the partner-pf state | src/scripts/app/play/proofreadings/partner-play-ctrl.js | src/scripts/app/play/proofreadings/partner-play-ctrl.js | 'use strict';
module.exports =
/*@ngInject*/
function PartnerPlayCtrl($scope, localStorageService, _) {
//Add in some custom images for the 3 stories we are showcasing
$scope.pfImages = {
'70B-T6vLMTM9zjQ9LCwoCg': 'the_princes_and_the_turtle_story_header.png',
'MJCtkml_69W2Dav79v4r9Q': 'ernest_shackleton_... | JavaScript | 0 | @@ -95,16 +95,24 @@
rvice, _
+, $state
) %7B%0A //
@@ -717,16 +717,67 @@
false;%0A
+ $state.go($state.current, %7B%7D, %7Breload: true%7D);%0A
%7D;%0A%7D;%0A
|
00fb8d1fad83e87ebb29ab7a83ad9aa95d37278d | fix datatable sass config (webpack) | ng2-components/ng2-alfresco-datatable/config/webpack.common.js | ng2-components/ng2-alfresco-datatable/config/webpack.common.js | const webpack = require('webpack');
const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const ENV = pro... | JavaScript | 0 | @@ -2134,32 +2134,33 @@
%7D,%0A
+
%7B%0A
@@ -2174,18 +2174,8 @@
/%5C.
-component.
scss
@@ -2204,55 +2204,378 @@
e: %5B
-'to-string-loader', 'raw-loader', 'sass-loader'
+%0A %7B loader: %22to-string-loader%22 %7D,%0A %7B loader: %22raw-loader%22 %7D... |
70949c2a417fc7fcaca2856d9aa74235007d1c55 | add doubling time increment test | e2e/cypress/integration/tests/steppers.spec.js | e2e/cypress/integration/tests/steppers.spec.js | /// <reference types="cypress" />
context('Increment steppers', () => {
beforeEach(() => {
cy.visit('/')
});
it('Increment regional population', () => {
cy.contains('Hospitalized Admissions peaks at 301');
cy.get('input.st-al').eq(0)
.should('has.value', '3600000');
cy.get('.step-up').eq... | JavaScript | 0.00018 | @@ -806,13 +806,349 @@
);%0A %7D);
+%0A%0A it('Increment doubling time', () =%3E %7B%0A cy.contains('Hospitalized Admissions peaks at 301');%0A%0A cy.get('input.st-al').eq(3)%0A .should('has.value', '4');%0A%0A cy.get('.step-up').eq(3).click();%0A%0A cy.get('input.st-al').eq(3)%0A .should('has.... |
4bffe2749ca1fe08734ce0872ba778a15577b3bd | Remove error log | packages/strapi-plugin-users-permissions/services/Providers.js | packages/strapi-plugin-users-permissions/services/Providers.js | 'use strict';
/**
* Module dependencies.
*/
// Public node modules.
const _ = require('lodash');
const request = require('request');
// Purest strategies.
const Purest = require('purest');
/**
* Connect thanks to a third-party provider.
*
*
* @param {String} provider
* @param {String} access_token
*
... | JavaScript | 0 | @@ -2339,39 +2339,8 @@
) %7B%0A
- strapi.log.error(err);%0A
|
95785a9585d673a16403fec7c22ebc0da51cca79 | remove unnecessary View | react/features/notifications/components/Notification.native.js | react/features/notifications/components/Notification.native.js | // @flow
import React from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
import { Icon } from '../../base/font-icons';
import { translate } from '../../base/i18n';
import { NOTIFICATION_TYPE } from '../constants';
import AbstractNotification, {
type Props
} from './AbstractNotification';... | JavaScript | 0 | @@ -2821,71 +2821,8 @@
&&
- %3CView style = %7B styles.actionColumn %7D%3E%0A
%3CTo
@@ -2893,20 +2893,16 @@
-
%3CIcon%0A
@@ -2927,20 +2927,16 @@
-
-
name = %7B
@@ -2946,20 +2946,16 @@
lose' %7D%0A
-
@@ -3028,20 +3028,16 @@
-
%3C/T... |
32fdc38f8fcb00444f1d7c22958e9c98d99e070f | comment out breaking empty fns | react/src/base/inputs/SprkInputContainer/SprkInputContainer.js | react/src/base/inputs/SprkInputContainer/SprkInputContainer.js | import React, { Component } from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import SprkLabel from '../SprkLabel/SprkLabel';
import SprkInput from '../SprkInput/SprkInput';
import SprkErrorContainer from '../SprkErrorContainer/SprkErrorContainer';
class SprkInputContainer extends ... | JavaScript | 0.000001 | @@ -2425,16 +2425,235 @@
props;%0A%0A
+ React.Children.forEach(children, () =%3E %7B%0A let sprkLabel;%0A if (children.type.name !== SprkLabel.name) %7B%0A sprkLabel = children;%0A console.log(sprkLabel, 'the label component')%0A %7D%0A %7D);%0A%0A%0A
retu
|
3a7018254bf0545c54f6ff7d73eb21aadcfb8ec9 | Update info about non-compliant .toggle(*, undefined) | src/jquery.class_list.js | src/jquery.class_list.js | /**
* jQuery classList extension
* Author & copyright: Michał Gołębiowski <m.goleb@gmail.com>
*
* Source: https://github.com/mzgol/jquery.classList
* Released under the MIT license (see the LICENSE.txt file)
*/
(function ($) {
'use strict';
var rnotwhite = /\S+/g,
svgNode = document.createElement... | JavaScript | 0 | @@ -3577,155 +3577,219 @@
//
-The branching is needed as %60stateVal === undefined%60 is treated%0A // in three different ways by the spec, Chrome & Firefox
+Support: Chrome 44+, Safari 8+, Edge 10240+%0A // The branching is needed as most browsers cast an %60und... |
656ecb1ebd68c5298e70f81010ab8cedfb542858 | support redux dev tools if installed | src/js/configureStore.js | src/js/configureStore.js | import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import rootReducer from './reducers';
import { createLogger } from 'redux-logger';
const middlewares = [thunkMiddleware];
if (process.env.NODE_ENV === 'development') {
middlewares.push(createLogger());
}
export default ... | JavaScript | 0 | @@ -30,16 +30,25 @@
ddleware
+, compose
%7D from
@@ -56,16 +56,16 @@
redux';%0A
-
import t
@@ -226,12 +226,274 @@
e%5D;%0A
-if (
+%0Aconst hasReduxDevToolsInstalled = !!(%0A typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__%0A);%0A%0Aconst composeEnhancers = hasReduxDevToolsInstalled%0A ... |
9def98c5e2519a82acef8b0c7e4bf10d6c2b555d | call update on child components | src/js/core/scrollspy.js | src/js/core/scrollspy.js | import { $, isInView } from '../util/index';
export default function (UIkit) {
UIkit.component('scrollspy', {
args: 'cls',
props: {
cls: 'list',
target: String,
hidden: Boolean,
offsetTop: Number,
offsetLeft: Number,
repeat:... | JavaScript | 0 | @@ -2223,32 +2223,85 @@
ger('inview');%0A%0A
+ this.$update();%0A%0A
@@ -3323,32 +3323,81 @@
er('outview');%0A%0A
+ this.$update();%0A%0A
|
2f3a4b40525a6a0e3a0d8b6ccdbf077e5a417c74 | Update inform7.js to new class names | src/languages/inform7.js | src/languages/inform7.js | /*
Language: Inform 7
Author: Bruno Dias <bruno.r.dias@gmail.com>
Description: Language definition for Inform 7, a DSL for writing parser interactive fiction.
*/
function(hljs) {
var START_BRACKET = '\\[';
var END_BRACKET = '\\]';
return {
aliases: ['i7'],
case_insensitive: true,
keywords: {
//... | JavaScript | 0 | @@ -968,13 +968,15 @@
e: '
-title
+section
',%0A
@@ -1319,30 +1319,15 @@
'%5C%5C
-b%5C%5C
(This',
-%0A
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.