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 |
|---|---|---|---|---|---|---|---|
35f678aa15ab888f5752939a06ea1c0805f2e441 | add description and learning competencies | JavaScript/rideSelector.js | JavaScript/rideSelector.js | var parkRides = [["birch bumpers", 40], ["pines plunge", 45], ['cedar coaster', 20], ['ferris wheel of firs', 90]]
var fastPassQueque = ["cedar coaster", "pines plunge", "cedar coaster" ]
var yourChoice = "cedar coaster"
function buildTicket(allRides, passrides, pick){
if (pick == passrides[0]){
var pass = pa... | JavaScript | 0.000001 | @@ -1,12 +1,443 @@
+// Create two arrays, one nested. One holds all rides and thei wait times the other holds a queue for fastpasses. If your ride of choice is the next in the fastpass array, the function with alert you with a message to catch that ride, else, it will tell you your choice ride's wait time.%0A%0A%0A// /... |
73f36bcf33caedc1aec1ac49b7cb36e20572e8f8 | Add AttachmentId to webhook data | server/notifications/outgoing.js | server/notifications/outgoing.js | if (Meteor.isServer) {
const postCatchError = Meteor.wrapAsync((url, options, resolve) => {
HTTP.post(url, options, (err, res) => {
if (err) {
resolve(null, err.response);
} else {
resolve(null, res);
}
});
});
const Lock = {
_lock: {},
_timer: {},
echoDelay:... | JavaScript | 0 | @@ -1603,16 +1603,35 @@
Value',%0A
+ 'attachmentId'%0A
%5D;%0A c
@@ -3425,24 +3425,49 @@
ttachment',%0A
+ 'attachmentId'%0A
%5D.fo
|
402b78e20799a7fae84320433d6283cfb9709319 | set a timeout of 5 seconds per hook | server/src/hooks/featureHooks.js | server/src/hooks/featureHooks.js | var path = require('path');
var async = require('async');
var config = require('../../../config/config.json');
var builtInHooks = [
'./server/src/hooks/audit.js',
//'./server/src/hooks/auditReplication.js'
];
var customHooks = config.hooks || [];
var hooks = builtInHooks.concat(customHooks).map(function(hook){
... | JavaScript | 0.000004 | @@ -50,16 +50,40 @@
async');
+%0Avar TIMEOUT = 5 * 1000;
%0A%0Avar co
@@ -185,54 +185,8 @@
.js'
-,%0A //'./server/src/hooks/auditReplication.js'
%0A%5D;%0A
@@ -553,26 +553,69 @@
-return hook%5Bev.fn%5D
+var fn = async.timeout(hook%5Bev.fn%5D, TIMEOUT);%0A return fn
(ev,
|
e2e979ed37fa56d93ca7fee0adfa3c4cf7e87eb3 | Handle case where no workflows to migrate | server/utils/migrations_utils.js | server/utils/migrations_utils.js | const dbConstants = require('../constants/db_constants');
const log = require('./log');
const OLD_REDIS_APPS = 'workflows';
const migrationsUtils = {
/**
* Rename an old field in each run to the new name
*/
migrateRunsWorkflowField(redis) {
log.debug('Migrating runs workflow fields...');
return red... | JavaScript | 0.000001 | @@ -388,24 +388,104 @@
runsHash) %7B%0A
+ log.debug('Not migrating runs workflow fields because no runs found.');%0A
retu
@@ -1269,24 +1269,174 @@
sHash) =%3E %7B%0A
+ if (!oldAppsHash) %7B%0A log.debug('Not migrating workflows to apps because no workflows found');%0A return Promise... |
1f51c0f879676a22a8e17dac3ce4f551a584190f | remove unnecessary file check | validateToken.js | validateToken.js | // var userIdRegex = /un=(\w+\@\w+(\.\w+))/
var path = require('path')
var crypto = require('crypto')
var request = require('request')
var Defer = require('promised-io/promise').defer
var when = require('promised-io/promise').when
var config = require('./config')
var fs = require('fs')
var SigningPublicPEM
var ssCache ... | JavaScript | 0.000001 | @@ -284,29 +284,8 @@
s')%0A
-var SigningPublicPEM%0A
var
@@ -358,408 +358,8 @@
')%0A%0A
-if (config.get('signing_public_PEM')) %7B%0A var f = config.get('signing_public_PEM')%0A if (f.charAt(0) !== '/') %7B%0A f = path.join(__dirname, f)%0A %7D%0A try %7B%0A console.log('Filename: ', f)%0A SigningPubli... |
73f749a38a06d261ed127991ab8c0b84ed806bdf | Use base utility to test for NaN | lib/node_modules/@stdlib/math/base/random/cauchy/lib/factory.js | lib/node_modules/@stdlib/math/base/random/cauchy/lib/factory.js | 'use strict';
// MODULES //
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
var isObject = require( '@stdlib/utils/is-plain-object' );
var isnan = require( '@stdlib/utils/is-nan' );
var randn = require( '@stdlib/math/base/random/randn' );
var validate = require( './validate.js' );
var cauchy0 ... | JavaScript | 0 | @@ -176,32 +176,42 @@
quire( '@stdlib/
+math/base/
utils/is-nan' );
|
197fbcb8679754f6a07e78619eba153e9bacbc3d | Allow `npm test` to run on Windows. This workround is needed because cmd.exe does not support the #! method of specifying how to run a script. | packages/live-server/test/cli.js | packages/live-server/test/cli.js | var assert = require('assert');
var path = require('path');
var exec = require('child_process').execFile;
var cmd = path.join(__dirname, "..", "live-server.js");
var opts = {
timeout: 2000,
maxBuffer: 1024
};
describe('command line usage', function() {
it('--version', function(done) {
exec(cmd, [ "--version" ], o... | JavaScript | 0 | @@ -203,16 +203,195 @@
1024%0A%7D;
+%0Afunction exec_test(args, callback) %7B%0A%09if (process.platform === 'win32')%0A%09%09exec(process.execPath, %5B cmd %5D.concat(args), opts, callback);%0A%09else%0A%09%09exec(cmd, args, opts, callback);%0A%7D
%0A%0Adescri
@@ -464,30 +464,30 @@
ne) %7B%0A%09%09exec
-(cmd,
+_te... |
c3d23f2d46e663f53b2f2bfe8015cabf21651809 | Remove webpack version check in tslint | packages/tslint/index.js | packages/tslint/index.js | /**
* Tslint webpack block.
*
* @see https://github.com/wbuchwalter/tslint-loader
*/
module.exports = tslint
/**
* @param {object} [options] See https://github.com/wbuchwalter/tslint-loader#usage
* @return {Function}
*/
function tslint (options) {
options = options || {}
const loader = ... | JavaScript | 0 | @@ -486,89 +486,8 @@
=%3E (
-context.webpackVersion.major === 1 ? %7B%0A preLoaders: %5B loader(context) %5D%0A %7D :
%7B%0A
@@ -569,37 +569,24 @@
context) =%3E
-Object.assign
(%7B%0A modul
@@ -621,45 +621,8 @@
ins:
- context.webpackVersion.major === 2 ?
%5B%0A
@@ -741,87 +741,12 @@
%5D
- : %5B%5... |
8997f57d21a21aaafd036b990ecfd11a6dc5e509 | Remove a now useless JS statement | app/assets/javascripts/new_design/toggle_chart.js | app/assets/javascripts/new_design/toggle_chart.js | var TPS = TPS || {};
TPS.toggleChart = function(event, chartClass) {
var nextSelectorItem = $(event.target),
nextChart = $(chartClass),
nextChartId = nextChart.children().first().attr("id"),
currentSelectorItem = nextSelectorItem.parent().find(".segmented-control-item-active"),
currentChart =... | JavaScript | 0.000019 | @@ -1,26 +1,4 @@
-var TPS = TPS %7C%7C %7B%7D;%0A%0A
TPS.
|
3d6e29100ada5fa001b63e8dee3952b70df1e61d | Change text on templet page | app/components/layer-template-select/component.js | app/components/layer-template-select/component.js | /*global $:true*/
import Ember from 'ember';
import TimeMachine from 'ember-time-machine';
export default Ember.Component.extend({
themeList: [
{
id: 1,
name: 'All',
thumb: '/img/all.png',
description: 'Includes all section types.'
},
{
... | JavaScript | 0 | @@ -962,35 +962,35 @@
n: '
-Includes all section types.
+Example of a portfolio page
'%0A
|
9501895d1f8b1f320ba28b4dc806854ec8ecdcb8 | Add update to pageAction comments | src/pages/dataTableUtilities/pageActions.js | src/pages/dataTableUtilities/pageActions.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import { UIDatabase } from '../../database/index';
import { MODAL_KEYS } from '../../utilities';
import { ACTIONS } from './constants';
/**
* Refreshes the underlying data array by slicing backingData.
* BackingData is a live realm collection which s... | JavaScript | 0 | @@ -747,18 +747,25 @@
pe:
-'editName'
+ACTIONS.EDIT_NAME
, pa
@@ -2203,39 +2203,39 @@
pe to edit i.e.
-Requisi
+Transac
tion.%0A */%0Aexport
@@ -2612,16 +2612,19 @@
bject%60.%0A
+ *%0A
* @para
@@ -2738,23 +2738,23 @@
it i.e.
-Requisi
+Transac
tion.%0A *
@@ -2872,16 +2872,17 @@
tate();%0A
+%0A
const
@@ ... |
6068609240c1fc36d8cb020678039d938f987e4d | Simplify reducer | app/javascript/app/components/nav/nav-reducers.js | app/javascript/app/components/nav/nav-reducers.js | const setCountriesVisibility = (isOpen, state) => ({
...state,
countriesOpen: isOpen
});
export default {
setCountriesVisibility: (state, { payload }) =>
setCountriesVisibility(payload, state)
};
| JavaScript | 0.000028 | @@ -29,21 +29,26 @@
= (
-isOpen, state
+state, %7B payload %7D
) =%3E
@@ -84,14 +84,15 @@
en:
-isOpen
+payload
%0A%7D);
@@ -138,76 +138,8 @@
lity
-: (state, %7B payload %7D) =%3E%0A setCountriesVisibility(payload, state)
%0A%7D;%0A
|
bd6aca9afe093ec63fd906c39174ad026c8e8449 | fix some indentation :D | app/public/components/views/SequenceList/index.js | app/public/components/views/SequenceList/index.js | var React = require('react/addons');
var ViewActions = require('../../../actions/ViewActions');
var ViewConstants = require('../../../constants/ViewConstants');
var _ = require('lodash');
var SequenceStore = require('../../../stores/SequenceStore');
var SequenceActions = require('../../../... | JavaScript | 0.002639 | @@ -1999,16 +1999,18 @@
':
+
true,%0A
@@ -2149,34 +2149,32 @@
e,%0A 'hide':
-
|
8beae7aba2cd70f22218433dbf91abb763fee9c3 | Include default vote counts | rdiodj/static/js/search-view.js | rdiodj/static/js/search-view.js | /*globals app, Backbone, R */
// TODO:
//
// * Keyboard navigation for menu (arrows select, return chooses, escape dismisses)
// * Perhaps when you click away it should leave the search string in the box, and if you
// click back, it should open the menu again
(function() {
app.SearchView = Backbone.View.extend... | JavaScript | 0 | @@ -746,16 +746,66 @@
tUserKey
+,%0A upVotes: 0,%0A downVotes: 0
%0A
|
d59d5053b16fd8c64e90af7c0b8ce999f6be457d | remove debug message | app/sanji-window/sanji-window-state.controller.js | app/sanji-window/sanji-window-state.controller.js | const $inject = [];
class SanjiWindowStateController {
constructor(...injects) {
SanjiWindowStateController.$inject.forEach((item, index) => this[item] = injects[index]);
this.sanjiWindowMgr = null;
}
$onInit() {
this.sanjiWindowMgr = this.parent.sanjiWindowMgr;
console.log(this.sanjiWindowMgr);
... | JavaScript | 0.000001 | @@ -279,46 +279,8 @@
gr;%0A
- console.log(this.sanjiWindowMgr);%0A
|
7636c5d52f13206c60796d6e42da48b14230c5ac | build bump | sites/newspring/mobile-config.js | sites/newspring/mobile-config.js | App.info({
id: 'cc.newspring.newspringapp',
name: 'NewSpring',
description: 'App for NewSpring Church',
author: 'NewSpring Church',
email: 'web@newspring.cc',
website: 'https://newspring.cc',
version: '0.0.3',
buildNumber: '77'
});
App.icons({
// iOS
'iphone_2x': 'assets/icons/ios/icon-60x60@2x.png... | JavaScript | 0 | @@ -234,17 +234,17 @@
mber: '7
-7
+8
'%0A%7D);%0A%0AA
|
4e16223ff34b154107dbc360bc329ed83ba42e34 | use 'by-age' as default | react-app/src/components/App.js | react-app/src/components/App.js | import React, { Component } from 'react';
import { Route, Redirect } from 'react-router-dom';
import './App.scss';
import TopBar from 'components/TopBar/TopBar';
import Table from 'components/Table/Table';
import TopMappers from 'components/TopMappers/TopMappers';
import { routes } from 'constants/routes';
class Ap... | JavaScript | 0.000152 | @@ -783,21 +783,22 @@
ath + '/
-total
+by-age
'%7D /%3E%7D%0A
|
03ccc7c6cbb66df07580b772acc6a746d73993cd | Set no embed-codes option for multi-page-test-project | test-projects/multi-page-test-project/gulpfile.js | test-projects/multi-page-test-project/gulpfile.js |
var gulp = require('gulp');
var defs = [
{
title: 'Test Index Title',
path: '',
description: 'Test index description',
twitterImage: '20euro.png',
openGraphImage: '50euro.png',
schemaImage: '100euro.png'
},
{
path: '/subpage',
title: 'Test Subpage Title',
description: 'Test s... | JavaScript | 0 | @@ -594,16 +594,60 @@
fs: defs
+,%0A embedCodes: false,%0A iframeResize: false
%0A%7D%0A%0A%0Avar
|
f05ead56c97d78c8050e495270f0cd8d73866a04 | add spec to open file in editor | oide/apps/codeeditor/tests/js/filetree.service.spec.js | oide/apps/codeeditor/tests/js/filetree.service.spec.js | describe('filetree.service', function(){
var $filetreeService;
var httpBackend;
var selectionDesc = {
noSelections: true,
multipleSelections: false,
dirSelected: false
};
var dirs = [{
"filepath": "/home/saurabh/dir2",
"filename": "dir2",
"group": "saurabh",
... | JavaScript | 0.000001 | @@ -5494,24 +5494,330 @@
;%0A %7D);%0A
+ it('should open files in editor', function()%7B%0A httpBackend.flush();%0A $filetreeService.treeData.selectedNodes = %5B$filetreeService.treeData.filetreeContents%5B0%5D, $filetreeService.treeData.filetreeContents%5B1%5D%5D;%0A expect($filetreeSer... |
aba2088d590753a9fb74afbfbad19d47198d1b42 | Make sure AuthService is injected | assets/js/app/authentication/logout_controller.js | assets/js/app/authentication/logout_controller.js | 'use strict';
function LogoutController(AuthService) {
AuthService.logout();
}
module.exports = LogoutController;
| JavaScript | 0.000001 | @@ -8,16 +8,31 @@
rict';%0A%0A
+/**@ngInject*/%0A
function
|
230bf25892a78188445c82d110c81ae6c987f3f6 | Add new constants. | assets/js/modules/idea-hub/datastore/constants.js | assets/js/modules/idea-hub/datastore/constants.js | /**
* `modules/idea-hub` data store constants.
*
* 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/licens... | JavaScript | 0.000002 | @@ -1097,8 +1097,256 @@
GE = 4;%0A
+export const IDEA_HUB_ACTIVITY_IS_PROCESSING = 'IDEA_HUB_ACTIVITY_IS_PROCESSING';%0Aexport const IDEA_HUB_ACTIVITY_CREATING_DRAFT = 'IDEA_HUB_ACTIVITY_CREATING_DRAFT';%0Aexport const IDEA_HUB_ACTIVITY_DRAFT_CREATED = 'IDEA_HUB_ACTIVITY_DRAFT_CREATED';%0A
|
080c988fe92067d4c82a56884e37eb79f719d5e4 | Add forge now: only catch expected exceptions in request dashboard | assets/src/bundles/add_forge/request-dashboard.js | assets/src/bundles/add_forge/request-dashboard.js | /**
* Copyright (C) 2022 The Software Heritage developers
* See the AUTHORS file at the top-level directory of this distribution
* License: GNU Affero General Public License version 3, or any later version
* See top-level LICENSE file for more information
*/
import {handleFetchError, csrfPost, getHumanReadableDa... | JavaScript | 0 | @@ -2694,33 +2694,59 @@
us);%0A %7D catch (
-r
+e) %7B%0A if (e instanceof R
esponse) %7B%0A /
@@ -2748,15 +2748,70 @@
+
// The
+fetch request failed (in handleFetchError), show the
erro
@@ -2820,24 +2820,26 @@
message%0A
+
$('#fetchErr
@@ -2866,24 +2866,26 @@
none');%0A
+
+
$('#req... |
2f67e387fa47853c1d321173d77953372dda323c | update webapp | webapp/js/client/client-controller.js | webapp/js/client/client-controller.js | /**
* Author: Vova Zaytsev <zaytsev@usc.edu>
*/
app.controller("NlcdClientController", ["$scope", "$location", "$sce", "NcldApiFactory",
function ($scope, $location, $sce, NcldApiFactory) {
/**
**/
$scope.central = null;
$scope.related = [];
$sco... | JavaScript | 0.000001 | @@ -4243,32 +4243,377 @@
%7B%0A %0A
+ var authors = node.authors.join(%22, %22).toTitleCase();%0A var source = %22%22;%0A var len = 10000;%0A for (var i in node.sources) %7B%0A if (node.sources%5Bi%5D.length %3C len) %7B%0A sourc... |
dee36b8e0732464df9836c5fc52d93d09463ff9d | Improve <Image> docs | Libraries/Image/Image.ios.js | Libraries/Image/Image.ios.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | JavaScript | 0 | @@ -1751,54 +1751,29 @@
-source: PropTypes.shape(%7B%0A /**%0A * A
+/**%0A * %60uri%60 is a
str
@@ -1834,18 +1834,16 @@
, which%0A
-
* c
@@ -1916,18 +1916,16 @@
c image%0A
-
* r
@@ -1969,32 +1969,80 @@
he %60
-ix%60 function).%0A */
+required('image!name')%60 function).%0... |
71b23548f2a4a456eec5d7b4b99a3868df3b272a | fix for broken link in management pages | deployment/http-root/ajs/app/components/commands_panel/commandRunningCtrl.js | deployment/http-root/ajs/app/components/commands_panel/commandRunningCtrl.js | (function (angular) {
'use strict';
//// JavaScript Code ////
function commandRunningCtrl($scope,$interval,$log,$routeParams,CodeineService,Constants,ApplicationFocusService) {
/*jshint validthis:true */
var vm = this;
vm.projectName = $routeParams.project_name;
vm.tabName ... | JavaScript | 0 | @@ -334,24 +334,116 @@
s.tab_name;%0A
+ if (typeof vm.tabName !== 'undefined') %7B%0A vm.tabName = 'main';%0A %7D%0A
vm.l
|
fd480e31bb002052ffcff090b5cc8183ccf46a8b | use article in reponse for redirect on success | public/js/edit-form.js | public/js/edit-form.js | import serialize from "./utils/serialize.js";
import Modal from "a11y-dialog-component";
const editForm = {
init() {
// bind event listener for publish buttons clicks
const submitButtonEls = document.querySelectorAll("[type=submit]");
if (!submitButtonEls) return;
for (let i = 0; i < submitButtonEl... | JavaScript | 0 | @@ -1100,19 +1100,35 @@
Success(
+response.article
);%0A
-
%7D
@@ -1239,16 +1239,23 @@
Success(
+article
) %7B%0A
@@ -1263,182 +1263,90 @@
/ re
-move %60/edit%60 from current url & redirect to reader view%0A // eg: /case/1234/edit =%3E /case/1234%0A location.href = location.pathname.slice(0, loca... |
7f34144ae08af2e2c084f3e1202dd548efdf0ea6 | resolve conflicts for rebase | public/js/loginPage.js | public/js/loginPage.js | 'use strict';
$(document).ready(function() {
// LOGIN: sumbit button pressed
var textfield = $("input[name=user]");
$('button[type="submit"]').click(function(e) {
e.preventDefault();
//little validation just to check username
if (textfield.val() != "") {
//$("#output").ad... | JavaScript | 0 | @@ -1429,16 +1429,256 @@
);%0A%7D);%0A%0A
+%0Afunction goToBottom() %7B%0A%09// var documentHeight=document.documentElement.offsetHeight;%0A%09// var viewportHeight=window.innerHeight;%0A%09// window.scrollTo(0,documentHeight-viewportHeight);%0A window.scrollTo(0,document.body.scrollHeight);%0A%0A%7D %0A%0A
// fun... |
3138b4ab6ee3c030e019d99c889b1c36c326f6cc | Make score popup | public/js/menu/menu.js | public/js/menu/menu.js |
//Cooler button for menus
/**
Constructor for MenuButton
@constructor
*/
var MenuButtonObject = function()
{
ButtonObject.call(this);
this.font = "48px Arial";
this.draw = function()
{
context.font = this.font;
if (this.mouseHover)
context.fillStyle = "#FF0000";
else
context.fillStyle = "#... | JavaScript | 0.000004 | @@ -2877,32 +2877,22 @@
%0A%09%7B%0A
- location.href =
+%09%09window.open(
'hig
@@ -2898,24 +2898,25 @@
ghscore.php'
+)
;%0A%09%09%0A%09%7D;%0A%09En
|
395316d7bd1e1eec25469c6cbb9131e45da8d681 | Update wwm.model.js | public/js/wwm.model.js | public/js/wwm.model.js | /**
* Created by Zero on 2015-07-25.
*/
wwm.model = (function () {
function getRoomList(query) {
var deferred = $.Deferred();
if (query) {
$.get('/rooms/' + query).done(function (res) {
if (res.rows.length === 0) {
deferred.reject('no_room');
}
deferred.resolve(res.rows);
}).fail(function ... | JavaScript | 0.000001 | @@ -84,21 +84,18 @@
oomList(
-query
+id
) %7B%0A%09%09va
@@ -125,24 +125,8 @@
();%0A
-%09%09if (query) %7B%0A%09
%09%09$.
@@ -145,13 +145,10 @@
' +
-query
+id
).do
@@ -162,33 +162,32 @@
tion (res) %7B%0A%09%09%09
-%09
if (res.rows.len
@@ -191,33 +191,32 @@
length === 0) %7B%0A
-%09
%09%09%09%09deferred.rej
@... |
13379a8f174e42832c289d3a8f01af79148f528b | fix for diff row expander not displaying ee level results | gemma-web/src/main/webapp/scripts/ajax/diff/DiffExpressionGridRowExpander.js | gemma-web/src/main/webapp/scripts/ajax/diff/DiffExpressionGridRowExpander.js | /*
* Gemma.DiffExpressionGridRowExpander constructor...
*/
Gemma.DiffExpressionGridRowExpander = function(config) {
this.expandedElements = [];
Gemma.DiffExpressionGridRowExpander.superclass.constructor.call(this,
config);
};
/*
* instance methods...
*/
Ext.extend(Gemma.DiffExpressionGridRowExpander, Ext.g... | JavaScript | 0 | @@ -1213,60 +1213,8 @@
00,%0A
-%09%09%09%09layout : fit,%0A%09%09%09%09layoutConfig : %7B%0A%09%09%09%09%09%0A%09%09%09%09%7D,%0A
%09%09%09%09
|
ee545c42c8fd316b367629716ee42054314a399d | Make sure xhr responses are json on platforms that dont support xhr.responseType | core/messaging.js | core/messaging.js | /**
* @license
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0 | @@ -1676,24 +1676,47 @@
xhr, ret) %7B%0A
+ var self = this;%0A
xhr.on
@@ -1798,16 +1798,186 @@
+if ( self.responseType === %22json%22 && typeof xhr.response == %22string%22 )%0A var response = JSON.parse(xhr.response);%0A else response = xhr.response;%0A
ret(
-xhr.
res... |
ddd7b5845837256a0d2a37a7bafa542fe3b99ef8 | Update MapWithClustering.js | MapView/MapWithClustering.js | MapView/MapWithClustering.js | import React, { Component } from 'react';
import MapView from 'react-native-maps';
import { width as w , height as h } from 'react-native-dimension';
import CustomMarker from './CustomMarker';
import SuperCluster from 'supercluster';
import geoViewport from '@mapbox/geo-viewport';
const height = h(100);
const width = ... | JavaScript | 0 | @@ -5468,24 +5468,105 @@
.cluster%5Bi%5D%7D
+%0A getClusterColor = %7Bthis.props.setClusterColor%7D
%3E%0A
@@ -5914,17 +5914,99 @@
kers%5Bi%5D%7D
-%3E
+%0A getClusterColor = %7Bthis.props.setClusterColor%7D%3E%0A
%0A
|
aa926e61c4547f0372a95920250f302afffce2e7 | fix test | packages/__tests__/src/event-drag/fixedMirrorParent.js | packages/__tests__/src/event-drag/fixedMirrorParent.js | import { DayGridViewWrapper } from "../lib/wrappers/DayGridViewWrapper"
import { CalendarWrapper } from '../lib/wrappers/CalendarWrapper'
describe('fixedMirrorParent', function() {
pushOptions({
initialView: 'dayGridMonth',
initialDate: '2020-10-26'
})
fit('changes the mirror\'s parent element', functio... | JavaScript | 0.000002 | @@ -262,17 +262,16 @@
%7D)%0A%0A
-f
it('chan
|
bb388e5031b18314cba063946ee0d30997b3a453 | Change default goal state to match Java applet. | src/js/application.js | src/js/application.js | $(function() {
var enableDebug = false;
// Set up the default configuration
var configuration = new Configuration();
configuration.getInitialState().setTiles([0,2,3,1,4,5,8,7,6]);
configuration.getGoalState().setTiles([1,2,3,4,5,0,8,7,6]);
// Initialise the application state with the default ... | JavaScript | 0 | @@ -244,19 +244,19 @@
2,3,
-4,5,0,8
+8,0,4
,7,6
+,5
%5D);%0A
|
db4e76f806cbb297e0c22a3e6c0318689076055e | Update App.js | src/js/modules/App.js | src/js/modules/App.js | import React from 'react';
import NavLink from './NavLink';
import Header from 'grommet/components/Header';
import Menu from 'grommet/components/Menu';
import Image from 'grommet/components/Image';
import Footer from 'grommet/components/Footer';
export default class D3-V4-grommet extends React.Component {
re... | JavaScript | 0.000001 | @@ -274,12 +274,12 @@
s D3
--V4-
+_V4_
grom
|
3a8499d69298ca1b16d235a86a15f123c654691f | modify icon for Feature Collection Templates Use the map icon to be consistent with ArcGIS Online. | src/js/portal/info.js | src/js/portal/info.js | define([], function() {
var types = [
{
type: "CityEngine Web Scene",
icon: "webScene"
},
{
type: "Color Set",
icon: "datafilesGray"
},
{
type: "Document Link",
icon: "datafilesGray"
},
{
... | JavaScript | 0 | @@ -555,20 +555,20 @@
icon: %22
-file
+maps
%22%0A
|
4a72f1541b56895184fb86e76c267ad61d81e7ce | apply update within variable | src/js/tabs/signup.js | src/js/tabs/signup.js | var util = require('util');
var Tab = require('../client/tab').Tab;
var SignupTab = function() {
Tab.call(this);
};
util.inherits(SignupTab, Tab);
SignupTab.prototype.pageMode = 'single';
SignupTab.prototype.parent = 'main';
SignupTab.prototype.generateHtml = function() {
return require('../../jade/tabs/signup.... | JavaScript | 0 | @@ -906,32 +906,24 @@
confirmed'))
-%0A
$location.p
@@ -1066,24 +1066,16 @@
iated'))
-%0A
$locati
@@ -1667,24 +1667,106 @@
= 'three';%0A
+ // necessary to apply variable within a callback%0A $scope.$apply();%0A
%7D);%0A
|
8f95a5084443a00407b9963ae25231ab5eade6a4 | Move the log so it only gets call when the wrap actually will execute | src/js/taskPromise.js | src/js/taskPromise.js | (function($){
$.getScript("https://rawgithub.com/KanbanSolutions/Math.uuid.js/master/Math.uuid.js");
var Task = function(start_method, call_args) {
this.id = Math.uuidFast();// https://github.com/KanbanSolutions/Math.uuid.js
this.steps = [];
this.then(start_method, call_args);
... | JavaScript | 0.000001 | @@ -1005,125 +1005,31 @@
-console.log(%22Step for %22 + self.id);%0D%0A var wrap = function() %7B%0D%0A console.log(%22wrap for %22 + self.id);
+var wrap = function() %7B
%0D%0A
@@ -1934,16 +1934,65 @@
%7D%0D%0A
+ console.log(%22wrap for %22 + self.id);%0D%0A
//I thin
|
bf8f0a9cca5e27c324fd8ef7fe74dd65dd7c9437 | Update test | packages/stas/test/basic.test.js | packages/stas/test/basic.test.js |
const assert = require('assert');
const createRouter = require('uni-router');
const { Store, Model } = require('..');
describe('stas-immutable: basic', function () {
it('should work with initial state', function () {
const store = new Store({ str: 'hello' });
assert.deepStrictEqual(store.state.get('str'), '... | JavaScript | 0.000001 | @@ -2330,40 +2330,8 @@
%3E %7B%0A
- if (req.url === '/a') %7B%0A
@@ -2343,34 +2343,32 @@
Timeout(() =%3E %7B%0A
-
store.mu
@@ -2380,34 +2380,32 @@
(newState) =%3E %7B%0A
-
newSta
@@ -2432,32 +2432,28 @@
');%0A
-
%7D);%0A
-
%7D, 10)
@@ -2450,32 +2450,24 @@
... |
47665bdbeec64c79d760b5310b8463210c1396ac | update table header unique id to use stable id (#7730) | packages/react/src/components/DataTable/TableHeader.js | packages/react/src/components/DataTable/TableHeader.js | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { settings } from 'carbon-components';
imp... | JavaScript | 0 | @@ -446,16 +446,62 @@
orting';
+%0Aimport %7B useId %7D from '../../internal/useId';
%0A%0Aconst
@@ -1697,16 +1697,57 @@
ref%0A) %7B%0A
+ const uniqueId = useId('table-sort');%0A%0A
if (!i
@@ -2402,42 +2402,8 @@
n%5D;%0A
- const uniqueId = Math.random();%0A
co
@@ -2734,37 +2734,16 @@
%7D%7D id=%7B
-%60us... |
f64e1867f7fb908eed8f0eb52af6d96bd7df7638 | add style loaders to script tag build | packages/veritone-widgets/webpack.config.script-tag.js | packages/veritone-widgets/webpack.config.script-tag.js | const path = require('path');
const { readdirSync } = require('fs');
const allWidgets = readdirSync(path.resolve(__dirname, 'src/widgets'));
module.exports = {
mode: 'production',
entry: {
VeritoneApp: path.resolve(__dirname, 'src/shared/VeritoneApp.js'),
// one entry for each widget
...allWidgets.red... | JavaScript | 0 | @@ -902,16 +902,544 @@
loader'%0A
+ %7D,%0A %7B%0A test: /%5C.scss$/,%0A loaders: %5B%0A 'style-loader',%0A %7B%0A loader: 'css-loader',%0A options: %7B%0A modules: true,%0A localIdentName: '%5Blocal%5D--%5Bhash:base64:5%5D'%0A ... |
53720a0c7176463a09bfff7a159f2d2a527c5e89 | fix stop/restart fragment | WebActivities/lib/com/webactivities/os/Fragment.js | WebActivities/lib/com/webactivities/os/Fragment.js | var Fragment = function(framework, parentActivityInstance) {
var self = this;
var component = $("<div></div>", {
style : "position: relative"
});
this.app = null;
this.activity = null;
this.parameter = null;
this.context = null;
this.activityInstance = null;
this.inited = false;
this.parentInited = false;... | JavaScript | 0.000001 | @@ -2023,16 +2023,148 @@
move();%0A
+%09%09%09component.empty();%0A%09%09%09var newComponent = component.clone();%0A%09%09%09component.replaceWith(newComponent);%0A%09%09%09component = newComponent;%0A
%09%09%7D);%0A%09%09
|
0a662e83bab144ebf27c5fa12fa6dc0b43229ae1 | update lang/testval.js | src/lang/testval.js | src/lang/testval.js | // adopted from: test-value <https://github.com/75lb/test-value>
// Copyright (c) 2015 Lloyd Brookes <75pound@gmail.com> (MIT)
var toArray = require('./toArray')
var isObject = require('./isObject')
var isPlainObject = require('./isPlainObject')
function testValue (val, test) {
if (isPlainObject(test) &&... | JavaScript | 0.000019 | @@ -250,16 +250,153 @@
Object')
+%0Avar every = require('../array/every')%0Avar some = require('../array/some')%0Avar keys = require('../object/keys')
%0A%0Afuncti
@@ -483,15 +483,14 @@
urn
-Object.
+every(
keys
@@ -499,15 +499,10 @@
est)
-.every(
+,
func
@@ -1194,17 +1194,18 @@
urn
... |
143e45187e1acc550098e608cd645e8a78cc426f | fixed googlestrategy. did not work | agile-idm-web-ui/auth/providers/google-strategy.js | agile-idm-web-ui/auth/providers/google-strategy.js | var passport = require('passport');
var GoogleStrategy = require('passport-google-oauth2').Strategy;
const fs = require('fs');
var dateUtils = require('../../util/date');
var connectionPoolPromisse = require('../token-connection-pool');
var TokenAuthentication = require("../../../agile-idm-commons/authentication.js")... | JavaScript | 0.999882 | @@ -231,16 +231,63 @@
pool');%0A
+var conf = require('../../conf/agile-ui-conf');
%0Avar Tok
|
94ce29ca9a95396527f1589afc9f7bfea7b14376 | Use parseInt instead of multiplying by string | packages/typography/src/index.js | packages/typography/src/index.js | // @flow
import objectAssign from 'object-assign'
import verticalRhythm from 'compass-vertical-rhythm'
import ms from 'modularscale'
import createStyles from './utils/createStyles'
import compileStyles from './utils/compileStyles'
import type { OptionsType } from 'Types'
const typography = function(opts: OptionsType)... | JavaScript | 0.000001 | @@ -1549,16 +1549,25 @@
eFont =
+parseInt(
options.
@@ -1582,20 +1582,12 @@
Size
-.slice(0, -2
+, 10
)%0A
|
9f416ab4e316c3566f25dcd8c5c77df8818fadc8 | Use the NDK ImageasResized module to resize the image, and then ImageFactory to compress. | Resources/ui/common/questions/PhotoQuestionView.js | Resources/ui/common/questions/PhotoQuestionView.js | var _ = require('lib/underscore')._;
var ButtonView = require('ui/common/components/ButtonView');
//BasicQuestionView Component Constructor
function PhotoQuestionView(question, image) {
var self = Ti.UI.createView({
layout : 'vertical',
height : Titanium.UI.SIZE
});
var pictureButton = new ButtonView('... | JavaScript | 0 | @@ -1833,24 +1833,58 @@
dia = null;%0A
+ path = file.nativePath;%0A
re
@@ -2436,45 +2436,110 @@
-try %7B%0A file.write(ImageFactory.i
+var image_module = require('org.selfkleptomaniac.ti.imageasresized');%0A image = image_module.cameraI
mage
@@ -2558,17 +2558,8 @@
age,
- %7B width:
... |
037edf3396dc0aec2e8a4e4f222694f0807a67a8 | Clean up | src/lib/template.js | src/lib/template.js | const path = require('path')
const readdirRecursively = require('../util/readdirRecursively')
const getTemplateFiles = (templatePath) => {
const files = readdirRecursively(templatePath).map(file => {
return file.replace(`${templatePath}${path.sep}`, '')
})
if (files.length === 0) {
throw new Error(`Tem... | JavaScript | 0.000002 | @@ -22,17 +22,16 @@
'path')%0A
-%0A
const re
|
971a18bcb0942eddbe579743587df67e7b3d70cc | Update silent flow | samples/msal-node-samples/standalone-samples/silent-flow/index.js | samples/msal-node-samples/standalone-samples/silent-flow/index.js | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const express = require("express");
const exphbs = require('express-handlebars');
const msal = require('@azure/msal-node');
const { promises: fs } = require("fs");
const graph = require('./graph');
const SERVER_PORT... | JavaScript | 0 | @@ -502,44 +502,99 @@
nst
-readFromStorage = () =%3E %7B%0A return
+beforeCacheAccess = async (cacheContext) =%3E %7B%0A cacheContext.tokenCache.deserialize(await
fs.
@@ -621,16 +621,17 @@
%22utf-8%22)
+)
;%0A%7D;%0A%0Aco
@@ -638,145 +638,90 @@
nst
-writeToStorage = (getMergedState) =%3E %7B%0A return ... |
3cc600c11423a90c743ad7d474ef739f151edf62 | Change scroll tracking from '/business-finance-support-finder page to '/business-finance-support-finder/search' | app/assets/javascripts/analytics/scroll-tracker.js | app/assets/javascripts/analytics/scroll-tracker.js | (function() {
"use strict";
window.GOVUK = window.GOVUK || {};
var CONFIG = {
'/': [
['Heading', 'Services and information'],
['Heading', 'More on GOV.UK'],
['Percent', 80] //To track 'Services and information' section in footer
],
'/bank-holidays': [
['Percent', 25... | JavaScript | 0 | @@ -1036,16 +1036,23 @@
t-finder
+/search
': %5B%0A
|
bc5971334da489824a8df933cfec73ace2ac8ee2 | Fix dashboard when there is no reports to show. | app/assets/javascripts/views/report_ajax_loader.js | app/assets/javascripts/views/report_ajax_loader.js | // ELMO.Views.ReportAjaxLoader
//
// View model to load the report via ajax. Used on dashboard and report show.
(function(ns, klass) {
// constructor
ns.ReportAjaxLoader = klass = function(params, dashboard) { var self = this;
self.dashboard = dashboard;
self.params = params;
// save the report id
... | JavaScript | 0 | @@ -1580,24 +1580,60 @@
').show();%0A%0A
+ if (self.current_report_id) %7B%0A
// send
@@ -1674,16 +1674,18 @@
nts%0A
+
+
return $
@@ -1692,16 +1692,18 @@
.ajax(%7B%0A
+
ur
@@ -1760,16 +1760,18 @@
,%0A
+
+
method:
@@ -1783,16 +1783,18 @@
,%0A
+
data: %7B%0A
@@ -1805,16 ... |
d55ef9857c85dc7562e0e33190aa786c815aeb4d | Add new background image for agriculture sector | app/javascript/app/routes/app-routes/app-routes.js | app/javascript/app/routes/app-routes/app-routes.js | import { createElement } from 'react';
import { Redirect } from 'react-router-dom';
// components
import Home from 'pages/home';
import About from 'pages/about';
import CountryIndex from 'pages/country-index';
import CountriesSelect from 'components/countries-select';
import CountryCompare from 'pages/country-compare'... | JavaScript | 0 | @@ -3016,346 +3016,8 @@
%7B%0A
- path: '/sectors/agriculture',%0A component: SectorsAgriculture,%0A label: 'SECTORS AGRICULTURE',%0A sections: agricultureSections,%0A headerImage: 'sectors-agriculture'%0A %7D,%0A %7B%0A path: '/sectors/agriculture',%0A component: SectorsAgriculture,%0A head... |
7b67973cf7ddea2ab4a180719def75b594a082d6 | WFP-810 simplify query | app/services/data/get-old-reduction-for-history.js | app/services/data/get-old-reduction-for-history.js | const knex = require('../../../knex').web
module.exports = function (id) {
let whereObject = {}
if (id !== undefined) {
whereObject = { 'reductions.id': id }
}
return knex('reductions')
.withSchema('app')
.join('reduction_reason', 'reductions.reduction_reason_id', 'reduction_reason.id')
.where... | JavaScript | 0.999523 | @@ -75,58 +75,13 @@
%7B%0A
-let whereObject = %7B%7D%0A if (id !== undefined) %7B%0A
+const
whe
@@ -118,12 +118,8 @@
id %7D
-%0A %7D
%0A%0A
@@ -408,32 +408,43 @@
.hours',%0A '
+reductions.
effective_from A
@@ -473,16 +473,27 @@
%0A '
+reductions.
effectiv
@@ -700,67 +700,14 @@
.
-then(fu... |
4709845f2b65c0cab88b2f15793eca4b131ce760 | Revert "fix(route): don't default to creating a new module" | route/index.js | route/index.js | 'use strict';
var path = require('path');
var util = require('util');
var ngUtil = require('../util');
var ScriptBase = require('../script-base.js');
var Generator = module.exports = function Generator() {
ScriptBase.apply(this, arguments);
};
util.inherits(Generator, ScriptBase);
Generator.prototype.prompting = f... | JavaScript | 0 | @@ -506,16 +506,34 @@
tAppName
+ + '.' + self.name
,%0A wh
|
5f116d052d86f6e637ae53ffd8a72367064999e0 | print error-type, warn about invalid cmd errors in console | paul.zuehlcke.de/js/LWConsole.js | paul.zuehlcke.de/js/LWConsole.js | /*
Copyright 2017 Paul Zuehlcke - paul.zuehlcke.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 by applicable law or agreed to i... | JavaScript | 0.000003 | @@ -5176,14 +5176,18 @@
urn
-%22Error
+e.name + %22
: %22
@@ -5333,16 +5333,115 @@
actise)%0A
+ console.warn(%22Command returned invalid error-object%22, %22cmd%22, cmd, %22args%22, cmdArr);%0A
|
0775ff498a1ade564744368e40ab00f6e0256d5c | Move example tags to jumbotron | app/assets/javascripts/components/jumbotron.es6.js | app/assets/javascripts/components/jumbotron.es6.js | // Require React
React = require('react/addons');
// Define component
const Jumbotron = React.createClass({
render() {
return (
<div className="header header--bg">
<div className="container">
<div className="jumbotron jumbotron--small">
<div className="col-6">
... | JavaScript | 0.000001 | @@ -677,32 +677,683 @@
%3C/div%3E%0A
+ %3Cdiv className=%22col-4%22%3E%0A %3Ch3%3E%0A Example filters:%0A %3C/h3%3E%0A %3Cdiv%3E%0A %3Cspan className=%22react-tagsinput-tag%22%3Ekeyword:tom%3C/span%3E%0A ... |
b8bf56e95a756d5f460cf1feb079de6b57040bfc | Fix overlaping content_box in the fancybox. This triggers scrollbars. | app/assets/javascripts/fassets_core/catalog_box.js | app/assets/javascripts/fassets_core/catalog_box.js | $(document).ready(function(){
var show_catalog = function() {
$.fancybox.showActivity();
var f_width = $(window).width()*0.8;
var f_height = $(window).height()*0.8;
$("#box_content").css("left",$("#catalog_list").width()+10);
$("#box_content").css("width",$("#fancybox-content").width()-$("#catalog... | JavaScript | 0 | @@ -621,24 +621,215 @@
%7D);%0A
+ $(%22#box_content%22).css(%22left%22,$(%22#catalog_list%22).width()+10);%0A $(%22#box_content%22).css(%22width%22,$(%22#fancybox-content%22).width()-$(%22#catalog_list%22).width()-30-$(%22#facets%22).width());%0A
fanc
|
ae5dc479e7fdabe61900b2763500cc6c6551e2c7 | fix pagination UI | app/assets/javascripts/vue_pagination/index.js.es6 | app/assets/javascripts/vue_pagination/index.js.es6 | /* global Vue, gl */
/* eslint-disable no-param-reassign, no-plusplus */
//= require ./param_helper.js.es6
((gl) => {
const PAGINATION_UI_BUTTON_LIMIT = 4;
const UI_LIMIT = 6;
const SPREAD = '...';
const PREV = 'Prev';
const NEXT = 'Next';
const FIRST = '<< First';
const LAST = 'Last >>';
gl.VueGlPag... | JavaScript | 0.000481 | @@ -2660,16 +2660,28 @@
le: PREV
+, prev: true
%7D);%0A
@@ -2731,32 +2731,44 @@
PREV, disabled:
+ true, prev:
true %7D);%0A
@@ -3126,16 +3126,28 @@
isActive
+, page: true
%7D);%0A
@@ -3251,32 +3251,44 @@
READ, separator:
+ true, page:
true %7D);%0A
@@ -3363,24 +3363,36 @@
T, disabled:
+ ... |
fc0435162ff7a8b852740bbbcd7071e5e848a6d2 | Add default value for width to eliminate invalid layout value exception. | apps/dg/components/graph/axes/axis_multi_target.js | apps/dg/components/graph/axes/axis_multi_target.js | // ==========================================================================
// DG.AxisMultiTarget
//
// Author: William Finzer
//
// Copyright (c) 2014 by The Concord Consortium, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may... | JavaScript | 0 | @@ -2253,16 +2253,22 @@
.width')
+ %7C%7C 24
, height
|
14e24242abbaf2562904538e59cedf37684b6492 | Use this.dispatchEvent (#250) | assets/javascripts/kitten/components/tours/tour.js | assets/javascripts/kitten/components/tours/tour.js | import React from 'react'
import classNames from 'classnames'
import domElementHelper from 'kitten/helpers/dom/element-helper'
import TourStep from 'kitten/components/tours/tour-step'
class Tour extends React.Component {
constructor(props) {
super(props)
this.state = {
play: false,
visible: fals... | JavaScript | 0 | @@ -1005,32 +1005,37 @@
(newIndex)%0A%0A
+this.
dispatchEvent('k
@@ -1157,24 +1157,29 @@
Index)%0A%0A
+this.
dispatchEven
@@ -1246,16 +1246,21 @@
()%0A%0A
+this.
dispatch
|
30c6524cbbba0a2606bdff4b4aea3f49d6542c95 | Improve handleSelectAll method | src/apps/Hosting/HostingFilesList.js | src/apps/Hosting/HostingFilesList.js | import React from 'react';
import _ from 'lodash';
import { withRouter } from 'react-router';
import { DialogsMixin } from '../../mixins';
import HostingFilesStore from './HostingFilesStore';
import HostingFilesActions from './HostingFilesActions';
import { ColumnList, Lists, Dialog, Loading } from '../../common';
i... | JavaScript | 0 | @@ -2139,24 +2139,31 @@
) %7B%0A
+return
this.handleC
@@ -2200,76 +2200,21 @@
%7D%0A
-
+%0A
-if (!filteredItem.isFolder && !filteredItem.checked) %7B%0A
+ return
che
@@ -2244,24 +2244,16 @@
true);%0A
- %7D%0A
%7D);%0A
|
eac717cd153ee246b8f6c6a07a8be33872fab641 | Add alert for invalid creds | src/client/login/login.controller.js | src/client/login/login.controller.js | angular.module('ccdb.login', ['ccdb.authentication.authentication', 'ccdb.authentication.user.authentication', 'ui.bootstrap'])
.config(function ($routeProvider) {
$routeProvider.when(
'/login',
{
templateUrl: 'login/login.html',
controller: 'LoginCon... | JavaScript | 0 | @@ -1024,20 +1024,118 @@
01)
-return null;
+%7B%0A alert('Invalid credentials');%0A return null;%0A %7D
%0A%0A
|
817653efdac048fd10242432dc4e2b9ff793299c | Fix browsersync registration (#2512) | src/components/ComponentRegistrar.js | src/components/ComponentRegistrar.js | let Assert = require('../Assert');
let mergeWebpackConfig = require('../builder/MergeWebpackConfig');
let components = [
'JavaScript',
'Preact',
'React',
'Coffee',
'TypeScript',
'Less',
'Sass',
'Stylus',
'PostCss',
'Css',
'Browsersync',
'Combine',
'Copy',
'Autolo... | JavaScript | 0 | @@ -268,17 +268,17 @@
'Browser
-s
+S
ync',%0A
|
16a862a02cd0b80841245b7b15b395786aeb6531 | fix login buttons | src/components/ServiceAuthButtons.js | src/components/ServiceAuthButtons.js | import React from 'react'
import { openPopup, setupPopupCallback } from '../util/auth'
const { func } = React.PropTypes
const startAuth = service => event => {
openPopup(service)
event.preventDefault()
}
export default class ServiceAuthButtons extends React.Component {
static propTypes = {
dispatch: func,
... | JavaScript | 0.000004 | @@ -19,16 +19,54 @@
'react'%0A
+import %7B connect %7D from 'react-redux'%0A
import %7B
@@ -241,16 +241,27 @@
lt()%0A%7D%0A%0A
+@connect()%0A
export d
|
bfcde7095fed9d904cd563bf727fce6ba377aaa4 | Optimized the prefix query | src/components/entity.controllers.js | src/components/entity.controllers.js | /**
* Created by: dhayes on 4/15/14.
* Filename: entity.controllers.js
*/
angular.module('entity.controllers',['alert.services'])
.controller('EntityController', ['repository', '$scope', '$state', '$timeout', function(repository, $scope, $state, $timeout) {
$scope.repository = repository;
$scop... | JavaScript | 1 | @@ -5217,24 +5217,27 @@
+ //
q = %7B prefi
@@ -5259,24 +5259,268 @@
yString %7D %7D%0A
+ q = %7B%0A multi_match: %7B%0A query: queryString,%0A type: 'phrase_prefix',%0A fields: %5B'name', 'description... |
7e60cb6eb042036e907e5417bf7f03ab86e1f579 | fix flow | src/components/shared/ManagedTree.js | src/components/shared/ManagedTree.js | // @flow
import React, { createFactory, Component } from "react";
import "./ManagedTree.css";
import { Tree as _Tree } from "devtools-components";
const Tree = createFactory(_Tree);
export type Item = {
contents: any,
name: string,
path: string
};
type Props = {
autoExpandAll: boolean,
autoExpandDepth: num... | JavaScript | 0.000001 | @@ -898,24 +898,31 @@
ructor(props
+: Props
) %7B%0A supe
@@ -979,16 +979,24 @@
anded %7C%7C
+ git to
new Set
|
01a996dcc5b068033f1416889b8cc91a66f3f507 | disable stomp client logging in prod | src/core/neuron/NeuronStompClient.js | src/core/neuron/NeuronStompClient.js | /*
* @flow
*/
import SockJS from 'sockjs-client';
import Stomp from 'stompjs';
/*
* SockJS client instance
*
* https://github.com/sockjs/sockjs-client
* https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/websocket.html
*/
let socketClient :?Object = null;
/*
* Stomp client i... | JavaScript | 0 | @@ -76,16 +76,75 @@
mpjs';%0A%0A
+// injected by Webpack.DefinePlugin%0Adeclare var __PROD__;%0A%0A
/*%0A * So
@@ -848,16 +848,104 @@
ient);%0A%0A
+ if (__PROD__) %7B%0A // disable logging in prod%0A stompClient.debug = () =%3E %7B%7D;%0A %7D%0A%0A
return
|
109a3115cd62dbd04713ccb6171bf77b1e316a77 | Remove .take so all github repos can be accessed | src/core/service-providers/github.js | src/core/service-providers/github.js | // @flow
import type { ServiceProvider, ServiceProviderModule } from '../types'
import GitHub from 'github-api'
import lodash from 'lodash'
let configKeys = ['Organization Name', 'OAuth Token for Organization Owner Account']
class GitHubProvider implements ServiceProvider {
api: GitHub
orgName: string
construc... | JavaScript | 0 | @@ -618,41 +618,8 @@
ata%0A
- repos = lodash.take(repos, 3)
%0A
|
414ae71b8a8991d26c6ae3de98d66a69d7b1eb3f | Fix stupid mistake (#427) | src/_actions/PortfolioActions.js | src/_actions/PortfolioActions.js | import * as types from '../_constants/ActionTypes';
import * as LiveData from '../_data/LiveData';
import nowAsEpoch from 'binary-utils/lib/nowAsEpoch';
import { sellExpiredContract } from './TradeActions';
export const serverDataPortfolio = serverResponse => ({
type: types.SERVER_DATA_PORTFOLIO,
serverRespons... | JavaScript | 0.066767 | @@ -684,16 +684,23 @@
ontract)
+.length
%3E 0) %7B%0A
|
e7abefd5fd2f8e93caba7a9acc9950f99d2c077b | update PortalManagement | src/_vendors/PortalManagement.js | src/_vendors/PortalManagement.js | import addClass from 'dom-helpers/class/addClass';
import removeClass from 'dom-helpers/class/removeClass';
const map = {};
function push(parentEl, portalEl) {
if (!(parentEl in map)) {
map[parentEl] = [];
}
addClass(parentEl, 'portal-parent');
map[parentEl].push(portalEl);
}
function pop... | JavaScript | 0 | @@ -1,12 +1,106 @@
+/**%0A * @file PortalManagement vendor%0A * @author liangxiaojun(liangxiaojun@derbysoft.com)%0A */%0A%0A
import addCl
@@ -121,22 +121,16 @@
helpers/
-class/
addClass
@@ -173,14 +173,8 @@
ers/
-class/
remo
|
ded0399b7cdbd800b90803a61099fb83af2b04b5 | Fix eslint warning | src/interface/layout/Footer/index.js | src/interface/layout/Footer/index.js | import React from 'react';
import { connect } from 'react-redux';
import Tooltip, { TooltipElement } from 'common/Tooltip';
import DiscordLogo from 'interface/icons/DiscordTiny';
import GithubLogo from 'interface/icons/GitHubMarkSmall';
import PatreonIcon from 'interface/icons/PatreonTiny';
import { hasPremium } from ... | JavaScript | 0.00001 | @@ -20,16 +20,52 @@
react';%0A
+import PropTypes from 'prop-types';%0A
import %7B
@@ -529,16 +529,74 @@
onent %7B%0A
+ static propTypes = %7B%0A premium: PropTypes.bool,%0A %7D;%0A%0A
render
|
dcc4858084990a94a140d879cf6b9756350491ce | Fix for #186 | src/api/actions/widget/update.js | src/api/actions/widget/update.js | import {load} from './load';
export default function update(req) {
return new Promise((resolve, reject) => {
// write to database
setTimeout(() => {
if (Math.floor(Math.random() * 5) === 0) {
reject('Oh no! Widget save fails 20% of the time. Try again.');
} else {
const widgets = ... | JavaScript | 0 | @@ -4,14 +4,12 @@
ort
-%7B
load
-%7D
fro
|
6e84bb179357ca7c40ed28a81a1993f4a6eafbb9 | modify test | bids-validator/utils/__tests__/unit.spec.js | bids-validator/utils/__tests__/unit.spec.js | import unit from '../unit'
const { prefixes, roots } = unit
const validRoot = roots[0]
describe('unit validator', () => {
it('handles simple units', () => {
roots.forEach(validRoot => {
const goodOutput = unit.validate(validRoot)
expect(goodOutput.isValid).toBe(true)
})
const badOutput = uni... | JavaScript | 0.000002 | @@ -744,16 +744,24 @@
= %5B'%5E2',
+ '%5E543',
'%C2%B9%C2%B2%C2%B3',
@@ -786,16 +786,28 @@
tNumbers
+.slice(0, 3)
%5D%0A it('
|
3a73216578ee8cbd06b0c1d34de0c367b502ada3 | Fix tags parsing | src/api/domain/tomato-factory.js | src/api/domain/tomato-factory.js |
subclass = require('subclassjs');
mongo = require('../../mongo');
var TomatoFactory = module.exports = subclass(function (pt) {
'use strict';
pt.constructor.getInstance = function () {
return new this();
};
/**
* Creates a tomato model from the object.
*
* @param {Object} ... | JavaScript | 0.00049 | @@ -935,20 +935,40 @@
'string'
+ && obj.tags !== ''
) %7B%0A
+%0A
@@ -1012,16 +1012,139 @@
/%5Cs+/);%0A
+%0A %7D else if (obj.tags instanceof Array) %7B%0A%0A // do nothing%0A%0A %7D else %7B%0A%0A obj.tags = %5B%5D;%0A%0A
|
b04bd324c0110aef7d6f22aeec1c33d03f1a5229 | fix lint error | test/GithubApi.Redirect.js | test/GithubApi.Redirect.js | const agent = require('superagent-promise')(require('superagent'), Promise);
const statusCode = require('http-status-codes');
const chai = require('chai');
const { expect } = chai;
describe('Given a HEAD tests', () => {
it('Then the agent must receive a redirect with HEAD Method', () => agent.head('https://github.c... | JavaScript | 0.000006 | @@ -280,24 +280,28 @@
thod', () =%3E
+%0A
agent.head(
@@ -342,32 +342,34 @@
rect-test')%0A
+
+
.auth('token', p
@@ -407,32 +407,34 @@
(response) =%3E %7B%0A
+
expect(res
@@ -489,24 +489,26 @@
TLY);%0A
+
+
expect(respo
@@ -540,24 +540,35 @@
location).to
+%0A
.equal('http
@@ ... |
4c997220332e907a45beb5961d6a8649c9fc810e | Fix indent | src/js/components/FilterInputText.js | src/js/components/FilterInputText.js | var classNames = require('classnames');
var React = require('react');
import Icon from './Icon';
import ServiceFilterTypes from '../constants/ServiceFilterTypes';
var FilterInputText = React.createClass({
displayName: 'FilterInputText',
propTypes: {
handleFilterChange: React.PropTypes.func.isRequired,
i... | JavaScript | 0.000854 | @@ -1579,34 +1579,30 @@
%3E%0A
-
%3CIcon%0A
-
@@ -1623,26 +1623,24 @@
-
id=%22ring-clo
@@ -1647,34 +1647,32 @@
se%22%0A
-
-
size=%22mini%22%0A
@@ -1659,34 +1659,32 @@
size=%22mini%22%0A
-
clas
@@ -1709,26 +1709,24 @@
- ... |
6a532fd039e96e26bfcfe36ffa612f6f0a3984de | Add DeployServiceModal to ServicesTab | src/js/pages/services/ServicesTab.js | src/js/pages/services/ServicesTab.js | import React from 'react';
import {RouteHandler} from 'react-router';
import {StoreMixin} from 'mesosphere-shared-reactjs';
import AlertPanel from '../../components/AlertPanel';
import DCOSStore from '../../stores/DCOSStore';
import FilterBar from '../../components/FilterBar';
import DeployServiceModal from '../../com... | JavaScript | 0 | @@ -7868,20 +7868,22 @@
v%3E%0A )
+;
%0A %7D
+,
%0A%0A%7D);%0A%0Am
|
8035551e53151846557208d92e6cbc0ef358b85f | add missing includes | profiles/build.profile.js | profiles/build.profile.js | /* eslint no-unused-vars: 0 */
var profile = {
basePath: '../src',
action: 'release',
cssOptimize: 'comments',
mini: true,
optimize: false,
layerOptimize: false,
stripConsole: 'all',
selectorEngine: 'acme',
layers: {
'dojo/dojo': {
include: [
'app/... | JavaScript | 0 | @@ -432,24 +432,125 @@
questPane',%0A
+ 'app/security/_UserAdminUser',%0A 'app/security/_UserAdminPendingUser',%0A
|
35cd23133d2e42777af1cf4ada8d70dfc7b05e71 | stop scroll propagation in Playground editor | src/kitchen-sink/content/LiveDemo.js | src/kitchen-sink/content/LiveDemo.js | import React from 'react';
import Playground from 'component-playground';
const footer = '\n__render(Example);';
const footerISO = '\n__renderISO(Example);';
export default class LiveDemo extends React.Component {
static propTypes = {
iso: React.PropTypes.bool,
scope: React.PropTypes.object.isRequired,
... | JavaScript | 0 | @@ -66,16 +66,55 @@
ground';
+%0Aimport ScrollView from '../../scroll';
%0A%0Aconst
@@ -1713,16 +1713,77 @@
tNode &&
+%0A %3CScrollView scrollPropagation=%7Bfalse%7D%3E%0A
%3CPlaygr
@@ -1860,16 +1860,49 @@
nsole /%3E
+%0A %3C/ScrollView%3E%0A
%7D%0A
|
fd7334b227f1ab81a5d282451e0e330996cb4af2 | fix some small error in dashboard controller here | modules/users/client/controllers/dashboard.client.controller.js | modules/users/client/controllers/dashboard.client.controller.js | 'use strict';
// Courses controller
angular.module('users').controller('DashboardController', ['$scope', '$stateParams', '$location', 'Authentication', 'Courses', 'Users',
function ($scope, $stateParams, $location, Authentication, Courses, Users) {
$scope.isAdmin = function(){
return ($scope.authenticatio... | JavaScript | 0 | @@ -2021,12 +2021,13 @@
h !=
+=
0)%0A
-
@@ -2144,24 +2144,24 @@
for(var
-i
+k
= 0;
-i
+k
%3C valid
@@ -2177,17 +2177,17 @@
length;
-i
+k
++) %7B%0A
@@ -2275,17 +2275,17 @@
tudents%5B
-i
+k
%5D.enroll
|
73bf8d9f69e5c6400b80468a5beb3ace2beb0d2e | test for tylor | Resources/app.js | Resources/app.js | // this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'Menu',
backgr... | JavaScript | 0.000001 | @@ -329,14 +329,14 @@
r:'#
-EE8833
+FFA54F
'%0A%7D)
@@ -1141,16 +1141,28 @@
%0A%0A//////
+Menu Buttons
%0Avar sch
@@ -1578,16 +1578,44 @@
tacts)%0A%0A
+//open to Contacts screen%0A%0A%0A
%0A//%0A//
|
21111a61fc09328d40958c67cd8ed83903d1e94a | Add test for multipart/form-data content type | test/api/multipart-test.js | test/api/multipart-test.js | var helper = require('../lib');
var request = helper.getRequest();
describe('Multipart Requests', function() {
before(function (done) {
helper.drakov.run({sourceFiles: 'test/example/md/multipart.md'}, done);
});
after(function (done) {
helper.drakov.stop(done);
});
describe('/api/... | JavaScript | 0 | @@ -391,39 +391,38 @@
nse
-for Same Multipart Content Type
+when content type is Multipart
', f
@@ -581,1026 +581,44 @@
nd('
------BOUNDARY%5Cn'+%0A '/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a%5Cn' +%0A 'HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJ... |
5fe0c62842feb094eb569d2de7e95d7b25250e43 | Fix naming and aligning after review | modules/UI/ring_overlay/RingOverlay.js | modules/UI/ring_overlay/RingOverlay.js | /* global $, APP */
/* jshint -W101 */
import UIEvents from "../../../service/UI/UIEvents";
/**
* Store the current ring overlay instance.
* Note: We want to have only 1 instance at a time.
*/
let overlay = null;
/**
* Handler for UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED event.
* @param {boolean} shown indicates wh... | JavaScript | 0.000001 | @@ -606,36 +606,42 @@
%7Bboolean%7D d
-ontPlayAudio
+isableRingingSound
if true the
@@ -704,28 +704,34 @@
allee, d
-ontPlayAudio
+isableRingingSound
) %7B%0A
@@ -903,36 +903,48 @@
is.d
-ontPlayAudio = dontPlayAudio
+isableRingingSound = disableRingingSound
;%0A
@@ -977,28 +977,34 @@
if(!d
-ontPlayAudi... |
d1938417949a8aec0782a6be5683000199b44c68 | tweak timeout | test/app-inspector.test.js | test/app-inspector.test.js | 'use strict';
const path = require('path');
const EOL = require('os').EOL;
const CliTest = require('command-line-test');
const utils = require('./utils');
const pkg = require('../package');
const binFile = path.resolve(pkg.bin[pkg.name]);
const startString = 'inspector start at:';
describe('command line test', fun... | JavaScript | 0.000002 | @@ -342,16 +342,21 @@
out(60 *
+ 10 *
1000);%0A
|
83b6e166709eb84710f86a727926622c1b2ba87d | increase timeout | test/block-service-test.js | test/block-service-test.js | /* eslint-env mocha */
'use strict'
const expect = require('chai').expect
const Block = require('../src').Block
const BlockService = require('../src').BlockService
module.exports = (repo) => {
describe('block-service', () => {
let bs
it('create a block-service', (done) => {
bs = new BlockService(repo... | JavaScript | 0.000017 | @@ -5521,35 +5521,72 @@
of blocks',
-(done) =%3E %7B
+function (done) %7B%0A this.timeout(60 * 1000)%0A
%0A const
|
c7ed189cf36ee90121973124029ef8b0aa69336e | Use ES6 syntax | js/forum/src/components/TextEditor.js | js/forum/src/components/TextEditor.js | import Component from 'flarum/Component';
import ItemList from 'flarum/utils/ItemList';
import listItems from 'flarum/helpers/listItems';
import Button from 'flarum/components/Button';
/**
* The `TextEditor` component displays a textarea with controls, including a
* submit button.
*
* ### Props
*
* - `submitLabe... | JavaScript | 0.000005 | @@ -1308,11 +1308,13 @@
-var
+const
han
|
aaee45447c192e51d839de8c23c0434397eb7249 | fix fiscal_classification_id of product | tko_l10n_br_point_of_sale/static/src/js/models.js | tko_l10n_br_point_of_sale/static/src/js/models.js |
function l10n_br_fields(instance, module){ //module is instance.point_of_sale
var QWeb = instance.web.qweb;
var _t = instance.web._t;
module.PosModel.prototype.models.filter(function (m)
{ return m.model === 'res.partner'; }).map(function (m) {
return m.fields.push('street2','cnpj_cpf'),
m;
});
... | JavaScript | 0.999985 | @@ -907,25 +907,16 @@
s.push('
-property_
fiscal_c
@@ -928,20 +928,22 @@
fication
+_id
'),
-
%0A%09%09%09 m;
@@ -1827,25 +1827,16 @@
oduct().
-property_
fiscal_c
@@ -1840,32 +1840,35 @@
l_classification
+_id
%5B0%5D;%0A %7D,%0A
@@ -2425,17 +2425,8 @@
uct.
-property_
fisc
@@ -2442,16 +2442,19 @@
fic... |
e866ae01ac00df745bb04f51d3ddf13df28da030 | Remove Howler from game service | src/app/services/game.service.js | src/app/services/game.service.js | class GameService {
constructor(_, $log, $q, ImageFactory, AudioService, Howl) {
'ngInject';
this._ = _;
this.$q = $q;
this.$log = $log;
this.Howl = Howl;
this.ImageFactory = ImageFactory;
this.AudioService = AudioService;
this.game_id = 0;
this.questions = [];
this.musicURL =... | JavaScript | 0 | @@ -70,18 +70,12 @@
vice
-, Howl
) %7B%0A
+
@@ -146,30 +146,8 @@
og;%0A
- this.Howl = Howl;%0A
@@ -373,28 +373,8 @@
sic:
- false,%0A sound:
fal
@@ -646,22 +646,21 @@
retrieve
-Sounds
+Music
();%0A %7D%0A
@@ -1543,17 +1543,16 @@
.flag);%0A
-%0A
prom
@@ -1726,14 +1726,13 @@
ieve
-Sound... |
2982fa781ee44a7ec9e3d29956d5325b6bb0815f | remove limit on deep populate on components | packages/core/content-manager/server/services/entity-manager.js | packages/core/content-manager/server/services/entity-manager.js | 'use strict';
const { assoc, has, prop, omit } = require('lodash/fp');
const strapiUtils = require('@strapi/utils');
const { ApplicationError } = require('@strapi/utils').errors;
const { hasDraftAndPublish, isVisibleAttribute } = strapiUtils.contentTypes;
const { PUBLISHED_AT_ATTRIBUTE, CREATED_BY_ATTRIBUTE } = strap... | JavaScript | 0 | @@ -38,16 +38,23 @@
op, omit
+, merge
%7D = req
@@ -1341,26 +1341,15 @@
late
-, depth = 0
) =%3E %7B%0A
+
if
@@ -1392,47 +1392,8 @@
%7D%0A%0A
- if (depth %3E 2) %7B%0A return %7B%7D;%0A %7D%0A%0A
co
@@ -1829,27 +1829,16 @@
nt, null
-, depth + 1
),%0A
@@ -2115,21 +2115,13 @@
urn
-Object.assign... |
f3b29d37e297c9afa9f978444231c31a6cac5e09 | add test case for empty file #6 | test/css-validator_test.js | test/css-validator_test.js | // Load in our dependencies
var fs = require('fs');
var expect = require('chai').expect;
var validateCss = require('../');
var FakeJigsaw = require('./utils/fake-jigsaw');
function runValidateCss() {
FakeJigsaw.run();
before(function (done) {
var that = this;
validateCss({
text: this.css,
w3cUr... | JavaScript | 0 | @@ -471,16 +471,172 @@
%7D);%0A%7D%0A%0A
+function expectValid(data) %7B%0A expect(data.validity).to.equal(true);%0A expect(data.errors).to.deep.equal(%5B%5D);%0A expect(data.warnings).to.deep.equal(%5B%5D);%0A%7D%0A%0A
describe
@@ -885,32 +885,37 @@
) %7B%0A expect
+Valid
(this.data.valid
@@ -912,84 +912,... |
b185f43d3d364de1803b9722645ab66fbf16d763 | Use _uniq instead of _sortedUniq for return unique matched results | src/autocomplete/QueryMatcher.js | src/autocomplete/QueryMatcher.js | //@flow
/*
Copyright 2017 Aviral Dasgupta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | JavaScript | 0 | @@ -677,23 +677,17 @@
import _
-sortedU
+u
niq from
@@ -695,23 +695,17 @@
'lodash/
-sortedU
+u
niq';%0Aim
@@ -3587,15 +3587,9 @@
rn _
-sortedU
+u
niq(
|
7a886d5d9a22ec17970f379b5c73a2ddac79d9be | use slot names, not indices | browser/plugins/three_uv_modifier.plugin.js | browser/plugins/three_uv_modifier.plugin.js | (function() {
var ThreeUVModifierPlugin = E2.plugins.three_uv_modifier = function(core, node) {
Plugin.apply(this, arguments)
this.desc = 'Adjust a texture\'s UV coordinates'
this.input_slots = [{
name: 'texture',
dt: core.datatypes.TEXTURE,
def: new THREE.Texture()
}, {
name: 'u offset',
dt: ... | JavaScript | 0.000095 | @@ -1104,19 +1104,26 @@
lot.
-index === 0
+name === 'texture'
) %7B
@@ -1275,19 +1275,27 @@
lot.
-index === 1
+name === 'u offset'
) %7B
@@ -1374,19 +1374,27 @@
lot.
-index === 2
+name === 'v offset'
) %7B
@@ -1473,19 +1473,27 @@
lot.
-index === 3
+name === 'u repeat'
) %7B
@@ -1572,19 +1572,27 @@
lot.
-in... |
cb9dc81b652e85cd9774ea81a6ba71438143e34f | Update isValidPhone.js | html/utilities/validation/isValidPhone.js | html/utilities/validation/isValidPhone.js | function isValidPhone(value) {
// eslint-disable-next-line max-len
const expression = /(^(\+\d{1,2}\s)?((\(\d{3}\))|\d{3})[\s.-]?\d{3}[\s.-]?\d{4}$)|^$/;
return expression.test(value);
}
export { isValidPhone as default };
| JavaScript | 0.000037 | @@ -1,12 +1,9 @@
-function
+const
isV
@@ -11,23 +11,29 @@
lidPhone
+ =
(value)
+ =%3E
%7B%0A //
|
9e7c3aad77984f740e3b96897561383604fc0811 | Work around rounding-induced gaps between tooltip and triangle | src/menu/tooltip.js | src/menu/tooltip.js | import {elt} from "../edit/dom"
import "./tooltip_css"
const prefix = "ProseMirror-tooltip"
export class Tooltip {
constructor(pm, dir) {
this.pm = pm
this.dir = dir || "above"
this.knownSizes = Object.create(null)
this.pointer = pm.wrapper.appendChild(elt("div", {class: prefix + "-pointer-" + this.... | JavaScript | 0.000001 | @@ -1948,24 +1948,28 @@
.offsetWidth
+ - 1
%0A this.
@@ -2005,24 +2005,28 @@
offsetHeight
+ - 1
%0A %7D%0A%0A
|
1b0cd4599b48f3fc0a951eaa4c36d9a0708e1e40 | implement alternative form (with endfor) | src/parser/loops.js | src/parser/loops.js | /**
* Copyright (C) 2014 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
module.exports = function(api, tokens, EOF) {
return {
read_while: function() {
this.expect('(').next();
var cond = this.read_expr();
this.exp... | JavaScript | 0 | @@ -1338,83 +1338,344 @@
y =
-this.read_statement();%0A // @todo ':' inner_statement_list T_ENDFOR ';'
+null;%0A if (this.token === ':') %7B%0A this.next();%0A body = %5B%5D;%0A while(this.token != EOF && this.token !== tokens.T_ENDFOR) %7B%0A body.push(this.read_inner_statemen... |
633fcb8544e447baedaae4541b8d0cebc643f9de | add self as plugin if main is set | src/plugins/core.js | src/plugins/core.js | // @flow
import {Manager, PluginPath} from './manager'
import path from 'path'
export default class CorePlugins extends Manager {
/**
* list core plugins
* @returns {PluginPath[]}
*/
async list (): Promise<PluginPath[]> {
try {
let cli = this.config.pjson['cli-engine']
if (!cli) return []... | JavaScript | 0 | @@ -246,18 +246,20 @@
%7B%0A
-le
+cons
t cli =
@@ -300,41 +300,315 @@
-if (!cli) return %5B%5D%0A return
+let plugins = %5B%5D%0A if (this.config.pjson.main) %7B%0A // if main is set in package.json, add plugin as self%0A plugins.push(new PluginPath(%7Boutput: this.out, type: 'co... |
10a14afe297dcfc01483e57430ae2a6b3816d0d7 | add missing enc parameter in toString | browser.js | browser.js | 'use strict';
var createHash = require('create-hash/browser');
var inherits = require('inherits')
var Transform = require('stream').Transform
var ZEROS = new Buffer(128)
ZEROS.fill(0)
function Hmac(alg, key) {
Transform.call(this)
if (typeof key === 'string') {
key = new Buffer(key)
}
var blocksize = (... | JavaScript | 0.000001 | @@ -1365,16 +1365,19 @@
oString(
+enc
) : outD
|
c1b0c6e9ccf1adefeb424216afc8ffab3ae691e4 | use `removeItem()` to clear localStorage | browser.js | browser.js |
/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
/**
* Colors.
*/
exports.colors = [
'cyan',
'green',
'goldenrod', /... | JavaScript | 0.000001 | @@ -2545,15 +2545,8 @@
-delete
loca
@@ -2550,29 +2550,43 @@
ocalStorage.
+removeItem('
debug
+')
;%0A %7D else
|
356a576adb2f15874e50012b1410bd5af31d4955 | edit places parentheses test | test/function_call_test.js | test/function_call_test.js | import check from './support/check.js';
describe('function calls', () => {
it('inserts commas after arguments if they are not there', () => {
check(`
a(
1
2
)
`, `
a(
1,
2
);
`);
});
it('does not insert commas in single-line calls', () => {
... | JavaScript | 0.000012 | @@ -1893,24 +1893,251 @@
%60);%0A %7D);%0A%0A
+ it.skip('places parentheses in calls short single line into fat arrow function with comment', () =%3E %7B%0A check(%60%0A promise.then (a)-%3E%0A b # c%0A d%0A %60, %60%0A promise.then(a=%3E b); # c%0A d;%0A %60);%0A %7D);%0A%0A
... |
122026ef8c39fbc06c18463f86ed5c368387bb03 | Fix undefined reference | routes/crud.js | routes/crud.js | var _ = require('underscore');
var Q = require('q');
module.exports = function (crudService, referenceService, entityDescriptionService, storageDriver) {
var route = {};
route.checkReadPermissionMiddleware = function (req, res, next) {
if (req.body.entityCrudId && !entityDescriptionService.userHasRead... | JavaScript | 0.000295 | @@ -850,27 +850,16 @@
iltering
-.textSearch
&& req.
@@ -939,26 +939,16 @@
iltering
-.filtering
&& req.
@@ -1025,24 +1025,16 @@
iltering
-.sorting
&& req.
|
c0b3dddbe62321b3d0af774b73c19bd285093e41 | remove spare spaces | src/commands/Ondemand/WhereIs.js | src/commands/Ondemand/WhereIs.js | 'use strict';
const Query = require('warframe-location-query');
const Command = require('../../Command.js');
const extraSpace = ' ';
/**
* Looks up locations of items
*/
class Whereis extends Command {
/**
* Constructs a callable command
* @param {Genesis} bot The bot object
*/
constructor(bot) {
... | JavaScript | 0.000002 | @@ -1744,21 +1744,8 @@
i%7D$%7B
-extraSpace%7D$%7B
resu
@@ -1790,21 +1790,8 @@
End%7D
-$%7BextraSpace%7D
%60).r
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.