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
31f8f1f1b0e0db9e90f13c472df94ca188725ee3
Add mfRange in preferences
defaultOptions/mass.js
defaultOptions/mass.js
define(function () { return { "options": { "minimalHeight": 0, "widthTop": 0.1, "widthBottom": 0.2, "zone": { "low": -0.5, "high": 4.5 }, "mfRange":"C0-30 H0-60 N0-5 O0-10 F0-3 Cl0-3", "maxRes...
JavaScript
0
@@ -265,38 +265,52 @@ %22C0- -3 +10 0 H0- -6 +20 0 N0- -5 +10 O0-10 +S0-5 F0- -3 +5 Cl0- -3 +5 Br0-5 %22,%0A
52b0c509ccd701ba8758c310d4979b5eb20fb7b9
add debug logging (DEBUG=refocus:pubsub:elapsed) (#1144)
realtime/pubSubStats.js
realtime/pubSubStats.js
/** * Copyright (c) 2019, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * /realtime/pubSubStats.js */ const activityLogType = 'pubsub'; const globalKe...
JavaScript
0
@@ -265,16 +265,74 @@ .js%0A */%0A +const debug = require('debug')('refocus:pubsub:elapsed');%0A const ac @@ -2045,46 +2045,155 @@ ;%0A -if (obj.hasOwnProperty('updatedAt')) %7B +let updatedAtFromObj;%0A let nameFromObj;%0A if (obj.hasOwnProperty('updatedAt')) %7B%0A updatedAtFromObj = obj.updatedAt;%0A na...
18b705e3d0be7a01410b72f2f9468288069ec13f
Add numbers (favorites, likes, comments) to posts on MyPostsToolPage
src/pages/tools/my-posts-tool.js
src/pages/tools/my-posts-tool.js
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
JavaScript
0
@@ -1500,16 +1500,58 @@ ensor';%0A +import Icon from '../../components/icon';%0A %0A%0Aconst @@ -3621,23 +3621,71 @@ able -%22 key=%7Bindex%7D%3E%0A + layout layout-align_justify%22 key=%7Bindex%7D%3E%0A %3Cdiv%3E%0A @@ -3781,16 +3781,799 @@ %3C/Link%3E%0A + %3C/div%3E%0A %...
add2bb15aa38db9d538e68a6f74ffa7a0a2b7f12
Update videos.js
demo/demoApp/videos.js
demo/demoApp/videos.js
(function () { "use strict"; window.App.videos = [ { title: 'Teenage Mutant Ninja Turtles', url: 'http://fs.to/get/dl/6jw62sx93srfw13ejj1l2j2c6.0.521872670.0.1414844737/Teenage+Mutant+Ninja+Turtles+%282014%29+1080p.x264+AC3.mkv', type: 'vod' }, { ...
JavaScript
0
@@ -958,8 +958,9 @@ %5D;%0A%7D)(); +%0A
abe9482a3e33c4114fad2233e53200e578e69bb6
Fix error handling
deploy/deploy-utils.js
deploy/deploy-utils.js
const path = require("path"); const homedir = require("os").homedir(); const fs = require("fs"); const spawn = require("child_process").spawn; const execFile = require("child_process").execFile; const { Subject, of, bindCallback, throwError } = require("rxjs"); const { map, mergeMap } = require("rxjs/operators"); expo...
JavaScript
0.000007
@@ -633,38 +633,22 @@ subject. -throwError(%0A +error( new Erro @@ -693,25 +693,16 @@ onfPath) -%0A );%0A @@ -727,22 +727,17 @@ subject. -throwE +e rror(err @@ -945,22 +945,25 @@ -throwE +subject.e rror(%0A
91808d5900804bf3d3bd8b8104c117f9f3dd17e6
check if auth is null
desktop-site/client.js
desktop-site/client.js
import 'babel-core/polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import useScroll from 'scroll-behavior/lib/useStandardScroll'; import configureStore from 'commons/redux/store'; import configureRo...
JavaScript
0.00032
@@ -1094,16 +1094,34 @@ ).auth;%0A + if (auth) %7B%0A // 2 @@ -1171,16 +1171,18 @@ gic%0A + for (var @@ -1252,24 +1252,26 @@ -line%0A + const role = @@ -1288,24 +1288,26 @@ s%5Bi%5D;%0A + + if (role.typ @@ -1335,16 +1335,18 @@ + return;%0A @@ -1341,16 +1341,26 @@ r...
c8033ca959df0cc0b3702c3974cc5763b2fe93fe
fix CWD determination
devserver/devserver.js
devserver/devserver.js
/** * Custom development server with hot reload functionality using Babel * * @package: KPC client * @author: pospi <sam@everledger.io> * @since: 2016-09-08 * @flow */ const path = require('path'); const webpack = require('webpack'); const express = require('express'); const serveStatic = require('serve-sta...
JavaScript
0.000001
@@ -737,16 +737,18 @@ cess.cwd +() , WEBPAC
c344d60d5f8412fffb912588f7e3dcf19d5b8f26
use computed prop (which uses caching) instead of calling the fn directly
src/shared/getComponentOption.js
src/shared/getComponentOption.js
import { isFunction, isObject } from '../utils/is-type' import { defaultInfo } from './constants' import { merge } from './merge' import { inMetaInfoBranch } from './meta-helpers' export function getComponentMetaInfo (options = {}, component) { return getComponentOption(options, component, defaultInfo) } /** * Ret...
JavaScript
0
@@ -1135,16 +1135,27 @@ const %7B + $metaInfo, $option @@ -1181,16 +1181,16 @@ mponent%0A - %0A if (c @@ -1312,165 +1312,291 @@ -let data = $options%5BkeyName%5D%0A%0A // if option is a function, replace it with it's result%0A if (isFunction(data)) %7B%0A data = data.call(component)%0A %7D +/...
6465808cdac6ea592bcbba2b7816309b6d277c01
Insert role wildcard into beginning of role list
role_manager.js
role_manager.js
/** Role Manager Middleware @description Provides middleware that can be inserted into a router that serves as an access level gateway for deciding if a user can retrieve the given content. Must be run *after* the Verify Authtoken middleware so that the current user's role is set properly. @author tyl...
JavaScript
0.000001
@@ -571,26 +571,117 @@ %7B%0A -this.roles = +// be sure to add the wildcard to the beginning of the roles list%0A this.roles = _.union(RoleWildcard, roles +) ;%0A%7D%0A
b16c9776d4401d0a218a05a1f7ea281f7fadb711
Update typewriter.min.js
dist/typewriter.min.js
dist/typewriter.min.js
const TYPEWRITER_MODE_DEFAULT=0,TYPEWRITER_MODE_CORRECTION=1,TYPEWRITER_MODE_ARRAY=2;!function(){var t=function(o,s){function i(){h.cursor.classList.contains(h.options.cursor.no_blink_class)||h.cursor.classList.add(h.options.cursor.no_blink_class)}function e(){h.cursor.classList.contains(h.options.cursor.no_blink_class...
JavaScript
0.000001
@@ -78,16 +78,17 @@ ARRAY=2; + !functio @@ -5223,8 +5223,9 @@ r=t)%7D(); +%0A
0edc4b4706f71d43273812a1ed36f2f9b81958cf
update index.js
routes/index.js
routes/index.js
var os = require("os"); var npm = require("../npm"); var express = require("express"); var passport = require("passport"); var router = express.Router(); var config = require(hb.config); router.get("/", function (req, res, next) { if (req.user) { next(); } else { req.session.referer = "/"; ...
JavaScript
0
@@ -1,12 +1,36 @@ +var fs = require(%22fs%22);%0A var os = req @@ -1108,16 +1108,149 @@ %7D;%0A%0A + var temp = fs.readFileSync(%22/sys/class/thermal/thermal_zone0/temp%22);%0A var cputemp = ((temp/1000).toPrecision(3)) + %22%C2%B0C%22;%0A %0A upti @@ -1672,16 +1672,42 @@ mem: mem +,%0A cput...
1842488d16b230efc1a60de20d5bb26692f3b744
Update items.js
routes/items.js
routes/items.js
require('./db'); initDB(); var USE_FASTCACHE = false; var http = require('http'); //Create and populate or delete the database. exports.dbOptions = function(req, res) { var option = req.params.option.toLowerCase(); if(option === 'create'){ cloudant.db.create('items', function(err, body){ ...
JavaScript
0.000001
@@ -41,20 +41,19 @@ CACHE = -fals +tru e;%0A%0Avar
c6a7e41db561490cbb630da0de378515ffdfa57a
Fix login redirect
routes/login.js
routes/login.js
var bcrypt = require('bcrypt'); var LocalStrategy = require('passport-local').Strategy; var passport = require('passport'); var request = require('request'); var LOGIN_URL = process.env.LANDLINE_API + '/teams'; var SALT = process.env.SALT; passport.use(new LocalStrategy({ usernameField: 'name', passwordField:...
JavaScript
0.000001
@@ -1397,16 +1397,8 @@ : '/ -settings ',%0A
e337559be3ffda38f22bec6b066dd2a8014d9bd9
Add error handling
routes/media.js
routes/media.js
module.exports = function(router) { 'use strict'; var Media = require('../models/Media'); router.route('/media') // get all the media (accessed at GET http://localhost:port/api/media) .get(function(req, res) { Media.find(function(err, models) { if (err) res.send(err); res....
JavaScript
0.000002
@@ -255,24 +255,25 @@ , models) %7B%0A +%0A if ( @@ -276,16 +276,18 @@ if (err) + %7B %0A @@ -296,32 +296,61 @@ res.send(err);%0A + return;%0A %7D%0A%0A res.json
c4f3f03cc6f50301b3f1f78d73745c6e26a1e90d
Add route for creating piles
routes/piles.js
routes/piles.js
var express = require('express'); var pg = require('pg'); var router = express.Router(); var conString = "postgres://localhost:5432/freestr"; /* GET piles listing. */ router.get('/', function(req, res, next) { var results = []; pg.connect(conString, function(err, client, done) { if (err) { done(); ...
JavaScript
0
@@ -558,16 +558,656 @@ );%0A%7D);%0A%0A +router.post('/', function(req, res, next) %7B%0A var results = %5B%5D;%0A var data = %7Bname: req.body.name, location: req.body.location, items: req.body.number_of_items%7D;%0A%0A pg.connect(conString, function(err, client, done) %7B%0A if (err) %7B%0A done();%0A ...
ba95af42e7877e1c2bd563b0bed83a07a35ae536
fix stats for references
routes/stats.js
routes/stats.js
var express = require("express"), // bodyParser = require("body-parser"), async = require("async"), error = require("../middlewares/error.js"), Template = require("../models/templates.js"), Reference = require("../models/references"), Verify = require("./verify"), router = express.Router(); router.route(...
JavaScript
0
@@ -754,16 +754,17 @@ eference +s %22 %7D, %7B $ @@ -788,16 +788,17 @@ eference +s %22, count @@ -892,173 +892,32 @@ -Reference.populate(results, %7B path: %22_id%22 %7D, function(err, reference) %7B%0A console.log(reference);%0A callback(null, reference);%0A %7D) +callbac...
b425679f4c406b18dd191360e95fafa8d29d2f33
add some comment
routes/token.js
routes/token.js
var express = require('express'); var request = require('request'); var sign=require('../libs/sign');//微信提供的签名方法 var config=require('../libs/config.json');//配置文件 var router = express.Router(); /* 最简单的获取签名信息 */ router.get('/', function(req, res) { request('https://api.weixin.qq.com/cgi-bin/token?grant_type=client_cred...
JavaScript
0
@@ -1057,16 +1057,58 @@ %0A%7D);%0A%0A +/* %E6%AD%A3%E5%BC%8F%E7%9A%84%E6%BC%94%E7%A4%BA%E4%BB%A3%E7%A0%81%EF%BC%8C%E5%8C%85%E6%8B%AC%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF%E7%94%9F%E6%88%90%E7%AD%BE%E5%90%8D%EF%BC%8C%E5%AE%A2%E6%88%B7%E7%AB%AF%E9%80%9A%E8%BF%87%E7%AD%BE%E5%90%8D%E4%BD%BF%E7%94%A8%E5%BE%AE%E4%BF%A1API%...
602dad4711044999a45e53b6b04d2b5e63c872e5
Refactor trace controller
routes/trace.js
routes/trace.js
const express = require('express'); const validator = require('validator'); const HttpStatus = require('http-status-codes'); const router = express.Router(); const Executor = require('../models/executor'); const Ip2Location = require('../models/ip2location'); const Terminator = require('../models/terminator'); route...
JavaScript
0
@@ -853,16 +853,77 @@ false;%0A + const dataQueue = %5B%5D;%0A let destinationHolder = null;%0A%0A cons @@ -2046,33 +2046,40 @@ -if (!isSocketConnected) %7B +destinationHolder = destination; %0A @@ -2079,32 +2079,35 @@ on;%0A +%7D)%0A Terminator.t @@ -2098,70 +2098,146 @@ ...
e27262ea0f97c1858b8bd050869eb904df0fb4c4
remove link
routes/users.js
routes/users.js
var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource', res.send({a:1, b:2, c:3}), res.send(<A HREF= "index.js"> index </A>); }); module.exports = router;
JavaScript
0.000001
@@ -194,51 +194,8 @@ :3%7D) -, res.send(%3CA HREF= %22index.js%22%3E index %3C/A%3E) ;%0A%7D)
43cb8fcdd7661b34dceef7de360e2d962aedad9b
order trips by start date
routes/users.js
routes/users.js
"use strict"; const express = require('express'); const router = express.Router(); module.exports = (knex) => { router.get("/:user_id", (req, res) => { let u_id = req.params.user_id knex .select("*") .from("users") .where('id', u_id) .then((results) => { res.json(results); ...
JavaScript
0.000001
@@ -509,32 +509,69 @@ user_id', u_id)%0A + .orderBy('trip_start', 'desc')%0A .then((res
f56d6938219e274d86e826a8852d4d661bf082a9
add new rules
rules/import.js
rules/import.js
'use strict' module.exports = { plugins: [ 'import' ], settings: { 'import/resolver': { node: { extensions: [ '.js', '.json' ], }, }, 'import/extensions': [ '.js', '.json' ], 'import/core-modules': [], 'import/ignore': [ 'node_modules', '\\.(coffee|scss|css|less|...
JavaScript
0.000001
@@ -899,32 +899,62 @@ mmonjs': 'off',%0A + 'import/no-cycle': 'off',%0A 'import/no-d
0f6e38848f114ffe85e59a3c472c22c40faadd95
Add example configs for projects with mkdir -p dirs and projects with repo paths
sampleConfig.js
sampleConfig.js
var global = { host: 'http://subdomain.yourdomain.com', port: 8461, secretUrlSuffix: 'putSomeAlphanumericSecretCharsHere' }; var projects = [ { repo: { owner: 'yourbitbucketusername', slug: 'your-bitbucket-private-repo-name', url: 'git@bitbucket.org:yourbitbucketusername/your-bitbucket-pr...
JavaScript
0
@@ -884,36 +884,491 @@ '/home/youruser/ -html +some_other/directory/that_may/not_exist_yet/'%0A %7D%0A %7D,%0A %7B%0A repo: %7B%0A owner: 'yourbitbucketusername',%0A slug: 'your-bitbucket-repo-with-subdir',%0A url: 'git@bitbucket.org:yourbitbucketusername/your-bitbucket-repo-with-subdir.git',%0A...
8359ba4cfe38402999f21770e37045cedd5c5341
Change the background color for incident
packages/frontend/src/routes/Incidents/containers/IncidentsContainer.js
packages/frontend/src/routes/Incidents/containers/IncidentsContainer.js
import React, { PropTypes } from 'react' import ReactDOM from 'react-dom' import { connect } from 'react-redux' import { fetchIncidents, postIncident, updateIncident, deleteIncident } from '../modules/incidents' // import IncidentDialog from 'components/IncidentDialog' import IncidentDialog from 'components/ComponentDi...
JavaScript
0.000011
@@ -2656,16 +2656,44 @@ 388e3c'%0A + let bgColor = '#ffffff'%0A retu @@ -2965,16 +2965,17 @@ style=%7B%7B + color: s @@ -2984,16 +2984,46 @@ tusColor +, 'background-color': bgColor %7D%7D%3Echeck
1a6b43fe45e58b38bc01518541b272df6300dc1a
Add console.log feedback to migration, fix a bug
packages/lesswrong/server/migrations/2019-05-01-migrateSubscriptions.js
packages/lesswrong/server/migrations/2019-05-01-migrateSubscriptions.js
import { newMutation } from 'meteor/vulcan:core'; import { registerMigration } from './migrationUtils'; import { forEachDocumentBatchInCollection } from '../queryUtil'; import Users from 'meteor/vulcan:users'; import { Comments } from '../../lib/collections/comments/collection.js'; import { Posts } from '../../lib/coll...
JavaScript
0
@@ -527,16 +527,202 @@ %3E %7B%0A +let numCommentSubscriptions = 0;%0A let numPostSubscriptions = 0;%0A let numGroupSubscriptions = 0;%0A let numUserSubscriptions = 0;%0A let numTotalSubscriptions = 0;%0A %0A await forEachD @@ -744,24 +744,24 @@ ollection(%7B%0A - collec @@ -1778,32 +17...
bd6222916f34f96f16167ecfca900ad50ccf4c14
fix bug in default badge, require type
js/collections/VerifiedMods.js
js/collections/VerifiedMods.js
import _ from 'underscore'; import { Collection } from 'backbone'; import app from '../app'; import Mod from '../models/VerifiedMod'; export default class extends Collection { constructor(...args) { super(...args); this.data = {}; } model(attrs, options) { return new Mod(attrs, options); } mode...
JavaScript
0
@@ -822,16 +822,75 @@ isting.%0A + * If none of the moderators are verified, return false.%0A * @pa @@ -1043,16 +1043,36 @@ return + !!modelWithBadge && modelWi @@ -1119,24 +1119,736 @@ response) %7B%0A + /* The data is expected to be delivered in the following format. There must be at least one%0A ...
9f63c25d545a1448411ee53c67f1fc7f2b9c9bbb
Update single.js test
other/single.js
other/single.js
// this is just for speical testing of single object var jsroot = require("jsroot"); var fs = require("fs"); var filename = "http://jsroot.gsi.de/files/histpainter6.root", itemname = "draw_contlst1"; function MakeTest(file, item, callback) { file.ReadObject(item).then(obj => { jsroot.MakeSVG( { object...
JavaScript
0.000001
@@ -45,17 +45,16 @@ e object - %0A%0Avar js @@ -214,64 +214,105 @@ ion -MakeTest(file, item, callback) %7B%0A file.ReadObject(item +TestEve() %7B%0A jsroot.HttpRequest(%22http://jsroot.gsi.de/files/geom/evegeoshape.json.gz%22, %22object%22 ).th @@ -336,33 +336,32 @@ jsroot.MakeSVG( - %7B object: obj, w @@...
6d24b258e6822a5c6e5fb75b56f14821097bdc44
add extension uninstall redirect script
chrome-specific/background.js
chrome-specific/background.js
/* eslint-disable */ chrome.browserAction.onClicked.addListener(function(tab) { chrome.browserAction.setPopup({ popup: 'popup.html', }); });
JavaScript
0
@@ -134,12 +134,91 @@ ',%0A%09%7D);%0A%7D);%0A +%0Achrome.runtime.setUninstallURL('https://siddharth31.typeform.com/to/Z8AUHk');%0A
c7cbede3650c23f134096e709135fb32c33ee403
Simplify Elements example by using Math.max
example/elements.js
example/elements.js
/* tags: basic, lines <p> This example demonstrates how you can use `elements` to draw lines. </p> */ const regl = require('../regl')() regl.clear({ color: [0, 0, 0, 1], depth: 1 }) var lineWidth = 3 if (lineWidth > regl.limits.lineWidthDims[1]) { lineWidth = regl.limits.lineWidthDims[1] } regl({ frag: `...
JavaScript
0
@@ -205,71 +205,19 @@ h = -3%0Aif (lineWidth %3E regl.limits.lineWidthDims%5B1%5D) %7B%0A lineWidth = +Math.max(3, reg @@ -241,18 +241,17 @@ hDims%5B1%5D -%0A%7D +) %0A%0Aregl(%7B
3f8eb60ed52f60441247eea29293c9313ada17c2
Add cvApp module
app/js/app.js
app/js/app.js
app.js
JavaScript
0.000001
@@ -1,6 +1,85 @@ -app.js +'use strict';%0A%0Avar cvApp = angular.module('cvApp', %5B'ngRoute', 'cvAppControllers'%5D);%0A
4ee36f459f55ff2aca7c6942b8498ef852ff3e41
Fix exception caused by incorrect file ordering
renderer/lib/migrations.js
renderer/lib/migrations.js
/* eslint-disable camelcase */ module.exports = { run } var fs = require('fs-extra') var path = require('path') var semver = require('semver') var config = require('../../config') // Change `state.saved` (which will be saved back to config.json on exit) as // needed, for example to deal with config.json format ch...
JavaScript
0.000022
@@ -359,36 +359,25 @@ ate) %7B%0A // -Migration: r +R eplace %22%7B ve @@ -981,36 +981,25 @@ ash%0A%0A // -Migration: r +R eplace torre @@ -1423,35 +1423,24 @@ onsole.log(' -migration: replacing to @@ -2026,20 +2026,9 @@ // -Migration: r +R epla @@ -2107,19 +2107,8 @@ og(' -migration: repl @@ -2622,...
4d98e85b8e3387b0c3c38ff1fb33f58d2905c909
update example producer file
example/producer.js
example/producer.js
/** * XadillaX created at 2015-12-19 23:37:40 With ♥ * * Copyright (c) 2015 Souche.com, all rights * reserved. */ "use strict"; var Producer = require("../lib/producer"); var producer = new Producer( "PID", "access_key", "secret_key"); console.log("Connecting to Aliyun ONS..."); producer.start(funct...
JavaScript
0
@@ -494,16 +494,30 @@ i + %22!%22, + 86400 * 1000, functio
cea96bcad0ac73156fc303118cf316470d03cf9c
Update package-test.js
package-test.js
package-test.js
const package = require('./package.json'); const packageJson = require('package-json'); const SAFE_TIME = 1000 * 1 * 60 * 60 * 24 * 7; //7days const EXCEPTIONS = ['canvas', 'ethereum-ens', 'webpack']; const CUSTOM_DIST = { ['babel-core']: 'bridge' }; const ALL_PACKAGES = Object.assign( {}, package.dependencies, ...
JavaScript
0.000002
@@ -191,16 +191,30 @@ webpack' +, 'babel-jest' %5D;%0Aconst
d526b351a93d6069032daf4a1de1d33ff4c4c1b2
Remove dead code from Record#soundcloud
app/record.js
app/record.js
'use strict'; const Paths = require('./paths'); module.exports = class Record { constructor(id) { this.id = id; } isTrack() { return !['playlist', 'album'].includes(this.kind); } static soundcloud(hash) { var width = hash.kind == 'playlist' ? 't300x300' : 't200x200'; if (hash.tracks_uri) ...
JavaScript
0
@@ -299,89 +299,8 @@ if -(hash.tracks_uri)%0A var icon = hash.user.avatar_url.size(width);%0A else if (has @@ -1142,248 +1142,64 @@ acks -_uri) %7B%0A record.track_count = hash.track_count;%0A record.tracks_uri = hash.tracks_uri;%0A %7D%0A%0A if (hash.tracks) %7B%0A record.items = ha...
e00198615bb8f761afa5324753f92135f6bd399f
Revert "Fix for <STRIPE_ACCOUNT>"
example/src/Root.js
example/src/Root.js
import React, { PureComponent } from 'react' import { View, Platform, StyleSheet } from 'react-native' import DrawerLayout from 'react-native-drawer-layout-polyfill' import stripe from 'tipsi-stripe' import Header from './components/Header' import MenuItem from './components/MenuItem' import ApplePayScreen from './scen...
JavaScript
0
@@ -951,33 +951,32 @@ %7D)%0A%0A -const connected +stripe.setStripe Account - = +( '%3CST @@ -993,85 +993,9 @@ NT%3E' -;%0Aif (connectedAccount != '') %7B%0A stripe.setStripeAccount(connectedAccount)%0A%7D +) %0A%0Aex
bfc6f06c3023a7b98198c459d9ea2c9621503d67
Allow http and https links
ipol_demo/clientApp/js/demo.results.js
ipol_demo/clientApp/js/demo.results.js
var clientApp = clientApp || {}; var helpers = clientApp.helpers || {}; var results = clientApp.results || {}; var ddl_results, info; results.draw = function (run_response) { ddl_results = ddl.results; work_url = run_response.work_url; info = run_response.algo_info; $('.results').removeClass('di-none'); $(...
JavaScript
0
@@ -1084,16 +1084,50 @@ th('http +s://') %7C%7C file.startsWith('http:// ')) retu
77728f7eac4fcb3c832c675e31bcd46f732ee5ba
space out error text
app/routes.js
app/routes.js
"use strict"; // boilerplate includes var config = require("../config/config"), es = require("./boot").es, helpers = require("./helpers"), fs = require("fs"); // Number of reports per request for web page results and RSS results var HTML_SIZE = 10; var XML_SIZE = 50; module.exports = function(app) { /...
JavaScript
0.999856
@@ -1173,36 +1173,47 @@ sole.log(%22Noooo! -%22 +%5Cn%5Cn%22 + err );%0A +%0A res.status @@ -2069,28 +2069,39 @@ .log(%22Noooo! -%22 +%5Cn%5Cn%22 + err );%0A +%0A res.st @@ -2912,17 +2912,27 @@ (%22Noooo! -%22 +%5Cn%5Cn%22 + err );%0A @@ -3505,17 +3505,20 @@ %22Nooooo! - +%5Cn%5Cn %22 + err)...
a7bd88a999901c1e58a02a0366966dee7b0594a5
Enable file rename test on Linux
test/events/parent-rename.test.js
test/events/parent-rename.test.js
const fs = require('fs-extra') const {Fixture} = require('../helper') const {EventMatcher} = require('../matcher') // These cases interfere with the caches on MacOS, but other platforms should handle them correctly as well. describe('when a parent directory is renamed', function () { let fixture, matcher let orig...
JavaScript
0
@@ -1009,23 +1009,16 @@ batches - %5Elinux ', async
091b146c0b6936f91810ac3f0cb3fa7a356f32fc
Fix type name of initial content element of new sections
entry_types/scrolled/package/src/editor/models/Chapter.js
entry_types/scrolled/package/src/editor/models/Chapter.js
import Backbone from 'backbone'; import { configurationContainer, entryTypeEditorControllerUrls, failureTracking, delayedDestroying, ForeignKeySubsetCollection } from 'pageflow/editor'; export const Chapter = Backbone.Model.extend({ mixins: [ configurationContainer({ autoSave: true, includ...
JavaScript
0.000074
@@ -1062,17 +1062,9 @@ e: ' -editableT +t extB
e8523d878ada4c932689b9de7c87cf9420849d86
Add margins to work with sticky header
client/js/hah-app/feedback.js
client/js/hah-app/feedback.js
import React from 'react' import { ReactTypeformEmbed } from 'react-typeform-embed' import injectSheet from 'react-jss' import LogoAndNavigation from '../mini-app/logo-and-navigation' import Footer from '../mini-app/components/footer' import { Desktop, Phone } from '../components/breakpoints' import Spacer from '../co...
JavaScript
0
@@ -829,34 +829,81 @@ %09%3CPhone%3E%0A%09%09%09%3Cdiv + className=%7Bclasses.feedbackPageContainerPhone%7D %3E%0A - %09%09%09%09%3CSpacer heig @@ -1323,24 +1323,73 @@ top%3E%0A%09%09%09%3Cdiv + className=%7Bclasses.feedbackPageContainerDesktop%7D %3E%0A%09%09%09%09%3CSpace @@ -1964,16 +1964,16 @@ div%3E%0A)%0A%0...
46a8e9a2845111d57cf2d94c2c37f800e280bd14
Fix search bar search
client/src/components/Page.js
client/src/components/Page.js
import PropTypes from 'prop-types' import React, {Component} from 'react' import _get from 'lodash/get' import autobind from 'autobind-decorator' import NotFound from 'components/NotFound' import {setMessages} from 'components/Messages' import API from 'api' import NProgress from 'nprogress' import 'nprogress/nprogr...
JavaScript
0.000002
@@ -2417,16 +2417,356 @@ text) %7B%0A +%09%09// Location always has a new key. In order to check whether the location%0A%09%09// really changed filter out the key.%0A%09%09const locationFilterProps = %5B'key'%5D%0A%09%09const nextPropsFilteredLocation = Object.without(nextProps.location, ...locationFilterProps)%0A%09%...
51e9495dceda86c95a4d281cfef764dde5530e3c
Use ramda's mergeAll instead of spread syntax
app/server.js
app/server.js
import express from 'express' import path from 'path' import {match} from 'react-router' import compression from 'compression' import appConfig from './config' import crypto from 'crypto' import Promise from 'bluebird' import bodyParser from 'body-parser' import DB from './db' import CourseRoutes from './routes/course'...
JavaScript
0
@@ -47,16 +47,47 @@ 'path'%0A +import %7BmergeAll%7D from 'ramda'%0A import %7B @@ -4902,13 +4902,41 @@ e = -%7B...( +mergeAll(%5BappState.currentState, buil @@ -4991,38 +4991,10 @@ ame) +%5D ) -, ...(appState.currentState)%7D %0A
7c41cf9dc0aaf379afd80cafb03d1cea0aa9737c
update config format
app/server.js
app/server.js
'use strict'; var P = require('bluebird'); var minimist = require('minimist'); var path = require('path'); var fs = require('fs'); var forever = require('forever'); var child_process = require('child_process'); var pomeloLogger = require('pomelo-logger'); var logger = pomeloLogger.getLogger('memdb', __filename); var ...
JavaScript
0.000001
@@ -4170,45 +4170,8 @@ );%0A%0A - var shards = conf.shards %7C%7C %7B%7D;%0A%0A @@ -4208,16 +4208,16 @@ daemon;%0A + %0A if( @@ -4658,16 +4658,36 @@ onfig = +conf.shards && conf. shards%5Bs @@ -4819,32 +4819,60 @@ it(1);%0A %7D +%0A delete conf.shards; %0A%0A if(isD @@ -5321,206...
987f24225d8bebb6c2079d0fc202d5331d32d242
add song change
public/javascripts/angularApp.js
public/javascripts/angularApp.js
var app = angular.module('djq', ['ui.router']) app.factory('users', ['$http', function($http) { var o = { users: [] }; o.getAll = function(){ return $http.get('/users').success(function(data) { angular.copy(data, o.users); })}; o.addDj = function(dj){ return $http.post('/users/add', dj).success(functio...
JavaScript
0.000003
@@ -3060,148 +3060,15 @@ ion( -) %7B%0A%09%09%09var song = %7Btitle: %09%09$scope.title,%0A%09%09%09%09%09 %09length: %09$scope.length,%0A%09%09%09%09%09%09url: %09%09$scope.url,%0A%09%09%09%09%09%09thumbnail: %09$scope.thumbnail%0A%09%09%09%7D;%0A +song) %7B %0A%09%09%09 @@ -3133,32 +3133,8 @@ '';%0A -%09%09%09$sc...
11488df27421a4300d921a6f8a5a3e8f672fb158
Return the rejected Promise (#12)
index.js
index.js
'use strict'; const fs = require('fs'); const pify = require('pify'); const isExe = (mode, gid, uid) => { if (process.platform === 'win32') { return true; } const isGroup = gid ? process.getgid && gid === process.getgid() : true; const isUser = uid ? process.getuid && uid === process.getuid() : true; return B...
JavaScript
0.999947
@@ -510,16 +510,23 @@ g') %7B%0A%09%09 +return Promise.
d388d1ee4255955b7a26e5465afd5c0e803105fd
Fix googleapis version lookup
provider/googleProvider.js
provider/googleProvider.js
'use strict'; const path = require('path'); const fs = require('fs'); const os = require('os'); const _ = require('lodash'); const google = require('googleapis').google; const packageJson = require('../package.json'); const constants = { providerName: 'google', }; class GoogleProvider { static getProviderName(...
JavaScript
0.000001
@@ -173,16 +173,22 @@ %0Aconst p +luginP ackageJs @@ -219,16 +219,199 @@ .json'); + // eslint-disable-line import/newline-after-import%0Aconst googleApisPackageJson = require(require.resolve('googleapis/package.json')); // eslint-disable-line import/no-dynamic-require %0A%0Aconst @@ -820,32 +820,38 @@ luginVersio...
7dc55910c0b6c203fbb03d95bf957dd3d6517d6b
Change variable names from length to offset to be more accurate
lilt.js
lilt.js
/*! * lilt.js v0.1 (https://github.com/jimmylorunning/lilt.js) * Copyright (c) 2015 * Licensed under MIT (https://github.com/jimmylorunning/lilt.js/LICENSE) */ (function( $ ) { $.fn.liltMoveShadow = function(options) { return this.each(function() { console.log('hahaha'); var settings = $.extend...
JavaScript
0.000001
@@ -259,37 +259,8 @@ %7B%0A%0A - console.log('hahaha');%0A @@ -307,22 +307,22 @@ izontal- -length +offset ': %22-20p @@ -341,33 +341,34 @@ 'blur-radius': %22 -5 +40 px%22,%0A 'sp @@ -382,17 +382,17 @@ dius': %22 -5 +0 px%22,%0A @@ -446,17 +446,17 @@ ness': %22 -5 +7 %22%0A @@ -489,2...
2fbad002e2d9918f9ac4d0c9485c23754c48e68d
Add "bright" ansi escape code variations to deansi.
public/javascripts/lib/deansi.js
public/javascripts/lib/deansi.js
var Deansi = { // http://ascii-table.com/ansi-escape-sequences.php // http://cukes.info/gherkin/api/ruby/latest/Gherkin/Formatter/AnsiEscapes.html styles: { '0': null, '1': 'bold', '4': 'underscore', '30': 'black', '31': 'red', '32': 'green', '33': 'yellow', '34': 'blue', '3...
JavaScript
0
@@ -380,12 +380,201 @@ ': ' -grey +black bright',%0A '31': 'red bright',%0A '32': 'green bright',%0A '33': 'yellow bright',%0A '34': 'blue bright',%0A '35': 'magenta bright',%0A '36': 'cyan bright',%0A '37': 'white bright ',%0A
d1270a98860859771e80d87083c784908a1f1d95
print lat lng
index.js
index.js
var express = require('express'); var bodyParser = require('body-parser') var app = express(); var sqlite3 = require('sqlite3').verbose(); var dbName = './trek.db'; var db = new sqlite3.Database(dbName); var request = require('request'); var googleMapsApi = 'http://maps.googleapis.com/maps/api/geocode/json?address=' a...
JavaScript
0.999999
@@ -967,16 +967,51 @@ q.body); +%0A%09var location;%0A%09var lat;%0A%09var lng; %0A%0A%09reque @@ -1135,24 +1135,128 @@ %0A%09%09%09 -console.log(body +location = body.results.geometry.location;%0A%09%09%09lat = location.lat;%0A%09%09%09lng = location.lng;%0A%09%09%09console.log(lat + %22, %22 + lng ) //
3a3f80b405c1b6034a76bc93cf1774e79c35da90
Correct count for test
test/test-refugee-counts-model.js
test/test-refugee-counts-model.js
var assert = require('assert'); var should = require('should'); var fs = require('fs'); var moment = require('moment'); var RefugeeCountsModel = require('../src/js/model/refugee-counts-model.js'); // for some reason the "total values" // http://popstats.unhcr.org/en/asylum_seekers_monthly // displays invalid sums /...
JavaScript
0.000001
@@ -1188,11 +1188,11 @@ t, 1 -129 +248 );%0A%09
a9305037939052f8305248a1f518711d4e81d08e
Update colors-almost-equal threshold
test/unit/ColorConversionTests.js
test/unit/ColorConversionTests.js
const {test, Test} = require('tap'); const {rgbToHsv, hsvToRgb} = require('../../src/util/color-conversions'); Test.prototype.addAssert('colorsAlmostEqual', 2, function (found, wanted, message, extra) { /* eslint-disable no-invalid-this */ message += `: found ${JSON.stringify(Array.from(found))}, wanted ${JSO...
JavaScript
0.000004
@@ -588,24 +588,111 @@ gth; i++) %7B%0A + // smallest meaningful difference--detects changes in hue value after rounding%0A if ( @@ -727,13 +727,19 @@ %5D) %3E - 1e-3 += 0.5 / 360 ) %7B%0A
d889a1500bdf6824a06c00f9a0304ec201be31d0
Make sure events are working correctly on front page
public/javascripts/views/home.js
public/javascripts/views/home.js
define([ 'zepto', 'Underscore', 'Backbone', 'models/expenses', 'text!../../tpl/home.html' ], function ($, _, Backbone, Expenses, template) { var HomeView = Backbone.View.extend({ events:{ "click #get":"refresh" }, initialize: function...
JavaScript
0.000001
@@ -264,16 +264,181 @@ refresh%22 +,%0A %22click tr%22: %22navigate_row%22%0A%0A %7D,%0A navigate_row: function (event)%7B%0A $(event.currentTarget).find('a')%5B0%5D.click(); %0A @@ -437,33 +437,32 @@ %0A %7D,%0A -%0A init @@ -617,11 ...
75d3ba66dbc6d3173fda5d1399f7754b5730c0f0
Update nightwatch.conf.js
nightwatch.conf.js
nightwatch.conf.js
const { SAUCE_USERNAME, SAUCE_ACCESS_KEY, TRAVIS_JOB_NUMBER, TRAVIS_BRANCH, TRAVIS_PULL_REQUEST } = process.env; module.exports = { src_folders: "test/browser", output_folder: "test_report", custom_commands_path: "test/nightwatch_custom", test_workers: { enabled: true, workers: "auto",...
JavaScript
0.000001
@@ -250,84 +250,8 @@ %22,%0A%0A - test_workers: %7B%0A enabled: true,%0A workers: %22auto%22,%0A %7D,%0A%0A @@ -2445,9 +2445,9 @@ 10.1 -4 +5 %22,%0A @@ -2644,9 +2644,9 @@ 10.1 -3 +4 %22,%0A
dbcca58e83bf0c5927b5b4a74c79ad94800c595a
Correct sample encoding
index.js
index.js
var _ = require('lodash-node'), zlib = require('zlib'), spawn = require('child_process').spawn; exports.record = function (options, callback) { var recording = ''; var defaults = { sampleRate: 16000, compress: false }; if (_.isFunction(options)) callback = options; options = _...
JavaScript
0.00001
@@ -384,11 +384,11 @@ = ' -sox +rec ';%0A @@ -417,83 +417,364 @@ -q', + // show no progress %0A '- -b +r ', + '16 -', +000', // sample rate %0A '- -d','-t','wav','- +c', '1', // channels%0A '-e', 'signed-integer ', -%0A - 'rate +// sample encoding%0...
156e28952ded6c3d0a73b1eb0a6cdcfadee07b4c
row.length can be <= limit
index.js
index.js
'use strict'; module.exports = maxLen; function maxLen (string, warningLength, errorLength) { return string.split('\n').map(function (row, index) { var line = index + 1; if (row.length < warningLength) { return false; } if (row.length < errorLength) { return { fatal: false, ...
JavaScript
0.999995
@@ -191,16 +191,17 @@ length %3C += warning @@ -256,16 +256,17 @@ length %3C += errorLe
9a2f96c6741bf824220a1d272b39c1b3792f641a
Optimize processing of _is_capacity_full to execute earlier; Write annotations
index.js
index.js
var ___ = '___send-to-shoulder___'; var _ = '_hole_'; var log = 1 ? console.log : function(){} ; var purry = module.exports = function(f){ if (f.length === 0) throw new Error('purry is not compatible with variable-argument functions.') var initial_stock = []; var i = f.length; while(i > 0){ initial_stock....
JavaScript
0.000001
@@ -754,16 +754,71 @@ holes)%7B%0A + var _is_capacity_full = capacity === _capacity_used;%0A return @@ -830,16 +830,16 @@ tion()%7B%0A - var @@ -955,29 +955,19 @@ return -capacity === +_is _capacit @@ -960,36 +960,36 @@ rn _is_capacity_ -used +full ?%0A f.app @@ -2215,32 +2215,124 @@ ecution...
77923d1a6037b9812cfb1f13b80f1db246a7a5df
Add URI fragment decoding in order to allow usage of PEM content in there too. (it was originally meant only for hexadecimal content which needs no encoding)
index.js
index.js
/*jshint browser: true, strict: true, globalstrict: true, indent: 4, immed: true, latedef: true, undef: true, regexdash: false */ /*global Hex, Base64, ASN1 */ "use strict"; var maxLength = 10240, reHex = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, tree = id('tree'), dump = id('dump'), wantHex = id('wantHe...
JavaScript
0
@@ -2610,29 +2610,264 @@ -area.value = +// Firefox is not consistent with other browsers and return an%0A // already-decoded hash string so we risk double-decoding here,%0A // but since %25 is not allowed in base64 nor hexadecimal, it's ok%0A area.value = decodeURIComponent( hash.sub @@...
624f88f8d82f5a343cc42d85a9d5cf9b5b6d6a11
Update app.js
assets/app.js
assets/app.js
--- --- {% include_relative _js/index.js %}
JavaScript
0.000002
@@ -2,16 +2,21 @@ --%0A---%0A%0A +%3C!-- %7B%25 inclu @@ -42,8 +42,13 @@ ex.js %25%7D + --%3E%0A
11e305447ee9001d130f0876a45019646e661998
fix missing labels property on exported models
index.js
index.js
var conversions = require('./conversions'); var route = require('./route'); var convert = {}; var models = Object.keys(conversions); function wrapRaw(fn) { var wrappedFn = function (args) { if (args === undefined || args === null) { return args; } if (arguments.length > 1) { args = Array.prototype.slic...
JavaScript
0.000001
@@ -1344,16 +1344,110 @@ nnels%7D); +%0A%09Object.defineProperty(convert%5BfromModel%5D, 'labels', %7Bvalue: conversions%5BfromModel%5D.labels%7D); %0A%0A%09var r
95068fe0ac71efff3243cab33069fd6dc71d7e03
Add printInterpolations and scanList options
index.js
index.js
#! /usr/bin/env node const program = require('commander') const colors = require('colors') const configResolver = require('./src/configResolver') const configWriter = require('./src/configWriter') const interpolationResolver = require('./src/interpolationResolver') const hooks = require('./src/hooks') let configElemen...
JavaScript
0
@@ -722,24 +722,207 @@ m content')%0A + .option('-S, --scan-list', 'Automatically detect interpolatinos from content, and print them to stdout.')%0A .option('-I, --print-interpolations', 'Print interpolations for recipe')%0A .option('- @@ -2247,73 +2247,438 @@ s.gr -een('Typical recipe ') + '%22' + colors.cyan(c...
fdf3e01f9861b32089742676330938bf6bb208ab
use babylon, add `.file` method
index.js
index.js
/*! * babel-extract-comments <https://github.com/jonschlinkert/babel-extract-comments> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT license. */ 'use strict'; /** * Extract code comments from the given `string`. * * ```js * var extract = require('babel-extract-comments'); * e...
JavaScript
0.000001
@@ -105,16 +105,22 @@ (c) 2014 +-2018, Jon Sch @@ -130,32 +130,18 @@ kert -, contributors.%0A * Licen +.%0A * Relea sed @@ -154,17 +154,17 @@ the MIT -l +L icense.%0A @@ -183,16 +183,109 @@ rict';%0A%0A +const fs = require('fs');%0Aconst path = require('path');%0Aconst babylon = require('babylon');%0A%0A /**...
1ea3016d933248edec7179645542a458dfec3818
declare strict mode
index.js
index.js
#! /usr/bin/env node const config = require('./config.json'); const dash_button = require('node-dash-button'); // TODO: accept and register an array of button MACs const dash = dash_button(config.button.id); const util = require('util'); const _ = require('lodash'); const when = require('when'); // Twilio Credential...
JavaScript
0.00415
@@ -899,16 +899,32 @@ sage) %7B%0A + %22use strict%22;%0A if (_.
541fd81e2bee72af21c423923c4f304a9db2500a
fix processing of options
index.js
index.js
'use strict'; var Download = require('download'); var RELEASE_BASE_URL = 'http://wordpress.org/wordpress-'; var wp = require('./wp'); function getLatestVersion(requestedVersion, cb) { if (requestedVersion) { process.nextTick(function() { cb(null, requestedVersion); }) } else { wp.getLatestVer...
JavaScript
0.000001
@@ -497,36 +497,8 @@ %7B%0A -options = options %7C%7C %7B%7D;%0A%0A if ( @@ -551,24 +551,142 @@ version: + options%7D;%0A %7D%0A else if (typeof options === 'function') %7B%0A callback = options;%0A options = null;%0A %7D%0A options = options %7D;%0A %7D%0A%0A @@ -677,22 +677,23 @@ options -%7D;%...
9f00996ffab1026b46862ad61a772c8c661641fb
Make compatible with hydro 0.6
index.js
index.js
/** * External dependencies. */ var Formatter = require('hydro-formatter'); /** * Dot formatter. * * @constructor */ var Dot = Formatter.extend(); /** * Before all tests. * * @param {Array} tests * @api public */ Dot.prototype.beforeAll = function(tests) { this.println(); this.print(this.padding); }...
JavaScript
0
@@ -182,32 +182,8 @@ %0A *%0A - * @param %7BArray%7D tests%0A * @ @@ -233,21 +233,16 @@ unction( -tests ) %7B%0A th @@ -401,16 +401,44 @@ test) %7B%0A + if (test.skipped) return;%0A var st @@ -549,39 +549,8 @@ %0A *%0A - * @param %7BResult%7D test result%0A * @ @@ -599,22 +599,16 @@ unction( -result ) %...
40992a7f76d1732c0bf67b7ad3f7e579aad385b3
Update node test
node-test/index.js
node-test/index.js
import { createRequire } from 'module'; const require = createRequire(import.meta.url); const xterm = require('xterm-core'); console.log('Creating xterm-core terminal...'); const terminal = new xterm.Terminal(); console.log('Writing `ls` to terminal...') terminal.write('ls', () => { const bufferLine = terminal.buffe...
JavaScript
0.000001
@@ -87,21 +87,24 @@ ;%0Aconst -xt +T erm +inal = requi @@ -111,20 +111,43 @@ re(' -xterm-core') +../lib-headless/xterm.js').Terminal ;%0A%0Ac @@ -214,22 +214,16 @@ l = new -xterm. Terminal @@ -285,18 +285,44 @@ .write(' -ls +foo %5Cx1b%5B1;31mbar%5Cx1b%5B0m baz ', () =%3E @@ -457,16 +457,20 @@ oString( +tr...
1bfd230751f3ba074d8409c2311c87c06724f3e4
Fix incorrect caching headers if gzip is enabled by etag is not
index.js
index.js
'use strict'; var crypto = require('crypto'); var zlib = require('zlib'); var Promise = require('promise'); var ms = require('ms'); var mime = require('mime'); module.exports = prepareResponse; function prepareResponse(body, headers, options) { if (typeof body === 'string') body = new Buffer(body); if (!Buffer.is...
JavaScript
0.000001
@@ -2092,24 +2092,277 @@ == false) %7B%0A + //check old etag%0A if (req.headers%5B'if-none-match'%5D === this.etag) %7B%0A res.statusCode = 304;%0A res.end();%0A return;%0A %7D%0A%0A //add new etag%0A res.setHeader('ETag', this.etag);%0A %7D%0A%0A //add gzip%0A if (this.options.gzip !=...
a176887c249099d4293df6bfb3508da2e457e324
Add object shorthand rule for properties (#46)
index.js
index.js
'use strict' /* eslint-disable */ module.exports = { "env": { "es6": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 2018 }, "plugins": [ "dependencies", "implicit-dependencies" ], "rules": { "depen...
JavaScript
0
@@ -3183,32 +3183,85 @@ %22no-var%22: 2,%0A + %22object-shorthand%22: %5B%22error%22, %22properties%22%5D,%0A %22object-
6357a36226c548aba44fb4e4fe7f39e8ba341cef
Update variable handling
index.js
index.js
module.exports = function (inputArray, singleCb, finalCb) { var len = inputArray.length; var lenTarget = 0; for (i = 0; i < len; i++) { (function() { var ii = i; process.nextTick( function(){ singleCb(inputArray[ii]); lenTarget++; if (lenTarget === len) { finalCb(inputArray); } }); })(); } ...
JavaScript
0
@@ -53,19 +53,31 @@ alCb) %7B%0A -var +for (let i = 0, len = i @@ -96,13 +96,9 @@ ngth -;%0Avar +, len @@ -112,21 +112,8 @@ = 0; -%0A%0Afor (i = 0; i %3C @@ -146,11 +146,11 @@ %7B%0A%09%09 -var +let ii @@ -309,8 +309,9 @@ )();%0A%7D%0A%7D +%0A
c1e01e4600a1c862054fbb4119101f61c544d3d2
Remove anything inside the parentheses
index.js
index.js
import _ from 'lodash'; import fs from 'fs'; import stream, { Transform } from 'stream'; const streamify = (text) => { let s = new stream.Readable(); s.push(text); s.push(null); return s; }; const stripComments = (s) => { let re1 = /^\s+|\s+$/g; // Strip leading and trailing spaces let re2 = /...
JavaScript
0.999999
@@ -241,88 +241,25 @@ -let re1 = /%5E%5Cs+%7C%5Cs+$/g; // Strip leading and trailing spaces%0A le +cons t re -2 +1 = /%5Cs*%5B #;%5D. @@ -258,14 +258,14 @@ %5Cs*%5B +%25 #;%5D.* -$ /g; @@ -293,10 +293,14 @@ fter + %25, # +, or @@ -352,16 +352,88 @@ spaces%0A + const re2 = /%5Cs*%5C(.*%5C)/g;...
82b4beae47585f4ba2927609cd76b144e8a0d535
Fix addon page with wrong baseURL
tests/dummy/config/environment.js
tests/dummy/config/environment.js
/* jshint node: true */ module.exports = function (environment) { var ENV = { modulePrefix: "dummy", environment: environment, baseURL: "/", locationType: "auto", EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. "with-controller": true } }...
JavaScript
0
@@ -976,16 +976,115 @@ on%22) %7B%0A%0A +%09%09var name = this.project.pkg.name;%0A%09%09ENV.locationType = %22hash%22;%0A%09%09ENV.baseURL = %22/%22 + name + %22/%22;%0A %09%7D%0A%0A%09ret
99e8521dd980f902e187c89c35bfb318463c31fb
Fix function name
index.js
index.js
/** * Created by Durgaprasad Budhwani on 1/2/2016. */ import React, { DeviceEventEmitter } from 'react-native'; import Loading from './loading'; const { StyleSheet, View, Text } = React; const styles = StyleSheet.create({ container: { position: 'absolute', backgroundColor: 'rgba(0,0,0,0.3)', j...
JavaScript
0.999896
@@ -1369,19 +1369,20 @@ omponent -Did +Will Unmount(
c848cdb32bfdbd1730e2b78baa5316992cd64c0d
Fix refresh 404 with hash URL
tests/dummy/config/environment.js
tests/dummy/config/environment.js
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'dummy', environment: environment, baseURL: '/', locationType: 'auto', contentSecurityPolicy: { 'img-src': "'self' data: emberjs.com assets-cdn.github.com", }, EmberENV: { FEATURES: { ...
JavaScript
0.000001
@@ -1179,16 +1179,47 @@ bulma';%0A + ENV.locationType = 'hash';%0A %7D%0A%0A r
ff3cc9c5425ead8dc3780ca0699c11e0a9be4c31
Fix bugs
index.js
index.js
(function(global, factory) { if (typeof define === 'function' && define.amd) { define([], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(); // CommonJS } else { global.mova = factory(); // Globals } }(this, function() { 'use strict'; var languages = {}; va...
JavaScript
0.000004
@@ -1291,23 +1291,18 @@ -for ( var key - in +s = Obj @@ -1323,16 +1323,40 @@ nguages) +;%0A for (var i in keys ) %7B%0A @@ -1370,16 +1370,20 @@ ages%5Bkey +s%5Bi%5D %5D = newL @@ -1394,16 +1394,20 @@ ages%5Bkey +s%5Bi%5D %5D;%0A %7D @@ -1695,17 +1695,29 @@ urn mova -( +.apply(null, outerArg ...
8593d0f6a3202a569adb5031d3b20cf28e98fcb8
Add support for observing an SNS topic.
index.js
index.js
var Rx = require('rx'), _ = require('lodash'); function receiveMessage(sqs, params, callback) { sqs.receiveMessage(params, function (err, data) { callback(err, data); receiveMessage(sqs, params, callback); }); } exports.observerFromQueue = function (sqs, params) { return Rx.Observer.cr...
JavaScript
0
@@ -235,16 +235,229 @@ %7D);%0A%7D%0A%0A +exports.observerFromTopic = function (sns, params) %7B%0A return Rx.Observer.create(function (messageParams) %7B%0A sns.publish(_.defaults(messageParams, params), function (err, data) %7B%0A%0A %7D);%0A %7D);%0A%7D;%0A%0A exports.
8b2bca56475112250b61d68b0ce4c40e378e9a03
Use new fn style, add name
index.js
index.js
import lingalaData from './lingala-english_data.js'; /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, TouchableOpacity, ListView, View } from 'react-native'; import Dimensions from 'Dimensions' const...
JavaScript
0
@@ -58,84 +58,31 @@ %0A * -Sample React Native App%0A * https://github.com/facebook/react-native%0A * @flow +lingala flashcards app %0A */ @@ -284,16 +284,8 @@ r = -function (lin @@ -293,16 +293,19 @@ alaData) + =%3E %7B%0A var
4edcb908f1f2835a8ab206c4b47adfef7a72f38b
Update default port
index.js
index.js
'use strict'; let cors = require('cors'); let express = require('express'); let helmet = require('helmet'); let mongoose = require('mongoose'); let router = express.Router(); let session = require('express-session'); let app = module.exports = express(); // App setup app.set('port', (process.env.PORT || 3000)); app....
JavaScript
0.000001
@@ -260,24 +260,41 @@ / App setup%0A +app.use(cors());%0A app.set('por @@ -322,29 +322,12 @@ %7C%7C -3000));%0Aapp.use(cors( +5001 ));%0A @@ -547,53 +547,8 @@ ter) -%0Aapp.set('port', (process.env.PORT %7C%7C 5000)); %0A%0A//
b24d7eeacd007c7ba12f97c4b50b27edd904204e
use path.resolve to get verdaccio bin path
index.js
index.js
'use strict' const path = require('path') const childProcess = require('child_process') module.exports = () => { const configPath = path.join(__dirname, 'registry/config.yaml') const verdaccioBin = 'node_modules/verdaccio/bin/verdaccio' return childProcess.spawnSync('node', [verdaccioBin, '-c', configPath], {std...
JavaScript
0.000001
@@ -200,22 +200,25 @@ n = -'node_modules/ +require.resolve(' verd @@ -237,16 +237,17 @@ rdaccio' +) %0A retur
8002965ab70fd53f7d7a9284354e6afc948d3de5
Fix misnamed parameter
components/RaffleContainer.js
components/RaffleContainer.js
import React, { Component } from 'react'; import { Formik } from 'formik'; import { Loading, RaffleForm, Results } from '.'; export class RaffleContainer extends Component { // eslint-disable-next-line react/sort-comp initialState = { error: '', winners: [], }; state = this.initialState; render() {...
JavaScript
0.000002
@@ -627,21 +627,31 @@ count, -e +specificE vent +Id , meetup @@ -1022,13 +1022,23 @@ -e +specificE vent +Id ,%0A
a749d2d60a156f84ee44528767212335abeb02f1
remove unused import
index.js
index.js
'use strict'; var fs = require('fs'); var path = require('path'); var gutil = require('gulp-util'); var through = require('through2'); var vulcanize = require('vulcanize'); module.exports = function (options) { options = options || {}; if (!options.dest) { throw new gutil.PluginError('gulp-vulcanize', '`dest` req...
JavaScript
0.000001
@@ -11,32 +11,8 @@ t';%0A -var fs = require('fs');%0A var
d858bbf331dc0db60cad340ef7b8f3e9be49c4d5
patch tweaks
index.js
index.js
/*! * is-generator-function-name <https://github.com/tunnckoCore/is-generator-function-name> * * Copyright (c) 2015 Charlike Mike Reagent, contributors. * Released under the MIT license. */ 'use strict' module.exports = function isGeneratorFunctionName (co) { if (!co || !co.constructor) { return false } ...
JavaScript
0.000001
@@ -313,24 +313,31 @@ lse%0A %7D%0A +%0A -return +var constr = co.cons @@ -347,17 +347,21 @@ ctor -. +%0A var name = -== 'Ge @@ -380,63 +380,69 @@ ion' - %7C%7C%0A co.constructor.displayName === 'GeneratorFunction' +%0A%0A return constr.name === name %7C%7C constr.displayName === name %0A%7D%0A
946b9bd52706d057dcb621259d3fbebfa7f85015
Update animalListScene.js
components/animalListScene.js
components/animalListScene.js
import React from 'react'; import { View, Text, TouchableHighlight, TextInput, StyleSheet, Alert } from 'react-native'; import * as scenes from '../scenes'; import AlphabetListView from 'react-native-alphabetlistview'; import animalDb from '../animals'; var navigator; var bg; class Cell extends React.Compo...
JavaScript
0
@@ -2145,16 +2145,33 @@ : 'Z',%0A + '%C4%9A' : 'E',%0A %7D;%0A%0A
d2ef7e30b2b84586cffbd6f275fbc838861564c8
build orm from resources instead of schemas
index.js
index.js
var _ = require('lodash'); var Waterline = require('waterline'); function createModel (schema, name, doc, connection) { return schema.type === 'object' && { dynamicFinders: false, associationFinders: false, identity: name.toLowerCase(), globalId: name, connection: connection, attributes: crea...
JavaScript
0
@@ -1170,24 +1170,25 @@ ction (doc, +_ connection) @@ -1181,32 +1181,85 @@ _connection) %7B%0A + var connection = _connection %7C%7C 'sailsDiscovery';%0A%0A return _.compa @@ -1276,22 +1276,24 @@ map(doc. -schema +resource s, funct @@ -1297,22 +1297,24 @@ nction ( -schema +resource , name) @@ -1311,24 +1...
4428d344f1522c51fdc39aa8476eec20ec3a342b
Generate an id for each search result
utils/generate_index.js
utils/generate_index.js
const fs = require('fs'); const path = require('path'); const lunr = require('lunr'); const removeMarkdown = require('remove-markdown'); const readmePath = path.resolve(__dirname, '..', 'README.md'); main(); function main() { console.log(JSON.stringify(generateIndex([ fs.readFileSync(readmePath, { encod...
JavaScript
0.999967
@@ -415,24 +415,44 @@ unction() %7B%0A + this.ref('id');%0A this.fie @@ -552,36 +552,16 @@ body');%0A - this.ref('id');%0A %7D);%0A%0A @@ -588,16 +588,19 @@ ion(file +, i ) %7B%0A @@ -648,16 +648,87 @@ x.add(%7B%0A + id: i, // This should be something unique. Url slug for example.%0A ...
7d8f86cbf85ebd2179195ff6a2a7a1c5dcb9da58
Add tests for removing a selection when disabled
tests/selection/multiple-tests.js
tests/selection/multiple-tests.js
module('Selection containers - Multiple'); var MultipleSelection = require('select2/selection/multiple'); var $ = require('jquery'); var Options = require('select2/options'); var Utils = require('select2/utils'); var options = new Options({}); test('display uses templateSelection', function (assert) { var called ...
JavaScript
0.000001
@@ -1097,19 +1097,17 @@ iner();%0A - %0A + var ou @@ -1221,11 +1221,9 @@ ');%0A - %0A + as @@ -2130,16 +2130,16 @@ ection'%0A - );%0A%7D); @@ -2135,12 +2135,1123 @@ n'%0A );%0A%7D);%0A +%0Atest('clear button respects the disabled state', function (assert) %7B%0A var options = new Options(%7B%0A ...
9a4c96a2fdc4c12efddaa2889eb2488fe6777a6d
Update video.js
SRC/JS/video.js
SRC/JS/video.js
JavaScript
0.000001
@@ -1 +1,1051 @@ +var video = %7B%0A //%E4%B8%BB%E8%AE%BA%E5%9D%9B%0A %22zhu%22 : %5B%0A %7B%0A %22title%22 : %22%E7%99%BE%E5%BA%A6%E4%B8%96%E7%95%8C2015%E4%B8%BB%E8%AE%BA%E5%9D%9B%E5%85%A8%E7%A8%8B%E5%9B%9E%E9%A1%BE%22,%0A %22embed%22 : '%3Cembed src=%22http://player.video.qiyi.com/...
0486d6a2a9cd52949e4c422e2260b4b0ff8283f9
I changed the event names so they are less goofy
Stack.js
Stack.js
var events = require('events') util = require('util') function QuickConnectStack(id, funcs, data, qc, cb, testing) { events.EventEmitter.call(this) var ValCFs, DCFs, VCFs, self = this, state = { going: false, cfIndex: -1, waitingCallback: null } this.id = id cb?this.on('ended', cb):'' function go() { i...
JavaScript
0.998081
@@ -278,18 +278,16 @@ .on('end -ed ', cb):' @@ -288,16 +288,16 @@ cb):''%0A + %09%0A%09funct @@ -448,18 +448,16 @@ t('start -ed ', data) @@ -2150,34 +2150,32 @@ self.emit('error -ed ', error, data, @@ -2468,19 +2468,16 @@ it('wait -ing ', data, @@ -2595,26 +2595,24 @@ .emit('error -ed ', err, data @@ -262...
7fca604b486b379888d9cacaef9dc9d48f2a2085
Remove support for ScrollComposite
src/tabris/widgets/ScrollView.js
src/tabris/widgets/ScrollView.js
tabris.registerWidget("_ScrollBar", { _type: "rwt.widgets.ScrollBar", _events: {Selection: true}, _properties: { style: "any" } }); tabris.registerWidget("ScrollView", { _type: "rwt.widgets.ScrolledComposite", _supportsChildren: true, _properties: { direction: { type: ["choice", ["horizo...
JavaScript
0.000001
@@ -2243,66 +2243,4 @@ %7D);%0A -%0Atabris.registerWidget(%22ScrollComposite%22, tabris.ScrollView);%0A
ead727bf13bdea8cb71eb9f4c89328a3fab7f75d
Fix templates and add newlines
src/transforms/cordova-assets.js
src/transforms/cordova-assets.js
export function CORDOVA_ASSET_TEMPLATE(assetType, platform, {src, d, w, h} = {}) { return `<${assetType} src="${src}" platform="${platform}"${d?` density="${d}"`:``}${w?` width="${w}"`:``}${h?` height="${h}`:``}" />`; } export function PGBUILD_ASSET_TEMPLATE(assetType, platform, {src, d, w, h} = {}) { return `<...
JavaScript
0
@@ -195,38 +195,38 @@ h?%60 height=%22$%7Bh%7D +%22 %60:%60%60%7D -%22 /%3E%60;%0A%7D%0Aexport f @@ -441,14 +441,14 @@ $%7Bh%7D +%22 %60:%60%60%7D -%22 /%3E%60 @@ -1113,16 +1113,29 @@ atform)) +.join(%22%5Cn %22) ;%0A
97f0a7f0df01b8677456b12f8bb5ffacd2b93315
Add event callback hook function because of timing issue
src/tv-webos/applicationProxy.js
src/tv-webos/applicationProxy.js
'use strict'; module.exports = { exit: function (success, fail, args) { window.close(); }, launchApp: function (success, fail, args) { try { var paramAppId = args[0].appId; var paramData = {}; paramData.data = args[0].data; /*jshint undef: fal...
JavaScript
0.000001
@@ -8,16 +8,818 @@ rict';%0A%0A +var hookSuccessCallback = %7B%7D;%0A%0Adocument.addEventListener('webOSLaunch', function(inData) %7B%0A console.log('webOSLaunch');%0A %0A if(typeof hookSuccessCallback === 'function')%7B%0A window.localStorage.setItem('requestedappinfodata', JSON.stringify(inData.detai...
4902edcfd29c06b3b8406ae15a8943d54aa13bf6
Fix issue triggering print dialog in production
pages/doc.js
pages/doc.js
import { Component, createRef } from 'react'; import { connect } from 'react-redux'; import { withStyles } from '@material-ui/core/styles'; import SplitPane from 'react-split-pane'; import { fetchDoc, fetchServerDoc } from '../src/actions'; import Document, { Meta } from '../src/components/Document'; import Locations...
JavaScript
0
@@ -2386,54 +2386,42 @@ && -prevProps.isFetching && !this.props.isFetching +this.props.data && !prevProps.data ) %7B%0A
51df7f8618920764a72cbaed0934cfd88655df12
fix popup
saiku-ui/js/saiku/views/LoginForm.js
saiku-ui/js/saiku/views/LoginForm.js
/* * Copyright 2012 OSBI Ltd * * 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 a...
JavaScript
0.000002
@@ -2649,17 +2649,68 @@ ssage);%0A -%09 + $(this.el).find('.clearlink').unbind();%0A %7D,%0A%0A
334c644c502d92abc831a3a3fff82fd79f7b3ae0
Handle empty reputation for unknown sites
ext/web-of-trust.js
ext/web-of-trust.js
'use strict'; const url = require('url'); const requestPromise = require('request-promise'); /** @module webOfTrust */ module.exports = { /** @method getReputation * @description Fetch reputation from Web of Trust api * @param {String} apiKey - Web Of Trust API Key * @param {String} articleUrl - URL of the...
JavaScript
0.000001
@@ -994,24 +994,259 @@ sponse)%5B0%5D;%0A +%0A%09%09if (!wotResponse%5Bdomain%5D%5B'0'%5D) %7B%0A%09%09%09// Bail if the response doesn't contain a reputation%0A%09%09%09return %7B%0A%09%09%09%09trustworthiness: %7B%0A%09%09%09%09%09reputation: null,%0A%09%09%09%09%09confidence: 0,%0A%09%09%09%09%09description: 'Unkno...
2a1915d2f346adf56203cc1c66f93a48f1fd6377
Fix isrequired mesage on unnecesary timePicker
frontend/app/js/components/serverboard/board/daterange.js
frontend/app/js/components/serverboard/board/daterange.js
import React from 'react' import Calendar from 'rc-calendar'; import moment from 'moment' import {pretty_ago} from 'app/utils' require("sass/calendar.sass") const DATE_FORMAT="YYYY-MM-DD hh:mm" const TimePicker=React.createClass({ propTypes:{ value: React.PropTypes.object.isRequired }, componentDidMount(){ ...
JavaScript
0
@@ -2224,48 +2224,8 @@ %7D,%0A - timePicker: (%0A %3CTimePicker /%3E%0A ),%0A re
9330df3e0dd5a8d465000e0504bb8887ef29eab4
Disable E2E tests
protractor.conf.js
protractor.conf.js
exports.config = { baseUrl: 'http://localhost:8000/', framework: 'jasmine', specs: 'e2e/**/*.test.js', capabilities: { browserName: 'phantomjs', shardTestFiles: true, maxInstances: 4, 'phantomjs.binary.path': './node_modules/phantomjs-prebuilt/bin/phantomjs' }, se...
JavaScript
0.000001
@@ -102,12 +102,16 @@ */*. -test +disabled .js'
d6b10175ccf46854262231efc9a6a22041153fa5
Fix example
packages/ag-grid-docs/src/javascript-grid-charts-customisation/saving-user-preferences/main.js
packages/ag-grid-docs/src/javascript-grid-charts-customisation/saving-user-preferences/main.js
var columnDefs = [ {field: "country", chartDataType: 'category'}, {field: "sugar", chartDataType: 'series'}, {field: "fat", chartDataType: 'series'}, {field: "weight", chartDataType: 'series'}, ]; var gridOptions = { defaultColDef: { width: 180, resizable: true }, popupParen...
JavaScript
0.998536
@@ -3207,16 +3207,39 @@ endered( +firstDataRenderedParams ) %7B%0A @@ -3465,24 +3465,31 @@ %7D;%0A%0A c +urrentC hartRef = gr @@ -3486,26 +3486,38 @@ rtRef = -gridOption +firstDataRenderedParam s.api.cr
3690bb2fc7b19bff7b578b2ab791d5a3698bf50a
fix module name
sample_project/demo/app.js
sample_project/demo/app.js
angular.bootstrap(document, ['grunt-angular-toolbox-sample']);
JavaScript
0.000005
@@ -32,26 +32,23 @@ runt --a +A ngular --t +T oolbox --s +S ampl
830ba79fe3bd5052923357cbb2b67e6fa9abac63
Update gulpfile
gulpfile.js
gulpfile.js
'use strict'; let gulp = require('gulp'), less = require('gulp-less'), sourcemaps = require('gulp-sourcemaps'), autoprefixer = require('gulp-autoprefixer'), concat = require('gulp-concat'), gutil = require('gulp-util'), chalk = require('chalk'); gulp.task('css-dev', function(){ gulp.src('assets/less/**/*...
JavaScript
0.000001
@@ -249,24 +249,83 @@ ('chalk');%0A%0A +// %D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D0%B5%D0%BC Enter Point %D0%B4%D0%BB%D1%8F %D0%BF%D0%BE%D1%81%D0%BB%D0%B5%D0%B4%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D0%B9 %D0%BA%D0%BE%D0%BC%D0%BF%D0%B8%D0%BB%D1%8F%D1%86%D0%B8%D0%B8%0A%0A gulp.task('c @@ -36...
734467e27501e6c324165a3af90187578011df0a
fix linting errors
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var fs = require('fs'); var sourcemaps = require('gulp-sourcemaps'); var babel = require('gulp-babel'); var eslint = require('gulp-eslint'); var jscs = require('gulp-jscs'); gulp.task('build-npm', [ 'setupNpm', 'babel', 'lint' ]); // ---------------------------...
JavaScript
0.000006
@@ -4088,12 +4088,13 @@ ll, false)); +%0A
0ad1722f173dc29a0228208c7e7ef886f0f906b2
Add overall gulp lint task.
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var exec = require('child_process').exec; var sass = require('gulp-sass'); var merge = require('merge2'); var sourcemaps = require('gulp-sourcemaps'); var embedTemplates = require('gulp-angular-embed-templates'); var typescript = require('gulp-typescript'); var tsconfig = requ...
JavaScript
0
@@ -2501,32 +2501,101 @@ format());%0A%7D);%0A%0A +gulp.task('lint', %5B'lint:python', 'lint:typescript', 'lint:sass'%5D);%0A%0A gulp.task('watch
9f629c90c806f90e7bcd8e4862745629412c4051
test 1
gulpfile.js
gulpfile.js
var gulp = require('gulp'), del = require('del'), shell = require('gulp-shell'), ghPages = require('gulp-gh-pages'), argv = require('yargs').argv, gulpif = require('gulp-if'); /// Repo initialiazation, syncronization and cleanup gulp.task('sync', ['init'], shell.task('repo sync --no-tags -c')); gulp.task('init', shell...
JavaScript
0.000201
@@ -1124,16 +1124,17 @@ ', %5B'publish'%5D); +%0A
91e26432d55afb0847111c34eaa50f9fbcf86649
remove global for audio context
public/examples/scripts/audio.js
public/examples/scripts/audio.js
"use strict"; define(function() { // To play a sound, simply call audio.playSound(id), where id is // one of the keys of the g_sound_files array, e.g. "damage". var AudioManager = function(sounds, log) { var g_context; var g_audioMgr; var g_soundBank = {}; var g_canPlay = false; var g_canPla...
JavaScript
0.001374
@@ -6040,30 +6040,8 @@ ();%0A -window.a = g_context;%0A