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
c2f1029babf7308b8a8361eec34299ec684ef160
add oauth token
index.js
index.js
var https = require('https'); var twilio = require('./lib/twilio'); var _ = require('lodash'); var timeout, redis; if (process.env.REDISTOGO_URL) { rtg = require('url').parse(process.env.REDISTOGO_URL); redis = require('redis').createClient(rtg.port, rtg.hostname); redis.auth(rtg.auth.split(':')[1]); } else { ...
JavaScript
0.000001
@@ -792,25 +792,16 @@ joyent', - 'rails', 'iojs', @@ -807,16 +807,25 @@ , 'atom' +, 'rails' %5D;%0A%0Apath @@ -871,37 +871,37 @@ ,%0A -rails: 'rails',%0A atom: 'atom +atom: 'atom',%0A rails: 'rails '%0A%7D; @@ -1141,16 +1141,74 @@ ilsen16' +,%0A 'Authorization': 'token ' + process.env.CLIENTID %0A ...
15b5ddd2ae6ae598a9b1bc9e5fc4bb1a135aaee8
Clean up comment spacing.
tests/integration/campaign/action.js
tests/integration/campaign/action.js
/** * action.js * Test action page is rendered correctly */ var x = require('casper').selectXPath; var user; casper.test.begin("Test action page is rendered and functions correctly", { /* * Prepare CAMPAIGN from fixture. */ setUp: function() { user = casper.createTestUser(); casper.campaignSignup...
JavaScript
0
@@ -588,17 +588,16 @@ Header %0A -%0A casp @@ -1993,17 +1993,16 @@ Know It%0A -%0A casp
ef777e75f1ad4c86a7a2a3a1c5101e3a0f16489f
Fix way polygons
lib/queue.js
lib/queue.js
var async = require("./../node_modules/async"); function theQ (options, Node) { var self = this; var idType; self.nodeQueueEmpty = true; self.wayQueueEmpty = true; self.relationQueueEmpty = true; self.output = {node: 0, way: 0, relation: 0}; self.input = {}; // building options if (!!options.us...
JavaScript
0.023685
@@ -2436,24 +2436,77 @@ 'Polygon');%0A + way.loc.coordinates = %5Bway.loc.coordinates%5D;%0A %7D else
57ba2daa4091aa2660564eb92fc131929a6b0bc1
Fix jquery scope once again, in integration test 🔨
tests/integration/shadow-dom-test.js
tests/integration/shadow-dom-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('foo-bar', 'Integration | Polymer | Shadow DOM', { integration: true }); test('Uses native Shadow DOM if available', function(assert) { if (!window.Polymer.Settings.nativeShadow) { return a...
JavaScript
0
@@ -522,21 +522,16 @@ t.equal( -this. $('paper
d50e0f78690297b5ee25eb1f7bb8c596be07b8e7
Update image sources in CSP
cloudfront-headers.js
cloudfront-headers.js
// Copyright (c) Martin Costello, 2017. All rights reserved. // Licensed under the MIT. See the LICENSE file in the project root for full license information. "use strict"; exports.handler = (event, context, callback) => { const response = event.Records[0].cf.response; const headers = response.headers; c...
JavaScript
0
@@ -670,16 +670,30 @@ c 'self' + abs.twimg.com cdn.mar
5edc40aa6b6d846d4f9e7e659d3f276d0a88dd39
Update controllers_dataimport_spec.js
test/controllers_dataimport_spec.js
test/controllers_dataimport_spec.js
/** * Author: Daniel M. de Oliveira */ fdescribe ('DataimportController', function() { var scope; var dataserviceUri='http://backend/data'; var dataimportUri=dataserviceUri+'/admin/dataimport'; var OUTCOME_START_DATAIMPORT = 'Dataimport successfully started. '; var OUTCOME_STOP_DATAIMPORT = 'Dataimport succes...
JavaScript
0.000002
@@ -35,17 +35,16 @@ ra%0A */%0A%0A -f describe @@ -1171,17 +1171,16 @@ ));%0A%0A%0A%0A%09 -f it ('sho
9469d3ccd7d88b2be6e9c70a343ced926f75977e
Update redux tests
tests/redux/modules/products.spec.js
tests/redux/modules/products.spec.js
import reducer, { initialState, fetchProducts, toggleProductSelection, setProductsList, TOGGLE_PRODUCT_SELECTION, FETCH_PRODUCTS, SET_PRODUCTS_LIST } from 'redux/modules/products' const products = [ { category: 'Sports', name: 'Arsenal TV', selected: false } ] const fetchedProduct = [ ...
JavaScript
0
@@ -1171,32 +1171,37 @@ xpect(state).to. +deep. equal(initialSta @@ -1267,32 +1267,37 @@ xpect(state).to. +deep. equal(initialSta @@ -1470,24 +1470,29 @@ t(state).to. +deep. equal(initia
034150429ced152a73e23ca9f5252c461e835490
Fix PriceMinister e2e test
test/e2e/priceminister-uris-test.js
test/e2e/priceminister-uris-test.js
"use strict"; // set the timeout of these tests to 10 seconds jasmine.getEnv().defaultTimeoutInterval = 10000; var PriceFinder = require("../../lib/price-finder"), priceFinder = new PriceFinder(); function verifyPrice(price) { expect(price).toBeDefined(); // we can't guarantee the price, so just make sur...
JavaScript
0
@@ -1539,34 +1539,22 @@ , %22G -rand Theft Auto IV sur PS3 +ta 4 jeu video %22);%0A
14f1695ff57679c54f33f36731044050b7d98038
Add 'getBranchesInRepo' method to githubAPI
src/api/githubAPI.js
src/api/githubAPI.js
import {GITHUB_USER_NAME, GITHUB_REPO_NAME} from '../utils/constants'; import * as Axis from '../../node_modules/axis.js'; let Octokat = require('octokat'); let octo = new Octokat({}); class GithubApi { static addTokenToOcto(token){ return new Promise(resolve => { octo = new Octokat({ token: to...
JavaScript
0.000007
@@ -805,16 +805,849 @@ );%0A %7D%0A%0A + /**%0A * Gets a list of branches in the specified repo.%0A *%0A * https://developer.github.com/v3/repos/branches/#list-branches%0A *%0A * @param %7BString%7D ownerLogin - The GitHub username/login ID of the owner of the repo.%0A * @param %7BString%7D repoName - Th...
9945664da5af2aae3469d89201d565e87b19bd0b
handle `b==falseFunc` case in `reduceRules()`
lib/compile.js
lib/compile.js
/* compiles a selector to an executable function */ module.exports = compile; var parse = require("CSSwhat"), DomUtils = require("domutils"), isTag = DomUtils.isTag, Rules = require("./general.js"), sortRules = require("./sort.js"), BaseFuncs = require("./basefunctions.js...
JavaScript
0
@@ -842,25 +842,29 @@ %09if( -a +%0A%09%09b === -tru +fals eFunc %7C%7C b = @@ -859,17 +859,19 @@ eFunc %7C%7C - +%0A%09%09 b === ro @@ -872,24 +872,46 @@ === rootFunc + %7C%7C%0A%09%09a === trueFunc%0A%09 ) return a;%0A
7e45abd04460247dead6288a32f3413abf1d222a
add the link to the quran halaqa sign up
src/app/Resources.js
src/app/Resources.js
/** * Created by Abdellatif on 1/9/2017. */ var React = require('react'); var ReactDOM = require('react-dom'); var firebase = require('firebase'); import Paper from "material-ui/Paper"; import RaisedButton from "material-ui/RaisedButton"; import FlatButton from "material-ui/FlatButton"; import Dialog from "material-u...
JavaScript
0
@@ -4319,16 +4319,79 @@ Sign up%22 + href=%22https://goo.gl/forms/IaJ2wnABFBDH42ax1%22 target=%22_window%22 /%3E%0A
38a41d6c2ab066d4014f6dc04c2ba7009f6f5914
update files-teb styling
src/app/files-tab.js
src/app/files-tab.js
/* global confirm, prompt */ var yo = require('yo-yo') var $ = require('jquery') var modalDialogCustom = require('./modal-dialog-custom') var QueryParams = require('./query-params') var queryParams = new QueryParams() // -------------- styling ---------------------- var csjs = require('csjs-inject') var styleGuide = r...
JavaScript
0
@@ -426,16 +426,45 @@ %0A .crow + extends $%7Bstyles.displayBox%7D %7B%0A m @@ -473,16 +473,18 @@ gin- +bot to -p: 1em +m: 1%25 ;%0A @@ -500,16 +500,37 @@ : flex;%0A + flex-wrap: wrap;%0A %7D%0A .i @@ -593,16 +593,150 @@ em;%0A %7D%0A + .button extends $%7Bstyles.button%7D %7B%0A background-co...
3d749a12f9811c8a4ac3442e56f766e415f7f13f
change key for fburl to fb_url
index.js
index.js
jQuery(function($){ // This hack replaces the deprecated/removed toggle() event in jQuery. // http://stackoverflow.com/a/25150375 $.fn.toggle=function(){ var functions=arguments, iteration=0 return this.click(function(){ functions[iteration].call() iteration= (itera...
JavaScript
0.000002
@@ -3733,16 +3733,17 @@ %09%09if(%22fb +_ url%22 in @@ -3794,16 +3794,17 @@ slide.fb +_ url);%0A%09%09
6987a70545fc0cd276128ba76934db0b7f29a806
fix bug #19
src/vue-firestore.js
src/vue-firestore.js
import { normalize, ensureRefs } from './utils/utils' // Vue binding let Vue /** * Define a reactive property to a given Vue instance. * * @param {Vue} vm * @param {string} key * @param {*} val */ function defineReactive (vm, key, val) { if (key in vm) { vm[key] = val } else { Vue.util.defineReactiv...
JavaScript
0
@@ -3244,24 +3244,104 @@ source)%0A %7D +%0A%0A Vue.prototype.$unbind = function (key) %7B%0A delete this.$firestore%5Bkey%5D%0A %7D %0A%7D%0A%0A// Insta
3a316e7dcfee773c519f6e239bc377b5247482c6
Set filter param for file_picker_callback types
src/assets/helper.js
src/assets/helper.js
if (typeof alexantr === 'undefined' || !alexantr) { var alexantr = {}; } alexantr.elFinder = (function ($) { 'use strict'; return { registerSelectButton: function (buttonId, url) { $('#' + buttonId).on('click', function (e) { e.preventDefault(); var w = ...
JavaScript
0.000001
@@ -844,24 +844,535 @@ ue, meta) %7B%0A + // append filter query param%0A var separator = settings.file.indexOf('?') !== -1 ? '&' : '?';%0A if (meta.filetype === 'image') %7B%0A settings.url = settings.file + separator + 'filter=image';%0A ...
c81aa229e69ef7386e0f37965238b72ab90ae43e
return an error if mpg123_read() fails
lib/decoder.js
lib/decoder.js
/** * Module dependencies. */ var assert = require('assert'); var binding = require('./bindings'); var inherits = require('util').inherits; var Transform = require('stream').Transform; var debug = require('debug')('lame:decoder'); /** * Module exports. */ module.exports = Decoder; /** * Some constants. */ v...
JavaScript
0.004132
@@ -3027,37 +3027,99 @@ -assert.equal(ret, MPG123_OK); +if (MPG123_OK != ret) %7B%0A return done(new Error('mpg123_read() failed: ' + ret));%0A %7D %0A
42874f7c8b412c223cc9d9760fe5dbcd16e51b89
Fix module entry point
index.js
index.js
module.exports = require('./dist/').default;
JavaScript
0.000001
@@ -26,16 +26,19 @@ './dist/ +src ').defau
dc97fdb38f5d10f336ca79f1c2dda5732ec1e070
fix typo in deprecation message
src/authorizeStep.js
src/authorizeStep.js
import {inject} from 'aurelia-dependency-injection'; import {Redirect} from 'aurelia-router'; import * as LogManager from 'aurelia-logging'; import {AuthService} from './authService'; @inject(AuthService) export class AuthorizeStep { constructor(authService) { LogManager.getLogger('authentication').warn('Authori...
JavaScript
0.000019
@@ -350,19 +350,17 @@ henticat -ion +e Step ins
cd0619c260dd3252e0defd71abd245945636f1b5
test git-plus plugin
lib/tasks.js
lib/tasks.js
var express = require('express'); var bodyParser = require('body-parser'); var cors = require('cors'); var request = require('request'); function tasksRoute() { var tasks = new express.Router(); tasks.use(cors()); tasks.use(bodyParser()); // GET REST endpoint - query params may or may not be populated task...
JavaScript
0.000001
@@ -1137,20 +1137,16 @@ res) %7B%0A - %0A %7D);%0A%0A
fbeb83c05a408111f70c3d4e25c4dfbc37d73d4f
make dynamic and raw es modules
index.js
index.js
/** * Module dependencies */ var utils = require('loader-utils'); exports = module.exports = function(source) {}; exports.pitch = function(remainingRequest) { this.cacheable && this.cacheable(); var req = JSON.stringify('!!' + remainingRequest); var q = this.resourceQuery || ''; var opts = utils.parseQuery(...
JavaScript
0
@@ -715,16 +715,53 @@ ) + ')); +%5Cn' +%0A 'exports.__esModule = true; ';%0A%7D%0A%0Afu @@ -939,16 +939,53 @@ xports); +%5Cn' +%0A 'exports.__esModule = true; ';%0A%7D%0A%0Afu
41737056f05fd417609a69cc824a8edbc3e85800
write the manifest file! places/targets in opts.base
index.js
index.js
const fs = require('fs') const assign = require('object-assign') const revHash = require('rev-hash') const revPath = require('rev-path') const sortKeys = require('sort-keys') // alias const read = fs.readFileSync const write = fs.writeFileSync export default function () { let manifest = {} // reset on call this.r...
JavaScript
0.000041
@@ -768,26 +768,107 @@ cons -ole.log( manifest +t data = JSON.stringify(manifest, false, ' ')%0A return write(%60$%7Bopts.base%7D/$%7Bopts.path%7D%60, data )%0A
3c39487187436b9108a7c0f4b2bb102b2403f7ae
Increase memory limit of xhub to 5mb
index.js
index.js
"use strict"; var t0 = Date.now(); if (process.env.NODE_ENV === "dev") { // Load local env variables require("./env"); } const express = require("express"), bodyParser = require('body-parser'), xhub = require('express-x-hub'), Controller = require("./lib/controller"); function logArgs() { var ...
JavaScript
0
@@ -2356,16 +2356,31 @@ B_SECRET +, limit: '5Mb'; %7D));%0A%0Aa
3f9c0f33d1848a1b28c202868a0f58a257232d0a
Switch doc to closure compiler templating
index.js
index.js
/** * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection} * * @module turf/featurecollection * @category helper * @param {Feature} features input Features * @returns {FeatureCollection} a FeatureCollection of input features * @example * var features = [ * turf.point([-75.343, 39...
JavaScript
0
@@ -158,16 +158,44 @@ %7BFeature +%3C(Point%7CLineString%7CPolygon)%3E %7D featur @@ -203,17 +203,17 @@ s input -F +f eatures%0A @@ -242,16 +242,44 @@ llection +%3C(Point%7CLineString%7CPolygon)%3E %7D a Feat
16bf357dcf9a58c662838160d778837c0f6b8ac1
Return false for `isDevelopingAddon`
index.js
index.js
/* globals require, module */ 'use strict'; var mergeTrees = require('broccoli-merge-trees'); var stew = require('broccoli-stew'); var path = require('path'); var fs = require('fs'); var flatiron = require('broccoli-flatiron'); var freestyleUsageSnippetFinder = require('./freestyle-usage-snippet-finder'); var Funnel...
JavaScript
0
@@ -2467,19 +2467,20 @@ return -tru +fals e;%0A %7D%0A%7D
a796bb58609c810ff224028e6353a199dc24984b
Normalize EOL symbols in process output to match correctly to the expected output.
lib/tests.js
lib/tests.js
module.exports = runTests; var fs = require('fs'); var walkdir = require('walkdir'); var mocha = require('mocha'); var expect = require('chai').expect; function runTests(args) { // display contents of objects in full depth Array.prototype.inspect = function () { return JSON.stringify(this, null, 2); }; var fil...
JavaScript
0
@@ -1882,32 +1882,79 @@ %0A %7D else %7B%0A + stdout = stdout.replace(/%5Cr%5Cn/g,'%5Cn');%0A if (form
afc8793fe0424dd9cc19df98d00546b155a6d6a6
bring back the promises in universe.update
src/base/universe.js
src/base/universe.js
export class Universe { constructor() { this.reality = {}; this.realityUUID = {}; this.worker = undefined; } get(id) { return this.reality[id]; } getByUUID(uuid) { const id = this.realityUUID[uuid.toString()]; if (id) { return this.get(id); } } set(id, value) { this.reality[id] = value; ...
JavaScript
0.000001
@@ -838,19 +838,16 @@ ;%0A%09%7D;%0A%0A%09 -// update(d @@ -859,19 +859,16 @@ %7B%0A%09 -// %09return this @@ -867,73 +867,34 @@ urn -this.forEachAsync(o =%3E o.update(delta));%0A%09// %7D%0A%0A%09update(delta) %7B%0A +new Promise(resolve =%3E %7B%0A%09 %09%09Ob @@ -898,16 +898,17 @@ %09Object%0A +%09 %09...
f3371b88eb93c8afc0b6f7ab0abc7febc692dd15
fix saveConfig() filename saving with a newline...
index.js
index.js
#!/usr/bin/env node /** * Module dependencies. */ var fs = require('fs'); var path = require('path'); var osenv = require('osenv'); var Cloudup = require('cloudup-client'); var pkg = require('./package'); /** * Configuration path. */ exports.configPath = path.resolve(osenv.home(), '.cloudup.json'); /** * Crea...
JavaScript
0
@@ -1551,16 +1551,23 @@ null, 2) + + '%5Cn' ;%0A fs.w @@ -1597,23 +1597,16 @@ nfigPath - + '%5Cn' , json);
30163863bf7434f0546b953bec3a7e01dacae03a
Define inspect method on the switchback instead of (potentially) global context
lib/factory.js
lib/factory.js
/** * Module dependencies */ var util = require('util'); var _ = require('lodash'); var constants = require('./constants'); /** * factory * * @return {Switchback} * * An anonymous function is used as the base for switchbacks so that * they are both dereferenceable AND callable. This allows functions * whic...
JavaScript
0.000002
@@ -1808,20 +1808,23 @@ roperty( -this +_switch , 'inspe
cbd238bba1352194113cde8294d624e00c052fba
add some meta-tags
index.js
index.js
var fs = require('fs'); var path = require('path'); var querystring = require('querystring'); var bookmarkletPath = path.resolve(__dirname, './dist/bookmarklet.js') var indexPath = path.resolve(__dirname, './index.html'); var log = function (text) { return console.log(text); // eslint-disable-line no-console }; log(...
JavaScript
0.000002
@@ -647,24 +647,263 @@ t%3C/title%3E',%0A + '%3Cmeta name=author content=%22Jan Raasch%22%3E',%0A '%3Cmeta name=%22viewport%22 content=%22width=device-width, initial-scale=1.0%22%3E',%0A '%3Cmeta name=description content=%22A bookmarklet for enhancing FastMail notes and emails with Markdown rendering.%22%3E',%0A ...
94a387195f7bd76998a7b0974bec205688e5309e
remove deprecation notice trigger
index.js
index.js
var utils = require('./utils'); var scopedModuleRegex = new RegExp( '@[a-zA-Z0-9][\\w-.]+/[a-zA-Z0-9][\\w-.]+([a-zA-Z0-9./]+)?', 'g' ); function getModuleName(request, includeAbsolutePaths) { var req = request; var delimiter = '/'; if (includeAbsolutePaths) { req = req.replace(/^.*?\/node...
JavaScript
0.000001
@@ -1966,27 +1966,110 @@ on ( -arg1, arg2, arg3) %7B +) %7B%0A var arg1 = arguments%5B0%5D;%0A var arg2 = arguments%5B1%5D;%0A var arg3 = arguments%5B2%5D; %0A
c73031b394a092d16affc3f390ca0b00d77931b6
Support Safari 4.0
index.js
index.js
'use strict'; var proto = Element.prototype; var vendor = proto.matches || proto.matchesSelector || proto.webkitMatchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector; module.exports = match; /** * Match `el` to `selector`. * * @param {Element} el * @param {Str...
JavaScript
0
@@ -461,16 +461,17 @@ nodes = +( el.paren @@ -475,16 +475,34 @@ rentNode + %7C%7C document.body) .querySe
13d33441d263eadba25acbb901b461bcf4409900
remove console
lib/utils.js
lib/utils.js
/** * Created by axetroy on 17-2-14. */ const path = require('path'); const process = require('process'); const Promise = require('bluebird'); const fs = Promise.promisifyAll(require('fs-extra')); const spawn = require('cross-spawn'); const ora = require('ora'); const parseGitConfig = require('parse-git-config'); fu...
JavaScript
0.001093
@@ -776,37 +776,8 @@ ) %7B%0A - console.log(buf + '');%0A
1334e33b73f465803b96d847b61f743cdabf566f
Allow underscores and hyphens in Youtube video ID
lib/utils.js
lib/utils.js
/** * Helper functions */ 'use strict'; module.exports = { parseVideoUrl(url) { function getIdFromUrl(url, re) { let matches = url.match(re); return (matches && matches[1]) || null; } let id; // https://www.youtube.com/watch?v=24X9FpeSASY if (url.indexOf('youtube.com/') > -1) { id = getIdFromUr...
JavaScript
0
@@ -252,16 +252,140 @@ FpeSASY%0A +%09%09// http://stackoverflow.com/questions/5830387/how-to-find-all-youtube-video-ids-in-a-string-using-a-regex/5831191#5831191%0A %09%09if (ur @@ -464,16 +464,18 @@ (%5BA-Z0-9 +_- %5D+)/i);%0A
795267be72de8c9cc55c6089df654b1aa1d98973
Add utils stringToArray and arrayToString
lib/utils.js
lib/utils.js
import { openpgp } from './openpgp'; const localAtob = typeof atob === 'undefined' ? (str) => Buffer.from(str, 'base64').toString('binary') : atob; const localBtoa = typeof btoa === 'undefined' ? (str) => Buffer.from(str, 'binary').toString('base64') : btoa; const ifDefined = (cb) => (input) => { if (input !== un...
JavaScript
0.000126
@@ -849,24 +849,166 @@ (input)));%0A%0A +export const stringToArray = (args) =%3E openpgp.util.encode_utf8(args);%0Aexport const arrayToString = (args) =%3E openpgp.util.decode_utf8(args);%0A export const
9fc861494156a44b20616b710a5e9ffc5b328749
remove comma from list of binary operators
lib/utils.js
lib/utils.js
var path = require('path'); var Vow = require('vow'); // 7.5.2, 7.6.1 Reserved words var ES3_KEYWORDS = { 'break': true, 'case': true, 'catch': true, 'continue': true, 'default': true, 'delete': true, 'do': true, 'else': true, 'false': true, 'finally': true, 'for': true, ...
JavaScript
0.000007
@@ -5549,18 +5549,8 @@ !==' -,%0A%0A ',' %0A%5D;%0A
a6897a2fadf992f57061268e8dfa8125421d8078
Remove unnecessary `utils.publishLogger` function.
lib/utils.js
lib/utils.js
"use strict"; var _ = require("underscore"); exports.publishLogger = function publishLogger(publish, logger, message) { return function() { var args = Array.prototype.slice.call(arguments, 0); logger(message, args); publish.apply(null, args); }; }; function isObject(object) { retu...
JavaScript
0
@@ -44,245 +44,8 @@ );%0A%0A -exports.publishLogger = function publishLogger(publish, logger, message) %7B%0A return function() %7B%0A var args = Array.prototype.slice.call(arguments, 0);%0A logger(message, args);%0A publish.apply(null, args);%0A %7D;%0A%7D;%0A%0A func
6f76132b110b3f268064c387d1668b54f21ffd3c
better? error handling
index.js
index.js
'use strict'; var restify = require('restify'), hh = require('http-https'), URL = require('url'), BoxView = require('box-view-queue'), db = require('./lib/db'); var MAX_REQUEST_DURATION = 100000; // ms var TWO_MINUTES = 120000; // ms var view = BoxView.createClient({ token: process.env.BOX_VIEW_A...
JavaScript
0.999976
@@ -3429,32 +3429,39 @@ var session +Request = view.viewURL( @@ -3524,24 +3524,31 @@ session +Request .on('error', @@ -3628,20 +3628,31 @@ set(url, + %7B err +or: err %7D );%0A @@ -3708,24 +3708,31 @@ session +Request .on('documen @@ -3990,20 +3990,31 @@ set(url, + %7B error: doc + %7D...
4503717b93ecf4df462dc3fe4de6f8e17bfed0d3
remove unnecessary internal object lookup.
lib/utils.js
lib/utils.js
'use strict'; // Load modules // Declare internals var internals = {}; internals.hexTable = function () { var array = new Array(256); for (var i = 0; i < 256; ++i) { array[i] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase(); } return array; }(); exports.arrayToObject = func...
JavaScript
0
@@ -12,80 +12,12 @@ ';%0A%0A -// Load modules%0A%0A%0A// Declare internals%0A%0Avar internals = %7B%7D;%0A%0A%0Ainternals. +var hexT @@ -19,24 +19,25 @@ hexTable = +( function () @@ -34,25 +34,24 @@ nction () %7B%0A -%0A var arra @@ -213,16 +213,17 @@ ray;%0A%7D() +) ;%0A%0A%0Aexpo @@ -2485,26 +2485,16 ...
41559aaddc94d57d91fee857e10f919e9f20b74f
fix for array parser
lib/utils.js
lib/utils.js
'use strict'; var _ = require('lodash'); function UiGridOptions(obj) { _.merge(this, obj) } function MongooseUtils() { } function toUiGridColumnDef(pathes, parent) { var self = this; if (parent && !Array.isArray(parent)) { parent = [parent]; } var mix = _.map(pathes, function (uiGridOptions, path) { ...
JavaScript
0.000002
@@ -1207,32 +1207,42 @@ && self.include( +%7Boptions: pathSchema.optio @@ -1251,16 +1251,17 @@ .type%5B0%5D +%7D )))%7B%0A
51e3c5685ba34f9f7143f7b72985cf61f6b3e3f5
remove length condition
index.js
index.js
function rejected (val) { val = Array.isArray(val) ? val : [val] const length = val.length const acc = [] if (length === 0) { return Promise.resolve(acc) } return Promise.resolve(val.reduce(function (_, promise, index, arr) { return Promise.resolve(promise) .then(() => acc) .catch(err...
JavaScript
0.000007
@@ -339,17 +339,17 @@ (error -= +! == undef @@ -356,59 +356,14 @@ ined - && length === 1) %7B%0A return acc%0A %7D%0A +) %7B%0A @@ -382,16 +382,26 @@ (error)%0A + %7D%0A
c4edf36243745f35d89e4931a5cf882708302032
Set default display name to null instead of empty
lib/utils.js
lib/utils.js
'use strict'; import transform from 'sdp-transform'; import attachMediaStream from 'attachmediastream'; class Identity { constructor(uri, displayName='') { this._uri = uri; this._displayName = displayName; } get uri() { return this._uri; } get displayName() { ret...
JavaScript
0.000001
@@ -154,10 +154,12 @@ ame= -'' +null ) %7B%0A
9524300db9edde79d7c660253c8e4695adae6d1c
Remove useless method in Gson
lib/io/Gson.js
lib/io/Gson.js
"use strict"; var Serializer = require('./Serializer'), inherits = require('inherits'), _ = require('underscore'); var Gson = function (_types) { var types = [], instances = []; this.registerType = function (Model) { if (_.isArray(Model)) types = _.union(types, Model); ...
JavaScript
0.000008
@@ -961,230 +961,8 @@ %7D;%0A%0A - var populateModel = function (Model, properties) %7B%0A var instance = new Model();%0A _.each(properties, function (value, key) %7B%0A instance%5Bkey%5D = value;%0A %7D);%0A return instance;%0A %7D;%0A%0A
df1639d044fc87441408c19cc7fac52d262f190a
update scuttlebutt protocol
index.js
index.js
var Scuttlebutt = require("scuttlebutt") , filter = Scuttlebutt.filter , inherits = require("util").inherits inherits(AppendOnly, Scuttlebutt) var proto = AppendOnly.prototype proto.push = push proto.remove = remove proto.applyUpdate = applyUpdate proto.history = history proto.toJSON = proto.createArray = cr...
JavaScript
0
@@ -596,21 +596,16 @@ lUpdate( -%220%22, %7B push: @@ -662,13 +662,8 @@ ate( -%220%22, %7B re @@ -735,9 +735,9 @@ ate%5B -1 +0 %5D%0A @@ -760,9 +760,9 @@ ate%5B -2 +1 %5D%0A @@ -789,9 +789,9 @@ ate%5B -3 +2 %5D%0A%0A
4cb44e73696dad2947cfd6921b4fc16a3a39276f
remove embarrassing console.logs()
lib/jade2js.js
lib/jade2js.js
var util = require('util'); var jade = require('jade'); var TEMPLATE = 'angular.module(\'%s\', []).run(function($templateCache) {\n' + ' $templateCache.put(\'%s\',\n \'%s\');\n' + '});\n'; var SINGLE_MODULE_TPL = '(function(module) {\n' + 'try {\n' + ' module = angular.module(\'%s\');\n' + '}...
JavaScript
0.000003
@@ -1610,122 +1610,8 @@ ';%0A%0A - console.log(file.path);%0A%0A console.log(util.format(TEMPLATE, htmlPath, htmlPath, escapeContent(content)));%0A%0A
6002516fc96e9c51193a5c69469445a641a4ed14
Add operators
lib/value.js
lib/value.js
'use strict'; /* value.js * Expresses CSS values. */ module.exports = exports = Value; function Value(data, value){ if (!(this instanceof Value)) return new Value(); if (typeof data === 'string' && Array.isArray(value)) { this.type = 'function'; // Data is a function. // Set object data. thi...
JavaScript
0.002353
@@ -407,21 +407,8 @@ ins -non-function Valu @@ -418,16 +418,16 @@ bjects.%0A + if ( @@ -504,25 +504,8 @@ lue) - && x.type !== '' )%0A @@ -926,10 +926,412 @@ ll;%0A %7D%0A - %7D%0A +%0AValue.prototype.operation = function(otherValue, callback)%7B%0A return callback(this, otherValue);%0A%7D;%0A%0AValue....
d23518e86433f5589cd40ace12ac0da380971bec
fix watchDir case -> watchdir
lib/watch.js
lib/watch.js
"use strict"; let card = require("./card"), chalk = require("chalk"), chokidar = require("chokidar"); const OLD_FILE_DELTA = 10 * 60 * 1000; // 10 minutes, by default function getWatchArgsFor(args) { return { ignored: args.ignored ? new RegExp(args.ignored) : /([\/\\]\.|node_modules|\.timecard\.json|\.g...
JavaScript
0.000001
@@ -427,17 +427,17 @@ gs.watch -D +d ir %7C%7C '. @@ -1029,17 +1029,17 @@ gs.watch -D +d ir, %7Bign
1f9c02692a672047bd00586010c071cbf675c56f
fix default values
lib/limiter.js
lib/limiter.js
var utils = require('./utils'); var epsilonDelta = function (configs) { configs = configs || {}; configs.db = configs.db || require('./memoryDB')(); configs.userKey = configs.userKey || 'connection.remoteAddress'; configs.capacity = configs.capacity || 200; configs.expire = configs.expire || 360000; config...
JavaScript
0.000006
@@ -1466,72 +1466,154 @@ ata. -capacity %7C%7C configs.capacity;%0A data.expire = data.expire %7C%7C +hasOwnProperty('capacity') ? %0A data.capacity : configs.capacity;%0A data.expire = data.hasOwnProperty('expire') ? %0A data.expire : con
554ceb2837c9f71f6454b34a75769fa05ecb25d2
Set topic based on routing key.
lib/message.js
lib/message.js
function Message(queue, message, headers, deliveryInfo) { // Crane uses slash ('/') separators rather than period ('.') this.queue = deliveryInfo.queue.replace(/\./g, '/'); this.headers = {}; if (deliveryInfo.contentType) { headers['content-type'] = deliveryInfo.contentType; } this.body = message; this._...
JavaScript
0
@@ -122,21 +122,21 @@ %0A this. -queue +topic = deliv @@ -143,21 +143,26 @@ eryInfo. -queue +routingKey .replace @@ -311,112 +311,8 @@ ge;%0A - %0A this._amqp = %7B queue: queue %7D;%0A%7D%0A%0AMessage.prototype.ack = function() %7B%0A this._amqp.queue.shift();%0A %7D%0A%0A%0A
003382ecd077d7e156416dd2d3931990bd85b3b1
Remove useless statements
lib/mongoat.js
lib/mongoat.js
'use strict'; var Mongoat = require('mongodb'); var Promise = require('bluebird'); var connect = Mongoat.MongoClient.connect; var hooks = { before: {}, after: {} }; Mongoat.MongoClient.connect = function () { var _this = this; return connect.apply(null, arguments).then(function(db) { return db; }); }...
JavaScript
0.001448
@@ -46,43 +46,8 @@ ');%0A -var Promise = require('bluebird');%0A var @@ -125,24 +125,27 @@ ter: %7B%7D%0A%7D;%0A%0A +// Mongoat.Mong @@ -172,26 +172,29 @@ nction () %7B%0A +// + var _this = @@ -202,16 +202,19 @@ his;%0A %0A +// return @@ -261,24 +261,27 @@ ction(db) %7B%0A +// return d @@ -28...
f80e85939cb624dfa3f1a00dbde9000ce14ccff0
Fix issue with checkbox/radio toggles on iOS
src/collapsible.externaltoggle.js
src/collapsible.externaltoggle.js
/* * Collapsible widget extension: external toggle * External click targets can toggle a collapsible from outside the collapsible component * https://github.com/filamentgroup/collapsible * Copyright (c) 2014 Filament Group, Inc. * Licensed under the MIT, GPL licenses. */ ;(function ($, window, document, undefine...
JavaScript
0
@@ -395,16 +395,138 @@ rget';%0A%0A +%09function radioCheckboxChange( isChecked ) %7B%0A%09%09if( isChecked ) %7B%0A%09%09%09this.expand();%0A%09%09%7D else %7B%0A%09%09%09this.collapse();%0A%09%09%7D%0A%09%7D%0A%0A %09// Simp @@ -1081,24 +1081,163 @@ ox'%5D%22 ) ) %7B%0A +%09%09%09%09%09radioCheckboxChange.call( co...
3a9fe3317b51da14d429b745fd198687c4e423c4
add cli argument for sslEnabled
lib/options.js
lib/options.js
// Copyright 2013 The Obvious Corporation. /** * @fileoverview Manages options and flags. */ var AWS = require('aws-sdk') var flags = require('flags') var fs = require('fs') var path = require('path') flags.defineString('options_file', '', 'JSON file containing configuration options.') flags.defineString('access_...
JavaScript
0
@@ -718,16 +718,114 @@ from.') +%0Aflags.defineBoolean('sslEnabled', true, 'Whether SSL should be used when communicating with AWS') %0A%0Aflags. @@ -2610,16 +2610,92 @@ e_host') +%0A if (flags.get('sslEnabled')) options.sslEnabled = flags.get('sslEnabled') %0A%0A // N
4c3d453b2c880b9d7773f9c15184401b78a03092
Modify test for approximate equality
test/extractors/spectralKurtosis.js
test/extractors/spectralKurtosis.js
var chai = require('chai'); var assert = chai.assert; var TestData = require('../TestData'); // Setup var spectralKurtosis = require('../../dist/node/extractors/spectralKurtosis'); describe('spectralKurtosis', function () { it('should return correct Spectral Kurtosis value', function (done) { var en = spectralK...
JavaScript
0
@@ -400,13 +400,21 @@ ert. -equal +approximately (en, @@ -432,16 +432,23 @@ 74115075 +, 1e-15 );%0A%0A
676cd207fd934181e1802df660f3e9fd51099c7f
Fix Depreciation Warnings
actions/create_category_MOD.js
actions/create_category_MOD.js
module.exports = { //--------------------------------------------------------------------- // Action Name // // This is the name of the action displayed in the editor. //--------------------------------------------------------------------- name: "Create Category Channel", //--------------------------------...
JavaScript
0.000001
@@ -5121,16 +5121,61 @@ ache);%0D%0A +%09%09const position = parseInt(data.position);%0D%0A %09%09const @@ -5237,16 +5237,23 @@ el(name, + %7Btype: 'catego @@ -5259,170 +5259,52 @@ ory' -).then(function(channel) %7B%0D%0A%09%09%09const channelData = %7B%7D;%0D%0A%09%09%09if(data.position) %7B%0D%0A%09%09%09%09ch...
34521066f25c13c6a6c6a32173351b7e4b529700
Update snowjs.min.js
snowjs/snowjs.min.js
snowjs/snowjs.min.js
/** * SnowJS * @author Shameem Reza * * Copyright (c) 2015 Shameem Reza, http://shameemreza.com */ (function(){function k(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else a.attachEvent&&a.attachEvent("on"+b,c)}function g(a){if(typeof window.onload!="function")window.onload=a;else{var b=window.onload...
JavaScript
0.000001
@@ -77,16 +77,20 @@ http:// +www. shameemr @@ -2636,8 +2636,9 @@ l%7D%7D%7D)(); +%0A
ea95a128673f45b22002f1c19b6d9cd9ddc74a60
Allow pdf2img to convert page 1 of one page documents.
lib/pdf2img.js
lib/pdf2img.js
"use strict"; var fs = require('fs'); var gm = require('gm'); var path = require('path'); var async = require('async'); var options = { type: 'jpg', size: 1024, density: 600, outputdir: null, outputname: null, page: null }; var Pdf2Img = function() {}; Pdf2Img.prototype.setOptions = function(opts) { o...
JavaScript
0
@@ -2177,16 +2177,17 @@ s.page %3C += pageCou
03408e2d41d93d1e30ac3560cbedb015b3e244b1
Set default output type to jpg.
lib/pdf2img.js
lib/pdf2img.js
"use strict"; var fs = require('fs'); var gm = require('gm'); var path = require('path'); var async = require('async'); var options = { type: 'png', size: 1024, density: 600, outputdir: null, outputname: null }; var Pdf2Img = function () { }; Pdf2Img.prototype.setOptions = function (opts) { options.type...
JavaScript
0
@@ -144,10 +144,10 @@ e: ' +j p -n g',%0A
9bd2db3eca0282382f086c563d35f8a59d85434d
FIX - Incomplete use of htmlSafe() on Cell.style (#586)
addon/components/cells/base.js
addon/components/cells/base.js
import Component from '@ember/component'; import { computed } from '@ember/object'; import layout from 'ember-light-table/templates/components/cells/base'; import { htmlSafe } from '@ember/string'; /** * @module Light Table * @submodule Cell Types */ /** * @module Cell Types * @class Base Cell */ const Cell = ...
JavaScript
0
@@ -980,16 +980,25 @@ Width ? +htmlSafe( %60width: @@ -999,25 +999,16 @@ idth: $%7B -htmlSafe( columnWi @@ -1014,17 +1014,19 @@ idth -) %7D;%60 +) : -'' +null ;%0A
ccbd51c2c77216c2a0d6de66839ef998eda5e214
text color green
src/bg/background.js
src/bg/background.js
// if you checked "fancy-settings" in extensionizr.com, uncomment this lines // var settings = new Store("settings", { // "sample_setting": "This is how you use Store.js to remember values" // }); //example of using a message handler from the inject scripts /*chrome.extension.onMessage.addListener( function(re...
JavaScript
0.998963
@@ -1299,16 +1299,18 @@ lor: %5B0, +21 0,0,150%5D
899aaac4c0ff563a7fa9d67b1623fd83c2a2ce72
make id a CP
addon/components/text-input.js
addon/components/text-input.js
import Ember from 'ember'; const { keys, create } = Object; // jshint ignore:line const { RSVP: {Promise, all, race, resolve, defer} } = Ember; // jshint ignore:line const { inject: {service} } = Ember; // jshint ignore:line const { computed, observer, $, run, on, typeOf, isPresent } = Ember; // jshint ignore:line con...
JavaScript
0.998555
@@ -904,35 +904,66 @@ ;%0A - this.set('id', +%7D,%0A id: Ember.computed(function() %7B%0A return v4() -) ;%0A %7D +) ,%0A
2f502433f6b36536f30865e948df107f12390171
Test load epic.
test/renderer/epics/loading-spec.js
test/renderer/epics/loading-spec.js
import { expect } from 'chai'; import { dummyCommutable, dummy, } from '../dummy-nb'; import { load, newNotebook, notebookLoaded, extractNewKernel, convertRawNotebook, } from '../../../src/notebook/epics/loading'; import Immutable from 'immutable'; const path = require('path'); describe('load', () =>...
JavaScript
0
@@ -177,16 +177,36 @@ tebook,%0A + LOAD,%0A loadEpic,%0A %7D from ' @@ -243,16 +243,69 @@ ading';%0A +import %7B ActionsObservable %7D from 'redux-observable'; %0Aimport @@ -362,16 +362,81 @@ 'path'); +%0Aconst Rx = require('rxjs/Rx');%0Aconst Observable = Rx.Observable; %0A%0Adescri @@ -1726,15 +1726,960 @@ ...
2ce60ba47386a580487de8479c958a5118fca041
Fix Energy Tincture notification and skill button update
items.js
items.js
// ITEMS $(function() { $("#consumableList").on("click", "button", function(e) { var index = this.name; character.inventory[index].effect(); if(character.inventory[index].quantity <= 0) { character.inventory.splice(index, 1); } updateInventory(); }); }); ...
JavaScript
0
@@ -1372,32 +1372,66 @@ his.quantity--;%0A + updateSkillButtons();%0A bott @@ -1475,16 +1475,24 @@ cture I%22 +, %22info%22 );%0A
63a860e85fcb77e156355d74d393485b6d8ef867
Implement setNativeProps
Video.js
Video.js
const React = require('react-native'); const { Component, StyleSheet, requireNativeComponent, PropTypes, NativeModules, } = React; const VideoResizeMode = require('./VideoResizeMode'); const styles = StyleSheet.create({ base: { overflow: 'hidden', }, }); class Video extends Component { construct...
JavaScript
0
@@ -722,16 +722,97 @@ );%0A %7D%0A%0A + setNativeProps(nativeProps) %7B%0A this._root.setNativeProps(nativeProps);%0A %7D%0A%0A render @@ -2120,16 +2120,24 @@ return +(%0A %3CRCTVide @@ -2141,18 +2141,68 @@ ideo - ref=%7Bref%7D +%0A ref=%7B component =%3E this._root = component %7D%0A ...
a2194a6bffa6e59c9e82677d03c8c908796d40fb
mark moon.ToggleText as deprecated
source/ToggleText.js
source/ToggleText.js
(function (enyo, scope) { /** * {@link moon.ToggleText}, which extends {@link moon.Checkbox}, is a control that * looks like a switch with labels for an 'on' state and an 'off' state. When tapped, * it switches its state and fires an [onChange]{@link enyo.Checkbox#event:onChange} * event. * * **Note:** {@link mo...
JavaScript
0.000008
@@ -435,16 +435,97 @@ heckbox%0A +%09* @deprecated Replaced by %7B@link moon.ToggleButton%7D and %7B@link moon.ToggleItem%7D%0A %09* @ui%0A%09
f6ee6a91a3dab23eea4d1a3e60843d50929966c7
Use API instead of prop to show and hide fullscreen player
Video.js
Video.js
import React from 'react-native'; import VideoResizeMode from './VideoResizeMode.js'; const { Component, StyleSheet, requireNativeComponent, PropTypes, NativeModules, View, } = React; const styles = StyleSheet.create({ base: { overflow: 'hidden', }, }); export default class Video extends Componen...
JavaScript
0
@@ -420,26 +420,31 @@ );%0A this. -go +present Fullscreen = @@ -441,24 +441,30 @@ llscreen +Player = this. goFullsc @@ -455,18 +455,23 @@ = this. -go +present Fullscre @@ -472,16 +472,98 @@ llscreen +Player.bind(this);%0A this.dismissFullscreenPlayer = this.dismissFullscreenPlayer .bind(th @@ -1410,10 ...
a4b42c99c97b6bc6c95c1e211206b89c29d36a95
fix backspace, limit input
static/js/barcode.js
static/js/barcode.js
var barcodeBuf = "" var barcodeShown = false function showBarcode(text) { if (!barcodeShown) { document.getElementById('barcode').classList.add('shown') barcodeShown = true } document.getElementById('barcodeContent').textContent = text } function hideBarcode() { if (barcodeShown) { ...
JavaScript
0
@@ -460,16 +460,73 @@ ess( + event + ) %7B + // takes input from either keyboard or barcode scanner %0A @@ -556,16 +556,17 @@ harCode( + event.ch @@ -571,16 +571,17 @@ charCode + )%0A va @@ -614,16 +614,17 @@ entById( + 'crement @@ -624,16 +624,17 @@ crement' + )%0A va @@ -666,32 +666,33 @@ ...
3cbf626c27f8cfd777b99265f5f2f9f356466943
Fix an issue to show code without language option
client/app/scripts/filters.js
client/app/scripts/filters.js
/*global Showdown */ 'use strict'; angular.module('memoFilters', []) .filter('markdown', function ($sce) { // var converter = new Showdown.converter({ extensions: ['github', 'youtube'] }); var marked = window.marked; var hljs = window.hljs; marked.setOptions({ highlight: function (code, lang)...
JavaScript
0.000012
@@ -312,24 +312,46 @@ de, lang) %7B%0A + if (lang) %7B%0A retu @@ -387,16 +387,92 @@ .value;%0A + %7D else %7B%0A return hljs.highlightAuto(code).value;%0A %7D%0A %7D%0A
62a9f2cfda46409e02ab3b3f2bf70b86e2903eac
Update ga.js
js/ga.js
js/ga.js
$("meta[name='og:title']").attr('title', 'viewport'); (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'s...
JavaScript
0.000002
@@ -11,16 +11,16 @@ me=' -og:title +KEYWORDS '%5D%22)
1eb86bf9339d3647534eee4711177841e760da5b
Update js.js
js/js.js
js/js.js
$(document).ready(function(){ $('.content article').each(function(){ var thisA=$(this), articlePos=thisA.offset.top(); $(window).scroll(function(){ var wTop=$(this).scrollTop(); if(wTop>articlePos){ thisA.addClass('active'); } }); }); });
JavaScript
0.000002
@@ -23,16 +23,78 @@ tion()%7B%0A + $(window).scroll(function()%7B%0A var wTop=$(this).scrollTop();%0A $('.co @@ -187,81 +187,8 @@ ();%0A - $(window).scroll(function()%7B%0A var wTop=$(this).scrollTop();%0A @@ -268,17 +268,16 @@ %7D);%0A - %7D);%0A%7D);
bdff0a192ec813d2a3b356e03b3b6f3d1879701f
Fix to column charts.
src/charts.column.js
src/charts.column.js
(function( Raphael , undefined ){ var ColumnChart = function( paper , x , y , chartWidth , chartHeight , values , options ) { Raphael.getColor.reset(); options = options || {}; options.title = options.title || null; options.labels = (options.labels !== false); options.labelFont = options.lab...
JavaScript
0.000007
@@ -3571,26 +3571,36 @@ ue; i%3C=ii; i -++ + += interval ) %7B%0D%0A%09%09 @@ -3954,20 +3954,9 @@ i %25 -(interval*2) +2 ==
04c29b9c5f9ebbec33648bc1189aa5973c04a959
Can convert USD to EUR
spec/account-spec.js
spec/account-spec.js
'use strict' var acc = require("../js/account"); var m = require('../js/money.js'); describe("When account is initialized", function() { var moneyEquality = function(first, second) { if (first instanceof m.Money && second instanceof m.Money) { return first.currency === second.currency && fi...
JavaScript
0.999999
@@ -82,69 +82,8 @@ );%0A%0A -describe(%22When account is initialized%22, function() %7B %0A var @@ -120,28 +120,24 @@ , second) %7B%0A - if (firs @@ -197,20 +197,16 @@ - - return f @@ -284,19 +284,80 @@ - %7D%0A %7D +%7D%0A%7D%0A%0Adescribe(%22When account is initialized t...
e0b070b7c78f650ed770452f30bdb8248b775961
remove unused code
tests/helpers/wait-for-animation.js
tests/helpers/wait-for-animation.js
import { find } from '@ember/test-helpers'; export default function waitForAnimation(selector, animation) { return new Promise((resolve) => { function handler(event) { if (!animation || animation === event.animationName) { resolve(); } } find(selector).addEventListener('animationend'...
JavaScript
0.000017
@@ -91,19 +91,8 @@ ctor -, animation ) %7B%0A @@ -131,133 +131,8 @@ %3E %7B%0A - function handler(event) %7B%0A if (!animation %7C%7C animation === event.animationName) %7B%0A resolve();%0A %7D%0A %7D%0A%0A @@ -183,15 +183,15 @@ d', -handler +resolve , %7B
6b329d9b444ea78d99c57765ad638d1ea0431a61
Fix bug where raw body not returned if unable to be parsed as JSON
lib/request.js
lib/request.js
'use strict'; // MODULES // var http = require( 'http' ); var https = require( 'https' ); var parse = require( 'utils-json-parse' ); var debug = require( 'debug' )( 'github-get:request' ); // REQUEST // /** * FUNCTION: request( opts, clbk ) * Queries an endpoint. * * @param {Object} ops - request options * @param ...
JavaScript
0.000001
@@ -2183,16 +2183,28 @@ End() %7B%0A +%09%09var data;%0A %09%09if ( e @@ -2307,20 +2307,20 @@ y );%0A%0A%09%09 -body +data = parse @@ -2336,20 +2336,20 @@ %0A%09%09if ( -body +data instanc @@ -2460,20 +2460,20 @@ ON: ' + -body +data .message @@ -2524,28 +2524,28 @@ null, res, -body +data );%0A%09%7D //...
af7947177a5146c7a67232daefa678eb4159e91b
update json subcommand
src/commands/json.js
src/commands/json.js
import { read } from "../internal/input"; import { load } from "../parser"; import { writeOutput } from "../internal/util"; async function jsonCmd(input, { output, quiet }) { const source = await read(input); const result = await load(source); if (!result) { throw new Error(`ERROR: unable to parse input: ${...
JavaScript
0.000001
@@ -89,16 +89,46 @@ teOutput +, readAsElement, jsonStringify %7D from @@ -207,22 +207,22 @@ const -source +result = await @@ -230,51 +230,23 @@ read -(input);%0A const result = await load(source +AsElement(input );%0A%0A @@ -356,14 +356,13 @@ ut, -JSON.s +jsonS trin @@ -378,15 +378,28 @@ lt, -null, 2 ...
13425f0f3ea23b222ce16453cfc7245d9436951c
Clarify the status of the `title` prop.
src/common/Screen.js
src/common/Screen.js
/* @flow strict-local */ import { connect } from 'react-redux'; import React, { PureComponent } from 'react'; import { StyleSheet, View, ScrollView } from 'react-native'; import type { ChildrenArray, Context, Dimensions, GlobalState, LocalizableText, Style, } from '../types'; import KeyboardAvoider from '...
JavaScript
0.000008
@@ -1078,17 +1078,16 @@ %0A title -? : Locali @@ -2004,32 +2004,85 @@ of the screen.%0A + * Required unless %60search%60 is true.%0A * @prop %5Bstyle%5D @@ -2499,16 +2499,31 @@ false,%0A + title: '',%0A %7D;%0A%0A
0c647303a266800355b8cabfdd4857c9fa300375
Fix scrolling in ScrollView
src/common/Screen.js
src/common/Screen.js
/* @flow */ import React, { PureComponent } from 'react'; import { StyleSheet, View, ScrollView } from 'react-native'; import type { ChildrenArray, Dimensions, LocalizableText } from '../types'; import connectWithActions from '../connectWithActions'; import { KeyboardAvoider, ZulipStatusBar } from '../common'; import ...
JavaScript
0
@@ -2000,23 +2000,11 @@ pper -,%0A + && cen
5af953cd2e4faaef071c34341aa0d74a6b53cb99
remove empty state values so as not to override defaults
lib/routing.js
lib/routing.js
import Morph from 'morphmorph' let createHistory let history if (typeof window !== 'undefined') { createHistory = require('history').createBrowserHistory history = createHistory() } const mapper = new Morph({ types: { bool: v => { if (v == null) return undefined if (v === 'false') return false ...
JavaScript
0.000001
@@ -1057,16 +1057,34 @@ query =%3E + %7B%0A const state = mapper. @@ -1104,16 +1104,129 @@ query)%0A +%0A Object.keys(state).forEach(key =%3E %7B%0A if (state%5Bkey%5D === '') state%5Bkey%5D = undefined%0A %7D)%0A%0A return state%0A%7D%0A%0A export c
d463562e1a5adc8ba091c36505d45fa2a8ac1173
Fix linter issues (#231)
src/compatibility.js
src/compatibility.js
/** * @file Polyfills installer * @since 0.1.5 */ /*#ifndef(UMD)*/ "use strict"; /*global _gpfObjectForEach*/ // Similar to [].forEach but for objects /*exported _gpfInstallCompatibility*/ // Define and install compatible methods /*#endif*/ /** * @typedef _GpfCompatibilityDescription * @property {Function} on Con...
JavaScript
0
@@ -1537,16 +1537,20 @@ ion.on;%0A + /*#ifnde @@ -1605,16 +1605,20 @@ iption;%0A + /*#endif
d17ab332ec5d117e5849af935c9bfcaea19f828c
fix bug in getRawStack
src/compile-cache.js
src/compile-cache.js
'use strict' var path = require('path') var fs = require('fs-plus') var CSON = null var COMPILERS = { '.js': require('./babel'), '.ts': require('./typescript'), '.coffee': require('./coffee-script') } var cacheStats = {} var cacheDirectory = null exports.setAtomHomeDirectory = function (atomHome) { var cach...
JavaScript
0
@@ -4212,31 +4212,178 @@ ace%0A -var prepareStackTrace = +%0A// Enable Grim to access the raw stack by customizing Error.prepareStackTrace%0Afunction prepareStackTraceWithRawStack (error, frames) %7B%0A error.rawStack = frames%0A return sou @@ -4401,24 +4401,41 @@ reStackTrace +(error, frames)%0A%7D %0A%0A// Pre...
593b94a2f8f53ea9bad701f72d4eb156c8b9dafe
Test for this.customValidators
tests/testAddingCustomValidators.js
tests/testAddingCustomValidators.js
/** * Created by bdunn on 17/11/2014. */ var Validator = require('../lib/modelValidator'); var validator = new Validator(); module.exports.validatorTests = { addBlankError: function(test) { test.expect(1); try { validator.addFieldValidator(); test.ok(false); } cat...
JavaScript
0.000001
@@ -7522,32 +7522,329 @@ orCount === 0);%0A + test.done();%0A %7D,%0A testAnonymousValidator: function(test) %7B%0A test.expect(1);%0A try %7B%0A Validator();%0A test.ok(true, %22Validator initialized%22);%0A %7D catch(e) %7B%0A test.ok(false, %22Validator s...
b813f48a7edfe265e603ff47bce8452b8d182349
Fix a "kibana" leftover in comments
src/config.sample.js
src/config.sample.js
/** @scratch /configuration/config.js/1 * == Configuration * config.js is where you will find the core Grafana configuration. This file contains parameter that * must be set before kibana is run for the first time. */ define(['settings'], function (Settings) { "use strict"; return new Settings({ /** ...
JavaScript
0.000735
@@ -181,11 +181,12 @@ ore -kib +Graf ana
3d4a4df51c24b4eabe725ffe585db358d8125415
Fix code sequence when attaching and detaching event handlers.
src/core/Callback.js
src/core/Callback.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/ * * Copyright (c) 2011, Juerg Lehni & Jonathan Puckey * http://lehni.org/ & http://jonathanpuckey.co...
JavaScript
0
@@ -912,16 +912,40 @@ it now%0A +%09%09%09handlers.push(func);%0A %09%09%09// Se @@ -1057,17 +1057,16 @@ tall && -! handlers @@ -1072,16 +1072,21 @@ s.length + == 1 )%0A%09%09%09%09en @@ -1113,32 +1113,8 @@ s);%0A -%09%09%09handlers.push(func);%0A %09%09%7D%0A @@ -1502,68 +1502,156 @@ %0A%09%09%09 -if (!func...
fb85d3c8a6c308fba8270cf38b841d87f3622373
Edit category button was broken
app/assets/javascripts/discourse/routes/application.js.es6
app/assets/javascripts/discourse/routes/application.js.es6
import showModal from 'discourse/lib/show-modal'; function unlessReadOnly(method) { return function() { if (this.site.get("isReadOnly")) { bootbox.alert(I18n.t("read_only_mode.login_disabled")); } else { this[method](); } }; } const ApplicationRoute = Discourse.Route.extend({ siteTitle:...
JavaScript
0
@@ -3805,14 +3805,8 @@ dal( -self, 'edi
f4e70cab67092065a5dffaa87775d7f42ac3431c
fix flow definition of status message notification component
app/components/notifications/StatusMessagesNotification.js
app/components/notifications/StatusMessagesNotification.js
// @flow import React, { Component } from 'react'; import classnames from 'classnames'; import { observer } from 'mobx-react'; import SvgInline from 'react-svg-inline'; import { defineMessages, intlShape } from 'react-intl'; import spinnerIcon from '../../assets/images/spinner-dark.inline.svg'; import styles from './St...
JavaScript
0
@@ -845,16 +845,90 @@ %7D,%0A%7D);%0A%0A +type Props = %7B%0A isImportActive: boolean,%0A isRestoreActive: boolean,%0A%7D;%0A%0A @observe @@ -998,86 +998,17 @@ nent - %7B%0A%0A p +%3CP rops -: +%3E %7B -%0A isImportActive: boolean,%0A isRestoreActive: boolean,%0A %7D; %0A%0A
542ee0d7984d1737203182b96f566733f88439f2
Enable the `no-var` rule in the ` src/core/cff_font.js` file
src/core/cff_font.js
src/core/cff_font.js
/* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
JavaScript
0
@@ -595,36 +595,8 @@ %0A */ -%0A/* eslint-disable no-var */ %0A%0Aim @@ -775,19 +775,21 @@ l.js%22;%0A%0A -var +const CFFFont @@ -938,19 +938,21 @@ s;%0A%0A -var +const parser @@ -1080,19 +1080,21 @@ ();%0A -var +const compile @@ -1725,19 +1725,21 @@ %7B%0A -var +const cff = t @@ -1753,19 +...
d04f5b54511dfb3f2ea393d0c7e21f5fb8c6ecb2
Make it work for `after(0)` and `after(-1)`
after.js
after.js
module.exports = function _after(count, f) { var c = 0, results = []; return function _callback() { switch (arguments.length) { case 0: results.push(null); break; case 1: results.push(arguments[0]); break; default: results.push(Array.prototype.slice.call(arguments)); break; } if (++c =...
JavaScript
0.00102
@@ -312,18 +312,17 @@ if (++c -== +%3E = count)
0e2115418eb646774da056050c0e746b1d2f15e7
add zoom-to method to mixin-bounding-box
app/javascript/components/map/mixins/mixin-bounding-box.js
app/javascript/components/map/mixins/mixin-bounding-box.js
import { axiosGetWithoutCSRF } from '../helpers/request-helpers' export default { data () { return { initBounds: null } }, methods: { initBoundingBoxAndMap () { if (this.mapOptions.boundsUrl) { axiosGetWithoutCSRF( this.mapOptions.boundsUrl.url, this.getExt...
JavaScript
0
@@ -472,10 +472,8 @@ ding -=5 ) %7B @@ -596,28 +596,288 @@ s = -%5B%0A %5B%0A +this.getBoundsFromExtent(extent, padding)%0A %7D%0A %0A this.initMap()%0A %7D%0A %7D,%0A%0A zoomToExtent (extent, padding) %7B%0A this.map.fitBounds(this.getBoundsFromExtent(extent, padding)...
4bdc65919df9615990b36cebba992f063fbbbdf7
Set $USERPROFILE to the dev bundle directory for `meteor {node,npm}`.
tools/cli/dev-bundle-bin-helpers.js
tools/cli/dev-bundle-bin-helpers.js
var fs = require("fs"); var path = require("path"); var files = require("../fs/mini-files.js"); function getDevBundle() { return require("./dev-bundle.js"); } exports.getDevBundle = getDevBundle; exports.getEnv = function (options) { var devBundle = options && options.devBundle; var devBundlePromise = typeof de...
JavaScript
0
@@ -824,24 +824,156 @@ cess.env);%0A%0A + // This allows node-gyp to find Node headers and libraries in%0A // dev_bundle/.node-gyp.%0A env.USERPROFILE = devBundleDir;%0A%0A var PATH
191ab6e86a74ecdc650e0014256f003c747b4832
fix headers class generic docs
src/Headers/index.js
src/Headers/index.js
import { HEADERS_MAP, HEADERS_VALUES_MAP } from './headers' import { get, cloneDeep, filter, includes } from 'lodash' export const headersMap = HEADERS_MAP export const headersValuesMap = HEADERS_VALUES_MAP class Headers { constructor(){ this.headers = {} this.defaults = [] this.headersMap = cloneDeep(...
JavaScript
0
@@ -203,16 +203,681 @@ ES_MAP%0A%0A +/**%0A * Defines some basic methods to compose a headers map for using in fetch API.%0A * Provide simple HTTP request headers keys map and OAUTH specific methods.%0A *%0A *%0A * @example%0A *%0A * import fetch from 'nuclearest-js/fetch'%0A * import Headers, %7BheadersMap%7D from 'n...
b65c4d68e1896b1f78d08e79e397327408e50067
use static value for lang until sensebox/openSenseMap#106 isn't merged
mails.js
mails.js
'use strict'; let cfg = require('./config'); module.exports = { sendWelcomeMail () { return Promise.resolve({'msg': 'no mailer configured'}); } }; if (cfg.mailer_url && cfg.mailer_url.trim() !== '') { let fs = require('fs'), request = require('request-promise'); let requestMailer = (payload) => { ...
JavaScript
0
@@ -783,24 +783,27 @@ ',%0A + // lang: user. @@ -812,16 +812,38 @@ nguage,%0A + lang: 'de',%0A
4428a882c4dbdd0504424e1bddc56d81b858c69f
Add semicolons and so on referring Code Climate.
markr.js
markr.js
(function(){ var factory = function () { /* * markr * * var titleCase = function(t){return t.charAt(0).toUpperCase() + t.slice(1)} * * var creep = markr() * .match(/^creep .*?$/, tag('h1')) * .word('creep', 'weido', tag('em')) * .word('radiohead', titleCase) * * creep('Creep by radio...
JavaScript
0.000001
@@ -1378,17 +1378,18 @@ %09%7D, '')) +; %0A - %09%09%09%7D,%0A%09%09 @@ -1956,16 +1956,17 @@ start)) +; %0A%09%09%09%09%09%09e @@ -3573,16 +3573,17 @@ ') + ')' +; %0A%09%09%09add( @@ -4375,16 +4375,17 @@ app;%0A%09%09%7D +; %0A%09%09app.e @@ -4843,18 +4843,19 @@ rn app;%0A - %09%7D +; %0A%09if (ty
79f35ed25bd88efda56b4c58f1cfdfb38ed9ae87
add fromNullable
maybe.js
maybe.js
const daggy = require('daggy') const {liftF} = require('./free') const Maybe = daggy.taggedSum({ Just_: ['x'], Nothing_: [] }) const {Just_, Nothing_} = Maybe const Just = x => liftF(Just_(x)) const Nothing = liftF(Nothing_) Maybe.of = Just Maybe.prototype.fold = function(f, g) { return this.cata({ Just_: f, Noth...
JavaScript
0.000001
@@ -238,16 +238,78 @@ = Just%0A%0A +Maybe.fromNullable = x =%3E x == undefined ? Nothing : Just(x)%0A%0A Maybe.pr
bcb8c03accafd8864fa541e94530e6fb099ca37a
Test quenya against Tengwar Annatar (#39)
proof.js
proof.js
// Compiles to public/proof.js let Alphabet = require("./alphabet"); let TengwarParmaite = require("./tengwar-parmaite"); let TengwarAnnatar = require("./tengwar-annatar"); var fonts = { parmaite: TengwarParmaite, annatar: TengwarAnnatar, }; let classical = require("./classical"); let beleriand = require("./...
JavaScript
0
@@ -1815,32 +1815,31 @@ ont: Tengwar -Parmaite +Annatar %7D);%0A retu @@ -1913,32 +1913,31 @@ red tengwar -parmaite +annatar %22%3E$%7Bclassica @@ -1966,32 +1966,31 @@ ont: Tengwar -Parmaite +Annatar %7D)%7D%3C/span%3E%0A
9a934e27333e1528dd1828cbc75111a7cfde9c15
removes the need for NONE
queue.js
queue.js
'use strict'; var slice = Array.prototype.slice; function NONE () {} function set(q, val) { var listener, next, ret; if (arguments.length > 1) { q.value = val; } if (q.listeners.length > 0 && q.value !== NONE) { listener = q.listeners.shift(); if (typeof listener === 'function') { ...
JavaScript
0.999719
@@ -48,29 +48,8 @@ e;%0A%0A -function NONE () %7B%7D%0A%0A func @@ -63,24 +63,24 @@ t(q, val) %7B%0A + var list @@ -179,28 +179,8 @@ %3E 0 - && q.value !== NONE ) %7B%0A @@ -569,16 +569,58 @@ teners;%0A + var isSettled = listeners.length %3C 1;%0A list @@ -682,11 +682,26 @@ -q = +return isSett...
f0990a6d7d3f976344073f00da801f0d4fce6ec3
Fix lint errors
client/lecturer/app/engagement.directive.js
client/lecturer/app/engagement.directive.js
(function() { 'use strict'; angular .module('lecturer') .directive('engagementCanvas', engagementCanvas); function engagementCanvas() { var directive = { restrict: 'A', link: link, controller: EngagementCanvasController, controllerAs:...
JavaScript
0.000396
@@ -1010,16 +1010,28 @@ s.pollId + = undefined ;%0A @@ -3625,16 +3625,17 @@ .pollId) +) %7B%0A
655698637691a16290e464f1e5881e59e644f586
fix username query regex
collections/users.es6.js
collections/users.es6.js
Meteor.users.deny({ update(){ return true; } }); Meteor.methods({ updateTypingActivity(room) { check(room, String); var timestamp = new Date(); Meteor.users.update({_id: Meteor.userId()}, { $set: { "status.lastTyping": timestamp, "...
JavaScript
0.99953
@@ -556,16 +556,25 @@ sername: + %7B$regex: usernam @@ -580,16 +580,17 @@ meRegex%7D +%7D );%0A
bc3f032743a5ba14d96aa8da03a9a826b6ad0d10
Make TriggerableConfirm a functional component
client/src/components/TriggerableConfirm.js
client/src/components/TriggerableConfirm.js
import "components/react-confirm-bootstrap.css" import PropTypes from "prop-types" import React, { Component } from "react" import { Button } from "react-bootstrap" import Confirm from "react-confirm-bootstrap" export default class TriggerableConfirm extends Component { static propTypes = { onConfirm: PropTypes....
JavaScript
0
@@ -92,23 +92,8 @@ eact -, %7B Component %7D fro @@ -194,380 +194,38 @@ p%22%0A%0A -export default class TriggerableConfirm extends Component %7B%0A static propTypes = %7B%0A onConfirm: PropTypes.func,%0A title: PropTypes.string,%0A body: PropTypes.string,%0A confirmText: PropTypes.string,%0A cancel...
812f7d8ceaa85163ec0ac91a1e1e689ae9686818
Fix legend for LikertScaleAndPie widget
client/src/components/aggregations/utils.js
client/src/components/aggregations/utils.js
import { Settings } from "api" import _clone from "lodash/clone" import _isEmpty from "lodash/isEmpty" import moment from "moment" export const countPerDateAggregation = (fieldName, fieldConfig, data) => { const values = data.reduce((counter, entity) => { const dateFieldValue = Object.get(entity, fieldName) ...
JavaScript
0
@@ -3357,21 +3357,16 @@ = levels -%0A .map(lev @@ -3385,26 +3385,39 @@ endValue)%0A - +levelsEndValues .sort((a, b) @@ -3583,16 +3583,24 @@ !== null +%0A ? level @@ -3621,14 +3621,24 @@ ter( -x =%3E x +endVal =%3E endVal %3E= @@ -3646,16 +3646,24 @@ alue)%5B0%5D +%0A : null%0A @@ -38...
7236c7bef187549a6a5cdb68a6d7eb439608fc61
Add comment
setup/webpack.mix.js
setup/webpack.mix.js
let mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel applica...
JavaScript
0
@@ -678,24 +678,101 @@ c, output);%0A +// mix.standaloneSass('src', output); %3C-- Faster, but isolated from Webpack.%0A // mix.less(
cb7745c6cf13841a7cfbe4cd6868bdc7a00f2f26
remove unused state initialValue from ReactDOMFiberSelect (#13412)
packages/react-dom/src/client/ReactDOMFiberSelect.js
packages/react-dom/src/client/ReactDOMFiberSelect.js
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // TODO: direct imports like some-package/src/* are bad. Fix me. import {getCurrentFiberOwnerNameInDevOrNull} from 'react-re...
JavaScript
0
@@ -533,60 +533,8 @@ ue'; -%0Aimport type %7BToStringValue%7D from './ToStringValue'; %0A%0Ale @@ -691,42 +691,8 @@ : %7B%0A - initialValue: ?ToStringValue,%0A @@ -4406,121 +4406,30 @@ %0A%0A -const value = props.value;%0A node._wrapperState = %7B%0A initialValue: value != null ? value : props.defaul...
38b7aa8d4454adb5265392b9762b194d0080205e
Use debounce not throttle
src/components/Link/visibility.js
src/components/Link/visibility.js
/* @flow */ import throttle from 'throttle-debounce/throttle'; const DELAY = 200; export const checkRefVisibility = throttle(DELAY, (refProps, callback) => { const bottom = window.innerHeight || document.documentElement.clientHeight; const right = window.innerWidth || document.documentElement.clientWidth; ...
JavaScript
0.000007
@@ -12,23 +12,23 @@ %0Aimport -throttl +debounc e from ' @@ -45,23 +45,23 @@ ebounce/ -throttl +debounc e';%0A%0Acon @@ -112,23 +112,23 @@ ility = -throttl +debounc e(DELAY,