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
41a4c31bbad6982bd6737376af5d9e499529c6f4
Fix child_process undefined error by including lib
gulpfile.js
gulpfile.js
// http://blog.ponyfoo.com/2014/01/27/my-first-gulp-adventure var gulp = require('gulp'); var gutil = require('gulp-util'); var bump = require('gulp-bump'); var git = require('gulp-git'); var jshint = require('gulp-jshint'); var clean = require('gulp-clean'); var rename = require('gulp-rename'); var uglify = require('g...
JavaScript
0.000005
@@ -482,16 +482,60 @@ tomjs'); +%0Avar childProcess = require('child_process') %0A%0Avar BU @@ -2117,32 +2117,20 @@ %7B%0A -require(' child -_p +P rocess -') %0A @@ -2359,26 +2359,25 @@ () %7B%0A child -_p +P rocess.spawn
49158f91b7bb42f5550a3d1317e307811b61b8a1
fix window resize issue on Windows
gulpfile.js
gulpfile.js
var path = require('path'); var gulp = require('gulp'); var sass = require('gulp-sass'); var process = require('process'); var gutil = require('gulp-util'); var webpack = require('webpack'); var clean = require('gulp-clean'); var packager = require('electron-packager'); var childProcess = require('child_process'); var...
JavaScript
0
@@ -1921,81 +1921,18 @@ 'l -ibEGL.dll',%0A 'locales/*.*',%0A 'libGLESv2.dll +ocales/*.* ',%0A @@ -3356,24 +3356,54 @@ 'node.dll',%0A + 'libEGL.dll',%0A @@ -3446,32 +3446,65 @@ 'msvcp120.dll',%0A + 'libGLESv2.dll',%0A
4666c63b369dfbfdd0a51cb5e0549d1d1cb96597
Update gulp task
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const tsc = require('gulp-typescript'); const sourcemaps = require('gulp-sourcemaps'); const merge = require('merge2'); const clean = require('gulp-clean'); const tsProject = tsc.createProject('tsconfig.json'); gulp.task('clean', () => { const tsResult = gulp.src(['./src/**/*.d.ts', './...
JavaScript
0.000003
@@ -264,32 +264,22 @@ =%3E %7B%0A -const tsResult = +return gulp.sr @@ -359,27 +359,13 @@ p'%5D) -; %0A -return tsResult + .pip
af3e7e5b4db6100dd92889a8224ce18a984611e9
clean up gulpfile
gulpfile.js
gulpfile.js
var gulp = require('gulp'), child = require('child_process'); // Top Level Commands ---------------------------------------------------------- gulp.task('default', ['info']); gulp.task('lint', ['dolint']); gulp.task('example', ['serve']); gulp.task('build', ['dobuild']); // Helper Tasks -------------------------...
JavaScript
0.000002
@@ -259,23 +259,38 @@ ild', %5B' -do +build-min', ' build +-max '%5D);%0A%0A// @@ -822,15 +822,17 @@ sk(' -do build +-min ', f @@ -941,23 +941,141 @@ uglify'%5D -,%0A +;%0A return child.spawn('./node_modules/.bin/r.js', min, %7B stdio: 'inherit' %7D);%0A%7D);%0A%0Agulp.task('build-max', function() %7B%0A ...
54318e30f78b358ab0a00e8827da11d2d85f0cd7
add admin style
public/vendor/admindata.js
public/vendor/admindata.js
$(document).ready(function(){ $.ajax({ url: "http://localhost:3000/api/pan", success: function(result){ var adminHtml = ''; $.each(result, function(k,v) { adminHtml += ` <tr class="single-list"> <td class="text-center baseimage" style="background-image: url('data:image/png;bas...
JavaScript
0
@@ -4134,16 +4134,43 @@ 'true') +.css('font-weight', 'bold') ;%0A%09%09%09%09%09%7D
120f388879456cb4e07237af8d97ff873102e2dc
Add missing test files to 'gulp test' default.
gulpfile.js
gulpfile.js
/* * Copyright 2015 Google Inc. All Rights Reserved. * * 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 applica...
JavaScript
0
@@ -1135,24 +1135,83 @@ ser-test.js' +,%0A 'test/ast-test.js', 'test/util-test.js' %5D;%0A%0Agulp.tas
ed29356d2e5c8a19d97ef7f4b90cdcb4e9f58768
add test
test/static/itemSpec.js
test/static/itemSpec.js
describe("Awesomplete.ITEM", function () { subject(function () { return Awesomplete.ITEM }); def("element", function () { return this.subject("JavaScript", this.input || "") }); it("creates DOM element", function () { expect(this.element instanceof HTMLElement).toBe(true); }); it("creates LI element", functi...
JavaScript
0.000002
@@ -1120,24 +1120,201 @@ put%22, %22%22);%0A%0A +%09%09it(%22does not mark anything%22, function () %7B%0A%09%09%09expect(this.element.innerHTML).toBe(%22JavaScript%22);%0A%09%09%7D);%0A%09%7D);%0A%0A%09describe(%22with space input%22, function () %7B%0A%09%09def(%22input%22, %22 %22);%0A%0A %09%09it(%22does n
016f6585cb5dd57df49a22008dd917b0c87b4694
add .listeners
src/EventEmitter.js
src/EventEmitter.js
'use strict'; /** * Create an EventEmitter * @constructor */ function EventEmitter() { /** * A hash to hold all registered events and their listeners * properties are event names, their values are arrays of * listeners for that event */ this._events = {}; } /** * Register an event tha...
JavaScript
0
@@ -3547,59 +3547,354 @@ %7D;%0A%0A -EventEmitter.prototype.listeners = function(evt) %7B%0A +/**%0A * Return an array of listeners for an event%0A * @param %7BMixed%7D evt - The event whose listeners to get%0A * @returns %7BArray%7D - An array of listeners for the event%0A * Empty array if event is...
1f8ccf7eca00247e2037fbf67ef9c5b734b7c702
Add Gulp serve
gulpfile.js
gulpfile.js
/** * @author Ulrik Moe * @license GPLv3 * * Indentation: 4 spaces * Conventions: https://github.com/airbnb/javascript * * Use 'gulp --min' **/ 'use strict'; const gulp = require('gulp'); const del = require('del'); const gutil = require('gulp-util'); const connect = require('gulp-connect'); const uglify = r...
JavaScript
0
@@ -2739,16 +2739,68 @@ %5D); %7D);%0A +gulp.task('serve', gulp.parallel(stalker, server));%0A gulp.tas @@ -2899,21 +2899,16 @@ .series( -%0A 'clean', @@ -2944,44 +2944,16 @@ tml, -%0A gulp.parallel(stalker, +' serve -r)%0A +' ));%0A
f3c21a411e8bd3c30856ee7aba24e8e25e40aad1
Fix typo
gulpfile.js
gulpfile.js
/*jshint node: true, globalstrict: true, esnext: false */ "use strict"; // Imports // ------- var spawnSync = require("child_process").spawnSync; var gulp = require("gulp-help")(require("gulp")); var to5 = require("gulp-6to5"); var uglify = require("gulp-uglify"); var rename = require("gulp-rename"); // `gulp bui...
JavaScript
0.999999
@@ -361,17 +361,17 @@ , %22Buil -t +d the lot
1ce0247de014fb1e97b742351166b50355ca2c9c
fix watchify.
gulpfile.js
gulpfile.js
/** * Copied from * https://github.com/gulpjs/gulp/blob/8701b9dda6303429adacea4661311287e172cda3/docs/recipes/fast-browserify-builds-with-watchify.md * * Created by kdbanman on 2/29/16. */ 'use strict'; // REQUIREMENTS var fs = require('fs'); var gulp = require('gulp'); var gutil = require('gulp-util'); var mo...
JavaScript
0
@@ -631,59 +631,8 @@ ;%0A%0A%0A -var insideTravis = fs.existsSync('/home/travis');%0A%0A // C @@ -1309,18 +1309,20 @@ function + () + %7B%0A @@ -1343,17 +1343,465 @@ exit(1); -%7D +%0A %7D)%0A .pipe(source('client-bundle.js'))%0A .pipe(buffer())%0A .pipe(sourcemaps.init(%7Bload...
b77da28d952c88c7bd61e062b22d4d3c7eefc869
Test createSocket as best we can.
test/subjection_spec.js
test/subjection_spec.js
const chai = require('chai'); const sinon = require('sinon'); const sinonChai = require('sinon-chai'); const expect = chai.expect; chai.use(sinonChai); const util = require('util'); import { EventEmitter } from 'events'; import * as jmp from 'jmp'; import { deepFreeze, createObserver, createObservable, crea...
JavaScript
0
@@ -1,12 +1,71 @@ +/* eslint camelcase: 0 */ // %3C-- Per Jupyter message spec%0A%0A const chai = @@ -212,19 +212,19 @@ %0Aconst u -til +uid = requi @@ -232,11 +232,11 @@ e('u -til +uid ');%0A @@ -272,24 +272,72 @@ 'events';%0A%0A +import * as constants from '../src/constants';%0A%0A import * as @@ -414,16 +4...
1b7f2a019c48ccb4f5591dac47030fa16119ab2b
rename load guard to camel case name
test/swift-simulator.js
test/swift-simulator.js
exports.loadAngularMocks = function () { browser.addMockModule('swiftBrowserE2E', function () { if (!window.e2e_angular_mocks_loaded) { var script = document.createElement('script'); script.src = 'bower_components/angular-mocks/angular-mocks.js'; document.body.appendChil...
JavaScript
0.000002
@@ -117,32 +117,29 @@ ndow.e2e -_a +A ngular -_m +M ocks -_l +L oaded) %7B @@ -347,24 +347,21 @@ .e2e -_a +A ngular -_m +M ocks -_l +L oade
c1e564a56c05fd121ccacafe93c69072702bdaa8
moved helper out of spec
test/task/TaskShared.js
test/task/TaskShared.js
'use strict'; /** * Requirements */ const baseSpec = require(ES_TEST + '/BaseShared.js').spec; const sinon = require('sinon'); const co = require('co'); const gulp = require('gulp'); /** * Shared Task spec */ function spec(type, className, prepareParameters, options) { const opts = options || {}; /** ...
JavaScript
0.998551
@@ -671,1046 +671,8 @@ ;%0A%0A%0A - /**%0A * Reads the given stream and resolves to an array of all chunks%0A */%0A function readStream(stream)%0A %7B%0A const promise = new Promise((resolve) =%3E%0A %7B%0A const data = %5B%5D;%0A stream.on('data', (item) =%3E%0A ...
66b1dcc12dbdb80f1e248d31303e8cad9a04fea4
Fix middleware test for node <= 0.12
test/test-middleware.js
test/test-middleware.js
'use strict'; var Transformer = require('../index.js'); var Middleware = require('../index.js').middleware; var transformer; var Promise = require('bluebird'); var logger; var assert = require('assert'); var AssertionError = assert.AssertionError; var objectPath = require('object-path'); describe('Executing \'jy-tran...
JavaScript
0.000158
@@ -3012,30 +3012,17 @@ sert -.deepStrictEqual (func -, + === myM @@ -3187,32 +3187,32 @@ nction (done) %7B%0A + Midd @@ -3243,340 +3243,8 @@ %7B%7D)%0A - .then(function (middleware)%7B%0A done(new AssertionError(%7B%0A message: 'rejecting with...
70d15cf8d9ddaa17c998e0000b83e647f67f6101
don't use double negatives
test/test-validators.js
test/test-validators.js
import assert from 'assert'; import { validateRange, validateWidths, validateWidthTolerance, validateVariableQuality } from '../src/validators'; describe('Validators:', function () { describe('Testing validateWidths', function () { it('throws an error if any width is negative', () => { assert.thro...
JavaScript
0.999861
@@ -1381,38 +1381,41 @@ if minWidth is -not %3C= +less than 0', () =%3E %7B%0A @@ -1531,14 +1531,17 @@ is -not %3C= +less than 0', @@ -1669,14 +1669,17 @@ is -not %3E= +less than min
85c6135ec0ba789611fe91616561a571576b4ed8
Update sync task
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const babel = require('gulp-babel'); const rename = require("gulp-rename"); const eslint = require('gulp-eslint'); const karma = require('karma').Server; const uglify = require('gulp-uglifyjs'); const minify = require("gulp-babel-minify"); const browserSync = require('browser-sync')...
JavaScript
0.000001
@@ -457,16 +457,27 @@ changes + and reload %0D%0A gulp @@ -512,17 +512,8 @@ oad' -, 'build' %5D);%0D
0adfa19c923dd66c338deea67a9bb97f61ec4104
Fix bug in traversal to node
index.es6.js
index.es6.js
const E_ITER = 'Argument 1 of seek must be a NodeIterator.'; const E_SHOW = 'Argument 1 of seek must use filter NodeFilter.SHOW_TEXT.'; const E_WHERE = 'Argument 2 of seek must be a number or a Text Node.'; export default function seek(iter, where) { if (!(iter instanceof NodeIterator)) { throw new Error(E_ITER...
JavaScript
0.000002
@@ -716,16 +716,52 @@ d: () =%3E + !iter.pointerBeforeReferenceNode %7C%7C after(n
29221569142361efe47364422d2de2f040c05c53
Add comments
index.esm.js
index.esm.js
/* *************************************************************************************** ES6 version of milsymbol *************************************************************************************** */ export { ms } from "./src/milsymbol.js"; export { app6b, std2525b, std2525c } from "./src/lettersidc.js"; export ...
JavaScript
0
@@ -773,17 +773,58 @@ ms, -%0A app6b, + // Base for milsymbol%0A app6b, // APP6-B %0A s @@ -831,16 +831,25 @@ td2525b, + // 2525B %0A std25 @@ -856,38 +856,117 @@ 25c, -%0A app6d,%0A std2525d,%0A path2d + // 2525C%0A app6d, // APP6-D%0A std2525d, // 2525D%0A path2d // Pollyfill for Path2D...
94fbde75146e0952e6b6bd2807486fba2ce0dbf6
update of gulpfile.js - commit.
gulpfile.js
gulpfile.js
/*! * rose-normalize-sass [v0.0.1] * ___________________________________________________ * Gulp: The streaming build system. * https://github.com/gulpjs/gulp | http://gulpjs.com/ * @author : Prabhat Kumar, http://prabhatkumar.org/ * @date : 11-July-2015 * ___________________________________________________ ...
JavaScript
0
@@ -1167,12 +1167,218 @@ lp-chmod');%0A +%0A// ***** SETTINGS ***** //%0Avar AUTOPREFIXER_BROWSERS = %5B%0A 'ie %3E= 10',%0A 'ie_mob %3E= 10',%0A 'ff %3E= 30',%0A 'chrome %3E= 34',%0A 'safari %3E= 7',%0A 'opera %3E= 22',%0A 'ios %3E= 7',%0A 'android %3E= 4.4',%0A 'bb %3E= 10'%0A%5D;%0A
a65113944eadc90972d753a21b6e1bae95a4ba36
disable in-app warnings
index.ios.js
index.ios.js
import { AppRegistry } from 'react-native'; import App from './app/App'; AppRegistry.registerComponent('FragDenStaat', () => App);
JavaScript
0.000002
@@ -67,16 +67,51 @@ /App';%0A%0A +console.disableYellowBox = true;%0A%0A%0A AppRegis
4c05977b1a882ba746f94ba7ae562b049a4ebf07
Use gulp start to first run everything and then watch
gulpfile.js
gulpfile.js
'use strict'; var gulp = require( 'gulp' ); var plugins = require( 'gulp-load-plugins' )(); gulp.task( 'watch', function() { // Watch .less files gulp.watch( 'design/**/*.less', [ 'styles' ] ); // Watch .js files gulp.watch( 'scripts/**/*.js', [ 'scripts' ] ); gulp.watch( 'web/*', [ 'markup' ] )...
JavaScript
0
@@ -1759,61 +1759,39 @@ k( ' -defaul +star t', %5B ' -styles', 'scripts', 'images', 'markup +default', 'watch ' %5D );%0A +%0A
5d687913baf15d2a0cfb7c7adb1b3eda6d2c645e
Copy android index over to ios
index.ios.js
index.ios.js
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; const store = require('./app/store'); const React = require('react-native'); const { AppRegistry, StyleSheet, Text, View, } = React; const { Provider } = require('react-redux'); const styles = StyleSheet.create({ co...
JavaScript
0.000001
@@ -76,45 +76,26 @@ */%0A -'use strict';%0A%0Aconst store = require( +import store from './a @@ -107,23 +107,23 @@ ore' -) ;%0A -cons +impor t React = re @@ -118,26 +118,21 @@ t React -= require( +from 'react-n @@ -137,17 +137,16 @@ -native' -) ;%0Aconst @@ -182,22 +182,58 @@ ,%0A -Text,%0A View,%0A...
cc1ae26169a99ec0b89a04874ef6b169364009a5
Add corrected default vaccinator
src/actions/Entities/VaccinePrescriptionActions.js
src/actions/Entities/VaccinePrescriptionActions.js
import { generateUUID } from 'react-native-database'; import { batch } from 'react-redux'; import { UIDatabase, createRecord } from '../../database'; import { selectHasRefused, selectSelectedBatches, selectSelectedVaccinator, } from '../../selectors/Entities/vaccinePrescription'; import { selectEditingNameId } f...
JavaScript
0.000001
@@ -1373,32 +1373,101 @@ r;%0A %7D%0A%0A return + UIDatabase.objects('MedicineAdministrator').sorted('lastName')%5B0%5D ?? null;%0A%7D;%0A%0Aconst
5695947e3e34dd15c37484bac8858809b81d03ab
use xjs.Document#importLinksAsync()
gulpfile.js
gulpfile.js
const fs = require('fs') const path = require('path') const util = require('util') const gulp = require('gulp') const autoprefixer = require('gulp-autoprefixer') const clean_css = require('gulp-clean-css') const inject = require('gulp-inject-string') const less = require('gulp-less') const ren...
JavaScript
0
@@ -1481,1143 +1481,51 @@ ait -(async function importLinks(relativepath) %7B%0A if (!('import' in jsdom.JSDOM.fragment('%3Clink rel=%22import%22 href=%22https://example.com/%22/%3E').querySelector('link'))) %7B%0A console.warn('%60HTMLLinkElement#import%60 is not yet supported. Replacing %60%3Clink%3E%60s wit...
1fdee77ecc7ae1fe3e5be0fd7350d56ab3704755
add initial critical POC task
gulpfile.js
gulpfile.js
var gulp = require('gulp'), less = require('gulp-less'), sass = require('gulp-sass'), browserSync = require('browser-sync').create(), header = require('gulp-header'), cleanCSS = require('gulp-clean-css'), rename = require("gulp-rename"), replace = require('gulp-replace'), uglify = requir...
JavaScript
0.998628
@@ -442,16 +442,93 @@ e.json') +,%0A gutil = require('gulp-util'),%0A critical = require('critical').stream ;%0A%0A// Se @@ -2251,91 +2251,8 @@ s',%0A -%09%09'https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js',%0A %09%09'j @@ -3135,24 +3135,312 @@ %7D));%0A%7D);%0A%0A +//critica...
5e34d5db04203ef3f7782de5abeb5212d35659bb
Remove extra calledOnce assertions from (ir)relevant tests
test/test_whoshiring.js
test/test_whoshiring.js
'use strict' /* eslint-env node, mocha */ const expect = require('chai').expect const sinon = require('sinon') const WhosHiring = require('../lib/whoshiring') const HNSearch = require('hacker-news-api') describe('WhosHiring', function () { // ------------------------------------------------------------- // Fixtur...
JavaScript
0.000001
@@ -2282,54 +2282,8 @@ %60))%0A - sinon.assert.calledOnce(stubSearch)%0A @@ -2860,54 +2860,8 @@ le)%0A - sinon.assert.calledOnce(stubSearch)%0A
f892796fd34c2987a9f55793e0cb818ececf24d1
Remove unused envify require
gulpfile.js
gulpfile.js
/** * Copyright 2013-2015, 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 strict'; va...
JavaScript
0.000002
@@ -558,47 +558,8 @@ ');%0A -var envify = require('envify/custom');%0A var
440a8e5e612a7d47adb106580d137305c4f6f0a1
Change check to verify in function signature.
test/unit/buttonSpec.js
test/unit/buttonSpec.js
( function() { 'use strict'; var checkElementDimensions = function( elemConstructor ) { var styles; var elem; beforeEach( function () { jasmine.addMatchers(d2l.jasmine.matchers); elem = elemConstructor(); document.body.appendChild(elem); }); it( 'has correct outer height', function(...
JavaScript
0
@@ -32,21 +32,22 @@ %0A%0D%0A%09var -check +verify ElementD @@ -2934,37 +2934,38 @@ unction() %7B%0D%0A%09%09%09 -check +verify ElementDimension @@ -2958,33 +2958,32 @@ ementDimensions( - %0D%0A%09%09%09%09function() @@ -3129,37 +3129,38 @@ nction() %7B%0D%0A%09%09%09%09 -check +verify ElementDimension @@ -31...
4f6a36871d43a91cdafdbc56510da0b9991f2894
Fix tabwidth for gulpfile
gulpfile.js
gulpfile.js
require('events').EventEmitter.defaultMaxListeners = 30; var cssnext = require('postcss-cssnext'); var elixir = require('laravel-elixir'); var gutils = require('gulp-util'); elixir.config.js.browserify.transformers.push({ name: 'vueify', options: { postcss: [cssnext()] } }); if (gutils.env._.ind...
JavaScript
0.000002
@@ -217,18 +217,16 @@ .push(%7B%0A - name: @@ -236,18 +236,16 @@ eify',%0A%0A - option @@ -253,20 +253,16 @@ : %7B%0A - - postcss: @@ -276,18 +276,16 @@ xt()%5D%0A - - %7D%0A%7D);%0A%0Ai @@ -325,18 +325,16 @@ %3E -1) %7B%0A - elixir @@ -374,20 +374,16 @@ h(%7B%0A - - name: %...
72c81f56da6a272fccc8d13a38279230fdda25cb
Improve test coverage
test/unit/index.test.js
test/unit/index.test.js
import { assert } from 'chai'; import CipherService from '../../src/index'; import JwtCipher from '../../src/JwtCipher'; describe('CipherService', () => { it('Should properly export', () => { assert.isFunction(CipherService); }); it('Should properly create JWT cipher', () => { let cipher = CipherService...
JavaScript
0.000002
@@ -632,15 +632,8 @@ vice -.create ('NO
f21d75b3cefdfcb3ae67bcafb44c41abcdb51b05
Fix karma conf
test/unit/karma.conf.js
test/unit/karma.conf.js
/*jslint white: true*/ /*global module */ // process.env.CHROME_BIN = require('puppeteer').executablePath(); module.exports = function (config) { 'use strict'; config.set({ basePath: '../../', frameworks: ['jasmine', 'requirejs', 'es6-shim'], client: { jasmine: { ...
JavaScript
0.000033
@@ -1316,18 +1316,16 @@ -// %7Bpattern @@ -1374,112 +1374,8 @@ e%7D,%0A - %7Bpattern: 'test/unit/spec/narrative_core/kbaseNarrativeDataList-spec.js', included: false%7D,%0A
aede9f543c3ba158d97176485c2d509365f4b0fb
remove off option of toggle
instant-search/instantsearch.js/search.js
instant-search/instantsearch.js/search.js
/* global instantsearch */ app({ appId: 'latency', apiKey: '6be0576ff61c053d5f9a3225e2a90f76', indexName: 'instant_search' }); function app(opts) { // --------------------- // // Init // // --------------------- const search = instantsearch({ appId: opts.appId, apiKey: opts.apiKey, inde...
JavaScript
0.000002
@@ -4298,28 +4298,8 @@ ue,%0A - off: false,%0A
8b238df39fd553770651d711e4f5e2928903a182
Update character
output.js
output.js
var fs = require('fs'); var child
JavaScript
0
@@ -26,8 +26,9 @@ ar child +_
e779b11d2cf034f89968dd976252e2493f8839fd
Handle config file properly in build
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var gutil = require('gulp-util'); var xeditor = require("gulp-xml-editor"); var jeditor = require("gulp-json-editor"); var fmt = require('util').format; var path = require('path'); require('shelljs/global'); gulp.task('default', ['install']); // TODO: move this to a cordova hook gulp.task...
JavaScript
0.000001
@@ -3828,16 +3828,32 @@ -debug', + %5B'do-release'%5D, functio @@ -3918,32 +3918,50 @@ sk('do-release', + %5B'mark-release'%5D, function () %7B%0A
78ff26f63dadf6cf3a88febea8fca5d451d89490
fix bad test
spec/javascripts/associationsSpec.js
spec/javascripts/associationsSpec.js
describe('associations', function() { var Address = SC.Resource.define({ schema: { street: String, zip: Number, city: String }, parse: function(json) { json.city = json.city_name; delete json.city_name; return json; } }); var Addresses = SC.Resource.defin...
JavaScript
0.003293
@@ -200,16 +200,29 @@ n.city = + json.city %7C%7C json.ci @@ -5939,16 +5939,17 @@ tAt(0);%0A +%0A
94e546a69d7ed2d324a33d12d208ab2bf7503437
test server
test/util/api-server.js
test/util/api-server.js
'use strict'; const portfinder = require('portfinder'); const express = require('express'); const bodyParser = require('body-parser'); const _ = require('lodash'); const Promise = require('bluebird'); const fs = Promise.promisifyAll(require('fs')); const formidable = require('formidable'); const form = new formidable....
JavaScript
0.000001
@@ -885,16 +885,33 @@ on(%7Bfoo: + req.query.foo %7C%7C 'bar'%7D) @@ -944,16 +944,298 @@ s = %5B%5D;%0A + this.app.post('/myapi/v1/contact-forms', bodyParser.urlencoded(), (req, res) =%3E %7B%0A const data = Object.assign(_.pick(req.body, %5B'firstName', 'lastName'%5D), %7Bid: this.contacts.length + 1%7D);%...
cd8612dc251f04db1bfc1b59d58d9ecea6bff4d9
fix partial style not updated on save
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var stylus = require('gulp-stylus'); var plumber = require('gulp-plumber'); var jade = require('gulp-jade'); var uglify = require('gulp-uglify'); var imagemin = require('gulp-imagemin'); var browserSync = require('browser-sync').create(); //HTML gulp.task('templates', function() { return ...
JavaScript
0
@@ -2776,18 +2776,16 @@ styl', ' -./ src/styl
ee3d487b17ddd54ab8a52543040e43b085a6ef46
Use -1 as absence of data
src/modules/choropleth.js
src/modules/choropleth.js
import 'topojson' import Datamap from 'datamaps/dist/datamaps.usa' import * as util from './utils/choropleth' import colormap from 'colormap' import * as marker from './markers/choropleth' // Map interaction functions // Draw map on given element // Takes d3 instance export default class Choropleth { constructor(d3...
JavaScript
0.000008
@@ -4527,16 +4527,23 @@ f (value + !== -1 ) color
fef33c9de77a49b3288ad3ed946c403755317c5d
Use plan instead of manual count
test/write-then-read.js
test/write-then-read.js
var fs = require('../'); var rimraf = require('rimraf'); var mkdirp = require('mkdirp'); var test = require('tap').test; var p = require('path').resolve(__dirname, 'files'); process.chdir(__dirname) // Make sure to reserve the stderr fd process.stderr.write(''); var num = 4097; var paths = new Array(num); test('mak...
JavaScript
0.000001
@@ -565,21 +565,19 @@ m%0A -var done = 0; +t.plan(num) %0A f @@ -632,16 +632,25 @@ aths%5Bi%5D, + 'ascii', functio @@ -709,92 +709,32 @@ -++done;%0A if (done === num) %7B%0A t.pass('success');%0A t.end()%0A %7D +t.equal(data, 'content') %0A
10e37cde7f983ae9496bf642cb8d6cd4b054d39a
Fix missing command name while doing !help if command was not found
modules/general/CommandHelp.js
modules/general/CommandHelp.js
'use strict'; const config = require('config'), Command = require('../Command'), CommandParam = require('../CommandParam'), CommandError = require('../../errors/CommandError'), CacheMiddleware = require('../../middleware/CacheMiddleware'), ReplyMethodMiddleware = require('../../middleware/Repl...
JavaScript
0.000374
@@ -1706,16 +1706,23 @@ %7Bcommand +Trigger %7D%5C%60 is n
78d46c89f5117f8355906f6a007d05016234fd2c
Remove vestigal `test/*.coffee` gulpfile pattern
gulpfile.js
gulpfile.js
/* jshint node: true */ var gulp = require('gulp'); var yargs = require('yargs'); var mocha = require('gulp-mocha'); var jshint = require('gulp-jshint'); function buildArgs(args) { var argName, skipArgs = { _: true, '$0': true }; for (argName in yargs.argv) { if (yargs.argv.hasOwnProperty(argName) && !skipAr...
JavaScript
0.000001
@@ -466,27 +466,8 @@ .js' -, './test/*.coffee' %5D, %7B
11c5478e3fd14a952d63717b2147e6f8785606e6
Make default gulp task the js task
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const jshint = require('gulp-jshint'); const browserify = require('browserify'); const watchify = require('watchify'); const source = require('vinyl-source-stream'); const gutil = require('gulp-util'); const assign = require('lodash.assign'); const mocha = require('gulp-mocha'); const ista...
JavaScript
0.000368
@@ -549,18 +549,23 @@ p.task(' -js +default ', bundl
f2dce824ec64cbae671ea756d410db08642b0e46
Add missing // in the local URL in beforeEach
spec/e2e.js
spec/e2e.js
var webdriver = require('selenium-webdriver'), By = require('selenium-webdriver').By, until = require('selenium-webdriver').until; var test = require('selenium-webdriver/testing'); var assert = require('selenium-webdriver/testing/assert'); var driver = new webdriver.Builder() .forBrowser('firefox') .b...
JavaScript
0.000001
@@ -2559,16 +2559,18 @@ t('http: +// 127.0.0.
d5d2aa5ed54cf1216ca94d928bc76432f6d8352b
Use del instead of gulp-rimraf
gulpfile.js
gulpfile.js
var babel = require('gulp-babel'); var clean = require('gulp-rimraf'); var gulp = require('gulp'); var mocha = require('gulp-mocha'); var plumber = require('gulp-plumber'); gulp.task('clean', function() { return gulp.src([ 'dist/*', 'lib/*', 'spec/**/*.js' ]).pipe(clean()); }); gulp.task('bui...
JavaScript
0.000001
@@ -34,21 +34,21 @@ ');%0Avar -clean +del = req @@ -57,19 +57,11 @@ re(' -gulp-rimraf +del ');%0A @@ -188,32 +188,34 @@ lean', function( +cb ) %7B%0A return gul @@ -211,24 +211,19 @@ return -gulp.src +del (%5B%0A ' @@ -270,24 +270,13 @@ %0A %5D -).pipe(clean()); +, cb) %0A%7D);
3ca8b1ad00377b5639f526bbdff8b2b7e24b6e02
add jsx transform to gulpfile
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var clean = require('gulp-clean'); gulp.task('clean', function() { return gulp.src(['build/*'], {read: false}).pipe(clean()); }); var react = require('gulp-react'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var jshint = require('gulp-jshint'); // Parse an...
JavaScript
0.000001
@@ -914,24 +914,166 @@ t/'));%0A%7D);%0A%0A +gulp.task('jsxExamples', function() %7B%0A return gulp.src('examples/jsx/*.jsx')%0A .pipe(react())%0A .pipe(gulp.dest('examples/build/'))%0A%7D);%0A%0A var browseri
b29419aa9acc4f666db93e952aacee400e618e4c
Update to use new gulp api
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var audiosprite = require('./vendor/audiosprite'); var glob = require('glob'); var shell = require('gulp-shell'); var fs = require('fs'); gulp.task('audio', function() { var files = glob.sync('./src/assets/sounds/*.mp3'); var outputPath = './dist/audio'; var opts = { output: outpu...
JavaScript
0
@@ -179,16 +179,30 @@ audio', +gulp.parallel( function @@ -624,24 +624,25 @@ ));%0A %7D);%0A%7D) +) ;%0A%0Agulp.task @@ -652,16 +652,30 @@ mages', +gulp.parallel( function @@ -936,32 +936,33 @@ eturn gulp.src(' +* ', %7Bread:false%7D) @@ -1233,24 +1233,25 @@ eload());%0A%7D) +) ;%0A%0Agulp.task @@ -1261,16...
3f0599c0a30be160ccf64e66d06a660cc42a162e
Update gulpfile.js
gulpfile.js
gulpfile.js
/* * Copyright © 2016 I.B.M. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
JavaScript
0
@@ -1845,17 +1845,18 @@ caching + %0A - @@ -1898,32 +1898,115 @@ s'))%0A + // Commenting out lines that don't work with latest version of Node%0A // .pipe($.if('*.j @@ -2110,32 +2110,35 @@ ))))%0A + // .pipe($.if('*.c
a217c9980e03196cee69a96b8add9583c4929c6d
Implement add control behavior for variables
app/scripts/variable.js
app/scripts/variable.js
'use strict'; var m = require('mithril'); var _ = require('underscore'); function Variable(args) { this.name = args.name; } Variable.validNamePattern = /^[A-Za-z]$/; Variable.Component = {}; Variable.Component.controller = function () { return { getVariableIndex: function (variableElem) { var currentE...
JavaScript
0.000002
@@ -863,122 +863,1558 @@ -focusVariableInput: function (event) %7B%0A if (event.target.nodeName === 'INPUT') %7B%0A event.target.select( +// Get the next available variable name for a new variable (to insert next%0A // to the given variable)%0A getNextVariableName: function (variables, variable)...
49884eda90642e766f0da1731abf5d9b8252573b
Update PACT_BROKER_URL
tests/pact/setup/config.js
tests/pact/setup/config.js
'use strict' const constants = { CONSUMER: 'frontend_client_portal-analytics', PACT_BROKER_URL: process.env.NODE_ENV === 'production' || process.env.TEST_ENV === 'ci' ? 'http://pact-broker/' : 'http://localhost:7228/', } const config = (service) => { if (!service) { console.warn('A service name must...
JavaScript
0
@@ -176,16 +176,17 @@ ? 'http +s ://pact- @@ -191,16 +191,32 @@ t-broker +.reevoocloud.com /'%0A :
cf28497e5be47f21f6d17c4da125d5fce764bf1f
Update the pointsTotal when resetting also.
app/scripts/controllers/task.js
app/scripts/controllers/task.js
'use strict'; angular.module('kanbanBoardApp') .controller('TaskCtrl', ['$scope', 'Task', function ($scope, Task) { var taskPointsLoaded = false; $scope.taskPointsLoaded = function () { return taskPointsLoaded; }; $scope.loadTaskPoints = function () { Task.tags({taskId: $scope.task.id},...
JavaScript
0
@@ -1586,24 +1586,82 @@ points = 0;%0A + $scope.pointsTotal%5B$scope.task.id%5D = $scope.points;%0A %7D;%0A%0A
834e4d6c203058bd5f87f6ca2d82b0637f9a0af3
fix parser to complete the tests...^^
parser.js
parser.js
"use strict"; var request = require("request"); var cheerio = require("cheerio"); var moment = require("moment"); var mongoose = require("mongoose"); var async = require("async"); var crypto = require("crypto"); // just a static test url, later the client will send a week and a year var url = "https://lsf.hf...
JavaScript
0
@@ -6502,16 +6502,30 @@ orts = %7B + parse: parse, startPa
d03dcfb148fb0139e09516245f125fc8053a9c26
Add GitHub Project button (#1245)
src/scripts/content/github.js
src/scripts/content/github.js
'use strict'; togglbutton.render('#partial-discussion-sidebar', { observe: true }, function( elem ) { var div, link, description, numElem = $('.gh-header-number'), titleElem = $('.js-issue-title'), projectElem = $('h1.public strong a, h1.private strong a'), existingTag = $('.discussion-side...
JavaScript
0
@@ -8,16 +8,47 @@ rict';%0A%0A +// Issue and Pull Request Page%0A togglbut @@ -1199,12 +1199,839 @@ d(div);%0A%7D);%0A +%0A%0A// Project Page%0Atogglbutton.render('.js-project-card-details .js-comment:not(.toggl)', %7B observe: true %7D, function(%0A elem%0A) %7B%0A var link,%0A description,%0A target,%0A ...
c1a59732da5ab542a857646851c165368987a71d
Fix animal link
app/scripts/views/PlacesShow.js
app/scripts/views/PlacesShow.js
import PropTypes from 'prop-types' import React, { Component } from 'react' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import { cachedResource } from '../services/resources' import { fetchResource } from '../actions/resources' import { LocationMap } from '../components' import { numb...
JavaScript
0.000001
@@ -2413,16 +2413,17 @@ nk to=%7B%60 +/ animals/
cc0d25ef35744d713e1836d5b4acb11c93a2a25c
remove empty space
gulpfile.js
gulpfile.js
/*global require*/ var gulp = require('gulp'); var args = require('yargs').argv; var config = require('./gulp.config')(); var del = require('del'); var $ = require('gulp-load-plugins')({lazy: true}); //var jshint = require('gulp-jshint'); //var jscs = require('gulp-jscs'); //var util = require('gulp-util'); //var gulp...
JavaScript
0.999872
@@ -807,29 +807,24 @@ and JSCS');%0A - %0A return g @@ -1171,13 +1171,8 @@ ');%0A - %0A
420f4b2909cf7ccc8d718ecfcc592d5f5052a679
Add service patch method
app/services/contact.service.js
app/services/contact.service.js
angular. module('myApp.core', ['ngResource']). factory('Contact', ['$resource', function($resource) { return $resource('http://localhost/api/contacts/:id', {id: ''}, { query: { method: 'GET', isArray: true }, get: { method: 'GET' }, ins...
JavaScript
0
@@ -494,16 +494,18 @@ +// url: 'h @@ -560,34 +560,36 @@ method: 'P -UT +ATCH '%0A %7D%0A
f8db8beda94027b3862348ec69a8a6ec091184cc
change order of scripts
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'), autoprefixer = require('gulp-autoprefixer'), babel = require("gulp-babel"), browserify = require('gulp-browserify'), cssnano = require('gulp-cssnano'), imagemin = require('gulp-imagemin'), jade = re...
JavaScript
0.000002
@@ -1959,16 +1959,26 @@ atch',%5B' +default',' browser- @@ -2227,24 +2227,43 @@ default', %5B' +copy','templates',' sass','scrip @@ -2274,24 +2274,12 @@ 'images' -,'templates' %5D);%0A
b32ff88c8bcea357447297f2bd9d76516b43cdd0
add more ff remove android
gruntTasks/browsers.js
gruntTasks/browsers.js
var Luc = require('../lib/luc'), ie = 'internet explorer', ff = 'firefox', latestFF = 25, s = 'safari', ch = 'chrome', ip= 'IPHONE', an = 'ANDROID', op = 'opera', browsers; module.exports = []; browsers = { XP: [{ name: ie, version: 6 }, { name: ...
JavaScript
0
@@ -382,16 +382,110 @@ sion: 8%0A + %7D, %7B%0A name: ff,%0A version: 25%0A %7D, %7B%0A name: ff,%0A version: 24%0A %7D,%7B%0A @@ -1097,24 +1097,26 @@ 'linux': %5B +/* %7B%0A na @@ -1140,32 +1140,34 @@ ersion: 4%0A %7D, +*/ %7B%0A name:
0cfe9963e93799214891fc35ea95f8296b8af1d0
Update variables names
gulpfile.js
gulpfile.js
// ************************************* // Gulpfile // ************************************* 'use strict'; var gulp = require('gulp'); var sass = require('gulp-sass'); var autoprefixer = require('gulp-autoprefixer'); var browserSync = require('browser-sync'); // -----------------------------------...
JavaScript
0.000001
@@ -374,22 +374,20 @@ --%0A%0Avar -option +path s = %7B%0A%0A%09 @@ -400,18 +400,11 @@ %7B%0A%09%09 -files +src : @@ -423,26 +423,23 @@ %0A%0A%09s -as +tyle s: %7B%0A%09%09 -files%09 +src%09 : ' @@ -465,23 +465,16 @@ ,%0A%09%09dest -ination : 'dist @@ -682,34 +682,32 @@ p.watch( -options.sass.fi...
95befb9d0bfc4906bf3044416ae7b13066b16231
Add images task
gulpfile.js
gulpfile.js
var gulp = require('gulp'), concat = require('gulp-concat'), tsc = require('gulp-typescript'), mocha = require('gulp-mocha'), jsMinify = require('gulp-uglify'), scssLint = require('gulp-scss-lint'), sass = require('gulp-sass'), cssPrefixer = require('gulp-autoprefixer'), cssMinify = re...
JavaScript
0.999891
@@ -170,16 +170,57 @@ glify'), +%0A imagemin = require('gulp-imagemin'), %0A%0A sc @@ -1344,32 +1344,174 @@ 'dist/'));%0A%7D);%0A%0A +gulp.task('images', () =%3E %7B%0A return gulp.src('src/images/**/*.*')%0A .pipe(imagemin())%0A .pipe(gulp.dest('dist/images/'));%0A%7D);%0A%0A gulp.task('lint...
f594600916ad985231b839d9917d7bace1f5b01e
make complete MVI example
app/templates/module.js
app/templates/module.js
/** @jsx hJSX */ import {Rx} from '@cycle/core'; import {hJSX} from '@cycle/dom'; // eslint-disable-line const DIALOGUE_NAME = `<%= moduleName %>`; let n = 0; function randomNamespace() { return `${n++}`; } function <%= moduleNameCamelized %>({DOM, props$}, optNamespace = randomNamespace()) { const namespace =...
JavaScript
0.000006
@@ -15,40 +15,8 @@ */%0A%0A -import %7BRx%7D from '@cycle/core';%0A impo @@ -95,34 +95,35 @@ = %60 -%3C%25= moduleName %25%3E%60;%0A%0Alet n +yeoman-test%60;%0A%0Alet idSuffix = 0 @@ -134,31 +134,27 @@ unction -randomNamespace +makeCycleId () %7B%0A r @@ -166,181 +166,500 @@ %60$%7B -n++%7D%60;%0A%7D%0A%0Af...
8bf90d44454823305a7c3d8f17a9761d87b357a1
fix FF losing context menu after restart
js/events.js
js/events.js
var activeDoc; brapi.runtime.onInstalled.addListener(function() { if (brapi.contextMenus) brapi.contextMenus.create({ id: "read-selection", title: brapi.i18n.getMessage("context_read_selection"), contexts: ["selection"] }); }) if (brapi.contextMenus) brapi.contextMenus.onClicked.addListener(functio...
JavaScript
0
@@ -48,24 +48,156 @@ istener( -function +installContextMenus);%0Aif (getBrowser() == %22firefox%22) brapi.runtime.onStartup.addListener(installContextMenus);%0A%0Afunction installContextMenus () %7B%0A i @@ -366,25 +366,24 @@ on%22%5D%0A %7D);%0A%7D -) %0A%0Aif (brapi.
9ea6a6af9392d5e6647d301439547406613c09af
test against url regex, not email. fixes #54
app/utils/validators.js
app/utils/validators.js
export default function validateControls (controls) { controls.setEach('widgetIsValid', true); var regex = { email: /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, url: /(http|ftp|https):\/\/[\w-]+...
JavaScript
0.322192
@@ -1876,36 +1876,34 @@ if (!regex. -emai +ur l.test(value)) %7B
db91d738d6d1a03c84eca6b7d5eeaf92380a0d35
Add default task that just runs watch task.
gulpfile.js
gulpfile.js
// http://blog.ponyfoo.com/2014/01/27/my-first-gulp-adventure var gulp = require('gulp'); var gutil = require('gulp-util'); var bump = require('gulp-bump'); var git = require('gulp-git'); var jshint = require('gulp-jshint'); var clean = require('gulp-clean'); var rename = require('gulp-rename'); var uglify = require('g...
JavaScript
0
@@ -2086,12 +2086,46 @@ ', 'bump'%5D); +%0A%0Agulp.task('default', %5B'watch'%5D);
cde378378e8bb10a6c5067dab62bfb0be467b90b
Refactor hasData to use its corresponding getter
dom/attr.js
dom/attr.js
import {splitStringValue} from "./utils"; const SPECIAL_ATTRIBUTE_SETTERS = /^(html|text|css)$/; const customDataStorage = new window.WeakMap(); /** * Sets all attributes on the given element * * @param {Element} element * @param {mojave.types.OptionalKeyMap} attributes */ export function setAttrs (element, att...
JavaScript
0.000001
@@ -3446,16 +3446,21 @@ e given +data attribut @@ -3489,32 +3489,36 @@ t%0A *%0A * @param %7B +HTML Element%7D element @@ -3622,96 +3622,31 @@ nst -normalizedKey = normalizeDataKey(key);%0A const storage = customDataStorage.get +value = getData (element );%0A%0A @@ -3637,32 +3637,37 @@ Data(element +, key...
e40a2205d406d22e95ecb7caf68e7e7d93872ea9
Remove errornous svn:executable property from source code file.
javascript/i18n/phonenumbers/regioncodefortesting.js
javascript/i18n/phonenumbers/regioncodefortesting.js
/** * @license * Copyright (C) 2011 The Libphonenumber Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
JavaScript
0
b263be2c7b26280d95caa6d9c06d00a9546df418
fix test
tests/services/dataSpec.js
tests/services/dataSpec.js
var should = require('should'); var sinon = require('sinon'); var assert = require('assert'); var setup = require('./../mocks/setup'); setup.makeSuite('add data service', function() { var dataService = require('./../../src/services/data'); var projectService = require('./../../src/services/project'); var elasti...
JavaScript
0.000002
@@ -945,32 +945,34 @@ r, null);%0A +// assert.equal(res @@ -990,16 +990,55 @@ th, 4);%0A + assert.equal(res.ids.length, 4);%0A as
987db1937aed730ca9011d294bcdc1599b8fb893
Update app.js
demo/app.js
demo/app.js
var https = require('https'); var express = require('express'); var app = express(); var expressWs = require('express-ws')(app); var pty = require('node-pty'); var cors = require('cors'); app.use(cors()); app.options('*', cors()); var cwds = {}; var cmd = require('node-cmd'); /* ######################################...
JavaScript
0.000002
@@ -2235,16 +2235,77 @@ nv.PWD;%0A + console.log('i am here');%0A console.log(pcwd);%0A @@ -2330,16 +2330,16 @@ .pid%5D)%7B%0A - @@ -2673,24 +2673,42 @@ ion(data) %7B%0A + try %7B%0A ws @@ -2720,16 +2720,370 @@ (data);%0A + var command = %22lsof -a ...
493b9221c8c0f94c19db1b972cf7d236c5c0401a
Output of binary parser is an object, not a string.
src/AuroraCmdTransformBinary.js
src/AuroraCmdTransformBinary.js
import Stream from "stream"; import _ from 'lodash'; import {Parser} from "binary-parser"; import AuroraConstants from './AuroraConstants'; export default class AuroraCmdTransformBinary extends Stream.Transform { static defaultOptions = { dataType: AuroraConstants.DataTypes.UINT8, parseType: undef...
JavaScript
0.999999
@@ -1713,28 +1713,8 @@ -this.hasData = true; %0A%0A @@ -1848,24 +1848,50 @@ Leftover);%0A%0A + let parsedChunk;%0A%0A if ( @@ -1927,45 +1927,21 @@ -this.push((this.hasData ? ',' : '') + +parsedChunk = thi @@ -1993,18 +1993,18 @@ ftover)) -) ; +%0A %0A @@ -2062,24 +2062,25 @@ ...
2581ecd9086795c5f5348e3fc0cb1f6981028eab
corrected some date code
app/view1/view1_test.js
app/view1/view1_test.js
'use strict'; describe('myApp.view1 module', function() { beforeEach(module('myApp.view1')); describe('view1 controller', function(){ it('should ....', inject(function($controller) { //spec body var $scope = {}; var view1Ctrl = $controller('View1Ctrl', { $scope: $scope }); expect(v...
JavaScript
0.998203
@@ -527,18 +527,19 @@ (201 -4, 8, 4, 6 +5, 1, 16, 0 , 0, @@ -956,10 +956,10 @@ ual( -12 +34 );%0A
3625ea1123b08ac6beb1dee9921a3b2eeab11729
Fix autosizer on infinite adding
js/global.js
js/global.js
$(document).ready(function() { // Autoresize textareas autosize($('textarea')) // Confirm deleting $('button.delete').on('click', function() { var result = confirm('Do you really want to delete this item?') if (!result) return false }) // Prepare studying if ($('#study').le...
JavaScript
0.000002
@@ -3016,25 +3016,55 @@ -$template.before( +var $clone = $template.clone()%0A $tem @@ -3069,23 +3069,29 @@ emplate. +before($ clone -() .css('di @@ -3108,16 +3108,66 @@ lock'))%0A + autosize($clone.find('textarea'))%0A
f8d7ca0799d63e0a51036f18049ab736bf36bf5e
check if blob actually exists in store, and set correct status code
blobs-http.js
blobs-http.js
var pull = require('pull-stream') var toPull = require('stream-to-pull-stream') var qs = require('querystring') var URL = require('url') //host blobs module.exports = function (blobs, url) { return function (req, res, next) { next = next || function (err) { res.writeHead(404, {'Content-Type': 'app...
JavaScript
0.000001
@@ -752,87 +752,9 @@ ry)%0A - //Response.AddHeader(%22content-disposition%22, %22inline; filename=File.doc%22) %0A + @@ -848,16 +848,123 @@ ename)%0A%0A + blobs.has(hash, function (err, has) %7B%0A if(err) return next(err)%0A%0A res.writeHead(200)%0A pu @@ -959,32 +959,34 @@ )...
63efaae53b7ec2cd6aa53627a45d534dfec64a4d
clear fields and reset dialog when closing
blockchain.js
blockchain.js
var usersBlocked = 0, usersFound = 0, usersAlreadyBlocked = 0, usersSkipped = 0, totalCount = 0, errors = 0; var batchBlockCount = 5; var scrollerInterval = false, finderInterval = false, blockerInterval = false; var userQueue = new Queue(); chrome.runtime.onMessage.addListener( function(re...
JavaScript
0
@@ -5504,32 +5504,579 @@ inderInterval);%0A + usersBlocked = 0;%0A usersFound = 0;%0A usersAlreadyBlocked = 0;%0A usersSkipped = 0;%0A totalCount = 0;%0A errors = 0;%0A $(%22#blockchain-dialog .usersFound%22).text(usersFound);%0A $(%22#blockchain-dialog .usersSki...
2144ce9ccf492f2f6a3961088636afcef58a0972
increase likelyhood that a GOTerm is cached
app/assets/javascripts/components/goterms.js
app/assets/javascripts/components/goterms.js
import {postJSON} from "../utils.js"; /** * @typedef {Object} FACounts * @property {number} value count * @property {string} name The name of the GO/EC number * @property {string} code The code of the GO/EC number */ const BATCH_SIZE = 1000; const NAMESPACES = ["biological process", "cellular component", "mole...
JavaScript
0.000002
@@ -1106,20 +1106,21 @@ Object. -valu +entri es(data) @@ -1128,17 +1128,25 @@ forEach( -v +(%5Bns, v%5D) =%3E v.fo @@ -1160,16 +1160,30 @@ oTerm =%3E + %7B%0A this.go @@ -1200,23 +1200,66 @@ m.code, -goTerm) +Object.assign(%7Bnamespace: ns%7D, goTerm));%0A %7D ));%0A @@ -4315,32 +4315,...
d4edd3e77adf380d67f7d89d267dff75872ca823
Add missing dispatch calls
app/actions/QuoteActions.js
app/actions/QuoteActions.js
import { Quote } from './ActionTypes'; import { callAPI } from '../utils/http'; import { pushState } from 'redux-react-router'; import { startSubmit, stopSubmit } from 'redux-form'; export function fetchAllApproved() { return callAPI({ types: [ Quote.FETCH_ALL_APPROVED_BEGIN, Quote.FETCH_ALL_APPROVED...
JavaScript
0.000004
@@ -2218,16 +2218,25 @@ +dispatch( stopSubm @@ -2249,16 +2249,17 @@ dQuote') +) ;%0A @@ -2260,16 +2260,25 @@ +dispatch( pushStat @@ -2295,16 +2295,17 @@ quotes') +) ;%0A
32b35520a54d11d88f02bdd61efc979c338ad65e
Add some more tests
kolibri/plugins/management/assets/test/management.js
kolibri/plugins/management/assets/test/management.js
/* eslint-env mocha */ // The following two rules are disabled so that we can use anonymous functions with mocha // This allows the test instance to be properly referenced with `this` /* eslint prefer-arrow-callback: "off", func-names: "off" */ const Vue = require('vue'); const Vuex = require('vuex'); const assert = re...
JavaScript
0
@@ -2925,32 +2925,859 @@ %7B%0A assert +.deepStrictEqual(this.vm.$refs.learnerRoster.learners, fixture1.learners);%0A done();%0A %7D);%0A %7D);%0A%0A it('The roster shows two students when you select %22Classroom A%22 and %22Group 1%22.', function (done) %7B // eslint-disable-line max-len%0A ...
9be11fb0a648f797b514ae345d16169a15b7e93b
Allow the fixture adapter to be queried.
app/adapters/application.js
app/adapters/application.js
import DS from 'ember-data'; export default DS.FixtureAdapter.extend({ });
JavaScript
0
@@ -65,12 +65,355 @@ xtend(%7B%0A + // allow fixtures to be queried%0A queryFixtures: function(records, query /*, type */) %7B%0A return records.filter(function(record) %7B%0A for(var key in query) %7B%0A if (!query.hasOwnProperty(key)) %7B continue; %7D%0A var value = query%5Bkey%5D;%0A ...
5f6994d332a29ac374317172feb902aa23f77490
Add watch tasks to automatically recompile js
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var babel = require("gulp-babel"); gulp.task('build', () => { return gulp.src('src/**/*.js') .pipe(babel()) .pipe(gulp.dest('dist')); }) gulp.task('default', ['build']);
JavaScript
0.000001
@@ -180,16 +180,96 @@ ));%0A%7D)%0A%0A +gulp.task('watch', () =%3E %7B%0A return gulp.watch('src/**/*.js', %5B'build'%5D);%0A%7D)%0A%0A gulp.tas @@ -281,20 +281,29 @@ fault', %5B'build' +, 'watch' %5D);%0A
7177709f0fca2462db8695712391483e907bd37e
Fix more import references
server/api/routes/account.js
server/api/routes/account.js
const jwt = require('koa-jwt') const bcrypt = require('../utilities/bcrypt-promise') const KoaRouter = require('koa-router') const router = KoaRouter() // list available rooms router.get('/api/account/rooms', async (ctx, next) => { let rooms = await ctx.db.all('SELECT * FROM rooms WHERE status = ?', 'open') return...
JavaScript
0
@@ -2216,32 +2216,39 @@ shedPwd = await +bcrypt. hash(newPassword @@ -3106,16 +3106,23 @@ (!await +bcrypt. compare( @@ -3446,16 +3446,23 @@ = await +bcrypt. hash(new
bf3a5486245d10e3b256cd8f34b58220a5bcb5ff
Save stocks when prices change
src/public/StockFactory.js
src/public/StockFactory.js
(function(exports) { const randInt = (min, max) => { const range = max - min; return Math.round( min + Math.random() * range ); }; function generateStocks({minPrice, maxPrice}) { const symbols = [ 'Amazon', 'Google', 'Facebook', 'Microsoft', 'Facebook', '...
JavaScript
0
@@ -735,16 +735,47 @@ %0A %7D%0A%0A + let pricesChanged = false;%0A stoc @@ -874,17 +874,112 @@ -%7D%0A %7D); + pricesChanged = true;%0A %7D%0A %7D);%0A%0A if (pricesChanged) %7B%0A Db.save('stocks', stocks);%0A %7D %0A%0A
fce0ca83cd0948081401b611b6b18dbfb334071e
Add metrics eventcount support
src/DotNetCore.CAP.Dashboard/wwwroot/vue.config.js
src/DotNetCore.CAP.Dashboard/wwwroot/vue.config.js
module.exports = { publicPath: './', productionSourceMap: false, chainWebpack: config => { config.plugins.delete('prefetch') } }
JavaScript
0
@@ -138,15 +138,190 @@ fetch')%0A + %7D,%0A devServer: %7B%0A proxy: %7B%0A '/cap/api': %7B%0A target: 'http://localhost:5000',%0A changeOrigin: true%0A %7D%0A %7D%0A %7D%0A%7D
f678feaacdf9a6cc26998699304ce251dbcb6baf
remove unused code
src/Enum.js
src/Enum.js
'use strict'; const R = require('ramda'); const EnumFromObject = Object.freeze; const EnumFromArray = R.reduce((acc, value) => EnumValue(value)(acc), {}); const EnumFromPairs = R.reduce((acc, pair) => EnumPairValue(pair)(acc), {}); const EnumKeyValue = (key, value) => R.assoc( R.ifElse( R.is(String), ...
JavaScript
0.000017
@@ -1260,117 +1260,8 @@ );%0A%0A -const EnumMultiple = R.cond(%5B%0A %5BR.pipe(R.head, R.is(String)), EnumFromArray%5D,%0A %5BR.T, R.identity%5D,%0A%5D);%0A%0A /**%0A
0dde661d6f8e5d916b77cde311b023c5a4d9ee25
add field for new tab configuration of tools
src/services/ltiTool/model.js
src/services/ltiTool/model.js
// model.js - A mongoose model // https://www.edu-apps.org/code.html - LTI Parameters // See http://mongoosejs.com/docs/models.html // for more of what you can do here. const mongoose = require('mongoose'); const { enableAuditLog } = require('../../utils/database'); const { Schema } = mongoose; const ltiToolSchema =...
JavaScript
0
@@ -1298,16 +1298,64 @@ lean %7D,%0A +%09openNewTab: %7B type: Boolean, default: false %7D,%0A %7D);%0A%0Afun
7333caae91fdf50eeebba91b0dca8f8f0a253fcc
Use string utility
lib/node_modules/@stdlib/string/replace/benchmark/benchmark.js
lib/node_modules/@stdlib/string/replace/benchmark/benchmark.js
'use strict'; // MODULES // var bench = require( '@stdlib/bench' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var pkg = require( './../package.json' ).name; var replace = require( './../lib' ); // MAIN // bench( pkg+'::string', function benchmark( b ) { var out; var str; var i; str = '...
JavaScript
0.000028
@@ -129,16 +129,81 @@ mitive;%0A +var fromCodePoint = require( '@stdlib/string/from-code-point' );%0A var pkg @@ -241,16 +241,16 @@ ).name;%0A - var repl @@ -502,35 +502,29 @@ , 'be', -String.fromCharCode +fromCodePoint ( i%25126 @@ -962,27 +962,21 @@ re, -String.fromCharCode +fromCodePoint ( i%25 @@ -1074,...
1d27758ea8a848a58ee7da2e8649f132c72ce11e
Add potential defaults to user model -these aren't meant to sync up with db, but be representative of a user's relation to the current page
app/assets/javascripts/global/models/user.js
app/assets/javascripts/global/models/user.js
app = ap || {}; app.User = Backbone.Model.extend({ })
JavaScript
0
@@ -45,10 +45,129 @@ xtend(%7B%0A +%0A defaults: %7B%0A user_id: null,%0A voteData = null,%0A questionOwner = null%0A %7D,%0A%0A initialize: function()%7B%0A%0A %7D,%0A%0A %7D)
7b7045a3be34d374370437466b8da95e185f134e
add Flow MouseMoveActionLayer.js
src/components/actionLayer/MouseMoveActionLayer.js
src/components/actionLayer/MouseMoveActionLayer.js
import React from 'react'; export default class MouseMoveActionLayer extends React.Component { constructor(props) { super(props); this.state = { isAction: false, startPoint: {x: 0, y: 0}, }; this.canvas = null; this.ctx = null; this.canvasStartPosition = null; } componentDidMo...
JavaScript
0
@@ -1,8 +1,17 @@ +// @flow%0A import R @@ -30,16 +30,369 @@ eact';%0A%0A +type Point = %7Bx: number, y: number%7D;%0A%0Atype Props = %7B%0A callbackDidMount: (%7Bctx: CanvasRenderingContext2D%7D) =%3E void,%0A executeAction: (%7B%0A canvas: HTMLCanvasElement,%0A ctx: CanvasRenderingContext2D,%0A startPoint...
0cc47c7cbd023c671e7101339211f0465aa96355
Make npm dependencies filter optional to flow
packages/npm/src/index.js
packages/npm/src/index.js
'use strict' /* @flow */ import Path from 'path' import FS from 'fs' import invariant from 'assert' import promisify from 'sb-promisify' import { exec } from 'sb-exec' import semver from 'semver' import { versionFromRange, getManifestPath } from './helpers' import { readJSON } from 'motion-fs' type Installer$Options...
JavaScript
0
@@ -353,16 +353,17 @@ filter: +? Function
04a391faf3dc8c22fc81d3b9df4d9ad46d58aac2
Fix optionalness of plugins param
packages/postcss/index.js
packages/postcss/index.js
/** * PostCSS webpack block. * * @see https://github.com/postcss/postcss-loader */ module.exports = postcss /** * @param {PostCSSPlugin[]} [plugins] Will read `postcss.config.js` file if not supplied. * @param {object} [options] * @param {RegExp|Function|string} [options.exclude] ...
JavaScript
0.000001
@@ -732,16 +732,42 @@ ions) %7B%0A + plugins = plugins %7C%7C %5B%5D%0A option
5fb4b6b1f6078c04daa9e94addbf9c32501c4002
change tag task
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var lint = require('./lib'); var mocha = require('gulp-mocha'); var git = require('gulp-git'); var bump = require('gulp-bump'); // Lint task - Meta AF gulp.task('lint', lint({ src: './lib/*.js' })); // Tests gulp.task('test', ['lint'], function() { return gulp.src('./test/index.js', { re...
JavaScript
0.001134
@@ -1049,12 +1049,11 @@ c('. -/ ')%0A + @@ -1106,32 +1106,66 @@ , message))%0A +.on('end', function() %7B%0A this .pipe(git.push(' @@ -1198,37 +1198,33 @@ '))%0A -.pipe(gulp.dest('./') + .end();%0A %7D );%0A%7D);%0A%0A
72c71a4fb48556c3bc3d4ad0f63ac2accd4b4942
update $ function
public/assets/zdr/common/error_404.js
public/assets/zdr/common/error_404.js
$(document).ready(function () { $("#history-back").click(function () { history.back(); }); });
JavaScript
0.000034
@@ -1,23 +1,7 @@ %EF%BB%BF$( -document).ready( func
b535331450477c36604f8a78ad869147a8750e57
Fix navbar due to js processing
src/site/resources/js/site.js
src/site/resources/js/site.js
$(window).load(function() { $('div.source pre, pre code').each(function(i, e) { e.innerHTML = e.innerHTML.replace(/\n/g, "<br />").replace(/\t/g, "&nbsp;&nbsp;"); }); })
JavaScript
0
@@ -164,12 +164,38 @@ );%0A%09%7D);%0A +%09$(%22#toc-bar%22).affix(%7B%7D);%0A %7D)%0A%0A
0c59a1ba8d216702c756a5a76f0f8e5afc2c1cbc
Remove flexibility
gulpfile.js
gulpfile.js
'use strict'; const gulp = require('gulp'); const babel = require('gulp-babel'); const plumber = require('gulp-plumber'); const stylus = require('gulp-stylus'); const poststylus = require('poststylus'); const rucksack = require('rucksack-css'); const flexibility = require('postcss-flexibility'); const prefixer = requi...
JavaScript
0.000002
@@ -242,60 +242,9 @@ s'); -%0Aconst flexibility = require('postcss-flexibility'); + %0Acon @@ -1775,33 +1775,9 @@ k(), -%0A flexibility(), + %0A
5f347bff6785fe49444c4b8534312c12a5c4093d
remove console.logs whoops
app/assets/javascripts/src/Metamaps.Views.js
app/assets/javascripts/src/Metamaps.Views.js
(function () { Metamaps.Views = {}; var initialized = false; Metamaps.Views.init = function () { Metamaps.Views.MapperCard = Backbone.View.extend({ template: Hogan.compile( $('#mapperCardTemplate').html() ), tagName: "div", className: "mapper", rende...
JavaScript
0.000002
@@ -2764,373 +2764,66 @@ -console.log(%22OK current page is %22 + Metamaps.currentPage);%0D%0A console.log(Metamaps);%0D%0A setTimeout((function(localCurrentPage)%7B return function()%7B%0D%0A console.log(%22YEAH current page is %22 + Metamaps.currentPage);%0D%0A ...
c997e79d265d9985f6302782736fe650e87ed9fd
add focus to input felds
js/layout.js
js/layout.js
function initLayout() { $(":input").val(""); $(".js-name").text(""); $(".js-city").text(""); $(".spinner").css("display", "none"); $(".input-section-visible").hide(0).removeClass("input-section-visible").addClass("input-section-hidden"); $(".input-section-hidden").hide(0) $(".details-hidden").hide(0); $(".js-fr...
JavaScript
0.000002
@@ -629,16 +629,45 @@ );%0A%09%09%09%7D) +.find(%22:input:first%22).focus() ;%0A%09%7D%0A%09el @@ -801,16 +801,45 @@ %22);%0A%09%09%7D) +.find(%22:input:first%22).focus() ;%0A%7D%0A%0Afun @@ -2217,24 +2217,53 @@ on-visible%22) +.find(%22:input:first%22).focus() ;%0A%7D%0A%0Afunctio
843476fa3b054fc651c93caea8da82c5c9107d92
Add comments
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var ts = require('gulp-typescript'); var tslint = require('gulp-tslint'); var jade = require('gulp-jade'); var plato = require('gulp-plato'); var espower = require('gulp-espower'); var karma = require('karma').server; gulp.task('jade', function () { return gulp.src('./src/views/*.jade')...
JavaScript
0
@@ -1,12 +1,27 @@ +'use strict';%0A%0A var gulp = r @@ -255,16 +255,32 @@ erver;%0A%0A +// Compile jade%0A gulp.tas @@ -401,32 +401,63 @@ /dist/'));%0A%7D);%0A%0A +// Compile and Lint TypeScript%0A gulp.task('types @@ -1078,32 +1078,48 @@ %7D));%0A%7D);%0A%0A +// Test scripts%0A gulp.task('test' @@ -1256,2...
2250ce852d8b76e1ab5e5cf62eef7d8f78bf933c
移除返回 false
src/packages/line/main.js
src/packages/line/main.js
import { itemPoint } from '../../echarts-base' import { getFormated, getStackMap } from '../../utils' function getLineXAxis (args) { const { dimension, rows, xAxisName, axisVisible, xAxisType } = args return dimension.map((item, index) => ({ type: xAxisType, nameLocation: 'middle', nameGap: 22, bou...
JavaScript
0.999821
@@ -5582,47 +5582,8 @@ %7D)%0A - if (!xAxis %7C%7C !series) return false%0A%0A le
e298a5d350123de70fa1876738f36e1ff1b34218
remove unused check function
lib/6to5/transformation/transformers/spec-setters.js
lib/6to5/transformation/transformers/spec-setters.js
var check = function (node, file) { }; exports.MethodDefinition = exports.Property = function (node, parent, file) { if (node.kind === "set" && node.value.params.length !== 1) { throw file.errorWithNode(node.value, "Setters must have only one parameter"); } };
JavaScript
0.000001
@@ -1,44 +1,4 @@ -var check = function (node, file) %7B%0A%7D;%0A%0A expo
04433a091a0344f6d4475944c6210e4da77efbbd
Fix up config, default and watch tasks
gulpfile.js
gulpfile.js
var gulp = require('gulp'), htmlhint = require('gulp-htmlhint'), access = require('gulp-accessibility'), csslint = require('gulp-csslint'), concatcss = require('gulp-concat-css'), minifycss = require('gulp-minify-css'), sass = require('gulp-sass'), jshint = require('gulp-jshint'), jscs =...
JavaScript
0
@@ -463,16 +463,54 @@ fig = %7B%0A + cssdest: './css',%0A jsdest: './js',%0A html: @@ -540,18 +540,35 @@ %5B'./css/ +*.css', '!./css/*. m -a in.css', @@ -599,12 +599,8 @@ css/ -src/ norm @@ -644,24 +644,44 @@ ./css/*.css' +, '!./css/*.min.css' %5D,%0A sass: ' @@ -733,16 +733,62 @@ min.js'%5D +,%0A cssd...
2df2f677eb37b2326508a1cbe6ff957bd2219eec
manage results as object
tools/aceditor/presentation/javascripts/components/InputFormField.js
tools/aceditor/presentation/javascripts/components/InputFormField.js
// Text/Number/Color/slider export default { props: [ 'value', 'config', 'selectedForm' ], data() { return { fields: [] } }, mounted() { let initalValues = this.value ? this.value.split(',') : [this.config.default] this.fields = this.fieldOptions.filter((field) => initalValues.includes(fie...
JavaScript
0
@@ -400,16 +400,435 @@ lists')%0A + if (typeof this.selectedForm.prepared == 'object')%7B%0A let fields = %5B%5D;%0A for (let key in this.selectedForm.prepared) %7B%0A if (typeof this.selectedForm.prepared%5Bkey%5D.options == 'object' %0A && this.selectedForm.prepared...
f5d56452057ff49aa9f680e62fd14b728a5636f9
Disable overscrolling in menu.
src/Menu.js
src/Menu.js
import { merge } from './updates.js'; import * as symbols from './symbols.js'; import AriaMenuMixin from './AriaMenuMixin.js'; import ClickSelectionMixin from './ClickSelectionMixin.js'; import DirectionSelectionMixin from './DirectionSelectionMixin.js'; import FocusVisibleMixin from './FocusVisibleMixin.js'; import Ke...
JavaScript
0
@@ -3639,16 +3639,56 @@ ling */%0A + overscroll-behavior: contain;%0A