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
ba169577cf672d89826a694a792d4c9c556937d3
Add options.pad (related to #9)
html-extract.js
html-extract.js
"use strict"; /** * Extract HTML text. */ var cheerio = require("cheerio"); var gutil = require("gulp-util"); var PluginError = gutil.PluginError; var through2 = require("through2"); var stripIndent = require("./lib/strip-indent"); var PLUGIN_NAME = "html-text"; /** * ## `html-extract` * * Extract text from HTML...
JavaScript
0
@@ -494,16 +494,103 @@ false%60%5D%0A + * @param %7BString%7D opts.pad Pad text to start line in source file %5BDefault: %60false%60%5D%0A * @retu @@ -721,16 +721,40 @@ s.strip; +%0A var pad = !!opts.pad; %0A%0A var @@ -1040,24 +1040,79 @@ %22));%0A %7D%0A%0A + var fileContent = file.contents.toString(...
e41f76dfe426bcc33f3466ce975f310ec4f5d6a6
Fix the communication to use STUN.
webRTC/chat/static/js/main.js
webRTC/chat/static/js/main.js
var ws = new WebSocket(location.href.replace('http', 'ws').replace('room', 'ws')); var initiator; var pc; function initiatorCtrl(event) { console.log(event.data); if (event.data == "fullhouse") { alert("full house"); } if (event.data == "initiator") { initiator = false; init();...
JavaScript
0.00002
@@ -80,30 +80,190 @@ ));%0A -%0Avar initiator;%0Avar pc +var configuration = %7BiceServers: %5B%7B url: 'stun:stun.l.google.com:19302' %7D%5D%7D;%0Avar initiator;%0Avar pc = new webkitRTCPeerConnection(configuration, %7Boptional: %5B%7BRtpDataChannels: true%7D%5D%7D) ;%0A%0Af @@ -774,16 +774,19 @@ m) %7B%0A + // ...
5e1e28530e2dd88bacd5807954efc5647e033be0
Update hyper config
hyper/.hyper.js
hyper/.hyper.js
module.exports = { config: { // default font size in pixels for all tabs fontSize: 14, // font family with optional fallbacks fontFamily: '"Source Code Pro", "Lucida Console", monospace', // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) cursorColor: 'rgba(248...
JavaScript
0.000001
@@ -712,16 +712,96 @@ rmCSS: ' +x-row %7B line-height: 1.5em; %7D x-row %3E span:first-child %7B margin-right: -0.5em; %7D ',%0A%0A @@ -880,15 +880,10 @@ g: ' -12px 14 +20 px',
ba3fa63d6dd47e9b1d552dd7cc66ddb88e91e290
Add return self to Message after add params
i18n/Message.js
i18n/Message.js
'use strict'; let Base = require('../base/Base'); module.exports = class Message extends Base { constructor (category, message, params, language) { super({category, message, params, language}); } addParams (addon) { this.params = Object.assign(this.params || {}, addon); } }; let I18...
JavaScript
0
@@ -296,16 +296,37 @@ addon);%0A + return this;%0A %7D%0A%7D;
cc8511efa8643de9a3eee8450790e50c6af5e665
Check result from fs.writeFile calls in build script
tools/prepare-deploy.js
tools/prepare-deploy.js
"use strict" var fs = require("fs"); var path = require("path"); var ppath = path.posix; var url = require("url"); var child_process = require("child_process"); var inDir = "build/js"; var outDir = "build/deploy"; var head = null; var handlers = { "Cindy.closure.js": false, "Cindy.closure.js.map": false, ...
JavaScript
0
@@ -1079,16 +1079,120 @@ );%0A%7D);%0A%0A +function check(err) %7B%0A if (err) %7B%0A console.error(err.stack);%0A exitStatus = 1;%0A %7D%0A%7D%0A%0A child_pr @@ -2355,24 +2355,31 @@ me), content +, check );%0A%7D%0A%0Avar ma @@ -3540,16 +3540,16 @@ %22%7D%5Cn%22;%0A - fs.w @@ -3589,16 +3...
0cbc405ab4a1afb0badb561ebd741b9294260233
Add in other tool stuff
js/ToolPanel.js
js/ToolPanel.js
function createToolPanel(renderer, scale){ var STANDARD_DIMENSIONS = {width: 460, height:287}; var width = STANDARD_DIMENSIONS.width * scale, height = STANDARD_DIMENSIONS.height * scale; var panel = createPanel(renderer, width, height, {foregroundGlow: true}); var toolBGPlane; var menu = [ ...
JavaScript
0
@@ -925,16 +925,29 @@ , header +, highlighted )%7B%0A%0A @@ -1239,16 +1239,100 @@ '#fff'; +%0A%0A if(highlighted)%7B%0A ctx.fillStyle = '#ffcc00';%0A %7D %0A @@ -1731,86 +1731,8 @@ );%0A - //plane.position.set(0, 90, 0);%0A // panel.addToScene( plane );%...
67ec08e71acb154d8fda02441308c21be8c42bd6
Add fade-in animation to loadView.
js/app/utils.js
js/app/utils.js
define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; Utils.urlencode = function(str) { // http://kevin.vanzonneveld.net // + original by: Philip Peterson // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // + input by: AJ // + improved by: K...
JavaScript
0
@@ -2531,16 +2531,47 @@ ad;%0A%09%09%7D%0A +%09%09$('#page-content').fadeIn();%0A %09%09return
0233e00f9dd4956fdcda6a4ded4cf6971f845fa9
add select
js/synt/synt.js
js/synt/synt.js
document.getElementById("idLogicV").innerHTML = "Logic level version: 2017.11.22.6"; var synt = window.speechSynthesis; function getVoices(){ var voices = synt.getVoices(); for (var i = 0; i < voices.length; i++){ document.getElementById("idVoices").innerHTML += voices[i].name + ": " + voices[i].lang + "<br>"; }...
JavaScript
0.000001
@@ -78,9 +78,9 @@ .22. -6 +7 %22;%0A%0A @@ -209,24 +209,32 @@ th; i++)%7B%0A%09%09 +var e = document.get @@ -234,95 +234,104 @@ ent. -get +create Element -ById(%22idVoices%22).innerHTML += voices%5Bi%5D.name + %22: %22 + voices%5Bi%5D.lang + %22%3Cbr%3E%22 +(%22option%22);%0A%09%09e.text = voices%5Bi%5D.lang;%0A...
24dd30a7380988b5042463188d7c1c06b37a93e4
Update updatetab.js
js/updatetab.js
js/updatetab.js
function updatetab(url, pane) { // http://docs.mathjax.org/en/latest/tex.html // From http://stackoverflow.com/a/651735 var ext = url.split('.').pop().toLowerCase(); var ismd = true; if ($.inArray(ext, ['md', 'markdown', 'mdown', 'mkdn', 'mkd', 'mdtxt', 'mdtext']) == -1) { ismd = false; } ...
JavaScript
0.000001
@@ -406,16 +406,21 @@ +data= data.re
0c80119479c2ac29312d4ca498a1582f0b92af03
refactor `cleanInput` utilitiy method to prevent double encoding
js/utilities.js
js/utilities.js
/* global jQuery:true */ /* * Fuel UX Utilities * https://github.com/ExactTarget/fuelux * * Copyright (c) 2016 ExactTarget * Licensed under the BSD New license. */ // -- BEGIN UMD WRAPPER PREFACE -- // For more information on UMD visit: // https://github.com/umdjs/umd/blob/master/templates/jqueryPlugin.js // ...
JavaScript
0.000002
@@ -1485,238 +1485,303 @@ ;%0A%0A%09 -// https://github.com/ExactTarget/fuelux/issues/1841%0A%09var xssRegex = /%3C.*%3E/;%0A%09var cleanInput = function cleanInput (questionableInput) %7B%0A%09%09var cleanedInput = questionableInput;%0A%0A%09%09if (xssRegex.test(cleanedInput)) %7B%0A%09%09%09cleanedInput +var ENCODED...
040cfade3fefc7ecea310702b9a01cf38e75189e
Update waterfall.js
js/waterfall.js
js/waterfall.js
/* jshint asi:true */ //先等图片都加载完成 //再执行布局函数 /** * 执行主函数 * @param {[type]} function( [description] * @return {[type]} [description] */ (function() { /** * 内容JSON */ var demoContent = [ { demo_link: 'http://xiuno.com/', img_link: 'https://luohuilong.github.io/images/xiunobbs...
JavaScript
0.000001
@@ -239,16 +239,20 @@ 'http:// +bbs. xiuno.co
17581d6843f9ee3387e1ac1dbac9d76eb49254da
remove console logs
lib/plugins/output/elasticsearch.js
lib/plugins/output/elasticsearch.js
'use strict' var consoleLogger = require('../../util/logger.js') var Logsene = require('logsene-js') var LogSourceToIndexMapper = require('../../core/logSourceToIndexMapper.js') var fs = require('fs') var reduceConfig = require('../../util/config-reducer.js') function formatObject (o) { var rv = '' Object.keys(o).f...
JavaScript
0.000002
@@ -2629,53 +2629,8 @@ %7D%0A - // console.log('using type ' + usedType)%0A @@ -3109,51 +3109,8 @@ rr)%0A - // consoleLogger.error(errorMessage)%0A
dbb842fa22ff02623e4fcdb3b286c48ae4f9cd61
add quote in charlist to list of escape-able characters
tecate.js
tecate.js
var Tecate = Tecate || {}; Tecate.validHTMLElements = [ "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "colgroup", "del", "details", ...
JavaScript
0
@@ -1803,16 +1803,17 @@ %5B'%5C%22%5D%5B%5E +/ %3E%5D))%22, %22
c1c799ae118e376b5a870ca5b281a86a59c51626
Update rule: `avoid-suicide`
lib/rules/security/avoid-suicide.js
lib/rules/security/avoid-suicide.js
const BaseChecker = require('./../base-checker') const ruleId = 'avoid-suicide' const meta = { type: 'security', docs: { description: `Use "selfdestruct" instead of deprecated "suicide".`, category: 'Security Rules' }, isDefault: false, recommended: true, defaultSetup: 'warn', schema: [] } cl...
JavaScript
0.000007
@@ -430,12 +430,8 @@ %0A%0A -exit Iden @@ -441,19 +441,20 @@ ier( -ctx +node ) %7B%0A cons @@ -453,74 +453,21 @@ -const identifier = ctx.Identifier().toString()%0A%0A if (identifier +if (node.name === @@ -501,11 +501,12 @@ ror( -ctx +node , 'U
45e6d6a97b07078277a65f873a7d548a3cf06a51
tweak devtool init message on server start
lib/server/modules/devtool/index.js
lib/server/modules/devtool/index.js
var fs = require('fs'); var path = require('path'); var chalk = require('chalk'); var logMsg = require('../utils').logMsg; var genUID = require('../utils').genUID; var ConnectionList = require('./ConnectionList'); var Client = require('./Client'); function packet(type, args){ return [type].concat(Array.prototype.sli...
JavaScript
0.000001
@@ -4010,39 +4010,39 @@ )))%0A %7B%0A -logMsg('ws', 'i +console.warn('I nit ' + chal @@ -4317,17 +4317,17 @@ ('ws', ' -i +I nit ' +
ae60376df89bb7be24a074ef09ac657df9e7fede
add separate ja or us mmethod
itunes.js
itunes.js
'use strict' const request = require('request-promise'); const options = { url : 'https://itunes.apple.com/search', json: true, qs : { term : '', country : 'jp', media : 'music', entity : 'song', attribute: 'songTerm', limit : 1, lang : 'en_us' } } const itunesAp...
JavaScript
0.000001
@@ -399,16 +399,168 @@ Name);%0A%0A + if (this.isHankaku(songName) && this.isHankaku(artistName)) %7B%0A options.qs.lang = 'en_us';%0A %7D else %7B%0A options.qs.lang = 'ja_jp';%0A %7D%0A%0A retu @@ -648,35 +648,8 @@ %3E %7B%0A - console.log(json);%0A @@ -1132,16 +1132,122 @@ = t...
074c8e4af9da2a5d5729fd7807db3b0737b9e5ad
Add remove file button next to each thumbnail of dragged files
client/dragdrop.js
client/dragdrop.js
var Dropzone = require("./lib/dropzone"); var $ = require("jquery"); module.exports = function (onImageUploaded, onImageError) { var imgurDropzone; Dropzone.options.dropzone = { // The camelized version of the ID of the form element autoProcessQueue: false, /* we want to handle uploads ourselves */ ...
JavaScript
0.000001
@@ -360,24 +360,50 @@ ploads: 25,%0A + addRemoveLinks: true,%0A maxFiles @@ -500,16 +500,51 @@ = this;%0A + window.imgurDropzone = this;%0A %7D%0A
2152ae9b17541f81ac9240aaa3a2d5fad7a3dcc5
remove unused kind variable
lib/6to5/transformation/transformers/destructuring.js
lib/6to5/transformation/transformers/destructuring.js
var util = require("../../util"); var t = require("../../types"); var _ = require("lodash"); var buildVariableAssign = function (kind, id, init) { if (kind === false) { return t.expressionStatement(t.assignmentExpression("=", id, init)); } else { return t.variableDeclaration(kind, [ t.variableD...
JavaScript
0.000001
@@ -2037,32 +2037,8 @@ ) %7B%0A - var kind = opts.kind;%0A va
4f018ba23baa3a3be7206f77bdbc32a74f7d9297
Fix undefined channel when updating title
client/js/utils.js
client/js/utils.js
"use strict"; const $ = require("jquery"); const escape = require("css.escape"); const viewport = $("#viewport"); var serverHash = -1; // eslint-disable-line no-var var lastMessageId = -1; // eslint-disable-line no-var module.exports = { // Same value as media query in CSS that forces sidebars to become overlays m...
JavaScript
0.000003
@@ -2849,16 +2849,29 @@ hanTitle + && chanTitle .length
c033289afc9433161cb4bccf841273af767800ec
Make pipeline receive normalized path. Closes GH-1301
lib/fs_utils/source_file.js
lib/fs_utils/source_file.js
'use strict'; const debug = require('debug')('brunch:file'); const readFileFromCache = require('micro-promisify')(require('fcache').readFile); const _smap = require('source-map'); const SourceMapConsumer = _smap.SourceMapConsumer; const SourceNode = _smap.SourceNode; const deppack = require('deppack'); const pipeline...
JavaScript
0.000001
@@ -3792,17 +3792,27 @@ ipeline( -p +normalizedP ath, lin
bd4fa75836f6a268485becfcf7ff3982ed5d7679
correct selector for input, not label
web/js/login.js
web/js/login.js
/****************************************** * Form Handlers and page * * generators for TSSAA WebApp Fat Client * *****************************************/ $(document).on("pageinit", function(e, obj) { /** * Login form handler */ $("#login_page").on("submit", function(e, obj) { ...
JavaScript
0.002349
@@ -3198,13 +3198,13 @@ orm -label +input %22),
156418a3dc40f2a8802751354951f048ca61d38b
Fix for missing blinking cursor in input fields when using using TAB to give the field focus.
placeholder.js
placeholder.js
/** * jQuery placeholder attribute plugin. * * Adds support via jQuery for the placeholder attribute in text inputs * and text areas for browsers which do not support the feature. * * Copyright (c) 2011 Blake Gardner, http://blakerg.wordpress.com/ * Release under the MIT License. See License.txt * ...
JavaScript
0
@@ -2075,32 +2075,71 @@ %7D%0D%0A + $(this).select();%0D%0A
dc5b9802286f6b5b26a336bf6e7d48712d3bde0a
Fix comment indent.
stream.js
stream.js
'use strict'; var Readable = require('readable-stream').Readable; var util = require('util'); var ESet = require('es6-set'); var request = require('request'); module.exports = Downloader; util.inherits(Downloader, Readable); function Downloader(url, metadata) { Readable.call(this, { objectMode: true })...
JavaScript
0
@@ -1814,16 +1814,18 @@ + // If we @@ -1875,16 +1875,18 @@ eak the%0A +
3e8df420ceadecae57e85804ba1c76a9c36065e5
fix JSDoc.
lib/helpers/constructURL.js
lib/helpers/constructURL.js
/** * @module helpers/constructURL * @private * @description Exports Object.assign-like method. */ import Arr from '../Arr'; import Str from '../Str'; import { switcher } from '../Switcher'; import { isArray, isObject, isPlainObject } from './checkTypes'; import { iterate } from './iterate'; /** * @type {RegExp}...
JavaScript
0
@@ -69,26 +69,20 @@ rts -Object.assign-like +constructURL met
296cc8c3f1b86d1e45e3f3e9269baa05f5faa7d0
Fix SVG polygon test failing on IE 11
compat/test/browser/svg.test.js
compat/test/browser/svg.test.js
import React, { createElement } from 'preact/compat'; import { setupScratch, teardown, serializeHtml, sortAttributes } from '../../../test/_util/helpers'; describe('svg', () => { /** @type {HTMLDivElement} */ let scratch; beforeEach(() => { scratch = setupScratch(); }); afterEach(() => { teardown(scratc...
JavaScript
0.000009
@@ -1816,37 +1816,24 @@ %09%09%09%3CclipPath - id=%22hexagon%22 clipPathUni @@ -1883,51 +1883,30 @@ s=%220 -.5 0, 1 0.25, 1 0.75, 0.5 1, 0 0.75, 0 0.25 +,100 50,25 50,75 100,0 %22 /%3E @@ -2032,21 +2032,8 @@ Path - id=%22hexagon%22 cli @@ -2085,51 +2085,30 @@ s=%220 -.5 0, 1 0.25, 1 0.75, 0.5 1, 0 0.75, 0 0.25...
85d578ed26b3cfa0fb54f7a271636149d1316c0d
Use window click listener instead of click-blocker
components/Dropdown/Dropdown.js
components/Dropdown/Dropdown.js
import React, {Component, cloneElement, PropTypes} from 'react'; import {mountable} from '../../lib/customPropTypes'; import HoverCard from '../HoverCard/HoverCard'; import s from '../HoverCard/HoverCard.css'; import keyCodes from '../../lib/keyCodes'; const ESC = keyCodes.esc; export default class Dropdown extends ...
JavaScript
0
@@ -8,16 +8,29 @@ React, %7B +findDOMNode, Componen @@ -470,16 +470,55 @@ ontext); +%0A%0A this.hide = this.hide.bind(this); %0A thi @@ -565,25 +565,82 @@ );%0A this. -l +keyListener = this.keyListener.bind(this);%0A this.clickL istener = th @@ -638,26 +638,31 @@ ener = this. +c li +ckLi stener.bi...
30b8280c7e7579291433d45fbc8750da3c84651b
Update Account.js
lib/Account.js
lib/Account.js
var crypto = require("crypto") , Database = require("./Database") , Session = require("./Session") , regions = { "us-east-1": true, "us-west-1": true, "us-west-2": true, "ap-northeast-1": true, "ap-southeast-1": true, "eu-west-1": true } function Account(credentials) { ...
JavaScript
0
@@ -262,24 +262,52 @@ %22eu-west-1%22: + true,%0A %22eu-central-1%22: true%0A %7D%0A
bddf4d26498d9d18627887600e1415e5d32a9b6c
Check draw object for null when stopDrawing
components/draw/draw.service.js
components/draw/draw.service.js
import { Draw, Select, Modify } from 'ol/interaction'; import { click, pointerMove, altKeyOnly } from 'ol/events/condition.js'; import Collection from 'ol/Collection'; import { Style, Icon, Stroke, Fill, Circle } from 'ol/style'; export default ['Core', 'hs.utils.service', 'config', 'hs.map.service', 'hs.laymanService...
JavaScript
0
@@ -3484,16 +3484,17 @@ if + (angular @@ -3514,16 +3514,35 @@ me.draw) + %7C%7C me.draw == null ) return
f7a0cba8a99686f9c1e697a106df62bda90caf56
Fix for universal identifier and not identifier not being recognised
lib/CssRule.js
lib/CssRule.js
/*! Parker v0.0.0 - MIT license */ 'use strict'; var _ = require('underscore'); function CssRule(raw) { this.raw = raw; } CssRule.prototype.getSelectors = function () { return getSelectors(getSelectorBlock(this.raw)); }; CssRule.prototype.getDeclarations = function () { return getDeclarations(getDeclar...
JavaScript
0.000001
@@ -421,16 +421,22 @@ %5D%5C%22=%5Cs:%3E +%5C*%5C(%5C) %5D+)%5B%5Cs%5D?
de5c19067418ab5c3eb62f86a6f75c149341999c
Add temporary dummy functionality
server-side/printing.js
server-side/printing.js
var _ = require('underscore'); var printer = require('printer'); var util = require('util'); module.exports = function Printing () { this.printer = null; this.printers = {}; this.pictures = {}; this.loadPrinters = function () { // Get expected printers this.printers...
JavaScript
0.000001
@@ -1098,32 +1098,136 @@ = function () %7B%0A + // Get current job ID from printer and update%0A this.printers%5Bthis.printer%5D.jobId = null;%0A return t
669652c13cd2ac30309ff8cdb0fd084e8cefc11e
change release
clean-release.config.js
clean-release.config.js
module.exports = { include: [ '*.bundle-*.js', '*.bundle-*.css', 'service-worker.bundle.js', 'index.html', 'proxy.js', 'types.js', 'LICENSE', 'package.json', 'yarn.lock', 'README.md' ], exclude: [ ], askVersion: true, releaseRepository: 'https://github.com/plantain-00...
JavaScript
0.004212
@@ -351,24 +351,27 @@ cript: %5B%0A + // 'cd %22%5Bdir%5D%22 @@ -391,16 +391,19 @@ it',%0A + // 'cp Doc @@ -423,16 +423,19 @@ %5D%22',%0A + // 'cd %22%5Bd @@ -510,14 +510,151 @@ s-tool'%0A + 'git add package.json',%0A 'git commit -m %22%5Bversion%5D%22',%0A 'git tag v%5Bversion%5D',%0A 'g...
d2587a99b926b8f66b19a65cc0ac56f2fdde2d9f
Remove console log
components/tables/Pagination.js
components/tables/Pagination.js
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Icon from '../Icon'; const ITEM_SIZE = '30px'; const Container = styled.ul` display: inline-block; margin: 0; padding: 0; float: left; list-style: none; user-select: none; `; const Item = styled....
JavaScript
0.000002
@@ -2557,57 +2557,8 @@ ps;%0A - console.log(%60$%7BpageCount%7D, $%7BcurrentPage%7D%60);%0A
25184674e42b5de555607d66fede3101592b279a
deal with data to send
server/api/sortUsers.js
server/api/sortUsers.js
import User from '../Models/user'; const userEntity = new User(); export default function(req,res,next){ userEntity.getUser(null,(err,users)=>{ if(err){ return res.status(500).end('服务器错误'); } let result = users.sort((a,b)=>{ return a.score < b.score }) ...
JavaScript
0
@@ -306,16 +306,185 @@ %7D)%0A + let toSend = result.slice(0,10).map((user,i)=%3E%7B%0A return %7B%0A name: user.name,%0A score: user.score%0A %7D%0A %7D)%0A @@ -511,34 +511,22 @@ 0).json( -result.slice(0,10) +toSend )%0A %7D)
0e97f2d4003acce4942a73739102393cf4b0f0ed
Implement variable inheritance fix by @tbfe-de.
src/remark/models/slide.js
src/remark/models/slide.js
var converter = require('../converter'); module.exports = Slide; function Slide (slideIndex, slide, template) { var self = this; self.properties = slide.properties || {}; self.links = slide.links || {}; self.content = slide.content || []; self.notes = slide.notes || ''; self.getSlideIndex = function () ...
JavaScript
0
@@ -1331,31 +1331,38 @@ ce();%0A -slide.content = +deepCopyContent(slide, templat @@ -1370,23 +1370,16 @@ .content -.slice( );%0A%0A ex @@ -1567,16 +1567,16 @@ );%0A %7D%0A%0A - delete @@ -1601,24 +1601,441 @@ content;%0A%7D%0A%0A +function deepCopyContent(target, content) %7B%0A var i;%0A%0A target.con...
a3429cc64f791d51b66bbe0f213f44b57af33f27
Make sure property lists don't contain blank items
src/repl/propertyfinder.js
src/repl/propertyfinder.js
/** * Resolve the properties of an object in a runtime. * * Singleton. Every instanciation will return the same instance. Contains * no state apart from the caching, which should be shared. */ function PropertyFinder(rt_id) { if (window.PropertyFinder.instance) { return window.PropertyFinder.instance; } ...
JavaScript
0.000008
@@ -1870,16 +1870,92 @@ it('_,_' +).filter(%0A function(e) %7B return e != %22%22; %7D%0A );%0A
651e9a0d98bfe1e74eb81c48be3427a6ac73f844
Update ValueDesc.js
CNN/Unpacker/ValueDesc.js
CNN/Unpacker/ValueDesc.js
export { Same, Bool, Int } from "./ValueDesc/ValueDesc_Base.js"; export { ActivationFunction } from "./ValueDesc/ValueDesc_ActivationFunction.js"; export { channelCount1_pointwise1Before } from "./ValueDesc/ValueDesc_Other.js"; export { Pointwise_HigherHalfDifferent } from "./ValueDesc/ValueDesc_Other.js"; export { Avg...
JavaScript
0.000001
@@ -293,32 +293,112 @@ Desc_Other.js%22;%0A +export %7B Depthwise_HigherHalfDifferent %7D from %22./ValueDesc/ValueDesc_Other.js%22;%0A export %7B AvgMax_
db30f66afcaeb912fb762f4bb5d22c501ac05742
Update focusing-tests.js
tests/results/focusing-tests.js
tests/results/focusing-tests.js
module('Results - highlighting results'); test('results:all with no data skips results:focus', function (assert) { assert.expect(0); var $ = require('jquery'); var $select = $('<select></select>'); var $parent = $('<div></div>'); var $container = $('<span></span>'); var container = new MockContainer(); ...
JavaScript
0.000001
@@ -3608,36 +3608,35 @@ ollAfterSelect: -fals +tru e %7D);%0A var resu
90afe4ee4788e4413510e1b022ab7069a1753199
Use default asset manifest file name
config/assets/webpack.common.js
config/assets/webpack.common.js
// const path = require("path"); const webpack = require("webpack"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const WebpackAssetsManifest = require("webpack-assets-manifest"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); const root = path.resolve(__dirname, "../../"); modul...
JavaScript
0
@@ -3327,41 +3327,8 @@ %22%5D,%0A - output: %22manifest.json%22,%0A
d2e0ea871bcdcfcf0920ed91ff9b9cdac5260cf9
Update login-controller.js
www/login/login-controller.js
www/login/login-controller.js
'use strict'; //([\._a-zA-Z0-9-]+@d211.org) angular.module('MyApp.controllers') .controller('LoginCtrl', function($scope, $state, $ionicLoading, Auth, User, $rootScope) { $rootScope.user = { email: '', password: '' }; $scope.errorMessage = null; $scope.login = function() { $scope....
JavaScript
0.000001
@@ -220,16 +220,38 @@ assword: + '',%0A subscribed: ''%0A
69f561875cd2ed5d09bb4f890a07960886f20f96
use stdout and stderr endpoints only if they are connected (is this working?)
system.js
system.js
/* jslint node: true, esnext: true */ "use strict"; const child_process = require('child_process'); const systemStep = Object.assign({}, require('kronos-step').Step, { "name": "kronos-system", "description": "Starts a child process", "config": { "command": { "description": "command to execute", "type": "s...
JavaScript
0
@@ -1517,17 +1517,17 @@ ole.log( -' +%60 child pr @@ -1542,16 +1542,29 @@ rminated + with $%7Bcode%7D due to @@ -1585,18 +1585,18 @@ nal -' + +$%7B signal +%7D%60 );%0A%09 @@ -1903,16 +1903,28 @@ s.stdout +.isConnected ) %7B%0A%09%09%09%09 @@ -2078,16 +2078,28 @@ s.stderr +.isConnected ) %7B%0A%09%09%09%...
73e58cc8d846be74cd452af3e8e707e573713b84
Add MVP routes for students and teachers
server/config/routes.js
server/config/routes.js
var classesController = require('../controllers/classes'); var classLessonController = require('../controllers/class_lessons'); var lessonsController = require('../controllers/lessons'); var receivedResponsesController = require('../controllers/received_responses'); var requestedResponsesController = require('../contro...
JavaScript
0
@@ -615,8 +615,212 @@ ers');%0A%0A +module.exports = function(app) %7B%0A%0A app.get('/login', );%0A%0A app.get('/signup', );%0A%0A app.get('/teachers', );%0A%0A app.get('/students', );%0A%0A app.get('/teachers/poll', );%0A%0A app.get('/teachers/thumbs', );%0A%0A%7D
887a9ae40597b0ac12c908e33c2aaacac343c286
Update jquery.greedy-navigation.js
assets/js/plugins/jquery.greedy-navigation.js
assets/js/plugins/jquery.greedy-navigation.js
/* * Greedy Navigation * * http://codepen.io/lukejacksonn/pen/PwmwWV * */ var $nav = $('#site-nav'); var $btn = $('#site-nav button'); var $vlinks = $('#site-nav .visible-links'); var $hlinks = $('#site-nav .hidden-links'); var breaks = []; function updateNav() { var availableSpace = $btn.hasClass('hidden') ? $...
JavaScript
0
@@ -366,229 +366,8 @@ 0;%0A%0A - console.log(%22updateNav:: I am called%22);%0A console.log(%22availableSpace: %22 + availableSpace);%0A console.log(%22$vlinks.width(): %22 + $vlinks.width());%0A console.log(%22breaks%5Bbreaks.length-1%5D: %22 + breaks%5Bbreaks.length-1%5D);%0A %0A //
91646b87d7b8d58016658f06b753f3a68f9bd832
Update server.es6.js
server/src/server.es6.js
server/src/server.es6.js
import generator from './generator.es6.js' var server = ws.listen(8081) import ProceduriaBuilder from './ProceduriaBuilder.es6.js' server.on('upgrade', function (req, socket, head) { server.handleUpgrade(req, socket, head); }); server.on('connection', function (client) { client.on('ready', function () { conso...
JavaScript
0.000001
@@ -1,499 +1 @@ -import generator from './generator.es6.js'%0Avar server = ws.listen(8081)%0Aimport ProceduriaBuilder from './ProceduriaBuilder.es6.js'%0A%0Aserver.on('upgrade', function (req, socket, head) %7B%0A server.handleUpgrade(req, socket, head);%0A%7D);%0A%0Aserver.on('connection', function (client) %7B%0A c...
bb445bdc7e29d25fb8235831525d00c7372e8bd7
call process.exit when client closes connection.
math-server.js
math-server.js
//Commentary: // Expose a simple REPL as a server to emacspeak-maths. // Usage Model: // The Emacs client sends requests of the form: // command: args --- where args are comma-separated. // The server responds with a Lisp S-expression. // This S-expression is an annotated string. // Annotations are ACSS property/valu...
JavaScript
0
@@ -1871,26 +1871,20 @@ -// server.shutdown +process.exit ();%0A
d4cedcc796e2c7d1dc561f501b4faa4d400f1aa3
allow implicit iterators to resolve to the empty string (#161)
src/Ractive.prototype/set.js
src/Ractive.prototype/set.js
(function ( proto ) { var set, attemptKeypathResolution; proto.set = function ( keypath, value, complete ) { var notificationQueue, upstreamQueue, k, normalised, keys, previousTransitionManager, transitionManager; upstreamQueue = [ '' ]; // empty string will always be an upstream keypath notificationQueue = ...
JavaScript
0
@@ -4078,21 +4078,16 @@ 0%5D;%0A%0A%09%09%09 -if ( keypath @@ -4147,16 +4147,46 @@ tStack ) +%0A%09%09%09if ( keypath !== undefined ) %7B%0A%09%09%09
44cead7f2594b786a28631a7168ee3256d012c97
Fix CustomEvent detection
tap.js
tap.js
/* * * Find more about this plugin by visiting * http://alxgbsn.co.uk/ * * Copyright (c) 2013 Alex Gibson, http://alxgbsn.co.uk/ * Released under MIT license * */ /*global window: false, document: false */ (function (window, document) { 'use strict'; function Tap(el) { this.element = typeof ...
JavaScript
0.000001
@@ -2141,16 +2141,25 @@ (typeof +document. CustomEv @@ -2207,16 +2207,25 @@ t = new +document. CustomEv
569f9e1728d9962cee0029ae2d3ef20e16af3bab
Return an array from leb128 decompression
client/js/decompress.js
client/js/decompress.js
const continuationBit = 1 << 7; const lowBitsMask = ~continuationBit & 0xff; /** * @template {ArrayBufferView} T * * @param {ReadableStream<Uint8Array>} stream * @param {number} length of the returned ArrayBufferView * @param {new (length: number) => T} Type * * @returns {T} */ export async function decompress...
JavaScript
0.000862
@@ -82,205 +82,153 @@ %0A * -@template %7BArrayBufferView%7D T%0A *%0A * @param %7BReadableStream%3CUint8Array%3E%7D stream%0A * @param %7Bnumber%7D length of the returned ArrayBufferView%0A * @param %7Bnew (length: number) =%3E T%7D Type%0A *%0A * @returns %7BT +Consume a ReadableStream of LEB128 bytes into an Array...
254c42ee30afa228f76ce61f05d3b10ec29858bc
Update index.js
www/js/index.js
www/js/index.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
JavaScript
0.000002
@@ -1189,16 +1189,163 @@ false);%0A + %09document.querySelector(%22#startScan%22).addEventListener(%22touchend%22, startScan, false);%0A%09resultDiv = document.querySelector(%22#results%22);%0A %7D,%0A @@ -1610,146 +1610,8 @@ - %09document.querySelector(%22#startScan%22).addEventListener(%22t...
129ca6fee16f1d10377b8fc1a94b80364422a567
Fix default ports
lib/model/content/vertex.js
lib/model/content/vertex.js
var Lang = require('../../utilities/lang'); var createClass = require('../../utilities/createClass'); var GraphModelBase = require('./graphModelBase'); var PortType = require('../../enum/portType'); var VertexStyles = require('../style/vertexStyles'); var VertexLayout = require('../layout/vertexLayout'); var Port = re...
JavaScript
0.000003
@@ -2002,16 +2002,62 @@ puts')); +%0A children.push(this.get('defaultPort')); %0A%0A
868ee1e95b6c7943930e06c8d4c3ef5d35b91c64
Update error message
addon/validations/nypr-accounts/custom-messages.js
addon/validations/nypr-accounts/custom-messages.js
export default { passwordRequired: 'please enter a password', emailRequired: 'please enter your email', confirmEmailRequired: 'please enter a confirmation email', firstNameRequired: 'please enter your first name', firstNameMaxLength: 'your first name must be {max} characters or less', l...
JavaScript
0.000001
@@ -1712,22 +1712,13 @@ we -aren't able to +can't aut @@ -1745,16 +1745,35 @@ without +permission to view your ema @@ -1774,16 +1774,24 @@ ur email + address .%22,%0A pa
8d604b6dee670e4856354f96a4aa129c4a5b455c
Use Panel and Icons in PossiblePasswords
src/app/PossiblePasswords.js
src/app/PossiblePasswords.js
import { dicewareWords } from '../options/DicewareOptions' import { toggles } from '../options/GenericOptions' import PropTypes from 'prop-types' import { always, filter, findLast, identity, keys, map, pipe, sum } from 'ramda' import React from 'react' import { connect } from 'react-redux' import { ProgressBar } from '...
JavaScript
0
@@ -246,16 +246,44 @@ 'react'%0A +import Icon from 'react-fa'%0A import %7B @@ -320,16 +320,23 @@ import %7B + Panel, Progres @@ -806,16 +806,30 @@ eturn (%0A + %3CPanel%3E%0A %3Cdl%3E @@ -835,20 +835,44 @@ %3E%0A + + %3Cdt%3E +%3CIcon name=%22random%22/%3E Possible @@ -883,24 +883,26 @@ sw...
454bce06da3879e8d5f85eaf4411703d162a8442
Implement row adding and removing
metronomeui.js
metronomeui.js
"use strict"; $(function() { var rows = []; var table = $("table"); var statusBar = $("#status-bar"); var statusP = $("#status"); var X = $("<button>") .attr("type", "button") .text("X") .on("click", function() { statusBar.hide(); }); statusBar.append(X); function setStatus(msg) { status...
JavaScript
0
@@ -28,23 +28,8 @@ %7B%0A%0A -var rows = %5B%5D;%0A var @@ -398,65 +398,61 @@ ion -appendRow(row) %7B%0A table.append(row);%0A rows.push(r +createRow(elem) %7B%0A // TMP%0A return createDefR ow +( );%0A%7D @@ -481,75 +481,378 @@ -var tmp = $(this);%0A%7D%0A%0Afunction removeRow() %7B%0A var...
c90e9fea58253b78172e09780b480c5696491b7e
Make `request.nextActionId` optional
src/app/store/updateState.js
src/app/store/updateState.js
import parseJSON from '../utils/parseJSON'; import commitExcessActions from './commitExcessActions'; function recompute(previousLiftedState, storeState, action, nextActionId = 1, isExcess) { const actionId = nextActionId - 1; const liftedState = { ...previousLiftedState }; liftedState.stagedActionIds = [...lifte...
JavaScript
0.999906
@@ -1531,37 +1531,27 @@ -newState = recompute(%0A +const liftedState = sto @@ -1585,16 +1585,65 @@ uest.id) +;%0A newState = recompute(%0A liftedState ,%0A @@ -1697,16 +1697,50 @@ ActionId + %7C%7C (liftedState.nextActionId + 1) ,%0A
d0437fea3d4a5a58ba2d36cee685cb4161c8c123
fix bot won't create streams
commands/stream.js
commands/stream.js
/* This module is meant to handle the command '!bot streams #channel' Notes: - streamCommands is an array with the valid stream commands for the keys in channels.js: e.g ['!bot stream python', '!bot streams php'...] e.g [`!bot create stream [user] [topic]`] How it works: - joinMeStreams is an o...
JavaScript
0
@@ -3413,19 +3413,8 @@ ts = -%0A typeof bot @@ -3453,23 +3453,8 @@ mat) - != 'undefined' ;%0A%0A
78f90205598ecd4d6661cca718d8242194b8cbca
tweak poits a bit
commands/trivia.js
commands/trivia.js
const help = require("./help"); const search_members = require("../util/search_members"); module.exports = (message, client, helper) => { const split_content = message.content.split(" ").slice(1) const command = split_content[0]; if (command == "start") { if (message.gcfg.trivia == message.channel....
JavaScript
0
@@ -3484,16 +3484,325 @@ search); +%0A let guild = res.rows.filter(row =%3E message.channel.guild.members.get(row.id));%0A if (!data) %7B%0A message.channel.createMessage(%60$%7Bclient.users.get(search).username%7D hasn't played trivia yet!%60).catch(err =%3E helper.handle(message,...
9123eaeb686b8ab57852ed65670bfb69e03e7b87
add comments to index.js
client/scripts/index.js
client/scripts/index.js
var React = require('react'), Router = require('react-router'); var LogoArea = React.createClass({ render: function() { return ( <div className="logo-container"> <h1 className="logo-title"><img src="images/chimp.png" className="logo-image" />ShopChimp</h1> <h3 className="logo-tagline">A...
JavaScript
0
@@ -63,333 +63,90 @@ ');%0A - %0Avar LogoArea = React.createClass(%7B%0A render: function() %7B%0A return (%0A %3Cdiv className=%22logo-container%22%3E%0A %3Ch1 className=%22logo-title%22%3E%3Cimg src=%22images/chimp.png%22 className=%22logo-image%22 /%3EShopChimp%3C/h1%3E%0A %3Ch3 className=%2...
cb9cd9fe6c536892cae4466daa67b9ec4d618208
Disable automatic detail title for now until we find a better way
app/assets/javascripts/master/behaviors/affiliation.js
app/assets/javascripts/master/behaviors/affiliation.js
// master-detail grid relation, detail grid render the records which belongs to the selected row of master grid WulinMaster.behaviors.Affiliation = $.extend({}, WulinMaster.behaviors.BaseBehavior, { event: "onSelectedRowsChanged", subscribe: function(target) { var self = this; this.detail_grids = this.de...
JavaScript
0
@@ -2986,24 +2986,27 @@ title%0A + // var $detail @@ -3068,16 +3068,19 @@ );%0A + // $detail @@ -3100,16 +3100,19 @@ l(%0A + // this. @@ -3158,16 +3158,19 @@ +%0A + // ' %3E %3C @@ -3205,24 +3205,27 @@ e%22%3E' +%0A + // detailGri @@ -3250,16 +3250,19 @@ %3E'%0A + /...
96473c30c8cac39a1c6277782d7c81258c6f61f1
Refactor nfi store hack.
app/assets/javascripts/stores/news_feed_items_store.js
app/assets/javascripts/stores/news_feed_items_store.js
var ActionTypes = window.CONSTANTS.ActionTypes; var Store = require('./es6_store'); var _items = []; var _loading = false var _page = 0 var _pages = 0 class NewsFeedItemsStore extends Store { constructor() { super() this.dispatchIndex = Dispatcher.register((action) => { switch (action.type) { ...
JavaScript
0
@@ -1003,31 +1003,23 @@ ML)%0A -%0A -Dispatcher.dispatch( +var action = %7B%0A @@ -1112,337 +1112,70 @@ %0A %7D -); %0A%0A -// This seems like a hack but the lack of %60data.meta%60 was causing%0A // other errors downstream. Talk to @chrislloyd if you want an%0A // explanation.%0A if (data.meta && data...
b25067697970b0a596d76c0418efd4a75a72ca67
Fix indentation
src/background/autoUpdate.js
src/background/autoUpdate.js
import { app, ipcMain, BrowserWindow, dialog } from 'electron'; import { autoUpdater } from 'electron-updater'; import jetpack from 'fs-jetpack'; import i18n from '../i18n/index.js'; const appDir = jetpack.cwd(app.getAppPath()); const userDataDir = jetpack.cwd(app.getPath('userData')); const updateSettingsFileName = '...
JavaScript
0.017244
@@ -3414,16 +3414,17 @@ %7C%7C%0A %09 +%09 (process
f0e4dfa1d0468635fabf775dddfab626c789e8ab
Update output_kafka.js
lib/outputs/output_kafka.js
lib/outputs/output_kafka.js
var base_output = require('../lib/base_output'), util = require('util'), logger = require('log4node'); var kafka = require('kafka-node'); var Producer = kafka.Producer; var KeyedMessage = kafka.KeyedMessage; var Client = kafka.Client; var Logger; function OutputKafka() { base_output.BaseOutput.call(this); th...
JavaScript
0.00001
@@ -1140,16 +1140,17 @@ var d = +%5B %7B topic: @@ -1193,16 +1193,17 @@ (data) %7D +%5D ;%0A%09if (t
807ef934cd9b1ab101a72f95f97338ec86f1fb86
Use the correct logger for the policy
lib/policies/proxy/proxy.js
lib/policies/proxy/proxy.js
const httpProxy = require('http-proxy'); const fs = require('fs'); const ProxyAgent = require('proxy-agent'); const logger = require('../../logger').gateway; const strategies = require('./strategies'); const createStrategy = (strategy, proxyOptions, endpointUrls) => { const Strategy = strategies[strategy]; return ...
JavaScript
0.000015
@@ -142,22 +142,21 @@ ogger'). -gatewa +polic y;%0Aconst
c4f62420862ecebce3d3402c5e4bacd8303f11bb
Support CORS OPTIONS request
web.js
web.js
var express = require('express'); var logfmt = require('logfmt'); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var session = require('express-session'); var ua = require('universal-analytics'); var merge = require('merge'); var app = express(); var unscrambler = require('./unsc...
JavaScript
0
@@ -1430,16 +1430,71 @@ cept%22);%0A +%0A%09if (req.method == %22OPTIONS%22)%0A%09%09res.send(200);%0A%09else%0A%09 %09next();
b3288314cea815b6afb2eb7ce3d08c87e00d66d4
Use relative paths
components/Root.js
components/Root.js
// Root.js import React from 'react' import Endpoint from './Endpoint.js' import _ from 'lodash' import path from 'path' import crypto from 'crypto' const hash = (buf, n) => crypto.createHash('sha256').update(buf).digest('hex').slice(0, n || 7) export default (props) => { let groups = _.groupBy(Endpoint.storage, '...
JavaScript
0.000002
@@ -342,18 +342,31 @@ -css +rel path = +path.dirname( path @@ -379,14 +379,8 @@ ive( -'/' + prop @@ -391,13 +391,11 @@ l, ' -/css' +.') ),%0A @@ -578,35 +578,35 @@ %3Clink href=%7B -css +rel path + '/normali @@ -598,16 +598,20 @@ ath + '/ +css/ normaliz @@ -651,35 +651,35 @@ %3Clink href=%7B...
54e36432397b3ec79f42c57a3b6a658415e6e7c1
Fix JSHint-reported issue
lib/simulation/openfisca.js
lib/simulation/openfisca.js
/* ** Module dependencies */ var request = require('superagent'); var _ = require('lodash'); var util = require('util'); var prestations = require('./prestations'); var config = require('../config/config'); var debug = require('debug')('openfisca'); var statmatMap = { 'seul': 2, 'marié': 1, 'pacsé': 5, ...
JavaScript
0.000001
@@ -329,24 +329,27 @@ ple': 2%0A%7D;%0A%0A +// function ajo @@ -414,24 +414,27 @@ fiscaKey) %7B%0A +// var ress @@ -482,16 +482,19 @@ Mois();%0A +// if ( @@ -554,20 +554,23 @@ y%5D = 0;%0A +// + _.forEac @@ -608,24 +608,27 @@ essource) %7B%0A +// open @@ -693,24 +693,27 @@ 4 %7C%7C...
d666f2fcfc9210c6b1814df76018ce8bf33ef9ad
Fix broken import
applications/calendar/src/app/content/PublicApp.js
applications/calendar/src/app/content/PublicApp.js
import React, { useState, useLayoutEffect } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import { Loader, LoginForm, ModalsChildren } from 'react-components'; import { loadOpenPGP } from 'proton-shared/lib/openpgp'; const PublicApp = ({ on...
JavaScript
0.000006
@@ -99,33 +99,8 @@ rt %7B - BrowserRouter as Router, Rou @@ -862,33 +862,8 @@ /%3E%0A - %3CRouter%3E%0A @@ -871,36 +871,32 @@ %3CSwitch%3E%0A - @@ -964,20 +964,16 @@ - %3C/Switch @@ -978,30 +978,8 @@ ch%3E%0A - %3C/Router%3E%0A
f7daa0a194edccf889a50142426f5c998bf77e34
add back the superb proxies
src/client/view/node_info.js
src/client/view/node_info.js
define(['jquery', 'jquery-ui', 'view/helpers', 'view/internal'], function($, _unused_jquery_ui, view_helpers, internal) { var d = null, submit_callback = null, delete_callback = null; function _get_form_data() { return { name: $('.info #editformname').val(), type: $('.info #edittype').val...
JavaScript
0
@@ -136,21 +136,19 @@ l,%0A s -ubmit +ave _callbac @@ -151,20 +151,29 @@ lback = -null +function() %7B%7D ,%0A de @@ -188,20 +188,65 @@ lback = -null +function() %7B%7D,%0A keyup_callback = function() %7B%7D ;%0A%0Afunct @@ -557,58 +557,44 @@ %0A%7D%0A%0A -//internal.edit_tab.get('node', %22#editbox%2...
9cdd1696e1870c34dce31979f299fc79e211e667
fix rjs compatibility
lib/tmpls/require.config.js
lib/tmpls/require.config.js
(function (root) { var jam = "{data}"; // placeholder for jam config if (typeof module === 'object' && module.exports) { // Node. Does not work with strict CommonJS, but // only CommonJS-like environments that support module.exports, // like Node. module.exports = jam; } else if (typeof require === '...
JavaScript
0
@@ -402,12 +402,66 @@ fig( -jam) +%22%7Bdata%7D%22); // don't %22optimize%22 it!!! or rjs will be broken %0A%09 %7D
dafe2d89bad0f813b52296127b6bc7d407dcf7fb
Resolve require paths for presets, fix plugin ES6 support
src/compile-support/babel.js
src/compile-support/babel.js
'use strict' var crypto = require('crypto') var path = require('path') var defaultOptions = require('../../static/babelrc.json') var babel = null var babelVersionDirectory = null // This adds in the regeneratorRuntime for generators to work properly // We manually insert it here instead of using the kitchen-sink // ...
JavaScript
0
@@ -68,66 +68,8 @@ th') -%0Avar defaultOptions = require('../../static/babelrc.json') %0A%0Ava @@ -271,16 +271,16 @@ lyfill.%0A - require( @@ -310,16 +310,401 @@ ime');%0A%0A +// We run babel with lots of different working directories (like plugin folders).%0A// To make sure presets always resolve to the correct p...
1f3ff2bb67748abc3a034527dbd289d8bb081c60
accounted for blank inputs
src/components/modal-form.js
src/components/modal-form.js
import React, { Component } from 'react'; import {Button, ButtonGroup, Modal, FormControl} from 'react-bootstrap'; import update from 'immutability-helper'; class ModalForm extends Component { constructor(props) { super(props); this.state={ showModal: false, title: '', ...
JavaScript
0.999265
@@ -1015,28 +1015,76 @@ his. -props.SetLive(holder +state%5Bx%5D != '' ? this.props.SetLive(holder) : console.log('no input' )%0A
704749d3a3e9ae343d5acfb84216d0d3e2a42ba5
Use new function in connectors
src/connectors/soundcloud.js
src/connectors/soundcloud.js
'use strict'; const artistSelector = '.playbackSoundBadge__titleContextContainer > a'; const trackSelector = '.playbackSoundBadge__titleLink > span:nth-child(2)'; const trackArtSelector = '.playControls span.sc-artwork'; const durationSelector = '.playbackTimeline__duration > span:nth-child(2)'; Connector.playerSelec...
JavaScript
0.000002
@@ -1281,36 +1281,18 @@ til. -stringToSeconds(Util.getText +getSeconds From @@ -1318,13 +1318,12 @@ elector) -) ;%0A%7D%0A
f5ff55d3dd399a41836763a444d5b87bf86d7923
remove console log
src/containers/search_bar.js
src/containers/search_bar.js
import React, { Component } from 'react'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChange = this.onInputChange.bind(this); } onInputChange(event) { console.log(event.target.value); this.setState({ term: eve...
JavaScript
0.000003
@@ -251,45 +251,8 @@ ) %7B%0A - console.log(event.target.value);%0A
2b43c7b3eca5ede3e9fc78491263ea986f76c114
Update unstar.js
commands/star/unstar.js
commands/star/unstar.js
const { Command } = require('discord.js-commando'); const starBoard = require('../../postgreSQL/models/StarBoard'); module.exports = class UnstarCommand extends Command { constructor(client) { super(client, { name: 'unstar', group: 'starboard', memberName: 'unstar', description: 'Unstars a message.', ...
JavaScript
0.000001
@@ -2066,16 +2066,35 @@ 1) %3E= 5 + && (starCount + 1) %3C 10) e
8542a95fb65385cc3383abf05df5c065060a9362
delete PointerEvent from externs
common/Build/Externs.js
common/Build/Externs.js
/* * (c) Copyright Ascensio System SIA 2010-2017 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) * version 3 as published by the Free Software Foundation. In accordance with * Section 7(a) of the GNU AGPL...
JavaScript
0
@@ -2241,34 +2241,4 @@ %7D;%0D%0A -%0D%0Afunction PointerEvent()%7B%7D;%0D%0A
6b8745501d4e742bb6db86710e88cef5c58cfba1
Update assets/js/googlesitekit/modules/datastore/constants.js
assets/js/googlesitekit/modules/datastore/constants.js
assets/js/googlesitekit/modules/datastore/constants.js
/** * Core site data store: constants. * * Site Kit by Google, Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICEN...
JavaScript
0
@@ -4,17 +4,22 @@ %0A * -Core site +%60core/modules%60 dat
0782a44ce6f54aa553e014acfa3bb11448c0682e
remove warning when running `grunt dev`
src/fauxton/tasks/fauxton.js
src/fauxton/tasks/fauxton.js
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
JavaScript
0
@@ -600,24 +600,50 @@ grunt.util._ +,%0A fs = require('fs') ;%0A%0A grunt.r @@ -1085,40 +1085,8 @@ var -path = require('path');%0A done @@ -1190,36 +1190,34 @@ settingsFile = -path +fs .existsSync(data @@ -2918,40 +2918,8 @@ var -path = require('path');%0A data @@ -2981,20 +2981,18 @@ ...
abe12fbe8d32613bd598219764260ac11076f4e0
Debug notifications
src/firebase-messaging-sw.js
src/firebase-messaging-sw.js
// Give the service worker access to Firebase Messaging. // Note that you can only use Firebase Messaging here, other Firebase libraries // are not available in the service worker. importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase...
JavaScript
0.000001
@@ -1,184 +1,19 @@ // -Give the service worker access to Firebase Messaging.%0A// Note that you can only use Firebase Messaging here, other Firebase libraries%0A// are not available in the service worker. +Firebase SDK %0Aimp @@ -51,37 +51,37 @@ .com/firebasejs/ -4.8.1 +5.5.6 /firebase-app.js @@ -138,13 +138,13 @@...
ade86230305b5a67ea7e0771bd96cf5d11487182
Fix WebSocketBox cleaning up on disconnect.
src/foam/box/WebSocketBox.js
src/foam/box/WebSocketBox.js
/** * @license * Copyright 2017 The FOAM Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
JavaScript
0
@@ -1283,22 +1283,24 @@ this. -socket +delegate = undef
0b8bf266ce29c9c19311d59a2821b95f97ac0ebe
Update TreeView CSS again.
src/foam/u2/view/TreeView.js
src/foam/u2/view/TreeView.js
/** * @license * Copyright 2016 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
@@ -974,24 +974,44 @@ d: #59aadd;%0A + color: white;%0A %7D%0A%0A %5E
ecadb10c03d01f2d7b7406fd8297b71fc65e94b8
Fix ESLint error
src/connectors/gds.fm.js
src/connectors/gds.fm.js
'use strict'; Connector.playerSelector = '.player-meta' Connector.artistSelector = '.player-meta__artist'; Connector.trackSelector = '.player-meta__title'; Connector.playButtonSelector = '.player-meta__icon--play';
JavaScript
0.000044
@@ -49,16 +49,17 @@ er-meta' +; %0A%0AConnec
7a6febaaba76faeee8c6de9d004be0c0b3e3de67
Allow for embedded batches #1050
src/core-notification.js
src/core-notification.js
(function($$){ 'use strict'; $$.fn.core({ notify: function( params ){ if( this._private.batchingNotify ){ var bEles = this._private.batchNotifyEles; var bTypes = this._private.batchNotifyTypes; if( params.collection ){ for( var i = 0; i < params.collection.length; i++ ){ ...
JavaScript
0
@@ -1181,24 +1181,130 @@ ._private;%0A%0A + if( _p.batchCount == null )%7B%0A _p.batchCount = 0;%0A %7D%0A%0A if( _p.batchCount === 0 )%7B%0A _p.bat @@ -1340,32 +1340,34 @@ y = true;%0A + _p.batchStyleEle @@ -1366,32 +1366,34 @@ StyleEles = %5B%5D;%0A + _p.batchNo @@ ...
3b2266cd189446e6152707d3dc705d8652aab45d
Add martin.hrabovsky
config.notifications.js
config.notifications.js
'use strict' module.exports = [ { user: '@michal.brasna', services: ['tankovna', 'lokal-hamburk', 'globus'] }, { user: '@jan.pavlovsky', services: ['peters', 'meat-market', 'globus', 'lokal-hamburk'] }, { user: '@ottokovarik', services: ['tankovna', 'lokal-hamburk', 'globus'] }, {...
JavaScript
0.999209
@@ -2387,10 +2387,158 @@ '%5D%0A %7D,%0A + %7B%0A user: '@martin.hrabovsky',%0A services: %5B'peters', 'tankovna', 'meat-market', 'lokal-hamburk', 'globus', 'u-zabranskych', 'u-tunelu'%5D%0A %7D,%0A %5D%0A
7cac96061b1f0f0d8af2d5e66f90f421ccea7fd8
Update jquery.rememberscroll.js
src/jquery.rememberscroll.js
src/jquery.rememberscroll.js
// jquery.rememberscroll.js a jQuery plugin that remembers where user scrolls in a web page. When the user comes back to the page later, it automatically jumps to the most recent scroll position // Author: Steve Tang // // function $.scrollTrack // Description: Enable tracking of web page scroll position // parameters...
JavaScript
0.000002
@@ -209,13 +209,8 @@ teve - Tang %0A//%0A
774641d8de82912911df1a52c45a5a0dfa958789
Fix line-endings.
src/js/app/data/accordion.js
src/js/app/data/accordion.js
define(function () { return { title: 'Accordion', lead: 'The accordion class is an abstract template for creating new modules.', body_one: 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food ...
JavaScript
0.000603
@@ -235,32 +235,41 @@ rdson ad squid. +' +%0A ' 3 wolf moon offi @@ -353,32 +353,41 @@ aborum eiusmod. +' +%0A ' Brunch 3 wolf mo @@ -472,32 +472,41 @@ enda shoreditch +' +%0A ' et. Nihil anim k @@ -586,32 +586,41 @@ ea proident. Ad +' +%0A ' vegan excepteur @@ -700,32 +700,41 @@ aesthetic syn...
5c55696130374f0b78b1313620103cf2b93aa5c0
Fix plugin list on API
src/js/controllers/plugin.js
src/js/controllers/plugin.js
angular.module('app').controller("PluginController", ["$scope", "Kong", "$location", "$routeParams", "plugins", "apis", "consumers", "plugin", "Alert", function ($scope, Kong, $location, $routeParams, plugins, apis, consumers, plugin, Alert) { $scope.enabled_plugins = plugins.enabled_plugins; $scope.plugin = pl...
JavaScript
0
@@ -266,16 +266,28 @@ ugins = +Object.keys( plugins. @@ -301,16 +301,17 @@ _plugins +) ;%0A $s
5447963fcdbca68aa4310789820a765f5aaa3f32
reconstruct name
src/main/ed/cloud/server0.js
src/main/ed/cloud/server0.js
/** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, ...
JavaScript
0.999999
@@ -1083,20 +1083,89 @@ r%5B3%5D );%0A +%0A +this.name = this.location + %22-%22 + this.provider + %22.%22 + this.number; %0A%7D;%0A%0AClo
b295668bbd4d64af8665523be33f980b714e74f3
Update game_model.test.js
src/model/game_model.test.js
src/model/game_model.test.js
import GameModel from "./game_model"; describe(`model:: Game`, () => { it(`::constructor - mandatory fields [size|battlefields] are initialized`, () => { const model = new GameModel(); expect(model.size).toBeDefined(); expect(model.battlefields).toBeDefined(); expect(Array.isArray(...
JavaScript
0.000002
@@ -356,8 +356,9 @@ %7D)%0A%7D); +%0A
146fe844964d966c09a73aae2902cf8160393279
fix minor typo
src/ng/directive/ngSwitch.js
src/ng/directive/ngSwitch.js
'use strict'; /** * @ngdoc directive * @name ng.directive:ngSwitch * @restrict EA * * @description * The ngSwitch directive is used to conditionally swap DOM structure on your template based on a scope expression. * Elements within ngSwitch but without ngSwitchWhen or ngSwitchDefault directives will be preserve...
JavaScript
0
@@ -1214,18 +1214,18 @@ the ngSw -t i +t ch conte
42ab195c09ca71e11230bb0d75f29b759c1eef81
Disable dragging for fullcalendar
src/patterns/fullcalendar.js
src/patterns/fullcalendar.js
define([ 'jquery', '../core/logging', '../utils', "../registry", 'jquery_fullcalendar' ], function($, logging, utils, registry) { var log = logging.getLogger('fullcalendar'); var fullcalendar = { name: "fullcalendar", trigger: ".pat-fullcalendar", init: function($ca...
JavaScript
0.000001
@@ -2278,16 +2278,57 @@ endar(%7B%0A + disableDragging: 'true',%0A
153cc32f0a93f26ac0fd42056fb01b1d2c352743
Update spacing
config/database.js
config/database.js
module.exports = { // the database url to connect url : 'mongodb://localhost/scotchTest' }
JavaScript
0.000001
@@ -51,17 +51,16 @@ ct%0A url - : 'mongo
041f7ba195f78c9c309776bdc79f4411dcc13dde
use new JSdoc conventions for @param
js/EventTimer.js
js/EventTimer.js
// Copyright 2002-2014, University of Colorado Boulder /** * Abstraction for timed-event series that helps with variable frame-rates. Useful for things that need to happen at a * specific rate real-time regardless of the frame-rate. * * An EventTimer is created with a specific event "model" that determines when ev...
JavaScript
0
@@ -2189,33 +2189,33 @@ s.%0A * @param %7B -F +f unction%7D eventCa @@ -3473,33 +3473,33 @@ s.%0A * @param %7B -N +n umber%7D rate%0A * @@ -4173,33 +4173,33 @@ ).%0A * @param %7B -N +n umber%7D rate%0A * @@ -4199,33 +4199,33 @@ te%0A * @param %7B -F +f unction%7D pseudoR @@ -5521,17 +5521,17 @@ @pa...
07ee9f58931cdfbc7ba2f44e07ddf7fcc6bdc732
Make list items fade out on check.
js/ListScript.js
js/ListScript.js
$(document).ready(function() { var addItem = function() { $('.mainList').append('<li class="listItem"><input id="check" class="checkBox" type="checkbox"><input class="textInp" type="text" placeholder="..."></li>'); }; var itemDone = function() { if ($(this).is(':checked')) { ...
JavaScript
0
@@ -205,16 +205,24 @@ holder=%22 +Add Item ...%22%3E%3C/l @@ -227,16 +227,16 @@ /li%3E');%0A - %7D;%0A @@ -283,116 +283,112 @@ -if ($(this).is(':checked')) %7B%0A alert(%22Checked!%22);%0A %7D else %7B%0A alert(%22Unchecked!%22 +var $this = $(this);%0A $this.parent().f...
a6dc9437b2dcb04364c013710c711c20a13349b2
missing ';'
js/background.js
js/background.js
/** * background.js * * The persistent background javascript file * * @package MEMEme * @author Salvatore D'Agostino * @copyright Copyright (c) 2013, Salvatore D'Agostino **/ /** * Class Favorite Defn' * * { * "image": "URL" * } */ /** * Favorites Class * * This class handles creating...
JavaScript
0.999868
@@ -1422,16 +1422,17 @@ results) +; %0A
839b8c0d77adc6e537bf132c8715d27680c82aa8
remove debug log
js/background.js
js/background.js
// get current tab's domain function getCurrentTabDomain(callback) { //console.log("get current tab\'s domain"); chrome.tabs.getSelected(null, function(tab) { callback(tab.url.match(/^[\w-]+:\/*\[?([\w\.:-]+)\]?(?::\d+)?/)[1]); }); }; // handle request which is from context or popup page function requestFromTabs(...
JavaScript
0.000003
@@ -2137,32 +2137,8 @@ %09%09%09%7D -%0A%09%09%09console.log(result); %0A%0A%09%09
52ea4b91c1a2726bf7947fa912567313b2fc70c2
Update contact_me.js
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
@@ -866,31 +866,56 @@ l: %22 -././mail/contact_me.php +https://formspree.io/purchasingtoolpak@gmail.com %22,%0A
87ac0c4f266995dab3c160428223f326acc9bcce
Update contact_me.js
js/contact_me.js
js/contact_me.js
$(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { // Prevent spam click and...
JavaScript
0
@@ -984,16 +984,32 @@ l: %22 -././mail +http://jkaleko.comxa.com /con
897ba31db869b48e039ee2799935a3523349cff7
Prepare to support data structure migrations.
js/data-store.js
js/data-store.js
var bb = bb || {}; bb.DataStore = function() { var persistedData = window.localStorage.getItem('budgetAppData'); if (persistedData == undefined) { this.data = { 'accounts': {}, 'categories': {} }; this.saveData(); } else { this.data = JSON.parse(persistedData); } }; ...
JavaScript
0
@@ -163,157 +163,162 @@ his. -data = %7B%0D%0A 'accounts': %7B%7D,%0D%0A 'categories': %7B%7D%0D%0A %7D;%0D%0A this.saveData();%0D%0A %7D else %7B%0D%0A this.data = JSON.parse(persistedData);%0D%0A %7D%0D%0A%7D +initializeData();%0D%0A %7D else %7B%0D%0A this.data = JSON.parse(persistedData);%...
2fe9f88bfe6002b650394c9d224084080b4aab34
Update javascript.js
js/javascript.js
js/javascript.js
var nombre; nombre = prompt ("ingresa tu nombre"); if (nombre == "Bikoda") { alert(" Bienvenido Sir Bikoda") } else if (nombre == "benjamin"){ alert("Hola gordon!") } else { alert("Bienvenido") }
JavaScript
0.000001
@@ -169,18 +169,176 @@ %0A%7D else -%7B%0A +if (nombre == %22david%22)%7B%0A%09alert(%22Sup ladiesman%22)%0A%7D else if (nombre == %22mario%22)%7B%0A%09alert(%22Hola primaso!%22)%0A%7D else if (nombre == %22sol%22)%7B%0A%09alert(%22Hi swettie!%22)%0A%7D else %09alert(%22
1bd2cc1da1c8a370e8c212c1cbc2017c5307c302
Update function downloadCard in CardController
js/myapp/card.js
js/myapp/card.js
// ---------------------------------------------------------------- // Card Class class CardModel extends SwitchModel { constructor({ name, lsKeyView, triggerSelector, switchSelector } = {}) { super({ name: name, lsKeyView: lsKeyView, triggerSelector: triggerSelector, s...
JavaScript
0
@@ -2656,16 +2656,23 @@ %E5%AD%98%E5%9C%A8%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82' +, false );%0A @@ -2833,16 +2833,23 @@ %E5%A4%B1%E6%95%97%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82' +, false );%0A @@ -2932,16 +2932,23 @@ %E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82' +, false...
0241ecbac1cd472d8e6701d2ae85fe21cb184c8c
change verification order
js/validation.js
js/validation.js
function validateForm() { var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i; var email = document.forms["attend"]["email"].value; var valid = re.test(email) var name = document.forms["attend"...
JavaScript
0
@@ -374,19 +374,45 @@ -if (z == -1 +%0A if (valid == false %7C%7C name == %22%22 ) %7B%0A @@ -451,35 +451,37 @@ %22form-error-not- -sek +email %22).className = %22 @@ -554,36 +554,15 @@ if ( -valid == false %7C%7C name == %22%22 +z == -1 ) %7B%0A @@ -601,37 +601,35 @@ %22form-error-not- -email +sek %22)...
9d4807a8f930372373b0e3767249b9fac6b525b2
Add fetching api data
PuppyPlayDate/UserDogs.js
PuppyPlayDate/UserDogs.js
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, Navigator, Image, TouchableHighlight } from 'react-native'; var data = [ {name: "Pepito", age: 11, image: "http://www.avatarsdb.com/avatars/cute_puppy_dog.jpg"}, {name: "Link", age: 4, image: "http://w...
JavaScript
0.000001
@@ -168,16 +168,69 @@ tive';%0A%0A +var REQUEST_URL = 'http://localhost:3000/users/19';%0A%0A var data @@ -717,17 +717,16 @@ %0A %7D;%0A -%0A var @@ -887,14 +887,276 @@ ta)%0A - %7D%0A + %7D%0A componentDidMount()%7B%0A this.fetchData();%0A %7D%0A fetchData()%7B%0A fetch(REQUEST_URL)%0A ...