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
86c52e75447f9c8ba138f654bce6df3845f0ae8f
Add Underscore filter method
X.js
X.js
(function() { // Save a reference to the global object (`window` in the browser, `exports' on the server). var root = this; // The top-level namespace. All public X classes and modules will // be attached to this. Exported for both the browser and the server. var X = typeof exports !== 'undefined' ? exports : roo...
JavaScript
0
@@ -4728,16 +4728,96 @@ );%0A%09%09%7D,%0A +%09%09filter: function ( callback ) %7B%0A%09%09%09return _.filter(this.list, callback);%0A%09%09%7D,%0A %09%09each:
6d6058b0a02e509d6d2f1551b59dcf5a870f707b
Fix crash in state snapshots tab
src/State/BackupItem.js
src/State/BackupItem.js
import React, { Component } from "react" import { MDCreate as IconRename, MDDelete as IconDelete, MDFileUpload as IconUpload, MDCallReceived as IconCopy, } from "react-icons/md" import AppStyles from "../Theme/AppStyles" import Colors from "../Theme/Colors" import Content from "../Shared/Content" const Styles ...
JavaScript
0.000001
@@ -46,17 +46,17 @@ rt %7B%0A M -D +d Create a @@ -72,17 +72,17 @@ ame,%0A M -D +d Delete a @@ -98,17 +98,17 @@ ete,%0A M -D +d FileUplo @@ -128,17 +128,17 @@ oad,%0A M -D +d CallRece
fe5cf55bf4a7c96a175a58cf92add1e866b9eff7
trim trailing whitespace from output of JS client
frontend/js/cli.js
frontend/js/cli.js
#!/bin/env node // Command-line interface for `rcomp` JS client // // In general this module (cli.js) is intended to be used as a NodeJS // script in a terminal, not within a browser. Core implementation is // in other files, in particular main.js, which can be used in other // programs, whether NodeJS scripts or Web ...
JavaScript
0
@@ -1854,16 +1854,23 @@ output'%5D +.trim() );%0A
ce1fc28b743d518add5c89653108a287f6aa911d
Improve point.xRange and point.yRange performance (#5062)
src/elements/element.point.js
src/elements/element.point.js
'use strict'; var defaults = require('../core/core.defaults'); var Element = require('../core/core.element'); var helpers = require('../helpers/index'); var defaultColor = defaults.global.defaultColor; defaults._set('global', { elements: { point: { radius: 3, pointStyle: 'circle', backgroundColor: defaul...
JavaScript
0
@@ -516,27 +516,27 @@ vm ? (Math. -pow +abs (mouseX - vm @@ -537,32 +537,20 @@ X - vm.x -, 2 ) %3C -Math.pow( vm.radiu @@ -557,36 +557,32 @@ s + vm.hitRadius -, 2) ) : false;%0A%7D%0A%0Afu @@ -642,27 +642,27 @@ vm ? (Math. -pow +abs (mouseY - vm @@ -667,24 +667,12 @@ vm.y -, 2 ) %3C -Math.pow( vm.r @@ -...
b5f7da2c86a476df90878285c119f308b69b3b82
add further translations / fix esxisting
client/js/i18n.js
client/js/i18n.js
var jsT= { de:{ altitudep:'Höhenprofil', altitude:'Höhenmeter', freeBikes:'Freie Fahrräder', freeCars:'Verfügbare Autos', freeCharger:'Verfügbare Ladestationen', charger:'Ladeplatz', mountain_bike_adult:'Mountain bike', city_bike_adult_with_gears:'City bike für Erwachsene', mountain_bike_teenager:'Mo...
JavaScript
0
@@ -1088,16 +1088,17 @@ l:'Ankun +f tshub',%0A @@ -1148,22 +1148,16 @@ el:' -Ankunft am Hub +Hinfahrt ',%0A%09 @@ -1190,16 +1190,186 @@ ahrt - vom Hub +',%0A passengerRequests:'Mitfahrer Anfragen',%0A driverRequests:'Fahrer Anfragen',%0A driver:'Fahrer',%0A ...
29d6ce3928f38cb9f8f215c6eb0bb64536c1df76
fix typo in telnet client template
clients/telnet.js
clients/telnet.js
// Run this and then telnet to localhost:2000 and chat with the bot var net = require("net"); var superscript = require("superscript"); var mongoose = require("mongoose"); var facts = require("sfacts"); var factSystem = facts.create('telnetFacts'); mongoose.connect('mongodb://loca...
JavaScript
0.000006
@@ -412,16 +412,17 @@ erscript +/ lib/topi
0f8c435e05a18bca8d2456a3065ceac19d755564
Add ability to add dependencies in extractor
lib/processing/extractDocs.js
lib/processing/extractDocs.js
var path = require('path'); var _readFile = require('../utils/readFile'); function resolve(filepath) { return path.resolve(this.source.absolutePath, filepath); } function addDependency(filepath) { this.compilation.fileDependencies.push(filepath); } function readFile(filepath) { return _readFile(filepath, this....
JavaScript
0.000001
@@ -201,27 +201,22 @@ %0A this. -compilation +module .fileDep @@ -679,16 +679,138 @@ eSystem, +%0A module: compilation.modules.filter(function (module) %7B%0A return module.resource == source.absolutePath%0A %7D)%5B0%5D, %0A%0A re
10facd118015c4e45a8ebabe8fbc288c08c448fe
Add the section parameter in the addTask url
lib/resources/gen/sections.js
lib/resources/gen/sections.js
/** * This file is auto-generated by the `asana-api-meta` NodeJS package. * We try to keep the generated code pretty clean but there will be lint * errors that are just not worth fixing (like unused requires). * TODO: maybe we can just disable those specifically and keep this code * pretty lint-free too! */ /* j...
JavaScript
0.000001
@@ -4538,44 +4538,52 @@ ng%7D -task The task to add to this section +section The section in which to add the task %0A @@ -4618,32 +4618,95 @@ for the request%0A + * @param %7BString%7D data.task The task to add to this section%0A * @param %7BStr @@ -5219,20 +5219,23 @@ on(%0A -task +section ,%0A d...
55aa0dadf0ccb7a95b5ad437ea993cf0a710f6d3
fix context resolve event $origin
lib/base/context.js
lib/base/context.js
"use strict"; var Base = require('./index.js') var define = Object.defineProperty /** * @function $createContextGetter * @memberOf Base# * @param {string} key Key to create the context getter for */ exports.$createContextGetter = function( key, value ) { if(!value) { value = this[key] } if( value && ...
JavaScript
0.000092
@@ -1513,16 +1513,97 @@ --%0A %7D%0A%0A + var resolveEventOrigin = event && event.$origin && event.$context === context%0A%0A for (i @@ -1774,16 +1774,103 @@ );%0A %7D%0A%0A + if (resolveEventOrigin) %7B%0A event.$context = null%0A event.$origin = context%0A %7D%0A%0A return
0f1dcbd1eccd53a4014c28e7b37d93badb75530c
version bump
lib/bbop/version.js
lib/bbop/version.js
/* * Package: version.js * * Namespace: bbop.version * * This package was automatically created during the release process * and contains its version information--this is the release of the * API that you have. */ bbop.core.namespace('bbop', 'version'); bbop.version = {}; /* * Variable: revision * * Pa...
JavaScript
0.000001
@@ -568,12 +568,12 @@ %222013032 -0 +1 %22;%0A
7a95011d0e6281fd79e342b4c1397dcca19a7d89
Update playing command
lib/cmds/playing.js
lib/cmds/playing.js
'use strict'; exports.info = { name: 'playing', desc: 'Posts a list of members playing the specified game.', usage: '<game>', aliases: [], }; const logger = require('winston'); exports.run = (client, msg, params = []) => { // Exit if no 'question' was asked if (params.length === 0) { logger.debug('No ...
JavaScript
0
@@ -361,16 +361,49 @@ rn;%0A %7D%0A + const game = params.join(' ');%0A const @@ -514,22 +514,22 @@ se() - === params%5B0%5D +.includes(game .toL @@ -539,16 +539,17 @@ rCase()) +) %0A .ma @@ -629,16 +629,49 @@ erCase() +, game: m.user.presence.game.name %7D;%0A @@ -843,14 +843,31 @@ =%3E +%60$%7...
c2c6a40a7a5c25357e34cb3591477be8895e5d79
Remove error from errors object.
lib/common/error.js
lib/common/error.js
/* * Copyright (c) 2014 Modulus * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, di...
JavaScript
0
@@ -5310,136 +5310,8 @@ %7D,%0A - UPDATE_JSON_FILE_FAIL: %7B%0A id: 'UPDATE_JSON_FILE_FAIL',%0A level: 1,%0A message: 'Error updating package.json file.'%0A %7D,%0A IN
85d11b6f162af3dd4cd0c2d24472f4c393004d6c
Make sure the secondary view has an id
src/views/FilesSidebarCallView.js
src/views/FilesSidebarCallView.js
/** * * @copyright Copyright (c) 2019, Daniel Calviño Sánchez <danxuliu@gmail.com> * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Found...
JavaScript
0
@@ -1531,16 +1531,51 @@ t('div') +%0A%09%09this.id = 'FilesSidebarCallView' %0A%0A%09%09this
9a55c0b36ad107699d5f3f4b70b668be8f870995
Fix for loop closure when adding event listeners; Added show and hide default to the list library
list.js
list.js
define(["github/adioo/bind/v0.2.0/bind", "/jquery.js"], function(Bind) { function List(module) { var self; var config; var container; var template; function processConfig(config) { config.options = config.options || {}; config.template.binds = confi...
JavaScript
0
@@ -2422,24 +2422,25 @@ g.listen) %7B%0A +%0A @@ -2481,16 +2481,17 @@ %5Bmiid%5D;%0A +%0A @@ -2577,24 +2577,25 @@ idEvents) %7B%0A +%0A @@ -2634,16 +2634,17 @@ %5Bname%5D;%0A +%0A @@ -2789,24 +2789,72 @@ unction%22) %7B%0A +%0A (function(handle...
2a548d36141a05e79c6709aa18b8cdb8e87a6069
Remove double newline
src/functions/music/player.js
src/functions/music/player.js
const streamy = require("stream"); const fs = require('fs'); const request = require("request"); const spawn = require("child_process").spawn module.exports = Player; function Player(message) { var that = this; this.message = message; this.playlist = []; this.current = {}; this.pid = {}; this.connection = null...
JavaScript
0.00001
@@ -3641,13 +3641,12 @@ (1)%0A%09%7D;%0A%7D);%0A -%0A
1b5c7392413d3976849357bcf31c0efee439fdf2
Use deepmerge on loaded inventory items
src/game-data/player-items.js
src/game-data/player-items.js
import devtools from '../devtools'; import { REALLY_BIG_NUMBER } from '../utils'; import { load } from '../save'; import merge from 'deepmerge'; import PineCone from '../sprites/object/PineCone'; const itemMax = 500; const loadedItems = load('items') || {}; const defaultItems = { 'wood-axe': { value: true, ...
JavaScript
0
@@ -636,21 +636,13 @@ s = -Object.assign +merge (def
874cce97028a934067469c953f42703f653e3d44
fix focus blur event order test (#1077)
Gulpfile.js
Gulpfile.js
var babel = require('babel-core'); var gulpBabel = require('gulp-babel'); var del = require('del'); var eslint = require('gulp-eslint'); var fs = require('fs'); var gulp = require('gulp'); var qunitHarness = require('gulp-qunit-harness'); var mocha = require('gulp-mocha...
JavaScript
0
@@ -2609,24 +2609,51 @@ 'OS X 10.11' +,%0A version: '51' %0A %7D%0A%5D;%0A%0Av
c7cc3e2c404dce9a49a1333a3468256b369e12ce
remove yun dir from build
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var del = require('del'); var zip = require('gulp-zip'); gulp.task('clean', function(cb){ del(['./build'], cb); }); gulp.task('copy', ['clean'], function(){ return gulp.src('./**/*') .pipe(gulp.dest('./build')); }); gulp.task('thin', ['copy'], function(cb){ del([ './build/up...
JavaScript
0
@@ -458,16 +458,35 @@ sts.txt' +,%0A './build/yun' %0A %5D, cb
c99782353dcbb25f3e5a8216a63f85bbc388d47b
Remove unneeded path log
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'), babel = require('gulp-babel'), watch = require('gulp-watch'), uglify = require('gulp-uglify'), strip = require('gulp-strip-comments'), rename = require('gulp-rename'); less = require('gulp-less'); minify = require('gulp-minify-cs...
JavaScript
0.000002
@@ -1681,33 +1681,8 @@ .js%0A - console.log(path);%0A
ed4d47067e8efc35e52f8d0462ee7a318de4569d
fix correct version for self after appending a commit
lib/event_stream.js
lib/event_stream.js
var Promise = require('bluebird'); var Commit = require('./persistence/commit'); var _ = require('lodash'); // writeOnly - will never read entire stream from var EventStream = function (eventPartition, streamId, writeOnly) { if (streamId === undefined) { throw new Error('StreamId must be defined!'); } this._...
JavaScript
0.000002
@@ -2591,32 +2591,93 @@ Events;%0A +self._version = events%5Bevents.length-1%5D.version + 1;%0A for (var i = 0; @@ -2705,35 +2705,8 @@ +) %7B -%0A self._version++; %0A @@ -2846,33 +2846,8 @@ self -._prepareStream(callback) ;%0A
c9b1253e54b9bd186fe5273ff2b7f66e572abb87
add reload to 'html' task
Gulpfile.js
Gulpfile.js
'use strict'; var gulp = require('gulp'); var plugins = require('gulp-load-plugins')(); var del = require('del'); var browserify = require('browserify'); var watchify = require('watchify'); var reactify = require('reactify'); var source = require('vinyl-source-stream'); var browserSync = require('browser-sync'); var...
JavaScript
0.000024
@@ -558,16 +558,50 @@ build')) +%0A .pipe(reload(%7Bstream: true%7D)) ;%0A%7D);%0A%0Ag
887401900bc0ef5b4758b4e2b2c97d6dc35c3273
Update gulp
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), rename = require('gulp-rename'), watch = require('gulp-watch'), sourcemaps = require('gulp-sourcemaps'), minifyCSS = require('gulp-minify-css'), livereload = require('gulp-livereload'), del = re...
JavaScript
0.000001
@@ -252,24 +252,63 @@ nify-css'),%0A + nodemon = require('gulp-nodemon'),%0A liverelo @@ -401,162 +401,50 @@ ' -path/to/a/file.js',%0A 'oh/nice/globs/*.js',%0A 'whoa/dude/**/*.js'%0A %5D,%0A cssSrc: %5B%0A 'path/to/css/file.css',%0A 'css/stylin/on/*.css',%0A 'path/** +src/js/*.js'%0A %5D,...
81ad933f3218579a075350077b21c65532195b9c
make second drush string a STRING.
src/tap/ingestion.js
src/tap/ingestion.js
/** * ingestion.js * expects: * 1. path of directory (target) * 2. parentpid * 3. namespace * 4. model * (note: basic image,large image,audio,video, collection, pdf, binary -- all require * the "ibsp" in the command string, book requires the "ibbp" part in the drush command.) * output: * log of drush run...
JavaScript
0.000349
@@ -3020,16 +3020,23 @@ cmd2 = +string( 'drush - @@ -3102,16 +3102,17 @@ _ingest' +) ;%0A cons
389455decddd3153d222e26553927cf65a7cde17
fix spacing in exec string
src/tap/ingestion.js
src/tap/ingestion.js
/** * ingestion.js * expects: * 1. path of directory (target) * 2. parentpid * 3. namespace * 4. model * (note: basic image,large image,audio,video, collection, pdf, binary -- all require * the "ibsp" in the command string, book requires the "ibbp" part in the drush command.) * output: * log of drush run...
JavaScript
0.000682
@@ -2150,32 +2150,33 @@ r '+drupalhome+' + -v -u=1 --uri='+
962a0f12b0954971c22be88ce8558ef4008d4f9b
fix prop evaluation
src/toggle/Toggle.js
src/toggle/Toggle.js
import React from 'react'; import { pure, skinnable, props, t } from '../utils'; import cx from 'classnames'; import { getValueLink } from '../link-state'; import { warn } from '../utils/log'; /** * A nice animated Toggle rendered using only CSS */ @pure @skinnable() @props({ /** The current value (`true` if chec...
JavaScript
0.000001
@@ -528,16 +528,24 @@ value: +t.maybe( t.Boolea @@ -545,16 +545,17 @@ .Boolean +) ,%0A re
c181099a522f1c2f87d5a187e0a775ad169a3a5d
Use TS parser only for TS files
ts.js
ts.js
let base = require('./') module.exports = { ...base, parser: '@typescript-eslint/parser', parserOptions: { tsconfigRootDir: process.cwd(), project: ['./tsconfig.json'] }, plugins: [...base.plugins, '@typescript-eslint'], overrides: [ ...base.overrides, { files: ['*.{ts,tsx}'], r...
JavaScript
0
@@ -56,260 +56,283 @@ %0A p -arser: '@typescript-eslint/parser',%0A parserOptions: %7B +lugins: %5B...base.plugins, '@typescript-eslint'%5D,%0A overrides: %5B %0A -tsconfigRootDir: process.cwd(),%0A project: %5B'./tsconfig.json +...base.overrides,%0A %7B%0A files: %5B'*.ts', '*.tsx '%5D +, %0A -...
b5e5a07aee96a493fd78092e36e80cdc9420ecf7
reword the question for docker file
lib/workflow/questionnaire.js
lib/workflow/questionnaire.js
// For simplicity, all questions are selects. // We use value 'none' as a convention for no feature selected, // because enquirer doesn't support empty string '' as a value. exports.pickPlugin = { // add "plugin" to feature set for pluginFlow. // because this only provides one choice (default choice), it // is n...
JavaScript
0.999999
@@ -407,26 +407,29 @@ message: ' -Do +Would you like to
dd1ef11b2aac180e0f62133e7d06d8e289876438
Check if a value is an object before using 'in'
lib/axiom/bindings/base.js
lib/axiom/bindings/base.js
// Copyright (c) 2014 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import AxiomError from 'axiom/core/error'; import AxiomEvent from 'axiom/core/event'; /** * The base class for bindings, which includes the abili...
JavaScript
0
@@ -5700,16 +5700,43 @@ lse if ( +value instanceof Object && 'toStrin
115c9bcd488a49c3b8f0fbcd223022565a7859fe
remove comment
template/test/unit/karma.conf.js
template/test/unit/karma.conf.js
// Karma configuration // Generated on Fri Aug 11 2017 00:15:18 GMT+0800 (CST) var webpackConfig = require('../../build/webpack.test') module.exports = function(config) { config.set({ browsers: ['Chrome'], frameworks: ['mocha', 'expect'], reporters: ['spec', 'coverage'], coverageReporter: { dir...
JavaScript
0
@@ -1,83 +1,4 @@ -// Karma configuration%0A// Generated on Fri Aug 11 2017 00:15:18 GMT+0800 (CST)%0A var @@ -387,160 +387,8 @@ '%5D,%0A - // preprocess matching files before serving them to the browser%0A // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor%0A
23bf8680923d359c83d818fe2b6ea79418b9fa2d
bring colors over to stash to fix it
commands/stash.js
commands/stash.js
var _ = require('lodash'); var async = require('async'); var fs = require('fs'); var path = require('path'); var exec = require('child_process').exec; module.exports = { name:'stash', description:'Stashes any local changes across all repos', example:'bosco stash -r <repoPattern>', cmd:cmd } function cmd(bosco, ar...
JavaScript
0
@@ -143,16 +143,86 @@ ').exec; +%0Avar green = '%5Cu001b%5B42m %5Cu001b%5B0m';%0Avar red = '%5Cu001b%5B41m %5Cu001b%5B0m'; %0A%0Amodule
1abea62e6a8d3db43297507696b3839750ef10f3
Update commands\table.js
commands/table.js
commands/table.js
var cmd = module.exports = {}; cmd.type = "basic"; cmd.command = true; cmd.help = "Help !"; cmd.args = ''; cmd.run = (msg) => { var args = m.content.substring((bot.set.prefix).length+m.content.split(" ")[0].replace(bot.set.prefix, "").length+1); m.channel.sendMessage(args); };
JavaScript
0.000001
@@ -137,16 +137,18 @@ args = m +sg .content @@ -183,16 +183,18 @@ length+m +sg .content @@ -250,16 +250,18 @@ +1);%0A m +sg .channel
41dc4e7efdfb37a42e1067f1dc732a466afe34db
Add fullName computed property to user.
frontend/app/models/user.js
frontend/app/models/user.js
import Model from 'ember-data/model'; import attr from 'ember-data/attr'; export default Model.extend({ username: attr('string'), firstName: attr('string'), lastName: attr('string'), email: attr('string'), });
JavaScript
0
@@ -99,18 +99,16 @@ tend(%7B%0A%0A - userna @@ -129,18 +129,16 @@ ng'),%0A - - firstNam @@ -158,18 +158,16 @@ ng'),%0A - - lastName @@ -184,18 +184,16 @@ ring'),%0A - email: @@ -209,15 +209,147 @@ ring'),%0A +%0A +fullName: Ember.computed('firstName', 'lastName', function() %7B%0A return...
3bf372a642a43cb8c7cd1c2bb6ab793c0074d80c
Remove unused import from pages/login.js
frontend/src/pages/login.js
frontend/src/pages/login.js
import React from 'react'; import PropTypes from 'prop-types'; import withRoot from '../utils/withRoot'; import { withStyles } from 'material-ui/styles'; import Head from 'next/head'; import Paper from 'material-ui/Paper'; import Typography from 'material-ui/Typography'; import TextField from 'material-ui/TextField'; i...
JavaScript
0
@@ -518,59 +518,8 @@ r';%0A -import AppContent from '../components/AppContent';%0A // i
45b99311c1b7b952eb4da9917157d1a7e6c4de38
Remove unnecessary variables
frontend/src/shogi/board.js
frontend/src/shogi/board.js
import Piece from './piece'; export default class Board { constructor() { this.setBoard(this.initialUsiBoard()); } initialUsiBoard() { return ( [ ['l', 'n', 's', 'g', 'k', 'g', 's', 'n', 'l'], ['*', 'b', '*', '*', '*', '*', '*', 'r', '*'], ['p', 'p', 'p', 'p', 'p', 'p', 'p'...
JavaScript
0.000643
@@ -1999,51 +1999,8 @@ ) %7B%0A - var %5BxCor, yCor%5D = %5Bpiece.x, piece.y%5D;%0A @@ -2177,20 +2177,23 @@ Cor = $%7B -xCor +piece.x %7D, yCor @@ -2196,20 +2196,23 @@ Cor = $%7B -yCor +piece.y %7D%60;%0A
068dc6b7ddb0afb453dff8bbc63c18e0911f3fdf
Implement `transposeToCorX`, `transposeToCorY`
frontend/src/shogi/board.js
frontend/src/shogi/board.js
import Piece from './piece'; export default class Board { constructor() { this.setBoard(this.initialUsiBoard()); } initialUsiBoard() { return ( [ ['l', 'n', 's', 'g', 'k', 'g', 's', 'n', 'l'], ['*', 'b', '*', '*', '*', '*', '*', 'r', '*'], ['p', 'p', 'p', 'p', 'p', 'p', 'p'...
JavaScript
0.000722
@@ -827,13 +827,31 @@ r = -y + 1 +this.transposeToCorY(y) ;%0A @@ -911,18 +911,31 @@ r = -10 - x - 1 +this.transposeToCorX(x) ;%0A @@ -4110,24 +4110,141 @@ %7D);%0A %7D%0A%0A + transposeToCorX(xIndex) %7B%0A return 10 - xIndex - 1;%0A %7D%0A%0A transposeToCorY(yIndex) %7B%0A return yIndex + 1;%0...
f6fafcd8c3e13c815fa6e7805ecfebf6019faadc
parametrize mq-worker
src/api/mq/mq-worker.js
src/api/mq/mq-worker.js
const amqp = require('amqplib'); // const amqpSugar = require('amqplib-sugar'); // const superagent = require('superagent-promise')(require('superagent'), Promise); const uri = process.env.SAMMLER_RABBITMQ_URI; // Todo: Remove, just a prototype class MqWorker { constructor() { this.init(); } init() { t...
JavaScript
0.998334
@@ -157,16 +157,153 @@ romise); +%0Aconst GitHubProfile = require('./../modules/github/github.profile');%0Aconst gitHubProfileBL = require('./../modules/profile/profile.bl'); %0A%0Aconst @@ -435,60 +435,140 @@ ;%0A -%7D%0A%0A init() %7B%0A this.listenFoo();%0A %7D%0A%0A listenFoo + this.gitHubProfile = new...
4a4b7308a9e90a6ac7774baba724043a14a50016
Fix build error
src/app/index.module.js
src/app/index.module.js
/* global malarkey:false, moment:false, Howl, Howler:false, SockJS:false*/ import { config } from './index.config'; import { routerConfig } from './index.route'; import { runBlock } from './index.run'; import MainController from './main/main.controller'; import AboutController from './about/about.controller'; import S...
JavaScript
0.000001
@@ -1035,49 +1035,8 @@ js'; -%0Aimport Player from './models/player.js'; %0A%0Ava @@ -1430,50 +1430,8 @@ S)%0A%0A - //models%0A .constant('Player', Player)%0A%0A //
44b82684976be8de372e1c1a5a2078b371993ef4
make sure the logger only shows what is expected for a particular level
lib/haiku/logger.js
lib/haiku/logger.js
var colors = require('colors'); // this is a quick-and-dirty logger. there are other nicer loggers out there // but the ones i found were also somewhat involved. this one has a Ruby // logger type interface and color codes the console output // // we can easily replace this, provide the info, debug, etc. methods are t...
JavaScript
0.000001
@@ -23,19 +23,51 @@ colors') +%0A , _ = require('underscore')%0A ;%0A%0A +%0A // this @@ -456,16 +456,38 @@ ions) %7B%0A + var logger = this;%0A%0A this.l @@ -553,16 +553,17 @@ colors;%0A +%0A switch @@ -575,17 +575,16 @@ .level)%7B - %0A cas @@ -656,24 +656,302 @@ ,message); %7D +%0A%0A _.eac...
58889a2aec358e84e152af7ce2c279efedb9cfae
fix async error on lines response
src/helpers/lines-response.js
src/helpers/lines-response.js
import axios from 'axios' import { API } from '../constants' export default async function buildLinhasResponse (lines) { const buildPromise = tripId => axios({ method: 'get', url: `${API.server}/trips/${tripId}` }) const parseShapeId = res => res.map(item => item.data[0] ? item.data[...
JavaScript
0.000029
@@ -74,14 +74,8 @@ ult -async func @@ -83,18 +83,12 @@ ion -buildLinha +line sRes @@ -269,22 +269,16 @@ (item =%3E -%0A item.da @@ -546,31 +546,14 @@ %0A%0A -const shapesIds = await +return get @@ -575,28 +575,30 @@ Ids) -%0A%0A const response = +.then(shapesIds =%3E%0A lin @@ -622,16 +622,18...
69486d0770790f19115676f26bfef45c7bb4d796
initialize a swiz instance
lib/cast-agent/managers.js
lib/cast-agent/managers.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0.000088
@@ -861,16 +861,44 @@ sprintf; +%0Avar swiz = require('swiz'); %0A%0Avar jo @@ -1190,24 +1190,159 @@ r = null;%0A%0A%0A +/**%0A * The Cast Agent's ResourceManagers.%0A */%0Avar managers = %7B%7D;%0A%0A%0A/**%0A * The Cast Agent's Swiz instance.%0A */%0Avar serializer = null;%0A%0A%0A /**%0A * Initi @@ -1458,16 +145...
766db3a373e777ade402c09226f087a48f4fb627
recompile dom.svg.js in lib
lib/imba/dom.svg.js
lib/imba/dom.svg.js
(function(){ function idx$(a,b){ return (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b); }; tag$.SVG.defineTag('svgelement', function(tag){ tag.namespaceURI = function (){ return "http://www.w3.org/2000/svg"; }; var types = "circle defs ellipse g line linearGradient mask path pattern poly...
JavaScript
0.000001
@@ -98,35 +98,41 @@ ;%0A%09%7D;%0A%09%0A%09%0A%09tag$. -SVG +ns('svg') .defineTag('svge @@ -1131,35 +1131,41 @@ );%0A%09%7D);%0A%09%0A%09tag$. -SVG +ns('svg') .defineTag('svg' @@ -1214,35 +1214,41 @@ );%0A%09%7D);%0A%09%0A%09tag$. -SVG +ns('svg') .defineTag('g'); @@ -1248,35 +1248,41 @@ g('g');%0A%09%0A%09tag$. ...
fd556a246be26a4acb2089af498417e97f6a7e0e
Fix bug where config is over written when multiple plugins are installed
lib/android-cli.js
lib/android-cli.js
var path = require('path'); var fs = require('fs'); var mkdirp = require('mkdirp'); var rimraf = require('rimraf') var cordova = require('cordova-lib'); var CONFIG_XML = "<?xml version='1.0' encoding='utf-8'?><widget xmlns='http://www.w3.org/ns/widgets' xmlns:cdv='http://cordova.apache.org/ns/1.0'></widget>"; var AND...
JavaScript
0
@@ -992,32 +992,32 @@ );%0A%0A -fs. write -FileSync +IfNotExists (path.re @@ -1080,24 +1080,24 @@ -fs. write -FileSync +IfNotExists (pat @@ -1163,24 +1163,265 @@ IFEST);%0A%7D;%0A%0A +function writeIfNotExists(filename, data) %7B%0A try %7B%0A if (!fs.lstatSync(filename).isFile()) %7B%0A ...
bdbd84e2a978322f3af12c21e729eb7b7cd4a3dc
Update message type for Managers
src/types/message.js
src/types/message.js
const ArgumentType = require('./base'); class MessageArgumentType extends ArgumentType { constructor(client) { super(client, 'message'); } async validate(val, msg) { if(!/^[0-9]+$/.test(val)) return false; return Boolean(await msg.channel.messages.fetch(val).catch(() => null)); } parse(val, msg) { retur...
JavaScript
0.000001
@@ -336,16 +336,22 @@ essages. +cache. get(val)
51781f79218de6c0f011fafd9a5593bf1e7865c5
Fix incorrect delta calculation (#5286)
lib/client/clock-client.js
lib/client/clock-client.js
'use strict'; const browserSettings = require('./browser-settings'); var client = {}; client.settings = browserSettings(client, window.serverSettings, $); // console.log('settings', client.settings); // client.settings now contains all settings client.query = function query () { console.log('query'); var parts...
JavaScript
0
@@ -947,26 +947,16 @@ && !rec - && !delta ) %7B%0A @@ -1017,14 +1017,19 @@ && -! delta +==null ) %7B%0A
6391622fb3528059c2ba8b1f30c6ce3de024b2d5
Fix plugin export to extend Leaflet instead of exposing methods
leaflet.spin.js
leaflet.spin.js
(function (window) { var SpinMapMixin = { spin: function (state, options) { if (!!state) { // start spinning ! if (!this._spinner) { this._spinner = new Spinner(options).spin(this._container); this._spinning = 0; ...
JavaScript
0
@@ -4,16 +4,25 @@ nction ( +factory, window) @@ -23,16 +23,673 @@ ndow) %7B%0A + // define an AMD module that relies on 'leaflet'%0A if (typeof define === 'function' && define.amd) %7B%0A define(%5B'leaflet'%5D, function (L) %7B%0A factory(L);%0A %7D);%0A%0A // define a Common JS ...
fc2af03a0711c37be8664dc6d5d4f9a8ff0715ce
Remove extraneous #EXISTING flagging
lib/install/node.js
lib/install/node.js
'use strict' var defaultTemplate = { package: { dependencies: {}, devDependencies: {}, _requiredBy: [], _phantomChildren: {} }, loaded: false, children: [], requires: [], missingDeps: {}, path: null, realpath: null } var create = exports.create = function (node, template) { if (!temp...
JavaScript
0.000075
@@ -726,136 +726,8 @@ ) %7B%0A - if (node.parent && !node.parent.parent && node.package && !node.package._requiredBy) node.package._requiredBy = %5B'#EXISTING'%5D%0A va
c7e754e9f4c05db80f8e105db1da5542dd0b7240
change apn to apns
db.js
db.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema, ObjectId = Schema.ObjectId; var db_url = process.env.environmentVariable || "mongodb://localhost:27017/aerodeck", db = mongoose.connect(db_url); var boardState = new Schema({ one:{type:[Number]}, two:{type:[Number]}, three:{type:[Number]...
JavaScript
0.003479
@@ -542,16 +542,17 @@ g,%0A apn +s : %7Btype:
3fe4d54749c69b32ebbb8072e4a45e7f702b35f3
enable notify database property change for hasMany
addon/properties/relations/has-many.js
addon/properties/relations/has-many.js
import Ember from 'ember'; import Relation from './relation'; import Ignore from './util/ignore'; import { getInternalModel, internalModelDidChangeIsDeleted, internalModelDidChangeInternalWillDestroy } from '../../internal-model'; const { copy, A } = Ember; const getDiff = (curr, next) => { let remove = c...
JavaScript
0
@@ -625,24 +625,90 @@ ore();%0A %7D%0A%0A + get notifyInternalModelDidSetDatabase() %7B%0A return true;%0A %7D%0A%0A dirty() %7B%0A
936fe05c2811ba5c7e4773f8b05b3e80fd011240
Remove unnecessary default value
src/bin/cli/harmonic.js
src/bin/cli/harmonic.js
require('gulp-6to5/node_modules/6to5/polyfill'); var program = require('commander'); import { version } from '../config'; import { cliColor } from '../helpers'; import logo from './logo'; import { init, config, newFile, run } from './util'; program .version(version); program .command('init [path]') .desc...
JavaScript
0
@@ -1316,59 +1316,167 @@ -.action(function(title, path = '.', options = %7B%7D) %7B +// %5BBUG%5D https://github.com/jshint/jshint/issues/1779#issuecomment-68985429%0A .action(function(title, path = '.', %7B open: autoOpen %7D) %7B // jshint ignore:line %0A @@ -1505,33 +1505,29 @@ st', title, -options.o ...
2e47c61860c0035e9b0b15cc47e5e6496944baad
Create resuable list of file extensions the app is interested in.
lib/configuration/index.js
lib/configuration/index.js
/** * Factory for singleton Config data object for the app. */ 'use strict'; var path = require('path'); var assign = require('lodash.assign'); var folderNames = { dataStorage: 'project-data', derived: 'derived', projects: 'projects' }; // Cached instance of Config. var configInstance; function Config(confi...
JavaScript
0
@@ -241,16 +241,116 @@ ts'%0A%7D;%0A%0A +// List of filename extensions the app cares about.%0Avar filesOfInterest = %5B%0A 'feature',%0A 'md'%0A%5D;%0A%0A // Cache @@ -936,24 +936,61 @@ %5D = -/%5C.(feature%7Cmd)/ +new RegExp('%5C%5C.(' + filesOfInterest.join('%7C') + ')$') ;%0A%7D%0A
e8e9e1ec303aff3b6a06dbb54310a16c1b452c00
Add ticksService to core
src/botPage/bot/Core.js
src/botPage/bot/Core.js
import { tradeOptionToProposal } from './tools' export default class Core { constructor($scope) { this.api = $scope.api.originalApi this.activeProposals = [] this.observe() this.isPurchaseStarted = false this.isSellAvailable = false this.forSellContractId = 0 this.token = '' this.obse...
JavaScript
0
@@ -154,32 +154,59 @@ eProposals = %5B%5D%0A + this.tickListener = %7B%7D%0A this.observe @@ -563,46 +563,8 @@ lse%0A - const symbol = tradeOption.symbol%0A @@ -738,42 +738,464 @@ his. -api.subscribeToTick(symbol)%0A %7D) +monitorTickEvent(tradeOption.symbol)%0A %7D)%0A %7D%0A monitorTickEve...
f31569272a8eaa4aec7ea39de58c2daad020662c
fix container bug
gallery/gallery.js
gallery/gallery.js
var d3 = require('d3'); var _ = require('lodash'); var templateHTML = require('./gallery.jade'); var ImageViz = require('../viz/image'); var GalleryViz = function(selector, data, images, opts) { this.$el = $(selector).first(); this.selector = selector; this.currentImage = 0; this.images = image...
JavaScript
0.000001
@@ -664,24 +664,25 @@ );%0A %7D);%0A%0A +%0A this.ima @@ -776,24 +776,31 @@ .$el.width() + %7C%7C 400 %7D);%0A%0A%7D;%0A%0A%0Amo @@ -1142,16 +1142,18 @@ ').html( +'' );%0A t
e964bef212c5655415f67435c3e1e76e9feb262e
Use full path for import
mac/resources/open_dctb.js
mac/resources/open_dctb.js
define(['./open_wctb'], function(open_wctb) { return open_wctb; });
JavaScript
0
@@ -6,9 +6,21 @@ e(%5B' -. +mac/resources /ope
19d5c3c4bd20961aa63037eb00c093ac3b205094
fix request.js
src/utils/request.js
src/utils/request.js
import Ajax from 'robe-ajax' export default function request (url, options) { if (options.cross) { return Ajax.getJSON('http://query.yahooapis.com/v1/public/yql', { q: `select * from json where url='${url}?${Ajax.param(options.data)}'`, format: 'json', }) } return Ajax.ajax({ url, met...
JavaScript
0.000002
@@ -373,16 +373,59 @@ %7C%7C %7B%7D,%0A + processData: options.method === 'get',%0A data
65db2e6ecd1cb2c732a78e48a5390ab9e6c5cf03
исправить BEMHTML.apply(undefined)
lib/bemhtml/api.js
lib/bemhtml/api.js
var ometajs = require('ometajs'), xjst = require('xjst'), vm = require('vm'), bemhtml = require('../ometa/bemhtml'), BEMHTMLParser = bemhtml.BEMHTMLParser, BEMHTMLToXJST = bemhtml.BEMHTMLToXJST, BEMHTMLLogLocal = bemhtml.BEMHTMLLogLocal; var api = exports; // // ### function translate (source)...
JavaScript
0.000127
@@ -1352,38 +1352,44 @@ ions.raw ? ' -this' : '%5Bthis +context' : '%5Bcontext %5D') + ', opt @@ -1467,22 +1467,28 @@ ? ' -this' : '%5Bthis +context' : '%5Bcontext %5D') @@ -1660,32 +1660,71 @@ options) %7B%5Cn' +%0A + ' var context = this;%5Cn' +%0A ' if @@ -1792,24 +1792,127 @@ cache;%...
7e8d266a03556a39e3580bc61759c38ca7c3d0f0
Set require_delivery to true
lib/Facebook.js
lib/Facebook.js
/** @module facebook */ const Botkit = require('botkit'); const Config = require('../config/Config.js'); const Logger = require('./Logger.js'); const controller = Botkit.facebookbot({ debug: Config.debug, log: true, access_token: Config.facebookPageAccessToken, verify_token: Config.facebookVerifyToken, app_...
JavaScript
0
@@ -185,104 +185,128 @@ %7B%0A -debug: Config.debug,%0A log: true,%0A access_token: Config.facebookPageAccessToken +log: true,%0A stats_optout: true,%0A debug: Config.debug,%0A require_delivery: true,%0A validate_requests: true ,%0A +%0A -verify_token +api_host : Co @@ -322,19 +322,15 @@ book -VerifyTok...
f4e839cf2596b03a4db9de90de62d024d3d37312
Replace fa with fna in match
lib/bionode-sam.js
lib/bionode-sam.js
var path = require('path') var spawn = require('child_process').spawn var through = require('through2') fs = require('fs') module.exports = exports = SAM function SAM(command) { var command = command || 'mem' return samStream function samStream(srcDest, callback) { var stream = through.obj(transform) ...
JavaScript
0.999912
@@ -3944,32 +3944,33 @@ j%5B0%5D.indexOf('.f +n a') !== -1 && Ar
75f281743c1f6d40584f88ce871077d966be558e
support deprecated appComponent, add warning message
lib/Fluxible.js
lib/Fluxible.js
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; var debug = require('debug')('Fluxible'); var async = require('async'); var FluxibleContext = require('./FluxibleContext'); var dispatcherClassFactory = require('dispatchr...
JavaScript
0
@@ -459,24 +459,79 @@ %7D %5Boptions%5D%0A + * @param %7BObject%7D %5Boptions.appComponent%5D (DEPRECATED)%0A * @param %7BO @@ -1045,16 +1045,40 @@ omponent + %7C%7C options.appComponent ;%0A th @@ -1096,16 +1096,181 @@ = %5B%5D;%0A%0A + if (options.appComponent) %7B%0A console.warn(%22*** %60appCom...
c76d5dc8187f34d6938640a4b2f8ef9ee17cefe3
update lib
lib/RcSelect.js
lib/RcSelect.js
/** * Created by steve on 15/09/15. */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || fa...
JavaScript
0.000001
@@ -2964,18 +2964,32 @@ tValue: -%5B%5D +this.props.value ,%0A
60e8c09f7b23553d211ffb9b4e295dc23b3dc7bd
Update if ext up to changes in dom-ext
if.js
if.js
'use strict'; var d = require('es5-ext/lib/Object/descriptor') , isFunction = require('es5-ext/lib/Function/is-function') , isMutable = require('mutable/is') , normalize = require('dom-ext/lib/Document/prototype/normalize') , removeNode = require('dom-ext/lib/Node/prototype/remove') , isNode =...
JavaScript
0
@@ -1852,36 +1852,35 @@ ttr = function ( -docu +ele ment, name, valu @@ -1910,54 +1910,26 @@ var -attr = document.createAttribute(name), current +current, attrValue ;%0A%09i @@ -1954,26 +1954,25 @@ e)) %7B%0A%09%09attr -.v +V alue = this. @@ -2008,16 +2008,118 @@ False);%0A +%09%09if (attrValue == null) element...
561006ee5cef57268e08534981e406d579b8082b
Fix path backtracing on non-Windows systems
build/incrementBuild.js
build/incrementBuild.js
const fs = require("fs"); const path = require("path"); let thePath = path.format({ dir:__dirname + "\\..\\src", base:"buildId.js" }); let buildFile = fs.readFileSync(thePath) + ""; let ver = parseInt(buildFile.match(/\d+/g)[0]); ver++; fs.writeFileSync(thePath,"export default " + ver++ + ";")
JavaScript
0
@@ -99,15 +99,38 @@ e + -%22%5C%5C..%5C%5C +path.sep + %22..%22 + path.sep + %22 src%22
0d692f83a4bdcdd1c58d18f13b3095c209b7b5de
修改在非src 的目录里面 有require html的时候 出错
build/webpack.config.js
build/webpack.config.js
var path = require('path'); var webpack = require('webpack'); var merge = require('webpack-merge'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var CopyWebpackPlugin = require('copy-webpack-plugin'); var ngAnnotatePlugin = require('ng-annotate-webpack-plugin'); var ExtractTextPlugin = require('extract-text-...
JavaScript
0
@@ -1767,33 +1767,8 @@ );%0A%0A -console.log(__dirname);%0A%0A %0Amod
68f87435def2020fdc7c900f151d541fe34c9ba7
throw error if image is inaccessible (#1281)
lib/cli/options.js
lib/cli/options.js
/* * Copyright 2016 resin.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
JavaScript
0.999998
@@ -2754,22 +2754,26 @@ -fs.accessSync( +const imagePath = argv @@ -2797,18 +2797,194 @@ V_INDEX%5D -) ; +%0A%0A try %7B%0A fs.accessSync(imagePath);%0A %7D catch (error) %7B%0A throw errors.createUserError('Unable to access file', %60The image $%7BimagePath%7D is not accessible%60);%0A %7D...
a3c75fd5f03e68b0fa5175cfecf824d0c6950388
add SkinDb.bson_serializer SkinDb.ObjectID
lib/mongoskin/db.js
lib/mongoskin/db.js
var __slice = Array.prototype.slice, mongodb = require('mongodb'), events = require('events'), SkinAdmin = require('./admin').SkinAdmin, SkinCollection = require('./collection').SkinCollection, SkinGridStore = require('./gridfs').SkinGridStore, Db = mongodb.Db, Server = mongodb.Server, ...
JavaScript
0.000003
@@ -1455,16 +1455,108 @@ s = %7B%7D;%0A + this.bson_serializer = db.bson_serializer;%0A this.ObjectID = db.bson_serializer.ObjectID;%0A %7D;%0A%0A/**%0A
7b17b0610a99a4934e49f16e28b83b2ea3d10f2e
use Array.reduce for brevity
lib/arraySum.js
lib/arraySum.js
function arraySum(array) { var finalSum = 0; finalSum = array.reduce(function(sum, elem) { if (typeof elem == "number" && !Number.isNaN(elem) && Number.isFinite(elem)) { return sum + elem; } return sum; }); return finalSum; } module.exports = arraySum;
JavaScript
0.000029
@@ -40,24 +40,8 @@ um = - 0;%0A finalSum = arr @@ -205,16 +205,19 @@ sum;%0A %7D +, 0 );%0A ret
55818dcb52c968ebfacfe2cadc9fef40f7e63ecf
disable survey_on field in edit survey modal
app/containers/Programs/EditProgram.js
app/containers/Programs/EditProgram.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import get from 'lodash.get'; import PropTypes from 'prop-types'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import { DEFAULT_PARENT_ID } from 'config'; import isEmpty from 'lodash.isempty'; import { Loa...
JavaScript
0.000001
@@ -3670,32 +3670,264 @@ ed%0A /%3E%0A + %3CSelect%0A name=%22survey_on%22%0A label=%22Survey On Type%22%0A options=%7Bthis.getSurveyOns()%7D%0A value=%7Bthis.getValue(program.survey_on)%7D%0A required%0A disabled%0A /%3E%0A ...
c4c3f8320b37d61555465311b989b690d0848a04
copy only arguments
lib/client/flow.js
lib/client/flow.js
var Stream = require('./stream'); var Socket = require('./socket'); var utils = require('./utils'); // export event emitter object (clone before use!) module.exports = function (emitter) { // merge flow emitter to existing object if (emitter) { for (var key in FlowEmitter) { emitter[key] ...
JavaScript
0
@@ -2804,16 +2804,29 @@ = config +.splice(0, 1) %5B0%5D;%0A @@ -3045,46 +3045,8 @@ fig%0A - // TODO is coping necessary??%0A @@ -3074,25 +3074,16 @@ h(config -.slice(1) );%0A%0A @@ -5131,32 +5131,41 @@ se %7B%0A + stream = method%5B1%5D.apply @@ -5173,32 +5173,42 @@ method%5B0%5D...
48c3b8231ec3c002e5b6d359328dd08738634b0a
fix little bug in node
lib/client/node.js
lib/client/node.js
// Dep: [KadOH]/core/stateeventemitter // Dep: [KadOH]/core/deferred // Dep: [KadOH]/globals // Dep: [KadOH]/peer // Dep: [KadOH]/reactor // Dep: [KadOH]/routingtable // Dep: [KadOH]/util/crypto // Dep: [KadOH]/iterativefind // Dep: [KadOH]/valuemanagement (function(exports) { var KadOH = exports, ...
JavaScript
0.000001
@@ -3421,22 +3421,21 @@ lookup, -reject +error );%0A @@ -3855,20 +3855,14 @@ -var lookup = +return thi
dd375237d10e27205967fb9feab791d96d6e625c
Remove mixin function
src/js/charts/barTypeMixer.js
src/js/charts/barTypeMixer.js
/** * @fileoverview barTypeMixer is mixer of bar type chart(bar, column). * @author NHN Ent. * FE Development Lab <dl_javascript@nhnent.com> */ 'use strict'; var chartConst = require('../const'), rawDataHandler = require('../helpers/rawDataHandler'), predicate = require('../helpers/predicate'); /...
JavaScript
0.005459
@@ -3752,183 +3752,8 @@ s);%0A - %7D,%0A%0A /**%0A * Mix in.%0A * @param %7Bfunction%7D func target function%0A * @ignore%0A */%0A mixin: function(func) %7B%0A tui.util.extend(func.prototype, this);%0A
95f1e21e99f3abb2bec287542a5a1a202dc5b1e9
Optimize async composition
lib/composition.js
lib/composition.js
'use strict'; function Composition() {} const compose = ( // Asynchronous functions composition fns // array of functions, callback-last / err-first // Returns: function, composed callback-last / err-first ) => { const comp = function(data, callback) { if (!callback) { callback = data; data = ...
JavaScript
0.001632
@@ -1307,157 +1307,8 @@ %7D;%0A%0A -Composition.prototype.exec = function(fn, finish) %7B%0A if (Array.isArray(fn)) compose(fn)(this.context, finish);%0A else fn(this.context, finish);%0A%7D;%0A%0A Comp @@ -1348,24 +1348,24 @@ tion(err) %7B%0A + if (this.t @@ -1920,22 +1920,20 @@ const -finish +next = (er...
2e30756e9684c0bc3a5972890580d6eec8a6335e
Update TaskView.js
src/js/components/TaskView.js
src/js/components/TaskView.js
import classNames from 'classnames'; import mixin from 'reactjs-mixin'; import {StoreMixin} from 'mesosphere-shared-reactjs'; import React from 'react'; import FilterBar from './FilterBar'; import FilterButtons from './FilterButtons'; import FilterHeadline from './FilterHeadline'; import FilterInputText from './Filter...
JavaScript
0.000001
@@ -61,24 +61,51 @@ tjs-mixin';%0A +import React from 'react';%0A import %7BStor @@ -149,35 +149,8 @@ js'; -%0Aimport React from 'react'; %0A%0Aim
5242b9a14431e2ca0ce0bfaf06794d174bc6d4a0
fix login issue
src/js/controllers/session.js
src/js/controllers/session.js
'use strict'; /** * @ngdoc function * @name Pear2Pear.controller:SessionCtrl * @description * # SessionCtrl * Controller of the Pear2Pear */ angular.module('Pear2Pear') .config(['$routeProvider', function($routeProvider) { $routeProvider. when('/session/new', { templateUrl: 'session/new.html'...
JavaScript
0.000001
@@ -563,16 +563,28 @@ 'pear', + '$timeout', functio @@ -628,16 +628,26 @@ te, pear +, $timeout ) %7B%0A @@ -1044,33 +1044,31 @@ -console.log('success!');%0A +$timeout(function()%7B%0A @@ -1157,32 +1157,34 @@ n);%0A + $location.path(' @@ -1195,24 +1195,39 @@ munities');%0A + ...
7ab6c064830a88fd39a51777599ee6cdbe5f92db
test update
src/js/jquery.StorageTable.js
src/js/jquery.StorageTable.js
/* StorageTables v0.0.2 - Copyright 2015 by Anthony Fassett */ (function ($) { "use strict"; $.fn.storageTable = function (options) { var settings = $.extend({ // These are the defaults. dataType: "json", data: [], editable: false, deletable: f...
JavaScript
0.000001
@@ -684,29 +684,16 @@ r stuff. -%0A //Add In @@ -716,16 +716,28 @@ r &nbsp; + %0A @@ -779,16 +779,28 @@ able!%22); + %0A @@ -820,20 +820,16 @@ Listern( -this );%0A @@ -1498,22 +1498,16 @@ Listern( -select ) %7B%0A @@ -1558,49 +1558,17 @@ $( -select...
a63106515ce84005d530501794b44dad4a81cf7e
add maxBuffer option
src/commands/restart.js
src/commands/restart.js
/** * @file command `reload` * @author zdying */ 'use strict'; var path = require('path'); var childProcess = require('child_process'); var homedir = require('os-homedir'); var hiproxyDir = path.join(homedir(), '.hiproxy'); module.exports = { command: 'restart', describe: 'Restart the local proxy service (On...
JavaScript
0.000002
@@ -619,16 +619,42 @@ oin(' ') +, %7BmaxBuffer: 5000 * 1024%7D );%0A%0A
2e5d51e19174c3a3d0c3ec4e6d25eede1805f7ba
save cursor position in state
src/js/store/editorReducer.js
src/js/store/editorReducer.js
import R from 'ramda' import fileStorage from './fileStorage' export const CURSOR_POSITION_IN_FILE_EDITOR_CHANGED = 'CURSOR_POSITION_IN_FILE_EDITOR_CHANGED ' export const cursorPositionInFileEditorChanged = ({cursor, fileId}) => { return { type: CURSOR_POSITION_IN_FILE_EDITOR_CHANGED, cursor, ...
JavaScript
0.000001
@@ -953,51 +953,201 @@ D%5D: -setProp('focusedFunctionEditor', undefined) +(state, action) =%3E %7B%0A const %7Bcursor%7D = action%0A return R.pipe(%0A setProp('focusedFunctionEditor', undefined),%0A setProp('cursor', cursor)%0A )(state)%0A %7D ,%0A @@ -1234,16 +1234,2...
bb1f07ac634bb591d7cf68b54cce09700302cc28
Fix astral characters in youtube json output
lib/domains/youtube.com.js
lib/domains/youtube.com.js
///////////////////////////////////////////////////////////////////////////// // YouTube // 'use strict'; var encode = require('mdurl/encode'); var urlLib = require('url'); var EmbedzaError = require('../utils/error'); module.exports = { match: [ /^https?:\/\/(?:www\.)?youtube\.com\/?watch\?(?:[^&...
JavaScript
0.999989
@@ -1496,16 +1496,585 @@ try %7B%0A + // YouTube is encoding astral characters in a non-standard way like %5CU0001f44d,%0A // so we replace them before body decoding.%0A //%0A // Example:%0A // https://www.youtube.com/oembed?format=json&url=http://www.youtube.com/watch?v=...
00d913e92d8a0d8f34b5df1b24a34a1db1f1839a
Capitalize all the headers
src/lib/mock/mockedRequest.js
src/lib/mock/mockedRequest.js
'use strict'; function MockedRequest(serverType, req, options) { var module = this; this.serverType = serverType === 'express' ? 'express' : 'restify'; if (!options) { options = {}; } this.params = req ? req.params : options.params || {}; this.query = req ? req.query : options.query || {}; this.he...
JavaScript
0.999999
@@ -431,48 +431,52 @@ his. -serverType === 'restify' && this.headers +headers && typeof(this.headers) === 'object' ) %7B%0A
29f1d06d2320dc05ba7d608a2bd37147dca72eb0
make __filename and __dirname undefined in REPL
lib/prelude/node.js
lib/prelude/node.js
process.argv = require('remote').process.argv
JavaScript
0.000436
@@ -39,8 +39,92 @@ ss.argv%0A +%0A// in REPL these will be undefined%0Adelete global.__dirname%0Adelete global.__filename
0255a60dd6a5c2872a1f728fb4d40715b64b4c98
remove dead code
lib/preprocessor.js
lib/preprocessor.js
/** * Module dependencies. */ var assert = require('assert'); var debug = require('debug')('icecast:preprocessor'); /** * Module exports. */ module.exports = preprocessor; /** * The fake HTTP version to write when an "ICY" version is encountered. */ var HTTP10 = new Buffer('HTTP/1.0'); /** * This all real...
JavaScript
0.000619
@@ -1366,110 +1366,8 @@ %0A%7D%0A%0A -function getOnData () %7B%0A debug('get %22ondata%22');%0A assert(0);%0A //return this._preprocessedOnData;%0A%7D%0A%0A func
add769142b65300ae37fc620e5b440c6c6191743
Remove unnecessary loop.
src/lib/utils/series-utils.js
src/lib/utils/series-utils.js
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
JavaScript
0.000001
@@ -2504,16 +2504,38 @@ a = %5B%5D;%0A + let prevIndex = -1;%0A childr @@ -2566,24 +2566,24 @@ Index) =%3E %7B%0A - if (!chi @@ -2862,169 +2862,8 @@ 0;%0A - let prevIndex = childIndex - 1;%0A while (prevIndex %3E= 0) %7B%0A if (childData%5BprevIndex%5D) %7B%0A break;%0A %7D...
4e0b1d36df37368fe3038fdf0aac2071c17cf730
add instrumenter options in confg
lib/preprocessor.js
lib/preprocessor.js
var istanbul = require('istanbul'), ibrik = require('ibrik'), ismailia = require('ismailia'), minimatch = require('minimatch'); var createCoveragePreprocessor = function(logger, basePath, reporters, coverageReporter) { var log = logger.create('preprocessor.coverage'); var instrumenterOverrides = ...
JavaScript
0
@@ -449,16 +449,315 @@ mailia%7D; +%0A var instrumentersOptions = Object.keys(instrumenters).reduce(function getInstumenterOptions(memo, instrumenterName)%7B%0A memo%5BinstrumenterName%5D = (coverageReporter && coverageReporter.instrumenterOptions && coverageReporter.instrumenterOptions%5BinstrumenterName%5D) %7C%...
aaaa183d119dcf39054b1aa6395878f75a78cae7
Make error passthrough explicit
lib/process-tree.js
lib/process-tree.js
// Copyright (c) 2017 The Regents of the University of Michigan. // All Rights Reserved. Licensed according to the terms of the Revised // BSD License. See LICENSE.txt for details. let treeNode = (address, setUp) => new Promise( function(resolveNode, rejectNode) { let internal = {}; let payload = {}; let run...
JavaScript
0.000009
@@ -2273,29 +2273,55 @@ %7D, -passError(throwError) +function(error) %7B%0A rejectRun(error);%0A %7D );%0A
42f31400e024492dce692a9590e67295734858e1
Fix break duration was null if start not set
lib/commands.js
lib/commands.js
'use strict' // packages const moment = require('moment') // ours const db = require('./db.js') const helpers = require('./utils/helpers.js') const spinner = require('./utils/spinner.js') const configManager = require('./utils/configManager.js') // constants const TODAY = moment().format('YYYY-MM-DD') const NOW = mo...
JavaScript
0.000004
@@ -5167,24 +5167,83 @@ tedat = NOW%0A + configManager.configLoaded()%0A .then((config) =%3E %7B%0A const payl @@ -5246,32 +5246,36 @@ payload = %7B%0A + + date: TODAY,%0A @@ -5279,14 +5279,22 @@ + + note,%0A + @@ -5304,24 +5304,28 @@ atedat,%0A + + action: 'add @...
b07b8f7f7d0d773c146ef4ef7e8e4d9b81eecef4
add thought id to thought
app/facilitator/reciever.controller.js
app/facilitator/reciever.controller.js
(function () { 'use strict'; /** * @ngdoc overview * @name app * @description * # The... */ angular.module('app') .controller('RecieverController', RecieverController); RecieverController.$inject = ['$scope', '$modal', '$log', 'ThoughtSocket', 'UserService', '$location', '$routeParams', '$rootScope...
JavaScript
0
@@ -3299,24 +3299,60 @@ tThought) %7B%0A +%09%09%09console.log(participantThought);%0A %09%09%09$scope.pa @@ -4315,16 +4315,151 @@ %7D%0A%09%09%7D;%0A%0A +%09%09$scope.displayThought = function (thought) %7B%0A%09%09%09return '%3Cspan class=%22thought-id%22%3E' + thought.id + '%3C/span%3E' + thought.content;%0A%09%0...
17da80fdb21d2828ac469e646d4237fdb41087ba
use Symbol to store event handlers
lib/eventtarget.js
lib/eventtarget.js
import { Assembler } from 'esmodule' const { CustomEvent, EventTarget } = window const { getTargetOf } = Assembler /** * @param {{capture,once,passive,context}|boolean|EventTargetAssembler|*} [options] * @param {boolean} [options.capture] * @param {boolean} [options.once] * @param {boolean} [options.passive] * @...
JavaScript
0.000001
@@ -108,16 +108,41 @@ ssembler +%0Aconst storage = Symbol() %0A%0A/**%0A * @@ -981,79 +981,23 @@ -Object.defineProperty(this, '__event_handlers__', %7B%0A value : +this%5Bstorage%5D = %7B t @@ -1023,19 +1023,8 @@ %7D %7D%0A - %7D)%0A @@ -2054,35 +2054,25 @@ context -.__event_handler...
86cacd5938c50fe972c2edd4d6e9e4161eb1bc25
Update tests
test/CalendarMonthDropdownSpec.js
test/CalendarMonthDropdownSpec.js
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import ReactTestUtils from 'react-dom/test-utils'; import MonthDropdown from '../src/Calendar/MonthDropdown'; describe('Calendar-MonthDropdown', () => { it('Should output year and month ', () => { const date = mom...
JavaScript
0.000001
@@ -323,51 +323,8 @@ t(); -%0A const size = (date.year() - 1950) + 6; %0A%0A @@ -555,12 +555,10 @@ th, -size +11 );%0A
589d8c59f60ca573bc4786e76a5033b35fb7452d
Use the axios base for opening the auth window
app/main-process/userAuthentication.js
app/main-process/userAuthentication.js
import axios from "axios" import keytar from "keytar" import { BrowserWindow, session } from "electron" const { URL } = require("url") const { trackEvent } = require("./analytics") let authWindow export function authorizeUser(mainWindowRef, protocolHandler) { openAuthWindow(mainWindowRef, protocolHandler) } expor...
JavaScript
0
@@ -1370,17 +1370,42 @@ new URL( -%22 +%60$%7Baxios.defaults.baseURL%7D /login/o @@ -1418,17 +1418,17 @@ uthorize -%22 +%60 )%0A%0A aut
9b8be30405f4920df878478a1d6f1f646833cbbe
add assignee & priority on changelog schema
app/models/schemas/changelog_schema.js
app/models/schemas/changelog_schema.js
'use strict'; /** * @module ChangeLog * @name ChangeLog * @description A record(log) of a changes on a service request(issue). * * It may be status, priority, assignee change, private or public * comments etc. * * @see {@link Party} * @see {@link ServiceRequest} * @see...
JavaScript
0
@@ -1462,32 +1462,432 @@ te: true%0A %7D,%0A%0A%0A + /**%0A * @name assignee%0A * @description A current assigned party to work on service request(issue)%0A * @type %7BObject%7D%0A * @see %7B@link Priority%7D%0A * @private%0A * @since 0.1.0%0A * @version 0.1.0%0A */%0A assignee: %7B%0A type: Obje...
c7e98b0db1a309c5f8d50a6e2f557f1c3626bd03
Remove redundant TODO.
lib/query_parser.js
lib/query_parser.js
lunr.QueryParser = function (str, query) { this.lexer = new lunr.QueryLexer (str) this.query = query this.currentClause = {} this.lexemeIdx = 0 } lunr.QueryParser.prototype.parse = function () { this.lexer.run() this.lexemes = this.lexer.lexemes var state = lunr.QueryParser.parseFieldOrTerm while (st...
JavaScript
0.000007
@@ -1423,46 +1423,8 @@ %7D%0A%0A - // TODO: check for valid field name%0A if
ebd87ae4a989d54ef98dd3493bec9743c77e2a70
Fix logic for disabling admin check in login
lib/fogin/index.js
lib/fogin/index.js
/* Copyright 2013 Mozilla Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
JavaScript
0
@@ -2768,18 +2768,8 @@ heck - !== false ,%0A
dadcb10ea5ca0f6051ad9873d8987af6b102371d
Update form_chunks.js
lib/form_chunks.js
lib/form_chunks.js
/* form chunks */ module.exports = function form_chunks(size,no,arr){ let chunk = [],final = [], k = 0; for(let i=0; i<no; i++){ chunk = []; for(let j=0; j<size; j++){ chunk[j] = arr[k++]; if(k>=arr.length) k=0; } final.push(chunk); } return final;...
JavaScript
0.000001
@@ -8,16 +8,17 @@ chunks + */%0Amodul @@ -316,8 +316,9 @@ final;%0A%7D +%0A
b50a20acf321b52cc4a2f97447ffdbed482b44ed
Update cruncher.js
lib/cruncher.js
lib/cruncher.js
var _ = require('lodash') var fs = require('fs') var tonal = require('tonal') var wav = require('node-wav') var Pitchfinder = require('pitchfinder') LSDJ = { constants: { SAMPLES_PER_FRAMES: 32, FRAMES_PER_TABLE: 16, FRAME_RESOLUTION: 16 } } module.exports = function(wave, note, options) { // defaul...
JavaScript
0
@@ -1076,16 +1076,17 @@ )%0A %7D%0A + %7D%0A %0A
75007bee82d47f7ca08677bb27164361a4e86d3d
Add missing verifier API test
lib/referee.test.js
lib/referee.test.js
"use strict"; var referee = require("./referee"); var assert = require("assert"); describe("API", function() { describe(".add", function() { it("should be a binary Function named 'add'", function() { assert.equal(typeof referee.add, "function"); assert.equal(referee.add.length, 2);...
JavaScript
0.000001
@@ -1523,24 +1523,277 @@ );%0A %7D);%0A%0A + describe(%22.verifier%22, function() %7B%0A it(%22should be a zero-arity Function named 'verifier'%22, function() %7B%0A assert.equal(typeof referee.verifier, %22function%22);%0A assert.equal(referee.verifier.length, 0);%0A %7D);%0A...
4c278911dbc198e1f08f09b9909846a4da30a4b2
fix bug with renderbuffer initialization from radius
lib/renderbuffer.js
lib/renderbuffer.js
var check = require('./util/check') var values = require('./util/values') var GL_RENDERBUFFER = 0x8D41 var GL_RGBA4 = 0x8056 var GL_RGB5_A1 = 0x8057 var GL_RGB565 = 0x8D62 var GL_DEPTH_COMPONENT16 = 0x81A5 var GL_STENCIL_INDEX8 = 0x8D48 var GL_DEPTH_STENCIL = 0x84F9 var GL_SRGB8_ALPHA8_EXT = 0x8C43 var GL_RGBA32F_E...
JavaScript
0
@@ -2857,21 +2857,21 @@ -w = h +h = w %0A @@ -3644,36 +3644,8 @@ %7D%0A%0A - reglRenderbuffer(a, b)%0A%0A @@ -4274,24 +4274,52 @@ ffer%0A %7D%0A%0A + reglRenderbuffer(a, b)%0A%0A reglRend
217d14e78dd7448f274da1dbb29e167f56c5b1ee
Fix regression in initial query with dimensionsConfig
lib/resolveQuery.js
lib/resolveQuery.js
import * as regionUtil from './regionUtil' import humanizeList from 'humanize-list' const NO_NUMERIC = /\D/ function invalidYear(val) { return NO_NUMERIC.test(val) } export default function resolveQuery(region, srcQuery, headerGroups, dimensionsConfig = {}) { const targetQuery = Object.assign({}, { unit: srcQ...
JavaScript
0.000018
@@ -2107,261 +2107,8 @@ %7D%0A%0A - targetQuery.dimensions = targetQuery.dimensions.map(dim =%3E %7B%0A const config = dimensionsConfig%5Bdim.name%5D%0A if (config && config.include) %7B%0A return Object.assign(%7B%7D, dim, %7B%0A variables: config.include%0A %7D)%0A %7D%0A return dim%0A...
39f28d7211baf8855dc1b6e4b07e964c5890ead7
Improve error handling of internal server
lib/routes/proxy.js
lib/routes/proxy.js
const pnut = require('pnut-butter') module.exports = async ctx => { const { method, state, params, query, request } = ctx if (state.user) { pnut.token = state.user.token const resource = `/${params[0]}` const body = method.toLowerCase() === 'get' ? query : request.body const url = resou...
JavaScript
0.000001
@@ -118,16 +118,26 @@ %7D = ctx%0A + try %7B%0A if (st @@ -148,12 +148,34 @@ user + && state.user.token ) %7B%0A + @@ -204,16 +204,22 @@ r.token%0A + %7D%0A cons @@ -377,23 +377,24 @@ ch%0A c -tx.body +onst res = await @@ -436,16 +436,17 @@ . -then(res +catch(err =%3E @@ -459,105 ...
89ad49cd0ef59dc6692f6be267565499bcb44e21
make sure _br.limit doesn't remove LineBreak if previous token is a comment. fixes #154
lib/lineBreak/lineBreak.js
lib/lineBreak/lineBreak.js
"use strict"; // Line break helpers var _tk = require('rocambole-token'); var debug = require('debug'); var debugBefore = debug('esformatter:br:before'); var debugAfter = debug('esformatter:br:after'); var debugBetween = debug('esformatter:br:between'); // yeah, we use semver to parse integers. it's lame but works ...
JavaScript
0.000001
@@ -2300,16 +2300,62 @@ n++ %3C 0 + &&%0A !siblingIsComment(location, token) ;%0A %7D) @@ -2592,32 +2592,172 @@ ;%0A %7D%0A %7D%0A%7D%0A%0A%0A +function siblingIsComment(location, token) %7B%0A var prop = location === 'before' ? 'prev' : 'next';%0A return _tk.isComment(token%5Bprop%5D);%0A%7D%0A%0A%...
5dcc93224753a2545d9be48dfe490a42d3fef947
Refresh cache on changes and handle access to evicted peer
lib/server/swarm.js
lib/server/swarm.js
module.exports = Swarm var debug = require('debug')('bittorrent-tracker') var LRU = require('lru') var randomIterate = require('random-iterate') // Regard this as the default implementation of an interface that you // need to support when overriding Server.createSwarm() and Server.getSwarm() function Swarm (infoHash,...
JavaScript
0
@@ -720,16 +720,59 @@ et(id)%0A%0A + // Get the peer back in swarm if missing%0A if (pa @@ -791,24 +791,33 @@ == 'started' + %7C%7C !peer ) %7B%0A self @@ -845,37 +845,35 @@ arams, peer)%0A %7D - else +%0A%0A if (params.even @@ -1113,16 +1113,48 @@ %7D else + if (params.event !== 'started') %7B%0A ...
8350dbfdbc54f0c1496eefc2288292c58bfea7ba
Disable minify with `generate.minify: false`
lib/generate.js
lib/generate.js
'use strict' import fs from 'fs-extra' import pify from 'pify' import _ from 'lodash' import { resolve, join, dirname, sep } from 'path' import { isUrl, promisifyRoute, waitFor } from './utils' import { minify } from 'html-minifier' const debug = require('debug')('nuxt:generate') const copy = pify(fs.copy) const remov...
JavaScript
0.000025
@@ -1221,26 +1221,8 @@ ts)%0A - var self = this%0A va @@ -1545,20 +1545,20 @@ await -self +this .build() @@ -2808,20 +2808,20 @@ r(n++ * -self +this .options @@ -2850,41 +2850,46 @@ -try %7B%0A var %7B html, error %7D +let html%0A try %7B%0A const res = a @@ -2893,20 +2893,20 @@ ...
220ea779b005c3eaa43eba27bf902cbdbe5c8c8e
fix missing lodash
lib/stopsOpacity.js
lib/stopsOpacity.js
export default function (stops, opacity) { if (isNaN(opacity)) { opacity = 1; } return _.reduce(stops, (ret, color, key) => { ret[key] = color.alpha(color.alpha() * opacity).rgbaString(); return ret; }, {}); }
JavaScript
0.999977
@@ -1,8 +1,32 @@ +import _ from 'lodash';%0A export d