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
2dcc2951f721c20944582f35c208908aee859755
remove callback param
gulpfile.js
gulpfile.js
/** * Gulp Build Script * ----------------------------------------------------------------------------- * @category Node.js Build File * @package Frunt * @copyright Copyright (c) 2015 Piccirilli Dorsey * @license https://opensource.org/licenses/MIT The MIT License (MIT) * @version 1.0 * @link ...
JavaScript
0.000001
@@ -2379,36 +2379,32 @@ .css, function ( -gulp ) %7B%0A retu
17b8982c7529892fdb2545a12e01bc5324a16543
move title attributes to the div
src/components/structures/RightPanel.js
src/components/structures/RightPanel.js
/* Copyright 2015 OpenMarket Ltd 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 writing, software ...
JavaScript
0.000001
@@ -4293,16 +4293,32 @@ rButton%22 + title=%22Members%22 onClick @@ -4454,32 +4454,16 @@ ght=%2222%22 - title=%22Members%22 /%3E%0A @@ -4674,16 +4674,30 @@ ebutton%22 + title=%22Files%22 %3E%0A @@ -4790,30 +4790,16 @@ ght=%2222%22 - title=%22Files%22 /%3E%0A
666bc602abcbb5227e92fc580b8816fd2a676b59
Update tasks
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const babel = require('gulp-babel'); const rename = require("gulp-rename"); const eslint = require('gulp-eslint'); const uglify = require('gulp-uglifyjs'); const minify = require("gulp-babel-minify"); const browserSync = require('browser-sync'); // Live reload task gulp.task('syn...
JavaScript
0.000002
@@ -449,19 +449,19 @@ js'%5D, %5B' -tes +lin t', 'ugl @@ -493,17 +493,17 @@ .watch(%5B -%22 +' ./exampl @@ -514,12 +514,12 @@ html -%22, %22 +', ' ./ex @@ -531,17 +531,40 @@ /js/*.js -%22 +', './example/css/*.css' %5D, brows @@ -692,32 +692,100 @@ c/turtle.js'%5D)%0D%0A + .pipe(rename('turtle.es7.js'))%0D%0...
501168acce303527f07d568f68aeb6a108f7ee83
Modify browser selection statement
gulpfile.js
gulpfile.js
var os = require('os'); var gulp = require('gulp') var open = require('gulp-open'); var Server = require('karma').Server; /* Check the platform before selecting a browswer */ var browser = os.platform() === 'linux' ? 'google-chrome' : 'firefox'( os.platform() === 'darwin' ? 'google chrome' : 'safari' ( os.platfo...
JavaScript
0.000001
@@ -208,24 +208,25 @@ = 'linux' ? +( 'google-chro @@ -229,18 +229,18 @@ chrome' -: +%7C%7C 'firefo @@ -241,16 +241,20 @@ firefox' +) : (%0A os.p @@ -278,16 +278,17 @@ rwin' ? +( 'google @@ -299,18 +299,23 @@ me' -: +%7C%7C 'safar +a i' +) : (%0A
11d737977892a892c6913c8d4818d9a410cf9c4c
Refactor buffer constructor (#1912)
gulpfile.js
gulpfile.js
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use stric...
JavaScript
0.000011
@@ -4950,19 +4950,20 @@ ts = - new Buffer +.from (rep
4f161aa5f8f2359e11e1edbefdf7aa998537ed7c
Fix source path when running generator via bin script
gulpfile.js
gulpfile.js
var gulp = require('gulp'), concat = require('gulp-concat'), livereload = require('gulp-livereload'), neat = require('node-neat'), please = require('gulp-pleeease'), plumber = require('gulp-plumber'), sass = require('gulp-sass'), sourcemaps = require('gulp-sourcemaps'), util = require('g...
JavaScript
0.000001
@@ -1177,28 +1177,30 @@ lp.src(%5B -'demo/ source +Path + ' /**/*.sc
44d8aef2f4fd0346f8b5c1b898be1a1968f06350
Enhance handleError in gulpfile.
gulpfile.js
gulpfile.js
'use strict'; var browserify = require('browserify'), gulp = require('gulp'), gutil = require('gulp-util'), livereload = require('gulp-livereload'), notify = require('gulp-notify'), rename = require('gulp-rename'), rimraf = require('gulp-rimraf'), source = require('vinyl-source-stream'), uglify = require('gulp-uglify'...
JavaScript
0
@@ -1509,16 +1509,287 @@ ments);%0A + gutil.log(args);%0A var errorData = %7B%0A message: '%3C%25= error.message %25%3E',%0A title: 'Compile Error',%0A %7D;%0A var filePath;%0A if (args%5B0%5D && args%5B0%5D.fileName) %7B%0A // React JSX source files.%0A filePath = args%5B0%5D.fileName;%0A %7D else %...
21cd3d0bd7d1df8c74a5fcaa6c82589e542de72b
fix for front and backend app sass files
gulpfile.js
gulpfile.js
var elixir = require('laravel-elixir'); require('laravel-elixir-eslint'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some b...
JavaScript
0
@@ -977,12 +977,143 @@ ss(' -**/* +app.scss', 'public/css/app.css', %7BincludePaths: %5Bpaths.bootstrap + 'stylesheets', paths.fontawesome + 'scss'%5D%7D)%0A%09%09.sass('admin/app.scss ', ' @@ -1123,16 +1123,29 @@ lic/css/ +admin/app.css ', %7Bincl
09d1e4f31de60ee49057d784d2c55787d671b807
Add watch task
gulpfile.js
gulpfile.js
var gulp = require('gulp'), sass = require('gulp-sass'), sourcemaps = require('gulp-sourcemaps'), autoprefixer = require('gulp-autoprefixer'); var config = { paths: { boneless: { src: './scss/boneless.scss', dest: './lib' } }, plugins: { sass: { outputStyle: 'nested', pr...
JavaScript
0.999877
@@ -239,16 +239,52 @@ './lib' +,%0A watch: './scss/**/**/*.scss' %0A %7D%0A @@ -1020,8 +1020,101 @@ ));%0A%7D);%0A +%0Agulp.task('watch', function() %7B%0A gulp.watch(config.paths.boneless.watch, %5B'build'%5D);%0A%7D);%0A
82cc4711493f302b0be86c5e0fc5280af0a9ef4d
Fix the focus jump in post.
src/layouts/Post/index.js
src/layouts/Post/index.js
import React, { Component, PropTypes } from 'react'; import ReactDisqusComments from 'react-disqus-comments'; import Page from '../Page'; import styles from './index.scss'; const setOverflow = (overflow) => { const html = document.querySelector('html'); const body = document.body; html.style.overflow = overfl...
JavaScript
0
@@ -481,31 +481,8 @@ ) %7B%0A - this.main.focus();%0A
67abb0384f3f88cbabc11897c556406ed26399e9
fix watch images
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var del = require('del'); var path = require('path'); // Load plugins var $ = require('gulp-load-plugins')(); var browserify = require('browserify'); var watchify = require('watchify'); var source = require('vinyl-source-stream'), sourceFile = './app/scripts/app.js', ...
JavaScript
0
@@ -4078,16 +4078,26 @@ _debug', + 'images', 'serve'
376a75a4ea96b32275fe46ee07eb864d286fcfcb
Clean task
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var plugins = require('gulp-load-plugins')(); var buffer = require('vinyl-buffer'); var del = require('del'); var merge = require('merge-stream'); var path = require('path'); var runSequence = require('run-sequence'); const SRC = './src'; const DEST = './dist'; const PACKAGES = './modules...
JavaScript
0.999983
@@ -315,16 +315,61 @@ odules'; +%0Afunction clean()%0A%7B%0A return del(%5BDEST%5D);%0A%7D %0A%0Afuncti
8ead1419f9676c797a91d959b5c1a22deb761cb7
update makdoc
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var Handlebars = require('handlebars'); var $ = require('gulp-load-plugins')(); var seq = require('run-sequence'); var through = require('through2'); /************************************************************************* * initialize makdoc */ var makdoc = require('gulp...
JavaScript
0.000001
@@ -322,16 +322,34 @@ makdoc') +(gulp, Handlebars) ; // sho @@ -378,39 +378,8 @@ task -%0Amakdoc.init(gulp, Handlebars); %0A%0A/* @@ -618,18 +618,16 @@ th.join( -$. makdoc.v @@ -1666,18 +1666,16 @@ %7D;%0A%0A -$. makdoc.v
74cedb07c54949c9d2a1dccaae236bcaf86d842f
Update gulpfile to use gulp v4.0
gulpfile.js
gulpfile.js
var path = require('path') var gulp = require('gulp') var sourcemaps = require('gulp-sourcemaps') var babel = require('gulp-babel') var paths = { es6: ['**/*.js', '!gulpfile.js', '!build/**/*.*', '!node_modules/**/*.*'], es5: 'build', // must be absolute or relative to source map sourceRoot: path.join(__dirn...
JavaScript
0
@@ -321,16 +321,17 @@ ame)%0A%7D%0A%0A +%0A gulp.tas @@ -441,88 +441,65 @@ -optional: %5B%0A 'es7.asyncFunctions',%0A 'es7.exportExtensions'%0A %5D +presets: %5B'es2015', 'stage-0'%5D,%0A retainLines: 'true' %0A @@ -600,24 +600,66 @@ s.es5))%0A%7D)%0A%0A +gulp.task('build', gulp.ser...
f8dec387de66e162fe04abe2738daffa4bd2f173
fix handling of empty values with ~=
src/lib/dependshandler.js
src/lib/dependshandler.js
define([ "jquery", "./depends_parse" ], function($, parser) { function DependsHandler($el, expression) { var $context = $el.closest("form"); if (!$context.length) $context=$(document); this.$el=$el; this.$context=$context; this.ast=parser.parse(expression)...
JavaScript
0.000001
@@ -2785,24 +2785,116 @@ case %22~=%22:%0A + if (value===null)%0A return false;%0A
94a06b66bd0da2f290276002eec2e61d5bff3b65
fix watch process
gulpfile.js
gulpfile.js
var browserify = require('browserify'); var del = require('del'); var debug = require('gulp-debug'); var minimist = require('minimist'); var gulp = require('gulp'); var coverage = require('gulp-coverage'); var jshint = require('gulp-jshint'); var jsxhint = require('gulp-jsxhint'); v...
JavaScript
0.000001
@@ -4550,16 +4550,23 @@ %5B'watch +-assets '%5D);%0A%7D); @@ -4603,32 +4603,39 @@ gulp.task('watch +-assets ', function () %7B
3760b58686f1e30e16691630381f4d4a868c62e2
fix build scripts
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const shell = cmd => require('child_process').execSync(cmd, {stdio:[0,1,2]}); const del = require('del'); const extend = require('extend'); const seq = require('run-sequence'); const $ = require('gulp-load-plugins')({ //pattern: ['gulp-*', 'gulp.*'], //replaceString: /\bgulp[\-.]/ }); ...
JavaScript
0.000006
@@ -4573,278 +4573,106 @@ ch, -function(exitCode) %7B%0A console.log('Karma has exited with ' + exitCode);%0A done();%0A %7D).start();%0A%7D);%0A%0Agulp.task('karma:test', function (done) %7B%0A new Server(config.karma.test, function(exitCode) %7B%0A console.log('Karma has exited with ' + exitCode);%0A ...
61acafe4d4588cb76a16f856d62466ec8ac271c8
Fix path merging
src/lib/php-autoloader.js
src/lib/php-autoloader.js
let fs = require("fs") export default class PHPAutoloader { /** * Build the object * @param {{[x: string]: string[]}} paths */ constructor(paths) { this.paths = paths } /** * @type {{[x: string]: string[]}} Class name prefixes mapped to arrays of * paths. Each path shou...
JavaScript
0.000014
@@ -607,88 +607,96 @@ -this.paths = Object.assign(%0A %7B%7D,%0A this.paths,%0A +for(var k in autoloader.paths) %7B%0A this.paths%5Bk%5D = (this.paths%5Bk%5D%7C%7C%5B%5D).concat( auto @@ -703,24 +703,28 @@ loader.paths +%5Bk%5D) %0A )%0A @@ -716,25 +716,25 @...
fd296ed5b24377f0f08307100ec51c3f1d8e476d
update workflow
gulpfile.js
gulpfile.js
var fs = require('fs'); var gulp = require('gulp'); var util = require('gulp-util'); var stylus = require('gulp-stylus'); var uglify = require('gulp-uglify'); var replace = require('gulp-replace'); var webpack = require('webpack-stream'); var sizereport = require('gulp-sizereport'); var autoprefixer = require('gulp-aut...
JavaScript
0.000588
@@ -2159,37 +2159,36 @@ pipe(gulp.dest(' -build +dist /'));%0A%7D);%0A%0Agulp. @@ -2519,18 +2519,21 @@ rc('src/ -** +style /*.styl'
dcb53f90d5f4906f3560efd5a19b4cc66f5cb477
Update FileManagerModel.js
static/sqleditor/models/FileManagerModel.js
static/sqleditor/models/FileManagerModel.js
define([ 'dojo/_base/declare', 'dojo/store/Observable', 'dijit/tree/ObjectStoreModel' ], function (declare, Observable, ObjectStoreModel) { var FileManagerModel = declare('sqleditor.models.FileManagerStoreModel', null, { }); /** * Creates an Observable ObjectStoreModel. * @param {Memory ...
JavaScript
0
@@ -1218,89 +1218,111 @@ -FileManagerModel.createModel();%0A %7D%0A%0A return FileManagerModel.model; +throw %22Please initialize the model first with FileManagerModel.createModel(store, rootQuery)%22%0A %7D %0A
56857a82dc7dbc58b99bf29dfd0598ea54f017c6
implement logic
src/guild/index.js
src/guild/index.js
var angular = require('angular'), moduleName = 'wow.guild', mod = angular.module(moduleName, [ require('../core/configuration') ]); mod.provider('wowResource', function() { this.$get = ['$http', 'wowConfig', function($http, config) { var options = config.options; return { ...
JavaScript
0
@@ -146,16 +146,45 @@ %5D);%0A%0A +module.exports = moduleName;%0A %0Amod.pro @@ -197,16 +197,13 @@ 'wow -Resource +Guild ', f @@ -363,16 +363,40 @@ members +,%0A news: news %0A @@ -998,41 +998,94 @@ -%7D%5D%0A%7D);%0A%0Amodule.exports = moduleName + function news() %7B%0A ...
2192a53a49764e05d1642846d915692d7f7890f2
Remove duplicate commented gulp task line
gulpfile.js
gulpfile.js
/* * require gulp plugins */ var gulp = require('gulp'), plumber = require('gulp-plumber'), sass = require('gulp-sass'), autoprefixer = require('gulp-autoprefixer'), minifycss = require('gulp-minify-css'), newer = require('gulp-newer'), imagemin = require('gu...
JavaScript
0.000001
@@ -924,80 +924,8 @@ s%7D)%0A -/* return gulp.src(stylesheets + '/app.scss', %7Bbase: stylesheets%7D) */%0A
496c7652eefc607c65a406694b6d6e4c1d7d6613
Update stylus build destination.
gulpfile.js
gulpfile.js
// Load Gulp and all of our Gulp plugins const gulp = require('gulp'); const $ = require('gulp-load-plugins')(); // Load other npm modules const del = require('del'); const glob = require('glob'); const path = require('path'); const isparta = require('isparta'); const babelify = require('babelify'); const watchify = r...
JavaScript
0
@@ -4666,17 +4666,17 @@ est('./d -e +i st'));%0A%7D
47d8add58c03eaccbe7d67189e3d99b525f71de4
Add default gulp compilation.
gulpfile.js
gulpfile.js
"use strict"; /** * Gulp usage file for the whole project. */ var gulp = require("gulp"); var ts = require("gulp-typescript"); var eventStream = require("event-stream"); var tslint = require("gulp-tslint"); var sequence = require("run-sequence").use(gulp); var babel = require("gulp-babel"); var path = require("path...
JavaScript
0
@@ -1268,12 +1268,136 @@ pt%22 %5D);%0A%7D);%0A +%0A/**%0A * Run with: 'gulp' or 'gulp default'%0A */%0Agulp.task(%22default%22, function() %7B%0A return sequence(%5B %22typescript%22 %5D);%0A%7D);%0A
19b567286c959ced959223a7a9d855baa9c71ac2
add build script
gulpfile.js
gulpfile.js
'use strict'; const gulp = require('gulp'); const del = require('del'); const sass = require('gulp-sass'); const autoprefixer = require('gulp-autoprefixer'); const cleanCSS = require('gulp-clean-css'); const runSequence = require('run-sequence'); const inlineNg2Template = require('gulp-inline-ng2-template'); const ren...
JavaScript
0.000001
@@ -344,18 +344,16 @@ ame%22);%0A%0A -%0A%0A const pa
33383accd052fa6cfb73faebc81f2a59e2afdc51
Modify path to node_modules
gulpfile.js
gulpfile.js
require('es6-promise').polyfill(); var gulp = require('gulp'); var sourcemaps = require('gulp-sourcemaps'); var sass = require('gulp-sass'); var moduleImporter = require('sass-module-importer'); var autoprefixer = require('gulp-autoprefixer'); var gcmq = require('gulp-group-css-media-queries');; var cleanCSS = require...
JavaScript
0.000002
@@ -1495,21 +1495,10 @@ s: %5B -__dirname + %22 +'. /nod @@ -1510,9 +1510,9 @@ ules -%22 +' %5D%0A
d7fb37f95acd4de9026cd74c402a50b784d737b0
change gulp file
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var source = require('vinyl-source-stream'); var browserify = require('browserify'); var babelify = require('babelify'); var babel = require('gulp-babel'); var server = require('gulp-webserver'); var sass = require('gulp-sass'); var concat = requ...
JavaScript
0.000001
@@ -2367,16 +2367,36 @@ (server( +%7B%0A port: 3000%0A %7D ));%0A%7D);%0A
1576a53f5711c78bd4fb6dea0702228fca3c0ae2
fix gulp templateCache
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var gutil = require('gulp-util'); var bower = require('bower'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCss = require('gulp-minify-css'); var rename = require('gulp-rename'); var sh = require('shelljs'); var clean = require('gulp-clean'); var jshint =...
JavaScript
0.000001
@@ -2530,32 +2530,36 @@ ache', function( +done ) %7B%0A gulp.src(p @@ -2732,22 +2732,34 @@ 'js'))%0A + .on('end', done -( );%0A%7D);%0A%0A
6b3c92193576957690a484b089851e3c4a45419b
remove clean task from gulp
gulpfile.js
gulpfile.js
var $ = require('gulp-load-plugins')(); var _ = require('lodash'); var browserify = require('browserify'); var buffer = require('vinyl-buffer'); var es = require('event-stream'); var exec = require('child_process').exec; var git = require('git-rev'); var glob = require('glob'); var gulp = require('gulp'); var ngAnnotat...
JavaScript
0.000354
@@ -517,29 +517,8 @@ = %7B%0A - outputName: 'app',%0A te @@ -528,24 +528,24 @@ ateCache: %7B%0A + file: %22t @@ -703,40 +703,8 @@ %7D,%0A - packedAssetName: 'assets.go',%0A se @@ -1193,30 +1193,8 @@ lic%22 -,%0A distOutput: %22dist%22 %0A%7D;%0A @@ -1411,272 +1411,11 @@ ();%0A + %7D%0A%0A -gulp.ta...
4e0f67ad6a87dfb99403cb49b5a38b46a3fafc64
Remove redundancy of test commands.
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var del = require('del'); var runSequence = require('run-sequence'); var sass = require('gulp-sass'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var typescript = require('gulp-typescript'); var sourcemaps = require('gulp-sourcemaps'); var electronConnect = requ...
JavaScript
0.000018
@@ -5702,16 +5702,8 @@ ild' -, 'test' );%0A
8dc08050be3f6b53b13d0a6c4e421b0806897355
fix gulpfile, let gulp exit with error when jshint failed.
gulpfile.js
gulpfile.js
var gulp = require('gulp') , jshint = require('gulp-jshint') , uglify = require('gulp-uglify') , rename = require('gulp-rename') , ghpages = require('gulp-gh-pages') gulp.task('jshint', function(){ gulp.src(['**/*.js', '!node_modules/**', '!**/*.min.js']) .pipe(jshint('.jshintrc')) .pipe(jshint.repor...
JavaScript
0
@@ -320,16 +320,51 @@ rter())%0A + .pipe(jshint.reporter('fail'))%0A %7D)%0A%0Agulp
bd1679edef742622c71b8e44832d721c0d04ec1f
Add layer in getROIIDs
src/image/roi/manager.js
src/image/roi/manager.js
import createROIMap from './createROIMap'; import createROI from './createROI'; import extendObject from 'extend'; export default class ROIManager { constructor(image, options = {}) { this._image = image; this._options = options; this._layers = {}; this._painted = null; } ...
JavaScript
0
@@ -645,16 +645,39 @@ tROIIDs( +maskLabel = 'default', options) @@ -710,16 +710,27 @@ .getROI( +maskLabel, options)
79f647dc5cdf9552547cb82f245e7fde67a194a2
Set default values for user and userDomains
hawk/app.js
hawk/app.js
'use strict'; var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); require('dotenv').config(); /** * Loggers ***/ /* Main logger */ var winston = require('winston'); /* Allow rotate...
JavaScript
0.000001
@@ -2628,16 +2628,72 @@ ext) %7B%0A%0A + res.locals.user = %7B%7D;%0A res.locals.userDomains = %7B%7D;%0A%0A user.g @@ -2829,16 +2829,77 @@ ext();%0A%0A + %7D).catch(function (e) %7B%0A%0A logger.error(e);%0A next();%0A%0A %7D);%0A%0A%7D
41bdb5005515b673f4dac32e264657705b67e2ff
Fix outputdir resolution
markdown2bootstrap.js
markdown2bootstrap.js
#!/usr/bin/env node /*jshint node:true, es5:true */ var argv = require('optimist'). usage('Usage: $0 [options] <doc.md ...>'). demand(1). boolean('n'). describe('n', 'Turn off numbered sections'). boolean('h'). describe('h', 'Turn on bootstrap page header.'). desc...
JavaScript
0.000213
@@ -2006,16 +2006,78 @@ rectory%0A +argv.outputdir = path.resolve(process.cwd(), argv.outputdir);%0A if (!fs. @@ -2087,22 +2087,30 @@ stsSync( -'html' +argv.outputdir )) %7B%0A @@ -2127,14 +2127,22 @@ ync( -'html' +argv.outputdir );%0A%7D @@ -3809,16 +3809,45 @@ %22 to %22 + + path.relative(process.cwd(), o...
90d7109029d8887b97be6e3f879246fb30f156c8
Use registerRootComponent directly (#6008)
packages/expo/AppEntry.js
packages/expo/AppEntry.js
import { registerRootComponent } from 'expo'; import { activateKeepAwake } from 'expo-keep-awake'; import App from '../../App'; if (__DEV__) { activateKeepAwake(); } registerRootComponent(App);
JavaScript
0
@@ -1,16 +1,14 @@ import - %7B registe @@ -21,18 +21,16 @@ omponent - %7D from 'e @@ -32,16 +32,51 @@ om 'expo +/build/launch/registerRootComponent ';%0Aimpor
5d47fbdd5768461e57f3ee9bb6748decc14bf736
use wildcards
packages/gi-pkg/src/ls.js
packages/gi-pkg/src/ls.js
import glob from 'glob' import { exclude } from './config.json' export default async (dir, ignore = []) => { return new Promise(resolve => { glob('**', {ignore: [...ignore, ...exclude], cwd: dir, follow: false}, (err, files) => { files = err ? null : files resolve(files) } )...
JavaScript
0.000001
@@ -148,17 +148,16 @@ glob('* -* ',%0A
3a1af2a204cd2ade83d15497f7a86e903f56ffa4
Add Mongo export
packages/mongo/package.js
packages/mongo/package.js
// XXX We should revisit how we factor MongoDB support into (1) the // server-side node.js driver [which you might use independently of // livedata, after all], (2) minimongo [ditto], and (3) Collection, // which is the class that glues the two of them to Livedata, but also // is generally the "public interface for new...
JavaScript
0
@@ -2047,32 +2047,55 @@ estOnly: true%7D); +%0A api.export(%22Mongo%22); %0A%0A api.add_file
064535a6f91460ce89f063497af8f9bbff8854c2
Fix postcss config
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
@@ -1494,16 +1494,27 @@ plugins +.length %3E 0 ? creat
cbd3b68d7247b1de514fdf3bdad5e8a339b6bfc1
Fix double-sending of runs request.
wandb/board/ui/src/subscriptions.js
wandb/board/ui/src/subscriptions.js
import watch from 'redux-watch'; import {RUNS_QUERY} from './graphql/runs'; import {matchPath} from 'react-router'; import {setFlash} from './actions'; let unsubscribe, runsChannel; try { const p = require('Cloud/util/pusher'); unsubscribe = p.unsubscribe; runsChannel = p.runsChannel; } catch (e) { const p = r...
JavaScript
0.000001
@@ -2773,24 +2773,58 @@ 'timeline',%0A + requestSubscribe: true,%0A %7D;%0A
8e96027e7027844604a7ff1f3186aec6a418aba0
fix wiredep / injectScripts conflict
templates/tasks/dev.js
templates/tasks/dev.js
'use strict'; /* jshint camelcase: false */ var config = require('./config'); var gulp = require('gulp'); /** * Dev Task File * */ var sass = require('gulp-sass'); var autoprefixer = require('gulp-autoprefixer'); var sourcemaps = require('gulp-sourcemaps'); var wiredep = require('wiredep').stream; var inj = requi...
JavaScript
0
@@ -387,21 +387,16 @@ reload - = browse @@ -409,16 +409,16 @@ reload;%0A + var watc @@ -607,197 +607,8 @@ ');%0A -var webdriver_standalone = require('gulp-protractor').webdriver_standalone;%0Avar protractor = require('gulp-protractor').protractor;%0Agulp.task('webdriver_standalone', webdriver_standalone);%0...
9f27374b878b0f611062e0d78d4d03b0349f9860
Make project dialog stop propagation
templates/js/pages/sidebar.js
templates/js/pages/sidebar.js
$(function() { $('button.atp').prop('title', 'Add/Remove to/from Project').button({ icons: { primary: 'ui-icon-note' }, text: false }).unbind('click').click(function() { _load_project_dialog($(this).attr('ty'), $(this).attr('iid'), $(this).attr('name')) }) var c = $.cookie('ispyb_help') var help_def = ($...
JavaScript
0.000001
@@ -2168,32 +2168,33 @@ .click(function( +e ) %7B%0A _load_ @@ -2267,24 +2267,51 @@ tr('name'))%0A + e.stopPropagation();%0A %7D)%0A
ac0276035a6f3afe9428bf354d90cbdc2dd2c8db
Remove accidental duplication of subscribe method.
terrific-extensions.js
terrific-extensions.js
/** * https://github.com/MarcDiethelm/terrificjs-extensions * Adds some sugar and enhancements to @brunschgi's excellent Terrificjs frontend framework. */ 'use strict'; /** * Simplify connector channel subscription * * Because the second parameter to sandbox.subscribe() (this) often is forgotten. * Plus, conne...
JavaScript
0.000001
@@ -171,612 +171,8 @@ ';%0A%0A -/**%0A * Simplify connector channel subscription%0A *%0A * Because the second parameter to sandbox.subscribe() (this) often is forgotten.%0A * Plus, connecting to multiple channels requires you to call subscribe for every channel.%0A * @author Simon Harte %3Csimon.harte@namics.com%3E%0A...
2763fdd4562eb9fd5b66e8a8ab3242f4faebbc3c
Make plugin work when called on multiple selects
src/jquery.combostars.js
src/jquery.combostars.js
/** * jquery.combostars.js: Turn select widgets into star rating widgets. * * Copyright (c) 2015 John Parsons. * * This software may be modified and distributed under the terms of the MIT license. See the LICENSE file for details. */ $(function () { /** * Determines the needed background position for a star ...
JavaScript
0
@@ -665,16 +665,207 @@ rict';%0A%0A +%09%09// Deal with multiple selects by recursively applying combostars to each one%0A%09%09if (this.length %3E 1) %7B%0A%09%09%09this.each(function () %7B%0A%09%09%09%09$(this).combostars(config);%0A%09%09%09%7D);%0A%09%09%09return this;%0A%09%09%7D%0A%0A %09%09var op @@ -2679,16 ...
a44c54fb5e948ac4fa9baf1f88f2da047c401e90
Make sure I'm not a liar.
test/3-complex.test.js
test/3-complex.test.js
const Proxy = require('..') const test = require('tap').test const testServer = require('./server') const testRequest = require('./request') const localSocket = require('./localSocket') test('proxy server: simple routing', function (t) { const servers = { food: makeServer('food'), music: makeServer('music'),...
JavaScript
0.000248
@@ -256,20 +256,20 @@ = %7B%0A -food +json : makeSe @@ -278,20 +278,20 @@ er(' -food +json '),%0A musi @@ -286,21 +286,19 @@ '),%0A -music +xml : makeSe @@ -303,21 +303,19 @@ Server(' -music +xml '),%0A @@ -500,14 +500,18 @@ %5B'/ -food/* +api/*.json ', s @@ -513,28 +513,28 @@ n', servers. ...
91feaa9630295b818352b7520d8a5bdee57a233b
Change JSXTransformer URL to non-fb link
kboard/kboard-html5/js/main.js
kboard/kboard-html5/js/main.js
requirejs.config({ "baseUrl": "./", "paths": { "jquery":"bower_components/jquery/jquery.min", "jquery-ui":"bower_components/jquery-ui/ui/jquery-ui", "react": "bower_components/react/react.min", "jsx":"bower_components/require-jsx/jsx", "JSXTransformer":"http://dragon.ak.fbcdn.net/hphotos-ak-prn1...
JavaScript
0
@@ -275,81 +275,67 @@ r%22:%22 -http://dragon.ak.fbcdn.net/hphotos-ak-prn1/851547_221914424655081_22271_n +//cdnjs.cloudflare.com/ajax/libs/react/0.8.0/JSXTransformer %22,%0A
c69aa18c25e57df5a451b0a7a99388a5c692634f
Fix link controllers not sending energy to each other
LinkController.js
LinkController.js
module.exports = { decide: function(link) { if(!link.memory.type) { if(link.pos.findInRange(FIND_SOURCES, 2).length) { link.memory.type = "dispatch"; } else { link.memory.type = "recieve"; } } if(link.energy) { ...
JavaScript
0
@@ -1635,16 +1635,19 @@ eveLinks +%5B0%5D , link.e
97dbea8af0187d5fea8ae2f07c800650fb79ce6f
fix unit test
test/CoachMark.test.js
test/CoachMark.test.js
/*global describe, it, beforeEach, afterEach*/ import expect from 'expect.js'; import CoachMark from './../src/js/CoachMark'; describe('CoachMark', () => { let element = null; let footer = null; let mark = null; beforeEach(() => { element = document.createElement('div'); element.innerText = 'Lorem ipsum dolo...
JavaScript
0.000698
@@ -2238,24 +2238,28 @@ (pos.top +%3C200 ).to.be( 122);%0A%09%09 @@ -2254,41 +2254,12 @@ .be( -122);%0A%09%09expect(pos.left).to.be(85 +true );%0A%09 @@ -2565,24 +2565,28 @@ (pos.top +%3E200 ).to.be( 244);%0A%09%09 @@ -2581,41 +2581,12 @@ .be( -244);%0A%09%09expect(pos.left).to.be(85 +true );%0A%09 @@ -2880,3...
71ea41d6265766cb2bd50a4d15154d260bfcf195
Update Testing1.js
BiabCalc/Calc/Testing1.js
BiabCalc/Calc/Testing1.js
(function ($) { function allFieldsValid() { var fields = [ 'BatchVol', 'GBill', 'HBill', 'DHop', 'BoilTime', 'BoilRate', 'TempGrain', 'TempMash', 'VolSparge', 'PotSize', 'KettleID', 'LossTrub', 'LossFermTrub', 'HChilled', 'V...
JavaScript
0
@@ -4676,35 +4676,29 @@ Boil').text( -VolPackaged +EBoil .toFixed(2))
9e5ff75cd85a02ca7b587b10d09ff3156588234a
Switch account keys to a single translated message (#1004)
app/components/views/AccountsPage/Accounts/AccountRow/AccountDetails.js
app/components/views/AccountsPage/Accounts/AccountRow/AccountDetails.js
import { FormattedMessage as T } from "react-intl"; import { Balance, Tooltip } from "shared"; const AccountsList = ({ account, showRenameAccount, hidden, hideAccount, showAccount, }) => ( <div className="account-row-details-bottom" key={"details" + account.accountNumber}> <div className="account-r...
JavaScript
0
@@ -3833,52 +3833,134 @@ eys. -external%22 m=%22%7Bkeys%7D external%22 values=%7B%7B keys +counts%22 m=%22%7Bexternal%7D external, %7Binternal%7D internal, %7Bimported%7D imported%22%0A values=%7B%7B%0A external : ac @@ -3969,38 +3969,33 @@ unt.externalKeys - %7D%7D /%3E +, %0A ...
73c6cdcb63fb4ccb8a77ad03fe02091594e5a331
Update to use dynamic ports
src/firefox/lib/firefox_proxy_config.js
src/firefox/lib/firefox_proxy_config.js
/** * Firefox proxy settings implementation * TODO(salomegeo): rewrite it in typescript */ var prefsvc = require("sdk/preferences/service"); var proxyConfig = function() { this.running_ = false; }; proxyConfig.startUsingProxy = function(endpoint) { if (!this.running_) { this.running_ = true; this.sock...
JavaScript
0
@@ -300,16 +300,50 @@ = true;%0A + // Store initial proxy state.%0A this @@ -391,24 +391,24 @@ xy.socks%22);%0A - this.soc @@ -561,19 +561,24 @@ s%22, -'127.0.0.1' +endpoint.address );%0A @@ -623,12 +623,21 @@ t%22, -9999 +endpoint.port );%0A @@ -749,32 +749,32 @@ his.running_) %7B%0A - thi...
adcc757ee2b34b26e6d37d03b3c4592cbcbd664f
Remove unused import
app/pages/reservation/reservation-information/ReservationInformation.js
app/pages/reservation/reservation-information/ReservationInformation.js
import pick from 'lodash/pick'; import uniq from 'lodash/uniq'; import camelCase from 'lodash/camelCase'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Col from 'react-bootstrap/lib/Col'; import Row from 'react-bootstrap/lib/Row'; import Well from 'react-bootstrap/lib/Well'; impor...
JavaScript
0.000001
@@ -267,53 +267,8 @@ w';%0A -import Well from 'react-bootstrap/lib/Well';%0A impo
0afd20600d2c901d2b190cd59a920d9987a9eb5b
Correct millisecond SimpleDateFormat specifier.
src/foam/nanos/logger/AbstractLogger.js
src/foam/nanos/logger/AbstractLogger.js
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.logger', name: 'AbstractLogger', implements: [ 'foam.nanos.logger.Logger' ], abstract: true, javaImports: [ 'java.io.PrintWriter', 'java.io.St...
JavaScript
0
@@ -746,9 +746,11 @@ .ss. -Z +SSS %22);%0A
8d226ca94a61fd2c816638975a1a18f3f9083542
Fix version
src/js/f7-intro.js
src/js/f7-intro.js
'use strict'; /*=========================== Framework 7 ===========================*/ window.Framework7 = function (params) { // App var app = this; // Version app.version = '0.9.6'; // Default Parameters app.params = { cache: true, cacheIgnore: [], cacheIgnoreGetParam...
JavaScript
0.000001
@@ -190,17 +190,17 @@ = '0.9. -6 +7 ';%0A%0A
4bc9492a55d45a8aa20438320020df95760ba8a1
fix TypeError in content-script.js
src/js/content-script.js
src/js/content-script.js
'use strict'; chrome.runtime.sendMessage({ type: 'pontoon-page-loaded', url: document.location.toString(), value: document.documentElement.innerHTML }); const unreadNotificationsIcon = document.querySelector('#notifications.unread .button .icon'); function unreadNotificationsIconClick() { unreadNotifi...
JavaScript
0.000004
@@ -508,17 +508,12 @@ !== -undefined +null ) %7B%0A
7a3ec6caa3fb46c38f30039dec806777d70d3a57
Update collection on saved datasets properly
arborweb/js/views/DatasetManagementView.js
arborweb/js/views/DatasetManagementView.js
/*jslint browser: true, nomen: true */ (function (flow, $, _, Backbone, Blob, d3, FileReader, girderUpload, URL) { "use strict"; // The view for managing data saving and downloading flow.DatasetManagementView = Backbone.View.extend({ saveFormats: { table: ['csv', 'rows.json'], ...
JavaScript
0
@@ -1577,24 +1577,90 @@ aFolder'));%0A + dataset.set(%7Bcollection: flow.saveLocation%7D);%0A @@ -5582,16 +5582,51 @@ atasets. +off('add', null, 'set-collection'). add(data
3fba2ad48d03ea0182689bd775faf010b2fe7d85
fix NULL counter and no article title cases
public/client.js
public/client.js
// TODO: switch to requireJS or AMD modules // TODO: convert to backbone? $(function(){ mf.init() mf.load() }) var mf = {} mf.init = function() { // put in constructor mf.nav.skip = new mf.controllers.button('#skip') mf.nav.discard = new mf.controllers.button('#discard') mf.nav.publish = new mf.controllers....
JavaScript
0.000012
@@ -1805,16 +1805,36 @@ date)%0A%09%09 +if (article.author) $('.note @@ -1877,16 +1877,58 @@ ' by ')%0A +%09%09// also do link to source site homepage%0A %09%09return @@ -2432,28 +2432,27 @@ var value = -null +%22 %22 %0A%0A%09// callba
ea4082f8d8dddd9332d66352702dee219871712d
Remove console.log
src/js/internal.js
src/js/internal.js
import utils from './utils'; import { CLASSNAME, VARS, eventType as EVENT_TYPE } from './constants'; /** * @class Internal */ export class Internal { constructor(base) { this.Base = base; this.container = base.container.element; // ready to close when both are chosen this.closeWhen = { hour...
JavaScript
0.000004
@@ -2361,62 +2361,8 @@ ');%0A - console.warn(this.targets);%0A console.warn(id);%0A @@ -2508,28 +2508,8 @@ =%3E %7B - console.warn(each); thi
fa20b86696298e4405bf49843d71ef7dbfc84b13
Add creation validation configuration, e. g. in order to check whether the user is authorized to create the room type
packages/rocketchat-lib/lib/RoomTypeConfig.js
packages/rocketchat-lib/lib/RoomTypeConfig.js
export const RoomSettingsEnum = { NAME: 'roomName', TOPIC: 'roomTopic', ANNOUNCEMENT: 'roomAnnouncement', DESCRIPTION: 'roomDescription', READ_ONLY: 'readOnly', REACT_WHEN_READ_ONLY: 'reactWhenReadOnly', ARCHIVE_OR_UNARCHIVE: 'archiveOrUnarchive', JOIN_CODE: 'joinCode' }; export class RoomTypeRouteConfig { co...
JavaScript
0.000001
@@ -2923,24 +2923,249 @@ n true;%0A%09%7D%0A%0A +%09canBeCreated() %7B%0A%09%09return Meteor.isServer ?%0A%09%09%09RocketChat.authz.hasAtLeastOnePermission(Meteor.userId(), %5B%60create-$%7B this._identifier %7D%60%5D) :%0A%09%09%09RocketChat.authz.hasAtLeastOnePermission(%5B%60create-$%7B this._identifier %7D%60%5D);...
4444fb0bf4b046f7aab0135ba57657d17edeac8b
Fix formatting.
docs/.vuepress/config.js
docs/.vuepress/config.js
const _ = require("lodash") const vueSlugify = require("vuepress/lib/markdown/slugify") const jf = require("jsonfile") const path = require("path") const packagePath = path.join(__dirname, "../../package.json") const version = jf.readFileSync(packagePath).version const versionWithLowDashs = version.replace(/\./g, "_")...
JavaScript
0.000017
@@ -6899,36 +6899,93 @@ %5B -%22token_alternative_matches%22, +%0A %22token_alternative_matches%22,%0A %22To @@ -7008,16 +7008,41 @@ Matches%22 +%0A %5D,%0A
d7389c9b0f1ff073f9edc5b53e13579474845304
delete space line
test/app.model-test.js
test/app.model-test.js
import expect from 'expect'; import React from 'react'; import dva from '../src/index'; import dvaM from '../src/mobile'; describe('app.model', () => { it('namespace: type error', () => { const app = dva(); expect(_ => { app.model({}); }).toThrow(/app.model: namespace should be defined/); expe...
JavaScript
0.001108
@@ -825,17 +825,16 @@ ique/);%0A -%0A %7D);%0A%0A
99dad6906144359eaad06deb2cd00d20e5995ee8
Add debugger to stop at edge case point.
src/js/messages.js
src/js/messages.js
if (typeof(messages) === "undefined") { var messages = {}; } else { console.error("There is already a global variable called \"messages\"."); } function aMsg(key, message){ if (arguments.length === 2 && typeof(key) === "string" && iStr(message)) { messages[key] = message; } else if (arguments.length ==...
JavaScript
0
@@ -493,16 +493,30 @@ ified%22;%0A + debugger;%0A %7D%0A va
161f380a59cac98ac33e460dfff99b6126e242a5
enable 'fork' as a valid ganacheOption to use within truffle develop (lib/commands/develop.js)
packages/truffle-core/lib/commands/develop.js
packages/truffle-core/lib/commands/develop.js
const emoji = require("node-emoji"); const mnemonicInfo = require("truffle-core/lib/mnemonics/mnemonic"); const command = { command: "develop", description: "Open a console with a local development blockchain", builder: { log: { type: "boolean", default: false } }, help: { usage: "tru...
JavaScript
0
@@ -2149,16 +2149,47 @@ e %7C%7C 0,%0A + fork: customConfig.fork,%0A mn
b28caec8eb1c88b130e779ee7cf615f88b54332f
Transform fillRule attribute to fill-rule
src/js/utils/ReactSVG.js
src/js/utils/ReactSVG.js
var DOMProperty = require('react/lib/DOMProperty'); var svgAttrs = ['dominant-baseline', 'shape-rendering', 'mask']; // hack for getting react to render svg attributes DOMProperty.injection.injectDOMPropertyConfig({ isCustomAttribute: function (attribute) { return svgAttrs.includes(attribute); } });
JavaScript
0.000001
@@ -210,16 +210,70 @@ onfig(%7B%0A + DOMAttributeNames: %7B%0A fillRule: 'fill-rule'%0A %7D,%0A isCust @@ -349,16 +349,92 @@ ibute);%0A + %7D,%0A Properties: %7B%0A fillRule: DOMProperty.injection.MUST_USE_ATTRIBUTE%0A %7D%0A%7D);%0A
579d4048b17ff3edd40dc6ca8e02e40a526703f4
improve test context with more describes
test/components/error_spec.js
test/components/error_spec.js
import PlayerError from '../../src/components/error' import Core from '../../src/components/core' import Events from '../../src/base/events' describe('PlayerError', function() { beforeEach(function() { this.core = new Core({}) this.errorData = { code: 'test_01', description: 'test error', ...
JavaScript
0.000424
@@ -410,24 +410,81 @@ %7D%0A %7D)%0A%0A + describe('when error method is called', function() %7B%0A it('trigge @@ -491,16 +491,22 @@ r ERROR +event with err @@ -516,36 +516,8 @@ data - when error method is called ', f @@ -520,32 +520,34 @@ ', function() %7B%0A + sinon.spy(th @@ -562,32 +562,34...
fea885ef9854e28c330fe47131ce14be87950383
Dumb merge conflicts are dumb
web/src/reducers/project-reducer.js
web/src/reducers/project-reducer.js
import { handleActions } from 'redux-actions' import moment from 'moment' const initialState = { projectData: {}, weekFrom: moment().startOf('isoWeek'), weekTo: moment().add(5, 'week').startOf('isoWeek'), isLoading: true, availableProjects: [], dirty: false } const projectReducer = handleActions({ ADD_P...
JavaScript
0.999543
@@ -1508,24 +1508,41 @@ %7D%0A %7D +,%0A dirty: true %0A %7D),%0A%0A SE @@ -1774,34 +1774,16 @@ Projects -,%0A dirty: false %0A %7D),%0A%0A
6fae94f63f5820d61e6e17e5d7c2599d02904de2
Update projects.js
src/js/projects.js
src/js/projects.js
function(){ var xhr = new XMLHttpRequest(); xhr.open("GET","https://scratch.mit.edu/site-api/projects/in/1000000/1/",true); xhr.responseType = "document"; xhr.onload = function() { if(this.status=='200'){var in=this.response.querySelectorAll("li"),i,out=document.querySelector("#scratch");for(i=0;i<in.length...
JavaScript
0.000001
@@ -1,16 +1,17 @@ +( function()%7B%0A va
f73b9ce04948cc674ea893295e237621ec1d7a50
Use HTTPS endpoint for GFS grib filter service in tests
packages/weacast-alert/test/config/default.js
packages/weacast-alert/test/config/default.js
var path = require('path') var containerized = require('containerized')() var API_PREFIX = '/api' module.exports = { port: process.env.PORT || 8081, apiPath: API_PREFIX, host: 'localhost', paginate: { default: 10, max: 50 }, authentication: { secret: 'b5KqXTye4fVxhGFpwMVZRO3R56wS5LNoJHifwgGO...
JavaScript
0
@@ -1061,16 +1061,17 @@ l: 'http +s ://nomad
f22c0410674345addcdca95e9b861791598fe504
update demo
packages/yhtml5-scripts/demo/spa/src/index.js
packages/yhtml5-scripts/demo/spa/src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import './global.css' import './index.css' import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { square, cube } from './features/treeShake'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWo...
JavaScript
0
@@ -235,16 +235,77 @@ eShake'; +%0A// const %7B square, cube %7D = require('./features/treeShake'); %0A%0AReactD
0e0c1f8741dc61bbdf292fdd6daf13075534c8a3
test update
test/companies.spec.js
test/companies.spec.js
/** * Avalara © 2017 * file: test/companies.spec.js */ import Avatax from '../lib/AvaTaxClient'; import { v4 } from 'node-uuid'; import loadCreds from './helpers/load_creds'; import nock from 'nock'; import companyGetResponse from './fixtures/company_get_response'; import companiesListResponse from './fixtures/comp...
JavaScript
0.000001
@@ -1330,17 +1330,17 @@ toEqual( -3 +2 );%0A
83b2889b4a6b8879d42b0deba98de7a4e004c9b6
add devel aliases for BWS urls
src/js/controllers/preferencesBwsUrl.js
src/js/controllers/preferencesBwsUrl.js
'use strict'; angular.module('copayApp.controllers').controller('preferencesBwsUrlController', function($scope, configService, isMobile, isCordova, go, applicationService ) { this.isSafari = isMobile.Safari(); this.isCordova = isCordova; this.error = null; this.success = null; var config = conf...
JavaScript
0
@@ -107,16 +107,21 @@ ($scope, +$log, configS @@ -400,24 +400,521 @@ unction() %7B%0A +%0A var bws;%0A switch (this.bwsurl) %7B%0A case 'prod':%0A case 'production':%0A bws = 'https://bws.bitpay.com/bws/api'%0A break;%0A case 'sta':%0A case 'staging':%0A ...
71371ab9e62e4aa71bbe5bcfff1d4e55411a49ce
Clear selected block after rotation to make result immediately visible
assets/src/components/block-mover/index.js
assets/src/components/block-mover/index.js
/** * This file is mainly copied from the default BlockMover component, there are some small differences. * The arrows' labels are changed and are switched. Also, dragging is enabled even if the element is the only block. **/ /** * External dependencies */ import { first, partial, castArray } from 'lodash'; impor...
JavaScript
0
@@ -3783,16 +3783,36 @@ BlocksUp +, clearSelectedBlock %7D = dis @@ -3841,16 +3841,17 @@ tor' );%0A +%0A %09%09return @@ -3853,16 +3853,50 @@ eturn %7B%0A +%09%09%09onDragEnd: clearSelectedBlock,%0A %09%09%09bring
5d640926b721a0a7ac203ac90d761078370a3a9d
Set operator to 'and' for refinementLists
assets/tnd-search/instantsearch/widgets.js
assets/tnd-search/instantsearch/widgets.js
let timerId export let tndWidgets = { searchBox: { queryHook(query, refine) { clearTimeout(timerId); timerId = setTimeout(() => refine(query), 500); }, }, hits: { transformItems(items) { return items.map(item => ({ ...item, type: item.type.toUpperCase(), })); ...
JavaScript
0.000004
@@ -630,16 +630,38 @@ desc%22%5D,%0A + operator: 'and'%0A %7D,%0A
c2c051e06f04268686874b574466cb952492a2e3
Update to the lastmodified-tracking sample.
lastmodified-tracking/index.js
lastmodified-tracking/index.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 appli...
JavaScript
0
@@ -749,40 +749,20 @@ rl') -);%0A%0Afunction touch(context) %7B%0A +, 'admin');%0A ref. @@ -804,89 +804,48 @@ en') -, function(error) %7B%0A if (error) %7B%0A context.done(error);%0A %7D else +);%0A%0Aexports.touch = function(context) %7B%0A - co @@ -903,20 +903,16 @@ ghts');%0A - ref.c...
5b7928d284e5c4b69d91d3e82e36ae0f7d5d2030
Fix using `endsWith` method
test/entry/snapshot.js
test/entry/snapshot.js
import * as allIsFunctions from '../../src/utils/is' import { create } from '../../src/entry/instance' import { validateTypeOf } from '../../tools/validateBundle' /** * Based on an object with factory functions, create the expected * structures for ES6 export and a mathjs instance. * @param {Object} factories * @r...
JavaScript
0.000097
@@ -155,16 +155,66 @@ eBundle' +%0Aimport %7B endsWith %7D from '../../src/utils/string' %0A%0A/**%0A * @@ -1464,21 +1464,16 @@ if ( -name. endsWith @@ -1473,16 +1473,22 @@ ndsWith( +name, 'Node'))
5e36a514b4651795d821633e5dde449b0d833c0a
Fix console promise test
test/html/js/console/index.js
test/html/js/console/index.js
import sinon from 'sinon'; import chai from 'chai'; const expect = chai.expect; import * as fetch from '../../../../src/functions/fetch.js'; import checkConsoleLog from '../../../../src/html/js/console'; describe('html', function() { describe('test console promise', function() { let sandbox; beforeEach(func...
JavaScript
0.000003
@@ -526,220 +526,559 @@ nst -result = %7B%0A body: 'function something(text) %7B console.log(%22not minified javascript file%22); %7D',%0A %7D;%0A%0A sandbox.stub(fetch, 'fetch').returns(result);%0A%0A return new Promise((resolve, reject) =%3E %7B +html = %7B%0A body: '%3Chtml%3E%3Chead%3...
907b327dc1fdfac17e2068e4e63467d77660a50d
Add support for loading zipped .nes files.
src/lib/core/readers/abstract-reader.js
src/lib/core/readers/abstract-reader.js
import { loadModule } from "../utils/system" var JSZip = loadModule({global: "JSZip", commonjs: "jszip"}); const ZIP_SIGNATURE = [0x50, 0x4B, 0x03, 0x04]; //========================================================= // Base class of readers //========================================================= export class Abs...
JavaScript
0
@@ -1610,16 +1610,17 @@ *%5C.nes$/ +i );%0A
ad6dd4f61030228a81269c459978d50d40175075
reset browserwidth again after last test
test/mobileResponsive.spec.js
test/mobileResponsive.spec.js
'use strict'; jasmine.getFixtures().fixturesPath = 'base/test/fixtures'; var createWidget = require('./utils/createWidget'); var mockAjax = require('./utils/mockAjax'); var interact = require('./utils/commonInteractions'); /** * Tests for mobile and responsive */ describe('Mobile & responsive', function() { bef...
JavaScript
0
@@ -219,16 +219,35 @@ ons');%0A%0A +var browserWidth;%0A%0A /**%0A * T @@ -427,24 +427,62 @@ Ajax.all();%0A + browserWidth = $('body').width();%0A $('body' @@ -557,16 +557,51 @@ tall();%0A + $('body').width(browserWidth);%0A %7D);%0A%0A
3cec35be026b57b824529378db691591e0ad5cf3
Fix description comment
src/lib/storage/GuildStorageRegistry.js
src/lib/storage/GuildStorageRegistry.js
'use babel'; 'use strict'; import { Collection } from 'discord.js'; // Handle loading all GuildStorage objects export default class GuildStorageRegistry extends Collection { constructor() { super(); } // Allow guild lookup by Guild object or id string get(guild) { return super.get(guild.id ? guild.id : gui...
JavaScript
0.000008
@@ -77,15 +77,18 @@ dle -loading +storage of all
4d16e61121a31f6cd326545067f7bd2d42a18c69
Create custom Directive productButton
public/js/app.js
public/js/app.js
"use strict"; (function() { var app = angular.module("gemStore", []); app.controller("StoreController", function () { this.product = gems; }); app.controller("ReviewController", function () { this.review = {}; this.addReview = function(product) { this.review.createdOn = Date.now(); // retu...
JavaScript
0
@@ -1781,16 +1781,152 @@ %0A %7D);%0A%0A + app.directive(%22productButton%22, function () %7B%0A return %7B%0A restrict: %22E%22,%0A templateUrl: %22product-button.html%22%0A %7D;%0A %7D);%0A%0A var ge
48b502a34720e40ba769ef84481b0b8fe0206e2a
Enable chrome app feature flag
src/lib/feature-flags.js
src/lib/feature-flags.js
const isStaging = () => process.env.SCRATCH_ENV === 'staging'; const flagInUrl = flag => { const url = (window.location && window.location.search) || ''; return url.indexOf(`${flag}=true`) !== -1; }; module.exports = { CHROME_APP_RELEASED: isStaging() && flagInUrl('CHROME_APP_RELEASED') };
JavaScript
0
@@ -1,12 +1,55 @@ +// eslint-disable-next-line no-unused-vars%0A const isStag @@ -100,16 +100,59 @@ ging';%0A%0A +// eslint-disable-next-line no-unused-vars%0A const fl @@ -337,55 +337,12 @@ ED: -isStaging() && flagInUrl('CHROME_APP_RELEASED') +true %0A%7D;%0A
916256ed1260e9657f971c2a08a19622279d512d
Add onEnter to react-router
public/js/app.js
public/js/app.js
/** Coupley entry point for webpack */ //es6 imports import React from 'react'; import ReactDOM from 'react-dom'; //Router components import { Router, Route, Link, hashHistory } from 'react-router'; import Header from './components/base/Header.react'; import Home from './components/Home.react'; import Profile from ...
JavaScript
0
@@ -661,16 +661,215 @@ eact';%0A%0A +function requireAuth(nextState, replace) %7B%0A if(! localStorage.getItem('apitoken')) %7B%0A replace(%7B%0A pathname: '/login',%0A state: %7B nextPathname: nextState.location.pathname %7D%0A %7D)%0A %7D%0A%7D%0A%0A ReactDOM @@ -1044,16 +1044,39 @@ %7BHeader%7D ...
446e1665894761e95a4ff279fceafd193ddc93d5
fix macOS normalization test (#1916)
test/integration/case_or_encoding_change.js
test/integration/case_or_encoding_change.js
/* @flow */ /* eslint-env mocha */ const should = require('should') const configHelpers = require('../support/helpers/config') const cozyHelpers = require('../support/helpers/cozy') const pouchHelpers = require('../support/helpers/pouch') const TestHelpers = require('../support/helpers') describe('Case or encoding c...
JavaScript
0
@@ -2613,38 +2613,40 @@ ' +e %5Cu0 -0e9 +301 /' // ' -%C3%A9 +e%CC%81 /'%0A
7ce2a1a7d068fcb55f1d594d0a9d7d40084f895f
Remove "custom favicon" test
test/integration/middleware.favicon.test.js
test/integration/middleware.favicon.test.js
var _ = require('lodash'); var request = require('request'); var Sails = require('../../lib').Sails; var assert = require('assert'); var fs = require('fs-extra'); var request = require('request'); var appHelper = require('./helpers/appHelper'); var path = require('path'); describe('middleware :: ', function() { des...
JavaScript
0.000002
@@ -1399,1005 +1399,8 @@ );%0A%0A - describe('with a favicon file in the assets folder', function() %7B%0A%0A var customFaviconPath = path.resolve(__dirname, 'fixtures/favicon.ico');%0A before(function(done) %7B%0A console.log(customFaviconPath);%0A fs.copySync(customFaviconPath, path.resolv...
b84f8e2518b036edfeb43fadd9b08de4c9081d18
update unit test
test/inventory/inventory-movement/report.js
test/inventory/inventory-movement/report.js
require("should"); var InventoryMovement = require("../../data-util/inventory/inventory-movement-data-util"); var helper = require("../../helper"); var moment = require("moment"); var validate = require("dl-models").validator.inventory.inventoryMovement; var InventoryMovementManager = require("../../../src/managers/in...
JavaScript
0
@@ -1558,690 +1558,8 @@ );%0A%0A -it('#03. should success when create report', function (done) %7B%0A var info = %7B%7D;%0A info.storageId = createdData.storageId;%0A info.type = createdData.type;%0A info.productId = createdData.productId;%0A info.shiftIm = createdData.shiftIm;%0A info.dateFrom = mom...
8eaeeb09fe7dd3909d7c3a662ad4ca9ae6e75f49
purge lint violations
server/09-typescript/temp.js
server/09-typescript/temp.js
var FooBar = (function () { function FooBar() { this.name = 'wil'; } return FooBar; }());
JavaScript
0
@@ -1,8 +1,10 @@ +// var FooB @@ -19,24 +19,26 @@ nction () %7B%0A +// function @@ -49,16 +49,18 @@ Bar() %7B%0A +// @@ -82,14 +82,18 @@ l';%0A +// %7D%0A +// @@ -107,14 +107,16 @@ FooBar;%0A +// %7D());%0A
342087edcadd7cbbb5393584e02247eb08981121
Add missing semicolon
website/static/js/mithrilHelpers.js
website/static/js/mithrilHelpers.js
'use strict'; var $ = require('jquery'); /* Send with ajax calls to work with api2 */ var apiV2Config = function (options) { var defaults = { withCredentials: true } var opts = $.extend({}, defaults, options); return function (xhr) { xhr.withCredentials = opts.withCredentials; x...
JavaScript
0.999999
@@ -175,16 +175,17 @@ ue%0A %7D +; %0A var
3108048b778c48575cb53e252f6594f2b90dd88d
fix master?
test/protractorWithoutRestartBrowserConf.js
test/protractorWithoutRestartBrowserConf.js
/* * Copyright 2014 TWO SIGMA OPEN SOURCE, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
JavaScript
0
@@ -2630,32 +2630,34 @@ torial.js',%0A +// 'tests/tutorials
3f7fbad642da740ee4231ba4b9ebe038f81198e4
Build Comment component
public/js/app.js
public/js/app.js
/* CommentBox */ var CommentBox = React.createClass({ render: function() { return ( <div className="commentBox"> <h1>Comments</h1> <CommentList /> <CommentForm /> </div> ); } }); /* CommentList */ var CommentList = React.createClass({ render: function() { r...
JavaScript
0
@@ -369,41 +369,423 @@ -Hello, world! I am a CommentList. +%3CComment author=%22Pete Hunt%22%3EThis is one comment%3C/Comment%3E%0A %3CComment author=%22Jordan Walke%22%3EThis is *another* comment%3C/Comment%3E%0A %3C/div%3E%0A );%0A %7D%0A%7D);%0A%0A/*%0A Comment%0A */%0A%0Avar Comment = React.c...
ede8c293fc5f7a1c02c8d20f211b90536beb8515
Fix for #1643
public/js/ff/accounts/reconcile.js
public/js/ff/accounts/reconcile.js
/* * reconcile.js * Copyright (c) 2017 thegrumpydictator@gmail.com * * This file is part of Firefly III. * * Firefly III is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License,...
JavaScript
0
@@ -2202,24 +2202,26 @@ v);%0A +// cleared.push @@ -4552,16 +4552,19 @@ e range) +%0A * and add @@ -4770,32 +4770,34 @@ ) %7B%0A +// selectedAmount =
67e8209c380765347f0d1848ede119684530e603
Use the access token for all github requests
public/js/app.js
public/js/app.js
"use strict"; var GitHubAPI = function(accessToken, org, repo) { var API_URL = 'https://api.github.com/repos/' + org + '/' + repo; return { getBranch: function(branchName) { return $.get(API_URL + '/branches/' + branchName); }, getTree: function(sha) { return $.get(API_URL + '/git/trees/...
JavaScript
0
@@ -132,32 +132,515 @@ po;%0A%0A return %7B%0A + callApi: function(method, endpoint, data) %7B%0A return $.ajax(%7B%0A method: method,%0A url: API_URL + endpoint,%0A headers: %7B%0A 'Authorization': 'token ' + accessToken,%0A 'Content-Type': 'application/json'%0A ...
ad826588256fb82001c3685f88111433ff371745
Clarify architecture detection for server-side rendering
SvelteCompiler.js
SvelteCompiler.js
import htmlparser from 'htmlparser2'; import sourcemap from 'source-map'; import svelte from 'svelte'; SvelteCompiler = class SvelteCompiler extends CachingCompiler { constructor(options = {}) { super({ compilerName: 'svelte', defaultCacheSize: 1024 * 1024 * 10 }); this.options = options; ...
JavaScript
0.000009
@@ -2495,16 +2495,89 @@ %7D;%0A%0A + // If the component was imported by server code, compile it for SSR.%0A if (
579bbd44b373cb38f385a6c2832bc291c69cce77
Add عدل special form
public/js/qlb.js
public/js/qlb.js
// TODO fold these into jx.js? function loadJS(url) { var scriptElement = document.createElement('script') scriptElement.setAttribute("type","text/javascript") scriptElement.setAttribute("src", url) document.getElementsByTagName("head")[0].appendChild(scriptElement) return scriptElement; } function loadCSS(...
JavaScript
0
@@ -838,16 +838,138 @@ %5Bsym%5D %7D%0A + this.envForSym = function (sym) %7B return this.table%5Bsym%5D === undefined ? (this.outer ? this.outer : undefined) : this %7D%0A this.m @@ -2650,16 +2650,245 @@ env))%0A%0A + %7D else if(first == %22%D8%B9%D8%AF%D9%84%22) %7B%0A var sym = rest%5B0%5D,%0...
00811d4f6eb61d2bf8bf6e261549715217d9b1d2
fix typos
demo/app.js
demo/app.js
import Carousel from '../src/index'; import React from 'react'; import ReactDom from 'react-dom'; const colors = ['7732bb', '047cc0', '00884b', 'e3bc13', 'db7c00', 'aa231f']; class App extends React.Component { constructor() { super(...arguments); this.state = { slideIndex: 0, length: 6, w...
JavaScript
0.999974
@@ -630,29 +630,28 @@ s.handleZoom -Chang +Scal eChange = th @@ -659,29 +659,28 @@ s.handleZoom -Chang +Scal eChange.bind @@ -797,29 +797,28 @@ handleZoom -Chang +Scal eChange(even @@ -6055,21 +6055,20 @@ ndleZoom -Chang +Scal eChange%7D
11c65ef8aa44a0740b87ee8c7108318dd4ec22e5
remove path
lib/services/travis-service.js
lib/services/travis-service.js
const bindAll = require("lodash/fp/bindAll") const TravisRepo = require("../models/travis-repo") const fs = require("fs-extra") const path = require("path") class TravisService { constructor({ githubToken, travisToken, travisEnabled, travisJsonFile, spinner }) { bindAll(Object.getOwnPropertyNames(TravisService.p...
JavaScript
0.000001
@@ -124,37 +124,8 @@ ra%22) -%0Aconst path = require(%22path%22) %0A%0Acl
f8d9c0e9c58831a7f41e11863256a662cfdd01c2
Test for null instead of relying on type coercion in lb.base.log.print()
src/lb.base.log.js
src/lb.base.log.js
/* * Namespace: lb.base.log * Logging Adapter Module for Base Library * * Author: * Eric Bréchemier <legalbox@eric.brechemier.name> * * Copyright: * Legal-Box SAS (c) 2010-2011, All Rights Reserved * * License: * BSD License * http://creativecommons.org/licenses/BSD/ * * Version: * 2011-01-05 */ /*requi...
JavaScript
0
@@ -301,12 +301,12 @@ 11-0 -1-05 +4-12 %0A */ @@ -845,16 +845,23 @@ logger + = null ;%0A%0A fun @@ -1215,15 +1215,21 @@ if ( -! logger +===null )%7B%0A
94d647d33efecb2f0020729c52e862d272cbfd1f
add passing test case
tests/lib/rules/jsx-no-comment-textnodes.js
tests/lib/rules/jsx-no-comment-textnodes.js
/** * @fileoverview Tests for jsx-no-comment-textnodes * @author Ben Vinegar */ 'use strict'; // ------------------------------------------------------------------------------ // Requirements // ------------------------------------------------------------------------------ const RuleTester = require('eslint').Rul...
JavaScript
0.000001
@@ -3283,24 +3283,180 @@ e%3E',%0A %7D,%0A + %7B%0A code: %60%0A %3Cdiv%3E%0A %3Cspan className=%22pl-c%22%3E%3Cspan className=%22pl-c%22%3E&#47;&#47;%3C/span%3E ...%3C/span%3E%3Cbr /%3E%0A %3C/div%3E%0A %60,%0A %7D,%0A %5D),%0A%0A inv
da3cde83a4cdb7daf10531d2cd44fe00c9034486
Add tests for paranoid cache key (#62)
test/unit/getCacheKey.test.js
test/unit/getCacheKey.test.js
import {getCacheKey} from '../../src'; import expect from 'unexpected'; import {connection} from '../helper'; describe('getCacheKey', function () { const User = connection.define('user') , Task = connection.define('task') , association = User.hasMany(Task); it('handles circular structures', function () { ...
JavaScript
0
@@ -642,32 +642,51 @@ order:undefined%7C +paranoid:undefined%7C raw:undefined%7Cse @@ -978,16 +978,35 @@ er:null%7C +paranoid:undefined%7C raw:unde @@ -1362,16 +1362,35 @@ foo,bar%7C +paranoid:undefined%7C raw:unde @@ -1768,32 +1768,51 @@ order:undefined%7C +paranoid:undefined%7C raw:undefined%7Cse @@ -2130,32 ...
fee207d5aae965cdc7241dbcc77f06f8c1ef4dd0
コメントをSJISからUTF-8に変更
phantomjs-script.js
phantomjs-script.js
var system = require('system'); var args = system.args; var page = require('webpage').create(); page.open(args[1] + args[2] + '#fight=' + args[3] + '&type=damage-done', function(status) { page.includeJs('http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js', function() { setTimeout(function () { ...
JavaScript
0.000078
@@ -511,13 +511,15 @@ %09// -eX%CC%92l%E6%93%BE +%E5%90%84%E3%80%85%E3%81%AE%E5%80%A4%E3%82%92%E5%8F%96%E5%BE%97 %0A%09fo @@ -1090,17 +1090,16 @@ %5Cn%22;%0A%09%7D%0A -%09 %0A%09// tot @@ -1104,11 +1104,13 @@ otal -%CC%92l%E6%93%BE +%E3%81%AE%E5%80%A4%E3%82%92%E5%8F%96%E5%BE%97 %0A%09%7B%0A
45e209d8b21ffda5e4f175ff747ec321a18a7dd8
add actual detection. quelle surprise, my first implementation is bugged on this.
tests/structuredheadings/presetdiscovery.js
tests/structuredheadings/presetdiscovery.js
/* eslint-disable */ /* bender-tags: editor,unit */ /* bender-ckeditor-plugins: wysiwygarea,structuredheadings,toolbar,basicstyles,dialog,richcombo,undo */ /* eslint-enable */ // Clean up all instances been created on the page. (function () { bender.editor = { allowedForTests: "h1; h2; h3; h4; h5; p" }; fu...
JavaScript
0
@@ -1445,24 +1445,355 @@ r)%0A );%0A + %7D,%0A%0A %22can detect based off of one level%22: function () %7B%0A var bot = this.editorBot;%0A var editor = bot.editor;%0A bot.setHtmlWithSelection(%0A %22%3Ch1 class=%5C%22autonumber autonumber-0 autonumber-N%5C%22%3E%5Efoo%3C/h1%3E%22%0A ...
b6d1dc9923447f535a80324c68f71fea3f285834
Change octal literal formatting?
server/src/modules/Logger.js
server/src/modules/Logger.js
var fs = require("fs"); var util = require('util'); var EOL = require('os').EOL; var log = ""; module.exports.toString = toString; module.exports.debug = debug; module.exports.info = info; module.exports.warn = warn; module.exports.error = error; module.exports.err = error; module.exports.fatal = fatal; module.exports...
JavaScript
0
@@ -3025,15 +3025,15 @@ ite( -' +%22 %5C033c -' +%22 );%0A