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
deb97101edcb6b5b97304c1d88ea6f2860e8d2ab
Fix for Firefox ignoring the autofocus attribute.
js/system.js
js/system.js
/* * Copyright (c) Codiad & Kent Safranski (codiad.com), distributed * as-is and without warranty under the MIT License. See * [root]/license.txt for more. This information must remain intact. */ ////////////////////////////////////////////////////////////////////// // loadScript instead of getScript (checks and b...
JavaScript
0
@@ -2813,16 +2813,144 @@ ).load(u +,function()%7B%0A // Fix for Firefox autofocus goofiness%0A $('input%5Bautofocus=%22autofocus%22%5D').focus();%0A %7D );%0A
c9354954b120817827d32b1aa870ddd28321d992
Update upvote.js
js/upvote.js
js/upvote.js
var Upvote = (function (window, document) { that = this; // endEvent = hasTouch ? 'touchend' : 'mouseup', Upvote = function (opts) { that = this; this.current_category = 'us'; // --------------------------------------------------------- // Muench launch // -------------------------------...
JavaScript
0.000002
@@ -2200,18 +2200,18 @@ ').html( -30 +14 );%0A @@ -2603,10 +2603,10 @@ tml( -3 1 +5 );%0A
42ffeca6756bf1f51e9c49abbf10982399fb637d
Add tech level to planet generation tests
src/utils/__tests__/sector-generator.spec.js
src/utils/__tests__/sector-generator.spec.js
import Chance from 'chance'; import { every } from 'lodash'; import sectorGenerator, { generatePlanet } from '../sector-generator'; import { worldTagKeys } from '../../constants/world-tags'; import Atmosphere from '../../constants/atmosphere'; import Temperature from '../../constants/temperature'; import Biosphere fro...
JavaScript
0.000001
@@ -185,16 +185,68 @@ -tags';%0A +import TechLevel from '../../constants/tech-level';%0A import A @@ -2619,32 +2619,226 @@ thy();%0A %7D);%0A%0A + it('should include tech level from list', () =%3E %7B%0A const %7B techLevel %7D = generatePlanet(new Chance())();%0A expect(Object.keys(TechLevel).includ...
c87d0bfb741134867b4d0af6393e978719f175fc
fix delayed sorting
src/mui/field/ReferenceManyField.js
src/mui/field/ReferenceManyField.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import LinearProgress from 'material-ui/LinearProgress'; import { crudGetManyReference as crudGetManyReferenceAction } from '../../actions/dataActions'; import { getIds, getReferences, nameRelatedTo } fr...
JavaScript
0.000001
@@ -2529,16 +2529,29 @@ etState( +%0A %7B sort: @@ -2568,18 +2568,17 @@ rder %7D %7D -); +, %0A @@ -2570,32 +2570,36 @@ er %7D %7D,%0A + this.fetchRefere @@ -2594,33 +2594,42 @@ .fetchReferences -( +,%0A );%0A %7D%0A%0A fe
25847db2dedb3b98078ee3da970da52b80790402
Handle null value in CheckboxGroupInput
src/mui/input/CheckboxGroupInput.js
src/mui/input/CheckboxGroupInput.js
import React, { Component, PropTypes } from 'react'; import Checkbox from 'material-ui/Checkbox'; import Labeled from './Labeled'; /** * An Input component for a checkbox group, using an array of objects for the options * * Pass possible options as an array of objects in the 'choices' attribute. * * The expected ...
JavaScript
0
@@ -3277,16 +3277,24 @@ d=%7Bvalue + ? value .find(v @@ -3337,16 +3337,24 @@ ndefined + : false %7D%0A
3babcc0fc3a9b25ec5c04b02524275de643f5ee7
Update calculate.js
lib/calculate.js
lib/calculate.js
exports = module.exports = function Calculate(command) { command.prototype._aspectIsEqual = function(ar1, ar2) { var p1 = this.toAspectRatio(ar1); var p2 = this.toAspectRatio(ar2); if (p1 === undefined || p2 === undefined) { return false; } else { return (p1.x === p2.x && p1.y === p2.y); ...
JavaScript
0.000001
@@ -1,9 +1,8 @@ -%0A exports @@ -3245,17 +3245,17 @@ %5B0-9%5D%7B1, -2 +3 %7D)%25/.exe
5651c58bf5ea363ff3201fad8ed2ae72e151e894
fix cleverbot
lib/cleverbot.js
lib/cleverbot.js
var story = require('storyboard').mainStory; var config = require('../config'); var cleverbot = null; try { var Cleverbot = require('cleverbot-node'); cleverbot = new Cleverbot; cleverbot.prepare(); story.info('cleverbot', 'Cleverbot loaded and ready.'); } catch (e) { cleverbot = undefined; s...
JavaScript
0.000786
@@ -301,17 +301,12 @@ t = -undefined +null ;%0A @@ -524,16 +524,43 @@ null && + cleverbot !== undefined && config.
9478c93dcf2968263ae33e23738ea2cab2f56a2a
Use classes by their new names.
lib/container.js
lib/container.js
// Load modules. var path = require('canonical-path') , Factory = require('./patterns/factory') , Constructor = require('./patterns/constructor') , Literal = require('./patterns/literal') , debug = require('debug')('electrolyte'); /** * Manages objects within an application. * * A container creates and man...
JavaScript
0
@@ -58,16 +58,20 @@ Factory +Spec = requi @@ -110,16 +110,20 @@ structor +Spec = requi @@ -162,16 +162,20 @@ Literal +Spec = requi @@ -3355,47 +3355,8 @@ s);%0A - // TODO: rename to ReturnedComponent%0A th @@ -3374,24 +3374,28 @@ (new Factory +Spec (id, depende @@ -3645,50 +3645,8 @@ s);%0A - // TOD...
936a7698692037e919442a1cbd693ea63acc7ce2
Fix typo in ShiftDragZoom (caught by @ahocevar)
src/ol/interaction/shiftdragzoom.js
src/ol/interaction/shiftdragzoom.js
// FIXME draw drag box goog.provide('ol.interaction.ShiftDragZoom'); goog.require('ol.Extent'); goog.require('ol.MapBrowserEvent'); goog.require('ol.control.DragBox'); goog.require('ol.interaction.Drag'); /** * @define {number} Hysterisis pixels. */ ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS = 8; /** * @const {numbe...
JavaScript
0
@@ -887,16 +887,17 @@ .dragBox +_ = null;
c2a0a9b39e0177e0cd3abcb2aa53abe6220c5f6d
Fix raw:outgoing event for </stream>
lib/websocket.js
lib/websocket.js
var WildEmitter = require('wildemitter'), _ = require('lodash'), async = require('async'), stanza = require('./stanza/stanza'), Stream = require('./stanza/stream').Stream, Message = require('./stanza/message').Message, Presence = require('./stanza/presence').Presence, Iq = require('./stanza/...
JavaScript
0.000002
@@ -4359,16 +4359,76 @@ tream%3E') +;%0A this.emit('raw:outgoing', '%3C/stream:stream%3E'); %0A
392b532f2eb18a6c1b4725147d87b9b791577393
Allow daemonize to pass arbitrary arguments to child.
lib/daemonize.js
lib/daemonize.js
// Copyright (c) 2012 Kuba Niegowski // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publis...
JavaScript
0
@@ -1920,16 +1920,195 @@ s = %7B%7D;%0A + %0A // pass all basic type arguments to child%0A for (var arg in options)%0A if (!(options%5Barg%5D instanceof Object))%0A this._options%5Barg%5D = options%5Barg%5D;%0A %0A this
5b479ad198bb089ef45ea3156988c4f8b3149ba1
fix selected projects url
app/controllers/home.js
app/controllers/home.js
/*! * Module dependencies. */ var mongoose = require('mongoose'), Feature = mongoose.model('Feature'); /** * Home */ exports.index = function (req, res) { if(req.isAuthenticated()) { res.render('layouts/default', { title: 'Mapas Coletivos', user: req.user ? JSON.stringify(req.user) : 'null' }) } ...
JavaScript
0.000001
@@ -419,37 +419,35 @@ %09%09%09img: 'http:// -alpha +www .mapascoletivos. @@ -501,37 +501,35 @@ %09%09%09url: 'http:// -alpha +www .mapascoletivos. @@ -688,37 +688,35 @@ %09%09%09img: 'http:// -alpha +www .mapascoletivos. @@ -770,37 +770,35 @@ %09%09%09url: 'http:// -alpha +www .mapascoletivos. @@ -1098,37 +109...
a5e8aed842c30c349da640c8fd48f14a1399033b
increase compatibility with BB.sync: use options.type for method type if available, fall back to GET (fixes gh-41)
lib/dom-utils.js
lib/dom-utils.js
// Usage: // utils.matchesSelector(div, '.something'); utils.matchesSelector = (function() { if (typeof document === 'undefined') return; // Suffix. var sfx = 'MatchesSelector'; var tag = document.createElement('div'); var name; ['matches', 'webkit' + sfx, 'moz' + sfx, 'ms' + sfx].some(function(item) { ...
JavaScript
0
@@ -2085,16 +2085,32 @@ method = + options.type %7C%7C 'GET';%0A
9ff28d84c903e04db9b33b232769e353969c6a9c
Fix gulpExeca
gulp/run.js
gulp/run.js
'use strict' const { promisify } = require('util') const Nodemon = require('nodemon') // eslint-disable-next-line import/no-internal-modules const execa = require('gulp-shared-tasks/dist/exec') const EXAMPLE_PATH = `${__dirname}/../examples/index.js` const DIST_PATH = `${__dirname}/../dist` // We use this instead o...
JavaScript
0.000003
@@ -141,22 +141,25 @@ es%0Aconst + %7B exec -a + %7D = requi @@ -388,17 +388,16 @@ %3E%0A exec -a ('node',
9bf3aa02fe28f7d6a3d61c55abdf5ed966ec7a44
Add watcher
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); gulp.task('concat', function() { return gulp.src('src/**/*.js') .pipe(concat('img-src-ondemand.js')) .pipe(gulp.dest('dist')); });
JavaScript
0.000001
@@ -201,8 +201,121 @@ ));%0A%7D);%0A +%0Agulp.task('watch', function() %7B%0A gulp.watch('src/**/*.js', %5B'concat'%5D);%0A%7D);%0A%0Agulp.task('default', %5B'concat'%5D);%0A
a637fb1dbb4d25a747c0318adbb049ea39fa98a7
Update Gulpfile to only minify JavaScript bundle for deployments
gulpfile.js
gulpfile.js
'use strict'; var beep = require( 'beepbeep' ), browserify = require( 'browserify' ), concat = require( 'gulp-concat' ), deploy = require( 'gulp-gh-pages' ), es = require( 'event-stream' ), gulp = require( 'gulp' ), gutil = require( 'gulp-util' ), jshint = require('gulp-jshint'), reactify = require( 'reactify'...
JavaScript
0
@@ -1961,16 +1961,39 @@ %09%09.pipe( + gutil.env.production ? streami @@ -2006,16 +2006,31 @@ lify() ) + : gutil.noop() )%0A%09%09.pi @@ -2117,55 +2117,271 @@ );%0A%0A -gulp.task( 'deploy', %5B 'build' %5D, function () %7B +// Run %60gulp deploy --production%60 to deploy to Github Pages%0Agulp.task( 'deploy', %5...
70b5335e2c99790a538e92944d6ab0637509b81f
Fix bug EVENT.LOC_CHANGED not defined
gulpfile.js
gulpfile.js
var gulp = require('gulp') , merge = require('event-stream').merge , series = require('stream-series') , map = require('map-stream') , $ = require('gulp-load-plugins')() function pipe(src, transforms, dest) { if (typeof transforms === 'string') { dest = transforms transforms = null } v...
JavaScript
0.000001
@@ -1041,16 +1041,67 @@ oncat(%5B%0A + './tmp/template.js',%0A './src/constants.js',%0A './s @@ -1320,59 +1320,8 @@ s',%0A - './tmp/template.js',%0A './src/constants.js',%0A
93f4f967aecf0ea59e3f8a5637965cd952a0389d
Reformat the gulpfile
gulpfile.js
gulpfile.js
/*jshint node: true, globalstrict: true */ 'use strict'; // Imports // ------------------------------------------------------------------------------------------------- var gulp = require('gulp'); var to5 = require('gulp-6to5'); // Tasks // ========================================================================...
JavaScript
0
@@ -36,13 +36,28 @@ true +, esnext: false */%0A -' +%22 use @@ -62,17 +62,17 @@ e strict -' +%22 ;%0A%0A%0A// I @@ -92,98 +92,8 @@ ---- ------------------------------------------------------------------------------------------- %0A%0Ava @@ -113,14 +113,14 @@ ire( -' +%22 gulp -' +%22 );%0Av @@ -136,17 +136,...
80050f80aa5a123356bcbd023076eebc3c7173fd
Fix how benchmark spawns oql.js subprocess
benchmark/node/benchmark.js
benchmark/node/benchmark.js
const randomString = require('random-string'); const _ = require('lodash'); const async = require('async'); const gemfire = require('../..'); gemfire.configure('xml/ExampleClient.xml'); const cache = gemfire.getCache(); const region = cache.getRegion("exampleRegion"); console.log("node version " + process.version); c...
JavaScript
0.002526
@@ -100,16 +100,106 @@ async'); +%0Aconst exec = require(%22child_process%22).exec;%0Aconst spawn = require(%22child_process%22).spawn; %0A%0Aconst @@ -2948,11 +2948,11 @@ ); %7D -%0A%5D, +,%0A fun @@ -2961,34 +2961,86 @@ ion( -)%7B%0A require('./oql.js');%0A%7D +next)%7B spawn(%22node%22, %5B%22benchmark/node...
7c52422a46c92c85d6ddb482cce389d5fa80e5ba
Call completion callback in test:run
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var tsc = require('gulp-tsc'); var tape = require('gulp-tape'); var tapSpec = require('tap-spec'); var del = require('del'); gulp.task("test:clean", function(done) { del(['build-test/**']).then(function(paths) { console.log("=====\nDeleted the following files:\n" + paths.join('\n')+ "...
JavaScript
0
@@ -627,24 +627,46 @@ ec()%0A %7D)) +%0A .on('end', done); ;%0A%7D);%0A%0Agulp.
df11fc4460fd2dd7bac3081ec21863f6d230b5c0
Call build command rather than rebuild
gulpfile.js
gulpfile.js
const DIST_PATH = "./.dist"; var gulp = require("gulp"); var hb = require("gulp-handlebars"); var deploy = require('gulp-gh-pages'); var clean = require('gulp-clean'); var wrap = require('gulp-wrap'); var declare = require('gulp-declare'); var concat = require('gulp-concat'); var runSequence = require('gulp-run-sequen...
JavaScript
0.000001
@@ -1796,18 +1796,16 @@ loy', %5B%22 -re build%22%5D, @@ -1875,12 +1875,13 @@ eploy()) +; %0A%7D);
4b79331631ec7ebb4c35940f36f2d6bb5009ba03
Add CSS sourcemap to production task * In production, the init line needs to be after the Postcss job
gulpfile.js
gulpfile.js
'use strict'; // http://www.w3schools.com/js/js_strict.asp // 1. LOAD PLUGINS var gulp = require('gulp'); var postcss = require("gulp-postcss"); var p = require('gulp-load-plugins')({ // This loads all the other plugins. DEBUG: false, pattern: ['gulp-*', 'gulp.*', 'del', 'run-*', 'browser*', 'vinyl-*', 'through2...
JavaScript
0.000001
@@ -1330,40 +1330,123 @@ n(p. -cleanCss()))%0A%09%09.pipe(development +sourcemaps.init()))%0A%09%09.pipe(production(p.cleanCss()))%0A%09%09.pipe(development(p.sourcemaps.write()))%0A%09%09.pipe(production (p.s @@ -1631,16 +1631,59 @@ ug: true + // This provides sourcemaps in development %0A%09%7D);%0A%0A%09
0a7f78136ed4e566dd743ff1e523bbf0dfb350bd
fix paths in embedsvg
gulpfile.js
gulpfile.js
"use strict"; // Load plugins const browsersync = require("browser-sync").create(); const cp = require("child_process"); const cssnano = require("cssnano"); const gulp = require("gulp"); const sourcemaps = require("gulp-sourcemaps"); const del = require("del"); const embedSvg = require('gulp-embed-svg'); const plumbe...
JavaScript
0.000005
@@ -1182,17 +1182,31 @@ .src(' -* +_includes/hcard .html')%0A @@ -1224,16 +1224,59 @@ mbedSvg( +%7B%0A root: './assets/images/icons'%0A %7D ))%0A . @@ -1291,16 +1291,26 @@ p.dest(' +_includes/ .'))%0A%7D%0A%0A
0de7a4e4fc9d6034f2031d7e0c81224c3d24ead6
Allow changing port via env variable
gulpfile.js
gulpfile.js
var gulp = require("gulp"), gutil = require("gulp-util"), sourcemaps = require('gulp-sourcemaps'), eslint = require('gulp-eslint'); less = require("gulp-less"), concat = require("gulp-concat"), uglify = require("gulp-uglify"), path = require("path"), shell = require("gulp-shell"), re...
JavaScript
0
@@ -804,16 +804,85 @@ ver%22);%0A%0A +var defaultPort = 8008;%0Avar port = process.env.PORT %7C%7C defaultPort;%0A%0A // Lint @@ -2996,136 +2996,8 @@ %7D%0A - // Log filenames packed:%0A //gutil.log(%22%5Bwebpack%5D%22, stats.toString(%7B%0A // output options%0A //%7D));%0A @...
712cb3a556caebfaf6d8bfc93db5451dee67b625
remove commented out code
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var requireDir = require('require-dir'); var helpers = require('./gulp/helpers'); var runSequence = require('run-sequence'); requireDir('./gulp/tasks', { recurse: true }); gulp.task('test', ['eslint-build', 'esdoc', 'mocha-server'], function () { console.log('checking for ...
JavaScript
0
@@ -597,3420 +597,4 @@ %7D);%0A -%0A%0A//%0A//%0A// 'use strict';%0A// var gulp = require('gulp');%0A// var jshint = require('gulp-jshint');%0A// var istanbul = require('gulp-istanbul');%0A// var mocha = require('gulp-mocha');%0A// var coverageEnforcer = require('gulp-istanbul-enforcer');%0A// var runSequence = requir...
ac11f9d72e8159e7e0f3b7934b915db4a95ad1c3
Fix placement of label closing tag
lib/form/html.js
lib/form/html.js
'use strict'; const nunjucks = require('nunjucks'); /* * Add Error Messaging to Rendered Inputs * * @param {string} html - Rendered HTML * @param {InputType} type - Input type being rendered * @param {FormInputValues} - Errors associated with form inputs * @param {Integer} - Index of the instance if repeatable ...
JavaScript
0
@@ -3706,37 +3706,16 @@ ark%3E -%60);%0A render += ' %3C/label%3E ';%0A @@ -3710,17 +3710,18 @@ %3C/label%3E -' +%60) ;%0A %7D%0A
4993dac019eb6eb43b74d5999efebeb5e5c99bdb
Modify files globs to include all files
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var watch = require('gulp-watch'); var harp = require('harp'); var browserSync = require('browser-sync'); var ghPages = require('gulp-gh-pages'); var harpServerOptions = { port: 9000 }; var paths = { projectDir: './', outputDir: './dist', outputFiles: './dist/**/*.*'...
JavaScript
0
@@ -310,18 +310,16 @@ ist/**/* -.* ',%0A src @@ -343,10 +343,8 @@ **/* -.* '%0A%7D;
3d8c522e5ec41df02b9ce21df3729d84f62f1fd2
clean up gulp file
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var sass = require('gulp-sass'); var connect = require('gulp-connect'); var babel = require('gulp-babel'); var minify = require('gulp-minify'); var shell = require('gulp-shell'); // setup the local enviroment gulp.task('connect', function(){ connect.server({ root: 'public', livere...
JavaScript
0.000001
@@ -1416,15 +1416,16 @@ sk(' -example +pushDemo ', ( @@ -1437,19 +1437,67 @@ %7B%0A -shell.task( +return gulp.src('*.js', %7Bread: false%7D)%0A .pipe(shell(%5B%0A 'git @@ -1542,18 +1542,22 @@ h-pages' +%0A %5D) ) -; %0A%7D)%0A%0A// @@ -1643,24 +1643,34 @@ 'transpile' +, 'minify' %5D);%0A// packa @@ -...
8baf0d4540d9fb1ada2133b5ea8a85a039342d21
Update version to 1.5.4
gulpfile.js
gulpfile.js
(function () { 'use strict'; // Set library version var version = '1.5.3'; // Initialize variables var gulp = require('gulp'); var del = require('del'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var rename = require('gulp-rename'); // Initialize...
JavaScript
0.000001
@@ -81,9 +81,9 @@ 1.5. -3 +4 ';%0A%0A
70f88a1df315e017f617e9bbb0e2ad3936d7203c
add source paths
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'), svgstore = require('gulp-svgstore'), svgmin = require('gulp-svgmin'), postcss = require('gulp-postcss'), precss = require('precss'), autoprefixer = require('autoprefixer'), path = require('path'), jade = ...
JavaScript
0.000001
@@ -332,24 +332,137 @@ lp-jade');%0A%0A +var paths = %7B%0A js: 'src/js/**/*.js',%0A css: 'src/css/**/*.css',%0A img: 'src/img/**/*',%0A jade: 'src/*.jade'%0A%7D;%0A%0A %0A// default%0A
76aec9d1c464f6b5cd47f7742db576511e9699c5
Add missing semicolon in gulpfile.js
gulpfile.js
gulpfile.js
var gulp = require("gulp"); var sass = require("gulp-sass"); var autoPrefixer = require("gulp-autoprefixer"); var minifyCss = require("gulp-minify-css"); var jshint = require("gulp-jshint"); var stylishJshint = require("jshint-stylish"); var uglify = require("gulp-uglify"); var plumber = require("gulp-plumber") var SA...
JavaScript
0.001901
@@ -305,16 +305,17 @@ lumber%22) +; %0A%0Avar SA
c807db9fd5e0d6652fd0c206fe48a8266a87f62d
Update gulpfile to ES6 and cleanup
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var del = require('del'); var plumber = require('gulp-plumber'); var jshint = require('gulp-jshint'); var stylish = require('jshint-stylish'); var livereload = require('gulp-livereload'); var autoprefixer = require('gulp-autoprefixer'); var sass ...
JavaScript
0
@@ -1,11 +1,13 @@ -var +const gulp @@ -32,19 +32,21 @@ gulp');%0A -var +const del @@ -70,19 +70,21 @@ 'del');%0A -var +const plumber @@ -117,19 +117,21 @@ mber');%0A -var +const jshint @@ -163,19 +163,21 @@ hint');%0A -var +const stylish @@ -212,19 +212,21 @@ lish');%0A -var +const liverel @@ -...
666fe624baa55f119fa75c1aa131d046d9154f35
replace only once omitting "g" option in regex
gulpfile.js
gulpfile.js
// https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md // sudo npm install --global gulp-cli // npm install --save-dev gulp // Please edit config.json before starting const config = require('./config.json'); // load npm modules and gulp plugins var fs = require('fs'); var path = require('path'); var gu...
JavaScript
0.000069
@@ -4527,17 +4527,16 @@ end --%3E/ -g im,%0A
acd746c5f6fa242ae9ab5f2691fef32bcb3b6443
clean up gulp file
gulpfile.js
gulpfile.js
const gulp = require('gulp'), mocha = require('gulp-mocha'), releaseHelper = require('release-helper'), ts = require('gulp-typescript'), tsProject = ts.createProject('tsconfig.json'), fsExtra = require('fs-extra'), runSequence = require('run-sequence'), path = require('path'), spawn = require('child_pro...
JavaScript
0.000001
@@ -1329,23 +1329,8 @@ ha(%7B - inspect: true, bai
355119ecc3ce261aadae8a9ee0dc17375331f270
add a return statement to the gulp clean task
gulpfile.js
gulpfile.js
var path = require('path'); var del = require('del'); var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); // set variable via $ gulp --type production var environment = $.util.env.type || 'development'; var isProduction = environment === 'production'; var webpackConfig = require('./webpack.config.js')....
JavaScript
0.000012
@@ -2264,16 +2264,23 @@ cb) %7B%0A +return del(%5Bdis
ff9e8100df38af096e31da698e32cfc26465f193
enable recursive option.
lib/generator.js
lib/generator.js
'use strict'; /** @module express-webapp-assets/generator */ var path = require('path'), io = require('node-toybox/io'), async = require('node-toybox/async'), Assets = require('./assets'), debug = require('debug')('express-webapp-assets:generator'), DEBUG = debug.enabled; /** * generates sta...
JavaScript
0.000001
@@ -1929,13 +1929,19 @@ );%0A %7D +, true );%0A%7D;
d5ab3c8d49116d31f15f5ff09c4252523f6adde2
Add handlebars example templlate to the gulp build.
gulpfile.js
gulpfile.js
// include gulp var gulp = require('gulp'); // include plug-ins var jshint = require('gulp-jshint'); var gulpif = require('gulp-if'); var coffee = require('gulp-coffee'); var concat = require('gulp-concat'); var gutil = require('gulp-util'); var stylish = require('jshint-stylish'); var coffeelint = require('gulp-coffe...
JavaScript
0
@@ -1444,16 +1444,37 @@ %0A%7D);%0A%0A// +All tasks by default. %0Agulp.ta @@ -1515,19 +1515,542 @@ e-build' -%5D); +, 'templates'%5D);%0A%0A//Gulp build example templates into a template.js file%0Avar handlebars = require('gulp-handlebars');%0Avar defineModule = require('gulp-define-module');%0Avar declare = requir...
b4080d3274def0088080798b0654337bf8336936
remove duplicate declaration
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var util = require('gulp-util'); var notifier = require('node-notifier'); var path = require('path'); var replace = require('gulp-replace'); var child_process = require('child_process'); var fs = require('fs'); var shell = require('gulp-shell'); var jshint = require('gulp-jshint'); var jshSt...
JavaScript
0.000004
@@ -669,49 +669,8 @@ ');%0A -var notifier = require('node-notifier');%0A var
26534ee951e8898d249487025970dc733794fb3a
Update the gulpFile
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); /** * Build all the jade templates. * @return {function} */ gulp.task('templates', function() { var jade = require('gulp-jade'); var defineModule = require('gulp-define-module'); gulp.src('./lib/templates/*.jade') .pipe(jade({ client: true})...
JavaScript
0.000001
@@ -1528,18 +1528,22 @@ ib/**/*. -js +coffee '%5D,%5B'bro
127e5d6c50f4c7b9d559357c6497a9c3dfa977f6
Write to correct location, copy file even if optimizing isn't possible (#639)
gulpfile.js
gulpfile.js
/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.gi...
JavaScript
0.000001
@@ -1207,11 +1207,10 @@ r: ' -200 +75 0x50 @@ -1512,24 +1512,19 @@ indexOf( -path.sep +'/' ) + 1);%0A @@ -1778,21 +1778,16 @@ y = -path. relative (roo @@ -1786,35 +1786,22 @@ tive -(root, f +F ile -) .split( -path.sep +'/' )%5B0%5D @@ -1989,16 +1989,215 @@ ) =%3E %7B%0A + if (err) %7B%0A ...
465c49440f711302d47f03198660594867e6a211
add /g to regex (#2423)
gulpfile.js
gulpfile.js
const path = require('path'); const { src, dest, series, watch } = require('gulp'); const rename = require('gulp-rename'); const sass = require('node-sass'); const through2 = require('through2'); const postcss = require('gulp-postcss'); const cssnano = require('cssnano'); const sourcemaps = require('gulp-sourcemaps'); ...
JavaScript
0
@@ -3082,25 +3082,28 @@ ace( -'. +/.%5C /assets +%5C /images -' +/g , %60$
67a9ca7aef59742746c8465b50f03cc0b89c1ec7
fix gulp
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var gutil = require('gulp-util'); var clean = require('gulp-clean'); var rename = require('gulp-rename'); var jshint = require('gulp-jshint'); var stylish = require('jshint-stylish'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var qunit = require('gulp-qunit')...
JavaScript
0.000002
@@ -2833,19 +2833,19 @@ est', %5B' -dev +min ', 'unit
0c2e247ce185dd188a69943c63e341b3db5df7b4
exclude the export only files from test coverage
gulpfile.js
gulpfile.js
import gulp from 'gulp'; import path from 'path'; import fs from 'fs-extra'; import babel from 'gulp-babel'; import sourcemaps from 'gulp-sourcemaps'; import cp from 'child_process'; import yargs from 'yargs'; import istanbul from 'gulp-istanbul'; import babelIstanbul from 'babel-istanbul'; import mocha from 'gulp-moch...
JavaScript
0
@@ -3155,32 +3155,36 @@ gulp.src(%5B'src/ +lib/ **/*.js', '!src/ @@ -3200,41 +3200,8 @@ .js' -, '!src/integration-test/**/*.js' %5D)%0A
5cfc7081c11573b1b2d4ecb3d9842c874b6897e1
Fix a bug when sometimes sass changed are not propagated to the browser
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); var gCheerio = require('gulp-cheerio'); var ngHtml2js = require("gulp-ng-html2js"); var htmlmin = require('gulp-htmlmin'); var streamqueue = require('streamqueue'); var rimraf = require('rimraf'); var domSrc = require('gulp-dom-src'); var rev = require('g...
JavaScript
0.000001
@@ -2906,18 +2906,16 @@ %09%09.src(' -./ app/sass @@ -3149,18 +3149,16 @@ %09watch(' -./ app/sass @@ -3234,18 +3234,16 @@ %22, %22 -./ app/**/* %22%5D). @@ -3238,16 +3238,57 @@ app/**/* +%22, %22!app/css/*.css%22, %22!app/sass/**/*.scss %22%5D).on('
a3fc4b9fe0d1957f48fcdc7ddd6021d7aaf40c42
remove timeout from hidDevice.receive as it's handled by drivers
lib/hidDevice.js
lib/hidDevice.js
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
JavaScript
0
@@ -1994,167 +1994,8 @@ ) %7B%0A - const abortTimer = setTimeout(() =%3E %7B%0A clearInterval(listenTimer);%0A debug('TIMEOUT');%0A cb(new Error('Timeout error'), null);%0A %7D, 2000);%0A%0A @@ -2070,42 +2070,8 @@ ) %7B%0A - clearTimeout(abortTimer);%0A
e69cbe836fd7a91dbc79c7eb64b386397db6c423
put back serve command until watch command is debugged
gulpfile.js
gulpfile.js
/** * Copyright 2015 Mozilla * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
JavaScript
0.000001
@@ -3170,32 +3170,126 @@ %5D,%0A %7D);%0A%7D);%0A%0A +gulp.task('serve', %5B'offline'%5D, function () %7B%0A connect.server(%7B%0A root: 'dist',%0A %7D);%0A%7D);%0A%0A gulp.task('watch
46e4573acf71bdf57585fd5c08e6d9680f5c6704
build task added
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'), changed = require('gulp-changed'), sass = require('gulp-sass'), csso = require('gulp-csso'), autoprefixer = require('gulp-autoprefixer'), browserify = require('browserify'), watchify = require('watchify'), source = require('vinyl-source-stream'), ...
JavaScript
0
@@ -319,33 +319,108 @@ -reactify = require('react +buffer = require('vinyl-buffer'),%0A reactify = require('reactify'),%0A uglify = require('gulp-ugl ify' @@ -559,16 +559,172 @@ c.reload +,%0A p = %7B%0A jsx: './scripts/app.jsx',%0A scss: 'styles/main.scss',%0A bundle: 'app.js',%0A ...
df1628ff43344c93b3cb1d9b8df26234141df8b1
update version
gulpfile.js
gulpfile.js
/* 以下文件老版本会引用到,不能在服务器上彻底删除,但如果需要的话可以在当前代码分支中删除 /static/js/em-open.js /static/js/em-transfer.js /transfer.html /static/img/file_download.png */ var debug = false; const VERSION = '43.14.000'; const gulp = require('gulp'); const postcss = require('gulp-postcss'); const sass = require('gulp-sass'); const cssnano...
JavaScript
0
@@ -189,17 +189,17 @@ 43.14.00 -0 +1 ';%0A%0Acons
cd366f2ad8216ca6e66be0772c3ddf58f64eda0e
Modify build.
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var browserSync = require('browser-sync'); var eyeglass = require('eyeglass'); var sass = require('gulp-sass'); var sourcemaps = require('gulp-sourcemaps'); var prefix = require('gulp-autoprefixer'); var plumber = require('gulp-plumber'); var notify = require('gulp-notif...
JavaScript
0
@@ -2329,26 +2329,8 @@ ws'%5D -, function () %7B%0A%0A%7D );%0A%0A @@ -2344,17 +2344,16 @@ sk('copy -- js', fun @@ -2364,24 +2364,29 @@ n () %7B%0A del +.sync (%5Bdist + '/* @@ -2392,16 +2392,39 @@ **/*.js' +, dist + '/content/_js' %5D);%0A gu @@ -2506,17 +2506,16 @@ , %5B'copy -- js'%5D, fu @@ -3566,16 +35...
7baa60230492c34ca9b1bb881731e0f6b5827d25
Add renaming of index.js to memefy.js
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const browserify = require('gulp-browserify'); const pkg = require('./package.json') gulp.task('build', () => gulp.src(pkg.main) .pipe(browserify({ insertGlobals : true, debug : !gulp.env.production })) .pipe(gulp.dest('dist')) ); gulp.task('default', ['build'])...
JavaScript
0.000002
@@ -66,24 +66,63 @@ owserify');%0A +const rename = require(%22gulp-rename%22);%0A const pkg = @@ -146,16 +146,17 @@ e.json') +; %0A%0Agulp.t @@ -222,18 +222,16 @@ y(%7B%0A - insertGl @@ -235,17 +235,16 @@ tGlobals - : true,%0A @@ -251,16 +251,13 @@ - debug - : !g @@ -279,18 +279,16 @@ ion%0A...
703e38a114d943a3c07d6250e74e322bd7ccc18c
Update gulpfile.js
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var source = require('vinyl-source-stream'); var browserify = require('browserify'); var stringify = require('stringify'); var uglify = require('gulp-uglify'); var less = require('gulp-less'); var minifiyCss = require('gulp-minify-css'); var rename = require('gulp-rename'); va...
JavaScript
0.000008
@@ -568,24 +568,73 @@ ge.json');%0A%0A +var readableTimestamp = (new Date()).toString();%0A var banner = @@ -797,24 +797,74 @@ tory.url%7D',%0A + ' * bundle created at %22' + readableTimestamp,%0A ' */',%0A
f04d38d541bb1f907f5a669efdf5f575414fa55e
Update gulp build for production (#29)
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'), concat = require('gulp-concat'), mainBowerFiles = require('main-bower-files'), uglify = require('gulp-uglify'), rename = require('gulp-rename'), less = require('gulp-less'), cleanCSS = require('gulp-clean-css'), jsFiles = ['src/js/*']; gulp.task("c...
JavaScript
0
@@ -1879,33 +1879,34 @@ %7B%0A gulp.src( -%22 +%5B' assets/css/appli @@ -1900,32 +1900,23 @@ ets/css/ -application +* .css -%22 +'%5D )%0A @@ -2689,16 +2689,80 @@ eateDevStyles'%5D) +;%0Agulp.task(%22build%22, %5B'createProdScripts', 'createProdStyles'%5D);
481dacdc898b16fa3582520fac7fd7f3182c21d0
add fetch features
src/routes/Fetch/modules/fetch.js
src/routes/Fetch/modules/fetch.js
import { browserHistory } from 'react-router' import cookie from 'react-cookie'; const SpotifyWebApi = require('spotify-web-api-js'); // ------------------------------------ // Constants // ------------------------------------ export const FETCH_API_CALLED = 'FETCH_API_CALLED' export const FETCH_FEATURES_CALLED = 'FET...
JavaScript
0.000001
@@ -2578,16 +2578,33 @@ ledApi,%0A + fetchFeatures,%0A redire
36446ceb1b601a853ec52abaa815681e8488237d
update release tasks
gulpfile.js
gulpfile.js
/** * The MIT License (MIT) * * Copyright (c) 2014,205,2016 Mickael Jeanroy <mickael.jeanroy@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including...
JavaScript
0.000001
@@ -2865,25 +2865,25 @@ lp.task( -' +%60 release: ' + leve @@ -2878,17 +2878,17 @@ ase: -' + +$%7B level +%7D%60 , %5B' @@ -2919,24 +2919,17 @@ const -packageJ +j sonFilte @@ -2947,170 +2947,388 @@ ter( -(file) =%3E file.relative === 'package.json');%0A const src = %5B'package.json', 'bower.json'%5D.map...
132822c44fc6916a01a547a2cfb70e1305b737ea
Update gulp to change name of generated file
gulpfile.js
gulpfile.js
var gulp = require('gulp'), rimraf = require('rimraf'), jshint = require('gulp-jshint'), uglify = require('gulp-uglify'), rename = require('gulp-rename'), insert = require('gulp-insert'), p = require('./package.json') ; //Folders and annotation var src = 'src/', dest = 'dist/', anno...
JavaScript
0
@@ -726,26 +726,8 @@ ider --' + p.version + ' .min
8c852d90fa0fa1737a9dd5cb82a36367453c4259
Rename CUDA to CUDA C++ in language dropdown (#2938)
lib/languages.js
lib/languages.js
// Copyright (c) 2017, Compiler Explorer Authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // thi...
JavaScript
0.000001
@@ -5637,16 +5637,20 @@ e: 'CUDA + C++ ',%0A
44900923d38cdfb104283b7943185f131cd45f4f
use the number helper for number rules
lib/lexer/dsl.js
lib/lexer/dsl.js
var elf = require ( "../runtime/runtime" ) , Rule = require ( "./rule/rule" ) ; var LexerDSL = elf.Object.clone({ rule: function (name, regex, action, arity) { var rule = Rule.create(name, regex, action, arity); this.rules.push(rule); return rule; }, name : function (regex, helper...
JavaScript
0.000004
@@ -461,39 +461,38 @@ %7C%7C this.helpers. -literal +number )%0A %7D,%0A%0A string @@ -1155,52 +1155,8 @@ turn - parseFloat(str, 10) ? parseFloat(str, 10) : str
eeba85dd6d155eaae30234368e7dd7d0dd6cd55d
Add favicons
src/server/frontend/html.react.js
src/server/frontend/html.react.js
import Component from '../../client/components/component.react'; import React from 'react'; export default class Html extends Component { static propTypes = { bodyHtml: React.PropTypes.string.isRequired, isProduction: React.PropTypes.bool.isRequired, title: React.PropTypes.string.isRequired, version...
JavaScript
0.000006
@@ -84,16 +84,51 @@ 'react'; +%0Aimport favicons from './favicons'; %0A%0Aexport @@ -885,16 +885,53 @@ /title%3E%0A + %7B/* this.renderLinks() */%7D%0A @@ -1060,10 +1060,439 @@ );%0A %7D%0A%0A + renderLinks() %7B%0A return favicons.map(this.renderLink, this)%0A %7D%0A%0A renderLink(link, k...
51ea5425778763abb6c403366e1c6e264232e09b
fix build
gulpfile.js
gulpfile.js
var gulp = require('gulp'), clean = require('gulp-clean'), shell = require('gulp-shell'), jsdoc = require("gulp-jsdoc"), webserver = require('gulp-webserver'); // steps // 1. clean /public folder // 2. generate new /public with hexo // 3. replace /public/downloads with /source/downloads // 4. generate api docs...
JavaScript
0.000001
@@ -1974,11 +1974,8 @@ ',%0A - // 'do
a8ba05a4e7f39c97ea6bb30f0db3ec7ee3971d41
fix typo
lib/matrix-3d.js
lib/matrix-3d.js
var math = require('mathjs'); /* * Conversion Functions */ // Convert Degree to Radian var d2r = function(d) { return (d * math.pi )/180; } module.exports.d2r = d2r; // Convert Radian to Degree var r2d = function(r) { return (180 * r) / math.pi; } module.exports.r2d = r2d; // Roundoff to 0 Cos, cos(pi/2)...
JavaScript
0.999991
@@ -2414,16 +2414,5 @@ d;%0A%0A -tranlate_y%0A %0A
4d1baaf0b907f4bfa428836bb3fcb3bdb268d418
Add bootstrap-list-filter to gulp
gulpfile.js
gulpfile.js
var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Larave...
JavaScript
0.000002
@@ -1481,32 +1481,113 @@ lugify.min.js',%0A + './bower_components/bootstrap-list-filter/bootstrap-list-filter.min.js',%0A %5D, 'public/j
b0977e5f1c28f1ec39f919726544db175607e029
add gulp build task
gulpfile.js
gulpfile.js
const gulp = require('gulp') const browserSync = require('browser-sync').create() const sass = require('gulp-sass') const plumber = require('gulp-plumber') const gutil = require('gulp-util') const uncss = require('gulp-uncss') const fs = require('fs') const juice = require('juice') // Compile sass into CSS & auto-inje...
JavaScript
0.000002
@@ -1847,24 +1847,645 @@ %7D)%0A %7D)%0A%7D)%0A%0A +const premailer = (done) =%3E %7B%0A fs.readFile('working/index.html', 'utf-8', (err, html) =%3E %7B%0A if (err) throw (err)%0A // read the css file%0A fs.readFile('working/css/styles.css', 'utf-8', (err, css) =%3E %7B%0A if (err) throw (err)%0A ...
27ca2c86c893bf26533074447d447c6950262f95
Fix typo original
src/services/blob/blob.service.js
src/services/blob/blob.service.js
import assert from 'assert'; import concat from 'concat-stream'; import dauria from 'dauria'; import makeDebug from 'debug'; import mimeTypes from 'mime-types'; import { Service, createService, helpers } from 'mostly-feathers-mongoose'; import fp from 'mostly-func'; import request from 'request'; import stream from 'st...
JavaScript
0.999998
@@ -5936,16 +5936,17 @@ ms, orig +i nal) %7B%0A
2143256b88157bf63ef11085c98026c6ef480cb0
add optional host port
gulpfile.js
gulpfile.js
'use strict' const gulp = require('gulp') const plumber = require('gulp-plumber') const watch = require('gulp-watch') const gulpif = require('gulp-if') const sass = require('gulp-sass') const postcss = require('gulp-postcss') const budo = require('budo') const argv = require('yargs').argv; const uglify = require('gulp...
JavaScript
0
@@ -1236,16 +1236,40 @@ port: + argv.port ? argv.port : 3000,%0A
7e91bc20c40ac50f7bb3f1e27064d8e335e733cb
add missing plugins
src/plugins/module.js
src/plugins/module.js
angular.module('ngCordova.plugins', [ 'ngCordova.plugins.deviceMotion', 'ngCordova.plugins.camera', 'ngCordova.plugins.geolocation', 'ngCordova.plugins.deviceOrientation', 'ngCordova.plugins.dialogs', 'ngCordova.plugins.vibration', 'ngCordova.plugins.network', 'ngCordova.plugins.device', 'ngCordova.pl...
JavaScript
0.000016
@@ -1107,13 +1107,75 @@ Connect' +,%0A 'ngCordova.plugins.adMob',%0A 'ngCordova.plugins.googleMap' %0A%5D);%0A
a83850e7f4e269ce8692aeaec631e5b713f4df18
include bourbon and neat
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var gulpSass = require('gulp-sass'); var rimraf = require('rimraf'); var sequence = require('run-sequence'); var merge = require('merge-stream'); var runElectron = require('gulp-run-electron'); var useref = require('gulp-useref'); gulp.task('run-app', function() { gulp.src('dist') ...
JavaScript
0.000002
@@ -259,16 +259,63 @@ seref'); +%0Avar neat%09%09= require('node-neat').includePaths; %0A%0Agulp.t @@ -806,16 +806,54 @@ ulpSass( +%7B%0A%09%09%09includePaths: %5B%5D.concat(neat)%0A%09%09%7D ).on('er
c7ea12de7e1e46b75bdd5d24099a6eb1923b4fe3
Stop resetting maintainer_can_modify PR input field
lib/models/pr.js
lib/models/pr.js
"use strict"; const Head = require("./branch").Head; const Base = require("./branch").Base; const MergeBase = require("./branch").MergeBase; const File = require("./file"); const WattsiFile = File.WattsiFile; const AddedWattsiFile = File.UnchangedWattsiFile; const RemovedWattsiFile = File.UnchangedWattsiFile; const Unc...
JavaScript
0
@@ -3790,211 +3790,21 @@ -title: this.payload.title,%0A body: content,%0A state: this.payload.state,%0A base: this.payload.base.ref,%0A maintainer_can_modify: this.payload.maintainer_can_modify +body: content %0A
70bb45f133e0d86dd8cef480f2164ef99e25ac17
add nepiOpy count to lokalita
src/shared/app/models/Lokalita.js
src/shared/app/models/Lokalita.js
/** Created by hhj on 2/16/16. */ import { Record } from 'immutable' import { NepiOpyFactory } from './NepiOpy' export class Lokalita extends Record({ id: 0, ixlok: 0, kraj: '', obec: '', cast: '', ulice: '', cispop: 0, cisori: 0, cisdop: 0, chardop: '', cisevi: 0, akrlok: '', kodObjektUIR: 0...
JavaScript
0.000001
@@ -356,16 +356,35 @@ tory(),%0A + nepiOpyCount: 0,%0A %7D) %7B%0A c @@ -595,16 +595,84 @@ op - 1)%0A + if (args.nepiOpyCount) args.nepiOpyCount = args.nepiOpyCount%5B0%5D%0A supe
5337f4682f369b692196ee1b54d4f121a65c8f7a
use `Array.every()` for `getIdentityValues` fallback
src/shell/base/base.controller.js
src/shell/base/base.controller.js
import angular from 'angular' export default class BaseCtrl { constructor($scope, DebugService, $stateParams, CRUDService, AlertService, $q, PayloadService, $window) { var vm = this // Injectables vm.$scope = $scope vm.DebugService = DebugService vm.$stateParams = $stateParams vm.CRUDService...
JavaScript
0.000002
@@ -5111,245 +5111,200 @@ lse -if (model%5B'id'%5D) %7B +%7B%0A // +t es -lint-disable-line dot-notation%0A key = 'id'%0A %7D else if (model%5B'Id'%5D) %7B // eslint-disable-line dot-notation%0A key = 'Id'%0A %7D else if (model%5B'ID'%5D) %7B // eslint-disable-line dot-notation%0A key = ...
f5925f754ecae2011d966e40bd41e0d436767e4c
Change target folder
gulpfile.js
gulpfile.js
// Include gulp var gulp = require('gulp'), uglify = require('gulp-uglify'), concat = require('gulp-concat'), minifycss = require('gulp-minify-css'), minifyhtml = require('gulp-minify-html'), imagemin = require('gulp-imagemin'), pngquant = require('imagemin-pngquant'); // Minify JavaScript gulp.task('scripts', ...
JavaScript
0.000001
@@ -424,20 +424,15 @@ st(' -dist/ js'));%0A + %0A%7D); @@ -544,21 +544,16 @@ p.dest(' -dist/ css'));%0A @@ -713,20 +713,16 @@ p.dest(' -dist '));%0A%7D); @@ -931,37 +931,32 @@ pipe(gulp.dest(' -dist/ img'));%0A%0A%09gulp.s @@ -1104,32 +1104,32 @@ gquant()%5D%0A%09%09%7D))%0A + %09%09.pipe(gulp.des @@ -1135,1...
26f961408c1dfbd434d9ae2f2fc69d262a3a4802
Remove glamor from overdrive itself
lib/overdrive.js
lib/overdrive.js
import React from 'react' import ReactDOM from 'react-dom' import {css} from 'glamor'; const defaultSpeed = 200; const components = {}; class Overdrive extends React.Component { constructor(props) { super(props); this.state = { loading: true }; } animate(prevPosition...
JavaScript
0.000001
@@ -56,36 +56,8 @@ dom' -%0Aimport %7Bcss%7D from 'glamor'; %0A%0Aco @@ -1182,39 +1182,31 @@ -className: css( +style: %7B%0A @@ -1335,36 +1335,24 @@ %7D -).toString() %0A %7D); @@ -1443,39 +1443,31 @@ -className: css( +style: %7B%0A @@ -1726,36 +...
3ee6f9293edd48a1ca8302f799f8a339549952a1
Add gulp task to run tests on file change.
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var del = require('del'); var babel = require('gulp-babel'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var buffer = require('vinyl-buffer'); var mocha = require('gulp-mocha'); var mochaBabelRegister = require('babel/register'); var ...
JavaScript
0
@@ -704,85 +704,8 @@ ) %7B%0A - var MinFlux = require('./index');%0A var expect = require('chai').expect;%0A%0A%0A re @@ -802,71 +802,127 @@ - require: %5B%0A './index',%0A 'chai',%0A %5D,%0A %7D) +%7D));%0A%7D);%0A%0Agulp.task('live-test', function() %7B%0A return gulp.watch(%5B'ind...
2eae6024f98ac76d8571581046ce25de2e86cf68
blank line
gulpfile.js
gulpfile.js
/* var ts = require("gulp-typescript") // according to https://www.npmjs.com/package/gulp-typescript // not supported var tsProject = ts.createProject('tsconfig.json', { inlineSourceMap : false }) */ // gulp.task('scripts', function() { // var tsResult = tsProject.src() // gulp.src("lib/* * / * .ts") // or tsProj...
JavaScript
0.999991
@@ -2853,17 +2853,16 @@ '))%0A%7D)%0A%0A -%0A gulp.tas
59ca17998801770666c812e00942c0887ded1156
Add return statement to gulp task
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var iife = require('gulp-iife'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var rename = require('gulp-rename'); gulp.task('default', ['scripts']); gulp.task('scripts', function () { gulp.src('src/**/*.js') .pipe(concat('vk-api-angular.js')) .pi...
JavaScript
0.000299
@@ -235,24 +235,31 @@ tion () %7B%0A +return gulp.src('sr
6ed25eb7e8ee8573a08b82799b63f44d9ef04b58
fix proxy conflict
gulpfile.js
gulpfile.js
var path = require('path'); var clean = require("gulp-clean"); var express = require('express'); var gulp = require('gulp'); var runSequence = require('run-sequence'); var ts = require('gulp-typescript'); var util = require('gulp-util'); var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-ser...
JavaScript
0.000001
@@ -619,19 +619,20 @@ erver = -tru +fals e;%0A%0Avar @@ -4403,44 +4403,8 @@ ) %7B%0A - isExpressOnProxyServer = false;%0A @@ -4486,36 +4486,86 @@ ion() %7B%0A -runSequence( +isExpressOnProxyServer = true;%0A runSequence(%0A 'run', %0A 'we
d22e1aaa77161948ff562b093c6fe6ccc0f01307
Replace gulp-changed with del
gulpfile.js
gulpfile.js
const gulp = require("gulp"), sass = require("gulp-sass"), sassGlob = require("gulp-sass-glob"), watch = require("gulp-watch"), concat = require("gulp-concat"), changed = require('gulp-changed'), del = require('del'); del.sync(['resources/**/*']); gulp.task('default', [ 'copy', 'sass', 'concatJS', 'sass:watch', '...
JavaScript
0.999993
@@ -158,43 +158,8 @@ %22),%0A -changed = require('gulp-changed'),%0A del @@ -1222,199 +1222,4 @@ %7D);%0A -%0A//gulp.watch('src/scss/**/*.scss', %5B'sass'%5D);%0A//gulp.watch('src/javascript/**/*.js', %5B'concatJS'%5D);%0A//gulp.watch(%5B'src/**/*','!src/%7Bscss,scss/**%7D','!src/%7Bjavascript,javascript/**%7D'%5D,...
d3836d4f9a515ce82ca7b7480e74d61c2286c459
Add loaders and take out stripDebug
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var jsdoc = require('gulp-jsdoc'); var concat = require('gulp-concat'); var stripDebug = require('gulp-strip-debug'); var uglify = require('gulp-uglify'); var _libfiles = [ 'node_modules/three/examples/js/controls/DeviceOrientationControls.js', 'node_modules/three/examples/js/effects/Card...
JavaScript
0
@@ -564,16 +564,78 @@ rc/util/ +ImageLoader.js',%0A%09'src/util/TextureLoader.js',%0A%09'src/util/Cube TextureL @@ -1293,24 +1293,26 @@ ;' %7D ) )%0A %09 +// .pipe( strip
0c5e8cd6c96275a1db428bc572bea0418e7b3c31
Fix an error in the clean task
gulpfile.js
gulpfile.js
var del = require('del'); var gulp = require('gulp'); var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var $ = require('gulp-load-plugins')(); var config = require('./webpack.config.js'); gulp.task('js', function (cb) { webpack(config, function (err, stats) { if(err) thr...
JavaScript
0.999999
@@ -706,18 +706,42 @@ %5D).then( -cb +function () %7B%0A cb()%0A %7D );%0A%7D);%0A%0A
88aa9473760e723209b6ff248f06ba683dad14b4
Make MessageMentions#channels return an empty collection in DMs (#1430)
src/structures/MessageMentions.js
src/structures/MessageMentions.js
const Collection = require('../util/Collection'); /** * Keeps track of mentions in a {@link Message} */ class MessageMentions { constructor(message, users, roles, everyone) { /** * Whether `@everyone` or `@here` were mentioned * @type {boolean} */ this.everyone = Boolean(everyone); if (...
JavaScript
0
@@ -2442,32 +2442,42 @@ mentioned (only +populated in %7B@link TextCh @@ -2489,33 +2489,32 @@ %7Ds)%0A * @type %7B -? Collection%3CSnowf @@ -2621,16 +2621,55 @@ annels;%0A + this._channels = new Collection();%0A if ( @@ -2685,34 +2685,24 @@ ild) return -null;%0A this._channe @@ -2703,35 +2703,16...
4f1730d76c5d16ad8ff570249f928621c2039a1f
Fix gulp hanging at end of build (#950)
gulpfile.js
gulpfile.js
(function(){ "use strict"; var path = require('path'), gulp = require('gulp'), concat = require('gulp-concat'), ngAnnotate = require('gulp-ng-annotate'), uglify = require('gulp-uglify'), jshint = require('gulp-jshint'), semistandard = require('gulp-semistandard'), KarmaServ...
JavaScript
0
@@ -2912,14 +2912,119 @@ ss'%5D);%0A%0A + gulp.on('stop', function () %7B process.exit(0); %7D);%0A gulp.on('err', function () %7B process.exit(1); %7D);%0A %7D)();%0A
c727e206e5b14429bdf4ed88ebf11f6a94081356
Disable gulp-notifier
gulpfile.js
gulpfile.js
var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Larave...
JavaScript
0.000007
@@ -34,16 +34,53 @@ xir');%0A%0A +process.env.DISABLE_NOTIFIER = true%0A%0A /*%0A %7C---
b2a69adb9cfa09314775107d5cabc9c375826174
Lowercase the error source to match 'npm'
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var uglify = require('gulp-uglifyjs'); var deleteFiles = require('del'); var sass = require('gulp-sass'); var filelog = require('gulp-filelog'); var include = require('gulp-include'); var colours = require('colors/safe'); // Paths var environment; var repoRoot = __dirname + '/'; var bowerRo...
JavaScript
0.998563
@@ -2072,17 +2072,17 @@ le.log(' -G +g ulp ' +
5f9884433df23b78ca063001cfb594081ca5bc35
Add command exists to utils
app/libs/utils/index.js
app/libs/utils/index.js
'use strict'; module.exports = { camelCase: require('./camel-case'), colorString: require('./color-string'), nestOptions: require('./nest-options'), uid: require('./uid'), request: require('./request'), metadata: require('./metadata'), framerate: require('./framerate'), normalizeLanguage: require('./no...
JavaScript
0.000006
@@ -387,12 +387,58 @@ output') +,%0A commandExists: require('./command-exists') %0A%7D;%0A
99dab100b7ec1ac276b321a814ccefca744872fd
Add missing window check. See #12461
src/renderers/webvr/WebVRManager.js
src/renderers/webvr/WebVRManager.js
/** * @author mrdoob / http://mrdoob.com/ */ import { Matrix4 } from '../../math/Matrix4.js'; import { Vector4 } from '../../math/Vector4.js'; import { ArrayCamera } from '../../cameras/ArrayCamera.js'; import { PerspectiveCamera } from '../../cameras/PerspectiveCamera.js'; function WebVRManager( renderer ) { var...
JavaScript
0
@@ -4625,24 +4625,67 @@ ction () %7B%0A%0A +%09%09if ( typeof window !== 'undefined' ) %7B%0A%0A%09 %09%09window.rem @@ -4753,24 +4753,29 @@ tChange );%0A%0A +%09%09%7D%0A%0A %09%7D;%0A%0A%7D%0A%0Aexpo
e2e0087d868755300174cddb511409e824f40805
add qunit for gulp
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var gulpFilter = require('gulp-filter'); var clean = require('gulp-clean'); var rename = require('gulp-rename'); var jshint = require('gulp-jshint'); var stylish = require('jshint-stylish'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var qunit = require('gulp-...
JavaScript
0.000001
@@ -25,25 +25,25 @@ ');%0Avar gulp -F +f ilter = requ @@ -876,9 +876,9 @@ gulp -F +f ilte @@ -1296,16 +1296,137 @@ ;%0A%7D);%0A%0A +// test%0Agulp.task('test', %5B'dev'%5D, function() %7B%0A return gulp.src('test/unit/**/*.html')%0A .pipe(qunit())%0A ;%0A%7D);%0A%0A //%0Agulp.
9b2347968e19c19bf810df0d6f0f36ece10a24fb
Update piwik-api.js
lib/piwik-api.js
lib/piwik-api.js
/** * nodejs-piwik-api **/ var http = require("http"); var url = require("url"); var PiwikAPI = function() { this.configure = this.configure.bind(this); this.get = this.get.bind(this); }; PiwikAPI.prototype.configure = function(options) { if(!options) { console.log("Merci de spécifier des options"); process.e...
JavaScript
0.000001
@@ -614,16 +614,26 @@ .port %7C%7C + u.port %7C%7C %22%22;%0A%09th
1da7508cf17a24588e3ac0f8617da122b7a45e45
fix mistake
gulpfile.js
gulpfile.js
var gulp = require('gulp'), jshint = require('gulp-jshint'), concat = require('gulp-continuous-concat'), uglify = require('gulp-uglify'), gzip = require('gulp-gzip'), babel = require('gulp-babel'), rimraf = require('rimraf'), watch = require('gulp-watch'), plumber = require('gulp-plumber...
JavaScript
0.999908
@@ -433,17 +433,17 @@ reload') -; +, %0A%0A fi
2e339d0df1f76c055e9a21e47dddc2dc935d5837
add gulp-unused
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var mocha = require('gulp-mocha'); var istanbul = require('gulp-istanbul'); var eslint = require('gulp-eslint'); gulp.task('coverage', function() { return gulp.src(['index.js', 'lib/*.js']) .pipe(istanbul()) .pipe(istanbul.hookRequire()); }); gulp.task('mocha', ['c...
JavaScript
0.999296
@@ -67,24 +67,61 @@ lp-mocha');%0A +var unused = require('gulp-unused');%0A var istanbul @@ -339,21 +339,20 @@ p.task(' -mocha +test ', %5B'cov @@ -493,18 +493,16 @@ p.task(' -es lint', f @@ -537,40 +537,46 @@ c(%5B' -gulpfile +* .js', ' -index +lib/* .js', ' -lib +test/%7B*,support /* +%7D .js' @@ -646,31 +...
5edcd8b1bf1dc5751135a4f9f5d8f730f9a68db7
Update gulp deprecated code.
gulpfile.js
gulpfile.js
var gulp = require('gulp'), spawn = require('child_process').spawn, node; gulp.task('server', function() { if (node) node.kill() node = spawn('node', ['index.js'], {stdio: 'inherit'}) node.on('close', function (code) { if (code === 8) { gulp.log('Error detected, waiting for changes...'); } ...
JavaScript
0
@@ -360,27 +360,29 @@ () %7B%0A gulp. -run +start ('server')%0A%0A @@ -379,17 +379,17 @@ server') -%0A +; %0A gulp. @@ -431,52 +431,24 @@ '%5D, -function() %7B%0A gulp.run('server')%0A %7D)%0A%0A%7D) +%5B'server'%5D);%0A%7D)%0A %0A%0Apr @@ -505,8 +505,9 @@ ill()%0A%7D) +%0A
cb8cb0b683a5b2bd4e6975102fbca627e47c3a17
Fix syntax error in standard Javascript.
lib/readfiles.js
lib/readfiles.js
var fs = require('fs'), path = require('path'); /** * merge two objects by extending target object with source object * @param target object to merge * @param source object to merge * @param {Boolean} [modify] whether to modify the target * @returns {Object} extended object */ function extend(target, source,...
JavaScript
0
@@ -1572,13 +1572,8 @@ tDir -=null ) %7B%0A
a331e01c54cff71de3afc5ce40ff76d81d43a2f1
return response as an error
lib/rpcclient.js
lib/rpcclient.js
var http = require('http'); var https = require('https'); var buffer = require('buffer'); /* Rpc Client Object * * new Client (options) * - options: json options object * * Define: json options object: { * port: int port of rpc server, default 5080 for http or 5433 for https * host: string domain name o...
JavaScript
0.00003
@@ -5207,21 +5207,57 @@ %7D -%0A else + else %7B%0A error = response;%0A con @@ -5317,16 +5317,26 @@ usCode); +%0A %7D %0A%0A
185a565dffc37c7bc75db8fd95fa550c6c311e85
Allow resolving the active child of a Typefield
src/resources/elements/typefield.js
src/resources/elements/typefield.js
import {containerless, bindable} from 'aurelia-framework'; import {Field} from './abstract/field'; import {parseJSON} from '../jsonparser'; /** * Typefield is a {@link Field} that shows different child forms depending on * the type the user chooses. * * This allows for theoretically infinite nesting because it use...
JavaScript
0.000002
@@ -6311,24 +6311,283 @@ dType;%0A %7D%0A%0A + resolvePath(path) %7B%0A const superResolv = super.resolvePath(path);%0A if (superResolv) %7B%0A return superResolv;%0A %7D%0A%0A if (this.child && path%5B0%5D === ':child') %7B%0A return this.child.resolvePath(path.splice(1));%0A %7D%0A retu...
7c155c2641079acdb07972778383fd1d7dd4f313
Disable v2 tag tests
src/schema/v2/__tests__/tag.test.js
src/schema/v2/__tests__/tag.test.js
/* eslint-disable promise/always-return */ import { runQuery } from "schema/v2/test/utils" describe("Tag", () => { describe("For just querying the tag artworks", () => { // If this test fails because it's making a gravity request to /tag/x, it's // because the AST checks to find out which nodes we're request...
JavaScript
0
@@ -109,16 +109,87 @@ () =%3E %7B%0A + // FIXME: Tag no longer has a direct connection to filtered artworks%0A descri @@ -190,16 +190,21 @@ describe +.skip (%22For ju @@ -1251,16 +1251,26 @@ Artworks +Connection (aggrega
0f20aff2693f7292a2c8eb966d0394d96979b28f
Add Atomic Scheduler Master Lock
lib/scheduler.js
lib/scheduler.js
// To read notes about the master locking scheme, check out: // https://github.com/resque/resque-scheduler/blob/master/lib/resque/scheduler/locking.rb const EventEmitter = require('events').EventEmitter const os = require('os') const Queue = require('./queue.js').Queue class Scheduler extends EventEmitter { const...
JavaScript
0
@@ -3101,10 +3101,8 @@ .set -nx (mas @@ -3126,16 +3126,60 @@ ons.name +, 'NX', 'EX', this.options.masterLockTimeout )%0A if @@ -3227,92 +3227,8 @@ ) %7B%0A - await this.connection.redis.expire(masterKey, this.options.masterLockTimeout)%0A
665110c1a06585ceea5483ffa3919c3035abc20b
Add init tags Set to new reverse index docs
src/search/search-index/pipeline.js
src/search/search-index/pipeline.js
import normalizeUrl from 'normalize-url' import transformPageText from 'src/util/transform-page-text' import { convertMetaDocId } from 'src/activity-logger' import { extractContent, keyGen } from './util' import { DEFAULT_TERM_SEPARATOR } from '.' // Simply extracts the timestamp component out the ID of a visit or bo...
JavaScript
0
@@ -2257,16 +2257,79 @@ k docs.%0A + * @property %7BSet%7D tags Set of searchable tags - init'd empty.%0A */%0A%0A/** @@ -4734,21 +4734,46 @@ bookmark)),%0A + tags: new Set(),%0A %7D)%0A%7D%0A
f3e34f95d3b49bc90131b375a7a6478f70885968
Add Stuff to array
src/regions/states.js
src/regions/states.js
import Collection from '../Collection'; class _States { constructor() { // Get our default Data this.data = this.defaults(); // New up a collection const collection = new Collection; // Add shared collection stuff Object.assign(this.data.__proto__, collection); // Assign any custom co...
JavaScript
0
@@ -562,24 +562,26 @@ ces() %7B%0A +// console.log(
05238a3ba7881bf6ec11bd4d7da6d53665294129
Fix an issue with trailing newlines
lib/transform.js
lib/transform.js
var hash = require('farmhash').fingerprint64; var stream = require('readable-stream'); var util = require('util'); function Transformer(){ // call the parent stream.Transform.call(this); // polyfill for non-ES6 if (!global.Set) { // lazy load a HashSet impl global.Set = require('hashes').HashSet; ...
JavaScript
0.00009
@@ -1534,18 +1534,18 @@ ind(this -, +)( this._la
9facf82ee23f418abae6aca4fa7a79da3eda01fc
use a HEAD request to get SSL cert info, not a get
lib/util/http.js
lib/util/http.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0
@@ -2640,16 +2640,24 @@ request( +'HEAD', '/');%0A%0A
374f5b53c741010f514d2e5d63c16a1540726564
add field state in despatch logging
lib/utils/log.js
lib/utils/log.js
import memoize from 'lodash/memoize'; import isError from 'lodash/isError'; import { error } from './global'; /*eslint-disable no-console*/ const consoleError = window.console && console.error ? (...args) => console.error(...args) : () => {}; //const consoleLog = window.console && console.log ? (...args) => console.l...
JavaScript
0
@@ -1540,32 +1540,92 @@ te', newState);%0A + console.log('field state', newState.fields%5BfieldID%5D);%0A console.ti @@ -1759,32 +1759,92 @@ te', newState);%0A + console.log('field state', newState.fields%5BfieldID%5D);%0A console.ti
6a8356e15523483da955f82086afbf745a2a1ff1
Update lib/wellknown.js
lib/wellknown.js
lib/wellknown.js
/* * This is a collection of well known SMTP service providers */ module.exports = { "Gmail":{ host: "smtp.gmail.com", secureConnection: true, port: 465, requiresAuth: true }, "Yahoo":{ host: "smtp.mail.yahoo.com", secureConnection: true, port: 465,...
JavaScript
0
@@ -1186,20 +1186,152 @@ sAuth: true%0A + %7D,%0A %22yandex%22:%7B%0A host: %22smtp.yandex.ru%22,%0A port: 465,%0A secureConnection: true,%0A requiresAuth: true%0A %7D%0A%7D;