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
cb02487ef0ff057a3da96ba7ece22069ac85cb40
Add support for node 0.8.x
index.js
index.js
'use strict'; var fs = require('graceful-fs'); var resolvePath = require('path').resolve; var joinPath = require('path').join; var DEFAULT_TEMPLATE_PATH = { PROJECT: _resolveTemplatePath('project-template.xml'), DIR: _resolveTemplatePath('dir-template.xml'), FILE: _resolveTemplatePath('file-template.xml')...
JavaScript
0
@@ -2454,35 +2454,23 @@ atePath, - %7Bencoding: 'ucs2' -%7D );%0A @@ -6729,27 +6729,15 @@ ate, - %7Bencoding: 'ucs2' -%7D );%0A%7D
f13131351fa4eed4112a26d67b56f9a968ac9155
Make lines distinguishable.
index.js
index.js
#! /usr/bin/env node /* eslint camelcase: 0 */ // <-- Per Jupyter message spec /* eslint spaced-comment: 0 */ /***************************************************************************** * Ick is an interactive console for tinkering with the Jupyter message spec * * and a backing kernel. ...
JavaScript
0.00027
@@ -2016,32 +2016,43 @@ rl.setPrompt( +chalk.blue( %60ick$%7BlangInfo.f @@ -2076,24 +2076,25 @@ counter%7D%3E %60) +) ;%0A rl.pro @@ -5428,16 +5428,27 @@ tPrompt( +chalk.blue( %60ick$%7Bla @@ -5484,16 +5484,17 @@ ter%7D%3E %60) +) ;%0A @@ -6092,11 +6092,10 @@ k.gr -een +ay (con
f8ce50e0fa672d3af23028cc449c9f1fa00e70ea
Add s3 bucket
server/config/aws.js
server/config/aws.js
/** * AWS configuration */ import { Endpoint } from 'aws-sdk' export const development = { accessKeyId: 'ACCESS_KEY_ID', secretAccessKey: 'SECRET_ACCESS_KEY', s3ForcePathStyle: true, region: 'us-west-1', endpoint: new Endpoint('http://localhost:10001') } export const test = { accessKeyId: 'ACCESS_KEY_ID...
JavaScript
0.000096
@@ -83,24 +83,55 @@ lopment = %7B%0A + bucket: 'bshed_development',%0A accessKeyI @@ -142,32 +142,32 @@ ACCESS_KEY_ID',%0A - secretAccessKe @@ -311,24 +311,48 @@ st test = %7B%0A + bucket: 'bshed_test',%0A accessKeyI @@ -506,32 +506,32 @@ host:10001')%0A%7D%0A%0A - export const pro @@ -542,16 +542,46 @@...
3e2cd7771c2a722a76fca5fabe2185f6d13f46ce
add `~/Applications` paths on darwin
lib/index.js
lib/index.js
var path = require('path'); var child = require('child_process'); var which = require('which'); var util = require('util'); var fs = require('fs'); var debug = util.debuglog('browser_process'); var browsers = { chrome: { type: 'chrome', paths: { darwin: [ '/Applications/Google\ Chrome.app/Cont...
JavaScript
0
@@ -337,24 +337,130 @@ e%5C Chrome',%0A + path.join(process.env%5B'HOME'%5D, '/Applications/Google%5C Chrome.app/Contents/MacOS/Google%5C Chrome'),%0A %5D,%0A @@ -448,32 +448,32 @@ ome'),%0A %5D,%0A - linux: %5B%0A @@ -938,16 +938,110 @@ omium',%0A + path.join(process.env%5B'HOME...
8003772653f01f57c16160cbddce4c0a3c0a8ffb
Add isPrimitive to index
lib/index.js
lib/index.js
// Export all modules. // We could as well scan file system but it won't work in browser environment. 'use strict'; module.exports = { global: require('./global'), reserved: require('./reserved'), Array: require('./Array'), Date: require('./Date'), Error: require('./Error'), Function: require('./Fu...
JavaScript
0.000144
@@ -138,16 +138,19 @@ %09global: + requi @@ -165,16 +165,57 @@ obal'),%0A +%09isPrimitive: require('./is-primitive'),%0A %09reserve @@ -216,16 +216,19 @@ eserved: + require @@ -251,16 +251,19 @@ %0A%09Array: + requ @@ -285,24 +285,27 @@ %0A%09Date: + require('./D @@ -318,24 +318,27 @@...
d4af65ae7a3c7228ab96396522fe8c21f2f67331
Remove '/r/' from reddit board list
src/server/services/redditParser.js
src/server/services/redditParser.js
import fs from 'fs' export function parseBoardList(boardList) { // console.log(JSON.stringify(boardList)) try { boardList.data.children } catch (e) { log.error(`Bad reddit data returned => ${e}`) } const boards = boardList.data.children.map(board => board.data) // thanks, reddit! ...
JavaScript
0.000076
@@ -408,37 +408,8 @@ %5B0%5D%0A - console.log(boardID)%0A @@ -472,14 +472,20 @@ n: %60 +/ $%7B -url%7D +boardID%7D/ - $
a72a796724e0c8e483101f6ce28d8a2fde25e84c
Improve DeeToo start/shutdown
index.js
index.js
var Dialects = require('./lib/dialects') , express = require('express') , _ = require('underscore') , async = require('async') , Q = require('./lib/Q') , LOG = require('book').default() , WWW = express.createServer(express.logger()) , CONF = require('./config_default') , _asyncNull = function(f){f()} ...
JavaScript
0
@@ -101,37 +101,8 @@ e')%0A - , async = require('async')%0A , @@ -259,51 +259,12 @@ , _ -asyncNull = function(f)%7Bf()%7D%0A %0A , __liste +_run ning @@ -294,30 +294,8 @@ alse -%0A %0A , _preprocs = %7B%7D %0A%0A @@ -942,16 +942,19 @@ this)%0A%7D%0A + %0A //~~%0A%0A%0A%0A @@ -2366,24 +2366,49 @@ fo...
d83ac3d995ec22305ead38b606abb0211d71c798
版本0.1.1
index.js
index.js
/** * Created by zhouzhongyu on 2017/5/24. */ var crypto = require('crypto'); var fs = require('fs'); var config = require('./qn-config.json'); var Q = require('q'); (function(){ 'use static'; var _rootPath = "";//文件根目录 var _getFileMd5Code = function(file,_cb){ //从文件创建一个可读流 var stream = fs...
JavaScript
0.000001
@@ -161,16 +161,44 @@ e('q');%0A +var path = require('path');%0A (functio @@ -244,10 +244,23 @@ h = -%22%22 +config.rootPath ;//%E6%96%87 @@ -372,28 +372,16 @@ dStream( -_rootPath + file);%0A @@ -985,24 +985,119 @@ ,fileName)%7B%0A + console.log(relFile);%0A console.log(oldFileName);%0A c...
6401801d368361e7605103167661767705798d88
add exported update() for project
server/db/project.js
server/db/project.js
import r from '../../db/connect' import {customQueryError} from '../../server/db/errors' export const projectsTable = r.table('projects') export function getProjectById(id) { return projectsTable.get(id) } export function getProjectsForChapter(chapterId) { return projectsTable.getAll(chapterId, {index: 'chapterI...
JavaScript
0
@@ -81,16 +81,67 @@ /errors' +%0Aimport %7BupdateInTable%7D from '../../server/db/util' %0A%0Aexport @@ -717,12 +717,114 @@ cle')%0A )%0A%7D%0A +%0Aexport function update(project, options) %7B%0A return updateInTable(project, projectsTable, options)%0A%7D%0A
8c4711ae76365994511e293f62e81229af74ef83
Set function
index.js
index.js
var TelegramBot = require('node-telegram-bot-api'); var bot = new TelegramBot(process.env.CHAINTACT_BOT_TOKEN, {polling: true}); var mongoose = require('mongoose'); var dbUrl = "mongodb://chaintact_db/chaintactdb"; mongoose.connect(dbUrl); var db = mongoose.connection; db.on('error', console.error.bind(console, 'conne...
JavaScript
0.000164
@@ -1754,16 +1754,44 @@ ssage;%0A%0A + console.log(commandArr);%0A%0A if(com
dedae7f8c669251859d73ea024ec72258a22d733
fix html-minification issues
generators/client/templates/angular/webpack/_webpack.common.js
generators/client/templates/angular/webpack/_webpack.common.js
const webpack = require('webpack'); const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const StringReplacePlugin = require('string-replace-webpack-plugin'); const AddAssetHtmlP...
JavaScript
0.00013
@@ -1580,32 +1580,304 @@ 'html-loader',%0A + options: %7B%0A minimize: true,%0A caseSensitive: true,%0A removeAttributeQuotes:false,%0A minifyJS:false,%0A minifyCSS:false%0A ...
da81adc762227e345a8fe4448194a3881e965703
format code
index.js
index.js
var request = require('request'); var Handlebars = require('handlebars'); var msg = { url: Handlebars.compile("https://badge.fury.io/{{type}}/{{name}}.svg"), markdown: Handlebars.compile("[![npm version](https://badge.fury.io/{{type}}/{{name}}.svg)](http://badge.fury.io/{{type}}/{{name}})"), html:Handlebars.compile...
JavaScript
0.000061
@@ -86,16 +86,19 @@ %7B%0A%09url: +%09%09%09 Handleba @@ -156,16 +156,16 @@ .svg%22),%0A - %09markdow @@ -298,16 +298,19 @@ ,%0A%09html: + %09%09 Handleba @@ -472,16 +472,18 @@ textile: + %09 Handleba @@ -588,16 +588,19 @@ ,%0A%09rdoc: + %09%09 Handleba @@ -742,17 +742,18 @@ sciidoc: -h + H andlebar @@ -88...
13b27dc23dc762e8275930a4e11099b4e317ad65
fix graph traversal
lib/index.js
lib/index.js
'use strict' const Logger = require('./util/logger') const logger = Logger.global.chain('[jirascope]') /** * Provides an understanding of jira issues and their network. * * @param {Object} jiraClient - The client to use to talk to JIRA * @param {Object?} dataStore - The data store to use * @param {Object} option...
JavaScript
0.000013
@@ -3730,16 +3730,85 @@ ues for%0A + stack.unshift(link.dstKey) // follow both directions%0A @@ -3931,53 +3931,73 @@ ink) -%0A stack.unshift(link.dstKey) + // but only add the inward to the graph edges for neatness / DAG %0A
eb7e9d8b8660f6daa5f762fdc867e8a637103db2
Apply extra config from the JS console
demo/asset_section.js
demo/asset_section.js
/** * @license * Copyright 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
JavaScript
0.000007
@@ -5355,24 +5355,147 @@ e(config);%0A%0A + // TODO: document demo app debugging features%0A if (window.debugConfig) %7B%0A player.configure(window.debugConfig);%0A %7D%0A%0A return ass
65d708da7718e229046104bdf5844ff9802271c0
fix crash on incorrect username?
server/auth/local.js
server/auth/local.js
const passport = require('passport'); const LocalStrategy = require('passport-local').Strategy; const LocalAPIKeyStrategy = require('passport-localapikey-update').Strategy; var logger = require('../log'); var nconf = require('nconf'); var conf_file = './config/config.json'; nconf.file({file: conf_file}); const init = ...
JavaScript
0
@@ -596,28 +596,61 @@ rs') -.where(%7B username %7D) +%0A .where('username' , '=' , username)%0A .fir @@ -702,16 +702,34 @@ (!user) + %7B%0A return @@ -739,32 +739,46 @@ e(null, false);%0A + %7D%0A if ( @@ -985,16 +985,29 @@ r) =%3E %7B +%0A r...
117e84eba6810df60661177e3a7b8f1b40bdea60
Fix double-counted tests
lib/index.js
lib/index.js
const connect = require('connect') const http = require('http') const path = require('path') const url = require('url') const fs = require('fs') const serveStatic = require('serve-static') const WebSocket = require('ws') const svelte = require('svelte') const Chrome = require('./chrome') require('sugar').extend() let ...
JavaScript
0
@@ -2540,16 +2540,173 @@ l, ws))%0A + let results = workers.reduce((all, w) =%3E all.concat(w.completed), %5B%5D)%0A wsSend(head, %7Bresults%7D) // when the head connects, send it the current results%0A %7D%0A%7D)%0A%0A @@ -2769,17 +2769,17 @@ )%0A%0A // -i +I f our gr @@ -2785,15 +2785,8 @@ rep -hasn't...
22646089356b4b31ed963964407652f0ad6e080e
fix $ and $$ declaration :D
index.js
index.js
//(function() { function $(id) { return document.getElementById(id) } function $$(cls) { return document.getElementsByClassName(cls) } // show the selected book's details in a modal function hide_detail() { $('detail').style.opacity = 0 $('detail').style.display = 'none' } function show_detail(id) { $(...
JavaScript
0.000002
@@ -14,89 +14,56 @@ %7B%0A%0A -function $(id) %7B return document.getElementById(id) %7D%0Afunction $$(cls) %7B return +$ = document.getElementById.bind(document)%0A$$ = doc @@ -94,15 +94,23 @@ Name -(cls) %7D +.bind(document) %0A%0A//
2db6bd648add5e2d50c0791d8ea2b54b72083601
update PLYReader sample to support texture file loading
Sources/IO/Geometry/PLYReader/example/index.js
Sources/IO/Geometry/PLYReader/example/index.js
import 'vtk.js/Sources/favicon'; import vtkActor from 'vtk.js/Sources/Rendering/Core/Actor'; import vtkFullScreenRenderWindow from 'vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow'; import vtkMapper from 'vtk.js/Sources/Rendering/Core/Mapper'; import vtkPLYReader from 'vtk.js/Sources/IO/Geometry/PLYReader'; // -...
JavaScript
0
@@ -307,16 +307,80 @@ Reader'; +%0Aimport vtkTexture from 'vtk.js/Sources/Rendering/Core/Texture'; %0A%0A// --- @@ -546,24 +546,70 @@ ----------%0A%0A +let renderer = null;%0Alet renderWindow = null;%0A const reader @@ -903,16 +903,197 @@ ------%0A%0A +function refresh() %7B%0A if (renderer && renderWindow) %7B%0...
bb5b4f4dab78ded2ae193d4fa611880b6ff2f858
Update convert_to_morse_code_MOD.js (#527)
actions/convert_to_morse_code_MOD.js
actions/convert_to_morse_code_MOD.js
module.exports = { name: 'Morse Code', section: 'Other Stuff.', subtitle (data) { return 'Convert To Morse Code' }, variableStorage (data, varType) { if (parseInt(data.storage) !== varType) return return ([data.varName, 'Morse Code']) }, fields: ['input', 'info', 'storage', 'varName'], h...
JavaScript
0
@@ -57,17 +57,16 @@ er Stuff -. ',%0A%0A su
3279f228a688b6d3464d95cf28e9d3bfbcee474a
Add event handler for paste events
plugins/autoid/plugin.js
plugins/autoid/plugin.js
'use strict'; (function () { var editorHasFocus = false; var commandIsActive = false; var EVENT_NAMES = { ALL_IDS_COMPLETE: 'allIdsComplete', ID_ADDED: 'idAdded' }; CKEDITOR.plugins.add('autoid', { init: function (editor) { var self = this; editor.addFeature({ allowedContent...
JavaScript
0.000001
@@ -960,24 +960,82 @@ wHeading);%0A%0A + editor.on('paste', checkPastedContentForHeadings);%0A%0A functi
849887b35883c34716cc85f4c0dd5309b909b34a
use "undefined" as default value
index.js
index.js
#!/usr/bin/env node const argv = require('yargs') // global config option .option('config', { alias: 'c', describe: 'Define a path to a project config file.', default: './config.json' }) // infrastructure config name .option('infrastructure', { alias: 'i', describe: 'Get a infrastructure config f...
JavaScript
0.000031
@@ -1004,24 +1004,16 @@ rgv._%5B1%5D - %7C%7C true ,%0A
7c5dd6f94ff5675dc6e2a1ec79dad0c475fc4970
fix redirection bug
actions/users/get_preapproval_key.js
actions/users/get_preapproval_key.js
import { get } from '../../lib/api'; import origin from '../../lib/origin'; import * as constants from '../../constants/users'; /** * Get approval key for paypal */ export default (userid, options={}) => { // Redirect to homepage that has will confirmed the preapproval key const callback = `${origin}app/?approv...
JavaScript
0.000001
@@ -302,16 +302,17 @@ %7Borigin%7D +/ app/?app
54af4a44b39dd541fba84dd0b5e93446b8553a63
remove debugging code
batch.js
batch.js
'use strict'; const uuid = require('uuid'); const _ = require('lodash'); const url = require('url'); const qs = require('querystring'); const mime = require('mimelib'); const Odata = require('./odata'); const util = require('util'); const Expression = require('./expression'); var Batch = function(parent) { this.par...
JavaScript
0.027567
@@ -423,28 +423,8 @@ %7D;%0A%0A -console.log(Odata);%0A util
8b8e5d36607831f4d85a7ad051d078d7ae391d67
Remove vCode argument from insertCharacter method
server/characters.js
server/characters.js
const eveonlinejs = Meteor.npmRequire('eveonlinejs'); Meteor.methods({ 'addKeyCharacters': function (charactersObj, keyID, vCode) { let runSyncResult = Async.runSync(function (done) { for (let charID in charactersObj) { Meteor.call('insertCharacter', keyID, vCode, charID); } Meteor.call...
JavaScript
0.000001
@@ -540,31 +540,24 @@ tion (keyID, - vCode, charID) %7B%0A @@ -551,24 +551,79 @@ , charID) %7B%0A + const vCode = Keys.findOne(%7BkeyID: keyID%7D).vCode;%0A%0A let runS
294db02bd8d199909217053f344381521937edaa
Change dialog to work w/ onclick overlay
src/app/containers/home/styles.js
src/app/containers/home/styles.js
import theme from '../../theme/'; export default { container: Object.assign({}, { display: 'flex', flexDirection: 'column', height: 'inherit', width: 'inherit', background: theme.colors.black }, theme.typography.base), navbar: { backgroundColor: theme.colors.primary }, navbar__inner: ...
JavaScript
0
@@ -739,24 +739,78 @@ content: %7B%0A + position: 'relative',%0A overflow: 'hidden',%0A displa @@ -812,32 +812,32 @@ isplay: 'flex',%0A - alignItems @@ -938,16 +938,57 @@ : 'none' +,%0A height: '50%25',%0A width: '50%25' %0A %7D%0A @@ -1221,55 +1221,8 @@ %25',%0A - maxHe...
17df926ba20d47f6d8e72e1c2dcc63a2ee07c288
Update spec
test/gibct/containers/LandingPage.unit.spec.js
test/gibct/containers/LandingPage.unit.spec.js
import React from 'react'; import { expect } from 'chai'; import SkinDeep from 'skin-deep'; import sinon from 'sinon'; import createCommonStore from '../../../src/js/common/store'; import { LandingPage } from '../../../src/js/gi/containers/LandingPage'; import reducer from '../../../src/js/gi/reducers'; const default...
JavaScript
0
@@ -739,16 +739,59 @@ uery: %7B%7D + %7D,%0A autocomplete: %7B searchTerm: 'foo' %7D%0A %7D
dd929cc972849e515d7fc7eed2af8945f1bb2349
fix #195
src/data-conversion/LWjson2htmlSlides.js
src/data-conversion/LWjson2htmlSlides.js
var LWjson2htmlSlides = function (json) { "use strict"; var slides = []; var slideNo = 1; json.forEach(function(element){ for(var key in element){ if(key == "picture"){ if (element.picture) { slideNo += 1; ...
JavaScript
0
@@ -1,12 +1,159 @@ +/* LWjson2htmlSlides%0A%0AInput: a sequence of data objects describing words%0A%0AOutput: HTML code for presenting slides to be used in a template%0A%0A*/ %0A%0A%0A%0A var LWjson2h @@ -248,17 +248,18 @@ No = 1;%0A - +%0A%0A %0A @@ -263,199 +263,62 @@ -json.forEach(function(element)%...
d31538c93827da564b16feb92fd2f3f4edc3219d
Change 'const' to 'var' in event_bindings.js for ECMAScript compatibility reasons. BUG=None TEST=None
chrome/renderer/resources/event_bindings.js
chrome/renderer/resources/event_bindings.js
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var chrome = chrome || {}; (function () { native function GetChromeHidden(); native function AttachEvent(eventName); native function DetachEvent...
JavaScript
0.000201
@@ -367,18 +367,16 @@ dden();%0A - %0A // Lo @@ -528,21 +528,19 @@ ) %7B%0A -const +var $Object @@ -554,21 +554,19 @@ ct;%0A -const +var $Array @@ -574,29 +574,27 @@ Array;%0A -const +var $jsonString @@ -623,13 +623,11 @@ -const +var $js
a34ebb56b761f3b149507e7e6ee47c1ae90f6b07
Fix identifying
addon/components/layers/kml-layer.js
addon/components/layers/kml-layer.js
/** @module ember-flexberry-gis */ import Ember from 'ember'; import BaseLayer from '../base-layer'; /** Kml layer component for leaflet map. @class KmlLayerComponent @extends BaseLayerComponent */ export default BaseLayer.extend({ /** Reference to a created KML layer. */ _kmlLayer: null, /** ...
JavaScript
0.025536
@@ -2591,24 +2591,23 @@ let -geoLayer +feature = layer @@ -2681,25 +2681,60 @@ ive( -geoLayer.geometry +feature.geometry);%0A let l = L.geoJSON(feature );%0A%0A @@ -2878,24 +2878,60 @@ bounds))) %7B%0A + feature.leafletLayer = l;%0A fe @@ -2948,22 +2948,16 @@ hObject( -layer. fea...
50691db60c9b0ddbe1ced174aed419b10fc4e8f3
use `http` on the fallback
index.js
index.js
'use strict'; module.exports = require('rc')('npm').registry || 'http://registry.npmjs.org/';
JavaScript
0.000001
@@ -62,16 +62,17 @@ %7C%7C 'http +s ://regis
5d69166a895151833bc0f2ebce9c8bd34afa13a3
Fix cookie session transport signing
js/server/modules/@arangodb/foxx/sessions/transports/cookie.js
js/server/modules/@arangodb/foxx/sessions/transports/cookie.js
'use strict'; //////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2015 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may ob...
JavaScript
0
@@ -1048,22 +1048,43 @@ const -signed +ttl = cfg.ttl;%0A const opts = cfg.s @@ -1227,34 +1227,12 @@ me, -signed && %7Bsigned: signed%7D +opts );%0A @@ -1297,62 +1297,38 @@ ue, -%7B%0A ttl: cfg.ttl,%0A signed: signed%0A %7D +Object.assign(%7B%7D, opts, %7Bttl%7D) );%0A
945f977bbca42665f20d3e499b9eeb577bc3409d
add error message around etcd read errors
lib/index.js
lib/index.js
var async = require('async') , assert = require('assert') , host = process.env.COREOS_HOST || '127.0.0.1' , etcd = new (require('node-etcd'))(host) , winston = require('winston') , util = require('util') , kafka = require('kafka-node'); // Accepts an array of strings as configuration keys. //...
JavaScript
0
@@ -989,16 +989,118 @@ (error) +%7B%0A winston.error('auth0-coreos-tools: unable to read etcd key', path + key, error); %0A @@ -1135,16 +1135,34 @@ (error); +%0A %7D %0A%0A @@ -1593,32 +1593,133 @@ ction (error) %7B%0A + winston.error('auth0-coreos...
1e6c6e75919e158532e06ecc3704c410a9324ffe
Remove the no-use-before-define rule
basic.js
basic.js
module.exports = { extends: 'eslint:recommended', parserOptions: { ecmaVersion: 6, }, env: { browser: true, commonjs: true, es6: true, }, rules: { // Possible Errors: 'no-cond-assign': [2, 'always'], 'no-console': 1, 'no-constant-condition': 2, 'no-dupe-args': 2, 'no...
JavaScript
0.999254
@@ -2250,61 +2250,8 @@ : 1, -%0A 'no-use-before-define': %5B2, %7Bfunctions: false%7D%5D, %0A%0A
403e7aae39d9f3bd24a48a7c71cff059e829efc8
Add jsdocs for projection-attributes util
addon/utils/projection-attributes.js
addon/utils/projection-attributes.js
import Ember from 'ember'; import Projection from './projection'; export default { attr: function(caption, options) { let attr = createAttr('attr', caption, options); return attr; }, belongsTo: function(modelName, caption, attributes, options) { let attr = createAttr('belongsTo', caption, options); ...
JavaScript
0
@@ -64,376 +64,1566 @@ ';%0A%0A -export default %7B%0A attr: function(caption, options) %7B%0A let attr = createAttr('attr', caption, options);%0A return attr;%0A %7D,%0A%0A belongsTo: function(modelName, caption, attributes, options) %7B%0A let attr = createAttr('belongsTo', caption, options);%0A let p...
96ec4043589d227297aa144a3cb409e604f9369c
Move title to top for UML structure
src/app/js/menu/structuresMenu.js
src/app/js/menu/structuresMenu.js
/** * Contains the logic for connecting the changing structure with the website. * * @param graph required for calling a refresh after a structure change * @returns {{}} */ module.exports = function (graph) { var structuresMenu = {}, DEFAULT_VIEW = 'circle', allStructures, structure = ...
JavaScript
0
@@ -1928,269 +1928,1122 @@ -if (structure === 'rect') %7B%0A element.property('outerHTML', element.property('outerHTML').replace(/circle/g, 'rect'));%0A %7D else %7B%0A element.property('outerHTML', element.property('outerHTML').replace(/rect/g, 'circle'));%0A %7D%0A %7D) +var...
c44eafda218f98112ddc12f10de2b585d0e8e0f6
insert candles in batches
plugins/sqlite/writer.js
plugins/sqlite/writer.js
var _ = require('lodash'); var config = require('../../core/util.js').getConfig(); var handle = require('./handle'); var sqliteUtil = require('./util'); var Store = function(done, pluginMeta) { _.bindAll(this); this.done = done; this.db = handle; this.db.serialize(this.upsertTables); } Store.prototype.upser...
JavaScript
0
@@ -288,16 +288,36 @@ Tables); +%0A%0A this.cache = %5B%5D; %0A%7D%0A%0AStor @@ -975,25 +975,36 @@ %0A%7D%0A%0A -var process +Store.prototype.write Candle +s = f @@ -1015,23 +1015,52 @@ ion( -candle, done) %7B +) %7B%0A if(_.isEmpty(this.cache))%0A return;%0A %0A v @@ -1143,16 +1143,20 @@ ndles')%7D +%0A...
bfce721d07cd0537a74427487d7d46ffb331b812
Remove unrelated immutable.js code from generateTreeFromDatabase
src/decoding/generateTreeFromDatabase.js
src/decoding/generateTreeFromDatabase.js
export default function generateTreeFromDatabase(db, key = 0) { const rec = sub => { if (Array.isArray(sub)) { return new List(sub.map(x => rec(db[x]))) } else if(typeof sub === 'object') { const res = {} for (let key in sub) { res[key] = rec(db[sub[key]]) } return new Ma...
JavaScript
0.000055
@@ -127,17 +127,8 @@ urn -new List( sub. @@ -147,17 +147,16 @@ (db%5Bx%5D)) -) %0A %7D e @@ -301,20 +301,11 @@ urn -new Map( res -) %0A
9ba5f3c200c5470cf9d4f123af09b9be9aba5636
simplify connection error handling
lib/dialects/sqlite/connection-manager.js
lib/dialects/sqlite/connection-manager.js
'use strict'; const AbstractConnectionManager = require('../abstract/connection-manager'); const Promise = require('../../promise'); const logger = require('../../utils/logger'); const debug = logger.getLogger().debugContext('connection:sqlite'); const dataTypes = require('../../data-types').sqlite; const sequelizeErr...
JavaScript
0.000002
@@ -2275,58 +2275,8 @@ err) - %7B%0A if (err.code === 'SQLITE_CANTOPEN') ret @@ -2333,89 +2333,8 @@ ));%0A - return reject(new sequelizeErrors.ConnectionError(err));%0A %7D%0A
73d5438052a74e7a8dd9d42864036db9aca29470
fix issue 5585 for scatter and scattergl
src/traces/scatter/format_labels.js
src/traces/scatter/format_labels.js
'use strict'; var Axes = require('../../plots/cartesian/axes'); module.exports = function formatLabels(cdi, trace, fullLayout) { var labels = {}; var mockGd = {_fullLayout: fullLayout}; var xa = Axes.getFromTrace(mockGd, trace, 'x'); var ya = Axes.getFromTrace(mockGd, trace, 'y'); labels.xLabel ...
JavaScript
0
@@ -295,16 +295,138 @@ 'y');%0A%0A + var x = cdi.x;%0A var y = cdi.y;%0A%0A if(xa.type === 'log') x = xa.c2r(x);%0A if(ya.type === 'log') y = ya.c2r(y);%0A%0A labe @@ -455,20 +455,16 @@ ext(xa, -cdi. x, true) @@ -508,20 +508,16 @@ ext(ya, -cdi. y, true)
eeb4f16fcf9de8c82d4d1e9321decdb8188d6188
Add missing Content-Transfer-Encoding header
batch.js
batch.js
'use strict'; const uuid = require('uuid'); const _ = require('lodash'); const url = require('url'); const qs = require('querystring'); const mime = require('mimelib'); const Odata = require('./odata'); const util = require('util'); const Expression = require('./expression'); var Batch = function(parent) { this.par...
JavaScript
0.000437
@@ -1564,24 +1564,60 @@ search;%0A %7D%0A + this.config = this.parent.config;%0A this.url = @@ -2475,24 +2475,76 @@ ion/http%5Cr%5Cn +';%0A msg += 'Content-Transfer-Encoding: binary%5Cr%5Cn %5Cr%5Cn';%0A m
fb4e9a80b7a4d33f86c6729c554bfe6235243fb6
Tidy in bench js
bench.js
bench.js
var ArrayPortal = require('./dist/array-portal').default; var TestArr = ['a','b','c']; suite('Swap arrays', function() { bench('ArrayPortal-Package', function() { ArrayPortal({ caller: { id: 'a' }, input: [{ id: 'a' }], output: [] }) }); });
JavaScript
0.000001
@@ -92,14 +92,16 @@ te(' -Swap a +Portal A rray
3931083fca8a4ad351c526069c9c9167fd645e84
Fix left arrow behavior when moving to the 0th instance or snapshot.
src/tracks/object_instance_track.js
src/tracks/object_instance_track.js
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; base.requireStylesheet('tracks.object_instance_track'); base.require('tracks.canvas_based_track'); base.require('sorted_array_utils');...
JavaScript
0.000342
@@ -6862,32 +6862,33 @@ if (newIndex %3E += 0 && newIndex %3C @@ -7233,16 +7233,17 @@ wIndex %3E += 0 && ne
07514e2d70cefe787b63f1b0f8177069fe60910f
Remove unused dependency
lib/assets/javascripts/cartodb3/data/layer-definition-model.js
lib/assets/javascripts/cartodb3/data/layer-definition-model.js
var cdb = require('cartodb.js'); var _ = require('underscore'); var syncAbort = require('./backbone/sync-abort'); var StyleDefinitionModel = require('../editor/style/style-definition-model'); var nodeIds = require('./analysis-definition-node-ids.js'); var camshaftReference = require('./camshaft-reference'); var layerTy...
JavaScript
0.000002
@@ -2101,46 +2101,8 @@ true -,%0A layerDefinitionModel: this %0A
727c4dd8ec05b1bc2b1200b1d83a57ecd16003a0
remove unnecessary check
lib/index.js
lib/index.js
var clarinet = require('clarinet'); var stream = require('stream'); var util = require('util'); var quoteRegex = function(str) { return (str+'').replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); }; var parsePath = function(path) { var regex = '', acc = ''; var end = function() { regex += quoteRegex(acc); acc = ''; ...
JavaScript
0.000006
@@ -2472,27 +2472,8 @@ %5D;%0A%0A -%09if (!top) return%0A%0A %09if
6a2cd3346c771b7af70a67ddf57244915f7d0820
Add 'resetAfterThreshold' option
index.js
index.js
// Exports a train singleton var db = require('./backend/db.js'); var Q = require('q'); var io = require('../../server.js'); var extend = require('extend'); function Train(options) { var self = this; // These properties are transient and are not persisted in the DB this.elapsedTime = 0; this.remaining...
JavaScript
0.999771
@@ -2246,16 +2246,132 @@ is added +%0A this.options.resetAfterThreshold = false; // If 'true', hitting the threshold causes the train to reset to zero %0A%0A // @@ -7167,24 +7167,45 @@ nction () %7B%0A + var self = this;%0A var defe @@ -7334,16 +7334,144 @@ eshold;%0A + if (train.isHype && ...
5dc045a07b3398db52e2a9a87ea52c2da2f85b95
Fix #1: An expression using `this` is not constant
index.js
index.js
'use strict' var uglify = require('uglify-js') var lastSRC = '(null)' var lastRes = true var lastConstants = undefined; module.exports = isConstant function isConstant(src, constants) { src = '(' + src + ')' if (lastSRC === src && lastConstants === constants) return lastRes lastSRC = src try { return las...
JavaScript
0.998393
@@ -1034,16 +1034,330 @@ %0A %7D)%0A + %0A // Walk the AST tree in search for %60this%60%0A // Add a fake %22this%22 global when found%0A var has_this = false;%0A var walker = new uglify.TreeWalker(function(node) %7B%0A if (node instanceof uglify.AST_This) %7B%0A has_this = true;%0A %7D%0A %7D);%0A...
a0a6852b2263b3356a8797969a596b570831e16c
Replace console.log by vorpal.log Add autocompletion on `open` command
lib/index.js
lib/index.js
'use strict'; /** * Module dependencies */ const colors = require('colors'); const vorpal = require('vorpal')(); const serialPort = require('serialport'); const SerialPort = serialPort.SerialPort; const DisplayType = { HEX : 1, ASCII : 2 }; let connection = null; let log = true; le...
JavaScript
0.000001
@@ -948,31 +948,30 @@ -console +vorpal .log(port.co @@ -1254,15 +1254,14 @@ -console +vorpal .log @@ -1400,32 +1400,32 @@ %7D);%0A%0Avorpal%0A - .command('op @@ -1518,16 +1518,274 @@ speed')%0A + .autocompletion(function(text, iteration, cb) %7B%0A serialPort.list((err, ports)...
79825f395394c970a2e3f8c085fd0fbef00f8798
trim all gff objects
lib/index.js
lib/index.js
/* * biojs-io-gff * https://github.com/greenify/biojs-io-gff * * Copyright (c) 2014 greenify * Licensed under the Apache 2 license. */ var parser = require("biojs-io-parser"); var gff = function() {}; parser.mixin(gff); module.exports = gff; var utils = require("./utils"); var jalview = require("./jalview"); ...
JavaScript
0.000001
@@ -2800,24 +2800,137 @@ tion(key) %7B%0A + if (typeof(tLine%5Bkey%5D) === %22string%22) %7B%0A tLine%5Bkey%5D = tLine%5Bkey%5D.trim(); // triming is important%0A %7D%0A if (tLin
a8ed64d0e8a841e9b375f9369460d7795cd743b5
Remove duplicate error handler.
index.js
index.js
var Resource = require('deployd/lib/resource'), querystring = require('querystring'), util = require('util'), url = require('url'); function Proxy(name, options) { Resource.apply(this, arguments); } util.inherits(Proxy, Resource); module.exports = Proxy; Proxy.prototype.clientGeneration = true; P...
JavaScript
0
@@ -1812,91 +1812,8 @@ );%0A%0A - proxy_request.on('error', function (err) %7B%0A console.warn(err);%0A %7D);%0A%0A
d9b3874b2218f72538fcce75ff95d8fe11cd3d3f
Build debug
lib/index.js
lib/index.js
require('console.mute'); var chalk = require('chalk'); var command = process.argv[2], pluginType = process.argv[3], pluginName = process.argv[4], directory = process.argv.slice(5), debug = (process.argv.indexOf('--debug') !== -1); exports.koappCli = koappCli; function koappCli() { if(...
JavaScript
0.000015
@@ -308,16 +308,45 @@ Cli() %7B%0A + if(!debug) console.mute();%0A if(com
f817746135169ad2e856db59cdc498e376b0fa04
Fix data validation
lib/index.js
lib/index.js
'use strict' // Load modules const Wreck = require('wreck') const Boom = require('boom') const Hoek = require('hoek') // Declare internals const internals = {} exports.register = (server, options, next) => { server.register({ register: require ('bucker'), options: options.logger || {} }, (err) => { ...
JavaScript
0.000001
@@ -695,32 +695,40 @@ if (data + && data .object === 'pag
9194447b9771b8676eb276a89cce4545a12d74e2
Fix document definitions
model/business-process-new/utils/define-requirement-uploads.js
model/business-process-new/utils/define-requirement-uploads.js
// Defines certificate documents on business process certificates map 'use strict'; var ensureArray = require('es5-ext/array/valid-array') , forEach = require('es5-ext/object/for-each') , ensureObject = require('es5-ext/object/valid-object') , ensureStringifiable =...
JavaScript
0.000086
@@ -755,16 +755,25 @@ iqueKey: + %7B value: functio @@ -801,16 +801,18 @@ ner.key; + %7D %7D,%0A%09lab @@ -814,16 +814,25 @@ %0A%09label: + %7B value: functio @@ -1186,16 +1186,18 @@ abel;%0A%09%7D + %7D ,%0A%09legen @@ -1198,16 +1198,25 @@ %09legend: + %7B value: functio @@ -1571,18 +1571,20 @@ legend;%...
95942c7e8d28203fc3e83f02bbbf694c1497de7e
Fix #15. Add support for custom middlewares.
lib/index.js
lib/index.js
"use strict"; const fileTree = require("fs-file-tree") , path = require("path") , forEach = require("iterate-object") , typpy = require("typpy") , upath = require("upath") , httpMethods = require("methods") ; /** * @name bloggify:init * @function * @param {Object} config * * - `routes_di...
JavaScript
0
@@ -2438,24 +2438,448 @@ es(meth)) %7B%0A + switch (meth) %7B%0A case %22before%22:%0A case %22after%22:%0A case %22use%22:%0A ...
641c07c56e854e1ce06321f4727b049ab3015e67
Improve random picks
index.js
index.js
const urlParse = require('url').parse; const micro = require('micro'); const fetch = require('node-fetch'); const hostedGitInfo = require('hosted-git-info'); const pkg = require('./package.json'); const pickRandom = (arr) => arr[Math.floor(Math.random() * arr.length)]; const POPULAR = ['lodash', 'request', 'express',...
JavaScript
0.00002
@@ -201,559 +201,154 @@ nst -pickRandom = (arr) =%3E arr%5BMath.floor(Math.random() * arr.length)%5D;%0A%0Aconst POPULAR = %5B'lodash', 'request', 'express', 'npm', 'debug'%5D;%0Aconst EXAMPLE_URL = %60$%7Bpkg.homepage%7D/$%7BpickRandom(POPULAR)%7D%60;%0Aconst README = (%0A '%3C!doctype html%3E%3Cmeta charset=%22utf...
7cf8ec1b8051b9d4024ba1845d3b7a605485af00
Forget the query
api/controllers/EbayAPIController.js
api/controllers/EbayAPIController.js
/** * Ebay_apiController * * @description :: Server-side logic for managing ebay_apis * @help :: See http://links.sailsjs.org/docs/controllers */ var request = require("request"); var AUTH = { username: "iphone", pass: "", }; module.exports = { test: function(req, res) { request({ url: "h...
JavaScript
0.999013
@@ -4183,16 +4183,32 @@ s / 1000 + + %22&q=%22 + query ;%0A %7D%0A
057c0fc61b2b680cd57f844ddefcff59bc07a14a
Return streaming output as a stream
index.js
index.js
var fs = require('fs'); var http = require('http'); var Multipart = require('multipart-stream'); var qs = require('querystring'); try { var package = JSON.parse(fs.readFileSync(__dirname + '/package.json')); } catch(e) { var package = { name: 'ipfs-api-browserify', version: '?' }; } var API_PATH = "/api/v0/"; mo...
JavaScript
0.999996
@@ -1140,24 +1140,117 @@ tion(res) %7B%0A + var stream = !!res.headers%5B'x-stream-output'%5D;%0A if(stream) return cb(null, res);%0A%0A var ch @@ -2099,16 +2099,17 @@ r, null) +; %0A %7D
3fd5eb957bf7cfa775377fe0c9b28fcf1120f342
Fix lib file
lib/index.js
lib/index.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
JavaScript
0.000023
@@ -723,116 +723,8 @@ );%0A%0A -var _qrcodeReader = require(%22qrcode-reader%22);%0A%0Avar _qrcodeReader2 = _interopRequireDefault(_qrcodeReader);%0A%0A var @@ -769,24 +769,24 @@ erscript%22);%0A + %0Avar _reactH @@ -1833,16 +1833,59 @@ ass; %7D%0A%0A +require(%22qrcode-reader/dist/browser.js%22);%0A%0A var Read...
2104f884c898219541a53c7e7b2aeba5a82df7d6
Fix bug in doorstatus.js. It was brick.
dist/js/doorstatus.js
dist/js/doorstatus.js
/* Talks to /api/door and displays the returned status on #door-status. If the api doesn't return a JSON object (with .responseJSON) it will fail silently on page load. The user may click on #door-status to attempt a reload, and if the api still doesn't work it will fail with an alert. */ var openString = "<span...
JavaScript
0.000001
@@ -773,24 +773,205 @@ success%22));%0A + jqxhr.done(console.log(%22door fetch second success%22));%0A jqxhr.fail(console.log(%22door fetch error%22));%0A jqxhr.always(function() %7B%0A console.log(%22door fetch complete%22);%0A if (jqxh @@ -1037,18 +1037,16 @@ - - alert(%22D @@ -1094...
3ee7cb972827d1160084710bcfa8c4e092719381
Fix playlist (#92)
lib/prototypes/SonosSystem/applyPreset.js
lib/prototypes/SonosSystem/applyPreset.js
'use strict'; const logger = require('../../helpers/logger'); function setVolume(system, playerPresets) { let initialPromise = Promise.resolve(); let players = []; return playerPresets.reduce((promise, playerInfo) => { let player = system.getPlayer(playerInfo.roomName); if (!player) { return promi...
JavaScript
0
@@ -3492,16 +3492,132 @@ rite));%0A + %7D else if (preset.playlist) %7B%0A promise = promise.then(() =%3E coordinator.replaceWithPlaylist(preset.playlist));%0A %7D else
bffa74e3ca35444050f40f6346919294addabb39
fix bug
api/src/endpoints/auth/get_sigkey.js
api/src/endpoints/auth/get_sigkey.js
var models = require("../../models") var newSignatureKey = require("../../utils/newSignatureKey") module.exports = function* (appKey){ var sig; if(!appKey) return reject("appKey-is-require"); var app = models.apps.findOne({appKey}) if(!app) return Promise.reject("app-is-not-found"); sig = new models...
JavaScript
0.000001
@@ -206,16 +206,22 @@ ar app = + yield models.
4b2e2c52bfcb25dabebda504bf88ba6081179574
update project
index.js
index.js
const firebase = require('firebase') const config = require('./config') firebase.initializeApp(config); var ref = firebase.database().ref().child("room1") var Gpio = require('onoff').Gpio; var led = new Gpio(17, 'out'); ref.on('value', function (data) { if (data.val().Light == "1") { console.log('led on ...
JavaScript
0
@@ -318,32 +318,35 @@ on :-)')%0A + // led.writeSync(1 @@ -348,24 +348,16 @@ ync(1);%0A - %0A @@ -470,35 +470,32 @@ %7D, 800)%0A - // var iv = setInt @@ -511,35 +511,32 @@ ction()%7B%0A - // led.writeSy @@ -571,27 +571,24 @@ : 0)%0A - // %7D, 100);%0A
387324480d4190ef784bb4b8f1672445a3b3a4e2
Call the couleurs functions
lib/index.js
lib/index.js
var Couleurs = require("couleurs") , FlatColors = require("flat-colors") , IterateObject = require("iterate-object") ; function ColorIt(text) { if (this.constructor !== ColorIt) { return new ColorIt(text); } this.styles = []; this.text = text; } ColorIt.prototype.toString = function () {...
JavaScript
0.000006
@@ -409,16 +409,25 @@ utput = +Couleurs%5B style.ty @@ -432,26 +432,57 @@ type - === %22fg%22 ?%0A %7D) +%5D(output, style.color);%0A %7D);%0A return output ;%0A%7D;
29f25f91cfc38e63c95103626166fde1d30026e1
return on error
lib/index.js
lib/index.js
// // HL7 Parser // // Author: Evan Lucas // Filename: index.js // Created: 2/6/14 // Copyright: Evan Lucas 2014 // /** * Module dependencies */ var Transform = require('stream').Transform , util = require('util') , Segment = require('./segment') , Message = require('./message') , utils = require('./ut...
JavaScript
0.000033
@@ -1259,24 +1259,35 @@ ment = null%0A + return%0A %7D%0A if (se
84501a3f87d7e73c6a9a916216121ad9a47b1618
split exclusion in its own module
lib/index.js
lib/index.js
'use strict' import readCache from './read-cache' import serialize from './serialize' import memoryStore from './memory' function cache (config = {}) { config.store = config.store || memoryStore const key = config.key || cache.key config.maxAge = config.maxAge || 0 config.readCache = config.readCache || read...
JavaScript
0.000002
@@ -114,16 +114,48 @@ /memory' +%0Aimport exclude from './exclude' %0A%0Afuncti @@ -548,16 +548,47 @@ hs %7C%7C %5B%5D +%0A config.exclude.filter = null %0A%0A if ( @@ -754,460 +754,45 @@ if ( -service) %7B%0A const useCache = !service.use %7C%7C (service.use && (service.use.cache !== false))%0A%0A if ...
04f89b16a80b44e2d9fa247ef5f98a76d27efb69
Set options in connect (serverless)
functions/api.js
functions/api.js
'use strict' const mongoose = require('mongoose') const { ApolloServer } = require('apollo-server-lambda') const { UnsignedIntResolver, UnsignedIntTypeDefinition, DateTimeResolver, DateTimeTypeDefinition } = require('graphql-scalars') const isAuthenticated = require('../src/utils/isAuthenticated') const isDemoMode = ...
JavaScript
0
@@ -574,13 +574,26 @@ ose. -set(' +connect(dbUrl, %7B%0A%09 useF @@ -608,44 +608,16 @@ dify -', +: false -)%0A%0Amongoose.connect(dbUrl, %7B +, %0A%09us
d4fe4dfbb42571ab3edd60935ab2916dcbe653be
remove \r before \r\n on windows
lib/index.js
lib/index.js
/** * Copyright (C) 2014 yanni4night.com * index.js * * changelog * 2014-11-20[14:55:17]:revised * 2014-11-22[10:34:58]:use spawn instead of exec in case of buffer overflow * 2014-11-22[13:37:39]:use stdin&stdout to communicate with python to avoid long shell arguments * * @author yanni4night@gmail.com * @ver...
JavaScript
0.000004
@@ -3554,18 +3554,83 @@ ull, out -); +.replace(/%5Cr(?=%5Cr%5Cn)/mg, ''));//A %5Cr will always be prepend to %5Cr%5Cn %0A
164235e33e76c3014160613d4a399b91d9eaeafb
Remove menu items and show answer after selection
index.js
index.js
'use strict' var keypress = require('keypress') var chalk = require('chalk') var log = require('single-line-log').stdout module.exports = function (title, cb) { var items = [] var isRaw = process.stdin.isRaw var active = true var selected = 0 keypress(process.stdin) process.stdin.on('keypress', onkeypres...
JavaScript
0.000001
@@ -976,16 +976,27 @@ = false%0A + draw()%0A proc @@ -1013,16 +1013,16 @@ pause()%0A - if ( @@ -1170,24 +1170,94 @@ n draw () %7B%0A + var q = chalk.green('? ') + chalk.bold(title)%0A if (active) %7B%0A log(item @@ -1289,24 +1289,26 @@ m, index) %7B%0A + return @@ -1398,28 +1398,5...
31d1faff2f9da3a0134ccd02005adad89bf81229
Fix JSdoc syntax
index.js
index.js
/* Name: google-geolocation - index.js Description: Google Maps Geolocation API for Node.js (unofficial) Author: Franklin van de Meent (https://frankl.in) License: Unlicense (public domain, see LICENSE file) Source & docs: https://github.com/fvdm/nodejs-geolocation Feedback & bugs...
JavaScript
0.000002
@@ -523,16 +523,17 @@ allback + callback @@ -543,21 +543,19 @@ @param -param + %7Bobject @@ -556,17 +556,27 @@ object%7D -- + param Request @@ -602,24 +602,19 @@ @param -callback + %7Bfuncti @@ -621,20 +621,19 @@ on%7D -- %60function + callback %60 (err @@ -643,12 +643,12 @@ ata) - %7B...
61740a492a145c87c79f4a7a3de83d4e4a0b3bc6
use map for list of files to try to load
index.js
index.js
'use strict'; /* * Note that we want this to run as widely as possible so we're not using * any ES6 features. */ var fs = require('fs'); var path = require('path'); var spawn = require('child_process').spawn; var verbose = false; function addFileIfExists(fileName, command) { try { fs.accessSync(fileName, fs...
JavaScript
0
@@ -1848,32 +1848,24 @@ */%0A%0A -addFileIfExists( +%5B%0A 'docker- @@ -1881,94 +1881,47 @@ ml', - command);%0A addFileIfExists('docker-compose.dcr.yml', command)%0A addFileIfExists( +%0A 'docker-compose.dcr.yml',%0A 'doc @@ -1957,39 +1957,15 @@ ml', - command);%0A addFileIfExists( +%...
55c5f36bb59b50768a9383895ff6c2c0e5206986
Fix ship
lib/index.js
lib/index.js
/** * Takeshi Iwana aka iwatakeshi * MIT 2015 * Router * This module parses the routes * and sets the dot notation * according to the path. */ import _ from 'lodash'; import cldr from 'cldr'; import debug from 'debug'; class Path { constructor(path) { this.path = path; } isLocale(str) { str = str...
JavaScript
0.000004
@@ -2866,23 +2866,20 @@ .router. -route() +path ,%0A @@ -2906,24 +2906,16 @@ .router. -route(). toArray( @@ -2953,16 +2953,8 @@ ter. -route(). toDo @@ -3150,8 +3150,9 @@ %0A %7D;%0A%7D; +%0A
3786d8421651bc57b7945954f994754f3ae7fde3
Switch this.props with ref inside render function
lib/index.js
lib/index.js
var isBrowser = (typeof window !== 'undefined'); var Masonry = isBrowser ? window.Masonry || require('masonry') : null; var imagesloaded = isBrowser ? require('imagesloaded') : null; var refName = 'masonryContainer'; function extend() { var result = {}; for (var i = 0; i < arguments.length; i++) { var ...
JavaScript
0
@@ -5835,64 +5835,34 @@ end( -%7B%0A ref: refName%0A %7D, this.props +this.props, %7Bref: refName%7D ), t
fe0737befc190955b2cdcbf5040593e070bb5408
Fix for ways without geometry
index.js
index.js
var fs = require('fs'), async = require('async'), osmium = require('osmium'), TileSet = require('node-hgt').TileSet, haversine = require('./haversine'), argv = require('minimist')(process.argv.slice(2)), tileSet = new TileSet(argv.cache_dir || './data/'), file = new osmium.File(argv._[0]), ...
JavaScript
0.000003
@@ -578,24 +578,42 @@ ighway')) %7B%0A + try %7B%0A var @@ -628,16 +628,20 @@ way.id,%0A + @@ -676,16 +676,20 @@ nates()%0A + @@ -754,24 +754,105 @@ .lon %7D; %7D);%0A + %7D catch (e) %7B%0A console.warn(e);%0A return;%0A %7D%0A ...
c2bc519d458cf1456a8a77273f0f4690463c95b3
Add a comment
index.js
index.js
const {h, render} = require('ink'); const Store = require('./lib/Store'); const App = require('./lib/components/App'); const store = new Store(); render(h(App, {store})); // keypress // - Ctrl+C と Escape による終了は ink/index.js で定義されている // - これを直接 OFF する方法はなさそうなので、render 後に EventEmitter の作法で初期化などを行う必要がある // ...
JavaScript
0
@@ -352,16 +352,54 @@ ns %E3%81%A7%E6%B8%A1%E3%81%9B%E3%82%8B%0A +// - %E6%8A%BC%E3%81%97%E3%81%A3%E3%81%B1%E3%81%AA%E3%81%97%E3%81%A7%E3%82%82 OS %E3%81%AE%E3%83%AA%E3%83%94%E3%83%BC%E3%83%88%E9%96%93%E9%9A%94%E3%81%AB%E5%BE%93%E3%81%A3%E3%81%A6%E9%80%A3%E6%89%93%E6%89%B1%E3%81%84%E3%81%AB%E3%81%AA%E3%82%8B%0A pro...
73c5a3a6e5d20b03151aefb0ec62a26bfbf8c238
Exclude schema key from diff
lib/index.js
lib/index.js
import * as fs from "fs"; import * as path from "path"; import escapeStringRegexp from 'escape-string-regexp'; import walk from 'acorn-jsx-walk'; function log(callback, text, type) { if(callback) { callback(text, type) } else{ if(console.group) console.group('i18n-tag-schema') switch(ty...
JavaScript
0.000002
@@ -5175,32 +5175,164 @@ )%0A %7D%0A + oldKeys = oldKeys.filter((name) =%3E name !== '$schema')%0A newObj = newObj.filter((name) =%3E name !== '$schema')%0A let
d396b938275b846864c4d4711d8bd567c5640738
remove trailing spaces
index.js
index.js
/** * publish-release * Create GitHub releases with assets * * @author Zach Bruggeman <mail@bruggie.com> */ var request = require('request') var async = require('async') var mime = require('mime') var progress = require('progress-stream') var util = require('util') var fs = require('fs') var path = require('path'...
JavaScript
0.007619
@@ -3338,26 +3338,16 @@ allback%0A - %0A
3a5d3323733a94d642a85bf3bda8a0270df07b92
Remove definiedBranches global variable
lib/index.js
lib/index.js
var async = require('async') var _ = require('lodash') var definiedBranches = {} function mapper(mapFunction, list, callback) { async.map(list, mapFunction, callback) } function branch(name) { this.name = name this.toApply = [] definiedBranches[name] = this return this } branch.prototype.do = function(func...
JavaScript
0.000001
@@ -52,33 +52,8 @@ h')%0A -var definiedBranches = %7B%7D %0A%0Afu @@ -208,40 +208,8 @@ %5B%5D%0A - definiedBranches%5Bname%5D = this%0A re @@ -1672,12 +1672,13 @@ nch = branch +%0A
c6a90c74cafe48397531b9dd6271f241cc8e943a
change merging method and just going fo a foreach as problems in cross domain iframes
lib/index.js
lib/index.js
'use strict'; var filter = require('lodash/filter'), forEach = require('lodash/forEach'), clone = require('lodash/clone'), /* [ { element: node events: { load: { bubbling: { onEvent: function, handlers: [function, o...
JavaScript
0
@@ -1703,16 +1703,40 @@ %7D);%0A + console.log('test'); %0A if
aab4553e609b9fbc131ee5eaf31f83b65bea213e
Remove dead code.
lib/index.js
lib/index.js
var http = require('http'), htmlparser = require('htmlparser'); exports.available = function(options, callback) { http.get({ host: options.host, path: '/grid/console', port: options.port || 4444 }, function(res) { var data = ''; if (res.statusCode !== 200) { ...
JavaScript
0.00001
@@ -611,264 +611,8 @@ ) %7B%0A - /*%0A var children = find('fieldset', dom), flattened;%0A%0A children = filter(children);%0A flattened = flatten(children);%0A%0A callback(null, flattened);%0A */%0A @@ -2227...
2383830ff3f08b02476bdc5398f2757837033420
Fix totalCount (missing await)
lib/index.js
lib/index.js
'use strict'; const mongodb = require('mongodb'); /** * @param {Object} filter * @returns {Object} */ function buildQuery(filter) { const or = filter.map(andFilters => { const and = []; andFilters.forEach(condition => { if (condition.operator === 'equal') { const c =...
JavaScript
0.000032
@@ -5960,16 +5960,22 @@ lCount = + await collect
3e1f48c610c5d05df2faac206b2c5c4c2985b8a4
Check for GOOGLE_TOKEN
index.js
index.js
var Botkit = require("botkit"); // Expect a SLACK_TOKEN environment variable var slackToken = process.env.SLACK_TOKEN if (!slackToken) { console.error("SLACK_TOKEN is required!") process.exit(1) } var controller = Botkit.slackbot() var bot = controller.spawn({ token: slackToken }) bot.startRTM(function (err, b...
JavaScript
0
@@ -2112,16 +2112,197 @@ English%0A +%0A// Expect a GOOGLE_TOKEN environment variable%0Avar googleToken = process.env.GOOGLE_TOKEN;%0Aif (!googleToken) %7B%0A console.error(%22GOOGLE_TOKEN is required!%22)%0A process.exit(1)%0A%7D%0A%0A var goog @@ -2347,32 +2347,19 @@ e%22)( -process.env.GOOGLE_TOKEN +googleT...
d1fe3fe748b9ca8c640f785c6f3779451cdbde68
Load new apiUrl module in ac module base
index.js
index.js
var config = require('./config'), rest = require('./rest'), projects = require('./projects'); module.exports.init = function () { /** * Load config variables as environment variables */ for (envVar in config) { if (config.hasOwnProperty(envVar)) { process.env[envVar] = co...
JavaScript
0
@@ -53,24 +53,58 @@ ('./rest'),%0A + apiUrl = require('./apiUrl'),%0A projects @@ -700,16 +700,42 @@ eturn %7B%0A + 'apiUrl': apiUrl,%0A
49a845f563f34fe7a18f7b235877dc1e7dadbc80
stop emitting events after first error
lib/index.js
lib/index.js
var Transform = require('readable-stream').Transform; var util = require('util'); var clarinet = require('clarinet'); /** * @constructor * @extends {Transform} */ var JStream = module.exports = function(path) { Transform.call(this, { objectMode: true }); var parser = this.parser = new clarinet.createStrea...
JavaScript
0.000002
@@ -2241,32 +2241,65 @@ itable = false;%0A + parser.emit = function() %7B%7D;%0A self.emit('e
b8fd002249e3f84848ec0a63ed432f787a2d1708
fix redundant store
block.js
block.js
/** * All the actual functionality of the extension; loads as part of the background page. * * Active ingredient is enable(), which sets up the webRequest callbacks. * * */ allFilters = null; function setFilters(newFilters) { allFilters = newFilters; chrome.storage.local.set({"filters": newFilters}); } // mag...
JavaScript
0.02116
@@ -2668,16 +2668,51 @@ ers%22%5D);%0A +%09%09%09allFilters = result%5B%22filters%22%5D;%0A %09%09%7D%0A%0A%09%09/
998372e81cf340665e9137c0a9c7db48444851b2
Revert "Added angular boilerplate"
app/components/Boilerplates/index.js
app/components/Boilerplates/index.js
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; const boilerplates = { 'react': 'React', 'cerebral': 'Cerebral', 'redux': 'Redux', 'cycle': 'Cycle JS', 'vue': 'Vue JS', 'angular': 'Angular' }; @Cerebral() class Boilerplates extends R...
JavaScript
0
@@ -248,32 +248,8 @@ JS' -,%0A 'angular': 'Angular' %0A%7D;%0A
f4f073df6268df111236fb5e582d3c645f142493
add detect in fetch action to avoid refetch extension which is already downloaded
app/components/Extensions/actions.js
app/components/Extensions/actions.js
import 'isomorphic-fetch' import { createAction } from 'redux-actions' import { getLocalExtensionByName } from '../../utils/extensions' export const UPDATE_EXTENSION_CACHE = 'UPDATE_EXTENSION_CACHE' export const FETCH_EXTENSIONS_LISTS_REQUEST = 'FETCH_EXTENSIONS_LISTS_REQUEST' export const FETCH_EXTENSIONS_LISTS_SUCCE...
JavaScript
0
@@ -1880,32 +1880,229 @@ (dispatch) =%3E %7B%0A + if (localStorage.getItem(%60extension_$%7Bname%7D%60)) %7B%0A dispatch(updateExtensionCache())%0A dispatch(%7B type: FETCH_EXTENSION_BY_NAME_SUCCESS %7D)%0A return dispatch(installLocalExtension(name))%0A %7D%0A dispatch(%7B typ
67cc6c1b3b5724463a2e6dfb07f34a61d97f6824
Change error message format
lib/index.js
lib/index.js
var _ = require('underscore'); var jsforce = require('jsforce'); var deleteEvents = function(config) { if (!config.username) { throw new Error('"username" property is needed.'); } if (!config.password) { throw new Error('"password" property is needed.'); } doDeleteEvents(config); }; var doDeleteEve...
JavaScript
0.000001
@@ -89,24 +89,34 @@ ction(config +, callback ) %7B%0A if (!c @@ -129,38 +129,41 @@ username) %7B%0A -throw +callback( new Error('%22user @@ -161,17 +161,20 @@ or(' -%22 +Set username %22 pr @@ -169,39 +169,50 @@ username -%22 property is needed.') + in the config file'));%0A return ;%0A %7D%0A @@ ...
988057243659be75ca44c202e7e9857d25a6882a
use array
app/components/Reactions/Reaction.js
app/components/Reactions/Reaction.js
// @flow import React from 'react'; import classNames from 'classnames'; import Tooltip from 'app/components/Tooltip'; import type { ID } from 'app/models'; import styles from './Reaction.css'; import Emoji from 'app/components/Emoji'; type Props = { className?: string, emoji: string, count: number, unicodeSt...
JavaScript
0.000653
@@ -1030,11 +1030,13 @@ tion - + +, ... (can @@ -1047,12 +1047,9 @@ t ? -%22 %22+ +%5B styl @@ -1064,13 +1064,14 @@ able +%5D : -%22%22 +%5B%5D )%5D;%0A
0a0147712f4542a4b1d8198ba99f9048ab468700
fix unnecessary comma in bracket match
index.js
index.js
'use strict'; const globby = require('globby'); const path = require('path'); function detectRepoTestFiles(dir, options) { options = Object.assign({ cwd: dir, ignore: 'node_modules/**', // Ignore node_modules nodir: true, // Only return files nocase: true, ...
JavaScript
0.000397
@@ -612,17 +612,16 @@ '**/*%5B. -, -%5D%7Btest, @@ -625,32 +625,33 @@ st,spec%7D?(s).*', + // Suff
84cc25de6adc6721e818f7483dde7f162b458cc3
test deploy
gatsby-config.js
gatsby-config.js
const siteUrl = process.env.SITE_URL || 'https://brightinventions.pl/' module.exports = { siteMetadata: { title: 'Bright Inventions', description: 'The best custom software development company in Poland. Through mobile apps and complex backend systems to emerging technology solutions we are creating suc...
JavaScript
0.000001
@@ -3638,16 +3638,190 @@ cms.tsx%60 +,%0A enableIdentityWidget: true,%0A publicPath: %60admin%60,%0A htmlTitle: %60Content Manager%60,%0A htmlFavicon: %60path/to/favicon%60,%0A includeRobots: false, %0A %7D
1dc649613ac414eb89e324f05e3fbb7283294171
add tracking GA only for production
gatsby-config.js
gatsby-config.js
const siteUrl = new URL(process.env.SITE_URL || 'https://brightinventions.pl/') module.exports = { siteMetadata: { title: 'Bright Inventions', description: 'The best custom software development company in Poland. Through mobile apps and complex backend systems to emerging technology solutions we are cre...
JavaScript
0
@@ -837,24 +837,37 @@ 36006-1' : ' +UA-00000000-0 '%7D%60,%0A
7d6101d13f621d801c8263f84a7ace9069fe8e4b
update checks
index.js
index.js
/** * npm-pkgs <https://github.com/tunnckoCore/npm-pkgs> * * Copyright (c) 2015 Charlike Mike Reagent, contributors. * Released under the MIT license. */ 'use strict'; var is = require('is-kindof'); var got = require('got'); var cheerio = require('cheerio'); /** * List packages of the given user * * **Exampl...
JavaScript
0.000001
@@ -260,16 +260,85 @@ rio');%0A%0A +var url = 'https://www.npmjs.com/~';%0Avar selector = '.bullet-free';%0A%0A /**%0A * L @@ -362,16 +362,43 @@ he given + %5Bnpmjs.com%5D(http://npm.im) user%0A * @@ -1249,33 +1249,11 @@ get( -'https://www.npmjs.com/~' +url + u @@ -1388,28 +1388,23 @@ s);%0A +%0A $( -'.bu...
0216f13e23095efa2906fd654e282f111b9139ff
Set default value of organization
lib/index.js
lib/index.js
// Dependencies var GitUp = require("git-up"); /** * GitUrlParse * Parses a Git url. * * @name GitUrlParse * @function * @param {String} url The Git url to parse. * @return {GitUrl} The `GitUrl` object containing: * * - `protocols` (Array): An array with the url protocols (usually it has one element). * - ...
JavaScript
0.000002
@@ -788,56 +788,8 @@ s).%0A - *%0A * - %60protocol%60 (String): The url protocol.%0A * @@ -943,66 +943,8 @@ me.%0A - * - %60href%60 (String): The original url which was parsed.%0A * @@ -1030,16 +1030,115 @@ l type.%0A + * - %60organization%60 (String): The organization the owner belongs to. This is CloudF...
581db5d9ff4224ad87a663e6aed7c4ab81dc4d2d
table creation
lib/index.js
lib/index.js
import knex from 'knex' import {generate as shortId} from 'shortid' import {defaultsDeep as defaults} from 'lodash' export class JasqlError extends Error {} export class DocumentNotFoundError extends JasqlError { constructor (id) { super(`The document with id '${id}' was not found`) } } export class Database...
JavaScript
0.999138
@@ -1099,25 +1099,43 @@ me, -this._tableSchema +(table) =%3E tableSchema(table, this) )%0A @@ -2536,12 +2536,20 @@ %7D%0A -%0A _ +%7D%0A%0Afunction tabl @@ -2562,22 +2562,56 @@ a (table -) %7B%0A +, jasql) %7B%0A console.log('THIS:', this)%0A consol @@ -2634,18 +2634,16 @@ TABLE')%0A - table. @@...
bf429ababb2d3fd7589458a033a6b5bb2a996df7
save error bug
packages/entity-detail/src/components/DetailForm/DetailForm.js
packages/entity-detail/src/components/DetailForm/DetailForm.js
import PropTypes from 'prop-types' import React from 'react' import {reduxForm} from 'redux-form' import {intlShape, FormattedRelative, FormattedMessage} from 'react-intl' import {Button, Typography} from 'tocco-ui' import {form, formField} from 'tocco-app-extensions' import SubGrid from '../../util/detailView/fromFie...
JavaScript
0
@@ -1391,28 +1391,18 @@ his. -touchFieldsWith +show Error +s ()%0A @@ -1747,32 +1747,51 @@ rs = event =%3E %7B%0A + if (event) %7B%0A event.preven @@ -1793,32 +1793,39 @@ reventDefault()%0A + %7D%0A%0A this.props.t
a98034fde567aec0d77fa6df5f43a77b8060e432
update based on benchmarks.
index.js
index.js
/*! * normalize-path <https://github.com/jonschlinkert/normalize-path> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT License */ 'use strict'; module.exports = function(filepath, stripTrailing) { filepath = filepath .replace(/[\\\/]+/g, '/') .toLowerCase(); if (stripTr...
JavaScript
0
@@ -89,16 +89,22 @@ (c) 2014 +-2015, Jon Sch @@ -114,22 +114,8 @@ kert -, contributors .%0A * @@ -155,23 +155,8 @@ */%0A%0A -'use strict';%0A%0A modu @@ -178,23 +178,17 @@ nction(f -ilepath +p , stripT @@ -205,31 +205,14 @@ %0A f -ilepath = filepath%0A +p = fp .rep @@ -236,29 +236,9 @@ '/') -%0A .to...
406218069f7083816acee50367f7ca88fb4355c5
Debug deployment and setting of node env variables
server/db/graphDb.js
server/db/graphDb.js
if (process.env.NODE_ENV !== 'production') require('../../secrets'); const neo4j = require('neo4j-driver').v1; if (process.env.NODE_ENV === 'production') { const graphDb = neo4j.driver( process.env.GRAPHENEDB_BOLT_URL, neo4j.auth.basic(process.env.GRAPHENEDB_BOLT_USER, process.env.GRAPHENEDB_BOLT_PASSWORD) ...
JavaScript
0
@@ -316,16 +316,102 @@ RD)%0A ); +%0A%0A process.on('exit', () =%3E %7B%0A graphDb.close();%0A %7D);%0A%0A module.exports = graphDb; %0A%7D else @@ -568,11 +568,11 @@ );%0A -%7D%0A%0A +%0A proc @@ -594,16 +594,18 @@ () =%3E %7B%0A + graphD @@ -615,21 +615,25 @@ lose();%0A + %7D);%0A%0A + mod...
20e3dca09fc4e802c7901aace8e504dd3bc81f0c
generalize examples header
web/examples/header.js
web/examples/header.js
document.write([ '<div id="header">', '<a href="http://dc-js.github.io/dc.js"><img src="../dc.logo.png" style="float:left; padding-right: 1em" width=50 height=50></img></a>', '<div id="links" style="padding:10px 0px 0px 10px">', '<a href=".">all examples</a>&nbsp;&nbsp;<a href="', document.location....
JavaScript
0.000001
@@ -1,16 +1,184 @@ +!function() %7B%0A var path = document.location.pathname;%0A var dir = /%5E.*%5C/(%5Ba-z%5D+)%5C//.exec(path)%5B1%5D;%0A var filename = path.substring(path.lastIndexOf('/')+1);%0A document.write(%5B @@ -178,16 +178,20 @@ write(%5B%0A + '%3Cdi @@ -203,24 +203,28 @@ %22header%...
914529c029b36a2fb8ebf1f3dd1fca2cc9179a78
Update e2e spec to reflect changed breadcrumb
client/app/catalogs/catalog-explorer.e2e.js
client/app/catalogs/catalog-explorer.e2e.js
describe('Component: catalogExplorer', function() { beforeEach(function() { browser.get('/catalogs'); }); it('should have correct breadcrumb', function() { const breadcrumb = element.all(by.css('.breadcrumb > .active')); expect(breadcrumb.get(0).getText()).toBe("Catalogs"); }); it('should have exp...
JavaScript
0
@@ -274,16 +274,24 @@ ).toBe(%22 +Service Catalogs
85180f749f9e8dac4135120fd411a13d6b12868c
correct downloadable entity for OMIS
src/apps/omis/apps/list/router.js
src/apps/omis/apps/list/router.js
const router = require('express').Router() const { ENTITIES } = require('../../../search/constants') const QUERY_FIELDS = require('../../constants') const { getCollection, exportCollection } = require('../../../../modules/search/middleware/collection') const { setDefaultQuery } = require('../../../middleware') const...
JavaScript
0.000002
@@ -863,15 +863,13 @@ on(' -company +order '),%0A
1f51da3b7250d9ab91996bbc8b9d41163ff4029f
test if email fills from url
client/app/components/signup/signup.spec.js
client/app/components/signup/signup.spec.js
import SignupModule from "./signup"; const { module } = angular.mock; describe("Signup", () => { beforeEach(() => { module(SignupModule); module(($stateProvider) => { $stateProvider .state("splash", { url: "", abstract: true }) .state("home", { }); }); }); let $log; beforeEach(i...
JavaScript
0.00007
@@ -839,16 +839,20 @@ _$state_ +, $q ) =%3E %7B%0A @@ -948,16 +948,38 @@ e, %22go%22) +.returns($q.resolve()) ;%0A @@ -2747,32 +2747,430 @@ %7D);%0A %7D); +%0A%0A it(%22prefills e-mail from url%22, () =%3E %7B%0A inject((Authentication, Invitation, $state, $q, $rootScope, $stateParams) =%3E ...