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
6a7049963f6fbff7167162cb848f72f4afdf42e2
Print both English and Chinese warning
lib/postcss.js
lib/postcss.js
'use strict' let CssSyntaxError = require('./css-syntax-error') let Declaration = require('./declaration') let LazyResult = require('./lazy-result') let Container = require('./container') let Processor = require('./processor') let stringify = require('./stringify') let Warning = require('./warning') let Comment = requ...
JavaScript
0.999998
@@ -831,24 +831,180 @@ warn) %7B%0A + console.warn(%0A 'postcss.plugin was deprecated. Migration guide:%5Cn' +%0A 'https://evilmartians.com/chronicles/postcss-8-plugin-migration'%0A )%0A if -( (process @@ -1017,14 +1017,27 @@ ANG -%7C%7C '') +&& process.env.LANG .sta @@ -1202,186 +1202,8 @@...
6cf22965ad7de0dcdc95b1d2d990da906276c66e
Fix web build
build/web-extension.webpack.config.js
build/web-extension.webpack.config.js
const path = require('path'); const webpack = require('webpack'); module.exports = /** @type WebpackConfig */ { context: path.dirname(__dirname), mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production') target: 'webworker', // extensions...
JavaScript
0.000002
@@ -780,185 +780,8 @@ les%0A - alias: %7B%0A process: %22process/browser%22%0A %7D,%0A fallback: %7B%0A %22path%22: require.resolve('path-browserify'),%0A %22fs%22: false%0A %7D%0A @@ -972,170 +972,8 @@ %7D,%0A - plugins: %5B%0A new webpack...
48e865324c42b99df315a75a6af6c81fdcd149b0
Allow d.{x,y} to be NaN initially.
src/drag.js
src/drag.js
import {dispatch} from "d3-dispatch"; import {event, select, mouse, window} from "d3-selection"; function prevent() { event.preventDefault(); } // TODO touch export default function() { var event = dispatch("dragstart", "drag", "dragend"); function drag(selection) { selection.on("mousedown.drag", started);...
JavaScript
0.999245
@@ -416,22 +416,22 @@ -point0 +origin = mouse @@ -463,17 +463,22 @@ x - -point0%5B0%5D +origin%5B0%5D %7C%7C 0 ,%0A @@ -498,17 +498,22 @@ y - -point0%5B1%5D +origin%5B1%5D %7C%7C 0 ,%0A @@ -863,21 +863,16 @@ var p -oint1 = mouse @@ -891,45 +891,23 @@ -point0 = point1;%0A dragged =...
02565a4766c99393875d7dec25b2493cf2bb7e5b
simplify model()
lib/project.js
lib/project.js
// Copyright 2013 Bobby Powers. All rights reserved. // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. define(['./common', './util', './model'], function(common, util, model) { 'use strict'; var errors = common.errors; var qs = util.qs; var qsa = util....
JavaScript
0.000001
@@ -2017,58 +2017,8 @@ n';%0A - if (this.models.hasOwnProperty(name))%0A @@ -2051,29 +2051,8 @@ e%5D;%0A - return null;%0A
4c3c9ee4cece08977a34593e2b77d668b5f2eaa3
Update ears.js
src/ears.js
src/ears.js
var BotKit = require('botkit'); module.exports = Ears; var Bot = BotKit.slackbot({ debug: false, storage: undefined }); function Ears(token) { this.scopes = [ 'direct_mention', 'direct_message', 'mention' ]; this.token = token; } Ears.prototype.listen = function() { console.log('TOKEN: ' + t...
JavaScript
0.000001
@@ -282,16 +282,18 @@ unction( +db ) %7B%0A co
1eccc80046b6752f993f6d245b002a20159b831e
Add --boring option flag support
lib/compass.js
lib/compass.js
'use strict'; var PLUGIN_NAME = 'gulp-compass', spawn = require('child_process').spawn, gutil = require('gulp-util'), path = require('path'), which = require('which').sync, defaults = { style: 'nested', comments: true, relative: true, css: 'css', sass: 'sass', image: 'images', jav...
JavaScript
0
@@ -2038,24 +2038,75 @@ --time'); %7D%0A + if (opts.boring) %7B options.push('--boring'); %7D%0A if (opts
8dcbd36cd67d43258e92b63ee966769acc666443
Remove log and add body to response
lib/request.js
lib/request.js
/** * To make the requests asynchronously */ var logger = require('./logger'), OAuth = require('oauth-1.0a'), querystring = require('querystring'); /** * Constructor sets the options for the script * @param {object} options: * hostname: the hostname for the request (required) * ssl: true/false (default: fal...
JavaScript
0
@@ -3523,57 +3523,8 @@ %7B%0A%0A - console.log('Request complete: ' + body);%0A%0A @@ -3746,20 +3746,20 @@ error), -null +body , res);%0A
53e2dcf30bd7dd1f0bfd5bdcbaabd1646e0f102e
add additional types stored in Schema.types to schema context
lib/railway.js
lib/railway.js
var fs = require('fs'); var path = require('path'); var Schema = require('./schema').Schema; var existsSync = fs.existsSync || path.existsSync; if (global.railway) { railway.orm._schemas = []; } module.exports = function init(root) { var railway, app, models; if (typeof root !== 'object' || root.constru...
JavaScript
0.000001
@@ -6124,24 +6124,327 @@ me;%0A %7D;%0A%0A + /**%0A * If the Schema has additional types, add them to the context%0A * e.g. MySQL has an additional Point type%0A */%0A if (Schema.types && Object.keys(Schema.types).length) %7B%0A for (var typeName in Schema.types) %7B%0A ctx%5Btyp...
5b4b9f6974094f746940514c3f50f6a4fae74ca2
Add Go(lang) support
lib/parsers.js
lib/parsers.js
'use strict'; var getParser = { '.js': function () { return require('./parsers/defaultParser'); }, '.php': function () { return require('./parsers/defaultParser'); }, '.jade': function () { return require('./parsers/jadeParser'); }, '.styl': function () { ret...
JavaScript
0.000001
@@ -1440,16 +1440,99 @@ );%0A %7D +,%0A '.go': function() %7B%0A return require('./parsers/defaultParser');%0A %7D, %0A%7D;%0A%0Afun
9583da9d5159b31717c16d9b843ce16477d45298
Fix bug with request properties.
lib/request.js
lib/request.js
var _url = require('url'); function Request(url, options) { if (arguments.length == 1 && typeof url == 'object') { // Request is already built for (var prop in url) { this[prop] = url; } } else { this.build(url, options); } } Request.prototype.build = function(url, options) { var parse...
JavaScript
0
@@ -193,16 +193,22 @@ p%5D = url +%5Bprop%5D ;%0A %7D%0A
ecda9815e6251f89a5e051b9a9160bc3606688af
Add {secure, xhr, body, query} to request object
lib/request.js
lib/request.js
var extend = require('util')._extend; var inherits = require('util').inherits; var IncomingMessage = require('http').IncomingMessage; function ExpressVirtualRequest(socket) { IncomingMessage.call(this, socket); }; inherits(ExpressVirtualRequest, IncomingMessage); /** * generate a ExpressVirtualRequest * * @param...
JavaScript
0.999938
@@ -991,17 +991,76 @@ req. -body = '' +secure = false;%0A req.xhr = false;%0A req.body = %7B%7D;%0A req.query = %7B%7D ;%0A%0A
ab58c9cdbd920fcef3337c4edb2964e3b607024b
Update plugins.js
lib/plugins.js
lib/plugins.js
exports.categories = { 'Authentication': { bell: { url: 'https://github.com/hapijs/bell', description: 'Third-party login plugin for hapi with built in Facebook, GitHub, Google, Twitter, Yahoo, Foursquare, and Windows Live support' }, 'hapi-auth-basic': { ...
JavaScript
0.000001
@@ -2295,24 +2295,199 @@ %7D%0A %7D,%0A + 'Hypermedia': %7B%0A halacious: %7B%0A url: 'https://github.com/bleupen/halacious',%0A description: 'A HAL processor for hapi servers'%0A %7D%0A %7D,%0A 'The ext
73733b6aa53ad496650de77f02e88dddf0a99efc
Remove semicolon
lib/context.js
lib/context.js
/** * Helpers for extracting information from the webhook event, which can be * passed to GitHub API calls. */ class Context { constructor(event) { this.event = event; } /** * Return the `owner` and `repo` params for making API requests against a * repository. * * @param {object} [object] - Pa...
JavaScript
0.999999
@@ -1519,17 +1519,16 @@ ';%0A %7D%0A%7D -; %0A%0Amodule
a55638992e4c6cd9fad4f31529eef3c2a7ebeefd
Simplify prepareArgs
lib/context.js
lib/context.js
var Readable = require('readable-stream'); var EventEmitter = require('events').EventEmitter; var state = require('./state'); var Q = require('q'); var commands = require('./command'); //base context var Context = function (stream, debug) { EventEmitter.call(this); this.debug = debug; this.stream = new Read...
JavaScript
0.000006
@@ -3236,19 +3236,23 @@ ommands. -map +forEach (functio @@ -3675,35 +3675,15 @@ ) %7B%0A - var q, argsP = %5B%5D;%0A if ( +! args @@ -3688,19 +3688,20 @@ gsRules -&& +%7C%7C ! count) %7B @@ -3705,117 +3705,151 @@ ) %7B%0A -%0A -args = args.map(function (arg)%7B%0A return arg.toString +return arg...
27f94c3b76a89a284b5df04fcf1757b9f76d55aa
Replace eval() to JSON.parse()
lib/redmine.js
lib/redmine.js
var http = require('http'); var util = require('util'); var url = require('url'); var querystring = require('querystring'); var util = require('util'); /** * Redmine */ function Redmine(config) { this.setApiKey(config.apiKey); this.setHost(config.host); } Redmine.prototype.version = '0.2.0'; Redmine.prototype...
JavaScript
0.999999
@@ -1547,28 +1547,23 @@ a = -eval('(' + body +')' +JSON.parse(body );%0A
b7114b8201caf1136c62a33b4a98622cdb3ecd64
Add accept header in
lib/request.js
lib/request.js
'use strict'; /** * To make the requests asynchronously */ const logger = require('./logger'), querystring = require('querystring'), oAuth = require('oauth-1.0a'), request = require('request'); class Request { constructor(options) { this.options = options || {}; if (!this.options.hostname) { ...
JavaScript
0
@@ -1793,16 +1793,60 @@ 2.0.0',%0A + 'Accept': 'application/json, *.*'%0A
8eb90b6ae6e311e1dc61c9b1a14293b0dbc8377d
Update convert.js
lib/convert.js
lib/convert.js
'use strict'; var cheerio = require('cheerio'); var snakeCase = require('change-case').snakeCase; var flatten = require('annofp').flatten; var is = require('annois'); var unidecode = require('unidecode'); var convertTag = require('./convert_tag'); var stripDiacritics = require('./strip_diacritics'); var toMarkdown = ...
JavaScript
0.000002
@@ -6973,20 +6973,16 @@ %5D($1.$2) -%5Cn%5Cn ') // ad
07e2d0194c7765a194e2faaa229816e3a30dfe53
Support call chain for text insertions.
lib/protein.js
lib/protein.js
/* * Class definition. */ function Protein(topElement, higherLevelInstance) { this._topElement = topElement; this._higherLevelInstance = higherLevelInstance; this._lastInsertedElement = null; } /* * Property accessors. */ Protein.prototype.getTopElement = function() { return this._topElement; }; Protein...
JavaScript
0
@@ -1769,16 +1769,30 @@ nsert);%0A +%09return this;%0A %7D;%0A%0A/*%0A
8ae7d792aa92770d6e06557dfeb9ef4de5013590
Set options.agent = false by default
lib/request.js
lib/request.js
var http = require('http'); var https = require('https'); var extend = require('util')._extend; var parseUrl = require('url').parse; var TIMEOUT = 5000; function request(options, callback) { if (typeof options.url === 'string') { options = extend(parseUrl(options.url), options); } options.agent =...
JavaScript
0.000734
@@ -20,17 +20,16 @@ 'http'); -%0D %0Avar htt @@ -50,17 +50,16 @@ https'); -%0D %0Avar ext @@ -88,17 +88,16 @@ _extend; -%0D %0Avar par @@ -125,19 +125,17 @@ ).parse; -%0D%0A%0D +%0A %0Avar TIM @@ -146,19 +146,17 @@ = 5000; -%0D%0A%0D +%0A %0Afunctio @@ -185,17 +185,16 @@ lback) %7B -%0D %0A if (t @@ -222,...
a54ee9ecdee5ad21c8721dfdad5d43c7568319db
send `type: request`
lib/request.js
lib/request.js
module.exports = request var Promise = require('lie') var internals = module.exports.internals = {} internals.deserialise = require('../utils/deserialise') internals.request = require('../utils/request') internals.serialise = require('../utils/serialise') function request (state, options) { if (!options || !option...
JavaScript
0
@@ -531,15 +531,15 @@ se(' -session +request ', o
2aaeb8f3e48f3a588c344c98793b98112b2c0704
add redirect in docs app.js
docs/dist/js/app.js
docs/dist/js/app.js
'use strict'; angular.module('filters', []) .filter('camelCase', function(){ return function(input) { var words = input.split('-'); return words.map(function(value){ return value.charAt(0).toUpperCase() + value.slice(1); }).join(' '); } }); angular.module('controllers', []) .co...
JavaScript
0.000001
@@ -3741,16 +3741,59 @@ ples%5B0%5D) +%0A .otherwise('/main/' + pages.main%5B0%5D) ;%0A%0A a
6255f8c88f4aa5e4b727007b53b457da98b5611b
Add additional extension ignore
lib/crawler.js
lib/crawler.js
'use strict'; var ___ = require('lodash'), SimpleCrawler = require('simplecrawler'), Q = require('q'), sitemap = require('./sitemap'), utils = require('./utils'); var sitemapExclusions = ['gif', 'jpg', 'jpeg', 'png', 'ico', 'bmp', 'ogg', 'webp', 'mp4', 'webm', 'mp3', 'ttf', 'woff', 'json', 'rss'...
JavaScript
0.000001
@@ -335,16 +335,23 @@ , 'zip', + 'eot', %0A 'ra
e37c0b650de804ec594e8eb7eebb19c46334dc1c
tidy danger bot messages (#2013)
dangerfile.js
dangerfile.js
// Have you identified a contributing guideline that should be included here? // Please open a pull request! // // To test changes to this file, pick a PR to test against, then run // `./node_modules/.bin/danger pr pr-url` // Note that the line numbers in the runtime errors are incorrecr. const { danger, fail, message...
JavaScript
0
@@ -2213,32 +2213,36 @@ service tests. +%3Cbr%3E ',%0A %22That's o @@ -2360,16 +2360,25 @@ %22,%0A %22 +%5BHow-to%5D( https:// @@ -2442,16 +2442,17 @@ d#readme +) %22,%0A %5D.j @@ -2588,24 +2588,28 @@ ying tests. +%3Cbr%3E ',%0A 'Gene @@ -2835,16 +2835,20 @@ tests. +%3Cbr%3E ',%0A %22 @@ -29...
08a6c501190ff9b6ab8a30ec51fe2917a507c7e2
Simplify request methods
lib/request.js
lib/request.js
'use strict'; const { URL } = require('url'); const got = require('got'); class Request { constructor (options = {}) { this.baseUrl = 'https://api.glesys.com'; this.userAgent = 'https://github.com/jwilsson/glesys-api'; this.apiKey = options.apiKey; this.apiUser = options.apiUser; ...
JavaScript
0.000002
@@ -524,61 +524,8 @@ %7D;%0A%0A - const fullUrl = new URL(uri, this.baseUrl);%0A%0A @@ -540,39 +540,35 @@ rn this.request( -fullUrl +uri , options);%0A @@ -687,61 +687,8 @@ %7D;%0A%0A - const fullUrl = new URL(uri, this.baseUrl);%0A%0A @@ -711,23 +711,19 @@ request( -fullUrl +uri , o...
9eb95497fba02ad975b9a699c99776f9a306e37a
refactor put request
lib/request.js
lib/request.js
/** * @name Request * @description This module handles the HTTP requests to Pagar.me's API. ' * It exports GET, PUT, POST, DELETE functions based upon * the `fetch` module. * * @module request * @private */ import Promise from 'bluebird' import { merge, mergeAll, length, keys...
JavaScript
0.000001
@@ -1969,15 +1969,8 @@ EAD' -, 'PUT' %5D.in
56afc71f5165cbbb4274c81ea45beca859598534
Improve jsdoc
lib/resolve.js
lib/resolve.js
/** @module dotpath-resolve */ var selectorObj = require('./selector.js'), resolveFn = selectorObj.resolve; /** * Resolve dot-path selector starting with optional startSelector * @param {Object|Array} obj * @param {String} selector * @param {String} [startSelector] absolute selector for start position * @ret...
JavaScript
0.000003
@@ -169,32 +169,57 @@ l startSelector%0A + * @see selector.resolve%0A * @param %7BObjec
51b21ea109ecc579562c1c236cd2feaa9bf6f7a8
Fix for Windows
lib/resolve.js
lib/resolve.js
'use strict'; const path = require('path'), config = require('./config'), defaultSourceDir = './client', sourceDir = path.resolve(process.cwd(), config.sourceDir || defaultSourceDir); module.exports.sourceDir = sourceDir; module.exports.block = (name) => path.join(sourceDir, 'blocks', name);
JavaScript
0
@@ -221,17 +221,16 @@ rceDir;%0A -%0A module.e @@ -290,10 +290,30 @@ ', name) +.replace(/%5C%5C/g, '/') ;%0A
38df59a144ee883e0a212c16251d7e988520cbcd
Enable onAny
src/Observable.js
src/Observable.js
'use strict' import {VAL, ERR, END, ANY} from './Constants' import * as SideEffects from './SideEffects' /** * An Observable receives and emits events, optionally with transformations. */ export default class Observable { constructor(transformers, producers) { let tforms = transformers || {} this.val = t...
JavaScript
0.000002
@@ -537,16 +537,27 @@ , %5BEND%5D: + %5B%5D, %5BANY%5D: %5B%5D %7D%0A
006a2411056ede70ac25bdbca6a3ef7b7e339c3d
tweak template
lib/service.js
lib/service.js
'use strict'; const Express = require('express'); const Github = require('octop'); const Semver = require('semver'); const Promisify = require('es6-promisify'); const BodyParser = require('body-parser'); const Moo = require('./moo'); const comp = require('./comp').comp; const debug = require('debug')('moo:service');...
JavaScript
0.000001
@@ -1651,17 +1651,17 @@ text = %60 -c +C urrent b @@ -1976,14 +1976,9 @@ = %60 -your b +B ackw
2f295a55793370f299487c9a5cdf18d70c059321
Fix mosaic
src/Plugins/mosaic.js
src/Plugins/mosaic.js
// Circle plugin (based on Arc) $.jController.registerPlugin({ name : "mosaic", construct : function(params) { var defaults = { r : 0, colors : ["rgb(0,0,255)","rgb(0,255,0)","rgb(255,0,0)"] } return $.extend({}, defaults, params); }, render : function(ctx, self) { var time = new Date().getT...
JavaScript
0.000002
@@ -469,24 +469,31 @@ om() * self. +params. colors.lengt @@ -521,16 +521,23 @@ = self. +params. colors%5Br @@ -588,16 +588,23 @@ y, self. +params. r, 0, Ma
525de020480022c0a9350a471344f453fd0e198c
Fix yuidoc errors
addon/services/current-user.js
addon/services/current-user.js
import Ember from 'ember'; /** * @module ember-osf * @submodule services */ /** * Access information about the currently logged in user * * @class current-user * @extends Ember.Service */ export default Ember.Service.extend({ store: Ember.inject.service(), session: Ember.inject.service(), /** ...
JavaScript
0.000082
@@ -2845,32 +2845,56 @@ t-jquery%0A *%0A + * @method hashCode%0A * @param %7B @@ -2892,18 +2892,22 @@ @param -%7B s +tr %7BS tring%7D%0A @@ -2921,17 +2921,17 @@ return %7B -s +S tring%7D%0A
6b157b3562e18273f9404db2b74fe6deee10374b
Make JSON output work
lib/scraper.js
lib/scraper.js
#!/usr/bin/env node var fs = require('fs'); var path = require('path'); var funkit = require('funkit'); var Zombie = require('zombie'); var urlPrefix = 'http://www.jyvaskylanseutu.fi/tapahtumat/'; main(); function main() { var url = urlPrefix + 'main.php'; scrape(url, funkit.partial(writeJSON, 'data')); } ...
JavaScript
0.00675
@@ -379,27 +379,8 @@ e(); -%0A var data = %5B%5D; %0A%0A @@ -796,28 +796,17 @@ kit. -forEach(eventLinks, +parallel( func @@ -803,32 +803,38 @@ allel(function(k +, done ) %7B%0A @@ -1634,20 +1634,129 @@ d -ata.push(d); +one(null, d);%0A %7D);%0A %7D, eventLin...
e29fbad0aceeb51a3e528fa8f2898522df4e0a0f
fix lint
src/core/vdom/create-functional-component.js
src/core/vdom/create-functional-component.js
/* @flow */ import VNode, { cloneVNode } from './vnode' import { createElement } from './create-element' import { resolveInject } from '../instance/inject' import { normalizeChildren } from '../vdom/helpers/normalize-children' import { resolveSlots } from '../instance/render-helpers/resolve-slots' import { installRend...
JavaScript
0.001108
@@ -3877,17 +3877,16 @@ ) %7B%0A -; (clone.d
d04c446e88a75da04338e14c959b1b4e3efce78d
enable arrow key navigation in typeahead for Firefox
vendor/assets/javascripts/bootstrap-typeahead.js
vendor/assets/javascripts/bootstrap-typeahead.js
/* ============================================================= * bootstrap-typeahead.js v2.0.4 * http://twitter.github.com/bootstrap/javascript.html#typeahead * ============================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "L...
JavaScript
0
@@ -4588,16 +4588,37 @@ ser.msie + %7C%7C $.browser.mozilla ) %7B%0A
c8e943ce5d35cbcdd5cbfadd9555abefd912b9a2
fix typo in resource-and-context-contextmodule
test/configCases/ignore/resource-and-context-contextmodule/test.js
test/configCases/ignore/resource-and-context-contextmodule/test.js
/* globals it */ "use strict"; it("should ignore context modules that match resource regex and context", function() { const folderBContext = function(mod) { require("./folder-b/" + mod); }; expect(function() { folderBContext("normal-module"); }).toThrowError(); }); it("should not ignore context modules that ...
JavaScript
0.000094
@@ -307,33 +307,35 @@ modules that do -n + no t match the reso @@ -566,17 +566,19 @@ that do -n + no t match
696563f2a03a8e36afa9b869a36262dfe543ae16
return the test in storyshots so if async work needs to occur before snapshotting, jest waits before failing
addons/storyshots/src/index.js
addons/storyshots/src/index.js
import path from 'path'; import fs from 'fs'; import global, { describe, it } from 'global'; import readPkgUp from 'read-pkg-up'; import addons from '@storybook/addons'; import runWithRequireContext from './require_context'; import createChannel from './storybook-channel-mock'; import { snapshot } from './test-bodies'...
JavaScript
0.000002
@@ -3229,24 +3229,31 @@ +return options.test
fa619730e0ab519c801ce4dc78850c8bd7722386
Fix bet field
src/PlayerZone.js
src/PlayerZone.js
import React from "react"; import CardHand from "./CardHand"; // Player zone var PlayerZone = React.createClass({ displayName: "PlayerZone", getInitialState() { return { hasBet : this.props.hasBet || false, bet : 10 }; }, changeBet(e) { let value = parseInt(e.target.value); ...
JavaScript
0.000008
@@ -2016,24 +2016,112 @@ %7D);%0A%0A + const bet = this.state.bet %3E player.credits ? player.credits : this.state.bet;%0A%0A retu @@ -2800,27 +2800,16 @@ value=%7B -this.state. bet%7D onC
9774b4fe211a447e5cc3ab06084370fccac7d359
use new api
mail.js
mail.js
const nodemailer = require('nodemailer'); const config = require('./config/config.js'); // -------------------------------------------------------------------------------------- function set_up_mailer() { // create transporter var transporter = nodemailer.createTransport({ host: 'localhost', port: 25, s...
JavaScript
0
@@ -2126,16 +2126,26 @@ ta_func( +database, items%5Bdi
1161c66d4294f949b986a53f7b418b8285b096aa
add html action in sample test
spec/webJsonScenarioSpec.js
spec/webJsonScenarioSpec.js
var path = require('path') , Q = require('q') , WebBot = require('../lib/web-bot') , specUtil = require('./spec-util') , baseDir, webBot; baseDir = path.join(__dirname, '..'); describe('Automate web visit', function () { afterEach(function (done) { specUtil.stopWebServer(webBot.logger, done); }); it...
JavaScript
0
@@ -663,16 +663,54 @@ action: + 'html' %7D,%0A %7B index: '4', action: 'assert
70e7034bd03a4b00ab674a912bf5fdbe264bc790
Change me endpoint from post to get
controllers/UsersController.js
controllers/UsersController.js
var express = require('express'); var database = require('../config/database'); var UserModel = database.import("../models/UserModel"); var auth = require('../config/auth')(); UserModel.sync(); module.exports = { post_me : [auth.authenticate(), function(req, res) { var me = req.user; me = JSON.st...
JavaScript
0
@@ -217,11 +217,10 @@ -pos +ge t_me
6d749c56996c1fdf9153cec9b7cf6e191c22f5cb
Disable redirect to change password
controllers/auth_controller.js
controllers/auth_controller.js
"use strict"; define(['app','api'], function (app) { const COOKIE_EXPIRY = {expires:new Date(new Date().getTime()+(app.settings.COOKIE_EXPIRY))}; app.register.controller('RegisterController',['$scope','$rootScope','$window','$cookies','api', function ($scope,$rootScope,$window,$cookies,api) { $scope.Register = {...
JavaScript
0.000001
@@ -2212,16 +2212,19 @@ _changed +&&0 )%7B%0A%09%09%09%09%09
44f80c2a35152248f519eebf94f5c3a5a0cac66d
remove console.log statements from test
src/__tests__/rules.spec.js
src/__tests__/rules.spec.js
import Rule from 're/rule' import Validator from 're/validator' import {expect} from 'chai' import Logger from 're/logger' import {values} from 'assets/fnv-values.json' import {rules} from 'assets/fruit-n-veg-rules.json' describe('test rules', function () { let logger let validator let dummyObjects b...
JavaScript
0.000003
@@ -737,46 +737,8 @@ )%0A%0A - console.log('RULEEEE', rule)%0A%0A
3fb20467dbc237c2a8fe39df345119d874916692
Primera pregunta sin perder respuesta: versión 3
controllers/quiz_controller.js
controllers/quiz_controller.js
//Get /question exports.question = function (req, res, next) { var answer = req.query.answer || ''; res.render('quizzes/question', {question: "Capital de Italia", answer: answer}); }; //GET /check exports.check = function(req,res, next) { var result = ((req.query.answer === 'Roma') ? 'Correcta' : 'Incorrecta'); ...
JavaScript
0.996751
@@ -253,26 +253,16 @@ ult = (( -req.query. answer =
db6c6be6ddc8fa3ed4cea30d74c9ad2feb4ae270
Remove duplicate trim
client/components/Entry/Form/index.js
client/components/Entry/Form/index.js
// module EntryForm // // Features // - use same form for entry creation and edit. // - handles the API calls internally // - is able to upload attachments // - temporary store of content for interrupted creation or edit // var template = require('./template.ejs'); var AttachmentsForm = require('../AttachmentsForm'); v...
JavaScript
0.000001
@@ -4910,15 +4910,8 @@ wn() -.trim() ,%0A
ae3417835d3a18189e41ae587d4e5921a83d4b38
Improve add project toggle
public/components/bit-os-projects/bit-os-projects.js
public/components/bit-os-projects/bit-os-projects.js
import Component from 'can-component'; import DefineMap from 'can-define/map/'; import './bit-os-projects.less'; import template from './bit-os-projects.stache'; import OSProjectModel from '../../models/os-project'; import ContributionMonthModel from '../../models/contribution-month'; export const ViewModel = DefineMa...
JavaScript
0.000001
@@ -927,16 +927,18 @@ %7B%0A + type: 'b @@ -946,16 +946,18 @@ olean',%0A + va @@ -1034,24 +1034,62 @@ unction() %7B%0A + this.newOSProjectName = '';%0A this.a @@ -1141,28 +1141,32 @@ t: function( +ev ) %7B%0A + consol @@ -1226,16 +1226,18 @@ tName);%0A + le @@ -...
81ea1c1f3bae2a81c51743c074e47ebb493bfc67
refactor test for course copy with homeworks
test/services/courses/services/courseCopy.test.js
test/services/courses/services/courseCopy.test.js
const assert = require('assert'); const chai = require('chai'); const app = require('../../../../src/app'); const copyCourseService = app.service('courses/copy'); const shareCourseService = app.service('courses/share'); const testObjects = require('../../helpers/testObjects')(app); const testUserId = '0000d231816ab...
JavaScript
0
@@ -1035,85 +1035,516 @@ %7B%0A%09%09 -// todo: refactor to use testObjects%0A%09%09const newCourseName = 'testCourse 76'; +const ONEDAYINMILLISECONDS = (1000 * 60 * 60 * 24);%0A%0A%09%09const teacher = await testObjects.createTestUser();%0A%09%09const course = await testObjects.createTestCourse(%7B teacherIds: teache...
be14a8ea4dcacd3ed56cf4d4410ffb5bfbb07bef
Fix search input
packages/gitbook-plugin-search/src/actions/search.js
packages/gitbook-plugin-search/src/actions/search.js
const { Promise, Immutable } = require('gitbook-core'); const { List } = Immutable; const TYPES = require('./types'); const Result = require('../models/Result'); /* Search workflow: 1. Typing in the search input 2. Trigger an update of the url 3. An update of the url, trigger an update of search resu...
JavaScript
0.001996
@@ -449,26 +449,23 @@ tate, %7B -Navigation +History %7D) =%3E %7B @@ -660,26 +660,23 @@ ispatch( -Navigation +History .replace @@ -744,18 +744,15 @@ tch( -Navigation +History .pus
77c4e9d7deedcbec2fe5bf158d80f816800060c8
Simplify merge code by extracting "can we merge this?" checks.
lib/storage.js
lib/storage.js
'use strict'; const EventEmitter = require('events'); const UPDATE_TIMEOUT_MS = 500; /** * Perform a deep merge of objects based on key. * Warning! Destination is modified in place. * * @param {Object} source Object from which keys are copied out of * @param {Object} destination Object from which keys are...
JavaScript
0.000006
@@ -91,647 +91,750 @@ %0A * -Perform a deep merge of objects based on key.%0A * Warning! Destination is modified in place.%0A *%0A * @param %7BObject%7D source Object from which keys are copied out of%0A * @param %7BObject%7D destination Object from which keys are copied into%0A *%0A * @return %7BObject%7D ...
977a57c35c6b7346670022bada4a5532d7ee67a8
FIX each else
lib/runtime.js
lib/runtime.js
'use strict'; var vow = require('vow'); exports.vow = vow; /** * Merge two attribute objects giving precedence * to values in object `b`. Classes are special-cased * allowing for arrays and merging/joining appropriately * resulting in a string. * * @param {Object} a * @param {Object} b * @return {Object} a ...
JavaScript
0
@@ -3642,16 +3642,47 @@ nt === 0 + && typeof altFn === 'function' ) %7B%0A
bbc4d12d363b6eed6d4496e9590143c53f07fcda
add ctrl+click to log selected element in console
src/client/morphic.js
src/client/morphic.js
export function initMorphicTools() { alert("juhuu"); }
JavaScript
0.000001
@@ -35,21 +35,321 @@ %7B%0A%09 -alert(%22juhuu%22);%0A%7D +initDragBehaviour();%0A%09initMagnifier();%0A%7D%0A%0Afunction initDragBehaviour() %7B%0A%0A%7D%0A%0Afunction initMagnifier() %7B%0A%09$(%22body%22).on(%22click%22, (e) =%3E %7B%0A%09%09if (e.ctrlKey) %7B%0A%09%09%09let target = getTargetElementFromEvent(e);%...
1bbb1cfa161291ffa0ea66a5d034e1992896e952
Handle NaN error thrown by pretty-bytes.
lib/summary.js
lib/summary.js
var ttycolor = require('ttycolor') , ansi = ttycolor.ansi , bytes = require('pretty-bytes') , ms = require('ms'); function summary(req) { var queue = req.crawler.queue , total = queue.length , completed = queue.complete() , errors = queue.errors(); // request time (requestLatency, requestTime, d...
JavaScript
0
@@ -803,32 +803,37 @@ .min(item.field) + %7C%7C 0 )))%5Bitem.color%5D, @@ -880,32 +880,37 @@ .max(item.field) + %7C%7C 0 )))%5Bitem.color%5D, @@ -965,16 +965,21 @@ m.field) + %7C%7C 0 )))%5Bitem
c37f8906e2ca2417659bac6969d498e8ee701500
Debug information
basic/js/basic.js
basic/js/basic.js
/** * Demo Website of FOXEL SA, Geneva Switzerland. * * Copyright (c) 2014 FOXEL SA - http://foxel.ch * Please read <http://foxel.ch/license> for more information. * * * Author(s): * * Alexandre Kraft <a.kraft@foxel.ch> * * * This file is part of the FOXEL project <http://foxel.ch>. * * This program ...
JavaScript
0.000001
@@ -6649,12 +6649,292 @@ ano');%0A%0A + $(document).on('keypress',function(e)%7B%0A switch(e.keyCode) %7B%0A case 32:%0A console.log('lon %5B'+panorama.lon+'%5D lat %5B'+panorama.lat+'%5D tilt %5B'+panorama.rotation.tilt+'%5D roll %5B'+panorama.rotation.roll+'%5D');%0A ...
b239803670a3b4610884abd33c5da9afcb5b65ad
Revert "refactor #870" (#901)
src/TabbedView.js
src/TabbedView.js
import React, { Component, PropTypes } from 'react'; import { View, StyleSheet } from 'react-native'; import StaticContainer from 'react-static-container'; const styles = StyleSheet.create({ scene: { bottom: 0, left: 0, position: 'absolute', right: 0, top: 0, }, }); class TabbedView extends Co...
JavaScript
0.000001
@@ -1452,157 +1452,41 @@ -const %7B navigationBarStyle, titleStyle %7D = this.props.navigationState;%0A scenes.push(this.renderScene(%7B navigationBarStyle, titleStyle, ... +scenes.push(this.renderScene( item - %7D , i)
e2691d3fbcd6677a285ed379805e122ce68dbf16
check if global
lib/spotify.js
lib/spotify.js
/** * twitspot Spotify. * * @author Patrick Schroen / https://github.com/pschroen * @license MIT Licensed */ /* jshint strict:true, eqeqeq:true, newcap:false, multistr:true, expr:true, loopfunc:true, shadow:true, node:true, indent:4 */ "use strict"; var path = require('path'), request = require('request')...
JavaScript
0.000031
@@ -333,16 +333,61 @@ require( +(process.env._ !== process.execPath ? '..' : process. @@ -391,16 +391,17 @@ ss.cwd() +) +'/node_
6ad080c66eaed2b8e1f49bd2080e66cc4942b9d4
fix intl warnings in tests
frontend/tests/integration/components/invoice-item-amount-test.js
frontend/tests/integration/components/invoice-item-amount-test.js
import { expect } from 'chai'; import { describe, it } from 'mocha'; import { setupComponentTest } from 'ember-mocha'; import hbs from 'htmlbars-inline-precompile'; describe('Integration | Component | invoice item amount', function() { setupComponentTest('invoice-item-amount', { integration: true }); it('re...
JavaScript
0.000001
@@ -159,16 +159,26 @@ pile';%0A%0A +let intl;%0A describe @@ -307,16 +307,117 @@ on: true +,%0A setup() %7B%0A intl = this.container.lookup('service:intl');%0A intl.setLocale('en');%0A %7D %0A %7D);%0A%0A
23d1b8c2b8531a9349ac17608223830c153a1064
edit form mailer
core/server/routes/frontend.js
core/server/routes/frontend.js
var frontend = require('../controllers/frontend'), config = require('../config'), express = require('express'), utils = require('../utils'), frontendRoutes; frontendRoutes = function (middleware) { var router = express.Router(), subdir = config.paths.subdir, route...
JavaScript
0.000001
@@ -2988,36 +2988,34 @@ dleware. -isPrivateSessionAuth +authenticateClient , fronte
4d3b52bf3359008358da3e0c9490c225222bb220
fix build
webofneeds/won-owner-webapp/src/main/webapp/app/won-label-utils.js
webofneeds/won-owner-webapp/src/main/webapp/app/won-label-utils.js
import won from "./won-es6.js"; import { deepFreeze } from "./utils.js"; export const labels = deepFreeze({ type: { [won.WON.BasicNeedTypeDemandCompacted]: "Search", //'I want something', [won.WON.BasicNeedTypeSupplyCompacted]: "Post", //'I offer something', [won.WON.BasicNeedTypeDotogetherCompact...
JavaScript
0.000001
@@ -826,23 +826,16 @@ stSent%5D: -%0D%0A %22Conver @@ -888,31 +888,24 @@ stReceived%5D: -%0D%0A %22Conversati @@ -949,15 +949,8 @@ ed%5D: -%0D%0A %22Co
d4cd74a3d1ccc6119cfa59311af99d59d049d40f
add fs.readfile test(which is not the best thing to do)
tests/tape/tape-tests.js
tests/tape/tape-tests.js
var test = require('tape'); var readDictionary = require('../../src/readDictionary.js').readDictionary; var dictionaryFile = require('../../src/readDictionary.js'); var wordSearch = require('../../src/wordSearch.js'); var handler = require('../../src/handler.js'); // Mock test test('Description for your test', functio...
JavaScript
0
@@ -257,16 +257,40 @@ er.js'); +%0Avar fs = require('fs'); %0A%0A// Moc @@ -1047,16 +1047,262 @@ %7D);%0A%7D)%0A%0A +//testing fs module is not neccessarily good practice #issue70%0Atest('error handling in readDictionary function', function(t) %7B%0A fs.readFile('/../src/dictionar.txt','utf-8',function(err,data) %7...
760b4774bd2b0828eb29b1e5cff36a635f749a12
Fix jquery scrollEnd event plugin: Use innerHeight to compare with scrollHeight
client-vendor/after-body/jquery.event.scrollEnd/jquery.event.scrollEnd.js
client-vendor/after-body/jquery.event.scrollEnd/jquery.event.scrollEnd.js
/* * Author: CM */ (function($) { var checkDelay = 100; var preloadMultiple = 3; var checkScrollHeight = function(element, event) { var $this = $(element); var scrollHeight = $this.is($(window)) ? $('body').prop('scrollHeight') : $this.prop('scrollHeight'); var outerHeight = $this.outerHeight(); var dista...
JavaScript
0
@@ -267,19 +267,19 @@ ;%0A%09%09var -out +inn erHeight @@ -287,19 +287,19 @@ = $this. -out +inn erHeight @@ -344,19 +344,19 @@ eight - -out +inn erHeight @@ -397,19 +397,19 @@ ceMin = -out +inn erHeight
036ea6ae0d896929cf432579a12a7f141d432781
Add example description.
website/src/app/project/experiments/experiment/experiment.model.js
website/src/app/project/experiments/experiment/experiment.model.js
export class ExperimentStep { constructor(title, _type) { this.id = ''; this.title = title; this._type = _type; this.steps = []; this.description = ''; this.flags = { important: false, review: false, error: false, done: ...
JavaScript
0
@@ -947,32 +947,76 @@ .description = ' +Look at grain size as it relates to hardness ';%0A this.
b927049de1d581dddb9ae2ebf405e7512cee3e47
check if js-rocketchat-icon exist ->> rocketchatobserver
app/assets/javascripts/rocketchat_observer.js
app/assets/javascripts/rocketchat_observer.js
const rocketChatIframe = { rcAvailableInIframe: false, iframeLoad: false, url: '' } const handler = () => { return { set: function (target, key, value) { target[key] = value; if (target.rcAvailableInIframe && target.iframeLoad && window.iframeEl.src.length !== target.url.length) { console.log...
JavaScript
0
@@ -298,36 +298,8 @@ ) %7B%0A - console.log(target)%0A @@ -342,16 +342,39 @@ %0A + const rocketChatIcon = documen @@ -411,16 +411,71 @@ t-icon') +%0A if (rocketChatIcon) %7B%0A rocketChatIcon .classLi @@ -500,16 +500,26 @@ -none')%0A + %7D%0A %7D%0A
bd406e9f2a7a7906fc96653871217e0a6e0677d5
Add transformer to turn output back to babel nodes
src/css/preprocess.js
src/css/preprocess.js
import stylis from 'stylis' // Matches strings that contain an opening curly brace on the same line const startsWithCurlyBrace = str => /^([^\n\r]+?)?\{/.test(str) // Generates a placeholder from an index const makePlaceholder = index => `__PLACEHOLDER_${index}__` // The capture group makes sure that the split conta...
JavaScript
0
@@ -1,8 +1,41 @@ +import * as t from 'babel-types'%0A import s @@ -1743,16 +1743,329 @@ res%0A%7D%0A%0A +// Convert CSS strings back to babel string literals%0A// and turn arrays back into babel array expressions%0Aexport const convertOutputToBabelTypes = arrOfCSSArr =%3E t.arrayExpression(%0A result.map(cssArr =%3...
0a2ed6da37848cd10315366fcc063545c2504d6b
Add missing semicolon
erpnext/public/js/utils/dimension_tree_filter.js
erpnext/public/js/utils/dimension_tree_filter.js
frappe.provide('frappe.ui.form'); erpnext.doctypes_with_dimensions = ["GL Entry", "Sales Invoice", "Purchase Invoice", "Payment Entry", "Asset", "Expense Claim", "Stock Entry", "Budget", "Payroll Entry", "Delivery Note", "Shipping Rule", "Loyalty Program", "Fee Schedule", "Fee Structure", "Stock Reconciliation", "Tr...
JavaScript
0.023617
@@ -504,16 +504,17 @@ %22Asset%22%5D +; %0A%0Aerpnex @@ -851,16 +851,17 @@ n Plan%22%5D +; %0A%0Afrappe
6ad7d1663246f3b87e05f921a0d4b9ed08235cea
Change to throw actual error objects instead of just strings.
lib/texpand.js
lib/texpand.js
// Texpand // Unobtrusively resize textarea's height as content is added. // // Copyright (c) 2008, Gianni Chiappetta - gianni[at]runlevel6[dot]org // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in th...
JavaScript
0
@@ -1700,33 +1700,42 @@ ') %7B%0A throw - +(new Error ('Texpand: can o @@ -1825,16 +1825,17 @@ ) + '%3E') +) ;%0A %7D%0A @@ -1979,25 +1979,34 @@ %0A throw - +(new Error ('Texpand: r @@ -2031,16 +2031,17 @@ 1.6.0+') +) ;%0A %7D%0A @@ -2091,17 +2091,26 @@ throw - +(new Error ('Textpa @@ -2...
2efca690abf29c616d3aa68595fdf25cae8bac7c
INclude exch column
react/src/components/Tscs/columns.js
react/src/components/Tscs/columns.js
import { currency, date, capitalize } from '../../utils'; export const TSCS_COLUMNS = [ { selector: 'name', title: 'Name' }, { selector: 'symbol', title: 'Symbol' }, { selector: 'type', filter: capitalize, title: 'Type' }, { se...
JavaScript
0.000009
@@ -141,32 +141,97 @@ e'%0A %7D,%0A %7B%0A + selector: 'exch',%0A title: 'Exchange'%0A %7D,%0A %7B%0A selector
73cdbcfd0aa0315cce41dcc8fd464a150b8e1e51
Use (capitalized) format names for nameless assets
app/assets/javascripts/service/typeService.js
app/assets/javascripts/service/typeService.js
define(['config/module'], function (module) { 'use strict'; module.factory('TypeService', ['$exceptionHandler', function ($exception) { var typeService = {}; // typeService.getType = function (object) { if (!angular.isObject(object)) return undefined; if (typeService.isParty(object)) return 'p...
JavaScript
0.000002
@@ -2564,29 +2564,27 @@ ce.asset -MimetypeGroup +DisplayName = funct @@ -2610,22 +2610,14 @@ %0A%09%09%09 -var mimetype = +return typ @@ -2652,177 +2652,22 @@ t, ' -format', dig).mimetype.split('/');%0A%09%09%09return mimetype%5B0%5D == 'text' ? mimetype%5B1%5D : mimetype%5B0%5D;%0A%09%09%7D;%0A%0A%09%09typeServ...
59e2a3b03d2008db190a292736db47b02c501909
load data from local storage
src/game.js
src/game.js
/** * Created by Deepak Sisodiya on 10/01/15. */ function Game(dataStore, size, turn) { this.dataStore = dataStore; this.size= size; this.turn = turn; } Game.prototype = { setBoardSize: function (n) { this.size = n; }, startGame: function () { this.dataStore = []; for (var j = 0; j < this...
JavaScript
0.000001
@@ -3555,16 +3555,328 @@ size%22);%0A + var arr = dataStore.split(%22,%22);%0A var newDataStore = %5B%5D;%0A var rowData = %5B%5D;%0A for(var i=1; i%3C=arr.length; i++) %7B%0A rowData.push(arr%5Bi-1%5D);%0A if(i %25 this.size === 0) %7B%0A newDataStore.push(rowData);%0A rowData = %5...
b516b6f5b250f75b28a383215429077536951e6b
Update location dashboard when url changes
app/assets/scripts/views/location/location.js
app/assets/scripts/views/location/location.js
import React, { useState, useEffect } from 'react'; import { PropTypes as T } from 'prop-types'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { openDownloadModal } from '../../actions/action-creators'; import config from '../../config'; import { HeaderMessage } from '../../comp...
JavaScript
0.000001
@@ -2194,16 +2194,18 @@ ;%0A %7D, %5B +id %5D);%0A%0A i
042bebaaa010018bceb1648772a6f698adfc98c1
Remove menu and dev tools by default
main.js
main.js
const electron = require('electron') // Module to control application life. const app = electron.app // Module to create native browser window. const BrowserWindow = electron.BrowserWindow // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript obje...
JavaScript
0
@@ -460,16 +460,39 @@ ) %7B%0A // + remove default menu%0A electron @@ -751,16 +751,35 @@ %0A %7D);%0A%0A + // main content %0A mainWi @@ -849,24 +849,26 @@ DevTools.%0A +// mainWindow.w
6ff88d43c0d69101c8758528b9055769e4a4afcc
Fix possible double call to callback (#130)
lib/twitter.js
lib/twitter.js
'use strict'; /** * Module dependencies */ var url = require('url'); var streamparser = require('./parser'); var request = require('request'); var extend = require('deep-extend'); // Package version var VERSION = require('../package.json').version; function Twitter (options) { if (!(this instanceof Twitter)) re...
JavaScript
0.000018
@@ -4034,32 +4034,39 @@ rror) %7B%0A +return callback(%0A
88313824c32f334c3d31cfb12b51ed08ba7f7145
Delete initial state that was just for development purposes
main.js
main.js
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import { MainReducer } from './actions/reducers' import MainApp from './uiComponents/mainApp' let store = createStore(MainReducer, {messages: [ {id: 0, message: "yo", author: "me"} ]...
JavaScript
0
@@ -262,64 +262,8 @@ ucer -, %7Bmessages: %5B%0A %7Bid: 0, message: %22yo%22, author: %22me%22%7D%0A%5D%7D );%0A%0A
593d08d1d020459c8cd5674c8cb39c20292e3822
Fix #2106 Missed a call to rm that should've been to gentlyRm
lib/unbuild.js
lib/unbuild.js
module.exports = unbuild unbuild.usage = "npm unbuild <folder>\n(this is plumbing)" var readJson = require("./utils/read-json.js") , rm = require("rimraf") , gentlyRm = require("./utils/gently-rm.js") , npm = require("./npm.js") , path = require("path") , fs = require("graceful-fs") , lifecycle = require("...
JavaScript
0
@@ -1996,17 +1996,23 @@ %7B%0A -r +gentlyR m( path. @@ -2031,32 +2031,38 @@ oot, b)%0A + + , !npm.config.ge @@ -2074,32 +2074,38 @@ rce%22) && folder%0A + , cb )%0A
3ceb73e8c5d5d2447ff496e56c641b21988f9545
Add Geometry#merge()
src/geom.js
src/geom.js
import { face3_create } from './face3'; import { vec3_create, vec3_add, vec3_set } from './vec3'; export function geom_create() { return { vertices: [], faces: [], }; } export function geom_push(geom, vertices, faces) { var offset = geom.vertices.length; var i; for (i = 0; i < vertices.length; i +=...
JavaScript
0
@@ -54,16 +54,28 @@ _create, + vec3_clone, vec3_ad @@ -923,8 +923,596 @@ ;%0A%7D());%0A +%0Aexport function geom_merge(a, b) %7B%0A var vertexOffset = a.vertices.length;%0A%0A var i;%0A for (i = 0; i %3C b.vertices.length; i++) %7B%0A a.vertices.push(vec3_clone(b.vertices%5Bi%5D));%0A %7D%0A%0A for (i = 0; ...
f40b3d520cfec614bb7e2a9d00661d23842eef93
improve debug info
lib/webtask.js
lib/webtask.js
/*jslint node: true */ 'use strict'; var cookieparser = require('cookie-parser'), webtaskContext = require('./context'), locate = require('./locate'), webtask = { init: function (app) { app.use(cookieparser()); app.middleware = webtask.middleware; }, middleware: function (type, na...
JavaScript
0.000001
@@ -703,13 +703,83 @@ -if (R +// for devel debug, later remove....%0A if (this.errors.length ) %7B%0A @@ -802,18 +802,31 @@ -res.send(R +console.log(this.errors );%0A @@ -845,16 +845,12 @@ %7D - else %7B%0A +%0A @@ -862,97 +862,74 @@ - // for devel debug, later rem...
39ac06d8b39669191bba3e9fb3c4a13780d6163f
Stop re-rendering feeds on every state change
src/redux/selectors/feed.js
src/redux/selectors/feed.js
const getIdAndHidden = (state) => (postId) => ({ id: postId, isHidden: state.posts[postId].isHidden }); export const getVisibleEntriesWithHidden = (state) => state.feedViewState.visibleEntries.map(getIdAndHidden(state)); export const getHiddenEntriesWithHidden = (state) => state.feedViewState.hiddenEntries.map(ge...
JavaScript
0
@@ -1,16 +1,60 @@ +import %7B createSelector %7D from 'reselect';%0A%0A const getIdAndHi @@ -57,29 +57,29 @@ ndHidden = ( -state +posts ) =%3E (postId @@ -112,22 +112,16 @@ Hidden: -state. posts%5Bpo @@ -174,32 +174,56 @@ riesWithHidden = + createSelector(%0A %5B%0A (state) =%3E stat @@ -238,16 +238,106 @@...
fce2238425ad4e39c419d21620f992b842b43809
Add missing files to `copy:dist`
frontend/Gruntfile.js
frontend/Gruntfile.js
// Generated on 2013-10-03 using generator-angular 0.4.0 'use strict'; var LIVERELOAD_PORT = 35729; var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }); var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; // # Globbing // for performance reasons ...
JavaScript
0
@@ -4613,32 +4613,149 @@ src: %5B%0A + 'index.html',%0A 'views/*.html',%0A 'data/*.json',%0A
c7d01296a37f8e394424207997df26bd4de7a354
clear style selection on board preview close
app/frontend/app/controllers/board-preview.js
app/frontend/app/controllers/board-preview.js
import Controller from '@ember/controller'; import modal from '../utils/modal'; import { computed, observer } from '@ember/object'; import EmberObject from '@ember/object'; export default Controller.extend({ update_style_needed: observer('model.board.key', 'model.style', 'model.board.style.options', function() { ...
JavaScript
0
@@ -344,24 +344,136 @@ rd.key')) %7B%0A + if(this.get('model.board.key') != this.get('model_key')) %7B%0A this.set('model_style', null);%0A %7D%0A this.s @@ -2415,24 +2415,61 @@ unction() %7B%0A + this.set('model_style', null);%0A modal.
8cc768b0936703a679c955a1512ca2190b2804fa
disable window reloading on index.ejs change temporarily, #437
template/.electron-vue/dev-client.js
template/.electron-vue/dev-client.js
const hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') hotClient.subscribe(event => { /** * Reload browser when HTMLWebpackPlugin emits a new index.html */ if (event.action === 'reload') { window.location.reload() } /** * Notify `mainWindow` when `main` process is comp...
JavaScript
0
@@ -180,27 +180,237 @@ ex.html%0A * -/ %0A + * Currently disabled until jantimon/html-webpack-plugin#680 is resolved.%0A * https://github.com/SimulatedGREG/electron-vue/issues/437%0A * https://github.com/jantimon/html-webpack-plugin/issues/680%0A */%0A // if (event.a @@ -432,16 +432,19 @@ ad') %7B%0A +...
67edd7f349d7c8ab8621ff3101f662d95ed707d5
Remove unused parameter
lib/watcher.js
lib/watcher.js
var namedRegexp = require('named-regexp').named; var Tail = require('./tail'); var Watcher = function (io, server) { this.io = io; }; Watcher.prototype.watch = function (file, regex) { var self = this; var tail = new Tail(file); tail.on('line', function (line) { var parsed = self.parse(line, ...
JavaScript
0.000002
@@ -103,16 +103,8 @@ (io -, server ) %7B%0A
0078cf35ed9fe1341bef922cadd1822fd24a4849
Fix module.js coding style
src/app/module.js
src/app/module.js
define(['angular'], function(angular) { 'use strict'; return angular.module('app', []); });
JavaScript
0.000143
@@ -1,16 +1,19 @@ define(%5B +%0A 'angular @@ -13,16 +13,17 @@ angular' +%0A %5D, funct @@ -53,16 +53,17 @@ trict';%0A +%0A return
a6f317d09780d1f89cb47981ebaeb4002a3b2996
add CLI method for updateSuite()
bin/commands/suite/update.js
bin/commands/suite/update.js
const helpers = require('../../helpers') // TODO module.exports = { command: 'update <suite-id>', desc: 'Update a suite.', builder: {}, handler: async function (argv) { console.log('ERROR: updateSuite() not yet implemented in node-ghost-inspector') process.exit(1) } }
JavaScript
0
@@ -40,16 +40,8 @@ ')%0A%0A -// TODO%0A modu @@ -84,16 +84,29 @@ uite-id%3E + %3Csuite-name%3E ',%0A des @@ -123,16 +123,38 @@ a suite + with new %3Csuite-name%3E .',%0A bu @@ -207,87 +207,242 @@ -console.log('ERROR: updateSuite() not yet implemented in node-ghost-inspector') +try %7B%0A const clien...
5380e3fad87fac1ceab72f03169062300a74a7c1
fix shutdown issues with LocalStorageNodeTest
javascript/libjoynr-js/src/test/js/global/LocalStorageNodeTest.js
javascript/libjoynr-js/src/test/js/global/LocalStorageNodeTest.js
/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * 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 requir...
JavaScript
0.000004
@@ -795,16 +795,64 @@ %22path%22); +%0Aconst child_process = require(%22child_process%22); %0A%0Adescri @@ -1391,29 +1391,51 @@ -fs.rmdirSync( +child_process.execSync(%22rm -rf %22 + basePath @@ -1561,16 +1561,16 @@ estNum;%0A + @@ -1633,293 +1633,8 @@ );%0A%0A - afterEach(() =%3E %7B%0A ...
742e63fd8e6351ff8142bc8f359c7d1590f246e4
add new tags to babel plugin
packages/node_modules/babel-plugin-cerebral/index.js
packages/node_modules/babel-plugin-cerebral/index.js
const allowedImportPath = ['cerebral/proxy'] const allowedImportVariables = ['state', 'props', 'signal', 'computed'] function isDirectImport(location) { return allowedImportPath.indexOf(location.toLowerCase()) >= 0 } function isIndirectImport(location) { return location.includes('cerebral.proxy') } function isAl...
JavaScript
0
@@ -74,16 +74,19 @@ = %5B +%0A 'state', 'pr @@ -81,16 +81,18 @@ 'state', +%0A 'props' @@ -92,16 +92,18 @@ 'props', +%0A 'signal @@ -104,16 +104,18 @@ signal', +%0A 'comput @@ -117,16 +117,68 @@ omputed' +,%0A 'module',%0A 'moduleComputed',%0A 'moduleSignal',%0A %5D%0A%0Afunct
d29eb6217d5a9ffd0cd7402b5a5c0348f1527793
Update orchestra.min.js
resources/public/js/orchestra.min.js
resources/public/js/orchestra.min.js
(function(){var t,e,n,r,a,o,i;n=this,t=n.Javie,e=n.jQuery,a=function(t){var e,n,r,a,o,i;return r=t(this),n=r.parents("form").eq(0),o=r.attr("data-toggle-name"),a=t("input[name='"+o+"']",n),e=t("button",r),i=function(t){return t.val()===a.val()&&t.addClass("active"),!0 },e.each(function(n,r){var o;return o=t(r),o.on("cl...
JavaScript
0
@@ -17,27 +17,27 @@ t,e, -n,r,a,o,i;n +a,n,o,i,r;a =this,t= n.Ja @@ -32,17 +32,17 @@ =this,t= -n +a .Javie,e @@ -46,17 +46,17 @@ e,e= -n +a .jQuery, a=fu @@ -51,17 +51,17 @@ .jQuery, -a +o =functio @@ -75,26 +75,19 @@ r e, -n,r,a,o,i;return r +a,n,o,i,r;n =t(t @@ -95,11 +95,11 @@ is), -n=r +a=n .par @@ -1...
44211ca1da367855fb79589f8dbb91f17469076d
Add initializing and recovering events
src/project-context-event.js
src/project-context-event.js
/** * Defines project context events. */ export default class ProjectContextEvent { /** * Creates a new project context event. * * @param {String} name to use for the event. * @param {String} value emitted in the event. */ constructor(name, value) { /** * @type {String} Stores the name. ...
JavaScript
0.000002
@@ -983,24 +983,202 @@ recovered%22); +%0AProjectContextEvent.INITIALIZING = new ProjectContextEvent(%22INITIALIZING%22, %22initializing%22);%0AProjectContextEvent.RECOVERING = new ProjectContextEvent(%22RECOVERING%22, %22recovering%22); %0A%0A// Data ev
b21b0e753e156f1c016cda6e846b778c4db49421
add back optional brackets around transformers in 6to5 --help
bin/6to5/index.js
bin/6to5/index.js
#!/usr/bin/env node var commander = require("commander"); var transform = require("../../lib/6to5/transformation/transform"); var util = require("../../lib/6to5/util"); var fs = require("fs"); var _ = require("lodash"); commander.option("-t, --source-maps-inline", "Append sourceMappingURL comment ...
JavaScript
0
@@ -2163,16 +2163,88 @@ return;%0A +%0A if (obj%5Bkey%5D.optional) %7B%0A key = %22%5B%22 + key + %22%5D%22;%0A %7D%0A%0A co
8d88aed3e7384419424aea3de46c332a6685affe
add config.js
config/config.js
config/config.js
/** * config for all */ var path = require('path'); var rootPath = path.join(path.normalize(__dirname + '/..') + '/') var config = { debug:true, db : "mongodb://febody:febody@localhost:17017/febody" , rootpath : rootPath , name : "前端body", keywor...
JavaScript
0.000005
@@ -194,44 +194,49 @@ b:// -febody:febody@localhost:17017/febody +dbuser:dbpassword@adaddress:dbport/dbname %22 , @@ -402,20 +402,16 @@ ://1 -82.92.98.242 +27.0.0.1 %22,%0A @@ -441,29 +441,8 @@ et:' -febody-session-secret ', /
6bf90765258f673f0bf007b04e16fbae284981f9
change default longname of json keyfile
lib/utility.js
lib/utility.js
// utility.js // common utility functions used by the loader, exportAllItems, and deleteAllItems scripts. // ------------------------------------------------------------------ // Copyright 2017-2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in ...
JavaScript
0.000001
@@ -1690,12 +1690,11 @@ , ' -json +key file
c00ef2d4ebd542c0dfbcd41cbcaf9614842e3ad6
Fix showing alert only when the settings are available + content + to
src/js/controllers/marco-coino.controller.js
src/js/controllers/marco-coino.controller.js
'use strict'; (function(){ angular .module('bitcoincom.controllers') .controller('marcoCoinoController', marcoCoinoController); function marcoCoinoController( $log , $scope , $sce , popupService , gettextCatalog ) { var MARCO_COINO_BASE_URL = 'https://marco-coino.fire...
JavaScript
0
@@ -1206,16 +1206,36 @@ %7B%0A + var socialsharing = window. @@ -1259,35 +1259,169 @@ ring -.shareViaEmail(%0A 'Hi +;%0A socialsharing.canShareViaEmail(%0A function onCanShareViaEmailSuccess() %7B%0A socialsharing.shareViaEmail(%0A 'Hello Bitcoin.com team ,%3Cbr @@ -145...
2c38e5a77ac8f2da5c7e1b159aa5b657ce989b8b
Change underlayColor for TouchableHighlight on topic screen to white, removing padding on topic list
components/TopicScreen/TopicScreen.js
components/TopicScreen/TopicScreen.js
import React, { Component } from 'react'; import { View, TouchableHighlight, ListView, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import Actions from '../../actions'; import { Actions as RouterActions } from 'react-native-router-flux'; import API from '../../api/DailyDripApi'; import DripC...
JavaScript
0
@@ -449,25 +449,8 @@ : %7B%0A - padding: 10,%0A @@ -1478,24 +1478,56 @@ styles.row%7D%0A + underlayColor=%7B'white'%7D%0A onPr
16256f83f836a12114b67dcfb7e2b9aceb42fade
Revert D17201061: [RN][Fabric] Always use `forceUpdate` for Fabric JS animations
Libraries/Animated/src/createAnimatedComponent.js
Libraries/Animated/src/createAnimatedComponent.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const {AnimatedEvent} = require('./AnimatedEvent'); const AnimatedProps = require('./nodes/An...
JavaScript
0
@@ -2879,137 +2879,8 @@ %3E %7B%0A - // eslint-disable-next-line dot-notation%0A const internalInstanceHandle = this._component%5B'_internalInstanceHandle'%5D;%0A%0A @@ -3402,376 +3402,60 @@ -// For animating properties of non-leaf/non-native components%0A typeof this._component.setNativeP...
16f0238092537e7c18effdf458ac5fc8b5390c72
Prettify the output JSON format
task-annotation-generator.js
task-annotation-generator.js
// Copyright 2016, EMC 'use strict'; var fs = require('fs'); function TaskAnnotation(task) { this.task = task; } /** * Run the process to generate doc data with current existing task schemas * @param {Array} tasks - list of task from task folder * e.g. /lib/task-data/tasks/*.js * @par...
JavaScript
0.999999
@@ -6260,16 +6260,25 @@ (docData +, null, 4 ));%0A
53a156d252941c35d719af034df4ed9a1cf92baf
Add some debug times for grid test.
src/grid.js
src/grid.js
import { calculateColumnLayout } from './calculate-column-layout' import { compose, wrap } from 'underscore' import { createBody } from './body' import { createColumnDrag } from './column-drag' import { createColumnSizers } from './column-sizers' import { createEnsureColumns } from './ensure-columns' import { createExp...
JavaScript
0
@@ -3765,16 +3765,80 @@ + call(d =%3E window.timeGrid && console.timeEnd('grid'))%0A , call(() @@ -4800,16 +4800,77 @@ sureId)%0A + , call(d =%3E window.timeGrid && console.time('grid'))%0A
72b5b33555a05aa4966568a4a775a0180707e8ab
Bump mongodb driver to 2.2.24
packages/npm-mongo/package.js
packages/npm-mongo/package.js
// This has been moved out of the `mongo` package so it can be used by the tool // via isopacket, without having to also load ddp-server. Package.describe({ summary: "Wrapper around the mongo npm package", version: '2.2.16_1', documentation: null }); Npm.depends({ mongodb: "2.2.16" }); Package.onUse(function...
JavaScript
0
@@ -222,12 +222,10 @@ 2.2. -16_1 +24 ',%0A @@ -284,10 +284,10 @@ 2.2. -16 +24 %22%0A%7D)
20491e990298b120b5c5aa0f3ce365000276bf85
fix controllers 3
src/js/controllers/preferencesInformation.js
src/js/controllers/preferencesInformation.js
'use strict'; angular.module('copayApp.controllers').controller('preferencesInformation', function($scope, $log, $timeout, isMobile, gettextCatalog, lodash, profileService, storageService, go, bitcore) { var base = 'xpub'; var fc = profileService.focusedClient; var c = fc.credentials; this.init = fu...
JavaScript
0.000001
@@ -119,24 +119,28 @@ imeout, -isMobile +platformInfo , gettex @@ -788,619 +788,8 @@ l;%0A%0A -%0A if (isMobile.Android()) %7B%0A $scope.androidTest = 'testing';%0A%0A var xp = bitcore.HDPrivateKey(%22tprv8ZgxMBicQKsPebv8CVghFoaaZ6ejmcSmSaKo99sUnswCCPeccGbLzfoksA2wd5XdHe8UHLwM2emuBWD4cBvQ7BPTJhFu...
201e6fea4349ff8a1f98afa0662addc671a59dd0
Add comment
src/area-label.js
src/area-label.js
function getAspectRatio(textNode) { var box = textNode.getBBox(); return box.width / box.height; } export default function(area) { var x = area.x(); var y0 = area.y0(); var y1 = area.y1(); var bisectorX = d3.bisector(x).right; // Returns true if there is at least one rectangle // of the given aspect r...
JavaScript
0
@@ -1120,16 +1120,74 @@ o(this); +%0A%0A // Find largest integer scale where label would fit. %0A var
e9286911fcaa253b094eea4b532f07c31e9f3ee5
Fix calling sendError on wrong object
packages/plugins/sentry/server/middlewares/sentry.js
packages/plugins/sentry/server/middlewares/sentry.js
'use strict'; /** * Programmatic sentry middleware. We do not want to expose it in the plugin * @param {{ strapi: import('@strapi/strapi').Strapi }} */ module.exports = ({ strapi }) => { const sentryService = strapi.plugin('sentry').service('sentry'); sentryService.init(); const sentry = sentryService.getInst...
JavaScript
0
@@ -492,16 +492,23 @@ sentry +Service .sendErr
1b20817ec427105dbe35233676529b618421ed1f
fix question module value bug on add question
src/public/assets/js/init.js
src/public/assets/js/init.js
// Linkable table rows // Source: http://stackoverflow.com/a/12089140 $('tr').on("click", function() { if($(this).data('href') !== undefined){ document.location = $(this).data('href'); } }); $(function () { $('[data-toggle="tooltip"]').tooltip() }); /** * Clone first table row, clear all input valu...
JavaScript
0.000009
@@ -488,16 +488,49 @@ d('input +%5Bname!=%22questions%5B%5C'module%5C'%5D%5B%5D%22%5D ').val('
b782419616887f3fed68b7cc7a2f49e761f54002
Update config.js
config/config.js
config/config.js
/** *配置文件 */ var path = require('path'); var config = { app_name: '十年通讯录', app_description: '通讯录', app_keywords: '通讯录', cookieSecret: 'upsnail', cookiekey:'cookiename', host: 'localhost', // mongodb 配置 db: 'mongodb://snail:123465@ds059938.mongolab.com:59938/upsnail', // redis 配置,...
JavaScript
0.000002
@@ -240,66 +240,8 @@ b: ' -mongodb://snail:123465@ds059938.mongolab.com:59938/upsnail ',%0A @@ -357,21 +357,8 @@ st:' -120.27.38.175 ',%0A @@ -506,23 +506,16 @@ pass: ' -upsnail '%0A @@ -552,8 +552,9 @@ config; +%0A
15c1d5b6697731157fc8d0869ffdc73498f7b6f8
Change message to Hello there
api/controllers/hello_world.js
api/controllers/hello_world.js
/*jslint node: true */ 'use strict'; /* 'use strict' is not required but helpful for turning syntactical errors into true errors in the program flow http://www.w3schools.com/js/js_strict.asp */ /* Modules make it possible to import JavaScript files into your application. Modules are imported using 'require' state...
JavaScript
0.000001
@@ -1567,16 +1567,22 @@ t('Hello + there , %25s!',