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 |
|---|---|---|---|---|---|---|---|
a23811fd4024cef1e1f719ae758633f3ca17661f | remove automatic longstacktrace in worker | index.js | index.js | var s_hrtime = process.hrtime()
, Worker = require('./lib/worker')
, Promise = require('bluebird')
;
// use BLUEBIRD_DEBUG=1 on worker boot instead
// Promise.longStackTraces();
console.log('>> started');
(new Worker()).listen(undefined, function(err, res){
var diff = process.hrtime(s_hrtime);
... | JavaScript | 0.000001 | @@ -117,86 +117,8 @@
;%0A%0A
-// use BLUEBIRD_DEBUG=1 on worker boot instead%0A// Promise.longStackTraces();%0A%0A
cons
|
d43f27fa1b1d90304dfed01334dac20c40b43cb0 | Fix issue on electron deployment related to local directory | main.js | main.js | // Main file, used only for Electron
var electron = require('electron'),
fs = require('fs'),
ini = require('ini'),
path = require('path'),
requirejs = require('requirejs');
var app = electron.app;
var BrowserWindow = electron.BrowserWindow;
var Menu = electron.Menu;
var ipc = electron.ipcMain;
var dialog = electr... | JavaScript | 0 | @@ -556,18 +556,34 @@
ileSync(
+app.getAppPath()+
'
-.
/locale.
@@ -2590,18 +2590,34 @@
setIcon(
+app.getAppPath()+
'
-.
/res/ico
|
434d43a6a495952f669acede9b3dc0972c2584b3 | fix production base url closes #38 | index.js | index.js | var path = require('path');
var isProduction = process.env.NODE_ENV === 'production';
var themeDir = path.resolve(__dirname, '../..').split('\\').slice(-1).pop();
module.exports = (api, options) => {
// set webpack's output directory to /assets
options.outputDir = 'assets';
//
// production
/... | JavaScript | 0 | @@ -485,16 +485,17 @@
'/assets
+/
';%0A%0A
|
b66ecfd1e18a6abcc0ee382a80ad3af345763b3b | Allow deferring port to the OS | index.js | index.js | var express = require('express');
var http = require('http');
var icecast = require('icecast-stack');
var ip = require('ip');
var lame = require('lame');
var stream = new require('stream');
// 16-bit signed samples
var SAMPLE_SIZE = 16, CHANNELS = 2, SAMPLE_RATE = 44100;
// If we're getting raw PCM data as expected, ... | JavaScript | 0 | @@ -2512,16 +2512,26 @@
ion(port
+, callback
) %7B%0A th
@@ -2555,15 +2555,26 @@
ort
-%7C%7C 8001
+!= null ? port : 0
;%0A
@@ -2637,16 +2637,189 @@
rverPort
+, function() %7B%0A this.serverPort = this.server.address().port;%0A%0A if (callback && typeof callback === 'function') %7B%0A callback(this.s... |
fe777d79c562796a3d53eb44f57a60e74923cbc6 | check types of session attributes | core/operator.js | core/operator.js | var formidable = require("formidable"),
util = require(CONFIG.root + "/core/util.js"),
send = require(CONFIG.root + "/core/send.js").send,
mods = require(CONFIG.root + "/core/module.js"),
auth = require(CONFIG.root + "/core/auth.js"),
getSession ... | JavaScript | 0 | @@ -730,24 +730,32 @@
session) %7B%0A
+
%0A //
@@ -818,25 +818,31 @@
!session %7C%7C
-!
+typeof
session.uid
@@ -845,25 +845,57 @@
uid
-%7C%7C !session.appid
+!== %22number%22 %7C%7C typeof session.appid !== %22string%22
) %7B%0A
|
68aeb00abd36975d78a79cd08916147e8ed26d51 | Use util.isError instead of instanceof | index.js | index.js | 'use strict';
var http = require('http');
var util = require('util');
var events = require('events');
var os = require('os');
var exec = require('child_process').exec;
var afterAll = require('after-all');
var parsers = require('./lib/parsers');
var request = require('./lib/request');
var connect = require('./lib/middl... | JavaScript | 0.000002 | @@ -3222,28 +3222,23 @@
f (!
-(err instanceof Erro
+util.isError(er
r))
|
c6a1210e650165f169a2f7d0bdb111ad8c42a711 | fix faulty test cases | test/integration/net/form.js | test/integration/net/form.js | 'use strict'
const tapdance = require('tapdance')
const comment = tapdance.comment
const run = tapdance.run
const ok = tapdance.ok
const http = require('http')
const qs = require('querystring')
const FormData = require('form-data')
const httpTest = require('./http_test')
const testInstance = require('../test_instance... | JavaScript | 0.000005 | @@ -3017,39 +3017,32 @@
rn testInstance(
-options
)%0A .then(s =%3E %7B
@@ -4355,23 +4355,16 @@
nstance(
-options
)%0A .the
|
00d50db898a264215a9b6097ec415c0c93fbdaef | Use upload on files instead of put object. | lib/BucketManager.js | lib/BucketManager.js | let fs = require('fs');
let glob = require('glob');
let path = require('path');
const contentTypeMappingConst = {
'.html': 'text/html',
'.json': 'application/json',
'.css': 'text/css',
'.js': 'application/javascript',
'.ico': 'image/x-icon',
'.svg': 'image/svg+xml',
'.eot': 'application/vnd.ms-fontobject',
'.t... | JavaScript | 0 | @@ -2239,33 +2239,30 @@
s.S3Manager.
-putObject
+upload
(%7B%0A%09%09%09Bucket
|
d7ba97c0dd51f7ce19edf29c2a4f2875ddd7eb40 | return save when loadCompleted (#568) | addon/mixins/flexberry-map-model-api-savelayer.js | addon/mixins/flexberry-map-model-api-savelayer.js | import Ember from 'ember';
export default Ember.Mixin.create({
saveLayers(layersIds) {
return Ember.RSVP.all(layersIds.map((layerId) => this.saveLayer(layerId)));
},
/**
Save layer.
@method saveLayer
@param {string} layerId Layer id.
@throws {Error}
@return {Ember.RSVP.Promise} Returns p... | JavaScript | 0 | @@ -632,24 +632,295 @@
eject) =%3E %7B%0A
+ let promise = new Ember.RSVP.Promise((resolve, reject) =%3E %7B%0A leafletObject.once('loadCompleted', () =%3E %7B%0A resolve();%0A %7D).once('error', (e) =%3E %7B%0A leafletObject.existingFeaturesLoaded = false;%0A reject();%0A ... |
81ccb661a394aa4b768a3c03e7a00c6d6c0c5ef4 | fix bug in #report loop | test/lib/collapsed-assert.js | test/lib/collapsed-assert.js | // Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | JavaScript | 0 | @@ -2233,16 +2233,23 @@
commands
+.length
; i++) %7B
|
7fc3788e6776f154a7b6c163468c8cf4988bc6b0 | Remove category tree | themes/current/src/components/productFilter.js | themes/current/src/components/productFilter.js | import React from 'react'
import { NavLink } from 'react-router-dom'
import text from '../lib/text'
import config from '../lib/config'
import CategoryTree from './categoryTree'
import Sort from './sort'
import PriceSlider from './priceSlider'
import AttributeFilter from './attributeFilter'
export default class Produc... | JavaScript | 0.000518 | @@ -133,50 +133,8 @@
g'%0A%0A
-import CategoryTree from './categoryTree'%0A
impo
|
cf57082eef6ae2af707521f68319fcac238c1131 | enable custom printing | test/mocha/to-string.spec.js | test/mocha/to-string.spec.js | 'use strict';
/* jshint ignore:start */
var expect = require('expect.js');
/* jshint ignore:end */
var _ = require('lodash');
var nj = require('../../src');
describe('toString', function () {
it('should properly format 1d array', function () {
expect(nj.array([0,1,2]).toString())
.to.eql('arra... | JavaScript | 0 | @@ -2110,23 +2110,875 @@
8, 99%5D%5D)');%0A
+ %7D);%0A describe('with custom printThreshold', function () %7B%0A var def;%0A before(function () %7B%0A def = nj.config.printThreshold;%0A nj.config.printThreshold = 7;%0A %7D);%0A after(function () %7B%0A ... |
347446610e66dc0223d515dc73a701b1104de52a | use normalized theme name by default (#370) | index.js | index.js | #!/usr/bin/env node
require('dotenv').config();
var pkg = require('./package.json');
var lib = require('./lib');
var program = require('commander');
var chalk = require('chalk');
var path = require('path');
function normalizeTheme(value, defaultValue) {
const theme = value || defaultValue;
return theme.match('jso... | JavaScript | 0 | @@ -668,16 +668,33 @@
Theme, '
+jsonresume-theme-
even')%0A
|
b853bee92648231c860e62ad7e60554edb7f8268 | Fix global leak | index.js | index.js | distance = require('turf-distance');
/**
* Returns the {@link Point} feature closest to the input.
*
* @module turf/nearest
* @param {Point} point the reference point
* @param {FeatureCollection} against a collection of {@link Feature|features}
* with {@link Point} geometries
* @returns {Feature} the closest po... | JavaScript | 0.000278 | @@ -1,16 +1,20 @@
+var
distance = requi
|
a7e80101be535e150068b3c2c2c832c00d8a6a43 | use more permissive regex to detect gnode | index.js | index.js | var gx = function(input, args) {
var method =
is_generator(input) ? 'run' :
input instanceof Function && Object.keys(input.prototype).length ? 'class' :
input instanceof Function && Object.keys(input).length ? 'keys' :
input instanceof Function ? 'proxy' :
input instanceof Object ? 'keys' : null;
if (met... | JavaScript | 0.000001 | @@ -695,28 +695,15 @@
voke
-%5C(%5C)%5Cs+%5C%7B%5Cs+state =
+%5B%5Cs%5CS%5D*
GenS
|
7d405b83291edb44505faa5356edd2c391160d41 | Update common.js | client/app/common/common.js | client/app/common/common.js | import angular from 'angular';
import Navbar from './navbar/navbar';
import Hero from './hero/hero';
import User from './user/user';
let commonModule = angular.module('app.common', [
Navbar.name,
Hero.name,
User.name
]);
export default commonModule; | JavaScript | 0.000001 | @@ -177,17 +177,18 @@
mon', %5B%0A
-%09
+
Navbar.n
@@ -192,17 +192,18 @@
r.name,%0A
-%09
+
Hero.nam
@@ -209,9 +209,10 @@
me,%0A
-%09
+
User
@@ -250,8 +250,9 @@
nModule;
+%0A
|
f6f9668cf78d133a9b43c413951c189758cc0294 | add updateOrAdd to index | index.js | index.js | const hasMany = require('./lib/has-many')
const belongsTo = require('./lib/belongs-to')
const addModelToStore = require('./lib/add-model-to-store')
const addEntityToStore = require('./lib/add-entity-to-store')
const updateEntity = require('./lib/update-entity')
const addRelatedEntityToEntity = require('./lib/add-relate... | JavaScript | 0 | @@ -408,16 +408,96 @@
ore.js')
+%0Aconst updateOrAddEntityToStore = require('./lib/update-or-add-entity-to-store')
%0A%0Aconst
@@ -637,16 +637,44 @@
romStore
+,%0A updateOrAddEntityToStore
%0A%7D%0A%0Amodu
|
b83865ad61750f5b2df16a6ce8cb3d3e57eda93a | add Image to index.js | index.js | index.js | // Addons
import Confirm from 'src/addons/Confirm/Confirm';
import Textarea from 'src/addons/Textarea/Textarea';
// Collections
import Column from 'src/collections/Grid/Column';
import Field from 'src/collections/Form/Field';
import Form from 'src/collections/Form/Form';
import Grid from 'src/collections/Grid/Grid';
i... | JavaScript | 0.000001 | @@ -49,24 +49,68 @@
m/Confirm';%0A
+import Image from 'src/addons/Image/Image';%0A
import Texta
@@ -1529,16 +1529,25 @@
onfirm,%0A
+ Image,%0A
Textar
|
8388c994d1301ad7fbc7866bbceee16dea0598c2 | Simplify Drag class | main.js | main.js | import MapboxSource from './src/mapbox/source';
var MAPBOX_TOKEN = 'pk.eyJ1IjoidGJpZW5pZWsiLCJhIjoiMGFmZGM3MTE1Nzc0ZGQ2NDkwZDc2MDQ2NDdiZGViMDYifQ.yxuaR8XhvnRpesaB_BXGyQ';
/**
* Define a namespace for the application.
*/
window.app = {};
var app = window.app;
app.Drag = class extends ol.interaction.Pointer {
... | JavaScript | 0.000002 | @@ -171,116 +171,18 @@
;%0A%0A%0A
-/**%0A * Define a namespace for the application.%0A */%0Awindow.app = %7B%7D;%0Avar app = window.app;%0A%0A%0Aapp.Drag =
class
+ Drag
ext
@@ -272,28 +272,24 @@
eDownEvent:
-app.
Drag.prototy
@@ -333,28 +333,24 @@
eDragEvent:
-app.
Drag.prototy
@@ -394,28 +394,24 @@
eMoveEv... |
e205eb72ce758ec49a85969c1dca1696642b52dd | Format code | index.js | index.js | /*!
* promptpay-qr
* JavaScript library to generate PromptPay QR code
* <https://github.com/dtinth/promptpay-qr>
*
* Refs:
* - https://www.blognone.com/node/95133
* - Ehttps://www.emvco.com/emv-technologies/qrcodes/
*
* @license MIT
*/
var crc = require('crc')
var ID_PAYLOAD_FORMAT = '00'
var ID_POI_METHOD ... | JavaScript | 0 | @@ -986,16 +986,22 @@
etType =
+ (%0A
target.
@@ -1014,16 +1014,24 @@
%3E= 15 ?
+ (%0A
BOT_ID_
@@ -1049,16 +1049,22 @@
ALLET_ID
+%0A )
: targe
@@ -1079,16 +1079,24 @@
%3E= 13 ?
+ (%0A
BOT_ID_
@@ -1110,18 +1110,32 @@
T_TAX_ID
+%0A ) : (%0A
-:
BOT_ID_
@@ -1156,16 +1156,25 @@
_N... |
fadb9530ab70dca83c1687d05877b9302e85da5b | handle resources with query & empty responses | index.js | index.js | var µ=require("Morgas");
var http=require("http");
var SC=µ.shortcut({
File:"File",
fileUtils:"File.util",
adopt:"adopt"
});
var NIWAapp=require("./NIWAapp");
//var config=require("./config");
var config={
port:8080,
//apps:["../NIWA-storage"]
apps:["C:/temp/test"]
};
var LOG=require("./logger");
var logger=LO... | JavaScript | 0.000001 | @@ -214,17 +214,17 @@
port:808
-0
+1
,%0A%09//app
@@ -257,20 +257,38 @@
s:%5B%22
-C:/temp/test
+../NIWA-Storage%22,%22../Morgas.js
%22%5D%0A%7D
@@ -1401,24 +1401,43 @@
1).join(%22/%22)
+.replace(/%5C?.*/,%22%22)
));%0A%09%09%09%7D%0A%09%09%09
@@ -2501,19 +2501,66 @@
;%0A%09else%0A
-
%09%7B%0A
+%09%09if(data==un... |
3780223581743b0046f6c83dca02ea7cd4dfd54f | Remove unnecessary defaults | index.js | index.js | /*jshint es5:true */
module.exports = function(opts) {
'use strict';
var port = opts.port || 8080
, webroot = process.cwd();
var connect = require('connect')
, http = require('http');
var indexes = [
/index\.html/i,
/readme\.md/i,
/readme\.markdown/i
];
var app = connect()
.use(... | JavaScript | 0.000004 | @@ -92,16 +92,8 @@
port
- %7C%7C 8080
%0A
@@ -862,13 +862,8 @@
mpts
- %7C%7C 5
%0A
|
75199691adeccc7a31586182ce567981f6988bfe | add init code for code ast | main.js | main.js | /* global __dirname */
/* global Editor */
var Util = require( 'util' );
var Path = require( 'path' );
var Firedoc = require( 'firedoc' ).Firedoc;
var enginePath = Editor.url( 'app://utils/api/engine-framework' );
var editorPath = Editor.url( 'app://utils/api/editor-framework' );
var runtimePath = Editor.runtimePath;
... | JavaScript | 0.000001 | @@ -1950,24 +1950,95 @@
// %7D );%0A%0A
+ var editorWin = Editor.Panel.findWindow('code-editor.panel');%0A%0A
Edit
@@ -2070,24 +2070,24 @@
r.panel', %7B%0A
-
@@ -2193,35 +2193,106 @@
%7D);%0A%0A
-var
+// first time open the code editor%0A if ( !editorWin ) %7B%0A ... |
ffa6ef7ebc41b14e6fe08889de3d1f149897f66b | use new heartbeats api resource | main.js | main.js | /* ==========================================================
WakaTime
Description: Analytics for programmers.
Maintainer: WakaTime <support@wakatime.com>
License: BSD, see LICENSE for more details.
Website: https://wakatime.com/
===========================================================*/
/*jslint vars: tru... | JavaScript | 0 | @@ -2646,14 +2646,17 @@
/v1/
-action
+heartbeat
s',%0A
@@ -2818,18 +2818,49 @@
-fil
+enity: file,%0A typ
e:
+'
file
+'
,%0A
|
f3413b1d95e261f735939fbcaee65e598fe92852 | Add optional strict parameter | index.js | index.js | var pSlice = Array.prototype.slice;
var Object_keys = typeof Object.keys === 'function'
? Object.keys
: function (obj) {
var keys = [];
for (var key in obj) keys.push(key);
return keys;
}
;
var deepEqual = module.exports = function (actual, expected) {
// 7.1. All identical values... | JavaScript | 0 | @@ -279,20 +279,28 @@
expected
+, strict
) %7B%0A
-
// 7.1
@@ -714,24 +714,55 @@
%7B%0A return
+ strict ? actual === expected :
actual == e
@@ -1254,16 +1254,24 @@
expected
+, strict
);%0A %7D%0A%7D
@@ -1488,16 +1488,24 @@
uiv(a, b
+, strict
) %7B%0A if
@@ -1931,16 +1931,24 @@
ual(a, b
+, strict
);%0... |
58a7c074183d65f5211a5a25899dee0e071462ca | Add menu divider. | main.js | main.js | /*!
* Brackets Autoprefixer 0.2.7
* Parse CSS and add vendor prefixes automatically.
*
* @author Mikael Jorhult
* @license http://mikaeljorhult.mit-license.org MIT
*/
define( function( require, exports, module ) {
'use strict';
// Get module dependencies.
var Menus = brackets.getModule( 'command/Menus' ),
... | JavaScript | 0 | @@ -3599,16 +3599,40 @@
o menu.%0A
+%09menu.addMenuDivider();%0A
%09menu.ad
|
7332a7a60e40ebe0b030bcb91d520f449a9c53cc | Add file checks | index.js | index.js | 'use strict';
var isPng = require('is-png');
var pngquant = require('pngquant-bin').path;
var spawn = require('child_process').spawn;
var through = require('through2');
/**
* pngquant imagemin plugin
*
* @param {Object} opts
* @api public
*/
module.exports = function (opts) {
opts = opts || {};
return throug... | JavaScript | 0.000001 | @@ -346,16 +346,163 @@
, cb) %7B%0A
+%09%09if (file.isNull()) %7B%0A%09%09%09cb(null, file);%0A%09%09%09return;%0A%09%09%7D%0A%0A%09%09if (file.isStream()) %7B%0A%09%09%09cb(new Error('Streaming is not supported'));%0A%09%09%09return;%0A%09%09%7D%0A%0A
%09%09if (!i
@@ -530,16 +530,26 @@
%7B%0A%09%09%09cb(
+null, fil... |
53e4d48086d4752f960141869b2554d048a906b3 | add imgix fluid code to main js | main.js | main.js | import React from 'react';
import { render } from 'react-dom';
import { browserHistory, Router } from 'react-router';
import routes from './routes';
let mountNode = document.getElementById("react-mount");
let router = (
<Router
history={browserHistory}
routes={routes}
/>
);
render(router, mountNode);
| JavaScript | 0 | @@ -143,16 +143,541 @@
utes';%0A%0A
+const options = %7B%0A updateOnResizeDown : true,%0A updateOnPinchZoom : true,%0A fitImgTagToContainerWidth: true,%0A fitImgTagToContainerHeight: true,%0A pixelStep : 10,%0A onChangeParamOverride: function(w, h) %7B%0A var dpr = Math.ceil(window.devicePixelRatio*10) /10;%0... |
55bac01d5b8b11024e5525d37ad313015a823b75 | return some metadata for get(hash) | index.js | index.js | var request = require('request')
var Cas = require('./level-content-addressable-store')
const ONE_HOUR = 60*60e3
// the getter and the db and the content db should all be separated.
// this means it's possible for the getter to handle cached resources, etc.
function isString (s) {
return 'string' === typeof s
}
mo... | JavaScript | 0.000235 | @@ -1120,18 +1120,149 @@
_opts,
-cb
+function (err, content) %7B%0A if(err) return cb(err)%0A cb(null, content, %7Bhash: url, fetched: false, cached: true%7D)%0A %7D
)%0A%0A f
|
65969b262737ebac0adf6b8cf419fdb05d38efc3 | Add help | index.js | index.js | #!/usr/bin/env node
var argv = require('optimist').argv;
| JavaScript | 0 | @@ -18,20 +18,24 @@
de%0A%0Avar
-argv
+optimist
= requi
@@ -52,11 +52,187 @@
st')
-.argv;
+,%0A argv;%0A%0Aargv = optimist%0A .usage('Pack the input, Usage: $0')%0A .alias('h', 'help')%0A .describe('h', 'Load this help')%0A .argv;%0A%0Aif (argv.help) %7B%0A return optimist.showHelp();%0A%7D
%0A
|
39d0d480d71b362b640ef7890c26618e79dad30c | fix default types due to nopt | index.js | index.js | 'use strict';
var nopt = require('nopt');
var parser = module.exports = {};
// 0 1 2 3
// ['node', __filename, <command>, [options] ]
parser.PARSE_ARGV_OFFSET = 2;
// cwd: {
// short: 'c',
// // '-c' is equivalent to '--cwd <default-short-value>'
// short_pattern: ['--cwd', '<d... | JavaScript | 0 | @@ -553,16 +553,76 @@
Object%7D%0A
+// - offset: %7BObject%7D the offset argv-parser start to parse%0A
parser.p
@@ -1245,16 +1245,292 @@
);%0A%7D;%0A%0A%0A
+function mix (receiver, supplier, override)%7B%0A var key;%0A%0A if(arguments.length === 2)%7B%0A override = true;%0A %7D%0A%0A for(key in su... |
31289d339b4f7756f457a0fe4ceaefdad6cdac2d | refresh button refreshes prices with current prices, but incorrectly updates all existing prices | main.js | main.js | /* global $: false*/
(function(){
'use strict'
var url,
$stockName,
$stockQty,
AJAXresponse,
total = 0,
$buyStocks=$('buyStocks');
$('.input_wrapper').on('click', '#buyStocks', function(){
$stockName = $('#stockName').val().toUpperCase();
$stockQty = $('#stockQty').val();
... | JavaScript | 0 | @@ -480,33 +480,8 @@
ta;%0A
- console.log(data);%0A
@@ -509,24 +509,74 @@
tr%3E%3C/tr%3E');%0A
+ $($tempRow).attr(%22data-symb%22, data.Symbol);%0A
$($tem
@@ -1501,16 +1501,18 @@
%0A%0A %7D);%0A
+
$('.tab
@@ -1624,35 +1624,8 @@
');%0A
- console.log(rowPrice);%0A
@@ -1681,33 +168... |
9e582ec5ccb3b1a41a890112fef4660cc5d82283 | Add scheduled task | index.js | index.js | var youtubedl = require('youtube-dl');
var config = require('./config.json');
var videoURL = config.videoURL,
video = youtubedl(videoURL);
youtubedl.exec(videoURL, ['-x', '--audio-format', 'mp3'], {}, function(err, output) {
if (err) throw err;
console.log(output.join('\n'));
});
| JavaScript | 0.000074 | @@ -32,16 +32,57 @@
e-dl');%0A
+var schedule = require('node-schedule');%0A
var conf
@@ -147,44 +147,27 @@
oURL
-,%0A video = youtubedl(videoURL);%0A%0A
+;%0A%0Avar getStream =
yout
@@ -315,12 +315,179 @@
%5Cn'));%0A%7D);%0A%0A
+var rule = new schedule.RecurrenceRule();%0Arule.dayOfWeek = new schedule.Range(1,... |
b129f7b596163ef14fbab8a860edf82cf21b7fe3 | bump width when logotype is displayed | main.js | main.js | $(document).ready(function(){
var draw = SVG('drawing');
var logostring = "M374.5,385.7 l250,250 h-500 L374.5,385.7 z M374.5,635.7 l353.6,353.6 V635.7 H374.5 z M728.1,687.5 l125,125 l125-123.6 l-125-126.4 L728.1,687.5 z M978.1,688.9 V437.5 l-125,125 L978.1,688.9 z M728.1,436.1 v251.4 l125-125 L728.1,436.1 z M198.7,... | JavaScript | 0 | @@ -1459,10 +1459,10 @@
, %222
-40
+55
px%22)
|
b725eb2b66172a94821c9f095a2737518a90a471 | change cmd CMD | index.js | index.js | var Service, Characteristic;
var exec = require("child_process").exec;
module.exports = function(homebridge){
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory("homebridge-cmd", "cmd", cmdAccessory);
}
function cmdAccessory(log, config) {
this.log =... | JavaScript | 0.999356 | @@ -244,15 +244,15 @@
%22, %22
-cmd%22, c
+CMD%22, C
mdAc
@@ -274,17 +274,17 @@
unction
-c
+C
mdAccess
@@ -436,17 +436,17 @@
e%22%5D;%0A%7D%0A%0A
-c
+C
mdAccess
|
705d5bed1521f6ae96318209def926d1dbb7850b | make commands case insensitive | index.js | index.js | 'use strict';
const http = require('http');
const async = require('async');
const { urlencoded } = require('body-parser');
const express = require('express');
const client = require('request');
const twilio = require('twilio');
// Load configuration from the system environment and commands file
const {
IFTTT_KEY, ... | JavaScript | 0.999999 | @@ -1621,24 +1621,181 @@
esponse();%0A%0A
+ // get and convert message body to lowercase%0A let messageBody = request.body.Body;%0A if (messageBody) %7B%0A messageBody = messageBody.toLowerCase();%0A %7D%0A%0A
// Iterate
@@ -1860,16 +1860,16 @@
he SMS %0A
-
let ev
@@ -1944,29 +1944,23 @@
if (
-reque... |
91794d522cfcb9bfecdef7d653bdc65c4d1f1020 | Don't sent entry to undefined | index.js | index.js | 'use strict';
var gutil = require('gulp-util');
var File = require('vinyl');
var MemoryFileSystem = require('memory-fs');
var through = require('through');
var PLUGIN_NAME = 'gulp-webpack';
module.exports = function(options, wp, done) {
options = options || {};
if (typeof done !== 'function') {
var callingDo... | JavaScript | 0.999996 | @@ -1186,16 +1186,25 @@
entry%5B0%5D
+ %7C%7C entry
;%0A if
|
d5ef721bd5d531a4bdd74c22483886f9f63da908 | add useAll method | index.js | index.js | 'use strict';
var Future = require('data.future');
module.exports = function makeRouter(route, handler, parent) {
var router = function routeHandler(oreq, ores, onext) {
if (!onext) {
onext = function next(req, res) {
return Future.of(res);
};
}
if (!parent) {
return onext(ore... | JavaScript | 0.000001 | @@ -62,16 +62,26 @@
xports =
+ exports =
functio
@@ -1942,37 +1942,465 @@
fn,
-this);%0A %7D;%0A%0A return router;%0A%7D;
+router);%0A %7D;%0A%0A router.useAll = function(routes) %7B%0A return reduce(function(router, route) %7B%0A if (typeof route === 'function') %7B%0A return router.use(route);... |
b178c914d53e4fb05dcaf80e1485c1f71b87b568 | Update default value | index.js | index.js | function SitemapWebpackPlugin(base, paths, fileName) {
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
// Set options
this.lastMod = options.lastMod || true;
this.changeFreq = options.changeFreq || null;
this.priority = options.priority || null;
this.base = base;
th... | JavaScript | 0.000001 | @@ -194,11 +194,12 @@
%7C%7C
-tru
+fals
e;%0A
|
959b3b8156a72f3e3a80434d44ab9f8e293e6836 | fix bug | index.js | index.js | let dns = require("native-dns");
let https = require("https");
let request = require("request");
let fs = require("fs");
let server = dns.createServer();
let cache = {};
let MIN_TTL = 3600;
let now = function() {
return Date.now() / 1000;
}
let update_cache = function(que, content) {
let key = que.name + "_... | JavaScript | 0.000001 | @@ -1536,18 +1536,18 @@
conso
-e
l
+e
.log(err
@@ -5295,8 +5295,9 @@
rve(53);
+%0A
|
a945b6487e2fa6bd52e7e7755a0025106d659e09 | fix issue #1 | index.js | index.js |
'use strict';
var fs = require('fs');
var path = require('path');
var template = require('template');
var strip = require('strip-banner');
var pkg = require('load-pkg');
var extend = require('xtend');
var year = require('year');
var author = require('parse-authors');
var defaultBanner = path.join(__dirname, 'banner.... | JavaScript | 0 | @@ -1824,12 +1824,18 @@
rip(
+read(
str)
+)
;%0A%7D;
|
95ca3c83b60267f2722ed3a9de0c62b7687e326f | rename provider.issuer property | src/RelyingPartySchema.js | src/RelyingPartySchema.js | /**
* Dependencies
*/
const {JSONSchema} = require('json-document')
/**
* RelyingParty Schema
*
* This schema initializes and verifies Relying Party client configuration.
* RelyingParty objects can be persisted and rehydrated. By encapsulating this data in
* it's own class, it's possible to have multiple RP con... | JavaScript | 0 | @@ -729,22 +729,19 @@
-issuer
+url
: %7B type
|
8b9143a1028bc113b1460dfc100aff8c9685de29 | Fix typos and logger | index.js | index.js | var gulp = require('gulp'),
myth = require('gulp-myth'),
_ = require('underscore'),
Elixir = require('laravel-elixir');
var $ = Elixir.Plugins;
var config = Elixir.config;
Elixir.extend('myth', function (src, options) {
options = _.extend({
debug: ! config.production,
srcDir: co... | JavaScript | 0.998175 | @@ -467,24 +467,32 @@
ons.srcDir,
+options.
outputDir);%0A
@@ -488,24 +488,70 @@
utputDir);%0A%0A
+ new Elixir.Task('myth', function () %7B%0A
this.log
@@ -581,50 +581,16 @@
t);%0A
-%0A
-new Elixir.Task('myth', function () %7B
+
%0A
|
ce5fb1b2755b3f931b7c5b5a04ba5b7211dfddca | Throw an exception if the configuration given to the expressopot is not an object or is undefined. | index.js | index.js | /**
* Created by Aki Mäkinen on 20.3.2016.
*/
const _ = require('lodash');
const UNSUPPORTED_SETTING = 'Unsupported setting or property';
const SUPPORTED_VIEWS_SETTINGS = {
'path': 'views',
'engine': ' view engine'
};
const SUPPORTED_ENVS = [
'production',
'development'
];
function logUnsupported(property... | JavaScript | 0 | @@ -461,16 +461,107 @@
nfig) %7B%0A
+ if (typeof config !== 'object') throw new TypeError('Configuration must be an object.');%0A
_.forO
|
b4efc8fa5b88dbd51cb1a67e06b4f941fd92261a | changing to json | index.js | index.js | // a simple todo-list app server using Express
const APP_ENDPOINT = 'http://localhost:3000';
const express = require('express');
const app = express();
const port = 3001;
const taskItems = [];
var bodyParser = require('body-parser');
// configure app to use bodyParser()
// this will let us get response data from a PO... | JavaScript | 0.999243 | @@ -165,21 +165,19 @@
= 3001;%0A
-const
+var
taskIte
@@ -521,16 +521,116 @@
next) %7B%0A
+ req.header('Content-type', 'application/json');%0A res.header('Content-type', 'application/json');%0A
res.he
@@ -907,33 +907,32 @@
asks: taskItems%7D
-,
%0A %7D);%0A%7D);%0A%0Aapp.
@@ -938,24 +938,29 @@
.get('/tasks
... |
7956d5b8ba01fa486665f0948efb10d43b898d2c | fix bug with dtype handling not getting passed down | index.js | index.js | var flatten = require('flatten-vertex-data')
module.exports.attr = setAttribute
module.exports.index = setIndex
function setIndex (geometry, data, itemSize, dtype) {
if (typeof itemSize !== 'number') itemSize = 1
if (typeof dtype !== 'number') dtype = 'uint16'
var isR69 = !geometry.index && typeof geometry.set... | JavaScript | 0 | @@ -226,38 +226,38 @@
peof dtype !== '
-number
+string
') dtype = 'uint
@@ -725,22 +725,22 @@
pe !== '
-number
+string
') dtype
|
9d139dcc1d8cdc0236d2e3fc8021fb630f545a64 | Fix typo | index.js | index.js |
// pickup - transform RSS or Atom XML to JSON
var sax = require('sax')
, Transform = require('stream').Transform
, mappings = require('./lib/mappings')()
, attribute = require('./lib/attribute')
module.exports = function () {
var opt = { trim:true, normalize:true, position:false }
, parser = sax.parser(t... | JavaScript | 0.999999 | @@ -1628,24 +1628,28 @@
name) %7B%0A
+if (
name in clos
@@ -1661,10 +1661,9 @@
lers
- ?
+)
clo
@@ -1684,15 +1684,8 @@
e%5D()
- : null
%0A
|
8a635996650c22ebe1e0e12960d46a7716d76c80 | Use the "app" argument if available | index.js | index.js | 'use strict';
let Funnel = require('broccoli-funnel');
let mergeTrees = require('broccoli-merge-trees');
let path = require('path');
module.exports = {
name: 'ember-highcharts',
options: {
nodeAssets: {
deepmerge: {
vendor: {
srcDir: 'dist',
include: ['umd.js']
}
... | JavaScript | 0.000217 | @@ -340,20 +340,23 @@
ncluded(
+app
) %7B%0A
-
this
@@ -405,18 +405,50 @@
-let app;%0A%0A
+if (typeof app.import !== 'function') %7B%0A
@@ -530,16 +530,18 @@
ust%0A
+
// use t
@@ -545,24 +545,26 @@
e that.%0A
+
+
if (typeof t
@@ -597,24 +597,26 @@
n') %7B%0A
+
app = this._... |
52a305a36eaab7186ae08ede75e12e83c7e8e810 | Simplify oneliners | index.js | index.js | 'use strict';
var fs = require('fs');
function h2o (file, options) {
options = options || {};
options.contentWhitespace = (options.contentWhitespace !== undefined) ? options.contentWhitespace:true;
options.file = (options.file !== undefined) ? options.file:true;
var html = (options.file) ? fs.readFileSync(fi... | JavaScript | 0.998215 | @@ -117,25 +117,24 @@
hitespace =
-(
options.cont
@@ -151,51 +151,11 @@
ace
-!== undefined) ? options.contentWhitespace:
+%7C%7C
true
@@ -173,17 +173,16 @@
.file =
-(
options.
@@ -190,38 +190,11 @@
ile
-!== undefined) ? options.file:
+%7C%7C
true
|
cdf0c0d105d127449baaee95d5340678ffaa9911 | align center bar and space out ticks | mapApp/static/mapApp/js/vis/vis.js | mapApp/static/mapApp/js/vis/vis.js | dc.dataCount('.dc-data-count')
.crossfilter(xf)
.groupAll(all);
// Bar chart for counts by type
var barTypes = new dc.BarChart('#barTypes');
barTypes
.width(400)
.height(200)
.x(d3.scaleBand().domain(["collision", "nearmiss", "hazard", "theft"]))
.xUnits(dc.units.ordinal)
.yAxisLabel(gettext("Count"))
... | JavaScript | 0 | @@ -311,35 +311,16 @@
ount%22))%0A
- .centerBar(true)%0A
.elast
@@ -329,16 +329,16 @@
Y(true)%0A
+
.title
@@ -586,16 +586,43 @@
v%5D; %7D);%0A
+barTypes.yAxis().ticks(6);%0A
barTypes
@@ -1350,24 +1350,36 @@
format(%22d%22))
+%0A .ticks(6)
;%0AbarWeek.xA
@@ -2181,16 +2181,28 @@
at(%22d%22))
+%0A .ticks(6... |
713aa7d9b3f97bdd497fc955fab3946e8a59adff | Allow ember-orbit to be used in addons | index.js | index.js | 'use strict';
const path = require('path');
const assert = require('assert');
const fs = require('fs');
module.exports = {
name: require('./package').name,
included() {
const app = this._findHost();
const addonConfig = this.app.project.config(app.env)['orbit'] || {};
const collections = addonConfig.col... | JavaScript | 0 | @@ -225,21 +225,16 @@
onfig =
-this.
app.proj
|
f3fede277496b5bfca2ea677d48ee3fef6a19b98 | Remove some rules | index.js | index.js | var _ = require('lodash')
var airbnb = require('eslint-config-airbnb')
module.exports = _.merge(airbnb, {
// "extends": "airbnb",
"rules": {
"brace-style": [ // http://eslint.org/docs/rules/brace-style
2,
"stroustrup", {
"allowSingleLine": true
}
],
"space... | JavaScript | 0.000315 | @@ -1205,16 +1205,104 @@
rbnb@16%0A
+ %22class-methods-use-this%22: 0,%0A %22no-return-assign%22: 0,%0A %22consistent-return%22: 0,%0A
%22spa
@@ -2424,24 +2424,103 @@
ntities%22: 0,
+%0A %22react/jsx-first-prop-new-line%22: 0,%0A %22react/jsx-max-props-per-line%22: 0,
%0A%0A %22jsx-a
|
72b5d728daf448ea0774b899d58f3336180b5201 | Use non-deprecated webpack v5 APIs | index.js | index.js | function GenerateJsonPlugin(filename, value, replacer, space) {
Object.assign(this, { filename, value, replacer, space });
this.plugin = { name: 'GenerateJsonPlugin' };
}
GenerateJsonPlugin.prototype.apply = function apply(compiler) {
const emit = (compilation, callback) => {
const json = JSON.stringify(thi... | JavaScript | 0 | @@ -1,16 +1,61 @@
+const %7B Compilation %7D = require('webpack');%0A%0A
function Generat
@@ -287,41 +287,62 @@
co
-nst emit = (compilation, callback
+mpiler.hooks.compilation.tap(this.plugin, (compilation
) =%3E
@@ -433,16 +433,178 @@
ilation.
+hooks.processAssets.tap(%0A %7B%0A name: this.plugin.nam... |
0adbf368f7e623625e61be25c0c391e6ea6564b5 | Implement attach.local helper | index.js | index.js | var plugin = require('rtc-core/plugin');
var extend = require('cog/extend');
/**
# rtc-attach
Roughly equivalent to the
[`attachMediaStream`](https://www.npmjs.org/package/attachmediastream)
package but with support for rtc.io plugins. Also uses an error first
async API to allow plugins time to initialize.... | JavaScript | 0.000001 | @@ -3139,8 +3139,239 @@
s));%0A%7D;%0A
+%0A/**%0A ### %60attach.local(stream, callback)%60%0A%0A Attach a local stream with options appropriate for local streams:%0A%0A - %60muted%60: %60true%60%0A%0A**/%0Aattach.local = function(stream, callback) %7B%0A attach(stream, %7B muted: true %7D, callback);%0A%7D;%0A
|
56a54788f651f62db0812ddd1d6e0d933986d559 | Use the instance instead | index.js | index.js | var util = require('util');
var istanbul = require('istanbul');
var esprima = require('esprima');
var reactTools = require('react-tools');
function Instrumenter(opt){
istanbul.Instrumenter.call(this, opt);
}
util.inherits(Instrumenter, istanbul.Instrumenter);
Instrumenter.prototype.instrument = function (content... | JavaScript | 0 | @@ -546,20 +546,12 @@
0,
-instrumenter
+this
.ins
|
80c62a442707c6024b1372e9dc04a79f9d57edf0 | fix code format | tsp.js | tsp.js | 'use strict';
var sticker = {};
function getColorsFromUrl() {
var colors = {}, hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
var face = hash[0];
var color = hash... | JavaScript | 0.999469 | @@ -1807,16 +1807,17 @@
a-url=%22'
+
+ locati
@@ -1823,17 +1823,19 @@
ion.href
-+
+ +
'%22 data-
|
6b65a2dd7d9ebd3de8f766f9c95b1a06b983f34f | Fix typo s/srcUrl/srcUrls | index.js | index.js | /**
* Download tool for Unicode CLDR JSON data
*
* Copyright 2013 Rafael Xavier de Souza
* Released under the MIT license
* https://github.com/rxaviers/cldr-data-downloader/blob/master/LICENSE-MIT
*/
"use strict";
var assert = require("assert");
var AvailableLocales = require("./lib/available_locales");
var dow... | JavaScript | 0.999978 | @@ -2146,16 +2146,17 @@
s(srcUrl
+s
.length)
|
babf9e095f0b3dab57d7a186d639865a293e0d75 | implement sync function | index.js | index.js | var path = require('path');
var globby = require('globby');
var caller = require('caller');
var annotationParser = require('annotation-parser');
module.exports = function(pattern, eachCallback, finalizeCallback){
pattern = path.resolve(path.dirname(caller()), pattern);
globby(pattern, function(err, files){... | JavaScript | 0.000048 | @@ -1272,16 +1272,626 @@
%7D);%0A%7D;%0A%0A
+module.exports.sync = function(pattern)%7B%0A%0A pattern = path.resolve(path.dirname(caller()), pattern);%0A%0A var files = globby.sync(pattern);%0A%0A var routes = %5B%5D;%0A%0A for(var i = 0, len = files.length; i %3C len; i++)%7B%0A%0A var annotations... |
13c7b4e88c07ed9c4660b172fe778e2176c59f36 | add input formats | index.js | index.js | /**
* jstransformer-mini-handlebars <https://github.com/jstransformers/jstransformer-mini-handlebars>
*
* Copyright (c) 2015 Charlike Mike Reagent, contributors.
* Released under the MIT license.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var MiniHandlebars = require('mini-handlebars');... | JavaScript | 0.000003 | @@ -381,16 +381,70 @@
ebars';%0A
+exports.inputFormats = %5B'hbs', 'mhbs', 'handlebars'%5D;%0A
exports.
|
b88a211182becc28ba03eb2a64b13f025dbbba19 | Rename method. | index.js | index.js | var short = '-', long = '--';
var sre = /^-[^-]+/, lre = /^--[^-]+/, negate = /--no-/;
var camelcase = require('cli-util').camelcase;
function toOptionKey(arg, negated, opts) {
var result = alias(arg, opts), key;
if(result.aliased) return result.key;
key = arg.replace(/^-+/, '');
if(negated) key = key.replace(... | JavaScript | 0 | @@ -137,25 +137,20 @@
unction
-toOptionK
+optk
ey(arg,
@@ -1674,17 +1674,12 @@
y =
-toOptionK
+optk
ey(a
|
7196aef7df2215914dae23e24cb470b206481a65 | add prefix if no language is present | index.js | index.js | /**
* Created by dob on 19.11.13.
*/
var molecuel;
var i18next = require('i18next');
var i18n = function() {
this.config = molecuel.config.i18n;
this.defaultlang = this.getDefaultLang();
this.supportedlang = this.getSupportedLanguages();
var handleConfig = {};
if(this.config.detectLngFromPath === true) {
... | JavaScript | 0.00017 | @@ -1932,24 +1932,124 @@
, req.url);%0A
+ %7D else %7B%0A if (req.url.charAt(0) !== '/') %7B%0A req.url = req.url + '/'%0A %7D%0A
%7D%0A
|
36ebc2cafade04783bfb5ed9717fad329e52c0e2 | update phantomjs testrunner to work if Jasmine mock timers have been installed (since that often happens before the code that sets this interval is executed) | test/phantomjs-testrunner.js | test/phantomjs-testrunner.js | if (phantom.state.length === 0) {
if (phantom.args.length === 0) {
console.log("Simple JasmineBDD test runner for phantom.js");
console.log("Usage: phantomjs-testrunner.js url_to_runner.html");
console.log("Accepts http:// and file:// urls");
console.log("");
console.log("NOT... | JavaScript | 0 | @@ -764,16 +764,76 @@
+var _setInterval = jasmine.Clock.real.setInterval;%0A _
setInter
@@ -1148,32 +1148,53 @@
console.log(%22%22);
+ // insert blank line
%0A
|
4042b6cbcb81d6e99455158dd4c452b6f880f1e2 | Correct capitalization of "lesshint" | index.js | index.js | 'use babel';
import path from 'path';
import configLoader from 'lesshint/lib/config-loader';
import helper from 'atom-linter';
export default class LinterLesshint {
static config = {
onlyWithRc: {
default: false,
title: 'Disable linter when no `.lesshintrc` is found in project.',
... | JavaScript | 0.002333 | @@ -669,13 +669,13 @@
e: '
-LessH
+lessh
int'
|
cacde9eb734587912fe2166a899455e9cd4bdbfb | remove debug | test/punktcoordinate-test.js | test/punktcoordinate-test.js | (function (ns) {
"use strict";
var assert = assert || buster.assertions.assert;
var refute = refute || buster.assertions.refute;
buster.testCase('PUNKT coordinate Test', {
setUp: function () {
$.ajax({
async: false,
url: buster.env.contextPath + "/... | JavaScript | 0.000002 | @@ -1226,41 +1226,8 @@
9);%0A
- console.log(kurve%5B0%5D)
%0A
|
0af9befb5684447025b737040282fd24e595dd69 | use spread properties syntax | index.js | index.js | 'use strict';
const assertValidGlobOpts = require('assert-valid-glob-opts');
const fsCacheableRealpath = require('fs.realpath/old.js').realpath;
const fsOriginalRealpath = require('graceful-fs').realpath;
const {Glob} = require('glob');
const inspectWithKind = require('inspect-with-kind');
const {makeAbs} = require('g... | JavaScript | 0 | @@ -1200,22 +1200,8 @@
rn,
-Object.assign(
%7B%0A%09%09
@@ -1234,22 +1234,24 @@
true
+,
%0A%09%09
-%7D,
+%09...
options,
%7Bre
@@ -1246,18 +1246,20 @@
options,
- %7B
+%0A%09%09%09
realpath
@@ -1265,18 +1265,20 @@
h: false
+%0A%09%09
%7D
-)
);%0A%0A%09%09co
|
c44f33b1adce9dccf5047451e6b7b9aed7b30b5f | correct error message for invalid latitude | index.js | index.js |
module.exports = normalize
module.exports.fromCoordinates = module.exports.fromGeoJSON = fromCoordinates
module.exports.fromLatlng = module.exports.fromLeaflet = fromLatlng
module.exports.fromPoint = fromPoint
module.exports.fromString = fromString
module.exports.print = function print (input, fixed) {
var ll = nor... | JavaScript | 0.000003 | @@ -1990,35 +1990,34 @@
Error('Invalid l
-ong
+at
itude value: ' +
|
82b22497b6a39a4c085465495be563e9ec596f0e | Update url after run | client/public/js/actions.js | client/public/js/actions.js | import { browserHistory } from 'react-router';
import actionConstants from './constants/action_constants';
import realApiUtils from './utils/api_utils';
import mockApiUtils from './utils/mock_api_utils';
const apiUtils = process.env.NODE_ENV === 'offline' ?
mockApiUtils : realApiUtils;
export function initializeWor... | JavaScript | 0 | @@ -2626,24 +2626,29 @@
runId: res.
+data.
runId,%0A
@@ -2710,16 +2710,21 @@
%7D/$%7Bres.
+data.
runId%7D%60)
|
7c224e52f3a7ad18a20f700a28b847094eb3a9b8 | Remove token on logout | client/src/actions/index.js | client/src/actions/index.js | import isEmpty from 'lodash/isEmpty';
import { push } from 'react-router-redux';
import { TOGGLE_SIGNUP_FORM, CHANGE_SIGNUP_FIELD, ADD_SIGNUP_ERROR, CLEAR_ERRORS, CHANGE_LISTING_FIELD, UPLOAD_LISTING_IMAGE, SIGNUP_SUCCESS, SIGNUP_FAILURE, LOGOUT, CHANGE_LOGIN_FIELD, LOGIN_FAILURE, LOGIN_SUCCESS, ADD_LISTING_FAILURE, AD... | JavaScript | 0.000001 | @@ -2007,16 +2007,73 @@
%0A %7D);%0A%0A
+const logoutSuccess = () =%3E%0A (%7B%0A type: LOGOUT,%0A %7D);%0A
%0Aexport
@@ -2128,24 +2128,68 @@
tch(
-%7B type: LOGOUT %7D
+logoutSuccess());%0A localStorage.removeItem('raptor_token'
);%0A
|
ae7ea9cbfef3527752a478467464b3d284371b98 | Fix non-working base64 encoding | index.js | index.js | /**
* Module dependencies.
*/
var fs = require("fs")
var path = require("path")
var reduceFunctionCall = require("reduce-function-call")
var base64 = require("js-base64").Base64
var mime = require("mime")
/**
* Fix url() according to source (`from`) or destination (`to`)
*
* @param {Object} options
*/
module.exp... | JavaScript | 0.999999 | @@ -1992,32 +1992,88 @@
else %7B%0A
+ file = fs.readFileSync(file).toString()%0A
|
e6cbb202987a515a7a67ee6d8fafbccac661ab9d | Update UDPefef | udp.js | udp.js | var d = require ('dequeue');
var seatStateStore = require("./SeatStateStore");
var redis = require("redis");
var rClient = redis.createClient();
var dgram = require("dgram");
var FIFO = new d();
fetcher();
var udpserver = dgram.createSocket("udp4");
udpserver.on("message",
function (msg, rinfo) {
FIFO.p... | JavaScript | 0 | @@ -488,16 +488,54 @@
ndex++;%0A
+ console.log('index:', index);%0A
|
5171ff5b4fef688ad3f906bf05cdcc414c091589 | Update UDPefef | udp.js | udp.js | /**
* Created by tungtouch on 2/5/15.
*/
/*
* Listen UDP from Device: 128.199.126.250
* */
var dgram = require("dgram");
var colors = require('colors');
var FIFO = require('dequeue');
var async = require('async');
var redis = require("redis");
var rClient = redis.createClient();
//var ports = [4000, 4001, 4002, 33... | JavaScript | 0 | @@ -583,16 +583,26 @@
;%0A%7D);%0A%0A%0A
+fetcher();
%0Afor(var
@@ -635,22 +635,8 @@
+)%7B%0A
- fetcher();
%0A%0A
@@ -970,20 +970,19 @@
s%5Bi%5D);%0A%0A
-
+%0A%7D%0A
function
@@ -990,28 +990,24 @@
fetcher() %7B%0A
-
console.
@@ -1022,17 +1022,17 @@
cher Run
-g
+:
%22, FIFO)
@@ -1033,20 +1033,... |
0ffb2212d71e96b2495893aba3adbab67ea9e8f4 | Update UDPefef | udp.js | udp.js | /**
* Created by tungtouch on 2/5/15.
*/
/*
* Listen UDP from Device: 128.199.126.250
* */
var dgram = require("dgram");
var colors = require('colors');
var async = require('async');
var redis = require("redis");
var rClient = redis.createClient();
//var ports = [4000, 4001, 4002, 3333, 4003, 4004, 4005, 4006, 400... | JavaScript | 0 | @@ -707,21 +707,23 @@
.log
-((%22%7C
+%0A (%22
Success:
%22+
@@ -722,16 +722,39 @@
ess:
+ %22,%0A (%22 %7CRecord:
%22+ r +%22
%22).b
@@ -753,16 +753,17 @@
r +%22
+%7C
%22).blue,
(%22
@@ -762,46 +762,74 @@
lue,
- (%22 %7C - %7C %22 + data+ %22%22).red , (' %7C - %7C
+%0A (%22 %7CData: %2... |
4e7082f497f1efba2ece238f3067c62de53a17f9 | allow custom options | index.js | index.js | var fs = require('fs');
var PhantomJSBrowser = function(baseBrowserDecorator) {
baseBrowserDecorator(this);
this._start = function(url) {
// create the js file, that will open karma
var captureFile = this._tempDir + '/capture.js';
var captureCode = '(new WebPage()).open("' + url + '");';
fs.write... | JavaScript | 0 | @@ -71,20 +71,34 @@
ecorator
+, config, args
) %7B%0A
-
baseBr
@@ -120,16 +120,89 @@
this);%0A%0A
+ var options = args && args.options %7C%7C config && config.options %7C%7C %7B%7D;%0A%0A
this._
@@ -326,16 +326,161 @@
re.js';%0A
+ var optionsCode = Object.keys(options).map(function (key) %7B%0A retur... |
7ec29629dff71b9de6a4d85d06827e161fb6f98a | Add and implement function for second rule | day5_1.js | day5_1.js | /* Puzzle input - check /input/day5.js */
var input = require('./input/day5.js');
/* Variables */
// Split input by new line character ("\n")
var strings = input.split('\n');
/* Functions */
// Function to return the vowel count
function getVowelCount(string){
var count = 0;
for (var i = 0; i < string.length; i+... | JavaScript | 0.000001 | @@ -506,16 +506,337 @@
unt;%0A%7D%0A%0A
+// Function to check a string for duplicate occurances of one of it's letters%0Afunction checkDuplicateLetters(string)%7B%0A for (var i = 0; i %3C string.length; i++) %7B%0A var letter = string%5Bi%5D;%0A var regExp = new RegExp(letter + letter, 'g');%0A if (string.ma... |
a26d7d6f21dbd8f3ae718956c7f726adb02bcb0d | fix removal off the imagepreload element | imagePreload.js | imagePreload.js | angular.module('totalmedial.imagePreload',[])
.factory('imagePreload', ['$q', function($q) {
return function(url) {
var deffered = $q.defer();
var image = new Image();
image.src = url;
if (image.complete) {
deffered.resolve();
} else {
image.addEventListener('load', function() {
deffered.res... | JavaScript | 0 | @@ -731,31 +731,8 @@
) %7B%0A
-%09%09%09element.hide();%0A%09%09%09%0A
%09%09%09i
|
14cb0d980efd4b544704b578ed5deb1dc5cf7e3d | Change default. | index.js | index.js | var express = require('express');
var app = express();
var request = require('request');
app.set('port', (process.env.PORT || 5000));
app.get('/', function(req, res) {
res.send('You got it.');
});
app.post('/', function(req, res) {
var payload = {
channel: "#hackers",
username: "Doom Guy",
text: "Tes... | JavaScript | 0 | @@ -265,17 +265,17 @@
el:
-%22
+'
#hackers
%22,%0A
@@ -270,17 +270,17 @@
#hackers
-%22
+'
,%0A us
@@ -291,17 +291,17 @@
me:
-%22
+'
Doom Guy
%22,%0A
@@ -296,17 +296,17 @@
Doom Guy
-%22
+'
,%0A te
@@ -313,19 +313,58 @@
xt:
-%22Test Post%22
+'Alert from Loggly: something something something'
,%0A ... |
fcef8a5b6e71c8c92c617dfaff620a816429193a | Add test for removing effect and having maximum. | test/src/combat_util.spec.js | test/src/combat_util.spec.js | const expect = require('chai').expect;
const Player = require('../../src/player.js').Player;
const Npc = require('../../src/npcs.js').Npc;
const CombatUtil = require('../../src/combat_util.js').CombatUtil;
const CombatHelper = require('../../src/combat_util.js').CombatHelper;
describe('Player/NPC Combat Helper'... | JavaScript | 0 | @@ -1213,16 +1213,33 @@
%0A%0A it('
+can remove mods,
has a ma
@@ -1268,16 +1268,184 @@
() =%3E %7B%0A
+ testPlayer.combat.removeSpeedMod('haste');%0A const speed = testPlayer.combat.getAttackSpeed();%0A const maximum = 10 * 1000;%0A expect(speed).to.equal(maximum);
%0A %7D);%0A%0A
|
4e3001d4b7e5c2ab5274aa0c80e95c97cb4bb9dd | update values | test/test.treasure.helper.js | test/test.treasure.helper.js | var treasureHelper = {
database: 'testDB',
writeKey: '91/96da3cfb876cc50724d0dddef670d95eea2a0018',
protocol: 'http',
host: 'in-staging.treasuredata.com',
table: 'testTB',
properties: { username: 'treasure', color: 'blue' },
responses: {
success: '{\"created\": true }',
error: '{\"error\": true }'... | JavaScript | 0.000007 | @@ -1,8 +1,11 @@
-var
+window.
trea
@@ -40,10 +40,13 @@
test
-DB
+_db_1
',%0A
@@ -162,16 +162,47 @@
a.com',%0A
+ jsonphost: 'localhost:9999',%0A
table:
@@ -211,10 +211,13 @@
test
-TB
+_tb_1
',%0A
@@ -362,6 +362,7 @@
%7D%0A
-
%7D;
+%0A
|
332af42b9dcd1f9e984b96b3bc7a82ddd4ea9c60 | remove isNumber() as it's used only once | index.js | index.js | module.exports = function() {
/**
* Minify a JSON object or string.
* @param {string|object|array} json - JSON string to minify.
* @param {object} options
* @return {string}
*/
var slim = function(input, options) {
options = options || {};
var json = '';
var inputString = '';
// No pretty... | JavaScript | 0.000007 | @@ -2402,285 +2402,8 @@
%7D;%0A%0A
-%09/**%0A%09 * Check if a string contains a number.%0A%09 * @see %7B@link http://stackoverflow.com/a/35759874/584441%7CStackoverflow source%7D%0A%09 * @param %7Bstring%7D string%0A%09 * @return %7BBoolean%7D%0A%09 */%0A%09var isNumber = function(string) %7B%0A%09%09return !isNaN(st... |
bd78a3cd99c0c22a613ad16dc3216a7dc6e733b9 | update deps | index.js | index.js | /*!
* index
* Date: 2016/6/21
* https://github.com/Nuintun/file-send
*
* This is licensed under the MIT License (MIT).
* For details, see: https://github.com/Nuintun/file-send/blob/master/LICENSE
*/
'use strict';
// external lib
var ms = require('ms');
var path = require('path');
var util = require('./lib/util... | JavaScript | 0 | @@ -3315,16 +3315,35 @@
'%5D%0A%7D);%0A%0A
+console.dir(send);%0A
console.
|
3e81e71ceeb67c7c7b8ce27a9b731a461be8c9a9 | Set upstream | index.js | index.js | var ghauth = require('ghauth');
var GH = require('github');
var path = require('path');
var minimist = require('minimist');
var pkg = {};
try { pkg = require(path.resolve('package.json'));}
catch(err) {}
var argv = minimist(process.argv, {
string: ['name', 'description'],
alias: {
name: 'n',
description: 'd'
}... | JavaScript | 0 | @@ -116,16 +116,154 @@
imist');
+%0Avar exec = require('child_process').exec;%0A%0Avar github = new GH(%7B%0A%09version:'3.0.0',%0A%09headers: %7B%0A%09%09'User-Agent': 'create-repository'%0A%09%7D%0A%7D);
%0A%0Avar pk
@@ -634,111 +634,8 @@
r;%0A%0A
-%0A%09var github = new GH(%7B%0A%09%09version:'3.0.0',%0A%09%09hea... |
e876709352bf3dd6cbd1faa3b75b7fb3e9b4d005 | Remove evil interval | index.js | index.js | #!/usr/bin/env node
'use strict';
const pnut = require('pnut-butter');
pnut.token = process.env.PNUT_TOKEN || '';
const charge = (post) => {
post.bookmarkScore = post.counts.bookmarks * 10;
post.replyScore = post.counts.replies * 20;
post.repostScore = post.counts.reposts * 15;
post.score = post.bookmarkSco... | JavaScript | 0.999247 | @@ -962,25 +962,22 @@
%0A%7D%0A%0A
-setInterval(() =%3E
+function run()
%7B%0A
@@ -1113,16 +1113,67 @@
ost(id);
+%0A%0A setTimeout(run, 900000) // Run every 15 min
%0A %7D e
@@ -1269,30 +1269,12 @@
);%0A%7D
-, 900000); // Every 15 min
+%0A%0Arun();
|
b8cf0c372984e01c0630372bf2bfcea3bc617fad | indent and use call instead apply | index.js | index.js |
/**
* Module dependencies.
* @api private
*/
var loop = require('looping');
/**
* Expose many.
*
* Only works when the first argument of a function
* is a string.
*
* Examples:
*
* var fn = many(function(name, data) {
* // do something
* });
*
* fn('bar', {});
* fn({
* 'foo' : {}... | JavaScript | 0 | @@ -442,17 +442,18 @@
n(fn) %7B%0A
-%09
+
var many
@@ -471,14 +471,21 @@
(str
-) %7B%0A%09%09
+, obj) %7B%0A
if(t
@@ -535,18 +535,20 @@
s);%0A
-%09%09
+
else fn.
appl
@@ -547,34 +547,34 @@
fn.
-apply
+call
(this,
-arguments);%0A%09%09
+str, obj);%0A
retu
@@ -586,13 +586,15 @@
is;%0A
-%09%7D;%... |
964dd3c53d77b94574bdf6ea99f8d8639bf7767f | Fix badly wrapped function. | index.js | index.js | var parseArgs = require('minimist');
var argv = parseArgs( process.argv , {
number: [ 'port' ],
string: [ 'comport' ],
boolean: [ 'debug']
});
var port = argv.port || 'NULL';
var debug = argv.debug || false;
var comport = argv.comport;
console.log('Starting water rower.');
console.log('\tPort: ', argv.port);
co... | JavaScript | 0 | @@ -1140,16 +1140,17 @@
g%0A %7D)
+;
%0A %7D);%0A
@@ -1180,24 +1180,50 @@
ction(msg)%7B%0A
+ broadcastClients( %7B%0A
type: 'k
@@ -1230,24 +1230,26 @@
eypad',%0A
+
+
data: msg%0A
@@ -1246,16 +1246,24 @@
ta: msg%0A
+ %7D);%0A
%7D);%0A%7D%0A
|
315e33609943eb62145f3654bce85f5121a42540 | add put handler for item, updated redwah object | index.js | index.js | var router = require('ramrod')(),
form = require('formidable').IncomingForm(),
http = require('http'),
couchdb = require('felix-couchdb'),
client = couchdb.createClient(),
db = client.db('redwah'),
web = require('./lib/web.js'),
rwlib = require('./lib/redwah.js'),
redwah = {
version: "0.0.1"
};
/... | JavaScript | 0 | @@ -305,16 +305,86 @@
%220.0.1%22
+,%0A description: %22dont trust your gut: make decisions with numbers!%22
%0A %7D;%0A%0A/
@@ -1540,16 +1540,172 @@
rams) %7B%0A
+ db.saveDoc(params, function (err, doc) %7B%0A if (err) %7B return web.sendError(res, 404); %7D%0A res.writeHead(200);%0A res.end(JSON.str... |
2983e2ee00f79afbc13b01e00567313a32c8156c | Fix paperwork not saving system state correctly | src/rescue-edit.js | src/rescue-edit.js | 'use strict'
/* global Backbone, _, Bloodhound */
const form = document.querySelector('form')
const arrivedRatsField = document.getElementById('rats')
const firstLimpetField = document.getElementById('firstLimpet')
const systemField = document.getElementById('system')
const platformPC = document.getElement... | JavaScript | 0.000004 | @@ -3274,16 +3274,17 @@
succes
+s
ful: $('
@@ -4538,21 +4538,16 @@
e.system
-Field
%0A %7D%0A%0A
|
812c4de8a1d7b2ce5a0e6b77bc11cb431baf8237 | Revert "decode urls properly" | index.js | index.js | 'use strict'
// Define the module
const EjsElectron = module.exports = {
data,
listen,
listening,
options,
stopListening
}
// Load dependencies
const {app, protocol} = require('electron')
const ejs = require('ejs')
const fs = require('fs')
const mime = require('mime')
const path = require('path')
const url = req... | JavaScript | 0.000001 | @@ -2674,19 +2674,16 @@
t parsed
-Url
= url.p
@@ -2715,36 +2715,14 @@
e =
-decodeURIComponent(
parsed
-Url
.pat
@@ -2726,17 +2726,16 @@
pathname
-)
%0A%0A%09if (p
@@ -2772,19 +2772,16 @@
!parsed
-Url
.host.tr
|
488ac02ced305f8887573319d755417a500c68d0 | Allow users to set the per_page option to 0 | index.js | index.js | 'use strict';
var assign = require('object-assign');
hexo.config.tag_generator = assign({
per_page: hexo.config.per_page || 10
}, hexo.config.tag_generator);
hexo.extend.generator.register('tag', require('./lib/generator')); | JavaScript | 0.000007 | @@ -96,16 +96,23 @@
er_page:
+ typeof
hexo.co
@@ -129,13 +129,51 @@
age
-%7C%7C 10
+=== %22undefined%22 ? 10 : hexo.config.per_page
%0A%7D,
|
f60f3d3295544c29abf6f2da09f0ffcf5b526c1c | add events to menubar start/stop actions | index.js | index.js | 'use strict'
const electron = require('electron')
const child = require('child_process')
const spawn = child.spawn
const exec = child.exec
const ipc = electron.ipcMain
const app = electron.app
const Menu = electron.Menu
const Tray = electron.Tray
// prevent window being garbage collected
let mainWindow
let serverProce... | JavaScript | 0.000001 | @@ -1448,16 +1448,31 @@
unning)%0A
+ if (e) %7B%0A
e.se
@@ -1516,16 +1516,120 @@
unning)%0A
+ %7D else if (mainWindow) %7B%0A mainWindow.webContents.send('server-status-update', isRunning)%0A %7D%0A
%7D)%0A%7D%0A%0A
@@ -1977,32 +1977,38 @@
arator' %7D,%0A %7B
+%0A
label: 'Start S
@@... |
50896119f9a39c818b38ad5d126eb8a9071d57df | Remove reference to onboarder in dashboard-page.js | website/static/js/pages/dashboard-page.js | website/static/js/pages/dashboard-page.js | /**
* Initialization code for the dashboard pages. Starts up the Project Organizer
* and binds the onboarder Knockout components.
*/
'use strict';
var Raven = require('raven-js');
var ko = require('knockout');
var $ = require('jquery');
var jstz = require('jstimezonedetect').jstz;
// Knockout components for the o... | JavaScript | 0 | @@ -48,88 +48,8 @@
ges.
- Starts up the Project Organizer%0A * and binds the onboarder Knockout components.
%0A */
@@ -205,77 +205,8 @@
z;%0A%0A
-// Knockout components for the onboarder%0Arequire('js/onboarder.js');%0A
var
|
ad69eeaa9fe553336e716d4bce81a9472c7a44fa | Switch to redis based caching. | index.js | index.js | var express = require('express');
var compression = require('compression');
var seo = require('mean-seo');
var app = express();
// Enable gzip compression.
app.use(compression());
// Enable PhantomJS SEO.
app.use(seo());
app.use('/', express.static(__dirname + '/dist'));
app.listen(process.env.PORT);
| JavaScript | 0 | @@ -201,16 +201,194 @@
JS SEO.%0A
+if (process.env.REDISCLOUD_URL) %7B%0A // If we've got Redis available, use that.%0A app.use(seo(%7B cacheClient: 'redis' %7D));%0A%7D else %7B%0A // Otherwise, use regular disk-based cache.%0A
app.use(
@@ -394,16 +394,18 @@
(seo());
+%0A%7D
%0A%0Aapp.us
|
3d18b362ccf51629b8dd0223932c54eaeb3ab470 | fix another ref | deploy.js | deploy.js | /**
* Deployment entry point for the application.
**/
var args = process.argv.slice(2);
var cp = require('child_process');
if (process.env.PROVIDER === "gce")
{
cp.execSync('curl -H "Metadata-Flavor: Google" -L http://metadata.google.internal/computeMetadata/v1/project/attributes/env > /usr/src/yasp/.env');
}
if ... | JavaScript | 0.000002 | @@ -703,12 +703,8 @@
fest
-.svc
, fu
|
d03684fa8b334c781a09203529bd094756eac06a | Update 7-11.js | coures2./7-11.js | coures2./7-11.js | penColour('#228b22');
moveForward(100);
turnLeft(90);
moveForward(100);
turnLeft(90);
moveForward(100);
turnLeft(90);
moveForward(100);
ReplayContinue
penColour('#000000');
moveForward(200);
turnLeft(90);
moveForward(100);
turnLeft(90);
moveForward(200);
turnLeft(90);
moveForward(100);
turnLeft(90);
moveForward(100);... | JavaScript | 0.000001 | @@ -326,28 +326,101 @@
Left(90);%0AmoveForward(100);%0A
+%0ApenColour('#ffff00');%0AmoveForward(25);%0AturnLeft(90);%0AmoveForward(25);%0A%0A%0A
|
4a5d750c85b4a56c8fc71369c3ea6ff45b97396d | Rename method to make intent clearer | lib/check_modules.js | lib/check_modules.js | var fs = require('fs')
var semver = require('semver')
var merge = require('merge')
var InvalidDependencyError = require('./invalid_dependency_error')
var MissingDependenciesError = require('./missing_dependencies_error')
var UnsavedDependenciesError = require('./unsaved_dependencies_error')
function getInstalledDepe... | JavaScript | 0.000001 | @@ -668,29 +668,22 @@
unction
-checkRequired
+remove
Dependen
@@ -686,16 +686,23 @@
ndencies
+Present
(requir
@@ -1809,21 +1809,14 @@
%0A%0A
-checkRequired
+remove
Depe
@@ -1823,16 +1823,23 @@
ndencies
+Present
(require
@@ -1876,16 +1876,17 @@
encies)%0A
+%0A
var mi
@@ -2043,16 +2043,17 @@
es)%0A %7D%... |
f944aa245bee15ed66fa3ebaa1915d004a8a95f2 | Change value exports.name too | index.js | index.js | exports.name = "Tang"; | JavaScript | 0 | @@ -13,10 +13,18 @@
= %22Tang
+nitipong
%22;
|
945719daf07e66ce839045178441eb6a5f5aacdb | Work around bug 719376: Make sure to use new strings when the extension updates | bootstrap.js | bootstrap.js | /*
* This Source Code is subject to the terms of the Mozilla Public License
* version 2.0 (the "License"). You can obtain a copy of the License at
* http://mozilla.org/MPL/2.0/.
*/
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://gre/modules/Servi... | JavaScript | 0 | @@ -3133,24 +3133,71 @@
uItem()%0A %7B%0A
+ // Randomize URI to work around bug 719376%0A
let stri
@@ -3286,17 +3286,34 @@
operties
-%22
+?%22 + Math.random()
);%0A l
|
694d08db94cbabc7b5cd8a2398f6b72d774b6371 | Revert "Set glob root option to limit searches to the configured src directory, which can now be referenced as "/" in a custom config.locals glob string." | index.js | index.js | 'use strict';
var PLUGIN_NAME = 'gulp-nunjucks-api';
var glob = require('glob');
var gutil = require('gulp-util');
var lodash = require('lodash');
var nunjucks = require('nunjucks');
var path = require('path');
var requireNew = require('require-new');
var through = require('through2');
// #region Configuration
func... | JavaScript | 0 | @@ -419,58 +419,8 @@
alse
-,%0A src: 'src',%0A srcpath: path.resolve('src')
%0A %7D
@@ -1271,18 +1271,16 @@
ons.src)
- %7B
%0A con
@@ -1306,59 +1306,8 @@
rc;%0A
- config.srcpath = path.resolve(config.src);%0A %7D%0A
de
@@ -4075,34 +4075,8 @@
true
-,%0A root: config.srcpath
%0A %7D
|
c13dde06c6f8a1ec7f69ec923969b8e172eb7e24 | return object with maximum dimensions of workspace | examples/sharedWorkspace/workspaceManager.js | examples/sharedWorkspace/workspaceManager.js | var Vault = require('./node_modules/wams.js-server/src/vault');
var Workspace = require('./workspace');
/**
* Start workspace manager
* @param wams Reference to wams library
* @constructor
*/
var WorkspaceManager = function(wams) {
this._wams = wams;
this._vault = new Vault();
};
/**
* Adds new screen to m... | JavaScript | 0.000106 | @@ -3695,16 +3695,818 @@
lt;%0A%7D;%0A%0A
+/**%0A * Return width and height of the whole workspace%0A * @returns %7B%7Bwidth: number, height: number%7D%7D maximum width and height of workspace%0A */%0AWorkspaceManager.prototype.maxDimensions = function() %7B%0A var result = %7B%7D, i, len, screen;%0A%0A if (!this.... |
ea2727964f41f5ad6410b2edcdd127420c548cb8 | Correct dataset shim | bootstrap.js | bootstrap.js | (function (global) {
"use strict";
var bootstrap = function (callback) {
var domLoaded, Require, Promise, URL;
var params = getParams();
// observe dom loading and load scripts in parallel
// observe dom loaded
function domLoad() {
document.removeEventList... | JavaScript | 0.000027 | @@ -3862,24 +3862,285 @@
tributes) %7B%0A
+ var dataRe = /%5Edata-(.*)$/,%0A letterAfterDash = /-(%5Ba-z%5D)/g,%0A upperCaseChar = function (_, c) %7B%0A return c.toUpperCase();%0A %7D... |
961c8492a9f4462545689786e4fcc663df95a049 | Use let in place of var | index.js | index.js | #!/usr/bin/env node
'use strict';
const http = require('http');
const program = require('commander');
const chalk = require('chalk');
const prettyMs = require('pretty-ms');
const text = chalk.blue;
const error = chalk.red;
const log = console.log;
const getStatus = function () {
const options = {
host: ... | JavaScript | 0.000002 | @@ -421,11 +421,11 @@
-var
+let
str
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.