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
518b87bdcbc286d61b267ac785771b54cb6eccf5
Fix coinbase pinned old certificate
src/sources/coinbase.js
src/sources/coinbase.js
const assert = require('assert'); const { Client } = require('coinbase'); const { Account, Transaction } = require('../models'); const { FIAT_CURRENCIES } = require('../helpers'); function callAsync(client, method, ...args) { return new Promise((resolve, reject) => { client[method].call(client, ...args, (err, b...
JavaScript
0
@@ -627,16 +627,34 @@ Secret,%0A + caFile: null,%0A %7D);%0A%0A
7b8f8af9be7b3606a42de12a67cea074a167115b
update drawify
client/drawify.js
client/drawify.js
// Bookmarklet helper to create a canvas to draw on within the next clicked element // - assumes Drawing is already defined function drawify(event) { window.removeEventListener('click', drawify); var canvas = document.createElement('canvas'); canvas.width = window.DRAWING_WIDTH || 600; canvas.height =...
JavaScript
0.000001
@@ -134,16 +134,60 @@ drawify( +socket, our_id) %7B%0A function make_drawing( event) %7B @@ -191,16 +191,20 @@ ) %7B%0A + + window.r @@ -235,19 +235,28 @@ k', +make_ drawi -fy +ng );%0A%0A + @@ -303,24 +303,28 @@ vas');%0A%0A + + canvas.width @@ -355,24 +355,28 @@ %7C%7C 600;%0A ...
97bd51d572c96522f8f89470daa18f4f97ddf94e
Simplify stringToColor;
client/helpers.js
client/helpers.js
/* * HELPERS */ const DEBUG = true; const ASSERTS = true; export function debug() { DEBUG && console.log.apply(console, arguments); }; export function assert(x, wat) { if (!x) { var text = 'Assertion error: ' + (wat?wat:'') + '\n' + new Error().stack; ASSERTS && alert(text); console...
JavaScript
0.000102
@@ -2300,24 +2300,15 @@ -color += ('00' + +let s = ((h @@ -2345,19 +2345,67 @@ (16) -).slice(-2) +;%0A while (s.length %3C 2) s += '0';%0A color += s ;%0A
c223e1945f122ffe1a64e60ea7d0313ae7b2a2b7
make listeners drop on disconnect (they won't work anymore anyway)
lib/ircwrap.js
lib/ircwrap.js
var irc = require('irc') var IRC_METHODS = 'join part say whois action notice on'.split(' ') // userid -> client mapping var clients = {} function getClient(userid, cb) { if (clients.hasOwnProperty(userid)) return cb(null, clients[userid]) makeClient(userid, function(err, client) { if (err) cb(err) c...
JavaScript
0
@@ -75,11 +75,8 @@ tice - on '.sp @@ -812,16 +812,247 @@ %7D%0A %7D)%0A + // when the browser disconnects, its listeners should be removed%0A wrapper.on = function(type, listener) %7B%0A client.on(type, listener)%0A this.conn.on('end', function() %7B%0A client.removeListener(type, listener)%0A %7D)...
f620bf015a2015f75b0787d6327f1af525d97544
Fix ESLint violations in logger
lib/logging.js
lib/logging.js
const fs = require('fs'); const winston = require('winston'); const { createLogger, format, transports } = winston; const logger = createLogger({ format: format.combine( format.timestamp(), format.simple() ), transports: [ new transports.Console({ format: format.combine( format.timestam...
JavaScript
0.000062
@@ -62,17 +62,16 @@ %0Aconst %7B - createLo @@ -94,17 +94,16 @@ ansports - %7D = wins
1da174cf9cccd9dd7e562bbb565592de5f531f43
Add sentinel constant in client request library
client/request.js
client/request.js
var Request = { _img: null, make(url, callback) { console.log('Making request to ' + url); this._img = new Image(); this._img.onerror = callback; this._img.src = url; }, cancel() { this._img.src = ''; } }; var Collection = { _ONE_REQUEST_DEFAULT_TIMEOUT:...
JavaScript
0.000001
@@ -320,16 +320,36 @@ : 5000,%0A + _SENTINEL: '%5E',%0A crea
1d00ac5fb8d8ff5e2fbb7a5b2631ec90311a02ab
Add state value for example
example/App.js
example/App.js
import React, { Component } from 'react' import { StyleSheet, StatusBar, View, Text, ScrollView } from 'react-native' import TextInput from 'react-native-material-textinput' export default class App extends Component { render() { return ( <View style={styles.layout}> <StatusBar backgroundColor="#1a...
JavaScript
0.000002
@@ -219,18 +219,292 @@ %7B%0A -render() %7B +state = %7B%0A productName: '',%0A price: '',%0A multilineText:%0A 'A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers.'%0A %7D%0A%0A render() %7B%0A let %7B productName, ...
4f62fbf159e433104238306263ba5eeff911dcf6
use forEach for load required step modules
lib/manager.js
lib/manager.js
/* jslint node: true, esnext: true */ "use strict"; const fs = require('fs'), path = require('path'), koa = require('koa'), route = require('koa-route'), jwt = require('koa-jwt'), websockify = require('koa-websocket'); exports.defaultKronosPort = 10000; exports.manager = function (manager, options) { re...
JavaScript
0.000001
@@ -399,32 +399,25 @@ %0A %7D%0A%0A -require( +%5B 'kronos-flow @@ -421,148 +421,101 @@ low' -).registerWithManager(manager);%0A require('kronos-http-routing-step').registerWithManager(manager);%0A require('kronos-flow-control-step' +, 'kronos-http-routing-step', 'kronos-flow-control-step'%5D.forEach(na...
c7f8fb297c28c9b0664c7c40f9ea06ad8ffd59da
Set Content-Type header on requests.
lib/request.js
lib/request.js
define(['./errors/bosherror', 'xml', 'ajax', 'events', 'class', 'debug'], function(BOSHError, xml, ajax, Emitter, clazz, debug) { debugrxd = debug('bosh:rx:data'); debugtxd = debug('bosh:tx:data'); function Request(url, body, fn) { Emitter.call(this); this.rid = ...
JavaScript
0
@@ -628,83 +628,8 @@ %0A %0A - // TODO: Set content-type to text/xml; charset=utf-8 on Ajax requests%0A %0A Re @@ -2172,16 +2172,78 @@ _data);%0A + req.setHeader('Content-Type', 'text/xml; charset=utf-8');%0A req.
8d0b0a4ace229d1dec23d9dee2f6210a578c73e4
consolidate conditions
lib/methods.js
lib/methods.js
// Load modules var Boom = require('boom'); var Utils = require('./utils'); var Schema = require('./schema'); // Declare internals var internals = {}; exports = module.exports = internals.Methods = function (pack) { this.pack = pack; this.methods = {}; }; internals.Methods.prototype.add = function (/* ...
JavaScript
0.000005
@@ -2222,32 +2222,59 @@ if (key === null + %7C%7C typeof key !== 'string' ) %7B @@ -2312,153 +2312,8 @@ ''%0A - self.pack.log(%5B'hapi', 'method', 'key', 'error'%5D, %7B name: name, args: args %7D);%0A %7D%0A else if (typeof key !== 'string') %7B%0A
be2d77c624219c798ce942df92150b1cb096c41c
Add support for automatic title fetch in linkified issues (#1059)
source/features/linkify-urls-in-code.js
source/features/linkify-urls-in-code.js
import select from 'select-dom'; import linkifyUrls from 'linkify-urls'; import linkifyIssues from 'linkify-issues'; import {getOwnerAndRepo} from '../libs/page-detect'; import getTextNodes from '../libs/get-text-nodes'; export const linkifiedURLClass = 'rgh-linkified-code'; const { ownerName, repoName } = getOwnerA...
JavaScript
0
@@ -215,16 +215,77 @@ odes';%0A%0A +// Shared class necessary to avoid also shortening the links%0A export c @@ -331,16 +331,17 @@ -code';%0A +%0A const %7B%0A @@ -469,102 +469,8 @@ : '' -,%0A%09attributes: %7B%0A%09%09class: linkifiedURLClass // Necessary to avoid also shortening the links%0A%09%7D %0A%7D;%0A @@...
a368c8eebf04c0841eaee06d423cade54a2cc4e9
Add s3 ui mode to builds
lib/modules.js
lib/modules.js
// Fine Uploader's modules // // shamelessly inspired by: // https://github.com/angular/angular.js/blob/master/angularFiles.js var fineUploaderModules = { // Pre-defined forumlae "fuTraditional": [ "@fuSrcCore", "@fuSrcUi", "@fuSrcTraditional", "@fuSrcModules", "@fuUiModules" ], "fuS3": [ ...
JavaScript
0
@@ -354,32 +354,50 @@ %22@fuSrcS3%22,%0A + %22@fuSrcS3Ui%22,%0A %22@fuSrcModul @@ -650,32 +650,50 @@ %22@fuSrcS3%22,%0A + %22@fuSrcS3Ui%22,%0A %22@fuSrcS3Jqu
c06abbd31c890708b5fdb55aabdf175cc07e7b60
更新用例,在IE6下更新css的操作需要时间等待
test/baidu/event/un.js
test/baidu/event/un.js
module("baidu.event.unload"); test("取消注册unload事件", function() { stop(); ua.importsrc('baidu.event.on', function() { expect(1); var handle_a = function() { ok(true, "check unload"); }; var div = document.body.appendChild(document.createElement('div')); baidu.on(div, "onclick", handle_a); /* 直接...
JavaScript
0
@@ -960,16 +960,27 @@ );%0D%0A%09%09%09%09 +setTimeout( op.finis @@ -980,17 +980,21 @@ p.finish -( +, 100 );%0D%0A%09%09%09%7D
3424f1a08aa19ff75a7a9db421f1d594ad1d2c03
fix duplicate file bug with watcher
lib/watcher.js
lib/watcher.js
var Gaze = require('gaze').Gaze; var fse = require('fs-extra'); var minimatch = require('minimatch'); var path = require('path'); var _ = require('lodash'); function AcetateWatcher (acetate) { this.acetate = acetate; _.bindAll(this); } AcetateWatcher.prototype.start = function(){ this.watcher = new Gaze(this.ac...
JavaScript
0
@@ -1812,24 +1812,89 @@ (filepath)%7B%0A + filepath = filepath.replace(this.acetate.src + path.sep, '');%0A%0A var page = @@ -1928,16 +1928,11 @@ s, %7B -template +src : fi
577736442b563af42595833e75f10cc1790c02ef
Add allowPaymentRequest to iframes
src/tapp/custom-tapp.js
src/tapp/custom-tapp.js
import logger from 'chayns-logger'; import htmlToElement from 'html-to-element'; import { chaynsInfo, setSelectedTapp } from '../chayns-info'; import { resetCallback } from '../json-chayns-call/calls/access-token-status-change'; import FloatingButton from '../ui/floating-button'; import WaitCursor from '../ui/wait-curs...
JavaScript
0
@@ -4512,16 +4512,39 @@ pIframe%22 + allowpaymentrequest=%22%22 %3E%3C/ifram
c49e66e3510be076923739bf07d65c9e174e2a23
Add unit tests for wait parameter
test/check-url.spec.js
test/check-url.spec.js
import 'babel-polyfill'; import { describe, it, before, after } from 'mocha'; import { expect } from 'chai'; import checkURL from '../lib/check-url'; import createTestServer from './server'; describe('Check URL', function testChechkURL() { let server; this.timeout(5000); before('set up test server', ()...
JavaScript
0
@@ -1378,13 +1378,548 @@ %0A %7D); +%0A%0A it('should take more time before returning for non-default wait parameters', (done) =%3E %7B%0A let ran = false;%0A%0A checkURL('http://localhost:9999/notfound', 2000, (err, result) =%3E %7B%0A expect(err).to.not.equal(null);%0A expec...
dfaf562d2214292fe35ddde8bd873e1399c2dc7f
Remove xattr if there is no tag (nv-tags)
lib/nv-tags.js
lib/nv-tags.js
// For a *nix compatible platform (targeted MacOSX) this should register custom logic // to support tags compatible with Notational Velocity (see https://notational.net). // // This also services as a canonical example of how to consume the service API, // to enhance the package with additional file readers, search fie...
JavaScript
0
@@ -2923,118 +2923,85 @@ -// https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback%0A var tags = str.split(' ') +var tags = str.trim().split(' ')%0A if (tags.length && tags%5B0%5D !== '') %7B %0A @@ -3001,24 +3001,26 @@ ) %7B%0A + var plistBuf @@ -3044,16 +3044,18...
a0f1e7fad91d7086e082fe8c11f8e2bd3259b0e1
Add header to the offline command output
lib/offline.js
lib/offline.js
/** * Copyright 2015 Mozilla * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
JavaScript
0.000001
@@ -1055,16 +1055,141 @@ './';%0A%0A + console.log('Offlining ' + chalk.bold(rootDir) + ' to ' + chalk.bold(path.join(rootDir, 'offline-worker.js')) + '%E2%80%A6%5Cn');%0A%0A // E
53102b9b7735172dfc9ec9cead911656b72265f5
Remove 'static resource' from sw-precache logs
lib/offline.js
lib/offline.js
/** * Copyright 2015 Mozilla * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
JavaScript
0.000001
@@ -3543,27 +3543,109 @@ logger: -console.log +function(message) %7B%0A console.log(message.replace('static resource ', ''));%0A %7D ,%0A
5cb568a59038d56629f1306da9ef45c8fe2a1a76
test setChildIndex
test/core/Container.js
test/core/Container.js
'use strict'; describe('PIXI.Container', () => { describe('parent', () => { it('should be present when adding children to Container', () => { const container = new PIXI.Container(); const child = new PIXI.DisplayObject(); expect(container.children.length).to...
JavaScript
0.000001
@@ -5892,24 +5892,822 @@ %7D);%0A %7D); +%0A%0A describe('setChildIndex', () =%3E%0A %7B%0A it('should throw on out-of-bounds', () =%3E%0A %7B%0A const container = new PIXI.Container();%0A const child = new PIXI.DisplayObject();%0A%0A container.addChild(child);%...
d3fee2bfd8465b2265e907bcdd313d28dc759279
fix plugin loading
lib/plugins.js
lib/plugins.js
var symbols = require('symbolsjs'); var async = require('async'); var printit = require('printit'); var logger = printit({prefix: 'Cozy Light'}); var nodeHelpers = require('./helpers/node'); var npmHelpers = require('./helpers/npm'); var configHelpers = require('./config'); var routes = require('./routes'); module.e...
JavaScript
0.000001
@@ -790,22 +790,22 @@ : plugin -Module +Config .name,%0A @@ -2224,33 +2224,16 @@ %7D;%0A%0A -async.eachSeries( Object.k @@ -2257,18 +2257,25 @@ s %7C%7C %7B%7D) -, +.forEach( loadPlug @@ -2276,18 +2276,42 @@ adPlugin -, +);%0A nodeHelpers.invoke( callback
db247eb53cfaf7b4861e6dfdd1541bb2d88e31a1
update test targets for latest Primo [PT #172970658]
test/e2e/e2e.primo2.js
test/e2e/e2e.primo2.js
var minimalUql = require("./e2e.minimal.js"); // test for something basic that should always return results var searchText = 'book'; var urlTest = 'https://search.library.uq.edu.au/primo-explore/search?query=any,contains,' + searchText + '&tab=61uq_all&search_scope=61UQ_All&sortby=rank&vid=61UQ&offset=0'; module.expo...
JavaScript
0
@@ -102,16 +102,124 @@ results%0A +// (this url should match the primo landing url when you search for 'book' from the homepage search wudget)%0A var sear @@ -381,20 +381,8 @@ All& -sortby=rank& vid= @@ -536,17 +536,17 @@ %0A // -c +C ommon uq @@ -565,13 +565,9 @@ // -new p +P rimo @@ -674,16 +674,18 @@ ...
e2e876d3728d790d7060ecd45760e37b29fc9d7f
Change the Mongo index to also use the actual field (thanks Jason!)
lib/profile.js
lib/profile.js
'use strict'; function storage (collection, ctx) { var ObjectID = require('mongodb').ObjectID; function create (obj, fn) { obj.created_at = (new Date( )).toISOString( ); api().insert(obj, function (err, doc) { fn(null, doc); }); } function save (obj, fn) { obj._id = new ObjectID(obj._i...
JavaScript
0
@@ -883,17 +883,17 @@ = %5B' -validfrom +startDate '%5D;%0A
00acac55888ba827d55853eef100cb7c208b2941
Update test
test/invariant.spec.js
test/invariant.spec.js
import {expect} from 'chai' import invariant from '../src/invariant' describe('invariant', () => { it('should throw when `message` argument is undefined', () => { expect(() => {invariant(false)}).to.throw(Error) expect(() => {invariant(true)}).to.throw(Error) }) it('should throw when `condition` argument...
JavaScript
0.000001
@@ -169,32 +169,39 @@ expect(() =%3E %7B +%0A invariant(false) @@ -200,16 +200,21 @@ t(false) +%0A %7D).to.th @@ -234,32 +234,39 @@ expect(() =%3E %7B +%0A invariant(true)%7D @@ -264,16 +264,21 @@ nt(true) +%0A %7D).to.th @@ -367,32 +367,39 @@ expect(() =%3E %7B +%0A invariant(...
cfa079fcba8dbfca02012f12a9d37b20b11d9e9c
use process env variable for port if available
app/server.js
app/server.js
/* AIDA Source Code */ /* Contributors located at: github.com/2nd47/CSC309-A4 */ // main app // server modules var bcrypt = require('bcryptjs'); var express = require('express'); var mongoose = require('mongoose'); var session = require('express-session'); var validator = require('validator'); var qs = require('query...
JavaScript
0
@@ -667,16 +667,36 @@ P_PORT = + process.env.port %7C%7C 3000;%0Ac
15387f0e96b50f76a2b345157fd61a96ac21a4bc
Reword repo name in rollback test for extra clarity
test/rollbacks.test.js
test/rollbacks.test.js
import Microcosm from '../src/microcosm' test('does not rollforward the same actions twice', function () { const repo = new Microcosm({ maxHistory: Infinity }) const send = n => n const a = repo.append(send) const b = repo.append(send) const c = repo.append(send) repo.addDomain('messages', { getIniti...
JavaScript
0
@@ -1769,19 +1769,20 @@ const -top +repo = new M @@ -1858,19 +1858,20 @@ =%3E n%0A%0A -top +repo .addDoma @@ -2540,19 +2540,20 @@ etAll = -top +repo .append( @@ -2574,19 +2574,20 @@ etOne = -top +repo .append( @@ -2611,19 +2611,20 @@ etTwo = -top +repo .append( @@ -2815,11 +2815,12 @@ ect( -top +rep...
a7a1963d93fc7b3a8043ece5b4328571414fdcb9
use callParent instead of Ext.Ajax singleton
src/util/AbstractAPI.js
src/util/AbstractAPI.js
/*jslint browser: true, undef: true*//*global Ext*/ /** * @abstract * An abstract class for singletons that facilitates communication with backend services * * TODO: * - add events for all lifecycle events: beforerequest, request, beforexception, exception, unauthorized * - does the touch version use Ext.Ajax o...
JavaScript
0.000001
@@ -1562,25 +1562,23 @@ urn -Ext.Ajax.reques +me.callParen t( +%5B Ext. @@ -5916,16 +5916,17 @@ options) +%5D );%0A %7D
c7b2619db93c9a356f5b592820eb9d47a457fe48
add getters for callingNumber and calledNumber
lib/request.js
lib/request.js
var Emitter = require('events').EventEmitter ; var sip = require('drachtio-sip') ; var delegate = require('delegates') ; var only = require('only') ; var assert = require('assert') ; var util = require('util') ; var merge = require('merge') ; var debug = require('debug')('drachtio-client') ; module.exports = exports =...
JavaScript
0
@@ -4127,16 +4127,69 @@ 'raw') %0A + .getter('callingNumber')%0A .getter('calledNumber')%0A .gette
f642bfa0e53c44c668f040ddbf9a9603fdbd117e
add transform to request
lib/request.js
lib/request.js
const request = require('request') const cheerio = require('cheerio') const urls = require('./urls') const config = require('./config') exports = module.exports = sendRequest exports.xsrf = get_xsrf /** * Send a request. * * If `data` is specified, a POST request will be sent, * else a GET request. * * @param ...
JavaScript
0
@@ -130,16 +130,109 @@ nfig')%0A%0A +const transforms = %7B%0A html: data =%3E cheerio.load(data),%0A json: data =%3E JSON.parse(data)%0A%7D%0A%0A exports @@ -444,16 +444,55 @@ t%7D data%0A + * @param %7BString%7CFunction%7D transform%0A * @retu @@ -545,24 +545,35 @@ st(url, data +, transform ) %7B%0A if (!...
8a77f071005253e58156232d48615587b2a5536f
Fix tests for Firefox
test/webworker-pool.js
test/webworker-pool.js
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Tests for WebWorkerPool * * * * *...
JavaScript
0.000001
@@ -872,32 +872,34 @@ ker.postMessage( +%7B%7D );%0A %7D;%0A%0A w @@ -916,16 +916,18 @@ Message( +%7B%7D );%0A%7D);%0A%0A @@ -2414,32 +2414,34 @@ er1.postMessage( +%7B%7D );%0A worke @@ -2447,32 +2447,34 @@ er2.postMessage( +%7B%7D );%0A %7D%0A%0A fu @@ -2907,32 +2907,34 @@ er1.postMessage( ...
d3be6a1ac653d34eb49752f155c7bb0c06b77fbf
fix exec async for older nodejs versions
testUtils/execAsync.js
testUtils/execAsync.js
'use strict'; const util = require('util'); const {exec} = require('child_process'); module.exports = util.promisify(exec);
JavaScript
0
@@ -14,20 +14,20 @@ %0A%0Aconst -util +exec = requi @@ -34,22 +34,36 @@ re(' -util') +child_process').exec ;%0Aconst %7Bexe @@ -62,14 +62,12 @@ nst -%7Bexec%7D +pify = r @@ -78,61 +78,231 @@ re(' -child_process');%0A%0Amodule.exports = util.promisify(exec) +pify');%0A%0Aconst execAsync = pify(exec, %7Bmult...
6585074f11539f4f105edda6c689c49923b11cb6
fix assert for name in route.create method
lib/routing.js
lib/routing.js
import reduce from 'lodash/reduce'; import { throwHiddenError } from './util/log'; import URIjs from 'urijs'; import { assertTrimmedNonEmptyString, assertRegExp } from './util/assert'; const routesByName = {}; let routesNamesInSearchingOrder = []; export const INITIAL_STATE_NAME = ''; export const getRoutesByNa...
JavaScript
0.000002
@@ -644,16 +644,17 @@ -zA-Z0-9 +- .%5D+)$/,
74fe0ec2fb2f8a83ebc4afc9dee4d8685c134f7c
Make velocity a bit more random
src/world/projectile.js
src/world/projectile.js
window.DEBUG_PROJECTILES = true; var Projectile = function(firedBy) { this.position = { x: 0, y: 0 }; this.velocity = { x: 0, y: 0 }; this.size = { w: 11, h: 7 }; this.renderSize = { w: 6, h: 4 }; this.firedBy = firedBy; this.lifetime = 30; this.txBody = new Image(); this.txBody.src = ...
JavaScript
0.000042
@@ -24,11 +24,12 @@ S = -tru +fals e;%0A%0A @@ -345,16 +345,46 @@ .png';%0A%0A + this.configured = false;%0A%0A this @@ -1104,32 +1104,215 @@ = function() %7B%0A + if (!this.configured) %7B%0A this.velocity.x += Math.random() - 0.5;%0A this.velocity.y += Math.random() - 0.5;%0...
bc28b754dcb442841341f6b20ca6004854315c64
Add a bit code
lib/saphana.js
lib/saphana.js
/*! * Module dependencies */ var saphana = require('hdb'); var SqlConnector = require('loopback-connector').SqlConnector; var async = require('async'); var debug = require('debug')('loopback:connector:saphana');
JavaScript
0.000122
@@ -208,8 +208,131 @@ phana'); +%0A%0A%0Aexports.initialize = function initializeDataSource(dataSource, callback) %7B%0A if (!saphana) %7B%0A return;%0A %7D%0A%0A%7D;
e515367ab2d59334acf3ae48071084353a26cf8e
fix body-parser bug
lib/service.js
lib/service.js
'use strict'; const express = require('express'); const bodyParser = require('body-parser'); const debug = require('debug')('moo:service'); const app = express(); app.use(bodyParser); app.post('/hook/github/push', function (req, res) { console.log(req.body); res.end(); }); const port = process.env.PORT || 8001;...
JavaScript
0.000002
@@ -177,16 +177,23 @@ dyParser +.json() );%0Aapp.p
982e9a58664c7d6879ddd9545f7c8d3c5658d8b6
Use correct property to set browser state representation.
static/global/js/app.js
static/global/js/app.js
App = Em.Application.create({ rootElement : '#content', // Define the main application controller. This is automatically picked up by // the application and initialized. ApplicationController : Em.Controller.extend({ // TODO: Is there a better way of dointg this? currentMenu: functi...
JavaScript
0
@@ -3076,15 +3076,16 @@ -history +location : 'h
8b8d637752c4eeb8d04c2b0cbf9678254470624c
Fix lint issue
lib/targets.js
lib/targets.js
/** * @module gulp-mux/targets */ 'use strict'; var _ = require('lodash'); var path = require('path'); var fs = require('fs'); var chalk = require('chalk'); var gutil = require('gulp-util'); var DEFAULT_TARGET = 'app'; var clientFolder = 'client'; /** * Set the client folder where the available targets live * @...
JavaScript
0.000006
@@ -4184,17 +4184,16 @@ s);%0A%7D;%0A%0A -%0A /**%0A * C
5631e7e62434de7cabf1b6fd22cce60c6e699be6
Remove transitional defensive code in hashchange.js
static/js/hashchange.js
static/js/hashchange.js
var hashchange = (function () { var exports = {}; var expected_hash; var changing_hash = false; // Some browsers zealously URI-decode the contents of // window.location.hash. So we hide our URI-encoding // by replacing % with . (like MediaWiki). exports.encodeHashComponent = function (str) { return encodeURICo...
JavaScript
0
@@ -1800,222 +1800,8 @@ d;%0A%0A - if (operator === undefined) %7B%0A blueslip.error(%22Legacy tuple syntax passed into operators_to_hash.%22);%0A operator = elem%5B0%5D;%0A operand = elem%5B1%5D;%0A %7D%0A%0A
283c333a331a5f55377edbb16290c95f2adcdd78
Fix typo
static/js/place_list.js
static/js/place_list.js
// js for place listing // popup DOM for a particular place. HTML with name, description, etc. function popupForPlace(place) { return "<span id='place-name'>" + place['name'] + "</span><br/>" } // adds a given place to the leaflet map as a marker // TODO: give it an alphabetical or numerical ID function addPlaceTo...
JavaScript
0.999999
@@ -1794,16 +1794,17 @@ ify(itin +) , functi @@ -1870,16 +1870,17 @@ order%22) +; %0A
84aacb89c176ce2631c864c93bb32bcbb774a473
Add google analytics setup code
static/js/thirdparty.js
static/js/thirdparty.js
const LogFit = require('logfit'); const Rollbar = require('rollbar'); const varsnap = require('varsnap'); function setupRollbar() { const rollbarConfig = { accessToken: process.env.ROLLBAR_CLIENT_TOKEN, captureUncaught: true, payload: { environment: process.env.ENV, } }; return Rollbar.init...
JavaScript
0
@@ -710,24 +710,470 @@ N,%0A %7D);%0A%7D%0A%0A +function setupGoogleAnalytics() %7B%0A var script = document.createElement('script');%0A script.onload = function () %7B%0A window.dataLayer = window.dataLayer %7C%7C %5B%5D;%0A function gtag()%7Bwindow.dataLayer.push(arguments);%7D%0A gtag('js', new Date());...
055b13a7a830cd6576002bb7b2bb63c8383d8f06
Update code comments in topic_data.
static/js/topic_data.js
static/js/topic_data.js
const Dict = require('./dict').Dict; const FoldDict = require('./fold_dict').FoldDict; let stream_dict = new Dict(); // stream_id -> array of objects exports.stream_has_topics = function (stream_id) { if (!stream_dict.has(stream_id)) { return false; } const history = stream_dict.get(stream_id); ...
JavaScript
0
@@ -131,24 +131,28 @@ -%3E -array of +topic_history object -s %0A%0Aex @@ -393,32 +393,225 @@ n (stream_id) %7B%0A + /*%0A Each stream has a dictionary of topics.%0A The main getter of this object is%0A get_recent_names, and we just sort on%0A the fly every time we are called.%0A ...
590839b4b009cf5d8ac4921e932ae47120fcb869
Fix errors in lib/updates
lib/updates.js
lib/updates.js
'use strict'; module.exports = {}; const error = require('http-errors'); const friends = require('./store/friends'); const blockList = require('./store/block-list'); const subscriptions = require('./store/subscriptions'); const pushAll = (arr, otherArr) => { Array.prototype.push.apply(arr, otherArr); } const re...
JavaScript
0.000004
@@ -406,22 +406,29 @@ let -filt +blockingUs er +s = null; @@ -821,17 +821,23 @@ -filt +blockingUs er +s = - blo
f2e72f33a948b34f1036c7a13a10555b03e3c086
Fix issue with walking paths instead of watching them. (Thanks to @mbibee and @betaveros.)
lib/watcher.js
lib/watcher.js
var fs = require('fs'); var path = require('path'); var logger = require('./logger'); module.exports = watcher; var dirsToIgnore = /^(?:(?:node_modules|AppData)$|\.)/; function watcher(paths, extensions, callback) { paths.forEach(function(path) { walk(path, true); }); function watch(path_, isParentDir) {...
JavaScript
0
@@ -248,26 +248,27 @@ th) %7B%0A wa -lk +tch (path, true)
20123af50c751120df75454629b47a057a18167e
Use `Symbol.for` to ensure global uniqueness
symbol-is-observable.js
symbol-is-observable.js
'use strict'; module.exports = require('es6-symbol')('isObservable');
JavaScript
0.000002
@@ -46,16 +46,20 @@ symbol') +.for ('isObse
ca96600b11118f530c9e04a2f4304d061ff820c5
fix comments
lib/wolfram.js
lib/wolfram.js
import Promise from 'bluebird'; import nconf from 'nconf'; import R from 'ramda'; import wolframalpha from 'wolfram-alpha'; import sentry from './config/sentry'; function queryWolf(wolf, query) { return new Promise((resolve, reject) => { wolf.query(query, (err, results) => { if (err) return reject(err); ...
JavaScript
0.000001
@@ -397,19 +397,16 @@ ery) %7B%0A - // if (!nc @@ -432,19 +432,16 @@ Y')) %7B%0A - // retur @@ -549,11 +549,8 @@ );%0A - // %7D%0A%0A
71118a0ac9be9964eaa7c758bb3452861e77c219
Tidy `t/coverage/replace.t.js`.
t/coverage/replace.t.js
t/coverage/replace.t.js
#!/usr/bin/env node require('./proof')(1, function (step, Strata, tmp, insert, serialize, deepEqual, equal) { function forward (name) { return function () { return fs[name].apply(fs, arguments) } } var fs = require('fs'), path = require('path'), proxy = {} for (var x in fs) { if (x[0] !...
JavaScript
0
@@ -87,19 +87,8 @@ ize, - deepEqual, equ
56e321c891bd56bd79deea81e7be1794b4c2b308
Remove tests for `_reshape`.
t/paxos/legislator.t.js
t/paxos/legislator.t.js
require('proof')(17, prove) function prove (assert) { var Legislator = require('../../legislator') var signal = require('signal') var Legislator = require('../../legislator'), signal = require('signal') signal.subscribe('.bigeasy.paxos.invoke'.split('.'), function (id, method, vargs) { ...
JavaScript
0
@@ -15,9 +15,9 @@ ')(1 -7 +5 , pr @@ -6485,665 +6485,7 @@ %7D () -%0A%0A ! function () %7B%0A var legislator = new Legislator(0, '1')%0A%0A assert(legislator.reshape.call(%7B%0A collapsed: false,%0A id: '0',%0A government: %7B%0A majority: %5B '0' %5D%...
cb8a4dd5fd582a69ced37ee2ee16fa25e5d6754c
handle notes_type
tasks/hockeyapp_puck.js
tasks/hockeyapp_puck.js
/* * grunt-hockeyapp-puck * https://github.com/dresources/grunt-hockeyapp-puck.git * * Copyright (c) 2015 rtregaskis * Licensed under the MIT license. */ var request = require('request'), fs = require('fs'), path = require('path'); module.exports = function(grunt) { 'use strict'; // Please see th...
JavaScript
0.000001
@@ -5738,16 +5738,33 @@ gelog',%0A +%09%09%09notes_type:1,%0A @@ -6768,17 +6768,34 @@ s_type: -1 +options.notes_type ,%0A%09%09%09tea
5aa22345577bf4403f11868bef022b0e71c2142d
drop sourcemap and unminified options
tasks/partial_bundle.js
tasks/partial_bundle.js
var path = require('path'); var minimist = require('minimist'); var runSeries = require('run-series'); var prependFile = require('prepend-file'); var constants = require('./util/constants'); var common = require('./util/common'); var _bundle = require('./util/browserify_wrapper'); var header = constants.licenseDist +...
JavaScript
0
@@ -1184,126 +1184,8 @@ se); -%0A var sourcemaps = inputBoolean(args.sourcemaps, false);%0A var unminified = inputBoolean(args.unminified, false); %0A%0A @@ -2248,40 +2248,8 @@ ars, -%0A sourcemaps: sourcemaps, %0A%0A @@ -2338,57 +2338,23 @@ js') +, %0A -%7D;%0A%0A if(unminified) %7B%0A ...
ec76bd6028e8e81f713563794852a0850d90e996
Remove legacy minification webpack plugin
tasks/webpack.config.js
tasks/webpack.config.js
const webpack = require('webpack'); const path = require('path'); const config = require('./config'); const mode = require('./lib/mode'); const JS_DEV = path.resolve(config.root.dev, config.js.dev); const JS_DIST = path.resolve(config.root.dist, config.js.dist); const publicPath = config.browserSync.proxy.target ? ...
JavaScript
0
@@ -466,16 +466,69 @@ pment',%0A + optimization: %7B%0A minimize: mode.production%0A %7D,%0A contex @@ -1152,18 +1152,17 @@ %0A/** -%0A * Modif -y +ies web @@ -1187,17 +1187,17 @@ on mode -%0A +. */%0Aif ( @@ -1249,110 +1249,8 @@ sh(%0A - new webpack.optimize.UglifyJsPlugin(%7B%0A compress: %...
ec27f2d3388815fb2ed5b347c0c2ce122b4f8348
add dummy items
demos/crud/app.js
demos/crud/app.js
window.addEventListener('WebComponentsReady', function () { document.body.style.opacity = 1; window.store = document.querySelector('#store'); window.list = document.querySelector('#list'); var flip = document.querySelector('x-flipbox'); var form = document.querySelector('form'); list.addEventListener('cli...
JavaScript
0.000001
@@ -775,12 +775,321 @@ e;%0A %7D); +%0A%0A store.size().then(function (size) %7B%0A if (size %3C 5);%0A for (var i=0; i %3C 100; i++) %7B%0A store.insert(%7B%0A created: (Date.now()+i).toString(),%0A done: false,%0A label: (Math.random() * 1e9%7C0).toString(16)%0A %7D).then(funct...
17f71d827f5e1167a2c4a18b5f09bcdf9f87c08d
Replace [].includes() call for node.js v4 support
test/bad-dns-warning.js
test/bad-dns-warning.js
/* * Copyright (c) 2014, 2015, 2016, 2017, Verisign, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this...
JavaScript
0.000002
@@ -3452,22 +3452,21 @@ s.in -cludes +dexOf (badDns) ;%0A @@ -3461,16 +3461,23 @@ (badDns) + !== -1 ;%0A
ed004aa81887f5d4c1e4228d04730d3aa9eef82b
Add "remove variable" test
test/components.spec.js
test/components.spec.js
'use strict'; var chai = require('chai'); chai.use(require('chai-dom')); var expect = chai.expect; var m = require('mithril'); var AppComponent = require('../app/scripts/components/app'); describe('app UI', function () { beforeEach(function () { m.mount(document.body, AppComponent); }); afterEach(function...
JavaScript
0.000032
@@ -1262,12 +1262,407 @@ %0A %7D);%0A%0A + it('should remove existing variable', function () %7B%0A var variables = document.querySelectorAll('div.variable');%0A expect(variables).to.have.length(2);%0A variables%5B0%5D.querySelector('.control-remove').click();%0A m.redraw.sync();%0A expect(document.qu...
62cabf23b574415088f4e41b72d6d7f1442be7b9
Fix connection-test
test/connection-test.js
test/connection-test.js
var mongoose = require('mongoose'), async = require('async'), elasticsearch = require('elasticsearch'), config = require('./config'), Schema = mongoose.Schema, mongoosastic = require('../lib/mongoosastic'); var DummySchema = new Schema({ text: String }); var Dummy = mongoose.model('Dummy1', DummySchema, 'd...
JavaScript
0
@@ -2383,24 +2383,33 @@ rch(%7B%0A + simple_ query_string @@ -2420,16 +2420,18 @@ + + query: ' @@ -2447,16 +2447,65 @@ -%7D%0A %7D, + %7D%0A %7D,%0A %7B%0A index: '_all'%0A %7D,%0A fun @@ -2524,32 +2524,34 @@ esults) %7B%0A + + if (err) %7B%0A ...
2cd811d8acef001dddc8bd94704eebe2e9488ee3
test year for date object
test/core/utils/file.js
test/core/utils/file.js
import chai from 'chai' import path from 'path' import sinonChai from'sinon-chai' chai.use(sinonChai) import sinon from 'sinon' import mkdirp from 'mkdirp' import fse from 'fs-extra' import { coreUtils, abeExtend, cmsData, config } from '../../../src/cli' config.set({root: path.join(process.cwd(), 'test', 'fix...
JavaScript
0.000439
@@ -1547,16 +1547,15 @@ ult. -toString +getYear ()). @@ -1567,49 +1567,11 @@ ual( -'Wed Dec 07 2016 14:04:18 GMT+0100 (CET)' +116 )%0A
be83a740aadb72914b0b7b202434755592ad23f4
Modify test to allow for multiple change listeners
test/crud_store_test.js
test/crud_store_test.js
'use strict'; var CrudStore = require('../lib/index').Store; var CrudStoreActions = require('../lib/index').Actions; var Record = require('immutable').Record; var Iterable = require('immutable').Iterable; var chai = require('chai'); chai.use(require('dirty-chai')); var expect = chai.expect; var sinon = require('sinon...
JavaScript
0
@@ -1170,15 +1170,25 @@ it(' -binds a +can bind multiple cal @@ -1192,16 +1192,17 @@ callback +s to when @@ -1241,32 +1241,63 @@ %7B%0A var spy +1 = sinon.spy();%0A var spy2 = sinon.spy();%0A @@ -1321,32 +1321,70 @@ angeListener(spy +1);%0A store.addChangeListener(spy2 );%0A actions @@ -...
11505897764ac366eb0388c81344cf693f8ce40a
Fix typo
test/dtsCreator.spec.js
test/dtsCreator.spec.js
'use strict'; var path = require('path'); var assert = require('assert'); var DtsCreator = require('../lib/dtsCreator').DtsCreator; describe('DtsCreator', () => { var creator = new DtsCreator(); describe('#create', () => { it('returns DtsContent instance simple css', done => { creator.create('test/test...
JavaScript
0.999999
@@ -534,17 +534,16 @@ nt insta -t nce from @@ -1990,16 +1990,20 @@ on when +the result l @@ -2010,20 +2010,14 @@ ist -doe +ha s no -t any ite
2fbdcec41efbf91dfb6f21d73459463878788b9a
exclude specific browser versions
test/helper/Supports.js
test/helper/Supports.js
import UserAgentParser from "ua-parser-js"; var parsed = new UserAgentParser().getBrowser(); var name = parsed.name; var version = parseInt(parsed.major); console.log(name, version); function is(browser, above){ above = above || 0; return name.includes(browser) && version >= above; } function isnt(browser, belo...
JavaScript
0.000003
@@ -156,37 +156,8 @@ );%0A%0A -console.log(name, version);%0A%0A func @@ -378,493 +378,199 @@ %0A%7D%0A%0A -export default %7B%0A%09//setValueCurveAtTime +function i +s nt +V er -polates%0A%09INTERPOLATED_VALUE_CURVE : is(%22Chrome%22, 46),%0A%09//waveshaper has correct value at 0%0A%09WAVESHAPER_0_POSITION : is...
570b7183a37713f732b9a575eaae926eb7266569
test - ensure dir deletetion before ncp.copy
test/helpers/pretest.js
test/helpers/pretest.js
// todo: rewrite this file. Relying on git is ok, until testing out on a system without // git.. This pretest script should download the latest targz from master repo and untar // at the appropriate location. var child = require('child_process'), path = require('path'), ncp = require('ncp').ncp; // npm pretest s...
JavaScript
0
@@ -268,16 +268,46 @@ path'),%0A + rimraf = require('rimraf'),%0A ncp = @@ -326,16 +326,16 @@ ').ncp;%0A - %0A// npm @@ -580,13 +580,11 @@ = ' -https +git ://g @@ -1030,16 +1030,55 @@ cmd);%0A%0A + console.log('Git clone / pull ok');%0A%0A // Do @@ -1308,16 +1308,16 @@ levels%0A%0A - // now @@ -1...
b34c1d2eb6cf83a06214c5c3f03b246c3dd41862
Update the fake for Graph resource
test/support/fake-io.js
test/support/fake-io.js
var nock = require('nock'); var fakeIo = exports; exports.createServer = function (options) { return new FakeIo(options); }; var FakeIo = exports.FakeIo = function (options) { this.defaults = options; }; // // Fake server for Key/Value resource // FakeIo.prototype.keyValue = function (options) { var server ...
JavaScript
0
@@ -1912,91 +1912,763 @@ %7B%0A -// write fake request & response%0A console.log('call FakeIo.graph with ' + options) +var server%0A , uri;%0A%0A switch (options.method) %7B%0A case %22GET%22:%0A uri = '/' + %5B%0A this.defaults.api,%0A options.collection,%0A options.key,%0A ...
9baee0180eec00f60a9e68c48a3c3caad34f1346
fix recursion checking
macro/index.js
macro/index.js
'use strict'; var fs = require('fs'), lfmt = require('lfmt'); var saveFile = process.cwd() + '/saved.macros'; var macros = {}; var errMsgs = { incorrectUsage: '`macro`: you did something wrong.', noMacro: 'Can\'t find that!', cantBeEmpty: 'Macro can\'t be empty!', cantBeRecursive: 'Macro can\'t be recursi...
JavaScript
0.000004
@@ -2963,46 +2963,120 @@ -return str.substring(2, str.length - 1 +var firstSpace = str.indexOf(' ');%0A return str.substring(2, firstSpace === -1 ? (str.length - 1) : firstSpace );%0A @@ -3084,35 +3084,17 @@ %7D);%0A +%0A -var re -cursive = false;%0A%0A +turn nes @@ -3219,28 +3219,8 @@ %7D);%0A - ...
d4e616c36fba0a5096a1b48f0fd46fcf63a721ad
Fix test
test/unit/TestSample.js
test/unit/TestSample.js
(function () { 'use strict'; describe('Sample', function () { beforeEach(module('sample-with-tests')); var factory; beforeEach(inject(function ($injector) { factory = $injector.get('Sample'); })); it('is defined', function () { expect(factory)....
JavaScript
0.000004
@@ -680,9 +680,9 @@ ual( -2 +3 );%0A
d1c4a11160a7ca02fc0634478deb41ff43e7d396
fix module name
test/unit/index.spec.js
test/unit/index.spec.js
"use strict"; const request = require("supertest"); const ApiGateway = require("../../src"); const { ServiceBroker } = require("Moleculer"); describe("Test default settings", () => { let broker; let service; let server; beforeEach(() => { broker = new ServiceBroker(); broker.loadService("./test/services/mat...
JavaScript
0.000007
@@ -126,9 +126,9 @@ re(%22 -M +m olec
4c33153279cc090526c5a8bba16e5c87eebe7592
test travis
test/unit/index.test.js
test/unit/index.test.js
import { assert, expect } from 'chai'; const globalRef = typeof window !== 'undefined' ? window : global; const indexPath = '../../src/index'; const timeEventPath = '../../src/timeEvent'; describe("TimeEvent prototype", function() { var timeEvent = require(timeEventPath); var event = new timeEvent(); it("...
JavaScript
0.000002
@@ -7464,20 +7464,21 @@ %7D);%0A %7D);%0A%7D); +%0A
3b074b852a1f8b860fce7ea14934a1b23e0dd2d7
Remove unnecesary dependencies
test/unit/queueState.js
test/unit/queueState.js
var should = require('should'); var async = require('async'); var config = require('./../config.js') var utils = require('./../utils.js'); var agent = require('../../.'); var queueID = 'q1'; var checkState = function(expectedState, cb) { utils.queueState('q1', function(err, response, data) { should.not.exist(...
JavaScript
0.012464
@@ -29,77 +29,8 @@ ');%0A -var async = require('async');%0Avar config = require('./../config.js')%0A var @@ -2726,12 +2726,8 @@ );%0A%0A -%0A%0A%0A%0A%0A %7D); +%0A
726196392b3395f17c2ae8593336aa88eab29b30
Add additional test case for stripping existing hypens, too
tests/cases/url/Slug.js
tests/cases/url/Slug.js
QUnit.test( "Slug.transform() defaults", function (assert) { const Slug = mojave.url.Slug; // test defaults const instance = new Slug(); [ ["abc def", "abc-def"], ["ä-ö-ü-ß", "ae-oe-ue-ss"], ["ääää", "aeaeaeae"], [" ", "...
JavaScript
0
@@ -382,24 +382,84 @@ bc(test)%22%5D,%0A + %5B%22a&-&b%22, %22a-b%22%5D,%0A %5B%22a---b%22, %22a-b%22%5D,%0A %5D%0A
5f307c622f5970f5b028865eebb70b5d76985a41
update cache setting for test model
tests/js/suite/model.js
tests/js/suite/model.js
define(['wq/store', 'wq/model'], function(store, model) { QUnit.module('wq/model'); var ds = store.getStore('model-test'); ds.init({ 'service': '/tests', 'defaults': { 'format': 'json' } }); var items = model({'url': 'items', 'store': ds}); QUnit.test("load data list", function(assert) { var ...
JavaScript
0
@@ -225,16 +225,21 @@ model(%7B +%0A 'url': ' @@ -245,16 +245,20 @@ 'items', +%0A 'store' @@ -261,16 +261,38 @@ ore': ds +,%0A 'cache': 'all',%0A %7D);%0A%0AQUn
9c239c0133b3096879a8a2b2c6fa19972f0fdf4c
correct order for app.js
tests/nullEngine/app.js
tests/nullEngine/app.js
//var LOADERS = require("../../dist/preview release/loaders/babylonjs.loaders"); var BABYLON = require("../../dist/preview release/babylon.max"); global.XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; var engine = new BABYLON.NullEngine(); var scene = new BABYLON.Scene(engine); // //Create a light ...
JavaScript
0.000178
@@ -1,10 +1,74 @@ -// +var BABYLON = require(%22../../dist/preview release/babylon.max%22);%0D%0A var LOAD @@ -143,74 +143,8 @@ );%0D%0A -var BABYLON = require(%22../../dist/preview release/babylon.max%22);%0D%0A glob
c70759e5820df776ad8ff75acfad960f35b432bf
Update webpack rules for test app
tests/webpack.config.js
tests/webpack.config.js
var path = require("path"); var webpack = require("webpack"); var WebpackBuildNotifierPlugin = require("webpack-build-notifier"); var HtmlWebpackPlugin = require("html-webpack-plugin"); const PATHS = { src: path.join(__dirname, './src'), build: path.join(__dirname, './build') }; module.exports = { entry: { ...
JavaScript
0
@@ -455,30 +455,28 @@ dule: %7B%0A -loader +rule s: %5B%0A %7B @@ -511,27 +511,73 @@ -loader: 'ts-loader' +use: %5B%7B%0A loader: 'awesome-typescript-loader'%0A%0A %7D%5D %0A @@ -582,17 +582,16 @@ %7D,%0A -%0A %7B%0A @@ -628,15 +628,11 @@ -loaders +use : %5B%0A @...
ee152c020c2b3cfe4a2a0cc9cafa0386e4c36544
Use nicer syntax instead of Reflect
addon/index.js
addon/index.js
import MirageServer from '@miragejs/server/lib'; export * from '@miragejs/server/lib'; import Inflector from 'ember-inflector'; import { __inflections } from './utils/inflector'; function patchEmberInflector() { __inflections(newInflector => { // Proxy ember-inflector calls to `inflected` Inflector.inflecto...
JavaScript
0
@@ -377,17 +377,22 @@ unction( -_ +target , prop) @@ -449,30 +449,33 @@ urn -window.Reflect.get(... +target%5Bprop%5D.apply(this, argu
15159dbaacfe41f2531dc3a1777d4de4327d44f7
Add TruncateHelper to index.js
addon/index.js
addon/index.js
export { default as AppendHelper } from './helpers/append'; export { default as CamelizeHelper } from './helpers/camelize'; export { default as CapitalizeHelper } from './helpers/capitalize'; export { default as ChunkHelper } from './helpers/chunk'; export { default as ClassifyHelper } from './helpers/classify'; export...
JavaScript
0
@@ -1705,32 +1705,96 @@ toggle-action';%0A +export %7B default as TruncateHelper %7D from './helpers/truncate';%0A export %7B default
1ee72824e119c3d6ca6be4214d71617fe9992edb
Update embedded script for the new API.
scripts/embed.js
scripts/embed.js
"use strict"; Relive.useSingleton = false; window.addEventListener("load", function () { var error, events, bits, station, list, lists = document.querySelector("#lists"); Object.toArray = function (obj) { return Object.keys(obj) .reduce(function (list, key) { ...
JavaScript
0
@@ -1835,35 +1835,32 @@ tionInfo(station -.id , function (info @@ -1853,32 +1853,32 @@ function (info)%0A + @@ -1947,61 +1947,20 @@ s = -Object.toArray(info.streams)%0A +info.streams .sor @@ -1993,34 +1993,26 @@ - %7B%0A +%7B%0A @@ -2057...
bc2e9fbaf43cc2bfee43bd03fe5181c093f4a3e6
Remove extra `exports`
config/index.js
config/index.js
'use strict'; var path = require('path'); var webpack = require('webpack'); var merge = require('./merge'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var pkg = require('../package.json'); var TARGET = process.env.TARGET; var ROOT_PATH = path.resolve(__dirname, '..'); var DEMO_DIR = 'demo'; var config =...
JavaScript
0
@@ -658,27 +658,8 @@ , %7B%0A - exports: %7B%0A @@ -659,36 +659,32 @@ %7B%0A entry: %5B%0A - config.p @@ -699,35 +699,27 @@ oIndex,%0A - %5D,%0A +%5D,%0A resolve: @@ -717,28 +717,24 @@ resolve: %7B%0A - exte @@ -793,27 +793,16 @@ .jpg'%5D,%0A - %7D...
a67c2e15f4d8fff63071e3bd69d23a70f7e38162
fix projectName type
config/index.js
config/index.js
'use strict'; const basicConfig = { 'localDir': { env: 'LOCAL_DIRECTORY', type: 'string', default: 'dist' }, 'projectName': { env: 'PROJECT_NAME', type: 'boolean', default: false }, 'projectHasCustomName': { env: 'PROJECT_HAS_CUSTOM_NAME', type: 'boolean', default: false ...
JavaScript
0
@@ -178,35 +178,34 @@ e: ' -boolean',%0A default: fals +string',%0A optional: tru e%0A
eeb05235ea3d9f06cddc520354bc12894bdc17fa
Fix injected code snippet
scripts/popup.js
scripts/popup.js
/* global chrome parseDuration */ "use strict"; function lastErrorPromise(cb) { return new Promise((resolve, reject) => { return cb(value => chrome.runtime.lastError ? reject(chrome.runtime.lastError) : resolve(value)); }); } function getActiveTab() { return new lastErrorPromise(resolve => ...
JavaScript
0.00001
@@ -3369,16 +3369,17 @@ sword%5D') +) %7B%0A
496c2eccbafc4185eef390f94a70648fe6ddedda
Fix tag lookup autocomplete
sitemedia/js/annotator/tag-lookup.js
sitemedia/js/annotator/tag-lookup.js
/* Integration for binding jQuery autocomplete to tags field from marginalia - For now, leaving it independent of the tags logic in Marginalia since use case may change. - Parses a string of comma separated tags and handles the lookup to an autocomplete - bindTagAutocomplete function takes two arguments: 1. autoco...
JavaScript
0.000001
@@ -2385,10 +2385,26 @@ arch%22);%0A -%7D + %7D);%0A%7D %0A
0d6903ec5547c5f519d402ec2a098229632bff11
测试:属性 class 中的 {{#unless}}
demo/attribute.js
demo/attribute.js
(function attribute() { return var tpl = Mock.heredoc(function() { /* <span title="{{title}}"> 属性 <code>title</code> 在变 </span> */ }) var data = Mock.tpl(tpl, { title: '@TITLE' }) doit(data, tpl) tasks.push( function() { data.title = Random.t...
JavaScript
0
@@ -8,32 +8,38 @@ on attribute +_title () %7B%0A return%0A @@ -18,32 +18,35 @@ te_title() %7B%0A + // return%0A var @@ -368,32 +368,38 @@ on attribute +_class () %7B%0A return%0A @@ -378,32 +378,35 @@ te_class() %7B%0A + // return%0A var @@ -750,24 +750,30 @@ ttribute +_style ...
d012ab4dd268c880ac29231a920e1699fe2dbfcb
Set background color to black for very light transparent tilesets
views/MapClient.bones
views/MapClient.bones
// MapPreview // ---------- // A web map client for displaying tile-based maps. view = Backbone.View.extend({ className: 'MapClient', id: 'map', initialize: function(options) { _.bindAll(this, 'ready', 'record', 'mm', 'mmNav'); }, ready: function() { var wax = this.generateWax(); ...
JavaScript
0
@@ -1150,298 +1150,2051 @@ %7D%0A - %7D,%0A mm: function() %7B%0A this.map.addCallback('zoomed', this.mmNav);%0A this.mmNav();%0A %7D,%0A mmNav: function() %7B%0A if (!$('.zoom').size()) return;%0A $('.zoom.active').removeClass('active');%0A $('.zoom-' + this.map.getZoo...
7deab977a2fc0dc2ba6a83d138b8ab2b1f150830
Set up the canvas for the game
connect-four.js
connect-four.js
(function(){ // see http://benalman.com/news/2010/11/immediately-invoked-function-expression/ })();
JavaScript
0
@@ -8,11 +8,15 @@ on() + %7B%0A -%09 + // s @@ -96,16 +96,347 @@ on/%0A -%09%09%0A%09%0A%09 + var Game = function(canvasId) %7B%0A var canvas = document.getElementById(canvasId);%0A var screen = canvas.getContext('2d');%0A var gameSize = %7B%0A x: canvas.width...
f2fe604461c5573862551297f83de1058c2f1fda
Fix some jslint issues in app/index.js
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var process = require('child_process'); var NordBackboneGenerator = yeoman.generators.Base.extend({ init: function () { this.pkg = require('../package.json'); this.o...
JavaScript
0.000001
@@ -12,36 +12,8 @@ ';%0A%0A -var util = require('util');%0A var @@ -34,21 +34,21 @@ ('path') -;%0Avar +,%0A yeoman @@ -80,51 +80,19 @@ or') -;%0Avar chalk = require('chalk');%0Avar process +,%0A chalk = r @@ -105,19 +105,11 @@ ('ch -ild_process +alk ');%0A @@ -961,22 +961,16 @@ ocated?' - %0A ...
080b7a48e03c44b05922419926454cef555633ab
Update index.
app/index.js
app/index.js
var React = require('react'); var Input = require('./component/input'); var MyComponent = React.createClass({ handleClick: function() { // Explicitly focus the text input using the raw DOM API. this.refs.myTextInput.getDOMNode().focus(); }, render: function() { // The ref attribute adds a reference to...
JavaScript
0
@@ -61,24 +61,137 @@ nt/input');%0A +var pierre = %7Bpierre: %22Pierre Besson%22, metadata: %7Bpierre: %22DO_PRENOM%22%7D%7D;%0Avar Form = require('./component/form');%0A var MyCompon @@ -216,16 +216,16 @@ Class(%7B%0A - handle @@ -513,24 +513,66 @@ %3Cdiv%3E%0A + %3CForm data=%7Bthis.props.data%7D ...
8d499fd024bdbed63fa810cc1f84ef07e69c311f
Update CIF_Setup2.2.js
Javascript/additional/CIF_Setup2.2.js
Javascript/additional/CIF_Setup2.2.js
/* This file gives functions to the CIF setup page. */ var lineupForm = "https://cdn.rawgit.com/ginshmastc/Volleyball-Bookkeeper/master/HTML/Lineups6p1l.html"; function onStart() { Android.test("onstart"); } function lineups() { var saved = '{'; saved += '"teamA":"' + document.getElementByI...
JavaScript
0
@@ -788,49 +788,8 @@ oid. -addStartingData(saved);%0D%0A Android. load @@ -793,16 +793,23 @@ oadForm( +saved, lineupFo
6e92112b76d7307f99d49e2d4319cd181d1dd96e
Remove yeoman greeting
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var AppengineGenerator = module.exports = function AppengineGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.pkg = JSON.parse(this.readFileAsString(path.join(__dir...
JavaScript
0.99901
@@ -251,16 +251,35 @@ ments);%0A + this.args = args; %0A this. @@ -514,87 +514,127 @@ %0A%0A -// have Yeoman greet the user.%0A console.log(this.yeoman);%0A%0A var prompts = %5B%7B%0A +this.appId = this.args%5B0%5D %7C%7C undefined;%0A%0A var prompts = %5B%5D;%0A%0A if (this.args%5B0%5D === undefined) %7B%0A...
dcaa79a9b844dcea30eff07d074d4db274a0e100
Fix bevaviour issue for last commit
src/js/script.js
src/js/script.js
$(window).load(function () { $(document).on('change', '.btn-file :file', function () { var input = $(this) var numFiles = input.get(0).files ? input.get(0).files.length : 1 var label = input.val().replace(/\\/g, '/').replace(/.*\//, '') input.trigger('fileselect', [numFiles, label]) }) $(docume...
JavaScript
0
@@ -628,16 +628,65 @@ fault()%0A + if (!$(this).attr('href') === undefined) %7B%0A wind @@ -720,16 +720,22 @@ 'href')%0A + %7D%0A %7D)%0A%0A
516085bea2953b1e479fa6889d4eafe59f22f6a2
Remove apostate calls to empty handler
app/index.js
app/index.js
'use strict'; import React, { Component } from 'react'; import { AppRegistry, NavigatorIOS, BackAndroid, StatusBar, AppState, View } from 'react-native'; // SETUP / UTIL / NAV var AppSettings = require('./AppSettings'), general = require('./util/general'), logger = require('./util/logger'), // VIE...
JavaScript
0.000001
@@ -118,25 +118,14 @@ ar,%0A -%09AppState,%0A %09View%0A + %7D fr @@ -1469,103 +1469,8 @@ %7D,%0A%0A -%09componentWillMount() %7B%0A%09%09AppState.addEventListener('change', this.handleAppStateChange);%0A%09%7D,%0A%0A %09com @@ -2991,24 +2991,24 @@ ck%22;%0A%09%09%09%7D);%0A + %09%09%7D%0A%09%7D,%0A%0A%09co @@ -...
0fa0475ac1425ea3ad6703a65b775dc5dae830d2
Clarify which API key is needed
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var BoomerangGenerator = module.exports = function BoomerangGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.on('end', function () { this.installDependencies({...
JavaScript
0.999931
@@ -909,16 +909,17 @@ r Google ++ API Key
ac2b0ca6aaca1d84e300405e1c97030e1f299e2d
add in toast, lost in conflicts
app/template.js
app/template.js
define(['app', 'angular','text!./toast.html', 'text!./template-header.html', 'text!./template-footer.html','lodash', 'providers/realm'], function(app, ng, toastTemplate, footerHtml,_) { 'use strict'; app.directive('templateHeader', ['$rootScope', '$window', '$browser', '$document', 'authentication', '$q', ...
JavaScript
0.000014
@@ -162,16 +162,27 @@ emplate, +headerHtml, footerH @@ -315,16 +315,42 @@ ', '$q', +'toastr','$templateCache', %0A @@ -450,16 +450,38 @@ on, $q +,toastr,$templateCache ) %7B%0A @@ -648,24 +648,105 @@ location) %7B%0A + $templateCache.put(%22directives/toast/toast.html%22, toastTempla...
f2935c4ec0cd2d3d80377155e9ad00eac6750c34
Fix Safari JS error after uglify
webpack.config.production.js
webpack.config.production.js
const webpack = require('webpack') const merge = require('webpack-merge') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const config = require('./webpack.config') // TODO Tree shaking module.exports = merge(config, { dev...
JavaScript
0.000001
@@ -543,24 +543,235 @@ %0A %7D,%0A + output: %7B%0A // Fix Safari error:%0A // SyntaxError: Invalid regular expression: missing terminating %5D for character class%0A ascii_only: process.env.TARGET === 'safari',%0A %7D,%0A %7D,%0A
f5210cfb8a2f57de3a3ebe8afbbe2d965220f2b3
Make LESS prompt mostly function
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var _ = require('lodash'); _.str = require('underscore.string'); _.mixin(_.str.exports()); var DrupalBootstrapThemeGenerator = module.exports = function DrupalBootstrapThemeGenerator(args, options, config)...
JavaScript
0.000001
@@ -1720,20 +1720,22 @@ hemeUses -LESS +Coffee = true; @@ -1753,29 +1753,42 @@ hemeUses -Coffee = true +LESS = props.themeUsesLESS ;%0A%0A c @@ -1878,80 +1878,10 @@ p() +%0A %7B -%0A%0A this.mkdir('css');%0A this.mkdir('less');%0A this.mkdir('less/base'); %0A t @@ -2111,24 +2111,413 @@ '.info');%0A%0A...
7163f7c0ac92241b5280161ff75eac016c104928
Add code pool setting
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var foldername = path.basename(process.cwd()); var CppSuiteGenerator = module.exports = function CppSuiteGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.on('end',...
JavaScript
0
@@ -734,26 +734,24 @@ name: ' -packageNam +namespac e',%0A @@ -780,22 +780,28 @@ name - of the packag +space you want to us e?', @@ -932,24 +932,262 @@ odule'%0A %7D, +%0A %7B%0A type: 'select',%0A name: 'codePool',%0A message: 'Which code pool do you want to use?',%0A choices: %5B%0A %7Bn...
27ab905d4fb7b9d8b4acaceb5ef9e7d61b75d518
remove container query polyfill.
website/docusaurus.config.js
website/docusaurus.config.js
/** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { title: 'Unleash', tagline: 'The enterprise ready feature toggle service', url: 'https://docs.getunleash.io', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', org...
JavaScript
0
@@ -472,77 +472,8 @@ se,%0A - clientModules: %5B'./client-modules/container-query-polyfill.js'%5D,%0A
685724545426d92f39802dc3e36fca1b08cf9fa8
remove breadcrumbs
website/docusaurus.config.js
website/docusaurus.config.js
/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable no-undef */ // eslint-disable-next-line @typescript-eslint/no-var-requires const typedocConfig = require('./docusaurus.typedoc'); const lightCodeTheme = require('prism-react-renderer/themes/github'); const darkCodeTheme = require('prism-react-ren...
JavaScript
0
@@ -1,24 +1,40 @@ +// @ts-check */%0A /* eslint-disable @types @@ -61,24 +61,24 @@ requires */%0A - /* eslint-di @@ -353,16 +353,335 @@ ark');%0A%0A +/** @type %7Bimport('@docusaurus/preset-classic').Options%7D */%0Aconst presetClassicConfig = %7B%0A docs: %7B%0A sidebarPath: require.resolve('./docusaurus.sideb...
6a8b5457c243bf934533c73a6024a0360ce4922d
Remove codepush from setup
app/setup.js
app/setup.js
import React from 'react'; import { View, StatusBar, Alert, AsyncStorage } from 'react-native'; import { setJSExceptionHandler } from 'react-native-exception-handler'; import RNExitApp from 'react-native-exit-app'; // CODE PUSH import codePush from 'react-native-code-push'; // REDUX import { Provider } from 'react-re...
JavaScript
0.000001
@@ -213,69 +213,8 @@ ';%0A%0A -// CODE PUSH%0Aimport codePush from 'react-native-code-push';%0A%0A // R @@ -218,16 +218,16 @@ / REDUX%0A + import %7B @@ -418,143 +418,8 @@ ';%0A%0A -const codePushOptions = %7B checkFrequency: codePush.CheckFrequency.ON_APP_RESUME, installMode: codePush.InstallMode.ON_NEXT_RESTART ...
fa41444ed59effd9e43045e750ccc05b2a586fe9
Fix file open via CLI
main/launch.js
main/launch.js
import BrowserWindow from 'browser-window'; import path from 'path'; import { emptyNotebook, emptyCodeCell, appendCell } from 'commutable'; import { fromJS } from 'immutable'; import fs from 'fs'; export function launch(notebook, filename) { let win = new BrowserWindow({ width: 800, height: 1000, // fra...
JavaScript
0
@@ -112,16 +112,24 @@ pendCell +, fromJS %7D from @@ -153,18 +153,22 @@ ort -%7B fromJS %7D +* as immutable fro @@ -1103,16 +1103,26 @@ lspec', +immutable. fromJS(k @@ -1407,16 +1407,24 @@ +resolve( launch(f @@ -1457,16 +1457,17 @@ ilename) +) ;%0A
54b2eac8822fe816e348360738102d9cfd8d9ce3
fix 35-symbol-for.js
tests/35-symbol-for.js
tests/35-symbol-for.js
// 35: Symbol.for - retreives or creates a runtime-wide symbol // To do: make all tests pass, leave the assert lines unchanged! var assert = require("assert"); describe('`Symbol.for` for registering Symbols globally', function() { it('creates a new symbol (check via `typeof`)', function() { const symbolType = ...
JavaScript
0.001108
@@ -312,16 +312,23 @@ olType = + typeof Symbol. @@ -346,24 +346,27 @@ name');%0A + // assert.equa @@ -390,16 +390,56 @@ mbol');%0A + assert.equal(symbolType, 'object');%0A %7D);%0A%0A @@ -609,17 +609,16 @@ w symbol -1 ');%0A%0A @@ -803,36 +803,35 @@ mbol');%0A var -g lo -b +c alSymbol = Sy...
5911b3709fb59bd0e58314099b6daeeb590e15f0
Apply prettyfier to webpack.config.js
WebUI/webpack.config.js
WebUI/webpack.config.js
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. const path = require('path'); const process = require('process'); const fs = require('fs'); const HtmlWebpackPlugin = require('html-webpack-plugin'); con...
JavaScript
0
@@ -185,14 +185,14 @@ ire( -' +%22 path -' +%22 );%0Ac @@ -218,17 +218,17 @@ ire( -' +%22 process -' +%22 );%0Ac @@ -249,12 +249,12 @@ ire( -'fs' +%22fs%22 );%0Ac @@ -286,17 +286,17 @@ require( -' +%22 html-web @@ -306,17 +306,17 @@ k-plugin -' +%22 );%0Aconst @@ -337,33 +337,33 @@ lugin = require( -' +%22...
89d7a7d852501bcd834a2b02a6dc989710848a58
Convert tabs to spaces. (need to fix vi on my linux machine.)
lib/OpenLayers/Control/PanZoom.js
lib/OpenLayers/Control/PanZoom.js
// @require: core/util.js // @require: core/alphaImage.js // // default zoom/pan controls // OpenLayers.Control.PanZoom = Class.create(); OpenLayers.Control.PanZoom.prototype = Object.extend( new OpenLayers.Control(), { // Array(...) buttons: null, initialize: function() { OpenLayers.Control.pr...
JavaScript
0.998855
@@ -1204,10 +1204,20 @@ ) %7B%0A -%09%09 + cent @@ -1256,9 +1256,12 @@ -%09 + this
c15ad03e2dbb86a55ea82ac19475f28db4885f99
Update LoginView.js
src/routes/Login/components/LoginView.js
src/routes/Login/components/LoginView.js
import React, { Component, PropTypes } from 'react' import { Input, Icon, Row, Col, Button } from 'antd' import { Link } from 'react-router' import { API } from 'CONSTANT/globals' import handleChange from 'UTIL/handleChange' import 'STYLE/login.scss' export default class LoginView extends Component { constructor(pro...
JavaScript
0.000001
@@ -966,24 +966,270 @@ PATH)%0A %7D%0A + if (this.state.userName.trim() == '') %7B%0A message.error('%E8%AF%B7%E8%BE%93%E5%85%A5%E7%94%A8%E6%88%B7%E5%90%8D%EF%BC%81')%0A %7D else if (this.state.pswd.trim() == '') %7B%0A message.error('%E8%AF%B7%E8%BE%93%E5%85%A5%E5%AF%86%E7%A0%81%EF%BC%81')%0A %7...
a09cdd8aa878263c11d5c36b8bd3e193ef375710
fix async part 1
discordJs/util.js
discordJs/util.js
const FS = require('fs'); module.exports = { // prints id of the user getId: function(message) { return message.channel.send(message.author.id); }, getRandomInt: function(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }, addCoins: function(message) { // 86400 var p...
JavaScript
0.000011
@@ -1635,32 +1635,135 @@ FS.readFile(path +,'utf8', function(err)%7B%0A if (err) %7B%0A return console.log(err);%0A %7D%0A %7D );%0A obj = J @@ -2795,32 +2795,135 @@ FS.readFile(path +,'utf8', function(err)%7B%0A if (err) %7B%0A return console.log(err);%0A ...
c4644a10eaf115b0ddd88acc03e2ae6a516b92b4
Fix annotator regressions.
nodes/text/text_view.js
nodes/text/text_view.js
var DocumentNode = require('../node'); var Document = require("substance-document"); var Annotator = Document.Annotator; // Substance.Text.View // ----------------- // // Manipulation interface shared by all textish types (paragraphs, headings) // This behavior can overriden by the concrete node types var TextView = ...
JavaScript
0.000001
@@ -3766,83 +3766,131 @@ ion( -context, entry) %7B%0A context.appendChild(createAnnotationElement(entry)) +entry, parentContext) %7B%0A var el = createAnnotationElement(entry);%0A parentContext.appendChild(el);%0A return el ;%0A