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 |
|---|---|---|---|---|---|---|---|
259df3908de57f2c2078946b59f8cf3fcbe5ea49 | Add exports.name | index.js | index.js | JavaScript | 0.000006 | @@ -0,0 +1,26 @@
+%0Aexports.name = %22Pichaya%22;
| |
d2fd08ad1dce0f40220c99b0b73e7aaa0f1c6cb5 | Fix windows version | index.js | index.js | const request = require('request');
const semver = require('semver');
const manager = require('bin-manager');
const BIN_PATH = 'bin';
const LATEST_ENDPOINT = 'https://arduino-cli.github.io/arduino-latest/VERSION';
const MIRRORS = [{
os: 'win32',
arch: 'x64',
uri: 'https://downloads.arduino.cc/arduino-{{version}... | JavaScript | 0.000003 | @@ -344,16 +344,37 @@
'arduino
+-%7B%7Bversion%7D%7D%5C%5Carduino
_debug.e
@@ -1072,59 +1072,15 @@
;%0A
-cons
+le
t bin
- = manager(BIN_PATH, 'arduino-' + version)
;%0A%0A
@@ -3503,24 +3503,75 @@
(version) %7B%0A
+ bin = manager(BIN_PATH, 'arduino-' + version);%0A
MIRRORS.
@@ -3744,16 +3744,48 @@
rror... |
9ca94645b2fef70c5fc7fe0f13e7fab431478e76 | fix config seq bug | index.js | index.js | 'use strict';
const debug = require('debug')('koa-handlebars');
const Q = require('q');
const renderer = require('./lib/renderer');
module.exports = (opts) => {
opts = Object.assign({}, opts, {
root: process.cwd(),
extension: '.html', // 默认后缀
cache: true,
viewPath: 'views', //视图... | JavaScript | 0 | @@ -191,14 +191,8 @@
(%7B%7D,
- opts,
%7B%0A
@@ -438,16 +438,22 @@
%E5%90%8D%E5%AD%97%0A %7D
+, opts
)%0A%0A d
|
a90697328659560dc22febe5064d6726674394e4 | Add TODO notice | index.js | index.js | /**
* Module dependencies.
*/
var EventEmitter = require("events").EventEmitter
, uuid = require("uuid");
/**
* Expose `quevent`.
* @type Function
*/
module.exports = quevent;
/**
* Monkey-patch the `events.EventEmitter`.
* @param {events.EventEmitter} emitter
* @param {String} event option... | JavaScript | 0 | @@ -545,16 +545,46 @@
event);
+ // TODO: Is it even possible?
%0A %7D%0A%0A
|
9c33747d739ee3f20e43ee9bec360083c778e1ec | remove bare/full aid | index.js | index.js | /**
* @module channel
*/
var hubiquitus = require('hubiquitus-core');
var logger = hubiquitus.logger('hubiquitus:addons:channel');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var _ = require('lodash');
/**
* Create a channel from an implementation
* @param id {string} channel id... | JavaScript | 0.000001 | @@ -1570,27 +1570,65 @@
tus.
-on('actor removed',
+monitoring.on('cache actor removed', function (aid) %7B%0A
onU
@@ -1633,24 +1633,34 @@
nUnsubscribe
+(aid);%0A %7D
);%0A%0A /* cha
@@ -2073,97 +2073,8 @@
) %7B%0A
- var mode = 'full';%0A if (req.content && req.content.mode) mode = req.content.mode;%0A
... |
451e6f59566bf72ef24b01eac6e3c6536fe6c029 | Add no-dupe-keys rule | index.js | index.js | const ALLOWED_MAGIC_NUMBERS = [-1, 0, 1, 2, 3, 10, 100, 1000];
const MAX_ALLOWED_COMPLEXITY = 5;
const MAX_LINE_LENGTH = 150;
/*
fix --> indicates that rule can be "auto-fixed" by ESLint
*/
module.exports = {
env: {
// node: true,
// es6: true,
browser: true
},
globals: {
... | JavaScript | 0.885878 | @@ -1971,32 +1971,67 @@
er': %5B'error'%5D,%0A
+ 'no-dupe-keys': %5B'error'%5D,%0A
/*fix*/'no-extr
|
82294f1d02fdc7bc50a4bd70f28a355a3eb27bec | Fix multiple target declaration | index.js | index.js | var hasOwn = Object.prototype.hasOwnProperty;
var toString = Object.prototype.toString;
var undefined;
var isPlainObject = function isPlainObject(obj) {
"use strict";
if (!obj || toString.call(obj) !== '[object Object]' || obj.nodeType || obj.setInterval) {
return false;
}
var has_own_constructor = hasOwn.call(... | JavaScript | 0.999077 | @@ -925,16 +925,8 @@
one,
- target,
%0A%09%09t
|
babace55c486efc8217edfdd3002a3f910e3d7ff | remove unuse module | index.js | index.js | var fs = require('fs'),
through2 = require('through2'),
gutil = require('gulp-util'),
tempfile = require('tempfile'),
HTMLHint = require('htmlhint').HTMLHint,
PluginError = gutil.PluginError;
var PLUGIN_NAME = 'gulp-htmlhint-inline';
var log = gutil.log,
color = gutil.colors;
var escape = fu... | JavaScript | 0.000001 | @@ -91,44 +91,8 @@
'),%0A
- tempfile = require('tempfile'),%0A
|
ac49935e402a89d67d01401bb690cb83de26ecc0 | Use an options object instead of just mode | index.js | index.js | var fs = require('fs')
, net = require('net')
module.exports = function connectToUnixSocket(app, path, mode_optional, callback) {
if (!callback) callback = mode_optional, mode_optional = null;
var server = app.listen(path)
server.on('error', function (e) {
if (e.code == 'EADDRINUSE') {
// If we get... | JavaScript | 0.000005 | @@ -99,29 +99,23 @@
, path,
-mode_
option
-al
+s
, callba
@@ -152,36 +152,24 @@
k =
-mode_
option
-al, mode_
+s,
option
-al
+s
= n
@@ -1268,29 +1268,39 @@
if (
-mode_optional
+options && options.mode
) %7B%0A
@@ -1316,29 +1316,28 @@
d(path,
-mode_
option
-al
+s.mode
, functi
@@ -1441,21 +1441,2... |
fb9a355ec2780183e83bca7291a069df1b16a2c0 | fix require paths | index.js | index.js | 'use strict';
var toPython = require('./generators/python');
var toNode = require('./generators/node');
module.exports = {
toPython: toPython,
toNode: toNode
}; | JavaScript | 0.000003 | @@ -51,16 +51,19 @@
s/python
+.js
');%0Avar
@@ -97,16 +97,19 @@
ors/node
+.js
');%0A%0Amod
|
d4461aa2e4bfa5d24f1415ca74355a4ce586dbbe | fix Windows support | index.js | index.js | 'use strict';
var childProcess = require('child_process');
var gutil = require('gulp-util');
var through = require('through2');
var BIN = require.resolve('ava/cli.js');
module.exports = function () {
var files = [];
return through.obj(function (file, enc, cb) {
if (file.isNull()) {
cb(null, file);
return;
... | JavaScript | 0.000001 | @@ -489,16 +489,39 @@
on () %7B%0A
+%09%09files.unshift(BIN);%0A%0A
%09%09childP
@@ -536,19 +536,32 @@
xecFile(
-BIN
+process.execPath
, files.
|
6316714902d5c2350bd6ac43c47a23e6d4db08a3 | Throw error when request sends an error back, fixes #2 | index.js | index.js | var request = require('request');
module.exports = function (api_key, api_url) {
apiurl = api_url || 'https://api.authy.com';
apikey = module.exports.apikey = api_key;
return module.exports;
};
module.exports.register_user = function (email, cellphone, country_code, cb) {
var url = apiurl + "/protect... | JavaScript | 0 | @@ -792,32 +792,56 @@
r, res, body) %7B%0A
+ if (!err) %7B%0A
if (res.
@@ -866,32 +866,36 @@
) %7B%0A
+
+
cb(null, toJSON(
@@ -902,32 +902,36 @@
body));%0A
+
%7D else %7B%0A
@@ -935,16 +935,20 @@
+
+
cb(JSON.
@@ -965,24 +965,89 @@
ON(body)));%0... |
e12841e1ec1cda14bbe01f9a12b757da12a7ff26 | include bundle js file, too | index.js | index.js | 'use strict';
/** @lends Fluxex */
var Fluxex = require('./lib/fluxex');
var React = require('react');
// jscs:disable checkRedundantParams
/**
* Create an fluxex application by provided defintion.
* @param {Object} stores - Store defination as {storeName: implement} pairs
* @param {React} HtmlJsx - The Html eleme... | JavaScript | 0 | @@ -1614,16 +1614,186 @@
return
+React.DOM.div(%0A %7BclassName: this.props.className %7C%7C 'fluxex_hidden'%7D,%0A React.DOM.script(%7Bsrc: this.props.src %7C%7C '/static/js/main.js'%7D),%0A
initScri
@@ -1869,74 +1869,26 @@
) :
-React.DOM.div(%7BclassName: this.props.className %... |
673e03741427b142294ebf9ddba5d0ab24134609 | Fix path resolving | index.js | index.js | 'use strict';
var chalk = require('chalk');
var H = require('./helpers');
var path = require('path');
var stripEof = require('strip-eof');
var shell = require('shelljs');
function getTag() {
var rs = shell.exec('git rev-list --tags --max-count=1');
if (rs.code !== 0) {
return '';
}
var commitHash = stripEof(r... | JavaScript | 0.000002 | @@ -1150,17 +1150,19 @@
lve(
-__dirname
+shell.pwd()
, ba
|
854a5b86aae54ec73451e2030d806c6c2027173e | put super to the top | index.js | index.js | 'use strict';
/*
*@author xtx1130
*@description 处理基础routes和基本controller绑定,抛出扩展后的koa构造函数
*/
const Koa = require('koa');
const Routes = require('./app/routes/koas-router');
const Controller = require('./app/controllers/controller');
const isAsync = require('./deps/isAsyncFunc');
const Assert = require('assert');
const... | JavaScript | 0 | @@ -482,16 +482,27 @@
flag) %7B%0A
+%09%09super();%0A
%09%09flag =
@@ -517,27 +517,16 @@
false;%0A
-%09%09super();%0A
%09%09this.k
|
b8df1589c55c313096ff26521123ae84712ae2b3 | Recompile if file has changed | index.js | index.js | var fs = require('fs');
var path = require('path');
var tmpl = require('blueimp-tmpl').tmpl;
function HtmlWebpackPlugin(options) {
this.options = options || {};
}
HtmlWebpackPlugin.prototype.apply = function(compiler) {
var self = this;
compiler.plugin('emit', function(compiler, callback) {
var webpackStats... | JavaScript | 0 | @@ -1217,24 +1217,76 @@
l');%0A %7D
+%0A compiler.fileDependencies.push(templateFile);
%0A%0A fs.r
|
8736356f3c6778dd8622311e3ebe47f16aabb4c4 | Refactor anonymous function with noop | index.js | index.js | /*!
* compression
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*/
/**
* Module dependencies.
* @private
*/
var accepts = require('accepts')
var bytes = require('bytes')
var compressible = req... | JavaScript | 0.000001 | @@ -1215,21 +1215,12 @@
d =
-function()%7B%7D;
+noop
%0A
|
c037bf17dc9b78dbf966d14e586e2283666edec0 | Remove max listeners amount | index.js | index.js | var fs = require("fs");
var http = require("http");
var https = require("https");
var path = require("path");
var url = require("url");
var events = require("events").EventEmitter;
var util = require("util");
var cheerio = require("cheerio");
// The "Image" class.
function Image(image, address){
var at = this.attri... | JavaScript | 0.000001 | @@ -1527,34 +1527,8 @@
ss;%0A
-%09this.setMaxListeners(1);%0A
%7D;%0A%0A
|
0401bd3630ade7e25bb0db71b14b0b2d0c3916ef | Update index.js documentation comments | index.js | index.js | /**
* @module index
* @description Entry point for deep-freeze-node module.
* @version 1.0.2
* @author Anatoliy Gatt [anatoliy.gatt@aol.com]
* @copyright Copyright (c) 2015 Anatoliy Gatt
* @license MIT
*/
"use strict";
/**
* @public
* @description Expose function to deep freeze object.
* @returns {Function}... | JavaScript | 0 | @@ -285,24 +285,25 @@
reeze object
+s
.%0A * @return
@@ -347,16 +347,17 @@
e object
+s
.%0A */%0A%0Am
|
989a0005d4af380ff94e4b1057c171f15990a1d1 | revert code | index.js | index.js | $(document).ready(function() {
// start Chrome Push Manager to obtain device id and register it with Realtime
// a service worker will be launched in background to receive the incoming push notifications
// var chromePushManager = new ChromePushManager('service-worker.js', function(error, registrationId){... | JavaScript | 0.000001 | @@ -208,18 +208,16 @@
cations%0A
-//
var
@@ -312,18 +312,16 @@
ionId)%7B%0A
-//
@@ -349,18 +349,16 @@
ionId);%0A
-//
%7D);
|
d1b7bd2c5130a153546a52fa9c9a47af18cd49a0 | fix default config | index.js | index.js | "use strict";
const Promise = require('bluebird');
const fs = Promise.promisifyAll(require('fs'));
const path = Promise.promisifyAll(require('path'));
const request = require('request-promise');
const userHome = require('user-home');
const expandTilde = require('expand-tilde');
const wallpaper = require('wallpaper');... | JavaScript | 0.000002 | @@ -790,16 +790,75 @@
g(config
+ %7C%7C path.join(userHome, '.reddit-wallpaper', 'config.json')
)%0A
@@ -5259,17 +5259,16 @@
let
-
match =
@@ -6085,17 +6085,16 @@
(false);
-;
%0A%7D%0A%0Aif (
@@ -6132,63 +6132,8 @@
ain(
-path.join(userHome, '.reddit-wallpaper', 'config.json')
);
|
f60eff319a4dabb637a2337b67307c3e7cb7965d | fix set method | index.js | index.js | 'use strict';
var adaptor,
ModellaWrapper;
/**
* Expose `adaptor`
* @param {Array} instances Modella constructor instances
* @return {Object} Returns adaptor object
*/
module.exports = function adaptor(instances) {
var filter,
wrap;
if (!instances.length) {
throw new TypeEr... | JavaScript | 0.000021 | @@ -1986,24 +1986,76 @@
) === -1) %7B%0A
+ var obj = %7B%7D;%0A obj%5Bkeypath%5D = value;%0A
this
@@ -2065,30 +2065,19 @@
del.set(
-keypath, value
+obj
);%0A %7D
@@ -2185,16 +2185,43 @@
t method
+ so we get retire the model
%0A ret
|
c74e250a88a1674df8912205390201b92c9cf79f | update files | index.js | index.js | /*!
* index
* Version: 0.0.1
* Date: 2017/09/19
*
* This is licensed under the MIT License (MIT).
*/
'use strict';
const ora = require('ora');
const glob = require('glob');
const path = require('path');
const fs = require('fs-extra')
const chalk = require('chalk');
const yaml = require('js-yaml');
const cluster... | JavaScript | 0.000001 | @@ -615,20 +615,56 @@
e, color
-) %7B%0A
+, substr) %7B%0A if (substr !== false) %7B%0A
let le
@@ -687,16 +687,18 @@
gth;%0A%0A
+
+
if (leng
@@ -707,14 +707,16 @@
%3E=
-69
+33
) %7B%0A
+
@@ -742,18 +742,18 @@
ring(0,
-33
+15
) + '...
@@ -785,12 +785,18 @@
h -
-33);
+15);%0A %7D
%0A %7... |
8986a3c5ddbf49572d3aed448c6121bb6a1e6e9c | remove Array.prototype.slice (#46) | index.js | index.js | const assert = require('assert')
const trie = require('./trie')
module.exports = Wayfarer
// create a router
// str -> obj
function Wayfarer (dft) {
if (!(this instanceof Wayfarer)) return new Wayfarer(dft)
const _default = (dft || '').replace(/^\//, '')
const _trie = trie()
emit._trie = _trie
emit.emit =... | JavaScript | 0 | @@ -897,47 +897,115 @@
gs =
+ new
Array
-.prototype.slice.apply(arguments)
+(arguments.length)%0A for (var i = 1; i %3C args.length; i++) %7B%0A args%5Bi%5D = arguments%5Bi%5D%0A %7D
%0A%0A
|
744be29d3c394229424fb07d2fac841239eeb6dd | test subscribe | index.js | index.js | var express = require('express')
var path = require("path")
var wechat = require('wechat')
// get config
var weConfig = require('./config')
var helper = require('./modules/helper')
// create app
var app = express()
// menu
var WechatAPI = require('wechat-api')
var menuModel = require('./modules/menu')
var api = new ... | JavaScript | 0 | @@ -712,16 +712,23 @@
izeURL('
+http://
roscoe.c
|
76bad8ead2c1db312817440e0af8a3a3b8be36c5 | fix spacing in cmd strings | index.js | index.js | var exec = require('child_process').exec;
var chalk = require('chalk');
var gitbranch = "git branch -f gh-pages &&";
var gitcheckout = "git checkout gh-pages &&";
var gitreset = "git reset --hard origin/master && ";
var gitcommit = "git add -A . && git commit -a -m 'gh-pages update' && ";
var gitpush = "git push origi... | JavaScript | 0.000237 | @@ -100,32 +100,33 @@
h -f gh-pages &&
+
%22;%0Avar gitchecko
@@ -155,16 +155,17 @@
pages &&
+
%22;%0Avar g
|
74c707b25b33b0e8219e0f6f9ce6babbc86fdcbf | Fix code conventions (#117) | index.js | index.js | 'use strict';
/**
* This module is a thin layer over the native module. It's aim is to obscure
* implementation details for registering callbacks, changing settings, etc.
*/
var React, {NativeModules, NativeAppEventEmitter, DeviceEventEmitter, Platform} = require('react-native');
var AudioPlayerManager = NativeMod... | JavaScript | 0.000244 | @@ -2208,18 +2208,19 @@
on(path)
+
%7B%0A
-
retu
@@ -2946,24 +2946,25 @@
S === 'ios')
+
%7B%0A Audi
@@ -3224,20 +3224,16 @@
);%0A %7D
-%0A
else %7B%0A
@@ -3289,30 +3289,22 @@
gAtPath(
-%0A
path,
+
recordin
@@ -3312,16 +3312,17 @@
Options)
+;
%0A %7D%0A%0A
@@ -4563,23 +4563,25 @... |
3195b6910272260f6a89ee6aa2649a7e34c2af2b | fix gen Short ID feature | index.js | index.js | var ALY = require('aliyun-sdk');
var mime = require('mime');
var path = require('path');
var through2 = require('through2');
var shortId = require('shortid');
var urlJoin = require('url-join');
var gutil = require('gulp-util');
module.exports = publish;
/**
* @params options.prefix root for oss
* @params {boolean} o... | JavaScript | 0 | @@ -1,12 +1,26 @@
+'use strict';%0A
var ALY = re
@@ -597,44 +597,115 @@
ix;%0A
+%0A
-const uid = options.genShortId &&
+let parts = %5B%5D;%0A%0A if (prefix) %7B%0A parts.push(prefix);%0A %7D%0A if (options.genShortId) %7B%0A parts.push(
shor
@@ -718,18 +718,24 @@
nerate()
+)
;%0A
+ %7D%0A%0A
con... |
4797017558514b453f93dd376f0df6d7219e642a | set silent | index.js | index.js | var Q = require('q'),
_ = require('underscore'),
npm = require('npm'),
pub = module.exports;
pub.install = function(keywords, options){
return npmCommand('install', keywords, options);
};
pub.uninstall = function (keywords, options) {
return npmCommand('uninstall', keywords, options);
};
pub.upd... | JavaScript | 0.000002 | @@ -591,16 +591,89 @@
lobal);%0A
+%09%09%0A%09%09if(options.silent)%7B%0A%09%09%09npm.config.set('loglevel', 'silent');%0A%09%09%7D%0A%09%09%0A
|
532529f43fae92c7a2933571be6e13d85a000e63 | Replace in operators with property checks | index.js | index.js | /** @module virtuaaliviivakoodi */
const methods = require('./methods')
/**
* Returns Virtuaaliviivakoodi as a string.
* @param {Object} options - Information that will be included.
* @param {String} options.iban - IBAN formed account number
* @param {Number|String} options.reference - Reference number in either ... | JavaScript | 0.000001 | @@ -858,25 +858,20 @@
if (
-'iban' in
options
+.iban
) %7B%0A
@@ -1017,17 +1017,24 @@
n%0A if (
-'
+options.
referenc
@@ -1034,28 +1034,16 @@
eference
-' in options
) %7B%0A
@@ -1250,27 +1250,22 @@
if (
-'amount' in
options
+.amount
) %7B%0A
@@ -1393,24 +1393,19 @@
if (
-'due' in
options
+.due
) %7... |
0b6abbae7291009bac567d00d461f04111d855ef | Fix conflict | index.js | index.js | 'use strict';
var React = require('react-native');
var {
Dimensions,
Text,
View,
TouchableOpacity,
PanResponder,
Animated,
} = React;
var DefaultTabBar = require('./DefaultTabBar');
var deviceWidth = Dimensions.get('window').width;
var ScrollableTabView = React.createClass({
getDefaultProps() {
ret... | JavaScript | 0.00644 | @@ -329,53 +329,104 @@
-edgeHitWidth: 30,%0A tabBarPosi
+tabBarPosition: 'top',%0A edgeHitWidth: 30,%0A springTension: 50,%0A springFric
tion:
-'top'
+10
%0A
@@ -879,16 +879,17 @@
& vx %3C=
+-
0.5)) %7B%0A
@@ -2643,23 +2643,68 @@
on:
-10, tension: 50
+this.props.springFriction, tens... |
2a9f143b6139d2e201074dcf5fc001cecaefa37a | enable 404.html | index.js | index.js | var http = require('http');
var bodyParser = require('body-parser');
var express = require('express');
var morgan = require('morgan');
var compress = require('compression');
var app = express();
app.use(compress());
app.use(morgan('dev'));
app.use(express.static(__dirname + '/public'));
app.use(bodyParser.json());
app... | JavaScript | 0.000001 | @@ -367,18 +367,16 @@
e%0A%7D));%0A%0A
-/*
app.get(
@@ -444,15 +444,11 @@
%0A%7D);
-*/
%0A%0A%0A
-/*
app.
@@ -563,16 +563,23 @@
ame + '/
+public/
404.html
@@ -588,10 +588,8 @@
%0A%7D);
-*/
%0A%0A%0Aa
|
4e1000b53d05d9a5042d298652559bb481043850 | Prepare for new WP-API URLs | index.js | index.js |
/**
* Module dependencies.
*/
var WPError = require('wp-error');
var superagent = require('superagent');
var debug = require('debug')('wpcom-xhr-request');
/**
* Export a single `request` function.
*/
module.exports = request;
/**
* WordPress.com REST API base endpoint.
*/
var proxyOrigin = 'https://public-... | JavaScript | 0 | @@ -420,68 +420,8 @@
';%0A%0A
-/**%0A * WP-API Namespaces%0A */%0Avar wpApiNamespaces = %5B'wp'%5D;%0A%0A
/**%0A
@@ -1079,17 +1079,17 @@
;%0A%0A //
-i
+I
f this i
@@ -1096,14 +1096,14 @@
s a
-wp-api
+WP-API
req
@@ -1151,58 +1151,244 @@
&&
-wpApiNamespaces.indexOf( apiNamespace ) !== -1 ) %7B
+/%5C//.test( ... |
3f7ebcabe77bb0bdbaf34c1c23146788d7938417 | fix error | index.js | index.js | 'use strict';
var koa = require('koa');
var koaRoute = require('koa-route');
var co = require('co');
var argparse = require('argparse');
var api = require('./lib/api.js');
var comic = require('./lib/comic.js');
var net = require('./lib/net.js');
function main (args) {
var parser = new argparse.ArgumentParser();
... | JavaScript | 0.000002 | @@ -241,16 +241,59 @@
t.js');%0A
+var asyncio = require('./lib/asyncio.js');%0A
%0A%0Afuncti
|
d71a0657a341d8efafce77991a8552160c25d599 | Update to use default Node.js path | index.js | index.js | #!/usr/bin/env /Users/robertbenjamin/.nodenv/versions/6.10.1/bin/node
// <bitbar.title>BitBus</bitbar.title>
// <bitbar.version>v1.0</bitbar.version>
// <bitbar.author>Robert Benjamin</bitbar.author>
// <bitbar.author.github>robertbenjamin</bitbar.author.github>
// <bitbar.desc>A BitBar menubar app for seeing when the... | JavaScript | 0 | @@ -13,52 +13,17 @@
nv /
-Users/robertbenjamin/.nodenv/versions/6.10.1
+usr/local
/bin
|
b9efb485bb8d77a81451330ddfa786e181e9301d | Refactor to prevent argument reassignment | index.js | index.js | /*!
* compression
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*/
/**
* Module dependencies.
* @private
*/
var accepts = require('accepts')
var bytes = require('bytes')
var compressible = req... | JavaScript | 0.000001 | @@ -693,22 +693,23 @@
ns) %7B%0A
+var
opt
-ion
s = opti
@@ -717,17 +717,16 @@
ns %7C%7C %7B%7D
-;
%0A%0A var
@@ -737,19 +737,16 @@
er = opt
-ion
s.filter
@@ -783,60 +783,21 @@
hold
-;%0A%0A if (false === options.threshold %7C%7C 0 ===
+ = typeof
opt
-ion
s.th
@@ -807,69 +807,37 @@
hold
-) %7B%0A th... |
d3426fd1687e05b59f7a10163d8a3862c1a6d9d4 | remove erroneous console.log | index.js | index.js | "use strict";
const { readFileSync, writeFileSync } = require("fs");
const { dirname, basename } = require("path");
const postcss = require("postcss");
const MapGenerator = require("postcss/lib/map-generator");
const utils = require("./utils");
const mkdirp = require("mkdirp");
module.exports = postcss.plugin("postcs... | JavaScript | 0.000005 | @@ -2125,60 +2125,8 @@
()%0A%0A
- console.log('changing opts.to', res%5B0%5D)%0A
|
8db91350cac4b8845ff966ca54cd379bac28d95a | Fix edit | index.js | index.js | const { EventEmitter } = require('events')
const slack = require('@slack/client')
const makeRemoveFormatting = require('slack-remove-formatting')
const format = require('./format')
const indexBy = (prop, items) =>
items.reduce((index, item) => (index[item[prop]] = item, index), {})
function Slack (config) {
const... | JavaScript | 0.000001 | @@ -2058,33 +2058,42 @@
.then(res =%3E
-(
+%7B%0A
res.message.chan
@@ -2101,33 +2101,84 @@
el = res.channel
-,
+%0A res.message.ts = message.id%0A%0A return
res.message))%0A
@@ -2165,33 +2165,40 @@
turn res.message
-)
+%0A %7D
)%0A .then(me
|
145a993498028281a6e903cbfd2a1a2b93db9814 | add 415 status code to unsupported content encodings | index.js | index.js |
var zlib = require('zlib')
module.exports = inflate
function inflate(stream, options) {
options = options || {}
var encoding = options.encoding
|| (stream.headers && stream.headers['content-encoding'])
|| ''
switch (encoding) {
case 'gzip':
case 'deflate':
break
case '':
return stream
... | JavaScript | 0 | @@ -331,13 +331,17 @@
-throw
+var err =
new
@@ -392,16 +392,51 @@
coding)%0A
+ err.status = 415%0A throw err%0A
%7D%0A%0A r
|
edd32f939310125461ede8c2a8f39d9bda0e0ce1 | call task without indirect run() method | index.js | index.js | 'use strict';
var PluginError = require('gulp-util').PluginError;
function helper(name) {
var MESSAGES = {
NO_STREAM: 'recipes in ' + name + ' stream-processor must return a stream',
NO_TASK: 'no child task specified',
UPSTREAM: name + ' stream-processor do not accept up-stream',
DONE: 'recipes in ' + name +... | JavaScript | 0.999972 | @@ -843,12 +843,8 @@
ask.
-run.
call
|
19651583b93e936241a564e875f92d16a7d5c1d4 | fix "Illegal invocation" error in Chrome | index.js | index.js | 'use strict';
var has = Object.prototype.hasOwnProperty
, ms = require('millisecond');
/**
* Simple timer management.
*
* @constructor
* @param {Mixed} context Context of the callbacks that we execute.
* @api public
*/
function Tick(context) {
if (!(this instanceof Tick)) return new Tick(context);
this.t... | JavaScript | 0.000072 | @@ -2000,16 +2000,27 @@
Interval
+.bind(null)
,%0A fn
|
269db1318b22036d0d202a8426824460e09eff7f | debug empty string from pdc | index.js | index.js | var basename = require('path').basename;
var dirname = require('path').dirname;
var extname = require('path').extname;
var debug = require('debug')('metalsmith-pandoc');
var pdcPath = require('pandoc-bin').path;
var pdc = require('pdc');
var minimatch = require('minimatch');
var async = require('as... | JavaScript | 0.000121 | @@ -836,17 +836,17 @@
debug('
-c
+C
hecking
@@ -1139,25 +1139,25 @@
debug('
-c
+C
onverting fi
@@ -1182,12 +1182,17 @@
-pdc(
+var md =
data
@@ -1211,16 +1211,30 @@
String()
+;%0A pdc(md
, from,
@@ -1280,16 +1280,181 @@
-debug('c
+if (err) debug('ERROR: %25s', err);%0A if (res == ... |
7789942ddd169e342f2099b13adbf9e44138186d | Manage joinArgs even if previousRoomMessages is undefined. | index.js | index.js | var Adapter = require("socket.io-adapter");
module.exports = adapter;
function adapter(option) {
var opt = option || {};
var peremption = opt.peremption || 24 * 3600 * 1000;
var length = opt.length || 100;
function Backlog(nsp) {
Adapter.call(this, nsp);
this.previousMessages = {};
var self = this;
funct... | JavaScript | 0 | @@ -1514,24 +1514,42 @@
essages) %7B%0A%09
+%09%09if (joinArgs) %7B%0A
%09%09var joinAr
@@ -1549,24 +1549,36 @@
joinArgs =
+null;%0A%09%09if (
this.nsp.con
@@ -1583,33 +1583,39 @@
onnected%5Bid%5D
-.
+) %7B%0A%09%09%09
joinArgs
;%0A%09%09%09if (joi
@@ -1606,25 +1606,42 @@
Args
-;%0A%09%09%09if (
+ = this.nsp.... |
50042870d05fecdd23fc231acf60a769d93533cd | Update fb.js | js/fb.js | js/fb.js | Parse.initialize("7YyZO6oZNVongKR6pluyULEkMEmvLVRtVZvd6OXn", "JTOrsTnWqTBhxqxFMEvPdOUzDd9Ro01JqpiAF003");
window.fbAsyncInit = function() {
Parse.FacebookUtils.init({ // this line replaces FB.init({
appId : '971388552927772', // Facebook App ID
status : true, // check Faceboo... | JavaScript | 0.000001 | @@ -2411,16 +2411,23 @@
me,email
+,gender
', funct
@@ -2505,21 +2505,22 @@
esponse.
-email
+gender
;%0D%0A %7D
|
48c1a812c89498100f87ec45106d08d5191e962c | Update ga.js | js/ga.js | js/ga.js | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js'... | JavaScript | 0.000002 | @@ -3012,27 +3012,19 @@
eeharsha
-s.github.io
+.me
/%22)%7B%0A%09%09%09
|
5e69cf66ff3af3d2d46848b7a03326cf3a9ca8eb | Remove local test url. | client/dist/auth/app.js | client/dist/auth/app.js | 'use strict';
function testToken() {
$('#test-result').html('Loading...');
// set token to Authorization header
$.ajax({
method: 'GET',
url: "https://" + location.hostname + '/api/v1/mgnt/users/me',
headers: {
authorization: localStorage.getItem('token')
}
})
.done(function(data) {
... | JavaScript | 0 | @@ -986,19 +986,16 @@
.');%0A
- //
window.
@@ -1085,137 +1085,8 @@
er;%0A
- window.location.href = %22https://r2c5wmub95.execute-api.ap-northeast-1.amazonaws.com/devjim/authentication/signin/%22+provider;%0A
%7D)
|
9efde3de8f8c726084678a5150ae567d2a9896ef | Fix infinite scroll again | client/routes/routes.js | client/routes/routes.js | var subs = new SubsManager({
// cache recent 50 subscriptions
cacheLimit: 50,
// expire any subscription after 30 minutes
expireIn: 30
});
var scrolled = false;
Router.configure({
layoutTemplate: 'mainLayout',
// loadingTemplate: 'loading',
notFoundTemplate: 'notFound',
onRun: function () {
console... | JavaScript | 0.000002 | @@ -514,30 +514,64 @@
!Meteor.user
+Id
()) %7B%0A
+ this.layout('mainLayout');%0A%0A
if (Sess
@@ -826,32 +826,34 @@
if (Meteor.user
+Id
()) %7B%0A this.r
@@ -1018,133 +1018,9 @@
%7D);%0A
-// Iron.Router.plugins.dataNotFound = function (router, options) %7B%0A// router.onBeforeAction('dataNotFound', o... |
1dd36ffecc16fe18e2dd1ebb939536755cd84d3d | remove constant to prevent potential merge conflict | client/src/constants.js | client/src/constants.js | export const TOGGLE_SIGNUP_FORM = 'TOGGLE_SIGNUP_FORM';
export const CHANGE_SIGNUP_FIELD = 'CHANGE_SIGNUP_FIELD';
export const ADD_SIGNUP_ERROR = 'ADD_SIGNUP_ERROR';
export const CLEAR_ERRORS = 'CLEAR_ERRORS';
export const CHANGE_LISTING_FIELD = 'CHANGE_LISTING_FIELD';
export const UPLOAD_LISTING_IMAGE = 'UPLOAD_LISTIN... | JavaScript | 0 | @@ -2358,24 +2358,37 @@
RT_FILTER';%0A
+%3C%3C%3C%3C%3C%3C%3C HEAD%0A
export const
@@ -2477,16 +2477,84 @@
ICKED_LISTING';%0A
+=======%0A%3E%3E%3E%3E%3E%3E%3E remove constant to prevent potential merge conflict%0A
|
1f01d031172d2175b8312382db316f951417c6d9 | Update rests.js | drawing/rests.js | drawing/rests.js | function drawSemiBreveRest(cvs, ctx, x, y){
}
function drawCrotchetRest(cvs, ctx, x, y){
}
function drawQuaverRest(cvs, ctx, x, y){
}
function drawSemiQuaverRest(cvs, ctx, x, y){
}
function drawDemiSemiQuaverRest(cvs, ctx, x, y){
}
function drawHemiDemiSemiQuaverRest(cvs, ctx, x, y){
}
function drawRest(cvs... | JavaScript | 0.000001 | @@ -26,32 +26,40 @@
t(cvs, ctx, x, y
+, height
)%7B%0A%0A%7D%0A%0Afunction
@@ -81,32 +81,40 @@
t(cvs, ctx, x, y
+, height
)%7B%0A%0A%7D%0A%0Afunction
@@ -134,35 +134,480 @@
t(cvs, ctx, x, y
-)%7B%0A
+, height)%7B%0A%09ctx.beginPath();%0A%09ctx.arc(x, y, height / 4, 0, 2 * Math.PI);%0A%09ctx.fill();%0A%09%0A%09ct... |
fa61501ccbedad5572dd7fdcb14619a393b446de | Add asm type annotation | lib/node_modules/@stdlib/math/constants/int8-max/lib/index.js | lib/node_modules/@stdlib/math/constants/int8-max/lib/index.js | 'use strict';
// 2**7 - 1
var INT8_MAX = 127;
// EXPORTS //
module.exports = INT8_MAX;
| JavaScript | 0.000001 | @@ -38,17 +38,42 @@
AX = 127
-;
+%7C0; // asm type annotation
%0A%0A%0A// EX
|
3d798d05b8dd9b771616d428756aff23f9eee636 | Convert to ES6 class | ember/app/services/cesium-loader.js | ember/app/services/cesium-loader.js | import { debug } from '@ember/debug';
import Service from '@ember/service';
export default Service.extend({
loaderPromise: null,
load() {
let promise = this.loaderPromise;
if (!promise) {
debug('Loading Cesium...');
promise = loadJS('/cesium/Cesium.js');
this.set('loaderPromise', promise... | JavaScript | 0.999991 | @@ -89,23 +89,50 @@
ult
+class CesiumLoader
Service
-.
+
extend
-(
+s Service
%7B%0A
@@ -148,15 +148,16 @@
mise
-:
+ =
null
-,
+;
%0A%0A
@@ -378,13 +378,10 @@
%0A %7D
-,
%0A%7D
-);
%0A%0Afu
|
afadf76641eb2d4068b5af0915bbd38d4ebf94f8 | use github pagination to fetch all issues | controllers/issues.js | controllers/issues.js | var GitHubApi = require('github');
var Issue = require('../models/Issue');
var User = require('../models/User');
var Vote = require('../models/Vote');
var async = require('async');
var _ = require('underscore');
var votesController = require('./votes');
var addVotesToIssues = votesController.addVotesFor('issue');
var u... | JavaScript | 0 | @@ -745,16 +745,36 @@
ext) %7B%0A%0A
+ var issues = %5B%5D;%0A%0A
github
@@ -900,68 +900,247 @@
pen'
-%0A %7D, function (err, issues) %7B%0A if(err) return next(err);
+,%0A per_page: 100%0A %7D, issuesCallback);%0A%0A function issuesCallback(err, ret) %7B%0A if(err) return next(err);%0A%0A issues =... |
8b9d7807318f746aa36af753c2e2d070703b750a | Add configurable redirect for oauth2 | controllers/oauth2.js | controllers/oauth2.js | const express = require('express');
const router = express.Router();
const csrf = require('csurf');
const auth = require('../helpers/authentication');
const api = require('../api');
const csrfProtection = csrf({ cookie: true });
router.get('/login', csrfProtection, (req, res, next) => api(req)
.get(`/oauth2/loginRe... | JavaScript | 0 | @@ -530,24 +530,68 @@
edirect(
-'/login'
+req.app.Config.get('NOT_AUTHENTICATED_REDIRECT_URL')
);%0A%09%09%7D%0A%09
|
d7990aab517e7a84255e0f783adb53bd2ad44564 | Store udp keys to disk | ed2k/udpcrypt.js | ed2k/udpcrypt.js | var log = require('tinylogger')
var crypt = require('./crypt.js')
var misc = require('./misc.js')
var conf = require('../enode.config.js').config
var fs = require('fs')
require('./buffer.js')
var MAGICVALUE_UDP_SERVERCLIENT = 0xA5
var MAGICVALUE_UDP_CLIENTSERVER = 0x6B
var MAGICVALUE_UDP_SYNC_CLIENT = 0x395F2EC1
var ... | JavaScript | 0 | @@ -354,16 +354,45 @@
3EF24D5%0A
+var keyBufferSize = 0xffffff%0A
var send
@@ -409,24 +409,29 @@
Buffer(
-0xffffff
+keyBufferSize
)%0Avar re
@@ -450,24 +450,29 @@
Buffer(
-0xffffff
+keyBufferSize
)%0A%0A// Pr
@@ -705,32 +705,37 @@
endKeys, 0,
-0xffffff
+keyBufferSize
, 0)%0A fs.
@@ -760,35 +760,44 @@
eys... |
fecc9056fe444dbd470c5c68a6fd3e318f11a85c | use getKeyboardResponse | plugins/jspsych-animation.js | plugins/jspsych-animation.js | /**
* jsPsych plugin for showing animations
* Josh de Leeuw
* updated January 2014
*
* shows a sequence of images at a fixed frame rate.
* subject can respond with keys if desired.
* entire animation sequence is recorded as JSON encoded string.
* responses are tagged with rt and image that was onscreen.
*
* ... | JavaScript | 0.000001 | @@ -4431,33 +4431,32 @@
%7D%0A %7D%0A
-%0A
var
@@ -4455,283 +4455,55 @@
-var resp_func = function(e) %7B%0A var flag = false;%0A // check if the key is any of the options, or if it is an accidental keystroke%0A for (var i = 0; i %3C trial.choi... |
af063256a807897444ceb524fac6809e5b62b3b8 | Use string utility | lib/node_modules/@stdlib/regexp/regexp/benchmark/benchmark.js | lib/node_modules/@stdlib/regexp/regexp/benchmark/benchmark.js | 'use strict';
// MODULES //
var bench = require( '@stdlib/bench' );
var pkg = require( './../package.json' ).name;
var RE_REGEXP = require( './../lib' );
// MAIN //
bench( pkg, function benchmark( b ) {
var out;
var str;
var i;
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
str = '/^['+String.fromCharCode... | JavaScript | 0.000028 | @@ -63,16 +63,81 @@
nch' );%0A
+var fromCodePoint = require( '@stdlib/string/from-code-point' );%0A
var pkg
@@ -175,16 +175,16 @@
).name;%0A
-
var RE_R
@@ -363,27 +363,21 @@
%5E%5B'+
-String.fromCharCode
+fromCodePoint
( 97
@@ -612,17 +612,9 @@
;%0A%09%7D
- else %7B%0A%09
+%0A
%09b.p
@@ -642,19 +642,16 @@
hed... |
20cf3a32c6538749f8464f3028135dad9fa80f5e | Allow unexpected test all kind of requests, not only GET | test-helpers/expect.js | test-helpers/expect.js | import expect from 'unexpected';
import { isString, isPlainObject } from 'lodash';
import { serialize } from 'cookie';
import app from '../index';
expect.installPlugin(require('unexpected-express'));
expect.installPlugin(require('unexpected-dom'));
let subjectToRequest = (subject) => {
if (isString(subject)) {
... | JavaScript | 0.000001 | @@ -58,16 +58,23 @@
inObject
+, merge
%7D from
@@ -394,73 +394,127 @@
ject
- && %22session%22 in subject) %7B%0A return %7B%0A url: subject.url,%0A
+) %7B%0A let result = %7B%0A url: subject.url%0A %7D;%0A%0A if (%22session%22 in subject) %7B%0A result = merge(result, %7B%0A
@@ -... |
6d233eb0d51f3bf0e93090a98d7610c58951153d | Version 1.5 - parallel fetch of multiple "requires" | comploader.js | comploader.js | /** comploader 1.4.1 - BSD licensed - https://github.com/spantaleev/comploader **/
(function () {
var registeredComponents = {},
loadedComponents = {},
loadedResources = {},
componentWaiters = {},
addToHead = function (child) {
var head = document.head || document.getElementsByTagName('head')[0];
hea... | JavaScript | 0 | @@ -14,11 +14,9 @@
r 1.
-4.1
+5
- B
@@ -4700,29 +4700,71 @@
%0A%0A%09%09
-var onComponentLoad =
+for (var idx in components) %7B%0A%09%09%09loadComponent(components%5Bidx%5D,
fun
@@ -4770,24 +4770,25 @@
nction () %7B%0A
+%09
%09%09%09loadedCou
@@ -4796,16 +4796,17 @@
t += 1;%0A
+%09
%09%09%09if (c
@@ -4837,24... |
043e3a23582ab313d85e2e231659458ef6b86181 | Add more tests | eslint-plugin/tests/lib/rules/no-double-dash-modifier.js | eslint-plugin/tests/lib/rules/no-double-dash-modifier.js | /**
* @fileoverview Warns against using the deprecated, double-dash style for BEM
* notation. See:
* https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_lds.htm.
* @author Kevin Gao
*/
//------------------------------------------------------------------------------
// Requirements
//---------... | JavaScript | 0 | @@ -728,32 +728,111 @@
--------------%0A%0A
+const parserOptions = %7B%0A%09ecmaVersion: 6,%0A%09ecmaFeatures: %7B%0A%09%09jsx: true,%0A%09%7D,%0A%7D;%0A%0A
const ruleTester
@@ -918,88 +918,879 @@
%5B%0A%09%09
-// give me some code that won't trigger a warning%0A%09%5D,%0A%0A%09invalid
+%7B%0A%09%09%09code: '%3Cdiv ... |
173190bd3fd6647857a77c1bd1beae6bdfdf33c7 | fix first workshop | 01-co/index.js | 01-co/index.js |
var fs = require('fs');
/**
* Create a yieldable version of `fs.stat()`:
*
* var stats = yield fs.stat(__filename);
*
* Hint: you can return a yieldable.
*/
exports.stats = function () {
};
/**
* Create a yieldable version of `fs.exists()`:
*
* var exists = yield fs.exists(__filename);
*
* Hint: don... | JavaScript | 0.000001 | @@ -173,17 +173,16 @@
rts.stat
-s
= funct
@@ -178,32 +178,40 @@
tat = function (
+filename
) %7B%0A%0A%7D;%0A%0A/**%0A *
@@ -300,32 +300,154 @@
__filename);%0A *%0A
+ * Note that %60fs.exists()%60 simply wraps %60fs.stat()%60.%0A * If %60fs.stat()%60 does not return an error, then the file exists!%0A *%0A
* Hi... |
9b75d3eb84cbf575d0f1f2e284b2e90658680696 | Change helper register call to _registerHelper | app/initializers/t.js | app/initializers/t.js | import Ember from 'ember';
import T from 'ember-i18next/utils/t';
import Stream from 'ember-i18next/utils/stream';
import tHelper from '../helpers/t';
import config from '../config/environment';
function initializeLibrary (application) {
var options = config.i18nextOptions || {};
window.i18n.init(options, functio... | JavaScript | 0 | @@ -504,24 +504,88 @@
lication) %7B%0A
+ // TODO: investigate a way to avoid using this private method%0A
var regist
@@ -610,16 +610,17 @@
TMLBars.
+_
register
@@ -798,17 +798,16 @@
return
-
applicat
|
d122f972e561138e6b5127505f8686735b4b79bb | fix download buttons for go.dev/dl/ | _content/doc/download.js | _content/doc/download.js | class DownloadsController {
constructor() {
// Parts of tabbed section.
this.tablist = document.querySelector('.js-tabSection');
this.tabs = this.tablist.querySelectorAll('[role="tab"]');
this.panels = document.querySelectorAll('[role="tabpanel"]');
// OS for which to display download and install... | JavaScript | 0.000008 | @@ -438,34 +438,16 @@
tUrl = '
-https://golang.org
/dl/?mod
@@ -1921,26 +1921,8 @@
= '
-https://golang.org
/dl/
|
09230b1ea6e7c09d17506bc6cf2df75bb88404fb | add diffing on save, and local updates | base-model.js | base-model.js | //Object.create shim
if (typeof Object.create != 'function') {
Object.create = (function() {
var thing = function() {};
return function (prototype) {
if (arguments.length > 1) {
throw Error('Second argument not supported');
}
if (typeof prototype !... | JavaScript | 0 | @@ -570,16 +570,181 @@
)();%0A%7D%0A%0A
+var diff = function(a,b) %7B%0A var keys = _.map(a, function(v, k)%7B%0A if(b%5Bk%5D === v)%7B%0A return k;%0A %7D%0A %7D);%0A return _.omit(a, keys);%0A%7D;%0A%0A%0A%0A
/*global
@@ -966,24 +966,59 @@
document);%0A
+ this._document = ... |
546e992491d4d6fecc81ea261d3c195a58483314 | clarify doc. | medea/medea.statepool.js | medea/medea.statepool.js |
/* medea.js - Open Source, High-Performance 3D Engine based on WebGL.
*
* (c) 2011-2013, Alexander C. Gessler
* https://github.com/acgessler/medea.js
*
* Made available under the terms and conditions of a 3-clause BSD license.
*
*/
medealib.define('statepool',[],function(medealib, undefined) {
"use strict";
... | JavaScript | 0 | @@ -3573,16 +3573,309 @@
medea.
+A typical use case is an%0A%09 * application wishing to use custom WebGl drawing commands to achieve%0A%09 * things not directly possible or too slow with medea. Any WebGl APIs may %0A%09 * be used and medea is able to resume afterwards if DropGlCache() is invoked%0A%09 * before ... |
6906d10fcec7fad04e00f81c29d2364cdf9713ea | update torque description | editor/editor.js | editor/editor.js |
//i18n placeholder
function _t(s) { return s; }
var dialog = require('./dialog');
var Splash = require('./splash');
var DOMParser = require('../vendor/DOMParser');
var utils = require('./utils');
var TEMPLATE_LIST = [{
title: 'slides',
description: 'Display visualization chapters like slides in a presenta... | JavaScript | 0.000003 | @@ -726,86 +726,78 @@
n: '
-Create a visualization that changes as your reader moves through your narrativ
+Link story elements to moments in time using this animated map templat
e',%0A
|
8d4b6537cdf8ba487aac8397c98716ef8a12bc75 | add semicolons | test/bootstrap.test.js | test/bootstrap.test.js | 'use strict';
var Sails = require('sails');
var sails = null;
// Global before hook
before(function (done) {
// Lift Sails with test database
Sails.lift({
log: {
/* If you need to see what errors are given change this to 'error' */
level: 'silent'
},
models: {
connection: 'test',
migrate: 'drop'
... | JavaScript | 0.999999 | @@ -466,16 +466,17 @@
%0A%09%7D);%0A%7D)
+;
%0A%0A// Glo
@@ -600,12 +600,14 @@
er(done)
+;
%0A%7D)
+;
%0A
|
7e04332f227156af51691845de4f11e0aa3ff903 | remove break line | wpcom.js | wpcom.js |
/**
* Module dependencies.
*/
var Me = require('./lib/me');
var Site = require('./lib/site');
var Users = require('./lib/users');
var Batch = require('./lib/batch');
var debug = require('debug')('wpcom');
/**
* WordPress.com REST API class.
*
* @api public
*/
function WPCOM(request) {
if (!(this instanceof ... | JavaScript | 0.000004 | @@ -2441,9 +2441,8 @@
= WPCOM;
-%0A
|
f1b87d80000ac32a1745d720110ed89fe9f1d045 | fix double-require fs | test/error-callback.js | test/error-callback.js | var fs
try { fs = require('graceful-fs') } catch (e) { fs = require('fs') }
var fs = require('graceful-fs')
var test = require('tap').test
var glob = require('../')
test('mock fs', function(t) {
fs.readdir = function(path, cb) {
process.nextTick(function() {
cb(new Error('mock fs.readdir error'))
})
... | JavaScript | 0.000424 | @@ -73,40 +73,8 @@
) %7D%0A
-var fs = require('graceful-fs')%0A
var
|
1c4dbb625f3720baa5a1d69e5bfd6bd1e9433568 | Fix auth fixtures to have a different URL | test/fixtures/index.js | test/fixtures/index.js | var sample_xform = require('./sample_xform');
var vumigo = require('vumigo_v02');
var basic_auth = vumigo.utils.basic_auth;
module.exports = function() {
return [
{
request: {
method: "GET",
url: "http://www.example.org/xform00",
},
respon... | JavaScript | 0.000001 | @@ -492,32 +492,33 @@
url: %22http
+s
://www.example.o
@@ -1109,32 +1109,33 @@
url: %22http
+s
://www.example.o
@@ -1620,36 +1620,36 @@
-data
+body
: sample_xform,%0A
|
3b016342c6102f098f098f8a1ffd9fcf464e566a | Fix accessibility of column headers | app/javascript/mastodon/components/column_header.js | app/javascript/mastodon/components/column_header.js | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
hide: { id: 'column_header.h... | JavaScript | 0.000639 | @@ -910,39 +910,8 @@
ol,%0A
- focusable: PropTypes.bool,%0A
@@ -1094,60 +1094,8 @@
%7D;%0A%0A
- static defaultProps = %7B%0A focusable: true,%0A %7D%0A%0A
st
@@ -1804,19 +1804,8 @@
umn,
- focusable,
sho
@@ -4593,54 +4593,28 @@
%3Ch1
- tabIndex=%7Bfocusable ? 0 : null%7D role='
+%3E%0A %... |
33f7f194bd03bd9a820b14360c41874bdf93e34f | Fix mirage directory in addon projects containing in-repo addons | index.js | index.js | /* eslint-env node */
'use strict';
const path = require('path');
const mergeTrees = require('broccoli-merge-trees');
const Funnel = require('broccoli-funnel');
const map = require('broccoli-stew').map;
module.exports = {
name: 'ember-cli-mirage',
options: {
nodeAssets: {
'route-recognizer': npmAsset({
... | JavaScript | 0 | @@ -1646,17 +1646,16 @@
on'%5D &&
-!
app.proj
@@ -1681,13 +1681,18 @@
n'%5D.
-p
+configP
ath
-s
) %7B%0A
|
317b0bf844995cfd93b04d964ffa72114dda2983 | Declare undeclared variable | index.js | index.js | // Copyright 2014, 2015 Simon Lydell
// X11 (“MIT”) Licensed. (See LICENSE.)
// This regex comes from regex.coffee, and is inserted here by generate-index.js
// (run `npm run build`).
module.exports = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/... | JavaScript | 0.000007 | @@ -864,16 +864,20 @@
ch) %7B%0A
+var
token =
|
24cd0996b04b1d2f4a4206e1e3f04a1d88629414 | fix linter error | src/@ui/forms/formikSetters.tests.js | src/@ui/forms/formikSetters.tests.js | import React from 'react';
import { View } from 'react-native';
import renderer from 'react-test-renderer';
import { withFieldValueHandler, withFieldTouchedHandler } from './formikSetters';
describe('The withFieldValueHandler HOC', () => {
it('passes in a createFieldValueHandler function', () => {
const HOC = w... | JavaScript | 0.000002 | @@ -2641,28 +2641,29 @@
toMatchSnapshot();%0A %7D);%0A%7D);
+%0A
|
2e2a524df6379616974d789044ac1111fc82e0d0 | FIX Log starter | index.js | index.js | var util = require('util');
var MOVE_LEFT = new Buffer('1b5b3130303044', 'hex').toString();
var MOVE_UP = new Buffer('1b5b3141', 'hex').toString();
var CLEAR_LINE = new Buffer('1b5b304b', 'hex').toString();
var count = 0;
var lastMessageType = 'log';
//var BaseReporter = require('./base')
var SimpleReporter = functi... | JavaScript | 0 | @@ -517,11 +517,8 @@
rter
-asd
', '
@@ -3151,8 +3151,9 @@
eporter;
+%0A
|
af169a93e1fcf520f0e7a47199bf6da2466f9fa2 | remove array usage (#69) | index.js | index.js | /*jshint node:true*/
'use strict';
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var defaults = require('lodash.defaults');
var rename = require('broccoli-stew').rename;
var existsSync = require('exists-sync');
var chalk = require('chalk');
var path = require('path');
mod... | JavaScript | 0.000009 | @@ -4872,41 +4872,8 @@
Path
- = %5BmomentTimezonePath, 'builds'%5D
;%0A%0A
@@ -4945,38 +4945,35 @@
timezonePath
-.push(
+ =
'moment-timezone
@@ -4982,33 +4982,32 @@
ith-data.min.js'
-)
;%0A brea
@@ -5049,38 +5049,35 @@
timezonePath
-.push(
+ =
'moment-timezone
@@ -5096,33 +5096,32 @@
010-20... |
ac579757a3c739a840c658d1b7da63bf4b63cbd2 | Add git log range back in | index.js | index.js | 'use strict';
require('shelljs/global');
var assert = require('assert');
var EventEmitter = require('events');
class Release extends EventEmitter {
constructor(options) {
super();
assert(which('git'), 'This script requires git');
assert(options.name, "Please set the app's name via options.name");
... | JavaScript | 0 | @@ -3742,16 +3742,24 @@
lastTag%7D
+..origin
%7C grep
|
81114361ad15c740222883f61ddfb09ae042fc03 | Remove calculated props | index.js | index.js | var type = require('mutypes');
var str = require('mustring');
var eachCSV = require('each-csv');
var has = type['has'];
var isArray = type['isArray'];
var isString = type['isString'];
var isFn = type['isFn'];
var isElement = type['isElement'];
var isNumber = type['isNumber'];
var isObject = type['isObject'];
var isBoo... | JavaScript | 0.000001 | @@ -109,15 +109,12 @@
type
-%5B'
+.
has
-'%5D
;%0Ava
@@ -133,19 +133,16 @@
type
-%5B'
+.
isArray
-'%5D
;%0Ava
@@ -162,18 +162,17 @@
type
-%5B'
+.
isString
'%5D;%0A
@@ -167,18 +167,16 @@
isString
-'%5D
;%0Avar is
@@ -188,16 +188,13 @@
type
-%5B'
+.
isFn
-'%5D
;%0Ava
@@ -211,18 +211,17 @@
t = type
-%5B'
+.... |
edbc6e8931c9c2777520c0ccf0a3d74b8f75ebf6 | Add some comments and refine echo command | index.js | index.js |
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require("./config.json");
client.on('ready', () => {
console.log("I am ready!");
// client.channels.get('spam').send("Soup is ready!")
});
client.on('message', (message) => {
if (!message.content.startsWith(config.prefix... | JavaScript | 0 | @@ -173,64 +173,8 @@
%22);%0A
- // client.channels.get('spam').send(%22Soup is ready!%22)%0A
%7D);%0A
@@ -289,16 +289,148 @@
return;
+ // Ignore messages not%0A // starting with your prefix
%0A%0A let
@@ -599,19 +599,67 @@
ngth %3E ... |
b86dde41722c45ff971b8f45b75eb3b3bebb5233 | Fix `circleQuestionMark` character does not display properly on Ubuntu (#47) | index.js | index.js | 'use strict';
const escapeStringRegexp = require('escape-string-regexp');
const {platform} = process;
const main = {
tick: '✔',
cross: '✖',
star: '★',
square: '▇',
squareSmall: '◻',
squareSmallFilled: '◼',
play: '▶',
circle: '◯',
circleFilled: '◉',
circleDotted: '◌',
circleDouble: '◎',
circleCircle: 'ⓞ',
... | JavaScript | 0 | @@ -2596,16 +2596,48 @@
Ubuntu.%0A
+%09main.circleQuestionMark = '?';%0A
%09main.qu
|
8f25465beaaf700a569914d209df55566ebf95c4 | add ModulesInRootPlugin for miwp's node_modules | index.js | index.js | var path = require('path');
var AliasPlugin = require("enhanced-resolve/lib/AliasPlugin");
function MeteorImportsPlugin(config) {
config.exclude = [
'autoupdate',
'global-imports',
'hot-code-push',
'reload',
'ecmascript',
].concat(config.exclude || []);
this.config = config;
}
MeteorImportsP... | JavaScript | 0 | @@ -47,17 +47,17 @@
require(
-%22
+'
enhanced
@@ -80,17 +80,96 @@
asPlugin
-%22
+');%0Avar ModulesInRootPlugin = require('enhanced-resolve/lib/ModulesInRootPlugin'
);%0A%0Afunc
@@ -2538,24 +2538,127 @@
esolve'));%0A%0A
+ compiler.resolvers.loader.apply(new ModulesInRootPlugin('module', meteorNodeModules, 'resol... |
d3ad2fc8a923c39203d2fb402271205a856e216b | Integrate help description. | index.js | index.js | #!/usr/bin/env node
var vorpal = require('vorpal')();
var excuses = require('./store/excuses');
var reaction = require('./store/counter');
var compliments = require('./store/compliments');
var gifts = require('./store/gifts');
var proposes = require('./store/proposes');
var survives = require('./store/survives');
var ... | JavaScript | 0 | @@ -2713,16 +2713,100 @@
rds();%0A%0A
+// Integrate help description.%0Avorpal.find('help').description('Exits lovebird.');%0A%0A
// Execu
|
14761b87dcc3d3546b042cc8c0b94f1f1f6e39ad | Use odt2txt for ODT conversions | index.js | index.js | 'use strict';
var q = require('q'),
rimraf = require('rimraf'),
tmp = require('tmp'),
exec = require('child_process').exec,
spawn = require('child_process').spawn;
module.exports = function() {
/**
* Start an unoconv listener
*
* @returns promise
*/
function _startUnoconvL... | JavaScript | 0 | @@ -4324,16 +4324,146 @@
'odt':%0A
+%09%09%09 command = 'odt2txt --width=-1 ' + path;%09%09%09 %0A skip = true;%0A break;%0A
|
6c276338267434406efc812cffb31160b2b964c5 | Add React Map | index.js | index.js | /* eslint-disable no-process-exit */
require('babel-register');
require('dotenv').load();
var adler32 = require('adler32');
var Rx = require('rx'),
_ = require('lodash'),
utils = require('../server/utils'),
getChallenges = require('./getChallenges'),
app = require('../server/server');
var dasherize =... | JavaScript | 0.000001 | @@ -1321,16 +1321,60 @@
'Help';
+%0A var time = challengeSpec.time %7C%7C 'N/A';
%0A%0A co
@@ -1781,16 +1781,34 @@
r: order
+,%0A time: time
%0A %7D;%0A
|
0124067c845af8a11bb56f093861b55e6f9cb4a2 | Properly set url | index.js | index.js | var ogs = require('open-graph-scraper');
var express = require('express');
var ElasticSearch = require('elasticsearch');
var moment = require("moment-timezone");
var camoUrl = require('camo-url')({
host : process.env.CAMO_HOST,
key : process.env.CAMO_KEY
});
var app = express();
var es = new ElasticSearch.Client({
... | JavaScript | 0.999809 | @@ -2275,20 +2275,31 @@
ta.url =
+ %5B%7Bvalue:
url
+%7D%5D
;%0A%09%7D%0A%0A%09r
|
b4c22831e7a0f3d227e6172d609e3078dc7c0dda | fix index | index.js | index.js | var tuer = require('./app');
tuer.start({
rootdir:'/home/fuqiang/dev/tuerSource/',
port:3000,
mport:3030,
cookiepath:'127.0.0.1',
host:'127.0.0.1:3000',
jshost:'127.0.0.1:3000',
csshost:'127.0.0.1:3000',
imagehost:'127.0.0.1:3000',
dbname:'node-mongo-tuer',
dbhost:'127.0.0.1',
... | JavaScript | 0.000004 | @@ -59,30 +59,15 @@
ome/
-fuqiang/dev/tuerSource
+tuer2.0
/',%0A
@@ -113,25 +113,23 @@
iepath:'
-127.0.0.1
+tuer.me
',%0A h
@@ -129,38 +129,35 @@
,%0A host:'
-127.0.0.1:3000
+www.tuer.me
',%0A jshos
@@ -155,38 +155,34 @@
jshost:'
-127.0.0.1:3000
+js.tuer.me
',%0A cssho
@@ -181,38 +181,35 @@
... |
f25a87db0e3a8a1434efc21a16f463f43ef7d83b | Add size method | index.js | index.js | (function() {
'use strict';
function TSTNode(value) {
this.character = null;
this.right = null;
this.left = null;
this.middle = null;
this.value = value;
}
function TST() {
this.root = null;
this.size = 0;
}
TST.prototype.get = functio... | JavaScript | 0.000008 | @@ -265,16 +265,17 @@
this.
+_
size = 0
@@ -1269,16 +1269,17 @@
self.
+_
size++;%0A
@@ -1749,91 +1749,28 @@
-module.exports = TST;%0A%0A if (module.parent === null) %7B%0A main();%0A %7D%0A%0A
+TST.prototype.size =
fun
@@ -1779,12 +1779,8 @@
ion
-main
() %7B
@@ -1792,175 +1792,60 @@... |
93198dc1f072dff3d4400a06e27da6415904e4a3 | Add unit test for custom options | test/readcache.test.js | test/readcache.test.js | 'use strict';
var path = require('path');
var expect = require('chai').expect;
var readcache = require('../lib/readcache');
describe('readcache', function () {
it('Reads a file for the first time and caches it', function (done) {
readcache(path.join(__dirname, './testdata.json'), function (err, data, st... | JavaScript | 0 | @@ -942,32 +942,424 @@
%7D);%0A %7D);%0A%0A
+ it('Allows using custom options', function (done) %7B%0A readcache(path.join(__dirname, './testdata.json'), %7B encoding: 'utf16' %7D, function (err, data, stats) %7B%0A expect(err).to.be.null;%0A expect(data).to.be.a('string');%0A ... |
7cbfa6c1541741cf4a8f70c24d8087ceea5aaa6c | improve test coverage for Array.prototype.lastindexof (#1632) | polyfills/Array/prototype/lastIndexOf/tests.js | polyfills/Array/prototype/lastIndexOf/tests.js | /* eslint-env mocha, browser */
/* global proclaim */
it('is a function', function() {
proclaim.isInstanceOf(Array.prototype.lastIndexOf, Function);
});
it('takes 1 argument', function() {
proclaim.equal(Array.prototype.lastIndexOf.length, 1);
});
it('returns -1 when no match is found', function() {
proclaim.equa... | JavaScript | 0 | @@ -16,17 +16,8 @@
ocha
-, browser
*/%0A
@@ -25,16 +25,17 @@
* global
+s
proclai
@@ -40,16 +40,403 @@
aim */%0A%0A
+it('is a function', function () %7B%0A%09proclaim.isFunction(Array.prototype.lastIndexOf);%0A%7D);%0A%0Ait('has correct arity', function () %7B%0A%09proclaim.arity(Array.prototype.lastIndexOf, 1);%... |
55e34e6d97b3967db7f9aaf70a0436e95fe5e15c | Fix code highlighting example (#1560) | examples/code-highlighting/index.js | examples/code-highlighting/index.js |
import { Editor } from 'slate-react'
import { Value } from 'slate'
import Prism from 'prismjs'
import React from 'react'
import initialValue from './value.json'
/**
* Define our code components.
*
* @param {Object} props
* @return {Element}
*/
function CodeBlock(props) {
const { editor, node } = props
cons... | JavaScript | 0.000027 | @@ -2981,80 +2981,410 @@
se '
-punctuation': return %3Cspan style=%7B%7B opacity: '0.75' %7D%7D%3E%7Bchildren%7D%3C/span%3E
+tag': return %3Cspan style=%7B%7B fontWeight: 'bold' %7D%7D%3E%7Bchildren%7D%3C/span%3E%0A case 'punctuation': return %3Cspan style=%7B%7B opacity: '0.75' %7D%7D%3E%7Bchildren%7D%3C/span%3E... |
84988eadf158a90644380cacce96ec8f56c2fd9b | remove types from inputs that take all types | index.js | index.js | var featureCollection = require('turf-featurecollection');
var centroid = require('turf-center');
var distance = require('turf-distance');
var inside = require('turf-inside');
var explode = require('turf-explode');
/**
* Takes a feature and returns a point guaranteed to be on the surface of the feature.
*
* * Given... | JavaScript | 0.000027 | @@ -246,21 +246,29 @@
turns a
-p
+%7B@link P
oint
+%7D
guarant
@@ -603,82 +603,26 @@
ture
-%3C(Point%7CLineString%7CPolygon)%3E%7CFeatureCollection%3C(Point%7CLineString%7CPolygon)%3E
+%7CFeatureCollection
)%7D i
@@ -681,36 +681,8 @@
ture
-%3C(Point%7CLineString%7CPolygon)%3E
%7D a
|
a69cb16a8577b129d1d4a01b0b732aed3c2fe81a | use `hasOwnProperty` | index.js | index.js | /*!
* list-deps <https://github.com/jonschlinkert/list-deps>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
var loadPkg = require('load-pkg');
module.exports = function (type) {
var deps = loadPkg[type || 'dependencies'];
if (deps) {
return deps;
}
re... | JavaScript | 0 | @@ -161,21 +161,17 @@
';%0A%0Avar
-loadP
+p
kg = req
@@ -215,16 +215,24 @@
unction
+listDeps
(type) %7B
@@ -238,27 +238,15 @@
%7B%0A
-var deps = loadPkg%5B
+type =
type
@@ -267,17 +267,16 @@
ies'
-%5D
;%0A if (
deps
@@ -271,20 +271,40 @@
;%0A if (
-deps
+pkg.hasOwnProperty(type)
) %7B%0A
@@ -310,2... |
b4c509e880c7fb768c4db2ee678dd0604ace27e9 | add comment | index.js | index.js |
/**
* Module exports.
*/
exports = module.exports = PCRE;
/**
* Mapping of "character class" names to their JS RegExp equivalent.
*
* See: http://en.wikipedia.org/wiki/Regular_expression#Character_classes
*/
exports.characterClasses = {
alnum: '[A-Za-z0-9]',
word: '[A-Za-z0-9_]',
alpha: '[A-Za-z]',
bl... | JavaScript | 0 | @@ -129,16 +129,70 @@
valent.%0A
+ * So that /%5B:digit:%5D/ gets converted into /%5Cd/, etc.%0A
*%0A * Se
|
330f85eff6e5c884fac02cced82febf52d1867e4 | change favicon extension | index.js | index.js | 'use strict'
module.exports = (file, pattern) => {
pattern = pattern || /\/favicon\.png$/;
return (req, res, next) => {
if (pattern.test(req.url))
res.sendFile(file);
else next();
};
};
| JavaScript | 0.000001 | @@ -83,11 +83,17 @@
on%5C.
+(
png
+%7Cico)
$/;%0A
|
3bae639ea4b1ff04f2a0e87884556e375e4de58d | use specific vibration pattern instead repeat | index.js | index.js | 'use strict';
var _InCallManager = require('react-native').NativeModules.InCallManager;
import {
Platform,
Vibration,
} from 'react-native';
class InCallManager {
constructor() {
this.vibrate = false;
this.recordPermission = 'unknow';
this.cameraPermission = 'unknow';
this.a... | JavaScript | 0 | @@ -2253,16 +2253,24 @@
vibrate
+_pattern
, ios_ca
@@ -2372,16 +2372,21 @@
+this.
vibrate
@@ -2392,24 +2392,38 @@
= (
-vibrate === true
+Array.isArray(vibrate_pattern)
) ?
@@ -2850,181 +2850,105 @@
-this.vibrate = vibrate;%0A if (this.vibrate) %7B%0A if (Platform.OS === 'andro... |
e1e5840e921465d0454213cb455aca4661bcf715 | Replace q with native Promises | index.js | index.js | var Q = require('q');
/**
* Chai-Mugshot Plugin
*
* @param mugshot - Mugshot instance
* @param testRunnerCtx - Context of the test runner where the assertions are
* done
*/
module.exports = function(mugshot, testRunnerCtx) {
return function(chai) {
var Assertion = chai.Assertion;
function composeMe... | JavaScript | 0.999999 | @@ -1,27 +1,4 @@
-var Q = require('q');%0A%0A
/**%0A
@@ -674,16 +674,42 @@
var
+_this = this,%0A
captureI
@@ -723,17 +723,17 @@
his._obj
-;
+,
%0A
@@ -737,58 +737,149 @@
-var deferred = Q.defer();%0A var _this = this
+ promise, resolve, reject;%0A%0A promise = new Pro... |
c369d37f378a38864fa8faea024f80ce1ebf3126 | Update index.js | index.js | index.js | const Discord = require('discord.js');
const config = require('./settings.json');
const client = new Discord.Client();
const ddiff = require('return-deep-diff');
const path = require('path');
//Events
client.on('ready', () =>{
console.log('This is Margarine speaking!');
console.log('Online and awaiting orders!... | JavaScript | 0 | @@ -321,53 +321,8 @@
');%0A
- client.user.setGame('Being Useless...');%0A
%7D);%0A
@@ -1865,16 +1865,154 @@
ge =%3E %7B%0A
+%09if(!message.content.startsWith(config.prefix)) return;%0A%09let args = message.content.split(' ').slice(1);%0A%09var argresult = args.join(' ');%0A
%09if (mes
@@ -2036,16 +2036,16 @@
re... |
85afd1f054032d6a3c83102329c413b56cad99a9 | Optimize parsing complexity (fixes #80) | index.js | index.js | const slugify = (s) => encodeURIComponent(String(s).trim().toLowerCase().replace(/\s+/g, '-'))
const position = {
false: 'push',
true: 'unshift'
}
const hasProp = Object.prototype.hasOwnProperty
const permalinkHref = slug => `#${slug}`
const permalinkAttrs = slug => ({})
const renderPermalink = (slug, opts, sta... | JavaScript | 0 | @@ -1983,32 +1983,43 @@
kens
-%0A .filter(token =%3E
+.forEach((token, i) =%3E %7B%0A if (
toke
@@ -2021,25 +2021,25 @@
(token.type
-=
+!
== 'heading_
@@ -2048,32 +2048,46 @@
en')
+ %7B
%0A
-.filter(token =%3E
+ return%0A %7D%0A%0A if (!
isLe
@@ -2131,43 +2131,41 @@
))))
+ %7B
%0A... |
b71677e2626bee977d0a44ac00bc360d724f7d21 | Add spy (fix) | index.js | index.js | 'use strict'
function id (x) { return x }
function second (x,y) { return y }
function shackles(host) {
host = host || {}
// a mutating value which the host function wrappers will have closure over
var value
var spyAll = false
// the chaining object that houses all the wrapped functions
var container = {
v... | JavaScript | 0 | @@ -499,17 +499,17 @@
%7B%0A%09%09%09%09(
-f
+x
%7C%7C cont
|
070431fe6dad227dd5396da2a2d9f3b0715d8eef | fix typo in PluginError call | index.js | index.js | /**
* gulp-espower - A gulp plugin to apply espower to target files.
*
* https://github.com/power-assert-js/gulp-espower
*
* Copyright (c) 2013-2015 Takuto Wada
* Licensed under the MIT license.
* https://github.com/power-assert-js/gulp-espower/blob/master/LICENSE-MIT
*/
'use strict';
var through = require(... | JavaScript | 0.000002 | @@ -3668,34 +3668,34 @@
Error('gulp-espo
-e
w
+e
r', err, %7BshowSt
@@ -4281,18 +4281,18 @@
ulp-espo
-e
w
+e
r', err,
|
5b4510209e816234260dc536273930a59bab52e6 | Remove preceding 'prompt:' text | index.js | index.js | 'use strict';
const prompt = require('prompt');
const cwd = require('./lib/cwd');
const load = require('./lib/load');
const delegate = require('./lib/delegate');
const logger = require('./lib/logger');
const makeconfjson = require(cwd('makeconf.json'));
load(makeconfjson)
.then((schema) => {
prompt.get(schema, ... | JavaScript | 0.999999 | @@ -286,24 +286,77 @@
chema) =%3E %7B%0A
+ prompt.message = '';%0A prompt.delimiter = '';%0A%0A
prompt.g
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.