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
031d6c10db031735a2576c9b9bcc0023198dd497
fix pointerLock error on iOS
packages/core/input/GestureObserver.js
packages/core/input/GestureObserver.js
import Vector2 from '../math/Vector2.js'; class GestureObserver { /** * @typedef Gesture * @property {HTMLElement} target - The target DOM Element * @property {number} movementX - Movement on the X axis * @property {number} movementY - Movement on the Y axis * @property {number} movementScale - Pinch-...
JavaScript
0
@@ -5353,24 +5353,62 @@ pointerId);%0A + if (document.exitPointerLock) %7B%0A document @@ -5423,24 +5423,30 @@ nterLock();%0A + %7D%0A if (!dat
49b9177ea41227d92943b72d077d7e9f2a578a81
Add test presence for link.port before join it.
packages/ember-simple-auth/lib/core.js
packages/ember-simple-auth/lib/core.js
'use strict'; /** The main namespace for Ember.SimpleAuth @class SimpleAuth @namespace Ember @static **/ Ember.SimpleAuth = {}; /** Sets up Ember.SimpleAuth for your application; invoke this method in a custom initializer like this: ```javascript Ember.Application.initializer({ name: 'authentica...
JavaScript
0
@@ -2993,24 +2993,44 @@ nk.hostname+ +(link.port !== '' ? ':'+link.por @@ -3026,24 +3026,30 @@ :'+link.port + : '') ;%0A var wi @@ -3121,16 +3121,47 @@ ostname+ +(window.location.port !== '' ? ':'+wind @@ -3176,16 +3176,22 @@ ion.port + : '') ;%0A re
43648de7e54d557ad032f3f4eb4ec3dbf1c4bc93
Use array of args when `apply`ing reconnect
packages/follower-livedata/follower.js
packages/follower-livedata/follower.js
var fs = Npm.require('fs'); var Future = Npm.require('fibers/future'); var MONITOR_INTERVAL = 5*1000; // every 5 seconds /** * Follower.connect() replaces DDP.connect() for connecting to DDP services that * implement a leadership set. The follower connection tries to keep connected * to the leader, and fails ove...
JavaScript
0.000002
@@ -3047,16 +3047,17 @@ y(conn, +%5B %7B%0A @@ -3070,32 +3070,33 @@ l: url%0A %7D +%5D );%0A %7D else
2c84010efe4d929750bde5e0448aeb2086a87608
fix typo
api/apiserv.js
api/apiserv.js
#!/usr/bin/env node /* require node modules */ var fs = require("fs"); var path = require("path"); var http = require("http"); /* require npm modules */ var cradle = require("cradle"); var express = require("express"); /* require local modules */ var log = require(path.resolve(__dirname, "lib/log.js")); /* import c...
JavaScript
0.999991
@@ -1832,17 +1832,17 @@ %22rp-api%22 -, +: config.
9494ce3faf614483079b6bfe85ae1f48e8373e22
Refactor to better define data helper
data/clothing.js
data/clothing.js
const request = require('request'); /** * Function checks that a string given is string with some number of * characters * * @params {string} str string value to check for validity * @return true if the string is valid; otherwise, return false */ function isValidString(str) { if ((str === undefined) || (typeo...
JavaScript
0.000002
@@ -398,20 +398,24 @@ %0A%7D%0A%0Alet -user +clothing = expor @@ -1158,32 +1158,16 @@ S+)%22/);%0A - %0A @@ -1343,8 +1343,9 @@ %0A %7D%0A%7D +%0A
f18d3dcb453ef93efaa42d472c087bf3f10520e0
fix (webpack): import missing app-root-path
config/webpack/browser/webpack.browser.prod.js
config/webpack/browser/webpack.browser.prod.js
/* * @author: @AngularClass */ const webpackMerge = require('webpack-merge'); // used to merge webpack configs const commonConfig = require('./webpack.browser.common.js'); // the settings that are common to prod and dev const { PROD_OPTIONS } = require('./../options'); /* * Webpack Plugins */ const { DefinePlu...
JavaScript
0.000001
@@ -27,16 +27,58 @@ ss%0A */%0A%0A +const appRoot = require('app-root-path');%0A const we @@ -149,16 +149,17 @@ configs%0A +%0A const co
4732bc29341e304878eb419dc06423c3e54b39dd
Update BackButton.js
twitter-example/components/BackButton.js
twitter-example/components/BackButton.js
import React, { StyleSheet, Image } from 'react-native'; export default class BackButton extends React.Component { render() { return ( <Image source={require('../images/back_button.png')} style={styles.backButton} /> ); } } var styles = StyleSheet.create({ backButton: { width: 10, height: ...
JavaScript
0.000001
@@ -241,11 +241,13 @@ %0A%7D%0A%0A -var +const sty
7220f7215af06ffc190846ba1403f1f17e44813c
Fix (hopefully) for broken path
files/static/js/splash/main.js
files/static/js/splash/main.js
var lastClick , docLocHref = document.location.href , pageRequest = docLocHref.substring(docLocHref.indexOf('#') + 1, docLocHref.length) , open_window , change_page , date = new Date() // +100 because javascript 0-indexes months huehuehue , today = parseInt(date.getMonth()+''+date.getDate()...
JavaScript
0
@@ -697,16 +697,26 @@ rc=%22 -graphics +/static/img/splash /clo
ef8d1960d64b42afdc1ec8f0d6b86e8dbfae6d3a
remove dead code in pubchem
chemistry/PubChem.js
chemistry/PubChem.js
import ui from 'src/util/ui'; const pubchemURL = 'https://pubchem.cheminfo.org/molecules/mf?mf='; async function getMolecules(mf) { let response = await fetch(`${pubchemURL}${mf}`); let results = (await response.json()).result; return new Promise(function(resolve, reject) { resolve(results); }); } module...
JavaScript
0.000389
@@ -256,16 +256,17 @@ function + (resolve @@ -345,16 +345,17 @@ function + (mf, opt @@ -1621,14 +1621,15 @@ tion + (e) %7B%0A - @@ -1757,333 +1757,7 @@ %7D%0A + %7D;%0A -%0Afunction listTemplate(val, prop) %7B%0A return %60%0A %3Cdiv style=%22height: 100%25; line-height: initial; vertical-align: ...
ace21569ff83ed3b29ef07c6c46693e5c8228b2f
Update sockets.js
app/sockets.js
app/sockets.js
import socketio from 'socket.io-client' import Enemy from './classes/Enemy' import Player from './classes/Player' /* global StackQuest */ export const socket = socketio.connect() export const GamePlayers = {} export const GameEnemies = {} export let collisionArrayStatus = false const socketFunctions = socket => { ...
JavaScript
0.000001
@@ -1009,47 +1009,8 @@ %3E %7B%0A - console.log('adding player', player)%0A Ga
be5228176e54f0e068dd155ee6c052351b0c02d5
remove time zone offset and use UTC getters
src/plots/cartesian/align_period.js
src/plots/cartesian/align_period.js
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var isNumeric = require('fast-isnumeric'); var Lib = require('../../lib'); var ms2DateTime = Lib.ms2DateTime; va...
JavaScript
0
@@ -1356,71 +1356,8 @@ t;%0A%0A - var offset = (new Date()).getTimezoneOffset() * 60000;%0A @@ -1422,17 +1422,16 @@ base = -( dateTime @@ -1461,18 +1461,8 @@ %7C%7C 0 -) - offset ;%0A%0A @@ -1715,16 +1715,19 @@ = d.get +UTC FullYear @@ -1759,16 +1759,19 @@ = d.get +UTC Month(); @@ -1794,24 +1...
058688ba57e4a80c7019cf35414f2594f4a7a426
use current 2d theme for embed
ui/site/src/standalones/embed-analyse.js
ui/site/src/standalones/embed-analyse.js
function toYouTubeEmbedUrl(url) { if (!url) return; var m = url.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch)?(?:\?v=)?([^"&?\/ ]{11})(?:\?|&|)(\S*)/i); if (!m) return; var start = 1; m[2].split('&').forEach(function(p) { var s = p.split('='); if (s[0] === 't' || s[0] === 'sta...
JavaScript
0
@@ -3789,24 +3789,188 @@ %7D);%0A %7D;%0A%0A + var themes = %5B'blue', 'blue2', 'blue3', 'canvas', 'wood', 'wood2', 'wood3', 'maple', 'green', 'marble', 'brown', 'leather', 'grey', 'metal', 'olive', 'purple'%5D;%0A%0A var config @@ -4145,29 +4145,180 @@ nd(' -bg', $('body').data(' +theme', themes.find(function...
95cabba40f01bdbae802e1fb40da60206f94a4c1
make linter happy
ui/src/data_explorer/components/Table.js
ui/src/data_explorer/components/Table.js
import React, {PropTypes} from 'react' import {Table, Column, Cell} from 'fixed-data-table' import Dimensions from 'react-dimensions' import fetchTimeSeries from 'shared/apis/timeSeries' import _ from 'lodash' import moment from 'moment' const {oneOfType, number, string, shape, arrayOf} = PropTypes const CustomCell =...
JavaScript
0.000001
@@ -2422,16 +2422,51 @@ ht = 34%0A + const defaultColumnWidth = 200%0A cons @@ -2496,19 +2496,34 @@ h %3E 1 ? -200 +defaultColumnWidth : conta
0da69fbccb9e1cdaa4617ae9db09d9e36f32c576
Improve headers
lib/middleware/apiGatewayProxyRest/lib/headers.js
lib/middleware/apiGatewayProxyRest/lib/headers.js
const { COMMA } = require("./constant.js"); class Headers { constructor(headers) { for (const key in headers) { if (headers[key].indexOf(COMMA)) { headers[key] = headers[key].split(COMMA); headers[key] = headers[key].map((item) => item.trim()); } } Object.assign(this, headers); } lastOf(header)...
JavaScript
0.000003
@@ -136,16 +136,62 @@ .indexOf + && headers%5Bkey%5D.split && headers%5Bkey%5D.indexOf (COMMA))
2de8b6cfd6c731194958295139a5a3d8f6e096a7
Support environments lacking a `window` global
lib/node_modules/@stdlib/utils/keys/lib/window.js
lib/node_modules/@stdlib/utils/keys/lib/window.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.000002
@@ -626,16 +626,91 @@ rict';%0A%0A +// MAIN //%0A%0Avar w = ( typeof window === 'undefined' ) ? void 0 : window;%0A%0A%0A // EXPOR @@ -733,16 +733,11 @@ ports = -windo w;%0A
a4426a4de61b60da28b296edfa0f1f7b074b39c6
Include path
webpack.config.prod.babel.js
webpack.config.prod.babel.js
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ import webpack from 'webpack'; import CopyWebpackPlugin from 'copy-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; export default { context: __dirname, entry: './index.jsx', output: { path: `${__dirname...
JavaScript
0
@@ -78,16 +78,41 @@ ue%7D%5D */%0A +import path from 'path';%0A import w
b70c7b88ba3ae674b40502503062431ea99bb3f8
update webpack config
webpack.production.config.js
webpack.production.config.js
var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var path = require('path'); module.exports = { entry: { app: [ './public/src/containers/app', ], // vendors: [ // 'i18Next', // 'jqueryLazyload' ...
JavaScript
0.000001
@@ -1114,16 +1114,22 @@ est: /%5C. +css%7C%5C. scss$/,%0A
02925c00eab83482f04a38da703546abf37ccdb2
branche input sur le chatter
src/presenters/message_presenter.js
src/presenters/message_presenter.js
'use strict'; function chatterPresenter(element, options) { element = $(element); var message_template = options.message_template, chatter = options.model, $messagesListElement = element.find('#messages-list'); element.on('keyup', '#new-message', function (e) { var val = $.trim(this.value); ...
JavaScript
0.00002
@@ -347,21 +347,14 @@ ) %7B%0A -// -todo. add( @@ -386,46 +386,8 @@ '';%0A - console.log(%22message= %22 + val);%0A
989a705f204a2a6078475493650d30e569cdaf0d
Fix error in element name for showing unauthorized alert using jQuery
views/js/helpers/login/loginsubmitter.js
views/js/helpers/login/loginsubmitter.js
/** * Created by Omnius on 6/27/16. */ const submitForm = () => { // TODO: Supposedly needs sanitation using ESAPI.encoder().encodeForJavascript() or some other sanitation // mechanism on inputUsername and inputPassword const username = $('#inputUsername').val(); const password = $('#inputPassword')....
JavaScript
0.000001
@@ -839,20 +839,21 @@ $('# -form +alert Unauthor
21f60e31c8f4582ad73241b1f626ac9ee53480a5
change trailing slash config to false
website/docusaurus.config.js
website/docusaurus.config.js
module.exports = { title: 'Tech Interview Handbook', tagline: 'Free curated interview preparation materials for busy people', url: 'https://www.techinterviewhandbook.org', baseUrl: '/', trailingSlash: true, favicon: 'img/favicon.png', organizationName: 'yangshun', projectName: 'tech-interview-handbook',...
JavaScript
0.020451
@@ -204,19 +204,20 @@ gSlash: -tru +fals e,%0A fav
9c00efaafa7d6f669f501d7665baf58b8ea4b25a
update bar api page
website/src/pages/bar/api.js
website/src/pages/bar/api.js
/* * This file is part of the nivo project. * * Copyright 2016-present, Raphaël Benitte. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react' import SEO from '../../components/seo' import ApiClient from '../../...
JavaScript
0.000004
@@ -2167,16 +2167,81 @@ true %7D, +%0A valueFormat: %7B format: '', enabled: false %7D, %0A%0A
04aefd9933aab3949bf45c7fb5dd270fe01ca4b8
Remove whitespace
tests/coordinateTransformTests.js
tests/coordinateTransformTests.js
var CoordinateTransforms = require('../www/CoordinateTransforms'); var expect = require('chai').expect; var PRECISION_FOR_COORDINATES = 6; var floorPlan = { "name":"Floor 4", "floorLevel":4, "bearing":177.21051025390625, "bitmapHeight":3307, "bitmapWidth":2339, "heightMeters":42.54764175415039, "widthMe...
JavaScript
0.999999
@@ -2672,33 +2672,32 @@ aram boundingBox - %0A * @param data @@ -2687,33 +2687,32 @@ x%0A * @param data - %0A */%0Afunction co @@ -3258,17 +3258,16 @@ ndingBox - %0A * @par @@ -3273,17 +3273,16 @@ ram data - %0A */%0Afun @@ -3472,18 +3472,16 @@ lon%5D);%0A - %0A expec
2719a0e17f3d01ba4645221df56c1391ffa2f079
Fix missing e parameter when handling HTTP errors
src/rexsterclient.js
src/rexsterclient.js
'use strict'; var http = require('http'); var querystring = require('querystring'); var Q = require("q"); var _ = require("lodash"); var GremlinScript = require('./gremlinscript'); var Graph = require("./objects/graph"); var Pipeline = require('./objects/pipeline'); var classes = require("./classes/classes"); var Re...
JavaScript
0.000013
@@ -2975,32 +2975,33 @@ rror', function( +e ) %7B%0A return
07137a11ac5a14f3b4d660b936802e484e14af05
Remove logUrlCache from project dashboard log feed.
website/static/js/logFeed.js
website/static/js/logFeed.js
'use strict'; var $ = require('jquery'); // jQuery var m = require('mithril'); // exposes mithril methods, useful for redraw etc. var $osf = require('js/osfHelpers'); var Raven = require('raven-js'); var LogText = require('js/logTextParser'); var mC = require('js/mithrilComponents'); /* Send with ajax calls to work...
JavaScript
0
@@ -166,41 +166,8 @@ ');%0A -var Raven = require('raven-js');%0A var @@ -209,51 +209,8 @@ ');%0A -var mC = require('js/mithrilComponents');%0A%0A %0A/* @@ -572,17 +572,16 @@ = this;%0A -%0A @@ -737,39 +737,8 @@ ll); -%0A self.logUrlCache = %7B%7D; %0A%0A @@ -807,39 +807,8 @@ ) %7B%0A - ...
4ee9bfc5520448e8fa8547a2ed1577c4bdf6488f
Fix settings for tests
tests/dummy/config/environment.js
tests/dummy/config/environment.js
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'dummy', environment: environment, baseURL: '/', locationType: 'hash', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-contr...
JavaScript
0
@@ -831,232 +831,324 @@ -// ENV.APP.LOG_RESOLVER = true;%0A // ENV.APP.LOG_ACTIVE_GENERATION = true;%0A // ENV.APP.LOG_TRANSITIONS = true;%0A // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;%0A // ENV.APP.LOG_VIEW_LOOKUPS = true;%0A ENV.API_URL = '' +ENV%5B'simple-auth'%5D = %7B%0A authorizer: 'sim...
76f3ef9df6be4ec2edf3d08dc103059cbd4f943a
switch to 'hash' location for gh-pages
tests/dummy/config/environment.js
tests/dummy/config/environment.js
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'dummy', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-contr...
JavaScript
0.000005
@@ -1108,16 +1108,46 @@ lider';%0A + ENV.locationType = 'hash'%0A %7D%0A%0A r
a06bf49054cef8924dad070d24309ba6c5cf0fbe
add name to sound
audio/Sound.js
audio/Sound.js
let sounds = new Set(); let soundsMap = new Map(); let muted = false; let loopMuted = false; export default class Sound { static set muted(value) { muted = value; for (let sound of sounds) { sound.muted = sound.muted; } } static get muted() { return muted; } static set loopMuted(valu...
JavaScript
0.000007
@@ -698,24 +698,47 @@ %7D = %7B%7D) %7B%0A + this.name = name;%0A%0A sounds.a @@ -765,16 +765,21 @@ Map.set( +this. name, th @@ -1083,30 +1083,24 @@ eturn this._ -audio. muted;%0A %7D%0A%0A
0ae27c8cde25764d10dc32478bed347541bb8f32
Use localhost instead of 127.0.0.1
nightwatch.e2e.conf.js
nightwatch.e2e.conf.js
var seleniumServer = require('selenium-server-standalone-jar') , chromedriver = require('chromedriver') , phantomjs = require('phantomjs-prebuilt'); var launchUrl = (process.env.LAUNCH_URL) ? process.env.LAUNCH_URL : 'http://localhost:3000'; module.exports = { src_folders: ['test/e2e'], output_folder: '.repor...
JavaScript
0.004915
@@ -536,17 +536,17 @@ : ' -127.0.0.1 +localhost ',%0A
aa29ed9b2fe70bfae24da8dbaafd462191b2a385
fix reset
addon/multiton-services/ember-theater/director/scene/curtain-pulley.js
addon/multiton-services/ember-theater/director/scene/curtain-pulley.js
import Ember from 'ember'; import multitonService from 'ember-theater/macros/ember-theater/multiton-service'; import BusPublisherMixin from 'ember-theater/mixins/bus-publisher'; import BusSubscriberMixin from 'ember-theater/mixins/bus-subscriber'; import MultitonIdsMixin from 'ember-theater/mixins/ember-theater/multito...
JavaScript
0.000002
@@ -722,18 +722,16 @@ const - %7B theater @@ -736,36 +736,14 @@ erId -, windowId %7D = getProperties + = get (thi @@ -756,28 +756,16 @@ eaterId' -, 'windowId' );%0A%0A @@ -789,28 +789,16 @@ aterId%7D: -$%7BwindowId%7D: gameIsRe @@ -868,20 +868,8 @@ Id%7D: -$%7BwindowId%7D: save
6834f73d95e4ded66c2729507c714d1ac34dacd0
Reconnect on connection losses
azureiothub.js
azureiothub.js
module.exports = function (RED) { var Client = require('azure-iot-device').Client; var Registry = require('azure-iothub').Registry; var Message = require('azure-iot-device').Message; var Protocols = { amqp: require('azure-iot-device-amqp').Amqp, mqtt: require('azure-iot-device-mqtt').M...
JavaScript
0
@@ -2839,32 +2839,102 @@ .disconnected);%0A + // works for me..%0A client = undefined;%0A %7D el @@ -8296,8 +8296,9 @@ %0A %7D%0A%7D +%0A
94a91d9c5a65edf166dbae6dae60fb427cfa05ed
add forgotten string to pt-BR localisation file.
actor-apps/app-web/src/app/l18n/pt-BR.js
actor-apps/app-web/src/app/l18n/pt-BR.js
export default { 'locales': 'pt-BR', 'messages': { // Login 'login': { 'signIn': 'Entrar', 'wrong': 'Errado?', 'phone': 'Numero do celular', 'authCode': 'Código de autenticação', 'yourName': 'Seu nome', 'errors': { 'numberInvalid': 'Numero inválido', 'name...
JavaScript
0
@@ -619,24 +619,60 @@ r contato',%0A + 'createGroup': 'Criar Grupo',%0A 'confi
592c45f7a548dd7374013612a34ed6757b41d637
fix webpack dev build
actor-apps/app-web/webpack.config.dev.js
actor-apps/app-web/webpack.config.dev.js
import path from 'path'; import webpack from 'webpack'; export default { cache: true, debug: true, devtool: 'inline-source-map', hotComponents: true, entry: { app: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/dev-server', './src/app/index.js' ], styles: [ ...
JavaScript
0.000088
@@ -2044,16 +2044,29 @@ '%5D)%0A +%5D, %5B'context' %5D),%0A
15e398d3486ed44238089ed7ee836eb332a5312e
add spot for stdout test in second command.
src/tap/ingestion.js
src/tap/ingestion.js
/** * ingestion.js * expects: * 1. path of directory * 2. parentpid * 3. namespace * 4. model * (note: basic image,large image,audio,video, collection, pdf, binary -- all require * the "ibsp" in the command string, book requires the "ibbp" part in the drush command.) * output: * log of drush run * error...
JavaScript
0
@@ -2175,18 +2175,16 @@ ut%0A -// console. @@ -2868,24 +2868,106 @@ og(stdout);%0A + // test command log for success indication%0A // test for substr in stdout%0A $messag
b4431bf182f48a4e6336cc48a8ce9b32615e229c
make countdown to be 3 secs
app/js/main.js
app/js/main.js
// Deal with web components before anything else require('webcomponents-lite'); require('./moz-select').register('moz-select'); var Boo = require('./Boo.js'); window.onload = function () { var boo; var videoEffectSelector = document.getElementById('videoEffect'); var audioEffectSelector = document.getElem...
JavaScript
0.999993
@@ -1555,19 +1555,16 @@ %09%09%7D);%0A%0A%0A -%09%09%09 %0A @@ -2054,9 +2054,9 @@ e = -5 +3 ; //
a3386893a8a525c8bb6a53f974c571b79ea8eedb
Remove baseUrl
app/js/main.js
app/js/main.js
require.config({ paths: { angular: '../../bower_components/angular/angular', angularRoute: '../../bower_components/angular-route/angular-route', angularMocks: '../../bower_components/angular-mocks/angular-mocks', text: '../../bower_components/requirejs-text/text' }, baseUrl: 'app/js', shim: { 'angular' : ...
JavaScript
0
@@ -274,28 +274,8 @@ %09%7D,%0A -%09baseUrl: 'app/js',%0A %09shi
78f8fad3046bf5f8f32e31f4554e6cf35aefda99
Refactor onload function for less nesting
app/js/main.js
app/js/main.js
// Deal with web components before anything else require('webcomponents-lite'); require('./moz-select').register('moz-select'); var Boo = require('./Boo.js'); window.onload = function () { var boo; var videoEffectSelector = document.getElementById('videoEffect'); var audioEffectSelector = document.getElem...
JavaScript
0
@@ -535,16 +535,17 @@ oData;%0A%0A +%0A navi @@ -631,25 +631,52 @@ %7D).then( -function +initBooth);%0A%0A%0A function initBooth (stream) @@ -682,27 +682,32 @@ ) %7B%0A -var +%0A boo = new B @@ -3415,21 +3415,23 @@ %7D);%0A%0A -%0A +%7D%0A%0A func @@ -3446,28 +3446,24 @@ at...
a13c8e476f483506dff4fec2fe9f3e60298ab0bf
Remove debug trace in package "header"
www/assets/header.brython.js
www/assets/header.brython.js
__BRYTHON__.use_VFS = true; var scripts = {"$timestamp": 1602345685948, "header": [".py", "from browser import bind,console,html,window,document,alert\nimport browser.widgets.menu as menu\n\nhref=document.location.href\nprotocol,rest=href.split(\"://\")\nhost,addr=rest.split(\"/\",1)\n\n\nif protocol ==\"http\"and host...
JavaScript
0
@@ -58,15 +58,15 @@ 1602 -3456859 +4938282 48, @@ -4534,58 +4534,8 @@ %5Cn -print(%5C%22fill language select%5C%22,lang1,language)%5Cn sele
3f6671fe27b1b83058930c1b641b13112ba79cab
include user and auth in middleware
src/utils/helpers.js
src/utils/helpers.js
const { Types } = require('mongoose'); const HTTPStatus = require('http-status'); const { ObjectId } = Types; /** * Check an parameter is a string or throw an error. */ function checkString(chars, { method, message } = {}) { if (typeof chars !== 'string') { throw new Error(message || `String parameter must be...
JavaScript
0.000001
@@ -2115,16 +2115,56 @@ .query,%0A + user: req.user,%0A auth: req.auth,%0A ...r
b16167a5fe0b0dd7329039892acf035af33ef8bc
add base path /c-desk
app/js/urls.js
app/js/urls.js
let basePath=''; let imagePath = `${basePath}img`; export default { // Routes homePage: basePath, addParcelPage: 'addParcel', // Other static assets path imagePath, // i18n Translations translationFolder: 'locale', }
JavaScript
0.000001
@@ -7,16 +7,23 @@ sePath=' +/c-desk ';%0Alet i
385680e74513fb852543003980069bed9a76dee2
Use setProperty() to avoid NPE
taglibs/core/TagHandlerNode.js
taglibs/core/TagHandlerNode.js
/* * Copyright 2011 eBay Software Foundation * * 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 o...
JavaScript
0.000001
@@ -6123,25 +6123,25 @@ _this. -g +s etProperties @@ -6141,14 +6141,10 @@ pert -ies()%5B +y( _thi @@ -6170,19 +6170,17 @@ Property -%5D = +, templat @@ -6235,32 +6235,33 @@ utes, template)) +) ;%0A
7408348deef335de07b4b155b474333b78953e28
Remove máscara do input-floating-label, utilizar talent-input-mask
addon/components/input-floating-label.js
addon/components/input-floating-label.js
import Ember from 'ember'; export default Ember.TextField.extend({ classNames: ['form-control'], didInsertElement() { this.floatLabel(); this.addMask(); }, onChangeValue: Ember.observer('value', function () { this.floatLabel(); }), floatLabel() { let input = Ember.$('#' + this.get('eleme...
JavaScript
0.000001
@@ -144,28 +144,8 @@ ();%0A - this.addMask();%0A %7D, @@ -488,170 +488,8 @@ %7D%0A - %7D,%0A%0A addMask()%7B%0A let mask = this.get('mask');%0A let input = Ember.$('#' + this.get('elementId'));%0A%0A if (!mask) %7B return; %7D%0A%0A input.inputmask(mask);%0A %7D%0A
4659d097621bbb0684093aadf51ca5f1cec7dbe7
Add nprogress to comment submission too
redux/articleDetail.js
redux/articleDetail.js
import { createDuck } from 'redux-duck' import { fromJS, Map, List, OrderedMap } from 'immutable' import gql from '../util/gql' const {defineType, createAction, createReducer} = createDuck('articleDetail'); // Action Types // const LOAD = defineType('LOAD'); const SET_STATE = defineType('SET_STATE'); const RESET = d...
JavaScript
0
@@ -120,16 +120,51 @@ til/gql' +%0Aimport NProgress from 'nprogress'; %0A%0Aconst @@ -2520,32 +2520,53 @@ value: true%7D));%0A + NProgress.start();%0A return gql%60mut @@ -2609,24 +2609,24 @@ String!) %7B%0A - CreateRe @@ -2740,32 +2740,38 @@ yId%7D).then(() =%3E + %7B%0A dispatch(reload @@ -2783,2...
5fdad766de1ee5a20f5112545b7a1119be61b9b6
Make grid lines and labels clearer.
webapp/public/javascript/meterstanden.js
webapp/public/javascript/meterstanden.js
$(function() { var makeLabels = function(measurements) { return _.map(measurements, function(value, i) { var time_stamp = new Date(value.time_stamp); if (time_stamp.getHours() % 3 == 0) { return moment(time_stamp).format("HH:mm"); } else { return ""; } }); } var r...
JavaScript
0
@@ -306,16 +306,308 @@ );%0A %7D%0A%0A + var determineMaxGridSteps = function(measurements, stepSize) %7B%0A var allValues = %5B_.pluck(measurements, %22stroom_piek%22), _.pluck(measurements, %22stroom_dal%22), _.pluck(measurements, %22gas%22)%5D;%0A var maxValue = _.max(_.flatten(allValues));%0A%0A return ...
8512709251722200ebc31ebd79238825588e2ca0
Fix benchmark picker touch target size in Safari
packages/benchmarks/src/app/App.js
packages/benchmarks/src/app/App.js
/* eslint-disable react/prop-types */ import Benchmark from './Benchmark'; import { Picker, StyleSheet, ScrollView, TouchableOpacity, View } from 'react-native'; import React, { Component } from 'react'; import Button from './Button'; import { IconClear, IconEye } from './Icons'; import ReportCard from './ReportCard';...
JavaScript
0
@@ -8647,16 +8647,40 @@ Object,%0A + appearance: 'none',%0A opac
7165a6650079128131c4c81a163c7b747e4a3bfe
Fix knex link in cohorts.js route file.
routes/api/cohorts.js
routes/api/cohorts.js
const router = require('express').Router(); const knex = require('../knex'); router.get('/', (req,res,next) => { res.send('GET ALL ROUTE'); }); router.get('/:id', (req,res,next) => { res.send('GET ROUTE FOR ID' + req.params.id); }); router.post('/', (req,res,next) => { res.send('POST ROUTE'); }); router.patch...
JavaScript
0
@@ -62,16 +62,19 @@ ire('../ +../ knex');%0A
bfd54d481a97b131a123c79da91736d73ec41ed7
Remove nonexisting import
packages/cp-frontend/src/router.js
packages/cp-frontend/src/router.js
import React from 'react'; import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom'; import styled from 'styled-components'; import { Header, Breadcrumb, Menu } from '@containers/navigation'; import { ServiceScale, ServiceDelete } from '@containers/service'; import Manifest from '@containers/manifest'...
JavaScript
0.000003
@@ -685,58 +685,8 @@ ';%0A%0A -import %7B%0A Tooltip%0A%7D from '@containers/tooltip';%0A%0A impo
a42e33ae2f202a0d560d1692e0848d932d299540
Fix wrong statusCode
application.js
application.js
'use strict'; const co = require('co'); const _ = require('lodash'); const http = require('http'); const compose = require('koa-compose'); const filter = require('filter-match').filter; const Router = require('./lib/router/router'); const resolver = require('resolve-keypath').resolver; const requireDir = require('requ...
JavaScript
0.999912
@@ -4464,20 +4464,26 @@ sCode = -code +err.status ;%0A re
090a79ad82d9f99c230f137bf2211ca5a40323d9
remove console.log
client/javascript/modules/components/counter.js
client/javascript/modules/components/counter.js
/** @jsx React.DOM */ 'use strict'; var React = require('react'); module.exports = React.createClass({ displayName: 'Counter', getInitialState: function () { return {count: this.props.initialCount}; }, handleClick: function () { console.log('current count: ' + this.state.count); ...
JavaScript
0.000006
@@ -257,67 +257,8 @@ ) %7B%0A - console.log('current count: ' + this.state.count);%0A
439cccad86e2782b63361d30113914097cc22515
add error handling.
convert.js
convert.js
var http = require('http'); var im = require('imagemagick'); var url = require('url'); var querystring = require('querystring'); http.createServer(function (req, res) { var postData = ''; var objectUrl = url.parse(req.url); var objectQuery = querystring.parse(objectUrl.query); var type = objectQuery['t...
JavaScript
0
@@ -158,13 +158,22 @@ (req +uest , res +ponse ) %7B%0A @@ -228,16 +228,20 @@ arse(req +uest .url);%0A @@ -334,16 +334,192 @@ ype'%5D;%0A%0A + if (request.method !== 'POST') %7B%0A response.writeHead(405, %7B'Content-Type': 'text/plain'%7D);%0A response.end('Only allowed POST method.');%0A ...
3254eeccf2e03282e1bf340ea8ef33e61b4972cf
Deal with mis-matched brackets
convert.js
convert.js
function convert() { var input = document.getElementById("input").value; var italic = document.getElementById("italic").checked; var output = stringify(tokenize(input), italic); document.getElementById("htmloutput").innerHTML = output; document.getElementById("phpbboutput").innerHTML = output.replac...
JavaScript
0.000001
@@ -2033,24 +2033,70 @@ %22CLOSE%7D%22) %7B%0A + if (bracket_close.length %3E 0)%0A @@ -2432,32 +2432,120 @@ ing = %5B%5D;%0A %7D%0A + while (bracket_close.length %3E 0)%0A string += close_tags(bracket_close.pop());%0A return strin
1b74e146d3bf794d33e65cbcce57b0e2028f684e
remove logo
project/app/vendor.js
project/app/vendor.js
'use strict'; // jquery require('jquery'); require('bootstrap'); require('availity-uikit'); require('select2'); require('velocity'); require('moment'); require('bootstrap-datepicker'); // utils require('lodash'); // angular require('angular'); require('angular-sanitize'); require('angular-ui-router'); // availity r...
JavaScript
0.000001
@@ -346,76 +346,8 @@ );%0A%0A -// images%0Arequire('availity-uikit/dist/images/logo-availity.png');%0A%0A // c
172006109662d1f4ff69b27ccc0a1ed47de6d9ae
fix ceylon/ceylon-js#486
runtime-js/flatten.js
runtime-js/flatten.js
function flatten(tf, $$$mptypes) { if (tf.$unflattened$)return tf.$unflattened$; if (tf.jsc$)tf=tf.jsc$; var mm=getrtmm$$(tf); function rf() { var argc = arguments.length; var last = argc>0 ? arguments[argc-1] : undefined; var tlast = last!=null && typeof(last)==='object'; if (tlast && typeof(la...
JavaScript
0.000007
@@ -799,18 +799,17 @@ s.length -== +%3C =t%5B0%5D.si
bfd2dfccc67716fa411f075727f113147e19b464
Add command line option --email to define the default user auth email
bin/codebox.js
bin/codebox.js
#!/usr/bin/env node var Q = require('q'); var _ = require('underscore'); var cli = require('commander'); var path = require('path') var open = require("open"); var Gittle = require('gittle'); var pkg = require('../package.json'); var codebox = require("../index.js"); // Codebox git repo: use to identify the user var...
JavaScript
0.000001
@@ -580,17 +580,113 @@ rowser') +;%0Acli.option('-e, --email %5Bemail address%5D', 'Email address to use as a default authentication'); %0A - %0A// Comm @@ -1407,16 +1407,85 @@ t.port)%0A + %7D,%0A 'users': %7B%0A 'defaultEmail': that.email%0A @@ -2113,24 +2113,24 @@ %7D)...
cb9ce1e791abac7fcb2eb784bf54affbb26a00ae
Fix closing of stdin.
npm_scripts/release.js
npm_scripts/release.js
// Execute this script in the target branch to release to npm! const exec = require('./exec'); const readline = require('readline'); const semver = require('semver'); const pkg = require('../package.json'); const branchName = exec('git rev-parse --abbrev-ref HEAD', true); const currentVersion = pkg.version; const stdi...
JavaScript
0.000002
@@ -2181,13 +2181,10 @@ );%0A%0A -%7D);%0A%0A + stdi @@ -2194,8 +2194,13 @@ lose();%0A +%0A%7D);%0A
95e02b98b47de2d43ef9aa50c34b61b4f09c140e
fix low contrast markup (#3899)
packages/components/src/components/notification/notification.config.js
packages/components/src/components/notification/notification.config.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. */ 'use strict'; const { prefix } = require('../../globals/js/settings'); /* eslint-disable max-len */ const items = [ { type: 'info', ...
JavaScript
0
@@ -1266,32 +1266,39 @@ %7B%0A name: ' +inline- low-contrast',%0A @@ -1884,16 +1884,22 @@ name: ' +toast- low-cont
fce9eb87fac77a66a76012bd9db40560085cbca0
remove some dead code
ui/cockpit/client/scripts/pages/dashboard.js
ui/cockpit/client/scripts/pages/dashboard.js
'use strict'; var fs = require('fs'); var template = fs.readFileSync(__dirname + '/dashboard.html', 'utf8'); var series = require('camunda-commons-ui/node_modules/camunda-bpm-sdk-js').utils.series; function prioritySort(a, b) { return a.priority > b.priority ? 1 : (a.priority < b.priority ? -1 : 0); } function res...
JavaScript
0.000082
@@ -931,527 +931,8 @@ %5D;%0A%0A - Views.getProviders(%7B%0A component: 'cockpit.dashboard.section'%0A %7D).forEach(function(plugin) %7B%0A (plugin.priority %3E= 0 ? $scope.mainPlugins : $scope.miscPlugins).push(plugin);%0A if (plugin.getSparklineData) %7B%0A if (typeof plugin.getSparklineD...
92ebc1a29e34da592682539a57701a03ffec8ba8
Fix typo
.clusternator/docker-build.js
.clusternator/docker-build.js
'use strict'; const CLUSTERNATOR_PREFIX = 'clusternator-'; const DOCKER_CMD = 'docker'; const CLUSTERNATOR_FILE = 'clusternator.json'; const AWS_FILE = CLUSTERNATOR_PREFIX + 'aws.json'; const CLUSTERNATOR_TOKEN = CLUSTERNATOR_PREFIX + 'project-credentials.json'; const API_VERSION = '2015-09-21'; const path = require('...
JavaScript
0.999999
@@ -3459,16 +3459,17 @@ apiVersi +o n = API_
d168b0f9aeba57ceb18c0908e7e00961e446bf68
fix an issue that might get twice language files
src/scripts/config/configuration.js
src/scripts/config/configuration.js
(function () { 'use strict'; angular.module('ariaNg').config(['$qProvider', '$translateProvider', 'localStorageServiceProvider', 'NotificationProvider', 'ariaNgConstants', 'ariaNgLanguages', function ($qProvider, $translateProvider, localStorageServiceProvider, NotificationProvider, ariaNgConstants, ariaNgLang...
JavaScript
0.000004
@@ -1372,50 +1372,8 @@ es)%0A - .determinePreferredLanguage()%0A
df3fafe81b2aea8cad284cee7078f768954eb98e
fix a bug a null that chrom.notifications is dealt with errorly
background/others.js
background/others.js
"use strict"; if (Settings.get("vimSync") === true) setTimeout(function() { Settings.Sync = { storage: chrome.storage.sync, doNotSync: ["settingsVersion", "previousVersion", "keyboard"], fetchAsync: function() { var _this = this; this.storage.get(null, function(items) { var key, value...
JavaScript
0
@@ -2109,40 +2109,8 @@ tion - && chrome.browserAction.setIcon ) se @@ -4165,35 +4165,12 @@ son -&& chrome.notifications && +%7C%7C ! chro @@ -4185,23 +4185,16 @@ ications -.create ) %7B retu
84cdb10449c8bb996f01627602e9b13ce08d930c
update / delete resolvers fixes
packages/oors-mongodb/src/libs/graphql/createResolvers.js
packages/oors-mongodb/src/libs/graphql/createResolvers.js
/* eslint-disable no-case-declarations */ import invariant from 'invariant'; import identity from 'lodash/identity'; import omit from 'lodash/omit'; import withSchema from 'oors-graphql/build/decorators/withSchema'; const createPaginationSchema = ({ maxPerPage, defaultPerPage } = {}) => ({ skip: { type: 'integer...
JavaScript
0
@@ -4798,16 +4798,41 @@ = args;%0A + let %7B item %7D = args;%0A cons @@ -4869,38 +4869,8 @@ tx); -%0A let %7B item %7D = args.item; %0A%0A @@ -5836,21 +5836,16 @@ %7D = args -.item ;%0A%0A i
d02efc0556df898c4e8d9742830c209c84c21041
change frag var name to adFragment...update comments
wordpress/webpack/entry_FRONTPAGE_ADS.js
wordpress/webpack/entry_FRONTPAGE_ADS.js
/* * entry_FRONTPAGE_ADS.js * * Module for loading styles and scripts related to front page ads only * */ define( ["jquery"], function( $ ) { // matchMedia() polyfill files var matchMediaArray = [ "/wp-content/themes/kaidez-swiss/js/libs/matchMedia.addListener.js", "/wp-content/themes/kaidez-...
JavaScript
0
@@ -1374,16 +1374,94 @@ %22%0A %7D;%0A%0A + /*%0A * buildAd(): Dynamically build and place ads on the front page.%0A */%0A functi @@ -1762,20 +1762,26 @@ -frag +adFragment = docum @@ -2058,16 +2058,17 @@ %7B%7D;%0A%0A + if( opts @@ -2088,24 +2088,26 @@ = %22img%22 ) %7B%0A + $( setIm...
7e81450b0e944baf1cbea19dcad789e6a96f4a84
add routes to the router
client/app/router.js
client/app/router.js
import Ember from 'ember'; import config from './config/environment'; var Router = Ember.Router.extend({ location: config.locationType }); Router.map(function() { }); export default Router;
JavaScript
0.000003
@@ -160,16 +160,85 @@ ion() %7B%0A + this.route('task');%0A this.route('user');%0A this.route('sign-in');%0A %7D);%0A%0Aexp
8d2b6bd39ec4a9feb5cb294138e5acb09dcb81da
add unittest, helper.string.replaceAll
dp_tornado/engine/static/js/dp.test.js
dp_tornado/engine/static/js/dp.test.js
if (!dp) var dp = {}; dp.test = { failed: false, init: function() { var wait = 10; dp_assert(function() { return _el('#input-test').length; }, 'test-el'); dp_assert(dp.helper.string.uniqid(), 'test-uniqid'); dp_assert(dp.helper.string.uniqid('prefix_'), 'te...
JavaScript
0.000002
@@ -528,24 +528,135 @@ parator');%0A%0A + dp_assert(dp.helper.string.replaceAll('abcd', 'a', '-') === '-bcd', 'text-helper-string-replaceAll');%0A%0A dp_a
e4d1f155407a6f7bd7c7c392d91420fb2cf48e07
Add wrapDateLine option to OL.
client/js/app.map.js
client/js/app.map.js
/** * View: MapView * * The map preview for a project. */ var MapView = Backbone.View.extend({ id: 'map-preview', initialize: function() { _.bindAll(this, 'render', 'activate', 'controlZoom', 'reload', 'fullscreen', 'minimize', 'maximize'); this.render(); this.model.bind(...
JavaScript
0
@@ -1942,16 +1942,48 @@ 'resize' +,%0A wrapDateLine: true %0A
922d5aaff7a6121fce99a4b948cef5453f9639a1
use Meteor.userLoaded()
client/lib/router.js
client/lib/router.js
SimpleRouter = FilteredRouter.extend({ initialize: function() { FilteredRouter.prototype.initialize.call(this); this.filter(this.require_login, {only: ['submit']}); this.filter(this.start_request); this.filter(this.require_profile); this.filter(this.requirePost, {only: ['post_page']}); }, star...
JavaScript
0
@@ -932,22 +932,27 @@ && -! +Meteor. user -.loading +Loaded() &&
822e69620906a2963fcfa086cc52ceea7780bc60
fix saving to app_configuration.json
modules/background/api/configHelper.js
modules/background/api/configHelper.js
import Promise from 'bluebird'; import path from 'path'; let fs = Promise.promisifyAll(require('fs')); const configHelper = () => { let config = 'config/app_configuration.min.JSON' let innerRepresentation; const getData = () => { if(!innerRepresentation || innerRepresentation.changed) { return fs.re...
JavaScript
0.000002
@@ -696,17 +696,16 @@ skId) =%3E - %0A get @@ -754,17 +754,16 @@ older =%3E - %0A f @@ -1027,19 +1027,16 @@ err;%7D); -%0A %0A%0A cons @@ -1209,17 +1209,16 @@ onfig =%3E - %0A c @@ -1584,33 +1584,576 @@ lder = (data +, folderName, folderPath ) =%3E + %7B %0A +if(folderName %7C%7C fold...
3362e68fe38b849930436612eb965772b8cb5fb5
Add missing license heading
gulpfile.babel.js
gulpfile.babel.js
"use strict"; import gulp from "gulp"; import exit from "gulp-exit"; import babel from "gulp-babel"; import sourcemaps from "gulp-sourcemaps"; import babelRegister from "babel-register"; // Import testing modules. import mocha from "gulp-mocha"; import istanbul from "gulp-istanbul"; const isparta = require('isparta')...
JavaScript
0.000001
@@ -1,8 +1,620 @@ +/*%0A * Copyright 2015 Google Inc. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0...
d03e40cc13d76156c2afd6a5e6f9d720e3652b59
Add jquery-migrate in admin.
core/app/assets/javascripts/admin/spree_core.js
core/app/assets/javascripts/admin/spree_core.js
//= require jquery-ui //= require modernizr //= require jquery.cookie //= require jquery.delayedobserver //= require jquery.jstree/jquery.jstree //= require jquery.alerts/jquery.alerts //= require jquery.powertip //= require jquery.vAlign //= require css_browser_selector_dev //= require spin //= require trunk8 //= requ...
JavaScript
0
@@ -1,24 +1,57 @@ +//= require jquery-migrate-1.0.0%0A //= require jquery-ui%0A//
e12c47b769255eca949780472e4a45c9553d72de
Fix nightwatch server URL routing
gulpfile.babel.js
gulpfile.babel.js
/*eslint one-var: 0 */ // Core deps // Use require() because of rollup const gulp = require('gulp'); const notify = require('gulp-notify'); const gulpif = require('gulp-if'); const size = require('gulp-size'); const plumber = require('gulp-plumber'); const lazypipe = require('lazypipe'); const filter = require('gulp-f...
JavaScript
0.000001
@@ -2609,140 +2609,14 @@ ext/ -simpla-text.html': './simpla-text.html',%0A '/components/simpla-text/simpla-text-editor.html': './simpla-text-editor.html +': './ ',%0A
c4712514da56f395838647f8e39ce417b5a5bdaf
Add registrationTypeOptions; cleanup
client/templates/registerWizard/steps/accommodations/accommodations.js
client/templates/registerWizard/steps/accommodations/accommodations.js
Template.wizardAccommodations.helpers({ "requiresAccommodations": function () { /* * Determine if registration type requires accommodations. * If accommodations are required, return true. */ // // Get current age value from form let registrationType = AutoForm.getFieldValue("registrationType")...
JavaScript
0
@@ -313,16 +313,17 @@ onType%22) +; %0A%0A // @@ -514,16 +514,360 @@ ;%0A %7D%0A + %7D,%0A 'registrationTypeOptions': function () %7B%0A // registration types used on the registration form%0A return %5B%0A %7Blabel: %22Commuter (sleeping elsewhere)%22, value: %22commuter%22%7D,%0A ...
9f662ace52d1883c19fd5eb894d26046de5cf29f
Fix formatting of tests
test/elegant-pair.js
test/elegant-pair.js
'use strict'; 'use strict'; const should = require('should'); describe('Elegant Pair Tests', function() { it('should load the Elegant Pair library', function(done) { try { const elegantPair = require('../index'); done(); } catch (err) { done(err); } }); it('should generate an elegant p...
JavaScript
0.001388
@@ -102,17 +102,18 @@ ion() %7B%0A -%09 + it('shou @@ -156,33 +156,34 @@ unction(done) %7B%0A -%09 + try %7B%0A co @@ -227,33 +227,34 @@ ;%0A done();%0A -%09 + %7D catch (err) @@ -247,33 +247,34 @@ %7D catch (err) %7B%0A -%09 + done(err);%0A%09 @@ -268,37 +268,40 @@ done(err);%0A -%...
e9d8648dbe3eceeb8effa058b4d6838010becf09
Fix tests for unhandled rejections on more recent Ember versions.
tests/unit/unhandled-rejection-test.js
tests/unit/unhandled-rejection-test.js
import { Promise as RSVPPromise } from 'rsvp'; import { module, test } from 'qunit'; const HAS_NATIVE_PROMISE = typeof Promise !== 'undefined'; const HAS_UNHANDLED_REJECTION_HANDLER = 'onunhandledrejection' in window; module('unhandle promise rejections', function(hooks) { hooks.beforeEach(function(assert) { le...
JavaScript
0
@@ -269,16 +269,39 @@ ooks) %7B%0A + let WINDOW_ONERROR;%0A%0A hooks. @@ -334,20 +334,534 @@ ) %7B%0A -let +// capturing this outside of module scope to ensure we grab%0A // the test frameworks own window.onerror to reset it%0A WINDOW_ONERROR = window.onerror;%0A%0A // this catches the native promis...
ff5a9c279ac117b120eadec94341e15136c01d95
use toLowerCase instead of toUpperCase
src/support/valid-custom-element.js
src/support/valid-custom-element.js
export default function (name) { const reservedNames = [ 'annotation-xml', 'color-profile', 'font-face', 'font-face-src', 'font-face-uri', 'font-face-format', 'font-face-name', 'missing-glyph' ]; return name.indexOf('-') > 0 && name.toUpperCase() === name && reservedNames.indexOf(...
JavaScript
0.000033
@@ -271,11 +271,11 @@ e.to -Upp +Low erCa
5121f780f0af43e6736338360e392dca3cff7f47
Add helper method
collect-web/collect-webapp/src/main/webapp/js/openforis/of-ui-forms.js
collect-web/collect-webapp/src/main/webapp/js/openforis/of-ui-forms.js
OF.UI.Forms = function() {}; /** * Populate a select using a list of items * Option value is set according to the specified valueKey and * option text content is set according to the specified labelKey * * @param $select * @param items * @param valueKey (optional, default value will be item.toString(...
JavaScript
0.000004
@@ -1193,16 +1193,337 @@ %0D%0A%7D;%0D%0A%0D%0A +OF.UI.Forms.selectOptionsInSelect = function($select, items, valueKey) %7B%0D%0A%09var options = $select.find(%22option%22);%0D%0A%09$.each(options, function(i, option) %7B%0D%0A%09%09var item = OF.Arrays.findItem(items, valueKey, option.value);%0D%0A%09%09var selected ...
737c97f2354d336d8ee447ef4e53315d9c4ac7b9
Update api.js
backend/api.js
backend/api.js
var mysql = require('mysql'), express = require('express'), app = express(), http = require('http'), multer = require('multer'), jwt = require('jsonwebtoken'), crypto = require('crypto'), bodyParser = require('body-parser'), cookieParser = require('cookie-parser'), myConnect...
JavaScript
0.000001
@@ -717,16 +717,20 @@ word : ' +root ',%0D%0A
6980a8383d1902e93829cc5e91a398b6dc8bc64b
Fix codepan preview errors.
website/uiw/src/components/Markdown/index.js
website/uiw/src/components/Markdown/index.js
import React, { useEffect, useState } from 'react'; import ReactDOM from 'react-dom'; import CodePreview from '@uiw/react-code-preview'; import MarkdownPreview from '@uiw/react-markdown-preview'; import Heading from './Heading'; import Footer from './Footer'; import styles from './index.module.less'; const components ...
JavaScript
0
@@ -2062,17 +2062,17 @@ ill@1.0. -0 +2 /index.j
dd27660d466883f52a256a75b7b6e79e2a55fb4b
add more logging
src/read-fs-albums.js
src/read-fs-albums.js
import { basename, dirname, extname } from 'path' import log from 'npmlog' import readTracks from './read-fs-tracks.js' import { Artist, Cover, Cuesheet, MultitrackAlbum as Multitrack, SingletrackAlbum as Singletrack, Track } from '@packard/model' function extractTypeFromTree (type, tree, visit) { for...
JavaScript
0
@@ -639,24 +639,66 @@ ss (tree) %7B%0A + log.silly('readAlbums', 'tree', tree)%0A extractT @@ -706,24 +706,24 @@ peFromTree(%0A - Cover, @@ -797,24 +797,70 @@ ), e)%0A )%0A + log.silly('readAlbums', 'covers', covers)%0A extractT @@ -958,21 +958,68 @@ h)), e)%0A - ) +%0A log.silly('...
98dd082bf30909328b3441d1c6f94a7da1dbd0ef
add item to front of list instead of end
src/reducers/items.js
src/reducers/items.js
import { append, slice } from 'ramda' // const initialState = { // expenseItems: [] // } export default (state = [], action) => { switch (action.type) { case 'ADD_ITEM': return append({ id: action.id, title: action.title, cost: action.cost }, state) case 'REMOVE_ITEM':...
JavaScript
0
@@ -2,18 +2,19 @@ mport %7B -a p +re pend, sl @@ -192,10 +192,11 @@ urn -a p +re pend
4c2960400d428e8029537849c57d681b6678601b
Update trait render view
src/trait_manager/view/TraitView.js
src/trait_manager/view/TraitView.js
var Backbone = require('backbone'); module.exports = Backbone.View.extend({ events:{ 'change': 'onChange' }, initialize(o) { var md = this.model; this.config = o.config || {}; this.pfx = this.config.stylePrefix || ''; this.ppfx = this.config.pStylePrefix || ''; this.target = md.target; ...
JavaScript
0
@@ -2087,16 +2087,22 @@ efault') + %7C%7C '' ;%0A @@ -2391,16 +2391,17 @@ %22$%7Btype%7D +%22 placeho @@ -2417,29 +2417,76 @@ lh%7D%22 - value=%22$%7Bvalue%7D%22%3E%60); +%3E%60);%0A%0A if (value) %7B%0A input.prop('value', value);%0A %7D %0A%0A
c6627ab57bebcdb1be74d761cf85283be43388ae
Fix to non-broken deploy version
src/renderGraphiQL.js
src/renderGraphiQL.js
/* @flow */ /** * Copyright (c) 2015, 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. */ t...
JavaScript
0.000027
@@ -463,9 +463,9 @@ 0.4. -8 +9 ';%0A%0A
34808b5bf767071f249cc9565890f86efcb7448d
Fix lint errors
src/report/compare.js
src/report/compare.js
/* @flow */ import { formatLeft, formatRight } from './format'; import type { BenchmarkSuiteResult } from '../runner'; import { tTest } from 'experiments.js'; import { mean } from 'simple-statistics'; const defaultSignificanceThreshold = 0.05; const defaultConfidenceLevel = 0.95; /** * Compare the results ...
JavaScript
0.000396
@@ -129,21 +129,20 @@ ort %7B%0A -tTest +mean %0A%7D from @@ -146,21 +146,24 @@ om ' -experiments.j +simple-statistic s';%0A @@ -165,36 +165,37 @@ cs';%0Aimport %7B%0A -mean +tTest %0A%7D from 'simple- @@ -187,32 +187,29 @@ %7D from ' -simple-statistic +experiments.j s';%0A%0Acon @@ -2051,20 +2051,16 @@ %...
7b38f72faf55c80916f90f8a0dd353b51e0e2c47
Copy delegates before listeners are fired, as listeners may unbind delegates before they are called
src/mixin.events.js
src/mixin.events.js
// mixin.listeners // .on(types, fn, [args...]) // Binds a function to be called on events in types. The // callback fn is called with this object as the first // argument, followed by arguments passed to .trigger(), // followed by arguments passed to .on(). // .on(object) // Registers object as a propagation target...
JavaScript
0
@@ -4545,24 +4545,139 @@ ners(this);%0A +%09%09%09// Copy delegates. We may be about to mutate the delegates list.%0A%09%09%09var delegates = getDelegates(this).slice();%0A %09%09%09var args @@ -5181,21 +5181,16 @@ %09%09%09if (! -this. delegate @@ -5190,16 +5190,23 @@ elegates +.length ) %7B retu @@ -5221,120 +...
2e4d6b3e0b8ca756d8caf77400d52b1ea5276808
fix bad syntax in rollbar call
config/bootstrap.js
config/bootstrap.js
/** * Bootstrap * (sails.config.bootstrap) * * An asynchronous bootstrap function that runs before your Sails app gets lifted. * This gives you an opportunity to set up your data model, run jobs, or perform some special logic. * * For more information on bootstrapping your app, check out: * http://sailsjs.org/#...
JavaScript
0.000114
@@ -2076,42 +2076,29 @@ -rollbar.handleErrorWithPayloadData +const err = new Error ('un @@ -2128,11 +2128,9 @@ ery' -, %7B +) %0A @@ -2138,17 +2138,47 @@ - custom: +rollbar.handleErrorWithPayloadData(err, %7B%0A @@ -2186,18 +2186,25 @@ - +custom: %7B sql: dat @@ -2213,20 +2213,8 @@ s...
b819bed4bc0745da0ce079ac990a1522693f6f48
add iframe base url
config/container.js
config/container.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
JavaScript
0.000001
@@ -2980,24 +2980,45 @@ BaseUri%22 : %22 +http://localhost:8080 /gadgets/ifr
ca5fb09fc6ac3d747faec00f75d5d584890f05e9
Change decode/encodeURI to URIComponent
src/scripts/script.js
src/scripts/script.js
/* * Copyright (C) 2016 Jones Magloire @Joxit * * 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 later version. * * This...
JavaScript
0.000002
@@ -3222,24 +3222,33 @@ ow.encodeURI +Component (url) : btoa @@ -3343,24 +3343,33 @@ ow.decodeURI +Component (url) : atob
4cbea0396bdaea04ab81fb44fd0b86cd3255acfb
support text_html
src/models/posts.js
src/models/posts.js
module.exports = function(mongoose) { var schema = new mongoose.Schema({ text:String, app:{type:mongoose.Schema.Types.ObjectId,ref:"apps"}, user:{type:mongoose.Schema.Types.ObjectId,ref:"users"} },{ timestamps:true }) schema.methods.toResponseObject = function(){ ...
JavaScript
0.000004
@@ -701,24 +701,614 @@ %0A %7D%0D%0A + obj.text_html = obj.text;%0D%0A obj.text_html = obj.text_html.split('&').join(%22&amp;%22)%0D%0A obj.text_html = obj.text_html.split(%22%3C%22).join(%22&lt;%22)%0D%0A obj.text_html = obj.text_html.split(%22%3E%22).join(%22&gt;%22)%0D%0A /...
7a97fef486dc09d07c1c32d051b45ad1cdf944e1
Handle server-side redirects.
src/server/reactor.js
src/server/reactor.js
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { StaticRouter, matchPath } from 'react-router-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { App } from '../app'; import Document from './document'; const scripts = [ '/b...
JavaScript
0
@@ -979,60 +979,8 @@ nt = - process.env.NODE_ENV === %22production%22%0A ? Rea @@ -1007,20 +1007,16 @@ String(%0A - @@ -1089,20 +1089,16 @@ - - %3CProvide @@ -1132,20 +1132,16 @@ - %3CApp rou @@ -1172,20 +1172,16 @@ - - %3C/Provid @@ -1180,28 +11...
6f333298e81fd60bdbe6d733ccf57aa43e17c60b
add new line
www/codemirror/codemirror-range-utilities.js
www/codemirror/codemirror-range-utilities.js
const ItemRange = require('./codemirror-range-objects').ItemRange const ItemLocation = require('./codemirror-range-objects').ItemLocation const getItemRangeFromSelection = (codeMirror) => { const fromCursor = codeMirror.getCursor('from') const toCursor = codeMirror.getCursor('to') const fromLocation = new ItemLo...
JavaScript
0.002414
@@ -1820,28 +1820,29 @@ etButtonNamesFromMarkupItems +%0A
bececab2c9138d3321227a175e75fdc302210d54
comment analyzeSensors.jsp"
ocean/analyzeSensor.js
ocean/analyzeSensor.js
function olapSensor(){ var usr = document.querySelector('input[name="subToAnal"]:checked').value; document.cookie = 'modsid="' + usr + '";'; writeOLAPcookies(); window.setTimeout('window.location="analyzeSensor.jsp"; ',50); } function updateOLAPcookies(){ document.cookie = 'olapYR="' + document.getElem...
JavaScript
0
@@ -1,12 +1,100 @@ %0A%0A%0A +//called from a button. This will grab detect which row is wanted and create the cookies %0A - function @@ -316,32 +316,74 @@ jsp%22; ',50);%0A%7D%0A%0A +//creates cookies from current olap depth%0A function updateO @@ -851,24 +851,50 @@ ; ',50);%0A%7D%0A%0A +//initialize olap cookie...
b2908d7aa0db7d9cb7b13980c38879b9eb8e102f
Remove unnecessary doubleClick enabling
src/modes/static.js
src/modes/static.js
module.exports = function(ctx) { return { stop: function() { ctx.map.doubleClickZoom.enable(); }, start: function() {}, render: function(geojson, push) { push(geojson); } }; };
JavaScript
0.000001
@@ -19,19 +19,16 @@ unction( -ctx ) %7B%0A re @@ -60,53 +60,8 @@ () %7B -%0A ctx.map.doubleClickZoom.enable();%0A %7D,%0A
3df54f3382c364ba01b471c42e3a52de2f9a84db
Use better method names
hypem-resolver.js
hypem-resolver.js
/** * Copyright 2015 Fabian Dietenberger * Available under MIT license */ function HypemResolver() { "use strict"; var request = require('request'), url = require('url'), _ = require('lodash'); /** Used for the requests */ var FIVE_SECONDS_IN_MILLIS = 5000, COOKIE = "AUTH=0...
JavaScript
0.986644
@@ -2071,18 +2071,22 @@ -ge +reques tHypemKe @@ -2279,18 +2279,22 @@ -ge +reques tMp3Url( @@ -2915,18 +2915,22 @@ unction -ge +reques tHypemKe @@ -4485,18 +4485,22 @@ unction -ge +reques tMp3Url(
924807c757cf510798f28b9543db1c31f19b5e22
fix 'CommentDecorationsController' test warnings
lib/controllers/editor-comment-decorations-controller.js
lib/controllers/editor-comment-decorations-controller.js
import React, {Fragment} from 'react'; import PropTypes from 'prop-types'; import {Range} from 'atom'; import {EndpointPropType} from '../prop-types'; import {addEvent} from '../reporter-proxy'; import Marker from '../atom/marker'; import Decoration from '../atom/decoration'; import ReviewsItem from '../items/reviews-...
JavaScript
0.000001
@@ -897,38 +897,104 @@ ntID: PropTypes. -string +oneOfType(%5B%0A PropTypes.string,%0A PropTypes.number,%0A %5D) .isRequired,%0A
e481ba046bdb08336263727d80831d758dc152ac
fix crash and preemptively fix possible second crash
src/Parser/Shaman/Elemental/Modules/Items/EchoesOfTheGreatSundering.js
src/Parser/Shaman/Elemental/Modules/Items/EchoesOfTheGreatSundering.js
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import ItemIcon from 'common/ItemIcon'; import ItemLink from 'common/ItemLink'; import { formatPercentage } from 'common...
JavaScript
0.000001
@@ -985,16 +985,21 @@ eCasts)) + %7C%7C 0 ;%0A %7D%0A @@ -2576,18 +2576,16 @@ s_damage -() %7D /%3E%0A
46ce3317c31a7e59077ca713c2bcc6cd4da65980
enable running the campaign in non-ES6 browsers
packages/router/karma-test-shim.js
packages/router/karma-test-shim.js
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /*global jasmine, __karma__, window*/ Error.stackTraceLimit = 5; jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000; __karma_...
JavaScript
0
@@ -2524,14 +2524,21 @@ rt, +function (v) -=%3E +%7B con @@ -2550,11 +2550,14 @@ error(v) +; %7D );%0A
8eb3fae93ea422a0104d73564b4a568f0f075848
Change localhost url
map_system/static/map_system/local/libraries/services.js
map_system/static/map_system/local/libraries/services.js
'use strict'; /** * Created by tmkasun on 1/14/17. */ var request = require('superagent'); // var utils = require('./utils'); /** * This is an abstract parent class for all types of map services, This initialize the axios connection with base URI for * knnect APIs */ class MapService { /** * Create sing...
JavaScript
0.999916
@@ -485,22 +485,22 @@ p:// -localhost:8000 +geo.knnect.com /api
0b71a058336c81a3946244ad07bcc63fd4abbcce
fix missing `pool` namespace
src/system/pooling.js
src/system/pooling.js
/** * @classdesc * This object is used for object pooling - a technique that might speed up your game if used properly.<br> * If some of your classes will be instantiated and removed a lot at a time, it is a * good idea to add the class to this object pool. A separate pool for that class * will be created, which w...
JavaScript
0.000025
@@ -7015,16 +7015,47 @@ %7D%0A%7D;%0A%0A +%0Avar pool = new ObjectPool();%0A%0A /**%0A * a @@ -7070,24 +7070,23 @@ global -o +O bject - p +P ool inst @@ -7098,55 +7098,30 @@ * @ -public%0A * @type %7BObjectP +namespace p ool -%7D %0A * -/%0Avar pool = new + @see Obj @@ -7127,20 +7127,20 @@ jectPool -();...
471b8ff4cf3dbbc22310d1d1409720e73cd94a57
initial value of height can be 0 (#9660)
packages/table/src/table-layout.js
packages/table/src/table-layout.js
import scrollbarWidth from 'element-ui/src/utils/scrollbar-width'; import Vue from 'vue'; class TableLayout { constructor(options) { this.observers = []; this.table = null; this.store = null; this.columns = null; this.fit = true; this.showHeader = true; this.height = null; this.scrol...
JavaScript
0.99992
@@ -1750,21 +1750,38 @@ (!el && +( value + %7C%7C value === 0) ) return
03798cebe4db42ac20ab486bef7452771c545aad
add text display
bin/jxc.bin.js
bin/jxc.bin.js
#!/usr/bin/env jx // Copyright & License details are available under JXCORE_LICENSE file var jxtools = require('jxtools'); var fs = require('fs'); var path = require('path'); if (jxtools.onlyForJXcore()) return; if (process.argv.length <= 2) { console.log("Too little arguments."); process.exit(); } var argv...
JavaScript
0.000004
@@ -614,16 +614,21 @@ tion(err +, txt ) %7B%0A if @@ -671,12 +671,58 @@ r(err);%0A + if (txt)%0A jxcore.utils.console.log(txt);%0A %7D);%0A
6c45700fd42be969bea3450c4d77493af0719817
add desc
Algorithms/JS/trees/findLeavesOfBinaryTree.js
Algorithms/JS/trees/findLeavesOfBinaryTree.js
findLeavesOfBinaryTree.js
JavaScript
0.000001
@@ -1,26 +1,796 @@ -findLeavesOfBinaryTree.js +// Given a binary tree, collect a tree's nodes as if you were doing this:%0A%0A// Collect and remove all leaves, repeat until the tree is empty.%0A%0A// Example:%0A// Given binary tree%0A// 1%0A// / %5C%0A// 2 3%0A// / %5C%0A// 4 ...
f2cc5cd30e4b5cdba7f929619ea9df197bd5edc3
Update widget.js
controllers/widget.js
controllers/widget.js
var moment = require("alloy/moment"), _initted = false, _toolbar, _data, _picker, _properties = {}; if (arguments[0]) { var args = arguments[0]; if (args.id) { exports.id = args.id; delete args.id; } delete args.__parentSymbol; delete args.__itemTemplate; d...
JavaScript
0.000002
@@ -3280,24 +3280,46 @@ 0%0A %7D));%0A%0A + if (OS_IOS) %7B%0A triggerU @@ -3323,24 +3323,30 @@ erUpdate();%0A + %7D%0A $.trigge @@ -4195,16 +4195,134 @@ %7D);%0A + if (OS_ANDROID) %7B%0A $.trigger('close', %7B%0A type: %22close%22,%0A source: $%0A %7...