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
7aac5baeedb13ba9190a628071f867dceaa4d710
Make sure model is updated when polls change.
plugins/poll/assets/javascripts/controllers/poll.js.es6
plugins/poll/assets/javascripts/controllers/poll.js.es6
import computed from "ember-addons/ember-computed-decorators"; export default Ember.Controller.extend({ isMultiple: Ember.computed.equal("poll.type", "multiple"), isNumber: Ember.computed.equal("poll.type", "number"), isRandom : Ember.computed.equal("poll.order", "random"), isClosed: Ember.computed.equal("poll...
JavaScript
0
@@ -55,16 +55,83 @@ rators%22; +%0Aimport %7B observes %7D from %22ember-addons/ember-computed-decorators%22; %0A%0Aexport @@ -736,24 +736,151 @@ rchived%22),%0A%0A + @observes(%22post.polls%22)%0A _updatePoll() %7B%0A this.set(%22model%22, this.get(%22post.pollsObject%22)%5Bthis.get(%22model.name%22)%5D);%0A ...
e4ec1a59fb046a0fa5cd46669eb46e73898d6130
Fix allready used variable
public/js/controllers/admin/request/absence-edit.js
public/js/controllers/admin/request/absence-edit.js
define(['q'], function(Q) { 'use strict'; return ['$scope', '$location', 'Rest', 'AbsenceEdit', function($scope, $location, Rest, AbsenceEdit) { AbsenceEdit.initScope($scope); // resources var calendars = Rest.admin.calendars.getResource(); var cal...
JavaScript
0.000001
@@ -2410,73 +2410,8 @@ %7D%0A%0A%0A - var userPromise = loadRequestAndUserPromise();%0A%0A %0A @@ -2625,17 +2625,31 @@ dEvents( -u +loadRequestAndU serPromi @@ -2650,16 +2650,18 @@ rPromise +() , person
d248a0bc16cb6c8eeda431d8bf585379f170da35
Update order of props
lib/models/Project.js
lib/models/Project.js
'use babel'; import mobx, { observable, computed, extendObservable, action } from 'mobx'; import fs from 'fs'; import os from 'os'; import CSON from 'season'; export default class Project { @observable props = {} @computed get title() { return this.props.title; } @computed get paths() { const paths ...
JavaScript
0
@@ -837,24 +837,41 @@ title: '',%0A + group: '',%0A paths: @@ -929,33 +929,16 @@ gs: %7B%7D,%0A - group: '',%0A de
4f6bf436eea4bfd0e7f061056017afa7c022a483
Don’t fall-through to calling the callback multiple times.
index.js
index.js
/** * @license * traceur-loader v0.2.0 * https://github.com/ndhoule/traceur-loader/issues/new * * Copyright 2014, Nathan Houle <nathan@nathanhoule.com> * Licensed under the MIT license. See LICENSE.md. */ 'use strict'; var _ = require('lodash'); var chalk = require('chalk'); var support = require('./lib/suppor...
JavaScript
0.999986
@@ -1050,24 +1050,31 @@ ePath);%0A +return callback(nul @@ -1666,16 +1666,23 @@ );%0A%0A +return callback
8a923d3b9174accb61c1f51c52506e81cb533440
add translations for ssr
src/server/ssr/index.js
src/server/ssr/index.js
/** * @flow * @desc */ import React, {type Node} from 'react' import fs from 'fs' import {renderToString} from 'react-dom/server' import Helmet from 'react-helmet' import createHistory from 'history/createMemoryHistory' import {ServerStyleSheet, StyleSheetManager} from 'styled-components' import {configureApp, confi...
JavaScript
0.000004
@@ -35,53 +35,114 @@ eact -, %7Btype Node%7D from 'react'%0Aimport fs + from 'react'%0Aimport %7BreadFileSync%7D from 'fs'%0Aimport path from 'path'%0Aimport %7Bsync as globSync%7D from ' -fs +glob '%0Aim @@ -368,35 +368,35 @@ gure -App, configureRootComponent +RootComponent, configureApp %7D fr @@ -465,16 +465,4...
f97c3eed8efbd700a713f3dd89cad3b260f5d2ec
return to _this.options = options || {};
lib/module-private.js
lib/module-private.js
'use strict'; // if you must declare private/shared (among all instantiations) do it here // e.g. var moduleName = 'module'; var SetupModule = function setupModule(options, eventHandlers) { if (!(this instanceof SetupModule)) { return new SetupModule(options, eventHandlers); } options = options ||...
JavaScript
0.999999
@@ -881,24 +881,60 @@ tantiations%0A + _this.options = options %7C%7C %7B%7D;%0A%0A var logg @@ -1684,16 +1684,22 @@ if ( +_this. options.
998e07d00717fcb93c6fca95775c209ab42e5192
update javascript comment
pubs_ui/manager/static/js/views/ContributorsView.js
pubs_ui/manager/static/js/views/ContributorsView.js
/* jslint browser:true */ define([ 'bootstrap', 'backbone.stickit', 'models/ContributorTypeCollection', 'models/PublicationContributorCollection', 'views/BaseView', 'views/ContributorTabView', 'hbs!hb_templates/contributors' ], function(bootstrap, stickit, ContributorTypeCollection, PublicationContributorCollec...
JavaScript
0
@@ -756,52 +756,10 @@ del -will represent the contributors attribute in +be a P
761b82ac998e19806c83209184ceee127255afca
Clarify ee.List
toolkits/landcover/impl/bands.js
toolkits/landcover/impl/bands.js
/** * @license * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
JavaScript
0.002197
@@ -2515,16 +2515,25 @@ %3Cstring%3E +%7C!ee.List %7D indice @@ -2885,74 +2885,90 @@ ces -if they're EEObjects.%0A if (!(indices instanceof ee.ComputedObject +for ee.List, which%0A // is only evaluated server-side.%0A if (Array.isArray(indices )) %7B
7470d5c8adc974d7e5e872f3fe10aacee6288421
Remove bluebird
rco_links_rewrite/support/find_urls.js
rco_links_rewrite/support/find_urls.js
// Find urls within selected domain in posts // 'use strict'; const _ = require('lodash'); const argparse = require('argparse'); const mongoose = require('mongoose'); const stream = require('stream'); const pipeline = require('util').promisify(stream.pipeline); const URL = require('url'); let parser ...
JavaScript
0.000024
@@ -808,49 +808,8 @@ = %7B%0A - promiseLibrary: require('bluebird'),%0A
9cdf4d84d6506bf13cf2afeb9a30df32d7bf331e
Job not accesible
lib/mongoose-queue.js
lib/mongoose-queue.js
'use strict'; /** * Dependencies */ var os = require('os'); var mongoose = require('mongoose'); var Schema = mongoose.Schema; var _ = require('underscore'); var JobSchema = require('../schemas/job-schema'); /** * Implements a queue based on mongoose. * * @class MongooseQueue */ class MongooseQueue { /** * ...
JavaScript
0.999311
@@ -1789,35 +1789,38 @@ );%0A%09%09%09else if (! -job +number )%0A%09%09%09%09return cb(
7ae2f26694d3fe2ce7ecddc9f0de27aa03c3c56d
fix event method
index.js
index.js
'use strict'; var vm = require('vm'); var _ = require('lodash'); var path = require('path'); var inline = require('inline-source').sync; var config = require('./lib/config'); var ChildCompiler = require('./lib/childCompiler'); function InlineResourcePlugin(options) { this.count = 0; this._templateLoader = nul...
JavaScript
0.000068
@@ -8341,14 +8341,17 @@ sync -Series +Waterfall (con @@ -8371,16 +8371,20 @@ T_EVENT, + %7B%7D, functio
0643d38f9c84bcaa11a9ffef2bc84009e4afecfe
add missing errors
app/errors.js
app/errors.js
var errorMap = { "bb_signin_error": "There was an error signing you in. Are you sure the password is correct?", "bb_signin_rate_limit": "We're sorry, but schedule importing is currently unavailable. Try again in 30 minutes.", "dalton_creds_incorrect": "The username or password was incorrect.", "missing_params": "Re...
JavaScript
0.002484
@@ -10,16 +10,233 @@ Map = %7B%0A +%09%22bb_no_grade%22: %22We couldn't find what grade you're in. If you're a faculty member, this is a known issue that we're working to fix. If you're a student, please contact us with the Feedback button at the top-right.%22,%0A %09%22bb_sig @@ -732,23 +732,152 @@ were in -correc...
b948e1969bf417c948ec9f440d5382a075dfb960
load playlist in console
js/playlist.js
js/playlist.js
(function ($){ var app = $.app; function Playlist(){} function savePlaylist(name) { var playlist_entries = []; var hash; var playlist = {}; $('.entry', '#playlist').each(function(){ hash = $.MD5($('.entry_action', this).data('muFile').path); playlist_entries.push(hash); }); ...
JavaScript
0.000001
@@ -82,19 +82,18 @@ st(name) - %7B%0A + var @@ -133,31 +133,9 @@ sh;%0A - var playlist = %7B%7D; %0A + @@ -292,24 +292,41 @@ ); %0A -p +app.P laylist +.favPlaylists %5Bname%5D = @@ -388,32 +388,39 @@ av_playlist__', +%0A JSON.stringify(p @@ -422,19 +422,233 @@ ify( -p +app.P laylis...
e373dcebf6e5ce17f4c03bb614d5112fc085c2c8
Throw when we don't know the answer.
index.js
index.js
'use strict'; function defaultPort(protocol) { if (typeof protocol !== 'number') { return defaultPort[protocol]; } for (const key in defaultPort) { if (Object.prototype.hasOwnProperty.call(defaultPort, key)) { if (defaultPort[key] === protocol) { return key; ...
JavaScript
0
@@ -86,44 +86,181 @@ ) %7B%0A - return defaultPort%5Bprotocol%5D +%0A if (Object.prototype.hasOwnProperty.call(defaultPort, protocol)) %7B%0A return defaultPort%5Bprotocol%5D;%0A %7D%0A%0A throw new Error('Unknown protocol.') ;%0A @@ -477,16 +477,62 @@ %7D%0A %7D +%0A%0A ...
2dcce82fe4f9973325989fb3ac466c7cade39e34
Fix check for using default cover image
core/client/controllers/settings/users/user.js
core/client/controllers/settings/users/user.js
var SettingsUserController = Ember.ObjectController.extend({ user: Ember.computed.alias('model'), email: Ember.computed.readOnly('user.email'), coverDefault: function () { return this.get('ghostPaths.url').asset('/shared/img/user-cover.png'); }.property('ghostPaths'), userDefault: functi...
JavaScript
0
@@ -516,33 +516,28 @@ if ( -typeof cover !== 'string' +Ember.isBlank(cover) ) %7B%0A
48f6cbea724c1c64f8c429ed8e2ea7dd53732155
extend alertbox test timeout
packages/veui/test/unit/specs/components/AlertBox.spec.js
packages/veui/test/unit/specs/components/AlertBox.spec.js
import { mount, config } from '@vue/test-utils' import AlertBox from '@/components/AlertBox' import { wait } from '../../../utils' config.stubs.transition = false describe('components/AlertBox', function () { it('should render title prop correctly by AlertBox', () => { let wrapper = mount( { compo...
JavaScript
0.000033
@@ -204,16 +204,38 @@ on () %7B%0A + this.timeout(3000)%0A%0A it('sh @@ -1838,44 +1838,15 @@ ync -function () %7B%0A this.timeout(3000) +() =%3E %7B %0A @@ -2772,31 +2772,8 @@ %3E %7B%0A - this.timeout(3000)%0A
f6dcc62737e4dda844e6e65c0949a5f706a0ca16
remove duplicate class.
runtime/test/demo-flow-test.js
runtime/test/demo-flow-test.js
/** * @license * Copyright (c) 2017 Google Inc. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io...
JavaScript
0.000001
@@ -1518,2244 +1518,8 @@ %0A%7D%0A%0A -class FakeSlotManager %7B%0A constructor(pec) %7B%0A this.pec = pec;%0A this.expectQueue = %5B%5D;%0A this.specs = new Map();%0A this.onExpectationsComplete = () =%3E undefined;%0A %7D%0A%0A expectGetSlot(name, slotId) %7B%0A this.expectQueue.push(%7Btype: 'getS...
4a1ea2f98ea32ecaf4201b10ef3c7264cfa3f4a2
fix updating Community Size Limit from admin ui
tapestry/apps/tapestry/priv/www/static/admin.js
tapestry/apps/tapestry/priv/www/static/admin.js
if (typeof NCI === 'undefined') NCI = {}; NCI.connectionURL = "ws://" + location.host + "/clientsock.yaws"; //NCI.connectionURL = "ws://10.48.2.81:28080/clientsock.yaws"; NCI.limits = {}; NCI.loading = $(".loading"); if (typeof NCI.Connection === 'undefined') NCI.Connection = {}; if (typeof NCI.Admin ===...
JavaScript
0
@@ -1394,26 +1394,26 @@ tLimit($(%22#n -ci +ew CommunitySiz
a19829b20d844d624aa716481e004dd6e39fab2e
Fix one more test to use constants module
test/app/bellows/changepassword/e2e/ng-app.spec.js
test/app/bellows/changepassword/e2e/ng-app.spec.js
'use strict'; var baseUrl = browser.baseUrl || 'http://jamaicanpsalms.scriptureforge.local'; // browser.baseUrl is specified on Protractor command line via "protractor --baseUrl=foo" // If the --baseUrl parameter is not given on command line, browser.baseUrl will be an empty string function noop() { ; } function che...
JavaScript
0
@@ -8,16 +8,70 @@ rict';%0A%0A +var constants = require('../../../../testConstants');%0A var base @@ -3237,33 +3237,33 @@ = -loginPage +constants .memberUsern @@ -3292,25 +3292,25 @@ word = -loginPage +constants .memberP
6c0e690f1e13cd18d9241b9b6ba78f008adf5fe7
Fix lint
packages/vulcan-core/lib/modules/containers/withSingle.js
packages/vulcan-core/lib/modules/containers/withSingle.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { graphql, useQuery } from 'react-apollo'; import gql from 'graphql-tag'; import { getSetting, singleClientTemplate, Utils, extractCollectionInfo, extractFragmentInfo } from 'meteor/vulcan:lib'; export function getGraphQLQueryFromOpti...
JavaScript
0.000032
@@ -1,81 +1,4 @@ -import React, %7B Component %7D from 'react';%0Aimport PropTypes from 'prop-types'; %0Aimp @@ -87,20 +87,8 @@ rt %7B - getSetting, sin
d022bb37d6308bf346f423dbfbed8dd6fb240f86
Add tests around injecting trayName for interesting project request
test/client/common/gateways/ProjectsGatewayTest.js
test/client/common/gateways/ProjectsGatewayTest.js
import '../../UnitSpec' import {describe, it, before, beforeEach} from 'mocha' import {expect} from 'chai' import sinon from 'sinon' import proxyquire from 'proxyquire' describe('projects gateway', () => { let subject, Gateway before(() => { Gateway = {} subject = proxyquire('../../../../src/client/commo...
JavaScript
0
@@ -223,17 +223,37 @@ Gateway +, projects, promised %0A - %0A befor @@ -421,75 +421,358 @@ -Gateway.post = sinon.stub().returns(new Promise(() =%3E %7B%7D, () =%3E %7B%7D) +projects = %5B%7B%0A trayId: 'id',%0A projectId: 'some-id',%0A name: 'name',%0A stage: 'stage',%0A prognosis: '...
af92204f6dee673bad0813e03daf64ff16c6c74f
add default root
app/js/app.js
app/js/app.js
import Montuno from "./montuno/Montuno"; import * as qs from "./shared/querystring"; import { isValidNoteName } from "./shared/validator"; import { montunos } from "./montunos"; document.addEventListener("DOMContentLoaded", () => { addMontunosTo(montunos)(document.getElementById("montunos-listbox")); addEventL...
JavaScript
0.000001
@@ -536,16 +536,22 @@ t %7B root + = %22C%22 %7D = qs.
b984237f71467c3c5665a10ab9f67590e5efb593
add fetch polyfill
app/client.js
app/client.js
const React = require('react'), Bacon = require('baconjs'), appState = require('./client/appState'), TodoApp = require('./client/formApp') const stateStream = appState({ initialState: window.INITIAL_MODEL }) stateStream.onValue((state) => { console.log(state) React.render(<TodoApp {.....
JavaScript
0.000001
@@ -157,16 +157,58 @@ ormApp') +,%0A fetch = require(%22whatwg-fetch%22) %0A%0A%0Aconst
c3f84b31d8535a48fbda3c4bc50cdf27dd703b01
修改如果有QQ信息,直接返回
js/postInfo.js
js/postInfo.js
<% $include["js/answer.js"]; $include["js/questions.js"]; var data = request.post; var validators = {}; var username = data.name || ''; $include["js/userInfo.js"]; $include["js/validator.js"]; %> (function(E){ var username = document.getElementById('username'); <% var path = require('path'); var fs = requir...
JavaScript
0
@@ -552,20 +552,23 @@ ts)%7B%0A%09%09%09 -data +var res = JSON. @@ -636,20 +636,19 @@ %E5%88%86%E4%B8%BA: ' + -data +res .score + @@ -655,16 +655,38 @@ '%22)');%0A +%09%09%09data = res.answer;%0A %09%09%09for ( @@ -698,23 +698,16 @@ in data -.answer ) %7B%0A%09%09%09%09 @@ -734,23 +734,16 @@ === data -.ans...
afb8477f7e134ffb0373793b5e79d86bedc5c38d
Update path replace for test_stores
lib/projectManager.js
lib/projectManager.js
'use strict'; module.exports = new ProjectManager(); var path = require('path'), map = require('map-stream'), vinylFs = require('vinyl-fs'), fs = require('fs'), glob = require('glob'), changed = require('gulp-changed'), packageConfig = require('../package.json'); var STORES = 'catberry_stores', COMPONENTS = '...
JavaScript
0.000001
@@ -2855,16 +2855,27 @@ tents = +new Buffer( file._co @@ -2876,24 +2876,35 @@ le._contents +.toString() %0A%09%09%09%09%09%09.repl @@ -2950,16 +2950,17 @@ '../..') +) ;%0A%09%09%09%09%09c
3ee2e831afd955e06a4e3d59acbf5b47475519ad
Update ShadowMesh.js
src/objects/ShadowMesh.js
src/objects/ShadowMesh.js
// File:src/objects/ShadowMesh.js /** * @author erichlof / http://github.com/erichlof */ // a shadow Mesh that follows its parent Mesh in the scene, but is confined to a single plane. THREE.ShadowMesh = function ( mesh ) { var shadowMaterial = new THREE.MeshBasicMaterial( { color: 0x000000, transparent:...
JavaScript
0
@@ -462,16 +462,21 @@ h.matrix +World ;%0A%09%0A%09thi
d11e6dbc7db92192d42c19787b2827ff519da3f2
Stop modifying the AWS prototype
index.js
index.js
// ## Load S3Stream // // Loads the base S3Stream class, which extends `stream.Writable`. var S3Stream = require('./lib/Stream'); // ## AWS SDK // // Load and export the AWS SDK. We will monkeypatch `AWS.S3's.prototype`. // // This module requires the AWS SDK module as a peer dependency, so it // must be present in th...
JavaScript
0.000001
@@ -134,391 +134,48 @@ ## -AWS SDK%0A//%0A// Load and export the AWS SDK. We will monkeypatch %60AWS.S3's.prototype%60.%0A//%0A// This module requires the AWS SDK module as a peer dependency, so it%0A// must be present in the parent package.%0Avar AWS = require('aws-sdk');%0Amodule.exports = AWS;%0A%0A// ## CreateWr...
04609ddd3f9eb2aa84ce7f57496b7edbfd886344
Update broccoli-funnel to latest syntax
index.js
index.js
/* eslint-env node */ 'use strict'; var Funnel = require('broccoli-funnel'); var findHost = require('./lib/utils/find-host'); module.exports = { name: 'ember-asset-loader', /** * If the app has specified `noManifest` to be generated, then we don't * include the shim for the manifest and the service initial...
JavaScript
0
@@ -34,13 +34,15 @@ ';%0A%0A -var F +const f unne @@ -73,19 +73,21 @@ nnel');%0A -var +const findHos @@ -380,19 +380,19 @@ ) %7B%0A -var +let tree = @@ -446,11 +446,13 @@ -var +const app @@ -583,13 +583,9 @@ e = -new F +f unne
e2be0b48380493bee3f3e677ad86f2abc994ea24
address mongoose deprecation warnings
app/config.js
app/config.js
const mongoose = require('mongoose'); const APP_NAME = 'Boilerplate API'; const ENV = process.env.NODE_ENV; const PORT = process.env.PORT || 5000; // database configs let MONGODB_URI = process.env.MONGODB_URI || 'mongodb://mongodb/boilerplate'; if (ENV === 'test') { MONGODB_URI = global.__MONGO_URI__; } mongoose....
JavaScript
0.000001
@@ -22,17 +22,17 @@ ire( -' +%22 mongoose ');%0A @@ -27,17 +27,17 @@ mongoose -' +%22 );%0A%0Acons @@ -49,17 +49,17 @@ _NAME = -' +%22 Boilerpl @@ -65,17 +65,17 @@ late API -' +%22 ;%0Aconst @@ -208,17 +208,17 @@ _URI %7C%7C -' +%22 mongodb: @@ -238,17 +238,17 @@ lerplate -' +%22 ;%0Aif (EN @@ -249,30 +...
3b5d079ffc8ca94b32f40494124609f509661574
Load extral model scripts
src/stores/templates.js
src/stores/templates.js
import JSZip from 'jszip'; import Vue from 'vue'; import { Mutations, Actions } from 'simput/src/stores/types'; import ModelManager from 'simput/src/core/ModelManager'; function loadScript(url) { return new Promise((resolve, reject) => { const body = document.getElementsByTagName('body')[0]; const script = d...
JavaScript
0
@@ -1141,308 +1141,35 @@ -if (!state.loaded%5Btype%5D && state.types%5Btype%5D && state.types%5Btype%5D.urls) %7B%0A commit(Mutations.UPDATE_TYPE_STATUS, %7B type, status: 'pending' %7D);%0A Promise.all(state.types%5Btype%5D.urls.map(loadScript)).then(() =%3E %7B%0A commit(Mutations.UPDATE_...
46bc8e782c3332c10b73582120511edabfc53aa1
resolve NativeModules require problem
index.js
index.js
'use strict'; var RNPhonePicker = require('NativeModules').RNPhonePicker; var PhonePicker = { select: function(callback) { RNPhonePicker.selectPhoneNumber(callback) } }; module.exports = PhonePicker;
JavaScript
0.000001
@@ -8,16 +8,84 @@ rict';%0A%0A +var React = require('react-native');%0Avar %7B NativeModules %7D = React;%0A var RNPh @@ -96,25 +96,16 @@ icker = -require(' NativeMo @@ -109,18 +109,16 @@ eModules -') .RNPhone
2c436803600ba480831e40eb3eff8a4fb5cadf7c
Add serviceWorker
app/js/app.js
app/js/app.js
(function() { "use strict"; //App var app = angular.module("HelloWorldApp", [ 'ngRoute', 'ngMessages' ]); //Routes app.config(function($routeProvider) { $routeProvider.when("/home", { templateUrl: 'templates/home.html' }); $routeProvider.when("/about", { templateUrl: 'templat...
JavaScript
0.000001
@@ -1171,48 +1171,408 @@ -function($scope)%7B%0A%0A $scope.team = +'serviceWorker',%0A function($scope, serviceWorker)%7B%0A%0A $scope.team = serviceWorker.getAll();%0A %7D %0A %5D%0A );%0A //Directive%0A app.directive('myWorker', function() %7B%0A return %7B%0A scope:%7B%0A ...
c8f3af3cb406451ff4e2014b336ede632037978a
extracted a common function getInstanceId
index.js
index.js
var AWS = require('aws-sdk'); AWS.config.update({accessKeyId: 'your-access-key', secretAccessKey: 'your-secret-access'}); AWS.config.update({region: 'your-region'}); var ec2 = new AWS.EC2(); module.exports.changeTag = function(timeout, oldTag, newTags, beforeHook) { timeout = timeout || 60 * 60 * 1000; beforeHoo...
JavaScript
0.999895
@@ -238,16 +238,17 @@ , oldTag +s , newTag @@ -477,663 +477,101 @@ -var params = %7B%0A Filters: %5B%0A %7B Name: 'instance-state-name', Values: %5B'running'%5D %7D,%0A %7B Name: 'tag-key', Values: oldTag.names %7D,%0A %7B Name: 'tag-value', Values: oldTag.values %7D%0A %5D%0A ...
317ede3e571564882a04e680f22d5d6191997af7
Update system-operators.js
src/system-operators.js
src/system-operators.js
exports.SystemOperatorOverRide = function () { var SystemOperators = ['ifaze', 'blakjack']; Users.User.prototype.hasSysopAccess = function () { if (SystemOperators.indexOf(this.userid) > -1 && this.authenticated) { return true; } else { return false; } }; };
JavaScript
0.000001
@@ -87,16 +87,41 @@ lakjack' +,'ryomaechizen','visualz' %5D;%0A%0A
1837cdf6fd1fbb9cee46e72d45af826b72181c1d
Improve failed render error handling
index.js
index.js
"use strict"; require("dotenv").config(); require('newrelic'); var express = require("express"); var helmet = require("helmet"); var readFile = require("fs-readfile-promise"); var components = require("server-components"); require("./components/item-feed/item-feed"); require("./components/item-carousel/item-carousel...
JavaScript
0.000001
@@ -1010,27 +1010,97 @@ %3E %7B%0A -res +console.error(error, error.message, error.stack);%0A res.status(500) .send(%22Panic @@ -1122,18 +1122,9 @@ der. - %22 + error +%22 );%0A
cd6ca3754c49fa0aad03aed0067161ba1ee5a97f
Make it better
js/src/core.js
js/src/core.js
//noinspection JSUnusedAssignment var dashlight = (function (module) { module.greeting = "Hello, world!"; return module; })(dashlight || {});
JavaScript
0.00136
@@ -145,8 +145,9 @@ %7C%7C %7B%7D);%0A +
d25364e205a8359646b7da36c8b7679bd9a501d9
fix node.js 7 caching messages in stacks
index.js
index.js
'use strict'; var util = require('util'); var isArrayish = require('is-arrayish'); var errorEx = function errorEx(name, properties) { if (!name || name.constructor !== String) { properties = name || {}; name = Error.name; } var errorExError = function ErrorEXError(message) { if (!this) { return new Error...
JavaScript
0
@@ -503,16 +503,17 @@ Error);%0A +%0A %09%09this.n @@ -529,32 +529,8 @@ e;%0A%0A -%09%09delete this.message;%0A%0A %09%09Ob @@ -725,16 +725,17 @@ %09%09%09%09if ( +! properti @@ -760,40 +760,104 @@ key) - && 'message' in properties%5Bkey%5D +) %7B%0A%09%09%09%09%09%09continue;%0A%09%09%09%09%09%7D%0A%0A%09%09%09...
95457fd462fcde8585619b2daab5e259054d4e03
fix name path
app/events.js
app/events.js
"use strict"; var Item = require('./transactions').item, List = require('./transactions').list, moment = require('moment'), _ = require('lodash'), when = require('when'), stripe = require('stripe')(process.env.STRIPE_KEY); // Model interactions module.exports = { save: function (trans) { var promise,...
JavaScript
0.001577
@@ -344,24 +344,26 @@ ew List();%0A%0A +%0A%0A promise @@ -1007,16 +1007,28 @@ : trans. +data.object. source.n
e9a198f9faeb2af9ba31e71985c85a4e0c18f759
add body parser
index.js
index.js
// var githubhook = require('githubhook'); // var githubEvents = githubhook({ // port: process.env.PORT || 3420, // secret: 'k1b1b0t@kibibit' // }); // var github = require('octonode'); // //var ghrepo = client.repo('pksunkara/hub'); // // ghrepo.status('18e129c213848c7f239b93fe5c67971a64f183ff', { // // "state":...
JavaScript
0.000004
@@ -3083,24 +3083,36 @@ pp.post('*', + jsonParser, function(re @@ -3257,20 +3257,23 @@ && req. -body +payload .action @@ -3340,20 +3340,23 @@ ' + req. -body +payload .repo.na @@ -3377,20 +3377,23 @@ ' + req. -body +payload .head.re
ba968483a87696691623c0fec1fedc8dd50c4de2
rollback initializing code and remove functions don't need
js/template.js
js/template.js
/* global TrelloPowerUp */ var WHITE_ICON = './images/icon-white.svg'; var GRAY_ICON = './images/icon-gray.svg'; var parkMap = { acad: 'Acadia National Park', arch: 'Arches National Park', badl: 'Badlands National Park', brca: 'Bryce Canyon National Park', crla: 'Crater Lake National Park', dena: 'Denali ...
JavaScript
0
@@ -3083,642 +3083,8 @@ %7D;%0A%0A -/*%0Avar cardButtonCallback = function(t, options)%7B%0A var items = Object.keys(funcMap).map(function(funcCode)%7B%0A var urlForCode = 'http://serene-stream-62085.herokuapp.com/' + funcCode + '/';%0A return %7B%0A text: funcMap%5BfuncCode%5D,%0A url: urlForCode,%0A...
e6a3fce0bfdaefc27a399a96ff75e281551bb6b7
support value fields on reference range
lib/schemas/result.js
lib/schemas/result.js
module.exports = { "id": "result", "type": "object", "properties": { "identifiers": { "type": "array", "items": { "$ref": "cda_id" }, "minItems": 1 }, "result_set": { "$ref": "cda_coded_entry" }, ...
JavaScript
0
@@ -2181,32 +2181,823 @@ type%22: %22string%22%0A + %7D,%0A %22value%22: %7B%0A %22type%22: %22object%22,%0A %22properties%22: %7B%0A %22code_system_name%22: %7B%0A ...
a09c46c1376bf68931a490dd2f73bd95797a472b
include hidden files in distFiles
index.js
index.js
var RSVP = require('rsvp'); var glob = require('glob'); var DeployPluginBase = require('ember-cli-deploy-plugin'); var path = require('path'); module.exports = { name: require('./package').name, createDeployPlugin: function(options) { var DeployPlugin = DeployPluginBase.extend({ name: options.name, ...
JavaScript
0
@@ -826,16 +826,27 @@ r: true +, dot: true %7D)%0A @@ -1945,16 +1945,27 @@ putPath +, dot: true %7D);%0A%0A
d6570799db6dc32ae1781b8adae3f70cbc89aa68
set tracked time
js/template.js
js/template.js
TrelloPowerUp.initialize({ 'card-buttons': function(t, options){ return [{ icon: './images/icon-gray.svg', text: 'Time track', callback: function(t){ return t.overlay({ title: 'Time track', url: './overlay.html', args: { user: '' } }); } },...
JavaScript
0.000002
@@ -835,17 +835,17 @@ on: ', 2 -0 +2 );%0A%0A va @@ -1268,116 +1268,8 @@ il;%0A -%0A console.log('gEstimationSheetUrl: ', gEstimationSheetUrl);%0A console.log('userEmail: ', userEmail);%0A%0A @@ -1646,57 +1646,8 @@ t(); -%0A%0A console.log(%22Time: %22, timeTracked); %0A @@ -1708,16 +170...
fc3cc4c74de8ffe97dbeb0300089e1e805bc26c9
call correct super method
index.js
index.js
var path = require('path'); module.exports = { name: 'Ember CLI Simple Auth', treeFor: function treeFor(name) { var tree = this._super.included(app); this.replace = this.replace || require('broccoli-string-replace'); if (name === 'vendor') { var config = this.project.config(this.app.env); ...
JavaScript
0.00005
@@ -138,33 +138,37 @@ this._super. -included( +treeFor(this. app);%0A th
7524f7dd0fe879242c0a7ec542a2f867e3392f9c
use v3 not v3 test
app/js/app.js
app/js/app.js
'use strict'; angular.module('app.services', ['restangular']); angular.module('app.controllers', ['app.services']); angular.module('app', [ 'ngSanitize', 'ui.router', 'ui.bootstrap', 'ui.tinymce', 'restangular', 'localytics.directives', 'app.filters', 'app.services', 'app.directives', 'app.co...
JavaScript
0.000391
@@ -429,13 +429,8 @@ g/v3 --test ');%0D
e88b360f74c1fa5a90b2581095f920628cccc4d5
simplified 'instance' return statement
lib/simple/factory.js
lib/simple/factory.js
function SimpleFactory() { 'use strict'; if ('undefined' !== typeof SimpleFactory.prototype.___instance) return SimpleFactory.prototype.___instance; SimpleFactory.prototype.___instance = this; var factory = this, Simple = require('./simple.js'), Core = require('../dom/core.js'), DOMException = require('.....
JavaScript
0.999994
@@ -1807,16 +1807,8 @@ nce -%7C%7C null : nu
dd0ec7b17f6d29eddb5c74acd9a5e12bfcae1044
allow line comments
index.js
index.js
'use strict'; var fs = require('fs'); var dotenvy, load, parse; dotenvy = function (options, callback) { var path = '.env'; var encoding = 'utf8'; var file, env; if (options != null) { if (typeof options === 'string') { path = options; options = null; } ...
JavaScript
0
@@ -2468,16 +2468,17 @@ if +( (line.le @@ -2486,16 +2486,42 @@ gth %3E 0) + && (line%5B0%5D !== comment)) %7B%0A @@ -2868,113 +2868,8 @@ if -(key%5B0%5D === comment) %7B%0A return;%0A %7D%0A else if (val
f4cda00a67156e92210eceae9e087a9587a0de1d
Add comments for flashConfig
app/js/app.js
app/js/app.js
/**! * * Copyright 2015 Netflix, 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 ...
JavaScript
0
@@ -712,16 +712,122 @@ rict';%0A%0A + /**%0A * @name flashConfig%0A * @desc Configures flashProvider to use Bootstrap 3 CSS class.%0A */%0A func
cedfda698c97449c5f08daae0fa9beef0249dca3
add support for basePath
lib/swagger2locust.js
lib/swagger2locust.js
var fs = require("fs"), yaml = require('js-yaml'); module.exports = { defaultOptions : { 'min_wait' : 1000, 'max_wait' : 000 }, // Validates input file is a swagger spec validFile : function(filename) { try { // Exists? stats = fs.lstatSync(filename); // Extension is .yaml o...
JavaScript
0
@@ -1472,16 +1472,36 @@ %5D%5B'get'%5D +, swgObj%5B'basePath'%5D );%0A @@ -2291,32 +2291,42 @@ athName, pathObj +, basePath ) %7B%0A var task @@ -2474,16 +2474,25 @@ .get(%22'+ +basePath+ this.res
eb56e51a151752dbd85c53f86ef7d210e25adfb2
Fix minor bug in Model
src/model.js
src/model.js
var Backbone = require('backbone'); var _ = require('underscore'); // Model // --------------- // Model is an extension of `Backbone.Model` with the addition of basic features. To use it, call // `Model.extend()` as you would with Backbone.Model. var Model = Backbone.Model.extend({ // Default is empty. Override t...
JavaScript
0
@@ -2671,12 +2671,8 @@ -Base Mode
91bedb080a7235a6984b94b070146bb1363379f4
fix accidental promise wrap
index.js
index.js
// much λ, much UX. module.exports = function λ(fn) { return function(e, ctx, cb) { try { var v = fn(e, ctx, cb) if (v && typeof v.then == 'function') { v.then(function (val) { cb(null, val) }).catch(cb) return } cb(null, v) } catch (err) { ...
JavaScript
0.000372
@@ -212,43 +212,195 @@ - cb(null, val)%0A %7D).catch(cb +process.nextTick(function () %7B%0A cb(null, val)%0A %7D)%0A %7D).catch(function (err) %7B%0A process.nextTick(function () %7B%0A cb(err)%0A %7D)%0A %7D )%0A
68888a05a216b225b3aa5d0feb5a5aa8f8cfb854
move `me` stuff to me lib
index.js
index.js
/** * Module dependencies. */ var Site = require('./lib/site'); var req = require('./lib/req'); var debug = require('debug')('wp-connect'); /** * Wordpress connect class * * @param {String} token * @api public */ function WPCONN(token){ if (!(this instanceof WPCONN)) return new WPCONN(token); this.tkn =...
JavaScript
0.000001
@@ -27,16 +27,46 @@ s.%0A */%0A%0A +var Me = require('./lib/me');%0A var Site @@ -412,26 +412,32 @@ // -site stuff +resource methods %0A this. site @@ -436,19 +436,17 @@ his. -sit +m e = new Site @@ -441,19 +441,17 @@ e = new -Sit +M e(this); @@ -455,155 +455,39 @@ s);%0A -%7D%0A%0A/**%0A * User profile...
04389f52f1e5a743be09a5729a7f82a771b2aeb6
Replace slashes for Windows
lib/techs/css-base.js
lib/techs/css-base.js
var INHERIT = require('inherit'), FREEZE = require('../freeze'), base = require('../tech'), PATH = require('path'), CSSO = require('csso'); exports.Tech = INHERIT(base.Tech, { minimize: function(content) { return CSSO.justDoIt(content); }, File: exports.File = INHERIT(base.File, {...
JavaScript
0.0001
@@ -901,24 +901,46 @@ ringify(url) +.replace(/%5C%5C%5C%5C/g, '/') ;%0A %7D,
65b1c170828a984571ccc2a89f87a9f13eeceef9
Update Dan + Mary timezones.
app/people.js
app/people.js
module.exports = [ { name: 'Dan', avatar: 'https://d389zggrogs7qo.cloudfront.net/images/team/dan.jpg', city: 'San Antonio, TX', tz: 'America/Chicago' }, { name: 'Niel', avatar: 'https://d389zggrogs7qo.cloudfront.net/images/team/niel.jpg', city: 'Cape Town', tz: 'Africa/Johannesburg...
JavaScript
0
@@ -121,23 +121,8 @@ y: ' -San Antonio, TX ',%0A @@ -129,39 +129,43 @@ tz: 'America/ -Chicago +Los_Angeles '%0A %7D,%0A %7B%0A n @@ -1670,19 +1670,12 @@ y: ' -Kansas City +Maui ',%0A @@ -1678,39 +1678,40 @@ ',%0A tz: ' -America/Chicago +Pacific/Honolulu '%0A %7D,%0A %7B%0A
f8abd816d3775d9976b7796f93e42bdaf984ca7f
Add modules.show route.
app/router.js
app/router.js
var router = Ember.Router.map(function(){ this.resource('classes', function() { this.route('show', {path: '/:className'}); }); }); export default router;
JavaScript
0
@@ -127,16 +127,111 @@ );%0A %7D); +%0A%0A this.resource('modules', function() %7B%0A this.route('show', %7Bpath: '/:moduleName'%7D);%0A %7D); %0A%7D);%0A%0Aex
fd5115f3f2a6d2e4b9cf242dd8db33a557827b68
Update for changes in remark
index.js
index.js
/** * @author Titus Wormer * @copyright 2015 Titus Wormer * @license MIT * @module remark:toc * @fileoverview Generate a Table of Contents (TOC) for Markdown files. */ 'use strict'; /* eslint-env commonjs */ /* * Dependencies. */ var slug = require('remark-slug'); var toString = require('mdast-util-to-strin...
JavaScript
0
@@ -4085,12 +4085,11 @@ ' -href +url ': '
42c00b7a99a4c624e681df19ecd39f1cc19f4008
correct breadcrumbs on _all_dbs
app/router.js
app/router.js
define([ // Application. "app", // Initialize application "initialize", // Modules "modules/fauxton", "modules/dashboard", "modules/databases", "modules/api", "modules/fauxton_plugin", // this needs to be added as a plugin later "modules/log", "modules/config", "modules/log" ], function(...
JavaScript
0.000052
@@ -4411,51 +4411,8 @@ nk%22: - app.root%7D,%0A %7B%22name%22: %22Logs%22,%22link%22: app
ea9e68723eca529f3ecaa34f6719014cbb74631b
Check for BlockStatement, the only valid exception is an IfStatement in alternative of an other IfStatement.
index.js
index.js
'use strict'; var tk = require('rocambole-token'); var wrapWithBraces = function (node, prop) { var oldNode = node[prop]; var finalToken = oldNode.endToken; //apply a custom fix if endtoken is empty if (tk.isEmpty(oldNode.endToken)) { finalToken = tk.findPrevNonEmpty(oldNode.endToken); } ...
JavaScript
0
@@ -848,32 +848,27 @@ nt.type -= +! == ' -ExpressionS +Blocks tatement @@ -1005,39 +1005,75 @@ ernate.type -= +! == ' -Expression +IfStatement' && node.alternate.type !== 'Block Statement') @@ -1526,23 +1526,18 @@ ype -= +! == ' -Expression +Block Stat
ea8e19376e7b168d65ee35c5ca8f4e84c6246f2b
debug while include multi times
index.js
index.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author nighca <nighca@live.cn> */ var fs = require('fs'); var path = require('path'); var Crox = require('crox-p'); var includeReg = /\{\{\s*include[\s\n\r]+[\"\']?([^\s\"\']*)\s*[\"\']?([^(\}\})]*)\}\}/gm; var precompile = function (root, tmpl, sta...
JavaScript
0
@@ -835,16 +835,25 @@ t, stack +, handler );%0A%0A
ab28ace588e1f988ec30291bd4545e2ead223ae2
Fix service timeout
index.js
index.js
const defaultConfig = require('./lib/default-config') const generateBody = require('./lib/generate-body') const commitIsInPR = require('./lib/commit-is-in-pr') const getContents = require('./lib/get-file-contents') const generateLabel = require('./lib/generate-label') const reopenClosed = require('./lib/reopen-clo...
JavaScript
0.000878
@@ -4362,16 +4362,35 @@ %0A %7D)%0D +%0A%0D%0A return true%0D %0A %7D)%0D%0A%0D
140c2791632b3598523cd6532a4713813461ee92
Add timeout to default config
index.js
index.js
require('./lib/boot/logger'); var defaultConfig = { amqpUrl: process.env.AMQP_URL || 'amqp://localhost', amqpPrefetch: process.env.AMQP_PREFETCH || 5, amqpRequeue: true }; module.exports = function(config) { for (var key in config) { if (config.hasOwnProperty(key) && defaultConfig.hasOwnProperty(key)) { ...
JavaScript
0.000001
@@ -168,16 +168,37 @@ ue: true +,%0A amqpTimeout: 1000 %0A%7D;%0A%0Amod
3f13619c60f36e9c5b15e5e2d91a420fcbe396ac
Use environment variables
index.js
index.js
const express = require('express') const app = express() const http = require('http').Server(app) const io = require('socket.io')(http) const mongoose = require('mongoose') const md = require('markdown').markdown // database connection const db_user = process.env.CHAT_DB_USER || 'user' const db_pwd = process.env.CHAT_...
JavaScript
0.000004
@@ -274,18 +274,8 @@ USER - %7C%7C 'user' %0Acon @@ -313,22 +313,8 @@ _PWD - %7C%7C 'password' %0Acon
2fbecbe8d136a06e63fc93e0f80ea6d29c0282a3
refactor serial.js
app/serial.js
app/serial.js
var global = require('./global'); var config = global.config; var SerialPort = require("serialport"); var crypto = require('crypto'); var sensors = {}; /** * Arduino serial connection. */ port = new SerialPort(config.get('Serial.port'), { baudrate: config.get('Serial.baudrate'), flowControl: config.get('Serial.f...
JavaScript
0.007172
@@ -1436,43 +1436,193 @@ ) %7B%0A -%0A %7D,%0A%0A getHumidity: function() %7B%0A + return sensors.roomTemperature;%0A %7D,%0A%0A getHumidity: function() %7B%0A return sensors.relativeHumidity;%0A %7D,%0A%0A getWaterTemperature: function() %7B%0A return sensors.waterTemperature; %0A %7D @@ -1650,24 +16...
12d01668a38f0e52a356cb52fc4ec76adc8d5d4c
Make login page look a little better.
src/public/login/Login.js
src/public/login/Login.js
import React from "react"; import {ButtonToolbar, Button} from "react-bootstrap"; import {connect} from "react-redux"; import {promptForLogin} from "../store/actions/AuthenticationActions"; const Login = ({login}) => ( <div> <h2>Login</h2> <ButtonToolbar> <Button bsStyle="primary" onCli...
JavaScript
0
@@ -32,23 +32,8 @@ rt %7B -ButtonToolbar, Butt @@ -206,16 +206,40 @@ %3Cdiv + className=%22text-center%22 %3E%0A @@ -246,49 +246,43 @@ %3Ch -2%3EL +3%3EPlease l og + in -%3C/h2%3E%0A %3CButtonToolbar%3E%0A + to Courtbook.%3C/h3%3E%0A @@ -331,39 +331,23 @@ in%7D%3E -Login%3C/Button...
6255bfad77a50946758482a6c00a905bafc4131e
fix map issue
index.js
index.js
var bytewise = require('bytewise') var collect = require('stream-collector') var through = require('through2') var pump = require('pump') module.exports = function(db, props, opts) { if (!Array.isArray(props)) props = [props] if (!opts) opts = {} var sep = opts.sep || '!' var map = opts.map && function(data, ...
JavaScript
0
@@ -132,16 +132,103 @@ pump')%0A%0A +var writer = function(fn) %7B%0A return function(data, enc, cb) %7B%0A fn(data, cb)%0A %7D%0A%7D%0A%0A module.e @@ -389,49 +389,37 @@ && -function(data, enc, cb) %7B map(data, cb) %7D +writer(opts.map)%0A var prefix %0A v @@ -2429,18 +2429,36 @@ pts.map -%7C%7C +? wri...
7bf528d8618ba61a8874fbdd22d2772646973141
Use path.join() instead of depending on availability of path.sep
index.js
index.js
var path = require('path'); var Magic = require('./build/Release/magic'); Magic.setFallback(__dirname + path.sep + 'magic' + path.sep + 'magic'); module.exports = { Magic: Magic.Magic, MAGIC_NONE: 0x000000, /* No flags */ MAGIC_DEBUG: 0x000001, /* Turn on debugging */ MAGIC_SYMLINK: 0x000002, /* Follow symli...
JavaScript
0.998811
@@ -73,77 +73,85 @@ );%0A%0A -Magic.setFallback(__dirname + path.sep + 'magic' + path.sep + 'magic' +var fbpath = path.join(__dirname, 'magic', 'magic');%0AMagic.setFallback(fbpath );%0A%0A @@ -226,16 +226,38 @@ No flags + (default for Windows) */%0A MA @@ -359,73 +359,18 @@ ault -) */%0A MAGIC_COMPRESS: 0x0000...
fd72086a5c283fc3eeefdd636e0284717aca326b
Fix PureComponent tests.
src/pureComponent.spec.js
src/pureComponent.spec.js
/* eslint-env jest */ import chai, { expect } from 'chai'; import dirtyChai from 'dirty-chai'; import { mount } from 'enzyme'; import uniqueId from 'lodash.uniqueid'; import React from 'react'; import sinon from 'sinon'; import Component from './component'; chai.use(dirtyChai); function getUniqueState() { return { ...
JavaScript
0
@@ -222,16 +222,20 @@ %0Aimport +Pure Componen @@ -244,17 +244,21 @@ from './ -c +pureC omponent @@ -481,16 +481,20 @@ scribe(' +Pure Componen @@ -544,16 +544,20 @@ extends +Pure Componen @@ -3555,233 +3555,8 @@ );%0A%0A -%09%09it('runs on props update when no props change', () =%3E %7B%0A%09%09%09const comp...
493a82067a3dae527b7803c1b694b31c154532f4
Add support to display version info
index.js
index.js
#!/usr/bin/env node var argv = require('minimist')(process.argv.slice(2)) function help () { return [ 'Usage:', ' matrix-bundler [entry] [output] [opts]', '', 'Options:', ' --help, -h show help message', ' --entry, -e the entry point for bundler, default "."', ' --...
JavaScript
0
@@ -69,16 +69,84 @@ ce(2))%0A%0A +function version () %7B%0A return require('./package.json').version%0A%7D%0A%0A function @@ -297,24 +297,79 @@ p message',%0A + ' --version, -v show version information',%0A ' --ent @@ -2166,16 +2166,78 @@ %7D)%0A%7D%0A%0A +if (argv.version %7C%7C argv.v) %7B%0A...
064907355ce79741ad81c482b202788604759768
Add fix for using LF as an addon inside an addon
index.js
index.js
/*jshint node: true */ 'use strict'; var checker = require('ember-cli-version-checker'); var path = require('path'); var mergeTrees = require('broccoli-merge-trees'); var Funnel = require('broccoli-funnel'); module.exports = { name: 'liquid-fire', init: function() { checker.assertAbove(this, '0.2.0'); }, ...
JavaScript
0.003958
@@ -840,16 +840,162 @@ n(app)%7B%0A + // see: https://github.com/ember-cli/ember-cli/issues/3718%0A if (typeof app.import !== 'function' && app.app) %7B%0A app = app.app;%0A %7D%0A%0A if (
ee437d91cfab5dbab1cdc4e52548dfdc854df3f6
Simplify index file
index.js
index.js
// Teoria.js // http://saebekassebil.github.com/teoria // Copyright Jakob Miland (saebekassebil) // Teoria may be freely distributed under the MIT License. var Note = require('./lib/note'); var Interval = require('./lib/interval'); var Chord = require('./lib/chord'); var Scale = require('./lib/scale'); var...
JavaScript
0.000035
@@ -1,173 +1,4 @@ -// Teoria.js%0A// http://saebekassebil.github.com/teoria%0A// Copyright Jakob Miland (saebekassebil)%0A// Teoria may be freely distributed under the MIT License.%0A%0A var @@ -144,90 +144,8 @@ e'); -%0Avar knowledge = require('./lib/knowledge');%0Avar vector = require('./lib/vector'); ...
bd5cbe6b4793cf35d56a8a49fe0fe2ac62e8c4b1
add rename as dep
index.js
index.js
var merge = require('merge-stream'); var rimraf = require('rimraf'); var initConfig = function(config) { if (!config) { throw new Error('You need to define a config (argument #2)'); } if (!config.dest) { throw new Error("The property .dest needs to be defined in the config (argument #2)"); } if (!c...
JavaScript
0.000001
@@ -1271,16 +1271,56 @@ -dest'); +%0A that.rename = require('gulp-rename'); %0A%0A this
4efae3027245fa1323627d927288e71b21811dd6
Fix url .ch
index.js
index.js
var request = require('superagent'); var concat = require('concat-stream'); var toBuffer = require('typedarray-to-buffer'); var API_HOST = 'api.t411.in'; function Client() { this.uid = null; this.token = null; } Client.prototype.url = function(endpoint) { return 'https://' + API_HOST + endpoint; }; Client.p...
JavaScript
0.003714
@@ -143,18 +143,18 @@ pi.t411. -in +ch ';%0A%0Afunc
7a402334d7a148a4756fa26f608ea575c4646a33
improve config parsing error handling
index.js
index.js
/* * electron-builder * https://github.com/loopline-systems/electron-builder * * Licensed under the MIT license. */ 'use strict'; var platforms = require( './lib/platforms' ); var path = require( 'path' ); var fs = require( 'fs' ); var mkdirp = require( 'mkdirp' ); /** * Prototype for electron-b...
JavaScript
0.000001
@@ -672,17 +672,16 @@ ions.out - %0A @@ -735,17 +735,16 @@ ns.out ) - %0A @@ -1859,32 +1859,42 @@ return callback( +%0A new Error( 'Cou @@ -1916,19 +1916,46 @@ fig file -' ) +:%5Cn' + error.message )%0A );%0A
2084e5b0316e1e542e27e28ff702aaf266aa0021
Throw an error if includeLanguages option is used.
index.js
index.js
/* eslint-env node */ 'use strict'; let path = require('path'); let Funnel = require('broccoli-funnel'); module.exports = { name: 'ember-cli-numeral', included: function(app) { this.app = app; if (typeof app.import !== 'function' && app.app) { this.app = app = app.app; } this._super.inclu...
JavaScript
0
@@ -616,24 +616,195 @@ %7D%5D%0A %7D);%0A%0A + if (options.includeLanguages) %7B%0A throw new Error('includeLanguages option is no longer available. Please use includeLocales (see the README for usage).');%0A %7D%0A%0A if (opti
c8863dc3692f00e3cd293665ffe9b3a1e8ac3f1b
update for changed fn name
index.js
index.js
'use strict' var angular = require('angular') var Raven = require('raven-js') module.exports = angular.module('ngRaven', []) .config(registerDecorator) .name registerDecorator.$inject = ['$provide'] function registerDecorator ($provide) { $provide.decorator('$exceptionHandler', ngRavenExceptionHandler) } deco...
JavaScript
0
@@ -281,23 +281,24 @@ ndler', -ngRaven +decorate Exceptio
5765ccb431016b5cfb560476ea25549a0d1414ba
Return promise from write() function
index.js
index.js
var arrayUniq = require('array-uniq'); var bpack = require('browser-pack'); var bresolve = require('browser-resolve'); var clone = require('clone'); var crypto = require('crypto'); var detective = require('detective'); var flatten = require('flatten'); var fs = require('fs'); var glob = require('glob'); var minimatch =...
JavaScript
0.000376
@@ -812,24 +812,38 @@ lename);%0A + var promise = this._begin @@ -844,16 +844,18 @@ _begin() +;%0A %0A thi @@ -872,35 +872,28 @@ pe(ws);%0A +%0A -this._resolving +promise .done(fu @@ -915,16 +915,36 @@ nd()%7D);%0A + return promise;%0A %7D;%0A%0Afunc
26757179383539a0b37b4eaf63a5455a2f2561d1
Fix error.
index.js
index.js
const models = require('./models'); const express = require('express'); const uuidv4 = require('uuid/v4'); const bcrypt = require('bcrypt'); const asyncHandler = require('express-async-handler'); const error = require('./utils').appThrow; const bodyParser = express.urlencoded({extended: true}); var app = express(); va...
JavaScript
0.000001
@@ -1266,16 +1266,18 @@ %0A err +or (404, %22n
4af6e0c34bfbe9ed62d64e1f8575346b10cc9319
Delete example from file
index.js
index.js
const mysql = require('mysql') const qBuilder = require('./lib/QueryBuilder') let connection = null let _query = '' let _params = [] /** * [Check do user is already connected] */ function checkConnection () { if (connection.state === 'disconnected') { connection.connect() } } /** * [setOptions description...
JavaScript
0.000001
@@ -2994,236 +2994,4 @@ )%0A%7D%0A -%0Aexports.setOptions(%7B%0A hostname: 'localhost',%0A username: 'root',%0A password: '',%0A database: 'distribution'%0A%7D)%0A%0Aexports.makeQuery()%0A .select('id, title, count')%0A .from('ads')%0A .where('id', '%3E', 1)%0Aexports.prepare().getResult()%0A
a40eaa7647609c384f27eb739f49a0daf752adc5
fix for shebangs
index.js
index.js
var falafel = require('falafel'); var through = require('through'); module.exports = function (file, opts) { if (typeof file === 'object') { opts = file; file = undefined; } if (!opts) opts = {}; var outputFn = opts.output || 'console.log'; var output = through(); var expec...
JavaScript
0
@@ -524,16 +524,29 @@ (chunks) +%0A .toStrin @@ -554,16 +554,61 @@ ('utf8') +%0A .replace(/%5E#!/, '//#!')%0A ;%0A
615b23f0365313e819529fab6f647791e740b42b
support legacy import expectations
index.js
index.js
'use strict'; // Get the Kerberos library module.exports = require('./lib/kerberos'); // Set up the auth processes module.exports.processes = { MongoAuthProcess: require('./lib/auth_processes/mongodb').MongoAuthProcess };
JavaScript
0.000001
@@ -12,76 +12,216 @@ ';%0A%0A -// Get the Kerberos library%0Amodule.exports = require('./lib/ +const kerberos = require('./lib/kerberos');%0A%0A// Get the Kerberos library%0Amodule.exports = kerberos; %0A%0A// Support for legacy versions of the mongodb driver expect this export%0Amodule.exports.Kerberos = kerberos ...
8d58ffc7a881e6c4caa03c0c9f7167f11cc5df60
add support for copy event
index.js
index.js
var React = require("react"); var ReactDOM = require("react-dom"); var assign = require("react/lib/Object.assign"); var Clipboard = React.createClass({ propTypes: { value : React.PropTypes.string.isRequired, className : React.PropTypes.string, style : React.PropTypes.object }, getDefaultProps: func...
JavaScript
0
@@ -110,16 +110,36 @@ ign%22);%0A%0A +function noop() %7B%7D%0A%0A var Clip @@ -303,16 +303,51 @@ s.object +,%0A onCopy : React.PropTypes.func %0A %7D,%0A%0A @@ -667,16 +667,37 @@ %0A %7D +,%0A onCopy : noop %0A %7D;%0A @@ -1168,11 +1168,98 @@ true - %7D) +, onCopy : this.handleCopy %7D));%0A ...
0470c2f5d0175c1cc83456973ddd4ec016c2bac9
fix #51, npm-cache throws when being run from exec
index.js
index.js
#! /usr/bin/env node 'use strict'; var fs = require('fs-extra'); var path = require('path'); var parser = require('nomnom'); var async = require('async'); var glob = require('glob'); var logger = require('./util/logger'); var ParseUtils = require('./util/parseUtils'); var CacheDependencyManager = require('./cacheDepe...
JavaScript
0
@@ -910,183 +910,481 @@ %0A%0A -parser.option('cacheDirectory', %7B%0A default: process.env.NPM_CACHE_DIR %7C%7C path.resolve(process.env.HOME %7C%7C process.env.HOMEPATH %7C%7C process.env.USERPROFILE, '.package_cache') +var defaultCacheDirectory = process.env.NPM_CACHE_DIR;%0A if (defaultCacheDirectory === und...
fca327e50d6209ee4841168cdeb0b61ba48625cc
Return server instance
index.js
index.js
"use strict"; global.use = function (path) { if(path === 'config'){ return require.main.require('./' + path); }else{ return require('./' + path); } }; const Server = use('core/server'); const Message = use('core/messages'); Message.request.addIntercept...
JavaScript
0.000001
@@ -777,16 +777,22 @@ xports = + new Server +() ;
02a04434b99c312fa25e8371ae68d075e75aa8b4
fix bug for setting parent handler
index.js
index.js
#!/usr/bin/env node 'use strict' var _ = require('lodash'); var path = require('path'); var sys = require('sys') var exec = require('child_process').exec; var basedir = require('xdg').basedir; var args = process.argv.slice(2); //var config_folder_path = path.join(__dirname, 'config'); var config_folder_path = basedir....
JavaScript
0
@@ -916,17 +916,16 @@ %7D);%0A%7D;%0A -%0A function @@ -1275,16 +1275,24 @@ lers)) %7B +%0A rerun = @@ -1297,19 +1297,19 @@ = true; - %7D%0A +%0A ha @@ -1357,16 +1357,24 @@ efault;%0A + %7D%0A %7D%0A
0652f8fffa581efd87e4087df85d7b23770dcd6d
add path.join to support directories w/o trailing slashes
index.js
index.js
#!/usr/bin/env node 'use strict'; var path = require('path') , fs = require('fs') , yaml = require('js-yaml') , uuid = require('node-uuid') , clc = require('cli-color') , markdown = require( "markdown" ).markdown; // default color messages var logError = clc.red.bold; var logWarn = clc.yellow; va...
JavaScript
0
@@ -227,16 +227,45 @@ markdown +%0A , path = require('path') ;%0A%0A// de @@ -2941,21 +2941,31 @@ h = +path.join( folder - + +, post +) ;%0A%0A @@ -5907,12 +5907,13 @@ osts.') );%0A%7D +%0A
32feb400117389df10e5306b826502fa574d1252
use pool.query(). Saves 12 lines of code!
index.js
index.js
"use strict"; var mysql = require('mysql'); module.exports = function myLimiter(poolOrConfig, bucketOrFunction, bucketSizeOrFunction, periodInSecondsOrFunction) { var pool = poolOrConfig.hasOwnProperty('config') ? poolOrConfig : mysql.createPool(poolOrConfig); return function myLimiterMiddleware(req, res, n...
JavaScript
0
@@ -724,256 +724,8 @@ ool. -getConnection(function(err, connection) %7B%0A if (err) %7B%0A if (connection) %7B%0A connection.release();%0A %7D%0A next(err);%0A return;%0A %7D%0A%0A connection. quer @@ -819,...
8278c0d841858240abbcd9c345ba7113a4d0c762
add possibility to filter coverage maps when running reports post-hoc (#24)
index.js
index.js
const assign = require('object-assign') const arrify = require('arrify') const micromatch = require('micromatch') const path = require('path') const readPkgUp = require('read-pkg-up') const requireMainFilename = require('require-main-filename') function TestExclude (opts) { assign(this, { cwd: process.cwd(), ...
JavaScript
0
@@ -330,16 +330,40 @@ false,%0A + relativePath: true,%0A conf @@ -1923,24 +1923,83 @@ relFile) %7B%0A + var pathToCheck = filename%0A%0A if (this.relativePath) %7B%0A relFile = @@ -2044,16 +2044,18 @@ ename)%0A%0A + // Don @@ -2125,16 +2125,18 @@ ectory.%0A + if (/%5E @@ -2198,23 +2198,2...
3034eb9a0342869918804d7a437a2af1075d6a2f
fix regex
index.js
index.js
// Process @[youtube](youtubeVideoID) // Process @[vimeo](vimeoVideoID) // Process @[vine](vineVideoID) // Process @[prezi](preziID) // Process @[mfr](guid) const ytRegex = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/; function youtubeParser(url) { const match = url.match(ytRegex); r...
JavaScript
0.999291
@@ -1290,20 +1290,21 @@ h = url. -exec +match (mfrRege
a772fda138b1e64b67e7b45ce2d06585193c6b5f
Update Available Indicators for threewhitesoldiers
index.js
index.js
"use strict" let Indicators = require('./lib'); Object.keys(Indicators).forEach(function(indicator) { global[indicator] = Indicators[indicator]; }) global.AvailableIndicators = []; global.AvailableIndicators.push('sma'); global.AvailableIndicators.push('ema'); global.AvailableIndicators.push('wma'); global.AvailableI...
JavaScript
0
@@ -2305,17 +2305,16 @@ soldiers -) ');%0Amodu
35d14b07a481073e56c1d66e041970538020c184
Use path.basename and regex to conform filenames identifiers
index.js
index.js
'use strict'; var fs = require('fs'), jade = require('jade'), url = require('url'), join = require('path').join, EventEmitter = require('events').EventEmitter; var templateCompiled = {}; var JadeCompiler; module.exports.JadeCompiler = JadeCompiler = function (options) { this.startString = '(func...
JavaScript
0.000001
@@ -90,20 +90,24 @@ '),%0A -join +pathUtil = requi @@ -116,16 +116,37 @@ ('path') +,%0A join = pathUtil .join,%0A @@ -990,16 +990,22 @@ .compile +Client (jadeStr @@ -1011,24 +1011,8 @@ ring -, %7Bclient: true%7D ),%0A @@ -1030,173 +1030,97 @@ -from = this.paths.jadePath.lastIndexOf('/') + 1,%0A ...
49794f55e663d317026a97703c94b846e1058b3a
Handle fs.readFileSync failures gracefully.
index.js
index.js
'use strict'; var fs = require('fs'); var through = require('through2'), merge = require('lodash.merge'); /** * Create a context for which multiple instances of the plugin may operate with a shared cache. * @param {object} [cache] Optional cache * @returns {function} A browserify plugin */ function pluginF...
JavaScript
0
@@ -2724,17 +2724,177 @@ w.file;%0A + %0A + var fileSource = null;%0A try %7B%0A fileSource = fs.readFileSync(filename).toString()%0A %7D catch (e) %7B%7D%0A%0A if (fileSource !== null) %7B%0A // @@ -2927,24 +2927,26 @@ rite)%0A + isTestedCach @@ -2968,24 +2968,26 @@ ...
6f30dcc237b74cfcb8ab88fde46ce4b4b2080af0
Add callback to save
index.js
index.js
var fs = require('graceful-fs'); var jph = require('json-parse-helpfulerror'); var path = require('path'); var steno = require('steno'); module.exports = function(db_dir) { 'use strict'; if (!db_dir || typeof db_dir !== 'string') { throw new Error("Must provide a directory."); } var cacheObject = {}; v...
JavaScript
0
@@ -1152,16 +1152,18 @@ on save( +cb ) %7B%0A @@ -1350,16 +1350,20 @@ ect%5Bkey%5D +, cb );%0A %7D @@ -1395,16 +1395,20 @@ le, json +, cb ) %7B%0A @@ -1560,16 +1560,82 @@ ow err;%0A + if (cb && typeof cb === 'function') %7B%0A cb();%0A %7D%0A %7D);%0A
a31e81c00437355d88ee37d425dc1e59c851e80e
remove unused module
index.js
index.js
var spawn = require('child_process').spawn , EE = require('events').EventEmitter , path = require('path') , fs = require('fs') var debounce = require('just-debounce') , watcher = require('node-watch') , color = require('bash-color') , subdirs = require('subdirs') module.exports = createJung function Jung...
JavaScript
0.000002
@@ -207,42 +207,8 @@ h')%0A - , color = require('bash-color')%0A ,
1db29e4225083e06822ddfaa53d148234f16ce01
Send logs immediately when catching an exception (#47)
index.js
index.js
'use strict'; var util = require('util'), winston = require('winston'), AWS = require('aws-sdk'), cloudWatchIntegration = require('./lib/cloudwatch-integration'), _ = require('lodash'); var WinstonCloudWatch = function(options) { winston.Transport.call(this, options); this.level = options.level |...
JavaScript
0.000005
@@ -1910,17 +1910,66 @@ d(log);%0A -%0A + %0A if (!/%5EuncaughtException: /.test(msg)) %7B%0A // do @@ -2003,16 +2003,25 @@ away%0A + return callback @@ -2034,16 +2034,161 @@ true);%0A + %7D%0A %0A // clear interval and send logs immediately%0A clearInterval(this.intervalId);%0A this.interval...
dbe7f20a0ab1e4cea0d91124e8c0ba5e61fdcd57
resolve moment path when addon is being built by ember build (#19)
index.js
index.js
/* jshint node: true */ 'use strict'; var Funnel = require('broccoli-funnel'); var MergeTrees = require('broccoli-merge-trees'); var path = require('path'); var toastrPath = path.dirname(require.resolve('toastr')); module.exports = { name: 'ember-toastr', included: function(app, parentAddon) { var vendor = ...
JavaScript
0.000001
@@ -156,67 +156,8 @@ );%0A%0A -var toastrPath = path.dirname(require.resolve('toastr'));%0A%0A modu @@ -519,24 +519,87 @@ endorTree)%7B%0A + var toastrPath = path.dirname(require.resolve('toastr'));%0A%0A var tree
abc0f1a92962140094909cf7954b8b2ff0b51690
Add some missing newlines [ci skip]
index.js
index.js
/*! * Percent v1.0.2 (http://git.io/percentjs) * Licensed under the MIT license. */ 'use strict'; /* * Percent calculation */ exports.calc = function (value, total, decimal, sign) { var wrong = [NaN, Infinity, -Infinity]; var n; // Set defaults if (sign === null) { sign = false; } // Avoid arg...
JavaScript
0.000003
@@ -850,16 +850,17 @@ ue;%0A %7D%0A +%0A if (ty @@ -938,24 +938,25 @@ n true;%0A %7D%0A +%0A return fal @@ -1173,24 +1173,25 @@ + '%25';%0A %7D%0A +%0A return thi @@ -1339,24 +1339,25 @@ g, '');%0A %7D%0A +%0A return thi @@ -1542,32 +1542,33 @@ true;%0A %7D%0A %7D%0A +%0A return false;%0A @...
5207418dcda4be97b838634c51b2b27563f99329
Update every 5 minutes by default
index.js
index.js
var async = require('async'); var Forecast = require('forecast.io'); var request = require('request'); try { var places = require('./places.json'); } catch (e) { console.error(e); console.log('places.json is missing.'); return process.exit(1); } var options = { APIKey: process.env.FORECAST_API_KEY } var umb...
JavaScript
0
@@ -371,16 +371,83 @@ s.com/'; +%0Avar updateInterval = process.env.UPDATE_INTERVAL %7C%7C 5 * 60 * 1000; %0A%0Aforeca @@ -475,16 +475,38 @@ ions);%0A%0A +function update() %7B%0A async.ea @@ -548,24 +548,26 @@ callback) %7B%0A + console.lo @@ -608,16 +608,18 @@ label);%0A + foreca @@ -681,24 +681,26 ...
8d63454a500d876411812020ea04024ed506434f
add stack trace to crash log
index.js
index.js
/** * Created by Ralph Varjabedian. * nodetastic is licensed under the [BSD-3 License] https://raw.githubusercontent.com/ralphv/nodetastic/master/LICENSE. * do not remove this notice. */ var fs = require("fs"); require("./SetupErrorCodes.js"); var config = require("./config.js"); var setOptions = require("./cmd_t...
JavaScript
0.000001
@@ -208,16 +208,62 @@ e(%22fs%22); +%0Avar child_process = require('child_process'); %0A%0Arequir @@ -728,35 +728,27 @@ -fs.appendFileSync(filename, +const logContents = %22un @@ -853,16 +853,156 @@ rr.stack +;%0A fs.appendFileSync(filename, logContents);%0A child_process.execSync(%22cmd-util chat%22, ...
262d787171fdc0436b271f7d1c532d5fdcaf59cf
Add some node-ish APIs
index.js
index.js
/*! * ws: a node.js websocket client * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com> * MIT Licensed */ module.exports = require('./lib/WebSocket'); module.exports.Server = require('./lib/WebSocketServer'); module.exports.Sender = require('./lib/Sender'); module.exports.Receiver = require('./lib/Receive...
JavaScript
0
@@ -314,12 +314,502 @@ Receiver');%0A +%0Amodule.exports.createServer = function (options, connectionListener) %7B%0A var server = new module.exports.Server(options);%0A if (typeof connectionListener === 'function') %7B%0A server.on('connection', connectionListener);%0A %7D%0A return server;%0A%7D;%0A%0Amodule....
4153ec35874b5ce3f6baa33bf308241728b2bdb6
remove empty duration from the output
index.js
index.js
const inherits = require('util').inherits; const EventEmitter = require('events').EventEmitter; const EOL = require('os').EOL; const o = typeof window === 'undefined' ? msg => process.stdout.write(`${msg}${EOL}`) : msg => console.log(msg); /** * http://webdriver.io/guide/reporters/customreporter.html * https://...
JavaScript
0.99946
@@ -1839,36 +1839,24 @@ est.title)%7D' - duration='' %5D%60);%0A %7D);%0A%0A @@ -2381,37 +2381,8 @@ e)%7D' - captureStandardOutput='true' det @@ -3384,20 +3384,8 @@ e)%7D' - duration='' %5D%60);