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
c3c8919952fc975609506050f50dc57cf2008eb5
Include groupBy in main
src/main.js
src/main.js
// build-dependencies: awaiting // build-dependencies: boolean // build-dependencies: buffer // build-dependencies: bufferingthrottle // build-dependencies: bus // build-dependencies: callback // build-dependencies: combine // build-dependencies: concat // build-dependencies: core // build-dependencies: debounce // bui...
JavaScript
0
@@ -840,16 +840,47 @@ rompoll%0A +// build-dependencies: groupby%0A // build
7516e1831ecfe686db4378ebcf4f955422461470
Add debounce function
lib/utils.js
lib/utils.js
function noop() {} exports.noop = noop; function bind(func, context) { return function boundFunc() { return func.apply(context, arguments); } } exports.bind = bind; function encodeHTMLEntities(str) { str = str.replace(/&/g, '&') .replace(/'/g, ''') .replace(/"/...
JavaScript
0.000003
@@ -179,16 +179,484 @@ bind;%0A%0A +function debounce(func, wait, immediate) %7B%0A var timeout;%0A%0A return function debouncedFunc() %7B%0A var callNow = immediate && !timeout,%0A context = this,%0A args = arguments;%0A%0A clearTimeout(timeout);%0A%0A timeout = setTi...
1d876a87c1fbe60b7c19a53bcc61bcb8af5b4f50
fix nasty bug in jsonAttribute which only kicks in if you're not using the single:true option
lib/utils.js
lib/utils.js
var _ = require('lodash'); var he = require('he'); var extend = require('extend'); _.str = require('underscore.string'); var XRegExp = require('xregexp').XRegExp; /** * utils * @augments Augments the apos object with short methods providing constantly used * functionality when developing Apostrophe, such as escapin...
JavaScript
0
@@ -3425,16 +3425,17 @@ %5C%22/g, '& +# 34;');%0A
3c035e5198fb4a5caf52395901d991dfbe450b8f
update fingerprint method
lib/getComponentFingerprint.js
lib/getComponentFingerprint.js
"use strict"; /** * Get a fingerprint of the component. * * @param {Object} component * @return {String} */ function getComponentFingerprint(component) { return component._rootNodeID + '__' + component._mountDepth; } module.exports = getComponentFingerprint;
JavaScript
0.000001
@@ -176,10 +176,12 @@ ent. -_r +getR ootN @@ -185,16 +185,18 @@ otNodeID +() + '__' @@ -211,10 +211,12 @@ ent. -_m +getM ount @@ -220,16 +220,18 @@ untDepth +() ;%0A%7D%0A%0Amod
c3a7d1221b15336948d586f69330f258f314393f
add context to response body
lib/w3cjs.js
lib/w3cjs.js
var request = require('superagent'); var proxyRequest = require('superagent-proxy')(request); var fs = require('fs'); var w3cCheckUrl = 'http://validator.w3.org/check'; var defaultOutput = 'json'; var defaultDoctype = null; var defaultCharset = null; var defaultProxy = null; var defaultCallback = function (res) { c...
JavaScript
0
@@ -691,16 +691,35 @@ s.input; +%0A%09var context = ''; %0A%0A%09var t @@ -777,16 +777,35 @@ tring';%0A +%09%09context = input;%0A %09%7D else @@ -924,16 +924,34 @@ emote';%0A +%09%09context = file;%0A %09%7D else @@ -975,32 +975,32 @@ = 'undefined')%7B%0A - %09%09type = 'local' @@ -1001,16 +1001,34 @@ local...
230fd0a8c494d3000a49a71f7165e2207a9d8a2e
Update base-idea.js
base-idea.js
base-idea.js
/** * THIS FUNCTION IS NOT THE FINAL POLYFILL... is just a simple function containing a base idea!!!!!!!!! * * * Register attribute changes in the DOM (yes... should be a plugin) * @author Andres Garcia oagarciar@gmail.com * @param {HTMLElement} element DOM...
JavaScript
0
@@ -117,16 +117,96 @@ !!!!!!!%0A + * %0A * What's different here??? -%3E Intended ti support ALSO IE8%0A
24b21d23bab45a5fabffbe905986271a1677b73e
Set '*' as default value for swimlane and list name in card move action
client/components/rules/actions/boardActions.js
client/components/rules/actions/boardActions.js
BlazeComponent.extendComponent({ onCreated() {}, boards() { const boards = Boards.find( { archived: false, 'members.userId': Meteor.userId(), _id: { $ne: Meteor.user().getTemplatesBoardId(), }, }, { sort: { sort: 1 /* boards default sorting */...
JavaScript
0
@@ -2250,32 +2250,39 @@ laneName').value + %7C%7C '*' ;%0A cons @@ -2314,32 +2314,39 @@ listName').value + %7C%7C '*' ;%0A cons
ea5b1bd71bb4244a564fed9a4c437c4c5a788446
Remove spriteIndex property
src/pasi.js
src/pasi.js
function Pasi(params) { this.sheet = params.spriteSheet; this.x = params.x; this.y = params.y; this.acceleration = params.acceleration; this.damping = params.damping; this.jumpSpeed = params.jumpSpeed; this.tiltFactor = params.tiltFactor; this.yPrev = this.y; this.vx = 0; this.v...
JavaScript
0.000001
@@ -346,34 +346,8 @@ 0;%0A - this.spriteIndex = 0;%0A
677730294e565d304d8b4d948ad2f07f05c4e664
Create ./dist if not exist in build.js
bin/build.js
bin/build.js
var fs = require('fs'), path = require('path'); var stream = require('stream'); var browserify = require('browserify'); var babelify = require('babelify').configure({loose: 'all'}); process.chdir(path.resolve(__dirname, '..')); // build for web browserify({standalone: 'YAtern', debug: true}) .transform(babelify)...
JavaScript
0.000002
@@ -224,16 +224,103 @@ ..'));%0A%0A +// make ./dist if not exist%0Aif (!fs.existsSync('dist')) %7B%0A fs.mkdirSync('dist');%0A%7D%0A%0A // build @@ -584,9 +584,9 @@ rn.js')) -%0A +;
c41299a79479f67e4730dfe76e52f33e78e7c069
Fix n command
bin/index.js
bin/index.js
#!/usr/bin/env node 'use strict' var _pkg = require('../package.json') require('update-notifier')({pkg: _pkg}).notify() require('meow')(_pkg) var path = require('path') var which = require('which') var semver = require('semver') var eachAsync = require('each-async') var spawn = require('child_process').spawn var nod...
JavaScript
0.000694
@@ -486,15 +486,8 @@ n: %5B -'use', node
d2697030d69226792e6ba4060c7dd9f7f8b76d50
Fix flush buffer test
test/FluentLogger.test.js
test/FluentLogger.test.js
var root = __dirname + "/../"; var path = require('path'); var net = require('net'); var util = require('util'); var fluent = require(path.join(root, 'lib/FluentLogger')); var should = require('should'); var testPort = 24242; var testHost = '127.0.0.1'; describe('FluentLogger', function() { var server; beforeEac...
JavaScript
0
@@ -3085,32 +3085,59 @@ unction(done) %7B%0A + this.timeout(10000);%0A var logger
3723626dc0554dcd88c4ec943633e404bc984714
Fix const => let
test/MongooseConnector.js
test/MongooseConnector.js
const Code = require('code'); const Lab = require('lab'); const rewire = require('rewire'); const sinon = require('sinon'); const EventEmitter = require('events').EventEmitter; const MongooseConnector = rewire('../lib/MongooseConnector'); // This is required to trick lab coverage const MongooseConnector2 = require('../...
JavaScript
0.000003
@@ -274,20 +274,18 @@ overage%0A -cons +le t Mongoo
a657c3f32fa2baaf9b1509b350ca8469d16c6dbf
Stop livereload server after closing process
bin/serve.js
bin/serve.js
#!/usr/bin/env node const http = require('http') const url = require('url') const path = require('path') const fs = require('fs') const exec = require('child_process').execSync const inst = require('commander') const open = require('open') const mime = require('mime') const colors = require('colors') const exists = ...
JavaScript
0
@@ -2142,16 +2142,104 @@ serSync) +%0A%0A process.on('SIGINT', () =%3E %7B%0A browserSync.exit()%0A process.exit(0)%0A %7D) %0A %7D%0A%0A
203fbbbc8cccfbbc028a99c66cf563b1ea735d83
Fix eslint error
bin/sharp.js
bin/sharp.js
#!/usr/bin/env node /* eslint-disable import/no-extraneous-dependencies, no-console, no-void */ /** * Resize images based on config json to build all responsive image sizes. * * @file * @module * * @author hello@ulrichmerkel.com (Ulrich Merkel), 2017 * @version 0.0.4 * * @see {@link http://sharp.dimens.io/} *...
JavaScript
0.000088
@@ -6821,14 +6821,8 @@ rror -, info ) %7B%0A
9dcef5199b19d393d11515f0de17511cd83674c6
fix filename in windows can not include ?
bin/shuji.js
bin/shuji.js
#!/usr/bin/env node /** * shuji (周氏) * https://github.com/paazmaya/shuji * * Reverse engineering JavaScript and CSS sources from sourcemaps * * Copyright (c) Juga Paazmaya <paazmaya@yahoo.com> (https://paazmaya.fi) * Licensed under the MIT license */ 'use strict'; const path = require('path'); const optiona...
JavaScript
0
@@ -4221,24 +4221,72 @@ tent%5D) =%3E %7B%0A + filename = filename.replace(/(%5C?%5CS+)/, '');%0A const ou
6118624c62a6c71cbad919b20134baa010d9fe6d
Update blasy.min.js
blasy.min.js
blasy.min.js
// Restore placeholder images for modern browsers for(var _pics=document.getElementsByClassName("b-lazy"),i=0;i<_pics.length;i++)_pics[i].setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="); /*! [be]Lazy.js - v1.2.2 - 2014.05.04 - A lazy loading and multi-serving image script ...
JavaScript
0
@@ -232,10 +232,8 @@ %0A/*! -%0A %5Bbe @@ -373,17 +373,17 @@ dk/blazy -%0A + */%0A(func
d290c85fd1456fbf63bb9e037d3c4f2f7e6b6327
fix browser error msg
bricoleur.js
bricoleur.js
// BRICOLEUR var conf = require('./__conf.json') var fern = require('fern') var proc = process.title // node or browser module.exports = function Bricoluer (multiLevel) { var muxDemux var _ = {} // PROCESS SCOPE var WILDS = {} WILDS['_'] = function (d, emit) {// _ GHOST SPACE var name = getPath(d.key...
JavaScript
0.000001
@@ -339,17 +339,16 @@ opts ?%0A -%0A // k @@ -572,39 +572,22 @@ -var context = getPath(d.key)%5B1%5D +console.log(d) %0A%0A @@ -645,17 +645,18 @@ fns%0A + %0A - %7D%0A%0A W @@ -975,16 +975,17 @@ ':'+uid%0A +%0A if ( @@ -1145,24 +1145,25 @@ ame%5D %0A %7D%0A +%0A %7D%0A%0A WILDS ...
aca121c77f05c89288fbf6a19e26e9cae5d3960f
update build info
buildInfo.js
buildInfo.js
/** * Created by sam on 13.11.2016. */ const spawnSync = require('child_process').spawnSync; const path = require('path'); const resolve = path.resolve; const fs = require('fs'); function dependencyGraph(cwd) { const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm'; const r = spawnSync(npm, ['ls', '--pr...
JavaScript
0
@@ -923,11 +923,11 @@ ;%0A -var +let r;%0A @@ -3394,16 +3394,772 @@ %0A %7D%0A%7D%0A%0A +function resolveScreenshot() %7B%0A const f = resolve(__dirname, 'media/screenshot.png');%0A if (!fs.existsSync(f)) %7B%0A return null;%0A %7D%0A const buffer = new Buffer(fs.readFileSync(f)).toString('base64');%0A r...
173920024a5058d23c8efced3470fd7809e25d98
use exp.host for API endpoints
js/Api/ApolloClient.js
js/Api/ApolloClient.js
import ApolloClient, { createNetworkInterface } from 'apollo-client'; import createAuthAwareNetworkInterface from './createAuthAwareNetworkInterface'; import Auth0Api from './Auth0Api'; import AuthTokenActions from '../Flux/AuthTokenActions'; function getIdToken() { let Store = require('../Flux/ExStore').default; ...
JavaScript
0
@@ -1434,23 +1434,16 @@ s:// -getexponent.com +exp.host /--/
9e3eded04dd0c4c4687e9ef16c025e6c4ce375e0
remove invisible class if not jp
src/javascript/binary/websocket_pages/user/new_account/virtual_acc_opening.js
src/javascript/binary/websocket_pages/user/new_account/virtual_acc_opening.js
const localize = require('../../../base/localize').localize; const Client = require('../../../base/client').Client; const url_for = require('../../../base/url').url_for; const template = require('../../../base/utility').template; const getResidence = requi...
JavaScript
0.000101
@@ -1050,24 +1050,78 @@ esidence();%0A + $('#residence').removeClass('invisible');%0A
84daba7327db96bc685449400fc895f63c914ae4
fix canColumnBeTreatedAsAnAxiom (#3755)
src/foam/nanos/column/CommonColumnHandler.js
src/foam/nanos/column/CommonColumnHandler.js
foam.CLASS({ package: 'foam.nanos.column', name: 'CommonColumnHandler', methods: [ function returnColumnNameForNLevelName(context, col, n) { if ( ! col.split ) return null; var propNames = col.split('.'); if ( n === -1 ) { if ( propNames.length === 0 ) n = 0; else ...
JavaScript
0
@@ -1822,16 +1822,52 @@ (col) %7C%7C + foam.core.Action.isInstance(col) %7C%7C foam.Ob
218bb6795a2c20840e893520409c4fc3bd94d657
Fix linting
lib/authorizer/ntlm.js
lib/authorizer/ntlm.js
/** * @fileOverview * * Implements the NTLM over HTTP specification: [MS-NTHT] https://msdn.microsoft.com/en-us/library/cc237488.aspx * Also see [MS-NLMP]: https://msdn.microsoft.com/en-us/library/cc236621.aspx * * @note NTLM supports a number of different variations, where an actual TCP connection is signed etc....
JavaScript
0.000004
@@ -776,17 +776,16 @@ assword' -, %0A %7D,%0A
b0b399165413f9532b82b50a9676a29cf0fd2556
Fix typo in legal-templates.js HTML markup
legal-copy/legal-templates.js
legal-copy/legal-templates.js
module.exports.templateBegin = ` <!doctype html> <html> <head> <title>Test Pilot</title> <link rel="shortcut icon" href="/static/images/favicon.ico"> <link rel="stylesheet" href="https://code.cdn.mozilla.net/fonts/fira.css"> <link rel="stylesheet" href="/static/styles/main.css"> <meta charset="utf-...
JavaScript
0.998987
@@ -548,9 +548,8 @@ l20n -' %22%3E%0A%0A @@ -1874,17 +1874,16 @@ %3C/script -s %3E%0A%3C/body
3c730631a2755101e0b48a78a53e4b5694e853b8
Add hook
lib/commands/deploy.js
lib/commands/deploy.js
module.exports = { name: 'deploy', description: 'Deploys an ember-cli app', works: 'insideProject', availableOptions: [ { name: 'environment', type: String, default: 'development', aliases: ['e',{'dev' : 'development'}, {'prod' : 'production'}] }, { name: 'deploy-config-file', type: String, default: 'c...
JavaScript
0.000001
@@ -707,24 +707,45 @@ hooks: %5B%0A + 'configure',%0A 'wil
d4ced43fdab7e1d67505b793119071f54ba1b52e
Rename callback to see if this #37 was caused by a namespace conflict (#41)
Scripts/GetHeadersEWS.js
Scripts/GetHeadersEWS.js
/** * GetHeaderEWS.js * * This file has all the methods to get PR_TRANSPORT_MESSAGE_HEADERS * from the current message via EWS. * * To use this file, your page JS needs to implement the following methods: * * - updateStatus(message): Should be a method that displays a status to the user, * preferably with...
JavaScript
0
@@ -959,16 +959,19 @@ callback +EWS );%0A %7D @@ -1119,16 +1119,19 @@ callback +EWS (asyncRe
40997f4d8df4957c67a664261b7687d812d04589
fix test (#822)
test/e2e/001.init.spec.js
test/e2e/001.init.spec.js
const { Application } = require('spectron') const electronPath = require('electron') const {resolve} = require('path') const delay = require('./common/wait') const {expect} = require('chai') const cwd = process.cwd() const packInfo = require('../../package.json') const {log} = console describe('main window', function ...
JavaScript
0
@@ -1962,32 +1962,38 @@ '.ant-modal.ant- +modal- confirm')%0A ex @@ -2135,24 +2135,30 @@ t-modal.ant- +modal- confirm .ant @@ -2154,24 +2154,30 @@ onfirm .ant- +modal- confirm-btns @@ -2282,16 +2282,22 @@ dal.ant- +modal- confirm'
facd890e1b12654710b61bb50806718c8ac44daf
Fix standard errors
test/e2e/view-caseload.js
test/e2e/view-caseload.js
const expect = require('chai').expect const dataHelper = require('../helpers/data/aggregated-data-helper') var workloadOwnerIds = [] var teamCaseloadUrl describe('View your caseload flow', () => { before(function () { return dataHelper.selectIdsForWorkloadOwner() .then(function (results) { worklo...
JavaScript
0.000004
@@ -528,17 +528,16 @@ () =%3E %7B - %0A it(
5c9608c92ec0aaf00239a53163e9ee6cb099635b
Fix typo
lib/internal/models.js
lib/internal/models.js
/** * Copyright (c) 2014 Salama AB * All rights reserved * Contact: aksalj@aksalj.me * Website: http://www.aksalj.me * * Project : pesapaljs * File : models * Date : 10/2/14 3:41 PM * Description : Models that match the schema * * See See http://developer.pesapal.com/how-to-integrate/api-reference ...
JavaScript
0.999999
@@ -3405,26 +3405,16 @@ ription -reference is requi
034b4c89cd520272352d78c54e97c466c7940379
Fix status refresh during successive tests
web/src/js/app.js
web/src/js/app.js
//@ts-check import SpeedTestWorker from "worker-loader!./worker"; /** * Speed Test web UI * * @class WebUI */ export default class WebUI { /** * Create an instance of WebUI. */ constructor() { this.STATUS = { WAITING: 0, STARTING: 1, RUNNING: 2, ...
JavaScript
0
@@ -1762,36 +1762,40 @@ this. -re set -Meters( +ProgressBar(0 );%0A t @@ -1811,24 +1811,75 @@ Results();%0A%0A + window.clearInterval(this.statusInterval);%0A if ( @@ -1905,32 +1905,8 @@ elay - && !this.statusInterval ) %7B%0A @@ -2461,28 +2461,32 @@ this. -re set -Meters( +Prog...
f6d988bf69c938474692b42532f76d7ed1467753
Save colors
web_config/app.js
web_config/app.js
var options = {}; function remove() { $('.remove').unbind('click'); $('.remove').click(function() { $(this).parent().remove(); if ($('.item-draggable-list label').length === 0) { $('.item-draggable-list').append( '<span class="item empty">Trigger List Empty</span>' ); } }); } f...
JavaScript
0
@@ -959,16 +959,295 @@ ).val(); +%0A%0A var textColor = $('input%5Bname=%22textColor%22%5D').val();%0A var backgroundColor = $('input%5Bname=%22backgroundColor%22%5D').val();%0A var hightlightTextColor = $('input%5Bname=%22hightlightTextColor%22%5D').val();%0A var highlightBackgroundColor = $('input%5Bname=%22high...
4bd8321e2d1351c25048a4032ab71b6ff9d7e8e5
Clean upload
tests-cucumber-ui/app/scripts/controllers/test-runs.js
tests-cucumber-ui/app/scripts/controllers/test-runs.js
'use strict'; (function (angular) { var TestRunLoader = function (AllTestRunsResource) { this.getLatests = function () { return AllTestRunsResource.query().$promise; }; this.getById = function (testRunId) { return AllTestRunsResource.get({ testRunId: testRunId }).$promise; }; }; ...
JavaScript
0
@@ -480,16 +480,338 @@ %0A%0A %7D;%0A%0A + var CucumberReportImporter = function (Upload, baseUri) %7B%0A%0A this.import = function (testRunId, file) %7B%0A return Upload.http(%7B%0A url: baseUri + '/test-runs/' + testRunId + '/import',%0A headers : %7B%0A 'Content-Type': 'applicati...
a3984dcb5db23fec988e763d7862f220aa460d72
make http only for hapi
src/save.js
src/save.js
/** * @function save * @description This handles saving a cookie in the browser and in memory/headers for server */ const cookie = require('cookie'); const _pick = require('lodash/pick'); import { encode } from './encoding'; import { isResWritable } from './util'; const whiteListOpts = [ 'domain', 'expires', ...
JavaScript
0
@@ -566,29 +566,8 @@ /',%0A - isHttpOnly: false,%0A is
f6d9f8e09bad8abb96f4903d57ab4355934097fb
Make f.gotRight() use history
lib/stats/got-right.js
lib/stats/got-right.js
var copy = require('../copy.js') module.exports = function (stack, id) { var newStack = copy(stack) if (typeof id === 'undefined') { // stack is not a stack - it's just a card, so update the card's right key newStack.right += 1 } else { newStack[id].right += 1 } return newStack }
JavaScript
0.000057
@@ -1,293 +1,247 @@ var -copy = require('../copy.js')%0Amodule.exports = function (stack, id) %7B%0A%09var newStack = copy(stack)%0A%09if (typeof id === 'undefined') %7B%0A%09%09// stack is not a stack - it's just a card, so update the card's right key%0A%09%09newStack.right += 1%0A%09%7D%0A%09else %7B%0A%09%09newSta...
1e621b4eadde425ae5914582baf0e25fc4c962b8
handle specs with missing version
lib/types/swagger_2.js
lib/types/swagger_2.js
'use strict'; var _ = require('lodash'); var Inherits = require('util').inherits; var URI = require('urijs'); var sway = require('sway'); var BaseType = require('./base-type.js'); var Types = require('./types.js'); var Util = require('./util.js'); var Swagger2 = module.exports = function() { Swagger2.super_.apply(...
JavaScript
0
@@ -716,24 +716,32 @@ rsion = +_.get( swagger -. +, ' info.ver @@ -744,16 +744,18 @@ .version +') ;%0A if (
27f6f6b740328868f37b700d9deaf594fb477722
Fix build with latest Webpack
webpack.config.js
webpack.config.js
const path = require('path'); const webpack = require('webpack'); const WebpackNotifierPlugin = require('webpack-notifier'); const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const precss = require('precss'); const autoprefixer = require('autoprefixer'); const postCssModules = require('postcss-modules')...
JavaScript
0
@@ -1216,12 +1216,9 @@ -preL +l oade @@ -1281,47 +1281,22 @@ t' %7D +, %0A - %5D,%0A loaders: %5B%0A @@ -1283,36 +1283,32 @@ %7D,%0A - %7B test: /%5C.js$/, @@ -1352,34 +1352,9 @@ bel' -, query: %7B compact: true %7D + %7D,%0A @@ -2028,16 +2028,19 @@ %7D,%...
6aad956105060732636aed184837b1c7cdd57880
add watcher
webpack.config.js
webpack.config.js
'use strict'; const path = require('path'); const _ = require('lodash'); const webpack = require("webpack"); const ExtractTextPlugin = require("extract-text-webpack-plugin"); const autoprefixer = require('autoprefixer'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CleanWebpackPlugin = require('clean...
JavaScript
0.000001
@@ -644,16 +644,56 @@ '%5D%0A %7D,%0A + devtool: 'source-map',%0A watch: true,%0A module @@ -1806,32 +1806,7 @@ %0A %7D -,%0A devtool: 'source-map' %0A%7D;
1a0d67a89b95c01154593046cecb302d37af290b
add sourcemaps in webpack
webpack.config.js
webpack.config.js
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const merge = require('webpack-merge'); const webpack = require('webpack'); const TARGET = process.env.npm_lifecycle_event; const PATHS = { app: path.join(__dirname, 'app'), build: path.join(__dirname, 'build') }; const common...
JavaScript
0.000001
@@ -839,16 +839,48 @@ mmon, %7B%0A + devtool: 'eval-source-map',%0A devS
26f530541d8d53431039a1f0d40713ea7f2d3e64
Update devtool
webpack.config.js
webpack.config.js
var path = require('path') var webpack = require('webpack') module.exports = { entry: { example: ['./example'], }, output: { path: './dist', publicPath: '/dist/', filename: "[name].js", }, resolve: { root: path.join(__dirname, 'node_modules'), alias: { }, extensions: ['', '...
JavaScript
0.000001
@@ -1031,17 +1031,16 @@ vtool: ' -# eval-sou @@ -1128,9 +1128,8 @@ = ' -# sour
b8a325c6ea8c0b4786b4318d8df1782c970ec7d3
Configure devServer to allow external host access
webpack.config.js
webpack.config.js
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); const paths = { src: 'src', dist: 'dist', assets: 'assets', }; const webpackConfig = { entry: { pre: path.join(__dirname, paths.src, 'scripts/pre.js'), ...
JavaScript
0
@@ -1377,16 +1377,102 @@ %7D%5D,%0A %7D, +%0A%0A devServer: %7B%0A port: 8080,%0A host: '0.0.0.0',%0A disableHostCheck: true,%0A %7D, %0A%7D;%0A%0Afun
7531387ef353307727efb545b8a4c49dadf5db1e
Update config
webpack.config.js
webpack.config.js
var path = require('path') var webpack = require('webpack') var pkg = require('./package.json') var env = process.env.NODE_ENV var baseConfig = { entry: [ './src/index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/dist/' }, plugins: [ new webpack.D...
JavaScript
0.000001
@@ -626,17 +626,16 @@ boxgrid/ -, %0A %7D%5D%0A @@ -1104,24 +1104,91 @@ yJsPlugin(%7B%0A + compress: %7B%0A unused: true,%0A dead_code: true,%0A warnin @@ -1192,16 +1192,17 @@ ning +s : false%0A @@ -1197,16 +1197,24 @@ : false%0A + %7D%0A %7D)%0A
8e8340da2866f2a05c1cb2c8ad12d138f7c34727
fix webpack hot reload
webpack.config.js
webpack.config.js
const webpack = require('webpack') const path = require('path') module.exports = { context: __dirname, entry: [ 'webpack-dev-server/client?http://localhost:8000', 'webpack/hot/only-dev-server', './admin/script/AdminApp.jsx', ], output: { path: path.join(__dirname, '/public/admin/js'), filen...
JavaScript
0
@@ -329,16 +329,58 @@ ndle.js' +,%0A publicPath: 'http://localhost:8000/' %0A %7D,%0A
095f86856dd8b6192b4328d6d62ebe5b6fb10f14
change webpack config
webpack.config.js
webpack.config.js
/** * Created by huangxinghui on 2015/10/21. */ module.exports = { entry: "./entry.js", output: { path: __dirname, filename: "./index.js" }, externals: { handlebars: 'Handlebars', underscore: '_' } };
JavaScript
0.000001
@@ -44,16 +44,53 @@ 1.%0A */%0A%0A +var pkg = require('./package.json');%0A module.e @@ -174,16 +174,20 @@ me: -%22./index +pkg.name + %22 .js%22
d08a5a34dbc18644c970016e42a2b3be7a5a628e
Add `Object.assign` extension.
webpack.config.js
webpack.config.js
/** * jsonld-signatures webpack build rules. * * @author Digital Bazaar, Inc. * * Copyright 2010-2017 Digital Bazaar, Inc. */ const path = require('path'); const webpack = require('webpack'); const webpackMerge = require('webpack-merge'); // build multiple outputs module.exports = []; // custom setup for each o...
JavaScript
0
@@ -621,34 +621,32 @@ ncludes',%0A -// 'core-js/fn/obje
85e71401185ba1b339c6c4874ca592cbb4f50d46
Add Rank API
modules/book/rank.js
modules/book/rank.js
/** * Created by 国正 on 2014/7/21. */
JavaScript
0.000001
@@ -32,8 +32,976 @@ 21.%0A */%0A +var request = require('request');%0Avar cheerio = require('cheerio');%0Avar iconv = require('iconv-lite');%0A%0Avar typeSet =%0A%7B%0A %221%22: %7BName: %22%E5%80%9F%E9%98%85%E6%8E%92%E8%A1%8C%E6%A6%9C%22, Url: %22?circul.circulog_A&cname:%C2%BD%C3%A8%C3%94%C3%84%C3%85%C3%85%C3%90%...
07f01155f13136f7cad7f46b49e189b2e470ebd2
Fix root dir resolution for relative paths
webpack.config.js
webpack.config.js
const globby = require('globby') const path = require('path') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const FileManagerPlugin = require('filemanager-webpack-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') const { DefinePlugin } = require('webpack') const contentSource = 'src' ...
JavaScript
0
@@ -5712,24 +5712,47 @@ th.relative( +%0A path.dirname @@ -5766,24 +5766,85 @@ cePath), - context +%0A path.join(context, 'src')%0A ) + '/'%0A
1e6075e51b52ecd9bf3afeee0561c2b17d328e50
add index.html to prod build
webpack.config.js
webpack.config.js
const path = require("path"); const _ = require("lodash"); const webpack = require("webpack"); const CleanWebpackPlugin = require("clean-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const OpenBrowserWebpackPlugin = require("open-browser-webpack-plugin"); const CONFIG_DEFAULT = { co...
JavaScript
0.000001
@@ -1766,14 +1766,107 @@ n(%5B%22 -dist%22%5D +prod%22%5D),%0A new HtmlWebpackPlugin(%7B%0A template: %22./index.html%22%0A %7D ),%0A
fad7f83dbe194fa674709ef219fa587cd1498e8f
add standalone.js to glob-loader list
webpack.config.js
webpack.config.js
/* eslint-env node */ require('babel-polyfill') const DojoWebpackPlugin = require("dojo-webpack-plugin") const CopyWebpackPlugin = require("copy-webpack-plugin") const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const CleanWebpackPlugin = require('clean-webpack-plugin'); const path = require("path") const glo...
JavaScript
0.000001
@@ -2268,16 +2268,44 @@ main.js%7C +src%5C/JBrowse%5C/standalone.js%7C tests%5C/j
3ca86a190b6ffc9ec84dba2420ebdd81e899fc0d
Update webpack.config.js
webpack.config.js
webpack.config.js
const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: './app/javascripts/app.js', output: { path: path.resolve(__dirname, 'build'), filename: 'app.js' }, plugins: [ // Copy our app's index.html to the build folder. new CopyWebpackPlugi...
JavaScript
0.000003
@@ -421,24 +421,25 @@ eate.html%22 %7D +, %0A %7B fro
41702c034e600655a045bb27cac77072d4e2a143
Update webpack config.
webpack.config.js
webpack.config.js
process.traceDeprecation = true; const mf_config = require("@patternslib/dev/webpack/webpack.mf"); const package_json = require("./package.json"); const path = require("path"); const patternslib_config = require("@patternslib/dev/webpack/webpack.config.js"); const patternslib_package_json = require("@patternslib/patter...
JavaScript
0
@@ -152,36 +152,19 @@ t pa -th = require(%22path%22);%0Aconst +ckage_json_ patt @@ -170,23 +170,16 @@ ternslib -_config = requi @@ -199,37 +199,32 @@ lib/ -dev/webpack/webpack.config +patternslib/package .js +on %22);%0A @@ -236,80 +236,109 @@ pat -ternslib_package_json = require(%22@patternslib/patternslib/...
bcb44fb165621aa40f499ffedcc6f64f0e1d8806
make sure we transpile jsonwebtoken dep
webpack.config.js
webpack.config.js
var path = require("path"); var webpack = require("webpack"); module.exports = { context: __dirname + "/src", entry: { stream: "./getstream.js" }, output: { path: path.join(__dirname, "dist", "js"), publicPath: "dist/", filename: "getstream.js", chunkFilename: "[c...
JavaScript
0
@@ -422,16 +422,81 @@ ders: %5B%0A + %7B test: /jsonwebtoken%5C/(.*)js/, loader: %22babel-loader%22%7D,%0A
09eec37f6076faa57d142348adce67f1f05dc4fc
Update webpack.config.js - changed SASS output style
webpack.config.js
webpack.config.js
var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var conf = { entry: './app/scripts/app.js', output: { path: path.join(__dirname, 'dist'), filename: '[hash].bundle.js' }, module: { loaders: [ { test: /\.hgn$/, ...
JavaScript
0
@@ -693,14 +693,16 @@ yle= -expand +compress ed'%0A
35b04362ac422cf053f9a878860e671fa4fd5710
put all javascript into js directory
webpack.config.js
webpack.config.js
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin'); module.exports = { mode: 'development', entry: { index: './src/js/index.js', nes: './src/js/nes.js' ...
JavaScript
0
@@ -925,22 +925,18 @@ e: ' +js/ %5Bname%5D. -bundle. js',
00c328279d52efc26c0b28f27d6c3826b40e2450
refactor to easier config
webpack.config.js
webpack.config.js
var webpack = require('webpack'); var path = require('path'); module.exports = { entry: { 'app': './src/app.ts', 'vendor': './src/vendor.ts' }, output: { path: "./dist", filename: "bundle.js" }, plugins: [ new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.bundle.js') ], resol...
JavaScript
0.000078
@@ -96,16 +96,19 @@ 'app': + './src/ @@ -153,16 +153,17 @@ s'%0A %7D,%0A +%0A output @@ -180,16 +180,20 @@ th: -%22 + ' ./dist -%22 +' ,%0A @@ -204,17 +204,24 @@ lename: -%22 +'%5Bname%5D. bundle.j @@ -225,15 +225,16 @@ e.js -%22 +' %0A %7D,%0A +%0A pl @@ -297,22 +297,22 @@ ndor', ' -ven...
e3a012485a6c141a09b6205fc758dba9567c0d41
add source map option to postcss config
webpack.config.js
webpack.config.js
const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: { public : './html/js/src/public.js' }, output: { path: path.resolve(__dirname, './html'), publicPath: '/', // only f...
JavaScript
0
@@ -1531,32 +1531,150 @@ 'postcss-loader' +,%0A options: %7B%0A sourceMap: true%0A %7D %0A @@ -3266,8 +3266,9 @@ %5D);%0A%7D +%0A
e208f18dc34f6eb1c56754b3caa0bcad55c589ba
use client_module_paths
config/webpack.config.js
config/webpack.config.js
const CompressionPlugin = require("compression-webpack-plugin"); const webpack = require('webpack'); const path = require('path'); const entries = { app: [ '<%= "#{Hippo::Extensions.controlling.identifier}/index.js" %>', ], homepage: [ 'sm/homepage/index.js', ], 'embedded-events': ...
JavaScript
0.000001
@@ -2603,38 +2603,129 @@ s: %5B -path.resolve('./node_modules') +%0A %22%3C%25= Hippo::Extensions.client_module_paths.join('%22,%22') %25%3E%22,%0A %5D,%0A
9dd296ce923a1b4e35d605f2576e6a8bbeb5ae53
Set up `process.env` for development build
config/webpack.config.js
config/webpack.config.js
'use strict'; var extend = require('xtend'); var webpack = require('webpack'); var common = require('./webpack.common'); module.exports = extend(common, { devtool: 'eval', entry: [ 'webpack-dev-server/client?http://0.0.0.0:3000', 'webpack/hot/only-dev-server', './demos/index', ], ...
JavaScript
0
@@ -431,24 +431,173 @@ plugins: %5B%0A + new webpack.DefinePlugin(%7B%0A 'process.env': %7B%0A 'NODE_ENV': JSON.stringify('development'),%0A %7D%0A %7D),%0A new
383ea37feed08ffaa4cd0108684ee80c3e91f944
Revert "experimenting with new domain name"
config/webpack/global.js
config/webpack/global.js
'use strict' // Depends var path = require('path') var webpack = require('webpack') var autoprefixer = require('autoprefixer') var ExtractTextPlugin = require("extract-text-webpack-plugin") var NODE_ENV = process.env.NODE_ENV || "production" var DEVELOPMENT = NODE_ENV === "production" ? false : true var stylesLoader ...
JavaScript
0
@@ -736,16 +736,18 @@ e%5D.js',%0A +// pu @@ -754,27 +754,24 @@ blicPath: '/ -msp ',%0A %7D,%0A%0A @@ -3287,19 +3287,16 @@ Path: '/ -msp ',%0A
1ee81e8a3fc6bf4cdb47d775fa8f7b5ece9898a3
set browsersync proxy option to use with nginx and express
.gulp/tasks/browsersync.js
.gulp/tasks/browsersync.js
'use strict'; module.exports = [ 'start browser-sync', function() { this.browserSync({ server: this.paths.site.dest, notify: false, open: false, ghostMode: { clicks: false, forms: false, scroll: false } }); } ];
JavaScript
0
@@ -101,36 +101,31 @@ -server: this.paths.site.dest +proxy: '10.0.0.5:52323' ,%0A
3a2369907bc7ae53b5d69acacc163aa5f0521e54
test model w/ collection of related data
test/integration/model.js
test/integration/model.js
'use strict'; var utils = require('./utils'); module.exports = function (test) { describe('Model', function () { var user; beforeEach(function () { user = new test.Model({id: 0}); }); describe('#fetch', function () { var mockFetch = function () { test.api .get('/use...
JavaScript
0
@@ -1560,32 +1560,921 @@ %7D);%0A %7D);%0A%0A + it('can fetch with collections of related data', function () %7B%0A user.relations = %7B%0A friends: function () %7B%0A return this.hasMany(test.Model, 'friends');%0A %7D%0A %7D;%0A test.api%0A .get('/...
7332b86688f49313ff75a41a14c4d5f3497e7bac
Remove extraneous console.log
test/integration/suite.js
test/integration/suite.js
module.exports = function(knex) { var sinon = require('sinon'); describe('Dialect: ' + knex.client.dialect, function() { this.dialect = knex.client.dialect; require('./schema')(knex); require('./migrate')(knex); require('./builder/inserts')(knex); require('./builder/selects')(knex); requi...
JavaScript
0.000152
@@ -1027,39 +1027,8 @@ ce;%0A - console.log('here');%0A
52f1b60a980c41deaa44b394f30473f61fbb9f14
move centering lightbox into style, resue afterContentShown
Kwf_js/EyeCandy/Lightbox/Lightbox.js
Kwf_js/EyeCandy/Lightbox/Lightbox.js
Kwf.onContentReady(function() { var els = document.getElementsByTagName('a'); for (var i=0; i<els.length; i++) { if (els[i].kwfLightbox) continue; var m = els[i].rel.match(/(^lightbox| lightbox)({.*?})?/) if (m) { var options = {}; if (m[2]) options = Ext.decode(m...
JavaScript
0
@@ -4789,33 +4789,39 @@ this. -lightboxEl.center +style.afterContentShown ();%0A
7168c553bb4cacfb92faa389424481a299bb40ff
add missing semicolons
src/web/js/wps-js-lib/response/ExecuteResponse_v1_xml.js
src/web/js/wps-js-lib/response/ExecuteResponse_v1_xml.js
/** * Inspects XML response of WPS 1.0 execute request */ var ExecuteResponse_v1_xml = ExecuteResponse .extend({ instantiate : function(wpsResponse) { if ($(wpsResponse).find("ExecuteResponse")) { /* * response document! * * set the common response parameters */ this.execut...
JavaScript
0.999999
@@ -400,16 +400,17 @@ ocument%22 +; %0A%0A%09%09%09%09%09t @@ -599,16 +599,17 @@ wOutput%22 +; %0A%09%09%09%09%09th
f4153e50ebf589e326736e2ae923a62686ab8b23
Handle 2019 PGE date correctly
modules/countdown.js
modules/countdown.js
var moment = require('moment') require('moment-countdown') let timeout = null const ARTICLE_50 = '2020-01-31T00:00:00+01:00' function autoCount (bot, lastTick) { const thisTick = moment(ARTICLE_50).countdown().toString().split(/, | and /)[0] if (lastTick != null && thisTick !== lastTick) { bot.broadcast('Art...
JavaScript
0
@@ -702,63 +702,503 @@ the -next General Election under FTPA',%0A command: () =%3E +2019 Parliamentary General Election',%0A command: () =%3E %7B%0A const now = moment()%0A%0A const date = '2019-12-12' // 58th PGE%0A const pollStart = moment(date + 'T' + '07:00Z')%0A const pollEn...
328fe51e2772801e2c52d488b570508554fca756
Edit comments
public/scripts/dataServices/ebay-search-results.js
public/scripts/dataServices/ebay-search-results.js
// Parse the response and build an HTML table to display search results function _cb_findItemsByKeywords(root) { var items = root.findItemsByKeywordsResponse[0].searchResult[0].item || []; var html = []; html.push('<table width="100%" border="0" cellspacing="0" cellpadding="3"><tbody>'); for (var i = 0; ...
JavaScript
0
@@ -2287,54 +2287,8 @@ est%0A -// Replace MyAppID with your Production AppID%0A var @@ -2897,8 +2897,9 @@ hild(s); +%0A
a3543090f269ab7f824f4c631d44b84037dd37ac
Translate plex query params to fixed
seasoned_api/src/plex/plex.js
seasoned_api/src/plex/plex.js
const fetch = require("node-fetch"); const convertPlexToMovie = require("src/plex/convertPlexToMovie"); const convertPlexToShow = require("src/plex/convertPlexToShow"); const convertPlexToEpisode = require("src/plex/convertPlexToEpisode"); const { Movie, Show, Person } = require("src/tmdb/types"); const RedisCache = ...
JavaScript
0.999999
@@ -448,24 +448,202 @@ %5D/gi, %22%22);%0A%0A +function fixedEncodeURIComponent(str) %7B%0A return encodeURIComponent(str).replace(/%5B!'()*%5D/g, function (c) %7B%0A return %22%25%22 + c.charCodeAt(0).toString(16).toUpperCase();%0A %7D);%0A%7D%0A%0A const matchi @@ -4437,17 +4437,22 @@ onent = -e +fixedE nco...
2654c5cee72b5d89f76afae992f36c2c6fcdba43
simplify /
src/controllers/index.js
src/controllers/index.js
var fs = require('fs') var path = require('path') var underscore = require('underscore') var exports = {} exports.routes = async function (debug, runtime) { var i, names var entries = {} var routes = [ { method: 'GET', path: '/', config: { handler: function (request, reply) { r...
JavaScript
0.000011
@@ -323,127 +323,14 @@ ly(' -Welcome to the Brave Eyeshade.')%0A %7D,%0A auth: %7B%0A strategy: 'whitelist',%0A mode: 'required' +ack.') %0A
87e236832fddeacd2ecb7dddbefeec83ec368127
delete _gid tracking cookie
src/cookies-eu-banner.js
src/cookies-eu-banner.js
; // jshint ignore:line (function (root, factory, undefined) { 'use strict'; if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { // root is window root.CookiesEuBanner = factory(); } }(window, fun...
JavaScript
0.000001
@@ -845,16 +845,24 @@ , '_gat' +, '_gid' %5D;%0A
f3202623426f26680a3a15385b7f5caa7a8b5009
fix forElements dependency
src/core/for-elements.js
src/core/for-elements.js
import forEach from './for-each'; import { getElements } from './getElements'; export function forElements (elements, callback) { forEach(getElements(elements), callback); } export default forElements;
JavaScript
0
@@ -61,17 +61,18 @@ m './get -E +-e lements'
98d608d59cb4a39f5bbbdcaefa27c0d0e63d3b65
fix bug where applications is used when undefined
troposphere/static/js/components/modals/provider_machine/Application.react.js
troposphere/static/js/components/modals/provider_machine/Application.react.js
define(function (require) { var React = require('react'), stores = require('stores'); return React.createClass({ propTypes: { onChange: React.PropTypes.func.isRequired, applicationId: React.PropTypes.number.isRequired }, handleChange: function(e){ this.props.onChange(e.target...
JavaScript
0.000001
@@ -609,17 +609,17 @@ -A +a pplicati @@ -686,12 +686,88 @@ ions - = A +;%0A%0A if(!applications) return %3Cdiv className=%22loading%22/%3E;%0A%0A options = a ppli
ecbdf4c78cf0255a64270d8232b35fd21bd289bc
Check existence of only one metadata property before rendering
web_external/js/views/widgets/ImageViewerWidget.js
web_external/js/views/widgets/ImageViewerWidget.js
isic.views.ImageViewerWidget = isic.View.extend({ initialize: function (settings) { /* "model" and "el" must be passed as settings */ this.renderedModelId = null; this.listenTo(this.model, 'change', this.fetchTileInfo); }, fetchTileInfo: function () { if (!this.model.id) {...
JavaScript
0
@@ -1055,37 +1055,8 @@ zeX) - %7C%7C _.isUndefined(this.sizeY) ) %7B%0A
5d253ee05ef2898b74c6cefddcd948042539592f
fix check for datetime-picker to ignore 0 for hour/minute
cdap-ui/app/directives/datetime-picker/datetime.js
cdap-ui/app/directives/datetime-picker/datetime.js
/* * Copyright © 2016 Cask Data, Inc. * * 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 t...
JavaScript
0
@@ -1617,25 +1617,42 @@ t = +( !hour + && hour !== 0) %7C%7C +( !minutes ? n @@ -1647,16 +1647,34 @@ !minutes + && minutes !== 0) ? null
5a22e0775677bce917511cef9e01c6a0b329d964
Add support for the COPY_KARMA option
test/test-helper/index.js
test/test-helper/index.js
let { tmpdir } = require("os"); let { writeFile } = require("./fs"); let { join } = require("path"); let { randomBytes } = require("crypto"); let { exec, spawn } = require("./child_process"); function generateRandomFilePath () { return join( tmpdir(), randomBytes(20).toString("hex") + ".js"); } async fu...
JavaScript
0
@@ -190,16 +190,51 @@ ess%22);%0A%0A +let %7B COPY_KARMA %7D = process.env;%0A%0A function @@ -1102,16 +1102,74 @@ figFile%5D +, %7B%0A stdio: COPY_KARMA === %221%22 ? %22inherit%22 : %22pipe%22%0A %7D );%0A%7D%0A%0Afu
ff9236c03405199878c75959e6302748a376447c
Update test-main-leaflet.js
test/test-main-leaflet.js
test/test-main-leaflet.js
/*leaflet -- control*/ import './leaflet/control/ChangeTileVersionSpec.js'; /*leaflet -- core*/ import './leaflet/core/NonEarthCRSSpec.js'; import './leaflet/core/TransformUtilSpec.js'; import './leaflet/core/Proj4LeafletSpec.js'; /*leaflet -- mapping*/ import './leaflet/mapping/ImageMapLayerSpec.js'; import './leafl...
JavaScript
0
@@ -389,35 +389,32 @@ r.WMTSSpec.js';%0A -// import './leafle @@ -516,33 +516,8 @@ s';%0A -/*deck%E7%9B%B8%E5%85%B3%E6%B5%8B%E8%AF%95%E6%9C%AA%E9%80%9A%E8%BF%87%EF%BC%8C%E5%BE%85%E8%A7%A3%E5%86%B3%E5%90%8E%E6%89%93%E5%BC%80%E6%B3%A8%E9%87%8A*/%0A impo @@ -3284,19 +3284,16 @@ nent */%0A -// import ' @@ -3348,11 ...
0877ed4e77960ec59f07847d6dad5334196a16fe
Revert "add tab option"
src/manual/peer2peer/extension/background.js
src/manual/peer2peer/extension/background.js
// Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. 'use strict'; var dataSources = ['screen', 'window', 'tab']; if (getChromeVersion() >= 50) { dataSource...
JavaScript
0
@@ -263,15 +263,8 @@ dow' -, 'tab' %5D;%0Ai
32c26427e912bbe7f4eb7d3cdd8a718bea96468d
Fix bug where player could store cards before drawing from deck first
src/app/components/player/player.controller.js
src/app/components/player/player.controller.js
export default class PlayerController { constructor($rootScope, $scope, $log, $uibModal, _, playersApi, playerModel, websocket) { 'ngInject'; this.$rootScope = $rootScope; this.$scope = $scope; this.$log = $log.getInstance(this.constructor.name); this.$uibModal = $uibModal; this._ = _; this.playerModel...
JavaScript
0
@@ -1403,16 +1403,44 @@ %0A%0A%09%09if ( +!this.player.isFirstTurn && this.can
efb06aaa1b183fbb22c79435e3ddbd6d7ae3cc2f
Mark layouts to be watched
Jamesfile.js
Jamesfile.js
var james = require('james'); var uglify = require('james-uglify'); var compile = require('james-compile'); var jade = require('jade'); var marked = require('marked'); var hl = require('highlight.js').highlightAuto; var config = require('./config'); marked.setOptions({ highlight: function(code, lang) { r...
JavaScript
0
@@ -830,22 +830,16 @@ .watch(' -views/ **/*.jad
2c1815ed6cd23f2b932b08436aab428e7c5d92f3
check for invalid rule configs
src/test.js
src/test.js
import defRules from './rules' import util from './util' const allDevices = Object.keys(util.devices).map(key => util.devices[key]) const severity = function (val) { switch (val) { case 0: case 'off': return 'off' case 1: case 'warn': return 'warn' case 2: case 'error': ...
JavaScript
0
@@ -1590,24 +1590,32 @@ t.keys(this. +options. rules)%0A @@ -2388,24 +2388,212 @@ %7D%0A%0A + if ( !(key in this.rules) ) %7B%0A throw new Error(%60react-a11y: rule $%7Bkey%7D not found,%60%0A + %60maybe you're missing a plugin?%60)%0A %7D%0...
381475197c2dfad34d3c0aaa9cb2d0d878aa5a1a
add team actions
lib/MlbRequest/TeamRequest.js
lib/MlbRequest/TeamRequest.js
const MlbRequest = require('./Request'); const url = require('url'); const CONSTANTS = require('./CONSTANTS').TEAM; const ACTIONS = CONSTANTS.ACTIONS; const PUBLIC_LOOKUP = CONSTANTS.ENDPOINTS.PUBLIC_LOOKUP; const STATS_API = CONSTANTS.ENDPOINTS.STATS_API; const WSFB = CONSTANTS.ENDPOINTS.WSFB; /** * Represents an M...
JavaScript
0.000126
@@ -759,24 +759,1070 @@ (options) %7B%0A + let uri = '';%0A switch (this.endpoint) %7B%0A case ACTIONS.LIST:%0A uri = %60$%7BSTATS_API.BASE%7D/teams?leagueIds=$%7Boptions.league %7C%7C '103, 104'%7D%60;%0A break;%0A case ACTIONS.DETAILS:%0A uri = %60$%7BSTAT...
2881885f7dc175a0facde81f914334a0dc6c9bae
switch to viewing 1 day of data, remove log statements.
src/test.js
src/test.js
function plot(data, varname, tag) { $(tag).empty(); var margin = {top: 20, right: 30, bottom: 80, left: 10}, width = 1500 - margin.left - margin.right, height = 500 - margin.top - margin.bottom; var parseDate = d3.time.format("%a, %d %b %Y %H:%M:%S -0000").parse, formatDate = d3.time.format("%Y-%m-%d"...
JavaScript
0
@@ -2183,65 +2183,12 @@ e()- -7 +1 );%0A - console.log(lastdate)%0A console.log(daybefore)%0A
4dba2e7352c7a735830db1fb830404ac56d97d8c
Remove unneeded line
test/issues/314-large-input-array-addressing.js
test/issues/314-large-input-array-addressing.js
const { assert, skip, test, module: describe } = require('qunit'); const { GPU, WebGLKernel, HeadlessGLKernel } = require('../../src'); describe('issue #314'); // max size of ok addressing was 8388608, 8388609 is shifted by 1 so index seems to be 8388610 // after this fix max addressing is 2^31 which is the max a int...
JavaScript
0.00046
@@ -460,42 +460,8 @@ ved%0A -WebGLKernel.setupFeatureChecks();%0A cons
1bf5186822d3f42e616361b5e4bdb00cd8d11419
Add the jcn version checking (currently this functionality doesn't work on Windows)
modules/questions.js
modules/questions.js
'use strict'; const behavior = require('./behavior'), inquirer = require('inquirer'), noEmoji = /^win/.test(process.platform), defaultGit = 'https://github.com/justcoded/web-starter-kit.git'; let config = []; module.exports = () => { console.log('\n*****************************************\n*\tWelcome to Jus...
JavaScript
0
@@ -88,15 +88,17 @@ ,%0A -noEmoji +isWindows = / @@ -213,16 +213,16 @@ = %5B%5D;%0A%0A - module.e @@ -238,16 +238,489 @@ () =%3E %7B%0A + // Check the jcn version (currently doesn't work on Windows)%0A if (!isWindows) %7B%0A let remoteVersion,%0A localVersion;%0A%0A console.log('Local version: ');...
f3cf0c5daf5b7bf7fa47e601886899191296965c
Change extend from Content to Widget as additional level not needed
framework/source/class/unify/ui/widget/container/Scroll.js
framework/source/class/unify/ui/widget/container/Scroll.js
/* *********************************************************************************************** Unify Project Homepage: unify-project.org License: MIT + Apache (V2) Copyright: 2010, Sebastian Fastner, Mainz, Germany, http://unify-training.com *******************************************************...
JavaScript
0
@@ -489,20 +489,18 @@ get. -basic.Conten +core.Widge t,%0A
db9b30a5b6e4708fbdd1e019b4d9c03ddc54db4f
Simplify code. (Closes #884)
docs/_assets/codepen.js
docs/_assets/codepen.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.000013
@@ -1379,39 +1379,8 @@ ) %7B%0A - var pre = form.parentNode;%0A @@ -1487,18 +1487,30 @@ r(form, -pr +form.parentNod e));%0A %7D
b0c54af466de9a0daa268a5111bae9ea027890f9
add example for `no-useless-computed-key` rule
examples/bad/not-optimal.js
examples/bad/not-optimal.js
/*eslint no-eval: "error"*/ var obj = { x: "foo" }, key = "x", value = eval("obj." + key); /*eslint no-implied-eval: "error"*/ setTimeout("alert('Hi!');", 100); /*eslint no-new-func: "error"*/ var x = new Function("a", "b", "return a + b"); /*eslint no-self-assign: "error"*/ foo = foo; /*eslint no-unused-ex...
JavaScript
0
@@ -1278,12 +1278,149 @@ // ...%0A%7D%0A +%0A/*eslint no-useless-computed-key: %22error%22*/%0Avar a = %7B %5B'0'%5D: 0 %7D; // It%E2%80%99s unnecessary to use computed properties with literals such as.%0A
2d59a049c2aac1fe0a214fd285abdb92c8791b01
support egert 4.x only
builds/build_egret.js
builds/build_egret.js
/** * build egret */ 'use strict'; const path = require('path'); const async = require('async'); const semver = require('semver'); const copy = require('copy'); const debug = require('debug'); const BuildBase = require('./build_base'); class BuildEgret extends BuildBase { constructor (config) { super(c...
JavaScript
0
@@ -556,9 +556,9 @@ 0 - -5 +4 ');%0A
06296b5bd5297d313a54861c30595b4219a3d04e
Update to new getResourceUrl mode
civics_list.js
civics_list.js
// Civics - reps list page // var lodash = require("lodash"); var crypto = require('crypto'); var googleApi = require('./google_api'); var userImg = Synchro.getResourceUrl("user.png"); exports.View = { title: "Representation", elements: [ { control: "stackpanel", orientation: "Verti...
JavaScript
0
@@ -135,59 +135,8 @@ );%0A%0A -var userImg = Synchro.getResourceUrl(%22user.png%22);%0A%0A expo @@ -4901,16 +4901,26 @@ toUrl = +viewModel. userImg; @@ -6800,16 +6800,78 @@ ss: null +,%0A userImg: Synchro.getResourceUrl(context, %22user.png%22) %0A %7D%0A
6baa6e3533f18178801f37062d660f40fba4a8ff
Use Firefox for js unit tests
src/BloomBrowserUI/karma.conf.js
src/BloomBrowserUI/karma.conf.js
// Karma configuration // Generated on Wed Oct 23 2013 16:38:14 GMT-0700 (Pacific Daylight Time) module.exports = function (config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '.', // frameworks to use frameworks: ['jasmine'], // ...
JavaScript
0
@@ -3619,18 +3619,8 @@ fox' -, 'Chrome' %5D,%0A%0A
c8edc8b7423b71cd954e9f817bd9f34960310485
Make sure to uniq the courses before counting geneds
mockups/commonEducationUtilities.js
mockups/commonEducationUtilities.js
'use strict'; import * as _ from 'lodash' function onlyQuarterCreditCoursesCanBePassFail(course) { // NOTE: Because we can't check this (don't know p/f data), we return true // for everything. return true } var hasGenEd = _.curry(function(gened, course) { return _.contains(course.gereqs, gened) }) var hasFOL = ...
JavaScript
0
@@ -439,16 +439,56 @@ ened) %7B%0A +%09let uniqed = _.uniq(courses, 'crsid');%0A %09if (gen @@ -522,31 +522,30 @@ ze(_.filter( -courses +uniqed , hasFOL))%0A%09 @@ -559,39 +559,38 @@ _.size(_.filter( -courses +uniqed , hasGenEd(gened
6dbd0b3949ada28a0ef9efa580088fbcad14d674
add domSafeErrorMesage [UFI-5]
src/plugin/iframe_root/modules/lib/domUtils.js
src/plugin/iframe_root/modules/lib/domUtils.js
define(['kb_common/utils'], (Utils) => { const donorNode = document.createElement('div'); function domSafeText(rawContent) { donorNode.innerText = rawContent; // safe return donorNode.innerHTML; } /** * domSafeContent * Returns the provided value as a string, safely ...
JavaScript
0
@@ -3111,24 +3111,607 @@ %7D;%0A %7D%0A%0A + function domSafeErrorMessage(error) %7B%0A const text = (() =%3E %7B%0A try %7B%0A if (typeof error === 'string') %7B%0A return error;%0A %7D else if (error.message) %7B%0A return ...
ee651e85379f2f0e3eebbead48a8c2476b7c45fa
fix getAnnotatedTree
eln/sample/sampleTree.js
eln/sample/sampleTree.js
import { stratify } from 'd3-hierarchy'; import treeUtil from 'src/util/tree'; import _ from 'lodash'; // data should have id as first level property // id should be an array that represents the hierarchy export function getTree(data, options = { idProperty: 'id' }) { const { idProperty } = options; const getId = ...
JavaScript
0.000001
@@ -1067,16 +1067,27 @@ index = +idToString( _.get(no @@ -1084,24 +1084,29 @@ g(_.get(node +.data , idProperty @@ -1102,24 +1102,25 @@ idProperty) +) ;%0A annota
f605ce9c3e510d647b099746f3a7953a13fff3ea
use localStorage for github token
nbextensions/gist.js
nbextensions/gist.js
/* Add this file to $(ipython locate)/nbextensions/gist.js And load it with: require(["nbextensions/gist"], function (gist_extension) { console.log('gist extension loaded'); gist_extension.load_extension(); }); */ define( function () { var token_cookie_name = "gist_github_token"; // dialog t...
JavaScript
0
@@ -254,31 +254,24 @@ var token_ -cookie_ name = %22gist @@ -286,16 +286,16 @@ token%22;%0A + %0A @@ -1179,44 +1179,40 @@ -set_cookie(token_cookie +localStorage%5Btoken _name -, +%5D = token -) ;%0A @@ -1933,37 +1933,32 @@ n = -get_cookie(token_cookie +localStorage%5Btoken _name -) +%5D ;%0...
4acc8c8be1971112be45e0feb7fb7eddbfc9d247
use consistent behavior during IME composition for other text-like input types (fix #5902)
src/platforms/web/runtime/directives/model.js
src/platforms/web/runtime/directives/model.js
/** * Not type checking this file because flow doesn't like attaching * properties to Elements. */ import { looseEqual, looseIndexOf } from 'shared/util' import { warn, isAndroid, isIE9, isIE, isEdge } from 'core/util/index' /* istanbul ignore if */ if (isIE9) { // http://www.matts411.com/post/internet-explorer-...
JavaScript
0
@@ -129,16 +129,25 @@ eIndexOf +, makeMap %7D from @@ -232,16 +232,87 @@ index'%0A%0A +const isTextInputType = makeMap('text,password,search,email,tel,url')%0A%0A /* istan @@ -882,52 +882,32 @@ %7C%7C -el.type === 'text' %7C%7C el.type === 'password' +isTextInputType(el.type) ) %7B%0A
4bf8978a3753ec42383278539ecb120825f984b0
Add SGF parser
class/sgf.js
class/sgf.js
var Tuple = require('../lib/tuple') module.exports.tokenize = function(input) { var tokens = [] var builder = '' var propIdentRegex = /^[A-Z]+/ var i = 0 var inCValueType = false var inBackslash = false while (i < input.length) { if (!inCValueType) { builder = '' ...
JavaScript
0.000001
@@ -30,23 +30,16 @@ uple')%0A%0A -module. exports. @@ -2153,48 +2153,1346 @@ %0A%7D%0A%0A -module.exports.parse = function(string) %7B%0A +exports.parse = function(tokens, start, end) %7B%0A if (arguments.length %3C= 2) end = tokens.length - 1%0A if (arguments.length %3C= 1) start = 0%0A%0A var i = start%0A...
9006b93a48185c792f38c48d5a47bfe195521b8e
Disable API cache for stories.
.storybook/preview.js
.storybook/preview.js
/** * Storybook preview config. * * Site Kit by Google, Copyright 2021 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 ...
JavaScript
0
@@ -1012,32 +1012,69 @@ yfill-globals';%0A +import API from 'googlesitekit-api';%0A import %7B resetGl @@ -1343,16 +1343,45 @@ ents';%0A%0A +API.setUsingCache( false );%0A%0A bootstra
1ed3997c42c34616311c98bc3496222ebd4f2c30
Create folded and unfolded summaries for readability; report heap size in MB.
benchmarks/summarize.js
benchmarks/summarize.js
var fs = require('fs'), stats = require('summary'), benchmarks = [/*'alwaysPrev', 'neverPrev', 'sometimesPrev'*/] // .concat(['noSkips', 'onlyHardSkips', 'onlySoftSkips', 'hard+softSkips']) // .concat(['sct', 'pcp', 'trellis']) .concat(['scatter', 'pcp', 'trellis']), conditions = ['100.5'...
JavaScript
0
@@ -72,197 +72,25 @@ = %5B -/*'alwaysPrev', 'neverPrev', 'sometimesPrev'*/%5D%0A // .concat(%5B'noSkips', 'onlyHardSkips', 'onlySoftSkips', 'hard+softSkips'%5D)%0A // .concat(%5B'sct', 'pcp', 'trellis'%5D)%0A .concat(%5B +'prev', 'skips', 'sca @@ -113,17 +113,16 @@ rellis'%5D -) ,%0A co @@ -177,...
83a0d754fde427e1f11701052118f30dac474885
Remove notification pluralization logic
js/src/forum/components/PostLikedNotification.js
js/src/forum/components/PostLikedNotification.js
import Notification from 'flarum/components/Notification'; import username from 'flarum/helpers/username'; import punctuateSeries from 'flarum/helpers/punctuateSeries'; export default class PostLikedNotification extends Notification { icon() { return 'far fa-thumbs-up'; } href() { return app.route.post(...
JavaScript
0
@@ -55,118 +55,8 @@ on'; -%0Aimport username from 'flarum/helpers/username';%0Aimport punctuateSeries from 'flarum/helpers/punctuateSeries'; %0A%0Aex @@ -353,62 +353,8 @@ r(); -%0A const auc = notification.additionalUnreadCount(); %0A%0A @@ -445,222 +445,16 @@ t', -auc + 1, %7B%0A user,%0A username...
a2a3d67207932fe473564520b8701a7a6003c160
Fix modifiers striptelephoneevent (#501)
src/WebRTC/Modifiers.js
src/WebRTC/Modifiers.js
/** * @name SIP * @namespace */ "use strict"; module.exports = function(SIP) { var Modifiers; Modifiers = { stripTcpCandidates: function(description) { description.sdp = description.sdp.replace(/^a=candidate:\d+ \d+ tcp .*?\r\n/img, ""); return SIP.Utils.Promise.resolve(description); }, stripTelepho...
JavaScript
0
@@ -427,16 +427,20 @@ ent%5C/%5Cd+ +%5Cr%5Cn /img, %22%22
67333c27a1bc77f40e08e3aa57cb17b2d76cb8ca
add url projection
client/boot.js
client/boot.js
/* jshint esnext: true */ 'use strict'; import Map from "../node_modules/carbide/map"; import View from "./view"; import * as QString from "query-string"; function Client(){ var $view = new View(document); window.$view = $view; var queryString = location.search; var query = QString.parse(queryString); this...
JavaScript
0.000002
@@ -309,21 +309,20 @@ ng);%0A%0A -this. +var state = @@ -359,13 +359,36 @@ en: -false +location.pathname == %22/menu%22 ,%0A @@ -544,133 +544,197 @@ ;%0A -this.location = new Location();%0A this.location.update(this.state);%0A%7D%0A%0Afunction Location()%7B%0A function update(state)%7B +Object.definePro...
8ac42078d49adfa4b9821632e6a1b4a622ac69e2
Fix issue with tray on Windows.
main/tray.js
main/tray.js
module.exports = { hasTray, init, onWindowBlur, onWindowFocus } var electron = require('electron') var app = electron.app var config = require('../config') var windows = require('./windows') var tray function init () { if (process.platform === 'linux') { initLinux() } if (process.platform === 'wi...
JavaScript
0
@@ -1897,16 +1897,18 @@ Template +() )%0A tray
2d2d448e5485e0db7479d23ef7ec66e9d039c30e
Correct aspect ratio, essentially same as commit 4758f12eeb.
chapter05/sketch.js
chapter05/sketch.js
"use strict"; var canvas; var gl; var program; var pos_matrix; var u_pos_matrix; var perspective; var u_perspective; var rot_matrix; var shape; var shape_indexes; var index_buffer; var x_theta = 0.0; var y_theta = 0.0; var z_theta = 0.0; var vertex_buffer; var v_position; var color_buffer; var v_color; var colo...
JavaScript
0
@@ -1282,22 +1282,21 @@ ngBuffer -Height +Width / gl.dr @@ -1306,21 +1306,22 @@ ngBuffer -Width +Height ,%0A%090.1