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
b935eceb061cdef57fef9be93db64f4078d5dae5
Add plugin blankie and crumb cookie options
server/manifest.js
server/manifest.js
/** * Created by Omnius on 18/07/2016. */ 'use strict'; const Confidence = require('confidence'); const defaultCriteria = { env: process.env.NODE_ENV }; const manifest = { server: { app: {}, connections: { routes: { files: {relativeTo: process.cwd() + '/views'} ...
JavaScript
0
@@ -1448,35 +1448,32 @@ th.js'%7D,%0A - // %7B%0A // @@ -1458,35 +1458,32 @@ %7B%0A - // plugin: %7B%0A @@ -1480,35 +1480,32 @@ lugin: %7B%0A - // registe @@ -1517,35 +1517,32 @@ lankie',%0A - // options @@ -1544,35 +1544,32 @@ tions: %7B%0A...
be7429a40d5436d9f6e019ba0e75917cc41f3d32
Add extent and filter types in custom.js.
public/javascripts/custom.js
public/javascripts/custom.js
/* * Copyright 2016 Ali Moghnieh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
0
@@ -1118,16 +1118,91 @@ ration%22%7D +%0A%0A ,extent: %7Bhref: %22/types#Extent%22%7D%0A ,filter: %7Bhref: %22/types#Filter%22%7D %0A%7D;%0Avar
d0501b8317684c033afe01b711547ad9829cbe5c
fix path seperator
lib/file-emitter.js
lib/file-emitter.js
'use strict'; var fs = require('fs'); var path = require('path'); var util = require('util'); var events = require('events'); var minimatch = require('minimatch'); var File = require('./file'); /** * file-emitter * * **opt_options** * - `{string} mode` The mode of operation; `stats`, `buffer`, defaults to `buff...
JavaScript
0.000199
@@ -3345,11 +3345,16 @@ y + -'/' +path.sep + f
6f2f808920e80def610ebde4cb985365cad99339
fix bug on unsupported platform
lib/find_process.js
lib/find_process.js
/* * @Author: zoujie.wzj * @Date: 2016-01-23 18:25:37 * @Last Modified by: zoujie.wzj * @Last Modified time: 2016-10-13 15:18:00 */ 'use strict' const path = require('path') const utils = require('./utils') function matchName (text, name) { if (!name) { return true } return text.match(name) } const f...
JavaScript
0.000001
@@ -2979,24 +2979,31 @@ s)) %7B%0A +return reject(new E
7f544f2bca3ae48b8dc0d041fc81578c4f30da6f
Disable source maps + blackboxing (#490)
public/js/clients/firefox.js
public/js/clients/firefox.js
const { DebuggerClient } = require("devtools-sham/shared/client/main"); const { DebuggerTransport } = require("devtools-sham/transport/transport"); const WebSocketDebuggerTransport = require("devtools/shared/transport/websocket-transport"); const { TargetFactory } = require("devtools-sham/client/framework/target"); con...
JavaScript
0
@@ -3061,24 +3061,114 @@ e%5D);%0A %7D);%0A%0A + threadClient.reconfigure(%7B%0A %22useSourceMaps%22: false,%0A %22autoBlackBox%22: false%0A %7D);%0A%0A // In Fire
12bfe07efc9fab5d1590aa136ded6bb9e0c5d74b
tag github request metrics by installationId and method
lib/github-queue.js
lib/github-queue.js
const Queue = require('promise-queue') const env = require('./env') const dbs = require('../lib/dbs') const Log = require('gk-log') const statsd = require('./statsd') const getToken = require('./get-token') const Github = require('../lib/github') const writeQueue = new Queue(1, Infinity) const readQueue = new Queue(5...
JavaScript
0
@@ -1329,24 +1329,139 @@ , total)%0A%7D%0A%0A +function getGitHubMethod (gen) %7B%0A const %5B match %5D = gen.toString().match(/github%5C.%5B%5E(%5D+/)%0A return match %7C%7C ''%0A%7D%0A%0A function wri @@ -1528,32 +1528,72 @@ _write_requests' +, %5BinstallationId, getGitHubMethod(gen)%5D )%0A const stats @@ -...
4c018915a3d3a8ff94e47dc157e15cffb1affd50
add fields to interactivity rendering
servers/Tile.bones
servers/Tile.bones
var path = require('path'), tilelive = require('tilelive'), settings = Bones.plugin.config; server = Bones.Server.extend({}); server.prototype.initialize = function() { _.bindAll(this, 'load', 'grid', 'layer', 'getArtifact'); this.get('/1.0.0/:id/:z/:x/:y.:format(png8|png|jpeg[\\d]+|jpeg)', this.load,...
JavaScript
0.000001
@@ -2012,16 +2012,155 @@ 'grid'; +%0A%0A var interactivity = res.project.get('interactivity');%0A res.projectMML.interactivity.fields = models.Project.fields(interactivity); %0A nex
8cd544eebbeb7b358614066c932332762f520716
Fix condition of completion
src/EditorPane/codemirror-hint-extension.js
src/EditorPane/codemirror-hint-extension.js
import CodeMirror from 'codemirror'; import 'codemirror/addon/hint/anyword-hint'; const anywordHint = CodeMirror.hint.anyword; CodeMirror.hint.javascript = (instance, options) => { const cursor = instance.getCursor(); const token = instance.getTokenAt(cursor); const from = { line: cursor.line, ch: token.start ...
JavaScript
0.000006
@@ -418,30 +418,20 @@ if ( +! /%5B -%5C;%5C=%5C)%5C,%5D$%7C%5E%5Cs*$%7C%5E%5C( +A-Za-z%5C.%5D $/.t
d94aadd61a0e4f2994af63bd28e806a8c1aad43f
separate stdout and stderr
service_manager.js
service_manager.js
var childProcess = require('child_process'); var spawn = childProcess.spawn; var rimraf = require('rimraf'); var config = require('./config'); var services = {}; var debugServerChild = null; var promisify = require('promisify-node'); var fs = promisify('fs'); var _ = require('lodash'); var forever = require('forever-mo...
JavaScript
0.99856
@@ -1000,16 +1000,36 @@ return +Promise.all(%5B%0A fs.readF @@ -1089,16 +1089,100 @@ 'utf8') +,%0A fs.readFile(config.logsDir + '/' + serviceID + '/stderr.log', 'utf8')%0A %5D) .then(fu @@ -1191,16 +1191,17 @@ tion(log +s ) %7B%0A @@ -1290,16 +1290,48 @@ -log +stdout: logs%5B0%5D,%0A ...
ef993141781c6b3c2558c52aaa8d18a5bdd892d6
Swap property names.
db/model.js
db/model.js
'use strict' let sql = require('sql') let Query = require('./query') class Model { constructor (data) { this.constructor.defineProperties() this.data = new Map() for (let key in data) if (this.properties[key]) this[key] = data[key] } get db () { return this.constructor.db } get table () {...
JavaScript
0
@@ -2112,16 +2112,26 @@ ion () %7B +%0A return @@ -2155,13 +2155,25 @@ umn. -name) +property)%0A %7D,%0A @@ -2203,16 +2203,26 @@ value) %7B +%0A this.da @@ -2239,20 +2239,32 @@ umn. -name, value) +property, value)%0A %7D%0A
d788e89038098f33d997e5ecc1af3687eccf3f96
Use appropriate promise
services/matrix.js
services/matrix.js
'use strict'; // Dependencies const matrix = require('matrix-js-sdk'); // Fabric Types const Entity = require('../types/entity'); const Interface = require('../types/interface'); // TODO: compare API against {@link Service} const Service = require('../types/service'); // Local Values const COORDINATORS = [ '!pPjIU...
JavaScript
0.998982
@@ -3191,28 +3191,28 @@ =%3E %7B%0A -this +self .emit('messa @@ -3508,22 +3508,23 @@ return -result +promise ;%0A %7D%0A%0A @@ -3638,24 +3638,87 @@ eject) =%3E %7B%0A + self.emit('message', %60Checking username: $%7Busername%7D%60);%0A%0A try %7B%0A
c3da505a1986c5b4ac868c9e91984cb2eb27a48c
fix space issues and ES6
public/src/inverted-index.js
public/src/inverted-index.js
/** @class representing an Index. */ module.exports = class Index { /** * Creates Index constructor. */ constructor(){ this.container = {}; } /** * @method checks file * @param {string} fileContents */ fileCheck(fileContents) { if (fileContents.files === undefined) { return th...
JavaScript
0
@@ -79,32 +79,59 @@ * C -reates Index constructor +onstructor initializes container to an empty object .%0A @@ -151,16 +151,17 @@ ructor() + %7B%0A th @@ -290,16 +290,17 @@ if ( +! fileCont @@ -309,30 +309,16 @@ ts.files - === undefined ) %7B%0A @@ -1689,16 +1689,20 @@ let the +word = this. @...
8711f7fe6000fe69a095301e9576d86935b36337
Update map defaults
public/src/js/map/options.js
public/src/js/map/options.js
/** * public/src/js/map/options.js - delish * * Licensed under MIT license. * Copyright (C) 2017 Karim Alibhai. */ export default { /** * Default zoom of 16 allows user to see streets. */ zoom: 17, /** * Just a dummy center. This will be updated to a geolocation. */ center: { lat: 45.4286821...
JavaScript
0
@@ -205,17 +205,17 @@ zoom: 1 -7 +8 ,%0A%0A /** @@ -224,206 +224,360 @@ * -Just a dummy center. This will be updated to a geolocation.%0A */%0A center: %7B lat: 45.4286821, lng: -75.6898986 %7D,%0A%0A /**%0A * See styles file for info on styles.%0A */%0A styles: require('./styles') +Further than 14 sho...
828aa722737fa7494dbd6a3bf5931a2f2a77c641
Fix regression, pause when adding to queue (#789)
lib/launch-video.js
lib/launch-video.js
const tabs = require('sdk/tabs'); const qs = require('sdk/querystring'); const prefs = require('sdk/simple-prefs').prefs; const store = require('sdk/simple-storage').storage; const getVideoId = require('get-video-id'); const isAudio = require('./is-audio'); const windowUtils = require('./window-utils'); const getRando...
JavaScript
0
@@ -941,24 +941,72 @@ ts.action;%0A%0A + if (action === 'play') opts.action = true;%0A%0A windowUt @@ -1468,42 +1468,8 @@ 0,%0A - playing: action === 'play',%0A
def2f75df94a07481c0b6573e21db6103692606f
fix printing for arrays
lib/modules/tree.js
lib/modules/tree.js
utils = require('../utils'); //see http://en.wikipedia.org/wiki/Box-drawing_characters exports.plugin = function(cli) { //┌── //├── //└── var branch = utils.repeat('─',1), tabs = utils.repeat(' ',branch.length+2); ...
JavaScript
0.000002
@@ -807,13 +807,11 @@ %0A%09%09%09 -// to -l +i = t @@ -820,16 +820,9 @@ eof -labelOrI +i ndex @@ -857,24 +857,219 @@ '%E2%94%94'; + %0A%09%09%09 %0A%09%09%09 %0A%09%09%09var value = !isNaN(Number(index)) ? childre...
8e1d49acef69b1130d7d438c488599bda055ea51
Support custom loggers
lib/oauth2server.js
lib/oauth2server.js
/** * Copyright 2013-present NightWorld. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
JavaScript
0
@@ -1160,13 +1160,101 @@ %7C%7C f -alse; +unction () %7B%7D;%0A if (typeof(this.debug) !== 'function') %7B%0A this.debug = console.log;%0A %7D %0A t @@ -3312,20 +3312,16 @@ );%0A%0A -if ( self.deb @@ -3326,21 +3326,8 @@ ebug -) console.log (err
e689a7dac7c54d9d0773a4c2ca7cab4fc4882b99
Add trailing new line.
lib/packet-queue.js
lib/packet-queue.js
var setInterval = require('timers').setInterval; var clearInterval = require('timers').clearInterval; var Buffer = require('buffer').Buffer; /* The MIT License (MIT) Copyright (c) 2014 Voxer IP LLC. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
JavaScript
0
@@ -2487,16 +2487,23 @@ in('%5Cn') + + '%5Cn' );%0A t
7db23a48e2a4153fa40d5dcdd28121aa4772958d
use destructuring for the constructor params
source/BindInput.js
source/BindInput.js
import $ from 'jquery'; import logger from './helpers/logger'; /* * plugin constructor */ export default function BindInput( params ) { var element = params.element, options = params.options || {}, loggerObj = params.loggerObj || logger(); if ( typeof element === 'undefined' ) { ...
JavaScript
0.000001
@@ -149,81 +149,26 @@ var -element = params.element,%0A options = params.options %7C%7C %7B%7D,%0A +%7Belement, options, log @@ -173,16 +173,17 @@ oggerObj +%7D = param @@ -187,30 +187,8 @@ rams -.loggerObj %7C%7C logger() ;%0A%0A @@ -250,24 +250,93 @@ rn; %0A %7D +%0A%0A options = opti...
c895d6b3077a446e06c607d9ae2b081bf05dbe7d
Set a plain text version too on cut/copy
source/Clipboard.js
source/Clipboard.js
/*jshint strict:false, undef:false, unused:false */ var onCut = function ( event ) { var clipboardData = event.clipboardData; var range = this.getSelection(); var node = this.createElement( 'div' ); var body = this._body; var self = this; // Save undo checkpoint this.saveUndoState( range )...
JavaScript
0
@@ -595,32 +595,111 @@ de.innerHTML );%0A + clipboard.setData( 'text/plain', node.innerText %7C%7C node.textContent );%0A event.pr @@ -1413,32 +1413,111 @@ de.innerHTML );%0A + clipboard.setData( 'text/plain', node.innerText %7C%7C node.textContent );%0A event.pr
6202b75688016345389dddb1cd49d201c5a7d7bc
Trim UTF-8 BOM marker
lib/previous-map.js
lib/previous-map.js
var mozilla = require('source-map'); var Base64 = require('js-base64').Base64; var path = require('path'); var fs = require('fs'); // Detect previous map class PreviousMap { constructor(root, opts, id) { this.file = opts.from || id; this.loadAnnotation(root); var inlinePrefix = '#...
JavaScript
0.000005
@@ -3217,32 +3217,39 @@ f-8').toString() +.trim() ;%0A %7D%0A
a71a009c5ee02fda21af420cb1bec3e55711c80a
fix bug with parsing nested markdown blocks
source/jsx_block.js
source/jsx_block.js
import { JSX_OPEN_TAG_PARSER, JSX_CLOSE_TAG_PARSER, JSX_SELF_CLOSE_TAG_PARSER } from './jsxParser' import transformJSX from './transformJSX' function parseMarkdownContent(state, startIndent, startLine, maxLine) { var pos, max, lineText, blkIndent, indent var nextLine = startLine for (; nextLine < maxLine; next...
JavaScript
0
@@ -4308,16 +4308,58 @@ er(%7B%7D'%0A%0A + const oldLineMax = state.lineMax%0A%0A @@ -4382,24 +4382,59 @@ = blkIndent%0A + state.lineMax = contentEnd%0A stat @@ -4484,24 +4484,60 @@ ntentEnd);%0A%0A + state.lineMax = oldLineMax%0A%0A toke
11be28cc4c35a9eee1492d6d6e3447cc83933e83
fix bug with renderbuffer initialization from radius
lib/renderbuffer.js
lib/renderbuffer.js
var check = require('./util/check') var values = require('./util/values') var GL_RENDERBUFFER = 0x8D41 var GL_RGBA4 = 0x8056 var GL_RGB5_A1 = 0x8057 var GL_RGB565 = 0x8D62 var GL_DEPTH_COMPONENT16 = 0x81A5 var GL_STENCIL_INDEX8 = 0x8D48 var GL_DEPTH_STENCIL = 0x84F9 var GL_SRGB8_ALPHA8_EXT = 0x8C43 var GL_RGBA32F_E...
JavaScript
0
@@ -2857,21 +2857,21 @@ -w = h +h = w %0A @@ -3644,36 +3644,8 @@ %7D%0A%0A - reglRenderbuffer(a, b)%0A%0A @@ -4274,24 +4274,52 @@ ffer%0A %7D%0A%0A + reglRenderbuffer(a, b)%0A%0A reglRend
a4f8f195fdc9f4e1a49c016a5ba9fe9dfa4d182a
Revert "Fixes getCandidatesFromMapping on windows"
lib/revvedfinder.js
lib/revvedfinder.js
'use strict'; var debug = require('debug')('revvedfinder'); var path = require('path'); var _ = require('lodash'); // Allow to find, on disk, the revved version of a furnished file // // +locator+ : this is either: // - a hash mapping files with their revved versions // - a function that will return a list of fi...
JavaScript
0
@@ -976,28 +976,8 @@ le)) -.replace(/%5C%5C/g, '/') ;%0A
23cf7ca735e300c3d935e9e05cc7d6c095efa153
allow changing URL without creating history entries
lib/search/index.js
lib/search/index.js
'use strict'; var angular = require('camunda-bpm-sdk-js/vendor/angular'); var SearchFactory = [ '$location', '$rootScope', function($location, $rootScope) { var silent = false; $rootScope.$on('$routeUpdate', function(e, lastRoute) { if (silent) { silent = false; } else { $rootS...
JavaScript
0
@@ -664,16 +664,29 @@ n(params +, replaceFlag ) %7B%0A @@ -923,24 +923,86 @@ rue;%0A %7D +%0A%0A if(replaceFlag) %7B%0A $location.replace();%0A %7D %0A %7D;%0A%0A
b78364e299c63a443cd37f0d92fbab24bc3bd400
add key to h
h/index.js
h/index.js
var isArray = require("x-is-array") var isString = require("x-is-string") var VNode = require("../vtree/vnode.js") var VText = require("../vtree/vtext.js") var isVNode = require("../vtree/is-vnode") var isVText = require("../vtree/is-vtext") var isWidget = require("../vtree/is-widget") var parseTag = require("./parse...
JavaScript
0.000001
@@ -415,16 +415,21 @@ ildNodes +, key %0A%0A if @@ -1166,24 +1166,115 @@ ren%5D%0A %7D%0A%0A + if (props && %22key%22 in props) %7B%0A key = props.key%0A delete props.key%0A %7D%0A%0A return n @@ -1304,16 +1304,21 @@ ildNodes +, key )%0A%7D%0A%0Afun
51c8fd535b936c81ec4a820887d5eb46ebf7379e
move some user.js stuff around
home/firefox/.mozilla/firefox/profile/user.js
home/firefox/.mozilla/firefox/profile/user.js
// temporary // ========= // disable Hello, removing in FF49 user_pref('loop.enabled', false) user_pref('loop.do_not_disturb', true) // user interface // ============== // search user_pref('browser.search.suggest.enabled', false) user_pref('browser.urlbar.suggest.searches', false) // "fixing" urls user_pref('keywor...
JavaScript
0
@@ -165,16 +165,279 @@ ======%0A%0A +// disable some browser features%0Auser_pref('general.smoothScroll', false) // smooth scrolling%0Auser_pref('reader.parse-on-load.enabled', false) // reader%0Auser_pref('extensions.pocket.enabled', false) // Pocket%0Auser_pref('pdfjs.disabled', false) // PDF reader%0A%0A // se...
1d851a859ca3ebf6a40fb49388998275c57e4096
Stop Cucumber at the first error
cucumber.js
cucumber.js
module.exports = { "default": "--compiler ls:livescript -r features --strict --snippet-syntax node_modules/cucumber-snippets-livescript" }
JavaScript
0.000001
@@ -63,16 +63,28 @@ eatures +--fail-fast --strict
c07278740d92e5c3e9912b4a5cfee65cb76d5739
update Dropdown
src/Dropdown/Dropdown.js
src/Dropdown/Dropdown.js
/** * @file Dropdown component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {findDOMNode} from 'react-dom'; import classNames from 'classnames'; import RaisedButton from '../RaisedButton'; import Popup from '../Popup'; impo...
JavaScript
0.000001
@@ -803,33 +803,42 @@ startRipple = -e +(e, props) =%3E %7B%0A th @@ -879,32 +879,39 @@ er.startRipple(e +, props );%0A %7D;%0A%0A / @@ -1077,17 +1077,26 @@ ipple = -e +(e, props) =%3E %7B%0A @@ -1155,16 +1155,23 @@ Ripple(e +, props );%0A %7D
f5db3362861362326b44341315f319084390eb7b
Add Content-Type request header for xhr send
lib/trans-sender.js
lib/trans-sender.js
/* * ***** BEGIN LICENSE BLOCK ***** * Copyright (c) 2011-2012 VMware, Inc. * * For the license see COPYING. * ***** END LICENSE BLOCK ***** */ var BufferedSender = function() {}; BufferedSender.prototype.send_constructor = function(sender) { var that = this; that.send_buffer = []; that.sender = send...
JavaScript
0
@@ -4139,24 +4139,132 @@ callback) %7B%0A + var opt = %7B%7D;%0A if (typeof payload === 'string') opt.headers = %7B'Content-type':'text/plain'%7D;%0A var @@ -4317,16 +4317,21 @@ payload +, opt );%0A
16016bd07ad306b7b68590e17ebb3aba7efd587e
Correct XML Content-Type header
api/odk/controllers/get-osm-submissions.js
api/odk/controllers/get-osm-submissions.js
var aggregateOsm = require('../osm/aggregate-osm'); var getOsmSubmissionsDirs = require('../helpers/get-osm-submissions-dirs'); /** * Aggregates together all of the OSM submissions * from ODK Collect / OpenMapKit Android to the * file system for the given form. */ module.exports = function (req, res, next) { v...
JavaScript
0.000032
@@ -1549,12 +1549,19 @@ ', ' -text +application /xml
f535aa6546c7423ccb13661dbe829e4b69ee04b1
use consistent capitalization
lib/types/Pubsub.js
lib/types/Pubsub.js
var inherits = require('util').inherits, DuplexStream = require('stream').Duplex, EventEmitter = require('events').EventEmitter; var Xfer = require('xfer'); var utils = require('../utils'); var TYPE_PUB = 0x00, TYPE_PUB_NOSER = 0x01, EMPTY_READFN = function(n) {}; function PubSub(opts) { if (!(thi...
JavaScript
0.009214
@@ -290,17 +290,17 @@ tion Pub -S +s ub(opts) @@ -329,17 +329,17 @@ ceof Pub -S +s ub))%0A @@ -353,17 +353,17 @@ new Pub -S +s ub();%0A%0A @@ -1480,17 +1480,17 @@ rits(Pub -S +s ub, Dupl @@ -1500,25 +1500,25 @@ tream);%0A%0APub -S +s ub.prototype @@ -2140,33 +2140,33 @@ ayload);%0A%7D;%0A%0APub -S +s u...
da56a025027715f9f5dc2ae09d6d46962d3afe0d
fix variable names
lib/util/compile.js
lib/util/compile.js
module.exports = exports; var fs = require('fs') , tar = require('tar') , path = require('path') , zlib = require('zlib') , log = require('npmlog') , semver = require('semver') , request = require('request') , win = process.platform == 'win32' , os = require('os') , existsAsync = fs.exists || path.e...
JavaScript
0.998822
@@ -722,38 +722,32 @@ ell_cmd + ' ' + -shell_ args.join(' ') + @@ -958,22 +958,16 @@ + ' ' + -shell_ args.joi
b4cfe7ddefb80b239851b11b20d3a85d6b1e7b0b
Improve console namespace
lib/util/console.js
lib/util/console.js
class Console { constructor(namespace = null) { this._namespace = namespace; this.codes = { badRequest: 400, unauthorized: 401, forbidden: 403, notFound: 404, conflict: 409, internalServerError: 500, notImplemented:...
JavaScript
0.000048
@@ -985,16 +985,19 @@ evel + %22 + in %22 + thi
7bac62eb90d5acaafbd997daafb4e30c7b9b01c6
add better type detection
lib/util/receive.js
lib/util/receive.js
var crypto = require("crypto") var lob = require('lob-enc'); var handshake_collect = require("./handshake").collect; var log = require("./log")("Receive") module.exports = { handshake : receive_handshake, channel : receive_channel, type : receive_type, decloak : receive_decloak } function receive_typ...
JavaScript
0.000008
@@ -289,24 +289,25 @@ _decloak%0A%7D%0A%0A +%0A function rec @@ -433,17 +433,126 @@ pipe);%0A%0A -%0A + try %7B%0A var head = JSON.parse(packet.head)%0A return (head.json.type %7C%7C %22unknown json%22)%0A %7D catch (e)%7B%0A return @@ -591,16 +591,18 @@ hannel%22%0A + : @@ -650,16 +650,18 @@...
7252da2814af48c6421422dbf03d19b3a59dcfff
add ToDo comment
lib/utils/deeper.js
lib/utils/deeper.js
module.exports = (list, key, value, walk) => { let i = 0 let depth = 1 let ref = {} // optimize the shallowness as much as possible while (i < walk.length) { if (!list[walk[i]]) { i = 2 * depth depth++ } else { ref = list[walk[i]] i++ } } if (!ref.dependencies) ref.depe...
JavaScript
0
@@ -133,16 +133,60 @@ ossible%0A + // @ToDo should check the version as well%0A while
2a31c1345536f56cf3b26cf7c5484994b4810478
Fix callback in readdir, remove trace
lib/volume/index.js
lib/volume/index.js
var FSError = require( '../error' ) var ExFAT = require( '../exfat' ) var debug = require( 'debug' )( 'exfat:volume' ) /** * ExFAT Volume * @constructor * @param {Object} partition * @return {Volume} */ function Volume( partition ) { if( !(this instanceof Volume) ) return new Volume( partition ) thi...
JavaScript
0.000001
@@ -2497,44 +2497,8 @@ o )%0A - console.trace( 'read_cluster' )%0A @@ -4215,28 +4215,32 @@ %0A -done +callback ( error, ent
b2b0601fdcc4d70e114380304a7d80504e2965b4
Test branch throws if branch already exists
spec/branch.spec.js
spec/branch.spec.js
var fs = require('fs'); var ga = require('../src/gitlet-api'); var testUtil = require('./test-util'); describe('branch', function() { beforeEach(testUtil.createEmptyRepo); beforeEach(testUtil.pinDate); afterEach(testUtil.unpinDate); it('should throw if not in repo', function() { expect(function() { ga.bra...
JavaScript
0.000001
@@ -1631,13 +1631,352 @@ );%0A %7D); +%0A%0A it('should prevent branching if branch already exists', function() %7B%0A ga.init();%0A testUtil.createFilesFromTree(%7B %221%22: %7B %22filea%22: %22filea%22%7D%7D);%0A ga.add(%221/filea%22);%0A ga.commit(%7B m: %22first%22 %7D);%0A ga.branch(%22woo%22);%0...
527db0fb6a140244f2b9d8d7f0d4fc1396c31c48
add spec
spec/common.spec.js
spec/common.spec.js
import chai from 'chai' import { CharacterData, EventTarget, Node, XMLSerializer } from '../lib/dom' import { CharacterDataAssembler, EventTargetAssembler, NodeAssembler, DocumentAssembler, attr, comment, doctype, element, fragment, instruction, text } from '../lib' const { assert } = chai con...
JavaScript
0.000001
@@ -165,34 +165,55 @@ -NodeAssembler,%0A Documen +DocumentAssembler,%0A NodeAssembler,%0A Targe tAss @@ -369,16 +369,16 @@ alizer%0A%0A - describe @@ -392,24 +392,197 @@ n', () =%3E %7B%0A + describe('new TargetAssembler', () =%3E %7B%0A const fn = () =%3E new TargetAssembler%0A it('...
4681a1dc7bfeed964cb960cc36e947d8b0a51752
correct object referenced in tests
spec/create.spec.js
spec/create.spec.js
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
JavaScript
0.000001
@@ -817,16 +817,22 @@ %0Avar cli +create = requi @@ -1024,24 +1024,25 @@ nction () %7B%0A +%0A beforeEa @@ -1606,35 +1606,32 @@ expect( -cdv clicreate.parseC @@ -1822,11 +1822,8 @@ ect( -cdv clic @@ -1828,22 +1828,19 @@ icreate. -create +run ).toEqua @@ -1907,10 +1907,11 @@ %7D);%0A%7D +) ;...
937d21421a8f82b76187bd89512e9f5b29a098bf
Remove deprecated Ember.K
addon/components/reveal-presentation/component.js
addon/components/reveal-presentation/component.js
/* global Reveal, hljs */ import Ember from 'ember'; import layout from './template'; import EmberWormhole from 'ember-wormhole/components/ember-wormhole'; import { EKMixin, keyUp } from 'ember-keyboard'; const { computed, get, set, observer, isBlank, isPresent, on } = Ember; export default EmberWormhole.extend(EKMix...
JavaScript
0.000002
@@ -2566,17 +2566,13 @@ fore -: Ember.K +() %7B%7D ,%0A
52865fab8c88d7bf01f64b5032f230396f5ab8b1
add comments
measurement/js/measurement_demo.js
measurement/js/measurement_demo.js
/** * Created by kelvinzhang on 5/29/17. */ var canvas; var bgCanvas; var robotX; var robotY; var senseCircle = 0; var senseRadius = 150; var nLasers = 36; var scanned = false; var robotDir = 0; var dirOffset = 0; //Results of laser scan var z = new Array(nLasers); function click() { var coor = getClickLo...
JavaScript
0
@@ -1840,32 +1840,227 @@ index ++)%0A %7B%0A + //dirOffset is the direction the user's mouse%0A //is point at, -nLasers/4 to offset it by 90 degrees,%0A //so that laser scan is centered at where the user%0A //points to%0A var i = @@ -2082,17 +2082,17 @@ set -+ +- nLasers ...
86fd4c25a9e91782c714742321d9cea267661fe5
Test can add remote to bare repo
spec/remote.spec.js
spec/remote.spec.js
var fs = require("fs"); var g = require("../src/gitlet"); var testUtil = require("./test-util"); describe("remote", function() { beforeEach(testUtil.initTestDataDir); it("should throw if not in repo", function() { expect(function() { g.remote(); }) .toThrow("not a Gitlet repository"); }); it("shoul...
JavaScript
0
@@ -770,32 +770,373 @@ rigin%22);%0A %7D);%0A%0A + it(%22should be able to add remote to bare repo%22, function() %7B%0A g.init(%7B bare: true %7D);%0A g.remote(%22add%22, %22origin%22, %22git@origin%22);%0A var configFileLines = fs.readFileSync(%22config%22, %22utf8%22).split(%22%5Cn%22);%0A expect(conf...
26157058adc9f938b2ef2708ffe011347cf7dbcf
Add hostname and hostnamef filters
app/assets/javascripts/angular/filters/filters.js
app/assets/javascripts/angular/filters/filters.js
angular.module("Prometheus.filters").filter('toPercent', function() { return function(input) { return parseFloat(input, 10) * 100 + "%"; } }); angular.module("Prometheus.filters").filter('toPercentile', function() { return function(input) { return parseFloat(input, 10) * 100 + "th"; } }); angular.modu...
JavaScript
0.999992
@@ -354,16 +354,20 @@ hostname +Fqdn ', funct @@ -482,32 +482,234 @@ .host;%0A %7D%0A%7D);%0A%0A +angular.module(%22Prometheus.filters%22).filter('hostname', function() %7B%0A return function(input) %7B%0A var a = document.createElement(%22a%22);%0A a.href = input;%0A return a.host.split(%22.%22, 1)%5B0%5...
fec84ca0d27ede788dfaa2275a4589288447ef1d
queue name will be node_js
app/assets/javascripts/app/controllers/sidebar.js
app/assets/javascripts/app/controllers/sidebar.js
Travis.Controllers.Sidebar = SC.Object.extend({ cookie: 'sidebar_minimized', init: function() { Travis.Controllers.Workers.create(); Travis.Controllers.Jobs.create({ queue: 'builds.common' }); Travis.Controllers.Jobs.create({ queue: 'builds.rails' }); Travis.Controllers.Jobs.create({ queue: 'build...
JavaScript
0.999998
@@ -444,16 +444,19 @@ lds.node +_js ' %7D);%0A%0A
2bd3bad7cfab0acbd9d740f6a3eebb0680de9e3d
include css into main js build
webpack.config-helper.js
webpack.config-helper.js
'use strict' const Path = require('path') const Webpack = require('webpack') const HtmlWebpackPlugin = require('html-webpack-plugin') const ExtractTextPlugin = require('extract-text-webpack-plugin') const ExtractSASS = new ExtractTextPlugin('styles/bundle.css') module.exports = options => { const webpackConfig = {...
JavaScript
0.000329
@@ -131,136 +131,8 @@ in') -%0Aconst ExtractTextPlugin = require('extract-text-webpack-plugin')%0Aconst ExtractSASS = new ExtractTextPlugin('styles/bundle.css') %0A%0Amo @@ -760,16 +760,95 @@ ers: %5B%7B%0A + test: /%5C.scss$/i,%0A loaders: %5B'style', 'css', 'sass'%5D%0A %7D, %7B%0A @@ ...
85ee384026924ee7f80dbac9b701e59a70ebb0c0
Remove visits from locs during migration
migration/versions/v11v12/index.js
migration/versions/v11v12/index.js
/* eslint-disable max-lines */ // In this version increase: // 1. set schema version to 12 // 2. Remove orphan event i.e. entry events whose entry has been deleted. // Do this to simplify entry event refactor. // 3. Drop possible 'attachments' collections from earlier failed migration. // 4. refactor entries and en...
JavaScript
0
@@ -3105,13 +3105,13 @@ and -ensur +remov e vi @@ -3273,24 +3273,31 @@ Loc);%0A +delete loc.visits = @@ -3298,13 +3298,8 @@ sits - = %5B%5D ;%0A
8f1c90f3726c90c88cfdd7c0956f072cf1316b5b
Remove dead wood
notifications.js
notifications.js
const _ = require('lodash'); // const marked = require('marked'); // this file is in the front end part of the code. This We should create a place for code that is required by both the front end and the back end, to avoid me inadvertently breaking this module when working on the frontend // const { getCreatedBy, getCon...
JavaScript
0.000011
@@ -26,354 +26,8 @@ ');%0A -// const marked = require('marked');%0A// this file is in the front end part of the code. This We should create a place for code that is required by both the front end and the back end, to avoid me inadvertently breaking this module when working on the frontend%0A// const %7B getCreatedBy, ...
f5b3082718e1557ba190d38eda1cc25fe97f598b
fix updateChart condition for lower values of x
webserver/public/main.js
webserver/public/main.js
var WEBSOCKET_ADDRESS = 'ws://localhost:8887'; var HISTOGRAM_T = 10; /** * Attempt to establish new websockets connection * @param {Function} messageCB onmessage function callback. */ function connectWS(messageCB) { // Init websockets with globally defined address. ws = new WebSocket(WEBSOCKET_ADDRESS); ws.on...
JavaScript
0
@@ -3559,17 +3559,21 @@ %7B%0A var -d +color = data%5B @@ -3584,17 +3584,21 @@ last -D +Color = datap @@ -3643,17 +3643,21 @@ if ( -d +color && last D && @@ -3656,31 +3656,43 @@ last -D && d +Color && color .x %3C += last -D +Color .x) %7B%0A -%0A
819f00694e14acb7eb85fd5b75a586d64e4cf67e
Return index for the found item.
website/app/util/util.js
website/app/util/util.js
function isImage(mime) { switch (mime) { case "image/gif": case "image/jpeg": case "image/png": case "image/tiff": case "image/x-ms-bmp": case "image/bmp": return true; default: return false; } } function numberWithCommas(n) { n = n.toString(); var pattern = ...
JavaScript
0
@@ -1692,24 +1692,39 @@ i, 1);%0A %7D +%0A%0A return i; %0A%7D%0A%0AString.p
787a133974ea37f58a2118a175f44d77d6b7f896
Substitute icon with glyphicon
modoboa/static/js/dynamic_input.js
modoboa/static/js/dynamic_input.js
(function($) { var DynamicInput = function(element, options) { this.$element = $(element); this.options = $.extend({}, $.fn.dynamic_input.defaults, options); this.nextid = 1; this.baseid = this.$element.attr("id"); this.basename = this.$element.attr("name").split("_")[0]; ...
JavaScript
0.000001
@@ -926,16 +926,31 @@ class=%22 +glyphicon glyph icon-rem
b22220c207856c50d18a602de238deffd652a763
Add proptypes to GithubButton
src/components/GithubButton/GithubButton.js
src/components/GithubButton/GithubButton.js
import React from 'react'; export default function GithubButton({user, repo, type, width, height, count, large}) { let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src={src} ...
JavaScript
0.000001
@@ -25,45 +25,50 @@ ';%0A%0A -export default function GithubButton( +const GithubButton = (props) =%3E %7B%0A const %7Buse @@ -114,12 +114,17 @@ rge%7D -) %7B%0A + = props; %0A l @@ -510,10 +510,387 @@ e%3E%0A );%0A - %7D +;%0A%0AGithubButton.propTypes = %7B%0A user: React.PropTypes.string.isRequired,%0A re...
ad655b3f8358ac3ec7fce9d799aa65e05fc7a304
remove data after pikaday destroy - fixes #382
plugins/pikaday.jquery.js
plugins/pikaday.jquery.js
/*! * Pikaday jQuery plugin. * * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday */ (function (root, factory) { 'use strict'; if (typeof exports === 'object') { // CommonJS module factory(require('jquery'), require('../pikaday')); } else if (typ...
JavaScript
0
@@ -1345,16 +1345,140 @@ rgs,1)); +%0A%0A if (args%5B0%5D === 'destroy') %7B%0A self.removeData('pikaday');%0A %7D %0A
7042469876c0446c8558bffcfa93a91d163a01a1
support falsy/empty string values for ngOptions
src/helpers/parse-options.js
src/helpers/parse-options.js
'use strict'; angular.module('mgcrea.ngStrap.helpers.parseOptions', []) .provider('$parseOptions', function() { var defaults = this.defaults = { regexp: /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+...
JavaScript
0.000002
@@ -1690,17 +1690,8 @@ als) - %7C%7C index ;%0A
cc28b827dd3c783bfaa282435ecb09501ba4f7e4
fix #375, part 2
plugins/tradingAdvisor.js
plugins/tradingAdvisor.js
var util = require('../core/util'); var _ = require('lodash'); var fs = require('fs'); var config = util.getConfig(); var dirs = util.dirs(); var log = require(dirs.core + '/log'); var CandleBatcher = require(dirs.core + 'candleBatcher'); var moment = require('moment'); var Actor = function(done) { _.bindAll(this)...
JavaScript
0
@@ -3830,16 +3830,21 @@ unction( +err, rows) %7B%0A @@ -3904,17 +3904,20 @@ s = -rows +_ .map( +rows, row
ac021c18a65fed9cd56afa0fa56335b04bfa584d
fix example
src/connectors/clear-all/connectClearAll.js
src/connectors/clear-all/connectClearAll.js
import { checkRendering, getRefinements, clearRefinementsFromState, clearRefinementsAndSearch, } from '../../lib/utils.js'; const usage = `Usage: var customClearAll = connectClearAll(function render(params, isFirstRendering) { // params = { // refine, // hasRefinements, // createURL, // insta...
JavaScript
0
@@ -2254,46 +2254,39 @@ ions -) %7B%0A * if (ClearAllRenderingOptions. +, isFirstRendering) %7B%0A * if ( isFi @@ -2384,32 +2384,70 @@ tton%3E');%0A * +ClearAllRenderingOptions.widgetParams. containerNode.ap @@ -2600,24 +2600,24 @@ )%0A * %7D%0A *%0A - * var cle @@ -2627,16 +2627,54 @@ llCTA = +Cl...
5178ec192a2f790c3d873881c84de580626cb829
Fix in-memory cache driver
src/deep-cache/lib/Driver/InMemoryDriver.js
src/deep-cache/lib/Driver/InMemoryDriver.js
/** * Created by AlexanderC on 6/16/15. */ 'use strict'; import {AbstractDriver} from './AbstractDriver'; /** * In memory driver implementation */ export class InMemoryDriver extends AbstractDriver { constructor() { super(); this._storage = {}; } /** * @returns {Object} */ get storage() {...
JavaScript
0.000005
@@ -457,16 +457,17 @@ if ( +! this._st
f1d1f128cf07eecc1da3b2b5101c78aec682bd46
support highlight_modified_tabs setting
.gulp/components/options/underline_modified_tabs.js
.gulp/components/options/underline_modified_tabs.js
const mixins = require('../../mixins.js'); module.exports = function (values) { const c = values.colors; const stOpts = values.options; return [ // Default Thickness ...mixins.createComponentVariations((lumin, palette) => { return { class: 'tab_control', settings: [stOpts.underlin...
JavaScript
0.000001
@@ -840,24 +840,827 @@ %5B'dirty'%5D,%0A%0A + 'layer2.inner_margin': %5B0, 0, 0, 2%5D,%0A %7D,%0A%0A /* support for highlight_modified_tabs setting */%0A%0A // Default Thickness%0A ...mixins.createComponentVariations((lumin, palette) =%3E %7B%0A return %7B%0A class: 'tab_control',%0A ...
cd18527e7768b3f1a29442094f10c65f823c1bf1
Fix breaking of PickerAndroid when child is null. (#23748)
Libraries/Components/Picker/PickerAndroid.android.js
Libraries/Components/Picker/PickerAndroid.android.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow strict-local */ 'use strict'; const AndroidDropdownPickerNativeComponent = require('AndroidDropdownPickerNati...
JavaScript
0.000366
@@ -1641,24 +1641,76 @@ index) =%3E %7B%0A + if (child === null) %7B%0A return;%0A %7D%0A if (ch
42a5183fbfde51330d8d8468a48f4e49d0ea4c4a
Clean up Identity widget.
widgets/identity/main.js
widgets/identity/main.js
/** * # Widget `identity` * * This widget is identified as `identity@hull` * Use it to indicate whether the user is logged in or not, and display login buttons if not. * */ define({ type: "Hull", /** * @name Templates * #### `identity/identity` * * Displays login buttons or the name of th...
JavaScript
0
@@ -6,227 +6,106 @@ * # -Widget %60i +I dentity -%60 %0A *%0A * -This widget is identified as %60identity@hull%60 %0A * Use it to indicate whether the user is logged in or not, and display login buttons if not.%0A *%0A */%0A%0A%0A%0Adefine(%7B%0A type: %22Hull%22,%0A %0A /**%0A * @name +Allow users to log in...
1f12484b01ffc056cdad3c2b37f45f26132ea6f2
fix edit link after referral creation
referly/static/js/referly.js
referly/static/js/referly.js
// Custom JS // create referral via ajax request function createReferral(){ var dataString = $('form#referral_create').serialize(); console.log(dataString); $.ajax({ type: "POST", url: "/apiv1/referrals/", data: dataString, success: function(data) { console.log(d...
JavaScript
0
@@ -438,49 +438,112 @@ ef=%22 -#%22%3EEdit%3C/a%3E%3C/td%3E%3Ctd%3E%3Ca href=%22#%22%3E +/referrals/'+ data.slug +'%22%3EEdit%3C/a%3E%3C/td%3E%3Ctd%3E%3Cinput class=%22btn btn-danger%22 type=%22submit%22 value=%22 Delete -%3C/a +%22/ %3E%3C/t
c39648b00f9759a8e6b78303cc16f569e4a9b4f7
Update index.js
Name-Block/index.js
Name-Block/index.js
'use strict'; // dont touch const fs = require('fs'); this.command = []; // dont touch this.commandName = []; // dont touch this.gamemodeId = []; // dont touch this.gamemode = []; // dont touch this.addToHelp = []; // dont touch // [General] this.name = "Name-Block"; // Name of plugin REQUIRED this.author = "Andrews...
JavaScript
0.000002
@@ -775,23 +775,16 @@ r, split -, power ) %7B%0A va @@ -810,21 +810,23 @@ f (c == +' power +' ) %7B%0A if
ccd6551d1fe8d7157ad11bf39f28fddbe6b70b1c
remove redundant ';' character
src/forces.html5.constraintValidationAPI.js
src/forces.html5.constraintValidationAPI.js
/* forces Constraint Validation API helpers for the HTML5 constraint validation API */ if ( jQuery !== 'undefined' ) { (function( $ ){ 'use strict'; // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address // 1*( atext / "." ) "@" ldh-s...
JavaScript
0.999999
@@ -1598,17 +1598,16 @@ %09pattern -; %0D%0A%09%09%09;%0D%0A
7b8f120160effc066f1fa4d736f3b116f423264f
fix log message
poker-engine/game-loop.js
poker-engine/game-loop.js
'use strict'; const config = require('../config'); const logger = require('../storage/logger'); const save = require('../storage/storage').save; const gameStatus = require('./domain/tournament-status'); const playerStatus = require('./domain/player-status'); const runSetupTasks = require('./setup-tasks'); const r...
JavaScript
0.00001
@@ -4130,16 +4130,18 @@ yer.pts%7D +, %60, msg;%0A
a6a0bdff71339356352e21fc0ab02eccd9e76cbf
Fix select()
database.js
database.js
const pg = require('pg'); pg.defaults.ssl = true; const db = new pg.Pool({ connectionString: process.env.DATABASE_URL, }); class Predicate { constructor(key, operator, value) { this.key = key; this.operator = operator; this.value = value; this.adjoined = []; } and(other) { this.adjoined.p...
JavaScript
0
@@ -1883,20 +1883,63 @@ der( -this, fields +%0A this, Array.isArray(fields) ? fields : %5Bfields%5D) );%0A
3b8ebf13a3190d4e3467d9799218c7d8512e77ee
disable ember/no-controller-access-in-routes
tests/dummy/app/routes/vr/360-image-gallery.js
tests/dummy/app/routes/vr/360-image-gallery.js
import Route from '@ember/routing/route'; import { scheduleOnce } from '@ember/runloop'; export default Route.extend({ _updateSrc(src) { this.controller.set('skySrc', src); }, actions: { updateSrc(src) { scheduleOnce('afterRender', this, this._updateSrc, src); } } });
JavaScript
0
@@ -129,24 +129,93 @@ eSrc(src) %7B%0A + // eslint-disable-next-line ember/no-controller-access-in-routes%0A this.con
4834a93ad5effbc4af086e2a5ff31db8d1219ca5
Update NotificationNode.js
NotificationNode.js
NotificationNode.js
define([ "dojo/text", "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dojo/dom-construct", "dGrowl/NotificationNode", "dojo/dom-class", "dojo/_base/event", "dojo/_base/lang"], function(t, declare, base, templated, domCon, NotificationNode, domClass, event, lang) { return declare('dGrowl', [ba...
JavaScript
0.000001
@@ -187,16 +187,53 @@ se/lang%22 +, %22dojo/text!./NotificationNode.html%22 %5D,%0A%09 f @@ -316,16 +316,32 @@ nt, lang +, templateString )%0A%7B%0A%09ret @@ -408,53 +408,22 @@ ng': -dojo.cache('dGrowl', 'NotificationNode.html') +templateString ,%0A%09%09
01a7158f05dbce623c5f31a5e21e0316f2ba4403
Remove debug prints
app/scripts/groonga-client/response/table-list.js
app/scripts/groonga-client/response/table-list.js
'use strict'; (function() { function TableList(rawData) { GroongaClient.Response.Base.call(this, rawData); } GroongaClient.Response.TableList = TableList; TableList.prototype = Object.create(GroongaClient.Response.Base.prototype); TableList.prototype.constructor = TableList; TableList.prototype.param...
JavaScript
0.000001
@@ -567,110 +567,8 @@ ();%0A - console.log(this.body());%0A console.log(this.body()%5B1%5D);%0A console.log(this.body().slice(1));%0A
99c38244ddba3342425dbe50332f216a62c97ecc
Fix bug in Delving search. Filter on viewport can now be turned off.
app/scripts/plugins/delving/delving-collection.js
app/scripts/plugins/delving/delving-collection.js
define(['backbone', 'backbone.pageable.collection', 'config', 'models/marker'], function(Backbone, PageableCollection, Config, ResultModel) { var DelvingResultModel = ResultModel.extend({ parse: function(res) { var fields = res.item.fields; var f = { title: fields.dc_title, ...
JavaScript
0
@@ -1553,32 +1553,91 @@ return + _.isNumber(this.state.lat) && _.isNumber(this.state.lat) ? this.state.lat @@ -1658,16 +1658,23 @@ tate.lng + : null ;%0A @@ -1718,16 +1718,56 @@ return + _.isNumber(this.state.searchDistance) ? Math.ro @@ -1796,16 +1796,23 @@ istance) + : null ;%0A
83070eb394cf8464f7da355887f7ef91149205b2
Change image size when fitting to container.
source/edgecase.js
source/edgecase.js
Edgecase = new JS.Module('Edgecase', { include: Ojay.Observable, _visible: true, setElement: function(element) { this._element = Ojay(element); return this; }, setContainer: function(container) { this._container = container ? Ojay(container) : null; ...
JavaScript
0
@@ -427,32 +427,72 @@ ratio;%0A %0A + this.fitToContainer();%0A %0A return t
ffc73854bf71434c3a673dbdad22467057d32f2c
fix value month
src/garment-master-plan/weekly-plan-item.js
src/garment-master-plan/weekly-plan-item.js
'use strict'; var BaseModel = require('model-toolkit').BaseModel; module.exports = class WeeklyPlanItem extends BaseModel { constructor(source, type) { super(type || 'weekly-plan-item', '1.0.0'); this.weekNumber = {}; this.startDate = new Date(); this.endDate = new Date(); ...
JavaScript
0.000001
@@ -326,17 +326,17 @@ month = -1 +0 ;%0A
8ba12c9d0dac87514354b1f0e5251e08fa6aee2d
remove js for removed elements
website/static/landing.js
website/static/landing.js
"use strict"; if (location.hash.slice(1).startsWith(encodeURIComponent("{"))) { location.pathname = "/playground/"; } window.addEventListener("load", () => { // We don't have access to a unique body css attribute for just the homepage // so instead it is set on load. It's only really visible on a vertical overs...
JavaScript
0.000001
@@ -1019,674 +1019,8 @@ %7D); -%0A%0A const yarnButton = document.querySelector(%22.showYarnButton%22);%0A const npmButton = document.querySelector(%22.showNpmButton%22);%0A const getStartedSection = document.querySelector(%22.getStartedSection%22);%0A%0A npmButton.addEventListener(%22click%22, (event) =%3E %7B%0...
c34db47c0cf405207a2385bf2fba567c75a50bb2
fix prettier loading
website/static/worker2.js
website/static/worker2.js
/* eslint-env worker */ /* eslint no-var: off, strict: off */ // "Polyfills" in order for all the code to run self.global = self; self.util = {}; self.path = {}; self.Buffer = { isBuffer: function() { return false; } }; self.constants = {}; // eslint-disable-next-line module$1 = module = path = os = crypto = {...
JavaScript
0.000002
@@ -1010,16 +1010,30 @@ h%5D;%0A%7D;%0A%0A +var prettier;%0A importSc @@ -1055,19 +1055,149 @@ x.js%22);%0A -var +if (typeof prettier === %22undefined%22) %7B%0A prettier = module.exports; // eslint-disable-line%0A%7D%0Aif (typeof prettier === %22undefined%22) %7B%0A prettie @@ -1229,16 +1229,18 @@ ble-line +%0...
af37db0d88d0157cdace75036e2fde4c62f20807
support newer formSelect() method
app/assets/javascripts/materialize-form.js
app/assets/javascripts/materialize-form.js
window.materializeForm = { init: function() { this.initSelect() this.initCheckbox() this.initDate() }, initSelect: function() { $('select[multiple="multiple"] option[value=""]').attr('disabled', true) $('select').material_select() }, initCheckbox: function() { $('input[type=checkbox]')...
JavaScript
0
@@ -224,37 +224,151 @@ -$('select').material_select() +if (typeof $('select').material_select === %22function%22) %7B%0A $('select').material_select()%0A %7D else %7B%0A $('select').formSelect()%0A %7D%0A %0A %7D
8b0d37ca9e75f33c359fcf3b63532f3a76e50e5e
rename `log geth` cmd to log blockchain
src/lib/modules/blockchain_process/index.js
src/lib/modules/blockchain_process/index.js
const async = require('async'); const utils = require('../../utils/utils.js'); const constants = require('../../constants'); const BlockchainProcessLauncher = require('./blockchainProcessLauncher'); class BlockchainModule { constructor(embark, options) { this.logger = embark.logger; this.events = embark.eve...
JavaScript
0.000341
@@ -1695,20 +1695,26 @@ == 'log -geth +blockchain on',%0A @@ -1915,12 +1915,18 @@ log -geth +blockchain off
0fe441729dfdbc18f0394cb0658b10a5bb70d6fc
Remove empty stop array check
source/ratp/api.js
source/ratp/api.js
const TOKEN = "FvChCBnSetVgTKk324rO"; const API_HOST = "http://apixha.ixxi.net"; import RatpApiError from "~/common/errors/RatpApiError"; import BogusRatpApiResponseError from "~/common/errors/BogusRatpApiResponseError"; let promisify = require("promisify-node"); let _ = require("lodash"); let needle = promisify(requ...
JavaScript
0
@@ -889,245 +889,8 @@ %7D%0A - // the API sometimes returns an empty array for some reason%0A if (!nextStops.length && now.getHours() %3E 6) %7B%0A let err = new BogusRatpApiResponseError(%22No trains but there should be%22);%0A moduleLogger.debug(err);%0A throw err;%0A %7D%0A ne
38feed2328ad5cda296a2009ccb089fe8613ed51
remove erroneous quotes in tryCatch documentation (#2765)
source/tryCatch.js
source/tryCatch.js
import _arity from './internal/_arity'; import _concat from './internal/_concat'; import _curry2 from './internal/_curry2'; /** * `tryCatch` takes two functions, a `tryer` and a `catcher`. The returned * function evaluates the `tryer`; if it does not throw, it simply returns the * result. If the `tryer` *does* thro...
JavaScript
0
@@ -1126,11 +1126,8 @@ %5B%5D%0A - %60%60 */%0A
cf7364384822c4f7fe400c0d560de8a76eafc11a
add comments
app/controllers/timestampHandler.server.js
app/controllers/timestampHandler.server.js
'use strict'; module.exports = function (req, res) { var timestamp = { unix: null, natural: null }; var param = decodeURIComponent(req.url.substring(1)); //ignore leading / var num = Number(param); var re = /^([a-z]+) ([0-9]+), ([0-9]+)$/i; var date; if ((num || nu...
JavaScript
0
@@ -350,24 +350,64 @@ ger(num)) %7B%0A + //param is a unix timetimestamp%0A date @@ -551,24 +551,67 @@ t(param)) %7B%0A + //param is a natural language date%0A date
7ba4c5802e31e125b939f03437c2eed7f0104613
add comment
app/controllers/timestampHandler.server.js
app/controllers/timestampHandler.server.js
'use strict'; module.exports = function (req, res) { var timestamp = { unix: null, natural: null }; var param = decodeURIComponent(req.url.substring(1)); var num = Number(param); var re = /^([a-z]+) ([0-9]+), ([0-9]+)$/i; var date; if ((num || num === 0) && Number....
JavaScript
0
@@ -180,16 +180,35 @@ ing(1)); + //ignore leading / %0A var
262ee2e45a0393395c22fc4961532544afc6f8ad
Fix MySQLDatabaseManager#truncateDb to include ignoreTables
lib/MySqlDatabaseManager.js
lib/MySqlDatabaseManager.js
var DatabaseManager = require('./DatabaseManager').default , classUtils = require('./class-utils') , mysql = require('mysql') , Promise = require('bluebird') , _ = require('lodash'); /** * @constructor * @extends DatabaseManager * * Notes: * - Even though the method signature implicates that _maste...
JavaScript
0.000001
@@ -2784,32 +2784,177 @@ en(function() %7B%0A + // ignore the tables based on %60ignoreTables%60%0A var filteredTables = _.differenceWith(tableNames, ignoreTables, _.isEqual);%0A retu @@ -2968,24 +2968,28 @@ ise.map( -tableNam +filteredTabl es, func
9229b6ff89b8bf7a341bf890e841bd5a3e4c7e49
Add missing self
app/geobox/web/static/js/widgets/filter.js
app/geobox/web/static/js/widgets/filter.js
gbi.widgets = gbi.widgets || {}; gbi.widgets.Filter = function(editor, options) { var self = this; this.options = $.extend({}, options); this.element = $('#' + this.options.element); this.editor = editor; this.render(); $(gbi).on('gbi.layermanager.layer.active', function() { self.rende...
JavaScript
0.99904
@@ -1339,32 +1339,57 @@ event, layer) %7B%0A + var self = this;%0A self.ele
24b2c60beb73ff932b9539587e162283e99fd35d
Fix icons having an image role (#20600)
app/javascript/mastodon/components/icon.js
app/javascript/mastodon/components/icon.js
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Icon extends React.PureComponent { static propTypes = { id: PropTypes.string.isRequired, className: PropTypes.string, fixedWidth: PropTypes.bool, }; render () { const { id, c...
JavaScript
0
@@ -386,19 +386,8 @@ %3Ci - role='img' cla
d15b0f0d56630d4d076345cac955c73564f302b4
fix lint-error in translations JS
app/javascript/src/locale/fr_FR/timeago.js
app/javascript/src/locale/fr_FR/timeago.js
module.exports = (number, index) => [ ["à l'instant", 'dans un instant'], ['il y a %s secondes', 'dans %s secondes'], ['il y a 1 minute', 'dans 1 minute'], ['il y a %s minutes', 'dans %s minutes'], ['il y a 1 heure', 'dans 1 heure'], ['il y a %s heures', 'dans %s heures'], ['il y a 1 jour', 'dans 1 jour']...
JavaScript
0.000119
@@ -38,20 +38,21 @@ %0A %5B -%22 +' %C3%A0 l +%5C 'instant %22, ' @@ -51,9 +51,9 @@ tant -%22 +' , 'd
0b6523ba214f6fa9d6d1a2d46dae7591af46cffc
add config arg to constructor
lib/ServiceProviderMixin.js
lib/ServiceProviderMixin.js
/* jslint node: true, esnext: true */ "use strict"; const rgm = require('./RegistrarMixin'); /** * provide services and hold service configuration */ module.exports = (superclass) => class extends superclass { constructor() { super(); rgm.defineRegistrarProperties(this, 'service'); } /** * adds a pre co...
JavaScript
0.000004
@@ -222,16 +222,22 @@ tructor( +config ) %7B%0A%09%09su @@ -240,16 +240,22 @@ %09%09super( +config );%0A%09%09rgm
486c2012b4d6c07cee76e1abedf2fd2d4adce2ab
Change to print meaningless results with strict '=' prefix
app/main/plugins/hain-plugin-math/index.js
app/main/plugins/hain-plugin-math/index.js
'use strict'; const lo_isNumber = require('lodash.isnumber'); const lo_isString = require('lodash.isstring'); const lo_isObject = require('lodash.isobject'); const lo_has = require('lodash.has'); const math = require('mathjs'); module.exports = (context) => { const app = context.app; const clipboard = context.cl...
JavaScript
0.00002
@@ -481,27 +481,34 @@ culate(query +, false );%0A - if (!a @@ -664,24 +664,30 @@ culate(query +, true );%0A if (! @@ -1002,16 +1002,37 @@ te(query +, showRedundantResult ) %7B%0A @@ -1219,18 +1219,42 @@ -if +const isResultMeaningful = (ansStr @@ -1281,16 +1281,72 @@ .trim()) +;%0A ...
d890571d77f7ad8c840f9f2d7ca7189f61547534
Fix for #2327
lib/associations/has-one.js
lib/associations/has-one.js
'use strict'; var Utils = require('./../utils') , Helpers = require('./helpers') , Transaction = require('../transaction'); module.exports = (function() { var HasOne = function(srcDAO, targetDAO, options) { this.associationType = 'HasOne'; this.source = srcDAO; this.target = targetDAO; this.opti...
JavaScript
0
@@ -4793,16 +4793,45 @@ = this;%0A + values = values %7C%7C %7B%7D;%0A op
37f61c479e3d79eebff6049b0e980ff6d82b4ec2
Handle className properly on SVG nodes
src/browser/ui/dom/HTMLDOMPropertyConfig.js
src/browser/ui/dom/HTMLDOMPropertyConfig.js
/** * Copyright 2013-2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
JavaScript
0
@@ -720,16 +720,76 @@ perty'); +%0Avar ExecutionEnvironment = require('ExecutionEnvironment'); %0A%0Avar MU @@ -1282,16 +1282,299 @@ VALUE;%0A%0A +var hasSVG;%0Aif (ExecutionEnvironment.canUseDOM) %7B%0A var implementation = document.implementation;%0A hasSVG = (%0A implementation &&%0A implementation.hasFea...
36428e304dd0bde0d21f2215d99db90479349a3e
add CC and VPRS series
src/client/temp/data/2017-ncnca-serieses.js
src/client/temp/data/2017-ncnca-serieses.js
/*eslint-disable */ //last id 40001 export default [ { "id": "ser-40001", "name": "2017 USAC National Championships", "url": "http://www.ncnca.org/ncncaseries/2017-usac-national-championships", "shortName": "UNC" }, ]
JavaScript
0
@@ -212,10 +212,290 @@ UNC%22 %7D,%0A + %7B %22id%22: %22ser-40002%22, %22name%22: %222017 Cal Cup%22, %22url%22: %22http://www.ncnca.org/ncncaseries/2017-cal-cup%22, %22shortName%22: %22CC%22 %7D,%0A %7B %22id%22: %22ser-40003%22, %22name%22: %222017 Velo Promo Road Series%22, %22url%22: %22http://www.ncnca.org/ncn...
43aad8b23d299b1d42de7750e52c6527fea6c676
Fix bug, firefox thinks "watch" property is a duplicate
app/scripts/services/dice-words-service.js
app/scripts/services/dice-words-service.js
/** * The MIT License (MIT) * Copyright (c) 2016 Krypto Fin ry and the FIMK Developers * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitatio...
JavaScript
0.000001
@@ -2713,21 +2713,36 @@ plicates -%5Bkey%5D +.hasOwnProperty(key) ) %7B%0A
71a910d2c0ecf1d0f74de5b2d21350f7eb1d1903
add trigger for replay
app/services/repos/landscape-repository.js
app/services/repos/landscape-repository.js
import Ember from 'ember'; const {Service, Evented} = Ember; /** * TODO * * @class Landscape-Repository-Service * @extends Ember.Service */ export default Service.extend(Evented, { latestLandscape: null, latestApplication: null, replayLandscape: null, replayApplication:null, triggerUpdate(){ this.t...
JavaScript
0
@@ -361,16 +361,74 @@ ape%22));%0A + this.trigger(%22updated%22, this.get(%22replayLandscape%22));%0A %7D%0A%0A%7D);
446c0e092f1c725a4afc6933ad5d8c8dece08437
Clean up the error pages.
lib/components/ErrorPage.js
lib/components/ErrorPage.js
import ErrorStore from '../stores/ErrorStore' import React from 'react' export default class ErrorPage extends React.Component { constructor() { this.state = ErrorStore.getState() this._onChange = () => { this.setState(ErrorStore.getState()) } } componentDidMount() { ErrorStore.listen(th...
JavaScript
0
@@ -1,12 +1,46 @@ +import Centered from './Centered'%0A import Error @@ -98,16 +98,48 @@ 'react' +%0Aimport Spinner from './Spinner' %0A%0Aexport @@ -498,23 +498,99 @@ rn %3C -div%3E%0A %3Ch1%3E +Centered ver%3E%0A%0A %3CSpinner dir=%22up%22 /%3E%0A%0A %3Ch1 className=%22with-subtitle%22%3EFilePizza...
fb54874b19e8f0529b7ceb275c41ed92849e1dc7
improve unlock screen (#33)
src/component/lockedState/UnlockAppAlert.js
src/component/lockedState/UnlockAppAlert.js
import React from'React' import { View, TextInput, TouchableOpacity, Text } from 'react-native' import DefaultText from '../DefaultText' import Colors from '@Colors/colors' import merge from '../../util/merge' import style from './UnlockAppAlertStyle' import { unlockCharNo } from '../../store/reducer/login' export con...
JavaScript
0
@@ -1843,16 +1843,65 @@ e.pass%7D%0A + maxLength=%7BunlockCharNo%7D%0A @@ -1941,16 +1941,19 @@ l=%7B' -Password +Unlock code '%7D%0A
809744b9758c4c55927791fee2086b826ca8f49a
resolve bug in show opacity slider
src/components/GlobalFilter/GlobalFilter.js
src/components/GlobalFilter/GlobalFilter.js
import React from 'react' import Place from './Place' const GlobalFilter = ({ places, mapProperties, onPlaceClick, onOpacityChange, onContourChange, onKeyUpSearch, }) => { let input // treat opacity tooltip value let opacity if (!mapProperties) { opacity = .5 } el...
JavaScript
0
@@ -3025,16 +3025,17 @@ + %3Cp%3E%7Bopac
a4644c204dc24352fd5313f81c16fc3570ab5249
add shadow style props to Image styles
src/components/Image/ImageStylePropTypes.js
src/components/Image/ImageStylePropTypes.js
import BorderPropTypes from '../../propTypes/BorderPropTypes'; import ColorPropType from '../../propTypes/ColorPropType'; import ImageResizeMode from './ImageResizeMode'; import LayoutPropTypes from '../../propTypes/LayoutPropTypes'; import { PropTypes } from 'react'; import TransformPropTypes from '../../propTypes/Tra...
JavaScript
0
@@ -262,16 +262,79 @@ react';%0A +import ShadowPropTypes from '../../propTypes/ShadowPropTypes';%0A import T @@ -521,24 +521,46 @@ tPropTypes,%0A + ...ShadowPropTypes,%0A ...Transfo
f3a408d27ed8ad8a2990f9597b38c5192294cd40
Update to be stateless component
src/components/common/ConfirmationDialog.js
src/components/common/ConfirmationDialog.js
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/Dialog...
JavaScript
0.000004
@@ -417,503 +417,245 @@ l';%0A -%0Aclass ConfirmationDialog extends React.Component %7B%0A handleOk = () =%3E %7B%0A const %7B onOk %7D = this.props;%0A onOk();%0A %7D%0A%0A handleCancel = () =%3E %7B%0A const %7B onCancel %7D = this.props;%0A onCancel();%0A %7D%0A%0A render() %7B%0A const %7B open...
a452307bcff9fa37436c5f178c5f654f1d580c5d
Make toggle work on list component
src/components/streams/StreamRenderables.js
src/components/streams/StreamRenderables.js
import React from 'react' import { camelize } from 'humps' import * as api from '../../networking/api' import { getLinkArray } from '../base/json_helper' import PostParser from '../parsers/PostParser' import CommentParser from '../parsers/CommentParser' import { parseNotification } from '../parsers/NotificationParser' ...
JavaScript
0.000001
@@ -2833,32 +2833,64 @@ dLayout=%7Bfalse%7D +showComments=%7Bpost.showComments%7D /%3E%0A %3C/art
f2b203a826589550b1cf1aea1bf5237ab75e32d7
Fix issue with VictoryZoom>VictoryChart child events
src/components/victory-zoom/victory-zoom.js
src/components/victory-zoom/victory-zoom.js
import React, {Component, PropTypes} from "react"; import { assign, groupBy, isEqual } from "lodash"; import ChartHelpers from "../victory-chart/helper-methods"; import ZoomHelpers from "./helper-methods"; import {VictoryClipContainer, Helpers, PropTypes as CustomPropTypes, Timer} from "victory-core"; const fallbackPr...
JavaScript
0
@@ -5153,131 +5153,167 @@ nst -nextProps = assign(%7B%7D, chart.props, %7B%0A events: chart.props.events ? chart.props.events.unshift(...this.events) : this. +events = chart.props.events%0A ? (this.events %7C%7C %5B%5D).concat(chart.props.events)%0A : this.events;%0A%0A const nextProps = assign(%7B%...
4a5dd9398c43ec4cba7cf41cb09a5a56b18ec412
Add extra is visible check to see if it solves firefox issue
src/content/devices/input-output/js/test.js
src/content/devices/input-output/js/test.js
/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ 'use strict'; // This is a basic test file for use with testling. // The test script language c...
JavaScript
0
@@ -1170,32 +1170,34 @@ ated(%0A + webdriver.By.css @@ -1256,32 +1256,131 @@ tion(element) %7B%0A + return driver.wait(webdriver.until.elementIsVisible(element))%0A .then(function() %7B%0A return n @@ -1415,32 +1415,17 @@ driver). -%0A doubleC +c lick(ele @@ -1433,32 +14...
7471352c880d5edc4749cbeaa37c283c8ce6a759
Remove unnecessary comment
lib/ensure/symlink-paths.js
lib/ensure/symlink-paths.js
'use strict' const path = require('path') // path.isAbsolute shim for Node.js 0.10 support const fs = require('graceful-fs') /** * Function that returns two types of paths, one relative to symlink, and one * relative to the current working directory. Checks if path is absolute or * relative. If the path is relativ...
JavaScript
0
@@ -40,57 +40,8 @@ h')%0A -// path.isAbsolute shim for Node.js 0.10 support%0A cons
fc2284573122d7a5417954c5d3e6117a0b5c088f
Use `res.serverError` to display view errors, if it exists.
lib/hooks/views/res.view.js
lib/hooks/views/res.view.js
/** * Module dependencies */ var path = require('path'), _ = require('lodash'); /** * Adds res.view() method (an enhanced version of res.render) to response object. * `res.view()` automatically renders the appropriate view based on the calling middleware's source route * Note: the original function is still a...
JavaScript
0
@@ -6062,16 +6062,109 @@ if +(res.serverError) %7B%0A return res.serverError(err.message);%0A %7D%0A else if (process
931129a37459315f3ee9f1885b4da504c16d877c
test on Mojave
.min-wd.js
.min-wd.js
/* Note: Firefox tests work up until version 58. After that, Selenium has a problem: POST /session/14641de4c7f12c2f9b2eaf307a0955edf23dc59b/timeouts/async_script did not match a known command No combination of browserstack.geckodriver and browserstack.selenium_version that worked was found. T...
JavaScript
0.000001
@@ -834,19 +834,14 @@ ': ' -High Sierra +Mojave ',%0A