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
faa856ac0ae2d1b8741687e00b35f9d7c3099ee7
Clean up
index.js
index.js
'use strict'; let dns = require('dns'); let ping = require('ping'); let Promise = require('bluebird'); let pad = require('pad'); let request = require('request'); let fs = require('fs'); let domains = fs.readFileSync('domains.txt').toString().split("\n"); let ouputData = (data) => { // console.log( // pa...
JavaScript
0.000002
@@ -283,197 +283,8 @@ =%3E %7B -%0A // console.log(%0A // pad(data.domain, 50) + ' %7C ' +%0A // pad(data.ip, 20) + ' %7C ' +%0A // pad(data.ping, 10) + ' %7C ' +%0A // pad(''+data.status, 10)%0A // );%0A con @@ -354,21 +354,16 @@ us); -%0A + %7D;%0A%0A -function +let pin @@...
1747322fca1c96189044b6b38190e2f79eb3eef6
use vsprintf
index.js
index.js
'use strict'; var sprintf = require('sprintf-js').sprintf; var defaultLogLevels = { trace: 1, debug: 2, info: 3, warn: 4, error: 5, fatal: 6 }; function mkLogger(container, module, done) { module = module || '$root'; var config = container.$logger$config; var targetLevel = container.$log...
JavaScript
0.000001
@@ -12,16 +12,17 @@ ';%0A%0Avar +v sprintf @@ -45,16 +45,17 @@ tf-js'). +v sprintf; @@ -1214,77 +1214,36 @@ var -string = args.join(' ');%0A var formatArgs = %5B%0A format, +message = vsprintf(format, %5B %0A @@ -1338,78 +1338,32 @@ -string%0A %5D;%0A var message = sprint...
353a5f3fbaff1373ad64217654ef6b6d30fe5c30
comment out console.log
index.js
index.js
'use strict'; var through = require('through2'); var gutil = require('gulp-util'); var path = require('path'); var _ = require('lodash'); var fs = require('fs'); module.exports = function (options) { function transform(file, encoding, callback) { console.log("'gulp-insert-template': " + path.relative(process....
JavaScript
0.000001
@@ -250,16 +250,18 @@ %7B%0A +// console.
3609d25805f0927337739adf1cbfa47912ee4202
add analyzer
index.js
index.js
var objmap = require('object-map'); var objfilter = require('object-filter'); var objkeysmap = require('object-keys-map'); var objmaptoarr = require('object-map-to-array'); var objsome = require('object-some'); function addDesign(s) { return '_design/' + s; } function normalizeDoc(doc, id) { var result = { _i...
JavaScript
0.000001
@@ -1463,32 +1463,105 @@ oString();%0A %7D%0A%0A + if (index.analyzer) %7B%0A r.analyzer = index.analyzer.toString();%0A %7D%0A%0A return r;%0A%7D%0A%0Af @@ -1814,16 +1814,45 @@ b.index + && a.analyzer === b.analyzer ;%0A%7D%0A%0Afun
6a0dd7d920914f11b834d9aa6c9cf2c5702b7a07
Fix buffer length
index.js
index.js
'use strict'; /** * Check if a Buffer/Uint8Array is a TAR file * * @param {Buffer} buf * @api public */ module.exports = function (buf) { if (!buf || buf.length < 5) { return false; } return buf[257] === 117 && buf[258] === 115 && buf[259] === 116 && buf[260] === 97 && buf[261] === 114; };
JavaScript
0.00017
@@ -167,17 +167,19 @@ ength %3C -5 +262 ) %7B%0A
82e4386c947d5aa4fdcba6970e4480d0656b0424
Add verbose option
index.js
index.js
var minimatch = require('minimatch'); module.exports = statelessauth; function statelessauth(validator, options) { return function * (next) { if (options && options.ignorePaths) { var ignorePathMatched = false; var path = this.path; options.ignorePaths.some(function (e...
JavaScript
0.026086
@@ -330,32 +330,51 @@ %0A + options.verbose && console.log(%22pa @@ -394,32 +394,51 @@ %0A + options.verbose && console.log(%22ig @@ -1033,32 +1033,51 @@ 401;%0A + options.verbose && console.log('no @@ -1185,32 +1185,51 @@ 401;%0A + options.verbose && cons...
5b7c718bbfaab8d04167f6abf5b9af27c7d49c9f
remove safe undef
index.js
index.js
/** * Centralized template registration for * holding, compiling and rendering templates * * The template engine only has one requirement, * a `compile` function that returns a render function. * The render function will be called with the data * as the first parameter. * * Common libraries that use t...
JavaScript
0.017683
@@ -393,44 +393,8 @@ */%0D%0A -var undefined, // safe undefined%0D%0A%0D%0A %09// @@ -438,17 +438,20 @@ string%0D%0A -%09 +var template
16c4a808ebcf2a18b46bbe159cb48cbd34e7ce14
Refactor module API functions
index.js
index.js
var fs = require('fs'), Path = require('path'), io = require('./lib/io'), mirror = require('./src/mirror'), reflect = require('./src/reflect'); var parent = module.parent; var parentFile = parent.filename; var parentDir = Path.dirname(parentFile); module.exports = { mirror: function(dir, gulp, opts)...
JavaScript
0
@@ -180,21 +180,21 @@ e.parent -;%0Avar +,%0A parentF @@ -218,13 +218,13 @@ name -;%0Avar +,%0A par @@ -263,45 +263,26 @@ );%0A%0A -module.exports = %7B%0A mirror: function +function mirrorApi (dir @@ -290,34 +290,32 @@ gulp, opts)%7B%0A - - dir = dir %7C%7C '.' @@ -310,34 +310,32 @@ = dir %7C%7C...
443bc545e8a79cbaf279c3e66516effb8e4fa5de
Make filter placement work for both new and old dashboard
dashboard.js
dashboard.js
const events = ['Open Source', 'Conversation --', 'Issues', 'Comments', 'Code --', 'Pushes', 'Releases', 'Forks', 'Wiki', 'Community --', 'Stars', 'Follow', 'Organization admin'] var paginateProgress = 0 init() updateClasses() document.addEventListener('change', function (evt) { if (evt.target.classList.contains('js...
JavaScript
0
@@ -761,16 +761,8 @@ ve', - 'mt-3', 'js @@ -800,16 +800,16 @@ erlay')%0A + const @@ -910,18 +910,9 @@ = ' -Activity f +F ilte @@ -1025,16 +1025,22 @@ menu-se' +, 'f5' )%0A cont @@ -1866,168 +1866,669 @@ %0A%0A -// Personal %7C%7C Org%0A var target = document.querySelector('#dashboard .tabnav +var newU...
e46135498e2b750c5d30ce57b0468cbefb850757
Refactor parseBirthDate function.
index.js
index.js
/** * Copyright (c) 2016, Christopher Ramírez * All rights reserved. * * This source code is licensed under the MIT license. */ 'use strict' const validIdNumberRegExp = /^(\d{3})[ -]?(\d{6})[ -]?(\d{4}\S{1})$/ class NicaraguanId { constructor(number) { this.fullName = undefined this.birthPla...
JavaScript
0.000005
@@ -918,17 +918,16 @@ ecutive%0A -%0A @@ -931,30 +931,25 @@ this. -parseB +b irthDate (birthDi @@ -944,53 +944,95 @@ Date -(birthDigits)%0A %7D%0A%0A parseBirthDate(birth + = dateFromSixIntDigits(this.birthDigits)%0A %7D%0A%7D%0A%0Afunction dateFromSixIntDigits(sixInt Digi @@ -1033,28 +1033,...
c00ce8f877f04663346a0be96a93e1c03e58720f
add extra comment
index.js
index.js
var eventStream = require('event-stream'), gutil = require('gulp-util'), source = require('vinyl-source-stream'); // Require browserify and watchify from the parent so that their versions are // not tied to gulp-watchify try { var browserify = module.parent.require('browserify'), watchify = ...
JavaScript
0
@@ -2534,16 +2534,80 @@ ndler)%0A%0A +%09%09// Compile files once, as well as whenever the bundle changes%0A var
2ed6143056db082e1ba21eddac3e9fcb3f699ff0
Add short references
index.js
index.js
(function(fs, path, lib){ 'use strict'; // Destructure // let {parser, reader, writer} = lib; var parser = lib.parser, reader = lib.reader, writer = lib.writer; // Set default parsing to JSON parser .set('parse', JSON.parse) .set('serialize', function(input, indent){ return JSON.string...
JavaScript
0.000041
@@ -433,16 +433,294 @@ parser); +%0A%0A module.exports = %7B%0A read: reader.read,%0A write: writer.write,%0A%0A // A shorter reference to parser.set%0A set: function(prop, imp)%7B%0A parser.set(prop, imp);%0A %7D,%0A%0A // Pass private vars to export%0A parser: parser,%0A reader: reader,...
5667a05ea23d0c9a0a41dbf838eb46d868e8880d
Remove version guard
index.js
index.js
'use strict'; var bitcore = module.exports; // module information bitcore.version = 'v' + require('./package.json').version; bitcore.versionGuard = function(version) { if (version !== undefined) { var message = 'More than one instance of bitcore found with versions: ' + bitcore.version + ' and ' + version...
JavaScript
0
@@ -481,16 +481,19 @@ %0A %7D%0A%7D;%0A +// bitcore.
3bc299e7cd0b4af6574864413414c60ed3a169a4
Remove unnecessary comma
index.js
index.js
var gutil = require('gulp-util'), through = require('through2'), PoFile = require('pofile'), lodash = require('lodash'), exec = require('child_process').exec; /** * Builds shell command for GNU xgettext according to specified options. * * @param {Object} opt List of options. * @returns {String} She...
JavaScript
0.999859
@@ -3008,25 +3008,24 @@ l-Forms': '' -, %0A
71b6dddd1231f98b08a74a559287722f0b8aedfb
Normalise all cases of undefined checks to use the empty() function.
src/lifecycle/properties-init.js
src/lifecycle/properties-init.js
import assign from 'object-assign'; import dashCase from '../util/dash-case'; import data from '../util/data'; import empty from '../util/empty'; // TODO Split apart createNativePropertyDefinition function. function getData (elem, name) { return data(elem, `api/property/${name}`); } function getLinkedAttribute (na...
JavaScript
0.000001
@@ -1964,16 +1964,22 @@ %0A if +(empty (initial @@ -1987,22 +1987,9 @@ alue - === undefined +) ) %7B%0A @@ -2661,34 +2661,34 @@ ) %7B%0A const in -fo +it = getData(this, @@ -2697,31 +2697,8 @@ ame) -;%0A const init = info .int @@ -2730,35 +2730,19 @@ %5D = -typeof init === 'undefined' +empty(init) ...
9a6561d1ff39929b9773a3385489caca9fdf4d8e
Add "raw" param
index.js
index.js
var cons = require('consolidate'); var utils = require('loader-utils'); var extname = require('path').extname; module.exports = function(content) { this.cacheable && this.cacheable(); var callback = this.async(); var opt = utils.parseQuery(this.query); function exportContent(content) { callback(null, "m...
JavaScript
0
@@ -288,24 +288,89 @@ (content) %7B%0A + if (opt.raw) %7B%0A callback(null, content);%0A %7D else %7B%0A callback @@ -424,16 +424,22 @@ tent));%0A + %7D%0A %7D%0A%0A / @@ -895,8 +895,9 @@ %7D);%0A%7D; +%0A
0bc2e10483330199bb7f01c4824945a62bc473aa
fix execution error when some asset types are not specified
index.js
index.js
var fs = require('fs'); var path = require('path'); var parcelMap = require('parcel-map'); var match = require('minimatch'); var shasum = require('shasum'); var mkdirp = require('mkdirp'); var through2 = require('through2'); var path = require('path'); var fs = require('fs'); var EventEmitter = require('events').Event...
JavaScript
0.000001
@@ -2754,16 +2754,51 @@ %5Bprop%5D;%0A + if (pattern) %7B%0A @@ -2833,32 +2833,36 @@ ive(dir, file);%0A + @@ -2910,24 +2910,42 @@ push(file);%0A + %7D%0A
1f4e02ea1e0263af762393acb814c60e6655099e
Test that mod11 number is not longer than 11 characters
source/spec/utils.spec.js
source/spec/utils.spec.js
import Utils from '../lib/utils.js'; import { expect } from 'chai'; describe('Utils', () => { beforeEach(() => { }); describe('mod10', () => { [ '00', '18', '26', '34', '42', '59', '67', '75', '83', '91', '109', '117', '54029681' ...
JavaScript
0.000008
@@ -1134,28 +1134,164 @@ %7D);%0A %7D); +%0A%0A it('should return false for numbers longer than 11 characters', () =%3E %7B%0A Utils.mod11('020202020202').should.be.false;%0A %7D); %0A %7D);%0A%0A%7D);%0A
c8277a45e139ac4a76ee0065a9a8071132b6d314
return correct thing in post
index.js
index.js
// var githubhook = require('githubhook'); // var githubEvents = githubhook({ // port: process.env.PORT || 3420, // secret: 'k1b1b0t@kibibit' // }); // var github = require('octonode'); // //var ghrepo = client.repo('pksunkara/hub'); // // ghrepo.status('18e129c213848c7f239b93fe5c67971a64f183ff', { // // "state":...
JavaScript
0.000029
@@ -3157,18 +3157,77 @@ res. -status(200 +json(%7B%0A message: 'b33p b33p! got your notification, githubot!'%0A %7D );%0A%7D
899b9588d70e0006c48d2ee8dd99f3aa53c94916
Implement Super
index.js
index.js
var Class = function(obj, parent) { var child; if(obj.hasOwnProperty('initialize')) { child = obj['initialize']; } else { child = new Function; } //child.__super__ = parent || Object; if (parent) { child.prototype = new parent(); child.prototype.prototype = parent.prototype; ...
JavaScript
0.000003
@@ -744,64 +744,79 @@ -//console.log(%22here%22);%0A current = child; +current = child;%0A %7D%0A if (arguments.length != 0) %7B %0A -%7D%0A + %0A @@ -825,24 +825,26 @@ var result;%0A + var te @@ -857,16 +857,19 @@ urrent;%0A +%0A cu @@ -888,58 +888,30 @@ ent....
8fb274ed8bd61bf04fc1712325a6e18edfb2ef73
set options
index.js
index.js
var fs = require("fs"); var twitterPkg = require("twitter"); var express = require('express'); var hexu = require("hexu"); var request = require("request"); var kov = require("kov"); var app = express(); var addData = require("./data/data.js").addData; var config = JSON.parse(fs.readFileSync("./config.json")); var d...
JavaScript
0.000055
@@ -408,16 +408,69 @@ nfig);%0A%0A +var opts = %7B%0A type: %22sentence%22,%0A min: 2,%0A max: 5%0A%7D %0A%0A%0Avar m
67ed46c5a938ef5baa8003f8c858e5a928abd702
Revert "Added new validation checks"
index.js
index.js
/* * Iris * (c) 2016+ Buenos Aires City Government * License: https://opensource.org/licenses/MIT * */ 'use strict'; const Flow = require('./lib/Flow'); const BaseDock = require('./lib/bases/Dock'); const BaseHandler = require('./lib/bases/Handler'); const BaseHook = require('./lib/bases/Hook'); const dispatcher...
JavaScript
0
@@ -4525,75 +4525,8 @@ g%5D,%0A - process: %5Bvalidator.isRequired, validator.isFunction%5D,%0A @@ -5332,75 +5332,8 @@ g%5D,%0A - process: %5Bvalidator.isRequired, validator.isFunction%5D,%0A
6064dc5f4aa6c30b111f5d5dbfd5bbbe1b000f20
Use `path.sep` instead of hardcoding '/'
index.js
index.js
'use strict'; var fs = require('fs'); var crypto = require('crypto'); var path = require('path'); var through = require('through2'); var cheerio = require('cheerio'); var PluginError = require('gulp-util').PluginError; var PLUGIN_NAME = 'gulp-sri-hash'; var DEFAULT_ALGO = 'sha384'; var DEFAULT_SELECTOR = 'link[href][...
JavaScript
0.009433
@@ -1037,10 +1037,30 @@ !== -47 +path.sep.charCodeAt(0) ) %7B%0A @@ -1073,11 +1073,16 @@ c = -'/' +path.sep + s
e1817c5840ab2bc4e0e4fbb803de9d9ea246561c
Resolve is not necessary when calling unlock.
index.js
index.js
'use strict'; var fs = require('graceful-fs'); var path = require('path'); var extend = require('extend'); var errcode = require('err-code'); var retry = require('retry'); var locks = {}; function acquireLock(file, options, callback, compromised) { var lockfile = file + '.lock'; // Use mkdir to create the l...
JavaScript
0
@@ -943,40 +943,25 @@ -return acquireLock(file, +options = extend( opti @@ -948,32 +948,36 @@ ptions = extend( +%7B%7D, options, %7B stale @@ -974,32 +974,130 @@ s, %7B stale: 0 %7D) +; // Skip stale check to avoid recursiveness%0A return acquireLock(file, options , callback, comp @@ -...
2817df159dfef38de8c668fce614c7b561da55ee
return unload function for abortion
index.js
index.js
'use strict'; /** * Async load a script file. * * @param {Document} document Reference to the document were we create elements * @param {String} url URL we want to load. * @param {Function} fn Completion callback. * @api public */ module.exports = function scripts(document, url, fn) { var script = document.cr...
JavaScript
0.000036
@@ -2067,12 +2067,30 @@ c = url; +%0A%0A return unload; %0A%7D;%0A
ad6a948a0611080ee998f11411d7e8e2b70460c2
make destroyed check cleaner
index.js
index.js
var once = require('once'); var noop = function() {}; var isRequest = function(stream) { return stream.setHeader && typeof stream.abort === 'function'; }; var isChildProcess = function(stream) { return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 }; var eos = function(stream, opts, cal...
JavaScript
0
@@ -1165,37 +1165,16 @@ ) %7B%0A%09%09if - (stream.destroyed %7C%7C (readab @@ -1191,16 +1191,17 @@ && +( rs.ended ))) @@ -1192,24 +1192,41 @@ && (rs.ended + && !rs.destroyed ))) return c @@ -1285,29 +1285,8 @@ %09%09if - (stream.destroyed %7C%7C (wr @@ -1307,16 +1307,17 @@ && +( ws.ended ))) @@ -13...
2fcdbb3da5b536077970d04617791cf8a39e1d1e
add this.total property
index.js
index.js
(function (factory) { if (typeof exports !== 'undefined') { var $ = require('jquery') require('jquery-mousewheel')($) module.exports = factory($) } else if (window.jQuery && window.jQuery.fn.mousewheel) { window.Slider = factory(window.jQuery) } else { throw new Error('require jQuery, jQuery-mousewheel')...
JavaScript
0.000078
@@ -433,16 +433,38 @@ tive: 0, + // index start from 0 %0A%09scroll @@ -951,48 +951,280 @@ de)%0A -%0A%09var active = this. +%09var total = this.total = this.slides.length%0A%0A%09// no slide%0A%09if (total === 0) return%0A%0A%09var active = opts.active%0A%0A%09// check active%0A%09if (active %3C 0) %7B%0A%09%09acti...
7c36c42f3087c3f32d6213057c4586db7f4e65df
add mget
index.js
index.js
/** * Created by guy on 08/08/15. */ var net = require('net'), readline = require('readline'); var map = {}; var server = net.createServer(function(socket) { //'connection' listener console.log('client connected'); socket.on('end', function() { console.log('client disconnected'); }); va...
JavaScript
0.000003
@@ -1552,16 +1552,148 @@ ase())%7B%0A + case 'info': // TODO Build info%0A socket.write('+OK%5Cr%5Cn');%0A break;%0A @@ -1911,32 +1911,45 @@ if(value + == undefined ) %7B%0A @@ -1979,17 +1979,17 @@ write(': -1 +0 %5Cr%5C...
fcd26e98bc0d05f646fd801a1c6c50aa6f546326
Replace deprecated functions.
index.js
index.js
var postcss = require('postcss') var properties = require('./properties') var flexboxfixer = require('postcss-flexboxfixer') var gradientfixer = require('postcss-gradientfixer') var rePrefix = /^-webkit-|^-moz-(osx-)?|^-ms-|^-o-/i module.exports = postcss.plugin('postcss-unprefix', function() { //删除重复生成的声明 functi...
JavaScript
0
@@ -353,24 +353,25 @@ rule. -each +walk Decl +s (functio @@ -417,24 +417,25 @@ .parent. -each +walk Decl +s (functio @@ -590,12 +590,8 @@ move -Self ()%0A @@ -646,16 +646,17 @@ css. -each +walk Decl +s (reP @@ -1367,16 +1367,17 @@ css. -each +walk Rule +s (rem
77be63209cbee35091391bebcf0ad418886b94da
Use `'html'` as output format
index.js
index.js
'use strict'; var MarkdownIt = require('markdown-it'); exports.name = 'markdown-it'; exports.outputFormat = 'xml'; exports.render = function (str, options) { var md = MarkdownIt(options); return md.render(str); };
JavaScript
0
@@ -104,17 +104,18 @@ rmat = ' -x +ht ml';%0Aexp
002135076aa5037e613f7b05b65568254e7b015f
remove log
index.js
index.js
/* jshint esversion:6 */ require('./settings.js'); var Darknet = require('./Darknet.js').Darknet; console.log(Darknet); var RtmClient = require('@slack/client').RtmClient, CLIENT_EVENTS = require('@slack/client').CLIENT_EVENTS, fs = require('fs'), request = require('request'); var bot_token = process.env...
JavaScript
0.000001
@@ -96,31 +96,8 @@ t;%0A%0A -console.log(Darknet);%0A%0A var
6ba383982e6cb1f7a786ad607f043538670a8fbb
Remove superfluous comments
index.js
index.js
'use strict' var is = require('unist-util-is') module.exports = findBefore /* Find a node before `index` in `parent` which passes * `test`. */ function findBefore(parent, index, test) { var children var child if (!parent || !parent.type || !parent.children) { throw new Error('Expected parent node') } ...
JavaScript
0.000015
@@ -75,77 +75,8 @@ re%0A%0A -/* Find a node before %60index%60 in %60parent%60 which passes%0A * %60test%60. */%0A func @@ -477,17 +477,17 @@ %7D%0A%0A / -* +/ Perform @@ -495,11 +495,8 @@ nce. - */ %0A i
f9bdc987eae741006d1e9cea63800ebc29221af8
Fix logic bug with css error reporting
index.js
index.js
'use strict' var postcss = require('postcss') var defined = require('defined') var noop = postcss.plugin('noop', function () { return function (css) {} }) module.exports = postcss.plugin('@emilbayes/css-pipeline', function (options) { options = options || {} var rtl = defined(options.rtl, process.env.RTL, fals...
JavaScript
0.00001
@@ -614,33 +614,32 @@ ) : noop(),%0A -! debug ? require(
74e6ac966430b692be5fb12b401afb6ade3e68d2
Remove unused dependency on q
index.js
index.js
/* Copyright © 2015 PointSource, LLC. All rights reserved. */ var path = require('path'), fs = require('fs'), _ = require('lodash'), async = require('async'), q = require('q'), cluster = require('cluster'); var sprout = require('./lib/sprout'); var loader = require('./lib/loader'); var serviceLoad...
JavaScript
0.000001
@@ -168,30 +168,8 @@ '),%0A - q = require('q'),%0A
4c3d77bd42d5fe4bf572c540bc76bfd747ac4887
Fix options not being passed through to capture and attach correctly
index.js
index.js
var defaults = require('cog/defaults'); var extend = require('cog/extend'); var attach = require('rtc-attach'); var capture = require('rtc-capture'); var quickconnect = require('rtc-quickconnect'); var chain = require('whisk/chain'); var append = require('fdom/append'); var tweak = require('fdom/classtweak'); var qsa =...
JavaScript
0
@@ -539,93 +539,72 @@ // -c re -ate +map our -conference instance%0A conference = quickconnect(%0A config.signaller,%0A +options based on top level settings%0A config.options = ext @@ -609,18 +609,16 @@ xtend(%7B%0A - room @@ -636,18 +636,16 @@ om,%0A - - ice: con @@ -653,18 +653,16 @@ ...
489d8092fdbf1f61b19f071d77c26fb5537ba3a5
handle empty source with map
index.js
index.js
'use strict'; var through = require('through2'); var path = require('path'); var convert = require('convert-source-map'); var reactHotLoader = require('react-hot-loader'); module.exports = function(file, opts) { var pieces = []; return through.obj(function(row, enc, next) { pieces.push(row); next(); }, ...
JavaScript
0
@@ -739,18 +739,8 @@ if ( -source && map)
ea645e5e9af6f89bb9f4fb697f86c9291a0dbebf
Update index.js
index.js
index.js
/*jshint -W082 */ var htmlparser = require('htmlparser2'); /** * Parse html to PostHTMLTree * @param {String} html * @return {Object} */ module.exports = function postHTMLParser(html) { var bufArray = [], results = []; bufArray.last = function() { return this[this.length - 1]; }; ...
JavaScript
0
@@ -1936,10 +1936,11 @@ rn true; +%0A %7D%0A
a2a6aa328cbab13f619de7dd7b6612c8c33a9cb7
remove "uncaughtException" method for the potential removal
index.js
index.js
'use strict'; var util = require('util'); var typo = require('typo'); module.exports = function(options) { return new Loggie(options); }; function mix (receiver, supplier, override){ var key; if(arguments.length === 2){ override = true; } for(key in supplier){ if(override || !(k...
JavaScript
0.000014
@@ -1453,147 +1453,8 @@ );%0A%0A - if(options.catch_exceptions)%7B%0A process.on('uncaughtException', function (err) %7B%0A this.error(err);%0A %7D);%0A %7D%0A%0A
5a5b4ce888951881e89119b61d0f6ca827278180
Fix bug in spinner drawing
index.js
index.js
"use strict"; const path = require("path"); const fs = require("fs"); const execSync = require("child_process").execSync; const assign = require("object-assign"); const which = require("which"); const mkdirp = require("mkdirp"); const template = require("string-template"); const Spinner = require("cli-spinner").Spinne...
JavaScript
0
@@ -1851,24 +1851,53 @@ t%22);%0A %7D%0A%0A + if (!params.verbose) %7B%0A spinner. @@ -1901,24 +1901,31 @@ er.start();%0A + %7D%0A%0A createAr @@ -2022,24 +2022,57 @@ chive) =%3E %7B%0A + if (!params.verbose) %7B%0A spin @@ -2079,32 +2079,43 @@ ner.stop(true);%0A + %7D%...
c4c99918c01153ca526edd87cf8b8ca13c0bae6f
support for strips
index.js
index.js
/** * PixelNode_Driver * * Base class for led drivers * * -------------------------------------------------------------------------------------------------------------------- * * @author Amely Kling <mail@dwi.sk> * */ /* Node Inclues * ======================================================================...
JavaScript
0
@@ -1582,16 +1582,23 @@ unction( +strip, id, r,g, @@ -2033,24 +2033,27 @@ is.setPixel( +0, pixel, 0, 0, @@ -3397,16 +3397,73 @@ onfig%5B2%5D + %7C%7C ring.pixelColorCorrection %7C%7C%C2%A0map.pixelColorCorrection ) %7B%0A%09%09 @@ -3473,32 +3473,48 @@ %09%09self.setPixel( +pixelConfig%5B0%5D, pixelConfig%5...
1e288cd15bfbeb5c57cfca0f8f8063e340d04697
Fix 'B2G is running' bug.
index.js
index.js
#! /usr/bin/env node // Usage: node make_onsave.js b2g tv browser // node make_onsave.js nightly phone settings // node make_onsave.js simulator tv tv-deck // node make_onsave.js b2g tv var fs = require('fs'); var path = require('path'); var chokidar = require('chokidar'); var config = require(...
JavaScript
0.000001
@@ -29,183 +29,475 @@ ge: -node make_onsave.js b2g tv browser%0A// node make_onsave.js nightly phone settings%0A// node make_onsave.js simulator tv tv-deck%0A// node make_onsave.js b2g tv +In gaia folder%0A//%0A// node PATH_TO_GAIA_DEVELOP/index.js b2g tv browser%0A// node PATH_TO_G...
6ba6b2ff891454ad47842491a95568999cd1b70f
use same api as pull-fork
index.js
index.js
var pull = require('pull-stream') var pushable = require('pull-pushable') module.exports = function (select, createStream) { var streams = {}, n = 0 return pull.drain(function (item) { var key = select(item) if(!streams[key]) { streams[key] = pushable(function (err) { delete streams[key] ...
JavaScript
0.000001
@@ -149,22 +149,26 @@ = 0%0A%0A -return +var sink = pull.dr @@ -216,17 +216,16 @@ t(item)%0A -%0A if(! @@ -349,24 +349,29 @@ %7D)%0A +pull( streams%5Bkey%5D @@ -374,14 +374,10 @@ key%5D -.pipe( +, crea @@ -385,20 +385,19 @@ eStream( -item +key ))%0A %7D @@ -511,15 +511,202 @@ )%0A %7D...
84ddb572991792d75c310dfbabe50e54f0d5a6dd
Add jquery-highlight dependency to vendor imports (#12)
index.js
index.js
'use strict'; const path = require('path'); const Funnel = require('broccoli-funnel'); const MergeTrees = require('broccoli-merge-trees'); const map = require('broccoli-stew').map; module.exports = { name: 'ember-highlight', included() { this._super.included.apply(this, arguments); this.import('vendor/si...
JavaScript
0
@@ -378,16 +378,63 @@ t.js');%0A + this.import('vendor/jquery.highlight.js');%0A %7D,%0A%0A
b78753bdccf74f84a8ae4253a9a58b520fa9b8be
Include the class inside the index
index.js
index.js
/* * Copyright (c) 2015 peeracle contributors * * 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, merg...
JavaScript
0
@@ -1636,16 +1636,17 @@ tadata') +, %0A%0A // P
d1377e6542365c0d52c85e22cef60ee59a3f965f
add episode_id
app/models/user.model.js
app/models/user.model.js
var mongoose = require('mongoose'); var userSchema = mongoose.Schema({ username: { type: String, unique: true, required: true, }, email: { type: String, required: true, unique: true, }, password: { type: String, required: true, unique: false, }, key: { type: String...
JavaScript
0.000004
@@ -1284,24 +1284,122 @@ pisodes: %5B%7B%0A + episode_id: %7B%0A type: String,%0A unique: false,%0A required: true,%0A %7D,%0A season
d952a94821ab9656fb9bb7f68213b193ed76a1d2
Add temp_hash to user model
app/models/user_model.js
app/models/user_model.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var Objectid = mongoose.Schema.Types.ObjectId; var UserSchema = new Schema({ name: String, company: String, email: { type: String, unique: true, index: true }, password: String, admin: Boolean, space_total: Number, //Debit + Credit s...
JavaScript
0.000001
@@ -272,16 +272,36 @@ oolean,%0A +%09temp_hash: String,%0A %09space_t
28165549ebdf38cca2cabc400d56e06e1c8264df
Fix on displayName for github accounts.
auth.js
auth.js
/* * Module dependencies */ var passport = require('passport') , keys = require('./keys.json') , mongoose = require('mongoose') , gravatar = require('gravatar'); var User = mongoose.model('User'); passport.serializeUser(function(user, done) { done(null, user._id); }); passport.deserializeUser(function(id...
JavaScript
0
@@ -2310,32 +2310,38 @@ file.displayName + %7C%7C '' ;%0A user
afddb3041861c7e7ae993743ca592b90d1b826c3
use OrderedMap for dates
app/reducers/contacts.js
app/reducers/contacts.js
import { Map } from 'immutable' import * as actions from '../constants/actions' const initialContacts = Map() export default (contacts = initialContacts, action) => { switch (action.type) { case actions.FETCHED_CONTACTS: return Map(action.contacts) default: return contacts } }
JavaScript
0
@@ -2,16 +2,23 @@ mport %7B +Ordered Map %7D fr @@ -105,16 +105,23 @@ tacts = +Ordered Map()%0A%0Ae @@ -246,16 +246,23 @@ return +Ordered Map(acti
9cf79b84cd1a56d4559c5ceea6c85b48bf91d2ff
Add space-infix-ops rule
index.js
index.js
const OFF = 0; const WARN = 1; const ERROR = 2; module.exports = { env: { browser: true, commonjs: true, es6: true, }, extends: 'eslint:recommended', globals: {}, parserOptions: { ecmaVersion: 6, sourceType: 'module', ecmaFeatures: { jsx: true, }, }, plugins: [ 'reac...
JavaScript
0.000042
@@ -2120,24 +2120,54 @@ , 'never'%5D,%0A + 'space-infix-ops': ERROR,%0A 'yoda':
5f19c76ca8974e0cda87da0c9372da34b54f0753
Set card title based on intent
index.js
index.js
'use strict'; var Alexa = require('alexa-sdk'); var AWS = require('aws-sdk'); var LooksLike = require("./handlers/LooksLike"); exports.handler = function(event, context, callback){ console.log("event: " + JSON.stringify(event)); console.log("context: " + JSON.stringify(context)); var alexa = Alexa.hand...
JavaScript
0.000001
@@ -1955,32 +1955,129 @@ ayings.length);%0A + this.attributes%5B%22cardTitle%22%5D = %22Selection %22 + index + %22 of %22 + LooksLike.Sayings.length;%0A this.att @@ -2116,32 +2116,32 @@ ngs%5Bindex - 1%5D;%0A - this.emi @@ -2601,16 +2601,48 @@ dTitle = + this.attributes%5B%22cardTitle%22%5D...
f0d8a30a8f5de678347585ea5249eba62e27630f
Fix indentation, length check
index.js
index.js
'use strict'; module.exports = function (buf) { if (!buf || buf.length < 3) { return false; } return buf[0] === 82 && buf[1] === 73 && buf[2] === 70 && buf[3] === 70 && buf[8] === 87 && buf[9] === 65 && buf[10] === 86 && buf[11] === 69 };
JavaScript
0.00001
@@ -67,17 +67,18 @@ ength %3C -3 +12 ) %7B%0A%09%09re @@ -152,28 +152,26 @@ %5D === 70 &&%0A - +%09%09 buf%5B3%5D === 7 @@ -171,28 +171,26 @@ %5D === 70 &&%0A - +%09%09 buf%5B8%5D === 8 @@ -190,28 +190,26 @@ %5D === 87 &&%0A - +%09%09 buf%5B9%5D === 6 @@ -209,28 +209,26 @@ %5D === 65 &&%0A - +...
24ef6aacc0c33b1c2183c594b5ad2028b568ca4b
update project
auto.js
auto.js
const git = require('simple-git') const firebase = require('firebase') const config = require('./config') firebase.initializeApp(config) var ref = firebase.database().ref().child("servers") ref.child(config.device).on('value', autoPull) // process.on('SIGINT', function() { // process.exit() // }); var running = ...
JavaScript
0
@@ -909,29 +909,31 @@ ;%0A git()%0A -.then + .exec (function() @@ -926,32 +926,34 @@ ec(function() %7B%0A + console.log( @@ -973,21 +973,25 @@ l ...')%0A + %7D)%0A + .pull( @@ -1018,16 +1018,18 @@ ) %7B%0A + + if(updat @@ -1057,32 +1057,34 @@ hanges) %7B%0A + console.log(upda...
e543a9c947a1b9722bb717a63f95ed7b54e4699c
Fix Flow type for seek
index.js
index.js
/** * @flow */ 'use strict' import { NativeModules, NativeEventEmitter, Platform } from 'react-native' const { RNSoundPlayer } = NativeModules const _soundPlayerEmitter = new NativeEventEmitter(RNSoundPlayer) let _finishedPlayingListener = null let _finishedLoadingListener = null module.exports = { playSoundFil...
JavaScript
0
@@ -1721,16 +1721,24 @@ (seconds +: number ) =%3E %7B%0A
db179286c051f9117cd328ac975c373bd879afa2
fix es6
index.js
index.js
/* jshint node: true */ 'use strict'; var LayoutCompiler = require('./lib/layout-compiler'); var compileScssVariables = require('./lib/scss-variables-compiler'); var mergeTrees = require('broccoli-merge-trees'); // var log = require('broccoli-stew').log; var Funnel = require('broccoli-funnel'); var path = require('path...
JavaScript
0.000003
@@ -965,24 +965,34 @@ flexiConfig +: function () %7B%0A if @@ -1720,16 +1720,26 @@ config +: function () %7B%0A
b6cf69884b5d04861691e1becc907f89792d14b1
Update map size on window resize
app/scripts/views/map.js
app/scripts/views/map.js
define(["backbone.marionette", "mapbox", "d3", "communicator", "config", "views/popup", "tpl!template/map.html"], function(Marionette, Mapbox, d3, Communicator, Config, PopupView, Template) { return Marionette.ItemView.extend({ // Marionette properties. events: {}, template: Templat...
JavaScript
0
@@ -533,24 +533,25 @@ nction(o) %7B%0A +%0A var se @@ -557,24 +557,65 @@ elf = this;%0A + _.bindAll(this, 'updateMapSize');%0A%0A this.l @@ -904,17 +904,16 @@ this);%0A -%0A Co @@ -988,24 +988,95 @@ ; %7D);%0A%0A + $( window ).resize( _.throttle( this.updateMapSize, 150 ) );%0A%0A ...
e5a431e724b589e907935090eeaad8030058731f
Remove `.js` extensions when requiring a file (#4427)
src/chart.js
src/chart.js
/** * @namespace Chart */ var Chart = require('./core/core.js')(); require('./helpers/helpers.core')(Chart); require('./core/core.helpers')(Chart); require('./helpers/helpers.time')(Chart); require('./helpers/helpers.canvas')(Chart); require('./platforms/platform.js')(Chart); require('./core/core.element')(Chart); ...
JavaScript
0
@@ -53,19 +53,16 @@ ore/core -.js ')();%0A%0Ar @@ -257,19 +257,16 @@ platform -.js ')(Chart @@ -334,19 +334,16 @@ e.plugin -.js ')(Chart @@ -592,19 +592,16 @@ re.ticks -.js ')(Chart @@ -935,19 +935,16 @@ nearbase -.js ')(Chart @@ -1951,19 +1951,16 @@ n.filler -.js ')(Chart @@ -1998,19 +1998,16 @@ n.legend ...
09f5280815de5bc11bdcba16b4cdaa00a2070ce4
update scroll elements to set id to the scroll region name for hash support
modules/components/Element.js
modules/components/Element.js
"use strict"; var React = require('react'); var assign = require('react/lib/Object.assign'); var Helpers = require('../mixins/Helpers'); var Element = React.createClass({ mixins: [Helpers.Element], render: function () { /* * Not sure if should allow more then one property? */ var className = th...
JavaScript
0
@@ -339,20 +339,16 @@ %7C%7C %22%22;%0A - %0A var @@ -381,16 +381,43 @@ rops, %7B%0A + id: this.props.name,%0A cl @@ -543,8 +543,9 @@ Element; +%0A
4be977c0e07af5328f3243488d3cd2ac8d9c3300
Debug fetching
index.js
index.js
var fs = require('fs'); var redis = require('redis'); var slack = require('slack-notify')(process.env.SLACK_URL); // ------------------ var SpotifyWebApi = require('spotify-web-api-node'); var spotifyApi = new SpotifyWebApi({ clientId: process.env.SPOTIFY_CLIENT_ID, clientSecret: process.env.SPOTIFY_CLIENT_SECRE...
JavaScript
0.000001
@@ -2072,24 +2072,73 @@ ion(data) %7B%0A + console.log('Spotify - playlist fetched');%0A for (v @@ -2172,16 +2172,18 @@ %7B%0A + var date @@ -2222,24 +2222,88 @@ .added_at);%0A + console.log('Spotify - last date in playlist', date);%0A if((la @@ -2344,24 +2344,26 @@ astDate)) %7...
97f1c8e42cdbb2d7c8de9c42cd6e1b64bc71a5d7
Use derived state instead of `count` property
app/services/progress.js
app/services/progress.js
import Service, { inject as service } from '@ember/service'; import { htmlSafe } from '@ember/string'; import { tracked } from '@glimmer/tracking'; import { rawTimeout, task } from 'ember-concurrency'; import { buildWaiter } from 'ember-test-waiters'; const SPEED = 200; let waiter = buildWaiter('progress-bar'); exp...
JavaScript
0
@@ -389,22 +389,8 @@ r;%0A%0A - count = 0;%0A%0A @t @@ -535,135 +535,8 @@ %7D%0A%0A - increaseCounter() %7B%0A this.count += 1;%0A this.updateTask.perform();%0A %7D%0A%0A decreaseCounter() %7B%0A this.count -= 1;%0A %7D%0A%0A @t @@ -570,47 +570,38 @@ t -ry %7B%0A this.increaseCounter +hi...
a33541145e4bc9247eaaab16c5be66d1ec2595f3
Add triggering change events to createBoolPassthroughFunction
base.js
base.js
// Console shim (function () { var f = function () {}; if (!window.console) { window.console = { log:f, info:f, warn:f, debug:f, error:f }; } }()); var limitNumber = function(num, min, max) { return Math.min(max, Math.max(num, min)); } var epsilonEquals = function(a, b) { ...
JavaScript
0
@@ -772,16 +772,92 @@ false;%0A + obj.trigger(%22change:%22 + objPropertyName, obj%5BobjPropertyName%5D);%0A
079fc3928a53b1bf327358b29ae4e7b90cff1e09
Improve password validation (#609)
frontend/src/components/session/login-form.js
frontend/src/components/session/login-form.js
import React, { Component } from 'react' import withRouter from 'react-router-dom/withRouter' import { FormattedMessage } from 'react-intl' import { Button, withStyles, TextField } from '@material-ui/core' import purple from '@material-ui/core/colors/purple' import api from '../../consts' const styles = theme ...
JavaScript
0.000002
@@ -1063,23 +1063,26 @@ ,%0A -touched +validating : false%0A @@ -1104,100 +1104,103 @@ ndle -Change = name =%3E event =%3E %7B%0A // if (name === 'password') this.setState(%7B touched: true %7D) +Blur = () =%3E %7B%0A this.setState(%7B validating: true %7D)%0A %7D%0A%0A handleChange = name =%3E event =...
b398774870b020f890dc007b6508dc9bac98a2c7
Remove dependencies
lib/node_modules/@stdlib/tools/cli/lib/validate.js
lib/node_modules/@stdlib/tools/cli/lib/validate.js
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
JavaScript
0.000004
@@ -705,142 +705,8 @@ );%0A -var isString = require( '@stdlib/assert/is-string' ).isPrimitive;%0Avar isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;%0A var @@ -2292,34 +2292,30 @@ elp;%0A%09%09if ( -!isString( +typeof opts.help ) @@ -2313,17 +2313,28 @@ ts.help -) +!== 'string' ) %7B%0A%09%0...
b5e9caf833715e21ea80639a4148af6b2118115b
remove dummy cfg value
base.js
base.js
(function(_deps, undefined){ /*===== ==dependencies Allow injection of dependencies so they can be theoretically modified for testing. Local names allow them to be minified. =====*/ var $, globals, head, jQuery, window; if(!_deps){ _deps = {}; } window = globals = _deps.globals || this; head = _deps.head ...
JavaScript
0.000001
@@ -1125,39 +1125,8 @@ =*/%0A -%09__.cfg.whatever = 'whatever';%0A %0A%0A%09/
7da12942c3de67e0881c62435e6250531e4a0785
Fix frontend tests
frontend/tests/unit/controllers/login-test.js
frontend/tests/unit/controllers/login-test.js
import { expect } from 'chai'; import { describe, it } from 'mocha'; import { setupTest } from 'ember-mocha'; describe('Unit | Controller | login', function() { setupTest('controller:login', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this wi...
JavaScript
0.000047
@@ -256,19 +256,16 @@ est.%0A - // needs: @@ -270,22 +270,23 @@ : %5B' -controller:foo +service:metrics '%5D%0A
d78fc5f7d49a23c3c0bfe7033c538f2ce3c3a02b
correct tasking manager api endpoint
app/settings/settings.js
app/settings/settings.js
const mapbox_token = 'pk.eyJ1IjoiaG90IiwiYSI6ImNpbmx4bWN6ajAwYTd3OW0ycjh3bTZvc3QifQ.KtikS4sFO95Jm8nyiOR4gQ' export default { 'vt-source': 'https://tiles.osm-analytics.heigit.org', // source of current vector tiles 'vt-gaps-source': 'https://tiles.osm-analytics.heigit.org/gaps', 'vt-hist-source': 'https://tiles.o...
JavaScript
0.000018
@@ -703,17 +703,46 @@ s://task -s +ing-manager-tm4-production-api .hotosm.
77f2c19828d90466f3874d1059d2cda3f9c3e2ce
Move render modules to vega-scenegraph.
index.js
index.js
export { version } from './build/package'; export * from 'vega-statistics'; export * from 'vega-util'; export * from 'vega-loader'; export { Dataflow, EventStream, Parameters, Pulse, MultiPulse, Operator, Transform, changeset, ingest, register, definition, definitions, transform, trans...
JavaScript
0
@@ -377,16 +377,32 @@ tMetrics +,%0A renderModule %0A%7D from @@ -840,26 +840,8 @@ View -,%0A rendererModule %0A%7D f
d8b34d782bd5227e3b9ad1be776220e36da1e519
remove rogue moo
modules/gulp-nuget-restore.js
modules/gulp-nuget-restore.js
'use strict'; var gutil = require('gulp-util'); var es = require('event-stream'); var fs = require('fs'); var q = require('q'); var spawn = require('./spawn'); var exec = require('./exec'); var log = require('./log'); var path = require('path'); var which = require('which'); var resolveNuget = require('./resolve-nuget'...
JavaScript
0.000013
@@ -2645,30 +2645,8 @@ ) %7B%0A - console.log('moo');%0A va
cb09b624d4873ce42288dce36fb96850c98d2d95
Fix search (#56)
app/src/cases/actions.js
app/src/cases/actions.js
import cases from '../case.json'; export const REQUEST_CASES_SEARCH = 'REQUEST_CASES_SEARCH'; export const RECEIVE_CASES_SEARCH = 'RECEIVE_CASES_SEARCH'; export const SELECT_CASE = 'SELECT_CASE'; export function selectCase(caseId) { return { type: SELECT_CASE, caseId } } export function sear...
JavaScript
0
@@ -693,16 +693,30 @@ lastName +.toLowerCase() )%0A
8282f6223810489e3c77671984505756005effd6
use 'instance' as single model id
test/apps/models/properties/models/modelTab.js
test/apps/models/properties/models/modelTab.js
exports.definition = { config: { "columns": { "count": "Int" }, "defaults": { "count": 0 }, "adapter": { "type": "properties", "collection_name": "singleModel" } } }
JavaScript
0.000023
@@ -39,24 +39,43 @@ columns%22: %7B%0A +%09%09%09%22id%22: %22String%22,%0A %09%09%09%22count%22: @@ -97,24 +97,45 @@ efaults%22: %7B%0A +%09%09%09%22id%22: %22instance%22,%0A %09%09%09%22count%22:
eb234b739c07401cae2866c4d94fdf80fedc1d32
fix but using loggedInIUser Model before create instance
app/alloy.js
app/alloy.js
Titanium.UI.backgroundColor = 'white'; if(ENV_PRODUCTION){ var newrelic = require('ti.newrelic'); newrelic.start(Ti.App.Properties.getString('newrelic-key')); } //alias var AG = Alloy.Globals; AG.slimer = require("ti.cloud.slimer"); AG.currentLanguage = Ti.Locale.getCurrentLanguage(); //extend library AG.moment ...
JavaScript
0
@@ -625,16 +625,74 @@ rue;%0A%7D%0A%0A +AG.loggedInUser = Alloy.Models.instance('loggedInUser');%0A%0A // setti @@ -2962,64 +2962,8 @@ ;%0A%0A%0A -AG.loggedInUser = Alloy.Models.instance('loggedInUser'); %0AAG.
4564144512648cd86eba305d55647c585bb386aa
update docs, etc
backbone.viewOptions.js
backbone.viewOptions.js
/* * Backbone.ViewOptions, v0.1 * Copyright (c)2014 Rotunda Software, LLC. * Distributed under MIT license * http://github.com/rotundasoftware/backbone.viewOptions */ ( function( Backbone ) { Backbone.ViewOptions = {}; Backbone.ViewOptions.add = function( view, initializeOptions ) { view.setOptions = function...
JavaScript
0
@@ -49,9 +49,9 @@ )201 -4 +3 Rot @@ -285,16 +285,17 @@ ons ) %7B%0A +%0A %09%09view.s @@ -343,28 +343,16 @@ arations -PropertyName ) %7B%0A%09%09%09 @@ -453,75 +453,12 @@ ions -PropertyName ) ) - optionDeclarationsPropertyName = %22options%22;%0A%09%09%09var opt @@ -496,38 +496,17 @@ is, +%22 option -De...
5c61d5a947704429783cc49fac3c35229023e82e
remove console.log in market place
project/frontend/src/containers/Marketplace/Marketplace.js
project/frontend/src/containers/Marketplace/Marketplace.js
import React from "react"; import classes from "./Marketplace.module.css"; import Block from "../../components/UI/Block/Block"; import TrendingSearches from "../../components/TrendingSearches/TrendingSearches"; import RecentBuys from "../../components/RecentBuys/RecentBuysList"; import Button from "../../components/UI/...
JavaScript
0.000001
@@ -367,30 +367,8 @@ %3E %7B%0A - console.log(props);%0A re
4a0c1777f8bdc174c3e46b40d0668ed1cdde8026
Add scroll position function calls
WiffleChat.js
WiffleChat.js
if (Meteor.isClient) { Accounts.ui.config({ passwordSignupFields: 'USERNAME_ONLY' }); Template.messages.helpers({ messages: function() { return Messages.find({}, { sort: { time: 1}}); } }); var scrollPosition = function() { $('#messages').scrollTop($('#messages')[0].scrollHei...
JavaScript
0.000001
@@ -878,27 +878,110 @@ -%7D%0A %7D%0A %7D%0A %7D + scrollPosition();%0A %7D%0A %7D%0A %7D%0A %7D;%0A%0A$(document).ready(function()%7B%0A scrollPosition();%0A%7D) ;%0A%0Ai
7f9d4a8aded53f981d798d7f92a0986e7436387a
use objects for buttons list
orca/server/static/js/table.js
orca/server/static/js/table.js
var React = require('react'); var classNames = require('classnames'); var _ = require('lodash'); var dtopts = require('./dtopts.js'); var TableButton = React.createClass({ clickHandler: function(event) { this.props.clickHandler(this.props.view); }, render: function() { var classes = classNames({ "...
JavaScript
0
@@ -517,46 +517,8 @@ ler%7D -%0A data-view=%7Bthis.props.view%7D %3E%0A @@ -749,19 +749,21 @@ text=%7Bb -%5B0%5D +.text %7D%0A @@ -773,19 +773,21 @@ view=%7Bb -%5B1%5D +.view %7D%0A @@ -796,19 +796,21 @@ key=%7Bb -%5B1%5D +.view %7D%0A @@ -822,19 +822,21 @@ ctive=%7Bb -%5B1%5D ...
b1885727af7795ab0e8cdc3b2922bef9f68801fd
Remove item function can now accept string or object as parameter
uploader.js
uploader.js
var Bind = require("github/jillix/bind"); var Events = require("github/jillix/events"); module.exports = function(config) { // get self (the module) var self = this; // config self.config = config; // process config processConfig(config); // call events Events.call(self, config); ...
JavaScript
0
@@ -3144,22 +3144,20 @@ veItem ( -itemId +data ) %7B%0A @@ -3185,32 +3185,69 @@ // -make the request +build data object%0A if (typeof data === 'string') %7B %0A -var + dat @@ -3252,16 +3252,20 @@ ata = %7B%0A + @@ -3276,20 +3276,30 @@ Id: -itemId%0A %7D +data%0A %7D;%0A ...
8be3559d9fc1300c72b7263dcd4e3f3d2a50e47f
Update Code
blog.js
blog.js
var tags = {}; function scrollToBody() { console.log("scrolling to body"); $("html, body").animate({ scrollTop: $("#body").offset().top }, 1000); } $(document).ready(function(){ $(window).resize(); showAllPostPreviews(); var hash = decodeURI(window.location.hash); if (hash) { showPost(hash....
JavaScript
0
@@ -675,29 +675,49 @@ ) %7B%0A - var +%09%09// posts found%0A%09%09$(%22#content%22). html - = +( %22%22 +) ;%0A @@ -1002,16 +1002,36 @@ %7D%0A%0A +%09%09%09%09%09var html = %22%22;%0A %09%09 @@ -2250,16 +2250,56 @@ %3C/div%3E%22; +%0A%0A%09%09%09 $(%22#content%22).append(html); %0A...
b04b56dd3987fe4de9486b467f3edf23668fa9e2
Use `debug` for the warning.
index.js
index.js
'use strict'; var log = require('debug')('node-stringprep') // from unicode/uidna.h var UIDNA_ALLOW_UNASSIGNED = 1 var UIDNA_USE_STD3_RULES = 2 try { var bindings = require('bindings')('node_stringprep.node') } catch (ex) { if (process.title !== 'browser') { console.log( 'Cannot load Stri...
JavaScript
0.000001
@@ -232,68 +232,13 @@ -if (process.title !== 'browser') %7B%0A console. log(%0A - @@ -277,20 +277,16 @@ - require( @@ -321,20 +321,16 @@ - - ' bindin @@ -378,20 +378,16 @@ - '%60npm in @@ -410,19 +410,16 @@ gprep%60'%0A - )%0A @@ -426,19 +4...
367da72a2199fc18142ddfcad441114e2c772584
add "Info" view for tables
orca/server/static/js/table.js
orca/server/static/js/table.js
var React = require('react'); var _ = require('lodash'); var dtopts = require('./dtopts.js'); var ViewButtonGroup = require('./buttons.js'); var funcdef = require('./funcdef.js'); var TablePreview = React.createClass({ componentDidMount: function() { $.getJSON('/tables/' + this.props.table + '/preview') ...
JavaScript
0.000001
@@ -176,16 +176,425 @@ js');%0A%0A%0A +var TableInfo = React.createClass(%7B%0A getInitialState: function() %7B%0A return %7Binfo: ''%7D;%0A %7D,%0A componentDidMount: function() %7B%0A $.get('/tables/' + this.props.table + '/info')%0A .done(function(data) %7B%0A this.setState(%7Binfo: data%7D);%0...
612b4658e1268b54196e804613c8e898ec5fb7fb
Improve logging & handling of framework-path
app/index.js
app/index.js
'use strict'; var latest = require('github-latest'); var path = require('path'); var request = require('request'); var util = require('util'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var EvolveGenerator = yeoman.generators.Base.extend({ initialize: function() { if (this...
JavaScript
0
@@ -8,16 +8,48 @@ rict';%0A%0A +var chalk = require('chalk');%0A var late @@ -316,14 +316,8 @@ init -ialize : fu @@ -1830,16 +1830,318 @@ %7D%0A %7D,%0A%0A + setProjectName: function() %7B%0A this.projectName = %5B%0A chalk.dim('%5B'),%0A chalk.yellow('Evolution'),%0A chalk.white(this.framewo...
c838a300adbbb8b70f891da8487172b00e47544c
Implement TensorflowGraphOperation js
index.js
index.js
import { NativeModules } from 'react-native'; import uuid from 'react-native-uuid'; const { RNTensorflow, RNTensorflowGraph, RNTensorflowGraphOperations } = NativeModules; class TensorflowGraph { constructor(id) { this.id = id } importGraphDef(graphDef) { RNTensorflowGraph.importGraphDef(this.id, grap...
JavaScript
0.000231
@@ -168,16 +168,830 @@ dules;%0A%0A +class TensorflowOperation %7B%0A constructor(id, opName) %7B%0A this.id = id%0A this.opName = opName%0A %7D%0A%0A inputListLength(name) %7B%0A return RNTensorflowGraphOperations.inputListLength(this.id, this.opName, name);%0A %7D%0A%0A name() %7B%0A return RNTensor...
504d5e54ac9dcf9612d98308a30649b76b855689
add closePool for db util
utils/db.js
utils/db.js
const pg = require('pg'); const Pool = require('pg-pool'); const url = require('url'); const dbURL = require('../db/url'); const identityFunction = require('./identity-function'); const postgresParams = url.parse(dbURL); const auth = postgresParams.auth && postgresParams.auth.split(':'); const poolConfig = { user:...
JavaScript
0.000006
@@ -642,24 +642,68 @@ nt(dbURL);%0A%0A +const closePool = () =%3E %7B%0A pool.end();%0A%7D;%0A%0A const query @@ -3487,16 +3487,29 @@ rts = %7B%0A + closePool,%0A create
30fbef97bf686179037df24689990769229b2dd3
make top 5 table not a subclass of applications table
app/assets/javascripts/licensing/views/top5table.js
app/assets/javascripts/licensing/views/top5table.js
define([ 'require', './applicationstable' ], function (require, ApplicationsTable) { var Top5Table = ApplicationsTable.extend({ lazyRender: false, initialize: function (options) { options = options || {}; this.title = options.title || 'Licence'; this.columns[0].ti...
JavaScript
0.001806
@@ -9,76 +9,45 @@ %0A ' -require',%0A './applicationstable'%0A%5D,%0Afunction (require, Applications +extensions/table/table'%0A%5D,%0Afunction ( Tabl @@ -69,28 +69,16 @@ Table = -Applications Table.ex @@ -125,98 +125,99 @@ -initialize: function (options) %7B%0A options = options %7C%7C %7B%7D; +colum...
1818013c35a7c4f50692271214e76e9fa828ec7e
update menu title with count
index.js
index.js
'use strict'; const isFirefoxAndroid = require('is-firefox-android')(); const handleClick = require('./lib/handle-click'); const { PageMod } = require('sdk/page-mod'); const tabs = require('sdk/tabs'); const data = require('sdk/self').data; let button; let menuId; let page; let currentUrl; if (isFirefoxAndroid) { c...
JavaScript
0.000002
@@ -284,16 +284,31 @@ rentUrl; +%0Alet getWindow; %0A%0Aif (is @@ -327,22 +327,16 @@ id) %7B%0A -const getWindo @@ -2029,16 +2029,66 @@ console%0A + const count = Math.floor(Math.random() * 50);%0A if ( @@ -2146,68 +2146,133 @@ -%7D else %7B%0A button.badge = Math.floor(Math.random() * 50) + ...
e019418e0b773a5a9695e8a5c383fed3ffe69063
Normalize capitalization of getFilename() option and rename()
index.js
index.js
/** * Module dependencies */ var Writable = require('stream').Writable; var fsx = require('fs-extra'); var path = require('path'); var _ = require('lodash'); /** * skipper-disk * * @param {Object} options * @return {Object} */ module.exports = function DiskStore (options) { options = options || {}; re...
JavaScript
0.000317
@@ -891,16 +891,244 @@ %7C%7C %7B%7D;%0A +%0A // Normalize %60rename()%60 option:%0A // options.rename() %3C==%3E options.getFilename() %3C==%3E options.getFileName()%0A options.rename = options.rename %7C%7C options.getFileName;%0A options.rename = options.rename %7C%7C options.getFilename;%0A%0A _.defa @@ -1...
43331ada72290076cbf64f99d6f4f2b98cd9cec8
remove the console.log
app/assets/javascripts/master/actions/detail_add.js
app/assets/javascripts/master/actions/detail_add.js
// Detail grid Toolbar Item 'Add' jQuery.event.props.push("cancel"); WulinMaster.actions.DetailAdd = $.extend({}, WulinMaster.actions.BaseAction, { name: 'detail_add', handler: function(e) { var grid = this.getGrid(); this.grid = grid; var self = this; Ui.openDialog(grid, 'wulin_master_new_form',...
JavaScript
0.000011
@@ -1235,33 +1235,8 @@ it%0A - console.log(%22start%22)%0A %7D%0A
a80ffdfe630c8eb285b6c0fee10de1b747762368
Add NetworkManager to topology service js
app/assets/javascripts/services/topology_service.js
app/assets/javascripts/services/topology_service.js
ManageIQ.angular.app.service('topologyService', function() { this.tooltip = function tooltip(d) { var status = [ __("Name: ") + d.item.name, __("Type: ") + d.item.display_kind, __("Status: ") + d.item.status ]; if (d.item.kind == 'Host' || d.item.kind == 'Vm') { status.push(__("P...
JavaScript
0
@@ -1247,24 +1247,104 @@ break;%0A + case %22NetworkManager%22:%0A entity_url = %22ems_network%22;%0A break;%0A case %22 @@ -1854,16 +1854,37 @@ e %22OK%22:%0A + case %22Active%22:%0A ca
186ab9a563e4bb0180adb846672b1dc11bc04f16
Align achievement cards to one grid
js/achievement-viewer.js
js/achievement-viewer.js
var yo = require('yo-yo') var dialogPolyfill = require('dialog-polyfill') var Achievement = require('./achievement') module.exports = AchievementViewer function AchievementViewer (list, parentEl) { var self = this this.achievements = list.map(function (item) { var achievement = new Achievement(item.id, item....
JavaScript
0.000001
@@ -1008,50 +1008,8 @@ ents -, 3).map(function (card) %7B%0A return card%0A%7D )%7D%0A%3C @@ -1162,41 +1162,11 @@ rray -, chunkSize) %7B%0A var grids = %5B%5D +) %7B %0A @@ -1259,199 +1259,8 @@ %7D)%0A -%0A unlockedCards.map(function (n, i) %7B%0A if (i %25 chunkSize === 0) %7B%0A grids.push...
03545516c8ae701f08ac8a5bbfb0dbbdc456a144
Enforce import ordering and formatting
index.js
index.js
module.exports = { "env": { "browser": true }, "extends": [ "airbnb", // These prettier configs are used to disable inherited rules that conflict // with the way prettier will format code. Full info here: // https://github.com/prettier/eslint-config-prettier "prettier", "prettier/flowt...
JavaScript
0
@@ -899,24 +899,250 @@ %22%5D %7D%0A %5D,%0A + %22import/order%22: %5B%0A %22error%22,%0A %7B%0A %22groups%22: %5B%0A %5B%22builtin%22, %22external%22%5D,%0A %22internal%22,%0A %5B%22parent%22, %22sibling%22, %22index%22%5D%0A %5D,%0A %22newlines-between%...
14a1365602e6a48f5d41a40cfa31ae24de52125b
edit user panel: Save changes
js/adminEditViewModel.js
js/adminEditViewModel.js
function pageViewModel(gvm) { // Page specific i18n bindings gvm.title = ko.computed(function(){i18n.setLocale(gvm.lang()); return gvm.app() + ' - ' + i18n.__("AdminPage");}, gvm); gvm.pageHeaderEditUser = ko.computed(function(){i18n.setLocale(gvm.lang()); return i18n.__("UserEditTitle");}, gvm); gvm.e...
JavaScript
0.000001
@@ -2328,24 +2328,12 @@ log( -xhr.responseText +data );%0A
7a6ae30c984218ef0e6c205d269f0107c0cd687c
fix tests: cross-node/browser compatible getprototypeof
index.js
index.js
var exists = require('101/exists') module.exports = directInstanceOf function directInstanceOf (val, Class) { if (!exists(val)) { throw new TypeError('`val` is required') } if (!exists(Class)) { throw new TypeError('`Class` is required') } return val.constructor === Class && Object.getPrototypeO...
JavaScript
0.000001
@@ -295,17 +295,8 @@ &%0A - Object. getP @@ -330,11 +330,263 @@ rototype +%0A%7D%0A%0A// cross-node/browser compatible getPrototypeOf%0Afunction getPrototypeOf (val) %7B%0A var proto%0A try %7B%0A proto = Object.getPrototypeOf(val)%0A %7D catch (e) %7B%0A /* eslint-disable */%0A proto = val.__proto__%...
8849f22fb5d3b313645d31ec4fa64ba6fa6b40be
Update reference to latest path in bower dir
index.js
index.js
/* jshint node: true */ 'use strict'; var defaults = require('lodash/defaults'); var postcss = require('broccoli-postcss'); var flexibility = require('postcss-flexibility'); module.exports = { name: 'ember-cli-flexibility', included: function(app) { this.app = app; if (typeof app.import !== 'func...
JavaScript
0
@@ -727,13 +727,8 @@ ity/ -dist/ flex
d476b2f65bd6eea5d6695ff8cff29cd97aeae093
Simplify JavaScript.
js/bootstrap-checkbox.js
js/bootstrap-checkbox.js
'use strict'; (function(factory) { if (typeof define == 'function' && define.amd) { // AMD. Register as an anonymous module define(['jquery'], factory); } else if (typeof exports == 'object') { // Node/CommonJS module.exports = factory(require('jquery')); } else { // Browser globals f...
JavaScript
0.000015
@@ -2817,26 +2817,23 @@ this));%0A -%0A -if +$ (this.el @@ -2842,62 +2842,14 @@ ent. -id) %7B%0A $('label%5Bfor=%22' + this.element.id + '%22%5D' +labels ).cl @@ -2876,25 +2876,16 @@ this));%0A - %7D%0A%0A $(
2b294e7cc23705d9b7023bce3b9f7105cb97c44b
Remove unuseless code
index.js
index.js
/*global describe, it */ 'use strict'; var express = require('express'); var shorten = require('./shorten'); var app = express(); var port = process.env.PORT; app.get('/shorten/', function (req, res) { var longurl = req.query.longurl; console.log('Request shorten job with longurl', longurl); shorten(longurl,...
JavaScript
0.002506
@@ -1,31 +1,4 @@ - /*global describe, it */%0A%0A 'use
a70116b07f8d25867638108037254c5b0ae3b864
Add pie to supported type
index.js
index.js
'use strict'; import React, { PropTypes, requireNativeComponent, } from 'react-native'; const { processColor } = React; /** A native reference to the chart view */ const CHART_REF = 'chart'; const processData = (chartData) => { return chartData.map(d => { return { ...d, color: processColor(d.color), fil...
JavaScript
0
@@ -940,16 +940,23 @@ ', 'bar' +, 'pie' %5D),%0A%09%09%09%09
2604de2eed880913ea44f2f3c1634396229cbcc5
Add method to access content-element of the sidebar
js/components/sidebar.js
js/components/sidebar.js
(function(app) { 'use strict'; var jCore = require('jcore'); var helper = app.helper || require('../helper.js'); var dom = app.dom || require('../dom.js'); var Sidebar = helper.inherits(function(props) { Sidebar.super_.call(this); this.element = this.prop(props.element); }, jCore.Component); S...
JavaScript
0
@@ -414,16 +414,113 @@ ;%0A %7D;%0A%0A + Sidebar.prototype.contentElement = function() %7B%0A return dom.child(this.element(), 1);%0A %7D;%0A%0A if (ty
0ba81c7a0e7d849c4a06025e93ff1a7a31b3e93c
Add JSX to Cycle
src/cycle.js
src/cycle.js
import {run} from '@cycle/core'; import {h, makeDOMDriver} from '@cycle/dom'; function main(responses) { return { DOM: responses.DOM.get('.field', 'input') .map(ev => ev.target.value) .startWith('') .map(name => h('div', [ h('label.label', 'Name:'), h('input.field', ...
JavaScript
0
@@ -1,16 +1,33 @@ +/** @jsx hJSX */%0A import %7Brun%7D fro @@ -52,16 +52,19 @@ mport %7Bh +JSX , makeDO @@ -262,18 +262,13 @@ -h('div', %5B +%3Cdiv%3E %0A @@ -278,34 +278,46 @@ -h(' +%3C label -. + className=%22 label -', ' +%22%3E Name: -'), +%3C/label%3E %0A @@ -327,55 +327,46 @@ -h('...
a2fbbfb536c65f610446abcea2079bb0d5cb5418
Include regenerator-runtime in web app
app/index.js
app/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import { MemoryRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import { AppContainer } from 'react-hot-loader'; import { I18nextProvider } from 'react-i18next'; import i18n, { setupI18n } from './i18n'; import App from './App'; impo...
JavaScript
0
@@ -1,20 +1,50 @@ +import 'regenerator-runtime';%0A import React from 'r
0c3a7eeed78bd699e00b6f74c6fa063cbaf04ba4
Remove unnecessary console.log
index.js
index.js
var EventEmitter = require('events').EventEmitter var parseString = require('xml2js').parseString var inherits = require('inherits') function Linter (opts) { if (!(this instanceof Linter)) { return new Linter(opts) } EventEmitter.call(this) } inherits(Linter, EventEmitter) Linter.prototype.lint = function...
JavaScript
0.000007
@@ -663,39 +663,8 @@ ) %7B%0A - console.log('lol')%0A
5101bc7e9787dc42aed148a22d50692d84801e96
remove all the 'wrap' exports that were never used
index.js
index.js
/* * index.js * * David Janes * IOTDB.org * 2015-02-09 * * Copyright [2013-2015] [David P. Janes] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
JavaScript
0.000017
@@ -1160,149 +1160,4 @@ %0A%5D;%0A -%0Aexports.iotdb = require(%22iotdb%22);%0Aexports.wrap = function (name, initd) %7B%0A return exports.iotdb.make_wrap(name, exports.bindings, initd);%0A%7D;%0A
aaf99dc0eb67609207d7f54462055ae74821b695
Make the tooltip folow the mouse.
src/components/FloorplanUI.js
src/components/FloorplanUI.js
// @flow import React from 'react'; import styled from 'styled-components'; import type { Tooltip } from '../reducers/types'; const ZoomButtons = styled.div` position: absolute; display: flex; flex-direction: column; justify-content: center; top: 0; left: 0; padding: 8px; `; const ZoomButton = styled....
JavaScript
0.000001
@@ -599,32 +599,29 @@ position: -absolute +fixed ;%0A display: @@ -925,16 +925,72 @@ void,%0A%7D +;%0A%0Atype State = %7B%0A mouseX: number,%0A mouseY: number,%0A%7D; %0A%0Aexport @@ -1058,16 +1058,222 @@ : Props; +%0A state: State;%0A%0A constructor(props: Props) %7B%0A super(props);%0A%0A this.sta...