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
7941195033156cc24ff63c9214aa42f6876ab8ad
Allow breakpoints in editor to always update (#6486)
src/components/Editor/Breakpoint.js
src/components/Editor/Breakpoint.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ // @flow import React, { Component } from "react"; import ReactDOM from "react-dom"; import classnames from "cl...
JavaScript
0
@@ -1967,473 +1967,8 @@ %7D;%0A%0A - shouldComponentUpdate(nextProps: any) %7B%0A const %7B editor, breakpoint, selectedSource %7D = this.props;%0A return (%0A editor !== nextProps.editor %7C%7C%0A breakpoint.disabled !== nextProps.breakpoint.disabled %7C%7C%0A breakpoint.hidden !== nextProps.bre...
39366457b046806d690f83b92e9200466ba17a22
Update decompressors.js
src/decompressors.js
src/decompressors.js
/* * Decompression of gzipped files using ukyo's jsziptools.js (jz) * Requires ukyo's jsziptools.js to be in global scope when decompressing gzipped files * https://github.com/ukyo/jsziptools * http://ukyo.github.io/jsziptools/jsziptools.js */ var gzip = (function () { return { decompress: function(arrayB...
JavaScript
0.000001
@@ -1,10 +1,8 @@ -%0A%0A /*%0A* Dec
b7d525b4b776662ba0a4d75b304534e421fa3336
Add /eval command
commands.js
commands.js
module.exports = { say: function(target, user) { this.send(target); } };
JavaScript
0.000004
@@ -12,16 +12,389 @@ rts = %7B%0A + eval: function(target, user) %7B%0A var name = user.name.toLowerCase();%0A if (name !== 'mom' && name !== 'darkpoo') return;%0A this.send('%7C%7C%3E%3E ' + target);%0A try %7B%0A this.send('%7C%7C%3C%3C ' + eval(target));%0A %7D catch (e) %7B%0A this.send('...
81d87a32526f858e7aaaaa7c70b7f61ee88a44d4
env.localPackage should be env.modulePackage
bin/gulp.js
bin/gulp.js
#!/usr/bin/env node 'use strict'; var gutil = require('gulp-util'); var prettyTime = require('pretty-hrtime'); var chalk = require('chalk'); var semver = require('semver'); var archy = require('archy'); var Liftoff = require('liftoff'); var taskTree = require('../lib/taskTree'); var cli = new Liftoff({ name: 'gulp'...
JavaScript
0.999998
@@ -960,21 +960,22 @@ if (env. -local +module Package)
9fba95fb65d86b955664f0df9e60cd836181f6cb
clean up linter warnings
src/components/KeyControlledList.js
src/components/KeyControlledList.js
import React from 'react' import { findDOMNode } from 'react-dom' import { find, indexOf, isEmpty, omit } from 'lodash/fp' import { getKeyCode, keyMap } from '../util/textInput' var { array, func, object, bool, number } = React.PropTypes export class KeyControlledList extends React.Component { static propTypes = { ...
JavaScript
0
@@ -1398,17 +1398,55 @@ Map.TAB: + // eslint-disable-line no-fallthrough %0A - @@ -1543,16 +1543,41 @@ xt case%0A + case keyMap.SPACE:%0A ca @@ -2205,30 +2205,8 @@ ren, - onChange, tabChooses, ... @@ -2593,16 +2593,43 @@ ...omit( +%5B'onChange', 'tabChooses', 'selecte @@ -2635,16 +2635,17...
1286b1137cbe6b6a555b5f495875ab29224886cc
increase size of FEN inputbox
demo/App.js
demo/App.js
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Chessdiagram from '../src/chessdiagram.js'; import './App.css'; const pieces=[ 'R@a1', 'N@b1', 'B@c1', 'Q@d1', 'K@e1', 'B@f1', 'N@g1', 'R@h1', 'P@a2', 'P@b2', 'P@c2', 'P@d2', 'P@e2', 'P@f2', 'P@g2', 'P@h2', 'p@a7', 'p@b7', 'p...
JavaScript
0
@@ -1734,9 +1734,9 @@ ze=%22 -6 +7 0%22 o
1668c7760bcf97a6222a8001221e46eb43941688
Use enhanced object literals
web/app/scripts/util.js
web/app/scripts/util.js
function parseQueryString() { if (!document.location.search) return; var querys = document.location.search.split('?')[1].split('&'); var params = {}; querys.forEach(function(q) { var qs, key, value; qs = q.split('='); key = qs[0]; value = qs[1]; if (params[key]) { if (!(params[key] ins...
JavaScript
0.000001
@@ -812,38 +812,11 @@ ring -: parseQueryString,%0A pprDate: +,%0A ppr
8cf25704e37ce0e712cece6feb9cb4f29f3410a8
Fix pageX/Y, start censorship on mousedown
censored.js
censored.js
;(function(global) { 'use strict'; function Censored(el) { this.md = false; this.eraser = false; var img = document.getElementById(el); var t = this; t.toggleEraser = function(val) { t.eraser = val; }; var canvas1 = document.createElement('canvas'); var ctx1 = canvas1.get...
JavaScript
0.000001
@@ -1835,34 +1835,379 @@ rRect(e. -pageX - 20, e.page +layerX - 20, e.layerY - 20, 40, 40);%0A %7D else %7B%0A ctx3.putImageData(ctx1.getImageData(e.layerX - 20, e.layerY - 20, 40, 40), e.layerX - 20, e.layerY - 20);%0A %7D%0A %7D%0A %7D);%0A%0A canvas3.addEventListener('mousedown', f...
4df6f5a05532bc43af7c42affc17172c183af225
refresh the lsit only once on startup
www/js/radioListPage.js
www/js/radioListPage.js
function refreshRadioListData() { $.mobile.loading( 'show',{text:'loading'} ); var jqxhr = $.getJSON('http://api.jamendo.com/v3.0/radios?client_id='+g_clientId+'&callback=?', null, null,'application/json') .done(function(result) { radioListPageLoaded=true; console.log(result); $.mobile.loadin...
JavaScript
0
@@ -834,106 +834,8 @@ %0A%7D%0A%0A -$( document ).delegate(%22#radioListPage%22, %22pageinit%22, function() %7B%0A refreshRadioListData();%0A%7D);%0A%0A $( d
c295e68475696be818b2c9877e5a85853805b326
Update stream.js
examples/stream.js
examples/stream.js
'use strict'; var d3 = require('d3'); // Require the library and give it a reference to d3 var Prerender = require('d3-pre'); var prerender = Prerender(d3); // Then, when you start drawing svg call `prerender.start()` // this modifies some d3 functions to allow it to be // aware of SVGs that already exist on the pag...
JavaScript
0.000002
@@ -1306,16 +1306,152 @@ ight);%0A%0A +// This if-statement is only necessary because the %0A// initial data is random. We don't want to %0A// render new random data on pageload.%0A if (prer
62bc1ec26ad607e42a2495257b3e0156830b42dd
Refresh data for the user settings page when it is being accessed
app/templates/src/main/webapp/scripts/app/account/settings/_settings.controller.js
app/templates/src/main/webapp/scripts/app/account/settings/_settings.controller.js
'use strict'; angular.module('<%=angularAppName%>') .controller('SettingsController', function ($scope, Principal, Auth) { $scope.success = null; $scope.error = null; Principal.identity().then(function(account) { $scope.settingsAccount = account; }); $scope.save...
JavaScript
0
@@ -200,32 +200,36 @@ ncipal.identity( +true ).then(function(
e6829291803525dffd847b3df860467ea6e9c8eb
Fix docu in page
library/CM/Page/Abstract.js
library/CM/Page/Abstract.js
/** * @class CM_Page_Abstract * @extends CM_Component_Abstract */ var CM_Page_Abstract = CM_Component_Abstract.extend({ /** @type String */ _class: 'CM_Page_Abstract', /** @type String[] */ _stateParams: null, /** @type String|Null */ _fragment: null, _ready: function() { if (this.hasStateParam...
JavaScript
0
@@ -190,16 +190,21 @@ String%5B%5D +%7CNull */%0A _s
70c690894f9a27ba772961860e775dd9a2935c90
Fix #5632 - Reset column loading status after fetch fail (#5659)
app/javascript/mastodon/reducers/notifications.js
app/javascript/mastodon/reducers/notifications.js
import { NOTIFICATIONS_UPDATE, NOTIFICATIONS_REFRESH_SUCCESS, NOTIFICATIONS_EXPAND_SUCCESS, NOTIFICATIONS_REFRESH_REQUEST, NOTIFICATIONS_EXPAND_REQUEST, NOTIFICATIONS_REFRESH_FAIL, NOTIFICATIONS_EXPAND_FAIL, NOTIFICATIONS_CLEAR, NOTIFICATIONS_SCROLL_TOP, } from '../actions/notifications'; import { A...
JavaScript
0
@@ -2590,32 +2590,73 @@ EXPAND_REQUEST:%0A + return state.set('isLoading', true);%0A case NOTIFICAT @@ -2734,35 +2734,36 @@ et('isLoading', -tru +fals e);%0A case NOTIF
c8983f6ddb879c7986995ea4c8b4a7218a3a3ee2
converted to es6 arrow function
src/components/markdown-render/a.js
src/components/markdown-render/a.js
import React from 'react'; function A(props) { return ( <a className="sprk-b-Link" {...props}/> ); } export default A;
JavaScript
0.999745
@@ -25,36 +25,26 @@ ';%0A%0A -function A(props) %7B%0A return +const A = props =%3E (%0A @@ -94,10 +94,8 @@ ); -%0A%7D %0A%0Aex
9b23c1efd8322515a9628203449bb50a8e41fe73
replace var
src/client/src/services/executionService.js
src/client/src/services/executionService.js
import Rx from 'rx'; import { OpenFin } from '../system/openFin'; import { ExecuteTradeRequest, ExecuteTradeResponse } from './model'; import { TradeMapper } from './mappers'; import { logger, SchedulerService } from '../system'; import { Connection, ServiceBase } from '../system/service'; import { ReferenceDataService...
JavaScript
0.001948
@@ -1652,11 +1652,13 @@ -var +const tra
bb481639006540428b2805db5bf632c05e2a9627
simplify error handling on app boot
back/app.js
back/app.js
/** * aspen * Node.js web application boilerplate. * * @author Theodore Keloglou * @file Main application boot file. */ const express = require('express'); const logger = require('morgan'); const path = require('path'); const favicon = require('serve-favicon'); const cookieParser = require('cookie-parser'); cons...
JavaScript
0.000004
@@ -258,24 +258,58 @@ -favicon');%0A +const config = require('config');%0A const cookie @@ -608,98 +608,8 @@ s'); -%0Aconst helpers = require('./util/helpers');%0Aconst listeners = require('./util/listeners'); %0A%0Aco @@ -1388,18 +1388,16 @@ sword',%0A - // ses @@ -2842,20 +2842,18 @@ );%0A%7D);%0A%0A -cons...
3a60cb9a06e5d0489d222c35388f15bbd71a0793
Remove unused component
app/routes/events/components/EventDetail/index.js
app/routes/events/components/EventDetail/index.js
// @flow import styles from './EventDetail.css'; import React, { Component } from 'react'; import { Image } from 'app/components/Image'; import CommentView from 'app/components/Comments/CommentView'; import Button from 'app/components/Button'; import Icon from 'app/components/Icon'; import JoinEventForm from '../JoinE...
JavaScript
0.000003
@@ -198,52 +198,8 @@ w';%0A -import Button from 'app/components/Button';%0A impo
e53ba74471cef0364e6076679364b3f4b1ee7dc2
update trackjs
src/botPage/view/logger.js
src/botPage/view/logger.js
import { observer as globalObserver } from '../../common/utils/observer'; import { getToken } from '../../common/utils/storageManager'; import { isProduction } from '../../common/utils/tools'; const log = (type, ...args) => { if (type === 'warn') { console.warn(...args); // eslint-disable-line no-console ...
JavaScript
0.000001
@@ -1935,36 +1935,54 @@ %0A if (trackJs + && isProduction() ) %7B%0A - trackJs. @@ -2005,42 +2005,8 @@ r);%0A - if (isProduction()) %7B%0A @@ -2044,29 +2044,60 @@ .name);%0A - %7D +%7D else %7B%0A console.log(error); %0A %7D%0A%7D;%0A%0Ac
85d9235a13cbe536d227b4e3a802a1a9fb1d2ff7
Increment an elsewhere receiver's "people ready to give"
js/gittip/tips.js
js/gittip/tips.js
Gittip.tips = {}; Gittip.tips.init = function() { // Check the tip value on change, or 0.7 seconds after the user stops typing. // If the user presses enter, the browser should natively submit the form. // If the user presses cancel, we reset the form to its previous state. var timer; $('input.my-...
JavaScript
0
@@ -3357,24 +3357,276 @@ eceiving);%0A%0A + // Increment an elsewhere receiver's %22people ready to give%22%0A if(!oldAmount)%0A $('.on-elsewhere .ready .number').text(%0A parseInt($('.on-elsewhere .ready .number').text(),10) + 1);%0A%0A ...
50ae4fe91a297340e5c4943a071c6c939a365a24
Update app.js
script/app.js
script/app.js
(function($){ $.particleText = function(el, options){ // To avoid scope issues, use 'base' instead of 'this' // to reference this class from internal events and functions. var base = this; // Access to jQuery and DOM versions of element base.$el = $(el); bas...
JavaScript
0.000002
@@ -2876,18 +2876,16 @@ -// colo @@ -2886,21 +2886,38 @@ color: +base.$el.data(' color +') ,%0A @@ -4738,8 +4738,9 @@ ();%0A%0A%7D); +%0A
9d39794154ce4247b9ebec392986b4429f27cbb8
Improve error statement for modules that could not be found during compilation
compiler.js
compiler.js
var fs = require('fs'), path = require('path'), child_process = require('child_process'), util = require('./lib/util') module.exports = { compile: compileFile, compileCode: compileCode, addPath: util.addPath } /* compilation *************/ function compileFile(filePath, level, basePath, callback) { if (!callb...
JavaScript
0
@@ -4093,16 +4093,147 @@ dules)%0A%0A +%09%09if (!subModulePath) %7B%0A%09%09%09throw new Error('require compiler: could not resolve %22'+ subModulePath +'%22 in %22'+ modulePath +'%22')%0A%09%09%7D%0A%0A %09%09code = @@ -5711,85 +5711,8 @@ %0A%09%7D%0A -%09throw new Error('require compiler: could not resolve %22' +...
a17a78c337cb5d47eea80feabbca987153368b45
Change block size
libs/services/cloudflare.js
libs/services/cloudflare.js
(function(module) { var _ = require("underscore"), CloudflareApi = require('./cloudflare/api'), Log = require('../models/log'), Repeater = require('../utils/repeater'); function Cloudflare(config) { this.api = new CloudflareApi(config.zoneId, config.authEmail, config.authKey); this.loadS...
JavaScript
0.000001
@@ -319,17 +319,17 @@ dSize = -2 +1 000;%0A%0A @@ -448,16 +448,17 @@ this, 1 +0 );%0A t
9b65e4d29f430f353a2db688b998348903366e15
fix height calculation for box-sizing:border-box with a border
src/calculateNodeHeight.js
src/calculateNodeHeight.js
/** * calculateNodeHeight(uiTextNode, useCache = false) */ const HIDDEN_TEXTAREA_STYLE = ` height:0; visibility:hidden; overflow:hidden; position:absolute; z-index:-1000; top:0; right:0 `; const SIZING_STYLE = [ 'letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family',...
JavaScript
0
@@ -869,35 +869,32 @@ gStyle, -sumVerticalPaddings +heightAdjustment %7D = calc @@ -1282,37 +1282,34 @@ lHeight -- sumVerticalPaddings ++ heightAdjustment ;%0A let @@ -1550,29 +1550,26 @@ ght -- sumVerticalPaddings ++ heightAdjustment ;%0A @@ -2192,193 +2192,291 @@ %0A%0A -let sumPaddings = 0;%0A%0A //...
f56efd64719cf780163c914f1e690704e6ae0482
Fix exceptions in ProxyContext when drawing bitmaps.
src/canvas/ProxyContext.js
src/canvas/ProxyContext.js
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ /** *...
JavaScript
0
@@ -2200,16 +2200,133 @@ %09%09%7D%0A%09%7D;%0A +%0A%09function stringify(value) %7B%0A%09%09try %7B%0A%09%09%09return JSON.stringify(value);%0A%09%09%7D catch (e) %7B%0A%09%09%09return value + '';%0A%09%09%7D%0A%09%7D%0A%0A %09Base.ea @@ -2686,21 +2686,16 @@ %09%09%09.map( -JSON. stringif @@ -3012,16 +3012,16 @@ ...
3a79bea2d1134369251e4b7876a39c18b552bc38
Add support for resolving module aliases to stripes config plugin
webpack/stripes-config-plugin.js
webpack/stripes-config-plugin.js
// This webpack plugin generates a virtual module containing the stripes configuration // To access this configuration simply import 'stripes-config' within your JavaScript: // import { okapi, config, modules } from 'stripes-config'; const path = require('path'); const assert = require('assert'); const _ = require('...
JavaScript
0
@@ -567,27 +567,156 @@ duleName -) %7B%0A const +, alias) %7B%0A let aPath;%0A if (alias%5BmoduleName%5D) %7B%0A aPath = require.resolve(path.join(alias%5BmoduleName%5D, 'package.json'));%0A %7D else %7B%0A aPath = @@ -798,16 +798,21 @@ son'));%0A + %7D%0A%0A const @@ -1454,16 +1454,23 @@ context +...
caa04034ccb9e04b56605e6988d945880b5e172f
Add more stability around ffmpeg starting. prevent twice
src/encoder/index.js
src/encoder/index.js
const ffmpeg = require('fluent-ffmpeg') const bunyan = require('bunyan') const path = require('path') const buildUrl = require('build-url') const mkdirp = require('mkdirp') const _ = require('lodash') ;(function () { let localConfig = {} let deviceState = {} let ffmpegProcess let logger let ignoreNextError =...
JavaScript
0.000025
@@ -319,16 +319,45 @@ = false +%0A let ffmpegStarting = false %0A%0A proc @@ -431,32 +431,61 @@ extError = true%0A + ffmpegStarting = false%0A ffmpegProc @@ -1152,24 +1152,50 @@ ror = false%0A + ffmpegStarting = true%0A ffmpegPr @@ -1725,32 +1725,83 @@ , function () %7B%0A + ...
8a2e339cb5d5d96d22c58dd2b8a2ca7ee9457567
fix browserify watch log
src/tasks/js.js
src/tasks/js.js
'use strict'; function jsTask(gulp) { var source = require('vinyl-source-stream'); var watchify = require('watchify'); var browserify = require('browserify'); var gutil = require('gulp-util'); var uglify = require('gulp-uglify'); var streamify = require('gulp-streamify'); var rev = require('gulp-rev'); ...
JavaScript
0.000001
@@ -1551,18 +1551,20 @@ e', -event.path +changedFiles , 'c
278c88f9cd58f1fda6e96164900a23baa61af63f
Remove this useless assignment to local variable
generators/client/templates/src/main/webapp/app/components/util/_base64.service.js
generators/client/templates/src/main/webapp/app/components/util/_base64.service.js
(function() { /*jshint bitwise: false*/ 'use strict'; angular .module('<%=angularAppName%>') .factory('Base64', Base64); function Base64 () { var keyStr = 'ABCDEFGHIJKLMNOP' + 'QRSTUVWXYZabcdef' + 'ghijklmnopqrstuv' + 'wxyz0123456789+/' + ...
JavaScript
0.000001
@@ -533,37 +533,32 @@ chr1, chr2, chr3 - = '' ,%0A @@ -573,37 +573,32 @@ enc2, enc3, enc4 - = '' ,%0A @@ -1337,97 +1337,8 @@ 4);%0A - chr1 = chr2 = chr3 = '';%0A enc1 = enc2 = enc3 = enc4 = '';%0A @@ -1481,21 +1481,16 @@ r2, chr3 - = '' ,%0A @...
6ce99ce4acbed8c57b672706c4b26dfc063bb04b
Allow a block to be specified for loading
extensionloader.js
extensionloader.js
/* Load a block from github.io. Accepts a url as a parameter which can include url parameters e.g. https://megjlow.github.io/extension2.js?name=SUN&ip=10.0.0.1 */ new (function() { var ext = this; var descriptor = { blocks: [ [' ', 'Load extension block %s', 'loadBlock', 'url', 'url'], ], ur...
JavaScript
0.000001
@@ -194,16 +194,537 @@ this;%0A%09%0A +%09var getUrlParameter = function getUrlParameter(sParam) %7B%0A%09 var sPageURL = decodeURIComponent(document.currentScript.src.split(%22?%22)%5B1%5D),%0A%09 sURLVariables = sPageURL.split('&'),%0A%09 sParameterName,%0A%09 i;%0A%09%0A%09 for (i = 0; i ...
8a08717f71f466090e91894400a2e9beaf9e0404
make install command resolve a boolean value
lib/commands/install.js
lib/commands/install.js
'use strict' var path = require('path') var fs = require('fs') var Promise = require('bluebird') var childProcess = require('child_process') var platform = require('os').platform() var description = 'WINDOWS ONLY - install app as windows service, For other platforms see http://jsreport.net/on-prem/downloads' var comm...
JavaScript
0.000038
@@ -1282,24 +1282,29 @@ urn resolve( +false )%0A %7D%0A%0A @@ -3001,16 +3001,20 @@ resolve( +true )%0A
997ef4147d96618cd4f1c57289e98004b7b7eb7d
Stop relying on `ts-node` from the global scope
extra/_buildAll.js
extra/_buildAll.js
const childProcess = require("child_process"); const fs = require("fs"); if (process.argv.length !== 3) { throw new Error("Requires the base path as argument."); } const basePath = process.argv[2]; if (!basePath.match(/[\\\/]$/)) { throw new Error("Path must end with a slash - any slash will do."); } else if ...
JavaScript
0
@@ -1258,16 +1258,20 @@ ecSync(%60 +npx ts-node
a49c5eaebc86184d861a17f1aca7cb28b6b6d799
remove existing files
extract-locales.js
extract-locales.js
/** * Copyright (c) ppy Pty Ltd <contact@ppy.sh>. * * This file is part of osu!web. osu!web is distributed with the hope of * attracting more community contributions to the core ecosystem of osu!. * * osu!web is free software: you can redistribute it and/or modify * it under the terms of the Affer...
JavaScript
0.000003
@@ -863,24 +863,54 @@ uire('fs');%0A +const glob = require('glob');%0A const path = @@ -2185,16 +2185,148 @@ %0A %7D%0A%7D%0A%0A +// Remove previous existing files and ensure directory exists.%0Aglob.sync(path.resolve(localesPath, '*.js')).forEach(fs.unlinkSync);%0A mkdirp.s @@ -2343,16 +2343,17 @@ sPath);%0A +%0...
b0140c63641193e218f7aa398f66ce77fb398b88
Add rating tooltip
src/chrome/RatingButton.js
src/chrome/RatingButton.js
/** * Copyright 2018-present Facebook. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @format */ import {Component, type Element} from 'react'; import {Glyph} from 'flipper'; import {getInstance as getLogger} from '../fb-stubs/Logger';...
JavaScript
0.000001
@@ -206,16 +206,26 @@ Element +, Fragment %7D from ' @@ -245,16 +245,25 @@ t %7BGlyph +, Tooltip %7D from ' @@ -1867,20 +1867,204 @@ -return stars +const button = %3CFragment%3E%7Bstars%7D%3C/Fragment%3E;%0A return (%0A %3CTooltip%0A options=%7B%7Bposition: 'toLeft'%7D%7D%0A title=%22Ho...
f5191515265021eff799e62f03a010d34cf93b42
Add localized urls test to ReportSelector.test.js
src/tests/Main/ReportSelector.test.js
src/tests/Main/ReportSelector.test.js
import ReportSelecter from 'Main/ReportSelecter'; describe('ReportSelector', () => { test('getCode accepts report code', () => { expect(ReportSelecter.getCode('AB1CDEf2G3HIjk4L')).toBe('AB1CDEf2G3HIjk4L'); }); test('getCode accepts base url', () => { expect(ReportSelecter.getCode('https://www.warcraftlog...
JavaScript
0.000001
@@ -95,32 +95,41 @@ getCode accepts +just the report code', () @@ -126,32 +126,32 @@ code', () =%3E %7B%0A - expect(Repor @@ -250,16 +250,23 @@ ts base +report url', () @@ -1389,32 +1389,330 @@ HIjk4L');%0A %7D);%0A + test('getCode accepts localized urls', () =%3E %7B%0A expect(ReportSelecter.getCo...
8e228a60a648b43b84fb9ec017a8cda790234ad3
Add in naked domain
iptorrents-combine-upload-totals.user.js
iptorrents-combine-upload-totals.user.js
// ==UserScript== // @name IPTorrents - Combine Upload Totals // @namespace http://github.com/taeram/user-scripts // @description Combine "Uploaded" totals on the Peers page // @match https://www.iptorrents.com/peers?*;o=4 // @grant none // @copyright Jesse Patching // @ve...
JavaScript
0.000001
@@ -247,16 +247,71 @@ s?*;o=4%0A +// @match https://iptorrents.com/peers?*;o=4%0A // @gran @@ -388,11 +388,11 @@ 1. -2.2 +3.0 %0A//
bcdc249356ab8c5d24fd5741bbf94ba38dcee6d0
Add help text for most common Unicamp email typos
lib/config/at_config.js
lib/config/at_config.js
AccountsTemplates.configure({ // Behaviour confirmPassword: true, enablePasswordChange: true, enforceEmailVerification: true, forbidClientAccountCreation: false, overrideLoginErrors: false, sendVerificationEmail: true, // Appearance showAddRemoveServices: false, showForgotPasswordLink: true, show...
JavaScript
0.000083
@@ -1558,24 +1558,64 @@ on (user) %7B%0A + var email = user.emails%5B0%5D.address;%0A var re = @@ -1708,47 +1708,784 @@ xec( -user.emails%5B0%5D.address);%0A if (OK) %7B%0A +email);%0A if (OK) %7B%0A if (%0A // Check if user attempted to use Unicamp's DAC/Alumni email but got%0A // it...
730f3f64d40d07fdd6bb69265b453f286058872a
fix label
js/orientation.js
js/orientation.js
//Manage the orientation jviz.modules.karyoviewer.prototype.orientation = function(value) { //Check the orientation value if(typeof value !== 'string'){ return this._orientation.actual; } //convert to lower case value = value.toLowerCase(); //Save the orientation this._orientation.actual = (this._orientat...
JavaScript
0.000037
@@ -499,36 +499,29 @@ //Set the -feature name +label tooltip pos @@ -532,37 +532,29 @@ n%0A this._ -features.name +label .tooltip.pos @@ -542,32 +542,35 @@ ._label.tooltip. +el. position('bottom @@ -606,20 +606,13 @@ the -feature name +label too @@ -639,21 +639,13 @@ is._ -features.name +label .too @...
82da4b8e1ea708ea2fe48e598138c5e46ff2abb9
Resolve non-conditionals as-is
core/acs.js
core/acs.js
/* jslint node: true */ 'use strict'; // ENiGMA½ const checkAcs = require('./acs_parser.js').parse; const Log = require('./logger.js').log; // deps const assert = require('assert'); const _ = require('lodash'); class ACS { constructor(client) { this.client = client; } check(acs, scope, defaultAcs) { acs =...
JavaScript
0.000456
@@ -1169,24 +1169,25 @@ me) %7B%0A%09%09 -assert(_ +if(!Array .isArray @@ -1198,17 +1198,84 @@ dArray)) -; + %7B%0A%09%09%09//%09no cond array, just use the value%0A%09%09%09return condArray;%0A%09%09%7D%0A %0A%09%09asser
bbe7815af3f5618bf3c88191ddc4fddf1800c9c0
Fix wrong syntax
message_generator.js
message_generator.js
'use strict' const splitter = '==================\n' const smileyFace = '≧◡≦' const usd_thb = 32 module.exports = { usdToTHB (amountInUSD) { return (parseFloat(amountInUSD) * usd_thb).toFixed(2) }, sunnDokkMessage (bx, cmk, bfn) { let omg = bx.omg let btc = bx.btc let eth = bx.eth let ltc =...
JavaScript
0.999999
@@ -1120,9 +1120,9 @@ %0A %7D -%E0%B8%A1 +, %0A%0A
dc54ce9b104c78d96334edbf47e723f7c0d1a0b4
Fix linter error.
src/client/app/app.core.js
src/client/app/app.core.js
"use strict"; (function () { angular .module("conpa") .config(config); config.$inject = ["$httpProvider", "$locationProvider", "$mdThemingProvider", "localStorageServiceProvider"]; /*eslint-disable max-len */ function config($httpProvider, $locationProvide...
JavaScript
0
@@ -154,28 +154,16 @@ ider%22,%0D%0A -
26fe9e9d8a85c835f39f00b0403572fa5285f863
Update app.js
server/app.js
server/app.js
'use strict'; /** * app.js * IBX Approval Backend * * Created by Thomas Beckmann on 02.03.2015 * Copyright (c) * 2015 * M-Way Solutions GmbH. All rights reserved. * http://www.mwaysolutions.com * Redistribution and use in source and binary forms, with or without * modification, are not permitted. * THIS SOF...
JavaScript
0.000002
@@ -27,29 +27,8 @@ s%0A * - IBX Approval Backend %0A *%0A
fb7546e9c85f9fa0d4180ca033df89ed0a567972
Update CORS middleware to use arrow functions
server/app.js
server/app.js
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const lodash = require('lodash'); const moment = require('moment'); const TimeEntry = require('./models/TimeEntry'); // Use body parsing app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); ...
JavaScript
0
@@ -312,16 +312,69 @@ json()); +%0A%0A// Use the static build folder for front-end assets %0Aapp.use @@ -427,16 +427,8 @@ use( -function (req @@ -439,16 +439,19 @@ s, next) + =%3E %7B%0A res
9e4f1de081be847f9c274da90df809c24810b1ff
add clip_update
server/app.js
server/app.js
const app = require('express')() const http = require('http').Server(app) const io = require('socket.io').listen(http) const nedb_module = require ("../nedb_module") const async = require('async') const bodyParser = require('body-parser') let nedb = new nedb_module() let readid let writeid //set portnumber const PORT...
JavaScript
0.000001
@@ -4378,11 +4378,126 @@ )%0A %7D)%0A%0A + socket.on('update_cliptag',(rec) =%3E %7B%0A nedb.update_cliptags_id(rec.clip_tags,rec.cid,(clip) =%3E %7B%0A %7D)%0A %7D)%0A%0A %7D)%0A
11dc9b6329fc51e1c3f7a4a9c5d4c4f0aeddb04b
Change readBytesEndOffset to nBytesToRead so that we don't depend on offset aways increasing.
js/encoding/BinaryXMLStructureDecoder.js
js/encoding/BinaryXMLStructureDecoder.js
/* * This class uses BinaryXMLDecoder to follow the structure of a ccnb binary element to * determine its end. * * @author: Jeff Thompson * See COPYING for copyright and distribution information. */ var BinaryXMLStructureDecoder = function BinaryXMLDecoder() { this.gotElementEnd = false; this.offset = 0; ...
JavaScript
0
@@ -439,34 +439,28 @@ this. -read +n Bytes -EndOffset +ToRead = 0;%0A%7D; @@ -3747,42 +3747,22 @@ his. -read +n Bytes -EndOffset = this.offset + +ToRead = typ @@ -4061,42 +4061,22 @@ his. -read +n Bytes -EndOffset = this.offset + +ToRead = typ @@ -4399,28 +4399,46 @@ -if ( +var nRemainingBy...
b103bcc38fe54445d27164d5d51714f2b61c92e6
Fix deprecated warning
server/app.js
server/app.js
var SLACK_BOT_NAME = process.env.SLACK_BOT_NAME || 'Tesla Model S'; var env = process.env.NODE_ENV || 'dev'; if (env === 'production') { require('newrelic'); } var express = require('express'), tesla = require('./tesla'), Bacon = require('baconjs').Bacon; var app = express(); app.use(require('body-parser...
JavaScript
0.000005
@@ -261,16 +261,57 @@ ').Bacon +,%0A bodyParser = require('body-parser') ;%0A%0Avar a @@ -334,38 +334,31 @@ app.use( -require(' body --p +P arser -') +.json ());%0Aapp
f491eeace76cb037a9c295dcca2c7f0c84dca4fb
remove focus. update prop types
src/widgets/JSONForm/widgets/Radio.js
src/widgets/JSONForm/widgets/Radio.js
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import { StyleSheet, View } from 'react-native'; import PropTypes from 'prop-types'; import { RadioButton, RadioButtonInput, RadioButtonLabel } from 'react-native-simple-radio-button'; import { APP_FONT_FAMILY } from '../../../globalStyles/fonts';...
JavaScript
0.00004
@@ -385,65 +385,8 @@ rs'; -%0Aimport %7B useJSONFormOptions %7D from '../JSONFormContext'; %0A%0Aex @@ -513,110 +513,8 @@ ns;%0A - const %7B focusController %7D = useJSONFormOptions();%0A const ref = focusController.useRegisteredRef();%0A co @@ -913,26 +913,16 @@ n.value%7D - ref=%7Bref%7D %3E%0A @@ -17...
b91c1bd25280d474247d53b2559aed76949c381d
Make server example clearer
example/server.js
example/server.js
var http = require('http') , pushup = require('../index.js') , getProps = require('../lib/getProps.js') , commit http.createServer(function (req, res) { var p = pushup(getProps(), function (err, c) { var code = isNotModified(c) ? 304 : 204 commit = c res.writeHead(code) res.end() }) p.on...
JavaScript
0.000145
@@ -105,17 +105,21 @@ s')%0A , -c +lastC ommit%0A%0Ah @@ -202,16 +202,21 @@ (err, c +ommit ) %7B%0A @@ -241,16 +241,21 @@ dified(c +ommit ) ? 304 @@ -264,14 +264,42 @@ 204%0A -%0A c + if (err) code = 500%0A%0A lastC ommi @@ -303,16 +303,21 @@ mmit = c +ommit %0A%0A re @@ -382,16 +382,21 @@...
8e700082d389e0233debdad57ab478a876fa5478
Update timeFilters.js
js/timeFilters.js
js/timeFilters.js
var url = '../data/ams_vondelpark_5-01-2017.geojson'; map.on('load', function() { var filterHour = ['==', 'Hour', 12]; var filterDay = ['!=', 'Day', 'Bob']; var filterPollutant = ['==', 'Pollutant', 'NO2']; map.getSource('pollutants').setData(url); map.addSource('pollutants', { ...
JavaScript
0
@@ -359,19 +359,58 @@ data: -url +'../data/ams_vondelpark_5-01-2017.geojson' %0A
292096cc5a9b686e823812a35099189388ff722e
Make the control panel active by default
controls.js
controls.js
$(document) .ready(function() { anim.reset(); anim.start(); $("#controls") .click(function(e) { $("#controls") .toggleClass('active'); }); $("#canvas") .click(function(e) { var x = e.pageX - $("...
JavaScript
0.000001
@@ -65,32 +65,87 @@ anim.start();%0A +%09%09$(%22#controls%22)%0A .toggleClass('active');%0A%09%09 %0A $(%22#con
7701db6a6e335ac0516213d5b61f3b414dde0b66
compress js
www/static/app/webpack.config.js
www/static/app/webpack.config.js
var webpack = require("webpack"); var path = require("path"); var jspath = path.resolve(__dirname); module.exports = { entry: { day: jspath + "/day.js", blog: jspath + "/blog.js", spentries: jspath + "/spentries.js", vote: jspath + "/vote.js", rss: jspath + "/rss.js", spiders: jspath + "/spid...
JavaScript
0.000016
@@ -698,16 +698,331 @@ uery%22%7D), +%0A%0A new webpack.DefinePlugin(%7B%0A %22process.env%22: %7B%0A NODE_ENV: JSON.stringify(%22production%22)%0A %7D%0A %7D),%0A%0A new webpack.optimize.UglifyJsPlugin(%7B%0A compress: %7B%0A warnings: false,%0A %...
820c8150bd29fcfa7463e158e3d121173830d05a
Tweak plain formatter.
src/formats/plain.js
src/formats/plain.js
/*globals exports */ 'use strict'; exports.format = format; function format (reports) { var formatted = '', i; for (i = 0; i < reports.length; i += 1) { formatted += formatModule(reports[i]); } return formatted; } function formatModule (report) { return [ '\n', report.m...
JavaScript
0
@@ -178,16 +178,25 @@ atted += + '%5Cn%5Cn' + formatM @@ -292,30 +292,16 @@ eturn %5B%0A - '%5Cn',%0A
1ee1fda181bfafe5ba89fab04e199cf2d1129027
support for mobile devices that cannot do hover
bs-an-dd.js
bs-an-dd.js
function BindAnimatedDropdown($dd) { $dd.find('li.dropdown').each(function(){ var $li = $(this); $li.hover(function(){ clearTimeout(l); $li.addClass('active').children('ul').slideDown(200); $('li.dropdown').not($li).removeClass('active').children('ul').fadeOut(400); }, function(){ l = setTime...
JavaScript
0
@@ -1,46 +1,79 @@ -function BindAnimatedDropdown($dd +var l; // needs a global variable for timeout%0D%0Afunction BindMenu($m ) %7B%0D%0A%09$ -dd +m .fin @@ -171,24 +171,66 @@ imeout(l);%0D%0A +%09%09%09if(!$('.active-click').length)%0D%0A%09%09%09%7B%0D%0A%09 %09%09%09$li.addCl @@ -275,16 +275,17 @@ (200);%0D%0A ...
3111078e9f602108e0afe11c8e6726669da14901
Align tool tips bottom-start
src/common/ListItemBase.js
src/common/ListItemBase.js
import React from 'react'; import AudioRecorder from '../audio/AudioRecorder'; import ApiUtils from '../utils/ApiUtils'; import AuthUtils from '../utils/AuthUtils'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; impo...
JavaScript
0
@@ -2875,32 +2875,38 @@ lacement=%22bottom +-start %22%3E%0A %3C @@ -3245,16 +3245,22 @@ =%22bottom +-start %22%3E%0A
fb9d1b3ba48bd89926691843ba9a7560a5616d73
Add extra plugin.
xadmin/static/xadmin/gulpfile.js
xadmin/static/xadmin/gulpfile.js
var gulp = require('gulp'); function genericTask() { var srcs = [ "bower_components/**/css/*.css", "bower_components/**/css/*.less", "bower_components/**/js/*.js", "bower_components/**/locales/*.js", "bower_components/**/img/**", "!bower_components/flot/**", ...
JavaScript
0
@@ -1008,24 +1008,169 @@ /js'));%0A%0A%7D%0A%0A +function micropluginTask() %7B%0A return gulp.src(%22bower_components/microplugin/src/*.js%22)%0A .pipe(gulp.dest('vendor/microplugin/js'));%0A%0A%7D%0A%0A function sif @@ -2101,24 +2101,45 @@ sifterTask,%0A + micropluginTask,%0A datejsTa
4f406c682da65df91a280f26f42d8635722ea5f4
use fully qualified path instead of relative path
server/app.js
server/app.js
const express = require("express"); const process = require("process"); const ws = require("ws"); const Lobby = require("./lobby").Lobby; const port = process.env.PORT || 8080; const app = express(); app.use(express.static("client")); const server = app.listen(port, () => console.log(`Example HTTP app listening on por...
JavaScript
0
@@ -25,24 +25,54 @@ %22express%22);%0A +const path = require(%22path%22);%0A const proces @@ -91,24 +91,24 @@ %22process%22);%0A - const ws = r @@ -224,16 +224,66 @@ ress();%0A +const client = path.join(__dirname, %22../client%22);%0A app.use( @@ -301,16 +301,14 @@ tic( -%22 client -%22 ));%0A @@ -374,16 +374,...
34fe2575e3f8dd915ca8f6094882a9af6327848c
Adjust dates to fetch
fetch-new-jster.js
fetch-new-jster.js
#!/usr/bin/env node const fs = require("fs"); const path = require("path"); const fetch = require("./fetch"); const transformGitHubTitles = require('./transforms/github_titles') const dir = path.join(__dirname, "./jsters"); fs.readdir(dir, (err, list) => { const files = list.map(file => { const filePath = path.j...
JavaScript
0.999067
@@ -786,9 +786,9 @@ - 2 -5 +0 );%0A%0A
e7370888e78af399eecedd09ac164f471b98578d
fix default opts override
src/front/coreNLP.js
src/front/coreNLP.js
const _ = require('lodash'); function coreNLP (text, opts) { opts = _.merge({}, opts, coreNLP.DEFAULT_OPTS); let url = new URL(opts.url); url.searchParams.append('properties', JSON.stringify(opts.props)); return fetch(url, Object.assign({body: text}, opts.req)).then(res => res.json()); } coreNLP.DEFAULT_OPTS =...
JavaScript
0.000002
@@ -79,14 +79,8 @@ (%7B%7D, - opts, cor @@ -96,16 +96,22 @@ ULT_OPTS +, opts );%0A let
16b0056e66f90dcb68ddf3dc4c4bc3cd5e8326b8
Update component snippet: export style
snippets/component.js
snippets/component.js
'use strict'; /** * Module dependencies */ /** * View */ exports.component = React.createClass({ displayName: 'componentName', render: function() { return ( ); } });
JavaScript
0.000012
@@ -61,25 +61,22 @@ */%0A%0A +module. exports -.component = R
3308722e28f4726cc60a8fe1f8553598c1c033d4
add event.timeStamp to prevent multiple callback firing
src/component/shortcuts.js
src/component/shortcuts.js
import React from 'react' import ReactDOM from 'react-dom' import invariant from 'invariant' import Combokeys from 'combokeys' let shortcuts = React.createFactory('shortcuts') export default class extends React.Component { static displayName = 'Shortcuts' static contextTypes = { shortcuts: React.PropTypes.o...
JavaScript
0.000001
@@ -1004,16 +1004,46 @@ = null%0A%0A + _lastEventTimestamp = null%0A%0A _bindS @@ -1687,24 +1687,128 @@ tor)%0A %7D%0A%0A + if (event.timeStamp === this._lastTimestamp) %7B return %7D%0A%0A this._lastTimestamp = event.timeStamp%0A%0A if (e.ta
d94638071b50af055d8b99f2adfe5a12b7a1d66e
add middleware to enable cors
server/app.js
server/app.js
var express = require('express'), app = express(), mongoose = require('mongoose'), bodyParser = require('body-parser'), methodOverride = require('method-overrride'), port = process.env.PORT || 8080; app.use(bodyParser.json()); // parse application/json app.use(bodyParser.json({ type: 'application/vnd.api+js...
JavaScript
0
@@ -458,16 +458,260 @@ lencoded +%0Aapp.use(function(req, res, next)%7B // enable CORS (will refactor into middleware later)%0A%09res.header('Access-Control-Allow-Origin', %22*%22);%0A%09res.header('Access-Control-Allow-Headers', %22Origin, X-Requested-With, Content-Type, Accept%22);%0A%09next();%0A%7D); %0A%0Aapp.li...
10b421f1bfba985a30ae155ab6e6f0e58609af5e
Correct module paths in app.js.
server/app.js
server/app.js
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var index = require('./routes/index'); var users = require('./routes/users'); var sessions = requir...
JavaScript
0
@@ -233,24 +233,28 @@ require('./ +src/ routes/index @@ -276,24 +276,28 @@ require('./ +src/ routes/users @@ -326,16 +326,20 @@ uire('./ +src/ routes/a @@ -380,16 +380,20 @@ uire('./ +src/ config/a
353db44682b24e90cf710629c8e97e9c497f3e03
update example index
examples/index.js
examples/index.js
'use strict'; import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import createHashHistory from 'history/createHashHistory'; import {renderRoutes} from 'react-router-config'; import {Provider} from 'react-redux'; import {ConnectedRouter} from 'react-router-redux'; import configureSto...
JavaScript
0.000001
@@ -12,33 +12,8 @@ ';%0A%0A -import 'babel-polyfill';%0A impo
442260183bb51d43f25e77d7d542685705eb8d0b
fix typo in contract section
src/components/Contract.js
src/components/Contract.js
import React from 'react' import styled from 'styled-components' import SectionContainer from '../components/SectionContainer' import BackgroundContentContainer from '../components/BackgroundContentContainer' //import {headerColor} from '../styles/colors' import {contentWidth} from '../styles/dimens' import strings f...
JavaScript
0.000029
@@ -3596,16 +3596,17 @@ %3Edie Web +s ite des
5d63823a0dc037a90a8aab4df79914e75760cfd5
Update HomePage.js
src/components/HomePage.js
src/components/HomePage.js
import React from 'react'; import {Link} from 'react-router'; // Since this component is simple and static, there's no parent container for it. const HomePage = () => { return ( <div> <h1>React Material-UI Components</h1> <h2>Get Started</h2> <ol> <li>View the <Link to="/speed-dial">S...
JavaScript
0
@@ -299,17 +299,16 @@ ink to=%22 -/ speed-di @@ -374,17 +374,16 @@ ink to=%22 -/ number-i
cb60a12b7ecfb6d018a148db61ebc2912b3e3156
Update index.js
Node.js/index.js
Node.js/index.js
var server = require('./server'); var router = require('./router'); var requestHandlers = require('./requestHandlers'); var handle = {} handle["/"] = requestHandlers.start; handle["/start"] = requestHandlers.start; handle["/upload"] = requestHandlers.upload; server.start(router.route, handle);
JavaScript
0.000002
@@ -252,16 +252,56 @@ .upload; +%0Ahandle%5B%22/show%22%5D = requestHandlers.show; %0A%0Aserver
c6652df227ade009e6def0113a93c3639a15c294
use markdown helper to parse element
src/components/HtmlView.js
src/components/HtmlView.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Platform } from 'react-native'; import RNFS from 'react-native-fs'; import Api from '../utils/api'; import AppStyle from '../theme/styles'; import Dialog from './dialog'; import CustomWebView from './CustomWebView'; export con...
JavaScript
0
@@ -301,16 +301,70 @@ ebView'; +%0Aimport MarkdownHelper from '../utils/MarkdownHelper'; %0A%0Aexport @@ -420,43 +420,8 @@ ';%0A%0A -const marked = require('marked');%0A%0A clas @@ -1125,14 +1125,30 @@ ml: -m +M ark -e d +ownHelper.convert (res
1f79f73d2b41b60e1c440165a0c309aeeafbad55
Simplify normalize function
distance.js
distance.js
// distance.js // Finds the closest user match with n dimensions of compatability // Expects a tag:count map from the user and a tag:count map from a blog module.exports = { match: function(userTags, blogTags) { var counts = []; for (var tag in userTags) { if (tag in blogTags) { counts.push([userTags[tag],...
JavaScript
0.000018
@@ -584,100 +584,59 @@ %7B%0A%09%09 -var values = %5B%5D;%0A%09%09for (var i = distances.length - 1; i %3E= 0; i--) %7B%0A%09%09%09values.push( +distances.sort(function(a,b) %7B%0A%09%09%09return a. distance s%5Bi%5D @@ -623,36 +623,36 @@ eturn a.distance -s%5Bi%5D + - b .distance);%0A%09%09%7D; @@ -648,106 +648,3...
8dfd2ef13714d03a3d6f2a33070fbf4d782cc42d
Update PushNotification.js
www/PushNotification.js
www/PushNotification.js
var PushNotification = function() { }; // Call this to register for push notifications. Content of [options] depends on whether we are working with APNS (iOS) or GCM (Android) PushNotification.prototype.register = function(successCallback, errorCallback, options) { if (errorCallback == null) { errorCallback = fun...
JavaScript
0
@@ -3689,104 +3689,8 @@ - cordova.exec(successCallback, errorCallback, %22PushPlugin%22, %22didCompleteBackgroundProcess%22, %5B%5D); %0A%7D%0A%7D
03fcd0e1b662209770445151c36be93efbfa7219
Fix material update referencing the sceneEl when it has not loaded (#2120)
src/components/material.js
src/components/material.js
/* global Promise */ var utils = require('../utils/'); var component = require('../core/component'); var THREE = require('../lib/three'); var shader = require('../core/shader'); var error = utils.debug('components:material:error'); var registerComponent = component.registerComponent; var shaders = shader.shaders; var ...
JavaScript
0
@@ -1795,41 +1795,8 @@ ) %7B%0A - var scene = this.el.sceneEl;%0A @@ -2126,24 +2126,51 @@ ys(schema);%0A + this.tick = undefined;%0A keys.for @@ -2304,142 +2304,17 @@ - scene.addBehavior(self);%0A %7D%0A %7D);%0A if (Object.keys(tickProperties).length === 0) %7B%0A scene.remove...
3198ff488e613151d9ceab04095a8f5c4ae667bf
range slider component
pages/about.js
pages/about.js
import React from "react"; import PropTypes from 'prop-types' import {Link} from "react-router"; import {prefixLink} from "gatsby-helpers"; import {config} from "config"; import RangeSlider from '../components/rangeSlider' class About extends React.Component { constructor(props) { super(props) this...
JavaScript
0
@@ -520,214 +520,8 @@ ge = - (event, name) =%3E %7B%0A let value = event.target.value;%0A let name2 = event.target.name%0A let obj = %7B%7D%0A obj%5Bname2%5D = value%0A return this.setState(obj)%0A %7D%0A%0A handleChange2 = (ev @@ -1119,33 +1119,32 @@ his.handleChange -2 %7...
12292eb56c82dd065cd2ff0bd971c2cf36ea190e
Update PushNotification.js
www/PushNotification.js
www/PushNotification.js
var PushNotification = function() { }; // Call this to register for push notifications. Content of [options] depends on whether we are working with APNS (iOS) or GCM (Android) PushNotification.prototype.register = function(successCallback, errorCallback, options) { if (errorCallback == null) { errorCallback = fun...
JavaScript
0
@@ -3131,28 +3131,17 @@ ototype. -didCompleteB +b ackgroun @@ -3141,23 +3141,20 @@ ckground -Process +Done = funct
34177ae045e6531fa402ccc431c13fca5ecf4140
remove temp code
client/app/repo_chooser/repo_chooser_view.js
client/app/repo_chooser/repo_chooser_view.js
Nimble.RepoChooserView = Ember.View.extend({ didInsertElement: function() { $("#repos-modal").modal("show") .on("hidden.bs.modal", function() { return this.controller.send("close_modal"); }.bind(this)); }, test: function() { return this.contentIndex; ...
JavaScript
0.000002
@@ -260,84 +260,8 @@ %7D,%0A%0A - test: function() %7B%0A return this.contentIndex;%0A %7D.property(),%0A%0A
fef099ceccb3a1e43d906fc123e0c83b791b300d
Update braintree-plugin.js
www/braintree-plugin.js
www/braintree-plugin.js
"use strict"; var exec = require("cordova/exec"); /** * The Cordova plugin ID for this plugin. */ var PLUGIN_ID = "BraintreePlugin"; /** * The plugin which will be exported and exposed in the global scope. */ var BraintreePlugin = {}; /** * Used to initialize the Braintree client. * * The client must be ini...
JavaScript
0
@@ -1646,16 +1646,18 @@ %7D;%0A%0A +/* var plu @@ -1711,16 +1711,18 @@ e%0A %5D; +*/ %0A%0A ex @@ -1795,23 +1795,17 @@ entUI%22, -pluginO +o ptions);
7931b19c144057b8bc35e0154d189c0e92122825
put controls in right place
suave/static/js/jquery.badmanforms.js
suave/static/js/jquery.badmanforms.js
/* -------------------------------- * GENERIC TING * ------------------------------ */ function init_special_select(element, type) { old = element.parent().parent().find('div.' + type); old.remove(); var controls = jQuery('<div/>', { class: type, }); jQuery('<ul/>').appendTo(controls); ...
JavaScript
0.000001
@@ -383,34 +383,28 @@ ols. -prependTo(element.parent() +insertBefore(element );%0A
17b6371a2b3f59a836e732e60a3bcdcac67366b6
Fix require in ES6 code
pages/index.js
pages/index.js
import React from 'react'; import LoadChart from './components/LoadChart.js'; import 'isomorphic-fetch'; import io from 'socket.io-client'; import { getURL, sockets, api } from '../common/configuration.js'; import css, { merge } from 'next/css'; const { getConsoleTimestamp } = require('../common/log.js'); const getLoa...
JavaScript
0
@@ -239,20 +239,21 @@ t/css';%0A -cons +impor t %7B getC @@ -274,18 +274,13 @@ p %7D -= require( +from '../ @@ -293,17 +293,16 @@ /log.js' -) ;%0A%0Aconst
50a5457341f75ebb3d7e0532d9d915fad407bf44
return regions cursor directly
client/views/frames/propose/frame.propose.js
client/views/frames/propose/frame.propose.js
import Metatags from '/imports/Metatags.js'; Router.map(function () { this.route('framePropose', { path: '/frame/propose', template: 'framePropose', layoutTemplate: 'frameLayout', waitOn: function () { this.filter = Filtering(EventPredicates).read(this.params.query).done(); var filterParams = this.filt...
JavaScript
0.000001
@@ -576,15 +576,12 @@ %09%09re -gions = +turn Reg @@ -597,27 +597,8 @@ ();%0A -%09%09%09return regions;%0A %09%09%7D,
c8b317aeebe0b790df6e6177751b3395eb332e0a
fix typo with transitionend
src/util/dom.js
src/util/dom.js
const nativeRaf= window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame const nativeCancelRaf = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.webkitCancelRequestAnimationFrame export const raf = nativeRaf || function(callback) { ...
JavaScript
0.000001
@@ -1082,18 +1082,18 @@ = 'tran -i s +i tionend' @@ -1264,33 +1264,88 @@ istener( -css.transitionEnd +eventName, onTransitionEnd)%0A console.log('eventListener', eventName , onTran
2d547a7d2f68d4a3ba69dd08cab21edf0e0f29a9
Add noop function
src/utils/fn.js
src/utils/fn.js
/** * Function module. * @module base/utils/func */ /** * Returns a function, that, as long as it continues to be invoked, will not * be triggered. The function will be called after it stops being called for * N milliseconds. If `immediate` is passed, trigger the function on the * leading edge, instead of the t...
JavaScript
0
@@ -2483,24 +2483,272 @@ null%0A %7D%0A%7D%0A%0A +/**%0A * Returns undefined irrespective of the arguments passed to it.%0A *%0A * Using the noop the intent of a default callback is clear.%0A * An empty function might indicate unfinished business.%0A *%0A * @returns %7Bundefined%7D%0A */%0Aexport function noop() %7B%...
27d9c03935850eac1600a016f71d9424e742ad85
Create initial content entity methods.
lib/entities/content.js
lib/entities/content.js
module.exports = function(app){ "use strict"; var content = {}; content.getRandomContent = function(params){ }; /** * Initialize the content object with a configuration * @param config Object that includes information that this object needs like contentid. */ content.init = fu...
JavaScript
0
@@ -1,21 +1,5 @@ -module.exports = +( func @@ -7,11 +7,8 @@ ion( -app )%7B%0A @@ -49,235 +49,335 @@ = %7B%7D -;%0A%0A content.getRandomContent = function(params +,%0A db = require(%22../db%22);%0A%0A content.create = function(obj, callback )%7B%0A -%0A -%7D;%0A%0A /**%0A * Initialize th...
7a408d861e3d8adeca1c9c7623351630f8fc02a8
Fix for match
src/helpers/match.js
src/helpers/match.js
export default function match(original, search, replace) { // This also works with "startsWithNot" (see below) // !search === replace becomes search !== replace // original === replace is evaluated before the code below if (search === replace || original === replace) { return false } var startsWithNot ...
JavaScript
0.000001
@@ -1,19 +1,4 @@ -export default func @@ -454,16 +454,17 @@ return +! match(or @@ -782,8 +782,30 @@ earch%0A%7D%0A +%0Aexport default match%0A
f2deae15b14070b796a23689525288b4318f33d0
remove some whitespace
data2xml.js
data2xml.js
// -------------------------------------------------------------------------------------------------------------------- // // data2xml.js - A data to XML converter with a nice interface (for NodeJS). // // Copyright (c) 2011 Andrew Chilton - http://chilts.org/ // Written by Andrew Chilton <andychilton@gmail.com> // // ...
JavaScript
0.999999
@@ -3772,32 +3772,16 @@ opts);%0A - %0A @@ -3901,17 +3901,16 @@ %7D - %0A @@ -4508,17 +4508,16 @@ ata;%0A%7D%0A%0A -%0A // -----
de0d97dadeffb04bd61f2842aaa05778d073cf7d
location.replace and assign order (#1043)
src/history/html5.js
src/history/html5.js
/* @flow */ import type VueRouter from '../index' import { assert } from '../util/warn' import { inBrowser } from '../util/dom' import { cleanPath } from '../util/path' import { History } from './base' import { saveScrollPosition, getScrollPosition, isValidPosition, normalizePosition, getElementPosition } fr...
JavaScript
0.998896
@@ -3739,26 +3739,26 @@ ? ' -assign' : 'replace +replace' : 'assign '%5D(u
f997ce72b7dca69cc2d40fa3ba0937c46536eeb3
make config optional
bin/tail.js
bin/tail.js
#!/usr/bin/env node /** * Copyright 2014 Netsend. * * This file is part of Mastersync. * * Mastersync 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...
JavaScript
0.000007
@@ -936,16 +936,28 @@ ge('%5B-g%5D + %5B-f config%5D -c coll @@ -966,18 +966,8 @@ tion - -f config ')%0A @@ -1177,19 +1177,16 @@ fig%3E', ' -an ini conf @@ -1457,54 +1457,85 @@ );%0A%0A -if (!program.config) %7B program.help(); %7D%0Aif (! +var config = %7B%7D;%0Avar dbCfg = %7B dbName: program.database %7D;%...
ae72994cfb8ab915ae23df107ae7845c3b584798
Undo changes on ./bin/test.js
bin/test.js
bin/test.js
/** * Copyright (c) 2019 The xterm.js authors. All rights reserved. * @license MIT */ const cp = require('child_process'); const path = require('path'); const COVERAGE_LINES_THRESHOLD = 60; // Add `out` to the NODE_PATH so absolute paths can be resolved. const env = { ...process.env }; env.NODE_PATH = path.resolv...
JavaScript
0.000001
@@ -1321,164 +1321,8 @@ %0A%7D%0A%0A -const checkDebug = flagArgs.indexOf('--debug') %3E= 0;%0A%0Aif (checkDebug) %7B%0A env.DEBUG = 'debug';%0A%7D%0A%0Aif (env.DEBUG) %7B%0A console.log('poll result', result);%0A%7D%0A%0A cons
6dd16e5cc453aead4ce8b97a0b3ee9f39df8af6a
Add alternative to fs.existsSync
bindings.js
bindings.js
/** * Module dependencies. */ var fs = require('fs') , path = require('path') , join = path.join , dirname = path.dirname , exists = fs.existsSync || path.existsSync , defaults = { arrow: process.env.NODE_BINDINGS_ARROW || ' → ' , compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled...
JavaScript
0
@@ -137,16 +137,135 @@ exists = + ((fs.accessSync && function (path) %7B try %7B fs.accessSync(path); %7D catch (e) %7B return false; %7D return true; %7D)%0A %7C%7C fs.exis @@ -289,16 +289,17 @@ istsSync +) %0A , def
112a8bee00e8b11b1facaf9499976ab4f92bd185
add fcm push
src/web/main.js
src/web/main.js
"use strict"; const _ = require("ramda") require("./pcss/main.pcss") const DB = require("./local-pouch-db") const sound = require("./sound") const $ = require("jquery") window.jQuery = $ require("./jquery.trap") require("jquery-ui/ui/position") boot().catch(console.error) async function boot() { $("#root").tr...
JavaScript
0.000001
@@ -3300,19 +3300,16 @@ %7D)%0A%7D%0A%0A -%0A%0A%0A /*%0A //no
cd9ea583b3ff201f936c5b967ec59398871a84c3
Change size of products image
database.js
database.js
const PouchDB = require('pouchdb'); const Product = require('./models/product.js'); const User = require('./models/user.js'); const Faker = require('faker'); const Constants = require('./constants.js'); // let database = new PouchDB('market'); module.exports = class Database { constructor() { this.databa...
JavaScript
0.000002
@@ -1211,21 +1211,23 @@ ge.food( -50, 5 +200, 10 0),%0A @@ -1263,14 +1263,14 @@ ood( -3 +8 00, -2 +4 00)%0A
24495ee6098a3d3f35b5e9c30b3f55e39295b024
remove erroneous args=null
src/main/js/ephox/katamari/api/Throttler.js
src/main/js/ephox/katamari/api/Throttler.js
define( 'ephox.katamari.api.Throttler', [ 'global!clearTimeout', 'global!setTimeout' ], function (clearTimeout, setTimeout) { // Run a function fn afer rate ms. If another invocation occurs // during the time it is waiting, update the arguments f will run // with (but keep the current sche...
JavaScript
0.999609
@@ -1217,39 +1217,16 @@ = null;%0A - args = null;%0A @@ -1928,39 +1928,16 @@ = null;%0A - args = null;%0A
3109fdbe99320421460776ea3c68f2491f02242f
Create shared AudioContext and masterGain node.
src/core/audio/AudioAPI.js
src/core/audio/AudioAPI.js
define([ "core/framework/Tundra", "core/framework/ITundraAPI", "core/asset/AssetFactory", "core/audio/asset/AudioAsset", "core/audio/entity-components/EC_Sound_WebAudio", "core/audio/entity-components/EC_SoundListener_WebAudio" ], function(Tundra, ITundraAPI, AssetFa...
JavaScript
0
@@ -499,16 +499,394 @@ tions);%0A +%0A // define audio context%0A this.audioCtx = new (window.AudioContext %7C%7C window.webkitAudioContext)();%0A %0A // Master GainNode to be used as destination of other sources%0A this.masterGainNode = this.audioCtx.createGain();%0A this.mas...
2e47ac2f1b606358871959b66df9fbb6a6112f6b
Update gdpr LS namespace for OpenWrap script
src_new/gdpr.js
src_new/gdpr.js
var localStorageKey = "PubMatic"; var DUMMY_PUB_ID = 909090; // Adding util here creating cyclic dependecies between the modules so avoided it & added two util function manually function isA(object, testForType) { return toString.call(object) === "[object " + testForType + "]"; } var isFunction = function (object) {...
JavaScript
0
@@ -20,16 +20,16 @@ = %22 -PubMatic +OpenWrap %22;%0Av
d0b9574d4c90d51b8808217cc48bcb0c2ea16a97
Tidy `t/coverage/balancer-cached-right.t.js`.
t/coverage/balancer-cached-right.t.js
t/coverage/balancer-cached-right.t.js
#!/usr/bin/env node require('./proof')(2, function (step, Strata, tmp, load, serialize, objectify, gather, assert) { var strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 }) step(function () { serialize(__dirname + '/fixtures/balancer-cached-right.json', tmp, step()) }, function () {...
JavaScript
0
@@ -68,14 +68,8 @@ tmp, - load, ser @@ -79,19 +79,8 @@ ize, - objectify, gat
f9be675ac9f2524b75f7e8502554e078d9aa8f54
make builder faster, change priorities to match strength of economy.
stage.stable.js
stage.stable.js
var work = [WORK, WORK, WORK, WORK, WORK, MOVE, MOVE, MOVE, MOVE, CARRY]; var heavy = [WORK, MOVE, WORK, MOVE, WORK, MOVE, WORK, WORK, WORK, WORK, WORK, CARRY]; var extract = [MOVE, WORK, WORK, WORK, WORK, WORK, CARRY]; var logistic = [CARRY, MOVE, CARRY, MOVE, CARRY, MOVE, CARRY, MOVE, CARRY, MOVE, CARRY, MOVE, CARRY,...
JavaScript
0
@@ -63,24 +63,101 @@ VE, CARRY%5D;%0A +var build = %5BWORK, MOVE, WORK, MOVE, WORK, MOVE, CARRY, MOVE, CARRY, MOVE,%5D;%0A var heavy = @@ -227,24 +227,24 @@ RK, CARRY%5D;%0A - var extract @@ -496,16 +496,40 @@ %5BMOVE%5D; + // , CLAIM, MOVE, CLAIM %0Avar rai @@ -694,25 +694,25 @@ edBuilders: -0 +1 ,%0A d...
eb0bbc83c594c7088e2925a91addd1090270c53b
Add export to convertToList
src/helpers/reformat.js
src/helpers/reformat.js
import flatten from 'flat'; export function reformatColumns(items) { const flatList = items.map((item) => flatten(item, { maxDepth: 2 })); const reformattedList = rotateOnTeam(flatList); // const itemsByFeature = groupByFeature(reformattedList); const concatObj = concatOnProperties(reformattedList); const conc...
JavaScript
0
@@ -1710,16 +1710,23 @@ lements%0A +export function
84b5b9ca2ee77a04bdd8c089850cd8ac18d05f65
Add platform detection
src/js/javascript.js
src/js/javascript.js
// Initial timer length in seconds var timerCount = 15, remote = require('electron').remote, arguments = remote.getGlobal('sharedObject').prop1; // debug mode ensures that computer doesnt shut down while testing // npm start --debug if (arguments[2] == '--debug') { console.log('Debug mode enabled'); var de...
JavaScript
0
@@ -1287,16 +1287,49 @@ else %7B%0A + var plat = process.platform;%0A var @@ -1385,26 +1385,206 @@ = ' -shutdown -t 15 -s' +';%0A if (plat === 'win32') %7B%0A cmd = 'shutdown -t 15 -s';%0A %7D else if (plat === 'darwin') %7B%0A cmd = '';//OSX shutdown command;%0A %7D else %7B%0A cmd...
275dc5b09b27d5441814aa423cddaa7472344dbf
Add use of navigation focus custom hook in usePopOver hook
src/hooks/usePopover.js
src/hooks/usePopover.js
import React, { useState, useCallback, useRef } from 'react'; /** * Hook which manages popover position over a DOM element. * Pass a ref created by React.createRef. Receive callbacks, */ export const usePopover = () => { const [visibilityState, setVisibilityState] = useState(false); const ref = useRef(React.cre...
JavaScript
0
@@ -54,16 +54,75 @@ 'react'; +%0Aimport %7B useNavigationFocus %7D from './useNavigationFocus'; %0A%0A/**%0A * @@ -269,18 +269,26 @@ pover = -() +navigation =%3E %7B%0A @@ -463,16 +463,16 @@ ), %5B%5D);%0A - const @@ -537,16 +537,71 @@ , %5B%5D);%0A%0A + useNavigationFocus(navigation, null, closePopover)...
7a4c6c35ae543dc43ba6766f3a0a4c4db4c88938
convert text to string in tag-translator
lib/components/helpers/tag-translator.js
lib/components/helpers/tag-translator.js
'use strict'; function buildChoicesMap(replaceChoices) { var choices = {}; replaceChoices.forEach(function (choice) { var key = choice.value; choices[key] = choice.label; }); return choices; } /* Creates helper to translate between tags like {{firstName}} and an encoded representation suitable f...
JavaScript
0.999999
@@ -1009,66 +1009,28 @@ -if (typeof text !== 'string') %7B%0A return %5B%5D;%0A %7D +text = String(text); %0A%0A
70ab749b96524f5410d2439c00c4bd7b44d599b2
Update erb.js to mark @kassio as a contributor to the language.
src/languages/erb.js
src/languages/erb.js
/* Language: ERB (Embedded Ruby) Requires: xml.js, ruby.js Authors: Lucas Mazza <lucastmazza@gmail.com> Kassio Borges <kassioborgesm@gmail.com> */ function(hljs) { return { aliases: ['erb'], case_insensitive: true, subLanguage: 'xml', subLanguageMode: 'continuous', contains: [ { ...
JavaScript
0
@@ -61,17 +61,16 @@ %0A Author -s : Lucas @@ -99,25 +99,29 @@ il.com%3E%0A - +Contributors: Kassio
73e5ad6a12161609952ebba43c5ffcf1bbdc9561
Update recommended r5 version to v4.7.0
lib/modules/r5-version/constants.js
lib/modules/r5-version/constants.js
// // Bucket where R5 JARs are to be found export const R5_BUCKET = 'https://r5-builds.s3.amazonaws.com' // Recommended r5 version export const RECOMMENDED_R5_VERSION = 'v4.6.1' // R5 v4 has numerous breaking changes in worker/broker communication export const MINIMUM_R5_VERSION = 'v4.0.0' // Determine if a particu...
JavaScript
0
@@ -172,11 +172,11 @@ 'v4. -6.1 +7.0 '%0A%0A/
fac5fbafe825da300e2f8240455c5cfd1119c527
Update payment token logic
packages/components/containers/payments/paymentTokenHelper.js
packages/components/containers/payments/paymentTokenHelper.js
import { PAYMENT_METHOD_TYPES, PAYMENT_TOKEN_STATUS } from 'proton-shared/lib/constants'; import { createToken, getTokenStatus } from 'proton-shared/lib/api/payments'; import { wait } from 'proton-shared/lib/helpers/promise'; import { c } from 'ttag'; const { STATUS_PENDING, STATUS_CHARGEABLE, STATUS_FAILE...
JavaScript
0
@@ -157,24 +157,86 @@ /payments';%0A +import %7B isSafari %7D from 'proton-shared/lib/helpers/browser';%0A import %7B wai @@ -459,28 +459,29 @@ const %7B -CARD, PAYPAL +BITCOIN, CASH %7D = PAY @@ -2758,35 +2758,137 @@ -tab.location = ApprovalURL; +if (isSafari()) %7B%0A tab.location = ApprovalURL...
7bb62e8fef54023368cd82614055966c0dda6270
add an assertion to ExecutionContext test
packages/execution-context/__tests__/ExecutionContext-test.js
packages/execution-context/__tests__/ExecutionContext-test.js
import ExecutionContext from '../ExecutionContext'; import ImmediateExecutor from '../ImmediateExecutor'; describe('ExecutionContext', () => { const executor = new ImmediateExecutor(); const context = new ExecutionContext(executor); it('should execute code and return the result', async () => { const value =...
JavaScript
0.000001
@@ -1518,24 +1518,65 @@ e next tick%0A + expect(routineA).toHaveBeenCalled();%0A await Pr