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
8cbc0205a81fbd353afa979f569861f4a71b799b
remove last mention of parse
src/index.js
src/index.js
import 'lie/polyfill' import 'whatwg-fetch' import React from 'react' React.initializeTouchEvents(true) // import {Parse} from 'parse' // if (process.env.NODE_ENV === 'production') { // window.Parse = Parse // Parse.initialize('3YmZ7OaEPjPzP7yg19Wts1VGYmVr2qCw36nZIDYD', 'lWmcTJJ7ADHlHh5pTWudTiimBODHy3lEUYz5vlnG') /...
JavaScript
0.001376
@@ -103,293 +103,8 @@ e)%0A%0A -// import %7BParse%7D from 'parse'%0A// if (process.env.NODE_ENV === 'production') %7B%0A// %09window.Parse = Parse%0A// %09Parse.initialize('3YmZ7OaEPjPzP7yg19Wts1VGYmVr2qCw36nZIDYD', 'lWmcTJJ7ADHlHh5pTWudTiimBODHy3lEUYz5vlnG')%0A// %09Parse.Analytics.track('load', %7Bbrowser: navigato...
c535378c6c4bd3e6913911e1f1f4b63147a2194a
remove need for second parameter
src/index.js
src/index.js
import express from 'express'; import basicAuth from 'node-basicauth'; import bodyParser from 'body-parser'; import cookieParser from 'cookie-parser'; import compression from 'compression'; import fs from 'fs'; import morgan from 'morgan'; import { join } from 'path'; import favicon from 'serve-favicon'; import stylus ...
JavaScript
0.000052
@@ -179,24 +179,62 @@ mpression';%0A +import babel from 'babel-middleware';%0A import fs fr @@ -238,24 +238,24 @@ from 'fs';%0A - import morga @@ -783,23 +783,45 @@ c = -( app -, + =%3E %7B%0A const dir -) = -%3E %7B + process.cwd(); %0A c @@ -1329,16 +1329,56 @@ 'jade'; +%0A const babelConfig = app.g...
5969da5230a7959c534dacf6ccd041b4f27d3db9
Increment version
src/index.js
src/index.js
//Promise polyfill https://github.com/taylorhakes/promise-polyfill if (typeof Promise !== 'function') { window.Promise = require('promise-polyfill'); } var Barba = { version: '0.0.8', Dispatcher: require('./Dispatcher/Dispatcher'), HistoryManager: require('./Pjax/HistoryManager'), BaseTransition: require('./...
JavaScript
0.000002
@@ -182,9 +182,9 @@ 0.0. -8 +9 ',%0A
438041ab58c88fe913e92dc722063bcaffb357e6
Remove Core from exposed api
src/index.js
src/index.js
export { default } from './manageTranslations'; export { default as core } from './core'; export { default as readMessageFiles } from './readMessageFiles'; export { default as createSingleMessagesFile } from './createSingleMessagesFile'; export { default as getDefaultMessages } from './getDefaultMessages';
JavaScript
0.000001
@@ -46,50 +46,8 @@ ';%0A%0A -export %7B default as core %7D from './core';%0A expo
e16d9f2266a7c49ad164dd0d8269509354cab4bb
Update src/intro.js
src/intro.js
src/intro.js
/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ /*global window: false, jQuery: false, console: false, define: false */ (function( window, document, undefined ) { "use strict"; // Enable ECMAScript "strict" operation for this funct...
JavaScript
0
@@ -206,197 +206,8 @@ */%0A%0A -(function( window, document, undefined ) %7B%0A%22use strict%22; // Enable ECMAScript %22strict%22 operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/%0A%0A // U @@ -274,18 +274,64 @@ ion( + factory -) %7B +, window, document, undefin...
19b5a62bec7a4ef66c2d1289ac32bf8e0fd1511f
Remove all use of cookies and depracated functions that rely on them.
includes/webm-plus-extension.js
includes/webm-plus-extension.js
// ==UserScript== // @include http://youtube.com/* // @include http://*.youtube.com/* // @include https://youtube.com/* // @include https://*.youtube.com/* // @exclude http://youtube.com/html5 // @exclude http://*.youtube.com/html5 // @exclude https://youtube.com/html5 // @exclude https://*.youtube.com/html5 // ==/User...
JavaScript
0
@@ -426,117 +426,8 @@ %7B%0A - if (!trialParticipant() && (widget.preferences.getItem('continueTesting') === 'true')) trialApplicant();%0A @@ -1130,1898 +1130,8 @@ %7D%0A%0A - var trialCookieValue = 'f2=40000000',%0A trialCookie = 'PREF=' + trialCookieValue;%0A%0A function trialParticipant()%0A %7B%...
453562a646731364eeaf16adcbc5394ef87b37a9
Update phylowidget.js
inst/htmlwidgets/phylowidget.js
inst/htmlwidgets/phylowidget.js
HTMLWidgets.widget({ name: 'phylowidget', type: 'output', initialize: function(el, width, height) { var svg=d3.select(el).append("svg") .attr("width",width) .attr("height",height); var tree=d3.layout.phylotree(el); return {"svg": svg, "tree": tree}; }, renderValue: functi...
JavaScript
0.000001
@@ -240,20 +240,81 @@ tree(el) +.size (%5Bheight, width%5D).separation (function (a,b) %7Breturn 0;%7D) ;%0A - %0A r @@ -489,74 +489,8 @@ ee;%0A - var parsed_string = d3_phylotree_newick_parser(newick_string); %0A @@ -514,26 +514,25 @@ 'equal') -; %0A -tree + .options @@ -570,26 +570,25 @@ ...
aa354fedeb9b647ed12ed433f50546ac19dda712
Update proxy.js
src/proxy.js
src/proxy.js
const _ = require('lodash'); const url = require('url'); const httpProxy = require('http-proxy'); const headers = require('./lib/headers'); const cookie = require('cookie'); const Cookie = require('tough-cookie').Cookie; const harmon = require('harmon'); const srcset = require('srcset'); const cssUrlPattern = /url\(\s*...
JavaScript
0.000001
@@ -3477,210 +3477,8 @@ ) %7B%0A -%09%09%09%09if (this.getHeader('content-type').includes('application/xml')) %7B%0A%09%09%09%09%09res.isHtml = true;%0A%0A%09%09%09%09%09// Strip off the content length since it will change.%0A%09%09%09%09%09res.removeHeader('Content-Length');%0A%09%09%09%09%7D%0A%0A %09%09%09%09
8cce7fda06ac8d57bd09fe6caea150825d90dc63
Fix for code review issue https://github.com/mdn/webextensions-examples/issues/40
tabs-tabs-tabs/tabs.js
tabs-tabs-tabs/tabs.js
function firstUnpinnedTab(tabs) { for (var tab of tabs) { if (!tab.pinned) { return tab.index; } } } document.addEventListener("click", function(e) { function callOnActiveTab(callback) { chrome.tabs.query({currentWindow: true}, function(tabs) { for (var tab of tabs) { if (tab.acti...
JavaScript
0.000005
@@ -1275,12 +1275,34 @@ );%0A %7D%0A%0A + e.preventDefault();%0A %7D);%0A
20b16d15172f02dbe3895525831e6ce000ac8eed
Fix !ProgressBar aria attribute, and add aria tests, fixes #16564 on trunk !strict, thanks Mike (IBM, CCLA).
ProgressBar.js
ProgressBar.js
define([ "require", // require.toUrl "dojo/_base/declare", // declare "dojo/dom-class", // domClass.toggle "dojo/_base/lang", // lang.mixin "dojo/number", // number.format "./_Widget", "./_TemplatedMixin", "dojo/text!./templates/ProgressBar.html" ], function(require, declare, domClass, lang, number, _Widget, ...
JavaScript
0.000001
@@ -4139,15 +4139,14 @@ ria- -describ +labell edby
5e7158498d2a5f46c8126bbc20a2f96458bb9c4d
fix last albums fetch logic
server/users/member/blocks/albums.js
server/users/member/blocks/albums.js
'use strict'; module.exports = function (N) { var ALBUMS_COUNT = 7; // Fetch last user photos // N.wire.after('server:users.member', function fetch_last_photos(env, callback) { N.models.users.Album .find({ user_id: env.data.user._id, default: false }) .lean(true) .sort('-last_ts') ...
JavaScript
0.000002
@@ -8,16 +8,43 @@ rict';%0A%0A +var _ = require('lodash');%0A %0Amodule. @@ -280,24 +280,8 @@ ._id -, default: false %7D)%0A @@ -347,16 +347,20 @@ MS_COUNT + + 1 )%0A @@ -541,32 +541,271 @@ urn;%0A %7D%0A%0A + // Try to remove default album%0A _.remove(albums, function (album) %7B ret...
ffaaace4ece764a66887fce57eed2d8588b141b0
throw useful error if moderator attempts `/cycle init` when not associated with a chapter
server/graphql/models/Cycle/mutation.js
server/graphql/models/Cycle/mutation.js
import raven from 'raven' import {GraphQLNonNull, GraphQLString} from 'graphql' import {GraphQLError} from 'graphql/error' import {CYCLE_STATES} from '../../../../common/models/cycle' import {parseQueryError} from '../../../../server/db/errors' import {getModeratorById} from '../../../db/moderator' import {createNext...
JavaScript
0
@@ -1004,24 +1004,162 @@ ')%0A %7D +%0A if (!moderator.chapterId) %7B%0A throw new GraphQLError('You must be assigned to a chapter to start a new cycle.')%0A %7D %0A%0A re
71a9ac3d1d3f487d1ca0f81aee1500e4b742a58b
Improve browserify plugin configurability
mix-browserify/index.js
mix-browserify/index.js
var prime = require('prime'); var Emitter = require('prime/emitter'); var Kefir = require('kefir'); var browserify = require('browserify'); var chokidar = require('chokidar'); var mix = require('mix'); var mixIn = require('mout/object/mixIn'); var path = require('path'); module.exports = function (options) { var c...
JavaScript
0.000001
@@ -293,16 +293,24 @@ nction ( +target, options) @@ -409,24 +409,285 @@ sh = true;%0A%0A + if (typeof target === 'object') %7B%0A options = target;%0A target = null;%0A %7D else %7B%0A target = target %7C%7C null;%0A options = options %7C%7C %7B%7D;%0A %7D%0A%0A var configure...
779bb8e52a8bdc0bb510b416cd40631859fe104f
Refactor check for specific categories
tools/utility.js
tools/utility.js
'use strict'; var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var REPLACES, regex = {}, headerRegex = /^\s*\/\*((.|\r?\n)*?)\*/; REPLACES = { 'case_insensitive': 'cI', 'lexemes': 'l', 'contains': 'c', 'keywords': 'k', 'subLanguage': 'sL', 'className': 'cN...
JavaScript
0
@@ -2206,24 +2206,26 @@ guage + = path.basen @@ -2264,24 +2264,26 @@ eInfo + = parseHeade @@ -2319,16 +2319,18 @@ egories + = fileIn @@ -2346,16 +2346,74 @@ ry %7C%7C %5B%5D +,%0A containsCategory = _.curry(_.contains)(categories) ;%0A%0A if( @@ -2517,39 +2517,16 @@ es, -function(fc...
f43f83f8d8cc3c463826a7910e2b1d3fc85ae18f
Fix fee calculation on opencollective prepaid payment type
server/paymentProviders/opencollective/prepaid.js
server/paymentProviders/opencollective/prepaid.js
import Promise from 'bluebird'; import models from '../../models'; import { type as TransactionTypes } from '../../constants/transactions'; import roles from '../../constants/roles'; import * as paymentsLib from '../../lib/payments'; /** How much the platform charges per transaction: 5% */ export const PLATFORM_FEE =...
JavaScript
0
@@ -232,98 +232,66 @@ s';%0A -%0A/** How much the platform charges per transaction: 5%25 */%0Aexport const PLATFORM_FEE = 0.05 +import * as constants from '../../constants/transactions'; %0A%0Aex @@ -3665,20 +3665,32 @@ nt, -PLATFORM_FEE +constants.OC_FEE_PERCENT );%0A
c2cdf588e0bb38e03df0ebf6177e676791616cba
fix .findOrCreateAll() fallback function
lib/waterline/adapter/compoundQueries.js
lib/waterline/adapter/compoundQueries.js
/** * Compound Queries Adapter Normalization */ var _ = require('underscore'), normalize = require('../utils/normalize'); module.exports = { findOrCreate: function(criteria, values, cb) { var self = this; // If no values were specified, use criteria if (!values) values = criteria.where ? criteri...
JavaScript
0.000004
@@ -612,33 +612,16 @@ is.find( -this.collection, criteria
d866b41dd6675a8152adc9c54502d53ff32e17a7
Update comment-model.js
models/comment-model.js
models/comment-model.js
var mongoose = require('mongoose'); var Url = mongoose.SchemaTypes.Url; var CommentSchema = new mongoose.Schema({ title: String, url: Url, text: String, author: { type: mongoose.Schema.Types.ObjectId, ref: 'User' }, rating: {type: Number, default: 0}, date: Date, comment: { type: mongoose.Schema.Types.Ob...
JavaScript
0
@@ -66,16 +66,71 @@ s.Url;%0A%0A +//Define the Database schema for %22comments%22 collection%0A var Comm @@ -172,23 +172,48 @@ title: -String, +%7B type: String, required: true %7D %0A url: @@ -505,28 +505,29 @@ l('Comment', CommentSchema); +%0A
0e58a811cefa7e52ca24b77c03e5c203504ef33a
update minified copy
js/badgeos-shortcode-embed.min.js
js/badgeos-shortcode-embed.min.js
(function(e){function t(){var e=n();var t=r(e);var i=o(e,t);window.send_to_editor(i)}function n(){return e("#select_shortcode").val()}function r(t){var n=[];var r=s(t);e.each(r,function(e,t){if(""!==t.value&&undefined!==t.value){n.push(t.name+'="'+t.value+'"')}});return n}function s(t){return e(".text, .select","#"+t+"...
JavaScript
0.000001
@@ -508,16 +508,384 @@ .show()%7D +function c(t)%7BsetTimeout(function()%7Be(%22#TB_window%22).addClass(%22badgeos-shortcode-thickbox%22);h(t)%7D,0)%7Dfunction h(t)%7BsetTimeout(function()%7Bvar n=t.attr(%22data-width%22);e(%22.badgeos-shortcode-thickbox%22).width(n);var r=e(%22.badgeos-shortcode-thickbox%22).height()...
f3bd053fd06cbc5946c107179acf52553f6ae35d
Add license header to SimpleDAOController.
js/foam/ui/SimpleDAOController.js
js/foam/ui/SimpleDAOController.js
CLASS({ name: 'SimpleDAOController', package: 'foam.ui', extends: 'foam.ui.SimpleView', requires: [ 'foam.ui.TableView', ], properties: [ { model_: 'foam.core.types.DAOProperty', name: 'data', hidden: true, }, { name: 'daoView', lazyFactory: function() { ...
JavaScript
0
@@ -1,8 +1,638 @@ +/**%0A * @license%0A * Copyright 2016 Google Inc. All Rights Reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/l...
dd280a6c6501d9f5e161976d83b31ef3d65dec35
fix blind mode
ui/round/src/view/table.js
ui/round/src/view/table.js
var m = require('mithril'); var game = require('game').game; var status = require('game').status; var renderClock = require('../clock/view').renderClock; var renderCorrespondenceClock = require('../correspondenceClock/view'); var renderReplay = require('./replay'); var renderUser = require('./user'); var button = requi...
JavaScript
0.000001
@@ -3576,28 +3576,8 @@ lock - && !ctrl.data.blind ) re
9696525e5c86dcfff659d81c311963a73b63fd78
Add limit to 5 concurrent requests in downloadFiltered
utils/download_filtered.js
utils/download_filtered.js
'use strict'; const child_process = require('child_process'); const async = require('async'); const fs = require('fs-extra'); const tmp = require('tmp'); const _ = require('lodash'); const logger = require('pelias-logger').get('download'); function downloadFiltered(config, callback) { const targetDir = config.impor...
JavaScript
0
@@ -634,15 +634,23 @@ each +Limit (files, + 5, dow @@ -1592,8 +1592,9 @@ iltered; +%0A
5a8841dafb98e2846076478d2e4f81cefae0d11a
Fix typos and faulty conditionals.
js/tinymce/classes/fmt/Preview.js
js/tinymce/classes/fmt/Preview.js
/** * Preview.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * Internal class for generating previews styles for formats. * * Example: * Preview.getCssText(...
JavaScript
0
@@ -1290,16 +1290,17 @@ red%5B0%5D;%0A +%0A %09%09%09%09if ( @@ -1420,13 +1420,13 @@ s.in -dexOf +Array (anc @@ -1494,31 +1494,31 @@ tName = -parentsRequired +ancestors%5Bidx%5D; %0A%09%09%09%09%09%09%09 @@ -1655,24 +1655,25 @@ %09%09%7D);%0A%09%09%09%09%7D%0A +%0A %09%09%09%09parent = @@ -1868,16 +1868,90 @@ ...
18b40082966cc01c4c5f56f2b154f6c86e41798b
Add no-return-await rule
index.js
index.js
/* eslint-disable filenames/no-index */ module.exports = { parser: 'babel-eslint', parserOptions: { ecmaVersion: 2019, sourceType: 'module', impliedStrict: true, ecmaFeatures: { jsx: true }, }, extends: [ 'eslint:recommended', 'plugin:react/recommended', ...
JavaScript
0.000218
@@ -1470,24 +1470,62 @@ tatement'%5D,%0A + 'no-return-await': %5B'error'%5D,%0A 'no-
6768df7b75e122f4f7d2b17e448aea1e5a6767f6
add jsig annotations
index.js
index.js
var _ = function (x) { return x } // collection fns _.pair = function (key, val) { var o = {} o[key] = val return o } _.contains = function (obj, key) { for (var k in obj) { if (k === key) { return true } } return false } // quantifier _.some = function (obj, predicate) { predicate = pred...
JavaScript
0.000001
@@ -1,12 +1,28 @@ +// (Any) =%3E Any%0A var _ = func @@ -62,16 +62,43 @@ ion fns%0A +// (String, Any) =%3E Object%0A _.pair = @@ -158,24 +158,55 @@ return o%0A%7D%0A%0A +// (Object, String) =%3E Boolean%0A _.contains = @@ -331,16 +331,111 @@ antifier +s%0A%0A// type Predicate : (value: Any, key?: String) =%3E Boo...
186f96e1222ee42aba6e325399dc6698f5c9d651
Change .break() API to instantly reject the promise.
index.js
index.js
const Worker = require('tiny-worker'); /** * Encapuslates the underlying Web Worker through asynchronous calls. */ exports.LMLayer = class LMLayer { constructor() { // Worker state this._worker = new Worker('lmlayer.js'); this._worker.onmessage = this._onmessage.bind(this); // Keep track of indivi...
JavaScript
0
@@ -1313,21 +1313,8 @@ - let reject = thi @@ -1340,24 +1340,18 @@ oken -); +, %0A -reject( + new @@ -1385,16 +1385,23 @@ ethod%7D%60) +%0A );%0A %7D @@ -2700,111 +2700,71 @@ * -Fetch a promise's reject function.%0A *%0A * Calling the reject functino will stop tracking the promise ...
ee88dfce4c7c3de9746e19aad635907bf3907f6a
Tidy source code.
index.js
index.js
var short = '-', long = '--', sre = /^-[^-]+/, lre = /^--[^-]+/, negate = /^--no-/; function camelcase(flag) { return flag.split('-').reduce(function(str, word){ return str + word[0].toUpperCase() + word.slice(1); }); } function toOptionKey(arg, negated) { var key = arg.replace(/^-+/, ''); if(nega...
JavaScript
0
@@ -9,18 +9,16 @@ t = '-', -%0A long = @@ -21,19 +21,21 @@ g = '--' -,%0A +;%0Avar sre = / @@ -43,18 +43,16 @@ -%5B%5E-%5D+/, -%0A lre = / @@ -61,18 +61,16 @@ -%5B%5E-%5D+/, -%0A negate @@ -1094,44 +1094,8 @@ d);%0A - // treating long option as a flag%0A if
aa14dd7b2fc79fa3f95169c47e97a69e51b703ec
Add options for radius and location lookup
index.js
index.js
var koa = require('koa'), app = koa(), router = require('koa-router')(), json = require('koa-json'), moment = require('moment'), Partyflock = require('partyflock'); // extra environment vars var debug = false, endpoint = 'partyflock.nl'; if(process.env.DEBUG) { debug = !!process.env.DEBUG; } ...
JavaScript
0
@@ -708,32 +708,745 @@ function *() %7B%0A + var headers = %7B%0A 'Pf-ResultWish': 'date(agenda(party(name,stamp,location(name),visitors(user(id)))))'%0A %7D;%0A if(this.request && this.request.query) %7B%0A if('latitude' in this.request.query && this.request.query.latitude) %7B%0A headers%5...
659819fc4a639d75cd00dca6651a32385c09c19d
Move parameter validation to the top
index.js
index.js
/* global module, process, require */ 'use strict'; var Promise = require('bluebird'); /** * Takes an EventEmitter and converts it into a function that returns a promise. * @param {object} params Object that contains parameters * @param {object} params.eventEmitter Function that returns an even...
JavaScript
0
@@ -1366,16 +1366,783 @@ ');%0A %7D%0A + if (params.listeners && !Array.isArray(params.listeners)) %7B%0A throw new Error('params.listeners must be an array of listener options objects');%0A %7D%0A if (params.listeners) %7B%0A params.listeners.forEach(function(listenerOption) %7B%0A if (!listenerOption....
d4993202effb4f51c477e3b775892782c399e315
Replace comma first with always var
index.js
index.js
var util = require('util'); var url = require('url'); module.exports = function (everyauth) { if (! everyauth.oauth2) { everyauth.oauth2 = require("everyauth-oauth2")(everyauth); } everyauth.facebook = everyauth.oauth2.submodule('facebook') .configurable({ scope: 'specify types of access: See http://...
JavaScript
0.999088
@@ -1478,26 +1478,27 @@ xtra.res +; %0A - , +var serverR
cd6ec7080bd01c111cd583bd0fca4379c22474a3
use strict, and fix ms
index.js
index.js
var u = require('./util') var Api = require('./api') var Muxrpc = require('muxrpc') var pull = require('pull-stream') var Rate = require('pull-rate') var MultiServer = require('multiserver') var Inactive = require('pull-inactivity') function isFunction (f) { return 'function' === typ...
JavaScript
0.000002
@@ -1,12 +1,25 @@ +'use strict'%0A var u @@ -2764,24 +2764,8 @@ , ms -Server, msClient %0A%0A @@ -3238,20 +3238,16 @@ -var ms = Mul
72ff3803c833acefb1c275a0f092968652896eef
Update to use new engine build options
index.js
index.js
'use strict'; var path = require('path'); var _ = require('lodash'); var PLUGIN_NAME = 'kalabox-plugin-git'; module.exports = function(kbox) { var events = kbox.core.events; var engine = kbox.engine; var globalConfig = kbox.core.deps.lookup('globalConfig'); kbox.whenApp(function(app) { // Helpers ...
JavaScript
0
@@ -1727,314 +1727,91 @@ -// If profile is set to dev build from source%0A var opts = %7B%0A name: 'kalabox/git:stable',%0A build: false,%0A src: ''%0A %7D;%0A if (globalConfig.profile === 'dev') %7B%0A opts.build = true;%0A opts.src = path.resolve(__dirname, 'doc...
e91f74d36861f09edeb897fef6c3f09c2abebaae
Remove unused route (#5925)
ui/app/router.js
ui/app/router.js
import EmberRouter from '@ember/routing/router'; import config from './config/environment'; const Router = EmberRouter.extend({ location: config.locationType, rootURL: config.rootURL, }); Router.map(function() { this.route('jobs', function() { this.route('run'); this.route('job', { path: '/:job_name' },...
JavaScript
0
@@ -544,34 +544,8 @@ ');%0A - this.route('edit');%0A
fbbb2c679220dd11e7f7500c0d4485c9d0d9a40c
add getScrollHeight() method
index.js
index.js
require("./style.css"); import React from 'react'; import classNames from 'classnames'; import throttle from 'lodash/function/throttle.js'; import ScreenAttributes, {getScreenAttributes} from 'screen-attributes-mixin'; const Scroller = React.createClass({ mixins: [ScreenAttributes], getInitialState(){ ...
JavaScript
0.000001
@@ -1230,16 +1230,107 @@ : null,%0A + getScrollHeight()%7B%0A return this.refs.scroller.getDOMNode().scrollHeight;%0A %7D,%0A onSc
e905808f321fb8dd0cf4d23cec7f4f80da752e7b
Fix linting :joy-cat:.
index.js
index.js
class Guards { constructor () { this.guardRegex = /[^=<>!']=[^=]/ this.templateRegex = /[^|]\|[^|]/ } buildPredicate (constants, guard) { return new Function( '', [ `const { ${this.destructureProps(constants)} } = ${JSON.stringify(constants)}`, `return ${guard}` ].j...
JavaScript
0.000001
@@ -143,24 +143,56 @@ s, guard) %7B%0A + // eslint-disable-next-line%0A return n
b1149867160248e7030aa3dcf85fca3a47c2a53c
Remove rules that conflict with prettier
index.js
index.js
module.exports = { "env": { "browser": true }, "extends": [ "airbnb", // These prettier configs are used to disable inherited rules that conflict // with the way prettier will format code. Full info here: // https://github.com/prettier/eslint-config-prettier "prettier", "prettier/flowt...
JavaScript
0
@@ -468,47 +468,8 @@ : %7B%0A - %22arrow-parens%22 : %5B0, %22as-needed%22%5D,%0A @@ -524,312 +524,64 @@ ype/ -object-type-delimiter%22: %5B%22error%22, %22semicolon%22%5D,%0A %22flowtype/require-valid-file-annotation%22: %5B%0A 2,%0A %22always%22%0A %5D,%0A %22flowtype/semi%22: %22error%2...
e896c5d4cd90afe275331dece5810be2aee5520d
Remove text field from the linter messages
index.js
index.js
/** * @author Titus Wormer * @copyright 2015 Titus Wormer * @license MIT * @module atom:linter:alex * @fileoverview Linter. */ /* global atom */ 'use strict'; /* * Dependencies (alex is lazy-loaded later). */ var deps = require('atom-package-deps'); var minimatch = require('minimatch'); var alex; /* * Con...
JavaScript
0
@@ -1701,42 +1701,8 @@ r',%0A - 'text': message.reason,%0A
b9483f69bb89105d53e50baa08c27a0dfe132b77
Update CPULoad to handle both formats
index.js
index.js
var _os = require('os'); var _param = require('./param.json'); var _request = require('request'); var _tools = require('graphdat-plugin-tools'); var _httpOptions; // username/password options for the URL var _previous = {}; // remember the previous poll data so we can provide proper counts // At a minimum, we need a ...
JavaScript
0
@@ -3217,24 +3217,124 @@ equests : 0; +%0A var cpuLoad = current%5B'CPULoad'%5D %7C%7C 0;%0A if (cpuLoad %3E 1)%0A cpuLoad /= 100; %0A%0A co @@ -3599,38 +3599,22 @@ d %25s', c -urrent%5B'CPULoad'%5D %7C%7C 0 +puLoad , _param
9d473a0d74dcb0d4de3d2b0707dc5057693f256e
debug links
index.js
index.js
var getUrl = function(url, callback) { var oReq = new XMLHttpRequest(); oReq.addEventListener("load", callback); oReq.open("GET", url); oReq.send(); } var extractHearingType = function(hearingRow) { return hearingRow.querySelectorAll('td')[4].textContent.trim(); }; var extractCaseReportLink = function(hearin...
JavaScript
0
@@ -315,38 +315,42 @@ hearingRow) %7B%0A -return +var link = hearingRow.quer @@ -442,24 +442,60 @@ sereport');%0A + console.log(link);%0A return link;%0A %7D;%0Avar isPre
a35691fa39b82314ffc68c46a30bc8ae0cc952da
Fix non handled errors
index.js
index.js
'use strict'; var inquirer = require('inquirer'); var Promise = require('bluebird'); var fs = Promise.promisifyAll(require('fs')); var DB = require('./db'); var User = require('./lib/user.js'); var UserList = require('./lib/userList.js'); var VCardParser = require('./lib/vCardParser....
JavaScript
0.001032
@@ -6916,32 +6916,204 @@ %7D%0A + %7D)%0A .catch(function (err) %7B%0A console.log('Erreur lors de l%5C'analyse du fichier: ');%0A console.log(err);%0A
a7ebc46165720b1419e9636aab9f34e52524812d
Optimize dividing the process in two stages: prototype generation + binding data to output object
index.js
index.js
function mapValues(obj, fn) { return Object.entries(obj).reduce((acc, [k, v]) => { const r = fn(k, v) if (r === undefined) return acc[k] = r return acc }, {}) } /** * A proxy for an Object that checks for existence of the keys, * and throws an error in case. */ function checkerProxy(data) { if...
JavaScript
0.99838
@@ -645,187 +645,62 @@ %0A%7D%0A%0A -/**%0A * Gettifize: getter + memoize%0A * Transforms an Object of functions (input,output) =%3E outputValue%0A * in an Object of getters with closured 'input' and gettifized 'output'.%0A */ +const DATA_ATTRIBUTE = Symbol('TRAPH_DATA_ATTRIBUTE')%0A %0Afun @@ -705,25 +705,30 @@ unc...
ea9706c8af5b97b407247288b47923c2e6784730
print err.stack on fail when using ConsoleReporter
index.js
index.js
/*global System,global*/ import mocha from "mocha"; import chai, { expect } from "chai"; export { loadTestFile, loadTestFiles, runTestFiles, chai, mocha, expect }; function ConsoleReporter(runner) { var passes = 0; var failures = 0; runner.on('pass', function(test){ passes++; console.log('pass: %s', t...
JavaScript
0.000001
@@ -462,15 +462,35 @@ err. -message +stack %7C%7C err.message %7C%7C err );%0A
a96277f6ca0cce7a83886f14e54d6bdab438e5e0
use tlsOptions instead of httpsOptions
index.js
index.js
require('app-module-path').addPath(__dirname); var express = require('express'); var passport = require('passport'); var session = require('express-session'); var http = require('http'); var https = require('https'); var app = express(); var inventory_router = require('api/inventory.js'); var reservations_router = ...
JavaScript
0.000001
@@ -1586,20 +1586,18 @@ rypt_xp. -http +tl sOptions
70f958d90610737ad0857d33b608c412cdeb8ac5
Add custom Views directory
index.js
index.js
'use strict'; /** * @fileoverview Punchcard CMS Init */ const bodyParser = require('body-parser'); const express = require('express'); const logger = require('morgan'); const nunjucks = require('nunjucks'); const path = require('path'); const config = require('config'); const contentTypes = require('punchcard-conten...
JavaScript
0
@@ -567,57 +567,176 @@ tup%0A -app.set('views', path.join(__dirname, 'views')) +const views = %5B%0A path.join(process.cwd(), 'views'),%0A path.join(process.cwd(), 'templates'),%0A path.join(__dirname, 'views'),%0A path.join(__dirname, 'templates'),%0A%5D ;%0A +%0A nunj @@ -754,30 +754,13 @@ ure( -%5B' views -...
c301c22cd4cd1d1dbabdfa2b6b04b297342514e5
Add git fetch to deploy operation.
index.js
index.js
var express = require('express'); var bodyParser = require('body-parser'); var morgan = require('morgan'); var async = require('async'); var spawn = require('child_process').spawn; var shellescape = require('shell-escape'); function shellExec(out, cmd, options, cb) { if (!cmd) { return cb(); } if (!options) { ...
JavaScript
0
@@ -1270,32 +1270,139 @@ %09function(cb) %7B%0A +%09%09%09shellExec(res, shellescape(%5B 'git', 'fetch' %5D), %7B%0A%09%09%09%09cwd: config.path%0A%09%09%09%7D, cb);%0A%09%09%7D,%0A%09%09function(cb) %7B%0A %09%09%09shellExec(res
06baf75532c4116584c5e28ca70f4ed4e7412f58
Update index.js
index.js
index.js
module.exports = function(namespace) { namespace = namespace || 'undefined'; this.attach = function(options) { this[namespace] = options; }; };
JavaScript
0
@@ -1,20 +1,99 @@ -module.exports = +var BasePlugin = require('../../index.js').Plugin;%0A%0Amodule.exports = BasePlugin.extend(%7B%0A get: fun @@ -111,16 +111,18 @@ pace) %7B%0A + namesp @@ -154,16 +154,18 @@ ined';%0A%0A + this.a @@ -192,24 +192,26 @@ ions) %7B%0A + this%5Bnamespa @@ -229,12 +2...
13204c2da7ee3658803d3f29f67a18afd3953c33
Add Bluebird to window if window is a thing
index.js
index.js
module.exports = require("./promise.js");
JavaScript
0.000003
@@ -1,18 +1,18 @@ -module.exports +const Bluebird = r @@ -34,8 +34,106 @@ se.js%22); +%0Amodule.exports = Bluebird%0A%0Aif (typeof window !== 'undefined') %7B%0A window.Bluebird = Bluebird;%0A%7D
21ec2f1df5668f76fe4d344afd473817dae5bb8f
handle just wake and sleep events
index.js
index.js
var pm = require('bindings')('pm.node'), EventEmitter = require('events').EventEmitter; var notify = new EventEmitter(); pm.registerNotifications(function(msg) { notify.emit(msg); }); module.exports = notify; notify.on('wake', function() { console.log('wake'); }); notify.on('sleep', function() { console.log('s...
JavaScript
0.000001
@@ -210,122 +210,4 @@ ify; -%0A%0Anotify.on('wake', function() %7B%0A%09console.log('wake');%0A%7D);%0A%0Anotify.on('sleep', function() %7B%0A%09console.log('sleep');%0A%7D);
f66046a2a11c43e8d36b6660bb6c9b6c6f8fd159
Fix infinite loop on Windows (closes #3)
index.js
index.js
var path = require('path') var url = require('url') var tokenKey = ':_authToken' module.exports = function (registryUrl, opts) { var options = opts || {} var npmrc = require('rc')('npm', {registry: 'https://registry.npmjs.org/'}) var parsed = url.parse(registryUrl || npmrc.registry, false, true) var match v...
JavaScript
0
@@ -1,31 +1,4 @@ -var path = require('path')%0A var @@ -740,20 +740,19 @@ hname = -path +url .resolve
2f60fb82f69eb2c5ea9a702fad8d04c44ef8007e
Rename for clarity.
index.js
index.js
var shp = require("./shp"), dbf = require("./dbf"); exports.version = require("./package.json").version; exports.reader = function(filename, options) { var convertProperties, convertGeometry, encoding = null, ignoreProperties = false, dbfReader, shpReader; if (typeof options ===...
JavaScript
0
@@ -748,27 +748,24 @@ unction read -Dbf Header(callb @@ -763,32 +763,32 @@ der(callback) %7B%0A + dbfReader.re @@ -1921,27 +1921,24 @@ unction read -Dbf Record(callb @@ -2882,19 +2882,16 @@ on close -Dbf (callbac @@ -3158,19 +3158,16 @@ er: read -Dbf Header,%0A @@ -3201,27 +3201,24 @@ Records(read -Dbf ...
3dc4e342946af58856d6d27098ca5290973a0c6a
Remove global - use an argument. Functional FTW
index.js
index.js
let { get_next_topic, scrape, valid_links } = require("./util"); const base = "https://en.wikipedia.org/wiki/"; const target = "Philosophy"; const chain = []; function init() { let topic = process.argv[2].split(" ").reduce(function (words, word) { if (words.length === 0) { words = word.charAt(0).toUpper...
JavaScript
0.000018
@@ -141,27 +141,8 @@ %22;%0A%0A -const chain = %5B%5D;%0A%0A func @@ -520,16 +520,20 @@ le(topic +, %5B%5D );%0A%7D%0A%0Afu @@ -558,16 +558,23 @@ le(topic +, chain ) %7B%0A if @@ -1025,29 +1025,62 @@ .then( -visit_article +(new_topic) =%3E visit_article(new_topic, chain) )%0A .c
ac318831732a5bca6ca9a36deedfe6ef3ecb533d
Move EventEmitter require and use new syntax
index.js
index.js
'use strict'; var EventEmitter = require('events').EventEmitter; function emitThen (event) { var args = Array.prototype.slice.call(arguments, 1); /* jshint validthis:true */ return Promise .all(this.listeners(event).map(listener => Promise.resolve().then(() => { var a1 = args[0], a2 = args[1]; sw...
JavaScript
0
@@ -12,59 +12,8 @@ ';%0A%0A -var EventEmitter = require('events').EventEmitter;%0A func @@ -562,20 +562,25 @@ %7B%0A -EventEmitter +require('events') .pro
db54134d7e19e9f758021548987caa110ca4dfa8
Support custom input extensions for files
index.js
index.js
'use strict'; var Filter = require('broccoli-filter'); var react = require('react-tools').transform; module.exports = ReactFilter; ReactFilter.prototype = Object.create(Filter.prototype); ReactFilter.prototype.constructor = ReactFilter; function ReactFilter (inputTree, options) { if (!(this instanceof ReactFilter...
JavaScript
0
@@ -432,16 +432,90 @@ %7C%7C %7B%7D;%0A + if (options.extensions) %7B%0A this.extensions = options.extensions;%0A %7D%0A %7D%0A%0AReact @@ -708,8 +708,9 @@ sult;%0A%7D; +%0A
785c532ecfdff91e7fbe812cdf39966ca2322111
Update ValueDesc_ConvStageType.js
CNN/Unpacker/ValueDesc/ValueDesc_ConvStageType.js
CNN/Unpacker/ValueDesc/ValueDesc_ConvStageType.js
export { ConvStageType }; import { Int } from "./ValueDesc_Base.js"; /** Describe id, range, name of ConvStageType (Convolution Stage Type). * * Convert number value into integer between [ 0, 7 ] representing operation: * - 0: MOBILE_NET_V1 (i.e. no-add-inut-to-output, pointwise1 is s...
JavaScript
0
@@ -327,33 +327,33 @@ ze of pointwise2 -1 +0 )%0A * - 1: MOBI @@ -456,17 +456,17 @@ intwise2 -1 +0 , depthw @@ -601,33 +601,33 @@ ze of pointwise2 -1 +0 )%0A * - 3: MOBI @@ -720,33 +720,33 @@ ze of pointwise2 -1 +0 )%0A * - 4: SHUF @@ -848,17 +848,17 @@ INTWISE2 -2 +1 @@ -881,17 +881,17 @@ int...
85a3b8719eafde17307e8698e9ce1f98f70587c7
normalize the outputFile path
index.js
index.js
var os = require('os'); var path = require('path'); var fs = require('fs'); var builder = require('xmlbuilder'); var DEFAULT_JUNIT_REPORTER_CONFIG = { outputFile: 'test-results.xml', suite: '' }; var JUnitReporter = function(baseReporterDecorator, config, logger, helper, formatError) { config = config || DEFAUL...
JavaScript
0
@@ -111,95 +111,8 @@ );%0A%0A -var DEFAULT_JUNIT_REPORTER_CONFIG = %7B%0A outputFile: 'test-results.xml',%0A suite: ''%0A%7D;%0A %0Avar @@ -205,95 +205,100 @@ %7B%0A -config = config %7C%7C DEFAULT_JUNIT_REPORTER_CONFIG;%0A%0A var outputFile = config.outputFile +var log = logger.create('reporter.junit');%0A va...
4d3acbf0d5f11c8df6a5ced73422af3dba440d75
Print out list of repos with tags.
index.js
index.js
var request = require("request"); var FastSet = require("collections/fast-set"); var async = require("async"); var config = require("config"); var jsonfile = require('jsonfile') var url = 'https://api.github.com/search/code'; var headers = { 'cache-control': 'no-cache', 'content-type': 'application/jso...
JavaScript
0
@@ -2042,18 +2042,16 @@ (err) %7B%0A -// cons @@ -2283,12 +2283,78 @@ %7D);%0A - %0A%0A%7D +%7D);%0A%0Avar getRepoList = function(tagMap) %7B%0A return Object.keys(tagMap );%0A +%7D%0A
caf2d4df670f56f7ed18dfbd21530bc63b9b9752
remove console.log
index.js
index.js
'use strict'; console.log("LOADING gettext PLUGIN"); var gettextParser = require('gettext-parser'); var fs = require('fs'); var process = require('process'); var DEFAULT_FUNCTION_NAMES = { gettext: ['msgid'], dgettext: ['domain', 'msgid'], ngettext: ['msgid', 'msgid_plural', 'count'], dngettext: ['domain', '...
JavaScript
0.000006
@@ -12,48 +12,8 @@ ';%0A%0A -console.log(%22LOADING gettext PLUGIN%22);%0A%0A var
4112a855f2e27f67cc4baa653b352d0d46d54e1d
test connection speed
index.js
index.js
var Botkit = require('botkit') var Witbot = require('witbot') var dateFormat = require('dateformat'); var slackToken = process.env.SLACK_TOKEN var witToken = process.env.WIT_TOKEN var openWeatherApiKey = process.env.OPENWEATHER_KEY var qpxApiKey = process.env.QPXKEY var amazonApiId = process.env.AMAZONAPIID var amazon...
JavaScript
0
@@ -6012,16 +6012,177 @@ mans%22);%0A + //bot.reply(message, %22%3E Beep boop pssskt :boom: I am a weather, one-way flight and joke bot %5Cn%3E But I learn from every interaction... unlike most humans%22);%0A %7D)%0A%7D)%0A
58430a903dbba3fcb28deeca4e6ee40e970d2916
Fix indentation
index.js
index.js
var split = require('split2') var pumpify = require('pumpify') var through = require('through2') module.exports = function() { var re_ass = new RegExp("Dialogue:\\s\\d," + // get time and subtitle "(\\d+:\\d\\d:\\d\\d.\\d\\d)," + // start time "(\\d+:\\d\\d:\\d\\d.\\d\\d)," + // end time ...
JavaScript
0.017244
@@ -1312,17 +1312,24 @@ g name.%0A -%09 + var ta @@ -1377,9 +1377,16 @@ 0%5D;%0A -%09 + //
83fcdee2ca3517f8cf05346552a5b3517855bfda
Fix typo of Towne Lake
index.js
index.js
(function(d3) { "use strict"; var unitMap = { "Tempe Arizona YSA Stake": "full_stake", "Horizon YSA Ward": "horizon", "McClintock YSA Ward": "mcclintock", "Mission Bay YSA Ward": "mission_bay", "San Marcos YSA Ward": "san_marcos", "South Mountain YSA Ward": "south_mountain", "Towne Lake...
JavaScript
0.999997
@@ -880,16 +880,17 @@ %22: %22Town +e Lake%22,%0A
95de1446fe941aaa9f8ca4a12ed1cb27b33f0b4b
Fix code comments.
index.js
index.js
/** * @copyright (c) 2015 Xu Jin * @licence MIT */ /** * koa middleware for Nunjucks * @module koa-nunjucks2 */ 'use strict'; const isFunction = require('lodash/lang/isFunction'); const isString = require('lodash/lang/isString'); const assign = require('lodash/object/assign'); const merge = require('lodash/obj...
JavaScript
0
@@ -699,16 +699,17 @@ String%7D +%5B template @@ -713,16 +713,40 @@ atesPath +%5D Where is the templates %0A * @par @@ -1009,16 +1009,58 @@ function +, it can be used to add filters and so on. %0A * @ret
63240d25f8f3230771ef3caf45d0fd82d9e06baa
Improve error messages
index.js
index.js
#!/usr/bin/env node var fs = require("fs"); var http = require("http"); var URL = require("url"); var heuristic = require("./heuristic"); module.exports = main; function main(har, options) { var entries = har.log.entries; var config = options.config; var server = http.createServer(function (request, resp...
JavaScript
0.000014
@@ -1415,16 +1415,23 @@ .error(%22 +Error: Could no @@ -3541,32 +3541,233 @@ %7D);%0A %7D%0A +%0A if (entry.response.content.size %3E 0 && !content && !where) %7B%0A console.error(%22Error:%22, entry.request.url, %22has a non-zero size, but there is no content in the HAR file%22);%0A ...
c2a89b632329863e917b283b0219475fa788e708
update TOSOs
index.js
index.js
//FIX fix difference between wsdl parsed by json-q and by old parser //TODO AMD support? //TODO add strings? (and remove _replace_escaped_operators) //TODO performance? const { get } = require('./lib/index'); module.exports = { get };
JavaScript
0
@@ -71,16 +71,156 @@ %0D%0A//TODO +? get rid of clone (https://github.com/pvorb/node-clone) as it uses Buffers which means adding 23k minified Buffers lib at browser?%0D%0A//TODO? AMD sup @@ -232,16 +232,17 @@ %0D%0A//TODO +? add str @@ -294,16 +294,17 @@ %0D%0A//TODO +? perform
1d261686ad74ab4a00fd7dbb17098a1a175bbbf0
fix parsing the index
index.js
index.js
/** * Module dependencies */ /** * Expose the Request object */ module.exports = Request; /** * Create a hyper-path request * * @param {String} path * @param {Client} client */ function Request(path, client, delim) { if (!(this instanceof Request)) return new Request(path, client); // init client th...
JavaScript
0.000008
@@ -1805,16 +1805,40 @@ delim);%0A + this.index = path%5B0%5D;%0A if (pa @@ -1915,32 +1915,8 @@ %7D%0A - this.index = path%5B0%5D;%0A th
9a32d247aa6c42f988d1a06a8cf4e8673ad0e2e1
Update configuration property name
index.js
index.js
/* jshint node: true */ 'use strict'; var fs = require( 'fs' ); var mergeTrees = require( 'broccoli-merge-trees' ); var path = require( 'path' ); var writeFile = require( 'broccoli-file-creator' ); module.exports = { /** * Name of addon * * @type {String} */ name: 'ember-forge-ui', /...
JavaScript
0.000001
@@ -739,33 +739,17 @@ me%5D. -emberForgeUiTemplateAddon +addonName ) %7B @@ -819,33 +819,17 @@ me%5D. -emberForgeUiTemplateAddon +addonName ;%0A
5d055571ae0ea2973b25de2b6afaf896672c11b6
Fix typos in object names
index.js
index.js
'use strict' const Promise = require('bluebird') const EventEmitter = require('events'); const Utils = require('./utils') let externals = {} class flowEmitter extends EventEmitter { } const INITIAL_STATE = 0 externals.Instance = (function () { function Instance(model, emitter, middlewares) { /*this.flow = f...
JavaScript
0.00004
@@ -649,33 +649,37 @@ states.forEach(( -v +state ) =%3E %7B%0A i @@ -681,17 +681,21 @@ if ( -v +state .name == @@ -726,33 +726,37 @@ return resolve( -v +state )%0A %7D%0A @@ -976,17 +976,26 @@ orEach(( -v +transition ) =%3E %7B%0A @@ -1023,17 +1023,26 @@ tchRule( -v +transition .name, ...
9a4a8aaf9977d1d3ff44b68cb2af365f3c7bc550
set port for deploy
index.js
index.js
var util = require('util') , koa = require('koa') , common = require('koa-common') , router = require('koa-router') , Q = require('q') , GitHubApi = require("github") , app = koa() , github = new GitHubApi({ // required version: '3.0.0', // optional debug: true, protocol: 'https', timeout: 5000 }) ; app.us...
JavaScript
0.000001
@@ -304,16 +304,50 @@ 5000%0A%7D)%0A +, port = process.env.PORT %7C%7C 3000%0A ;%0A%0Aapp.u @@ -830,15 +830,15 @@ .listen( -3000 +port );%0A
28147c56ab8b5f15896feff1510764916e76d12b
Update attachmentItemScript.js
DomainContent/AvatarStore/attachmentItemScript.js
DomainContent/AvatarStore/attachmentItemScript.js
// // attachmentItemScript.js // // This script is a simplified version of the original attachmentItemScript.js // Copyright 2017 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // (function() { ...
JavaScript
0
@@ -5468,17 +5468,16 @@ if ( - Vec3.dis
7c9bf1377587ec75dd9577356e6d3ceeee63a4fd
use central template by default
index.js
index.js
#!/usr/bin/env node var argv = require('optimist') .alias('i', 'inFile') .demand('i') .alias('o', 'outFile') .default('o', 'dmu.html') .alias('t', 'templateFile') .default('t', './template.jade') .argv, fs = require('fs'), request = require('request'), dmu2html = require('./dmu...
JavaScript
0
@@ -196,17 +196,49 @@ t('t', ' -. +http://ncgmp09.github.io/dmu2html /templat
47cba3340c7ccfdb79a9579ea4341679097b19ea
replace arrow functions so this doesn't require browserify
index.js
index.js
"use strict"; var rhMock = {}; module.exports = rhMock; rhMock.skipQueriesInList = [ "skip", "take", "rhcurrentpage", "search" ]; var apiRoot = ""; rhMock.setApiRoot = function ( _apiRoot ) { apiRoot = _apiRoot; if( !apiRoot ) { return; } var portAndPath = apiRoot.split( "://" )[ 1 ].s...
JavaScript
0.000008
@@ -1648,14 +1648,32 @@ ch( -key =%3E +function ( key )%0A %7B%0A @@ -1850,15 +1850,62 @@ er( -item =%3E +function ( item )%0A %7B%0A return ite @@ -1967,16 +1967,31 @@ String() +;%0A %7D );%0A
0f606e146f7048c1d86c46b1c2f119f2786af475
Set custom parser in non-hacky way (fixes #12)
index.js
index.js
module.exports.cli = require('./bin/cmd') module.exports.linter = Linter var defaults = require('defaults') var deglob = require('deglob') var dezalgo = require('dezalgo') var eslint = require('eslint') var extend = require('xtend') var findRoot = require('find-root') var fs = require('fs') var os = require('os') var...
JavaScript
0
@@ -268,81 +268,8 @@ t')%0A -var fs = require('fs')%0Avar os = require('os')%0Avar path = require('path')%0A var @@ -3566,306 +3566,41 @@ -var configFile = JSON.parse(fs.readFileSync(self.eslintConfig.configFile, 'utf8'))%0A configFile.parser = parser%0A var tmpFilename = path.join(os.tmpdir(), '.eslintr...
afdcdd62ed575d4cc99bfdc4342881912e21c3f8
update container only if it has variables
index.js
index.js
import React, {PropTypes} from 'react'; import {Observable, helpers} from 'rx'; import assign from 'object-assign'; import invariant from 'invariant'; const FETCH_FAILED = 'FETCH_FAILED'; const FETCH_ABORTED = 'FETCH_ABORTED'; export default { create: Container, fromPromise: Observable.fromPromise, fromValue: Obse...
JavaScript
0.000001
@@ -2724,16 +2724,35 @@ %0A%09%09%09if ( +isRootContainer && shouldCo
a5addbfad61701b8143fcda14a6ce16076d8123d
fix data collection
index.js
index.js
require('dotenv').config() const TelegramBot = require('node-telegram-bot-api'); const uuid = require('uuid/v4'); const sleeboard = require('./sleeboard.js'); const pg = require('pg'); var config = { user: process.env.PGUSER, database: process.env.PGDATABASE, password: process.env.PGPASSWORD, host: process.env....
JavaScript
0.000003
@@ -4884,10 +4884,9 @@ r = -'' +0 ;%0A
61a29c91322e505eebfa02810adb763ac602c106
add fullscreen menu item (#1)
index.js
index.js
const { app, BrowserWindow, shell, Menu } = require('electron'); const createRPC = require('./rpc'); const Session = require('./session'); const genUid = require('uid2'); const { resolve } = require('path'); const isDev = require('electron-is-dev'); if (isDev) { console.log('running in dev mode'); } else { console...
JavaScript
0
@@ -4971,32 +4971,88 @@ %7D%0A %7D%0A + %7D,%0A %7B%0A role: 'togglefullscreen'%0A %7D%0A
cf5acdccc4ad0b619e7cdedb93b1dd30c9cc78b4
Remove unused variables: util, self
index.js
index.js
var fs = require('fs') , util = require('util') , findExec = require('find-exec') , child_process = require('child_process') , players = [ 'mplayer', 'afplay', 'mpg123', ...
JavaScript
0.999967
@@ -34,47 +34,8 @@ s')%0A - , util = require('util')%0A , @@ -624,29 +624,8 @@ var -self = this,%0A next
8f6fd581c960db53ab15cf42aee4523458741c6c
Remove commented line and add comments on code
index.js
index.js
var yargs = require('yargs'); var fs = require('fs'); var http = require('http'); var debug = require('debug')('word-counter:index'); var client_parse = require('./lib/client_parse.js'); var argv = yargs .option('c', { alias: 'client', type: 'array' }) .option('s', { alias: 'search', ...
JavaScript
0
@@ -1253,24 +1253,117 @@ %7D%0A %7D%0A%7D;%0A%0A +// Pega um peda%C3%A7o do texto e a palavra a ser buscada e monta um objeto para enviar ao client%0A function get @@ -1935,24 +1935,54 @@ tData);%0A%7D;%0A%0A +// Resposta enviada do client%0A function pro @@ -2345,24 +2345,99 @@ esponse();%0A%0A + // Se aind...
e883fcf4da5a211e1ab1e08606a5e90712778b43
Fix crash on quit if timer is running
index.js
index.js
'use strict'; const menubar = require('menubar'); const Menu = require('menu'); const globalShortcut = require('global-shortcut'); const ipc = require('ipc'); const dialog = require('dialog'); const Stopwatch = require('timer-stopwatch'); const Hrt = require('human-readable-time'); const fs = require('fs'); const path ...
JavaScript
0.000007
@@ -1322,24 +1322,46 @@ isterAll();%0A +%09global.timer.stop();%0A %7D);%0A%0Amb.app.
40dddae51b7b3602bdc5d76c615268ca9261e0eb
Remove object y position.
web3d/static/js/src/web3d.js
web3d/static/js/src/web3d.js
/* Javascript for Web3dXBlock. */ function Web3dXBlock(runtime, element) { var container; var camera, scene, renderer; var controls; var width = 750; var height = 500; function animate() { requestAnimationFrame(animate); render(); controls.update(); } funct...
JavaScript
0
@@ -1352,45 +1352,8 @@ %7B%0A%0A - object.position.y = -40;%0A
36bb1db36bc859836a89a1e65bfdd650d7523729
add appId
index.js
index.js
'use strict'; var Alexa = require('alexa-sdk'); var Guns = require('./lib/guns'); var guns = new Guns(); var handlers = { 'GetGunInformationIntent': function () { var gun = guns.find_by_name(this.event.request.intent.slots.Gun.value); if (gun) { var gunInformation = gun.name + '. ' + gun.not...
JavaScript
0.000001
@@ -1490,16 +1490,146 @@ ntext);%0A +%0A if (typeof process.env.DEBUG === 'undefined') %7B%0A alexa.appId = 'amzn1.ask.skill.d16db6f9-e869-4345-ac89-fa86b73d7663';%0A %7D%0A%0A alexa.
0004be9223a33e423f8d87870b9f0d6533c18e4a
Remove hardcoded credentials
index.js
index.js
var Bot = require('slackbots'); var request = require('request'); // create a bot var settings = { token: '%%%', name: '%%%' }; var DEFAULT_REPO = '%%%'; var channels = {}; var bot = new Bot(settings); bot.on('message', function (data) { if (data.type === 'message') { if (data.username === '%%%') ret...
JavaScript
0.000765
@@ -108,30 +108,69 @@ en: -'%25%25%25',%0A name: '%25%25%25' +process.env.SLACK_TOKEN,%0A name: process.env.SLACK_BOT_NAME %0A%7D;%0A @@ -776,36 +776,77 @@ er: -'%25%25%25',%0A pass: '%25%25%25' +process.env.GITHUB_USERNAME,%0A pass: process.env.GITHUB_TOKEN %0A
15306d413157d7696ea68271badc7e7952658ba1
Fix ref error
index.js
index.js
/** * ajax-form.js v0.1.1 * author: Yoshiya Hinosawa ( http://github.com/kt3k ) * license: MIT */ (function ($) { 'use strict'; var initAjaxFormSingle = function (form) { var ATTR_INITIALIZED = 'data-ajax-form-initialized'; var ATTR_API = 'data-api'; var ATTR_METHOD = 'data-method...
JavaScript
0.000004
@@ -2229,16 +2229,17 @@ AjaxForm +s );%0A%0A%0A
3359b76b0e9c01fb87c34ac9442f1a44eba96aa1
Add default value for config.baseApiPath
index.js
index.js
var path = require('path'); var express = require('express'); var favicon = require('serve-favicon'); module.exports = function (app, baseDir, config) { var servedDirectory = 'app'; if ('production' === app.get('env')) { servedDirectory = 'dist'; // prerender.io app.use(require('pre...
JavaScript
0
@@ -145,24 +145,89 @@ , config) %7B%0A + config.baseApiPath = config.baseApiPath %7C%7C config.baseUrl;%0A%0A%0A var serv
ee9c33a108a6bae232057135e4f77d7cf50f38b2
use logs config
index.js
index.js
require('babel-polyfill'); var childProcess = require('child_process'); var http = require("http"); var httpProxy = require('http-proxy'); var spawn = childProcess.spawn; var ServiceManager = require('./service_manager'); var app = http.createServer(dispatch); var proxy = httpProxy.createProxyServer({ ws: true }); var ...
JavaScript
0
@@ -814,39 +814,50 @@ t = fs.openSync( -'./logs +config.logsDir + ' /lively-server.l @@ -891,15 +891,26 @@ ync( -'./logs +config.logsDir + ' /liv
422ca7a08007a6c648051dd8a0506e6e97d9c7dc
Allow node pinning
index.js
index.js
/** * Creates a force based layout that can be switched between 3d and 2d modes * Layout is used by ngraph.pixel * * @param {ngraph.graph} graph instance that needs to be laid out * @param {object} options - configures current layout. * @returns {ojbect} api to operate with current layout. Only two methods requir...
JavaScript
0.000001
@@ -2654,16 +2654,446 @@ imulator +,%0A%0A /**%0A * Toggle node pinning. If node is pinned the layout algorithm is not allowed%0A * to change its position.%0A *%0A * @param %7Bstring%7D nodeId identifier of a node to work with;%0A * @param %7Bboolean+%7D isPinned if specified then the %60nodeId%...
0e158e70ec3b74038460071ae3c1da5e0ed1de87
Update geojson source
index.js
index.js
mapboxgl.accessToken = 'pk.eyJ1IjoicGxhbmVtYWQiLCJhIjoiY2l2dzVxbzA3MDAwNDJzbDUzMzVzbXc5dSJ9.WZ4_UtVvuVmOw4ofNMkiJw'; var map = new mapboxgl.Map({ container: 'map', style: 'mapbox://styles/mapbox/light-v9', zoom: 1.4, center: [21.6, 7.6], hash: true }); map.addControl(new MapboxGeocoder({ access...
JavaScript
0.000001
@@ -476,16 +476,31 @@ wikidata +_planet_geojson '%0A %7D)
671c8b6ec9b41b10ae4d640978242fca8a103993
Use module.parent's directory for resolving usage.txt
index.js
index.js
var path = require('path') , fs = require('fs') module.exports = function(file) { file = file || path.resolve('usage.txt') return function(code) { var rs = fs.createReadStream(file) rs.pipe(process.stdout) rs.on('close', function() { if (code) process.exit(code) }) } }
JavaScript
0.000004
@@ -95,11 +95,141 @@ file - %7C%7C +%0A ? file%0A : module.parent && module.parent.filename%0A ? path.resolve(path.dirname(module.parent.filename), 'usage.txt')%0A : pat
a75ed5e3a45a160415ed35de3067644852d1293a
Simplify negated (#7)
index.js
index.js
'use strict'; const escapeStringRegexp = require('escape-string-regexp'); const reCache = new Map(); function makeRe(pattern, shouldNegate) { const cacheKey = pattern + shouldNegate; if (reCache.has(cacheKey)) { return reCache.get(cacheKey); } let negated = false; if (pattern[0] === '!') { negated = true;...
JavaScript
0
@@ -247,18 +247,20 @@ );%0A%09%7D%0A%0A%09 -le +cons t negate @@ -267,21 +267,8 @@ d = -false;%0A%0A%09if ( patt @@ -285,29 +285,26 @@ '!' -) %7B%0A%09%09negated = true; +;%0A%0A%09if (negated) %7B %0A%09%09p @@ -1083,115 +1083,38 @@ %0A%0A%09%09 -// TODO: Figure out why tests fail when I use a for-of loop her...
e086fbf84f6b34f21e4ac4336cbd986542786ba6
Don't run AST transform on freestyle itself, just on it's parent app/addon
index.js
index.js
'use strict'; module.exports = { name: require('./package').name, included(/*app, parentAddon*/) { this._super.included.apply(this, arguments); }, isDevelopingAddon() { return false; }, setupPreprocessorRegistry(type, registry) { let pluginObj = this._buildPlugin(); pluginObj.parallelBab...
JavaScript
0.999017
@@ -243,24 +243,73 @@ registry) %7B%0A + if (type !== 'parent') %7B%0A return;%0A %7D%0A let plug
52d4d3f2dcf1a658a497140212a053d707408234
Update up to changes in es5-ext
index.js
index.js
'use strict'; var toUint = require('es5-ext/number/to-uint') , firstKey = require('es5-ext/object/first-key') , d = require('d/d') , Message = require('./_message') , isArray = Array.isArray, defineProperties = Object.defineProperties; module.exports = function (locale) { var self, resolve; self ...
JavaScript
0
@@ -18,14 +18,14 @@ r to -Uint +PosInt = r @@ -54,12 +54,19 @@ /to- -uint +pos-integer ')%0A @@ -1691,18 +1691,20 @@ %09%09n = to -Ui +PosI nt(n);%0A%09 @@ -1746,10 +1746,12 @@ , to -Ui +PosI nt(n
49a6f7d0f5df3770032c772f036ef9b8450eddff
Make the Redis connection more robust
index.js
index.js
'use strict'; var redis = require('redis'), coRedis = require('co-redis'), koa = require('koa'); var app = koa(), client = redis.createClient( process.env.REDIS_PORT, process.env.REDIS_HOST ), dbCo = coRedis(client); if (process.env.REDIS_SECRET) { client.auth(process.env.REDIS_SEC...
JavaScript
0
@@ -322,16 +322,101 @@ ET);%0A%7D%0A%0A +client.on('error', function (err) %7B%0A console.log('Redis client error: ' + err);%0A%7D);%0A %0Aapp.use
cec92bf498c804f3c2c3732b8c14627524658373
make components transparent
index.js
index.js
'use strict'; var React = require('react-native'); var {View, Navigator, Text, StyleSheet} = React; var alt = require('./alt'); var PageStore = require('./store'); var Actions = require('./actions'); var FetchActions = require('./FetchActions'); var FetchStore = require('./FetchStore'); var Animations = require('./Anim...
JavaScript
0.000001
@@ -5373,32 +5373,42 @@ View style=%7B -%7Bflex:1%7D +styles.transparent %7D%3E%0A @@ -6498,16 +6498,26 @@ le=%7B -%7Bflex:1%7D +styles.transparent %7D%3E%0A @@ -7124,16 +7124,92 @@ %0A %7D,%0A + transparent: %7B%0A flex:1,%0A backgroundColor: %22transparent%22%0A %7D%0A %7D);%0A%0Amo...
292d8cfd05962b4ebee350954d9b26b9b06cdea6
Clean up the logging
index.js
index.js
"use strict"; var dynamo = require("dynamo"), when = require("when"), sequence = require("sequence"), winston = require("winston"); // Setup logger winston.loggers.add("app", { console: { 'level': "silly", 'timestamp': true, 'colorize': true } }); var log = winston.loggers....
JavaScript
0.000001
@@ -3561,19 +3561,31 @@ alias + -key +%22 %22 + key + %22 %22 + value
9b7730b5dd17a5909bb1c59b226d99521ed91e03
create root dir from app dir an arguments wd
index.js
index.js
var fs = require('fs'); var path = require('path'); var send = require('send'); var isFile = /\/[^.]+\.[a-z0-9]+$/gi; var cwd = process.cwd(); var url = require('url'); // your custom headers function headers(res, path, headers, dataHeaders) { headers = dataHeaders ? Object.assign(headers, dataHeaders) : headers;...
JavaScript
0.000001
@@ -115,33 +115,8 @@ gi;%0A -var cwd = process.cwd();%0A var @@ -1585,29 +1585,71 @@ file:', -path.join(cwd +scope.env._appDir, args.wd, path.join(scope.env._appDir , args.w @@ -1711,11 +1711,25 @@ oin( -cwd +scope.env._appDir , ar
250b2171e7ab1aff17822874b59b0e6873b3f517
fix error
index.js
index.js
module.exports = Socket var EventEmitter = require('events').EventEmitter var inherits = require('inherits') var once = require('once') var RECONNECT_TIMEOUT = 5000 inherits(Socket, EventEmitter) function Socket (url, opts) { if (!(this instanceof Socket)) return new Socket(url, opts) EventEmitter.call(this) ...
JavaScript
0.000002
@@ -1316,21 +1316,23 @@ %0A this. -close +destroy ()%0A%0A //
ee4d74c7a46ab30a7dc3614b246cbaf3ddff918f
rename variables
index.js
index.js
'use strict'; /* global document, window */ /* exported straube */ var screenSize = document.body.offsetWidth; var straube = function() { var STRAUBE_CLASS = 'straube'; var STRAUBE_WRAPPER_CLASS = 'straube-wrapper'; var elements = document.querySelectorAll('.' + STRAUBE_CLASS); var wrapperElement; var securi...
JavaScript
0.000039
@@ -442,19 +442,25 @@ %0A%0A var -big +increment Delta = @@ -468,21 +468,25 @@ ;%0A var -small +decrement Delta = @@ -510,27 +510,33 @@ ller) %7B%0A -big +increment Delta = 0.1; @@ -536,29 +536,33 @@ = 0.1;%0A -small +decrement Delta = 1;%0A @@ -1479,11 +1479,17 @@ -big +increment Delt @@...
729a8c142e36f73fb946b03658dad09bcd93ebb5
Remove commented out code
index.js
index.js
var hexaworld = require('hexaworld/game.js') var base = require('./base.js') var editor = require('./ui/editor.js') var maps = require('./ui/maps.js') var config = require('./ui/config.js') var editorContainer = document.getElementById('editor-container') var selectorContainer = document.getElementById('selector') var...
JavaScript
0
@@ -2751,1103 +2751,4 @@ %5D)%0A%7D -%0A%0A%0A%0A// Object.keys(schema.gameplay).forEach(function (key) %7B%0A// createConfigField(key)%0A// %7D)%0A%0A// function createConfigField (key) %7B%0A// var fieldset = document.createElement('fieldset')%0A%0A// var label = document.createElement('label')%0A// label.se...
31a247654eb5d1f652fd4eb15fce0d0cdf65bc0f
[ERROR] unreleasable
index.js
index.js
var archiver = require('archiver'); var concatStream = require('concat-stream'); module.exports = function(options, modified, total, callback) { var list = options.modified ? modified : total; if (!list.length) { return false; } var filename = options.filename || 'all.tar.gz'; var root = fis.project.g...
JavaScript
0.999975
@@ -438,24 +438,50 @@ ion(file) %7B%0A + if (file.release) %7B%0A var file @@ -528,16 +528,18 @@ );%0A%0A + tarfile. @@ -562,24 +562,26 @@ ontent(), %7B%0A + name: @@ -596,16 +596,18 @@ ,%0A + mode: nu @@ -613,20 +613,28 @@ ull%0A + %7D);%0A + %7D%0A %7D);%0A%0A
ff994c818bccf69c9c7ed88aae0f2338f3f47468
normalize input
index.js
index.js
/*! * tokens-map <https://github.com/jonschlinkert/tokens-map> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT license. */ 'use strict'; /** * Module dependencies */ var rand = require('randomatic'); /** * Expose `Tokens` */ module.exports = Tokens; /** * Create an instance...
JavaScript
0.999985
@@ -1541,26 +1541,44 @@ str = str -%7C%7C +? this._input(str) : this.input; @@ -2514,18 +2514,36 @@ r = str -%7C%7C +? this._input(str) : this.co
9ea7b244d0be88ba07d0dc2f770b234180c654fd
Add missing semicolon
index.js
index.js
'use strict'; var binary = require('node-pre-gyp'); var path = require('path') var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); var binding = require(binding_path); module.exports = sleep; function sleep(milliseconds) { var start = Date.now(); if (milliseconds !== (milliseconds...
JavaScript
0.999999
@@ -72,16 +72,17 @@ ('path') +; %0Avar bin
185257d59bd544c649e76f4917dcbb9f3ef70f97
Update url replace code for dupe check
index.js
index.js
/** * Upload files to Amazon S3 of the IMG, A, LINK and SCRIPT tags and replaces the url for gulp 3. **/ var through = require('through2'), gutil = require('gulp-util'), extend = require('extend'), path = require('path'), Promise = require('promise'), fs = require('fs'), md5 = require('MD5'), s3 = requ...
JavaScript
0.000001
@@ -2277,24 +2277,82 @@ gth; i++) %7B%0A + if (!content.includes(urls%5Bi%5D.publicUrl)) %7B%0A @@ -2377,16 +2377,27 @@ replace( +new RegExp( urls%5Bi%5D. @@ -2408,16 +2408,22 @@ inalUrl, + 'g'), urls%5Bi%5D @@ -2435,16 +2435,30 @@ icUrl);%0A + %7D%0A
0a8fcb4c7cc0266b836c33af3f7db843b21cd6bd
Use log instead of error when fallback to default nightwatch config
index.js
index.js
#!/usr/bin/env node var selenium = require('selenium-standalone'); var cp = require('child_process'); var path = require('path'); var fs = require('fs'); var mkdirp = require('mkdirp'); var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var webpackConfig = require(process.env.WEBPA...
JavaScript
0
@@ -902,56 +902,8 @@ ) %7B%0A - console.error(err);%0A console.log(err.stack);%0A co