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
0bd90e23bbbf555fcf2ea9f64d423330f0f9467e
Use this context
lib/lock.js
lib/lock.js
var DEFAULT_TIMEOUT = 5000; var DEFAULT_RETRY_DELAY = 100; var DEFAULT_MAX_RETRY = 20; var redis = require('redis'); var Lock = module.exports.Lock = function(key, options) { options = options || {}; this.key = key; this.retries = 0; this.maxRetries = options.maxRetries ? options.maxRetries : DEFAULT_MAX_RETRY; t...
JavaScript
0.999999
@@ -664,20 +664,20 @@ ;%0A%09%09if ( -self +this ._locked @@ -700,20 +700,20 @@ %09%7D%0A%09%09if( -self +this .retries @@ -715,20 +715,20 @@ tries %3E -self +this .maxRetr
7e0a33033e8bd9c2fdafe97536bfaac3272c0be2
WEBKIT_lose_context becomes WEBGL_EXT_lose_context
js/webgldiagdata.js
js/webgldiagdata.js
/** * @preserve Copyright 2011 Ashima Arts. All rights reserved. * Author: David Sheets; Open source under an MIT-style license. * See https://github.com/ashima/webgl-diagnostic/ for more information. */ if (typeof(window["WebGLDiagnostic"])=="undefined") { WebGLDiagnostic = window["WebGLDiagnostic"] = {}; } // ...
JavaScript
0.999283
@@ -532,10 +532,13 @@ %22WEB -KI +GL_EX T_lo
b2606ae1279f56e28e0229cc0f447ed05912863e
Change log message
lib/lock.js
lib/lock.js
var DEFAULT_TIMEOUT = 5000; var DEFAULT_RETRY_DELAY = 50; var DEFAULT_MAX_RETRY = 10; var redis = require('redis'); var rclient = null; var getRedisClient = function() { if (rclient === null) { rclient = redis.createClient(); } return rclient; }; module.exports.setRedisClient = function(client) { rclient = clie...
JavaScript
0.000001
@@ -2025,25 +2025,22 @@ rn(' -Release not owned +Try to release loc @@ -2059,16 +2059,36 @@ key + '%22 + which is not owning ');%0A%09%09%09c
b06fb194576954e52e59b2e798e0eb79dc6105c8
Use import instead of require
lib/main.js
lib/main.js
/** @babel */ const {Disposable, CompositeDisposable} = require('atom') const ViewURI = 'atom://deprecation-cop' let DeprecationCopView class DeprecationCopPackage { activate () { this.disposables = new CompositeDisposable() this.disposables.add(atom.workspace.addOpener((uri) => { if (uri === ViewURI)...
JavaScript
0
@@ -8,20 +8,21 @@ bel */%0A%0A -cons +impor t %7BDispo @@ -53,25 +53,20 @@ le%7D -= require( +from 'atom' -) +%0A %0Acon
870bfb0d51fa0a5ef96419d8f90c876c7ad3ffb4
Add semicolon
corehq/apps/commtrack/static/commtrack/ko/locations.js
corehq/apps/commtrack/static/commtrack/ko/locations.js
$(function() { var model = new LocationSettingsViewModel(); $('#settings').submit(function() { return model.presubmit(); }); model.load(settings); ko.applyBindings(model, $('#settings').get(0)); }); function LocationSettingsViewModel() { this.loc_types = ko.observableArray(); thi...
JavaScript
0.999999
@@ -707,16 +707,17 @@ ype.name +; %0A
237289320d622da35b2abb857642bcd38074e10f
Remove need for bind()
js/theme.js
js/theme.js
var jQuery = (typeof(window) != 'undefined') ? window.jQuery : require('jquery'); // Sphinx theme nav state function ThemeNav () { var nav = { navBar: null, win: null, winScroll: false, winResize: false, linkScroll: false, winPosition: 0, winHeight: null, ...
JavaScript
0.000001
@@ -921,24 +921,37 @@ mationFrame( +function() %7B self.onScrol @@ -951,27 +951,21 @@ onScroll -.bind(self) +(); %7D );%0A @@ -1254,16 +1254,29 @@ onFrame( +function() %7B self.onR @@ -1284,19 +1284,13 @@ size -.bind(self) +(); %7D );%0A
eca11db8c03db3f8ad4aff2ba400ce98dac8d883
fix changed usage
lib/message-registry.js
lib/message-registry.js
/* @flow */ import { CompositeDisposable, Emitter } from 'atom' import debounce from 'lodash/debounce' import type { Disposable, TextBuffer } from 'atom' import { messageKey, updateKeys, createKeyMessageMap, flagMessages, mergeArray } from './helpers' import type { MessagesPatch, Message, Linter } from './types' type...
JavaScript
0
@@ -2074,35 +2074,209 @@ %7D%0A - if (!entry.changed) %7B +%0A // if the linter is not changed%0A // just use its cache (no added/removed and everything is kept) and skip the rest%0A if (!entry.changed) %7B%0A // TODO When this code acutally runs?! %0A @@ -2355,36 +2355,8 @@ %7D -%...
ad73dc7079f9bb118a93c1f938476632b7ba7070
Add Y label
client/views/home/activities/trend/trend.js
client/views/home/activities/trend/trend.js
Template.homeResidentActivityLevelTrend.rendered = function () { // Get reference to template instance var instance = this; instance.autorun(function () { // Get reference to Route var router = Router.current(); // Get current Home ID var homeId = router.params.homeId; // Get data for trend...
JavaScript
0.000005
@@ -661,32 +661,74 @@ x_axis: true,%0A + y_label: %22Number of residents%22,%0A y_acce @@ -964,17 +964,16 @@ tive'%5D,%0A -%0A
b90b9b93af51fa7335eee77eaf2469b81170c39b
Remove index
backend/www/js/index.js
backend/www/js/index.js
$.ajaxSetup({ async: false }); var activeView = 0, loadedViews = []; $.get("http://127.0.0.1:1338/views", function (ajaxViews) { loadedViews = ajaxViews; $('.nav-sidebar').html(""); loadedViews.forEach(function(view, index){ $(".nav-sidebar").append(`<li data-view="` + index + `"><a href="#" oncl...
JavaScript
0.000002
@@ -480,19 +480,16 @@ Number') -%5B0%5D .val()); @@ -532,11 +532,8 @@ nt') -%5B0%5D .val
793b8fd71a46245688e685b2eed667e00a165ea8
Update thing.js
js/thing.js
js/thing.js
var meme = 0; function a(){ var meme = 0 }; function d(){ if (meme > 1) { a() }; if (meme == 1) { notyf.confirm('Okay! <a style="color:white;" href="https://discord.gg/PEW4wx9">Click here!</a>') } else { notyf.confirm('I\'m tilda#4778 (if you wanna join the Discord server, click again'); m...
JavaScript
0.000001
@@ -952,8 +952,33 @@ les);%0A%7D%0A +%0Avar notyf = new Notyf()%0A
2a734b6b1935b7d245af59e35fc34b12728054ed
Add support for .css files
lib/node-sass-import.js
lib/node-sass-import.js
'use strict'; var path = require('path'); var resolve = require('resolve'); var glob = require('glob'); var pathParse = require('path-parse'); var pathFormat = require('path-format'); var opts = { exts: '.@(sa|c|sc)ss', pfx: '?(_)' }; var buildSassGlob = function (path) { var parsedPath = pathParse(path); if...
JavaScript
0
@@ -1051,24 +1051,143 @@ throw err;%0A + %0A // Strip the extension so .css gets evaluated properly as .scss%0A file = file.replace(/%5C.(sa%7Csc%7Cc)ss$/, ''); %0A done(%7B
bd24a72877c38527a71c2da32e762ac3971a93a2
Update API url
lib/main.js
lib/main.js
var version = 0.5; var ddp_server = "localhost"; var ddp_port = 3000; var DDPClient = require("ddp"); var debug_mode = false; var Telismo_instance = function(apiKey) { var self = this; var Telismo_DDP = new DDPClient({ host: ddp_server, port: ddp_port, auto_reconnect: true, auto_reconnect_timer: 500, ...
JavaScript
0.000001
@@ -34,17 +34,19 @@ = %22 -localhost +telismo.com %22;%0Av
a0267dcfe11bbae16d85291dc0d267192b632946
use proper config file at runtime
lib/normalize-config.js
lib/normalize-config.js
const vcs = require('./vcs') let config try { config = require(`${process.cwd()}/bbpr.config`) } catch (e) { try { config = require('../bbpr.config') } catch (e) { try { config = require('../config_presets/reset') } catch (e) { config = {} } } } function normalizeConfig (config) {...
JavaScript
0.000001
@@ -67,21 +67,17 @@ (%60$%7B -process.cwd() +__dirname %7D/bb
ad4d16630b126e73347995ea8dd3f136ddd06e38
make the path to pyls executable configurable
lib/main.js
lib/main.js
const { shell } = require("electron") const { AutoLanguageClient } = require("atom-languageclient") const { detectVirtualEnv, detectPipEnv, replacePipEnvPathVar, sanitizeConfig } = require("./utils") import { createDebuggerProvider, activate as debuggerActivate, dispose as debuggerDispose } from "./debugger/main" // ...
JavaScript
0
@@ -1550,16 +1550,78 @@ nvPath)%0A + const pyls = atom.config.get(%22ide-python.pyls%22) %7C%7C %22pyls%22%0A cons @@ -1664,22 +1664,20 @@ %5B%22-m%22, -%22 pyls -%22 %5D, %7B%0A @@ -2913,23 +2913,18 @@ python-l -anguage +sp -server%5B
cd21b283ef2844ec65340d8a2faf04d488246a50
Enable browser polyfill
Brocfile.js
Brocfile.js
// This is the Brocfile. It sets up all the assets from the input JS/CSS/images // and so on and converts them to static assets in the output directory or // preview server. var _ = require('underscore'); var babel = require('broccoli-babel-transpiler'); var browserify = require('broccoli-browserify'); var compileSass ...
JavaScript
0
@@ -848,16 +848,43 @@ (scripts +, %7B browserPolyfill: true %7D );%0A// Th
30e3c60e86958b4dea4838dd6d86f9a15a58a707
refactor check for spawning food outside of players
lib/open-coordinates.js
lib/open-coordinates.js
function OpenCoordinates(canvasWidth, canvasHeight) { this.canvasWidth = canvasWidth, this.canvasHeight = canvasHeight } OpenCoordinates.prototype = { create: function(players){ var newCoords = { x: Math.floor(Math.random() * (this.canvasWidth - 10) + 5), y: Math.floor(Math.random() ...
JavaScript
0
@@ -692,16 +692,19 @@ %7D%0A%0A + // while(! @@ -722,24 +722,27 @@ Player)%7B%0A + // isNotInsi @@ -783,16 +783,19 @@ er);%0A + // if (! @@ -813,24 +813,27 @@ Player)%7B%0A + // newCoor @@ -887,32 +887,35 @@ - 10) + 5),%0A + // @@ -977,19 +977,266 @@ %7D;%0A ...
c8fd9d88489eccfb6aab69b2f69e40c5fbde86c3
Remove commented code
src/behaviors/birthdays/birthdays.js
src/behaviors/birthdays/birthdays.js
import Behavior from '../behavior.js'; import authorize from './google-events'; import google from 'googleapis'; import credentials from './client.json'; class Birthdays extends Behavior { constructor(settings) { settings.name = 'Birthdays'; settings.sayInChannel = settings.sayInChannel.replace('#', ''); ...
JavaScript
0
@@ -4177,677 +4177,4 @@ ys;%0A -%0A// authorize(credentials).then((auth) =%3E %7B%0A// const sheets = google.sheets('v4');%0A%0A// sheets.spreadsheets.values.get(%7B%0A// auth,%0A// spreadsheetId: '1gNkOqGubDyI2oBCU9MzduS5sd_GK_MfS53sLRhZO_ns',%0A// range: 'Form Responses 1!C1:E'%0A// %7D, (err, resp...
b0f1cd8b30b563e2e6f64b147013d961eabf7883
change units needed by Gas Properties to abbreviations
js/units.js
js/units.js
// Copyright 2018, University of Colorado Boulder /** * These are the units that can be associated with Property instances. * * @author Sam Reid (PhET Interactive Simulations) */ define( function( require ) { 'use strict'; // modules var axon = require( 'AXON/axon' ); var units = { values: [ 'a...
JavaScript
0.000001
@@ -326,29 +326,8 @@ s',%0A - 'atmospheres',%0A @@ -340,24 +340,24 @@ liamperes',%0A + 'becqu @@ -622,29 +622,8 @@ s',%0A - 'kilopascals',%0A @@ -960,29 +960,8 @@ t',%0A - 'picoseconds',%0A @@ -1324,23 +1324,171 @@ ' -cm',%0A 'nm' +atm', // atmospheres%0A 'cm', ...
08dedeadab7651cb47f9698a3b6e1800e506dd8e
ubuntu web browser is not safari
js/utils.js
js/utils.js
/* ----------------------- LOGGING SHORTCUTS -------------------------- */ function log(msg) { if (console && console.log) { console.log(msg); } } function error(msg) { if (console && console.error) { console.error(msg); } } function warn(msg) { if (console && console.warn) { console.warn(msg); ...
JavaScript
0.999973
@@ -675,16 +675,23 @@ %7Candroid +%7Cubuntu ).)*safa
a8af724a33daeb1149357e27efe7519b410e0e98
update to reflect changes
blag.app.js
blag.app.js
var unmon=require("./lib/unmon.js"); var mds=require("./lib/plug/md.js"); unmon.launch({main:mds.spawnHandler(process.env.PWD+"/md/","unmon")});
JavaScript
0
@@ -86,16 +86,19 @@ ch(%7B +%0A main:mds .spa @@ -97,21 +97,8 @@ :mds -.spawnHandler (pro @@ -125,12 +125,13 @@ %22unmon%22) +%0A %7D);%0A
4e4546ed6a6d51f692b9cd471e8d379a3c1d0c58
use version table to determine which pages a theme's layout is used on
_dsa_mosaic_WEB_cms/forms/WEB_0F_theme_1L_layout.js
_dsa_mosaic_WEB_cms/forms/WEB_0F_theme_1L_layout.js
/** * @properties={typeid:35,uuid:"04fde543-69cc-4de9-af47-7f7c22221f40"} */ var _license_dsa_mosaic_WEB_cms = 'Module: _dsa_mosaic_WEB_cms \ Copyright (C) 2011 Data Mosaic \ MIT Licensed'; /** * * @properties={typeid:24,uuid:"6CC042F4-C204-4D07-9FFC-2D5984DFAE56"} */ function REC_delete() { //...
JavaScript
0.000002
@@ -1507,25 +1507,25 @@ page AND %5C%0A%09 -a +b .id_layout =
f0599e489b992554e302ed0c9b4383f4294d1f1b
use path.sep
lib/main.js
lib/main.js
/* eslint-disable no-console */ require('babel-core/register'); const fs = require('fs-extra'); const path = require('path'); const mkdirp = require('mkdirp'); const React = require('react'); const render = require('react-dom/server').renderToStaticMarkup; const MainHTML = require('../src/components/main'); const spli...
JavaScript
0.999986
@@ -307,70 +307,8 @@ );%0A%0A -const splitChar = process.platform === 'win32' ? '%5C%5C' : '/';%0A%0A cons @@ -1598,17 +1598,16 @@ lit( -splitChar +path.sep ).po
216bf149566cbf79be78d1587bfa590651d1c503
Fix imusic connector
connectors/v2/imusic.am.js
connectors/v2/imusic.am.js
'use strict'; /* global Connector */ Connector.playerSelector = '#playerBox'; Connector.artistSelector = '#p_songTitle .f_artist'; Connector.trackSelector = '#p_songTitle .f_album'; Connector.isPlaying = function () { return $('#pauseBtn').is(':visible'); };
JavaScript
0
@@ -64,18 +64,21 @@ = ' -# +. player -Box +-block ';%0A%0A
8214d9f8ada8b7d09c7b2369e98fc8e36917dc8d
Test commit for account change
containers/ActorsMovies.js
containers/ActorsMovies.js
import React, { Component } from 'react'; import { Text, Image, View } from 'react-native'; import styles from './styles/ActorsMoviesStyle'; import ActorImage from '../components/ActorImage'; import { StackNagivator } from 'react-navigation'; export default class ActorsMovies extends Component { render() { retur...
JavaScript
0
@@ -335,16 +335,17 @@ t%3EMovies +! %3C/Text%3E%0A
d25dda0fdddfea617a7751842dce5a70fdc712b1
Convert timestamp to moment for latest comparison.
lib/plugins/xdrip-js.js
lib/plugins/xdrip-js.js
'use strict'; var _ = require('lodash'); var moment = require('moment'); var times = require('../times'); var levels = require('../levels'); function init(ctx) { var utils = require('../utils')(ctx); var sensorState = { name: 'xdrip-js' , label: 'Sensor Status' , pluginType: 'pill-status' }; sen...
JavaScript
0.934637
@@ -2557,16 +2557,83 @@ status;%0A + result.latest.timestamp = moment(status.sensor.timestamp);%0A %7D%0A
c34d46e5436982f3f8703f0cc3a11e3d3b3dc22b
fix case where cache == undefined
lib/make.js
lib/make.js
"use strict"; var _ = require('lodash') , Promise = require('bluebird') , winston = require('winston') , config = require('config') , path = require('path') , url = require('url') , uuid = req...
JavaScript
0.999535
@@ -3753,14 +3753,25 @@ e = -! +( cache + === false) %7C%7C
31e2010608ba40a2b73c27cab3189e78826879c2
Update mongo-storage.js (#6811)
lib/storage/mongo-storage.js
lib/storage/mongo-storage.js
'use strict'; const MongoClient = require('mongodb').MongoClient; const mongo = { client: null, db: null, }; function init(env, cb, forceNewConnection) { function maybe_connect(cb) { if (mongo.db != null && !forceNewConnection) { console.log('Reusing MongoDB connection handler'); // If there ...
JavaScript
0
@@ -660,121 +660,19 @@ nst -timeout = 10 * 1000;%0A const options = %7B%0A connectTimeoutMS: timeout,%0A socketTimeoutMS: timeout, +options = %7B %0A @@ -970,19 +970,18 @@ hed -a connect -ed +ion to @@ -2571,31 +2571,8 @@ _URI - ' + env.storageURI + ' see
a7b799d9d6ebdef54787ed872c39311a1adf0c79
Handle numeric member expressions in Path.prototype.needsParens.
lib/path.js
lib/path.js
var assert = require("assert"); var n = require("./types").namedTypes; function Path(node, parent) { assert.ok(this instanceof Path); n.Node.assert(node); if (parent) { assert.ok(parent instanceof Path); } else { parent = null; } Object.defineProperties(this, { node: { ...
JavaScript
0
@@ -63,16 +63,65 @@ edTypes; +%0Avar builtIn = require(%22ast-types%22).builtInTypes; %0A%0Afuncti @@ -1095,24 +1095,199 @@ rue;%0A %7D%0A%0A + if (n.Literal.check(node) &&%0A builtIn.number.check(node.value) &&%0A n.MemberExpression.check(parent) &&%0A parent.object === node)%0A re...
e120ecb09a92b2fc47796810ac63a0e1c5ce1d10
Move redirect to end of promise stack
lib/stripe/handlers/index.js
lib/stripe/handlers/index.js
'use strict'; //Inspiration from http://gaarf.info/2013/06/25/securing-stripe-webhooks-with-node-js/ // Remove once finished testing // var cardToFail = { // number: '4000000000000341', // exp_month: 08, // exp_year: 2018, // cvc: 857 // }; var Promise = require('rsvp').Promise; module.exports = function (co...
JavaScript
0
@@ -2465,39 +2465,8 @@ %7D%0A - res.redirect('/');%0A @@ -2683,16 +2683,68 @@ ns.plan%0A + %7D, function()%7B%0A res.redirect('/');%0A
4614d496ad4f8e7532902d2de2efa4bca3428283
fix for peer
lib/peer.js
lib/peer.js
var _ = require('icebreaker') var Swarm = require('./swarm') var url = require('url') var PeerInfo = require('./peerInfo') var Logger = require('./logger') var DHT = require('./dht') var DB = require('./db') var ms = require('ms') var paramap = require('pull-paramap') var _ = require("icebreaker") function Peer(config...
JavaScript
0
@@ -1254,17 +1254,8 @@ -class t%7B%7D %0A
c04795da5e6b0a41c57251c3d3caae1ec6895225
add post.comments() method
lib/post.js
lib/post.js
/** * Module dependencies. */ var Like = require('./like'); var Reblog = require('./reblog'); var debug = require('debug')('wpcom:post'); /** * Post methods * * @param {String} id * @param {String} sid site id * @param {WPCOM} wpcom * @api public */ function Post(id, sid, wpcom){ if (!(this instanceof Po...
JavaScript
0.000024
@@ -87,24 +87,60 @@ ./reblog');%0A +var Comment = require('./comment');%0A var debug = @@ -3057,17 +3057,16 @@ Reblog( - this._id @@ -3081,32 +3081,297 @@ sid, this.wpcom) +;%0A%7D;%0A%0A/**%0A * Return recent comments%0A *%0A * @param %7BObjecy%7D %5Bquery%5D%0A * @param %7BString%7D id%0A * @api public%0A */%...
8d300bb57e8192aba2a55677c8b3ed2460d5ae66
Add missing line break.
test/unit/connectSpec.js
test/unit/connectSpec.js
'use strict'; var expect = require('chai').expect, connect = require('../../lib/connect'); describe('connect', function () { var validTestCases = [ { description: 'return a minimal connection object', input: 'anyhost', expectedConnection: { ...
JavaScript
0.000011
@@ -845,16 +845,37 @@ assword' +%0A %7D,%0A
c867563ce5c8e75ed85f578033f5fcd1ab254106
Improve rendering
renderer.js
renderer.js
const { app, globalShortcut } = require('electron').remote; const { state, logs, updateUI } = require('./src/state'); const { init: initWatcher } = require('./src/watcher'); const { init: initSpy } = require('./src/spy'); // initSpy(); initWatcher(); require('./src/render'); // app.on('ready', function () { // // })...
JavaScript
0.000009
@@ -1,16 +1,19 @@ +// const %7B app, glo @@ -11,24 +11,8 @@ app -, globalShortcut %7D = @@ -263,51 +263,8 @@ );%0A%0A -// app.on('ready', function () %7B%0A//%0A// %7D);%0A %0A//
df697f195870eb2f46cc83e3d1651a2fcd686255
fix merge mistake
src/handler/TouchZoom.js
src/handler/TouchZoom.js
/* * L.Handler.TouchZoom is used internally by L.Map to add touch-zooming on Webkit-powered mobile browsers. */ L.Handler.TouchZoom = L.Handler.extend({ enable: function() { if (!L.Browser.mobileWebkit || this._enabled) { return; } L.DomEvent.addListener(this._map._container, 'touchstart', this._onTouchS...
JavaScript
0.000482
@@ -3183,13 +3183,8 @@ %0A%09%7D%0D%0A%7D); -%0A%7D);%0A
d05ff7d23830fdd0bdb4563be1b4284892c3b9c1
Fix read based on tests
lib/read.js
lib/read.js
'use strict'; var fs = require('fs'); var path = require('path'); var through = require('through2'); function read(fn) { var options = arguments.lenght > 1 ? arguments[1] : 'utf8'; return through.obj(function (file, e, cb) { if (options === null || typeof options === 'string') { if (file.stats....
JavaScript
0.000003
@@ -41,39 +41,8 @@ ');%0A -var path = require('path');%0A var @@ -93,26 +93,36 @@ d(fn +, options ) %7B%0A -var +if (! options = ar @@ -121,55 +121,52 @@ ons -= arguments.lenght %3E 1 ? arguments%5B1%5D : +&& options !== null) %7B%0A options = 'utf8'; %0A%0A @@ -161,16 +161,20 @@ 'utf8'; +%0A ...
adc7d744340076ab15dbac916c9ca22e07e589ce
update file /lib/saml.js
lib/saml.js
lib/saml.js
var express = require('express'); var bodyParser = require('body-parser'); var cors = require('cors'); var xml2js = require('xml2js'); var fh = require('fh-mbaas-api'); var parseString = xml2js.parseString; var stripPrefix = xml2js.processors.stripPrefix; var normalize = xml2js.processors.normalize; var path = require(...
JavaScript
0.000001
@@ -699,23 +699,17 @@ -return request( +newUrl = path @@ -731,16 +731,73 @@ eq.path) +;%0A console.log(newUrl);%0A return request.post(newUrl ).pipe(r
60ac07fbd4e37df13ce33a4c73cfefa866453a22
Add Test send message success test case
test/view.sendmessage.js
test/view.sendmessage.js
'use strict'; var express = require('express'); var request = require('supertest'); var logger = require('log4js').getLogger('Unit-Test'); exports['Test recevie message'] = function(test){ }
JavaScript
0
@@ -134,17 +134,16 @@ est');%0A%0A -%0A exports%5B @@ -152,23 +152,20 @@ est -recevie +send message '%5D = @@ -160,16 +160,24 @@ message + success '%5D = fun @@ -195,6 +195,119 @@ %7B%0A%0A%09 +var sendObject = %7B%0A%09%09message:%7B%0A%09%09%09receiver:'@tester';%0A%09%09%09text:'Hello World!';%0A%09%7D%0A...
dd6df46c39301e865364753f2c5e7fbbc4311858
improve generic methods building.
lib/site.js
lib/site.js
/** * Module dependencies. */ var Post = require('./post'); var Media = require('./media'); var debug = require('debug')('wpcom:site'); /** * Resources array */ var resources = [ 'categories', 'comments', 'follows', 'media', 'posts', 'stats', 'tags', 'users' ]; /** * Create a Site instance * ...
JavaScript
0
@@ -256,16 +256,57 @@ stats',%0A + %5B 'statsVisitsList', 'stats/visits' %5D,%0A 'tags' @@ -829,12 +829,15 @@ ng%7D -name +subpath %0A * @@ -899,72 +899,18 @@ ion( -resource) %7B%0A debug('builind %60site.%25sList()%60 method', resource); +subpath) %7B %0A%0A @@ -930,23 +930,19 @@ rn the %3C -resourc +na...
cd66ebcaccae8057f2cfb2c37b59779e1a852fd1
Add ideas for page transformations.
lib/site.js
lib/site.js
var Site , fs = require('fs') , path = require('path') , config = JSON.parse(fs.readFileSync('_config.json', 'utf8')) , glob = require('glob') , minimatch = require('minimatch') , File = require('./file') Site = { build: function() { // var matcher = new Glob('**/*', {dot: true}) // matcher.on...
JavaScript
0
@@ -248,846 +248,8 @@ %7B%0A%0A - // var matcher = new Glob('**/*', %7Bdot: true%7D)%0A%0A // matcher.on('match', function(filename) %7B%0A // // ignore files or directories at the root%0A // // level that start with an underscore%0A // if (filename%5B0%5D == '_') return%0A%0A // // ignore d...
e66f71aabeb4f25c216768a89081fd3b88f60988
Remove unneccessary encoding type.
lib/soap.js
lib/soap.js
/* * Copyright (c) 2011 Vinay Pulim <vinay@milewise.com> * MIT Licensed */ var Client = require('./client').Client, Server = require('./server').Server, WSDL = require('./wsdl').WSDL, http = require('./http'), fs = require('fs'), crypto = require('crypto'); var _wsdlCache = {}; function _reque...
JavaScript
0.000389
@@ -3410,120 +3410,8 @@ once - EncodingType=%5C%22http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary%5C%22 %3E%22+n
57e6351b72d5c1e73f0aad75b54cd8998c0c16dd
Fix graphrows rendering to late as you scrolldown
npactweb/npactweb/static/js/graphs/graph.js
npactweb/npactweb/static/js/graphs/graph.js
angular.module('npact') .controller('npactGraphContainerCtrl', function($scope, $element, $window, $log, $timeout, npactConstants, Utils, GraphConfig, Evt, GraphingCalculator) { 'use strict'; var getWidth = function() { ...
JavaScript
0
@@ -3472,17 +3472,17 @@ slack = -5 +2 0, // ho @@ -4101,16 +4101,17 @@ th.ceil( +( winHeigh @@ -4111,16 +4111,25 @@ inHeight + + slack) / graph
c661e51be4d6c7e005a1ba210f84ee666ac636a3
read Content-Type header in camel case, which fixes #2
response.js
response.js
'use strict'; var util = require('util'); var streams = require('memory-streams'); var contentTypes = require('./contentTypes'); /** * An in memory HTTP Response that captures any data written to it * so that it can be easily serialised into a lambda payload * * @callback done called when end is called on this re...
JavaScript
0
@@ -2360,17 +2360,17 @@ rs%5B' -c +C ontent- -t +T ype' @@ -2832,8 +2832,9 @@ onvert%0A%7D +%0A
0fbe4bb846364b2208da9759704b71d00219dfc7
change adding parents
browscap.js
browscap.js
var jsonfile = './browscap.preprocessed.json'; exports.setJson = function (filename) { jsonfile = filename; }; exports.getBrowser = function (userAgent) { var browsers, patterns, re, key, found, matches, browsersindex; patterns = require(jsonfile).patterns; browsers = require(jsonfile).browsers; // Test u...
JavaScript
0.000001
@@ -1320,23 +1320,33 @@ +var browser +Parent Data = J @@ -1426,32 +1426,38 @@ arent in browser +Parent Data) %7B%0A @@ -1464,32 +1464,38 @@ if (!browser +Parent Data.hasOwnPrope @@ -1548,32 +1548,129 @@ %0A %7D%0A%0A + if (browser.hasOwnProperty(propertyParent)) %7B%0...
f6ce888daee52833d50c7aa3bc22bc258b6b50b5
Add payload endpoint to redis caching
src/middleware/redis.js
src/middleware/redis.js
const url = require('url'); /** * Declare options for Redis with remote server */ let options; if (process.env.REDISCLOUD_URL) { const redisURL = url.parse(process.env.REDISCLOUD_URL); options = { routes: [{ path: '/v2/launches', expire: 30, }, { path: '/v2/launches/(.*)', expi...
JavaScript
0
@@ -982,32 +982,92 @@ e: 30,%0A %7D, %7B%0A + path: '/v2/payloads/(.*)',%0A expire: 30,%0A %7D, %7B%0A path: '/v2
0f1c7e18fae93cec4c563b399f9465a3e5c2be55
rename Cell to CellModel [as it is model]
src/model/cell_model.js
src/model/cell_model.js
export default class Cell { constructor(coordinate) { this.coordinate = coordinate; } static getCoordinateCharacter(coordinate) { return coordinate.charAt(0); } static getCoordinateDigit(coordinate) { return parseInt(coordinate.substring(1)); } }
JavaScript
0
@@ -18,16 +18,21 @@ ass Cell +Model %7B%0A c
b4956188cec7a0cccee5859533a90be8ccfa90df
Update vmConstants.js
lib/util/vmConstants.js
lib/util/vmConstants.js
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
JavaScript
0
@@ -1017,25 +1017,25 @@ VERSION: '2. -0 +2 ',%0A IAAS_
62c38b758231d5d4c1bf02d07e0d8fac3cb5cd83
Fix to saml request to allow variance in idp authentication method.
lib/util.js
lib/util.js
var zlib = require('zlib'); var crypto = require('crypto'); var xmldom = require('xmldom'); var xmlCrypto = require('xml-crypto'); var xpath = require('xpath'); var _ = require('lodash'); function generateUniqueId() { var chars = "abcdef0123456789"; var uniqueID = ""; for (var i = 0; i < 20; i++) { uni...
JavaScript
0
@@ -4233,16 +4233,62 @@ ssRef%22 : + settings.idp.authenticationContextClassRef %7C%7C %22urn:oa
59723054908ee377b00277040b8f855d2a32d61d
tweak exam-script
static/js/exam-script.js
static/js/exam-script.js
$(".examTime").each(function() { let fromNow = moment.unix(parseInt($(this).data("time"))); if (moment().isAfter(fromNow)) { $(this).text("done!"); return; } $(this).text(fromNow.fromNow(true)); });
JavaScript
0
@@ -34,23 +34,24 @@ let -fromNow +examTime = momen @@ -115,23 +115,24 @@ isAfter( -fromNow +examTime )) %7B%0A @@ -198,23 +198,24 @@ s).text( -fromNow +examTime .fromNow
9a5975e8815311bf20431dedb29838f347704f8c
Add implicit component name in helper component
src/helpers/component.js
src/helpers/component.js
'use strict'; /*globals Jskeleton, _ */ /* jshint unused: false */ Jskeleton.registerHelper('@component', function(params, env) { // env.enviroment._app; // env.enviroment.channel; //env.enviroment._view, view-controller // params = params || {}; ...
JavaScript
0.00812
@@ -141,16 +141,22 @@ ams, env +, args ) %7B%0A @@ -343,16 +343,56 @@ ntName = + typeof args%5B0%5D === 'string' ? args%5B0%5D : params.
fc5e178f2c0f96fd5eb19f544ca25108f5b43f22
bring back popLastObject for readability
lib/util.js
lib/util.js
'use strict'; var reduce = require('lodash.reduce'); exports = module.exports = {}; // dependencies // exports.type = require('utils-type'); exports.clone = require('lodash.clone'); exports.merge = require('lodash.merge'); exports.inherits = require('inherits'); exports.asyncDone = require('async-done'); // assorte...
JavaScript
0
@@ -1516,12 +1516,130 @@ teClass;%0A%7D;%0A +%0Aexports.popLastObject = function(calls)%7B%0A return exports.type(calls%5Bcalls.length-1%5D).plainObject && calls.pop();%0A%7D;%0A
341c5bd6be808e26a86056fb88fe4dcb16136fcd
disable label for login page
src/foam/nanos/u2/navigation/TopNavigation.js
src/foam/nanos/u2/navigation/TopNavigation.js
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
JavaScript
0
@@ -926,20 +926,16 @@ ports: %5B -%0A 'menuDA @@ -941,20 +941,16 @@ AO', -%0A 'user', %0A @@ -949,21 +949,23 @@ er', -%0A 'log -o'%0A +inSuccess' %5D,%0A @@ -2631,31 +2631,8 @@ ()%7B%0A - var self = this;%0A @@ -2638,18 +2638,16 @@ this%0A - .a @@ -2672,26 +2672,24 @@ ...
ce2bb0fe162d904ed31bd8d7f91a8648858dea3f
Update oss transformer
packager/transformer.js
packager/transformer.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * Note: Thi...
JavaScript
0.000001
@@ -463,16 +463,18 @@ ts/babel +-6 /inline-
47ddd3217167c2bb2bda9e67b1cb3fe0cbad9fcb
remove unuse style
src/foam/u2/detail/ChoiceSectionDetailView.js
src/foam/u2/detail/ChoiceSectionDetailView.js
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.detail', name: 'ChoiceSectionDetailView', extends: 'foam.u2.detail.AbstractSectionedDetailView', requires: [ 'foam.core.ArraySlot', 'foam.u2.borders...
JavaScript
0.00051
@@ -310,506 +310,142 @@ .u2. -borders.CardBorder',%0A 'foam.u2.detail.SectionView',%0A 'foam.u2.layout.Grid',%0A 'foam.u2.layout.GUnit',%0A 'foam.u2.Tab',%0A 'foam.u2.Tabs',%0A 'foam.u2.view.ChoiceView'%0A %5D,%0A%0A css: %60%0A %5E .foam-u2-Tabs-content %3E div %7B%0A background: white;%0A...
36798f8fb626dfe8ceb54716b95269eb751d65a2
Test1
Context.js
Context.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/. * * Owner: mark@famo.us * @license MPL 2.0 * @copyright Famous Industries, Inc. 2014 */ define(function(require,...
JavaScript
0.999894
@@ -633,17 +633,17 @@ o = %5B0, -1 +0 %5D;%0A%0A
cd066d294ac7f4733e042d52ded4eb194b4d2209
support render base64 image
lib/util.js
lib/util.js
'use strict'; var path = require('path') module.exports = { type: function (r) { return Object.prototype.toString.call(r).match(/\[object ([\w]+)\]/)[1].toLowerCase() }, absoluteURI: function (url) { if (url.startsWith('data:image/')) return url; else if (/^\w+\:\/\//.test(url) || /^\//.test(url) ||...
JavaScript
0
@@ -215,72 +215,14 @@ if -(url.startsWith('data:image/')) return url;%0A%09 else if (/%5E%5Cw+ -%5C :%5C/%5C @@ -270,10 +270,38 @@ A-Z%5D -%5C : +/.test(url) %7C%7C /%5Edata:image%5C/ /.te
49811c3004363e6334ccd14c4d4749f1f28ff3de
update files
lib/util.js
lib/util.js
/** * Created by nuintun on 2015/4/27. */ 'use strict'; var path = require('path'); var util = require('util'); var debug = require('debug')('gulp-css'); var plugins = require('./plugins/index'); var gutil = require('@nuintun/gulp-util'); var join = path.join; var colors = gutil.colors; var write = process.stdout....
JavaScript
0.000001
@@ -105,24 +105,64 @@ re('util');%0A +var css = require('@nuintun/css-deps');%0A var debug =
29161c70366968b4ebbbc1317298511d61735d32
make sure we only output on exit, if there's a failure
lib/vows.js
lib/vows.js
// // Vows.js - asynchronous event-based BDD for node.js // // usage: // // var vows = require('vows'); // // vows.describe('Deep Thought').addVows({ // "An instance of DeepThought": { // topic: new DeepThought, // // "should know the answer to the ultimate question o...
JavaScript
0.000004
@@ -3687,16 +3687,25 @@ tal: 0 %7D +, failure ;%0A%0A v @@ -4006,24 +4006,56 @@ == 'end') %7B%0A + failure = true;%0A @@ -4340,29 +4340,23 @@ if ( -results.total +failure ) %7B%0A
c33e93b7056451ba72ad232b01e9ed2649feed58
Fix coding style in lib/walk.js.
lib/walk.js
lib/walk.js
// Courtesy of [stygstra](https://gist.github.com/514983) var fs = require("fs"); var path = require("path"); module.exports = (function() { function walk(dirname, options, callbacks) { var counter = 0; var walkInternal = function(dirname, options, callbacks) { callbacks = callbacks || {}; options = op...
JavaScript
0.000001
@@ -450,32 +450,36 @@ !== 'function') + %7B callbacks.fil @@ -567,24 +567,25 @@ es) %7B%0A%09%09%09%09if + (err) %7B%0A%09%09%09%09 @@ -695,16 +695,25 @@ counter) + %7B%0A%09%09%09%09%09 callbac @@ -727,24 +727,31 @@ shed(null);%0A +%09%09%09%09%09%7D%0A %09%09%09%09%09return; @@ -930,16 +930,17 @@ %0...
ec26f034ad8acf183b68f97a53856d3d5af6d750
enable dynamic namespace
libs/Hub.js
libs/Hub.js
// Imports var _ = require('lodash'); var utils = require('./utils'); // WebSocket Hub Class function Hub (options) { var self = this; options || (options = {}); if(options.io) this.io = options.io; if(!this.io){ return; } this.io.of(this.namespace).on('connection', this._connection.bind(this)...
JavaScript
0.000002
@@ -120,29 +120,8 @@ ) %7B%0A - var self = this;%0A @@ -199,25 +199,144 @@ if( -!this.io)%7B return +options.namespace) this.namespace = options.namespace;%0A if(!this.io)%7B throw new Error('Hub class require constructor with io object') ; %7D%0A @@ -508,16 +508,21 @@ e: '/',%0A + %0A init
0687f0efe0a0e00e6087afa98f4bac48644b9934
Update knex production config
knexfile.js
knexfile.js
// Update with your config settings. module.exports = { development: { client: 'postgresql', connection: { database: 'power_ballot_development', user: '', password: '', }, }, staging: { client: 'postgresql', connection: { database: 'my_db', user: 'usern...
JavaScript
0
@@ -531,96 +531,32 @@ on: -%7B%0A database: 'my_db',%0A user: 'username',%0A password: 'password',%0A %7D +process.env.DATABASE_URL ,%0A
25c038991403facc6074682b6b065b0799f498e5
debug date time removed. Moubot now runs in real time
callback.js
callback.js
var moment = require('moment'); var helper = require('./helperFunctions'); var settings = require('./settings'); var callback = function(error, response, body){ if (!error && response.statusCode==200) { //We will need the date when deetrmining when to say something //We want Moubot to speak when there is...
JavaScript
0
@@ -472,16 +472,18 @@ nly%0A +// RightNow @@ -517,16 +517,17 @@ 8:15');%0A +%0A var
b35917bb206d5bc69fad62f2324221d52d1d7310
Add documentation and semicolons
cangraph.js
cangraph.js
/** * Cangraph * * Graphing and function plotting for the HTML5 canvas. Main function plotting * engine was taken from the link below and modified. * * @link http://www.javascripter.net/faq/plotafunctiongraph.htm */ (function ($) { function Cangraph(canvasId) { var canvas; this.set('canvasI...
JavaScript
0.000017
@@ -233,16 +233,169 @@ ($) %7B%0A%0A + /**%0A * Constructor and initialization%0A *%0A * @class Cangraph%0A *%0A * @param %7BString%7D canvasId The canvas element to draw on%0A */%0A func @@ -1909,32 +1909,33 @@ .stroke();%0A %7D +; %0A%0A Cangraph.p @@ -2297,24 +2297,25 @@ ok...
10b87d27dc83c7fc996ea8752e18d38dd3462c72
Revert to original script
launcher.js
launcher.js
#!/usr/bin/env node // aquila-server launcher require("shelljs/global"); var config = require("shelljs").config; var path = require("path"); // get args for passing to aquila-server var args = process.argv.slice(2).join(" "); var home = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME']; var killal...
JavaScript
0.000006
@@ -1405,56 +1405,8 @@ ID;%0A -var intervalIDMongoose;%0A%0Avar intervalChosen = 0; %0A%0A// @@ -1818,255 +1818,56 @@ -if (intervalChosen == 0)%0A %7B%0A clearInterval(intervalID);%0A clearInterval(intervalIDMongoose);%0A callback();%0A %7D else if (intervalChosen == 1)%0A %7...
305118182a6e1bb37b295b47f5f9d8654351a15e
tweak comment
src/mixin/Animatable.js
src/mixin/Animatable.js
/** * @module zrender/mixin/Animatable */ define(function(require) { 'use strict'; var Animator = require('../animation/Animator'); var util = require('../core/util'); var isString = util.isString; var isFunction = util.isFunction; var isObject = util.isObject; var log = require('../core...
JavaScript
0
@@ -3249,19 +3249,16 @@ * So -if do not u
87e46fc1e9c84192df4e037809aca289f4d3788b
Add notify on Reset Password
pages/reset-password.js
pages/reset-password.js
'use strict' import { Component } from 'react' import withRedux from 'next-redux-wrapper' import PropTypes from 'prop-types' import Router from 'next/router' import { isLogged } from './../services/auth' import Page from './../layouts/page' import { UiButton, TextInput, Row } from './../components/ui' import { colors...
JavaScript
0
@@ -151,16 +151,50 @@ /router' +%0Aimport Alert from 'react-s-alert' %0A%0Aimport @@ -303,16 +303,24 @@ put, Row +, Notify %7D from @@ -644,16 +644,107 @@ onent %7B%0A + constructor() %7B%0A super()%0A%0A this.resetPassword = this.resetPassword.bind(this)%0A %7D%0A%0A compon @@ -917,15 +917,13 @@ h('...
a9dce030742385285a243b8769f49c94c5942838
Fix error message typo in useSelector ('You must pass a selector...). (#1581)
src/hooks/useSelector.js
src/hooks/useSelector.js
import { useReducer, useRef, useMemo, useContext, useDebugValue } from 'react' import { useReduxContext as useDefaultReduxContext } from './useReduxContext' import Subscription from '../utils/Subscription' import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect' import { ReactReduxContext } from '...
JavaScript
0.000021
@@ -3063,17 +3063,16 @@ Selector -s %60)%0A %7D
80fd852165aaf0335452c6d02fc54d9e58fa012a
remove leftover refresh token property
lib/actions/token/refresh_token.js
lib/actions/token/refresh_token.js
const _ = require('lodash'); const { InvalidGrantError } = require('../../helpers/errors'); const presence = require('../../helpers/validate_presence'); const instance = require('../../helpers/weak_cache'); module.exports.handler = function getRefreshTokenHandler(provider) { return async function refreshTokenRespons...
JavaScript
0
@@ -1955,51 +1955,8 @@ ms,%0A - onlyPKCE: refreshToken.onlyPKCE,%0A
85bdacb7cfd5954eada500b7959c4f67a3fe9d1e
Fix truncation + Replace born with abbreviation
lib/components/artist/biography.js
lib/components/artist/biography.js
/* @flow */ 'use strict'; import Relay from 'react-relay'; import React from 'react'; import { View, Text, Dimensions } from 'react-native'; import removeMarkdown from 'remove-markdown'; import Headline from '../text/headline'; import SerifText from '../text/serif'; const sideMargin = Dimensions.get('window').width...
JavaScript
0.000012
@@ -822,20 +822,42 @@ 0 %7D%7D -%3E%7Bart + numberOfLines=%7B0%7D%3E%7Bth is -t .bio +Text() %7D%3C/S @@ -1065,16 +1065,114 @@ ll;%0A %7D%0A + %0A bioText() %7B%0A const bio = this.props.artist.bio;%0A return bio.replace(%22born%22, %22b.%22);%0A %7D%0A %7D%0A%0Aexpor
55772a6bc5b0946a702d9d33451b1a8ffc588eec
Fix prop-type validation problem in StylizedMap
lib/components/map/stylized-map.js
lib/components/map/stylized-map.js
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import Transitive from 'transitive-js' import { getActiveSearch, getActiveItineraries } from '../../util/state' import { isBikeshareStation, itineraryToTransitive } from '../../util/map' const extendedStyles = { segments: { ...
JavaScript
0.000001
@@ -1603,22 +1603,22 @@ opTypes. -object +number ,%0A ro
2f122acb48b738c26297b2ffb7e29a6619d6ca81
don't need word boundary here
src/gwt/acesupport/acemode/r_highlight_rules.js
src/gwt/acesupport/acemode/r_highlight_rules.js
/* * r_highlight_rules.js * * Copyright (C) 2009-12 by RStudio, Inc. * * The Initial Developer of the Original Code is * Ajax.org B.V. * Portions created by the Initial Developer are Copyright (C) 2010 * the Initial Developer. All Rights Reserved. * * Unless you have received this program directly from RStudi...
JavaScript
0.998787
@@ -4002,19 +4002,16 @@ Z0-9._%5D* -%5C%5Cb %22%0A
5cd0710489d3c775d65d4df651a017c79d18836e
Update powerup types
lib/Game.js
lib/Game.js
var winston = require('winston'), entities = require('./Entities.js'), utils = require('./Utils.js'); /* * General game handler */ function Game(client1, client2, game_type) { this.players = []; this.balls = []; this.powerups = []; this.tick = 0; this.tick_duration = 50; this.game_l...
JavaScript
0
@@ -486,16 +486,44 @@ %22beer%22 +,%0A %22freeze_snake%22 %0A @@ -654,18 +654,16 @@ -/* 'grow_sn @@ -723,18 +723,16 @@ _snake', -*/ %0A @@ -752,16 +752,18 @@ y_snake' +, %0A @@ -767,18 +767,16 @@ -/* 'flip_sc @@ -800,18 +800,16 @@ 'beer' -*/ %0A
95788a331201fba2cfa4c17a5e98ad5e5903faa4
Enable List.contains() to be O(1)
lib/List.js
lib/List.js
'use strict'; class List { constructor (siblingNames) { this.first = this.last = null; this.length = 0; this.siblings = siblingNames || List.defaultSiblings; } append (child) { this.insert(child, null); } contains (child) { return this.indexOf(child) > -1;...
JavaScript
0.999975
@@ -176,24 +176,190 @@ ultSiblings; +%0A%0A // Since items can be in multiple lists (based on different sibling names),%0A // we need a symbol of our own:%0A this.tagSym = Symbol('ListTag'); %0A %7D%0A%0A @@ -458,28 +458,73 @@ urn -this. +child && child%5Bthis.tagSym%5D === this;%0A %...
c637ef8ce922e0ba0bf3828a56b3b71fdc623310
change empty string to false to simplify things a little
pianist.js
pianist.js
/* * Pianist.js - a library that is good with keys * Lee James Machin, 2012 */ var Pianist = (function() { var Pianist; function isEditable(target) { return target.hasAttribute('contenteditable') || ['input', 'textarea'].indexOf(target.tagName.toLowerCase()) > 0; } Pianist = function Pianis...
JavaScript
0.000076
@@ -1201,27 +1201,16 @@ odifiers -.length %3E 0 ) %7B%0A @@ -1742,10 +1742,13 @@ ) : -'' +false ;%0A
715083676ab3c79e8e29968e8cffe94f012db5cb
fix format tab application of values supporting if not defined
src/components/edit-format-window.js
src/components/edit-format-window.js
'use strict' // var units = require('../units') var editFormatTabs = require('./edit-format-tabs') var Format = require('../classes/Format') module.exports = openMainWinFunction /** * Make the openMainWin function as a closure * @method * @param {Editor} editor The tinymce active editor instance * @returns {func...
JavaScript
0
@@ -1315,16 +1315,162 @@ %7D)%0A%0A + /**%0A * Open edit format window submit callback%0A *%0A * @TODO implement heightUnit%0A * @TODO implement widthUnit (etc...)%0A */%0A func @@ -1597,16 +1597,17 @@ tation: +( d.orient @@ -1611,16 +1611,46 @@ entation +) ? d.orientation : 'portra...
9fc0251eeeaea096113743e9ebd68fe50a714118
Fix this.toHTMLAsync call in boilerplate-generator (#9838)
packages/boilerplate-generator/generator.js
packages/boilerplate-generator/generator.js
import { readFile } from 'fs'; import { create as createStream } from "combined-stream2"; import WebBrowserTemplate from './template-web.browser'; import WebCordovaTemplate from './template-web.cordova'; // Copied from webapp_server const readUtf8FileSync = filename => Meteor.wrapAsync(readFile)(filename, 'utf8'); c...
JavaScript
0.000006
@@ -1328,16 +1328,21 @@ return +this. toHTMLAs
73ff17f1399c47686c28f9a36d624c0773dd16f2
remove attr multiple
library/CM/FormField/File.js
library/CM/FormField/File.js
/** * @class CM_FormField_File * @extends CM_FormField_Abstract */ var CM_FormField_File = CM_FormField_Abstract.extend({ _class: 'CM_FormField_File', events: { 'click .deleteFile': function(e) { $(e.currentTarget).closest('.preview').remove(); } }, ready: function() { var field = this; var $input =...
JavaScript
0.000158
@@ -627,134 +627,8 @@ 0;%0A%0A -%09%09if ((navigator.userAgent.match(/iPhone/i)) %7C%7C (navigator.userAgent.match(/iPod/i))) %7B%0A%09%09%09$input.removeAttr('multiple');%0A%09%09%7D%0A %0A%09%09$
a68baa0eb2019ed5f7843660cc1e6c8ccbadd5f2
Fix event handler
extensions/google_properties_menu/contentjs/doodles.js
extensions/google_properties_menu/contentjs/doodles.js
var runPacman = function() { $(this).addClass("selected"); $("#choose_game").hide(); $("#pacman_selected").show(); // and send the ROS message sendSwitchROSMessage($(this)); } $('#pacman').click(function(){ runPacman(); }); $('#pacman').addEventListener( 'touchstart', runPacman, true );
JavaScript
0.000042
@@ -243,17 +243,39 @@ );%0A%7D);%0A%0A -$ +document.getElementById ('#pacma
b9b167957d5ad2ae66df9551d53406162ab55f7b
Remove unused variable
src/halresource.spec.js
src/halresource.spec.js
'use strict'; describe('HalResource', function () { beforeEach(module('hypermedia')); // Setup var $log, $q, $rootScope, HalResource, ResourceContext, mockContext, uri, resource; beforeEach(inject(function (_$log_, _$q_, _$rootScope_, _HalResource_, _ResourceContext_) { $log = _$log_; $q = _$q_; ...
JavaScript
0.000015
@@ -139,25 +139,8 @@ rce, - ResourceContext, moc @@ -240,27 +240,8 @@ rce_ -, _ResourceContext_ ) %7B%0A @@ -342,49 +342,8 @@ e_;%0A - ResourceContext = _ResourceContext_;%0A
f61de394da5abcb22386eda3ee3d7f35056613df
change data source of count for process definitions.
webapps/ui/cockpit/plugins/base/app/views/processesDashboard/process-definitions.js
webapps/ui/cockpit/plugins/base/app/views/processesDashboard/process-definitions.js
'use strict'; var fs = require('fs'); var template = fs.readFileSync(__dirname + '/process-definitions.html', 'utf8'); module.exports = [ 'ViewsProvider', function(ViewsProvider) { ViewsProvider.registerDefaultView('cockpit.processes.dashboard', { id: 'process-definition', label: 'Deployed Process Definiti...
JavaScript
0
@@ -1967,20 +1967,13 @@ ata. -items.length +count ;%0A
b990a87964bc02c943a6687c3546fece9bfe44c8
remove unused import
src/neo/models/Suite.js
src/neo/models/Suite.js
import { action, observable, computed } from "mobx"; import uuidv4 from "uuid/v4"; import SortBy from "sort-array"; import TestCase from "./TestCase"; export default class Suite { id = null; @observable name = null; @observable _tests = []; constructor(id = uuidv4(), name = "Untitled Suite") { this.id = i...
JavaScript
0.000001
@@ -112,43 +112,8 @@ ay%22; -%0Aimport TestCase from %22./TestCase%22; %0A%0Aex
bda49e3a7d7458130b7e5b6966859827a778a36f
Remove non-essential comma
src/js/view/organizers/upperButtonsOrganizer.js
src/js/view/organizers/upperButtonsOrganizer.js
import * as PIXI from "pixi.js"; import {default as h} from "../../helpers"; import {buttonBuilder} from "../builders"; export default function upperButtonsOrganizer( state={ global: {mode: "IDLE", step: 0}, upperButton: {alt: "", status: 0}, } ) { const container = new PIXI.Container(); for(let b of ...
JavaScript
0.999998
@@ -245,17 +245,16 @@ atus: 0%7D -, %0A %7D%0A) %7B
d709dca0be6cfc25845960e38e514d40d4afacf1
fix `String#split` `limit` argument conversion
packages/core-js/modules/es.regexp.split.js
packages/core-js/modules/es.regexp.split.js
'use strict'; // @@split logic require('../internals/fix-regexp-well-known-symbol-logic')('split', 2, function (defined, SPLIT, nativeSplit) { var isRegExp = require('../internals/is-regexp'); var internalSplit = nativeSplit; var arrayPush = [].push; var LENGTH = 'length'; if ( 'abbc'.split(/(b)*/)[1] == ...
JavaScript
0.000006
@@ -895,16 +895,26 @@ arator)) + %7B%0A return @@ -950,26 +950,75 @@ rator, limit -); + !== undefined ? limit %3E%3E%3E 0 : 4294967295);%0A %7D %0A var o
b3a28290dfa37abb0dd068bdc7555883588980e5
add callbacks to all command.execute functions
src/businessService.js
src/businessService.js
"use strict"; var Command = require('./command'); var BusinessService = function(dataProxy) { //if (!dataProxy instanceof DataProxy) throw 'dataproxy must ..'; if (this instanceof BusinessService) { this.dataProxy = dataProxy; } else { return new BusinessService(dataProxy); } }; BusinessService.proto...
JavaScript
0.000001
@@ -689,32 +689,36 @@ ethod: function( +done ) %7B%0A retu @@ -736,32 +736,38 @@ __getAll(context +, done );%0A %7D%0A %7D @@ -1121,32 +1121,36 @@ ethod: function( +done ) %7B%0A retu @@ -1173,32 +1173,38 @@ ById(id, context +, done );%0A %7D%0A %7D @@ -2002,32 +2002,36 @@ ethod: ...
7c59974ec7c5f73ea449bf7ca40d07879f892634
fix prefetching dynamic imports from packages They fail because : gets replaced by _ Issue 11157
packages/dynamic-import/dynamic-versions.js
packages/dynamic-import/dynamic-versions.js
// This magic double-underscored identifier gets replaced in // tools/isobuild/bundler.js with a tree of hashes of all dynamic // modules, for use in client.js and cache.js. var versions = __DYNAMIC_VERSIONS__; exports.get = function (id) { var tree = versions; var version = null; id.split("/").some(function (p...
JavaScript
0
@@ -1860,16 +1860,18 @@ ) %7B%0A + Promise. @@ -1930,36 +1930,759 @@ + return -module.prefetch(id);%0A +new Promise(function(resolve, reject) %7B%0A module.prefetch(id).then((module)=%3Eresolve(module)).catch((err)=%3E%7B%0A // we probably have a : _ mismatch %0A // what...
288efe898acf95f32cb9b394131a20390db79cac
Fix #383 - Display lifetime in main logo
packages/components/components/logo/MainLogo.js
packages/components/components/logo/MainLogo.js
import React from 'react'; import PropTypes from 'prop-types'; import { useSubscription, Href, useConfig } from 'react-components'; import { Link } from 'react-router-dom'; import { APPS, PLAN_SERVICES, CLIENT_TYPES } from 'proton-shared/lib/constants'; import { getPlanName } from 'proton-shared/lib/helpers/subscripti...
JavaScript
0
@@ -268,16 +268,29 @@ PlanName +, hasLifetime %7D from @@ -1114,16 +1114,73 @@ anName = + hasLifetime(subscription)%0A ? 'Lifetime'%0A : getPlan
97f51801be80bd33761afb8dc36d83703a3df9e2
Remove unused code
src/objectify.jquery.js
src/objectify.jquery.js
/** * Form data into javascript object * @author Jim Krayer <jameskrayer@yahoo.com> * @version 0.0.2 */ ;(function ($) { var pluginName = "objectify", defaults = { exclusions: [], sanitizations: false }; $.fn.extend({ objectify: function (exclusions, sanitize) { var formD...
JavaScript
0.000006
@@ -97,11 +97,11 @@ n 0. -0.2 +1.0 %0A */ @@ -122,123 +122,8 @@ ) %7B%0A -%0A var pluginName = %22objectify%22,%0A defaults = %7B%0A exclusions: %5B%5D,%0A sanitizations: false%0A %7D;%0A%0A $. @@ -179,24 +179,25 @@ sanitize) %7B%0A +%0A var fo
1a147130c8b084e4a88737f7a9624c8c11980d56
fix applyOptions
src/html2pug/helpers.js
src/html2pug/helpers.js
const jsdom = require('jsdom-little') function __guard__ (value, transform) { return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined } function __range__ (left, right, inclusive) { let range = [] let ascending = left < right let end = !inclusive ? right : ascending ? right + 1 ...
JavaScript
0.000001
@@ -705,24 +705,16 @@ )%0A if ( -options. numeric @@ -768,24 +768,16 @@ nces = ! -options. numeric @@ -784,24 +784,16 @@ %7D%0A if ( -options. nspaces @@ -833,24 +833,16 @@ arseInt( -options. nspaces) @@ -850,24 +850,16 @@ %7D%0A if ( -options. tabs != @@ -889,24 +889,16 @@ abs = !! -options. tabs %7...
464e9ec6ecc06b33e694621314d65775182faf96
Document the input to an attribution function
src/ol/source/Source.js
src/ol/source/Source.js
/** * @module ol/source/Source */ import BaseObject from '../Object.js'; import SourceState from './State.js'; import {abstract} from '../util.js'; import {get as getProjection} from '../proj.js'; /** * A function that returns a string or an array of strings representing source * attributions. * * @typedef {func...
JavaScript
0.00176
@@ -208,32 +208,86 @@ A function that +takes a %7B@link module:ol/PluggableMap~FrameState%7D and returns a string @@ -289,16 +289,19 @@ tring or +%0A * an arra @@ -332,19 +332,16 @@ g source -%0A * attribu
3814314107f059feaf57c8b829fe811ed86e98aa
update countries microservice
countries/countries.js
countries/countries.js
'use strict'; var _ = require('lodash'); var path = require('path'); var async = require('async'); module.exports = function (options) { var seneca = this; var plugin = 'cd-countries'; var ENTITY_NS = 'cd/countries'; seneca.add({role: plugin, cmd: 'list'}, cmd_list); seneca.add({role: plugin, cmd: 'create'...
JavaScript
0
@@ -92,16 +92,44 @@ async'); +%0Avar http = require('http'); %0A%0Amodule @@ -588,170 +588,527 @@ -seneca.make(ENTITY_NS).list$(query, function(err, response) %7B%0A if(err)%7B%0A return done(err);%0A %7D else %7B%0A return done(null, response);%0A %7D +http.get(%22http://api.geonam...
564768b953e9800faab835312b78c6b0321286c7
Remove postinstall command from commander too
packages/expo-module-scripts/bin/expo-module.js
packages/expo-module-scripts/bin/expo-module.js
#!/usr/bin/env node 'use strict'; const commander = require('commander'); const process = require('process'); commander // Common scripts .command('configure', `Generate common configuration files`) .command( 'typecheck', `Type check the source TypeScript without emitting JS and watch for file changes` ...
JavaScript
0
@@ -542,83 +542,8 @@ pts%0A - .command('postinstall', %60Scripts to run during the %22postinstall%22 phase%60)%0A .c
fa95c3d2e76cc234dd0e57d217d2287e08c715cd
Allow options on createSandbox + don't try/catch errors on afterAppStart callbacks.
lib/aura.js
lib/aura.js
define([ './base', './aura.extensions', './logger' ], function(base, ExtManager, Logger) { var _ = base.util._, noop = function() {}, freeze = Object.freeze || noop; /** * Aura constructor and main entry point * Loads mediator & widgets extensions by default. */ function Aura(con...
JavaScript
0
@@ -1375,16 +1375,25 @@ nentName +, options ) %7B%0A @@ -1741,24 +1741,62 @@ le();%0A %7D%0A + _.extend(sandbox, options %7C%7C %7B%7D);%0A return s @@ -3434,26 +3434,8 @@ ) %7B%0A - try %7B%0A @@ -3468,155 +3468,8 @@ p);%0A - %7D catch(e) %7B%0A app.logger.error...
6d8899a95e02d1cce3e65135c2edfffdee975038
fix another crash
lib/auth.js
lib/auth.js
/* SBHS-Timetable-Node: Countdown and timetable all at once (NodeJS app). * Copyright (C) 2014 James Ye, Simon Shields * * This file is part of SBHS-Timetable-Node. * * 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 b...
JavaScript
0.000018
@@ -3050,24 +3050,59 @@ %09if (err) %7B%0A +%09%09%09%09if (typeof cb === 'function')%0A%09 %09%09%09%09cb();%0A%09%09 @@ -3116,16 +3116,26 @@ n;%0A%09%09%09%7D%0A +%09%09%09try %7B%0A%09 %09%09%09var z @@ -3152,16 +3152,90 @@ rse(c);%0A +%09%09%09%7D catch (e) %7B%0A%09%09%09%09if (typeof cb === 'function') cb();...
746d318364bc8146cf53151f04af74165788b35c
update file /lib/auth.js
lib/auth.js
lib/auth.js
'use strict'; var express = require('express'); var bodyParser = require('body-parser'); var cors = require('cors'); var queryString = require('querystring'); var request = require('request'); function auth() { var router = express.Router(); router.all('/init', function(req, res) { var params = req.body;...
JavaScript
0.000002
@@ -3434,34 +3434,23 @@ unt( -sessionToken, authResponse +googleUserToken , no
44d5a5947376dbfd6226944508f2e8e49fcca225
remove replay retry method
lib/base.js
lib/base.js
const MwPool = require('./mwpool') const assign = require('lodash').assign const middleware = require('./middleware') const Emitter = require('events').EventEmitter module.exports = Base function Base(opts) { Emitter.call(this) this.replays = [] this.opts = opts || {} this.mw = new MwPool }...
JavaScript
0.000002
@@ -1367,137 +1367,8 @@ %0A%7D%0A%0A -Base.prototype.replayRetry = function (opts, filter) %7B%0A this.bufferBody(filter)%0A this.opts.replayRetry = opts%0A return this%0A%7D%0A%0A Base
f4df561ad3985c4372a41fdb3c2fc1cae7dfff37
handle path without trailing /.
lib/blog.js
lib/blog.js
/** * Copyright 2015, Mapacode Inc. */ 'use strict'; var async = require('async'); var marked = require('marked'); var fs = require('fs'); module.exports = function (path) { var _posts = require(path + '/posts'); var _keyed = {}; _posts.forEach (function (item) { _keyed[item.md] = item; }); ...
JavaScript
0
@@ -780,16 +780,20 @@ le(path+ +'/'+ item, fu
b1a508f5ec49b2815108f9335b0a4ee4d0ccf3c1
fix command line usage
lib/core.js
lib/core.js
var transforms = require('./transforms'); var split = require('split'); var yargs = require('yargs'); // TODO: // 1. Issues // 2. Repo List // 3. PRs // 4. Checklist // 5. --data-type=open,oldest module.exports.run = function() { var args, subcommand, data; args = yargs .usage("Usage: $0 <subcommand> <data-ty...
JavaScript
0.000759
@@ -107,70 +107,8 @@ TODO -:%0A// 1. Issues%0A// 2. Repo List%0A// 3. PRs%0A// 4. Checklist%0A// 5. --d @@ -267,17 +267,16 @@ ata-type -g =%3Cdata-t
a30542b39ce96669d1c952771ed123ca354ca48a
fix import for non es6
s3router.js
s3router.js
import s3Router from 'react-s3-uploader/s3router' export default s3Router
JavaScript
0.000001
@@ -1,25 +1,29 @@ -import s3Router from +module.exports = require( 'rea @@ -50,29 +50,5 @@ ter' -%0Aexport default s3Router%0A +)
d4836ccad049c5c2fb0424a7785d85618a3315b6
fix wordings
lib/diff.js
lib/diff.js
/** * Diff two list in O(N). * @param {Array} oldList - Original List * @param {Array} newList - List After certain insertions, removes, or moves * @return {Object} - {moves: <Array>} * - moves is a list of actions that telling how to removes and inserts */ function diff(oldList, newList, ...
JavaScript
0.000027
@@ -261,17 +261,16 @@ o remove -s and ins @@ -272,17 +272,16 @@ d insert -s %0D%0A */%0D%0Af
82f0936c557a7720e920512d679cdc57d1dde8fe
修复路径转为 base64 后处理错误的问题 question/96767
packages/uni-template-compiler/lib/asset-url.js
packages/uni-template-compiler/lib/asset-url.js
const url = require('url') const transformAssetUrls = { audio: 'src', video: ['src', 'poster'], img: 'src', image: 'src', 'cover-image': 'src', // h5 'v-uni-audio': 'src', 'v-uni-video': ['src', 'poster'], 'v-uni-image': 'src', 'v-uni-cover-image': 'src', // nvue 'u-image': 'src',...
JavaScript
0.000009
@@ -2699,16 +2699,25 @@ e%7D). -substr(1 +replace(/%5E%5C%5C./,'' )%60%0D%0A @@ -3499,9 +3499,10 @@ %0D%0A %7D%0D%0A%7D +%0D %0A
a76ce660588cd9db43f09488f7b0e1af49fd5843
Make sentence make more sense
bin/boilerplates/app.js
bin/boilerplates/app.js
/** * app.js * * Use `app.js` to run your app in environments where `sails lift` is not available. * To start the server, run: `node app.js`. * * The same command-line arguments as sails lift are also supported, * e.g.: `node app.js --silent --port=80 --prod` */ // Ensure a "sails" can be located: var sails; t...
JavaScript
1
@@ -524,17 +524,19 @@ or(' -You might +To do that, run @@ -559,44 +559,8 @@ ils%60 - to install sails in this directory. ');%0A