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
bd20570c599a4347472a6b92f612d957cfa24a96
Remove async/await from demo to avoid including regenrator runtime
demo/demo.js
demo/demo.js
/* globals document, FileReader */ import React, { PureComponent } from 'react'; import ReactDOM from 'react-dom'; // eslint-disable-line import ReactCrop from '../lib/ReactCrop'; import '../dist/ReactCrop.css'; /** * Load the image in the crop editor. */ const cropEditor = document.querySelector('#crop-editor'); c...
JavaScript
0
@@ -1621,23 +1621,15 @@ olve -, reject ) =%3E %7B%0A + @@ -1867,14 +1867,8 @@ %0A%0A -async make @@ -1961,38 +1961,8 @@ -const croppedImageUrl = await this @@ -2050,23 +2050,40 @@ %0A ) -;%0A +.then(croppedImageUrl =%3E this.se @@ -2109,16 +2109,17 @@ geUrl %7D) +) ;%0A %7D%0A
179013e96e4a2408c92b57d5c601ff190e4924a9
shorten the range of timeline
app/index.js
app/index.js
require('d3'); require('jquery-ui/slider'); require('jquery-ui/button'); require('jquery-ui/themes/base/jquery-ui.css'); require('jquery-ui/themes/base/jquery.ui.theme.css'); require ('./style.css') const $ = require('jquery'); const topojson = require('topojson'); const turJSON = require("./tur.topo.json"); const dep...
JavaScript
0.999524
@@ -1332,32 +1332,56 @@ , function(d) %7B%0A + console.log(d);%0A return p @@ -1750,17 +1750,18 @@ uration( -8 +10 00)%0A @@ -1942,33 +1942,33 @@ in(%5Bnew Date('19 -0 +8 0-01-01'), new D @@ -2026,13 +2026,13 @@ %5B0, -42356 +13149 %5D)%0A @@ -2110,17 +2110,17 @@ Date('19 -0 +8 0-01-01' @...
3f89a482aaf2792362f0b9dec069acf0c7dbb9a2
refactor and optimize module (#7)
index.js
index.js
var co = require('co'); var getErrorHandler = function(next) { return function(err) { if (err) next(err); } }; var getMiddleware = function (gen) { return function (req, res, next) { var args = Array.prototype.slice.call(arguments); return co.wrap(gen).apply(null, args).catch(getErrorHandler(next)); }; }; ...
JavaScript
0
@@ -22,138 +22,73 @@ );%0A%0A -var getErrorHandler = function(next) %7B%0A%09return function(err) %7B%0A%09%09if (err) next(err);%0A%09%7D%0A%7D;%0A%0Avar getMiddleware = function +module.exports = function wrap(gen) %7B%0A var fn = co.wrap (gen) - %7B%0A%09 +;%0A retu @@ -98,17 +98,16 @@ function - (req, re ...
4d364d767625418d34b14ffaaf630d7056984434
add 5ma
visualization/client/component/tot/Compare.js
visualization/client/component/tot/Compare.js
import React from 'react' import echarts from 'echarts' import _ from 'lodash' import fetch from 'isomorphic-fetch' import styles from './Main.css' import Loading from '../Loading' import { autobind } from 'react-decoration' import { Select } from 'antd' import { checkStatus, apiAddress } from '../../util' const refN...
JavaScript
0.999996
@@ -359,16 +359,322 @@ Option%0A%0A +const get5MaCalculator = (values) =%3E %7B%0A const result = %5B%5D%0A for (let i = 0, len = values.length; i %3C len; i++) %7B%0A if (i %3C 5) %7B%0A result.push('-')%0A continue%0A %7D%0A let sum = 0%0A for (let j = 0; j %3C 5; j++) %7B%0A sum += valu...
b9e71137a167f76c52ad5f234c4df6faa4e8d327
throw error if init/oninit are both present, or complete/oncomplete
src/config/deprecate.js
src/config/deprecate.js
import warn from 'utils/warn'; import isArray from 'utils/isArray'; function deprecate ( options, deprecated, correct ) { if ( deprecated in options ) { if( !( correct in options ) ) { warn( getMessage( deprecated, correct ) ); options[ correct ] = options[ deprecated ]; } else { throw new Error(...
JavaScript
0.000003
@@ -1143,24 +1143,116 @@ nstruct' );%0A +%09deprecate( options, 'init', 'onrender' );%0A%09deprecate( options, 'complete', 'oncomplete' );%0A %09deprecateEv
79bb538eac29e67771e1c5682669ded727f43e0d
fix rebase artifact
protocol-designer/src/top-selectors/well-contents/index.js
protocol-designer/src/top-selectors/well-contents/index.js
// @flow import {createSelector} from 'reselect' import mapValues from 'lodash/mapValues' import min from 'lodash/min' import pick from 'lodash/pick' import reduce from 'lodash/reduce' import * as StepGeneration from '../../step-generation' import {selectors as steplistSelectors} from '../../steplist/reducers' import...
JavaScript
0
@@ -2726,36 +2726,25 @@ obotState = -_robotStateT +t imeline%5Btime
a5f371aa482d66fd9d3c00d8222c127398b644eb
Remove unused test
spec/Smallstache.Spec.js
spec/Smallstache.Spec.js
var Smallstache = require('../Smallstache.js'); describe('A Smallstache', function() { it('should take raw template', function() { var template = 'Once upon the {{ time }}...'; var result = new Smallstache(template); expect(result.template).toEqual(template); }); xit('should take...
JavaScript
0.000001
@@ -297,209 +297,8 @@ );%0A%0A - xit('should take class selector', function() %7B%0A var template = '.js-list-item';%0A%0A var result = new Smallstache(template);%0A%0A expect(result.template).toEqual(template);%0A %7D);%0A%0A
fde07dfcc6c713d66bf52757dd5196fc4ade49af
Load the injected script tags in order, now that PatientSelector depends upon DebugLogger
injectedForExtensionTest.js
injectedForExtensionTest.js
// Google BSD license http://code.google.com/google_bsd_license.html // Copyright 2013 Google Inc. johnjbarton@google.com // This function is serialized and runs in every iframe when testing extensions // only. We test the window.location to add API only to the window being tested // and to the main WebInspetor windo...
JavaScript
0
@@ -1778,24 +1778,25 @@ criptTags);%0A +%0A @@ -1799,24 +1799,68 @@ -scripts.forEach( +var notLoaded = scripts.slice(0);%0A var loadOne = func @@ -1867,26 +1867,24 @@ tion(src) %7B%0A - @@ -1942,26 +1942,24 @@ - - script.src = @@ -1964,18 +1964,16 @@ ...
6a244a745fb5c2515bc85ca66a56dc54dc74daaa
Rename how to use to instructions
src/components/HowToUseBox.js
src/components/HowToUseBox.js
import React, { Component } from 'react'; import InfoBox from './InfoBox'; import DebouncedNumberEditor from './DebouncedNumberEditor'; export default class HowToUseBox extends Component { render() { const { open, onRequestClose } = this.props; return (<InfoBox title="How to use" open={open} onRequestClose={on...
JavaScript
0.000974
@@ -275,18 +275,20 @@ le=%22 -How to use +Instructions %22 op
787aed80f523d1e87aeb43f569686339ce70c7ad
capitalizes Review
resources/assets/components/Table/CampaignRow.js
resources/assets/components/Table/CampaignRow.js
import React from 'react'; import { map } from 'lodash'; import PropTypes from 'prop-types'; class CampaignRow extends React.Component { constructor() { super(); this.createCampaignRow = this.createCampaignRow.bind(this); } createCampaignRow(campaign) { const row = [ { url: campaign ?...
JavaScript
0.999286
@@ -620,17 +620,17 @@ title: ' -r +R eview',%0A
bb10e30f04cfbab03e850d5839b80eeedfee7138
Remove irrelevant environmental data from stored yo config.
app/index.js
app/index.js
'use strict'; var yeoman = require('yeoman-generator'); var path = require('path'); var chalk = require('chalk'); var yosay = require('yosay'); var _ = require('lodash'); var options = {}; module.exports = yeoman.generators.Base.extend({ initializing: function () { this.pkg = require('../package.json'); // H...
JavaScript
0
@@ -3698,24 +3698,111 @@ ame;%0A %7D +%0A%0A var store = options;%0A delete store%5B'env'%5D;%0A delete store%5B'resolved'%5D; %0A this. @@ -3812,23 +3812,21 @@ fig.set( -options +store );%0A%0A
4851a869d6a0c452c3bb670115a89f6374fea355
Fix AMQP disconnect
functions/amqpCommand.js
functions/amqpCommand.js
var uuid = require('uuid'); var when = require('when'); var defer = when.defer; var amqplib = require('amqplib'); var executor_config = require('./amqpCommand.config.js'); var identity = function(e) {return e}; var connection = null; function connect() { connection = amqplib.connect(executor_config.amqp_url);...
JavaScript
0.000002
@@ -476,74 +476,8 @@ %22);%0A - process.on('SIGINT', function() %7B connection.close(); %7D);%0A
b2ba729123a39df3e24f095dc18a7be774612a57
add note to browser-sync template to highlight the need to run gulp build before deploying
gulp/config/templates/browser-sync.snippet.js
gulp/config/templates/browser-sync.snippet.js
module.exports = [ '\n\n\n', '/**', ' * DEVELOPMENT MODE ONLY', ' *', ' * Browser-sync script loader', ' * to enable script/style injection', ' *', ' */', 'add_action( \'wp_footer\', function () { ?>', '\t<script type="text/javascript" id="__bs_script__">//<![CDATA[', '\t\tdocument.write("<script async sr...
JavaScript
0
@@ -144,24 +144,117 @@ on',%0A%09' *',%0A +%09' * Run %22gulp build%22 to generate the theme',%0A%09' * for production before deploying!',%0A%09' *',%0A %09' */',%0A%09'ad @@ -297,17 +297,16 @@ %7B ?%3E',%0A -%09 %09'%5Ct%3Cscr @@ -365,18 +365,16 @@ DATA%5B',%0A -%09%09 %09'%5Ct%5Ctdo @@ -514,17 +514,16 @@ me))...
21ed41f0061f828918e603f90df5d503d8196811
use constant
test/api/helpers/enterprise/enterprise_verifier.js
test/api/helpers/enterprise/enterprise_verifier.js
const should = require('should'); const logger = require('../../../../lib/logger'); const testEnterprise1_public_en = require('../../helpers/data/enterprise/testEnterprise1_public_en'); const testEnterprise1_public_fr = require('../../helpers/data/enterprise/testEnterprise1_public_fr'); const testEnterprise1_complete =...
JavaScript
0.99882
@@ -1090,16 +1090,97 @@ ANGUAGE; +%0Aconst FRENCH = require('../../helpers/language/language_test_constants').FRENCH; %0A%0Aconst @@ -3772,36 +3772,38 @@ f (language === -'fr' +FRENCH ) %7B%0A expected @@ -4114,36 +4114,38 @@ f (language === -'fr' +FRENCH ) %7B%0A expected @@ -4468,12 +4468,14 @@ === -...
e5aca003daa30a447653126791797194328142c9
Adding the emissive case
assets/models/material_matrix_models/material_matrix.js
assets/models/material_matrix_models/material_matrix.js
// Create the material test model matrix var MODEL_DIR_URL = "https://github.com/highfidelity/hifi_tests/blob/master/assets/models/material_matrix_models/fbx/blender/"; var MODEL_NAME_SUFFIX = ".fbx?raw=true"; var MODEL_DIMS = {"x":0.809423565864563,"y":0.9995689988136292,"z":0.8092837929725647}; var MODEL_Y_OFFSET =...
JavaScript
0.817172
@@ -2696,32 +2696,131 @@ %22, a:8, b:2%7D,%0A%0A + %7Bname:%22hifi_emissiveV_albedoV_ao%22, a:9, b:0%7D,%0A %7Bname:%22hifi_emissiveM_albedoV_ao%22, a:9, b:1%7D,%0A%0A %7Bname:%22hifi_op @@ -2838,25 +2838,26 @@ doM_ao%22, a: -9 +10 , b:0%7D%0A%5D;%0A%0A%0A
f7b9cd4dadadc879f2c917228d60ca43dc3e23ab
Test newest iOS
wct.conf.js
wct.conf.js
var argv = require('yargs').argv; module.exports = { testTimeout: 180 * 1000, registerHooks: function(context) { const saucelabsPlatformsMobile = [ 'macOS 10.12/iphone@10.3', 'macOS 9.3.2/iphone@9.3' ]; const saucelabsPlatformsPolyfilled = [ 'Windows 10/microsoftedge@15', 'Wind...
JavaScript
0
@@ -181,11 +181,11 @@ ne@1 -0.3 +1.2 ',%0A
6ce7e74b46d47863f95f1fe3209437e24a4644b7
Fix race condition when interacting with deleted toots
app/javascript/flavours/glitch/reducers/statuses.js
app/javascript/flavours/glitch/reducers/statuses.js
import { REBLOG_REQUEST, REBLOG_SUCCESS, REBLOG_FAIL, UNREBLOG_SUCCESS, FAVOURITE_REQUEST, FAVOURITE_SUCCESS, FAVOURITE_FAIL, UNFAVOURITE_SUCCESS, BOOKMARK_REQUEST, BOOKMARK_SUCCESS, BOOKMARK_FAIL, UNBOOKMARK_SUCCESS, PIN_SUCCESS, UNPIN_SUCCESS, } from 'flavours/glitch/actions/interactions';...
JavaScript
0
@@ -3512,32 +3512,91 @@ FAIL:%0A return + state.get(action.status.get('id')) === undefined ? state : state.setIn(%5Bac @@ -3637,24 +3637,24 @@ '%5D, false);%0A - case BOOKM @@ -3761,32 +3761,91 @@ FAIL:%0A return + state.get(action.status.get('id')) === undefined ? state : state.setIn(%5Bac @@ -3999,24 ...
d1dc6b9f0847b31ba50d584f55160c495d0699bf
Fix test
tests/integration/components/nypr-form-test.js
tests/integration/components/nypr-form-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import sinon from 'sinon'; import RSVP from 'rsvp'; import Ember from 'ember'; let originalTestAdapterException; moduleForComponent('nypr-form', 'Integration | Component | nypr form', { integration: true, beforeE...
JavaScript
0.000004
@@ -2754,18 +2754,16 @@ .reject( -%7B%7D ) );%0A l @@ -4168,32 +4168,58 @@ failure'%5D.sort() +, %22event order is correct%22 );%0A%7D);%0A%0Atest('it
500f8034ab254d7fb2f7bf618baaa394eb121927
remove unused var
src/components/MatchDetail.js
src/components/MatchDetail.js
import React, { Component } from 'react' import { connect } from 'react-redux' import _ from 'lodash' import { updateMatchReq, selectMatch } from '../actions/matches-actions' import { userLoginReq } from '../actions/user-actions' import NavBar from './NavBar' import Alert from './Alert' import '../styles/MatchDetail.cs...
JavaScript
0.000002
@@ -172,63 +172,8 @@ ns'%0A -import %7B userLoginReq %7D from '../actions/user-actions'%0A impo
b5dcf4743712001224814a3743d77ed18b8d1914
Remove unused "eslint-disable-line"
src/fetch.js
src/fetch.js
const got = require('got'); const CacheConf = require('cache-conf'); const pkg = require('../package.json'); const GOT_OPTIONS = { json: true, headers: { 'user-agent': `${pkg.name}/${pkg.version} (${pkg.homepage})`, }, }; const CACHE_CONF = { key: 'zazu-devdocs', // cache key prefix maxAge: 86400000, //...
JavaScript
0
@@ -649,31 +649,8 @@ =%3E %7B - // eslint-disable-line %0A c
6a5d75fe3fa9f3a7db003af742e305f3eae1e966
fix test of AuthenticatedGithubApiService to expect Authorization header with token
test/app/services/authenticated_github_api_test.js
test/app/services/authenticated_github_api_test.js
import 'glazier/services/authenticated_github_api' as AuthenticatedGithubApiService; import { MockPort, MockChannel } from 'helpers/oasis_test_helpers'; import createServiceForTesting from 'helpers/service_test_helpers'; import 'conductor' as Conductor; var originalAjax = $.ajax; module("AuthenticatedGithubApiServic...
JavaScript
0
@@ -736,17 +736,17 @@ expect( -3 +4 );%0A%0A va @@ -1089,79 +1089,188 @@ -deepEqual(ajaxOpts.data, %7B access_ +var xhr = %7B%0A setRequestHeader: function(header, value) %7B%0A equal(header, 'Authorization');%0A equal(value, ' token -: ' + abc123' -%7D, 'adds access_token' +)%0A %7...
e152a8066e4143e23f6b0dc9e882f24a2e3a68eb
add callback after
src/jquery.table_sort.js
src/jquery.table_sort.js
/* jquery.table_sort.js v0.0.1 - Copyright 2013, i2bskn */ (function($){ var State = (function(){ function State(indexes){ this.index = null; this.order = 1; this.indexes = indexes; }; State.prototype = { getOrder: function(index){ if (this.index === index) { ret...
JavaScript
0
@@ -885,94 +885,10 @@ rams -, custom)%7B%0A if (typeof custom !== 'function')%7B%0A custom = function()%7B%7D;%0A %7D;%0A +)%7B %0A @@ -1017,16 +1017,72 @@ .get(),%0A + compare: function()%7B%7D,%0A after: function()%7B%7D,%0A %7D;%0A%0A @@ -1497,22 +1497,32 @@ return -custom +setting...
be5d40c13672ae8eb6ddf4175f53773bc87e7adf
Set default package name to current directory
app/index.js
app/index.js
( function( ) { 'use strict'; var util = require( 'util' ); var path = require( 'path' ); var yeoman = require( 'yeoman-generator' ); var MadlibModuleGenerator = module.exports = function MadlibModuleGenerator( args, options, config ) { yeoman.generators.Base.apply( this, arguments ...
JavaScript
0.000001
@@ -777,24 +777,184 @@ s.async();%0A%0A + // Get the current running directory name%0A //%0A var fullPath = __dirname%0A , folderName = fullPath.split( '/' ).pop()%0A ;%0A%0A // H @@ -1220,32 +1220,71 @@ f this module?'%0A + , default: folderName%0A ...
df53fca116514f5570118bccf1b1dd950ed49c75
debug headers superagent
client/request/index.js
client/request/index.js
var config = require('config'); var debug = require('debug')(config.name() + ':request'); var nocache = require('superagent-no-cache'); var prefix = require('superagent-prefix')(config.api_url()); var superagent = require('superagent'); /** * Expose `get` */ module.exports.get = function(url, params, callback) { ...
JavaScript
0.000001
@@ -597,24 +597,199 @@ use(prefix)%0A + .set('Accept', 'application/json')%0A .set(%22Access-Control-Allow-Origin%22, %22*%22)%0A .set(%22Access-Control-Allow-Headers%22, %22Origin, X-Requested-With, Content-Type, Accept%22)%0A .query(p
042f83f59e5bef1471d106b3c324942f9bd79c2b
Support v0.8 view names in gadgets.views.ViewType. (SHINDIG-347)
features/views/views.js
features/views/views.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
JavaScript
0.000002
@@ -4579,16 +4579,103 @@ eEnum(%5B%0A + %22CANVAS%22, %22HOME%22, %22PREVIEW%22, %22PROFILE%22,%0A // TODO Deprecate the following ViewTypes.%0A %22FULL_
2f27abab4819815b9860885de2b23661018381a1
fix for missing loadNpm task in gruntfile
app/index.js
app/index.js
'use strict'; var yeoman = require('yeoman-generator'); var path = require('path'); var fs = require('fs'); var _ = require('underscore'); module.exports = yeoman.generators.Base.extend({ init: function () { var notEmpty = function (str) { return str.split(',').filter(function (check) { return che...
JavaScript
0.000001
@@ -5016,32 +5016,80 @@ return;%0A %7D%0A%0A + this.gruntfile.loadNpmTasks('grunt-karma');%0A this.gruntfi
3d04793845ee9f7bceb187b8ac332031bc73624b
comment fixes
src/components/Todos/index.js
src/components/Todos/index.js
import {Observable, Subject} from 'rx'; import isolate from '@cycle/isolate' import intent from './intent'; import model from './model'; import view from './view'; import deserialize from './storage-source'; import serialize from './storage-sink'; import TodoItem from '../TodoItem'; // AMEND STATE WITH CHILDREN // Thi...
JavaScript
0
@@ -847,33 +847,32 @@ d todo item data - flow components. @@ -861,33 +861,32 @@ taflow component -s .%0A const @@ -1005,17 +1005,16 @@ ty array -j .%0A @@ -1412,119 +1412,54 @@ %0A// -The sources that have been passed to %60run%60 as well are immediately%0A// deconstructed into the variabl +Using...
e3e105b9b1c8bcf28f7d298822096ee7fc138197
fix crash bug in android when call getDuration
index.js
index.js
'use strict'; /** * This module is a thin layer over the native module. It's aim is to obscure * implementation details for registering callbacks, changing settings, etc. */ var React, {NativeModules, NativeAppEventEmitter, DeviceEventEmitter, Platform} = require('react-native'); var AudioPlayerManager = NativeMod...
JavaScript
0
@@ -2398,32 +2398,62 @@ ion(callback) %7B%0A + if(Platform.OS=='ios')%7B%0A AudioPlayerM @@ -2492,32 +2492,34 @@ ion) =%3E %7B%0A + callback(duratio @@ -2522,26 +2522,150 @@ ation);%0A + %7D)%0A %7Delse %7B%0A AudioPlayerManager.getDuration().then((duration) =%3E %7B%0A callbac...
fdb434ceaa5a2564c2ea330f2d6fdc7a08f932fb
Remove prototype from contains array function
src/js/cursor-manager.js
src/js/cursor-manager.js
//Namespace management idea from http://enterprisejquery.com/2010/10/how-good-c-habits-can-encourage-bad-javascript-habits-part-1/ (function( cursorManager ) { //From: http://www.w3.org/TR/html-markup/syntax.html#syntax-elements var voidNodeTags = ['AREA', 'BASE', 'BR', 'COL', 'EMBED', 'HR', 'IMG', 'INPUT', 'K...
JavaScript
0.000001
@@ -523,24 +523,12 @@ -Array.prototype. +var cont @@ -543,16 +543,21 @@ unction( +arr, obj) %7B%0A @@ -571,20 +571,19 @@ var i = -this +arr .length; @@ -625,12 +625,11 @@ if ( -this +arr %5Bi%5D @@ -935,16 +935,25 @@ return ! +contains( voidNode @@ -960,18 +960,10 @@ Tags -.contains( +, node @@ -...
3f7644c53e69969c99e7e7702efe09e3986f3701
Make sure this is what we expect
TimerMixin.js
TimerMixin.js
/* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use...
JavaScript
0.000001
@@ -3273,24 +3273,45 @@ callback) %7B%0A + var self = this;%0A Interact @@ -3357,28 +3357,28 @@ n() %7B%0A -this +self ._mounted &&
5beac0fdb55d031c2ab945bcf8c74a6bc2d9b4b9
Change window position
index.js
index.js
var menubar = require('menubar') menubar({ dir: __dirname + '/app', width: 300, height: 50, icon: __dirname + '/app/Icon.png', preloadWindow: true, 'window-position': 'topCenter' })
JavaScript
0.000001
@@ -154,42 +154,8 @@ true -,%0A 'window-position': 'topCenter' %0A%7D)%0A
7e1ebeefb213a5b4af8abadd82e3c9cba036c866
remove unused dependency
src/core/api/regions.js
src/core/api/regions.js
import merge from 'lodash.merge'; import ngModule from '../module'; const AvRegionsFactory = function(AvApiResource, avUsersResource) { class AvRegionsResource extends AvApiResource { constructor() { super({ path: '/api/sdk/platform', name: '/regions', sessionBust: false, ...
JavaScript
0.000002
@@ -1,38 +1,4 @@ -import merge from 'lodash.merge';%0A impo @@ -27,16 +27,16 @@ odule';%0A + %0Aconst A @@ -382,24 +382,25 @@ %7C %5B%5D;%0A %7D%0A +%0A afterUpd @@ -617,24 +617,25 @@ %7D);%0A %7D%0A +%0A checkUse @@ -647,24 +647,25 @@ fig = %7B%7D) %7B%0A +%0A config @@ -773,24 +773,25 @...
a2f81ceb57145ea7c36a603da82d47e7c61bfcad
switch to unicode characters that work on Windows too.
js/tests/unit/phantom.js
js/tests/unit/phantom.js
/* * grunt-contrib-qunit * http://gruntjs.com/ * * Copyright (c) 2014 "Cowboy" Ben Alman, contributors * Licensed under the MIT license. */ (function () { 'use strict'; // Don't re-order tests. QUnit.config.reorder = false // Run tests serially, not in parallel. QUnit.config.autorun = false // Send...
JavaScript
0
@@ -1505,11 +1505,11 @@ r%5Cu2 -714 +21A All @@ -1591,12 +1591,12 @@ ('%5Cu -2716 +00D7 ' +
16c2b77268aa8c5417419ffe3775c5173c9ba8af
Set app menu
app/index.js
app/index.js
'use strict'; (() => { const electron = require('electron'); const remote = electron.remote; const shell = remote.shell; const fs = require('fs'); class RedmineNow { constructor() { this._issueStatuses = []; } initEventListener() { document.getElementById('fetch-button').addEventLis...
JavaScript
0.000007
@@ -121,16 +121,44 @@ .shell;%0A + const Menu = remote.Menu;%0A const @@ -254,24 +254,427 @@ %5B%5D;%0A %7D%0A%0A + initMenu() %7B%0A const appMenu = Menu.buildFromTemplate(%5B%0A %7B%0A label: 'Edit',%0A submenu: %5B%0A %7B role: 'undo' %7D,%0A %7B role...
362ce36ea6a09850fcabe31c4704df9cb515a579
Allow for search with no params
index.js
index.js
'use strict' // setup const http = require('http') const port = process.env.PORT || process.env.port || 8091 const scrud = { 'GET?': 'search', POST: 'create', 'POST/': 'create', 'GET/': 'read', 'PUT/': 'update', 'DELETE/': 'delete' } // globals let server let base = '' let baseRgx = new RegExp(`^/?${base}...
JavaScript
0.000001
@@ -119,16 +119,33 @@ rud = %7B%0A + GET: 'search',%0A 'GET?'
2448cc6160647d5ecaf88f7bf3754993a322d180
fix linting errors
src/components/auth/Import.js
src/components/auth/Import.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import { Link } from 'react-router'; import classnames from 'classnames'; import Form from '../../lib/Form'; import To...
JavaScript
0.000019
@@ -1206,18 +1206,16 @@ ,%0A %7D;%0A%0A - config @@ -1219,26 +1219,24 @@ fig = %7B%0A - - fields: %7B%0A @@ -1229,26 +1229,24 @@ fields: %7B%0A - import @@ -1309,26 +1309,24 @@ (%7B%0A - - fields: %7B%0A @@ -1319,26 +1319,24 @@ fields: %7B%0A - ad @@ -1352,18 ...
a25ab94fb14e240fc10576a12ffecaf066cbe373
add github address
TrackSlide.js
TrackSlide.js
/* TrackSlide * version: 1.0.0 * github */ (function (exports, $) { "use strict"; var moveTo = function (index) { index = Math.max(0, index); index = Math.min(index, this.lng - this.m.fit); var left = -index * this.m.fullItem; if (left < this.m.bounds - this.m....
JavaScript
0
@@ -32,14 +32,43 @@ %0A * -github +https://github.com/cuth/track-slide %0A */
f319951afd158e7104003b40fdbab5893ea1d7a6
Update custom-repos.js
javascripts/custom-repos.js
javascripts/custom-repos.js
// Global variables that hold custom attributes for repos, keyed by repo name // Custom repo language, different than that defined by GitHub var customRepoLanguage = { 'liquid': 'Liquid', 'Timber': 'Liquid', 'skeleton-theme': 'Liquid', 'shopify_theme': 'Ruby', 'Shopify-Developer-Book': 'Ruby', 'offsite-gat...
JavaScript
0
@@ -232,24 +232,45 @@ : 'Liquid',%0A + 'dashing': 'Ruby',%0A 'shopify_t @@ -1367,8 +1367,9 @@ 72%0A %7D%0A%5D +%0A
7ff1e8982495ec81785f602ff2e93e15beaab201
Update account
src/js/ripple/account.js
src/js/ripple/account.js
// Routines for working with an account. // // You should not instantiate this class yourself, instead use Remote#account. // // Events: // wallet_clean : True, iff the wallet has been updated. // wallet_dirty : True, iff the wallet needs to be updated. // balance : The current stamp balance. // balance_propos...
JavaScript
0.000001
@@ -4824,24 +4824,52 @@ urself.%0A */%0A +Account.prototype.notify = %0A Account.prot
f41e3d694774b1084f344074be731a2c35ef06c6
Change const to var
index.js
index.js
'use strict'; var fs = require('fs'); var os = require('os'); var path = require('path'); var rimraf = require('rimraf'); var pluginName = 'clean-webpack-plugin'; // added node .10 // http://stackoverflow.com/questions/21698906/how-to-check-if-a-path-is-absolute-or-relative/30714706#30714706 function isAbsolute(dir)...
JavaScript
0.000013
@@ -6188,13 +6188,11 @@ -const +var emi
85eff67537b83d3ccd85b01e012216809dc96642
Change default behavior
src/components/cards/Three.js
src/components/cards/Three.js
import * as THREE from 'three'; const OrbitControls = require('three-orbit-controls')(THREE); export default class Three { constructor({ container = null, transparent = false, alpha = 1.0, color = 0xffffff, cameraPositionX = 0, cameraPositionY = 0, cameraPositionZ = 20, }) { this.s...
JavaScript
0.000001
@@ -296,9 +296,10 @@ Z = -2 +50 0,%0A @@ -842,18 +842,18 @@ eCamera( +7 5 -0 , this.w @@ -881,17 +881,16 @@ .1, 1000 -0 );%0A t
54bf46209f54b26ba47108a33ec9feb12f2b8259
remove extraneous describe block
testing/test-cases/phantomjs-tests/layerReorder.js
testing/test-cases/phantomjs-tests/layerReorder.js
/*global describe, it, expect, geo*/ // Generate a new empty map function createMap() { 'use strict'; var map = geo.map({node: '#map', width: 100, height: 100}), cl = map.createLayer; // inject d3 renderer to let this work in phantom map.createLayer = function (type, opts) { opts = opts || {}; o...
JavaScript
0.999253
@@ -2367,71 +2367,8 @@ );%0A%0A -describe('UI Layer Z Index', function () %7B%0A 'use strict'%0A%7D);%0A%0A desc
50ad14a3c92733dbaf6615b6039d6762189c7800
Fix typo
index.js
index.js
var setup = require('./server/setup'); var program = require('commander'); var inquirer = require('inquirer'); var pkg = require('./package.json'); //Setup our cli program.version(pkg.version); //Start the main application program .command('start') .description('Start the server') .action(function() { setup(); ...
JavaScript
0.999999
@@ -723,17 +723,16 @@ password -: '%7D%5D, fun
394b3b4960e6ea78c9a8a89ff1319c9214c42698
change dep path to istanbul for release
index.js
index.js
'use strict'; var through = require('through2').obj; var path = require('path'); var istanbul = require('istanbul-traceur'); var CoffeeInstrumenter = require('istanbul/lib/coffee-instrumenter'); var gutil = require('gulp-util'); var _ = require('lodash'); var Report = istanbul.Report; var Collector = istanbul.Collecto...
JavaScript
0
@@ -161,16 +161,46 @@ istanbul +-traceur/node_modules/istanbul /lib/cof
9bcffa6b8546de916df94f059ee357c7a066b92d
Ensure that torrent['announce-list'] is an Array
index.js
index.js
module.exports = decodeTorrentFile module.exports.decode = decodeTorrentFile module.exports.encode = encodeTorrentFile var bencode = require('bencode') var path = require('path') var sha1 = require('simple-sha1') var uniq = require('uniq') /** * Parse a torrent. Throws an exception if the torrent is missing required...
JavaScript
0.999918
@@ -1792,24 +1792,38 @@ e = %5B%5D%0A if +(Array.isArray (torrent%5B'an @@ -1835,16 +1835,17 @@ e-list'%5D +) && torr @@ -1871,16 +1871,20 @@ %5D.length + %3E 0 ) %7B%0A
de61b4673faa9b9a59408e3e6945efb39636aa86
Change port env var name
index.js
index.js
'use strict'; var path = require('path'); var open = require(path.join(__dirname, 'lib', 'open')); var server = require(path.join(__dirname, 'lib', 'server')); var host = 'localhost'; var port = 3030; var instance; // Settings var pckg = process.env['npm_package_name']; if (typeof pckg !== 'undefined') { var conf...
JavaScript
0.000004
@@ -195,40 +195,121 @@ t = -3030;%0Avar instance;%0A%0A// Settings +parseInt(process.env.TINER_PORT, 10) %7C%7C 3030;%0Avar instance;%0A%0A//TODO: Better settings%0A%0A// Settings from NPM config %0Avar @@ -647,16 +647,42 @@ %0A %7D%0A%7D%0A%0A +// Settings from cmd args%0A var argP
602216a907adee0f1ec3dc45028583ac95ce9c76
Move p tag into conditional rendering
src/components/result_list.js
src/components/result_list.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; class ResultList extends Component { renderResults(resultData) { const name = resultData.name; const url = resultData.url; return ( <div key={name} className="col-md-12 well"> <p>{name}</p> <p> ...
JavaScript
0.000001
@@ -298,22 +298,8 @@ /p%3E%0A - %3Cp%3E%0A @@ -310,16 +310,19 @@ %7Burl && +%3Cp%3E %3Ca href= @@ -413,22 +413,13 @@ %3C/a%3E -%7D%0A %3C/p%3E +%7D %0A
30a69e214fa2eafb0298100490d1fd6e37f2b877
update put
index.js
index.js
var request = require('request'); module.exports = class CMP { constructor( options = {} ) { this.user = options.user; this.pass = options.pass; this.host = options.host; this.port = options.port; if (options.rejectUnauthorized === undefined) { this.rejectUnauthorized = true; } else t...
JavaScript
0
@@ -3417,36 +3417,32 @@ t',%0A form -Data : params,%0A
563517f3134ddd536c6e30a4a3fc6282fc29c192
remove levelup check
index.js
index.js
var ginga = require('ginga') var xtend = require('xtend') var inherits = require('util').inherits var EventEmitter = require('events').EventEmitter var semaphore = require('./semaphore') var levelErrors = require('level-errors') var Codec = require('level-codec') var error = require('./error') function Transaction (db...
JavaScript
0
@@ -408,115 +408,8 @@ %7D%0A - if (db.toString() !== 'LevelUP') %7B%0A throw new Error('db must be LevelUP or SublevelUP instance.')%0A %7D%0A th
edb24bad867807602ea9ca471ab0a3ffa94c27ae
Add phrase and sentence search
index.js
index.js
#!/usr/bin/env node const request = require('request'); const cheerio = require('cheerio'); const chalk = require('chalk'); const fs = require('fs'); const Spinner = require('cli-spinner').Spinner; const isChinese = require('is-chinese') const urlencode = require('urlencode'); const spinner = new Spinner('努力查询中... %s'...
JavaScript
0.998788
@@ -462,17 +462,16 @@ hite';%0A%0A -%0A spinner. @@ -515,18 +515,16 @@ art();%0A%0A -%0A%0A const re @@ -746,20 +746,21 @@ %0A%0Aconst -word +input = proce @@ -779,12 +779,37 @@ e(2) -%5B0%5D; +%0Aconst word = input.join(' ') %0Acon @@ -936,69 +936,26 @@ w/$%7B +urlencode( word +) %7D%60%0A -//const URL = ...
b87cdbc23b56cc140e93f38bef3449574294c41e
change combination
src/components/ui/DropDown.js
src/components/ui/DropDown.js
import React from 'react'; import { StyleSheet, Text,Button, View,ScrollView,StatusBar,Image } from 'react-native'; import { TouchableHighlight, TouchableWithoutFeedback,List,ListItem,Animated,Easing,FlatList} from 'react-native'; import Triangle from 'react-native-triangle'; /* @Do not use DropDown Component inside a ...
JavaScript
0.000001
@@ -1401,16 +1401,173 @@ nView);%0A + const %7Bdispatch%7D =this.props;%0A const keys=key.split(':');%0A const action=exchangeActions.setSymbols(keys%5B0%5D,keys%5B1%5D);%0A dispatch(action);%0A %7D%0A re
862a9e2f0232b7d1a7812dab681d7db56d16b71f
add grunt-cli traivs conf
index.js
index.js
'use strict'; var database =require('./lib/database'); var baucis = require('baucis'); var kraken = require('kraken-js'), app = {}; app.configure = function configure(nconf, next) { // Async method run on startup. database.config(nconf); require('./models/innovation'); require('./models/us...
JavaScript
0
@@ -582,24 +582,25 @@ aucis());%0A%7D; + %0A%0A%0Aapp.reque
74d0e1680eeb750b87654357f2ad3e2245e005d6
Fix syntax error caused by AJAX request parsing response as JSON
apps/openassessment/xblock/static/js/src/oa_base.js
apps/openassessment/xblock/static/js/src/oa_base.js
/* START Javascript for OpenAssessmentXBlock. */ function OpenAssessmentBlock(runtime, element) { var handlerUrl = runtime.handlerUrl(element, 'submit'); var renderSubmissionUrl = runtime.handlerUrl(element, 'render_submission'); var renderPeerUrl = runtime.handlerUrl(element, 'render_peer_assessment'); ...
JavaScript
0.000326
@@ -1041,32 +1041,74 @@ renderPeerUrl,%0A + dataType: %22html%22,%0A @@ -1359,32 +1359,74 @@ rSubmissionUrl,%0A + dataType: %22html%22,%0A @@ -2947,24 +2947,66 @@ derSelfUrl,%0A + dataType: %22html%22,%0A ...
b84711456cffdacfdb1ca49e9c0be1c413af398a
Send the liana version inside the apimap
index.js
index.js
'use strict'; var P = require('bluebird'); var _ = require('lodash'); var express = require('express'); var path = require('path'); var fs = P.promisifyAll(require('fs')); var cors = require('express-cors'); var bodyParser = require('body-parser'); var jwt = require('express-jwt'); var ResourcesRoutes = require('./rout...
JavaScript
0
@@ -2605,16 +2605,166 @@ _name'%5D%0A + %7D,%0A meta: %7B%0A 'liana': 'forest-express-mongoose',%0A 'liana_version': require('./package.json').version%0A
53285a1fbbff00a10bb41596698498edbbc90c9c
remove colors
index.js
index.js
var fs = require('fs'); var join = require('path').join; var prompt = require('promptly').prompt; var chalk = require('chalk'); var extend = require('xtend'); function noop() {} /** * Initialize a new `Template` with the given `name`. * * @param {String} name * @api private */ function Template(name, opts) { ...
JavaScript
0.000022
@@ -95,38 +95,8 @@ pt;%0A -var chalk = require('chalk');%0A var @@ -122,16 +122,16 @@ tend');%0A + %0Afunctio @@ -1580,27 +1580,16 @@ prompt( -chalk.gray( ' ' + d @@ -1598,17 +1598,16 @@ c.trim() -) , done); @@ -3048,91 +3048,26 @@ log( -%0A chalk.gray(' create :'),%0A ...
1bc3f8702dc9a9675e23227b72accde0d0f3b4c9
Refactor to improve bundle size
index.js
index.js
'use strict' var iterate = require('array-iterate') module.exports = modifierFactory // Turn `callback` into a child-modifier accepting a parent. See // `array-iterate` for more info. function modifierFactory(callback) { return iteratorFactory(wrapperFactory(callback)) } // Turn `callback` into a `iterator' acce...
JavaScript
0
@@ -222,156 +222,8 @@ ) %7B%0A - return iteratorFactory(wrapperFactory(callback))%0A%7D%0A%0A// Turn %60callback%60 into a %60iterator' accepting a parent.%0Afunction iteratorFactory(callback) %7B%0A re @@ -275,33 +275,24 @@ -var children = +if (! parent -&& +%7C%7C ! pare @@ -306,27 +306,8 @@ dren -%0...
860aa083badedf7781c7b62f6e6fff2a681bea4b
Support data-src cloaking for <iframe> and <video>
src/layout/figuresize.js
src/layout/figuresize.js
/** * @fileoverview HTML and other information about a figure's content payload. */ goog.provide('treesaver.layout.FigureSize'); goog.require('treesaver.dom'); /** * HTML and other information about a figure content payload * @param {string} html Content payload. * @param {number|string} minW * @param {number|...
JavaScript
0
@@ -1651,16 +1651,75 @@ images%0A + %5B'img', 'iframe', 'video'%5D.forEach(function(tagName) %7B%0A treesa @@ -1766,21 +1766,23 @@ , null, -'img' +tagName , contai @@ -1787,16 +1787,18 @@ ainer).%0A + forE @@ -1821,16 +1821,18 @@ %7B%0A + e.setAtt @@ -1874,16 +1874,24 @@ src'));%0A + %7...
eb2fcf34068efe8a81d4850b3c5c31dbc5376170
Add export
index.js
index.js
(function(global, factory) { if (typeof define === 'function' && define.amd) { define([], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(); // CommonJS } else { global.mova = factory(); // Globals } }(this, function() { 'use strict'; var languages = {}; va...
JavaScript
0.000001
@@ -1715,14 +1715,30 @@ %7D%0A %7D; +%0A%0A return mova; %0A%7D));%0A
de23a3bf9be94905152c287d96abaedefd77684f
Ignore actions evaluating to false
src/createDispatcher.js
src/createDispatcher.js
import { BehaviorSubject, Subject, Scheduler, Observable } from 'rxjs' import { createState, filterActions } from './util/state' import { parseOpts, logAgendas, logStore } from './util/logger' function isPromise(obj) { return Promise.prototype.isPrototypeOf(obj) } const kickstart = { type: '_INI...
JavaScript
0.998984
@@ -2104,24 +2104,48 @@ %0A %7D%0A%0A + if (action) %7B%0A buck @@ -2165,24 +2165,26 @@ n)%0A%0A + + const newAnc @@ -2216,24 +2216,26 @@ n)%0A%0A + if (anchor ! @@ -2260,16 +2260,18 @@ + + anchor = @@ -2277,24 +2277,26 @@ = newAnchor%0A + st ...
b78012fb20f7a3cd34bc10376c096abd654103eb
fix potential bug with accessory instances; change the way device names are handled
index.js
index.js
var QMotion = require('qmotion'); var http = require('http'); var Characteristic, PlatformAccessory, Service, UUIDGen; module.exports = function(homebridge) { PlatformAccessory = homebridge.platformAccessory; Service = homebridge.hap.Service; Characteristic = homebridge.hap.Characteristic; UUIDGen = ...
JavaScript
0
@@ -1394,24 +1394,25 @@ y(self.log, +( accessory, b @@ -1400,32 +1400,95 @@ .log, (accessory + instanceof QMotionAccessory ? accessory.accessory : accessory) , blind);%0A @@ -1707,26 +1707,39 @@ cessory( +%22QMotion %22 + blind. -name +addr , UUIDGe @@ -1810,16 +1810,28 @@ Covering +, blind.name );%0A ...
9adbc3723887c0bacf25add792868773a568ce58
Return a joined array of all repos.
index.js
index.js
"use strict"; var https = require("https"); var url = require("url"); var Promise = require("bluebird"); function httpsGet(options) { return new Promise(function(resolve, reject) { https.get(options, function(res) { resolve(res); }).on("error", function(err) { reject(err); }); }); } function promisifyRe...
JavaScript
0.000001
@@ -782,22 +782,19 @@ unction -backup +get PublicUs @@ -810,16 +810,32 @@ ser) %7B%0A%09 +var userRepos = get(%22/us @@ -863,34 +863,31 @@ s%22). -each(backupRepo).done();%0A%09 +all();%0A%09var orgRepos = get( @@ -935,70 +935,146 @@ os). -each(function(repos) %7B%0A%09%09repos.forEach(backup +all();%0A%09ret...
f798c9a77d6d0f66e149f6b8b48ccf710123e0f3
Fix incorrect encoding of value buffer.
index.js
index.js
var encoders = require('encode') function option (keys, options) { var option for (var i = 0; i < options.length; i++) { for (var j = 0; j < keys.length; j++) { option = options[i][keys[j]] if (option != null) { return option } } } } var ...
JavaScript
0
@@ -610,16 +610,24 @@ value) ? + value : pair.en @@ -664,16 +664,8 @@ lue) - : value %0A
d18f6249b2bf1db4e0b4be42124fb94303aa99c0
Add aria-haspopup to layers dialog, fixes it not working on WinPhone8/IE10 Touch devices. Fixes #1539
src/control/Control.Layers.js
src/control/Control.Layers.js
/* * L.Control.Layers is a control to allow users to switch between different layers on the map. */ L.Control.Layers = L.Control.extend({ options: { collapsed: true, position: 'topright', autoZIndex: true }, initialize: function (baseLayers, overlays, options) { L.setOptions(this, options); ...
JavaScript
0
@@ -1416,24 +1416,76 @@ ssName);%0D%0A%0D%0A +%09%09container.setAttribute(%22aria-haspopup%22, true);%0D%0A%0D%0A %09%09if (!L.Bro
ae45181caa37007c792e5c23d1a882802d804be1
Fix regex for ".Spotlight-V100"
index.js
index.js
'use strict'; // // All // /^npm-debug\.log$/, // npm error log // /^\..*\.swp$/, // vim state // // OS X // /^\.DS_Store$/, // stores custom folder attributes // /^\.AppleDouble$/, // stores additional file resources // /^\.LSOverride$/, // contains the absolute path to the app to be used // /^I...
JavaScript
0.999775
@@ -397,16 +397,17 @@ il%0A// /%5E +%5C .Spotlig @@ -898,16 +898,17 @@ %5E%5C._.*%7C%5E +%5C .Spotlig
f15d49d4e4ed04e10d6467f7d0e85fd6e711e62e
Fix custom uri
index.js
index.js
const $$ = (document, selector) => document.querySelectorAll(selector) const $ = require('ramda') const map = $.map const merge = $.merge const range = $.range const range1 = range(1) const unnest = $.unnest const process = require('process') const getopt = require('meow') const opts = getop...
JavaScript
0.000001
@@ -497,27 +497,23 @@ -get opt +s .uri = -get opt +s .inp
1f446f8b0cd7fec8a66ad8bf15dfc432fc3e8365
Fix to be more forgiving when stringifying
index.js
index.js
'use strict'; /** * Stringify an NLCST node. * * @param {NLCSTNode} nlcst * @return {string} */ function nlcstToString(nlcst) { var values, length, children; if (nlcst.value) { return nlcst.value; } children = nlcst.children; length = children.length; /** *...
JavaScript
0.998779
@@ -187,16 +187,23 @@ if ( +typeof nlcst.va @@ -205,16 +205,29 @@ st.value + === 'string' ) %7B%0A
07135aec157822a079cde52c96d351d9cbc74772
fix a bug in chunk reading
index.js
index.js
const fs = require('fs'); const path = require('path'); const os = require('os'); const rimraf = require('rimraf'); const spawn = require('child_process').spawn; const GetPeaks = require('./getPeaks'); class AudioPeaks { constructor(opts) { this.oddByte = null; this.sc = 0; this.opts = ...
JavaScript
0.000002
@@ -2402,14 +2402,34 @@ s = -Array( +%5B%5D;%0A%09%09%0A%09%09for(let ii=0; ii%3C this @@ -2451,18 +2451,32 @@ nels -).fill( +; ii++) samples%5Bii%5D = %5B%5D -) ;%0A%09%09 @@ -2675,63 +2675,32 @@ %0A%0A%09%09 -const cL = (~~(contentLength / 2)) * 2;%0A%09%09for (; i %3C cL +for (; i %3C contentLength ; i
826ec6818f8c1b7467b707dca275a8a2b03cd680
Add plugin.re().
index.js
index.js
var path = require('path'), rs = require('browserify/node_modules/readable-stream'), // Map resolved pathnames to expose IDs. mappings = {}, plugin; /** * Main plugin. */ function pathmodify (b, opts) { var deps = b.pipeline.get('deps'), pack = b.pipeline.get('pack').get(0), stream; deps.p...
JavaScript
0
@@ -5690,16 +5690,86 @@ ');%0A%7D;%0A%0A +plugin.re = function (from, to) %7B%0A return simple(from, to, 're');%0A%7D%0A%0A module.e
1a09e487cd4a1c0f8413c424a733140177d9e469
fix file path
index.js
index.js
'use strict' const escomplex = require('escomplex') const path = require('path') const read = require('read-file') function sanitize (fileName, filePath, result) { return { cyclomatic: result.aggregate.cyclomatic, cyclomaticDensity: result.aggregate.cyclomaticDensity, file: { name: file...
JavaScript
0.000003
@@ -1057,24 +1057,27 @@ =%3E %7B%0D%0A + // let fullPat @@ -1146,19 +1146,19 @@ d.sync(f -ull +ile Path, 'u
cc6951eb0da1346683ec2410e3b49a8c52e1e728
fix duplicateRetries initializing
index.js
index.js
'use strict'; var shortid = require('shortid'); var shortidArray = function(count) { return Array.apply(null, Array(count)).map(function() { return shortid.generate(); }); }; var populateIds = function(objs, ids) { objs.forEach(function(obj, index) { obj._id = ids[index]; }); }; module.exports = function(co...
JavaScript
0.000008
@@ -357,17 +357,29 @@ %7C%7C %7B%7D;%0A -%09 +%0A%09if (typeof params.d @@ -394,18 +394,34 @@ Retries -= +!== 'number') %7B%0A%09%09 params.d @@ -440,13 +440,15 @@ ies -%7C%7C += 5; +%0A%09%7D %0A%0A%09i
e619afcfeb5dfeca56a27dadd9f36c70c006dceb
make option to enable allowAccessToMethodsOnFunctions namely to be used by cwise transform
index.js
index.js
var unparse = require('escodegen').generate; module.exports = function (ast, vars) { if (!vars) vars = {}; var FAIL = {}; var result = (function walk (node, noExecute) { if (node.type === 'Literal') { return node.value; } else if (node.type === 'UnaryExpression'){ ...
JavaScript
0
@@ -75,19 +75,133 @@ st, vars -) %7B +, opts) %7B%0A if(!opts) opts = %7B%7D;%0A var rejectAccessToMethodsOnFunctions = !opts.allowAccessToMethodsOnFunctions;%0A %0A if @@ -4383,112 +4383,122 @@ -// do not allow access to methods on Function%0A if((obj === FAIL) %7C%7C (typeof obj == 'funct...
4d135c8cdd6c084636dc8345ca312b473a0804be
use util.isFunction instead of typeof
index.js
index.js
'use strict'; module.exports = run; run.Run = Run; var util = require('util'); var wrap = require('wrap-as-async'); var mix = require('mix2'); var make_array = require('make-array'); var case_ = require('./lib/case'); function run (description, runner) { if (typeof description === 'function') { runner = des...
JavaScript
0.000002
@@ -264,41 +264,36 @@ if ( -typeof description === 'function' +util.isFunction(description) ) %7B%0A
5090e7764911a78d33b4d9ebdd62c8bf96f2ffe8
remove callback param
index.js
index.js
var featureCollection = require('turf-featurecollection') module.exports = function(collection, key, val, done) { var newFC = featureCollection([]); for(var i = 0; i < collection.features.length; i++) { if(collection.features[i].properties[key] != val) { newFC.features.push(collection.features[i]) } ...
JavaScript
0.000001
@@ -102,14 +102,8 @@ val -, done ) %7B%0A
b913a8f02682120c545222bee939fbe96fdc1b32
Add timestamp to foldername
index.js
index.js
'use strict'; const drive = require('./src/drive'); const Copy = require('./src/copy'); const path = require('path'); let BASE_DIR; const copy = Copy({ onStart: onStart, onEnd: onEnd, onError: onError }); function getFolderName(dr) { const parse = path.parse(dr); if (dr.name ...
JavaScript
0.000007
@@ -222,32 +222,99 @@ onError%0D%0A%7D);%0D%0A%0D%0A +function getDateString() %7B%0D%0A return new Date().getDate();%0D%0A%7D%0D%0A%0D%0A function getFold
4d8060f87d4604c9a56acf0e6f629488e46b041b
Add shebang
index.js
index.js
'use strict'; const beautifyText = require('beautify-text'); const fs = require('fs'); const glob = require('glob'); const through2 = require('through2'); if (process.argv.length > 2) { process.argv .slice(2) .map(pattern => glob.sync(pattern)) // extract matched filenames .reduce((acc, curr) => acc.concat(cur...
JavaScript
0.998868
@@ -1,8 +1,28 @@ +#!/usr/bin/env node%0A 'use str
28aaf769e482a16c238af3dbdd68a056b684e7d2
Refactor API
index.js
index.js
'use strict'; exports = module.exports = function () {}; var stemmer = require('lancaster-stemmer'); function onchangetextinside() { var value = this.toString(); this.data.stem = value ? stemmer(value) : null; } function attach(retext) { retext.parser.TextOM.WordNode.on('changetextinside', onchangetexti...
JavaScript
0.000001
@@ -12,95 +12,222 @@ ';%0A%0A -exports = module.exports = function () %7B%7D;%0A%0Avar stemmer = require('lancaster-stemmer'); +var stemmer;%0A%0A/**%0A * Module dependencies.%0A */%0A%0Astemmer = require('lancaster-stemmer');%0A%0A/**%0A * Define %60lancasterStemmer%60;%0A */%0A%0Afunction lancasterStemmer() %7B%7D%0...
59dce83a6982103b7639fa27f80a3ab7a7bb290b
Revert URI logic
index.js
index.js
var request = require('request'); var methods = require('./api-methods'); function serializeObjToUri(obj) { return Object.keys(obj).map(function(key) { return key + '=' + encodeURIComponent(obj[key]); }).join('&'); } var Api = function(config) { this._uri = config.uri }; Object.keys(methods).forEach(funct...
JavaScript
0.000001
@@ -224,62 +224,500 @@ %0A%7D%0A%0A -%0Avar Api = function(config) %7B%0A this._uri = config.uri +function buildBasicAuthHeader(obj) %7B%0A return 'Basic ' + new Buffer(obj.username + ':' + obj.password).toString('base64');%0A%7D%0A%0Avar Api = function(config) %7B%0A this._protocol = config.protocol %7C%7C 'http';...
d6dc40131a77e4b377c84a78b4b3aea11683ce07
fix publication order button (reservability was reversed)
redef/patron-client/src/frontend/components/Publication.js
redef/patron-client/src/frontend/components/Publication.js
import React, { PropTypes } from 'react' import { injectIntl, intlShape, defineMessages, FormattedMessage } from 'react-intl' import ClickableElement from '../components/ClickableElement' import Constants from '../constants/Constants' import title from '../utils/title' class Publication extends React.Component { ren...
JavaScript
0
@@ -3458,17 +3458,16 @@ return -! item.res
bb637f3185aad9ee25816f6d924f3dc28c1dfe35
Support Placeholder prop
index.js
index.js
'use strict'; import React, {Component, PropTypes} from 'react'; import { StyleSheet, TextInput, LayoutAnimation, Animated, Easing, Text, View, Platform } from 'react-native'; var textPropTypes = Text.propTypes || View.propTypes var textInputPropTypes = TextInput.propTypes || textPropTypes var propTyp...
JavaScript
0
@@ -632,18 +632,17 @@ dirty: -!! +( this.pro @@ -649,16 +649,43 @@ ps.value + %7C%7C this.props.placeholder) %0A %7D;%0A @@ -3273,32 +3273,77 @@ / Compatibility%0A + placeholder: this.props.placeholder,%0A secureTe
532b067acbef1b5e3f496431a82bcd9c7615b017
Add Hudson support
index.js
index.js
'use strict' module.exports = !!( // Generic environment variables process.env.CI || // Travis CI, CircleCI, ... process.env.CONTINUOUS_INTEGRATION || // Travis CI, ... // Sever specific environment variables process.env.JENKINS_URL || // Jenkins process.env.bamboo_planKe...
JavaScript
0
@@ -190,16 +190,83 @@ CI, ... +%0A process.env.BUILD_NUMBER %7C%7C // Jenkins, TeamCity, ... %0A%0A // S @@ -623,16 +623,67 @@ ildkite%0A + process.env.HUDSON_URL %7C%7C // Hudson%0A false%0A
cc42cc244bb0e6b38d5e2f3cf1ed46104cf8dcda
Clarify mode using a descriptive constant
index.js
index.js
'use strict'; var base = require('xdg-basedir'); var fs = require('fs'); var mkdir = require('mkdirp'); var mount = require('mount-point'); var path = require('path'); /** * Get the correct trash path on Linux * * @param {String} file * @param {Function} cb * @api public */ module.exports = function (file, cb)...
JavaScript
0.000001
@@ -717,16 +717,45 @@ etuid(); +%0A%09%09var stickyBitMode = 17407; %0A%0A%09%09fs.e @@ -986,21 +986,29 @@ ode !== -17407 +stickyBitMode ) %7B%0A%09%09%09%09
192ce61795ad826b4745707fd97a030d2c965271
add module_folder to exports
index.js
index.js
/* * index.js * * David Janes * IOTDB.org * 2015-02-08 * * Copyright [2013-2015] [David P. Janes] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
JavaScript
0.000001
@@ -808,8 +808,44 @@ ing,%0A%5D;%0A +%0Aexports.module_folder = __dirname;%0A
a29ebc326191b3a1e8264d78c24480dd5e9cdebc
Remove un-needed returns
index.js
index.js
'use strict'; var app = require('express')(), http = require('http'), server = http.createServer(app), io = require('socket.io').listen(server), jwt = require('jwt-simple'), config = require('./config'), User = require('./models/User'), userChannels; /* Serve html page with express */ app....
JavaScript
0.000028
@@ -775,31 +775,24 @@ ion);%0A -return callback(nul @@ -1009,39 +1009,32 @@ nnels);%0A -return callback(null, t @@ -1150,15 +1150,8 @@ -return call
11292d726be994d46c97c1219e06cd19b1fb6cfc
Stop abusing variable/parameter shadowing weirdness
index.js
index.js
var parseScope = require('lexical-scope'); var through = require('through2'); var merge = require('xtend'); var path = require('path'); var processPath = require.resolve('process/browser.js'); var combineSourceMap = require('combine-source-map'); var defaultVars = { process: function () { return 'require(...
JavaScript
0.000001
@@ -710,16 +710,20 @@ var file +name = '/' + @@ -783,24 +783,28 @@ ringify(file +name );%0A %7D,%0A
eb2d2ebf1de33e7814c27676f14942c72d87a4e6
fix handling of empty strings in arrays
index.js
index.js
var Busboy = require('busboy') var chan = require('chan') var getDescriptor = Object.getOwnPropertyDescriptor var isArray = Array.isArray; var slice = [].slice module.exports = function (request, options) { var ch = chan() // koa special sauce request = request.req || request options = options || {} optio...
JavaScript
0.000066
@@ -1048,13 +1048,20 @@ if ( -! prev + == null ) re
869cf53ad0bc25577e837c37f74f2359c3fbca59
Update config.json.js
koolproxy/config.json.js
koolproxy/config.json.js
{ "build_date": "2016-12-27_09:15:58", "description": "koolproxy", "home_url": "Module_koolproxy.asp", "md5": "7f69b168fd85b5b6f16cdf91770d233d", "module": "koolproxy", "title": "koolproxy", "version": "3.3.4" }
JavaScript
0.000016
@@ -53,33 +53,29 @@ cription%22: %22 -koolproxy +%E5%8E%BB%E5%B1%91%E4%B8%8D%E6%B2%B9%E8%85%BB %22, %0A %22hom @@ -193,29 +193,29 @@ %22title%22: %22 -koolp +KoolP roxy%22, %0A @@ -234,8 +234,9 @@ 3.3.4%22%0A%7D +%0A
090bf8b9b05236cc5f1bd27b21980e100746c0fb
Fix JSDoc optional type syntax
index.js
index.js
'use strict'; /** * Module dependencies */ var crypto = require('crypto'); /** * 64 characters in the ascii range that can be used in URLs without special * encoding. */ var UIDCHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'; /** * Make a Buffer into a string ready for use in URLs *...
JavaScript
0.000019
@@ -673,21 +673,12 @@ er%7D +%5B cb - (optional) +%5D Ca
e662e50836028f52815572c1784a867a447d042d
change package.json
index.js
index.js
const path = require('path'); const fs = require('fs'); const Koa = require('koa'); const Router = require('koa-router'); const logger = require('koa-logger'); const static = require('koa-static'); const multer = require('koa-multer'); const cors = require('kcors'); const app = new Koa(); const router = new Router({ ...
JavaScript
0.000004
@@ -1036,20 +1036,8 @@ og(%60 -$%7Bpkg.name%7D list
560bd56c298710d210805e94f4da1111169260ea
Kill non-functional instances on connect.
index.js
index.js
var Launcher = require("ensime-launcher-js"); var WebSocket = require("ws"); function Controller(dotEnsime, ensimeInstallDir, options) { this.dotEnsime = dotEnsime; if (options && "sbt" in options) this.sbtCmd = options.sbt; else this.sbtCmd = "sbt"; if (options && "ensimeVersion" in options) this.ensimeVers...
JavaScript
0.000001
@@ -792,62 +792,55 @@ %7B%0A -if (this.connection) return this.status(callback);%0A%0A +var _this = this%0A function doConnect() %7B%0A +_ this @@ -870,24 +870,27 @@ ion() %7B%0A + _ this.launche @@ -926,32 +926,34 @@ ports) %7B%0A + if (err) return @@ -963,24 +963,26 @@ lback(err);%0A + ...
8254f01779cce88aa243624ed598f1fb72f8c321
split the code to send an email from the code to send a specific reset password email
index.js
index.js
var Mailjet = require("node-mailjet"); var mailjetAdapter = options => { if (!options || !options.apiKey || !options.apiSecret || !options.fromAddress) { throw "mailjetAdapter requires an API key, an API secret and a from address."; } var mailjet = Mailjet.connect(options.apiKey, options.apiSecret); var s...
JavaScript
0.001066
@@ -139,23 +139,21 @@ ons.from -Address +Email ) %7B%0A @@ -310,17 +310,136 @@ %0A%0A -var sendM +/**%0A * @function sendPasswordResetEmail%0A * @description Sends the link to reset the password%0A */%0A var sendPasswordResetEm ail @@ -540,15 +540,13 @@ from -Address +Email ,%0A @@ -615,18 +615,33...
09f79d6a635b6066302ef98c51606702d5885bd6
Add player 1, player 2 and spectator
index.js
index.js
var express = require('express'); var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); var lastPlayerId = 0; var players = {}; var rooms = ['Lobby']; app.use(express.static(__dirname + '/public')); app.get('/', function(req, res){ res.sendfile('index.html'); }); app.ge...
JavaScript
0.000005
@@ -598,16 +598,72 @@ rId ++;%0A + console.log(io.sockets.adapter.rooms%5B'Lobby'%5D.length)%0A if (io @@ -721,19 +721,19 @@ r player -Two +One = newCo @@ -757,28 +757,114 @@ log( +' player -Two);%0A %7D else + one set')%0A console.log(playerOne);%0A %7D else if (io.sockets.adapter.rooms%5B'Lobby'%5D.len...
85cb98f7e5df78cdb7008fdc01d5e13010b14e7b
Allow for creating https servers.
index.js
index.js
"use strict"; var http = require("http"), https = require("https"); class BasicHTTPServer { constructor (options){ this.port = options.port || "8080"; this.server = null; this.routes = []; this.defaultRoute = null; } start () { this.server = http.createServer(t...
JavaScript
0
@@ -135,58 +135,474 @@ his. -port = options.port %7C%7C %228080%22;%0A this.server +useHttp = options.useHttp !== undefined && options.useHttp !== null ? options.useHttp : true;%0A this.useHttps = options.useHttps !== undefined && options.useHttps !== null ? options.useHttps : false;%0A this.port ...
86c18ccf802d91e933b5dd4c0e3756a955d7c1ca
add wait option
index.js
index.js
'use strict'; var debug = require('debug')('azurin'); var fs = require('fs'); var path = require('path'); var assert = require('assert'); var request = require('request'); var azure = require('azure-storage'); var mgmtSQL = require('azure-mgmt-sql'); var mgmtSTG = require('azure-mgmt-storage'); var certi...
JavaScript
0.000004
@@ -5328,16 +5328,20 @@ ror && ! +req. status)
a872f7866dbec7413f604ad82d249ac220308d9d
Throw an error if corpus is not built
index.js
index.js
'use strict'; const _ = require('lodash'); class Generator { constructor(data, options) { this.data = data; this.corpus = {}; this.startWords = []; this.endWords = []; this.defaultOptions = { stateSize: 2, maxLength: 0, minWords : 5, maxWords : 0, minScore : 0, ...
JavaScript
0.000005
@@ -127,18 +127,25 @@ orpus = -%7B%7D +undefined ;%0A th @@ -726,24 +726,46 @@ s.options;%0A%0A + this.corpus = %7B%7D;%0A this.dat @@ -2084,24 +2084,100 @@ s, check) %7B%0A + if (!this.corpus) %7B%0A throw new Error('Corpus is not built.')%0A %7D%0A options
58ef4d03254fa22d86d16e40c00ce2e71b6e182b
Fix a slight bug in index.js
index.js
index.js
'use strict'; var fs = require('fs'); function importConfiguration(plugins) { plugins.forEach(function(pluginConfig) { var path = pluginConfig.path; var plugin = require('bindslash-' + pluginConfig.name); plugin.importConfiguration(path); }); } function exportConfiguration(plugins) { plugins.forEach(funct...
JavaScript
0.000028
@@ -12,18 +12,22 @@ ';%0A%0Avar -fs +mkdirp = requi @@ -30,18 +30,22 @@ equire(' -fs +mkdirp ');%0A%0Afun @@ -438,16 +438,14 @@ %0A%0A%09%09 -fs. mkdir +p (pat @@ -466,16 +466,25 @@ r) %7B%0A%09%09%09 +if (err) throw er
b8ad37d4c10670d8b7fcf19245eb53109f266088
add livereload
index.js
index.js
'use strict'; var _ = require('lodash-node'), less = require('gulp-less'), autoprefixer = require('gulp-autoprefixer'), minifycss = require('gulp-minify-css'), uglify = require('gulp-uglify'), concat = require('gulp-concat'), notify = require('gulp-notify'), clean = require('gulp-clean'), ...
JavaScript
0.000001
@@ -340,29 +340,22 @@ lp-rev') -;%0A %0A // +,%0A liverelo @@ -385,17 +385,22 @@ reload') -, +;%0A %0A //c @@ -2463,32 +2463,149 @@ %7D%0A %7D);%0A %0A + // for images%0A gulp.task('images', function() %7B%0A console.log('images task coming soon~');%0A %7D);%0A %0A /...
3302030fd60a8eb2515d51ad32440577bf255f0e
Fix stderr maxBuffer exceeded.
index.js
index.js
var Buffer = require('buffer').Buffer; var child_process = require('child_process'); var fs = require('fs'); var gutil = require('gulp-util'); var path = require('path'); var tempWrite = require('temp-write'); var through = require('through'); const PLUGIN_NAME = 'gulp-closure-library'; module.exports = function(opt,...
JavaScript
0.000001
@@ -2134,24 +2134,112 @@ FilePath);%0A%0A + // Bigger max buffer to fix %22stderr maxBuffer exceeded%22 error. Default is 200*1024.%0A var jar @@ -2262,16 +2262,42 @@ ', args, + %7B maxBuffer: 1000*1024 %7D, functio
165dfaee9695a77ef426d8ee79787df707adad82
fix yet another bug with manual giblethub descriptors
index.js
index.js
module.exports = giblets; var sander = require('sander'), Promise = sander.Promise, request = require('request-promise'), path = require('path'); function giblets(input, output, opts) { var env = opts.environment || opts.env || 'development'; var adapt = 'adapt' in opts ? opts.adapt : true; var cach...
JavaScript
0
@@ -2878,22 +2878,20 @@ = opts. -output +base , detail
85d620fb2d1c2a8c80497010fc2153c2325bcc68
fix coma
index.js
index.js
/*global require:false, console:false, module:false, setTimeout: false, process: false*/ var data = require('./src/data'); var renderer = require('./src/renderer'); var nav = require('./src/navigation'); var notification = require('./src/notification'); var config = require('./src/config'); var currentGroup = -1; var...
JavaScript
0.005917
@@ -4428,24 +4428,23 @@ oup.name +, %0A - , post.fr @@ -4478,16 +4478,15 @@ ost' +, %0A - , pos @@ -4910,24 +4910,25 @@ oup.name +, %0A , post. @@ -4915,26 +4915,24 @@ ame,%0A - , post.from.n @@ -4971,24 +4971,25 @@ ny post' +, %0A , post. @@ -4984,10 +4984,8 @@ -...
ce7b0dbe1763bec8d0d7805b191a57dc1bfdc740
after lint
index.js
index.js
'use strict'; const fs = require('fs'); const path = require('path'); const isJSON = require('is-json'); const posthtml = require('posthtml'); const render = require('posthtml-render'); const match = require('posthtml-match-helper'); const expressions = require('posthtml-expressions'); /** * Process every node conten...
JavaScript
0.997333
@@ -2354,17 +2354,16 @@ ntent && - %0A @@ -2384,17 +2384,16 @@ attrs && - %0A @@ -2530,30 +2530,16 @@ %7D%0A - %0A