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
ac4ff7a3cdf033142604ba827a316c43d5cd269f
add test for landmarks
test/test-role.js
test/test-role.js
describe('getRole', function() { var testbed; var setupTestbed = function(file) { return fetch('role/' + file) .then(response => response.text()) .then(html => { testbed.innerHTML = html; }); }; beforeEach(function() { testbed = document.createElement('div'); // make sure styles are actually comput...
JavaScript
0.000003
@@ -956,13 +956,304 @@ %7D);%0A%09%7D); +%0A%0A%09it('landmarks', function() %7B%0A%09%09return setupTestbed('landmarks.html').then(function() %7B%0A%09%09%09var actual = aria.querySelectorAll(testbed, 'landmark').map(aria.getRole);%0A%09%09%09expect(actual).toEqual(%5B%0A%09%09%09%09'banner',%0A%09%09%09%09'main',%0A...
3197ebab10d13dd7285f16fa95ba13fe7b8e273a
tweak mutation observer settings
common/lib/3rd/i18n.js
common/lib/3rd/i18n.js
(function (w){ "use strict"; var that = w.i18n = {}; function noop(){ }; function extend(){ var r = {}; for ( var i = 0; i < arguments.length; i++ ) { for ( var j in arguments[i] ) { if ( arguments[i].hasOwnProperty(j) ) { r[j] = arguments[i][j]; } } } r...
JavaScript
0
@@ -411,24 +411,29 @@ tributes + : true,%0A chil @@ -420,24 +420,56 @@ : true,%0A + attributeFilter: %5B%22title%22%5D,%0A childLis @@ -470,16 +470,21 @@ ildList + : true,%0A @@ -497,16 +497,21 @@ btree + : true%0A @@ -1949,16 +1949,51 @@ ntent;%0A%0A + console.log(%22rep...
7f92d43912d308f5d4f5cab2b72b313965161540
add osaka login button component
packages/snowboard-theme-osaka/osaka/components/LoginButton.js
packages/snowboard-theme-osaka/osaka/components/LoginButton.js
import React from "react"; import qs from "querystringify"; import { Button } from "baseui/button"; import { buildAuthorizeUrl } from "snowboard-theme-helper"; import { useCurrentRoute } from "react-navi"; import { useStore } from "../lib/store"; export default function({ authOptions, codeChallenge, codeState }) { c...
JavaScript
0
@@ -24,41 +24,8 @@ t%22;%0A -import qs from %22querystringify%22;%0A impo
92cef1fd7a5b418c5d5d5f0f24d1265ef03acd6b
Improve naming of CLI tests
tests/cli.js
tests/cli.js
var assert = require('assert'), should = require('should'), childProcess = require('child_process'); describe('CLI', function () { describe('#help', function () { it('should return help instructions', function (done) { var command = 'sass-lint -h'; childProcess.exec(command, function (err,...
JavaScript
0
@@ -118,45 +118,11 @@ be(' -CLI', function () %7B%0A describe('#help +cli ', f @@ -126,34 +126,32 @@ , function () %7B%0A - it('should ret @@ -184,39 +184,36 @@ nction (done) %7B%0A -%0A - var command = 's @@ -223,26 +223,24 @@ -lint -h';%0A%0A - childPro @@ -281,34 +281,32 @@ stdout) %7B%0A...
0f242c588ba94885197eea72f7be031daecd2500
Update character
output.js
output.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 //Added a comment that achieves no real goal. if ( proc
JavaScript
0
@@ -133,12 +133,13 @@ l.%0Aif ( proc +e
050739e191474fc7bb23603aceb47e0b3624d01b
Update character
output.js
output.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 //Added a comment that achieves no real goal. if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var
JavaScript
0
@@ -178,12 +178,13 @@ %5D ) %7B%0A var +i
e11c92225193e0e8f2cb27ea8c991b5dd25dff11
access currentStyle
source/Window.prototype.getComputedStyle.ie8.js
source/Window.prototype.getComputedStyle.ie8.js
// Window.prototype.getComputedStyle (function () { function getComputedStylePixel(element, property, fontSize) { var value = element.currentStyle[property].match(/([\d\.]+)(%|cm|em|in|mm|pc|pt|)/) || [0, 0, ''], size = value[1], suffix = value[2], rootSize; fontSize = !fontSize ? fontSize : /%|em/.test(s...
JavaScript
0
@@ -104,24 +104,149 @@ fontSize) %7B%0A +%09%09element.document; // Internet Explorer sometimes struggles to read currentStyle until the element's document is accessed.%0A%0A %09%09var%0A%09%09valu
db97f017558acd304239965c4c7309d62025ed5c
fix issue
client/actions/actions.js
client/actions/actions.js
export const ACTION_ENUM = { NEW_GAME: 'NEW_GAME', SHOW_CREDITS: 'SHOW_CREDITS', GO_HOME: 'GO_HOME', SELECT_PROGRAM: 'SELECT_PROGRAM', ADD_PROGRAM: 'ADD_PROGRAM', UNSELECT_PROGRAM: 'UNSELECT_PROGRAM' }; export const SCENE_ENUM = { SPLASH_SCENE: 'SPLASH_SCENE', INTRO_SCENE: 'INTRO_SCENE', CREDITS_SCEN...
JavaScript
0.000002
@@ -414,155 +414,8 @@ %0A%7D%0A%0A -export function purchaseProgram(programName,credit)%7B%0A return %7Btype: ACTION_ENUM.PURCHASE_PROGRAM,programName:programName,credit:credit%7D%0A%7D%0A=======%0A expo
80b63a328e4ce8a934030aa09ea2070070e8aeff
fix cookie out of date bug
client/app/credentials.js
client/app/credentials.js
import io from 'socket.io-client'; // var debug = require('react-debug'); export var socket = io(); /** * Stores authentication credentials. */ var user = null; // var debug = require('react-debug'); /** * Get the token of the currently authenticated user. */ export function getToken() { if (isUserLoggedIn()) ...
JavaScript
0.000003
@@ -28,16 +28,59 @@ lient';%0A +import %7BhashHistory %7D from 'react-router';%0A // var d @@ -1493,24 +1493,50 @@ m('token');%0A + hashHistory.push('/');%0A %7D%0A var xh
c19014c0387e1617c4f7ac5c34fa6917874b9a2b
replace randomParams with constraints
plugin/default-plugins/playground/frontend/utils/getControl.js
plugin/default-plugins/playground/frontend/utils/getControl.js
/** * getControl * * @param {object} propType The propType we want the control for * @return {component} The rendered control for the propType */ import React from 'react'; import BooleanControl from '../components/controls/BooleanControl'; import IntegerControl from '../components/controls/IntegerControl'...
JavaScript
0.000026
@@ -1066,27 +1066,26 @@ const -randomParam +constraint s = prop @@ -1101,27 +1101,26 @@ ropMeta. -randomParam +constraint s ? prop @@ -1124,27 +1124,26 @@ ropMeta. -randomParam +constraint s : %7B%7D;%0A @@ -1278,41 +1278,19 @@ -randomParams: %7B ...randomParams %7D +constraints ,%0A
13c35e7a6b16a0344d779f25cec00f3e5f599dec
Fix searching for protein sequences in RegexSequenceSearch. Fixes #564
plugins/RegexSequenceSearch/js/Store/SeqFeature/RegexSearch.js
plugins/RegexSequenceSearch/js/Store/SeqFeature/RegexSearch.js
define([ 'dojo/_base/declare', 'dojo/_base/array', 'dojo/_base/lang', 'JBrowse/Store/SeqFeature', 'JBrowse/Model/SimpleFeature', 'JBrowse/Errors', 'JBrowse/Util', 'JBrowse/CodonTable' ], function( declare, array, lang, ...
JavaScript
0
@@ -4276,33 +4276,32 @@ %7D%0A %7D,%0A -%0A translat @@ -4302,33 +4302,32 @@ anslateSequence: - function( sequen @@ -4524,16 +4524,145 @@ d = %22%22;%0A + var codontable=new CodonTable();%0A var codons=codontable.generateCodonTable(codontable.defaultCodonTable);%0A ...
f2a9da14ecbe500a23985c974625647dfa7f0d60
Define paper.version.
src/core/PaperScope.js
src/core/PaperScope.js
/* * Paper.js * * This file is part of Paper.js, a JavaScript Vector Graphics Library, * based on Scriptographer.org and designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Distributed under the MIT license. See LICENSE file for details. * * Copyright (c) 2011, Juerg ...
JavaScript
0.000059
@@ -648,16 +648,106 @@ extend(%7B +%0A%09/**%0A%09 * The version of Paper.js, as a float number.%0A%09 * @type Number%0A%09 */%0A%09version: 0.1, %0A%0A%09initi
b9a097499df0b96a76f052cd982a26df8b2ddc22
use source url instead of window.location (#7302)
ads/distroscale.js
ads/distroscale.js
/** * Copyright 2016 The AMP HTML 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 require...
JavaScript
0
@@ -898,20 +898,43 @@ pid) - +%0A '&f +;%0A%0A if (data.zid) %7B%0A src += '&z =' + @@ -957,38 +957,55 @@ ent( -global.context.location.href); +data.zid);%0A %7D else %7B%0A src += '&z=amp';%0A %7D%0A %0A i @@ -1075,34 +1075,115 @@ %0A %7D%0A%0A -if (data.zid) %7B%0A +let srcUrl = global.contex...
f6a2fc6506307df9587f1359448efc1eb9d17a9c
Disable Like button unless user is logged in
client/components/Like.js
client/components/Like.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import actions from '../actions/index.js'; import classNames from 'classnames'; import { getLikeState, updateLike } from '../utils/utils'; class Like extends Component { constructor(props) { super(props); } componentDidMount()...
JavaScript
0
@@ -678,19 +678,30 @@ %0A %3C -div +button%0A classNa @@ -716,16 +716,51 @@ -button%22 +%0A disabled=%7B!userID%7D%0A onClick @@ -830,16 +830,23 @@ leLike)%7D +%0A %3E%0A @@ -904,16 +904,23 @@ ikeCount + %7C%7C '0' %7D %3C/span @@ -933,11 +933,14 @@ %3C/ -div +button ...
ead68d924ff6ae99632a9987f30c43f6f80b9ee6
Update main.js
client/components/main.js
client/components/main.js
import React, { Component } from 'react'; import { Route, Switch } from 'react-router-dom'; import {LandingPage, OurNavbar, AllArtists, SingleArtist, AllGalleries, SingleGallery, CanvasWrapper, GalleryCreate, SinglePainting, GalleryEdit, Signup, Signin, ArtistDashboard, VRNightScene, VRDesert, VRStarry, VRVanGo...
JavaScript
0.000001
@@ -2317,17 +2317,17 @@ =%22/logo -P +p age%22 com
4f91bfbbfcfda7baa1a69699f1b3731b4365785e
Update youtube.search.js
youtube-search-v3/script/js/youtube.search.js
youtube-search-v3/script/js/youtube.search.js
$(function(){ $.ARamaYap = { GetStringDuration: function (string){ var array=string.match(/(\d+)(?=[MHS])/ig)||[], formatted=array.map(function(item) { if(item.length<2) return '0'+item;return item; }).join(':'); return formatted; }, SerializeQuerySearch: function (query,pag...
JavaScript
0.000001
@@ -1,8 +1,72 @@ +%0A%09//google api keyinizi a%C5%9Fa%C4%9F%C4%B1ya girdikten sonra script %C3%A7al%C4%B1%C5%9F%C4%B1r %0A %09$(funct @@ -557,47 +557,15 @@ key= -AIzaSyDBOCt3vmcrIWC9-LUGX3JtYkrNBwVqUgg +'+key+' &max @@ -625,16 +625,51 @@ #sonuc%22) +,%0A%09%09%09%09key = 'sizin google api key' ;%0A%09%09%09son @...
373e81c8c9a02848acfe3b6069072fa788fd023a
correct hue-dmx to dmx-hue
lib/hue.js
lib/hue.js
'use strict'; const Color = require('color'); const hue = require('node-hue-api'); const HueApi = hue.api; const Util = require('./util'); const APP_DESCRIPTION = 'dmx-hue utility'; class Hue { getLights() { return this.api .lights() .then(result => result.lights, () => Util.exit('No lights found')...
JavaScript
0
@@ -2384,39 +2384,39 @@ onfigured, run %22 -hue-dmx +dmx-hue setup%22');%0A %7D%0A%0A @@ -2507,15 +2507,15 @@ un %22 -hue-dmx +dmx-hue set
d7bf5d452a6a748e568fa86a59a34a2bca588674
add changeOrigin to RoutingProxy options
lib/handlers/api.js
lib/handlers/api.js
/** * Serves the API, proxying relevant requests to CouchDB */ var http_proxy = require("http-proxy"); module.exports = function (config) { // make sure the couch host and port are set in config if (!config.couch.host || !config.couch.port) { return callback(new Error( "Please set the C...
JavaScript
0
@@ -567,16 +567,50 @@ ngProxy( +%7B%0A changeOrigin: true%0A %7D );%0A%0A
94259b8d776710eab6260b1204a7f179b78fd06b
update query for max key duration in iam.js
lib/iam.js
lib/iam.js
var program = require('commander'), clc = require('cli-color'), _ = require('underscore'), async = require('async'), alks = require('alks-node'), config = require('../package.json'), Developer = require('./developer'), keys = require('./keys'), utils ...
JavaScript
0
@@ -3355,32 +3355,343 @@ %0A %7D%0A%0A + var data = _.extend(developer, %7B alksAccount: alksAccount, alksRole: alksRole %7D);%0A alks.getDurations(data, auth, %7B debug: program.verbose, ua: utils.getUA() %7D, function(err, durations)%7B%0A if(err) return callback(err);...
29b0b56ddfae68780a5db223743a62618e37a675
Clean up hash wrapper, removed console, fixed whitespace. Added new utility to truly raw method (_).
lib/hash/wrapper.js
lib/hash/wrapper.js
'use strict'; var b64 = require('../encoding/b64'); var endian = require('../encoding/endian'); var hex = require('../encoding/hex'); var utf8 = require('../encoding/utf8'); function HashResult(result) { this.result = result; } HashResult.prototype.raw = function _raw() { return endian.dec(this.result); }; HashRe...
JavaScript
0
@@ -607,16 +607,19 @@ ta) %7B%0A%09%09 +// console. @@ -922,17 +922,16 @@ dian();%0A -%0A %09%09var ip @@ -944,17 +944,23 @@ rray(16) -, +;%0A%09%09var opad = @@ -974,13 +974,15 @@ 6);%0A +%0A %09%09for + (var @@ -1532,16 +1532,41 @@ );%0A%09%7D;%0A%0A +%09hash._ = hashFunction;%0A%0A %09return
46b21960d02bac783454b8ed0becf6e1f8ddb60b
Fix broken option selection due to change in Google Autocomplete
jquery.placecomplete.js
jquery.placecomplete.js
//! jquery.placecomplete.js //! version : 0.0.1 //! authors : Sébastien Hawkins //! license : Apache (function($){ if(typeof $.fn.select2 == 'undefined'){ console.log("ERROR: Placecomplete need Select2 plugin.") } //Google services var ac = null; //Autocomplete var ps = null; //Place ...
JavaScript
0.998885
@@ -3708,24 +3708,75 @@ dex,item)%7B%0A + item.id = item.place_id;%0A
7c56887514d8290c41878e769ba74ff026cce953
fix bug
pubsub.js
pubsub.js
require("./framework.js"); var connect_callback = function(client){ // test the normal presence // set and send message to self alias if (null == error){ var date1 = new Date(); console.log(date1 + ":--- publish to alias ---"); client.publish(token_prefix + ',yta/' + alias, 'hello',...
JavaScript
0.000001
@@ -140,247 +140,8 @@ ias%0A - if (null == error)%7B%0A var date1 = new Date();%0A console.log(date1 + %22:--- publish to alias ---%22);%0A client.publish(token_prefix + ',yta/' + alias, 'hello', %7Bqos : 1%7D, %0A function(error)%7B%0A @@ -164,32 +164,16 @@...
0f5fc666eaab5b656e4335bf9103418d048605f6
fix back
jquery.scrollbar-nav.js
jquery.scrollbar-nav.js
;( function( $ ){ $.fn.extend( { scrollbarNav: function( options ){ this.defaults = { topOffset : 10 }; var settings = $.extend( {}, this.defaults, options ); return this.each( function() { $(window).load(function() { var $this = $( this ); //DOM 结构创建 var tempDOM = $('<ul cla...
JavaScript
0.000001
@@ -210,42 +210,8 @@ %7B%0A%0A -%09%09%09%09$(window).load(function() %7B%0A%0A%09 %09%09%09%09 @@ -230,25 +230,24 @@ $( this );%0A%0A -%09 %09%09%09%09//DOM %E7%BB%93%E6%9E%84 @@ -249,25 +249,24 @@ OM %E7%BB%93%E6%9E%84%E5%88%9B%E5%BB%BA%0A%09%09%09%09 -%09 var tempDOM @@ -298,25 +298,24 @@ v%22%3E%3C/ul%3E')...
d70d9f0fbd676dd65d5456ffde9a16f5da7b3232
Remove extra newline
test/test.test.js
test/test.test.js
var postcss = require('postcss'); var path = require('path'); var mixins = require('../'); function run(input, output, opts) { return postcss([ mixins(opts) ]).process(input) .then( result => { expect(result.css).toEqual(output); expect(result.warnings().length).toBe(0); ...
JavaScript
0.000002
@@ -6686,25 +6686,24 @@ tput);%0A%7D);%0A%0A -%0A it('cans rem
648c68ab24e77a548038a434fcc9bbc9c8985ca7
use log prefix style more like npm
lib/log.js
lib/log.js
/* * Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ 'use strict'; var log = require('npmlog'); // cust config log.addLevel('debug', 999, {fg: 'grey'}, 'debug'); //log.level = 'debug'; // monkey patch np...
JavaScript
0.000001
@@ -270,35 +270,11 @@ debu -g '); -%0A//log.level = 'debug'; %0A%0A// @@ -367,19 +367,16 @@ = 'verb -ose ';%0Alog.d
ac6a5ab5edfe50d1fe534b350b8e6123f7d04c02
Add support for action on select to ui-dropdown
client/app/components/ui-dropdown.js
client/app/components/ui-dropdown.js
import Ember from "ember"; export default Ember.Component.extend({ tagName: 'div', classNames: ['ui', 'selection', 'dropdown', 'fluid'], classNameBindings: ['multiple', 'search'], content: null, value: null, optionValuePath: null, optionLabelPath: null, allowAdditions: null, bindAttributes: ['opt...
JavaScript
0
@@ -383,16 +383,26 @@ ditions' +, 'action' %5D,%0A%0A ac @@ -1635,24 +1635,200 @@ ;%0A // %7D%0A%0A + if (this.get('attrs.action')) %7B%0A%0A if (!this.get('attrs.value')) %7B%0A this.$().dropdown('clear');%0A %7D%0A%0A this.sendAction('action', value);%0A%0A %7D else %7B%0A if...
20bd4326764024db8d22838794c45a34f48f23cc
edit solution
Algorithms/JS/arrays/matrices/nQueenProblem.js
Algorithms/JS/arrays/matrices/nQueenProblem.js
// Objec­tive : In chess, a queen can move as far as she pleases, hor­i­zon­tally, ver­ti­cally, or diag­o­nally. // A chess board has 8 rows and 8 columns. // The stan­dard 8 by 8 Queen’s prob­lem asks how to place 8 queens on an ordi­nary chess board // so that none of them can hit any other in one move. // Here we ...
JavaScript
0.000001
@@ -389,26 +389,25 @@ 0%0A%0Avar print -_b +B oard = funct @@ -674,18 +674,17 @@ %0Avar has -_c +C onflict @@ -724,32 +724,34 @@ = columns.length +-1 ,%0A last = c @@ -760,20 +760,16 @@ umns%5Blen - - 1 %5D,%0A @@ -786,17 +786,17 @@ = len - -2 +1 ;%0A%0A whi @@ -880,28 +880,24 @@ (last - (len - ...
b7a86383fb90fd5af6a2475065576243055258b1
Increase Klipse idle time
docs/fw/klipse-settings.js
docs/fw/klipse-settings.js
function test(name, actual, expect) { if (I.acyclicEqualsU(actual, expect)) console.log(name, 'Ok') else console.log(name, 'Error', actual) } function log() { console.log.apply(null, arguments) } window.klipse_settings = { codemirror_options_in: { lineWrapping: false, autoCloseBrackets: false,...
JavaScript
0
@@ -398,16 +398,39 @@ ue%0A %7D,%0A + eval_idle_msec: 150,%0A select
e293f04e1e84ac0a9b13ae3b92b733ef8086c015
kill outdated url
docs-learnblocks/index.js
docs-learnblocks/index.js
const window = require('global/window'); const slugify = require('slugificate'); const react = require('react'); const dom = react.DOM; const blocks = [ 'basics', 'wercker.yml', 'containers', 'pipelines', 'steps', 'build', 'deploy' ]; /** * Create class. */ module.exports = react.createClass({ ...
JavaScript
0.000001
@@ -679,11 +679,8 @@ + '/ -01_ intr
96ac47d61fd9ec75fb9c66d2eeaa9487a9f05607
Add react-addons-test-utils for unit tests in each combination
generators/app/index.js
generators/app/index.js
'use strict'; const _ = require('lodash'); const fountain = require('fountain-generator'); const conf = require('./conf'); const transforms = require('./transforms'); module.exports = fountain.Base.extend({ prompting() { this.options.modules = 'systemjs'; this.fountainPrompting(); }, configuring: { ...
JavaScript
0
@@ -1072,42 +1072,8 @@ act' - && this.props.js === 'typescript' ) %7B%0A
e97a86c856bf94af26c044b894653b823f16a9b9
Remove dead code.
event-handlers/pull-request/handle-action/index.js
event-handlers/pull-request/handle-action/index.js
const actionableEvents = { edited: require("./edited"), synchronize: require("./synchronize"), reopened: require("./opened"), opened: require("./opened") }; module.exports = async (data, config, gh) => { const { action, installationId, repoPath, sha } = data; const actionHandler = action...
JavaScript
0.00001
@@ -219,64 +219,15 @@ st %7B -%0A action -,%0A installationId,%0A repoPath,%0A sha%0A %7D =
12c3ae03abb858dc42d4ee33e65823e7947007a8
Fix the zero latency alerts being always raised
client/modules/latency.js
client/modules/latency.js
define(['modules/http', 'timing', 'utilities'], function(HttpModule, Timing, Utilities) { 'use strict'; var LatencyModule = function(options) { // We dont want any timeout during a latency calculation. Here we are using extend() because we want to edit the // delay on a clone of the object and...
JavaScript
0.000057
@@ -5107,16 +5107,41 @@ %0A + isThereAnyZeroLatency && console
40a7132c8774a4ff490947ce1c5f2c15a4881c0c
Add missing semicolon
lib/http_routing.js
lib/http_routing.js
/* jslint node: true, esnext: true */ "use strict"; const route = require('koa-route'), step = require('kronos-step'); class RouteSendEndpoint extends step.endpoint.SendEndpoint { constructor(name, owner, path, method, content) { super(name, owner); Object.defineProperty(this, 'path', { value: path }); ...
JavaScript
0.000835
@@ -1541,16 +1541,17 @@ %09%09%09%7D%0A%09%09%7D +; %0A%09%7D,%0A%0A%09c
5a277003698e1b19b5d6461cb0dcf4d188cfeef8
Fix memoization setup
text/enum.js
text/enum.js
'use strict'; var d = require('d') , memoize = require('memoizee/plain') , base = require('./3.object') , setup = require('./') , defineProperties = Object.defineProperties , DOMText = base.Text, DOMAttr = base.Attr , getValue = Object.getOwnPropertyDescriptor(DOMText.prototype, 'value').get ...
JavaScript
0.000003
@@ -1462,12 +1462,9 @@ , %7B -getN +n orma @@ -1507,16 +1507,18 @@ /get-1') +() %7D);%0A%0Aex
5a4a8918b2f80bb66ea1fb04a9dad29d1e5afc91
Add babel-plugin-symbol for jspm
generators/app/index.js
generators/app/index.js
const fountain = require('fountain-generator'); module.exports = fountain.Base.extend({ configuring: { pkg() { this.mergeJson('package.json', { devDependencies: { 'eslint': '^2.4.0', 'eslint-config-xo-space': '^0.12.0' }, eslintConfig: { root: true, ...
JavaScript
0
@@ -3220,32 +3220,153 @@ Dependencies: %7B%0A + 'babel-plugin-transform-es2015-typeof-symbol': 'npm:babel-plugin-transform-es2015-typeof-symbol@%5E6.8.0',%0A
f992599f7b904eab41f19798d2ae254f1241e481
update file rename
tasks/bust_requirejs_cache.js
tasks/bust_requirejs_cache.js
/* * grunt-bust-requirejs-cache * https://github.com/dukai/grunt-bust-requirejs-cache * * Copyright (c) 2015 DK * Licensed under the MIT license. */ 'use strict'; var path = require('path'); var util = require('util'); var crypto = require('crypto'); var ignoreMatch = function(src, patterns) { for (var i = 0,...
JavaScript
0.000002
@@ -251,16 +251,40 @@ rypto'); +%0Avar fs = require('fs'); %0A%0Avar ig @@ -784,88 +784,8 @@ );%0A%0A -%09var srcUrl = appDir + %22/%22 + baseUrl;%0A%0A%09grunt.log.writeln(%22src url: %22 + srcUrl); %0A%0A%09v @@ -1065,16 +1065,108 @@ ions();%0A +%09%09var srcUrl = options.appDir + %22/%22 + baseUrl;%0A%09%09grun...
b582f07dd54849d9435c1873c87814ce81c2788a
remove valid-syntax (deprecated), add no-dupe-keys, boolean-style, semi, space-before-generic-bracket, union-intersection-spacing
rules/flow.js
rules/flow.js
module.exports = { plugins: ['flowtype'], rules: { 'flowtype/require-parameter-type': ['warn', { excludeArrowFunctions: 'expressionsOnly' }], 'flowtype/require-return-type': ['warn', 'always', { excludeArrowFunctions: true, annotateUndefined: 'never', }], 'flowtype/space-before-type-col...
JavaScript
0.000005
@@ -48,16 +48,106 @@ ules: %7B%0A + 'flowtype/boolean-style': %5B'error', 'boolean'%5D,%0A 'flowtype/no-dupe-keys': 'error',%0A 'flo @@ -367,16 +367,45 @@ %7D%5D,%0A + 'flowtype/semi': 'error', %0A 'fl @@ -421,14 +421,13 @@ ace- -before +after -typ @@ -432,33 +432,31 @@ ype-colon': -%5B 'er...
d604d49033469c327d44e723158ebd3fca835d42
Default is docs not documents
generators/app/index.js
generators/app/index.js
'use strict'; var yeoman = require('yeoman-generator'); var fs = require('fs-extra'); var path = require('path'); var _ = require('lodash'); var armadillo = require('../../helpers/armadillo'); module.exports = yeoman.Base.extend({ prompting: function () { var done = this.async(); // Have Yeoman greet the u...
JavaScript
0.998922
@@ -1973,13 +1973,8 @@ 'doc -ument s'%0A
f073de3e2f1e04d4240d51d9bac9d5da8d7c2ce5
Move setting of tooltip title and location out of addToolTip function and into div.
website/static/js/newAndNoteworthyPlugin.js
website/static/js/newAndNoteworthyPlugin.js
/** * New and Noteworthy Projects */ var $ = require('jquery'); var m = require('mithril'); var $osf = require('js/osfHelpers'); // CSS require('css/quick-project-search-plugin.css'); // XHR config for apiserver connection var xhrconfig = function(xhr) { xhr.withCredentials = true; }; var NewAndNoteworthy = ...
JavaScript
0
@@ -3550,165 +3550,11 @@ idth - && !$line.attr('title')) %7B%0A $line.tooltip(%7B%0A title: $line.text(),%0A placement: 'top'%0A %7D); +) %7B %0A @@ -3768,16 +3768,186 @@ ription; +%0A var title = node.embeds.target_node.data.attribute...
b86a8dc8a8d88484c8c3dadeba4094c716c74a66
Update comments
src/autocomplete.js
src/autocomplete.js
var utils = require('./utils'); var dom = require('./dom-helper'); var Dropdown = require('./dropdown'); function AutoComplete(container, entries, opt) { var self = this; // Check params at first if (!container) throw new Error('You must assign an element to render on page!'); if (!entries || entries.lengt...
JavaScript
0
@@ -1881,101 +1881,276 @@ -self.dropdown.reset();%0A if (text === '') %7B%0A self.dropdown.hide();%0A return;%0A %7D +// Reset the dropdown focus when typing%0A self.dropdown.reset();%0A // Collapse dropdown when text is emptied%0A if (text === '') %7B%0A self.dropdown.hide();%0A ...
f4a0ff793124a2b58a9bf60b5237e80c14e8a838
make benchmark use sub channels
benchmarks/bench_server.js
benchmarks/bench_server.js
// Copyright (c) 2015 Uber Technologies, Inc. // 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 limitation the rights // to use, copy, modify, merge, ...
JavaScript
0.000003
@@ -1113,16 +1113,31 @@ TWARE.%0A%0A +'use strict';%0A%0A var TCha @@ -1174,58 +1174,34 @@ var -EndpointHandler = require('../endpoint-handler' +server = new TChannel( );%0A +%0A var @@ -1210,61 +1210,70 @@ rver - = new TChannel(%7B%0A handler: EndpointHandler() +Chan = server.makeSubChannel(%7B%0A servic...
bdbcbb2ce57001b6d3730e64e10d3d9c640610dc
Fix a couple of typos Fixes steelbrain/node-ssh#14
Source/SSH.js
Source/SSH.js
// @Compiler-Transpile "true" // @Compiler-Output "../Dist/SSH.js" import {promisify} from 'js-toolkit' const Driver = require('ssh2') const FS = require('fs') const Path = require('path') const access = promisify(FS.access) const readFile = promisify(FS.readFile) const validStreams = new Set(['stdout', 'stderr', '...
JavaScript
0.000075
@@ -4460,32 +4460,24 @@ new Promise( -function (resolve, re @@ -4473,32 +4473,35 @@ resolve, reject) + =%3E %7B%0A SFTP. @@ -5834,32 +5834,57 @@ remoteFile, +function(err)%7B%0A if (err) - =%3E %7B%0A @@ -5876,32 +5876,34 @@ rr) %7B%0A + reject(err)%0A @@ -5890,32 +...
f0ab51b588102e2e78e83bbf33e94c1792f66b0a
add in some sorting for the mongo part of the nettuts tutorial
examples/todo_app_mongo/lib/model_adapters/todo.js
examples/todo_app_mongo/lib/model_adapters/todo.js
var Todo = new (function () { this.all = function (callback) { var todos = []; geddy.db.todos.find().toArray(function(err, docs){ // if there's an error, return early if (err) { return callback(err, null); } // iterate through the docs and create models out of them for...
JavaScript
0
@@ -105,16 +105,45 @@ .find(). +sort(%7Bstatus: -1, title: 1%7D). toArray(
9e6a529508eb7e6de6d661e12de9eff27ff720bc
Update 3Sum.js
algorithms/3Sum.js
algorithms/3Sum.js
// Source : https://leetcode.com/problems/3sum // Author : Dean Shi // Date : 2017-08-02 /*************************************************************************************** * * Given an array S of n integers, are there elements a, b, c in S such that a + b + c * = 0? Find all unique triplets in the array whi...
JavaScript
0
@@ -1301,17 +1301,16 @@ else - ++left%0A
1fc22ee58665b7cdc32004e482ba8ece00209e35
Allow first column to not have an image. Fixes #2
script.js
script.js
void(function() { 'use strict'; if (!Array.prototype.forEach) return; var toArray = function(arrayLike) { return [].slice.call(arrayLike); }; var fixTable = function() { var table = document.querySelector('table'); // Remove <hr>s toArray(table.querySelectorAll('hr')).forEach(function(hr)...
JavaScript
0.000003
@@ -827,153 +827,355 @@ var -div = document.createElement('div');%0A div.className = 'img-wrap';%0A var first = row.removeChild(row.firstElementChild).firstElementChild +iconColumn = row.children%5B0%5D;%0A var fileColumn = row.children%5B1%5D;%0A%0A // Remove icon column.%0A row.removeChild(...
4b150495baa1d7fb735585ffc10ab23610b042dc
Update integrations.js
lib/integrations.js
lib/integrations.js
/* eslint quote-props: 0 */ 'use strict'; module.exports = { 'astronomer': require('analytics.js-integration-astronomer'), 'doubleclick': require('analytics.js-integration-doubleclick'), 'criteo': require('analytics.js-integration-criteo'), 'retention-science': require('analytics.js-integration-retention-scien...
JavaScript
0.000001
@@ -397,24 +397,84 @@ infinity'),%0A + 'acquisio': require('analytics.js-integration-acquisio'),%0A 'adroll':
34ee20e18c6071115d81ce090d3afec1fb51e15b
Improve variables passed when json maps return
apps/maps/static/js/vertical-tabs.js
apps/maps/static/js/vertical-tabs.js
/* * Copyright 2017, Maha Farhat * * This file is part of the software inkscape-web, consisting of custom * code for the Inkscape project's django-based website. * * inkscape-web is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by...
JavaScript
0.000001
@@ -1321,19 +1321,26 @@ );%0A%0A -if( +var url = tab.data @@ -1351,16 +1351,28 @@ on-url') +;%0A if(url && !tab @@ -1398,39 +1398,18 @@ -$.getJSON(tab.data('json-url'), +var data = get @@ -1427,26 +1427,45 @@ this.id) -) +;%0A %0A - +$.getJSON(url, data) .done(fu @@ -1517,16 +1517,27 @@ ...
215b373087ab778672653cef0ff94eb9db6ed421
Add a verbose setup short cut.
test/testutils.js
test/testutils.js
var async = require("async"); // var buster = require("buster"); var Remote = require("../js/remote.js").Remote; var Server = require("./server.js").Server; var config = require("./config.js"); var test_setup = function (done, host) { var self = this; var host = host || config.server_default; this.sto...
JavaScript
0
@@ -233,20 +233,29 @@ ne, host +, verbose ) %7B%0A - var se @@ -441,24 +441,33 @@ _config(host +, verbose ).on('starte @@ -598,20 +598,120 @@ tart();%0A - %7D;%0A%0A +var test_setup_verbose = function (done, host) %7B%0A test_setup.call(this, done, host, 'VERBOSE');%0A%7D%0A%0A var test @@ -1684,35 +1684,32 ...
a8b986134983819c66cc8bd27ae1b29fef576f8c
Update Pointwise_ValueBoundsSet.js
CNN/Conv/Pointwise/Pointwise_ValueBoundsSet.js
CNN/Conv/Pointwise/Pointwise_ValueBoundsSet.js
export { ValueBoundsSet }; import * as ConvBiasActivation from "../ConvBiasActivation.js"; import * as FloatValue from "../../Unpacker/FloatValue.js"; import * as ValueDesc from "../../Unpacker/ValueDesc.js"; import * as Weights from "../../Unpacker/Weights.js"; /** * The value bounds for pointwise convolution-bias-...
JavaScript
0
@@ -269,16 +269,24 @@ %0A * The +element value bo
8dd6da9723e9978c15ce480a8be0d3e56226032c
Use correct resource name for titleImage
js/app/compat/compat.js
js/app/compat/compat.js
const GLib = imports.gi.GLib; const Gtk = imports.gi.Gtk; const ContentObjectModel = imports.search.contentObjectModel; const Engine = imports.search.engine; const EosKnowledgePrivate = imports.gi.EosKnowledgePrivate; function transform_v1_description(json) { let modules = {}; switch (json.templateType) { ...
JavaScript
0
@@ -5766,37 +5766,33 @@ uri': json%5B' -backgroundHom +titleImag eURI'%5D,%0A
b3a7f5d1ac4ec45612c3ef8390d477186612b37c
Update MapResultsScene.js
App/scenes/MapResultsScene.js
App/scenes/MapResultsScene.js
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Dimensions } from 'react-native'; var {height, width} = Dimensions.get('window'); import MapView from 'react-native-maps'; export default class testing extends Component { constructor(props){ super(props); this....
JavaScript
0
@@ -240,15 +240,23 @@ ass -testing +MapResultsScene ext
943bd983ab33053177c15ee56d9f7ea01627e656
use jquery plugin for mousewheel
script.js
script.js
$(function() { var canvas = $('#map'); var grid = new Grid('map.jpg'); var viewport = new Viewport(canvas, grid); $('#settings').submit(function() { grid.squareSize = $('#squareSize').val(); grid.showGridLines = $('#showGridLines').is(':checked'); return false; }); $('#squareSize').val(grid.s...
JavaScript
0
@@ -910,14 +910,9 @@ nvas -%5B0%5D.on +. mous @@ -917,19 +917,17 @@ usewheel - = +( function @@ -932,16 +932,23 @@ on(event +, delta ) %7B%0A @@ -1050,58 +1050,8 @@ op;%0A - var wheel = event.wheelDelta / 120;//n or -n%0A%0A @@ -1065,21 +1065,21 @@ m = 1 + -wheel +delta /2;%0A%0A @@ -1492,16 ...
516557808ee8507a64b7759959e7cb7bc9936d90
Add Base.readAll(), to repeatetly apply Base.read() on all elements of an array and return the result in a new array.
src/paper.js
src/paper.js
/*** * * Paper.js * * A JavaScript Vector Graphics Library, based on Scriptographer.org and * designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Distributed under the MIT license. See LICENSE file for details. * * Copyright (c) 2011, Juerg Lehni & Jonathan Puckey *...
JavaScript
0
@@ -1222,21 +1222,21 @@ n(args, -index +start , length @@ -1249,28 +1249,31 @@ var -index = index +start = start %7C%7C 0, - +%0A%09%09%09 leng @@ -1301,21 +1301,21 @@ ength - -index +start ;%0A%09%09var @@ -1325,21 +1325,21 @@ = args%5B -index +start %5D;%0A%09%09// @@ -1579,21 +1579,21 @@ ly(obj, -...
9fa5c4217fc12bd3824783a8cc85f03586950706
add missing error/rune predeclared identifier for Syntax-Highlighting
js/codemirror/lib/go.js
js/codemirror/lib/go.js
CodeMirror.defineMode("go", function(config, parserConfig) { var indentUnit = config.indentUnit; var keywords = { "break":true, "case":true, "chan":true, "const":true, "continue":true, "default":true, "defer":true, "else":true, "fallthrough":true, "for":true, "func":true, "go":true, "goto":true, "if":t...
JavaScript
0.000001
@@ -548,24 +548,38 @@ ex128%22:true, + %22error%22:true, %0A %22float3 @@ -657,24 +657,37 @@ int64%22:true, + %22rune%22:true, %22string%22:tr
4fab100e718de62efd7cb01d25d42c97d94e4cf3
Improve CommonJS support a bit.
src/export.js
src/export.js
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ // Firs...
JavaScript
0
@@ -826,16 +826,67 @@ %7D))();%0A%0A +if (typeof define === 'function' && define.amd) %7B%0A%09 // Suppo @@ -910,16 +910,17 @@ ire.js)%0A +%09 // Use n @@ -980,16 +980,20 @@ calls to +%0A%09// define( @@ -993,19 +993,16 @@ define() -%0A// inside @@ -1054,16 +1054,20 @@ ma) that +%0A%09// apparen @@ -1069,...
260906c3e480cf5ccc1dd9e6e2aef467e2317d41
Add redirect for Docker post-processor pages (#10872)
website/redirects.next.js
website/redirects.next.js
module.exports = [ { source: '/docs/installation', destination: '/docs/install', permanent: true, }, { source: '/docs/command-line/machine-readable', destination: '/docs/commands', permanent: true, }, { source: '/docs/command-line/introduction', destination: '/docs/commands', ...
JavaScript
0
@@ -5312,16 +5312,159 @@ e,%0A %7D,%0A + %7B%0A source: '/docs/post-processors/docker-:path',%0A destination: '/docs/post-processors/docker/docker-:path*',%0A permanent: true,%0A %7D,%0A // dis
ba09bec8d03dd3efbe8ecbacc3a0f45ebf14c8f2
refactor probe.data -> probe.config to be less confusing
schema/amonprobe.js
schema/amonprobe.js
// Copyright 2011 Joyent, Inc. All rights reserved. // // A probe for the Amon (SDC monitoring) system. An "amonprobe" is meant // to be a child of an "amonmonitor". // // var util = require('util'); var ldap = require('ldapjs'); var log4js = require('log4js'); var Validator = require('../lib/schema/validator'); ...
JavaScript
0
@@ -693,12 +693,14 @@ -data +config : 1%0A
ce2435c8c6b73caca9e86ffe4eacd1d13da016dd
Collect bot name, user name, and user email
generators/app/index.js
generators/app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var chalk = require('chalk'); var hubotSay = function() { return ' _____________________________ ' + "\n" + ' _____ / ...
JavaScript
0.999922
@@ -1887,311 +1887,707 @@ ();%0A -%0A // Have Yeoman greet the user.%0A this.log(hubotSay());%0A%0A%0A var prompts = %5B%7B%0A type: 'confirm',%0A name: 'someOption',%0A message: 'Would you like to enable this option?',%0A default: true%0A %7D%5D;%0A%0A this.prompt(prompts, function ...
fa071d3fab1ada470c26229577aa2083b602fc83
Fix string syntax highlighting
src/gwt/acesupport/acemode/r_highlight_rules.js
src/gwt/acesupport/acemode/r_highlight_rules.js
/* * r_highlight_rules.js * * Copyright (C) 2009-11 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. * * This program is licensed to you under the terms of version...
JavaScript
0.000006
@@ -1876,145 +1876,8 @@ %7B%0A - token : %22string%22, // single line%0A regex : '%5B%22%5D(?:(?:%5C%5C%5C%5C.)%7C(?:%5B%5E%22%5C%5C%5C%5C%5D))*?%5B%22%5D'%0A %7D,%0A %7B%0A @@ -1959,19 +1959,16 @@ x : '%5B%22%5D -.*$ ',%0A @@ -2028,145 +2028,8 @@ %7B...
e308b501628c8530750f44830f4c7f8ee6f8f2b4
remove url variable from ES6 closure after local tests
src/parse.js
src/parse.js
'use strict'; import { isFunction } from 'metal'; import parseFromAnchor from './parseFromAnchor'; /** * Parses the given uri string into an object. The URL function will be used * when present, otherwise we'll fall back to the anchor node element. * @param {*=} opt_uri Optional string URI to parse */ function pa...
JavaScript
0
@@ -366,16 +366,26 @@ ngth) %7B%0A +%09%09let url; %0A%09%09try %7B @@ -392,14 +392,8 @@ %0A%09%09%09 -const url
144971627362be21758d5e5e2a33b6bd93b232ab
Replace Object.assign with spread
ui/src/shared/components/LayoutRenderer.js
ui/src/shared/components/LayoutRenderer.js
import React, {Component, PropTypes} from 'react' import ReactGridLayout, {WidthProvider} from 'react-grid-layout' import LayoutCell from 'shared/components/LayoutCell' import RefreshingGraph from 'shared/components/RefreshingGraph' import AlertsApp from 'src/alerts/containers/AlertsApp' import NewsFeed from 'src/sta...
JavaScript
0.000848
@@ -1554,42 +1554,18 @@ urn -Object.assign(%7B%7D, query, %7B%0A +%7B...query, hos @@ -1586,24 +1586,16 @@ s.proxy, -%0A text: q @@ -1606,18 +1606,9 @@ Text -,%0A %7D) +%7D %0A
6bf10c171ccb74467a95a1ac42277aa3c2ad50f0
Fix test (#6)
test/twkb.spec.js
test/twkb.spec.js
var assert = require("assert") var TWKB = require("../index") function toArrayBuffer(buffer) { var ab = new ArrayBuffer(buffer.length); var view = new Uint8Array(ab); for (var i = 0; i < buffer.length; ++i) { view[i] = buffer[i]; } return ab; } describe("TWKB", function() { describe("...
JavaScript
0
@@ -845,16 +845,47 @@ %7B%0A + type: 'Feature',%0A
2eccd09d8f231e524598b2feffbe4a649e433f9d
Fix spec
test/ui/editor.js
test/ui/editor.js
"use strict"; const assert = require("assert"); const fs = require("fs-extra"); const path = require("path"); const helpers = require("../helpers.js"); var workingDir; let app; describe("Editor", function() { const windowTitle = "Before Dawn: Editor"; var saverJSON; helpers.setupTimeout(this); let pickEdi...
JavaScript
0.000001
@@ -1020,13 +1020,19 @@ it(%22 -shows +edits basic set @@ -1040,13 +1040,8 @@ ings - form %22, f @@ -1087,60 +1087,8 @@ ().%0A - then(() =%3E app.client.click(%22=Description%22)).%0A @@ -1927,56 +1927,8 @@ )).%0A - then(() =%3E app.client.click(%22=Options%22)).%0A @@ -2115,32 +2115,149 @@...
c62998b16908b95a1904227e8f1d008fc80ce714
Add support to the float slider
IPython/html/static/widgets/js/widget_float.js
IPython/html/static/widgets/js/widget_float.js
// Copyright (c) IPython Development Team. // Distributed under the terms of the Modified BSD License. define([ "widgets/js/widget", "widgets/js/widget_int", ], function(widget, int_widgets){ var IntSliderView = int_widgets.IntSliderView; var IntTextView = int_widgets.IntTextView; var FloatSliderV...
JavaScript
0.000001
@@ -334,32 +334,122 @@ erView.extend(%7B%0A + _validate_text_input: function(x) %7B%0A return parseFloat(x);%0A %7D,%0A%0A _validat
82b7420aed85622a622d358e306d9ebeeef0161d
remove --isolated flag from default pip options
lib/pip.js
lib/pip.js
const fse = require('fs-extra'); const rimraf = require('rimraf'); const path = require('path'); const get = require('lodash.get'); const set = require('lodash.set'); const { spawnSync } = require('child_process'); const values = require('lodash.values'); const { buildImage, getBindPath, getDockerUid } = require('./doc...
JavaScript
0
@@ -1349,26 +1349,8 @@ p',%0A - '--isolated',%0A
82ef06b0edb7b84f25d283a2e18581e4ce9fbfe6
update BaseTable
src/_BaseTable/BaseTable.js
src/_BaseTable/BaseTable.js
/** * @file BaseTable component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ColGroup from '../_ColGroup'; import Thead from '../_Thead'; import Tbody from '../_Tbody'; import Tfoot from...
JavaScript
0.000001
@@ -2439,32 +2439,81 @@ data=%7Bdata%7D%0A + sorting=%7Bsorting%7D%0A
327416ba16173557ed7fb02216536103f44f4d40
Use a named function instead via @hunterloftis
commands/builds/output.js
commands/builds/output.js
'use strict'; let cli = require('heroku-cli-util'); let request = require('request'); module.exports = { topic: 'builds', command: 'output', needsAuth: true, needsApp: true, description: 'show build output', help: 'Show build output for a Heroku app', variableArgs: true, run: cli.command(function ...
JavaScript
0
@@ -304,25 +304,51 @@ command( -function +showOutput)%0A%7D;%0A%0Afunction showOutput (context @@ -359,18 +359,16 @@ roku) %7B%0A - let id @@ -388,18 +388,16 @@ gs%5B0%5D;%0A%0A - if (!i @@ -405,18 +405,16 @@ ) %7B%0A - - cli.erro @@ -468,26 +468,20 @@ - return%0A - %7D%0A%0A - ...
58c10a8adeafdf053f87f9092ad8f4278a1163cc
Remove debug output
script.js
script.js
var robot; var now; var deltaTime; var last = timestamp(); var frameId; /** * 1 = Open top * 2 = Open right * 4 = Open down * 8 = Open left */ var field = [ ['04', '00', '06', '12', '00', '00'], ['03', '10', '09', '05', '00', '00'], ['00', '00', '00', '05', '00', '00'], ['00', '00', '00', '05', '0...
JavaScript
0.000037
@@ -2638,78 +2638,8 @@ 1);%0A - console.log('direction', direction, 'reps', repetitions);%0A
0dce34729059c35119bb0dab55d8de5e0399a446
fix ordering of menu items
dev/metalsmith.js
dev/metalsmith.js
'use strict'; const Metalsmith = require('metalsmith'); const layouts = require('metalsmith-layouts'); const prism = require('metalsmith-prism'); const marked = require('marked'); const markdown = require('metalsmith-markdown'); const inPlace = require('metalsmith-in-place'); const mock = require('metalsmith-mock'); c...
JavaScript
0.000046
@@ -2729,35 +2729,36 @@ reverse: -tru +fals e,%0A ref @@ -2885,19 +2885,20 @@ everse: -tru +fals e,%0A
cc0a9b350409774a096072b66fa2b058d0eeb1b7
Check for existence of Webtrends object on window
assets/javascripts/modules/analytics.js
assets/javascripts/modules/analytics.js
/* globals Webtrends, window */ // Analytics Utility module // This module offers ways to send custom events to analytics packages: // - by calling analytics.send. Eg. analytics.send('name', 'value') // - by adding the data-analytics attribute to any element that can be clicked // with a component type // eg <div ...
JavaScript
0
@@ -7,19 +7,8 @@ bals - Webtrends, win @@ -1820,16 +1820,23 @@ s%0A +window. Webtrend @@ -4105,16 +4105,23 @@ typeof +window. ga === t @@ -4189,16 +4189,23 @@ return +window. Webtrend
f6ee1a810eda93dbe6d7fbf5163ffee73f5f00de
add routes for demo-slice
.nc/routes.js
.nc/routes.js
// TODO: // move it out of nervecentre var routes = [ { // favicon test: /^\/favicon.ico/, action: "favicon" }, { test: /^\/$/, template: "index.html" }, // doc ---------------------- { // docs test: /^\/docs\.html/, model...
JavaScript
0.000002
@@ -701,32 +701,34 @@ : /%5E%5C/test%5C/unit +%5C/ .*%5C.html%5C?ut/,%0A @@ -833,16 +833,18 @@ st%5C/unit +%5C/ .*%5C.html @@ -1029,17 +1029,16 @@ e: %22demo -s .html%22%0A @@ -1075,32 +1075,39 @@ %5C/demo%5C/.*%5C.html +%5C?slice /,%0A model @@ -1101,34 +1101,148 @@ model: %22 -ut +demoslice%...
18d0f36ab82eaec7a46895ee8848cc5643618237
add drawer styles
src/drawer/SideMenu.js
src/drawer/SideMenu.js
import React, { Component } from 'react'; import { View, Linking, Platform, Image } from 'react-native'; import {Actions, ActionConst} from 'react-native-router-flux'; import StyledLink from './StyledLink'; import IconLink from './IconLink'; import normalize from '../utils/normalizeFont'; import vDimensions, { vw, vh ...
JavaScript
0
@@ -3810,30 +3810,8 @@ ed,%0A - // marginTop: 20,%0A
d52c693edc1c4737877225085465ec6ca1ae2e8f
Fix lint
readthedocs/core/static-src/core/js/sponsorship.js
readthedocs/core/static-src/core/js/sponsorship.js
/* Read the Docs - Documentation promotions */ var constants = require('./doc-embed/constants'); module.exports = { Promo: Promo }; function Promo (id, text, link, image, theme) { this.id = id; this.text = text; this.link = link; this.image = image; this.theme = theme || constants.THEME_RTD; ...
JavaScript
0.000032
@@ -2630,17 +2630,16 @@ tml%22%3E' + - %0A @@ -2667,17 +2667,16 @@ cally' + - %0A
3ed42e0358cd063e1b629731789cc7d815ec0b55
call progressivis_update from graph_update
progressivis/server/static/js/module_graph.js
progressivis/server/static/js/module_graph.js
"use strict"; var module_graph = function(){ var d3cola; var firstTime = true; const width=960, height=500; const margin=10, pad=12; function graph_get(success, error) { $.post($SCRIPT_ROOT+'/progressivis/scheduler/?short=False') .done(success) .fail(error); }; function...
JavaScript
0.000001
@@ -1819,24 +1819,57 @@ ate(data) %7B%0A + progressivis_update(data);%0A graph_
acfbc969f1fc86c49a99160c2ad2cdc4e4c4b1dc
Use prepared statements
scripts/DB/index.js
scripts/DB/index.js
'use strict' const mysql = require('mysql2') const scripts = require('../scripts') // Configure MySQL2 Connection let pool = mysql.createPool({ host: process.env.DB_HOST, database: process.env.DB_DATABASE, user: process.env.DB_USERNAME, password: process.env.DB_PASSWORD }) /** * Returns all instance...
JavaScript
0.000219
@@ -1,9 +1,9 @@ -' +%22 use stri @@ -4,17 +4,17 @@ e strict -' +%22 %0A%0Aconst @@ -33,54 +33,16 @@ ire( -' +%22 mysql2 -')%0Aconst scripts = require('../scripts' +%22 )%0A%0A/ @@ -71,18 +71,20 @@ nection%0A -le +cons t pool = @@ -357,33 +357,31 @@ * @ -returns %7Bresource%7D +param callback %0A */%0A -le +...
5dec0b1437fae92b83ce6c16c1cc62278794ab12
Add bower and autoform packages
generators/app/index.js
generators/app/index.js
var yeoman = require('yeoman-generator') module.exports = yeoman.generators.Base.extend({ app: function() { this.mkdir('client') this.mkdir('client/lib') this.mkdir('client/compatibility') this.mkdir('client/stylesheets') this.mkdir('client/views') this.mkdir('collections') this.mkdir('li...
JavaScript
0
@@ -1095,16 +1095,68 @@ ection2%22 +,%0A %22aldeed:autoform%22,%0A %22mquandalle:bower%22, %0A %5D%0A%0A
25376fdf350f7462046b4112724caabd956ccab9
move declarations
webworker.js
webworker.js
// IsomerHeightMap v0.1.2 - Create isometric heightmaps from images. Based on jdan's excellent Isomer library. // Copyright (c) 2014 Joerg Boeselt - https://github.com/RoboSparrow/IsomerHeightMap // License: MIT /** * ImageData to row/tiles array, compute average color [r,g,b,a(0-255)] * @param {Uint8ClampedArray} p...
JavaScript
0.000001
@@ -483,16 +483,554 @@ x = %5B%5D;%0A + %0A function getTile(index)%7B%0A var r = %7B%7D;%0A var pixel = (index * 0.25);//normalize%0A%0A r.line = Math.floor(pixel/meta.width);%0A r.row = Math.floor(r.line/(meta.height/meta.rows));%0A lineX = pixel - (r.line * meta.width);%0A ...
24e92b72fa0d2a4fa105608f9b2a7e5dc16bb89a
clean up code
frontend/__tests__/state/reducers/messages.test.js
frontend/__tests__/state/reducers/messages.test.js
import reduceMsg from 'state/reducers/messages'; import { RECEIVE_CHATLOG, RECEIVE_CHAT_MESSAGE, SEND_CHAT_MESSAGE } from 'state/actions/messages'; import { LOGOUT } from 'state/actions/auth'; describe('reducers/messages', () => { test('should return initial state', () => { const state = reduceMsg(undefi...
JavaScript
0.000403
@@ -1979,21 +1979,16 @@ ual( -%5B ... messages %5D); @@ -1983,18 +1983,16 @@ messages - %5D );%0A %7D);
1f44758454c2bebcd2616e592bf6189eb3f5f979
Rename variables to camelCase as required by jQuery code style. Add missing var
js/csv_to_html_table.js
js/csv_to_html_table.js
var CsvToHtmlTable = CsvToHtmlTable || {}; CsvToHtmlTable = { init: function (options) { options = options || {}; var csv_path = options.csv_path || ""; var el = options.element || "table-container"; var allow_download = options.allow_download || false; var csv_options = opt...
JavaScript
0
@@ -673,18 +673,17 @@ var csv -_d +D ata = $. @@ -737,26 +737,25 @@ var table -_h +H ead = %22%3Cthea @@ -784,20 +784,73 @@ -for (head_id +var csvHeaderRow = csvData%5B0%5D;%0A for (var headerIdx = 0 @@ -859,25 +859,28 @@ head -_id +erIdx %3C csv -_data%5B0%5D +HeaderRow .len @@ -888,...
bbc45a4cb7faf3f7451f11f6c36cf77feadf7c92
Update .postcssrc.js
.postcssrc.js
.postcssrc.js
var tailwindcss = require('tailwindcss'); const purgecss = require('@fullhuman/postcss-purgecss'); module.exports = { plugins: [ require('autoprefixer'), tailwindcss('./tailwind.config.js'), process.env.NODE_ENV === 'production' ? purgecss({ content: ['./src/**/*.vue'], }) :...
JavaScript
0.000001
@@ -129,37 +129,8 @@ : %5B%0A - require('autoprefixer'),%0A @@ -166,16 +166,45 @@ g.js'),%0A + require('autoprefixer'),%0A proc
74ff37004e5e061d830ae317fd5dd3517262a0de
Update up to recent changes
view/business-process-submitted-payment.js
view/business-process-submitted-payment.js
// Single payment submitted view 'use strict'; var documentView = require('./components/business-process-document') , renderDocumentHistory = require('./components/business-process-document-history') , documentRevisionInfo = require('./components/business-process-document-review-info'); exports._parent...
JavaScript
0
@@ -46,28 +46,32 @@ ';%0A%0Avar -d +renderD ocument -View + @@ -72,16 +72,17 @@ + = requir @@ -151,16 +151,21 @@ History + = requir @@ -220,17 +220,23 @@ y')%0A , -d +renderD ocumentR @@ -247,17 +247,16 @@ ionInfo - = requir @@ -310,16 +310,86 @@ w-info') +%0A , getDocumentD...
e5ebf74d760f7abee78f940733f2920a408e9c22
Add stopgap for https://github.com/Project-OSRM/osrm-backend/pull/2159
features/support/route.js
features/support/route.js
var Timeout = require('node-timeout'); var request = require('request'); module.exports = function () { this.requestPath = (service, params, callback) => { var uri = [this.HOST, service, 'v1', this.profile].join('/'); return this.sendRequest(uri, params, callback); }; this.requestUrl = (pa...
JavaScript
0.00003
@@ -4075,36 +4075,214 @@ =%3E -v.maneuver.type !== 'arrive' +%7B%0A // TODO distance check is stopgap for https://github.com/Project-OSRM/osrm-backend/pull/2159%0A return v.maneuver.type !== 'arrive' && v.distance %3E 0%0A %7D )%0A @@ -4783,59 +4783,8 @@ %3E %...
b2a07a45c39170744439d849602aeb5ae5a8e06a
Remove debugging code
src/schema/runtime_normalize/patch_operators.js
src/schema/runtime_normalize/patch_operators.js
'use strict'; const { OPERATORS } = require('../../patch'); // Merge system patch operators and schema-defined ones const normalizePatchOperators = function ({ schema, schema: { operators } }) { if (operators === undefined) { return; } const operatorsA = { ...operators, ...OPERATORS }; console.log(operatorsA);...
JavaScript
0.000739
@@ -290,35 +290,8 @@ S %7D; -%0A console.log(operatorsA); %0A%0A
50e06c5a84819597c75737497f3e0be4cd10c8b7
update reducer to handle group member delete
client/reducers/userGroupsReducer.js
client/reducers/userGroupsReducer.js
const deleteGroup = (state, action) => { const groupsState = [...state]; const index = groupsState.indexOf(action.groupId); if (index >= 1) { state.splice(index, 1); } return state; }; // Restructure Array data from DB into state object const structureGroupsForAUser = (state, dbSnapshot) => { // Clear ...
JavaScript
0
@@ -600,16 +600,48 @@ oupId%5D = + appState.userGroups%5BgroupId%5D %7C%7C %7B%7D;%0A @@ -877,32 +877,72 @@ , groupId) =%3E %7B%0A + const groupMembers = dbSnapshot.rows;%0A const appState @@ -992,26 +992,28 @@ 0; i %3C -dbSnapshot +groupMembers .length; @@ -1031,83 +1031,300 @@ -appState%5BgroupId...
47cf5fb8566008f00553f6125ee0f20fbf702965
Remove @angular/router code since we don't use it yet
generators/app/index.js
generators/app/index.js
'use strict'; const fountain = require('fountain-generator'); const version = require('../../package.json').version; module.exports = fountain.Base.extend({ prompting: { fountain() { this.options.framework = 'angular1'; return this.fountainPrompting(); }, sample() { this.option('sampl...
JavaScript
0
@@ -1523,182 +1523,8 @@ === - 'router') %7B%0A this.mergeJson('package.json', %7B%0A dependencies: %7B%0A '@angular/router': '2.0.0-rc.1'%0A %7D%0A %7D);%0A %7D else if (this.props.router === 'ui
fd874f86caecf2e55cf954eb0e08d9a7b3d8043c
call delete task function from main app.
problems/kata/001-todo-backend/001/app.js
problems/kata/001-todo-backend/001/app.js
var express = require('express'); var cors = require('cors'); var bodyParser = require('body-parser'); // FIXME: remove direct use of nano when all library calls removed var nano = require('nano')('http://localhost:5984'); var todo = nano.db.use('todo'); var todos = require('./todo'); var app = express(); app.use(cor...
JavaScript
0
@@ -1981,20 +1981,28 @@ %7B%0A todo -.get +s.deleteTask (req.par @@ -2024,28 +2024,30 @@ on(err, -body +result ) %7B%0A todo.des @@ -2042,61 +2042,169 @@ -todo.destroy(body._id, body._rev, function(err, body) +console.log('deleting task from PATH /' + req.params.url);%0A if (err) %7B%0A req.sta...
841d4da8e6f62a129463bc72943b168f33349887
Fix Ember canary resolver bug
ember_debug/route-debug.js
ember_debug/route-debug.js
import PortMixin from 'ember-debug/mixins/port-mixin'; var Ember = window.Ember; var classify = Ember.String.classify; var dasherize = Ember.String.dasherize; var computed = Ember.computed; var oneWay = computed.oneWay; var observer = Ember.observer; var later = Ember.run.later; export default Ember.Object.extend(Por...
JavaScript
0.000001
@@ -1988,24 +1988,111 @@ r.resolver;%0A + if (!resolver) %7B%0A resolver = this.get('application.registry.resolver');%0A %7D%0A var pref
ae657c4458b9b39fc622f48626b6cd16f4a84127
Include function for checking if application is using file protocol
src/gelato.js
src/gelato.js
'use strict'; let Gelato = {}; if ($ === undefined) { throw 'Gelato requires jQuery as a dependency.' } else { window.jQuery = window.$ = $; } if (_ === undefined) { throw 'Gelato requires Lodash as a dependency.' } else { window._ = _; } if (Backbone === undefined) { throw 'Gelato requires Backbone as a ...
JavaScript
0.000001
@@ -547,24 +547,93 @@ ordova);%0A%7D%0A%0A +function isFileSystem() %7B%0A return location.protocol === 'file:';%0A%7D%0A%0A function isL @@ -641,24 +641,24 @@ calhost() %7B%0A - return loc @@ -739,33 +739,46 @@ des( -document.location, 'http' +%5B'http:', 'https:'%5D, location.protocol );%0A%7D
1477b9a5b67956efad7eb525987f1c3689eb2c1f
Fix bad include
src/Module.js
src/Module.js
import THREE from 'three'; class React3Module { constructor() { this.userData = {}; this.uuid = THREE.Math.generateUUID(); } setup(react3RendererInstance) { // eslint-disable-line no-unused-vars } update() { } dispose() { } } export default React3Module;
JavaScript
0.000001
@@ -17,16 +17,19 @@ m 'three +.js ';%0A%0Aclas
2df28f45daeb9480c49c6dc1fb177a51f58e4b60
fix an error whereby the next page of the pagination array was not shown.
src/scripts/directives/angular-will-paginate.js
src/scripts/directives/angular-will-paginate.js
'use strict'; angular.module('willPaginate') .run(['$templateCache', function($templateCache){ $templateCache.put('template/will_paginate/paginator.html', '<ul class="{{options.paginationClass}}">' + ' <li class="prev" ng-class="{true:\'disabled\'}[params.currentPage == 1]"><span>{{options.previousLabel}}</span>...
JavaScript
0.000001
@@ -511,16 +511,40 @@ ge.value + %7C%7C page.kind == %5C'gap%5C' %22%3E%7B%7Bpage @@ -613,16 +613,40 @@ ge.value + %7C%7C page.kind == %5C'gap%5C' %22 ng-cli @@ -2876,17 +2876,17 @@ Window: -2 +1 ,%0A @@ -3343,35 +3343,34 @@ cope.params. -current +total Page +s ) %7B%0A @@ -3776,16 +3776,20 @@ ...
20103bb0e29857306b45acdc972d717df56148b6
Fix the last commit.
common/content/modules.js
common/content/modules.js
// Copyright (c) 2009 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /** * @class ModuleBase * The base class for all modules. */ const ModuleBase = Class("ModuleBase", { /** * @proper...
JavaScript
0.000003
@@ -2438,20 +2438,25 @@ uires = -inst +prototype .require
c4f9879f9958928a8da2672561fc5af87f82b9fd
Remove console.log
client/src/containers/Class/index.js
client/src/containers/Class/index.js
import React, { Component } from 'react'; import PageHeader from './../../components/PageHeader'; import Result from './../../components/Result'; import fetch from './../../utils/fetch'; import { BASE_URL } from './../../utils/constants'; import loading from './../../static/images/loading-ring.svg'; import './style.css...
JavaScript
0.000004
@@ -978,46 +978,8 @@ ) %7B%0A - console.log(this.state.courses);%0A%0A
550695c658450d91db96a1c8ed6c0de0683ccd22
Change deps install only to npm install
generators/app/index.js
generators/app/index.js
var path = require('path'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var npm = require('npm'); var QUESTIONS = [{ type: 'input', name: 'module:name', message: 'Type module name' }, { type: 'input', name: 'module:description', message: 'Type module description' }, { type: 'i...
JavaScript
0
@@ -2131,27 +2131,18 @@ his. -i +npmI nstall -Dependencies ();%0A
94ee414d87d827406bc4fcf5066f33c7652dccbb
fix for wrap
lib/rpc.js
lib/rpc.js
const muxrpc = require('muxrpc') const handshake = require("./handshake") const _ = require('icebreaker') const traverse = require('traverse'); const clone = traverse.clone const Remote = require('./remote') const Util = require('muxrpc/util') const promiseToCallback = require('promise-to-callback'); function toManife...
JavaScript
0.000001
@@ -2525,16 +2525,23 @@ n muxer. +stream. close(er
6b2f90a1baf71031577c76b097bf1144a86d4b6b
Fix for push
Marvel.sketchplugin/Contents/Sketch/updates.js
Marvel.sketchplugin/Contents/Sketch/updates.js
/*The MIT License (MIT) Copyright (c) 2015 Marvel App 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 limitation the rights to use, copy, modify, merge, pub...
JavaScript
0.000004
@@ -1374,27 +1374,8 @@ vel. -sketchpluginbundle. sket
d4341f866011c69218f4db9cdf44182fd1f4b4e0
Fix object subkeys, make tests pass
modules/unique/unique.js
modules/unique/unique.js
/** * Filters out all duplicate items from an array by checking the specified key * @param [key] {string} the name of the attribute of each object to compare for uniqueness if the key is empty, the entire object will be compared if the key === false then no filtering will be performed * @return {array} */ angular...
JavaScript
0.000003
@@ -353,16 +353,27 @@ unique', + %5B'$parse', functio @@ -375,16 +375,22 @@ nction ( +$parse ) %7B%0A%0A r @@ -602,16 +602,111 @@ ems = %5B%5D +,%0A get = angular.isString(filterOn) ? $parse(filterOn) : function (item) %7B return item %7D ;%0A%0A @@ -752,36 +752,39 @@ item) %7B%0A -if ( +re...
a2d7b0a0d9e9e0fbb4b948a26e27a1592ecd0c7e
Remove cache usage in some Module methods. The data requested is implicitly cached through the `this._reading` promise.
src/Module.js
src/Module.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. */ 'use strict...
JavaScript
0
@@ -923,56 +923,8 @@ urn -this._cache.get(this.path, 'haste', () =%3E%0A this @@ -955,22 +955,16 @@ data.id) -%0A ) ;%0A %7D%0A%0A @@ -1626,63 +1626,8 @@ urn -this._cache.get(this.path, 'dependencies', () =%3E%0A this @@ -1658,38 +1658,32 @@ ta.dependencies) -%0A ) ;%0A %7D%0A%0A getAsyn...
a1e75eea1662fb6337d62c24c80f28f1bf4b8a73
Make sidebar's topOffset property configurable
src/sidebar/eeh-navigation-sidebar-directive.js
src/sidebar/eeh-navigation-sidebar-directive.js
'use strict'; var SidebarDirective = function ($window, eehNavigation) { return { restrict: 'AE', transclude: true, templateUrl: 'template/eeh-navigation/sidebar/eeh-navigation-sidebar.html', link: function (scope, element) { scope._sidebarTextCollapse = eehNavigation._s...
JavaScript
0
@@ -214,16 +214,80 @@ .html',%0A + scope: %7B%0A topOffset: '@topOffset'%0A %7D,%0A @@ -1185,40 +1185,8 @@ %7D;%0A%0A - var topOffset = 50;%0A @@ -1569,16 +1569,22 @@ eight - +scope. topOffse @@ -1699,16 +1699,22 @@ eight %3E +scope. topOffse
5ff92636fca3c744bedf32b1c1b4dc7d43b02604
Set a better format to errors and remove password when user created
api/users/index.js
api/users/index.js
const User = require('./../../models/user') const usersRoutes = (api) => { api.post('/users', (req, res) => { User.create(req.body.user) .then((user) => { res.status(201).send(user) }) .catch((user) => { res.status(400).send(user) }) }) } module.exports = usersRoutes
JavaScript
0.000006
@@ -153,32 +153,62 @@ hen((user) =%3E %7B%0A + delete user.password%0A%0A res.stat @@ -285,28 +285,49 @@ s(400).send( -user +%7B 'errors': user.errors %7D )%0A %7D)%0A
949f1e4ddb64e1322ef13ba236847e320fee437f
add 5+ card strategy;
player.js
player.js
module.exports = { VERSION: "Default JavaScript folding player", bet_request: function(game_state, bet) { try { //console.log(rankHand(game_state)); // var rainman = require('./rainman')(game_state); if (rankHand(game_state) == 0) { bet(Math.min(Math.max(game_state.minimum_...
JavaScript
0
@@ -227,17 +227,51 @@ if - +(game_state.round == 0)%7B%0A if (rankHan @@ -296,16 +296,18 @@ )%0A + %7B%0A @@ -304,24 +304,26 @@ %7B%0A + + bet(Math.min @@ -427,11 +427,15 @@ + %7D %0A + @@ -441,32 +441,283 @@ else bet(0);%0A + %7Delse%7B%0A ...