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
8abe73a423523fb7058e02e9aa157388970fffed
Make 'modern' the default theme
lib/terminal.js
lib/terminal.js
(function (global, undefined) { var Terminal = Terminal || function(containerID, options) { if (!containerID) return; var defaults = { welcome: '', prompt: '', separator: '>', theme: 'interlaced' }; var options = options || defaults; options.welcome = options.welcome || defaults.welcome; ...
JavaScript
0.002078
@@ -203,18 +203,14 @@ e: ' -interlaced +modern '%0A%09%09
046b95b1e3ae4ee0cc267c5d7609a0165048bf2f
Update to Radarr v3 API
compare-trakt-and-radarr.js
compare-trakt-and-radarr.js
// Version 1.0 // Script to retreive the watchlist from a friend's trakt account, // compare it to movies in my radarr library and // generate a symlink for matches into handbrake watch folder const config = require('./config'); var { exec } = require('child_process'); var request = require('request'); var fs = requi...
JavaScript
0
@@ -1371,16 +1371,19 @@ + '/api/ +v3/ movie',%0A
34d8a6636301db44181af1beeecfe14a2242f3c0
add functional on paste event
corrector.js
corrector.js
var Corrector = function(input) { this._input = input; if (input.hasAttribute('data-pattern')) this._pattern = input.getAttribute('data-pattern'); else if (input.hasAttribute('placeholder')) this._pattern = input.getAttribute('placeholder'); if (input.hasAttribute('data-pattern-vars')) { vars = input.get...
JavaScript
0.000001
@@ -541,16 +541,243 @@ t() %7D ); +%0A%09input.addEventListener('paste', function(e) %7B%0A%0A%09%09var clipboardData, pastedData;%0A%09%09clipboardData = e.clipboardData %7C%7C window.clipboardData;%0A%09%09pastedData = clipboardData.getData('Text');%0A%09%09self.emulateInsert(pastedData);%0A%0A%09%7D ); %0A%0A%09th...
9937547f0fe85eb37446590c32fcb8937f998c52
Fix weird bug with conditional. Function scope weirdness, maybe?
commands/emote.js
commands/emote.js
var l10n_file = __dirname + '/../l10n/commands/emote.yml'; var l10n = require('../src/l10n')(l10n_file); var CommandUtil = require('../src/command_util').CommandUtil; exports.command = function(rooms, items, players, npcs, Commands) { return function(args, player) { self = player.getName(); if (args) { ...
JavaScript
0
@@ -414,16 +414,22 @@ InRoom(p +, self );%0A @@ -510,17 +510,16 @@ ;%0A %7D%0A -%0A play @@ -602,16 +602,22 @@ InRoom(p +, self ) %7B%0A @@ -652,29 +652,54 @@ me() - !== player.getName() +.toLowerCase() !== self.toLowerCase() %0A && @@ -747,11 +747,10 @@ ;%0A %7D;%0A%0A -%0A %7D;
3b5fea43f1d983324cf24ba68965f562bd909dd3
Include staticHost in default-amo exports
config/default-amo.js
config/default-amo.js
import { amoProdCDN } from './lib/shared'; const staticHost = 'https://addons-amo.cdn.mozilla.net'; module.exports = { CSP: { directives: { formAction: [ "'self'", ], // Script is limited to the amo specific CDN. scriptSrc: [ staticHost, 'https://www.google-analyt...
JavaScript
0
@@ -114,16 +114,31 @@ rts = %7B%0A + staticHost,%0A%0A CSP: %7B
e3a462172461f266477f7b4abdc87893eedbd462
add interval to querygdax
cryptoBot.js
cryptoBot.js
/**************************************** *********** DEPENDENCIES ************* ***************************************/ var http = require('http'); var https = require('https'); var querystring = require('querystring'); /**************************************** ************* CONSTANTS *************F ****************...
JavaScript
0.000023
@@ -6399,17 +6399,16 @@ ******/%0A -%0A queryGda @@ -6416,30 +6416,40 @@ ();%0A -// sendPushover('Hello' +setInterval(queryGdax, TIME_FRAME );%0A
927ef0f04114782a9c226829cd1c3566820568a3
Use constant
lib/node_modules/@stdlib/string/from-code-point/lib/main.js
lib/node_modules/@stdlib/string/from-code-point/lib/main.js
'use strict'; // MODULES // var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' ).isPrimitive; var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); // VARIABLES // var fromCharCode = String.fromCharCode; // Maximum code point in the Basic Multilingual Plane (BMP): var ...
JavaScript
0.998811
@@ -188,16 +188,99 @@ ect' );%0A +var MAX_CODE_POINT = require( '@stdlib/string/constants/unicode-max-code-point' );%0A %0A%0A// VAR @@ -441,84 +441,8 @@ 35%0A%0A -// Maximum Unicode code point:%0Avar MAX_CODE_POINT = 0x10FFFF%7C0; // 1114111%0A%0A // F
e10eb79f407f20b33e69669ee87263aecd7e5123
add dashboard router
troposphere/static/js/bootstrapper.js
troposphere/static/js/bootstrapper.js
define( [ 'jquery', 'rsvp', 'backbone', // Cross-app models './context', 'models/Session', 'controllers/ProfileController', // Routers 'routers/ProjectRouter', 'routers/ApplicationRouter', 'routers/SettingsRouter', 'routers/HelpRouter', 'routers/ProviderRouter', ...
JavaScript
0.000001
@@ -160,24 +160,55 @@ // Routers%0A + 'routers/DashboardRouter',%0A 'routers @@ -501,16 +501,33 @@ troller, + DashboardRouter, Project @@ -1095,32 +1095,65 @@ Router.start();%0A + DashboardRouter.start();%0A ProjectR @@ -3238,32 +3238,49 @@ headers: %7B +%0A 'Author...
9e7fbf4ac2c7798a87f003c2f337a626324708d0
Add Github Pages config
docs/docusaurus.config.js
docs/docusaurus.config.js
module.exports = { title: 'Foal TS', tagline: 'Node.JS and TypeScript framework for building web applications', url: 'https://foalts.org', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/logo_400.png', organizationName: 'FoalTS', // Usually your GitHub org/user name. ...
JavaScript
0.000001
@@ -132,19 +132,25 @@ /foalts. -org +github.io ',%0A bas @@ -157,16 +157,21 @@ eUrl: '/ +foal/ ',%0A onB
61487a4eb57b674b44524c61ff336193c81857d4
Update greet.js
commands/greet.js
commands/greet.js
const moment = require("moment"); exports.run = function(client, message, args){ console.log(`[${moment().format("YYYY-MM-DD HH:mm")}] Margarine greeted someone.`); message.delete().catch(); if (message.mentions.users.size === 0) { return message.channel.send(`Hello ${message.author.username}`); } ...
JavaScript
0
@@ -166,16 +166,17 @@ .%60);%0D%0A +%09 message.
556f64ef2880c61615b7a11b9177d9f9bd9592fe
modify history log
scaffold/src/app/history/actionHistory.js
scaffold/src/app/history/actionHistory.js
/* Copyright 2014 Huawei Technologies Co., Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
JavaScript
0.000001
@@ -1702,17 +1702,16 @@ data));%0A -%0A @@ -2112,17 +2112,16 @@ index)%7B%0A -%0A @@ -2213,56 +2213,8 @@ s);%0A - console.log( %22logJson%22,logJson)%0A @@ -2247,17 +2247,16 @@ x + 1;%0A%0A -%0A @@ -3185,28 +3185,16 @@ on%3E%3C/td%3E -%0A %3C/tr%3E%60;...
c130e78230e437d95bdfdeebd4b7f0b5ed163266
Fix comment
lib/node_modules/@stdlib/utils/parallel/lib/node/options.js
lib/node_modules/@stdlib/utils/parallel/lib/node/options.js
'use strict'; // MODULES // var cwd = require( '@stdlib/utils/cwd' ); var env = require( './env.js' ); // OPTIONS // /** * Returns child process options. * * @private * @param {Options} options - worker options * @param {(NonNegativeInteger|null)} [options.uid] - process user identity * @param {(NonNegativeInteger...
JavaScript
0
@@ -513,17 +513,18 @@ erit' // -u + U se stdio
53f23e08fb1cf061deb80aed2d12af4e83a91d31
Update prefix.js
bot/commands/prefix.js
bot/commands/prefix.js
exports.run = (client, message, args) => { const config = require("../config.json"); const path = require('path'); const prefixes = path.join('../prefixes.json') const prefix = JSON.parse(fs.readFileSync(prefixes, 'utf8')); const param = args.slice(1).join(' '); const fs = require('fs'); if...
JavaScript
0.000002
@@ -36,16 +36,246 @@ s) =%3E %7B%0A + function getRandomColor() %7B%0A%0A let letters = '0123456789';%0A let color = '';%0A for (let i = 0; i %3C 7; i++) %7B%0A color += letters%5BMath.floor(Math.random() * 10)%5D;%0A %7D%0A%0A return color;%0A %7D%0A const @@ -106...
b842514f41d91612298328c72e7fb75d480249e0
send requires password
js/controllers/send.js
js/controllers/send.js
"use strict"; function SendController($scope,modals,$rootScope,Wallet,WalletManager){ /****SendController init************/ $scope.pageClass = 'page-send'; $scope.item = {}; $scope.inputAddress=''; $scope.inputAmount=''; $scope.changeAsset= function(option){ }; /****SendController init end************/ /...
JavaScript
0
@@ -512,16 +512,46 @@ %09var +success = function() %7B%0A%09%09%09var satoshie @@ -563,16 +563,17 @@ 000000;%0A +%09 %09%09var fo @@ -582,16 +582,18 @@ Data =%7B%0A +%09%09 %09%09addr:$ @@ -614,16 +614,18 @@ ress,%0A%09%09 +%09 +%09 amount:$ @@ -659,31 +659,12 @@ ,%0A%09%09 +%09 %7D%0A%09 -%09modals.pass...
17207b1a2b3b8740a8990cef0ba6ccc42a3b29e2
Remove unused loginServer config
login/loginServer.js
login/loginServer.js
/** * @license * Copyright 2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
JavaScript
0.000001
@@ -1201,42 +1201,35 @@ // -Origin for login and connect pages +Absolute URL of server root .%0A @@ -1267,33 +1267,42 @@ ty.world',%0A // -P +Relative p ath to the login @@ -1336,17 +1336,26 @@ ',%0A // -P +Relative p ath to t @@ -1606,79 +1606,8 @@ y',%0A - // Domain of connect page.%0A cookieDomain: ...
70324379ccf9958111d810df511861c9f71c9429
test fix
html/tests/autocomplete.tests.js
html/tests/autocomplete.tests.js
/* global document describe beforeEach afterEach it window sinon */ import { bindUIEvents, autocomplete } from '../components/autocomplete'; describe('Autocomplete tests', () => { let container; let input; let list; let listItem1; let listItem2; let listItem3; beforeEach(() => { container = document...
JavaScript
0.000001
@@ -2068,32 +2068,43 @@ expect(input. +parentNode. getAttribute('ar
2b19d5a2f03ba9c4a2cdaa62709dec771321714d
add description, json parse response
lib/core/middleware/route/pushPull/stream.js
lib/core/middleware/route/pushPull/stream.js
var Structr = require('structr'), EventEmitter = require('sk/core/events').EventEmitter; /** the bridge between the listener, and responder. Yeah, Yeah. the listener 94 */ var proto = { /** */ '_init': function(ttl) { this._em = new EventEmitter(); this.response = {}; if(ttl) { this.cache(ttl); ...
JavaScript
0.000001
@@ -1083,24 +1083,407 @@ sponse)%0A%09%09%7B%0A +%0A%09%09%09//WHOOAAHH, what are you doing!? Okay, I know it looks stupid, it is. BUT, consider this scenario:%0A%09%09%09//via HTTP, the session object is *saved* to the database once toJSON is called, which is ONLY called when *this* happens. We do not want%0A%09%09%...
84b040acd43ce403e0c9cabeac1570c6631461ab
correct paths from folder reorg
http/expressServer.js
http/expressServer.js
var express = require('express'); function servePathAtPort(path, port) { var app = express(); app.use(express.static(path)); // before directory to allow index.html to work app.use(express.directory(path)); app.listen(port); console.log('serving ' + path + ' at ' + port); } servePathAtPort(__dirname, 868...
JavaScript
0.000001
@@ -308,16 +308,24 @@ _dirname + + '/..' , 8686); @@ -346,16 +346,19 @@ ort('../ +../ devtools @@ -422,16 +422,19 @@ ort('../ +../ webdev-e @@ -471,16 +471,19 @@ ort('../ +../ traceur-
200c3f029eccf27293e20917d5fc9c3d4e6307e6
Convert redirect code to IE-compatible (#9074)
script/vets-gov-to-va-gov/app-redirect.js
script/vets-gov-to-va-gov/app-redirect.js
function createAppRedirectHtml(vetsGovSrc, vaGovDest, vaGovHost) { return ( `` + `<!doctype html> <head> <script nonce="**CSP_NONCE**"> function requiresSignIn(newPath) { var pathsRequiringSignIn = [ '/track-claims', '/my-va', '/download-va-letters', '/profile', ...
JavaScript
0
@@ -420,20 +420,32 @@ %5D;%0A +%0A -return +for (var i=0; i %3C pat @@ -466,26 +466,84 @@ nIn. -some(reactPath =%3E +length; i++) %7B%0A var reactPath = pathsRequiringSignIn%5Bi%5D;%0A if ( newP @@ -570,17 +570,37 @@ h) %3E= 0) -; + return true;%0A %7D %0A %7D%0A @@ -642,17 +642,...
c09ca44a16eb9f52ee71ff583e987b31af294326
Fix textfield rendering when clearing add backend panel
src/mist/io/static/js/app/views/backend_add.js
src/mist/io/static/js/app/views/backend_add.js
define('app/views/backend_add', ['app/views/templated', 'ember'], // // Add Backend View // // @returns Class // function(TemplatedView) { 'use strict'; return TemplatedView.extend({ // // // Properties // // ...
JavaScript
0.000001
@@ -1291,32 +1291,161 @@ -icon-carat-u'); +%0A%0A Ember.run.next(function () %7B%0A $('#add-backend-panel').trigger('create');%0A %7D); %0A %7D,%0A
a5ebe37bd6b5f1fb9fdbee9d6c2b0a2b26ad7eab
Update ranks.js
commands/ranks.js
commands/ranks.js
exports.run = (client, message) => { message.channel.send({embed: { title: "List of Union Army discord ranks.", color: 3447003, description: "This can be used with the ;rank command! Please note that ranking people to the ranks not stated here will result in a demotion! You may not rank people highe...
JavaScript
0.000001
@@ -904,16 +904,32 @@ value: %22 +~ The Union Army %22%0A %7D%5D%0A
05f0528f37a390a11d9a3f07f7626806e840cf57
Disable jQuery mobile url bar hiding.
iOS.MF_theme_v1/scripts/theme.js
iOS.MF_theme_v1/scripts/theme.js
/* * Main Javascript file containing iOS.MF specific functions */ /* Cookie management */ function Set_Cookie(name, value, expires, path, domain, secure) { var today = new Date(); today.setTime(today.getTime()); if (expires) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date(toda...
JavaScript
0
@@ -2847,16 +2847,45 @@ d = 100; +%0A$.mobile.hideUrlBar = false; %0A%0A//Remo
63d643904f05d6db158599b0f7cce5c4116a84ab
Change colors for carbon coop targetbar
Modules/assessment/js/targetbar-carboncoop.js
Modules/assessment/js/targetbar-carboncoop.js
function targetbarCarboncoop(element, options) { var width = $("#"+element).width(); var height = $("#"+element).height(); // $("#"+element).html("<div style='padding-bottom:5px; font-size:16px; color:rgba(99,86,71,0.8);'>"+options.name+": <b style='float:right'>"+options.value+" "+options.units+"</b><...
JavaScript
0
@@ -972,24 +972,53 @@ rheight-2);%0A + ctx.font=%2210px Ubuntu%22;%0A%0A %0A var @@ -1260,292 +1260,171 @@ -/*%0A ctx.font=%2212px Ubuntu%22;%0A ctx.textAlign = %22left%22;%0A ctx.fillStyle = %22rgba(99,86, +var colors = %5B%0A %22rgba(217, 58, 71, + 0. -8)%22; +5)%22, %0A -ct...
01d2450ddcceca45f2aee63104cbf78200d7987e
Add new line on end file
js/css-scroller-1.0.js
js/css-scroller-1.0.js
// JavaScript Document (function () { // get all element with 'data-fade' attribute function getFadeElement() { var fadeElements = $("[data-fade=active]"); var elements = []; var i = 0; fadeElements.each(function() { $(this).removeClass($(this).attr("data-after-class")); $(this).addClass($(this)....
JavaScript
0.000002
@@ -1683,8 +1683,9 @@ l(this); +%0A
1f97d99282be530bc28b2d9b34bdb89d3a005b9b
Migrate roles as well.
roles/roles_server.js
roles/roles_server.js
"use strict"; // Create default indexes for roles and users collection. Meteor.roles._ensureIndex({name: 1}, {unique: 1}); // Index only on "roles.role" is not needed because the combined index works for it as well. Meteor.users._ensureIndex({'roles.role': 1, 'roles.partition': 1}); Meteor.users._ensureIndex({'roles...
JavaScript
0
@@ -3425,42 +3425,97 @@ -// TODO: Migrate rules collection. +Meteor.roles.update(%7Bchildren: %7B$exists: false%7D%7D, %7B$set: %7Bchildren: %5B%5D%7D%7D, %7Bmulti: true%7D); %0A%0A @@ -3830,42 +3830,73 @@ -// TODO: Migrate rules collection. +Meteor.roles.update(%7B%7D, %7B$unset: %7Bchildren: ''%7D%7D, ...
cadeba4707624370ac1fcb0b583166cc3a2a1713
Fix logWaterfall (prepend null as err)
lib/workflow.js
lib/workflow.js
'use strict'; /** * run regression test */ var async = require('async'); var q = require('q'); module.exports = function(pagename, args) { console.log('START WORKFLOW\n', arguments); var defer = q.defer(); /*! * make sure that callback contains chainit callback */ function cb(result) { ...
JavaScript
0
@@ -2955,21 +2955,36 @@ y(this, +%5Bnull%5D.concat( args) +) ;%0A
be49a4eebe7f5bd711a30e001b69eacf78576abc
Set colour options.
js/com/google/watlobby/Topic.js
js/com/google/watlobby/Topic.js
/** * @license * 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 requir...
JavaScript
0
@@ -2014,16 +2014,139 @@ #FFFFFF' +,%0A view: %7B factory_: 'foam.ui.md.ColorFieldView', choices: %5B '#FFFFFF', '#EA4335', '#34A853', '#4285F4', '#FBBC05' %5D %7D %0A %7D,%0A @@ -2323,16 +2323,139 @@ c%5D %7C%7C c; + %7D,%0A view: %7B factory_: 'foam.ui.md.ColorFieldView', choices: %5B '#FFFFFF', '#EA4...
787f987ba727b38228093587f8e3735d74cc7c26
update label color
components/toggle/Toggle.js
components/toggle/Toggle.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import theme from './theme.css'; import cx from 'classnames'; import omit from 'lodash.omit'; import Box from '../box'; import { TextBody, TextDisplay, TextSmall } from '../typography'; class Toggle extends PureComponent { handleToggle...
JavaScript
0.000002
@@ -2546,29 +2546,38 @@ lor= -%22teal%22 soft=%7Bdisabled +%7Bdisabled ? 'neutral' : 'teal' %7D%3E%0A
ff546b8eae0e1c62f3ad8963a02d337643de5aba
Add that comma.
server/lib/config.js
server/lib/config.js
//The authorative module for valid environment configuration var e = process.env; //for less verbose typing //any env vars that should be numbers should be converted to numbers var config = { logLevel: e.NODE_LOGS || "DEBUG", clientAgentIp: process.env.NOMAD_IP_http, //get the environment variable from nomad htt...
JavaScript
0.000361
@@ -801,24 +801,25 @@ G_GROUP_NAME +, %0A log
f6d620322e6b6e9f27a86c195edf37ee6a090960
Add production configs
config/environment.js
config/environment.js
/* jshint node: true */ module.exports = function(environment) { var ENV = { rootURL: '/', locationType: 'auto', modulePrefix: 'irene', environment: environment, pusherKey: "216d53b13aaa5c6fc2cf", deviceFarmSsl: false, deviceFarmHost: "devicefarm.appknox.com", deviceFarmPor: "8080", ...
JavaScript
0.000001
@@ -2820,24 +2820,162 @@ duction') %7B%0A + ENV%5B'ember-cli-mirage'%5D = %7B%0A enabled: false%0A %7D;%0A ENV%5B'namespace'%5D = %22api-v2%22;%0A ENV%5B'host'%5D = %22https://api.appknox.com%22;%0A ENV.stri
16e06b52c3eb6f1bfa00bad37e5f26b909dd8155
Modify code for redrawing elements of sidebar-module
js/components/sidebar-module.js
js/components/sidebar-module.js
(function(app) { 'use strict'; var dom = app.dom || require('../dom.js'); var Component = app.Component || require('./component.js'); var SidebarModule = Component.inherits(function(props) { this.title = this.prop(props.title); this.content = this.prop(props.content); this.name = this.prop(props.n...
JavaScript
0
@@ -937,331 +937,8 @@ %7D;%0A%0A - SidebarModule.prototype.redrawTitle = function() %7B%0A this.redrawBy('title', function(title) %7B%0A dom.text(this.headerElement(), title);%0A %7D);%0A %7D;%0A%0A SidebarModule.prototype.redrawContent = function() %7B%0A this.redrawBy('content', function(content) %7...
83fe37927b7766174f7d3510993a97c2203659ad
refactor express initialization
server/lib/server.js
server/lib/server.js
var Promise = require('bluebird'); var express = require('express'); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var assert = require('assert'); module.exports = function (app) { "use strict"; var log = app.log.get(__filename); var config = app.config; var cors = requ...
JavaScript
0.000035
@@ -1,12 +1,65 @@ +/// %3Creference path=%22../../typings/node/node.d.ts%22/%3E%0A var Promise @@ -359,61 +359,275 @@ var -cors = require('cors')();%0A%0A var server = express +server = express();%0A %0A setupMiddleware();%0A setupPlugins();%0A %0A function setupMiddleware()%7B%0A setupCors();%0A setupL...
dee7452424e17866657844450ab1e438e781f842
Fix event arguments not being parsed to an array
js/jquery/Component.js
js/jquery/Component.js
/** * @copyright 2010-2013, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ (function($) { 'use strict'; Toolkit.Component = function() {}; var Component = Toolkit.Component.prototype; // Shared properties Component.componen...
JavaScript
0.000072
@@ -1743,86 +1743,8 @@ ) %7B%0A - if (args && !$.isArray(args)) %7B%0A args = %5Bargs%5D;%0A %7D%0A%0A @@ -1899,24 +1899,106 @@ s%5Bevent%5D) %7B%0A + if (!$.isArray(args)) %7B%0A args = %5Bargs%5D;%0A %7D%0A%0A
edf3e9f6fc87589912436c164483ab5d7436681c
Add route to sort landing page forums by popular or recent
routes/landingPage.js
routes/landingPage.js
const router = require('express').Router(); const data = require("../data"); const forumsData = data.forums; router.get('/', (req, res) => { let userInfo = req.locals || {}; let userId = null; if (req.user) { userId = req.user._id; } forumsData.getForumByUser(userId) .then((forum) => { userInfo.forum = forum...
JavaScript
0
@@ -410,17 +410,16 @@ tyForum - = commun @@ -430,63 +430,1078 @@ orum -%0A%09%09return res.render('landingPage', userInfo);%0A%09%7D);%0A%7D); +.sort((f1, f2) =%3E %7B%0A return (f1.createdOn %3C f2.createdOn) ? 1 : -1%0A %7D);%0A%09%09return res.render('landingPage', userInfo);%0A%09%7D);%0A%7D)...
f4368e546470bc6b58e8d647c5883f4c6e452ac1
Update Gen.js
libaries/Gen.js
libaries/Gen.js
function $(element, attr, value){ var Elem = document.createElement(element); Elem[attr] = value; document.body.appendChild(Elem); }
JavaScript
0.000001
@@ -1,8 +1,37 @@ +//$(element, attr, value, id) %0Afunctio @@ -33,16 +33,22 @@ nction $ +create (element @@ -64,11 +64,33 @@ alue +, id )%7B%0A + var stat ='id';%0A va @@ -188,10 +188,151 @@ (Elem);%0A + Elem%5B'stat'%5D = id;%0A%7D%0Afunction $editprop(id, attr, value)%7B%0A var Cache = id;%0Avar edit = d...
93eefb6de92e318c6d76279138a834dec2949ece
add unique validation
server/routes/api.js
server/routes/api.js
const express = require('express'); const router = express.Router(); const logger = require('winston'); const config = require('config'); const GitHubApi = require('github'); const throwjs = require('throw.js'); const Joi = require('joi'); const mongo = require('../services/mongo'); const subscriptionSchema = Joi.obje...
JavaScript
0
@@ -1110,16 +1110,81 @@ Schema); +%0A const collection = mongo.database.collection('subscriptions'); %0A%0A if ( @@ -1268,64 +1268,240 @@ e %7B%0A +%0A -mongo.database%0A .collection('subscriptions')%0A +collection.findOne(%7B%0A email: result.value.email,%0A repo: result.value.repo,%0A ...
c54cde36c67a5d118c7b4dfb2948b870ffbb5811
update router
routes/promoRouter.js
routes/promoRouter.js
var express = require('express'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var Promos = require('../models/leadership'); var promoRouter = express.Router(); promoRouter.use(bodyParser.json()); promoRouter.route('/') .get(function (req, res, next) { Promos.find({}, function (er...
JavaScript
0.000001
@@ -101,24 +101,58 @@ ongoose');%0A%0A +var Verify = require('./verify');%0A var Promos = @@ -175,18 +175,18 @@ els/ -leadership +promotions ');%0A @@ -279,32 +279,59 @@ route('/')%0A.get( +Verify.verifyOrdinaryUser, function (req, r @@ -457,16 +457,36 @@ %0A%0A.post( +Verify.verifyAdmin, function @@ -798,32 ...
c85697fb904ce7972b01e22a25859cc22b536925
upgrade > setStep: preventing url issues by always setting a correct upgrade stage
js/nautsbuilder/data/upgrade.js
js/nautsbuilder/data/upgrade.js
/* 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://mozilla.org/MPL/2.0/. * copyright (c) 2013, Emmanuel Pelletier */ leiminauts.Upgrade = Backbone.Model.extend({ defaults: { current_step...
JavaScript
0
@@ -1026,16 +1026,114 @@ r, 10);%0A +%09%09if (number %3E this.get('max_step')) number = this.get('max_step');%0A%09%09if (number %3C 0) number = 0;%0A %09%09var cu
fd76f822cadbec235b59728165022eba481f522f
fix bug in getting client from api with undefined middle name
imports/api/hmisApi/clientApi.js
imports/api/hmisApi/clientApi.js
import moment from 'moment'; import querystring from 'querystring'; import { HmisApiRegistry } from './apiRegistry'; import { ApiEndpoint } from './apiEndpoint'; const BASE_URL = 'https://www.hmislynk.com/hmis-clientapi/rest'; export class ClientApi extends ApiEndpoint { getClient(clientId, schema = 'v2015') { ...
JavaScript
0
@@ -529,32 +529,51 @@ firstName: + client.firstName ? client.firstNam @@ -572,32 +572,37 @@ firstName.trim() + : '' ,%0A middleNa @@ -596,32 +596,52 @@ middleName: + client.middleName ? client.middleNa @@ -641,32 +641,37 @@ iddleName.trim() + : '' ,%0A lastName @@ -663,32 +663,50 @@ %0A ...
25ae7124bae777697d9a540710c7c8da666b8bc6
replace observer by static calculation
js/pagination/PaginationNode.js
js/pagination/PaginationNode.js
// Copyright 2002-2013, University of Colorado Boulder /** * Pagination for the 'Build a Fraction' screen. * * @author Andrey Zelenkov (Mlearner) */ define( function( require ) { "use strict"; // imports var inherit = require( 'PHET_CORE/inherit' ), Node = require( 'SCENERY/nodes/Node' ), Page1Node ...
JavaScript
0.000012
@@ -564,16 +564,51 @@ navBar,%0A + offsetX,%0A maxWidth = 0,%0A li @@ -957,33 +957,8 @@ s, %7B - x: this.getWidth() / 2, y: t @@ -1002,184 +1002,79 @@ );%0A - navBar.setX( (linksToPages%5B0%5D.getWidth() - navBar.getWidth()) / 2 );%0A %7D%0A%0A // tune position of +%0A // set offs...
8cd8b62ed404dec26db2329ad0da88f369039393
fix query router for p5
js/saiku/routers/QueryRouter.js
js/saiku/routers/QueryRouter.js
/* * Copyright 2012 OSBI Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
JavaScript
0.000001
@@ -984,16 +984,39 @@ if ( +!Settings.BIPLUGIN5 && Settings
2868f07240874ee2fcd48cc5afc218f6f9331c68
update our coverage required for branches and functions
js/tests/karma.conf.js
js/tests/karma.conf.js
/* eslint-env node */ /* eslint no-process-env: 0 */ const ip = require('ip') const { browsers, browsersKeys } = require('./browsers') const path = require('path') const jsCoveragePath = path.resolve(__dirname, '../coverage') const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min...
JavaScript
0
@@ -3108,17 +3108,17 @@ nches: 8 -4 +6 ,%0A @@ -3131,17 +3131,17 @@ tions: 8 -7 +9 ,%0A
039adec4c805a45d3118c4eb1a21699ad4a2c06c
fix data selection
js/views/statistics.js
js/views/statistics.js
/* global Infinity */ /** * ownCloud - fuel * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @copyright Christoph Wurst 2015 */ define(function (require) { var Marionette = require('ma...
JavaScript
0.000002
@@ -1836,17 +1836,21 @@ h - 1);%0A +%09%09%09%09 %0A - @@ -1914,37 +1914,34 @@ labels.splice( -0, 20 +21 );%0A @@ -1966,21 +1966,18 @@ .splice( -0, 20 +21 );%0A @@ -2006,16 +2006,17 @@ ice( -0, 20);%0A +21);%0A%09%09%09%09 %0A @@ -2211,16 +2211,20 @@ erse();%0A +%09%09%09%09 %...
332d0b04a7f1bfd3a392d2c553f58f0d60f0d0cb
Use white labels for increased readability
web-react/src/components/Label.js
web-react/src/components/Label.js
import React from 'react'; class Label extends React.Component { static defaultProps = { x: 0, y: 0, font_size: 14, alignment: "start", color: "rgb(54,54,54)" } render() { return ( <text x={this.props.x} y={this.props.y} fontSize={this.props.font...
JavaScript
0.000001
@@ -190,16 +190,19 @@ rgb( -54,54,54 +200,200,200 )%22%0A
acd776a9e5c732cdfb762241ecb0156f6c62c38d
Simplify /hook handling in commenter.js
commenter.js
commenter.js
'use strict'; var doiuse = require('doiuse'); var path = require('path'); var postcss = require('postcss'); var request = require('request'); var diff = require('./diffParse'); var parseSource = require('./sourceParse'); var token = 'token ' + process.env.OAUTH_TOKEN; var productName = 'Discord'; var comment = funct...
JavaScript
0.000004
@@ -346,163 +346,8 @@ ) %7B%0A - var localToken = token;%0A response.status(200).send('ok');%0A github(httpRequest, localToken);%0A%7D;%0A%0Avar github = function(httpRequest, localToken) %7B%0A @@ -732,24 +732,62 @@ (payload);%0A%0A + response.status(200).send('ok');%0A%0A request( @@ -2346,14...
086b06f4615684917a3f86de23e13cac090ec085
Make ngClip point at osscdn
frontend/app/scripts/app.js
frontend/app/scripts/app.js
'use strict'; angular.module('osscdnApp', ['ngAnimate', 'ui.router', 'ngDropdowns', 'semverSort', 'ngClipboard', 'angular-flash.service', 'angular-flash.flash-alert-directive']). value('ZeroClipboardConfig', { path: 'bower_components/zeroclipboard/ZeroClipboard.swf' }).config(function($stateProvide...
JavaScript
0.00001
@@ -179,116 +179,13 @@ e'%5D) -. %0A -value('ZeroClipboardConfig', %7B%0A path: 'bower_components/zeroclipboard/ZeroClipboard.swf'%0A %7D) .con @@ -246,16 +246,32 @@ Provider +, ngClipProvider ) %7B%0A @@ -469,24 +469,123 @@ %7D);%0A%0A + ngClipProvider.setPath('//oss.maxcdn.com/li...
29557a4f05ef13ae4b22acf3e98b3f5553b77102
Update namespace
lib/node_modules/@stdlib/buffer/lib/index.js
lib/node_modules/@stdlib/buffer/lib/index.js
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
JavaScript
0.000001
@@ -2127,16 +2127,21 @@ e revive +Buffe r%0A* @mem @@ -2252,16 +2252,21 @@ 'revive +Buffe r', requ @@ -2313,22 +2313,27 @@ * @name -toJSON +buffer2json %0A* @memb @@ -2441,14 +2441,19 @@ s, ' -toJSON +buffer2json ', r
38c4326842b9a1631817ea1f0d4a84738df45743
Update namespace
lib/node_modules/@stdlib/regexp/lib/index.js
lib/node_modules/@stdlib/regexp/lib/index.js
'use strict'; /* * When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. */ // MODULES // var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); // MAIN // /** * Top-level namespace. * * @namespace regexp */ var regexp = {}; /** * @name ...
JavaScript
0.000001
@@ -1157,32 +1157,290 @@ gexp/eol' ) );%0A%0A +/**%0A* @name RE_EXTENDED_LENGTH_PATH%0A* @memberof regexp%0A* @readonly%0A* @constant%0A* @type %7BRegExp%7D%0A* @see %7B@link module:@stdlib/regexp/extended-length-path%7D%0A*/%0AsetReadOnly( regexp, 'RE_EXTENDED_LENGTH_PATH', require( '@stdlib/regexp/extended-length-pa...
099cc7c387589aca8cde72d54c19adfdfdf6ca64
Set version to 2.0.3 for release.
src/GeoExt/Version.js
src/GeoExt/Version.js
/* * Copyright (c) 2008-2014 The Open Source Geospatial Foundation * * Published under the BSD license. * See https://github.com/geoext/geoext2/blob/master/license.txt for the full * text of the license. */ (function() { var major = 2, minor = 0, patch = 3, label = 'dev', envir...
JavaScript
0
@@ -298,11 +298,8 @@ = ' -dev ',%0A
09232720835dd80d89a4aa581e9707a03e2f369f
Fix ue/shita chat Y position
src/component/Viewer.js
src/component/Viewer.js
(() => { "use strict"; var doc = document.currentScript.ownerDocument; var defaults = { color: "#FFFFFF", size: "100%" }; function escapeHTML(content) { const table = { '&': '&amp;', '"': '&quot;', '<': '&lt;', '>': '&gt;', '\n': '<br />' }; return content....
JavaScript
0
@@ -4551,28 +4551,27 @@ return -window.inner +this.client Width;%0A @@ -4612,20 +4612,19 @@ urn -window.inner +this.client Heig
c9cf4e988349213a9017d92b411bb06701b883a2
Add test for decreasing value
webapp/test/relationsIndexTest.js
webapp/test/relationsIndexTest.js
var expect = require('chai').expect; var elasticSearch = require('elasticsearch'); var Technologies = require('../server/technologies'); var initializeIndices = require('../distribution/initializeIndices'); var host = 'localhost:9200'; var index = 'relations_test'; var client = new elasticSearch.Client({ host: h...
JavaScript
0.000007
@@ -838,16 +838,17 @@ t1, t2, +- v, false @@ -854,16 +854,16 @@ e)); %7D)%0A - @@ -1369,16 +1369,68 @@ +createRelation('c#', 'linq', 500)%0A .then( createRe @@ -1459,16 +1459,17 @@ ', 1000) +) %0A%0A @@ -1633,71 +1633,8 @@ ) %7B%0A - console.log(results.aggreg...
b31048ed7a3ca9c793ca60350fe8df22e6e70758
resolve with verified jwt
lib/security/cloudfoundry-token-validator.js
lib/security/cloudfoundry-token-validator.js
'use strict' const log = require('util').debuglog('cloudfoundry-actuator-middleware'); const jsonwebtoken = require('jsonwebtoken') const cloudFoundryCloudControllerAdapter = require('./cloudfoundry-cloud-controller-adapter') /** * */ class CloudFoundryTokenValidator { constructor() { } /** * * @p...
JavaScript
0
@@ -987,19 +987,14 @@ -const jwt = +return jso
5c7dbfd6b365b7726e3fcc7d99241193aa0624fe
Improve typeahead
lib/slocstar/server/assets/js/application.js
lib/slocstar/server/assets/js/application.js
// SlocStar - Missing stupid statistics of GitHub repos // // Copyright (c) 2012 Aleksey V Zapparov <ixti@member.fsf.org> // // SlocStar 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, either ver...
JavaScript
0.000032
@@ -6468,24 +6468,47 @@ on (data) %7B%0A + var $typeahead;%0A%0A known_ @@ -6712,24 +6712,344 @@ %3E'%0A %7D); +%0A%0A $typeahead = $search.data('typeahead');%0A%0A $typeahead._select = $typeahead.select;%0A $typeahead.select = function () %7B%0A var slug;%0A%0A this._sel...
5831371034365dc867fd2be0dde3068785adaad7
Add input's name for future usage
src/components/Kugel.js
src/components/Kugel.js
import React from 'react'; import styles from 'stylesheets/components/common/typography'; class Kugel extends React.Component { constructor(props) { super(props); this.state = { radius: 0, volumen: 0 }; this.handleChange = this.handleChange.bind(this); } handleChange(event) { co...
JavaScript
0.00004
@@ -726,16 +726,46 @@ =%22text%22%0A + name=%22radius%22%0A
05990b80ecafbaf18864749c675827817f20ecdb
fix linking on linux
configure.js
configure.js
exports.configureCompiler = function(objectFile, compiler) { // object files: <conf>/object var a = /^([^\/]+)\/([^\/]+)$/.exec(objectFile); compiler.configuration = a[1]; // replace dots with slashes, and add extension // if ends with .c - this is .c, otherwise .cpp var source = a[2]; var b = /^(.*)\.c$/.exec(s...
JavaScript
0
@@ -1266,24 +1266,62 @@ anity-gui',%0A +%09%09%09'../inanity//libinanity-platform',%0A %09%09%09'../inani
7e7c4ef18010b2bebd278bd48ba5ce6ec82871a7
Fix box size
src/components/chart.js
src/components/chart.js
import angular from 'angular'; import d3 from 'd3'; const template = ` <div style="position: absolute; left: 0; right: 0; top: 0; bottom: 10px;"> <svg id="chart" width="100%" height="100%"> <g class="contents" transform="translate(50,50)"> </g> </svg> </div> `; const modName = 'app.components.chart'; cla...
JavaScript
0.000001
@@ -370,25 +370,25 @@ boxWidth = 1 -2 +6 ,%0A boxH @@ -396,17 +396,17 @@ ight = 1 -2 +6 ,%0A @@ -433,18 +433,18 @@ umRow = -6 4 +0 ,%0A
1471c729a027489bf0c522f58f2cd5d7b8bf7e45
Add Note About Checking bufferedAmount Attribute Before Close
websockets/websockets-template.js
websockets/websockets-template.js
if (typeof WebSocket == 'function') { let socket, url; url = "ws://echo.websocket.org/"; socket = new WebSocket(url); socket.addEventListener('error', function (evt) { // TODO: Handle error. }); socket.addEventListener('open', function (evt) { let socket = evt.target; // Now, do what you nee...
JavaScript
0
@@ -6425,16 +6425,222 @@ g code.%0A + //%0A // It may be helpful to examine the socket's %60bufferedAmount%60 attribute before%0A // attempting to close the connection to determine if any data has yet to be%0A // transmitted on the network.%0A sock
92d65e5de0c8f3a224c24a7e0628d28211c3363b
fix relative name
tasks/transport.js
tasks/transport.js
/* * grunt-cmd-transport * https://github.com/spmjs/grunt-cmd-transport * * Copyright (c) 2013 Hsiaoming Yang * Licensed under the MIT license. */ module.exports = function(grunt) { var path = require('path'); var cmd = require('cmd-util'); var text = require('./lib/text').init(grunt); var script = requ...
JavaScript
0.999385
@@ -2333,17 +2333,41 @@ ath. -basename( +relative(fileObj.orig.cwd %7C%7C '', src)
0150fd8b88173046d21f2ed5aaa638c1217a7509
Add production reference to angular-stripe-checkout
config/assets/production.js
config/assets/production.js
'use strict'; module.exports = { client: { lib: { css: [ // bower:css 'public/lib/bootstrap/dist/css/bootstrap.min.css', // 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css', // endbower ], js: [ // bower:js 'public/lib/angular/angular.min.js...
JavaScript
0
@@ -436,32 +436,109 @@ yments.min.js',%0A + 'public/lib/angular-stripe-checkout/angular-stripe-checkout.min.js',%0A 'public/
5e12ca9408ea2ba6c73735bbf531acf5ab17dfd3
update registrant paths
addon/affinity-engine/configs/rewindable-save-adapter.js
addon/affinity-engine/configs/rewindable-save-adapter.js
export default { priority: 1, saveStateManager: { maxStatePoints: false, path: 'service:affinity-engine/rewindable-save-adapter' }, autosaveManager: { maxAutosaves: 3 } };
JavaScript
0
@@ -72,18 +72,121 @@ s: false -, %0A + %7D,%0A autosaveManager: %7B%0A maxAutosaves: 3%0A %7D,%0A 'affinity-engine': %7B%0A 'save-state-manager': %7B%0A path @@ -243,51 +243,11 @@ '%0A -%7D,%0A autosaveManager: %7B%0A maxAutosaves: 3 + %7D %0A %7D
f7ea40a4f7173ba9fe4b92e56649a5eba2a25ce7
Update main.js
data/main.js
data/main.js
/*@pjs preload="data/images/logo1.png";*/ var sketchProc=function(processingInstance){ with (processingInstance){ //Setup var wi = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var he = window.innerHeight || document.documentElement.clientHeight || ...
JavaScript
0.000001
@@ -2024,16 +2024,19 @@ /2 && m) + %7C%7C (mouseX
261c6a58f432cd48f979ac5fba4a0a0f84c61415
Update main.js
data/main.js
data/main.js
/*@pjs preload="data/images/logo1.png";*/ var sketchProc=function(processingInstance){ with (processingInstance){ //Setup var wi = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var he = window.innerHeight || document.documentElement.clientHeight || ...
JavaScript
0.000001
@@ -2239,56 +2239,8 @@ ();%0A -%09fill(0,0,0);%0A%09text(m+%22 %22+md,width/2,height/3);%0A %7D;%0A%0A
720c27a22f4ee01901780491a3ce2d33aa41515c
Use .innerHTML instead of .textContent
lazy-progressive-enhancement.js
lazy-progressive-enhancement.js
/** * Loads media, hooking an optional onload function. * * @param {String | NodeList | Element} [media] * String - (optional) A CSS selector targeting the noscript elements to be loaded. * NodeList - (optional) A nodelist of noscript elements to be loaded. * Element - (optional) A singular n...
JavaScript
0.000006
@@ -1679,19 +1679,17 @@ +%5D). -textContent +innerHTML ;%0A
cdcfbceca9e956e8f427b8ab9396f09fe814f70f
Allow name for some
server/graphql/v2/object/PaymentMethod.js
server/graphql/v2/object/PaymentMethod.js
import { GraphQLInt, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLString } from 'graphql'; import GraphQLJSON from 'graphql-type-json'; import { get, pick } from 'lodash'; import { PAYMENT_METHOD_TYPE } from '../../../constants/paymentMethods'; import { getLegacyPaymentMethodType, PaymentMethodLegacyType } f...
JavaScript
0.000001
@@ -184,16 +184,40 @@ import %7B + PAYMENT_METHOD_SERVICE, PAYMENT @@ -1252,37 +1252,296 @@ eq) %7B%0A -if (! +const publicProviders = %5B%0A %5BPAYMENT_METHOD_SERVICE.OPENCOLLECTIVE, PAYMENT_METHOD_TYPE.GIFT_CARD%5D,%0A %5BPAYMENT_METHOD_SERVICE.OPENCOLLECTIVE, PAYMENT_METHOD_TYPE.P...
eb9a283b646a97949d387fa5bab32526dd0f40d4
add comments to break apart code sections
troposphere/static/js/components/volumes/VolumeDetailsPage.react.js
troposphere/static/js/components/volumes/VolumeDetailsPage.react.js
/** @jsx React.DOM */ define( [ 'react', './details/VolumeDetail.react', 'rsvp', 'models/volume', 'controllers/providers', 'components/volumes/VolumeDetailsPage.react', 'controllers/notifications', 'collections/instances' ], function (React, VolumeDetail, RSVP, Volume, ProviderCon...
JavaScript
0
@@ -411,16 +411,87 @@ lass(%7B%0A%0A + //%0A // Mounting & State%0A // ----------------%0A //%0A%0A pr @@ -2561,24 +2561,74 @@ ;%0A %7D,%0A%0A + //%0A // Render%0A // ------%0A //%0A render
3fcf305362edd923eac329f089c1b467d6c45bfe
Use className attr.
src/components/notes.js
src/components/notes.js
export default class Notes { render() { return ( <p id="notComplete" class="center"> Diese Liste ist nicht vollst&auml;ndig und wird st&auml;ndig erweitert.<br/> Sie kennen noch mehr Daten zu dieser Seite? Bereichern Sie dieses Lexikon und melden Sie uns diese bitte <a href="http:/...
JavaScript
0
@@ -81,16 +81,20 @@ e%22 class +Name =%22center
027cc1c59d1b378f62a7c6d09156801ad008bb0e
simplify test
test/alpha.test.js
test/alpha.test.js
import test from 'ava'; import Fabricator from '../src/index.js'; const alpha = new Fabricator().alpha(); const isInt = number => Number(number) === number && number % 1 === 0; test('generates random number from default range (0 to 1000)', t => { const number1 = alpha.randomNumber(); const number2 = alpha.random...
JavaScript
0.999302
@@ -636,43 +636,8 @@ ) %7B%0A - for (let i = 0; i %3C 10; i++) %7B%0A co @@ -682,18 +682,16 @@ max);%0A - - const nu @@ -728,18 +728,16 @@ , max);%0A - t.true @@ -750,26 +750,24 @@ (number1));%0A - t.true(isI @@ -776,26 +776,24 @@ (number2));%0A - t.true(num @@ -811,18 +811,16 @@ mber2);...
f923128b3561c93265ca3f87d660504006c99dfd
Reset used map when starting programming phase. Were seeing phantom locked cards if you got the same card again.
js/Programming.js
js/Programming.js
import Button from 'rebass/src/Button'; import MovementCard from './MovementCard'; import Panel from 'rebass/src/Panel'; import PanelHeader from 'rebass/src/PanelHeader'; import Register from './Register'; import { Shutdown } from './Emoji'; export default class Programming extends React.Component { constructor(pr...
JavaScript
0
@@ -1080,16 +1080,40 @@ cards;%0A + this.used = %7B%7D;%0A
d6f279b05d69f29b5ac07dc07ae4775577778647
Create more precise check of timeout
test/babel.test.js
test/babel.test.js
/*eslint-env mocha,node*/ var babel = require('babel-core'); var vm = require('vm'); var expect = chai.expect; describe('babel.test.js', function () { it('should work together with babel/register', function (done) { var resolvedPath = require.resolve('./utils/babel.mock.js'); var result = babel.transformFil...
JavaScript
0
@@ -685,16 +685,17 @@ result %3E += 100).to
a3e87909353df80ce4d91bf855ea0a4bb0c3f0af
Set canvas dimensions when saving image
js/application.js
js/application.js
;(function(){ var G = dijkstra.hexGrid(2); function nextWeight(weights) { return function(event){ var id = this.getAttribute('data-edge'); var e = G.findEdge(id); var weight = weights[e.weight] || 1; e.weight = weight; algorithm.reset(); ...
JavaScript
0
@@ -2289,24 +2289,83 @@ ontainer');%0A + var svg = document.getElementsByTagName('svg')%5B0%5D;%0A var @@ -2436,24 +2436,156 @@ ('canvas');%0A + canvas.setAttribute('width', svg.getAttribute('width'));%0A canvas.setAttribute('height', svg.getAttribute('height'));%0A var
271097a7db14638a5dacf2f3e64c99da227930da
Update dynamic attribute binding
shopping_app/static/assets/app/js/main.js
shopping_app/static/assets/app/js/main.js
/** * Created by root on 9/19/17. */ 'use strict'; $(document).ready(function () { $("#shl-item, #shl-price").addClass('text-center'); $(".shl-input").addClass('text-center'); $("#username, #password, #email, #password, #confirm, #name").addClass('form-control'); $('#item_name').addClass('form-contro...
JavaScript
0
@@ -886,16 +886,50 @@ nger');%0A + $('.ui.dropdown').dropdown();%0A %7D);%0A%0A%0A%0Ad
a85b6ef865b9b43f7f867c625ed6a06adbb856ba
tidy up deprecate.js
src/config/deprecate.js
src/config/deprecate.js
import warn from 'utils/log/warn'; import { isArray } from 'utils/is'; function deprecate ( options, deprecated, correct ) { if ( deprecated in options ) { if( !( correct in options ) ) { warn( getMessage( deprecated, correct ) ); options[ correct ] = options[ deprecated ]; } else { throw new Err...
JavaScript
0.000011
@@ -74,25 +74,279 @@ unction -deprecate +getMessage( deprecated, correct, isError ) %7B%0A%09return 'options.' + deprecated + ' has been deprecated in favour of options.' + correct + '.'%0A%09%09+ ( isError ? ' You cannot specify both options, please use options.' + correct + '.' : '' );%0A%7D%0A%0Afunction deprecate...
8b05d807fed1f9f974bc899e98e13a8f9868f8dd
remove the refresh/logout user - remove logs
js/controllers.js
js/controllers.js
angular.module('simpleChat') .controller('loginCtrl', [ '$scope', '$rootScope', '$location', '$http', 'tokenService', function($scope, $rootScope, $location, $http, tokenService) { var username = sessionStorage.getItem('username'); if (username) { $location.path('/chat'); } // Scope with username ...
JavaScript
0
@@ -1193,24 +1193,26 @@ ror) %7B%0A%09%09%09%09%09 +// console.log( @@ -1228,24 +1228,24 @@ a.message);%0A - %09%09%09%09%7D);%0A%0A%09%09%09 @@ -1904,32 +1904,34 @@ ion(error)%7B%0A%09%09%09%09 +// console.log(erro @@ -3306,16 +3306,18 @@ r)%7B%0A%09%09%09%09 +// console. @@ -5373,16 +5373,19 @@ %7B%0A%09 ...
163f09db566fbc96dbbbe27220241ee73ef2ccb2
debug chat
js/app.js
js/app.js
page('/', function(){ $('#landing-page').removeClass('hidden'); $('#chat-page').addClass('hidden'); $('#for-geeks-button').on('click', function(){ $('#for-geeks').removeClass('closed'); }); setupLandingPage(); }); page('/:chatId', function(ctx){ $('#chat-page').removeClass('hidden'); $('#landing-page...
JavaScript
0.000001
@@ -2377,32 +2377,33 @@ error);%0A %7D;%0A%0A +%0A dc.onmessage @@ -2395,23 +2395,20 @@ dc.on -message +open = funct @@ -2412,21 +2412,16 @@ nction ( -event ) %7B%0A @@ -2439,11 +2439,11 @@ og(%22 -Got +The Dat @@ -2456,53 +2456,109 @@ nel -Message:%22, event.data +is Opened%22);%0A dc.se...
81258eba820efd0aac80f49a13d9682e4733beec
Fix and Basic Documentation Tw2CurveSet
src/core/Tw2CurveSet.js
src/core/Tw2CurveSet.js
function Tw2CurveSet() { this.name = ''; this.curves = []; this.bindings = []; this.scale = 1; this.playOnLoad = true; this.isPlaying = false; this.scaledTime = 0; } Tw2CurveSet.prototype.Initialize = function () { if (this.playOnLoad) { this.Play(); } } Tw2CurveSet.pr...
JavaScript
0
@@ -1,5 +1,267 @@ -%EF%BB%BF +/**%0A * Tw2CurveSet%0A * @property %7Bstring%7D name%0A * @property %7BArray.%3CTw2Curve%3E%7D curves%0A * @property %7BArray%7D bindings%0A * @property %7Bnumber%7D scale%0A * @property %7Bboolean%7D playOnLoad%0A * @property %7Bboolean%7D isPlaying%0A * @property %7Bnumber%7D scaledTime...
02b9bf61da093593e4cf0693ab0e9e5a79dbdd41
Revert "Fix for cross site scripting vulnerability in the HAL Browser."
js/hal/browser.js
js/hal/browser.js
HAL.Browser = Backbone.Router.extend({ initialize: function(opts) { opts = opts || {}; var vent = _.extend({}, Backbone.Events), $container = opts.container || $('#browser'); this.entryPoint = opts.entryPoint || '/'; // TODO: don't hang currentDoc off namespace vent.bind('response', functio...
JavaScript
0
@@ -1294,424 +1294,119 @@ -// check the host to avoid XSS%0A var link = document.createElement(%22a%22);%0A link.href = url;%0A if (link.hostname == window.location.hostname) %7B%0A if (url.slice(0,8) !== 'NON-GET:') %7B%0A console.log('target url changed to: ' + url);%0A HAL.client.ge...
4089b0a9bdb62fe58b40f0d90b11ecacb3fbe984
Update imageLoader.js
js/imageLoader.js
js/imageLoader.js
/** * The MIT License (MIT) * Copyright (c) 2014 Andreas Tscheinig * See LICENSE file in ImageLoaderJS repository for the full text of license. */ ImageLoader = (function() { /* private members */ /** * The resources * @type {Array.<object>} * @private */ var resources = [], /** * The registered call...
JavaScript
0.000001
@@ -100,10 +100,11 @@ ader -JS +.js rep
b6a2a34091a8d099bb9d84f47ee335e99f50be5f
fix sanitize
js/app.js
js/app.js
(function() { var app = angular.module('cv', ['ngRoute', 'pascalprecht.translate']); app.run(['$route', '$rootScope', '$location', function($route, $rootScope, $location) { var original = $location.path; $location.path = function(path, reload) { if (reload === false) { var lastRoute = $route...
JavaScript
0.000002
@@ -1522,16 +1522,89 @@ Spanish' +,%0A T_DETAILS: 'Details',%0A T_STACK_AND_TOOLS: 'Stack and tools'%0A %0A %7D); @@ -2069,64 +2069,207 @@ %C3%B1ol' -%0A %7D);%0A $translateProvider.preferredLanguage('en'); +,%0A T_DETAILS: 'Detalles',%0A T_STACK_AND_TOOLS: 'Tecnolog%C3%ADa y herramienta...
cb336769f6d4bfa17d3ea37b766779c0a8da99bb
Update test
test/index.test.js
test/index.test.js
import { assert } from 'chai' import EasyInput from '../index.js' describe('EasyInputClass', () => { let easyInput beforeEach(() => { easyInput = new EasyInput() }) context('handleKeyDown()', () => { it('press "Ctrl + A" return Ctrl+A', () => { assert.strictEqual(easyInput.handleKeyDown({ ...
JavaScript
0.000001
@@ -224,23 +224,16 @@ 'press %22 -Ctrl + A%22 retur @@ -233,22 +233,18 @@ %22 return +s -Ctrl+ A', () = @@ -346,35 +346,36 @@ ctrlKey: -tru +fals e,%0A shift @@ -420,21 +420,16 @@ %7D), ' -Ctrl+ A')%0A @@ -709,31 +709,300 @@ ss %22Ctrl -%22 returns Ctrl+ + + Shift + Alt + A%22 returns...
5ca580799d54b2ea781c04aca160a82fa0218ba5
add some logs to debug the sort order
meteor-live-git/client/client.js
meteor-live-git/client/client.js
Session.set("searchedForRepo", false); // Main template Template.main.showRepository = function() { return (window.location.pathname.length > 15); } Template.main.repository = function() { var repoId = window.location.pathname.substr(1); var repo = Repositories.findOne({_id: repoId}); if (repo) { if (!r...
JavaScript
0.000001
@@ -1456,24 +1456,72 @@ orkingCopy;%0A + console.log (wcA)%0A console.log (wcB)%0A if (wc
358f9e90e0e34fede621c23cfb2baf016ed3067c
change var to const
index.android.js
index.android.js
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict' var React = require('react-native') const AudioAndroid = require('./custom_modules/android/AudioAndroid') var { AppRegistry, StyleSheet, Text, View, TouchableHighlight, } = React var MyFirstReactNative = React.createClass...
JavaScript
0.000003
@@ -86,19 +86,21 @@ trict'%0A%0A -var +const React = @@ -194,19 +194,21 @@ droid')%0A -var +const %7B%0A%09AppR @@ -275,19 +275,21 @@ React%0A%0A -var +const MyFirst @@ -694,36 +694,31 @@ yle=%7Bstyles. -instructions +welcome %7D%3E%0A%09%09%09%09%09%09Sto @@ -829,28 +829,23 @@ %7Bstyles. -instructions +we...
bc2445ee11533d48fb3eeb1770e67d561a2dddc4
Attach TraitsField to Trait
core/core.js
core/core.js
const Record = {}; const Trait = {}; const RecordType = {}; const Field = {}; const Module = {}; const TextType = 'TextType'; const NumberType = 'NumberType'; const BooleanType = 'BooleanType'; const RootModule = { id: 'Root', type: Module, }; const Core = { id: 'Core', type: Module, parentModule:...
JavaScript
0
@@ -1102,16 +1102,64 @@ Field); +%0Aconst traitsField = ListField('traits', Trait); %0A%0ARecord @@ -1533,16 +1533,29 @@ ldsField +, traitsField %5D;%0ATrait
e263b7f9109bdd5acbdd36c67db57de70ecbc659
Make views responsible for rendering themselves
js/index-admin.js
js/index-admin.js
"use strict"; var Backbone = require('./backbone') , $ = require('./jquery') , Editor = require('./utils/text_editor') , Project = require('./models/project') , AdminRouter $(document).ready(function () { var admin = new AdminRouter(); // pushState doesn't actually matter here because we just use normal ...
JavaScript
0
@@ -942,33 +942,8 @@ ew;%0A - this._view.render();%0A %7D,
41fe1b7dccc1d63e374e3a0673c4ef95d4602b58
Use `var`
geodj/static/application.js
geodj/static/application.js
var GlobalState = Backbone.Model.extend({ defaults: { nextDisabled: false } }); var Country = Backbone.Model.extend({ defaults: { selected: false }, fetchVideos: function (complete) { $.ajax({ url: "/countries/" + this.get('pk') + '/videos', success: function(json) { complete...
JavaScript
0.000009
@@ -4378,16 +4378,20 @@ w();%0A%0A +var onWindow @@ -4522,24 +4522,28 @@ 0);%0A %7D;%0A%0A +var onPlayerRead
3132bc7925c06942b3e10c77b89d88c76674c406
use port 80 instead of 8081
config/default.js
config/default.js
module.exports = { app: { name: 'myKoajsRestApp', version: '2.1.0' }, server: { port: 8081 }, worker: process.env.NODE_WORKER_NAME, rabbitMq: { host: "127.0.0.1", port: 5672, options: {durable: true}, queue: process.env.NODE_QUEUE_NAME, ...
JavaScript
0.000013
@@ -121,10 +121,8 @@ : 80 -81 %0A
ee92fe16415e274004b576a73406abb7a3949cfd
Remove the useless accessor.
map_it/CallNumber.js
map_it/CallNumber.js
/** * @module map_it/CallNumber */ /** * Represents a LC call number, up until the first Cutter. */ class CallNumber { /** * Creates a CallNumber. * * @constructor * @param {string} call_number - The call number to parse. * @throws {Error} call_number is null or not a string. * @throws {Error} ...
JavaScript
0
@@ -1872,177 +1872,8 @@ %7D%0A%0A - /**%0A * @property %7Bstring%7D originalCallNumber - The orginal call number (in uppercase).%0A */%0A get originalCallNumber() %7B%0A return this.original_call_number;%0A %7D%0A%0A /*
2b095708715273cfc1ab5fea5977dcaa2478caa2
fix default formatter
src/defaultFormatter.js
src/defaultFormatter.js
// @flow export default function defaultFormatter (value: number, unit: string, suffix: string): string { if ((value % 10 !== 1) || (value % 100 === 11)) { unit += 's' } return value + ' ' + unit + ' ' + suffix }
JavaScript
0.000008
@@ -109,51 +109,20 @@ if -( (value -%25 10 !== 1) %7C%7C (value %25 100 === 11) +!== 1 ) %7B%0A
a2dd248d08d587f8a6f8b2a9f162033869e6aeda
Fix tests
test/index.test.js
test/index.test.js
var fs = require('fs'); var util = require('util'); var Carmen = require('..'); var index = require('../lib/index'); var memFixture = require('./fixtures/mem.json'); var MBTiles = require('mbtiles'), mem = require('../lib/api-mem'); var UPDATE = process.env.UPDATE; var test = require('tape'); test('index.update', ...
JavaScript
0.000003
@@ -762,32 +762,41 @@ doc has no _zxy + on _id:1 ', err.toString( @@ -791,32 +791,32 @@ rr.toString());%0A - q.en @@ -1015,16 +1015,25 @@ no _zxy + on _id:1 ', err.t @@ -1205,32 +1205,32 @@ function(err) %7B%0A - q.eq @@ -1259,16 +1259,25 @@ _center + on _id:1 ', err.t
9ec419a5266846908c78809a588f4970d9e3a20a
Fix the linter errors
packages/rocketchat-importer-slack-users/server/importer.js
packages/rocketchat-importer-slack-users/server/importer.js
import { Base, ProgressStep, Selection, SelectionUser } from 'meteor/rocketchat:importer'; export class SlackUsersImporter extends Base { constructor(info) { super(info); this.csvParser = Npm.require('csv-parse/lib/sync'); this.userMap = new Map(); this.admins = []; //Array of ids of the users which are ...
JavaScript
0.998673
@@ -2728,16 +2728,17 @@ User._id +; %0A%09%09%09%09%09%09%09
e2f7b9193e68a26ad3826c1152413dd572b43a5e
Work around Firefox bug in getting location hash
source/Vibrato/application/Application.js
source/Vibrato/application/Application.js
// -------------------------------------------------------------------------- \\ // File: Application.js \\ // Module: Application \\ // Requires: Core, Foundation, GlobalKeyboardShortcuts.js ...
JavaScript
0
@@ -813,19 +813,19 @@ ar h -ref +ash = loc.h ref, @@ -820,19 +820,19 @@ = loc.h -ref +ash ,%0A @@ -838,19 +838,19 @@ i = h -ref +ash .indexOf @@ -880,19 +880,19 @@ %3E -1 ? h -ref +ash .slice(
4a8f12d8772ecb3bc0e9a767978cec10cca491e6
Prepare migration to react 16
src/ToastContainer.js
src/ToastContainer.js
import React, { Component, isValidElement, cloneElement } from 'react'; import PropTypes from 'prop-types'; import Transition from 'react-addons-transition-group'; import Toast from './Toast'; import DefaultCloseButton from './DefaultCloseButton'; import config from './config'; import EventManager from './util/EventMa...
JavaScript
0
@@ -135,16 +135,26 @@ act- -addons-t +transition-group/T rans @@ -154,26 +154,25 @@ p/Transition --g +G roup';%0A%0Aimpo
7a1e065c6d21dae61f6b949f328428719afe933a
Improve directoryBuilder validation
src/directoryBuilder.js
src/directoryBuilder.js
// This is a directory that maps issuer account IDs to their issuers import _ from 'lodash'; import logos from './logos'; // Constraints: Data should be easily serializable into JSON (no references to each other) // directory.js should not depend on creating objects with StellarSdk (though its methods should support r...
JavaScript
0
@@ -441,16 +441,39 @@ ts = %7B%7D; +%0A this.issuers = %7B%7D; %0A%0A // @@ -1932,24 +1932,359 @@ slug);%0A %7D +%0A if (!this.issuers.hasOwnProperty(details.issuer)) %7B%0A // Issuer doesn't exist%0A this.issuers%5Bdetails.issuer%5D = %7B%7D;%0A %7D else if (this.issuers%5Bdetails.issuer%5D...
00ff497aa8f7c56ace3d6975cac65981cc3a6920
enable bootstrap.js
config/env/all.js
config/env/all.js
'use strict'; module.exports = { app: { title: 'Studio Center Auditions', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, port: process.env.PORT || 3000, templateEngine: 'swig', sessionSecret: 'MEAN', sessionCollection:...
JavaScript
0.000004
@@ -1418,45 +1418,50 @@ lib/ -angular-ui-utils/ui-utils +bootstrap/dist/js/bootstrap.min .js', + %0A%09%09%09%09 -// 'pub @@ -1472,45 +1472,38 @@ lib/ -bootstrap/dist/js/bootstrap.min +angular-ui-utils/ui-utils .js', - %0A%09%09%09
35a2b76d21881518e7b3288e337f1a37883a7375
add label with timestamp to new sheet
code.js
code.js
/** * Script converts postcode data from a single spreadsheet column * into latitude and longitude coordinates. * These are inserted into the first empty column of the same spreadsheet. * The user selects which column to convert via a prompt from * the Google Sheets add-on menu. */ /** * Runs automatically when a use...
JavaScript
0
@@ -2129,32 +2129,364 @@ output%0A try %7B%0A + //create timestamp%0A var d = new Date();%0A var day = d.getDate();%0A var month = d.getMonth();%0A var year = d.getFullYear();%0A var hour = d.getHours(); %0A var min = d.getMinutes();%0A var sec = d.getSeconds();%0A var timestamp = day +%22...
c99312dfde55e277ac3261400460be8c073b2d0c
add --no-sandbox flag
test/karma.conf.js
test/karma.conf.js
/* * Copyright (c) 2017 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. */ /* eslint-env node */ 'use strict'; const os = require('os'); let browsers; if (process.env.BR...
JavaScript
0.000001
@@ -1562,24 +1562,42 @@ ia-stream',%0A + '--no-sandbox',%0A '--headles
15be795fb6497186ede98342560a73a73571970e
Fix angular-upload, come on.
config/env/all.js
config/env/all.js
'use strict'; module.exports = { app: { title: 'dcpApp', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, port: process.env.PORT || 3002, templateEngine: 'swig', sessionSecret: 'MEAN', sessionCollection: 'sessions', ass...
JavaScript
0
@@ -463,26 +463,24 @@ %09%09js: %5B%0A%09%09%09%09 -// 'public/lib/ @@ -573,10 +573,8 @@ %09%09%09%09 -// 'pub
75919ffd59586bd0690218b2c42de48bda7432d0
add editable polygon
code.js
code.js
function addPolygon( map ) { // Define the LatLng coordinates for the polygon. var shapeCoords = [ new google.maps.LatLng(38.7717496, -9.2534604), new google.maps.LatLng(38.7917496, -9.2534604), new google.maps.LatLng(38.8017496, -9.2834604), new google.maps.LatLng(38.7817496, -9...
JavaScript
0.000008
@@ -1,20 +1,700 @@ +function addEditablePolygon( map )%0A%7B%0A // Define the LatLng coordinates for the polygon.%0A var shapeCoords = %5B%0A new google.maps.LatLng(38.7717496, -9.2134604),%0A new google.maps.LatLng(38.7917496, -9.2134604),%0A new google.maps.LatLng(38.7817496, -9.2334604),%0...
a86f9e2e5974c4f491434ddc89849e06ea038cc4
Update app.js
js/app.js
js/app.js
var map; function main() { var options = { center: [38.1, -85.771], zoom: 11, zoomControl: false, // dont add the zoom overlay (it is added by default) loaderControl: false //dont show tiles loader }; cartodb.createVis('map', 'http://cityresearch.cartodb.com/api/v2/viz/5c39067a-b3aa-11e4-a01f...
JavaScript
0.000002
@@ -56,17 +56,19 @@ er: %5B38. -1 +655 , -85.77
bf70c71417c0e28be967ed9e9992a75b83046eb5
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_proce
JavaScript
0
@@ -49,16 +49,17 @@ ire('child_proce +s
7532a3fd584b73f502227ac29f8aa82e25f3487e
update tests for grouping closes #119
test/light_test.js
test/light_test.js
const chai = require('chai'); const chaiHttp = require('chai-http'); chai.use(chaiHttp); const expect = chai.expect; const request = chai.request; const setup = require(__dirname + '/test_setup'); const teardown = require(__dirname + '/test_teardown'); const port = process.env.PORT = 5000; const Bridge = require(__dir...
JavaScript
0
@@ -1460,16 +1460,54 @@ tId: '3' +,%0A groups: 'livingroom,kitchen' %0A %7D @@ -1622,24 +1622,93 @@ othlight');%0A + expect(res.body.groups).to.eql(%5B 'livingroom', 'kitchen' %5D);%0A expe @@ -2376,16 +2376,46 @@ ot test' +,%0A groups: 'bathroom' %0A