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
73dbeed557071dbbb1c48caa2d1df2f075158ea1
Put fonts with the CSS
setup/webpack.config.js
setup/webpack.config.js
var path = require('path'); var webpack = require('webpack'); var Mix = require('laravel-mix').config; var plugins = require('laravel-mix').plugins; /* |-------------------------------------------------------------------------- | Mix Initialization |-----------------------------------------------------------------...
JavaScript
0
@@ -3149,30 +3149,38 @@ ath. -relative(__dirname, +parse(Mix.cssOutput()).dir + ' -. /fon @@ -3202,17 +3202,16 @@ ?%5Bhash%5D' -) %0A
8fafbd61d89c1b1638a228a23d77ea6d46fe854c
Remove parsing
Application/RecruitmentManagementSystem.App/Scripts/questions/controllers/questions.controller.js
Application/RecruitmentManagementSystem.App/Scripts/questions/controllers/questions.controller.js
(function(app) { "use strict"; app.controller("QuestionsController", [ "$http", "fileService", "notifierService", "questionConstants", "$scope", function($http, fileService, notifierService, constants, $scope) { var vm = this; vm.constants = constants; vm.allDocum...
JavaScript
0.000013
@@ -286,24 +286,37 @@ constants;%0A + %0A @@ -759,16 +759,129 @@ = true;%0A + console.log(vm.questionType);%0A console.log(vm.constants.questionType.descriptive); %0A @@ -1018,25 +1018,16 @@ hoices: -parseInt( vm.quest @@ -1037,13 +1037,8 @@ Type -, ...
323badd3ed9a8ce7db54f139acfb49d46918a0c1
Fix Challenge View (#1540)
CTFd/plugins/dynamic_challenges/assets/view.js
CTFd/plugins/dynamic_challenges/assets/view.js
CTFd._internal.challenge.data = undefined CTFd._internal.challenge.renderer = CTFd.lib.markdown(); CTFd._internal.challenge.preRender = function () { } CTFd._internal.challenge.render = function (markdown) { return CTFd._internal.challenge.renderer.render(markdown) } CTFd._internal.challenge.postRender = func...
JavaScript
0
@@ -483,26 +483,25 @@ lib.$('# -submission +challenge -input')
8645c2e9e086271a3c677873f771a7dfcf1fbcfd
Read from cookie
src/javascript/config.js
src/javascript/config.js
/* * Configuration values needed in js codes * * NOTE: * Please use the following command to avoid accidentally committing personal changes * git update-index --assume-unchanged src/javascript/config.js * */ function getAppId() { return localStorage.getItem('config.app_id') ? localStorage.getItem('config.app_...
JavaScript
0
@@ -497,25 +497,51 @@ er_url') -, +; %0A - +if(!server_url) %7B%0A var loginid @@ -572,16 +572,20 @@ + isReal = @@ -627,21 +627,21 @@ -realT + t oGreenPe @@ -650,51 +650,41 @@ ent - = -90,%0A virtualToBluePercent = 90,%0A +%7B'real': 100, 'other': 0%7D,%0A ...
2d27b42b8161dc715f9649d42d670b1a63d39e67
Add chainable add() method
public/assets/wee/script/chain/wee.chain.dom.js
public/assets/wee/script/chain/wee.chain.dom.js
(function(W, U) { 'use strict'; var $ = W._win[WeeAlias]; W.$chain({ addClass: function(value) { W.$addClass(this, value); return this; }, after: function(source, remove) { W.$after(this, source, remove); return this; }, append: function(source) { W.$append(this, source); return this; ...
JavaScript
0.000001
@@ -1,8 +1,31 @@ +/* global WeeAlias */%0A%0A (functio @@ -90,16 +90,189 @@ chain(%7B%0A +%09%09add: function(source) %7B%0A%09%09%09var orig = %5B%5D,%0A%09%09%09%09i = 0;%0A%0A%09%09%09for (; i %3C this.length; i++) %7B%0A%09%09%09%09orig.push(this%5Bi%5D);%0A%09%09%09%7D%0A%0A%09%09%09return $(W.$merge(orig, W.$(s...
4f6d21199cdba5d70df3f0e78d81cde680879de1
Remove unused variable
libsquoosh/src/worker_pool.js
libsquoosh/src/worker_pool.js
import { Worker, parentPort } from 'worker_threads'; import { TransformStream } from 'web-streams-polyfill'; function uuid() { return Array.from({ length: 16 }, () => Math.floor(Math.random() * 256).toString(16), ).join(''); } function jobPromise(worker, msg) { return new Promise((resolve, reject) => { ...
JavaScript
0.000015
@@ -1780,38 +1780,32 @@ const %7B value -, done %7D = await reade
a4c175ef207c97f84eca6c022b8d609973800512
use dialog skin in example
examples/example.js
examples/example.js
var View = require('../src/index.js'); var view = new View({skin: 'preview', position: 'mc', serviceName: 'SatisMeter'}); view.on('submit', function() { console.log('submit', view.rating, view.feedback); }); view.on('dismiss', function() { console.log('dismiss'); }); view.show(); // expose view for experiments win...
JavaScript
0
@@ -64,15 +64,14 @@ n: ' -preview +dialog ', p
ff3fb2e72ec9a0706c307135e1f30cc1389c0587
Add _gh_pages folder in ignores.
build/change-version.js
build/change-version.js
#!/usr/bin/env node /*! * Script to update version number references in the project. * Copyright 2017-2019 The Bootstrap Authors * Copyright 2017-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ 'use strict' const fs = require('fs') const path = require('path') ...
JavaScript
0.000042
@@ -2379,24 +2379,41 @@ '.git',%0A + '_gh_pages',%0A 'node_mo
e115c1fa950a9b145ef3bac12f7a67c65e86a984
Remove jquery and rails-ujs requires from backend.js
backend/app/assets/javascripts/spree/backend.js
backend/app/assets/javascripts/spree/backend.js
//= require solidus_admin/bind-polyfill //= require handlebars //= require jquery //= require rails-ujs //= require jquery.sticky-kit.min //= require solidus_admin/select2 //= require solidus_admin/underscore //= require solidus_admin/backbone //= require solidus_admin/backbone-nested-models //= require solidus_admin/p...
JavaScript
0.000034
@@ -60,49 +60,8 @@ ars%0A -//= require jquery%0A//= require rails-ujs%0A //=
caf91e7932a1892febe6d778b06fdb5860b0b914
Add back import that isn't strictly required
packages/ddp-client/client/client.js
packages/ddp-client/client/client.js
export { DDP, LivedataTest } from '../common/namespace'; if (false) { import './stream_client_sockjs'; } // Initialize the default server connection and put it on Meteor.connection import './client_convenience';
JavaScript
0
@@ -102,16 +102,57 @@ js';%0A%7D%0A%0A +import '../common/livedata_connection';%0A%0A // Initi
d9927217d414d9b615a20020a79fed65de95d149
Update demo
demo/javascripts/application.js
demo/javascripts/application.js
$(document).ready(function() { $('#slides').superslides({ slide_easing: 'easeInOutCubic', slide_speed: 800, pagination: true }); });
JavaScript
0.000001
@@ -126,16 +126,38 @@ ination: + true,%0A hashchange: true%0A
d44367961f763e009497a928143d594b04f01d39
Add error reporting to all calls.
examples/example.js
examples/example.js
/* * This file is part of noddycouch released under the MIT license. * See the NOTICE for more information. */ var sys = require("sys"), fs = require("fs"), couchdb =require("../couchdb"); s = new couchdb.Server() s.info({ success: function(b) { sys.puts("server info:" + b.version) } });...
JavaScript
0
@@ -194,25 +194,129 @@ chdb%22);%0A - %0A +%0Afunction reportError(label) %7B%0A return function(error) %7B%0A sys.puts(%22ERROR: %22 + label + %22: %22 + error);%0A %7D%0A%7D%0A%0A %0As = new @@ -409,24 +409,61 @@ version)%0A %7D +,%0A error: reportError(%22server info%22) %0A%7D);%0A%0As.uuid @@ -52...
6fe13a87ba349ccbfc091f57ee9c20225671219c
Fix sending test metadata
packages/ddp-server/stream_server.js
packages/ddp-server/stream_server.js
// By default, we use the permessage-deflate extension with default // configuration. If $SERVER_WEBSOCKET_COMPRESSION is set, then it must be valid // JSON. If it represents a falsey value, then we do not use permessage-deflate // at all; otherwise, the JSON value is used as an argument to deflate's // configure metho...
JavaScript
0
@@ -5253,16 +5253,54 @@ METADATA + && process.env.TEST_METADATA !== %22%7B%7D%22 ) %7B%0A
43d316347f41775fe145637672e1e14c4e5e2cb9
allow db connection to be configured by environment (overwriting config.test.json)
model/db.js
model/db.js
"use strict"; const { Pool } = require("pg"); var config = require("../config.js"); var should = require("should"); var sqldebug = require("debug")("OSMBC:model:sql"); const pgConfigValues = config.getValue("postgres", { mustexist: true }); const logTime = config.getValue("postgresLogStatements", { default: 1000 })...
JavaScript
0
@@ -1168,16 +1168,355 @@ 000%0A%7D;%0A%0A +// overwrite with environment%0Aif (process.env.POSTGRES_HOST) pgConfig.host = process.env.POSTGRES_HOST;%0Aif (process.env.POSTGRES_USER) pgConfig.user = process.env.POSTGRES_USER;%0Aif (process.env.POSTGRES_PORT) pgConfig.port = process.env.POSTGRES_PORT;%0Aif (process.env....
c9f64ec5fc2b0c7cd21781d519a8ed08c0c46f32
Update plugin.js
base/static/ckeditor/plugins/pbckcode/plugin.js
base/static/ckeditor/plugins/pbckcode/plugin.js
// needed js files var js = { ace : "ace.js", aceExtWhitespace : "ext-whitespace.js", pbSyntaxHighlighter : CKEDITOR.plugins.getPath('pbckcode') + "dialogs/PBSyntaxHighlighter.js" }; var commandName = 'pbckcode'; /** * Plugin definition */ CKEDITOR.plugins.add('pbckcode', { icons...
JavaScript
0.000001
@@ -952,49 +952,29 @@ : %22/ -/cdn.jsdelivr.net//ace/1.1.4/noconflict// +static/js/ace/src-min /%22%0A @@ -1134,32 +1134,34 @@ true);%0A +// editor.settings.
64e58d5ec230a379483719657773f899af49e802
Add max zip compression
scripts/bower-version.js
scripts/bower-version.js
var path = require('path'); var fs = require('fs'); var JSZip = require('jszip'); var glob = require('glob'); var zip = new JSZip(); var root = path.join(__dirname, '..'); var build = path.join(root, 'build'); var bowerJson = require(path.join(root, 'bower.json')); var npmJson = require(path.join(root, 'package.json'))...
JavaScript
0.000001
@@ -641,13 +641,69 @@ ebuffer' +, compression: 'DEFLATE', compressionOptions: %7Blevel: 9%7D %7D));%0A
97d20d349e12b03ccfa6077b99a1d0c7b041a3d8
Make options an optional argument to Ember.Handlebars.getPath
packages/ember-handlebars/lib/ext.js
packages/ember-handlebars/lib/ext.js
// ========================================================================== // Project: Ember Handlebar Views // Copyright: ©2011 Strobe Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== /*globals Handlebars...
JavaScript
0.000173
@@ -6220,16 +6220,27 @@ r data = + options && options
f96503cba3066c802927f26296cf40ab3e4b5fe9
declare data variable
hinclude.js
hinclude.js
/* hinclude.js -- HTML Includes (version 0.9) Copyright (c) 2005-2011 Mark Nottingham <mnot@mnot.net> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limita...
JavaScript
0.000456
@@ -3231,16 +3231,20 @@ w%0A +var data = u
718c0e810c98fd5fb8de40c70724563fac6cd670
Solve the 1st and 2nd sub-issue of the 6th koan
koans/AboutArrays.js
koans/AboutArrays.js
describe("About Arrays", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe(FILL_ME_IN); //A mistake? - http://javascript.crockford.com/remedial.html expect(emptyArray.length)....
JavaScript
0.998855
@@ -209,26 +209,24 @@ )).toBe( -FILL_ME_IN +'object' ); //A m @@ -312,34 +312,25 @@ ength).toBe( -FILL_ME_IN +0 );%0A%0A var @@ -451,34 +451,25 @@ ay%5B0%5D).toBe( -FILL_ME_IN +0 );%0A expec
a2d0bd210bafcb49c3894c33d90462a12e7b46ae
correct typo in error message and include path
modified.js
modified.js
var _ = require('lodash-node/modern'); module.exports = function lastModifiedPlugin(schema, options) { /* jshint eqnull:true */ options = _.merge({ optionKey: 'modified', date: { path: 'modified.date', options: {} }, by: { path: 'modified.by', ref: undefined, options: ...
JavaScript
0.000003
@@ -1469,16 +1469,23 @@ .path, ' +%7BPATH%7D must be @@ -1492,20 +1492,19 @@ updated -with +for documen @@ -1510,16 +1510,17 @@ nt modif +i cation')
df1a8e981737a7d1fc5799469e061c0ea8718f8a
Fix legacy getInputValue behaviour
imports/modules/get-input-value.js
imports/modules/get-input-value.js
import ReactDOM from 'react-dom'; export const getInputValue = (component) => { let el = ReactDOM.findDOMNode(component); if (el.tagName == "input") return el.value; else return el.getElementsByTagName("input")[0].value; };
JavaScript
0
@@ -134,16 +134,30 @@ .tagName +.toLowerCase() == %22inp
5cb604d88fbb00aad6bd705af0bbcac10b6c2de1
add method for resonding to updates
shared/src/model/api.js
shared/src/model/api.js
import { observable, computed, action } from 'mobx'; import { readonly } from 'core-decorators'; export default class ModelApi { @readonly requestsInProgress = observable.map(); @readonly requestCounts = observable({ read: 0, create: 0, update: 0, delete: 0, modify: 0, }); @observable er...
JavaScript
0
@@ -674,24 +674,232 @@ read'));%0A %7D +%0A %0A @computed get isWriteInProgress() %7B%0A return Boolean(%0A this.requestsInProgress.get('put') %7C%7C%0A this.requestsInProgress.get('post') %7C%7C%0A this.requestsInProgress.get('patch')%0A );%0A %7D %0A%0A @compute
ecbceeb9ca463626834a44b8bb7807711460065e
Add node shebang to single JS builds (#915)
scripts/build-webpack.js
scripts/build-webpack.js
#!/usr/bin/env node /* eslint-disable */ const webpack = require('webpack'); const path = require('path'); const util = require('util'); const fs = require('fs'); const version = require('../package.json').version; const basedir = path.join(__dirname, '../'); const babelRc = JSON.parse(fs.readFileSync(path.join(based...
JavaScript
0
@@ -639,32 +639,141 @@ ',%0A %7D%5D,%0A %7D,%0A + plugins: %5B%0A new webpack.BannerPlugin(%7B%0A banner: %22#!/usr/bin/env node%22,%0A raw: true%0A %7D)%0A %5D,%0A output: %7B%0A @@ -1440,16 +1440,125 @@ %5D,%0A %7D,%0A + plugins: %5B%0A new webpack.BannerPlugin(%7B%0A banner: ...
23c343ffe630d7c071c6581364f0b8329fd2536c
Update temporary list of tainted domains
core/interceptor.js
core/interceptor.js
/** * Interceptor * Belongs to Decentraleyes. * * @author Thomas Rientjes * @since 2016-04-06 * @license MPL 2.0 * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://moz...
JavaScript
0
@@ -1229,32 +1229,59 @@ nch.com': true,%0A + 'nhm.ac.uk': true,%0A 'openwea
8bc01267d3ba0467c5ea814fdd90a9221d88fe06
fix robert baratheon for single player games
server/game/cards/characters/01/robertbaratheon.js
server/game/cards/characters/01/robertbaratheon.js
const _ = require('underscore'); const DrawCard = require('../../../drawcard.js'); class RobertBaratheon extends DrawCard { constructor(owner, cardData) { super(owner, cardData); this.registerEvents(['onCardPlayed', 'onCardLeftPlay', 'onCardKneeled', 'onCardStood']); } calculateStrength(...
JavaScript
0
@@ -497,16 +497,24 @@ dsInPlay +.value() ;%0A
4a3e6248659cbd131db134fd5696f98b5cc1ea14
add test for #176
test/unit/io/save.js
test/unit/io/save.js
import {p5} from '../../lib'; import {testDownload} from './test-download'; describe('IO/save', function() { this.timeout(1000 * 5); it('save()', function(done) { testDownload('untitled', 'svg', function(p) { p.save(); }, done); }); it('save(Graphics)', function(done) { ...
JavaScript
0.000002
@@ -3,16 +3,24 @@ port %7Bp5 +, assert %7D from ' @@ -136,24 +136,752 @@ 1000 * 5);%0A%0A + // See https://github.com/zenozeng/p5.js-svg/issues/176%0A it('should generate valid svg output', async function() %7B%0A const dataURL = await new Promise((resolve) =%3E %7B%0A new p5((p) =%3E %7B%0A ...
125765b7e173fc4a227df96c931bc38bd5fc894d
Add changelings to the character creation section
public/scripts/app/views/CharacterCreateView.js
public/scripts/app/views/CharacterCreateView.js
// Category View // ============= // Includes file dependencies define([ "jquery", "backbone", "text!../templates/character-create-view.html", "text!../templates/werewolf-create-view.html" ], function( $, Backbone, character_create_view_html , werewolf_create_view_html ) { // Extends Backbone.View v...
JavaScript
0
@@ -984,32 +984,221 @@ this.model %7D );%0A + %7D else if (%22ChangelingBetaSlice%22 == this.model.get(%22type%22)) %7B%0A this.template = _.template(changelinge_beta_slice_create_view_html)(%7B %22character%22: this.model %7D );%0A %7D el
46ac947e9b681b494dba5f541a6c47e09582cda0
Refactor auth config checks in another test (#3698)
services/github/github-api-provider.integration.js
services/github/github-api-provider.integration.js
'use strict' const { expect } = require('chai') const serverSecrets = require('../../lib/server-secrets') const GithubApiProvider = require('./github-api-provider') describe('Github API provider', function() { const baseUrl = process.env.GITHUB_URL || 'https://api.github.com' const reserveFraction = 0.333 let ...
JavaScript
0
@@ -52,58 +52,49 @@ nst -serverSecrets = require('../../lib/server-secrets' +config = require('config').util.toObject( )%0Aco @@ -348,21 +348,22 @@ n = -serverSecrets +config.private .gh_
232b99a37efd765ad93041d168e5a7daa98a5ee5
Move help result up if shows
app/cmd/commandsCatalog.js
app/cmd/commandsCatalog.js
app.run(function() { "use strict"; var dispatcher = app.get('dispatcher'); dispatcher.commands({ 'help': function() { return new app.models.HelpResult(); }, 'clear': function() { app.controller('cmdController').clear(); }, 'em': function() { ...
JavaScript
0
@@ -125,32 +125,224 @@ ': function() %7B%0A + var helpResult = document.querySelector('.result .help');%0A if(helpResult != null) %7B%0A moveHelpResultUp(helpResult);%0A return;%0A %7D%0A retu @@ -870,12 +870,334 @@ %7D);%0A +%0A func...
e840e711329c6a59e593669bc4fd1e2cac5210eb
Fix HoundCI issues
scripts/merge-configs.js
scripts/merge-configs.js
/* global hexo */ var merge = require('./merge'); /** * Merge configs in _data/next.yml into hexo.theme.config. * Note: configs in _data/next.yml will override configs in hexo.theme.config. */ hexo.on('generateBefore', function () { if (hexo.locals.get) { var data = hexo.locals.get('data'); if ( data && ...
JavaScript
0
@@ -358,16 +358,18 @@ erride ) + %7B %0A @@ -402,19 +402,24 @@ next +; %0A + %7D else + %7B %0A @@ -458,16 +458,25 @@ ta.next) +;%0A %7D %0A %7D%0A
644f3820d6cdfc1af40a6051b3d7bb5dadcb9234
Fix broccoli pipeline
Brocfile.js
Brocfile.js
var concat = require('broccoli-sourcemap-concat'); var Funnel = require('broccoli-funnel'); var mergeTrees = require('broccoli-merge-trees'); var compileES6Modules = require('broccoli-es6modules'); var transpileES6 = require('broccoli-babel-transpiler'); var jshintTree = require('broccoli-jshint'); var replace ...
JavaScript
0.000012
@@ -2319,100 +2319,8 @@ %5D);%0A - main%5Bpackage.name%5D = jscs(main%5Bpackage.name%5D, %7B%0A esnext: true,%0A enabled: true%0A %7D);%0A ma
eb13e5563928ea6ea754801cf9e9dccb38413dd3
make loadGraph execute in update_state() instead of input
browser/plugins/load_graph_on_trigger.plugin.js
browser/plugins/load_graph_on_trigger.plugin.js
(function() { var LoadGraphOnTrigger = E2.plugins.load_graph_on_trigger = function(core, node) { Plugin.apply(this, arguments) this.desc = 'Loads and plays the Vizor file (replacing the current one) on trigger' this.input_slots = [{ name: 'trigger', dt: core.datatypes.BOOL, desc: 'When trigger is true, the...
JavaScript
0
@@ -85,14 +85,8 @@ core -, node ) %7B%0A @@ -543,138 +543,130 @@ type -.update_input = function(slot, data) %7B%0A%09Plugin.prototype.update_input.apply(this, arguments)%0A%0A%09if (slot.name === 'trigger' && data + = Object.create(Plugin.prototype)%0A%0ALoadGraphOnTrigger.prototype.update_state = function() %7B%0A%...
9fb2108118183e90f03f8b2d96a5919a59a186d2
Remove amount limit TODO, handled with documentation.
app/index.js
app/index.js
/** * Created by sbardian on 5/16/17. */ import React from 'react'; import PropTypes from 'prop-types'; import openTriviaAPI from 'opentriviaapi'; import QuestionWrapper from './components/QuestionWrapper'; export default class OpenTrivia extends React.Component { constructor(props) { super(props); this.s...
JavaScript
0
@@ -1977,80 +1977,8 @@ %0A%7D%0A%0A -// TODO: API only takes between 1-50 for amount, need to have a limit. %0A Open
f5d241b5d5782d46aba15ee6c7735ab5560ecf1a
Add bcrypt-nodejs and Promise to package.json, fix minor require statements
app/collections/invites.js
app/collections/invites.js
var db = require('../config'); var Invite = require('../models/invitee'); var Invites = new db.Collection(); Invites.model = Invite; module.exports = Invites;
JavaScript
0
@@ -62,17 +62,16 @@ s/invite -e ');%0A%0Avar
a13f42871e276981f8b11d97dac0fe1c29041689
update search call
lambdas/api/index.js
lambdas/api/index.js
'use strict' const zlib = require('zlib') const Api = require('sat-api-lib') const util = require('lambda-proxy-utils') const get = require('lodash.get') const es = require('../../lib/es') module.exports.handler = function (event, context, cb) { console.log(`API handler: ${JSON.stringify(event)}`) const resourc...
JavaScript
0
@@ -42,17 +42,17 @@ )%0Aconst -A +a pi = req @@ -932,16 +932,21 @@ st s +earch = new -A +a pi.s @@ -1051,18 +1051,20 @@ s -%5B' +earch. search -'%5D (fun
6e942fd6e3f2d3d90dfee4aa34bcbb7b501081ad
Fix filtering on discussion
app/coffeescripts/views/DiscussionTopic/DiscussionToolbarView.js
app/coffeescripts/views/DiscussionTopic/DiscussionToolbarView.js
// // Copyright (C) 2012 - present Instructure, Inc. // // This file is part of Canvas. // // Canvas is free software: you can redistribute it and/or modify it under // the terms of the GNU Affero General Public License as published by the Free // Software Foundation, version 3 of the License. // // Canvas is distribut...
JavaScript
0.000002
@@ -1859,16 +1859,22 @@ change', + () =%3E this.cl @@ -1882,16 +1882,18 @@ arInputs +() )%0A %7D%0A%0A
0c1bdc76016ae210fe4da824387f9813621d43c6
add tocco-util transform plugin
build/webpack.config.js
build/webpack.config.js
import path from 'path' import webpack from 'webpack' import HtmlWebpackPlugin from 'html-webpack-plugin' import config from '../config' import _debug from 'debug' import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin' import LodashModuleReplacementPlugin from 'lodash-webpack-plugin' const debug = ...
JavaScript
0
@@ -4240,24 +4240,205 @@ port': true%0A + %7D,%0A 'tocco-util': %7B%0A 'transform': 'tocco-util/src/$%7Bmember%7D', // eslint-disable-line no-template-curly-in-string%0A 'preventFullImport': true%0A %7D%0A
861fb75b3975111a6ea85d268327f86330a9c165
Update ddb_query.js
javascript/example_code/dynamodb/ddb_query.js
javascript/example_code/dynamodb/ddb_query.js
/* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This fi...
JavaScript
0
@@ -1,9 +1,6 @@ / -*%0A +/ Cop @@ -77,26 +77,12 @@ ed.%0A -%0A This file is l +// L icen @@ -105,428 +105,80 @@ ache - License, Version 2.0 (the %22License%22).%0A You may not use this file except in compliance with the License. A copy of%0A the License is located at%0A%0A http://aws.amazon.com/apache2...
cb7e7372335b9f90fa23b513098548b7e4b2a6f1
fix protractor to load correct routes
spec/javascripts/e2e/affordability_page_spec.js
spec/javascripts/e2e/affordability_page_spec.js
describe('E2E: affordability calculator page', function() { var ptor; beforeEach(function() { browser.get('#/affordability'); ptor = protractor.getInstance(); }); it('should load the affordability calculator page', function() { var ele = by.css('h2'); expect(ptor.isElementPresent(ele)).toB...
JavaScript
0
@@ -114,9 +114,27 @@ et(' -# +mortgage_calculator /aff @@ -284,17 +284,17 @@ y.css('h -2 +1 ');%0A
0af06a1ea4d4d32b4c67d2c942b63228da6a96e3
rename relayout method
window.js
window.js
import { arr, obj } from "lively.lang"; import { pt, Color, Rectangle } from "lively.graphics"; import { show, morph, Morph, GridLayout } from "./index.js"; import { connect } from "lively.bindings"; export default class Window extends Morph { constructor(props = {}) { super({ fill: Color.lightGray, ...
JavaScript
0.000001
@@ -570,16 +570,17 @@ sizable) +; %0A %0A @@ -1055,31 +1055,32 @@ this. -positionResizer +relayoutControls ();%0A @@ -1110,31 +1110,32 @@ this, %22 -positionResizer +relayoutControls %22);%0A %7D%0A @@ -1738,23 +1738,24 @@ %0A%0A -positionResizer +relayoutControls () %7B
1a05c4f97bff618339bb5eb42d796cdcc23c15e9
remove race condition where song could possibly be downloaded twice
backends/gmusic.js
backends/gmusic.js
var config; var creds = require(process.env.HOME + '/.googlePlayCreds.json'); var PlayMusic = require('playmusic'); var mkdirp = require('mkdirp'); var https = require('https'); var send = require('send'); var url = require('url'); var fs = require('fs'); var gmusicBackend = {}; var gmusicDownload = function(startUrl...
JavaScript
0
@@ -2499,24 +2499,47 @@ ;%0A %7D%0A%7D;%0A%0A +var pendingSongs = %7B%7D;%0A // cache son @@ -2794,16 +2794,105 @@ .mp3';%0A%0A + // song is already downloading%0A if(pendingSongs%5BsongID%5D) %7B%0A return;%0A %7D%0A%0A if(f @@ -3077,58 +3077,255 @@ -gmusicDownload(null, songID, callba...
307546fcdf9cdd1520e47833e3623904f214ae0b
Change wef type "function" -> "object"
test/wef.coreTest.js
test/wef.coreTest.js
/*! * wef.core tests * Copyright (c) 2011 Pablo Escalada * MIT Licensed */ module("core"); test("namespace", function() { notEqual(wef, undefined, "is wef namespace defined?"); notEqual(typeof wef, "function", "is wef a function?"); }); test("public properties", function() { equal(typeof wef.version, "...
JavaScript
0
@@ -178,28 +178,25 @@ ned?%22);%0A -notE +e qual(typeof @@ -201,24 +201,22 @@ f wef, %22 -function +object %22, %22is w @@ -219,25 +219,24 @@ is wef a - function +n object ?%22);%0A%7D);
d4ee091f5c4c3893996a2d36b01d3573f4af8df2
Update index.js
webpack/gitbook/gitbook-plugin-modal/index.js
webpack/gitbook/gitbook-plugin-modal/index.js
var className = 'gitbook-plugin-modal'; require(['gitbook'], function (gitbook) { gitbook.events.bind('page.change', function () { // 配置项 var cfg = gitbook.state.config.pluginsConfig.modal || {}; var html = cfg.html; var closeable = cfg.closeable; var excludeUrls = cfg.excludeUrls || []; v...
JavaScript
0.000002
@@ -1563,24 +1563,26 @@ %E4%BA%8B%E4%BB%B6%E7%9B%91%E5%90%AC%E6%A3%80%E6%9F%A5%0A +// $bookBody.ad @@ -1701,16 +1701,18 @@ 0%5D;%0A +// $bodyInn
d76d04f2244ccaf7a347750972e2ee8f6d8d80e7
Fix path for resolving embed.hbs
src/js/bundle-webpack.js
src/js/bundle-webpack.js
var sprintf = require('sprintf'); var gutil = require('gulp-util'); var extend = require('object-extend'); var gulpWebpack = require('webpack-stream'); var WebpackDevServer = require("webpack-dev-server"); var HtmlWebpackPlugin = require('html-webpack-plugin') var gulp = require('gulp'); var src = gulp.src; var des...
JavaScript
0.000002
@@ -2836,36 +2836,10 @@ ve(' -lucify-component-builder/src +.. /www
e4b2e9f53ca4ebb78e506e6a2258998f3a105a77
Use break instead of return
js/app/modules/supplementaryArticlesModule.js
js/app/modules/supplementaryArticlesModule.js
// Copyright 2016 Endless Mobile, Inc. /* exported SupplementaryArticlesModule */ const Gettext = imports.gettext; const GObject = imports.gi.GObject; const Lang = imports.lang; const Actions = imports.app.actions; const Config = imports.app.config; const Dispatcher = imports.app.dispatcher; const Module = imports.a...
JavaScript
0.000001
@@ -2091,22 +2091,21 @@ +b re -turn +ak ;%0A%0A
4756ece5d684c3388e0473c7da7f90dd5ca9f495
update CardViewModel dependency #515
arches/app/media/js/views/components/resource-report-abstract.js
arches/app/media/js/views/components/resource-report-abstract.js
define([ 'arches', 'jquery', 'underscore', 'knockout', 'report-templates', 'models/report', 'models/graph', 'viewmodels/card', ], function(arches, $, _, ko, reportLookup, ReportModel, GraphModel, CardViewModel) { var ResourceReportAbstract = function(params) { var self = ...
JavaScript
0
@@ -240,17 +240,16 @@ el) %7B - %0A var @@ -4470,55 +4470,22 @@ if ( -ko.unwrap(this.template)?.preload_resource_data +!CardViewModel ) %7B%0A @@ -4600,16 +4600,33 @@ Model; %0A + %0A @@ -4669,33 +4669,32 @@ %7D);%0A %7D - %0A else %7B%0A @@ -4734,17 +4734,16 @@ ...
8ad80b54e5f0cd6814c4eb847717e89c8db351f5
Remove copy of require-router
app/index.js
app/index.js
var fs = require('fs'); var util = require('util'); var path = require('path'); var Base = require('../lib/base'); var ThoraxGenerator = module.exports = function (args, options, config) { Base.apply(this, arguments); this.prompts.push({ type: 'confirm', name: 'newDirectory', message: 'Would you lik...
JavaScript
0
@@ -2623,94 +2623,8 @@ s'); -%0A this.copy('seed/tasks/tools/_require-router.js', 'tasks/tools/_require-router.js'); %0A%0A
b791f99fa13421e684b7b5de51cc2858c95d6433
update gulpfile
gulpfile.js
gulpfile.js
var gulp = require('gulp'), ossup = require('gulp-oss-up'), newer = require('gulp-newer'), useref = require('gulp-useref'), clean = require('gulp-clean'), exec = require('child_process').exec, runSequence = require('run-sequence'), rev = require('gulp-rev'), revReplace = require('gulp-re...
JavaScript
0.000001
@@ -1802,26 +1802,29 @@ p.task(' -oss-before +init-manifest ', () =%3E @@ -3033,19 +3033,25 @@ ask( -%22oss-after%22 +'update-manifest' , () @@ -3118,16 +3118,67 @@ ifest))%0A + return gulp%0A%7D)%0A%0Agulp.task('clean-assets', () =%3E %7B %0A retur @@ -3210,17 +3210,16 @@ images', - %0A ' @@ -3226,25 +...
2ef8a0fbe60e486d9beabc3fe32207a3c6fd2e78
Add make directorya and clone runTest test case
test/run.js
test/run.js
/* global describe it beforeEach */ 'use strict' const chai = require('chai') const chaiAsPromised = require('chai-as-promised') const requireInject = require('require-inject') const sinon = require('sinon') const sinonChai = require('sinon-chai') require('sinon-as-promised') chai.use(chaiAsPromised) chai.use(sinonCh...
JavaScript
0
@@ -416,16 +416,126 @@ et stubs +%0A const defaultCommandOutput = %7B%0A command: 'command',%0A stdout: 'stdout',%0A stderr: 'stderr'%0A %7D %0A%0A befo @@ -678,16 +678,43 @@ exec: + sinon.stub(),%0A mkdir: sinon.s @@ -961,24 +961,44 @@ ec.resolves( +defaultCommandOutput )%0A const ...
91a5b111f0f2afe83d3f209e9d39fb03ffe9af03
fix typo in conditional
app/index.js
app/index.js
'use strict'; var util = require('util'), path = require('path'), yeoman = require('yeoman-generator'); function ExpressSimpleGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.argument('appname', { desc: 'create an express-app with name [appname]', type: Boole...
JavaScript
0.000338
@@ -4317,32 +4317,135 @@ = function () %7B%0A + var buildFile = (this.buildTool === 'grunt' ? 'Gruntfile.' : 'gulpfile.') + this.buildToolLanguage;%0A%0A this.sourceRoo @@ -4527,32 +4527,24 @@ is.buildTool -Language === 'grunt' @@ -4569,83 +4569,27 @@ ate( -'Gruntfile.' + this.buildToolLanguage, 'Gruntfile.' +...
358725bee3a450edb2a8137020f83ccc9610ea91
Add onRemove handler to pad outline
src/js/directives/pad.js
src/js/directives/pad.js
'use strict'; /** * @ngdoc function * @name Teem.controller:ChatCtrl * @description * # Chat Ctrl * Show Pad for a given project */ angular.module('Teem') .directive('pad', function() { return { scope: true, link: function($scope, elem, attrs) { $scope.editingDefault = attrs.editingDef...
JavaScript
0
@@ -2470,32 +2470,201 @@ $timeout();%0A + %7D,%0A onRemove: function() %7B%0A $scope.pad.outline = this.editor.getAnnotationSet('paragraph/header');%0A $timeout();%0A %7D%0A
790cfb574ec43610cacbb6c32af6dcb358458250
change in browser
app/controllers/browser.js
app/controllers/browser.js
var args = arguments[0] || {}; var image = args.image; var video = args.video; if (video) { if (video.length < 18) { $.header.title.text = video; $.show.setUrl(video); } else { var x = video.substring(6, 21); $.header.title.text = x; $.show.setUrl(video); } } else { $.header.title.text = image; $.show....
JavaScript
0.000001
@@ -208,9 +208,9 @@ ing( -6 +7 , 21
7417d3008779f126aa7ebcb41cbaaeeaace076d6
test escape
js/book.js
js/book.js
var number = 1; document.onkeydown = checkKey; //Buttons $(document).ready(function () { if(number == 1) { number++; getData(); } }); function animalNoise(text) { var hasGorilla = text.includes("Gorilla"); var hasTiger = text.includes("Tiger"); var hasPeacock = text.includes("Peacock"); var hasFlamingo = te...
JavaScript
0.000003
@@ -4725,16 +4725,37 @@ == '32' + %7C%7C e.keyCode == '27' ) %7B%0A
fc141c05b526bc883b8db5dbe8619743f610abea
Fix dropping of images in image responses when a response exists
src/js/image-response.js
src/js/image-response.js
import Dropzone from 'react-dropzone'; import uuid from 'node-uuid'; import * as uploader from './uploader.js'; import {authorize} from './auth.js'; import LoginGate from './login-gate.js'; import storage from './storage.js'; import cond from 'lodash/fp/cond'; const style = { width: '100%', height: 200, borderWi...
JavaScript
0.000086
@@ -793,22 +793,16 @@ aveHook( -() =%3E this.bef @@ -812,18 +812,69 @@ SaveHook -( ) +;%0A this.props.addAfterSaveHook(this.afterSaveHook );%0A %7D,%0A @@ -1736,16 +1736,116 @@ %7D%0A %7D,%0A + afterSaveHook(savePromise) %7B%0A savePromise.then(() =%3E this.setState(%7BcurrentFile: null%7D));%0A %7D,%...
c1f10e6db36cecaeac086a43d4ba84804a82688f
add phpunit to gulp
gulpfile.js
gulpfile.js
var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Larave...
JavaScript
0.000001
@@ -466,18 +466,16 @@ (mix) %7B%0A - mix.sa @@ -488,14 +488,30 @@ p.scss') +%0A .phpUnit() ;%0A%7D);%0A
47f77c5c942cb2b645a12ba32e7f7bb4ae7f0da1
modify searchIndex class method
src/js/inverted-index.js
src/js/inverted-index.js
/* Inverted index class */ class InvertedIndex { /** * @constructor */ constructor() { this.indexMap = {}; } /** * createIndex * create an index map of an array of object * @param {Object} jsonContent an array of objects * @return {Object} */ createIndex(jsonContent) { if (!(t...
JavaScript
0
@@ -1,9 +1,8 @@ -%0A /* Inver @@ -635,17 +635,16 @@ docId)%0A -%0A %7D);%0A @@ -985,29 +985,25 @@ let -foundInDocuments = %5B%5D +searchResult = %7B%7D ;%0A%0A @@ -1085,30 +1085,29 @@ -foundInDocuments.push( +searchResult%5Bword%5D = this @@ -1119,17 +1119,16 @@ ch(word) -) ;%0A @@ -1151,24 ...
47eca745ea7f0d60a62f4b9f2eb8c8f7909a035d
TEST bower
app/index.js
app/index.js
(function () { 'use strict'; var util = require('util'), path = require('path'), slug = require('slug'), fs = require('fs'), yeoman = require('yeoman-generator'), chalk = require('chalk'); var ScaffoldGenerator = module.exports = function ScaffoldGenerator(args, op...
JavaScript
0.000001
@@ -5278,56 +5278,8 @@ n'); -%0A%0A this.spawnCommand('grunt', %5B'bower'%5D); %0A
cf229ff0071fb24029f27683dc62462717f73ca6
Correcting the spelling of the GSIM groups query
src/js/sparql/queries.js
src/js/sparql/queries.js
//TODO we might need to filter on the language, but for now english seems to be //the only language available /** * Builds the query that retrieve the GSBPM overlook */ const GSBPMDescription = () => ` PREFIX gsbpm: <http://rdf.unece.org/models/gsbpm#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> select ...
JavaScript
0.999993
@@ -3273,17 +3273,17 @@ nst GSIM -g +G roups =
c7bf0c5c03a5c7716a39a0f2f5a11681eedbac7f
Fix prototype used for selector matcher function
src/js/utils/elements.js
src/js/utils/elements.js
// ========================================================================== // Element utils // ========================================================================== import is from './is'; import { extend } from './objects'; // Wrap an element export function wrap(elements, wrapper) { // Convert `elements`...
JavaScript
0
@@ -6170,18 +6170,16 @@ pe = - %7B Element %7D;%0A @@ -6174,18 +6174,26 @@ Element - %7D +.prototype ;%0A%0A f
340ac1cb72287947d0840b1234b2b0804df0f3c0
Change base_url to _plugins/crate-admin
app/index.js
app/index.js
require.config({ baseUrl: '/_plugin/ca', paths: { // Libraries backbone: 'bower_components/backbone/backbone', bootstrap: 'bower_components/bootstrap/dist/js/bootstrap', jquery: 'bower_components/jquery/dist/jquery', text: 'bower_components/requirejs-text/text', ...
JavaScript
0.000001
@@ -34,17 +34,26 @@ plugin/c -a +rate-admin ',%0A%0A
49628112767a120ea9a72379c223b96f000bc076
change json util
src/jsonUtil/jsonUtil.js
src/jsonUtil/jsonUtil.js
angular.module('cgGrid.jsonUtil', ['cgGrid.lodash']) .factory('JsonUtil', function (_) { function getKeys(json){ return _.keys(json); } function getHeaders(size,type){ return _.range(size) .map(function(){ return type }) } function transformJson...
JavaScript
0.00404
@@ -46,18 +46,16 @@ dash'%5D)%0A - .facto @@ -85,25 +85,24 @@ (_) %7B%0A%0A -%09 function get @@ -111,24 +111,25 @@ ys(json) + %7B%0A + -%09%09 + return _ @@ -145,24 +145,23 @@ n);%0A -%09 %7D%0A +%0A -%09 function @@ -181,22 +181,24 @@ ize, + type) + %7B%0A%0A + -%09%09 + ...
ab0a8e590c9bfe55a70f5196003910b9d4db51b2
add isCreator
scripts/services/task.js
scripts/services/task.js
'use strict'; app.factory('Task', function(FURL, $firebase, Auth) { var ref = new Firebase(FURL); var tasks = $firebase(ref.child('task')).$asArray(); var user = Auth.user; var Task = { all: tasks, getTask: function(taskId) { return $firebase(ref.child('tasks').child(taskId)); }, createTask: functi...
JavaScript
0.000259
@@ -690,16 +690,118 @@ ;%0A%09%09%7D,%0A%0A +%09%09isCreator: function(task) %7B%09%09%09%0A%09%09%09return (user && user.provider && user.uid === task.poster);%0A%09%09%7D,%0A%0A %09%7D;%0A%0A%0A%7D)
e11d932d7aa6e612cb406c911c19e4c65871edf1
update copyright dates from daily grunt work
js/VerticalAquaRadioButtonGroup.js
js/VerticalAquaRadioButtonGroup.js
// Copyright 2020, University of Colorado Boulder /** * VerticalAquaRadioButtonGroup is a convenience class for creating a vertical AquaRadioButtonGroup. * * @author Chris Malley (PixelZoom, Inc.) */ define( require => { 'use strict'; // modules const AquaRadioButtonGroup = require( 'SUN/AquaRadioButtonGrou...
JavaScript
0
@@ -6,16 +6,21 @@ pyright +2013- 2020, Un
77b40a38e5e314b80509a8752d923db4dd771de3
Adding the into keyword
scripts/shBrushCSharp.js
scripts/shBrushCSharp.js
;(function() { // CommonJS SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null); function Brush() { var keywords = 'abstract as base bool break byte case catch char checked class const ' + 'continue decimal default delegate do double else enu...
JavaScript
0.999889
@@ -784,16 +784,21 @@ roup by +into select'; @@ -2214,9 +2214,8 @@ ;%0A%7D)();%0A -%0A
a5f3b0165c918f78d0a7f06d2e8e5e4cde9c86d5
Fix a typo in test helper. (#13161)
testing/test-helper.js
testing/test-helper.js
/** * Copyright 2016 The AMP HTML Authors. 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 require...
JavaScript
0.999534
@@ -1664,16 +1664,17 @@ in, -'viewer' +serviceId );%0A
0bee7fc7398a1c4958b8e14a4f0f1b239c6dd7f3
Remove unneeded line
test/tdd.js
test/tdd.js
var assert = require('assert'), factorial = require('../index'); suite('Test', function (){ setup(function (){ // Create any objects that we might need }); suite('#factorial()', function (){ test('equals 1 for sets of zero length', function (){ assert.equal(1, factorial(0)...
JavaScript
0.001768
@@ -63,17 +63,16 @@ dex');%0A%0A -%0A suite('T
3d00f81e6760dd3f740bbd34392ce5b3ca1f6008
Refactor benchmark
benchmark/index.js
benchmark/index.js
'use strict'; var Retext, retext, keywords, source, sourceSmall, sourceMedium, tiny, small, medium, wordCount, sentenceCount, paragraphCount; Retext = require('retext'); keywords = require('..'); /* First paragraph on term extraction from Wikipedia: * http://en.wikipedia.org/wiki/Terminology_extraction ...
JavaScript
0
@@ -12,146 +12,58 @@ ';%0A%0A -var Retext, retext, keywords, source,%0A sourceSmall, sourceMedium,%0A tiny, small, medium +/**%0A * Dependencies.%0A */%0A%0Avar Retext ,%0A +key word -Count, sentenceCount, paragraphCount +s ;%0A%0AR @@ -118,16 +118,36 @@ .');%0A%0A/* +*%0A * Fixtures.%0A *%0A * First p...
c3eb6982ba519a93304dce4b5666e5b009adb586
Set correct moduleName and run this.askFor()
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var shell = require('shelljs'); var npmName = require('npm-name'); var yeoman = require('yeoman-generator'); var SimpleNodePackageGenerator = module.exports = function SimpleNodePackageGenerator(args, options, config) { yeoman.generators.Base.app...
JavaScript
0.000001
@@ -1748,24 +1748,65 @@ ubUsername;%0A + this.moduleName = props.moduleName;%0A%0A if (prop @@ -1842,20 +1842,16 @@ s.askFor -Name ();%0A @@ -1857,49 +1857,8 @@ %7D%0A%0A - this.moduleName = props.moduleName;%0A%0A
63e79a0504a3e511722e8980b2eabd3e9a5c55e7
Add header and footer to app layout
src/layouts/app/index.js
src/layouts/app/index.js
// External Deps import React from 'react'; import Radium from 'radium'; import { GatewayProvider, GatewayDest } from 'react-gateway'; // Theme import { grey } from 'theme/variables'; // Sub-layouts import TopLeftSection from 'layouts/topLeftSection'; import TopRightSection from 'layouts/topRightSection'; import Bott...
JavaScript
0
@@ -447,16 +447,69 @@ = 40;%0A%0A +const HEADER_HEIGHT = 50;%0Aconst FOOTER_HEIGHT = 50;%0A%0A const TO @@ -1222,27 +1222,147 @@ EIGHT + -APP_PADDING +HEADER_HEIGHT + FOOTER_HEIGHT + APP_PADDING,%0A display: 'flex',%0A flexDirection: 'column',%0A alignItems: 'center' %0A %7D @@ -1370,19 ...
046ce954fde98d9cf393156af2b01871cb0c788e
Fix gulp watch to call sass instead of css
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp') , browserify = require('browserify') , bump = require('gulp-bump') , connect = require('gulp-connect') , eslint = require('gulp-eslint') , insert = require('gulp-insert') , rename = require('gulp-rename') , rimraf = require('gulp-rimraf') , sass = require('gulp-...
JavaScript
0
@@ -3318,17 +3318,18 @@ /*'%5D, %5B' -c +sa ss'%5D);%0A%7D
234c911e423785b2a0c6f32ea9d5cd9b2fabcb8a
Remove obsolete server hash
src/leo-export-inject.js
src/leo-export-inject.js
di.require(["$tooltip"], function(tooltip){ window.postMessage({ type: 'LeoDict', payload: { wordsCount: CONFIG.pages.userdict3.count_words, serverHash: CONFIG_GLOBAL.serverHash } }, '*'); window.addEventListener("message", function(event) { // We only accept messages from ourselves if (event.source != windo...
JavaScript
0.000005
@@ -139,46 +139,8 @@ ords -, serverHash: CONFIG_GLOBAL.serverHash %7D %7D
ca7a21bab4295e62aa0196bb605deaf00145adb5
Add tests and fix raw not being a string (#5)
lib/smtp.js
lib/smtp.js
'use strict'; var uuid = require('node-uuid'); var MailParser = require("mailparser").MailParser; var SMTPServer = require('smtp-server').SMTPServer; function SmtpServer(port, logger, storage) { this.port = port; this.storage = storage; this.logger = logger; var onData = function onData(stream, session, callb...
JavaScript
0
@@ -537,16 +537,27 @@ sh(chunk +.toString() );%0A %7D @@ -1864,16 +1864,18 @@ unction( +cb ) %7B%0A th @@ -1900,16 +1900,20 @@ his.port +, cb );%0A%7D;%0A%0Am
7cea2050b11abb0eaf6492fabd93fc5a254c187f
Update to React instead of react.
app/index.js
app/index.js
/** * Created by sbardian on 5/16/17. */ import react from 'react'; class openTrivia extends react.Component { constructor (props) { super(props); this.state = { test: 'test', } } componentWillReceiveProps (newProps) { // When component gets props } componentWillUnmount () { //...
JavaScript
0
@@ -44,21 +44,25 @@ %0Aimport -r +%7B R eact + %7D from 'r @@ -94,17 +94,17 @@ extends -r +R eact.Com
772d24f0b88fde27d586eaa0300f90c6708ab1e2
update build scripts
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const { series, parallel } = gulp; const glob = require('glob'); const shell = cmd => require('child_process').execSync(cmd, { stdio: [0, 1, 2] }); const del = require('del'); const source = require('vinyl-source-stream'); const buffer = require('vinyl-buffer'); const $ = require('gulp-loa...
JavaScript
0.000003
@@ -1935,47 +1935,8 @@ s %7D) -%0A .on('update', () =%3E void bundle()) ;%0A
b3c5edabc74b8ef220e7fce917b2dd1655886466
Add gulp gh-deploy
gulpfile.js
gulpfile.js
var src = ['src/**', 'sw/**']; var deployDir = 'docs'; var gulp = require('gulp'); var clean = require('gulp-clean'); var concat = require('gulp-concat'); var jshint = require('gulp-jshint'); var uglify = require('gulp-uglify'); var babel = require('gulp-babel'); var inject = require('gulp-inject'); var minifyHtml = r...
JavaScript
0.000001
@@ -53,20 +53,21 @@ ';%0A%0Avar -gulp +babel = requi @@ -74,16 +74,65 @@ re('gulp +-babel');%0Avar browserSync = require('browser-sync ');%0Avar @@ -203,22 +203,21 @@ ');%0Avar -jshint +debug = requi @@ -229,22 +229,21 @@ ulp- -jshint +debug ');%0Avar ugli @@ -238,22 +238,23 @@ ');%0Avar -uglify +ghPag...
855ac6a804a3eeffb06182532d9f2599b49f77ae
remove unused acceleration, causing errors in android browsers
app/js/ui.js
app/js/ui.js
module.exports = ColorUI; var round = Math.round; var abs = Math.abs; /** * Class to calculate the color if the screen * based on the movement of the phone * * Also draws the color the given DOM element * * @param {Object} opts options */ function ColorUI(opts) { this.dom = opts.dom || document.body; // a...
JavaScript
0
@@ -329,53 +329,8 @@ ion%0A - this.ax = 0;%0A this.ay = 0;%0A this.az = 0;%0A th @@ -636,178 +636,28 @@ var -acc = e.accelerationIncludingGravity;%0A var rr = e.rotationRate;%0A this.ax = round(abs(acc.x * 1));%0A this.ay = round(abs(acc.y * 1));%0A this.az = round(abs(acc.z * 1));%0A +rr = e.rotationRate;...
88c245a922bd5944375c28087b04fd28ee02d250
Complete AboutHigherOrderFunctions
koans/AboutHigherOrderFunctions.js
koans/AboutHigherOrderFunctions.js
var _; //globals /* This section uses a functional extension known as Underscore.js - http://documentcloud.github.com/underscore/ "Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extend...
JavaScript
0
@@ -673,34 +673,29 @@ dd).toEqual( -FILL_ME_IN +%5B1,3%5D );%0A expec @@ -709,34 +709,25 @@ ength).toBe( -FILL_ME_IN +2 );%0A expec @@ -745,34 +745,25 @@ ength).toBe( -FILL_ME_IN +3 );%0A %7D);%0A @@ -961,34 +961,33 @@ s1).toEqual( -FILL_ME_IN +%5B2, 3, 4%5D );%0A expec @@ -1001,34 +1001,33 @@ rs)...
8938c85783ad946dc284b882b9cc8f76e007f6c2
Remove unnecessary trailing slash
gulpfile.js
gulpfile.js
/* Copyright (c) 2016, salesforce.com, inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
JavaScript
0.00005
@@ -3012,33 +3012,32 @@ (gulp.dest('dist -/ '))%0A);%0A%0Agulp.tas
86d030a6604d2bd1a067bb89fbf1fc41a535da09
deploy pushes to origin
gulpfile.js
gulpfile.js
var fs = require('fs-extra'); var git = require('gulp-git'); var gulp = require('gulp'); var mocha = require('gulp-mocha'); var rename = require('gulp-rename'); var template = require('gulp-template'); var yaml = require('js-yaml'); var resource = require('./src/resource'); var helpers = require('./src/helpers'); /** ...
JavaScript
0
@@ -1980,11 +1980,137 @@ -cb( +git.push('origin', 'master', %7Bcwd: repoRoot%7D, function(err) %7B%0A if (err) throw err;%0A cb();%0A %7D );%0A
d02a45fd80d79acab163c0757358e52ec10220a0
Use spaces, not tabs
inherits.js
inherits.js
define([], function () { /** * sub should prototypally inherit from base * @param sub {function} Subclass constructor * @param base {function} Base class constructor */ function inherits (sub, base) { var Fn = function(){}; Fn.prototype = base.prototype; sub.prototype = new Fn(); s...
JavaScript
0.000145
@@ -20,22 +20,28 @@ () %7B%0A%0A%0A -%09/**%0A%09 + /**%0A * sub s @@ -77,17 +77,20 @@ om base%0A -%09 + * @para @@ -127,17 +127,20 @@ tructor%0A -%09 + * @para @@ -180,22 +180,28 @@ tructor%0A -%09 */%0A%09 + */%0A function @@ -228,10 +228,16 @@ ) %7B%0A -%09%09 + var @@ -...
6a249faf0ff9f0441ba9c78c9e465bccaf8dd0e9
Enable <blink>ing.
js/init.js
js/init.js
Reveal.addEventListener("ready", function() { var codes = document.querySelectorAll("code.javascript"); Array.prototype.forEach.call(codes, function (block) { hljs.highlightBlock(block); }); }); // Full list of configuration options available at: // https://github.com/hakimel/reveal.js#configuration Reveal.i...
JavaScript
0
@@ -39,16 +39,94 @@ ion() %7B%0A + var Ap = Array.prototype;%0A var each = Ap.forEach;%0A var slice = Ap.slice;%0A%0A var co @@ -177,34 +177,24 @@ ript -%22);%0A Array.prototype.forE +,code.xml%22);%0A e ach. @@ -220,24 +220,48 @@ n (block) %7B%0A + console.log(block);%0A hljs.hig @@ -285,16 +285,39...
df84958b71dea608b45d6881dd2fe5c0ab0c0d95
Create index on database
app/serve.js
app/serve.js
"use strict"; /*eslint no-console: 0*/ const express = require("express"); const router = require("./http/router"); const logging = require("morgan"); const mongodb = require("mongodb"); const odm = require("./odm"); const server = express(); const config = require("./config"); con...
JavaScript
0.000001
@@ -507,84 +507,25 @@ _url -, function(error, db) %7B%0A if (error) %7B%0A console.log(error);%0A %7D else +).then((db) =%3E %7B%0A - co @@ -572,18 +572,16 @@ ks%22);%0A - - const sh @@ -608,19 +608,16 @@ ction);%0A -%0A router @@ -651,19 +651,91 @@ links);%0A -%0A +return collection.creat...
36f5152ec326dfb7564e427334bbc95182eb76e1
Fix login JS files not being output to right dir
gulpfile.js
gulpfile.js
var browserify = require('browserify'); var watchify = require('watchify'); var source = require('vinyl-source-stream'); var gulp = require('gulp'); var uglify = require('gulp-uglify'); var streamify = require('gulp-streamify'); var gutil = require('gulp-util'); var pump = require('pump'); function react_browserify(in...
JavaScript
0
@@ -327,16 +327,24 @@ outfile, + outdir, debug) @@ -401,16 +401,74 @@ utfile;%0A + outdir = (outdir === undefined) ? 'static/js' : outdir;%0A debug @@ -774,27 +774,22 @@ lp.dest( -'static/js' +outdir )%0A %5D, @@ -925,16 +925,38 @@ ('login' +, 'login', 'public/js' ));%0Agulp
e1d52da28d6c57156228ab958eb005981e96041c
fix lint issues
docs/src/components/AppFrame.js
docs/src/components/AppFrame.js
// @flow import React, { Component } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import compose from 'recompose/compose' import { withStyles } from 'material-ui/styles' import Typography from 'material-ui/Typography' import AppBar from 'material-ui/AppBar' import Toolbar from ...
JavaScript
0.000002
@@ -403,23 +403,8 @@ idth -, %7B isWidthUp %7D fro @@ -2199,23 +2199,16 @@ , routes -, width %7D = thi @@ -4343,46 +4343,8 @@ ed,%0A - width: PropTypes.string.isRequired,%0A %7D%0A%0Ae
eee1532fc9b575b7e9eb4b8af4eeb5f812d6e4eb
Fix whitespace nits in lib/util.js.
lib/util.js
lib/util.js
;(function() { 'use strict'; /** Load Node.js modules */ var fs = require('fs'), path = require('path'); /** Load other modules */ var _ = require('lodash/lodash.js'); /** Used to indicate if running in Windows */ var isWindows = process.platform == 'win32'; /*---------------------------------...
JavaScript
0.000338
@@ -2639,28 +2639,30 @@ til = %7B%0A%0A + /**%0A + * The fi @@ -2671,32 +2671,33 @@ system object.%0A + *%0A * @mem @@ -2682,32 +2682,33 @@ ect.%0A *%0A + * @memberOf util @@ -2704,32 +2704,33 @@ mberOf util%0A + * @type Object%0A @@ -2720,32 +2720,33 @@ * @type Object%0A + ...
e0cc42236e3d080a515fd6266a3668ab417484bc
remove excess property
app/state.js
app/state.js
import * as EDITOR_MODE from './constants/editorModes'; import * as NODE_CATEGORY from './constants/nodeCategory'; import * as PIN_DIRECTION from './constants/pinDirection'; import * as PIN_TYPE from './constants/pinType'; import { PROPERTY_TYPE, PROPERTY_DEFAULT_VALUE } from './constants/property'; const initialState...
JavaScript
0.000032
@@ -668,64 +668,8 @@ %7D,%0A - props: %7B%0A brightness: 0.67,%0A %7D,%0A
0d520042572e4eb82036d12495cee1f996a5554f
use inherits or instances do not pass instanceof check
lib/util.js
lib/util.js
'use strict'; exports = module.exports = {}; // dependencies // exports.once = require('once'); exports.type = require('utils-type'); exports.clone = require('lodash.clone'); exports.merge = require('lodash.merge'); exports.inherits = require('inherits'); exports.asyncDone = require('async-done'); // assorted util /...
JavaScript
0
@@ -807,20 +807,29 @@ -Tor.super_ = +exports.inherits(Tor, Sup @@ -833,16 +833,17 @@ SuperTor +) ;%0A ex
31fc956cccf19945954b60575b06a2ea31837201
Change to work with Express 4. Pipeline stack moved from application object to the application._route object
lib/util.js
lib/util.js
'use strict'; var fs = require('fs'); var path = require('path'); var touch = require('touch'); var connect = require('connect'); exports.touchFile = function touchFile(path) { touch.sync(path); } exports.makeServerTaskName = function makeServerTaskName(serverName, kind) { return 'express_' + serverName + '_' +...
JavaScript
0
@@ -383,19 +383,24 @@ leware(s -erv +tackHold er) %7B%0A @@ -400,19 +400,24 @@ r) %7B%0A s -erv +tackHold er.stack @@ -421,19 +421,24 @@ ack = (s -erv +tackHold er.stack @@ -4348,15 +4348,84 @@ -if(serv +var stackHolder = server._router ? server._router : server;%0A if(stackHold er.s @@ -4470,19 +447...
e24984bb2d2768ac24c61f17e4ff8c70c08df85f
Add http protocol to request util.
lib/util.js
lib/util.js
"use strict"; function log(...args) { const now = new Date().toLocaleString("en-US", { month: "short", day: "2-digit", hour12: false, hour: "2-digit", minute: "2-digit", second: "2-digit" }); console.log(now, ...args); // eslint-disable-line no-console } co...
JavaScript
0
@@ -378,24 +378,54 @@ e(%22https%22);%0A +const http = require(%22http%22);%0A const querys @@ -740,16 +740,66 @@ e(url);%0A + const isHttps = reqUrl.protocol === %22https:%22;%0A cons @@ -860,11 +860,28 @@ %7C%7C -443 +(isHttps ? 443 : 80) ;%0A%0A @@ -1582,20 +1582,30 @@ %7D%0A%0A -if ( +const pr...
32309fd06dac3bd8dbf5d6836f73cbd6009c5b1e
set new release branch for v2
gulpfile.js
gulpfile.js
/* eslint-disable no-unused-vars */ // npm run release -- --addition,subtraction const { series } = require('gulp'); const fs = require('fs'); const { join } = require('path'); const { spawn } = require('child_process'); const { PublishCommand } = require('@lerna/publish'); const git = require('simple-git/promise')(__d...
JavaScript
0
@@ -438,16 +438,19 @@ 'release +-V2 ';%0Aconst
95d095ef76184679e176aa8c25d460a09124285a
Improve parsing data
src/main/webapp/parse.js
src/main/webapp/parse.js
// Copyright 2020 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 // Unless required by applicable law or agreed to in writin...
JavaScript
0.001906
@@ -735,52 +735,148 @@ -const type = document.getElementById(%22type%22) +//%C2%A0Get%C2%A0type%C2%A0of%C2%A0meal.%0A%C2%A0%C2%A0%C2%A0%C2%A0var%C2%A0typeSelector%C2%A0=%C2%A0document.getElementById(%22type%22);%0A%C2%A0%C2%A0%C2%A0%C2%A0var%C2%A0type%C2%A0=%C2%A0typeSelector.options%5BtypeSelector.selectedIndex%...
c8e902ee3ba4aff984a85a75b8cb716b9c9ea74b
Fix gulpfile case-sensitive src build commands
gulpfile.js
gulpfile.js
(function () { 'use strict'; // Initialize variables var gulp = require('gulp'); var del = require('del'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var rename = require('gulp-rename'); // Initialize Panda Libraries var panda = [ // Panda ...
JavaScript
0.000074
@@ -369,25 +369,25 @@ 'src/ -P +p anda/*.js',%0A @@ -429,15 +429,15 @@ src/ -P +p anda/ -D +d ebug @@ -489,23 +489,23 @@ 'src/ -P +p anda/ -E +e nv/*.js' @@ -550,15 +550,15 @@ src/ -P +p anda/ -E +e vent @@ -607,23 +607,23 @@ 'src/ -P +p anda/ -H +h elpers/* @@ -662,31 +662,31 @@ 'src...
66f9886bc169c7c1d53fe2b2c6569a8277642408
Set port=undefined by default
lib/util.js
lib/util.js
const parseurl = require('parseurl'); const zlib = require('zlib'); const request = require('request'); const urlParse = require('url').parse; const { PassThrough } = require('stream'); exports.isFunction = fn => typeof fn === 'function'; exports.noop = () => {}; const getCharset = (headers) => { if (/charset=([^\s]...
JavaScript
0.000019
@@ -934,20 +934,25 @@ gs%5B1%5D : -null +undefined ,%0A %7D;
b3f4d67a7c9ea2d05db6fbf69639af351b23d3f2
update 'instances destroy' command
lib/cast-client/commands/instances/destroy.js
lib/cast-client/commands/instances/destroy.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0.000001
@@ -1631,17 +1631,16 @@ back) %7B%0A -%0A va @@ -2075,57 +2075,25 @@ ttp. -getApiResponse(remotePath, 'DELETE', %7B 'r +executeR emote -': +Job( args @@ -2104,382 +2104,39 @@ ote, -%0A 'apiVersion': '1.0',%0A ...
d676e87d43a915201448730a5e5f652ae87498f2
add leveldown classic build task
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var coffee = require('gulp-coffee'); var shell = require('gulp-shell'); var zip = require('gulp-zip'); var concat = require('gulp-concat'); var del = require('del'); var nwVersion = '0.8.6'; var paths = { scripts: ['backend/*.coffee'], scriptsJS: ['backend/*.js'], all: ["backend/**/*....
JavaScript
0.000001
@@ -911,24 +911,125 @@ uild'%0A%5D));%0A%0A +gulp.task('leveldown-classic', shell.task(%5B%0A 'rm -rf ./node_modules/pouchdb',%0A 'npm install'%0A%5D));%0A%0A gulp.task('b
8250aaef5e6597dd0e84d3da7bff0d5cc54c9ddf
Fix jshint gulp src files
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var react = require('gulp-react'); var jshint = require('gulp-jshint'); var jsFiles = [ 'app/**/*.js', 'test/**/*.js', 'buildprod.js', 'env.js', 'gulpfile.js', 'webpack.config.js', 'server.js', 'webpack.config.prod.js' ]; gulp.task('jshint', function(cb) { var stream = gu...
JavaScript
0.000002
@@ -152,112 +152,9 @@ %0A ' -buildprod.js',%0A 'env.js',%0A 'gulpfile.js',%0A 'webpack.config.js',%0A 'server.js',%0A 'webpack.config.prod +* .js'
20073b42d97078d9a0dc525e2751c18ce77c0dba
Fix typo in gulpfile.js
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); var env = process.env.NODE_ENV ? 'prod' : 'dev'; ////////////////// // Source Files // ////////////////// var source = {}; source.js = {}; source.js.vendor = {}; source.js.src = {}; source.css = {}; source.css.vendor = {}; source.css.src = {}; source....
JavaScript
0.997618
@@ -1417,33 +1417,34 @@ gulp.src(source. -j +cs s.vendor%5Benv%5D)%0A
ba4f5b10033930864fa37e00fdf6724be60535f1
Switch to ES5 style import
gulpfile.js
gulpfile.js
'use strict'; const path = require('path'); const gulp = require('gulp'); const eslint = require('gulp-eslint'); const excludeGitignore = require('gulp-exclude-gitignore'); const mocha = require('gulp-mocha'); const plumber = require('gulp-plumber'); const babel = require('gulp-babel'); const del = require('del'); imp...
JavaScript
0
@@ -314,25 +314,29 @@ ');%0A -impor +cons t run -from %22 += require(' gulp @@ -351,10 +351,18 @@ mand -%22; +').default %0A%0A//
4d2d0c37dd5ec638d9e1167051584cbba4d3097b
Remove window thing
js/main.js
js/main.js
(function () { 'use strict'; var diskStyles = { backgroundColor : 'white', borderColor : 'black' }; var diskOptions = { opacity : false, running : true, width : 400 }; function Disk(radius, xy) { var disk = document.createElement('div'); disk.className = 'disk'; disk.style.width = (radi...
JavaScript
0
@@ -3255,44 +3255,8 @@ %09%7D%0A%0A -%09window.diskOptions = diskOptions;%0A%0A %09con
75b1d6bdb1f2d3db292e5733c34dd5a69fc74e52
Fix Gulp watch mode for local development
gulpfile.js
gulpfile.js
/* eslint-env node */ const eslint = require('gulp-eslint'); const gulp = require('gulp'); const gutil = require('gulp-util'); const jest = require('gulp-jest').default; const rimraf = require('rimraf'); const runSequence = require('run-sequence'); const watch = require('gulp-watch'); const webpack = require('webpack'...
JavaScript
0
@@ -2303,16 +2303,80 @@ webpack( +%0A webpackConfig.map(function (platformConfig) %7B%0A return Object.a @@ -2404,23 +2404,36 @@ e%7D, -webpackConfig), +platformConfig);%0A %7D),%0A fun @@ -2452,24 +2452,26 @@ tats) %7B%0A + + if (err) thr @@ -2512,24 +2512,26 @@ , err);%0A + webpac...