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
8d5fbb0b37106f57c4a051cb46470b7bd07659ea
add "clear view cache"
lib/themes.lib.js
lib/themes.lib.js
var fs = require('fs'); var requireAll = require('require-all'); var path = require('path'); var _ = require('lodash'); var async = require('async'); var hbs = require('express-hbs'); var options = require('../core/models/options.model'); /** * 读取 Helper */ var helpers = requireAll({ dirname: path.join(__dirname, ...
JavaScript
0
@@ -910,16 +910,34 @@ tory) %7B%0A + app.cache = %7B%7D;%0A app.en
37c5d61351f10815c8526bdbdea7591b323cc08a
Enable click on TouchBarButton
lib/touchbarUI.js
lib/touchbarUI.js
const {CompositeDisposable} = require('atom'); const remote = require('remote'); const {TouchBar} = remote; const {TouchBarButton} = TouchBar; class TouchBarUI { constructor() { this.name = 'touchbar-ui'; this.subscriptions = new CompositeDisposable(); this.subscriptions.add(atom.config.observe('linter...
JavaScript
0.000001
@@ -207,16 +207,17 @@ ar-ui';%0A +%0A this @@ -578,70 +578,381 @@ his. -error = new TouchBarButton();%0A this.error. +subscriptions.add(atom.config.observe('linter-ui-default.statusBarClickBehavior', statusBarClickBehavior =%3E %7B%0A const notInitial = typeof this.statusBarClickBehavior !== 'undefined';...
cbf5319bec0e26a28b5be549a85b68a7853a7457
Work good with literals that are over 60 bits
lib/uncompress.js
lib/uncompress.js
var LITERAL = 0 , ONE_BYTE_COPY = 1 , TWO_BYTE_COPY = 2 , THREE_BYTE_COPY = 3 , uncompressedLength = require('./uncompressed-length') , ignoreLengthBytes = function() { var ptr = 0 while(this.input[ptr] & (1 << 7)) ptr++; // ptr + 1 is the first data ptr return...
JavaScript
0
@@ -490,124 +490,200 @@ %3E 2%0A -%0A if (length %3C= 59) %7B%0A length = length + 1%0A this.inputPtr = this.inputPtr + 1%0A %7D%0A else%0A + , bytes%0A , i%0A%0A this.inputPtr = this.inputPtr + 1%0A%0A if (length %3C= 59) %7B%0A length = length + 1%0A %...
1d13624d3dd30ecf02065772a516354e1571df8b
Replace glossary terms by links to glossary
lib/utils/page.js
lib/utils/page.js
var _ = require('lodash'); var path = require('path'); var cheerio = require('cheerio'); var links = require('./links'); function replaceText($, el, search, replace, text_only ) { return $(el).each(function(){ var node = this.firstChild, val, new_val, // Elements to be...
JavaScript
0.000004
@@ -3120,66 +3120,117 @@ n %22%3C -span class='glossary-term' data-glossary-term='%22+term.id+%22 +a href='%22+links.toAbsolute(%22GLOSSARY.html%22, options.base, options.output)+%22#%22+term.id+%22' class='glossary-term ' ti
5899a6022e4bb04feb9f526c157486a6bc134b97
Update OfferTestimony.js
server/game/cards/05-UotE/OfferTestimony.js
server/game/cards/05-UotE/OfferTestimony.js
const DrawCard = require('../../drawcard.js'); const AbilityDsl = require('../../abilitydsl'); const { Locations, Players, CardTypes } = require('../../Constants'); class OfferTestimony extends DrawCard { setupCardAbilities() { this.action({ title: 'Both players reveal a card', cond...
JavaScript
0
@@ -125,16 +125,28 @@ ardTypes +, EventNames %7D = req @@ -1984,16 +1984,123 @@ xt =%3E %7B%0A + let events = context.events.filter(event =%3E event.name === EventNames.OnCardRevealed);%0A @@ -2127,32 +2127,24 @@ aledCards = -context. events.map(e
df9d9f5629cc96d6dbb6623172b99ee361fb068d
fix for indexing imported profiles to neo4j
server/profileImportModule/profileImport.js
server/profileImportModule/profileImport.js
const ProfileImportModel = require('./../api/v1/profileImport/profileImport.entity'); const logger = require('./../../applogger'); const async = require('async'); const userCtrl = require('./../api/v1/users/users.controller'); const profileCtrl = require('./../api/v1/profile/profile.controller'); const analysisFeeder =...
JavaScript
0
@@ -1284,17 +1284,24 @@ profiles -' + ', data );%0A @@ -1303,26 +1303,16 @@ -%7D%0A %7D);%0A asyn @@ -1365,32 +1365,156 @@ syncCallback) %7B%0A + instance.createdBy = 'svc.profileimport';%0A instance.updatedBy = 'svc.profileimport';%0A importDa @@...
81ea51a5b896421df8664bdf8dc42b0a36a6c993
wrong conditional
model/core/CouchConnector.js
model/core/CouchConnector.js
var console = require('./../utils/Logger'); var http = require('http'); // todo change to https when DB has its own instance function CouchConnector(getUUID, dbHostName, dbPort, dbName, dbUser, dbPassword) { this.getUUID = getUUID; this.host = dbHostName; this.port = dbPort; this.name = dbName; thi...
JavaScript
0.999748
@@ -536,9 +536,8 @@ ode -! == 2
ebfab3ff654f1c88639b009091c13b7d069c8298
include scroll position in the modal placement calculation
js/modal/index.js
js/modal/index.js
var $ = window.$, win = $(window), doc = $(document), _ = require('../utils'), template = require('./template'), Slider = require('./Slider'), DELAY = 150, PADDING = 50; var Modal = module.exports = function() { this.elem = tem...
JavaScript
0
@@ -3168,32 +3168,51 @@ h / 2) - PADDING + + doc.scrollLeft() ,%0D%0A m @@ -3243,32 +3243,50 @@ t / 2) - PADDING + + doc.scrollTop() ,%0D%0A%0D%0A
22f47eb947f6de7093bcc2a98ab5b92863ac787e
Fix incomplete key path handling
lib/completers/openapi.js
lib/completers/openapi.js
const JSONParser = require('stream-json/Parser') const SwaggerParser = require('swagger-parser') const OPENAPI_SPEC_PATHS = ['openapi.json', 'openapi/v1', 'openapi/v2'] const postfixWith = postfix => str => str + postfix const prefixWith = prefix => str => prefix + str const arrayStartsWith = (a, b) => { return b....
JavaScript
0.000161
@@ -4857,37 +4857,8 @@ ) %7B%0A - currentStack.pop()%0A @@ -4921,26 +4921,29 @@ eadingKey = -%5B%5D +false %0A %7D%0A @@ -4985,16 +4985,26 @@ artKey') + %7B%0A reading @@ -5008,24 +5008,59 @@ ingKey = %5B%5D%0A + currentStack.pop()%0A %7D%0A else i
582fd4e838f9387c5ca65b8fcdf47f5e6d9e5b8a
Allow filtering events by date
lib/controllers/events.js
lib/controllers/events.js
"use strict"; var express = require("express"), crud = require("./helpers/crud.js"), auth = require("./helpers/auth.js"), list = require("./helpers/list.js"); var events = module.exports = express.Router({ mergeParams: true }); // Helpers to DRY up CRUD controllers...
JavaScript
0.000009
@@ -1551,16 +1551,42 @@ %5B%22name%22 +, %22start_date%22, %22end_date%22 %5D);%0Aeven @@ -1633,16 +1633,39 @@ mParser, + list.parseDateFilters, functio
c7a471e6cc819b5b62cda0283c0fee22482068e6
Fix a typo.
js/test4theory.js
js/test4theory.js
// 2011 Copyright Citizen Cyberscience Centre // // This file is part of t4t-webapp. // // t4t-webapp 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 version 3 of the License, or // (at your o...
JavaScript
0.999957
@@ -859,16 +859,17 @@ etJSON(' +/ boinc.js
fc4bd891894a4a52f588ec466e91757e12dbe5c9
Update util-slider.js
js/util-slider.js
js/util-slider.js
var utils = { html2node: function(str, className) { var container = document.createElement('div'); if (className) container.className = className; container.innerHTML = str; return container.children[0]; }, extend: function(a, b) { if (a && b && typeof a === 'object' && typeof b === 'ob...
JavaScript
0
@@ -2339,24 +2339,44 @@ s.current.fn + && current !== next ) %7B%0A th @@ -4219,32 +4219,71 @@ ld(e);%0A%0A %7D%0A + this.nav(current, arr%5Bcurrent%5D);%0A %7D%0A%0A docum
8d0c87bd9a4473ede236d33ba821bc5eec9793e0
Use logger.info instead of .log
issues-server.js
issues-server.js
/* * Copyright (c) 2016 Bastien Brunnenstein * This source code is licensed under the BSD 3-Clause License found in the * LICENSE file in the root directory of this repository. */ var config = require('./config.json'); var issues = require('./issues'); var logger = require('./logger'); var fs = require('fs'); ...
JavaScript
0.000001
@@ -2297,27 +2297,28 @@ %0A logger. -log +info ('#'+ id +' @@ -4183,35 +4183,36 @@ TODO%0A logger. -log +info ('#'+ req.issue. @@ -4734,19 +4734,20 @@ logger. -log +info ('#'+ re @@ -5188,19 +5188,21 @@ logger. -log +error (err);%0A
4b1b5049d598876c2233fc8df6cc1f70196b74a6
Send other security related headers to protect the site.
server/staticHttpServer.js
server/staticHttpServer.js
'use strict'; const fs = require('async-file'); const http = require('http'); const path = require('path'); const url = require('url'); const logger = require('./logger'); const STATIC_ASSETS_PATH = '../ui/build'; const INITIAL_FILE = 'index.html'; const pickContentType = extension => { const contentTypes = { ...
JavaScript
0
@@ -1735,16 +1735,69 @@ s.size,%0A + 'Content-Security-Policy': %22default-src 'self'%22,%0A 'Str @@ -1867,16 +1867,129 @@ preload' +,%0A 'X-Content-Type-Options': 'nosniff',%0A 'X-Frame-Options': 'DENY',%0A 'X-XSS-Protection': '1; mode=block' %0A %7D);%0A%0A
99566b5e946ca263f6d88a41f4327833b28f9433
Support IE6 (which doesn't support hashchange)
source/application/applicationcontroller.js
source/application/applicationcontroller.js
APP.applicationController = (function () { 'use strict'; var fastClick; function offlineWarning() { alert("This feature is only available online."); } function pageNotFound() { alert("That page you were looking for cannot be found."); } function showHome() { $("#b...
JavaScript
0
@@ -1514,44 +1514,535 @@ -$(window).bind(%22hashchange%22, route); +if (%22onhashchange%22 in window) %7B%0A $(window).bind(%22hashchange%22, route);%0A %0A // Support for old IE (which didn't have hash change)%0A %7D else %7B%0A (function () %7B%0A va...
0faa9d2ba99d8dfaaac192c62e0f18b028b33772
Add comments to describe jest EventSource mocking
jest/setupEnv.js
jest/setupEnv.js
require('babel-polyfill'); var EventEmitter = require('events').EventEmitter; // jsdom doesn't have support for localStorage at the moment global.localStorage = require('localStorage'); // Tests should just mock responses for the json API // so let's just default to a noop var RequestUtil = require('mesosphere-shared...
JavaScript
0
@@ -1420,16 +1420,238 @@ %0A%7D());%0A%0A +/*%0A * Mock the EventSource using the functionality of EventEmitter,%0A * which mimics the functionality of the EventTarget interface.%0A * We are in this case mocking the EventSource, since it is not supported in%0A * Jest.%0A */%0A (functio @@ -1753,24 +1753,103 @@ rotot...
aa8bdf5eb2b620b85c155a1cd74ab72f3c3f254d
Update schema w missing bits
spikes/graphql/graphql-server/src/schema.js
spikes/graphql/graphql-server/src/schema.js
import { makeExecutableSchema } from 'graphql-tools'; import resolvers from './resolvers'; const schema = ` scalar Date scalar Object type Portal { username: String! datacenter: Datacenter! deploymentGroups: [DeploymentGroup]! } type DeploymentGroup { uuid: ID! name: String! slug: String! services: [...
JavaScript
0
@@ -4693,37 +4693,37 @@ stopService +s (uuid +s : -String +%5BID%5D !)%0A startSe @@ -4727,29 +4727,29 @@ tService +s (uuid +s : -String +%5BID%5D !)%0A res @@ -4759,29 +4759,60 @@ tService +s (uuid +s : -String +%5BID%5D!)%0A deleteServices(uuids: %5BID%5D !)%0A%0A st @@ -4827,30 +4827,26 @@ ces(u...
4910d74cdc7758be71e9b6d70433d54172ec1413
load picturefill per default
hbp/js/global.js
hbp/js/global.js
/** * Define Global Namespace */ var Capitan = function (out) { out = out || {}; for (var i = 1; i < arguments.length; i++) { if (!arguments[i]) { continue; } for (var key in arguments[i]) { if (arguments[i].hasOwnProperty(key)) { out[key] = arguments[i][key]; } } } return out; }({}, (Capi...
JavaScript
0
@@ -1477,32 +1477,133 @@ nique: 0%0A%09%7D,%0A%09%7B%0A +%09%09url: Capitan.Vars.folderPath + 'js/libs/vendor/picturefill/picturefill.min.js',%0A%09%09unique: 0%0A%09%7D,%0A%09%7B%0A %09%09url: Capitan.V
333165bf865b15171886188ccd1b19093e248e54
Add staticDir to local-sample.js
config/local-sample.js
config/local-sample.js
module.exports = { // Site secret. CHANGE! DO NOT EXPOSE TO CLIENT! // Used to encrypt and decrypt passwords and tokens. secret: '123456789', // Default admin user admin: { username: 'admin', email: 'admin@example.com', password: '1234' }, // Mongo database settings mongo: { url: 'mo...
JavaScript
0.000001
@@ -1,8 +1,36 @@ +var path = require('path');%0A %0Amodule. @@ -172,16 +172,157 @@ 6789',%0A%0A + // Static file directory.%0A // Express will serve static files in this directory.%0A staticDir: path.resolve(__dirname, '../.tmp/public'),%0A%0A // Def
9c327a331405bd1653dc28b1d7caa3fd28a72712
Add global escape handler container to visdiff tree
shared/test/render-dumb-sheet.js
shared/test/render-dumb-sheet.js
// @flow import {ipcRenderer} from 'electron' import React from 'react' import ReactDOM from 'react-dom' import {MuiThemeProvider} from 'material-ui/styles' import materialTheme from '../styles/material-theme.desktop' import dumbComponentMap from '../dev/dumb-sheet/component-map.desktop' import DumbSheetItem from '../d...
JavaScript
0
@@ -150,16 +150,75 @@ styles'%0A +import %7BGlobalEscapeHandler%7D from '../util/escape-handler'%0A import m @@ -627,16 +627,46 @@ Theme%7D%3E%0A + %3CGlobalEscapeHandler%3E%0A %3CD @@ -678,16 +678,18 @@ eetItem%0A + @@ -710,16 +710,18 @@ + + id='rend @@ -726,16 +726,18 @@ nd...
d771161c7021c35eeb4b5fa9f94f118d919365da
Allow all valid semvers as commit messages
scripts/validateCommitMessage.js
scripts/validateCommitMessage.js
const fs = require('fs') const path = require('path') const chalk = require('chalk') const boxen = require('boxen') const childProc = require('child_process') const commitMsgPath = path.join(__dirname, '..', process.env.GIT_PARAMS) const msg = fs.readFileSync(commitMsgPath, 'utf8').trim() const template = /^\[[a-z-\/...
JavaScript
0.000001
@@ -119,17 +119,14 @@ nst -childProc +semver = r @@ -137,21 +137,14 @@ re(' -child_process +semver ')%0A%0A @@ -324,64 +324,8 @@ %5Cw+/ -%0Aconst versionTemplate = /%5Ev%5Cd+%5C.%5Cd+.%5Cd+(-%5Ba-z0-9-%5D+)?$/ %0A%0Aif @@ -354,28 +354,20 @@ && ! -versionTemplate.test +semver.valid (msg
4f7d5068a6612b4bc37f1edf076e75bbb562fd68
Use test data as fixtures
setup/fixtures/fixtures.js
setup/fixtures/fixtures.js
'use strict'; import db from '../../app/db/'; // // Data Insertion function insertProjects () { console.log('Inserting projects'); return db.batchInsert('projects', [ { id: 1, name: 'Project 1', description: 'Sample project no 1', status: 'pending', created_at: (new Date()), ...
JavaScript
0.000006
@@ -14,18 +14,27 @@ %0Aimport -db +%7B fixMeUp %7D from '. @@ -42,1521 +42,106 @@ /../ -app/db/';%0A%0A//%0A// Data Insertion%0A%0Afunction insertProjects () %7B%0A console.log('Inserting projects');%0A return db.batchInsert('projects', %5B%0A %7B%0A id: 1,%0A name: 'Project 1',%0A description:...
0e63bf75ecffb6a281dfb725039bf4163bf7bf84
edit animations
static/assets/js/custom.js
static/assets/js/custom.js
/*jslint browser: true, es5: true*/ /*global jQuery*/ (function ($) { 'use strict'; function doOnFind(callback, selector) { var $elem; $elem = $(selector); if ($elem.length > 0) { callback.call({}, $elem); } else { setTimeout(function () { ...
JavaScript
0.000001
@@ -743,33 +743,33 @@ %7B%0A duration: 1 -0 +2 00,%0A reveal: fa @@ -765,32 +765,60 @@ reveal: false,%0A + reset: false,%0A scale: 1,%0A viewFactor: 0.
4e2c67659463006bb9f16a28801c31823b06741c
Remove unneeded function
js/SizeWeight.js
js/SizeWeight.js
'use strict'; var dataPoints = [ { day: 7, size: 0, weight: 0 }, { day: 14, size: 0, weight: 0 }, { day: 21, size: 0, weight: 0 }, { day: 28, size: 0, weight: 0 }, { day: 35, size: 0.2, ...
JavaScript
0.000052
@@ -2619,155 +2619,8 @@ %5D;%0A%0A -var getDatapointsBeforeDay = function (day) %7B%0A return dataPoints.filter(function (dataPoint) %7B%0A return dataPoint.day %3C= day;%0A %7D);%0A%7D;%0A%0A var
9e0fe82bcbe15afa070ce041adfd9bba06357ef1
correct comments
js/ambidextre.js
js/ambidextre.js
(function() { 'use strict'; var Ambidextre = { movers: [], origin: 0, gamma: 0, verif: null, init: function() { if(!'DeviceOrientationEvent' in window) return; //Check if navigator support deviceorientation event this.setMovers(); ...
JavaScript
0.000005
@@ -1216,16 +1216,19 @@ hand is +in use%0A @@ -1956,17 +1956,16 @@ lly use -h is left
5f486400c39bc045f22fc9d2473b8399cc627b5c
clean up after removing specific ajax delete functions--move toward uniform delete options.
js/attendance.js
js/attendance.js
$(document).ready(function(){ $('.delete_attendance').live('click', function(e){ e.preventDefault(); $("#action").val("delete"); choice=confirm("Are you absolutely sure you want to delete this attendance entry? This cannot be undone!"); if(choice) { document.forms["attendanceEditor"].submit(); ...
JavaScript
0
@@ -28,679 +28,8 @@ )%7B%0A%09 -%0A%0A%09$('.delete_attendance').live('click',%0A%09%09function(e)%7B%0A%09%09e.preventDefault();%0A%09%09%09%09$(%22#action%22).val(%22delete%22);%0A%09%09%09%09choice=confirm(%22Are you absolutely sure you want to delete this attendance entry? This cannot be undone!%22);%0A%09%09%09%0...
2cd3e9a5411a30b897c2099be02c0f604fe6510b
Update notify bug.
js/background.js
js/background.js
/** * @author zhixin wen <wenzhixin2010@gmail.com> */ function Background() { this.timeoutId = 0; this.unreadCount = 0; } Background.prototype.init = function () { this.initOptions(); this.initRequest(); }; Background.prototype.initOptions = function () { if (!settings('new')) { chrome....
JavaScript
0
@@ -3788,16 +3788,31 @@ clear(id +, function() %7B%7D );%0A
55fef4d60ebb22666730f1656e753a812bebdb95
Enable cleanup_before_reload for CUSTOMER4
static/js/feature_flags.js
static/js/feature_flags.js
var feature_flags = (function () { var exports = {}; // Helpers var special_24_hour_people= _.contains([], page_params.email); var zulip_mit_emails = []; var is_zulip_mit_user = _.contains(zulip_mit_emails, page_params.email); var iceland = page_params.domain === 'customer8.invalid'; var customer4_realms = [ ...
JavaScript
0
@@ -1353,24 +1353,40 @@ rams.staging + %7C%7C is_customer4 ;%0A%0A// This l
0857f57875a46cbba08b2f70bf5a3e2e039c699c
move val constant
js/bex-normal.js
js/bex-normal.js
/* Core */ var resizeText = function(size) { if ($('body').css('fontSize') === "") { $('body').css('fontSize', '1.0em'); } $('body').css('fontSize', String(size) + "pt"); }; var FPS = 10; var MARGIN = 10; /* Bubbles */ var move_val = 5 / FPS; function Bubble(css_selector){ th...
JavaScript
0.002457
@@ -269,15 +269,9 @@ l = -5 / FPS +1 ;%0D%0Af
f7da00055914fdeb030b8c3751d83bf0f40d546d
Move constants to top of file.
lib/HTTP.js
lib/HTTP.js
/** @module http */ const fetch = require('node-fetch'); const raven = require('raven'); const winston = require('winston'); const Config = require('../config/Config.js'); /** * Configure Sentry using the env vars pased if in production * @param {string} sentryDSN The url given by Sentry tied to your account * @param...
JavaScript
0
@@ -167,16 +167,119 @@ .js');%0A%0A +%0Aconst defaultMaxRetries = /prod%5Cw*/i.test(Config.environment) ? 3 : 0;%0Aconst defaultBackoff = 60000;%0A%0A /**%0A* Co @@ -1498,109 +1498,8 @@ %0A%7D%0A%0A -const defaultMaxRetries = /prod%5Cw*/i.test(Config.environment) ? 3 : 0;%0Aconst defaultBackoff = 60000;%0A /**%0A
a4fcf42c56bb62790b05050a7cd152fd319d5f08
Handle underscores properly; check for zero variables
js/calculator.js
js/calculator.js
$(document).ready(function(){ var calculatorTemplate = Handlebars.compile($('#calculatorTemplate').html()); function standardize(equation){ // Limit allowable characters // Allow alphanumeric, +, -, /, *, ., () // No spaces equation = equation.replace(/[^a-zA-Z0-9._+\-...
JavaScript
0.000001
@@ -954,16 +954,17 @@ -Za-z0-9 +_ %5D*/g);%0A%0A @@ -1009,16 +1009,17 @@ ly once%0A +%0A @@ -1901,16 +1901,132 @@ try %7B%0A + if (variables.length == 0)%0A %7B%0A throw Error ();%0A %7D%0A %0A
b2803b9fb80df682827a077b1adcb44699dccc39
add slideDeactivate()
static/slide_controller.js
static/slide_controller.js
// # document ready $(document).ready(function() { if (!window.console) window.console = {}; if (!window.console.log) window.console.log = function() {}; slideDeactivate(); $("#sender").keyup(callback); updater.start(); }); // # updater var updater = { socket: null, slidePage: 1, note...
JavaScript
0
@@ -3073,24 +3073,59 @@ attempts++;%0A + slideDeactivate();%0A @@ -3519,24 +3519,56 @@ %22onerror%22);%0A + slideDeactivate();%0A%0A %7D%0A%0A
cce2e4de86c02641b640565bd85cd122c422fc64
add startup message about the mailchimp integration enablement.
server/config/mailchimpconfig.js
server/config/mailchimpconfig.js
/* Copyright 2015 Krzysztof Daniel Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
JavaScript
0
@@ -714,16 +714,73 @@ = %22%22);%0A%0A +console.log('mailchimp integration enabled:', enabled);%0A%0A exports.
dacb26b92ea1d10c52307f7465096fba09f9c029
fix mail v3
js/contact_me.js
js/contact_me.js
$(function() { $("input,textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { event.preventDefault(); // prevent default submit b...
JavaScript
0.000005
@@ -866,11 +866,38 @@ l: %22 -./. +http://cornelltaiwan.github.io /mai
4f143f51f017b832c5376c9682287d448fc13421
update events (#7671)
site2/website/pages/en/events.js
site2/website/pages/en/events.js
const React = require('react'); const CompLibrary = require('../../core/CompLibrary.js'); const Container = CompLibrary.Container; const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */ const GridBlock = CompLibrary.GridBlock; const CWD = process.cwd(); const translate = require('../../server/...
JavaScript
0
@@ -1183,32 +1183,474 @@ %3CMarkdownBlock%3E%0A + - %5BPulsar Summit Asia 2020%5D(https://pulsar-summit.org/)%0A %3C/MarkdownBlock%3E%0A %3CMarkdownBlock%3E%0A - %5BWebinar: How to Operate Pulsar in Production%5D(https://us02web.zoom.us/webinar/register/WN_xMt6QBJ9TWiyeV...
00436de6bcaa8155395f6c98fe6a0a8134d25e91
fix reverse value order
share/qbs/modules/utils.js
share/qbs/modules/utils.js
// // utility functions for modules // function appendAll_internal_recursive(modules, name, key, seenValues) { var result = [] var propertyValue var m, k for (m in modules) { if (m === name) { propertyValue = modules[m][key] if (propertyValue instanceof Array) { ...
JavaScript
0.000001
@@ -156,19 +156,16 @@ var m -, k %0A for @@ -322,11 +322,27 @@ -k = +for (var i = 0; i %3C pro @@ -362,35 +362,13 @@ ngth -%0A while (k-- +; ++i ) %7B%0A @@ -413,17 +413,17 @@ tyValue%5B -k +i %5D%0A
565c8a0c13fd3d8e385cc0f51615984b5a42b41c
Add extra header support
lib/ajax.js
lib/ajax.js
'use strict'; var _ = require('underscore'); var Q = require('q'); var serialize = require('./serialize'); function ajax(method, url, options) { // Sends a GET request, converting the data into a querystring // // method: GET, POST, PUT, DELETE // url: the url to send the request to // options: extra option...
JavaScript
0
@@ -152,20 +152,22 @@ Sends a - GET +n Ajax request @@ -206,16 +206,43 @@ rystring + if the%0A // method is GET. %0A //%0A @@ -465,16 +465,118 @@ header%0A + // - headers: additional headers to add to the request, should be a list of%0A // objects%0A var qu @@ -1291,16 +1291,161 @@ );%0A %...
6ebe8df908b4fadd0bfc15894d678af878d0cc4b
change how the options are loaded
lib/auth.js
lib/auth.js
'use strict' // external plugins const Lodash = require('lodash') const Auth = require('seneca-auth') const AuthGoogle = require('seneca-google-auth') const AuthTwitter = require('seneca-twitter-auth') const AuthGithub = require('seneca-github-auth') const AuthConfig = { restrict: '/api', redirect: { login: {...
JavaScript
0.000009
@@ -115,32 +115,17 @@ oogle = -require('seneca- +' google-a @@ -124,25 +124,24 @@ google-auth' -) %0Aconst AuthT @@ -149,32 +149,17 @@ itter = -require('seneca- +' twitter- @@ -159,25 +159,24 @@ witter-auth' -) %0Aconst AuthG @@ -183,32 +183,17 @@ ithub = -require('seneca- +' github-a @@ -196,17 +196,16 @@...
18eea295a19e2b286d1235b8c0c331e1b423b04d
update dataConfig for new dataset
js/dataConfig.js
js/dataConfig.js
/** * Created by Alexandr Kalinin on 3/20/14. */ var dataConfig = (function () { var PC3_1k = { title: 'PC3 EPI vs EMT (1k by 1k)', files: [ 'PC3_EPI_5k.csv', 'PC3_EMT_5k.csv' ] }; var Sy5y_1k = { title: 'S5y5 Diff/UnDiff vs Cort/Control vs 2D/3D ...
JavaScript
0.000001
@@ -2088,24 +2088,650 @@ %5D%0A %7D;%0A%0A + var PC3_blinded_72_vs_77 = %7B%0A title: 'PC3 blinded: runs 72 vs 77 ',%0A files: %5B%0A '05_31_14_6x6_B11R_N72.csv',%0A '06_05_B11R_10x10_63x_2timesZoom_N77.csv'%0A %5D%0A %7D;%0A%0A var PC3_blinded_73_vs_81 = %7B%0A...
81116dce182a0ca2b280d465c088a11be82420c3
fix error messages properly
lib/auth.js
lib/auth.js
var fs = require('fs'), crypto = require('crypto'), request = require('request'), debug = require('debug')('google-oauth-jwt'); // constants var GOOGLE_OAUTH2_URL = 'https://accounts.google.com/o/oauth2/token'; /** * Request an authentication token by submitting a signed JWT to Google OAuth2 service. * * @param...
JavaScript
0.000001
@@ -1019,16 +1019,154 @@ ;%0A%09%09%09%7D%0A%0A +%09%09%09try %7B%0A%09%09%09%09body = JSON.parse(body);%0A%09%09%09%7D%0A%09%09%09catch (e) %7B%0A%09%09%09%09return callback(new Error('failed to parse response body: ' + body));%0A%09%09%09%7D%0A%0A %09%09%09if (r @@ -1433,146 +1433,8 @@ %09%7D%0A%0A -%09%09%09try %...
c7861e3b400e8ed1462a3c76e0ee4609bf54eee4
update file /lib/auth.js
lib/auth.js
lib/auth.js
'use strict'; var express = require('express'); var bodyParser = require('body-parser'); var cors = require('cors'); function auth() { var router = express.Router(); router.all('/auth', function(req, res, next) { var params = req.body; // params.userId params.password if (params && params.userId ...
JavaScript
0.000002
@@ -111,16 +111,57 @@ cors');%0A +var queryString = require('querystring'); %0Afunctio
66975dca33af1106c929df4043608fb525c26c20
Debug toolbar is missing when selecting channel - update wdt
src/Oro/Bundle/IntegrationBundle/Resources/public/js/channel-view.js
src/Oro/Bundle/IntegrationBundle/Resources/public/js/channel-view.js
/*global define*/ define(['jquery', 'backbone', 'underscore', 'orotranslation/js/translator', 'oroui/js/mediator', 'oronavigation/js/navigation', 'oroui/js/delete-confirmation' ], function ($, Backbone, _, __, mediator, Navigation, DeleteConfirmation) { "use strict"; /** * @export orointegration/js/c...
JavaScript
0
@@ -4073,16 +4073,31 @@ ion (res +, status, jqXHR ) %7B%0A @@ -4443,24 +4443,116 @@ find('a'));%0A + // update wdt%0A navigation.updateDebugToolbar(jqXHR);%0A
16abf2a75ab118df5757f76f07a5b5547fc89037
update data
js/forceGraph.js
js/forceGraph.js
var width = 960, height = 500; var color = d3.scale.category20(); var force = d3.layout.force() .charge(-120) .linkDistance(200) .size([width, height]); var forceSvg = d3.select("div#chord_chart").append("svg") .attr("width", width) .attr("height", height); d3.json("newsGraph.json", function...
JavaScript
0.000001
@@ -1592,16 +1592,22 @@ .data( +graph. links)%0A @@ -1900,16 +1900,22 @@ .data( +graph. nodes)%0A
03230b2b1479bcaf15acf38eb5bb6ae7439925ed
fix toggling issue in metadata
statics/js/components/object-detail.js
statics/js/components/object-detail.js
/* jshint multistr: true */ Vue.component('object-detail', { name: 'object-detail', props: { object: { type: Object, required: true, }, links: { type: Object }, transformer: { type: Function }, path: { type: String } }, template: '\ <div ...
JavaScript
0.000001
@@ -277,16 +277,62 @@ String%0A + %7D,%0A%0A toggleIndex: %7B%0A type: Number%0A %7D%0A @@ -628,19 +628,35 @@ %5C'#%5C' + +getToggleIndex( key +) %22 class= @@ -870,19 +870,35 @@ %5D%22 :id=%22 +getToggleIndex( key +) %22%3E%5C%0A @@ -1235,32 +1235,53 @@ er=%22transformer%22 + :toggleInd...
f7e5108acf650d6578ba9feb7bcf8e9794ce5b45
fix limit undefined
controllers/default.js
controllers/default.js
var Mailgun = require('mailgun-js'); var models = require('../models'); //Your api key, from Mailgun’s Control Panel var apiKey = process.env.MAILGUN_KEY; //Your domain, from the Mailgun Control Panel var domain = process.env.MAILGUN_DOMAIN; module.exports = function(req, res) { // find customer models.customers...
JavaScript
0.000357
@@ -2083,13 +2083,25 @@ ' + -limit +process.env.LIMIT + '
193a4c17e8228fbbc81d7e2ca5243119919e5305
clear username/password state on logout
source/views/settings/screens/overview/login-credentials.js
source/views/settings/screens/overview/login-credentials.js
// @flow import * as React from 'react' import {Cell, Section, CellTextField} from '@frogpond/tableview' import {LoginButton} from './login-button' import { logInViaCredentials, logOutViaCredentials, type LoginStateType, } from '../../../../redux/parts/settings' import {loadLoginCredentials} from '../../../../lib/l...
JavaScript
0.000004
@@ -1258,32 +1258,90 @@ %09logOut = () =%3E +%7B%0A%09%09this.setState(() =%3E (%7Busername: '', password: ''%7D))%0A%09%09 this.props.logOu @@ -1343,16 +1343,19 @@ logOut() +%0A%09%7D %0A%0A%09getUs
e4456591ea3bc69496dc67867188a32e610f5f2a
Update the forecast module again.
controllers/weather.js
controllers/weather.js
var log = require('../libs/logger.js'); var passport = require('passport'); var util = require('util'); var config = require('../config/config.js'); var Forecast = require('forecast.io'); module.exports = function(app) { app.get('/weather/:latitude/:longitude', passport.authenticate('bearer', { session: false })...
JavaScript
0
@@ -236,16 +236,25 @@ weather/ +forecast/ :latitud @@ -271,16 +271,19 @@ de', %0A%09%09 +// passport @@ -793,16 +793,17 @@ forecast +s : %5B%5D%0A%09%09%09 @@ -883,151 +883,521 @@ %09%09%09%09 -log.info(index + %22 t = %22 + element.time + %22 min = %22 + element.temperatureMin + %22 max = %22 + element.tempera...
ff01be12eee454ff90a200d77473d5bf77877879
add x and y scales for poverty rates
html/js/index.js
html/js/index.js
(function() { function render(metros) { // Basic set up of dimensions and sizes var el = d3.select('.js-canvas'), margin = { top: 20, right: 20, bottom: 0, left: 20 }, width = parseFloat(el.style('width')) - margin.left - margin.right, height = 1200 //parseFloat(el.style('height')) - ma...
JavaScript
0.000013
@@ -1139,16 +1139,424 @@ t%5B0%5D %7D), +%0A // Create an ordinal x-axis scale to position each year of data along the x axis%0A var x = d3.scale.ordinal()%0A .domain(d3.range(years.length))%0A .rangePoints(%5B0, plotWidth%5D)%0A%0A // Create a linear y-axis scale to position each year node based on...
c73ca9b43e38fe159f725a22317c8f7494c74bf2
fix some spelling
html/js/index.js
html/js/index.js
(function() { function render(metros) { // Basic set up of dimensions and sizes var el = d3.select('.js-canvas'), margin = { top: 20, right: 20, bottom: 0, left: 20 }, width = parseFloat(el.style('width')) - margin.left - margin.right, height = 1200 //parseFloat(el.style('height')) - ma...
JavaScript
0.999999
@@ -707,16 +707,166 @@ ize%5B1%5D%0A%0A + // Establishes some extents so we can create global scales for relative%0A // sizing%0A var povertyRateMin = 0,%0A povertyRateMax = 100,%0A @@ -1143,100 +1143,8 @@ %7D), -%0A povertyCountMax = d3.max(metros, function(d) %7B return d.values....
bd2e3746784b7e0964d0c02f49f7043cb932a444
Fix Asian barriers not showing
src/javascript/app_2/Stores/Modules/SmartChart/Constants/barriers.js
src/javascript/app_2/Stores/Modules/SmartChart/Constants/barriers.js
export const CONTRACT_SHADES = { CALL : 'ABOVE', PUT : 'BELOW', EXPIRYRANGE: 'BETWEEN', EXPIRYMISS : 'OUTSIDE', RANGE : 'BETWEEN', UPORDOWN : 'OUTSIDE', ONETOUCH : 'NONE_SINGLE', // no shade NOTOUCH : 'NONE_SINGLE', // no shade }; // Default non-shade according ...
JavaScript
0.000145
@@ -278,16 +278,68 @@ o shade%0A + ASIANU : 'ABOVE',%0A ASIAND : 'BELOW',%0A %7D;%0A%0A// D
f1433117d9ca7b2376776fbe0bac14b65eefac3f
version up
source/redux/actions/NotiActions.js
source/redux/actions/NotiActions.js
import request from 'axios' import { auth, handleError } from '../constants' import { URL } from 'constants/URL' import NOTI from '../constants/Noti' const API_URL = `${URL}/notification` const appVersion = '0.1.10' export const checkVersion = () => async dispatch => { try { const { data } = await request.get( ...
JavaScript
0
@@ -207,17 +207,17 @@ = '0.1.1 -0 +1 '%0A%0Aexpor
35ebd99da428dc094ca1d3c9c165ed958cd733d6
update loader description
build-tools/config/webpack/webpack.partial.conf.module.js
build-tools/config/webpack/webpack.partial.conf.module.js
const jsonImporter = require('node-sass-json-importer'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); module.exports = ({ config, isDevelopment }) => webpackConfig => { return { ...webpackConfig, module: { rules: [ /* * ----------------...
JavaScript
0.000001
@@ -3640,16 +3640,30 @@ ages - and SVG +, SVG, Audio and Video %0A
b3ac85ba8dacc5ed6d6a91beb74cf91b2978ba0f
update add to cart with ajax
Ecommerce/Scripts/shop.js
Ecommerce/Scripts/shop.js
'use strict'; let addButtons = document.querySelectorAll('.addProduct'); addButtons.forEach(function (button) { button.addEventListener('click', function(event) { event.preventDefault(); let productId = button.parentElement.querySelector('.productId').value; let qty = button.parentElement...
JavaScript
0
@@ -569,16 +569,17 @@ fetch(' +/ cart/Add @@ -588,16 +588,16 @@ Cart', %0A - %7B%0A @@ -785,29 +785,489 @@ -console.log(result);%0A +let message = document.querySelector('.message');%0A if (result.success) %7B%0A message.classList.add('ok');%0A setTimeout(function () %7B%0A...
cb204181814db4f37254e16188b41caf0f21947c
fix error when running with mock auth
server/middleware/render-view.js
server/middleware/render-view.js
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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 version 3 of the Lic...
JavaScript
0.000001
@@ -906,24 +906,101 @@ next) =%3E %7B%0A + let data;%0A if (viewName === 'auth') %7B%0A data = %7B%7D;%0A %7D else %7B%0A const %7B @@ -1060,19 +1060,14 @@ fo;%0A - %0A -const + dat @@ -1072,16 +1072,18 @@ ata = %7B%0A + re @@ -1099,16 +1099,18 @@ ,%0A + userId: @@...
f2f7d314c4d36a588255193d7a916751ba115d41
Reorder entries in simpleConfig stub
stubs/simpleConfig.stub.js
stubs/simpleConfig.stub.js
module.exports = { purge: [], plugins: [], theme: { extend: {}, }, future: { // removeDeprecatedGapUtilities: true, // purgeLayersByDefault: true, }, variants: {}, }
JavaScript
0
@@ -16,68 +16,8 @@ = %7B%0A - purge: %5B%5D,%0A plugins: %5B%5D,%0A theme: %7B%0A extend: %7B%7D,%0A %7D,%0A fu @@ -113,20 +113,80 @@ ,%0A -variants: %7B%7D +purge: %5B%5D,%0A theme: %7B%0A extend: %7B%7D,%0A %7D,%0A variants: %7B%7D,%0A plugins: %5B%5D ,%0A%7D%0A
09893d9f1bb41076834ba4cc7f98233831ee598f
add explanation section
docs/app/Examples/elements/Header/HeaderExamples.js
docs/app/Examples/elements/Header/HeaderExamples.js
import React, {Component} from 'react'; import HeaderTypesExamples from './Types/HeaderTypesExamples'; import HeaderContentExamples from './Content/HeaderContentExamples'; import HeaderStatesExamples from './States/HeaderStatesExamples'; import HeaderVariationsExamples from './Variations/HeaderVariationsExamples'; exp...
JavaScript
0
@@ -308,16 +308,50 @@ amples'; +%0Aimport %7BMessage%7D from 'stardust'; %0A%0Aexport @@ -448,31 +448,59 @@ -TODO: explain s + %3CMessage className='warning'%3E%0A S emantic uses @@ -499,82 +499,311 @@ tic +UI uses -divs and h* tags and how we accomplish that with Header and HEader.H* +convent...
3e9b398ef5c061d2bc07344bf8302ccaccaf85cb
Update to new API.
cinnamon.js
cinnamon.js
var rest = require('restler'); var util = require('./util'); function getSpaces(chatId, bot, id) { var spacesURL = 'http://www.nususc.com/FullcalenderwithWebservice.asmx/GetEvents'; var data = { 'facilityID': id }; rest.postJson(spacesURL, data).on('complete', function(data, response) { ...
JavaScript
0
@@ -140,49 +140,60 @@ com/ -FullcalenderwithWebservice.asmx/GetEvents +USCWebsiteInformationAPI.asmx/GetSpacesBookingRecord ';%0A
6a4bf15339047757ec33e8ca2a04ac04dcd778cc
use better test case for rerendering
src/__tests__/WordCloud.updateProps.spec.js
src/__tests__/WordCloud.updateProps.spec.js
import React from 'react'; import { shallow } from 'enzyme'; import WordCloud from '../WordCloud'; describe('index.js', () => { const data = [ { text: 'Hey', value: 100 }, { text: 'lol', value: 200 }, { text: 'cool', value: 1 }, { text: 'duck', value: 10 }, ]; it('should render correct number ...
JavaScript
0.000007
@@ -741,24 +741,60 @@ alue: 30 %7D,%0A + %7B text: 'crazy', value: 60 %7D,%0A %5D;%0A c @@ -878,30 +878,30 @@ ().length).toBe( -4 +5 );%0A %7D);%0A%7D);%0A
9b7c3275c904ac1e6a8ef67487a10a0506bb2c58
Update PMC list (#12011)
site2/website/data/team.js
site2/website/data/team.js
module.exports = { committers: [ { name: 'Ali Ahmed', apacheId: 'aahmed', roles: 'Committer' }, { name: 'Addison Higham', apacheId: 'addisonj', org: 'StreamNative', roles: 'Committer' }, { name: 'Bo Cong', apacheId: 'bogong', org: 'Stream...
JavaScript
0
@@ -1004,32 +1004,37 @@ oles: 'Committer +, PMC '%0A %7D,%0A %7B%0A @@ -1427,32 +1427,37 @@ oles: 'Committer +, PMC '%0A %7D,%0A %7B%0A @@ -2607,32 +2607,37 @@ oles: 'Committer +, PMC '%0A %7D,%0A %7B%0A
7bba13d87cbfbefb236d0c1f0fca8e0a1f4658c2
Remove /en-US/ in support link (issue #4613)
src/amo/components/PermissionsCard/index.js
src/amo/components/PermissionsCard/index.js
/* @flow */ import * as React from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import translate from 'core/i18n/translate'; import type { AddonType } from 'core/types/addons'; import type { ApiStateType, UserAgentInfoType } from 'core/reducers/api'; import type { I18nType } from 'c...
JavaScript
0
@@ -1539,14 +1539,8 @@ org/ -en-US/ kb/p
ba6afb8d2a4ce542d9a13e7037137b313fe3faab
make sure to call push() and next() even after ES timeout
lib/dest.js
lib/dest.js
'use strict'; var util = require('util'); var _ = require('lodash'); var h = require('highland'); var elasticsearch = require('elasticsearch'); let manageTemplate = require('./manageTemplate'); module.exports = function dest (glob, _opt) { glob = glob || {}; /** * Clone the options because ElasticSearch over...
JavaScript
0
@@ -3031,27 +3031,8 @@ */%0A%0A - else %7B%0A @@ -3059,26 +3059,24 @@ d(timeKey);%0A - pu @@ -3104,34 +3104,32 @@ ;%0A - next();%0A %7D%0A @@ -3116,28 +3116,16 @@ next();%0A - %7D%0A
fdc6329c2fa35353db1a6c0f9a697216e78e1848
Disable Silverlight, enable HTML5 fallback
js/page/watch.js
js/page/watch.js
var WatchPage = React.createClass({ propTypes: { name: React.PropTypes.string, }, getInitialState: function() { return { downloadStarted: false, readyToPlay: false, loadStatusMessage: "Requesting stream", mimeType: null, }; }, componentDidMount: function() { lbry.getStr...
JavaScript
0
@@ -1009,39 +1009,51 @@ e: ' -shim', // Force Flash (for now) +auto_plugin',%0A plugins: %5B'flash'%5D, %0A
c554d1675e4d7b6832e5f8bd6262d09eac0ebc4a
Use MBR's .getEFIPart()
lib/disk.js
lib/disk.js
var async = require( 'async' ) var debug = require( 'debug' )( 'disk' ) /** * Disk * @class * @param {BlockDevice} device * @return {Disk} */ function Disk( device ) { if( !(this instanceof Disk) ) return new Disk( device ) /** @type {BlockDevice} Device */ this.device = device /** @type {MBR} Maste...
JavaScript
0.000011
@@ -3002,264 +3002,52 @@ ) %7B%0A -%0A if( this.mbr == null ) %7B%0A return void 0%0A %7D%0A%0A // NOTE: What if a MBR has more than one EFIPart entries?%0A return this.mbr.partitions.filter( function( partition ) %7B%0A return partition.type === 0xEE %7C%7C partition.type === 0xEF%0A %7D)%5B0...
e3a6cd21cd8bc20d5c884c535555492820b509af
fix minor bugs; remove bows
js/plot/basal.js
js/plot/basal.js
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This progr...
JavaScript
0
@@ -702,46 +702,8 @@ */%0A%0A - var log = require('bows')('Basal');%0A%0A modu @@ -741,20 +741,16 @@ s) %7B%0A%0A -var opts = o @@ -1621,22 +1621,28 @@ -return +var height = pool.he @@ -1664,32 +1664,162 @@ Scale(d.value);%0A + if (height %3C 0) %7B%0A return 0;%0A ...
96f6d69e7b3fcf4499db964d2500b25f9517e92c
Improve hit criteria
drop.js
drop.js
'use strict'; var express = require('express'); var mongoose = require('mongoose'); var path = require('path'); var fs = require('fs'); var bodyParser = require('body-parser'); var jwt = require('jwt-simple'); var session = require('express-session'); var bcrypt = require('bcrypt'); var formidable = require('formidabl...
JavaScript
0.000025
@@ -5587,54 +5587,8 @@ %7D%0A%0A - console.log(req.headers%5B'host'%5D)%0A%0A @@ -5639,23 +5639,20 @@ eaders%5B' -referer +host '%5D.index @@ -5658,37 +5658,18 @@ xOf( -req.headers%5B'host'%5D + '/stats +'localhost ') =
f790ab2a1d77e52637d794e1942f23904f1a5ec6
Fix promises handling
server/utils/get-db-chain-set.js
server/utils/get-db-chain-set.js
// It's about chain linked objects as e.g.: // // businessProcess -> derivedBusinessProcess -> derivedBusinessProcess // // So e.g. if we want whole chain we provide initial business process and then whole chain down // to last derived (if any exist) is also resolved. 'use strict'; var ensureString = require('es5-ex...
JavaScript
0.000005
@@ -535,16 +535,46 @@ Driver%0A%0A + , resolved = deferred(null)%0A , isAr @@ -907,16 +907,25 @@ ) return + resolved ;%0A%09%09if ( @@ -983,15 +983,30 @@ if ( +! nu) -%7B%0A%09 +return resolved;%0A %09%09se @@ -1016,17 +1016,16 @@ dd(nu);%0A -%09 %09%09child @@ -1065,17 +1065,16 @@ ath);%0A%09%09 -%09 r...
197ee629a81ebb6105b58b5fb430e7e411e49408
store events by eventName
backbone.d3view.js
backbone.d3view.js
// Backbone.D3View.js 0.3.1 // --------------- // (c) 2015 Adam Krebs // Backbone.D3View may be freely distributed under the MIT license. // For all details and documentation: // https://github.com/akre54/Backbone.D3View (function (factory) { if (typeof define === 'function' && define.amd) { define(...
JavaScript
0.000253
@@ -2999,32 +2999,27 @@ %0A%0A var -handlers +map = this._dom @@ -3047,18 +3047,18 @@ vents = -%5B%5D +%7B%7D );%0A @@ -3058,24 +3058,28 @@ ;%0A +var handlers .push(%7Be @@ -3074,15 +3074,15 @@ lers -.push(%7B + = map%5B even @@ -3090,21 +3090,57 @@ Name -: eventName, +%5D %7C%7C (map%5Be...
4c7c922134697d03b3b5bf6c9da568a56565e069
Fix className not found issue
lib/Codemirror.js
lib/Codemirror.js
'use strict'; var CM = require('codemirror'); var React = require('react'); var className = require('classnames'); var CodeMirror = React.createClass({ displayName: 'CodeMirror', propTypes: { onChange: React.PropTypes.func, onFocusChange: React.PropTypes.func, options: React.PropTypes.object, path: React.P...
JavaScript
0.000002
@@ -2188,16 +2188,20 @@ assName( +%0A%09%09%09 'ReactCo @@ -2214,39 +2214,12 @@ or', - this.props.className);%0A%0A%09%09if ( +%0A%09%09%09 this @@ -2238,30 +2238,12 @@ used -) %7B%0A%09%09%09className += + ? ' - Reac @@ -2263,21 +2263,54 @@ focused' -;%0A%09%09%7D + : null,%0A%09%09%09this.props.className%0A...
3fe5c17ac5f26a922c587971867e6bdcb23fec3e
Handle `pkgs` error in `browseUtils`' `getPackageData`
services/registry/browseUtils.js
services/registry/browseUtils.js
var log = require('bole')('registry-browse-transform'), pkgs = require("pkgs"), _ = require('lodash'), moment = require('moment'); exports.all = { viewName: 'browseAll', groupLevel: 1, transformKey: function (key, value) { var name = key[0]; return { name: name, url: '/package/' ...
JavaScript
0
@@ -3626,16 +3626,59 @@ kages) %7B +%0A if (err) %7B%0A return cb(err);%0A %7D %0A%0A pa
3251c6764f86dc838b5c500d633cd08736b90395
Remove console.log
lib/exec.js
lib/exec.js
/* * mimer * https://github.com/heldr/mimer * * Copyright (c) 2013 Helder Santana * Licensed under the MIT license. * https://raw.github.com/heldr/mimer/master/MIT-LICENSE.txt */ (function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD. Register as an a...
JavaScript
0.000004
@@ -1799,58 +1799,8 @@ );%0A%0A - console.log('_______________', ext);%0A%0A
704a89dfe1c6fdd286eb9d315de9d150620aadac
Add extra check
client/components/request/request.service.js
client/components/request/request.service.js
'use strict'; angular.module('impactApp') .factory('RequestService', function RequestService($http) { function allMandatoryFilesPresent(request) { return request.documents && request.documents.obligatoires && Object.keys(request.documents.obligatoires).length === 3; } function allAskedFilesPresent...
JavaScript
0
@@ -2228,16 +2228,46 @@ atory && + request.askedDocumentTypes && request
610df417aafabd5d0a2febc18d166eb369dd51e6
fix typo
beermap/static/js/adressesok.js
beermap/static/js/adressesok.js
/*global L:false */ 'use strict'; L.Control.AdresseSok = L.Control.extend({ initialize: function (options) { L.setOptions(this, options); }, onAdd: function (map) { this._map = map; this._initLayout(); return this._container; }, _showResult: function (adresse) { ...
JavaScript
0.999991
@@ -1584,17 +1584,16 @@ %7D,%0A%0A -%0A _ini @@ -2050,11 +2050,20 @@ = ' -S%C3%B8k +Adresses%C3%B8k.. ';%0A
091fb97de4b1c9d52d0b173946388665336605e0
Replace deep-get-set with dot-prop.
lib/file.js
lib/file.js
var path = require('path') , fs = require('fs') , clone = require('clone') , getset = require('deep-get-set') , data = require('./data'); getset.p = true; /** * A file-backed settings store. * * @constructor * @param {string} path */ function File(path) { this._path = path; this._obj = {}; } /** *...
JavaScript
0
@@ -76,22 +76,23 @@ e')%0A , -getset +dotprop = requi @@ -100,19 +100,15 @@ e('d -eep-get-set +ot-prop ')%0A @@ -141,26 +141,8 @@ );%0A%0A -getset.p = true;%0A%0A %0A/** @@ -834,12 +834,17 @@ one( -gets +dotprop.g et(t
9f908fff9cfb18da64f5b76bed1d4feda8f49233
Fix Safari over-scroll bug, fixes #218
sphinx_rtd_theme/static/js/theme.js
sphinx_rtd_theme/static/js/theme.js
function toggleCurrent (elem) { var parent_li = elem.closest('li'); parent_li.siblings('li.current').removeClass('current'); parent_li.siblings().find('li.current').removeClass('current'); parent_li.find('> ul li.current').removeClass('current'); parent_li.toggleClass('current'); } $(document).read...
JavaScript
0
@@ -1966,32 +1966,63 @@ Scroll = false,%0A + winResize = false,%0A link @@ -2066,16 +2066,62 @@ on = 0,%0A + winHeight,%0A docHeight,%0A @@ -2271,19 +2271,24 @@ t scroll -ing + monitor %0A @@ -2495,437 +2495,260 @@ () %7B -%0A if (wi...
74834ba8196da808e943f96780c6bbaf5ee3bc77
Add $inject support
lib/FakeModule.js
lib/FakeModule.js
(function () { function FakeModule(angular, name, dependencies) { this.angular = angular; this.name = name; this.dependencies = dependencies; this.factories = {}; } function setterFactory(type, suffix) { return function (name, proto) { return this.resolve(name + (suffix || ''), proto, t...
JavaScript
0.000001
@@ -1759,98 +1759,35 @@ -// TODO: Implement $inject support.%0A throw new Error('$inject is not yet supported' +args = proto.$inject.slice( );%0A
ea6b36d102c22fb97ee42743c9c920fc1bd501fe
Revert "Pluggable: use new ModulesContext"
Pluggable.js
Pluggable.js
import React from 'react'; import PropTypes from 'prop-types'; import { withStripes } from '@folio/stripes-core/src/StripesContext'; import { withModules } from '@folio/stripes-core/src/components/Modules'; const Pluggable = (props) => { const plugins = props.modules.plugin || []; let best; const wanted = props...
JavaScript
0
@@ -135,21 +135,17 @@ mport %7B -withM +m odules %7D @@ -143,39 +143,32 @@ modules %7D from ' -@folio/ stripes-core/src @@ -165,35 +165,37 @@ s-co -re/src/components/Modules'; +nfig'; // eslint-disable-line %0A%0Aco @@ -223,16 +223,16 @@ s) =%3E %7B%0A + const @@ -241,22 +241,16 @@ ugins = -props. module...
c1010289934a9630022990d91ef2aa84fc1c6236
Remove API test on /s/logo.png that is now served by the /node handler
client/tests/api/test_001_public_resources_on_empty_db.js
client/tests/api/test_001_public_resources_on_empty_db.js
/* This set of UT validate request/responses against public resources. */ var request = require('supertest'), should = require('should'); var host = 'http://127.0.0.1:8082'; var app = request(host); public_resources = [ { 'url': '/', 'type': 'text/html', 'status': 200 }, { 'url': '/ind...
JavaScript
0
@@ -643,86 +643,8 @@ %7B%0A - 'url': '/s/logo.png',%0A 'type': 'image/png',%0A 'status': 200%0A %7D,%0A %7B%0A
4cf7b5e3086c78c08fff1c15c2ec068b195e5f21
Handle undefined gamepads in list from browser
PxGamepad.js
PxGamepad.js
(function() { function PxGamepad() { // map button indices to names this.buttonNames = [ 'a', 'b', 'x', 'y', 'leftTop', 'rightTop', 'leftTrigger', 'rightTrigger', 'select', 'star...
JavaScript
0.000001
@@ -3329,33 +3329,60 @@ -%0A if (!gp) %7B%0A%0A +if (gp) %7B%0A return gp;%0A %7D%0A %0A @@ -3417,36 +3417,32 @@ amepads%0A - var gamepads;%0A @@ -3443,28 +3443,24 @@ ds;%0A - - if (navigato @@ -3468,36 +3468,32 @@ .getGamepads) %7B%0A - ...
1abb96122dfa50babffef065e655a723ee538a8f
Use wss on https pages
js/websockets.js
js/websockets.js
(function () { 'use strict'; /*global ab: false, RealtimeUpdate: false */ window.wsRealtime = { init: function (server, port, timeline) { var conn = new ab.Session( 'ws://' + server + ':' + port, function () { // Connect co...
JavaScript
0
@@ -168,16 +168,101 @@ var +protocol = (document.location.protocol === 'https:') ? 'wss' : 'ws',%0A conn = n @@ -296,19 +296,28 @@ -'ws +protocol + ' ://' + s
ff639108a5b841aa192202bdeee56e2e1e7185fb
add dateSent to list of date converted strings
lib/RestClient.js
lib/RestClient.js
/** @module RestClient This module presents a higher-level API for interacting with resources in the Twilio REST API. Tries to map very closely to the resource structure of the actual Twilio API, while still providing a nice JavaScript interface. */ //Dependencies var Q = require('q'), querystring = require...
JavaScript
0
@@ -3317,16 +3317,28 @@ endTime' +, 'dateSent' %5D.forEac
c1d932e2b125c8beda594d1fb4ee6dc56c4e066e
Update game.js
lib/game.js
lib/game.js
const Paddle = require('./paddle.js') const Ball = require('./ball.js') class Game { constructor (options = {}) { this.fieldSize = options.fieldSize || [640, 360] this.paddleSettings = options.paddles || [ {name: 'player Left'}, { name: 'player Right', controls: [{key: 38, action:...
JavaScript
0.000001
@@ -862,16 +862,17 @@ %5B%5D%0A %7D%0A +%0A sendCo @@ -1052,24 +1052,25 @@ %0A %7D)%0A %7D%0A +%0A _controlPa @@ -1127,16 +1127,17 @@ on)%0A %7D%0A +%0A _contr @@ -1225,16 +1225,17 @@ on)%0A %7D%0A +%0A bounce @@ -1483,24 +1483,72 @@ %5B1%5D%0A %7D%0A + %0A // Does the ball touch...
67d2f61b081ea20a47547fcc1a140d053de7904a
fix util
lib/StateStack.js
lib/StateStack.js
!!(function(document) { const template = `<div currentState=""></div>` document.registerElement('s-view-stack', class extends SlimBaseElement { get currentState() { return this._currentState; } set currentState(value) { if (value !== this.currentState) { ...
JavaScript
0.000008
@@ -417,16 +417,27 @@ super +._onCreated ()%0A
f5b40e59e6513eb430378d703271e93994c659b3
replace taobao registry to npm registry
lib/gpmx.js
lib/gpmx.js
const process = require('process'); const path = require('path'); // 3th lib const program = require('commander'); const co = require('co'); const colors = require('colors'); const axios = require('axios'); const semver = require('semver'); const log4js = require('log4js'); const logger = log4js.getLogger('ADD'); con...
JavaScript
0.999097
@@ -559,15 +559,10 @@ .npm -.taobao +js .org
f4f746d53ade31c39bf844ebd8a815ff0b330182
Remove version
lib/hoek.js
lib/hoek.js
// Load modules var Fs = require('fs'); var Async = require('async'); // Declare internals var internals = {}; // Get current date/time msec count exports.getTimestamp = function () { return (new Date()).getTime(); }; // Clone object or array exports.clone = function (obj) { if (obj === null || ...
JavaScript
0
@@ -7340,101 +7340,5 @@ ;%0A%0A%0A -exports.version = function () %7B%0A%0A return exports.loadPackage(__dirname + '/..').version;%0A%7D;%0A%0A %0A
40547125f89255f35a43e5a995568744c0f65a60
Add HTML5 srcdoc property for iframes
src/browser/dom/DefaultDOMPropertyConfig.js
src/browser/dom/DefaultDOMPropertyConfig.js
/** * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
0
@@ -3293,24 +3293,55 @@ src: null,%0A + srcDoc: MUST_USE_PROPERTY,%0A step: nu @@ -5315,16 +5315,38 @@ llcheck' +,%0A srcDoc: 'srcdoc' %0A %7D,%0A
daf409ff708169d0b0bcc7ef104609f2405dfba7
Fix crash on space in question without answers (#63)
lib/how2.js
lib/how2.js
var _ = require('lodash'); var stackexchange = require('./stackexchange/lib/stackexchange'); var google = require('google'); var assert = require('assert'); var spinner = require('simple-spinner'); var spinnerOptions = { doNotBlock: true }; var ui = require('./ui'); var utils = require('./utils'); var log = require('....
JavaScript
0.000215
@@ -3323,32 +3323,68 @@ answers%5Bindex%5D;%0A + if (selected) %7B%0A @@ -3408,16 +3408,34 @@ ected);%0A + %7D%0A
1fcb3c448d7f7d09d6fb8b0e71559cd19bedd121
Add optional filter to appendToConcatTarget
tasks/angular-templates.js
tasks/angular-templates.js
/* * grunt-angular-templates * https://github.com/ericclemmons/grunt-angular-templates * * Copyright (c) 2013 Eric Clemmons * Licensed under the MIT license. */ 'use strict'; var Compiler = require('./lib/compiler'); var path = require('path'); var util = require('util'); module.exports = function(g...
JavaScript
0
@@ -815,24 +815,32 @@ target, file +, filter ) %7B%0A if ( @@ -1366,16 +1366,93 @@ s.orig;%0A + %7D);%0A%0A originals.filter(filter %7C%7C function(files) %7B%0A return true;%0A %7D).m
76fddee392ae9a1a58a0fa69cbc9431edb0f1956
Fix typo.
tasks/engines/fontforge.js
tasks/engines/fontforge.js
/** * grunt-webfont: fontforge engine * * @requires fontforge, ttfautohint, eotlitetool.py * @author Artem Sapegin (http://sapegin.me) */ module.exports = function(grunt, o, allDone) { 'use strict'; var path = require('path'); var temp = require('temp'); var async = require('async'); var wf = require('../ut...
JavaScript
0.001604
@@ -2185,16 +2185,18 @@ ontFiles +() %7B%0A%09%09ret
1c96a62dee689160cad51d8dce2575e203daab11
debug flag
lib/jade.js
lib/jade.js
'use strict'; /** * Module dependencies. */ var Parser = require('./parser'); var Lexer = require('./lexer'); var AsyncCompiler = require('./async-compiler'); var runtime = require('./runtime'); var vowFs = require('vow-fs'); var vow = require('vow'); var fs = require('fs'); /** * Expose self closing tags. */ e...
JavaScript
0.000001
@@ -1446,16 +1446,21 @@ 0m', js. +body. replace(
8d44bc8363c4a4387eb85a0242a1fc44b98a1248
Update i18n_gspreadsheet.js
tasks/i18n_gspreadsheet.js
tasks/i18n_gspreadsheet.js
/* * grunt-i18n-gspreadsheet * https://github.com/theoephraim/grunt-i18n-gspreadsheet * * Copyright (c) 2013 Theo Ephraim * Licensed under the MIT license. */ 'use strict'; var GoogleSpreadsheet = require("google-spreadsheet"); var Step = require('step'); var _ = require('underscore'); var fs = require('fs'); v...
JavaScript
0
@@ -1442,45 +1442,9 @@ -var step = this;%0A %0A my_ +g shee
f0250669eb6f3dfd257c788fb3091151a5df5059
Return the task object on task creation.
lib/jake.js
lib/jake.js
/* * Jake JavaScript build tool * Copyright 2112 Matthew Eernisse (mde@fleegix.org) * * 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-...
JavaScript
1
@@ -5401,16 +5401,34 @@ Tasks(); +%0A%0A return task; %0A %7D;%0A%0A%7D
ee54f03345445711d32b342eb4b844ecfc61646d
Fix web styles for video iframe (#224)
src/@ui/ContentView/ContentMedia.js
src/@ui/ContentView/ContentMedia.js
import React from 'react'; import { Platform } from 'react-native'; import PropTypes from 'prop-types'; import ConnectedImage from '@ui/ConnectedImage'; import EmbeddedVideoPlayer from '@ui/EmbeddedVideoPlayer'; import styled from '@ui/styled'; const ImageHeader = styled({ width: '100%', aspectRatio: 1, resizeMo...
JavaScript
0
@@ -28,16 +28,22 @@ import %7B + View, Platfor @@ -43,16 +43,28 @@ Platform +, StyleSheet %7D from @@ -559,87 +559,269 @@ eb: -%7B%0A height: 0,%0A paddingTop: '50%25',%0A %7D +StyleSheet.absoluteFillObject,%0A %7D),%0A%7D)(EmbeddedVideoPlayer);%0A%0Aconst VideoWrapper = styled(Platform.select(%7...
4c723ce9baa79560b4def02278950f6ea0c99780
add domain //TODO
lib/https/server-agent.js
lib/https/server-agent.js
var tls = require('tls'); var Q = require('q'); var cert = require('./cert'); var MAX_SERVERS = 256; var MAX_PORT = 60000; var curPort = 50000; var domain = require('domain'); function ServerAgent() { this._cache = {}; this._serverCount = 0; } var proto = ServerAgent.prototype; proto.createServer = function create...
JavaScript
0
@@ -686,30 +686,8 @@ r(%7B%0A -%09%09hostname: hostname,%0A %09%09ke @@ -699,16 +699,16 @@ rts%5B0%5D,%0A + %09%09cert: @@ -775,16 +775,26 @@ d(defer) +, hostname );%0A%09self @@ -903,32 +903,42 @@ stener, callback +, hostname ) %7B%0A%09var self = @@ -947,42 +947,8 @@ is;%0A -%09var hostname = options.hostn...
a6ed4d17e6b2c5ffe7d39fb0f3add70e137646f3
drop model and collection
src/main/resources/public/widgets/bookmark-widget/bookmark-widget.js
src/main/resources/public/widgets/bookmark-widget/bookmark-widget.js
var bookmarkWidget = model.widgets.findWidget('bookmark-widget'); // Model function Bookmark(){} var getBookmarks = function() { http().get('/bookmark').done(function(response){ if(response && response.bookmarks) { model.bookmarks.load(response.bookmarks); } bookmarkWidget.bookmarks = model.bookmarks; mod...
JavaScript
0
@@ -218,56 +218,8 @@ %7B%0A%09 -%09%09model.bookmarks.load(response.bookmarks);%0A%09%09%7D%0A %09%09bo @@ -243,21 +243,24 @@ marks = -model +response .bookmar @@ -263,16 +263,20 @@ kmarks;%0A +%09%09%7D%0A %09%09model. @@ -615,42 +615,87 @@ %7B%0A%09%09 -this.updateData(response);%0A%09%09model +for(var prop ...
732e80c3b565a93ddbe86711a85ae5e34b7d793b
Add currency class to the stealing from future amount (#1249)
src/extension/features/budget/stealing-from-future/index.js
src/extension/features/budget/stealing-from-future/index.js
import { Feature } from 'toolkit/extension/features/feature'; import { getCurrentRouteName, transitionTo } from 'toolkit/extension/utils/ynab'; import { controllerLookup } from 'toolkit/extension/utils/ember'; // TODO: move income-from-last-month to the new framework and just export this // variable from that feature ...
JavaScript
0
@@ -2993,24 +2993,41 @@ '%3Cstrong + class=%22currency%22 %3E' +%0A
425cdc3faf58d28f7de842ad2bf9705f3789af7d
Use a larger RSA key to sign certificates
lib/keys.js
lib/keys.js
const jwcrypto = require('jwcrypto'); const cert = jwcrypto.cert; require("jwcrypto/lib/algs/ds"); require("jwcrypto/lib/algs/rs"); const ISSUING_DOMAIN = process.env['ISSUING_DOMAIN'] || 'localhost'; var _pubKey; var _secKey; exports.pubKey = function (cb) { if (_pubKey) { return process.nextTick(function() {...
JavaScript
0.000002
@@ -400,41 +400,8 @@ key%0A - // TODO: generate a larger key%0A jw @@ -463,11 +463,11 @@ ze: -128 +256 %0A %7D
56407f6ea0c251b1a3881305fcbdf250813d33ce
add serach by username
lib/admin/User.js
lib/admin/User.js
const Base = require("../Base") const Pager = require("../pager") const UserModel = require("../model/User") class User extends Base { create(usr) { return this.getClient().post(this.route("USER_CREATE"), usr) .then((u) => new UserModel(u)) } update(user) { if(!user.id) throw ...
JavaScript
0
@@ -465,24 +465,16 @@ odel(u)) - %0A %7D%0A @@ -1084,24 +1084,264 @@ t(paging) %7B%0A +%0A const pager = Pager.buildQuery(paging)%0A //TODO make this more generic%0A let query = %22%22%0A if (paging.username) %7B%0A query = pager ? %22&%22 : %22?%22%0A qu...
327e140385da7be432063c0c166d16ded67fa5fa
Add polling to check online status
src/external/lively4-serviceworker/src/connectionmanager.js
src/external/lively4-serviceworker/src/connectionmanager.js
/** * A class to manage the status of the network connection * Currently forwards system events, but should perform additional monitoring in the future * Events: statusChanged */ const EVENT_NAME = 'statusChanged'; export class ConnectionManager { constructor() { // Whether or not we are currently online ...
JavaScript
0
@@ -59,100 +59,8 @@ ion%0A - * Currently forwards system events, but should perform additional monitoring in the future%0A * E @@ -120,16 +120,45 @@ hanged'; +%0Aconst CHECK_INTERVAL = 5000; %0A%0Aexport @@ -654,27 +654,33 @@ -new +this._set IsOnline = true; @@ -667,31 +667,30 @@ _setIsOnline - = +(...
d3059872393f6b58f30eea802d40061319d3b8e9
Update tab-bar-directive.js
tab-bar-directive/tab-bar-directive.js
tab-bar-directive/tab-bar-directive.js
// Tab Bar Directive // ========= // This directive creates a very simple tab bar. // Main purpose of this file: // - Really simple tab bar to remove duplicate code var bu2 = document.querySelector("script[src$='tab-bar-directive.js']"); var currentScriptPath = bu2.src; var baseUrl = currentScriptPath.substring(0, ...
JavaScript
0.000001
@@ -1344,16 +1344,28 @@ show:'=' +, notabs:'=' %7D%0A
07b63b22e00efd0edabd9aa1c17840cf02025ec3
fix for selecting wrong table
page/snob.js
page/snob.js
if (user_data.other.calculateSnob && !world_config.coins) { // Calculate for how many nobles/snobs we've got packages (function() { try { //var table = $("table.vis:eq(1)", content_value); var table = $("table.vis[width='100%']", content_value).first(); var cost = $("td:...
JavaScript
0.000003
@@ -751,16 +751,39 @@ le.main +#content_value %3E table table.vi