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
26a5bcbeef92bcfc9621c92a7042628366220a44
Update index.js
meteor-apollo-accounts/src/index.js
meteor-apollo-accounts/src/index.js
import changePassword from 'changePassword' import createUser from 'createUser' import forgotPassword from 'forgotPassword' import getLoginToken from 'getLoginToken' import hashPassword from 'hashPassword' import loginWithPassword from 'loginWithPassword' import logout from 'logout' import resendVerificationEmail from...
JavaScript
0.000002
@@ -29,32 +29,33 @@ 'changePassword' +; %0Aimport createUs @@ -74,16 +74,17 @@ ateUser' +; %0Aimport @@ -111,32 +111,33 @@ 'forgotPassword' +; %0Aimport getLogin @@ -162,16 +162,17 @@ inToken' +; %0Aimport @@ -195,32 +195,33 @@ m 'hashPassword' +; %0Aimport loginWit @@ -246,32 +246,33 @@ ginWithPassword' +...
50fb2d68f88c4740d8f81b7b7c9d5afe540d1b10
fix notifications icon
src/components/TopNav.js
src/components/TopNav.js
import React from 'react' import { A } from './A' import Icon from './Icon' import { NonLinkAvatar } from './Avatar' import Dropdown from './Dropdown' import { isAdmin } from '../models/currentUser' import { filter, find, flow, get, map, sortBy } from 'lodash/fp' import { same } from '../models' import { MenuButton, le...
JavaScript
0.000001
@@ -4590,16 +4590,33 @@ e='bell' + glyphicon=%7Btrue%7D /%3E%0A
cc53ac0bca79b0dd68432f85766a5b7c781ccd80
add all icons to build output
src/components/_index.js
src/components/_index.js
// import CdrThemer from 'componentsdir/themer/CdrThemer'; // import CdrSearch from 'compositionsdir/search/CdrSearch'; export { default as CdrAccordion } from 'componentsdir/accordion/CdrAccordion'; export { default as CdrAccordionItem } from 'componentsdir/accordion/CdrAccordionItem'; export { default as CdrBreadcru...
JavaScript
0.000001
@@ -853,24 +853,27 @@ DataTable';%0A +// export %7B def @@ -921,24 +921,139 @@ n/CdrIcon';%0A +// export all icon components for now (includes sprite and CdrIcon)%0Aexport * from 'componentsdir/icon/build/main';%0A export %7B def
10929ede983cf5fe9141a1684a9c1c9fa8712da9
add player username
challengers.js
challengers.js
// Welcome! // Add your github user if you accepted the challenge! var players = [ 'raphamorim', 'israelst', 'guisouza', 'afonsopacifer', 'rafaelfragosom', 'paulinhoerry', 'enieber', 'alanrsoares', 'viniciusdacal', 'thiagosantana', 'danilorb', 'douglasPinheiro', 'mic...
JavaScript
0.000001
@@ -2682,16 +2682,29 @@ oares',%0A + 'suuuzi'%0A %5D;%0A%0Amodu
7c56d4ec95a771718175bd94c3ef51c4095082e3
Fix jQuery removeClass() typo in metadata-edit page. This may have been absolutely killing saving performance.
visualization/static/js/ImageMetadataFormHelper.js
visualization/static/js/ImageMetadataFormHelper.js
// Selects all of the checkboxes given the value of the check all box. function selectall() { var id = "#id_selected"; if ($(id).attr('checked')) setCheckedRows(true); else setCheckedRows(false); } // Given the row/column, this will return the value at that cell in the table. function getVa...
JavaScript
0
@@ -6493,12 +6493,9 @@ nged -', ' + erro
128ed722de12632319e8ad45da281ed433791299
update mongoose
config/config.default.js
config/config.default.js
'use strict'; /** * mongoose default config * http://mongoosejs.com/docs/api.html#index_Mongoose-createConnection * @member Config#mongoose * @property {String} url - connect url * @property {Object} options - options to pass to the driver and mongoose-specific */ exports.mongoosee = { mongodb: { url...
JavaScript
0.000001
@@ -316,17 +316,102 @@ url: ' -' +mongodb://localhost:27017',%0A user: %22test%22,%0A password: %22test%22,%0A dbName: %22test%22 ,%0A op
e10e962ffb4fce6fcf790d3a24e36add60816494
Update a11y for search in header v2 (#19471)
src/platform/site-wide/header/components/Search/index.js
src/platform/site-wide/header/components/Search/index.js
// Node modules. import React, { useState } from 'react'; // Relative imports. import IconSearch from '@department-of-veterans-affairs/component-library/IconSearch'; import recordEvent from 'platform/monitoring/record-event'; export const Search = () => { const [term, setTerm] = useState(''); const onFormSubmit =...
JavaScript
0
@@ -76,95 +76,8 @@ ts.%0A -import IconSearch from '@department-of-veterans-affairs/component-library/IconSearch';%0A impo @@ -1278,22 +1278,42 @@ Submit%7D%0A + role=%22search%22%0A %3E%0A - %3Cl @@ -1588,47 +1588,8 @@ put%0A - aria-label=%22Enter a keyword%22%0A @@ -1884,31 +1884,18...
1a7e381c861d85e39bcd8c449d51b9dfd625cd92
Remove unnecessary argument
assets/io.js
assets/io.js
import fetch from 'isomorphic-fetch' import { getCookies } from './utils' export const urlEncode = data => { let items = Object.keys(data).map(item => encodeURIComponent(item) + '=' + encodeURIComponent(data[item])) return items.join('&') } export const get = url => { return fetch(url, { credenti...
JavaScript
0.043649
@@ -1660,25 +1660,15 @@ ise( -( resolve -, reject) =%3E
25973795884204fb7c95d281e5f044c839522668
load config from file
middleware/config.js
middleware/config.js
'use strict'; var log = require('./log'); var express = require('express'); var router = express.Router(); var config = { system: { webPort: 5000, statsUpdateInterval: 5000, }, transmission: { host: '192.168.1.21', port: 9091, username: 'osmc', password: 'li...
JavaScript
0.000001
@@ -32,24 +32,48 @@ e('./log');%0A +var fs = require('fs');%0A var express @@ -141,18 +141,16 @@ fig = %7B%0A - system @@ -157,20 +157,16 @@ : %7B%0A - - webPort: @@ -172,20 +172,16 @@ : 5000,%0A - stat @@ -207,17 +207,13 @@ 00,%0A - %7D,%0A - tr @@ -230,20 +230,16 @@ : %7B%0A ...
7514b34084aa95787bfdc960e0b2cb4eea783da3
fix eslint errors
src/Date.js
src/Date.js
/** * Created by steve on 22/12/15. */ import ComposedComponent from './ComposedComponent'; import NativeDateField from './NativeDateField' export default ComposedComponent(NativeDateField, {type: 'date'});
JavaScript
0.000098
@@ -64,17 +64,17 @@ nt from -' +%22 ./Compos @@ -84,17 +84,17 @@ omponent -' +%22 ;%0Aimport @@ -115,17 +115,17 @@ ld from -' +%22 ./Native @@ -133,17 +133,18 @@ ateField -' +%22; %0A%0Aexport @@ -192,20 +192,22 @@ d, %7B + type: -' +%22 date -' +%22 %7D);%0A
6a277d5504d9bd860d2b1b4e11662bdb879ea8a7
fix inefficient querySelectorAll -> querySelector (#23)
src/plugins/contextMenuCopyPaste/contextMenuCopyPaste.js
src/plugins/contextMenuCopyPaste/contextMenuCopyPaste.js
(function (Handsontable) { /** * Plugin used to allow user to copy and paste from the context menu * Currently uses ZeroClipboard due to browser limitations * @constructor */ function ContextMenuCopyPaste() { this.zeroClipboardInstance = null; this.instance = null; } /** * Configure and ...
JavaScript
0
@@ -4941,24 +4941,18 @@ Selector -All('tr +(' td.curre @@ -4955,19 +4955,16 @@ urrent') -%5B0%5D ;%0A @@ -4981,65 +4981,8 @@ lass -.className && hadClass.className.indexOf('current') != -1 ) %7B%0A @@ -5464,16 +5464,10 @@ ctor -All('tr +(' td.z @@ -5489,19 +5489,16 @@ -hover') -%5B0%5D ;%0A @@ -...
7e9e17d764a5dcdbdd65d0aa43bdf834ccea1321
Use 4 miners instead of 3
world/roleFactory.js
world/roleFactory.js
/** * @file Calculates which role should be spawned in a given room. * @author Dom Light * @license MIT */ module.exports = { "getNextRole": getNextRole, }; /** * Returns the next role that should be spawned in the specified room. * @param {Room} room The room in which the creep should be spawned. * @returns ...
JavaScript
0.000401
@@ -1063,16 +1063,94 @@ t%22: 2 %7D, +%0A%0A%09%09%7B %22role%22: %22miner%22, %22count%22: 4 %7D,%0A%0A%09%09%7B %22role%22: %22capturer%22, %22count%22: 1 %7D, %0A%09%5D;%0A%0A%09v
89235a314f7798b51e51a9443d32f181abdbb0dd
fix access to recalculateIndex
src/LWdb.js
src/LWdb.js
"use strict"; // ---------------------------------------------------------------------- // LearnWords 2 // // File: // LWdb.js // // Purpose: // Database layer // Definition of an LWdb object // // Date: // 3rd December 2016 // // ---------------------------------------------------------------------- ...
JavaScript
0
@@ -965,37 +965,32 @@ key,n);%0A -that. recalculateIndex @@ -1120,37 +1120,32 @@ n + 1);%0A -that. recalculateIndex @@ -1202,37 +1202,32 @@ ion() %7B%0A -that. recalculateIndex @@ -1243,28 +1243,29 @@ %7D;%0A%0A -var +this. _indexNeedsR @@ -1307,21 +1307,16 @@ return -that. ...
7e0a3307f08b931019777a5466d2d73baa658c58
remove duplicate error display UI
src/components/error/menu/DebugMenu.react.js
src/components/error/menu/DebugMenu.react.js
import React, {Component} from 'react'; import './DebugMenu.css'; import DebugIcon from '../icons/DebugIcon.svg'; import WhiteCloseIcon from '../icons/WhiteCloseIcon.svg'; import BellIcon from '../icons/BellIcon.svg'; import BellIconGrey from '../icons/BellIconGrey.svg'; import ReloadIcon from '../icons/ReloadIcon.svg...
JavaScript
0.000001
@@ -1316,909 +1316,8 @@ ';%0A%0A - let frontEndErrors;%0A if (alertsOpened) %7B%0A if (errors.frontEnd.length %3E 1) %7B%0A frontEndErrors = (%0A %3CFrontEndErrorContainer%0A errors=%7Berrors.frontEnd%7D%0A resolve...
6bb88c61f297262a149496de132fc50185914238
Fix lock string.
mmm-alarm-welcome.js
mmm-alarm-welcome.js
Module.register("mmm-alarm-welcome",{ defaults: { welcomeText: 'Welcome home!', server: 'http://test.mosquitto.org', username: '', password: '', triggerDelay: 60000, animationSpeed: 1000, displayTime: 15000 }, start: function() { this.waitTimer = null; this.sendSocketNotification('CONFIG', this....
JavaScript
0.000002
@@ -1481,16 +1481,47 @@ ionSpeed +, %7BlockString: self.identifier%7D );%0A%09%09%09%09%09
05ea4b0b6ae70ba8a15f47439367a1a85932ff7e
use animated stack whenever animations is non-empty
lib/Stack.js
lib/Stack.js
import React, { PropTypes } from 'react'; import _ from 'lodash'; import ParamStore from 'param-store'; import SimpleStack from './SimpleStack'; import AnimatedStack from './AnimatedStack'; const { string, array } = PropTypes; export default class Stack extends React.Component { constructor (props) { super(prop...
JavaScript
0.000092
@@ -750,14 +750,8 @@ urn -_.get( this @@ -760,11 +760,9 @@ rops -, ' +. anim @@ -771,17 +771,8 @@ ions -.length') ;%0A
5c50ff2cbfc404769e3583d8be0822398e43977b
enhance Trace with prefix
lib/Trace.js
lib/Trace.js
var debug = require('debug'); module.exports = function (name) { var trace = { error: debug(name + '[E]'), warn: debug(name + '[W]'), info: debug(name + '[I]'), verbose: debug(name + '[V]'), debug: debug(name + '[D]'), }; trace.err = trace.error; trace....
JavaScript
0.000001
@@ -55,16 +55,24 @@ on (name +, prefix ) %7B%0A @@ -282,16 +282,867 @@ %0A %7D;%0A + if (prefix) %7B%0A for (var method in trace) %7B%0A if (trace%5Bmethod%5D.enabled) %7B%0A var debugFn = trace%5Bmethod%5D;%0A trace%5Bmethod%5D = function () %7B%0A ...
2486f37f61d2172b4622cda5e0a8a15c93702868
Remove console.logs()
src/deep-cache/test/Mocks/RedisDriverMock.js
src/deep-cache/test/Mocks/RedisDriverMock.js
'use strict'; import {RedisMock} from './RedisMock'; import {RedisDriver} from '../../lib.compiled/Driver/RedisDriver'; export class RedisDriverMock extends RedisDriver { /** * @param args */ constructor(...args) { super(args); console.log('constructor RedisDriverMock'); this.isErrorMode = fals...
JavaScript
0.000001
@@ -242,56 +242,8 @@ s);%0A - console.log('constructor RedisDriverMock');%0A @@ -239,34 +239,39 @@ args);%0A this. +d is +able ErrorMode = fals @@ -259,32 +259,26 @@ bleErrorMode - = false +() ;%0A %7D%0A%0A /**
651680f2c2842d97c3b62eea098630ae1251fba6
use null instead of empty string
src/GoogleSignin.ios.js
src/GoogleSignin.ios.js
import React, { Component, PropTypes } from 'react'; import { View, NativeAppEventEmitter, NativeModules, requireNativeComponent, } from 'react-native'; const { RNGoogleSignin } = NativeModules; const RNGoogleSigninButton = requireNativeComponent('RNGoogleSigninButton', null); class GoogleSigninButton exten...
JavaScript
0.00045
@@ -1884,18 +1884,20 @@ omain : -'' +null %0A %5D;%0A
c8042a9b2a0bda46f6a54578fc518b045caf1bb8
Add comments, stream-parse messages, emit data and message events
lib/board.js
lib/board.js
var events = require('events'), child = require('child_process'), util = require('util'), serial = require('serialport').SerialPort; var Board = function (options) { var self = this; this.detect(function (err, serial) { self.serial = serial; self.serial.on('data', self.read); self.emit(...
JavaScript
0
@@ -143,16 +143,94 @@ lPort;%0A%0A +/*%0A * The main Arduino constructor%0A * Connect to the serial port and bind%0A */%0A var Boar @@ -254,16 +254,43 @@ ions) %7B%0A + this.messageBuffer = '';%0A var se @@ -335,24 +335,48 @@ , serial) %7B%0A + if (err) throw err;%0A self.ser @@ -420,17 +420,121 @@ a',...
f9b9d961ff8d756d6417d447d171c1cb2b23ebba
remove log
lib/buddy.js
lib/buddy.js
'use strict'; const { spawn } = require('child_process'); const cache = require('./cache'); const callable = require('./utils/callable'); const chalk = require('chalk'); const cnsl = require('./utils/cnsl'); const compact = require('lodash/compact'); const configFactory = require('./config'); const flatten = require('...
JavaScript
0.000001
@@ -4651,46 +4651,8 @@ ) %7B%0A - console.log('changed', filepath);%0A
6efb29b3261d0c503b887b1b859b26acdc373406
fix platform config check for Windows 64-bit
lib/build.js
lib/build.js
module.exports = exports = build /** * Module dependencies. */ var fs = require('fs') , path = require('path') , glob = require('glob') , which = require('which') , asyncEmit = require('./util/asyncEmit') , createHook = require('./util/hook') , win = process.platform == 'win32' exports.usage = 'Invoke...
JavaScript
0.000001
@@ -3207,24 +3207,34 @@ rm = config. +variables. target_arch
ab9296794732a9a4cce1cc3b249b6af61bb8682e
Convert AlignmentView to use the new DatatableComponent.
genome_designer/main/static/js/alignment_view.js
genome_designer/main/static/js/alignment_view.js
/** * @fileoverview List of alignments. */ gd.AlignmentView = Backbone.View.extend({ el: '#gd-page-container', initialize: function() { this.render(); }, render: function() { $('#gd-sidenav-link-alignments').addClass('active'); this.updateDatatable(); }, /** * Updates the datatable vie...
JavaScript
0
@@ -239,24 +239,25 @@ ('active');%0A +%0A this.upd @@ -257,429 +257,59 @@ his. -up dat -eD ata -ta ble -();%0A %7D,%0A%0A /**%0A * Updates the datatable view based on the data available.%0A *%0A * @param %7Barray%7D data List of objects to display%0A * @param %7Barray%7D column_config List of column...
32d204a13850cccdf4aaa137e2bf56d304207e68
Remove useless call to Error constructor
lib/error.js
lib/error.js
'use strict'; var util = require('util'); // // Expose the contructor. // module.exports = ParseError; /** * An error thrown by the parser on unexpected input. * * @constructor * @param {String} input The unexpected input. * @param {String} message The error message. * @param {Number} [index] The character pos...
JavaScript
0
@@ -413,28 +413,8 @@ ) %7B%0A - Error.call(this);%0A Er
66452b4ae493c4f1c4d4e2e0c644b385738282bc
change return value to self
src/base.js
src/base.js
var EventEmitter = require('events').EventEmitter; /** * Base Class * * @params Object::options * @return Base::Instance */ var Base = function Base(options) { 'use strict'; // Set options to an empty object if passed options is empty if (typeof options !== 'object') { options = {}; } ...
JavaScript
0.000001
@@ -2454,37 +2454,36 @@ %7D%0A return -value +this ;%0A%7D;%0A%0ABase.proto @@ -3530,16 +3530,88 @@ 1);%0A%7D;%0A%0A +Base.prototype.parent = function() %7B%0A return this.get('parent');%0A%7D;%0A%0A module.e
505b795275b49f4ff9ad04b750a5471256796512
Update base.js
src/base.js
src/base.js
'use strict'; var njr = require('./core'), nj = require('nornj'), React = require('react'), renderTmplTag = require('./renderTmplTag'), registerTmpl = require('./registerTmpl'), docReady = require('./docReady'); njr.registerTmpl = registerTmpl; njr.docReady = docReady; nj.assign(njr, renderTmplTag); //Set...
JavaScript
0.000001
@@ -412,16 +412,66 @@ tH: true +,%0A delimiters: %7B%0A start: '%7B',%0A end: '%7D'%0A %7D %0A%7D);%0A%0Ava @@ -735,8 +735,9 @@ r = njr; +%0A
24e0ee6ce2a647921ee0de57fab59ce62f2af6ec
Update CSS selector
github-diff-whitespace/github-diff-whitespace.js
github-diff-whitespace/github-diff-whitespace.js
( function( querystring ){ var querystringToObject = function( querystring ){ var params = {}; querystring.replace( new RegExp( '([^?=&]+)(=([^&]*))?', 'g' ), function( $0, $1, $2, $3 ) { params[ $1 ] = $3; } ); return params; }; var objectToQueryString = function( params ){ v...
JavaScript
0
@@ -2216,14 +2216,26 @@ es . -meta . +file-header .file- acti
a88f42005c94216f3785aaa1db4c1f3efa0efed0
update file /lib/hello.js
lib/hello.js
lib/hello.js
var express = require('express'); var bodyParser = require('body-parser'); var cors = require('cors'); function helloRoute() { var hello = new express.Router(); hello.use(cors()); hello.use(bodyParser()); // GET REST endpoint - query params may or may not be populated hello.get('/', function(req, res) { ...
JavaScript
0.000002
@@ -670,21 +670,26 @@ -callback(err) +if (err) throw err ;%0A @@ -941,37 +941,53 @@ docs are :- ' + +JSON.stringify( docs) +) ;%0A%0A inser @@ -1263,37 +1263,53 @@ docs are :- ' + +JSON.stringify( docs) +) ;%0A%0A i @@ -1611,21 +1611,37 @@ :- ' + +JSON.stringify( docs) +) ;%0A%0A...
c2b212a61d31b7d14b54a6f00613cbd167c168e2
Add flag to clone all projects' repositories
bin/projects-clone.js
bin/projects-clone.js
#!/usr/bin/env node exports.command = { description: '`git clone` a project', arguments: '<project>' }; if (require.main !== module) { return; } var path = require('path'); var program = require('commander'); var spawn = require('child_process').spawn; var config = require('../lib/config.js'); var paths = req...
JavaScript
0
@@ -147,16 +147,100 @@ urn;%0A%7D%0A%0A +var async = require('async');%0Avar chalk = require('chalk');%0Avar fs = require('fs');%0A var path @@ -511,24 +511,93 @@ ties.js');%0A%0A +program.option('-a, --all', 'clone all projects with a repository');%0A program.opti @@ -738,215 +738,37 @@ );%0A%0A -var projectName ...
9b72df69e1dd0d462f0c614f82a12834963ffdc9
clean request options object
lib/index.js
lib/index.js
var url = require('url'); var qs = require('querystring'); var http = require('http'); var EventVat = require('eventvat'); var request = require('request'); var streamify = require('streamify'); var Hash = require('hashish'); var FORMATS = require('./formats'); var parseTime = require('./uti...
JavaScript
0.000001
@@ -2334,16 +2334,112 @@ ptions); +%0A delete requestOptions.quality;%0A delete requestOptions.start;%0A delete requestOptions.filter; %0A%0A if (
1b951701ece70345976925cc0b0dfffdd27b19b8
Remove logic to skip if not HTML in textConverted
src/body.js
src/body.js
/** * body.js * * Body interface provides common methods for Request and Response */ import {convert} from 'encoding'; import bodyStream from 'is-stream'; import toArrayBuffer from 'buffer-to-arraybuffer'; import {PassThrough} from 'stream'; import FetchError from './fetch-error.js'; const DISTURBED = Symbol('di...
JavaScript
0
@@ -3879,155 +3879,8 @@ ) %7B%0A -%09%09// skip encoding detection altogether if not html/xml/plain text%0A%09%09if (!/text%5C/html%7Ctext%5C/plain%7C%5C+xml%7C%5C/xml/i.test(ct)) %7B%0A%09%09%09return buffer;%0A%09%09%7D%0A%0A %09%09re
7e38532951a725382f584b0231cfcb7d5d3aa6c2
Check errors
lib/index.js
lib/index.js
// Dependencies var Cheerio = require("cheerio") , Request = require("request") , CliBox = require("cli-box") , AnsiParser = require("ansi-parser") ; // Constants const LEVELS = { "#eeeeee": "⬚" , "#d6e685": "▢" , "#8cc665": "▤" , "#44a340": "▣" , "#1e6823": "■" } , DA...
JavaScript
0.000001
@@ -875,24 +875,110 @@ callback) %7B%0A +%0A if (!username) %7B%0A return callback(new Error(%22Invalid username.%22));%0A %7D%0A%0A var url @@ -1121,24 +1121,260 @@ ack(err); %7D%0A + if (res.statusCode === 404) %7B%0A return callback(new Error(%22User doesn't exist.%22));%0A ...
6cb924485f28f779d7699c238762344b88f736f8
Support passing in arguments or an array of urls
lib/index.js
lib/index.js
var Url = require('url'), Path = require('path'), glob = require('glob'), _ = require('underscore'); exports.getCommonPrefix = function (url1, url2) { var minLength = Math.min(url1.length, url2.length), commonPrefixLength = 0; while (commonPrefixLength < minLength && url1[commonPrefixLength...
JavaScript
0
@@ -2012,55 +2012,8 @@ %7D;%0A%0A -// I'm sure this could be done more elegantly:%0A expo @@ -2052,24 +2052,118 @@ on (urls) %7B%0A + if (!Array.isArray(urls)) %7B%0A urls = Array.prototype.slice.apply(arguments);%0A %7D%0A%0A var comm @@ -2183,16 +2183,16 @@ s = %5B%5D;%0A - var @@ -2210,16...
4e18e151a9d9c3d0f8e3c7891ba1219f8dbb4352
Fix typo in ArtifactRepositories observable
src/app/UI/lib/managers/artifacts/client/observables/artifact_repositories.js
src/app/UI/lib/managers/artifacts/client/observables/artifact_repositories.js
import TypeList from "ui-observables/type_list"; class CodeRepositories extends TypeList { constructor(initialOpts) { const defaultOpts = { type: "artifactrepo.repository" }; super(Object.assign({}, defaultOpts, initialOpts)); } } export default CodeRepositories;
JavaScript
0.000001
@@ -50,20 +50,24 @@ %0A%0Aclass -Code +Artifact Reposito @@ -295,12 +295,16 @@ ult -Code +Artifact Repo
c243f6dd56f672a10c9ce1d1f12e7332d935a09f
Fix lint issues
lib/index.js
lib/index.js
import HttpTransport from 'lokka-transport-http'; import {parse} from 'url'; import basicAuthHeader from 'basic-auth-header'; export default class HttpAuthTransport extends HttpTransport { constructor(endpoint, options={}) { if (!endpoint) { throw new Error('endpoint is required!'); } options.head...
JavaScript
0.000003
@@ -214,17 +214,19 @@ options -= + = %7B%7D) %7B%0A @@ -885,8 +885,9 @@ );%0A %7D%0A%7D +%0A
815fe7d1aaf1b66cbe88c6e97366925f12ca7202
kill em' all
serialize.js
serialize.js
function serialize(foo) { var results = [], count = 0, responses = 0; // call all functions at once, sorting out the callback responses as they come for (var i in arguments) { count++; arguments[i](function(sequence, data) { console.log('callback: '+sequence); results[sequence] = data; responses+...
JavaScript
0.000001
@@ -438,20 +438,21 @@ aka -cut +kill them -off +all )%0A%7D%0A
88f2e25c83e9a57f2a4d85309e05e87052ae3551
refactor index.js
lib/index.js
lib/index.js
const events = require('events'); const job = require('./src/job'); const serial = require('./src/serial'); const server = require('./src/server'); const file = require('./src/file'); const stats = require('./src/stats'); const defaultConfig = require('./config.json'); function Plotter(_config) { const config ...
JavaScript
0.000192
@@ -1,12 +1,26 @@ +'use strict'%0A%0A const events @@ -35,25 +35,24 @@ re('events') -; %0Aconst job @@ -50,19 +50,16 @@ nst job - = requir @@ -72,17 +72,16 @@ rc/job') -; %0Aconst s @@ -111,17 +111,16 @@ serial') -; %0Aconst s @@ -150,17 +150,16 @@ server') -; %0Aconst f @@ -162,18 +162,16 @@ st file ...
0ed6bb5bd5f263ef831b990e1f9b66cd3b6127c0
change dtype from int8 to uint8
lib/index.js
lib/index.js
'use strict'; // MODULES // var copy = require( 'utils-copy' ), isArrayLike = require( 'validate.io-array-like' ), isMatrixLike = require( 'validate.io-matrix-like'), isNumber = require( 'validate.io-number-primitive' ), matrix = require( 'dstructs-matrix' ), validate = require( './validate.js' ); // FUNCTIONS ...
JavaScript
0.000005
@@ -1238,16 +1238,17 @@ shape, ' +u int8' );
7acf3cbadab94515934a9f20f5c43031038cbe0f
remove code for unsupported feature autoLocate
src/L.Control.Locate.js
src/L.Control.Locate.js
L.Control.Locate = L.Control.extend({ options: { position: 'topleft', drawCircle: true, follow: false, // follow with zoom and pan the user's location // range circle circleStyle: { color: '#136AEC', fillColor: '#136AEC', fillO...
JavaScript
0
@@ -5176,103 +5176,8 @@ );%0A%0A - if (this.options.autoLocate) %7B%0A map.locate(self._locateOptions);%0A %7D%0A%0A
507fadf8ca11c0e512fca98c6e5b667fab5361c5
fix formats
lib/index.js
lib/index.js
/// strftime /// https://github.com/samsonjs/strftime /// @_sjs /// /// Copyright 2010 Sami Samhuri <sami.samhuri@gmail.com> /// MIT License ;(function() { var DefaultLocale = { days: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ], shortDays: [ 'Sun', 'Mon', 'Tue'...
JavaScript
0.000006
@@ -80,16 +80,23 @@ ht 2010 +- 2011 Sami Sam @@ -1316,16 +1316,62 @@ tLocale; +%0A locale.formats = locale.formats %7C%7C %7B%7D %0A%0A
ef7b89045f37b81f532f08e0514e89bedd30b50f
Fix import for run command
lib/index.js
lib/index.js
const initCommand = require('./init/init.command') const runCommand = require('./run.command') const deployCommand = require('./deploy.command') module.exports = exports = { initCommand, runCommand, deployCommand }
JavaScript
0.000001
@@ -77,16 +77,20 @@ e('./run +/run .command
4d7cbc3f27e4ebaadde1bbe1d32f456c454d34b1
update for page home call
lib/index.js
lib/index.js
'use strict'; var integration = require('analytics.js-integration'); var Bloomreach = module.exports = integration('Bloom Reach') .global('BrTrk') .option('acctId', '') .mapping('customMappings'); Bloomreach.prototype.page = function (page) { console.log(page.name()); var acctId = this.options.acctId; va...
JavaScript
0
@@ -247,20 +247,19 @@ -console.log( +var name = page @@ -265,19 +265,49 @@ e.name() -) ;%0A + if (name === %22Home%22) %7B%0A var @@ -328,32 +328,36 @@ options.acctId;%0A + var br_data @@ -355,32 +355,36 @@ br_data = %7B%7D;%0A%0A + br_data.acct @@ -393,32 +393,36 @@ d = ac...
ba8831b23e38092780992c5d1ef4ff80ca368132
Resolve references randomly
lib/index.js
lib/index.js
'use strict'; var container = require('./util/container'), traverse = require('./util/traverse'), formats = require('./util/formats'), random = require('./util/random'); var deref = require('deref'), deepExtend = require('deep-extend'); function reduce(obj) { var mix = obj.anyOf || obj.oneOf || obj...
JavaScript
0
@@ -892,16 +892,36 @@ try %7B%0A + var seen = %7B%7D;%0A%0A retu @@ -953,22 +953,405 @@ s), %5B%5D, -reduce +function(sub) %7B%0A var arity = Math.round(Math.random() * 3);%0A%0A var id = sub.$ref;%0A%0A delete sub.$ref;%0A%0A if (id) %7B%0A if (!seen%5Bid%5D) %7B%0A see...
9da64c6b9089b5966f174cc69915154d8018fe1b
fix console.log
src/cull.js
src/cull.js
import settings from './settings'; import viewer from './viewer'; let prevTime; let frames = 0; let fps = 60; let lastFps = 60; let steadyCount = 0; let hidden = false; let cullDistance = settings.cullDistance; let fogNear = 100; document.addEventListener('visibilitychange', () => { hidden = document.hidden; }); e...
JavaScript
0.000004
@@ -1271,25 +1271,16 @@ ce to', -settings. cullDist
19d7b8b326abd1e5726603bc901860c4cb1bc1c1
change composeInsertString api to make it simpler but it's not backward compatible
lib/index.js
lib/index.js
var mysql = require('mysql'); var utils = { isSubAArrray:function(subArray,arr){ return subArray.every(function(elm){ return arr.indexOf(elm) > -1 }) } } var operation = {}; /** * 用于组成sql语句中的insert字符串,比如说有 * var insertString = operation.composeInsertString(data); * 则可以用于以下方法组成插入...
JavaScript
0
@@ -190,24 +190,18 @@ %0A%7D%0Avar o -peration +ut = %7B%7D;%0A/ @@ -360,52 +360,8 @@ ring -.columnStr+' values '+insertString.valueStr; %0A *%0A @@ -423,61 +423,22 @@ rns -%7B%7BcolumnStr: string, valueStr: string%7D%7D%0A */%0Aoperation +string%0A */%0Aout .com @@ -1055,19 +1055,12 @@ urn -%7BcolumnStr: +' ...
978dbafe429091d967ebab3cd8bc8dcefdbed0e6
add getWeekData function
src/date.js
src/date.js
Date.prototype.getWeek = function() { var onejan = new Date(this.getFullYear(),0,1); return Math.ceil((((this - onejan) / 86400000) + onejan.getDay()+1)/7); }
JavaScript
0.000001
@@ -1,12 +1,25 @@ +// get week %0A Date.prototy @@ -169,8 +169,448 @@ )/7);%0A%7D%0A +%0A// get the start and end date of curretn week%0A%0Avar getWeekDate = function()%7B%0A var curr = new Date; // get current date%0A var first = curr.getDate() - curr.getDay(); // First day is the day of the month - the day of the...
355fe29478031dfe5f5a12da6d0a8e6b1b19e1b3
fix broken default value
lib/components/fields/input.js
lib/components/fields/input.js
import merge from 'merge' import Field from './field' import updateValue from '../methods/update-value' import { isUndefined } from 'util'; export default function() { return merge.recursive(Field(), { props: { placeholder: { type:String, required:false, default:'' }, debounce:{ ...
JavaScript
0.000003
@@ -101,44 +101,8 @@ lue' -%0Aimport %7B isUndefined %7D from 'util'; %0A%0Aex @@ -408,11 +408,9 @@ lt: -isU +u ndef
3f06056e4f4a5ffb345b192d606b82ef813236ba
Install plugins
lib/index.js
lib/index.js
// Constructor var BloggifyLib = module.exports = {}; // Internal cache var _cache = {}; BloggifyLib.initApi = function () { // Init database BloggifyLib.database = new JsonDB(); // Add apis BloggifyLib.post = require(__dirname + "/api/post"); BloggifyLib.file = require(__dirname + "/api/file");...
JavaScript
0.000002
@@ -5409,24 +5409,919 @@ %7D);%0A %7D%0A%0A + // Init plugins%0A for (var plugin in Config.plugins) %7B%0A (function (cPlugin, plugin) %7B%0A Debug.log(%22Downloading %22 + plugin + %22 plugin.%22, %22info%22);%0A var pathToPlugin = (options.root %7C%7C _cache._root) + %22/plugin...
a83c07f11155923eeca8069a68149126104c74c3
Add locatioin to geo-tagging
lib/controllers/geo-tagging.js
lib/controllers/geo-tagging.js
'use strict'; var request = require('request'); var Q = require('q'); var config = require('../config'); const ds = require('../services/documents'); const errorReporter = require('../services/error-reporter'); const _ = require('lodash'); const plugins = require('../../plugins'); const geoTagController = plugins.get...
JavaScript
0.000001
@@ -783,16 +783,52 @@ itude);%0A + var location = req.body.location;%0A const
ce56494e4432c1fdb277c693f3aa392eb49b1832
remove () replace (now in lib)
lib/index.js
lib/index.js
'use strict'; var fs = require('fs'); var MailParser = require("mailparser").MailParser; var Encoder = require('node-html-encoder').Encoder; var AnyfetchClient = require('anyfetch'); var async = require('async'); /** * HYDRATING FUNCTION * * @param {string} path Path of the specified file * @param {string} docume...
JavaScript
0
@@ -2962,83 +2962,8 @@ me;%0A - var fn2 = fn.replace(/%5C(/g, %22%22);%0A fn2 = fn2.replace(/%5C)/g, %22%22);%0A @@ -3457,9 +3457,8 @@ + fn -2 ;%0A
2501d9a1951ce7fa998f3b7cde8f55c6ab746976
Add min and max validation
lib/index.js
lib/index.js
/** * Mongoose validator for Elefrant Framework * * @package elefrant-mongoose-validator * @author Marcos Sanz <marcos.sanz@13genius.com> */ 'use strict'; var validator = require('mongoose-validator'); module.exports = function () { // Check if is Boolean validator.extend('isBoolean', function () { ...
JavaScript
0
@@ -531,24 +531,334 @@ ct type');%0A%0A + // Check if is value is more than min%0A validator.extend('min', function (min) %7B%0A return min %3C= this.str;%0A %7D, 'Value less than minimum');%0A%0A // Check if is value is less than max%0A validator.extend('max', function (max) %7B%0A return...
b46eb8047c2d6be8129a38d74a999b279ee39652
Parse the instances
lib/index.js
lib/index.js
// Dependencies var EngineTools = require("engine-tools") , Typpy = require("typpy") ; function Parser(input, callback) { if (Typpy(input, String)) { return EngineTools.getComposition(input, { iName: true }, function (err, data) { if (err) { return callback(err); } Parser(data, ...
JavaScript
1
@@ -17,72 +17,117 @@ var -EngineTools = require(%22engine-tools%22)%0A , Typpy = require(%22typpy +Typpy = require(%22typpy%22)%0A , NodeElm = require(%22./composition/node%22)%0A , Composition = require(%22./composition %22)%0A @@ -152,16 +152,39 @@ r(input, + positions, moduleInfo, callbac @@ -192,145 +192,...
95d3ad72b058158281bb0b238fafd1cbcdd1f3d8
modify disk.js to pass standard test
src/disk.js
src/disk.js
var fs = require('graceful-fs') var steno = require('steno') var Q = require('q') module.exports = { // No async read readSync: function (file) { if (fs.existsSync(file)) { return fs.readFileSync(file, 'utf-8') } }, write: function (file, data) { steno.writeFile(file, data, function (err) { ...
JavaScript
0
@@ -602,18 +602,16 @@ rror(err -or ))%0A
213dc8329b401c688a34b4e782463df423ca40a7
optimize plugin: cut early if showErrors is false
lib/index.js
lib/index.js
'use strict' const Fs = require('fs') const Path = require('path') const TemplatePath = Path.join(__dirname, './error.html') exports.register = (server, options, next) => { // default option values const defaults = { showErrors: false } const config = Object.assign(defaults, options) //...
JavaScript
0.001291
@@ -307,16 +307,177 @@ tions)%0A%0A + // cut early if %60showErrors%60 is false%0A // no need to read the template or hook extension point%0A if (!config.showErrors) %7B%0A return next()%0A %7D%0A%0A // r
f363a5130d0093b4d7712cf7fb8b085922fc64d0
Remove error 404 on deletion
lib/index.js
lib/index.js
'use strict'; /** * This object contains all the handlers to use for this providers */ var googleapis = require('googleapis'); var rarity = require('rarity'); var async = require('async'); var CancelError = require('anyfetch-provider').CancelError; var config = require('../config/configuration.js'); var retrieveFile...
JavaScript
0.000003
@@ -4708,18 +4708,162 @@ Client, -cb +function(err) %7B%0A if(err && err.toString().match(/expected 204 %22No Content%22, got 404 %22Not Found%22/i)) %7B%0A err = null;%0A %7D%0A%0A cb(err);%0A %7D );%0A%7D;%0A%0Aa
975d1e92a341e58d6833a54aee85de9e82af59da
Add templates helpers to elix exports.
src/elix.js
src/elix.js
/* * The complete set of Elix elements and mixins. * * This file is the primary entry point to the Elix package, so its exports are * what is obtained if you write `import * from 'elix'`. However, you can opt * to ignore this file, and directly import the sources you want from the /src * folder. * * This file...
JavaScript
0
@@ -5541,24 +5541,75 @@ ymbols.js';%0A +import * as templatesImport from './templates.js';%0A import * as @@ -5867,32 +5867,74 @@ symbolsImport;%0A +export const templates = templatesImport;%0A export const upd
a8614dd5a626463881c8da98332aaa838adb1e38
实现解析页面背景颜色。
src/enbx.js
src/enbx.js
var fs = require('fs'), xml2js = require('xml2js'), unzip = require('unzip'), Snap = require('snapsvg'), path = require('path'); var unzipDir = '.test/test.enbx.unzip/'; function rel(p){ return path.resolve(unzipDir + p); } function open(file) { parseReference(refs=>{ fs.createReadStre...
JavaScript
0
@@ -1103,24 +1103,270 @@ %7D%0A %7D%0A + xml2js.parseString(slideXmlString, function (err, result) %7B%0A console.log(result);%0A var background = color(result.Slide.Background%5B0%5D);%0A console.log(background);%0A $('#slide g').attr(%7Bfill: '#'+background%7D);%0A %7D);%0A ...
e0d8a176b216d8b18a307bb24ee9212da44d0710
change global engine
lib/index.js
lib/index.js
'use strict'; const debug = require('debug')('paloma-router'); const pathToRegexp = require('path-to-regexp'); const validator = require('./validate'); const compose = require('koa-compose'); const cons = require('consolidate'); module.exports = function (route) { const method = route.method.toUpperCase(); const ...
JavaScript
0.000021
@@ -365,16 +365,272 @@ (path);%0A + // current route's engine following this rule:%0A //%0A // if there is %60route.engine%60, use %60route.engine%60,%0A // otherwise, if there is something like %60app.engine = 'jade'%60,%0A // use %60app.engine%60.%0A // finally use 'ejs'%0A // for more info palomajs/paloma#5%...
3a967abec30b5e4dfd7e53dc40e435ace5e8d338
fix logCount
lib/index.js
lib/index.js
'use strict' var util = require('util') var winston = require('winston') var Transport = winston.Transport var common = require('winston/lib/winston/common') var _dirname = require('path').dirname var LogseneJS = require('logsene-js') var flat = require('flat') var Logsene = function (options) { Transport.call(this,...
JavaScript
0.000001
@@ -414,16 +414,35 @@ rue%0A %7D%0A + this.logCount = 0 %0A this. @@ -1665,31 +1665,24 @@ if (self. -logger. logCount %3C 1 @@ -1903,23 +1903,16 @@ + self. -logger. logCount @@ -4437,16 +4437,34 @@ back) %7B%0A + this.logCount++%0A var me
ff2bc4d9d22695bf8315652f15efc0b9d7e27575
Set attributes via prototype & remove custom toJSON
lib/index.js
lib/index.js
"use strict"; var util = require("util"); var AbstractError = require("./AbstractError.js"), defaultRenderer = require("./defaultRenderer.js"); /** * generate Error-classes based on AbstractError * * @param error * @returns {Function} */ function erroz(error) { var errorFn = function (data) { ...
JavaScript
0
@@ -301,24 +301,215 @@ n (data) %7B%0A%0A + for (var errKey in errorFn.prototype) %7B%0A if (errorFn.prototype.hasOwnProperty(errKey)) %7B%0A this%5BerrKey%5D = errorFn.prototype%5BerrKey%5D;%0A %7D%0A %7D%0A%0A //ad @@ -558,16 +558,22 @@ a = data + %7C%7C %...
8c03c54736c9b89e4a490ca5cf0110b052000e30
fix bug with no hears action
lib/index.js
lib/index.js
const api = require('../api') const getLastMessage = require('./modules/getlastmessage') const isMember = require('./modules/ismember') class Botact { constructor(options) { if (!options.confirmation || !options.group_id || !options.token) { throw 'Bot\'s options isn\'t full.' } this.msg = [] ...
JavaScript
0
@@ -1965,16 +1965,17 @@ if ( +! Object.k @@ -1997,22 +1997,8 @@ ngth - === undefined ) %7B%0A
7498750a396692bf4067ef32fda5c820fef25eff
Add comments.
lib/index.js
lib/index.js
/** * Module dependencies. */ var uri = require('url'); /** * robots.txt middleware. * * This middleware generates a `/robots.txt` page, giving instructions to web * crawlers using the Robots Exclusion Protocol. * * This protocol is a de-facto standard. It has never been formally ratified by * a standards b...
JavaScript
0
@@ -1311,16 +1311,442 @@ html%0A *%0A + * Microsoft has published a series of blob posts detailing their implemention%0A * of REP, including support for a Crawl-delay directive:%0A *%0A * - http://web.archive.org/web/20080501131342/http://blogs.msdn.com:80/webmaster/archive/2008/02/12/announcing-crawling-improvement...
ca210ce78f9d248bd3fdf4adb05d97fb77b37082
use useUnifiedTopology on connection
lib/index.js
lib/index.js
'use strict'; const mongodb = require('mongodb'); const { ImplementationError } = require('flora-errors'); /** * @param {Object} filter * @returns {Object} */ function buildQuery(filter) { const or = filter.map((andFilters) => { const and = []; andFilters.forEach((condition) => { if...
JavaScript
0.000001
@@ -7489,16 +7489,32 @@ t(url, %7B +%0A useNewU @@ -7527,16 +7527,70 @@ er: true +,%0A useUnifiedTopology: true%0A %7D);%0A
1c6f56fe6fa943da5c3235ee77362a6a0c4c1484
add exports for testing
lib/index.js
lib/index.js
#!/usr/bin/env node /** * Created by apizzimenti on 1/1/17. */ var data = require("./weather"); data.ip(data.location);
JavaScript
0
@@ -63,20 +63,23 @@ */%0A%0Avar -data +weather = requi @@ -100,20 +100,99 @@ );%0A%0A -data.ip(data +weather.ip(weather.location);%0A%0Amodule.exports = %7B%0A ip: weather.ip,%0A location: weather .loc @@ -180,27 +180,28 @@ cation: weather.location -) +%0A%7D ;%0A
60d6b661d53817c667f12f815d392a294ed63ac0
Fix returned response info
lib/index.js
lib/index.js
const fetch = require('fetch-everywhere'); const objectAssign = require('es6-object-assign').assign; const qs = require('qs'); const url = require('url'); const defaultOptions = { headers: { accept: 'application/json', }, }; module.exports = jsonClient; function jsonClient(baseUrl, options) { const resolvedBase...
JavaScript
0
@@ -1173,62 +1173,24 @@ urn -objectAssign(%7B%7D, response, %7B%0A%09%09%09%09%09%09body: body,%0A%09%09%09%09%09%7D) +%5Bresponse, body%5D ;%0A%09%09 @@ -1217,29 +1217,27 @@ unction (res -ponse +ult ) %7B%0A%09%09%09const @@ -1241,28 +1241,55 @@ nst -body = response. +response = result%5B0%5D;%0A%09%09%09const ...
2823ad920b866f3a1d14d2255b33f3853daa7b22
Fix error handling when no connection to server
lib/index.js
lib/index.js
var request = require('request'); var _ = require('lodash'); var util = require('util'); var Q = require('q'); var fs = require('fs'); var Client = function(config) { this.config = _.defaults({}, config || {}, { 'host': "https://api.gumroad.com/v2/", 'token': null }); this.http = request.d...
JavaScript
0.000003
@@ -613,16 +613,26 @@ usCode = + response? respons @@ -643,16 +643,20 @@ atusCode + : 0 ;%0A re @@ -1427,20 +1427,16 @@ alue();%0A - %0A thi @@ -1582,16 +1582,28 @@ error && + response && respons
f343e6e6287b2a115e6465c50a26839dd7cbc13a
remove unreachable line
lib/index.js
lib/index.js
const Readable = require('stream').Readable; const Writable = require('stream').Writable; const Duplex = require('stream').Duplex; /** * Proxy some events from underlying readable and writable streams. */ const SOURCE_EVENTS = ['error', 'close']; const DEST_EVENTS = ['drain', 'close']; /** * @param {Object} op...
JavaScript
0.00009
@@ -1032,49 +1032,8 @@ %3E %7B%0A - if (!this._source) %7B return; %7D%0A
8a6d1b3626a3c1e0e5d71fb4786c44244bf33eac
Maintain backward compatibility without forcing height/width. This change gives us the best of both worlds: 1. Old code continues to work as it did, but now the flipped content responds to browser resizes as you would expect 2. New code uses dynamic sized flip content right away A setting `autoSize` was added with a de...
src/flip.js
src/flip.js
(function( $ ) { var flip = function($dom) { $dom.data("flipped", true); var rotateAxis = "rotate" + $dom.data("axis"); $dom.find(".front").css({ transform: rotateAxis + ($dom.data("reverse") ? "(-180deg)" : "(180deg)"), "z-index": "0" }); $dom.find(".back").css({ transform: ro...
JavaScript
0
@@ -1762,19 +1762,20 @@ Height: -tru +fals e,%0A @@ -1792,16 +1792,45 @@ ceWidth: + false,%0A autoSize: true%0A @@ -2621,24 +2621,85 @@ .height());%7D + else if (settings.autoSize) %7Bfaces.css(%7B'height': '100%25'%7D);%7D %0A i @@ -2755,16 +2755,76 @@ dth());%7D + else if (settings...
3f37f32aac17caabca9e4215db7ee22e665d08cf
Fix runId
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.000008
@@ -2888,24 +2888,48 @@ ker, msg) %7B%0A + msg = JSON.parse(msg)%0A if (msg.ru @@ -2953,32 +2953,8 @@ urn%0A - msg = JSON.parse(msg)%0A wo
06b7825b1855776b04a089c547079f2de620308e
handle unexpected error correctly
lib/index.js
lib/index.js
export function eslint() { process.env.NODE_ENV = 'test'; const { CLIEngine } = require('eslint'); return new Promise((resolve, reject) => { const cli = new CLIEngine(); const report = cli.executeOnFiles([ '.' ]); const formatter = cli.getFormatter(); if (report.errorCount...
JavaScript
0.000012
@@ -632,22 +632,56 @@ re -solve( +ject('Unexpected error. Report:', report );%0A %7D
e3c2e8ff6fc6abf7a2490b58dd6cd8dac2b8980b
Remove loader.configure()
lib/index.js
lib/index.js
'use strict'; var HistoryModelService = require('./HistoryModelService'); module.exports = function (sails) { var loader = require('sails-util-mvcsloader')(sails); loader.configure(); return { initialize: function (next) { loader.inject(function (err) { HistoryModelService.createModels(sails,...
JavaScript
0
@@ -164,30 +164,8 @@ ls); -%0A loader.configure(); %0A%0A
270c11b9f7e54f88bd936b6c6c2dc8bcbd40e220
Remove moot variable. (#101)
lib/index.js
lib/index.js
'use strict'; const path = require('path'); const BinWrapper = require('bin-wrapper'); const pkgConf = require('pkg-conf'); const pkg = require('../package'); const { hugoVersion } = pkg; const baseUrl = `https://github.com/gohugoio/hugo/releases/download/v${hugoVersion}/`; const binNameMap = { darwin: { ia32:...
JavaScript
0.000013
@@ -124,19 +124,31 @@ ;%0Aconst -pkg +%7B hugoVersion %7D = requi @@ -165,41 +165,17 @@ kage -');%0A%0Aconst %7B hugoVersion %7D = pkg; +.json');%0A %0Acon
f389237e7b2d76395466a362ee55b08325852273
Print key on click (try 2)
www/js/keyManager.js
www/js/keyManager.js
function displayKeys() { // Retrieve all keyPairs var sql = "select K.name from key K"; dbRetrieve(sql, [], function(res) { // Populate key list var html = '<hr>'; for (var i = 0; i < res.rows.length; ++i) { var keyName = res.rows.item(i).name; html += '<a...
JavaScript
0
@@ -312,17 +312,20 @@ ml += '%3C -a +span target= @@ -357,25 +357,26 @@ Key( -keyName);%22%3E&ensp; +$(this).text());%22%3E ' + @@ -388,17 +388,20 @@ me + '%3C/ -a +span %3E%3Cbr/%3E%3Ch @@ -538,24 +538,25 @@ (keyName) %7B%0A +%0A // Retri
7089919b7d3ea302268c628f0b2c85d0528a2d26
add streamName override
lib/index.js
lib/index.js
/** * Module dependencies. */ var ads = require('ad-params'); var clone = require('clone'); var cookie = require('cookie'); var extend = require('extend'); var integration = require('analytics.js-integration'); var json = require('segmentio/json@1.0.0'); var localstorage = require('store'); var protocol = require('...
JavaScript
0.000001
@@ -767,16 +767,44 @@ .io/v1') +%0A .option('streamName', '') ;%0A%0A/**%0A @@ -3593,16 +3593,142 @@ + path;%0A + if (this.options.streamName) %7B%0A var queryString = '?streamName=' + this.options.streamName;%0A url += queryString;%0A %7D%0A%0A var he
80d9cd7139c0959b5bbd10ad0675619aee19d6d2
Optimize create method in PusherService a little bit
lib/index.js
lib/index.js
var APNNotification = require('./APNNotification'); var GCMNotification = require('./GCMNotification'); module.exports = { create: function (type, options) { switch (type) { case 'ios': return new APNNotification(options); case 'android': return new GCMNotification(options); def...
JavaScript
0
@@ -1,25 +1,26 @@ var -APNNotification = +pushers = %7B%0A ios: req @@ -48,31 +48,20 @@ on') -;%0Avar GCMNotification = +,%0A android: req @@ -85,16 +85,18 @@ cation') +%0A%7D ;%0A%0Amodul @@ -115,210 +115,291 @@ %7B%0A -create: function (type, options) %7B%0A switch ( +/**%0A * Create instance of Pu...
2b31e4478e057ef9180873f9df9ae9dbf7d61ddb
Fix assessment link.
src/home.js
src/home.js
import React from 'react' import Style from './app.style' const sampleCardsData = [ { title: "Vacuum Handbook", description: `The first thing you should read when you start working at VacuumLabs.`, icon: "fa-users", //updatedAt: "20160107T14:39:21", link: "/vacuum-book/", }, { title: "Cod...
JavaScript
0
@@ -951,33 +951,34 @@ link: %22/ -tech-book +assessment /%22,%0A %7D,%0A%5D%0A%0A
9b6062385eed27ca35893c0ce1cd24601936c036
correct prop name (#33)
src/home.js
src/home.js
import React from 'react' import Style from './app.style' const houses = [ { title: 'Digital Park', link: '/house-rules-radlinskeho/', }, { title: 'Košice', link: '/house-rules-kosice/', }, { title: 'Prague', link: '/house-rules-prague/', }, { title: 'Brno', link: '/house-...
JavaScript
0.000003
@@ -4974,28 +4974,28 @@ ubMenu%7D%0A -href +link =%7Blink%7D%0A
f3e749d5ff3b6b88acca893ad188d086a9bc0930
Fix ?uselang to work correctly at any path depth
routes/helpers/render.js
routes/helpers/render.js
'use strict'; // External dependencies const config = require('config'); const url = require('url'); // Internal dependencies const languages = require('../../locales/languages'); let render = { // extraVars - object containing any vars we want to pass along to template // extraJSConfig - object containing any v...
JavaScript
0
@@ -1525,17 +1525,25 @@ rse(req. -u +originalU rl).path
23d05bef699371cec3943363bcb451e186dedcef
Improve the Mocha binary path resolution again (add Windows support)
lib/mocha.js
lib/mocha.js
'use strict'; var grunt = require('grunt'); var path = require('path'); var BOOL_OPTIONS = [ 'invert', 'colors', 'no-colors', 'growl', 'debug', 'bail', 'recursive', 'debug-brk', 'ignore-leaks' ]; var STRING_OPTIONS = [ 'reporter', 'ui', 'grep', 'timeout', 'slow'...
JavaScript
0
@@ -600,16 +600,20 @@ md += '/ +../. bin/moch
cb89ef3fcac8f601f0064f2693c4db2308244382
Remove else
lib/model.js
lib/model.js
var sql = require('psqljs'), q = require('q'), pg = require('pg'), Record = require('./record'); function Model(table, connectionString, primaryKey) { this._table = table; this._connectionString = connectionString; this._primaryKey = primaryKey || 'id'; this._query = null; this._methods = {}; } ...
JavaScript
0.000001
@@ -1791,23 +1791,9 @@ %7D%0A - else %7B%0A +%0A @@ -1818,18 +1818,16 @@ ;%0A - - for(var @@ -1861,26 +1861,24 @@ gth; i++) %7B%0A - reco @@ -1928,22 +1928,18 @@ ;%0A - - %7D%0A - de @@ -1963,24 +1963,16 @@ cords);%0A - %7D%0A %7D);%0A
cdc623ecfd414ff79161056fe6305bdbcbcb51cb
Add postid support
lib/model.js
lib/model.js
var moment = require('moment'), db = hexo.db, Schema = db.Schema, config = hexo.config, siteUrl = config.url + '/', sourceDir = hexo.source_dir, catDir = (config.category_dir || 'categories') + '/', tagDir = (config.tag_dir || 'tags') + '/', defaultCategory = config.default_category || 'uncategorized', ...
JavaScript
0
@@ -401,32 +401,50 @@ = new Schema(%7B%0A + postid: Number,%0A title: String, @@ -2133,16 +2133,53 @@ figLink%0A + .replace(':postid', this.postid)%0A .rep
fa825b81e68e898c9c48c3ff4b1fef4336a53f5c
Add Metronome
lib/music.js
lib/music.js
/* * CometJS / music.js * copyright (c) 2014 Susisu */ "use strict"; function end () { module.exports = Object.freeze({ }); } end();
JavaScript
0.000003
@@ -127,17 +127,1366 @@ e(%7B%0A -%7D + %22Metronome%22: Metronome%0A %7D);%0A%7D%0A%0Avar ev = require(%22electronvolt%22);%0A%0A%0A// TODO: define music and ticker interface%0Afunction Metronome(music, fps, ticker) %7B%0A this._music = music;%0A this._fps = fps;%0A this._ticker ...
c288310e27bd8e1b516895b58f38a00d6ec4ab18
Remove unused _initOrder export
lib/order.js
lib/order.js
var util = require("./util"), crossCount = require("./order/crossCount"), initLayerGraphs = require("./order/initLayerGraphs"), initOrder = require("./order/initOrder"), sortLayer = require("./order/sortLayer"); module.exports = function() { var config = { iterations: 24 // max number of iteratio...
JavaScript
0
@@ -487,40 +487,8 @@ );%0A%0A - self._initOrder = initOrder;%0A%0A se
076363be5a28d153c03a0f3229a6b552d3b5551a
Use underscore for iteration
lib/plato.js
lib/plato.js
'use strict'; var path = require('path'); var fs = require('fs-extra'); // node api with sugar var _ = require('lodash'); var glob = require('glob'); var bunyan = require('bunyan'); var Promise = require('bluebird'); // local lib var util = require('./util'), OverviewHistory = require('./models/OverviewHistory'),...
JavaScript
0.000033
@@ -2027,22 +2027,22 @@ -files.forEach( +_.each(files, func
68a621ac4f800742d5ed419d7f442940c908135d
update for bulk fetch of documents, equivalent to waterline 'in' query
lib/query.js
lib/query.js
/* * The Query interface for the adapter * */ var helper = require('./helper'); var _ = require('lodash'); var knownViews = []; //TODO: cache for knownViews saves a check roundtrip //bypass the Logging var logger = 'undefined' !== typeof sails ? sails.log : console; if (!logger.debug) logger.debug = console.info...
JavaScript
0
@@ -644,16 +644,41 @@ k fetch%0A +%09%09%09var ids = %7Bkeys: id%7D;%0A %09%09%09db.fe @@ -683,16 +683,17 @@ fetch(id +s , opts,
87af127f56ef44e7c40fdea570c5ada4ded1504a
Use bundleDir instead of imageDir
lib/sibyl.js
lib/sibyl.js
var Emitter = require('events').EventEmitter var gunzip = require('gunzip-maybe') var copy = require('copy-dir') var assert = require('assert') var tar = require('tar-fs') var path = require('path') var pump = require('pump') var fs = require('fs') module.exports = Sibyl function Sibyl (opts) { if (!(this instanceo...
JavaScript
0.000001
@@ -467,28 +467,29 @@ t')%0A%0A this. -imag +bundl eDir = opts. @@ -1329,28 +1329,29 @@ xtract(this. -imag +bundl eDir)%0A pu @@ -1419,12 +1419,13 @@ his. -imag +bundl eDir
dd5509994f3f46a134d9e743d29bf057e8936948
Switch to es5 to match the rest of the lib
lib/sites.js
lib/sites.js
function Sites( api ) { this.api = api; } Sites.prototype.query = function( args ) { return new Promise( function( resolve, reject ) { this.api .get( '/sites' ) .query( args ) .end( function( err, res ) { if ( err ) { return reject( err ); } return resolve( res.body ); }); }); } Sit...
JavaScript
0
@@ -408,16 +408,24 @@ romise( +function ( resolv @@ -435,19 +435,16 @@ reject ) - =%3E %7B%0A%09%09sel @@ -449,16 +449,17 @@ elf.api%0A +%09 %09%09.get( @@ -504,22 +504,31 @@ key )%0A%09%09 +%09 .end( +function ( err, r @@ -535,14 +535,12 @@ es ) - =%3E %7B%0A +%09 %09%09%09i @@ -547,24 +547,25 @@ f (...
049b3f3ccad16355058baf4baf7400207f66c397
Update slack.js
lib/slack.js
lib/slack.js
'use strict'; var Botkit = require('botkit'); var token = '' || process.env.SLACK_API_TOKEN; var staff_token = process.env.STAFF_SLACK_API_TOKEN; var controller = Botkit.slackbot({ debug: true }); controller.spawn({ token: token }).startRTM(); var staffController = Botkit.slackbot({ debug: true }); controlle...
JavaScript
0.000001
@@ -296,33 +296,38 @@ ebug: true%0A%7D);%0A%0A -c +staffC ontroller.spawn(
2fae60d3cd08568950a3a606eaf76d5e75010f0e
Set Slide#isActive right before dispatching an event
lib/slide.js
lib/slide.js
import { EventTarget } from './utils'; /** * @param {HTMLElement} element * @param {object} options */ class Slide extends EventTarget { constructor(element, options) { super(); this.element = element; this.options = options; this.element.addEventListener('click', () => { ...
JavaScript
0
@@ -962,39 +962,8 @@ n;%0A%0A - this._isActive = true;%0A @@ -992,16 +992,16 @@ ount++;%0A + @@ -1058,16 +1058,48 @@ eClass); +%0A%0A this._isActive = true; %0A @@ -1210,40 +1210,8 @@ n;%0A%0A - this._isActive = false;%0A @@ -1325,32 +1325,32 @@ itedSlideClass,%0A...
53c191bc584b90511721c2643ba702494184b856
revert wrong push (interceptors was removed)
src/main.js
src/main.js
import Vue from 'vue'; import VueRouter from 'vue-router'; import VueResource from 'vue-resource'; import App from './App.vue'; import { routes } from './routes'; import store from './store/store'; // Init vue-resource Vue.use(VueResource); Vue.http.options.root = 'http://localhost:8080'; // Init vue-router Vue.use(...
JavaScript
0
@@ -189,24 +189,122 @@ re/store';%0A%0A +// Init vue-router%09%09%0Aimport %7B init as Router %7D from './routes';%09%09%0Aconst router = Router(store);%0A %0A // Init vue- @@ -334,16 +334,18 @@ ource);%0A +// Vue.http @@ -369,273 +369,685 @@ http +s :// -localhost +nodejs-playground-ade.herokuapp.com';%0AVue.htt...
a49a0d8d18572c556bd0b50a6e310c80877ac97d
remove stray log
lib/swarm.js
lib/swarm.js
module.exports = Swarm var debug = require('debug')('bittorrent-tracker') var randomIterate = require('random-iterate') // Regard this as the default implementation of an interface that you // need to support when overriding Server.getSwarm() function Swarm (infoHash, server) { this.peers = {} this.complete = 0 ...
JavaScript
0.00001
@@ -862,48 +862,8 @@ %7D%0A - console.log('FEROSS', params.compact)%0A cb
3bb6389f894b5171a7cec898358976e9b56e020d
Use same table prefix for metrics as other places
src/main.js
src/main.js
#!/usr/bin/env node var data = require('./data'); var debug = require('debug')('hooks:bin:server'); var path = require('path'); var Promise = require('promise'); var taskcreator = require('./taskcreator'); var validator = require('taskcluster-lib-validate'); var v1 = require('./v1'); ...
JavaScript
0.000005
@@ -1346,20 +1346,21 @@ prefix(' -da ta +ble .hooks')
43aab6d15efdb77fc575ac6e270d7eb1e7dfe6f7
Make compatible with Matt's additions
src/main.js
src/main.js
/* global guardianAPIKey, createUrl, fetchAPI, fromGuardianToStandardArticleFormat */ const buildArticleNode = template => article => { template.querySelector('h2').textContent = article.title; template.querySelector('p').innerHTML = article.tagline; return document.importNode(template, true); }; function buil...
JavaScript
0
@@ -746,24 +746,130 @@ tandfirst',%0A + 'from-date': '2016-06-20',%0A 'to-date': '2016-06-20',%0A pageSize: '50',%0A 'order-by': 'newest',%0A 'api-key
30124b2bc58061530cb11a1f88abebf1317dcc65
modify init args
src/main.js
src/main.js
const Player = require('./Player'); const makeEditor = require('./makeEditor'); const stayBottom = require('./stayBottom'); const coverAll = require('./coverAll'); const Element = require('./createElementWithEvent'); const partial = require('../templates/'); const initPosition = require('./initPosition'); const erd = ...
JavaScript
0.000006
@@ -515,16 +515,22 @@ e, model +s = %7B%7D ) =%3E %7B%0A @@ -5122,52 +5122,42 @@ -model = Object.assign(%7B +// Default %0A - +const files -: + = %5B%7B%0A - @@ -5182,18 +5182,16 @@ - - code%0A @@ -5197,34 +5197,10 @@ - %7D%5D%0A %7D, model %7C%7C %7B%7D) +%7D%5D...
78f30f3583ebd505c30141a87d10bb07c825c7e5
update utils.js
lib/utils.js
lib/utils.js
'use strict'; const fs = require('fs'); const path = require('path'); let controllerDir; let appName; function getAppName() { const parts = __dirname.replace(/\\/g, '/').split('/'); return parts[parts.length - 2].split('.')[0]; } /** * @param {boolean} isInstall * @returns {string} */ f...
JavaScript
0.000001
@@ -106,16 +106,198 @@ ame;%0D%0A%0D%0A +/**%0D%0A * returns application name%0D%0A *%0D%0A * The name of the application can be different and this function finds it out.%0D%0A *%0D%0A * @param %7Bboolean%7D isInstall%0D%0A * @returns %7Bstring%7D%0D%0A */%0D%0A function @@ -309,24 +309,24 @@ ppName() %7B%0D%0A - ...
5cbbb4933f6dff6b6c37512e338a889fb04f41c3
Add footer to complex options
src/main.js
src/main.js
var FC = $.fullCalendar = { version: "<%= meta.version %>", internalApiVersion: 5 }; var fcViews = FC.views = {}; $.fn.fullCalendar = function(options) { var args = Array.prototype.slice.call(arguments, 1); // for a possible method call var res = this; // what this function will return (this jQuery object by def...
JavaScript
0
@@ -1179,17 +1179,16 @@ %09%7D%0A%09%7D);%0A -%09 %0A%09return @@ -1305,16 +1305,27 @@ eader',%0A +%09'footer',%0A %09'button
6b6947efa5c9ff06a33a7ab359697fec63424440
revert test commit
src/main.js
src/main.js
/* External dependencies */ import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' /* Internal dependencies */ import Routes from './routes' import reduxService from './services/reduxService' require('./styles/global.scss') //test commit const virtualDOM = ( <Provider sto...
JavaScript
0.000001
@@ -267,22 +267,8 @@ ')%0A%0A -//test commit%0A cons
6a705b584adcff0840db2171399b65e5c0c4821e
Fix linting issue
src/main.js
src/main.js
import Vue from 'vue' import App from '@/App' new Vue({ el: '#app', render: h => h(App) })
JavaScript
0.000001
@@ -40,16 +40,27 @@ @/App'%0A%0A +const vm = new Vue( @@ -65,22 +65,8 @@ e(%7B%0A - el: '#app',%0A re @@ -86,8 +86,27 @@ App)%0A%7D)%0A +%0Avm.$mount('#app')%0A
5d875a88f0be350bfe3533b679cb441b87e56920
Fix error
src/main.js
src/main.js
import localforage from 'localforage'; import Vue from 'vue' import SpotifyWebApi from 'spotify-web-api-js' import App from './App.vue' var spotify = new SpotifyWebApi(); Object.definePrototype(Vue.prototype, '$spotify', {value: spotify}); localforage.config({ name: 'sortzzi' }); window.vm = new Vue({ el: '#ap...
JavaScript
0.000004
@@ -54,16 +54,40 @@ m 'vue'%0A +import Vuex from 'vuex'%0A import S @@ -155,16 +155,103 @@ p.vue'%0A%0A +Vue.use(Vuex);%0A%0Aconst store = new Vuex.Store(%7B%0A state: %7B%0A loggedIn: false%0A %7D%0A%7D);%0A%0A var spot @@ -277,17 +277,16 @@ bApi();%0A -%0A Object.d @@ -293,22 +293,21 @@ efinePro -totype +...
09c64994f0c3bb7ba27be7a3f42cdf2c76576cdd
Add a `previously` helper to `utils`.
lib/utils.js
lib/utils.js
"use strict"; var _ = require("underscore"); function isObject(object) { return !!object && typeof object === "object" && !(object instanceof Array) && !(object instanceof Date); } exports.isObject = isObject; // from http://blog.vjeux.com/2011/javascript/object-difference.html function difference(template, over...
JavaScript
0.000001
@@ -6,16 +6,34 @@ strict%22; +%0A/* global JSON */ %0A%0Avar _ @@ -1354,16 +1354,496 @@ :1%7D%0A%7D;%0A%0A +// We ask the question %22what were the previous values of an object%22?%0A// %7Ba:1, b:1, c:1%7D %7Ba:2%7D returns %7Ba:1%7D%0Afunction previously(currentValue, partial) %7B%0A var previous = %7B%7D;%0A ...