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
fc8c21605af10bb09893a94d2bfc0bf414357ca7
Fix 1
index.js
index.js
var Device = require('./lib/device') , util = require('util') , stream = require('stream') , configHandlers = require('./lib/config-handlers'); // Give our driver a stream interface util.inherits(myDriver,stream); // Our greeting to the user. var DRIVER_INSTALLED = { "contents": [ { "type": "heading", ...
JavaScript
0.000035
@@ -1511,16 +1511,42 @@ ice());%0A +%09device.emit('data', '');%0A %7D);%0A%7D;
636af42c57cf87b32b822c0678ebb36681a075a5
correct create{Read,Write}Stream arguments
index.js
index.js
#! /usr/bin/env node var through = require('through') var split = require('split') var cp = require('child_process') var duplexer = require('duplexer') function makeInject (opts) { return function defaultInject (i) { var k = i[0] var r = i.substring(1).trim() return ( k == '-' ? opts[r] ...
JavaScript
0.000074
@@ -2067,25 +2067,16 @@ urceFile -, 'utf-8' ).pipe(t @@ -2281,17 +2281,8 @@ File -, 'utf-8' ))%0A
3c8494b2151178eb169947e7da0775521e1c2bfd
Add `treeForVendor` and `included` hook implementations.
index.js
index.js
/* eslint-env node */ "use strict"; module.exports = { name: "ember-component-attributes", setupPreprocessorRegistry(type, registry) { registry.add("htmlbars-ast-plugin", { name: "attributes-expression", plugin: require("./lib/attributes-expression-transform"), baseDir: function() { ...
JavaScript
0
@@ -350,12 +350,399 @@ %7D);%0A %7D +,%0A%0A included() %7B%0A this.import('vendor/ember-component-attributes/index.js');%0A %7D,%0A%0A treeForVendor(rawVendorTree) %7B%0A let babelAddon = this.addons.find(addon =%3E addon.name === 'ember-cli-babel');%0A%0A let transpiledVendorTree = babelAddon.transpile...
2e021e2c160189ab38d342a5b605c8c1dbba374a
use the new dial api
index.js
index.js
var EventEmitter = require('events').EventEmitter; var util = require('util'); var mime = require('rest/interceptor/mime'); var Dial = require('dial'); function Chromecast(){ if(!(this instanceof Chromecast)) return new Chromecast(); var self = this; EventEmitter.call(self); self.dial = Dial(); self.di...
JavaScript
0
@@ -69,24 +69,52 @@ e('util');%0A%0A +var rest = require('rest');%0A var mime = r @@ -151,17 +151,17 @@ );%0A%0Avar -D +d ial = re @@ -176,16 +176,387 @@ ial');%0A%0A +function connectionUrl(appInfo)%7B%0A var self = this;%0A%0A var client = rest.chain(mime, %7B mime: 'application/json' %7D);%0A%0A var url = a...
727f0f5a79aaa8df30fff5946b1ee24e408c7a94
Fix Standard coding style
index.js
index.js
var extend = require('util')._extend var Path = require('path') /* * store original global keys */ var blacklist = Object.keys(global) blacklist.push('constructor') /* * default config */ var defaults = { globalize: true, console: true, useEach: false, skipWindowCheck: false, html: "<!doctype html><ht...
JavaScript
0.000052
@@ -1096,18 +1096,16 @@ %7D%0A - require( @@ -1179,16 +1179,21 @@ done %7D) +%0A )%0A%0A f
e006035e59600ce6d510ac70e8a01ebcbc33f2f0
Remove binary name resrictions (#6)
index.js
index.js
'use strict' const strToStream = require('string-to-stream') const spawn = require('child_process').spawn const through = require('through2') const fse = require('fs-extra') const temp = require('temp') const path = require('path') const fs = require('fs') function latex (src, options) { const outputStream = throug...
JavaScript
0
@@ -1250,90 +1250,8 @@ %7D%0A%0A - const isTexCmd = (cmd) =%3E %5B'pdflatex', 'xetex', 'latex'%5D.indexOf(cmd) !== -1%0A%0A @@ -1370,51 +1370,8 @@ :'%0A%0A - cmd = isTexCmd(cmd) ? cmd : 'pdflatex'%0A
9dcd369bcd7529f8c925d82a73111df72fbdd433
Add default prop for page
index.js
index.js
/** * @jsx React.DOM */ var React = require('react'); var Pdf = React.createClass({ getInitialState: function() { return {}; }, componentDidMount: function() { var self = this; PDFJS.getDocument(this.props.file).then(function(pdf) { pdf.getPage(self.props.page).then(function(page) { ...
JavaScript
0
@@ -673,16 +673,75 @@ );%0A %7D,%0A + getDefaultProps: function() %7B%0A return %7Bpage: 1%7D;%0A %7D,%0A render
a9b829d98c601a874547b053893b975f13c7337e
change glob pattern
index.js
index.js
/* * gulp-unused * https://github.com/felixzapata/gulp-unused * * Copyright (c) 2016 Félix Zapata * Licensed under the ISC license. */ 'use strict'; var fs = require('fs'); var path = require('path'); var moment = require('moment'); var R = require('ramda'); var $ = require('gulp-load-plugins'); var glob = req...
JavaScript
0.000009
@@ -1728,19 +1728,16 @@ ptions;%0A - %0A // Get @@ -1786,32 +1786,30 @@ tory%0A glob( -%5B '**/*' -%5D , %7B cwd: opt @@ -1848,13 +1848,17 @@ file -s ) %7B%0A + %0A @@ -1951,16 +1951,14 @@ lob( -%5B '**/*' -%5D , %7B
78abaccea7512a90f4144550382354e1ad7dc526
Fix ESLint errors and warnings
index.js
index.js
var path = require('path') var glob = require('glob') var menubar = require('menubar') var electron = require('electron') var dialog = electron.dialog var jsdom = require('jsdom') var fs = require('fs') var Server = require('electron-rpc/server') var LastfmAPI = require('lastfmapi') var id3 = require('id3js') var deb...
JavaScript
0.000026
@@ -148,37 +148,8 @@ log%0A -var jsdom = require('jsdom')%0A var @@ -317,24 +317,26 @@ %7B %7D%0A -var modules_path +const MODULES_PATH = p @@ -922,24 +922,16 @@ sources( -ev, args ) %7B%0A @@ -944,20 +944,20 @@ ync( -modules_path +MODULES_PATH + ' @@ -1083,16 +1083,54 @@ re(file) + // eslint-disable-li...
1b6ce1873de3e4df914bbb4f752505754ed2d2cd
clean up sync usage
index.js
index.js
'use strict'; const fs = require('fs'); const path = require('path'); const readPkg = require('read-pkg'); const pkgUp = require('pkg-up'); const resolvePkg = require('resolve-pkg'); const DAG = require('dag-map').default; const debug = require('debug')('find-plugins'); function findPlugins(options) { options = opti...
JavaScript
0.000001
@@ -102,41 +102,13 @@ kg') -;%0Aconst pkgUp = require('pkg-up') +.sync ;%0Aco @@ -144,24 +144,62 @@ olve-pkg');%0A +const pkgUp = require('pkg-up').sync;%0A const DAG = @@ -594,21 +594,16 @@ && pkgUp -.sync (options @@ -617,21 +617,16 @@ %7C%7C pkgUp -.sync ();%0A le @@ -657,21 +657,16 @@ readPkg -.sync (p...
18afa515807a719d220aa8ef7b6c436ccd45d6a4
Comment typo.
index.js
index.js
'use strict'; var fs = require('graceful-fs'); var path = require('path'); var extend = require('extend'); var errcode = require('err-code'); var retry = require('retry'); var locks = {}; function acquireLock(file, options, callback, compromised) { var lockfile = file + '.lock'; // Rename tmp file it to loc...
JavaScript
0
@@ -292,29 +292,31 @@ // -Rename tmp file it to +Use mkdir to create the loc
2df741ffb848766b3cb1ac046590ca141cfa98ad
change "dick" to "fett" for "schrift-gewicht"
index.js
index.js
var _ = require('lodash'); var postcss = require('postcss'); // Properties var mapProperties = { 'background-color': 'hintergrund-farbe', 'background-image': 'hintergrund-bild', 'background-position': 'hintergrund-position', 'background-repeat': 'hintergrund-wiederholung', 'background': 'hintergrun...
JavaScript
0.000001
@@ -2905,12 +2905,12 @@ ': ' -dick +fett ',%0A
87ae4b7e2c2ba99c6f3549f82cc4b8305ec32823
Test image tag
index.js
index.js
// pickup - transform RSS or Atom XML to JSON var sax = require('sax') , Transform = require('stream').Transform , mappings = require('./lib/mappings')() , CHANNEL = 'channel' , ITEM = 'item' , FEED = 'feed' , ENTRY = 'entry' , elements = [CHANNEL, ITEM, FEED, ENTRY] module.exports = function () { va...
JavaScript
0.000001
@@ -1993,24 +1993,105 @@ ributes.rel%0A + if (rel === 'payment') %7B%0A key = rel%0A %7D%0A
215a41c36f6b4b675767903c5c00649b4748bb61
fix replicas construction
index.js
index.js
'use strict'; const pgPromise = require('pg-promise'); const StackUtils = require('stack-utils'); const stack = new StackUtils({ cwd: process.cwd(), internals: StackUtils.nodeInternals() }); function indent(str) { return ' at ' + str; } const proxyMethods = [ 'query', 'none', 'one', 'many', 'any', 'oneO...
JavaScript
0.000001
@@ -1028,22 +1028,14 @@ %7B%0A%09%09 -let replicas = +return thi @@ -1051,146 +1051,72 @@ as() -;%0A%0A%09%09if (typeof replicas.then !== 'function') %7B%0A%09%09%09replicas = Promise.resolve(replicas);%0A%09%09%7D%0A%0A%09%09return replicas.then(replicas =%3E %7B%0A%09%09%09if ( +.then(replicas =%3E %7B%0A%09%09%0...
28e4b4af7b75e35bbde45dee745856534bee8034
clean up Sushi#_detectCommand()
index.js
index.js
'use strict'; /** * Dependencies */ var EventEmitter = require('events'); var inherits = require('util').inherits; var minimist = require('minimist'); var each = require('each-series'); /** * Expose Sushi */ module.exports = Sushi; /** * Sushi */ function Sushi () { if (!(this instanceof Sushi)) return ...
JavaScript
0.000017
@@ -1234,17 +1234,16 @@ tions);%0A -%0A var le @@ -1306,24 +1306,49 @@ ngth %3E 0) %7B%0A + // list of arguments%0A var list @@ -1379,29 +1379,8 @@ h--) -;%0A var path = list .joi @@ -1453,52 +1453,106 @@ -var isMatch = path.indexOf(this.commands%5Bi%5D. +// current command name%0A var name...
992a7ebb5380c242200f446b71d652458863a145
Configure database path for use by grunt install.
index.js
index.js
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var _ = require('lodash'); var options = {}, tokens = {}; var webImage = function(webserver) { var webImage = { apache: 'phase2/apache24php55', nginx: 'phase2/nginx16-php55' }; return we...
JavaScript
0
@@ -3169,16 +3169,133 @@ html';%0A%0A + if (!gcfg.project) %7B%0A gcfg.project = %7B%7D;%0A %7D%0A gcfg.project.db = '/opt/backups/latest.sql.gz';%0A%0A if
dc5d536fd774ccbe45e4186f978413d2f931a72d
Clean up logging
index.js
index.js
const _ = require('lodash'); const promise = require('bluebird'); const request = promise.promisify(require('request')); const assert = require('chai').assert; const shortid = require('shortid').generate; const format = require('string-format'); const diff = require('deep-diff'); const DEFAULT_TIMEOUT = 4000; const M...
JavaScript
0
@@ -1216,37 +1216,8 @@ ode%7D -: $%7BJSON.stringify(ret.body)%7D %60);%0A
b0a7ef295e35ae1edf469ba188171d16ee499795
Improve percentages figures (#45)
index.js
index.js
'use strict'; const escapeStringRegexp = require('escape-string-regexp'); const {platform} = process; const main = { tick: '✔', cross: '✖', star: '★', square: '▇', squareSmall: '◻', squareSmallFilled: '◼', play: '▶', circle: '◯', circleFilled: '◉', circleDotted: '◌', circleDouble: '◎', circleCircle: 'ⓞ', ...
JavaScript
0.000004
@@ -2014,13 +2014,20 @@ lf: -'1/2' +main.oneHalf ,%0A%09o @@ -2039,13 +2039,21 @@ rd: -'1/3' +main.oneThird ,%0A%09o @@ -2067,49 +2067,75 @@ er: -'1/4',%0A%09oneFifth: '1/5',%0A%09oneSixth: '1/6' +main.oneQuarter,%0A%09oneFifth: main.oneFifth,%0A%09oneSixth: main.oneSixth ,%0A%09o @@ -2168,13 +2168,22 @@ th: ...
af2e53bc9cf398e4113185bd65a1a7fc2f939cc9
Use more generic `exec`, and fix branch case
index.js
index.js
'use strict'; var copy = require('es5-ext/object/copy') , isCallable = require('es5-ext/object/is-callable') , callable = require('es5-ext/object/valid-callable') , ExecBatch = require('exec-batch'); module.exports = function (branch/*, options, cb*/) { var options = arguments[1], cb = arguments[2], r...
JavaScript
0
@@ -11,16 +11,68 @@ t';%0A%0Avar + lock = require('es5-ext/function/#/lock')%0A , copy @@ -229,42 +229,235 @@ , -ExecBatch = require('exec-batch') +escape = require('es5-ext/reg-exp/escape')%0A , exec = require('exec-batch/exec')%0A%0A , tracksBranch;%0A%0AtracksBranch = function (out, nam...
ce43382f0bbae03ae7fb3752d20b32ab60cc5b2b
work in modern browsers too
index.js
index.js
var Parser = require('jsonparse') , Stream = require('stream').Stream /* the value of this.stack that creationix's jsonparse has is weird. it makes this code ugly, but his problem is way harder that mine, so i'll forgive him. */ exports.parse = function (path) { var stream = new Stream() var pars...
JavaScript
0
@@ -1371,25 +1371,241 @@ ypeof chunk) + %7B %0A + if ('undefined' === typeof Buffer) %7B%0A var buf = new Array(chunk.length)%0A for (var i = 0; i %3C chunk.length; i++) buf%5Bi%5D = chunk.charCodeAt(i)%0A chunk = new Int32Array(buf)%0A %7D else %7B%0A chunk @@ -1624,16 +1624,...
46dfb7898776a5b0d1f2b6101628346b3efb91c6
move arrayExpand flag to _if options
index.js
index.js
var _ = require('lodash'); var h = require('highland'); var File = require('vinyl'); var sheets = require('stream-google-spreadsheet'); var es = require('vinyl-elasticsearch'); var s3 = require('vinyl-s3'); var channels = { 'google-sheets': sheets, googleSheets: sheets, elasticsearch: es, s3: s3, echo: {...
JavaScript
0.000001
@@ -1948,22 +1948,19 @@ if (! -recipe +_if .arrayEx
4b8774b0f12c50156ee00023ddf470797c93cdbf
use native sync exec
index.js
index.js
var path = require('path') var fs = require('fs') var logo = require('nearform-terminal-logo').toTTY var exec = require('exec-sync') function arg (p) { return !!~arg.s.indexOf(p) } module.exports = function (argv) { var scope arg.s = argv._ arg.v = argv.version || argv.v scope = argv.scope || '@nearform' ...
JavaScript
0.000001
@@ -118,19 +118,32 @@ re(' +child_process'). exec --s +S ync -') %0A%0Afu
ff8919a3ff9fa4148c2f0c93b3b39bc0b15a845e
upgrade to docker
test/walletrpc-integration/test_request_chain_fee_increase.js
test/walletrpc-integration/test_request_chain_fee_increase.js
const {test} = require('@alexbosworth/tap'); const tinysecp = require('tiny-secp256k1'); const {broadcastChainTransaction} = require('./../../'); const {chainSendTransaction} = require('./../macros'); const {createChainAddress} = require('./../../'); const {generateBlocks} = require('./../macros'); const {requestChain...
JavaScript
0
@@ -4,42 +4,59 @@ st %7B -test%7D = require('@alexbosworth/tap +spawnLightningCluster%7D = require('ln-docker-daemons ');%0A @@ -61,24 +61,22 @@ ;%0Aconst -tinysecp +%7Btest%7D = requi @@ -83,22 +83,25 @@ re(' -tiny-secp256k1 +@alexbosworth/tap ');%0A @@ -166,35 +166,33 @@ const %7Bc -hainSendTransaction +reat...
bfc985f077a01522d9a0d9f7eb9350d419b72576
fix Nirmata URL
js/jz.js
js/jz.js
function item(url, image, imageWidth, imageHeight, alt, special) { this.url = url; this.image = image; this.imageWidth = imageWidth; this.imageHeight = imageHeight; this.alt = alt; this.special = special; } var items = [ new item('https://www.facebook.com/jordan.zimmerman', 'FB-f-Logo__blue...
JavaScript
0.000003
@@ -1084,11 +1084,8 @@ mata -oss .git
52b592122b6a49da78cc7fc1ee31cdd2d9102236
Clean up button attrs
pollard/components/NavBar.js
pollard/components/NavBar.js
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; class NavBar extends Component { render() { const { viewSetlist, } = this.props; /** * If we have an existing playlist for this session * use that id in the nav link. ...
JavaScript
0
@@ -712,22 +712,50 @@ tton - type=%22button%22 +%0A type=%22button%22%0A cla @@ -786,16 +786,30 @@ llapsed%22 +%0A data-to @@ -823,16 +823,30 @@ ollapse%22 +%0A data-ta @@ -859,16 +859,30 @@ #navbar%22 +%0A aria-ex @@ -895,16 +895,30 @@ =%22f...
4984133545d6be8554e724bab90918d170afd538
Add modernizr-csspositionsticky
build.js
build.js
({ baseUrl: "src", out: "bundle.js", name: "almond", include: "patterns", wrap: { endFile: "src/wrap-end.js" }, paths: { // Externals "Markdown.Converter": "legacy/Markdown.Converter", "Markdown.Extra": "legacy/Markdown.Extra", "Markdown.Sanitizer": ...
JavaScript
0.000005
@@ -1920,24 +1920,128 @@ modernizr%22,%0A + %22modernizr-csspositionsticky%22: %22bower_components/modernizr/feature-detects/css-positionsticky%22,%0A %22out
df74cd0adf171a936b07e1093169e59cbe39ccf3
Fix missing template data
build.js
build.js
'use strict'; const fs = require('fs'); const ejs = require('ejs'); const moment = require('moment-timezone'); function generateDocument (products, template = 'default', path = './build/') { return new Promise((resolve, reject) => { const data = { products, updated: moment().tz('Europe/Tallinn').for...
JavaScript
0.001395
@@ -413,11 +413,12 @@ ta, -%7B %7D +data , (e
a1ecfa75e75cc032154ff0c033fe8b96249fdb52
add external
build.js
build.js
var fs = require('fs'); var rollup = require('rollup'); var uglify = require('uglify-js'); var babel = require('rollup-plugin-babel'); var package = require('./package.json'); var version = process.env.VERSION || package.version; var banner = "/*! UIkit " + version + " | http://www.getuikit.com | (c) 2014 - 2016 YOOthe...
JavaScript
0.000015
@@ -393,16 +393,40 @@ uikit',%0A + external: %5B'jquery'%5D,%0A plugin
66c8cfdb569dd36ab9566917e84ea3edc68f5d7f
Add build script
build.js
build.js
//
JavaScript
0.000001
@@ -1,2 +1,450 @@ -// +const UglifyJS = require(%22uglify-js%22);%0Aconst fs = require('fs');%0Aconst opts = %7B%0A%09toplevel: true,%0A output: %7B%0A beautify: false,%0A preamble: %22/* UltraType extension build */%22%0A %7D%0A%7D;%0A%0Avar OUT = fs.readFileSync('./OUT/OUT.js', 'utf8');%0AOUT = OU...
4d50aa4cdd4878f28a31eac84089ba15b1109dc2
make boxes the same size [#218]
ui/app/components/help/Index.js
ui/app/components/help/Index.js
import React from "react"; import { Link } from "react-router-dom"; import { Jumbotron, Panel, Row, Col } from "react-bootstrap"; export default () => <div className="help"> <Jumbotron className="hero center"> <h1>Welcome</h1> <p> The Export Tool creates up-to-date OSM extracts in various fil...
JavaScript
0
@@ -749,19 +749,48 @@ to -get started +start using OSM data in your GIS program .%0A @@ -1710,16 +1710,30 @@ fy what +OpenStreetMap features @@ -1768,230 +1768,40 @@ Tool -.%0A %3C/p%3E%0A %3Cul%3E%0A %3Cli%3E%3CLink to=%22/learn/feature_selections/#tagtree%22%3ETag T...
76d4115704b6b6bf4130f74ac017e16d736cc1c0
Fix issue where long teacher bios would hide the message button.
ui/shared/k5/react/StaffInfo.js
ui/shared/k5/react/StaffInfo.js
/* * Copyright (C) 2021 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
JavaScript
0.99984
@@ -2630,12 +2630,14 @@ ould -Grow +Shrink pad
cd275738fc52c26e9d2e8b903cd4ecb048b68ba7
Remove extraneous lines from engine class
js/engine.js
js/engine.js
function Engine(InputManager, GraphicsManager, Tetris, Queue, config) { this.im = new InputManager(); this.gm = new GraphicsManager(); this.tt = new Tetris(); this.cf = config; this.moves = new Queue(32); this.activeGame; // boolean this.loopId; // id of a running loop ...
JavaScript
0.000003
@@ -160,25 +160,24 @@ w Tetris();%0A -%0A this.cf @@ -186,17 +186,16 @@ config;%0A -%0A this @@ -218,17 +218,16 @@ ue(32);%0A -%0A this @@ -238,16 +238,28 @@ iveGame; + @@ -297,16 +297,28 @@ + + // id of @@ -347,16 +347,28 @@ is.prev; + ...
9fef89135901c12a125687981a960a95caef1002
Fix lint error
routes/lighthouse.js
routes/lighthouse.js
const express = require('express'); const router = express.Router(); const chromeLauncher = require('chrome-launcher'); const lighthouse = require('lighthouse'); const Printer = require('lighthouse/lighthouse-cli/printer.js'); function launchChromeAndRunLighthouse(url, flags = {}, config = null) { return chromeLaunc...
JavaScript
0.000035
@@ -1824,16 +1824,17 @@ de.html) +; %0A %7D
6e8d2a2f6587b964d2ded8149898728686a282bf
Fix ordering on user list page
public/app/controllers/mvUserListController.js
public/app/controllers/mvUserListController.js
angular.module('app').controller('mvUserListController', function ($scope, mvUser) { $scope.users = mvUser.query(); $scope.sortOptions = [{ value: "username", text: "Sort by username" }, { value: "registrationDate", text: "Sort by registration date" }, { value: "role", text: "Sort by ro...
JavaScript
0.000091
@@ -209,16 +209,18 @@ value: %22 +- registra @@ -287,16 +287,18 @@ value: %22 +- role%22,%0A
08a5cc95644227663ebca6b4df567d8bdb61b079
Remove blog link
routes/middleware.js
routes/middleware.js
var _ = require('underscore'), querystring = require('querystring'), keystone = require('keystone'); /** Initialises the standard view locals */ exports.initLocals = function(req, res, next) { var locals = res.locals; locals.navLinks = [ { label: 'Home', key: 'home', href: '/' }, { label: 'About', ke...
JavaScript
0
@@ -480,12 +480,13 @@ l: ' -Blog +Links ',%09%09 @@ -491,20 +491,21 @@ %09%09key: ' -blog +links ',%09%09href @@ -512,12 +512,13 @@ : '/ -blog +links ' %7D,
337e2b0c9ff44ac2b7a156137a6815b8ec7449e3
fix FlowRouter example for when analytics.js is blocked by adblocker
examples/flow-router/flow-router.js
examples/flow-router/flow-router.js
if (Meteor.isClient) { FlowRouter.route('/', { action: function(params) { BlazeLayout.render("mainLayout", {main: "one"}); }, name: "Home" // used for track }); FlowRouter.route('/one', { action: function(params) { BlazeLayout.render("mainLayout", {main: "one"}); }, name: "On...
JavaScript
0
@@ -681,18 +681,16 @@ acking%0A%0A -%0A%0A Templa @@ -796,41 +796,261 @@ elf. -currentIdentity = new ReactiveVar +log = new ReactiveVar(%5B%5D);%0A self.currentIdentity = new ReactiveVar(%22No Identity Set%22);%0A%0A // We don't want to register analytics if it has been blocked by an adblocker.%0A if (typ...
c43992c944cf19c585ac1769d8727fdc135b144e
Update reset message.
assets/js/components/reset-button.js
assets/js/components/reset-button.js
/** * ResetButton component. * * Site Kit by Google, Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * ...
JavaScript
0
@@ -2674,18 +2674,8 @@ ing -this site will @@ -2708,34 +2708,98 @@ ices -. After disconnecting, you + for all users who have Site Kit set up. If you choose to proceed, you and all other users wil @@ -2821,19 +2821,20 @@ thorize -you +thei r access @@ -2845,16 +2845,20 @@ restore +the service.
0e70a13b8d41886e4b99374895c6e5172138b10d
Fix Pager
scripts/components/_blocks/Pager.js
scripts/components/_blocks/Pager.js
import PropTypes from 'prop-types' import React from 'react' import { withRouter } from 'react-router' import styles from './Pager.css' const PAGE_SEPARATOR = 'page=' function extractPage(search) { return search.split(PAGE_SEPARATOR)[1] } /** * Used to control pages for list of items */ class PagerContainer exten...
JavaScript
0
@@ -962,16 +962,46 @@ m) =%3E %7B%0A +%09%09const %7Bpage%7D = this.state;%0A%0A %09%09return
b6c4cd0bb836fc3b6f7433a3604eb5ae0cb20bf9
apply filters - wip
examples/faceted-search/webapp/js/Page.js
examples/faceted-search/webapp/js/Page.js
/** @jsx React.DOM */ define([ 'underscore', 'react', 'jquery', 'kendo', 'wingspan-forms', 'text!textassets/types/Contact.json', 'text!textassets/contacts.json', 'underscore-string' ], function (_, React, $, kendo, Forms, ContactModel, contacts) { 'use strict'; var ContactModel = JSON.parse(Con...
JavaScript
0
@@ -1067,110 +1067,8 @@ %7D%5D;%0A - //var data = _.filter(this.state.data, function (record) %7B return record.visible; %7D);%0A @@ -1226,29 +1226,27 @@ -// var -data = _.filter +filters = _.map (thi @@ -1253,20 +1253,23 @@ s.state. -data +filters , functi @@ -1276,99 +1276,440 @@ on ...
fc665d9c4cb6d61b271abfe7597b0a1bfbb79d26
Update : Presentation of the "products" page.
assets/static/js/modules/products.js
assets/static/js/modules/products.js
/** * Jean-Pierre [Prototype] * A Raspberry Pi robot that helps people make their grocery list. * Matteo Cargnelutti - github.com/matteocargnelutti * * modules/products.js - Products page handler */ //----------------------------------------------------------------------------- // Products Prototype //-----------...
JavaScript
0
@@ -991,24 +991,104 @@ rcode%5D.name%0A + if( name == '???' ) %7B%0A name = barcode;%0A %7D%0A @@ -1406,56 +1406,8 @@ %3E';%0A - html += '%3Ch3%3E'+barcode+'%3C/h3%3E';%0A
a8347f9f072ddb1c76e412247329e978d1a451fd
Fix request for comment thread count to use DISQUS_UUID in thread identifier
www/js/comments.js
www/js/comments.js
var EVENT_CATEGORY = APP_CONFIG.PROJECT_SLUG; var $comments = null; var $commentButton = null; var $commentCount = null; var fullpage = false; var disqusEndpoint = "https://disqus.com/api/3.0/threads/details.jsonp?api_key=tIbSzEhGBE9NIptbnQWn4wy1gZ546CsQ2IHHtxJiYAceyyPoAkDkVnQfCifmCaQW&thread%3Aident=" var commentCount...
JavaScript
0
@@ -4796,24 +4796,46 @@ ame + %22- -comments +%22 + APP_CONFIG.DISQUS_UUID + %22 &forum=%22
34e084b1afd6d52483f081a80c7ac9e61b428c6b
Fix rejudge a AC submission to non-AC cause link to submission 0 in ACM contest
models/contest_player.js
models/contest_player.js
/* * This file is part of SYZOJ. * * Copyright (c) 2016 Menci <huanghaorui301@gmail.com> * * SYZOJ 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...
JavaScript
0
@@ -4752,24 +4752,91 @@ dge_id = 0;%0A + this.score_details%5Bjudge_state.problem_id%5D.accepted = 0;%0A fo
dcd48d19064a2e6d7a0406a44344c3a1700d034a
rename data service to events service
www/js/services.js
www/js/services.js
angular.module('starter.services', []) .factory('Chats', function() { // Might use a resource here that returns a JSON array // Some fake testing data var chats = [{ id: 0, name: 'Ben Sparrow', lastText: 'You on your way?', face: 'https://pbs.twimg.com/profile_images/514549811765211136/9SgAuHeY....
JavaScript
0.999866
@@ -1319,20 +1319,22 @@ actory(' -data +events ', funct
a6d1c76f49a2cf2a38ade34f7c532d128309ea95
Add login success message
src/app/auth/login-form.directive.js
src/app/auth/login-form.directive.js
(function() { 'use strict'; var app = angular.module('radar.auth'); app.directive('loginForm', ['session', 'authService', '$state', function(session, authService, $state) { return { restrict: 'A', scope: {}, templateUrl: 'app/auth/login-form.html', link: function(scope) { var...
JavaScript
0
@@ -73,12 +73,17 @@ %0A%0A -app. +function dire @@ -92,34 +92,22 @@ ive( -'loginForm', %5B' +%0A session -' , -' auth @@ -117,58 +117,66 @@ vice -' , -' $state -' , -function(session, authService, $state +hasPermissionForAnyGroup, notificationService%0A ) %7B%0A @@ -852,16 +852,87 @@ %7D%0A...
d1641e3dcfef2f114669bdef7b98b8c4ecb1f4a4
check production rather than test or dev
src/lib/stats.js
src/lib/stats.js
import os from "os" import _ from "lodash" import StatsD from "hot-shots" import config from "config" import { error } from "./loggers" const { NODE_ENV, ENABLE_METRICS, STATSD_HOST, STATSD_PORT } = config const isTest = NODE_ENV === "test" const isDev = NODE_ENV === "development" const enableMetrics = ENABLE_METRICS...
JavaScript
0
@@ -209,20 +209,20 @@ const is -Test +Prod = NODE_ @@ -234,53 +234,18 @@ == %22 -test%22%0Aconst isDev = NODE_ENV === %22development +production %22%0Aco @@ -667,23 +667,15 @@ ck: -isDev %7C%7C isTest +!isProd ,%0A @@ -778,25 +778,14 @@ && -! is -Dev && !isTest +Prod ) %7B%0A
bea6afb52ab1df2b1842ec43e2107533f1c3c11e
fix row width (on resize)
nativeGrid/views/behaviors/NativeGridItemViewBehavior.js
nativeGrid/views/behaviors/NativeGridItemViewBehavior.js
/** * Developer: Grigory Kuznetsov * Date: 17.08.2015 * Copyright: 2009-2015 Comindware® * All Rights Reserved * * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Comindware * The copyright notice above does not evidence any * actual or intended publication of such source code. */ ...
JavaScript
0
@@ -3369,32 +3369,83 @@ addingRight;%0D%0A%0D%0A + fullWidth = Math.ceil(fullWidth);%0D%0A @@ -3445,33 +3445,38 @@ this.$el. -w +outerW idth(fullWidth);
3813d67ad7fa72adb92b5e51a4a63c0e12061af7
remove console log
SingularityUI/app/actions/ui/taskDetail.es6
SingularityUI/app/actions/ui/taskDetail.es6
import { FetchTaskHistory, FetchDeployForRequest } from '../api/history'; import { FetchTaskStatistics, FetchTaskCleanups } from '../api/tasks'; import { FetchPendingDeploys } from '../api/deploys'; import { FetchTaskS3Logs } from '../api/logs'; import { FetchTaskFiles } from '../../actions/api/sandbox'; export const ...
JavaScript
0.000003
@@ -1193,40 +1193,8 @@ %3E %7B%0A - console.log('polling stats');%0A co
4869779895909c7cdfda0189cc98b74505787751
Change parseInt to parseFloat
src/rules/number-zero-length-no-unit/index.js
src/rules/number-zero-length-no-unit/index.js
import { findLastIndex, findIndex, range } from "lodash" import { ruleMessages, styleSearch } from "../../utils" export const ruleName = "number-zero-length-no-unit" export const messages = ruleMessages(ruleName, { rejected: "Unexpected unit on zero length number", }) // Only length units can be left off ...
JavaScript
0.000015
@@ -2868,18 +2868,20 @@ f (parse -In +Floa t(valueW
ff7571137bed3dccc94d7b54bb28abafcddfe342
Change default value of session start and end time to null.
app/models/session.js
app/models/session.js
import attr from 'ember-data/attr'; import moment from 'moment'; import ModelBase from 'open-event-frontend/models/base'; import { belongsTo, hasMany } from 'ember-data/relationships'; import { computedDateTimeSplit } from 'open-event-frontend/utils/computed-helpers'; const detectedTimezone = moment.tz.guess(); expor...
JavaScript
0
@@ -267,52 +267,8 @@ ';%0A%0A -const detectedTimezone = moment.tz.guess();%0A %0Aexp @@ -425,67 +425,12 @@ =%3E -moment.tz(detectedTimezone).add(1, 'months').startOf('day') +null %7D), @@ -489,71 +489,12 @@ =%3E -moment.tz(detectedTimezone).add(1, 'months').hour(17).minute(0) +null %7D),
878c17ed542a1d70a6dd65ef120bd1ea719bc470
improve escape handling
js/popups.js
js/popups.js
define(function() { "use strict"; var confirmTemplate = '<div class="popup">' + ' <div>' + ' <div class="popup-title">{title}</div>' + ' <div class="popup-content">{message}</div>' + ' <div class="popup-buttons"><button id="popup-yes">Yes</button><button id=...
JavaScript
0.000001
@@ -1493,24 +1493,88 @@ pup-veil%22);%0A + document.removeEventListener(%22keydown%22, escapeHandler);%0A docu @@ -2263,58 +2263,9 @@ %7D%0A - %0A - function registerEscapeKey(method) %7B%0A @@ -2288,28 +2288,24 @@ andler(e) %7B%0A - if ( @@ -2330,36 +2330,32 @@ ) %7...
039ca46f5e1b60aed8817d417f834da021ebd499
Improve the scrapping of the ews
app/scrap/articles.js
app/scrap/articles.js
var osmosis = require('osmosis'); osmosis .get('http://www.emi-bg.com/index.php?page=1&class=3') .paginate('.cat_stranicirane > span:not(.tochki_div):first + a') .follow('.item_block > .cat_title > p.cat_name > a') .set({ "title": { "bg": ".news_header > p"}, "details": ".div_pod > .cat_autor", "html": {"bg": "....
JavaScript
0.000025
@@ -31,17 +31,290 @@ ');%0A -%0Aosmosis%0A +var _ = require(%22lazy.js%22);%0Avar moment = require(%22moment-timezone%22);%0Avar ObjectId = require(%22bson-objectid%22);%0Avar Rx = require(%22rx%22);%0Avar db = require('mongoskin').db('mongodb://localhost:27017/test');%0A%0Avar newsStream = function() %7B%0A var news...
899d5472899c79b697440ccb0403838e814b345b
Take n + 1.
js/pushup.js
js/pushup.js
jQuery(function( $ ){ // Mobile Nav $('#mobile-nav .icon-menu').click( function(){ $('.genesis-nav-menu .menu-item').slideToggle(); } ); }); ;(function($) { // DOM Ready $(function() { // Binding a click event // From jQuery v.1.7.0 use .on() i...
JavaScript
0.996551
@@ -780,17 +780,16 @@ $(' -# .close') @@ -820,174 +820,8 @@ j) %7B -%0A%0A // Prevents the default action to be triggered. %0A e.preventDefault();%0A%0A // Triggering bPopup when click event is fired %0A @@ -869,25 +869,24 @@ ().close();%0A -%0A
22a02811de1d3e8d1398c8d35f2063f89554fc8e
Update vendor.js
app/scripts/vendor.js
app/scripts/vendor.js
import '@babel/polyfill';
JavaScript
0.000001
@@ -1,8 +1,61 @@ +// If you use usage in babelrc dont import polyfilll import ' @@ -71,8 +71,9 @@ lyfill'; +%0A
cb707a56de89bbeb0681e67c62922c358e18105f
Fix errors involving removing the loading placeholder
app/scripts/webcam.js
app/scripts/webcam.js
'use strict'; (function() { // GetUserMedia is not yet supported by all browsers // Until then, we need to handle the vendor prefixes navigator.getMedia = ( navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || ...
JavaScript
0
@@ -968,21 +968,239 @@ Elem -, videoStream + = null,%0A videoStream = null,%0A placeholder = null;%0A%0A var _removeDOMElement = function _removeDOMElement(DOMel) %7B%0A if (DOMel) %7B%0A angular.element(DOMel).remove();%0A %7D%0A %7D ;%0A%0A @@ -1438,...
15d680745b0767be2ab1325ccec8684d73fdc828
更新 搜索建议 接口
module/search_suggest.js
module/search_suggest.js
// 搜索建议 module.exports = (query, request) => { const data = { s: query.keywords || '' } return request( 'POST', `https://music.163.com/weapi/search/suggest/web`, data, {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} ) }
JavaScript
0
@@ -182,11 +182,15 @@ est/ -web +keyword %60, d
7aa01f2bd26ea29833cae4be8a912c486b720fb5
Comment out filters url sync tests.
rd_ui/test/unit/test_visualization_renderer.js
rd_ui/test/unit/test_visualization_renderer.js
'use strict'; describe('VisualizationRenderer', function() { var element; var scope; var filters = [{ "name": "name::filter", "friendlyName": "Name", "values": ["test@example.com", "amirn@example.com"], "multiple": false }]; beforeEach(module('redash', 'redashMocks')); // loading templat...
JavaScript
0
@@ -1473,24 +1473,26 @@ ;%0A %7D);%0A%0A%0A +/* describe('UR @@ -2502,13 +2502,15 @@ );%0A %7D); +*/ %0A%7D);%0A
6e44d16a296d6ac2ed8ae1b633b383d0bceb08ba
verify is curPhoneNumber exists before fetching
js/script.js
js/script.js
/** * ownCloud - ocsms * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Loic Blot <loic.blot@unix-experience.fr> * @copyright Loic Blot 2014 */ // Some global vars to improve performances var selectedConversation = null; var curPhoneNumb...
JavaScript
0.000002
@@ -577,24 +577,125 @@ unction() %7B%0A +%09// if no conversation selected, then don't fetch page%0A%09if (curPhoneNumber == null) %7B%0A%09%09return;%0A%09%7D%0A%09%0A %09$.getJSON(O
21da924fe1b6d724384419a8734f57daafa2ccea
Update script.js
js/script.js
js/script.js
var script = document.createElement('script'); script.src = 'http://code.jquery.com/jquery-1.11.0.min.js'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); (function(window, document, undefined) { window.onload = init; function init() { var canvas = documen...
JavaScript
0.000002
@@ -1392,14 +1392,12 @@ y, -10, 10 +9, 9 );%0A @@ -1510,17 +1510,17 @@ al(loop, -2 +1 0); %7D);%0A
e667161efcaba956ff6a97998a95eb4db5e208a2
Fix css order
js/script.js
js/script.js
(function ($) { "use strict"; function segment(url) { return url.replace(/\/$/, "").split("/"); } function compareSegment(base, current) { var i = -1, l = current.length, match; while (++i < l) { if (base[i] === current[i] && (i + 1) >= l) { ...
JavaScript
0.952006
@@ -1408,18 +1408,19 @@ $(head). -a p +re pend($(%22
b6c3904724f5074bcd1e16d6fcb7bbe4aff5a93e
handle empty string
js/script.js
js/script.js
var customKey = function() { var person = prompt("Enter custom text", "Nag a ram!"); if (person != null) { $('<option value="'+person+'">'+person+'</option>').insertBefore($('option[value="0000"]')); $('#key').val(person); $('#user-input').attr('placeholder', '').val('').focus(); $...
JavaScript
0.999999
@@ -23,18 +23,16 @@ on() %7B%0A%0A - var pe @@ -82,18 +82,16 @@ am!%22);%0A%0A - if (pe @@ -111,18 +111,16 @@ %7B%0A%0A - $('%3Copti @@ -134,28 +134,36 @@ e=%22' -+ + + person -+ + + '%22%3E' -+ + + person -+ + + '%3C/o @@ -213,26 +213,24 @@ %22%5D'));%0A%0A - $('#key').va @@ -237,...
d2e7c407a3369ea884a2f80d1ecba000461cb401
fix eslint issues
server/app/controllers/documents.js
server/app/controllers/documents.js
import { Document } from '../../models'; module.exports = { /** * Create a new document * @param {Object} req Request object * @param {Object} res Response object * @returns {Object} - Returns response object */ create(req, res) { return Document.create({ title: req.body.title, cont...
JavaScript
0.000001
@@ -3790,16 +3790,17 @@ ).send(%7B + error: ' @@ -3813,18 +3813,18 @@ denied! - ' + %7D);%0A @@ -4677,16 +4677,17 @@ %0A %7D + %7D;%0A %7D
9c0a70ed434669ec896c4e2b1b3eb5efb25089f0
fixed bug where if statement would not return false
js/script.js
js/script.js
var addTodo = document.querySelector('.todoButton'); addTodo.addEventListener('click', function(){ var todoList = document.querySelector('#todoList'); userInput = document.querySelector('#todoValue'); // MOVED .VALUE METHOD FROM USERINPUT VARIABLE AND JUST USE IT WHERE VALUE IS NEEDED. THIS ALLOWS FOR RESETTING ...
JavaScript
0.998834
@@ -695,16 +695,22 @@ serInput +.value === '')
e7b7deb5ac619eca9bb6acc79e5b89e77ae475df
update project model
server/components/projects/model.js
server/components/projects/model.js
var mongoose = require('mongoose') , Schema = mongoose.Schema , slug = require('../../../shared/slug'); var ProjectSchema = new Schema({ body: String, github: String, image: { thumbnail: String, // 150 x 150 background: { desktop: String, // 1340 x 700 mobile: String, // 480 x 340 m...
JavaScript
0
@@ -151,16 +151,33 @@ String,%0A + color: String,%0A github @@ -205,17 +205,58 @@ -thumbnail +background: %7B%0A repeat: Boolean,%0A default : St @@ -268,35 +268,17 @@ // -15 +48 0 x -150%0A background: %7B +340 %0A @@ -315,43 +315,8 @@ 700%0A - mobile: String, // 480 x 340%0A ...
4fed0d850abc25524c62fd79690349627cf52120
Update upvote.js
js/upvote.js
js/upvote.js
var Upvote = (function (window, document) { that = this; // endEvent = hasTouch ? 'touchend' : 'mouseup', Upvote = function (opts) { that = this; this.current_category = 'us'; // --------------------------------------------------------- // Muench launch // -------------------------------...
JavaScript
0.000002
@@ -832,16 +832,52 @@ false);%0A +%09%09%0A%09this.fn_hide_rendering_icons();%0A %0A @@ -1060,32 +1060,232 @@ ------%0A %0A + fn_hide_rendering_icons: function() %7B%0A %09%0A %09setTimeout(function() %7B%0A %09%09$('.rendering-container').addClass('display-none');%0A ...
47fc18ed234093a4d2a1bfb244f2f01893562894
Fix channel view
modules_extra/channel.js
modules_extra/channel.js
var h = require('hyperscript') var u = require('../util') var pull = require('pull-stream') var Scroller = require('pull-scroll') var mfr = require('map-filter-reduce') //var plugs = require('../plugs') //var message_render = plugs.first(exports.message_render = []) //var message_compose = plugs.first(exports.message_...
JavaScript
0.000001
@@ -167,281 +167,8 @@ ')%0A%0A -//var plugs = require('../plugs')%0A//var message_render = plugs.first(exports.message_render = %5B%5D)%0A//var message_compose = plugs.first(exports.message_compose = %5B%5D)%0A//var sbot_log = plugs.first(exports.sbot_log = %5B%5D)%0A//var sbot_query = plugs.first(exports.sbot_query =...
6a02cfd389b3633637eff9a2d7d29a2271681c74
Move starting location a little so Wick Sports Ground is visible
src/app/controllers/MapController.js
src/app/controllers/MapController.js
(function(){ angular .module('app') .config(function(uiGmapGoogleMapApiProvider) { uiGmapGoogleMapApiProvider.configure({ // key: 'your api key', v: '3.20', //defaults to latest 3.X anyhow libraries: 'weather,geometry,visualization' ...
JavaScript
0
@@ -1152,11 +1152,9 @@ -2.5 -879 +3 %7D,
796e80b6abb83bd9cb8e830664c54d26d38a935a
make enable routine independent of images used
console/src/com/exedio/cope/console/schema.js
console/src/com/exedio/cope/console/schema.js
function checkAll(checkboxName) { var checkboxes = document.body.getElementsByTagName("input"); for(j=0; j<checkboxes.length; j++) { var checkbox = checkboxes[j]; if(checkbox.type=="checkbox" && checkbox.name==checkboxName) { checkbox.checked = true; } } } function togTab(table) { var bodyElement ...
JavaScript
0.000002
@@ -526,58 +526,8 @@ rc;%0A -%09var switchPart = switchSrc.lastIndexOf(%22/%22) + 1;%0A %09if( @@ -552,33 +552,35 @@ g(switch -Part)==%22checkfals +Src.length-8)==%22tru e.png%22)%0A @@ -612,16 +612,13 @@ nt, - %22block +%22none %22);%0A @@ -635,39 +635,35 @@ ay(dropElement, - %22inli +%22no ne%22);%0A%09%0...
546a6787123156b39c9b7ac7c518e09edeaf9512
Add R language key for matrix column
app/utils/keys-map.js
app/utils/keys-map.js
import Ember from 'ember'; var configKeys, configKeysMap, languageConfigKeys; languageConfigKeys = { go: 'Go', php: 'PHP', node_js: 'Node.js', perl: 'Perl', perl6: 'Perl6', python: 'Python', scala: 'Scala', smalltalk: 'Smalltalk', ruby: 'Ruby', d: 'D', julia: 'Julia', csharp: 'C#', mono: 'Mo...
JavaScript
0.000001
@@ -587,16 +587,26 @@ 'Xcode' +,%0A r: 'R' %0A%7D;%0A%0Acon
05037230d1df04f2dad91630d8c348a380568d70
Add handling for xcode_scheme language key (#1658)
app/utils/keys-map.js
app/utils/keys-map.js
import { merge } from '@ember/polyfills'; let configKeys, configKeysMap, languageConfigKeys; languageConfigKeys = { go: 'Go', php: 'PHP', node_js: 'Node.js', perl: 'Perl', perl6: 'Perl6', python: 'Python', scala: 'Scala', smalltalk: 'Smalltalk', smalltalk_config: 'Config', ruby: 'Ruby', d: 'D', ...
JavaScript
0
@@ -655,16 +655,48 @@ Xcode',%0A + xcode_scheme: 'Xcode scheme',%0A r: 'R'
1ea7166bf3b0d22aa9661f952e6fe4882c949dbc
Remove references to Hupper
chrome/content/hupper/postinstall.js
chrome/content/hupper/postinstall.js
if (typeof Hupper === 'undefined') { var Hupper = {}; } /** * If some data format has been changed, the postinstall * will convert the datas to the newer format * @method postInstall * @namespace Hupper */ Hupper.postInstall = function() { const HUPPER_VERSION = '###VERSION###'; /** * !Previous < 0....
JavaScript
0
@@ -286,16 +286,139 @@ ION###'; +%0A var scope = %7B%7D, prefs;%0A Components.utils.import('resource://huppermodules/prefs.jsm', scope);%0A prefs = new scope.HP(); %0A%0A /**%0A @@ -589,37 +589,29 @@ erhuppers = -Hupper.HUP.hp +prefs .get.filterh @@ -660,37 +660,29 @@ r huppers = -Hupper.HUP.hp +prefs .get....
213eb074a373ea2aa701fb7a5b77e26f9d0e8133
Fix import path for rules
src/assets/js/packages/papi/rules.js
src/assets/js/packages/papi/rules.js
import $ from 'jquery/jquery.js'; import Utils from 'utils'; class Rules { /** * Initialize Papi rules class. */ static init() { new Rules().binds(); } /** * Bind rule. * * @param {string} slug * @param {object} rule */ bindRule(slug, rule) { const ruleSlug = this.getRuleSl...
JavaScript
0.000008
@@ -47,16 +47,21 @@ s from ' +papi/ utils';%0A
e672271fabf492c9b456cef7b9336c563109573e
fix annying death bug
app/workers/game.w.js
app/workers/game.w.js
// Dependencies import SocketIO from 'socket.io-client' // Utilities import setup from 'utils/setup' // Constants import WORLD from 'constants/world' // Components import Player from 'components/Player' import Bullet from 'components/Bullet' import Grid from 'components/Grid' import Drop from 'components/Drop' ...
JavaScript
0.000055
@@ -2153,16 +2153,27 @@ (!player + %7C%7C !player .x) retu
db81be8d9e76976daeb4f100f1b544e0caf76380
add linting warning
client/config/webpack.development.js
client/config/webpack.development.js
var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { // No idea what this does. devtool: 'cheap-module-eval-source-map', // Seperates the application into chun...
JavaScript
0
@@ -1,11 +1,13 @@ -var +const path = @@ -23,19 +23,21 @@ path');%0A -var +const webpack @@ -59,19 +59,21 @@ pack');%0A -var +const HtmlWeb @@ -121,11 +121,13 @@ ');%0A -var +const Ext @@ -793,17 +793,273 @@ -module: %7B +// Lints the typescript code%0A tslint: %7B%0A emitErrors: false,%0A ...
99e07825c39f89431b53be0380a90edfd4791b5d
Fix get started screen
src/ui/components/views/Onboard/GetStarted.js
src/ui/components/views/Onboard/GetStarted.js
/* @flow */ import React, { PropTypes } from 'react'; import ReactNative from 'react-native'; import NextButton from './NextButton'; import StatusbarWrapper from '../StatusbarWrapper'; import OnboardTitle from './OnboardTitle'; import OnboardParagraph from './OnboardParagraph'; import Colors from '../../../Colors'; c...
JavaScript
0.000001
@@ -84,24 +84,52 @@ ct-native';%0A +import at from 'lodash/at';%0A import NextB @@ -647,27 +647,26 @@ %0A%0Aconst -UserDetails +GetStarted = (prop @@ -670,26 +670,32 @@ rops: %7B -onComple +submitGetStar te +d : Functi @@ -707,10 +707,108 @@ =%3E -(%0A +%7B%0A%09const completed = at(props, %5B 'props.user....
011b770685a5dec49545e8d9475efdfbc4eb6279
Update evalshortcut.js
Source/Modules/EvalShortcut/evalshortcut.js
Source/Modules/EvalShortcut/evalshortcut.js
class EvalShortcut { constructor (client) { this.client = client; this.response = this.client.resolve('response'); if (!this.response) return this.client.log('[EvalShortcut] Disabling because response class could not be found', true); this.response = require(this.response); this.meta = require('./...
JavaScript
0.000001
@@ -636,12 +636,10 @@ age. -memb +us er.i
b33d832373d637c1fb58704fa5d612fd954918c0
Check whether generator tests work under chrome + osx
tests/generators/run_generators_in_browser.js
tests/generators/run_generators_in_browser.js
/** * @license * Visual Blocks Editor * * Copyright 2018 Google Inc. * https://developers.google.com/blockly/ * * 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.apach...
JavaScript
0
@@ -2018,15 +2018,14 @@ e: ' -firefox +chrome '%0A
1139146c338ed1fb84e57434d72c66c059f8a0b4
Correct ModuleFactory tree
tests/js/app/modules/filter/testOtherGroup.js
tests/js/app/modules/filter/testOtherGroup.js
// Copyright 2017 Endless Mobile, Inc. const Eknc = imports.gi.EosKnowledgeContent; const Gtk = imports.gi.Gtk; const Utils = imports.tests.utils; Utils.register_gresource(); const ContentGroup = imports.app.modules.contentGroup.contentGroup; const Minimal = imports.tests.minimal; const MockFactory = imports.tests.m...
JavaScript
0.000002
@@ -1186,32 +1186,40 @@ 'card': + %7B type: Minimal.Minimal @@ -1214,32 +1214,34 @@ imal.MinimalCard + %7D ,%0A @@ -2246,16 +2246,24 @@ 'card': + %7B type: Minimal @@ -2274,16 +2274,18 @@ imalCard + %7D ,%0A
99a2d7161cef33ff3de9eb51bba91c93f3efed59
set hypothesis post message target domain based on render link
addon/components/file-renderer/component.js
addon/components/file-renderer/component.js
import Ember from 'ember'; import layout from './template'; import config from 'ember-get-config'; /** * @module ember-osf * @submodule components */ /** * Render the provided url in an iframe via MFR * * Sample usage: * ```handlebars * {{file-renderer * download=model.links.download *. allowCommenting=p...
JavaScript
0.000001
@@ -1305,16 +1305,339 @@ %0A %7D), +%0A mfrOrigin: Ember.computed('mfrUrl', function() %7B%0A const urlParts = this.get('mfrUrl').split('/');%0A if (urlParts.length %3C 3) %7B%0A // if unable to extract mfr origin, just return config mfrUrl%0A return config.OSF.mfrUrl;%0A ...
818802b686db86ac33f48ae09b5537a927109352
update jsdoc.js (#547)
.jsdoc.js
.jsdoc.js
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
JavaScript
0
@@ -1034,9 +1034,9 @@ 201 -8 +9 Goo @@ -1154,16 +1154,71 @@ 'lumen' +,%0A default: %7B%0A %22outputSourceFiles%22: false%0A %7D %0A %7D,%0A
87a1228ef49f0270a9d0b43c90526b2dd086dcbd
fix link syntax
pages/_document.js
pages/_document.js
import Document, { Head, Main, NextScript } from 'next/document' import { ServerStyleSheet } from 'styled-components' /* eslint-disable */ export default class MyDocument extends Document { static getInitialProps({ renderPage }) { const sheet = new ServerStyleSheet() const page = renderPage(App => props => ...
JavaScript
0.000001
@@ -1364,257 +1364,46 @@ link -%0A rel=%22shortcut icon%22%0A href=%22/favicon.ico?v=4%22%0A type=%22image/x-icon%22%0A /%3E%0A %3Clink rel=%22icon%22 href=%22/favicon.ico?v=4%22 type=%22image/x-icon%22 /%3E%0A%0A %7B/* %3Clink rel=%22icon%22 href=%22/favicon...
db0ce9161637c8c36c2c5e5bcde581ae10649eee
Correct autosave behaviour
src/main/web/florence/js/functions/_loadMarkdownEditor.js
src/main/web/florence/js/functions/_loadMarkdownEditor.js
function loadMarkdownEditor(content, onSave, pageData) { if (content.title == undefined) { var html = templates.markdownEditorNoTitle(content); $('body').append(html); $('.markdown-editor').stop().fadeIn(200); } else { var html = templates.markdownEditor(content); $('body').append(html); $(...
JavaScript
0.000001
@@ -492,30 +492,59 @@ ).remove();%0A + clearTimeout(timeoutId);%0A %7D);%0A - %0A $(%22.btn-m @@ -649,16 +649,45 @@ kdown);%0A + clearTimeout(timeoutId);%0A %7D);%0A%0A @@ -772,32 +772,32 @@ -input').val();%0A - onSave(markd @@ -798,24 +798,53 @@ (markdown);%0A + clearTimeout(timeoutId);%0A ...
b963dd1d4650aced712c66c55a9c35848922edee
Add timeout
src/main/web/florence/js/third-party/responsive-tables.js
src/main/web/florence/js/third-party/responsive-tables.js
$(document).ready(function(){var switched=false;var updateTables=function(){if(($(window).width()<767)&&!switched){switched=true;$("table.responsive").each(function(i,element){splitTable($(element));});return true;} else if(switched&&($(window).width()>767)){switched=false;$("table.responsive").each(function(i,element)...
JavaScript
0.000015
@@ -1,8 +1,9 @@ +%0A $(docume @@ -22,17 +22,21 @@ nction() -%7B + %7B%0A var swit @@ -39,23 +39,28 @@ switched -= + = false; +%0A var upda @@ -67,17 +67,19 @@ teTables -= + = function @@ -84,11 +84,18 @@ on() -%7B + %7B%0A if + (($( @@ -113,15 +113,19 @@ th() -%3C + %3C 767) + && + !swi @@ ...
1534dbb4ca428e3aeaa978d7dcbc30d5b32b4599
move the static file serving as the latest fallback. the /api request won't work without this change
examples/server/express-server-example.js
examples/server/express-server-example.js
// Webpack var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var webpackConfig = require('../../webpack.config'); // Express var express = require('express'); var history = require('connect-history-api-fallback'); var morgan = require('morgan'); var bodyParser = re...
JavaScript
0
@@ -822,17 +822,16 @@ ate));%0A%0A -%0A // Your @@ -864,47 +864,8 @@ ()); -%0Aapp.use(express.static('src/public')); %0A%0A// @@ -918,16 +918,16 @@ _api');%0A - app.use( @@ -951,16 +951,71 @@ pi());%0A%0A +//Static files%0Aapp.use(express.static('src/public'));%0A%0A /*%0A// RE
954fcb9674114bf071063fac2ddb8d6b1f1da9d8
Fix react-intl example (#4840)
examples/with-react-intl/pages/_app.js
examples/with-react-intl/pages/_app.js
import App, { Container } from 'next/app' import React from 'react' import { IntlProvider, addLocaleData } from 'react-intl' // Register React Intl's locale data for the user's locale in the browser. This // locale data was added to the page by `pages/_document.js`. This only happens // once, on initial page load in t...
JavaScript
0.000012
@@ -979,26 +979,16 @@ __.props -.pageProps %0A%0A re
c7c8cd18dc75e88f5329c36d1bb84a04f0ae9692
update puppeteer usaa scrape
service/scrapers/puppeteer/index.js
service/scrapers/puppeteer/index.js
const puppeteer = require('puppeteer'); const getPrivateInfo = require('../../utilities/getPrivateInfo').usaa(); (async () => { const browser = await puppeteer.launch({ headless: false, slowMo: 0 // slow down by 250ms }); // first page const page = await browser.newPage(); await page.goto('https...
JavaScript
0
@@ -185,12 +185,11 @@ ss: -fals +tru e,%0A @@ -1640,19 +1640,16 @@ sixth%0A - // await p @@ -1665,120 +1665,960 @@ or(' -#menu #ma');%0A // const myAccountsMenuHandle = await page.$('#menu #ma');%0A // myAccountsMenuHandle.tap( +.acct-group-list .acct-group-row:first-child .acct-name');%0A const firstAccou...
804cdee7fa3af228d67e99d618f161fb4aafd1d2
Fix a bug for unique
src/util-lang.js
src/util-lang.js
/** * util-lang.js - The minimal language enhancement */ var hasOwnProperty = {}.hasOwnProperty function hasOwn(obj, prop) { return hasOwnProperty.call(obj, prop) } function isFunction(obj) { return typeof obj === "function" } var isArray = Array.isArray || function(obj) { return obj instanceof Array } fun...
JavaScript
0.000002
@@ -450,9 +450,8 @@ if ( -! obj%5B @@ -455,16 +455,22 @@ bj%5Bitem%5D + !== 1 ) %7B%0A
9f0d93795ce4102ca4872d87c55ed70a02658849
Clean up code
src/views/Main/Schemas/Components/UserPermissionsTable.js
src/views/Main/Schemas/Components/UserPermissionsTable.js
import React, { PropTypes } from 'react'; import { Table } from 'react-bootstrap'; import styles from '../styles.module.css'; class UserRow extends React.Component { static propTypes = { user: PropTypes.object.isRequired } getUserCellData = () => { if (this.props.user.nickname) { return `${this.pr...
JavaScript
0.000004
@@ -1278,20 +1278,21 @@ t.isRequ +i red%0A - %7D%0A%0A g @@ -2168,16 +2168,28 @@ %3Cinput +%0A type=%22t @@ -2235,16 +2235,31 @@ (e) =%3E %7B +%0A this.pro @@ -2272,16 +2272,30 @@ hange(e) +;%0A %7D%7D /%3E%0A @@ -2643,16 +2643,17 @@ ''%0A %7D +; %0A %7D%0A%0A...
bdb764d18a4a44edf198c8b3646f7365876c2560
Remove default attributes
client/src/components/EmojiPicker.js
client/src/components/EmojiPicker.js
import React from 'react'; import ReactEmoji from "react-emoji"; import 'styles/EmojiPicker.scss'; const emojify = (emojis, selected) => { const emojiOpts = { emojiType: 'emojione', attributes: { width: '20px', height: '20px' } }; let counter = 0; return emojis.map(emoji => { le...
JavaScript
0.000001
@@ -188,61 +188,8 @@ one' -,%0A attributes: %7B width: '20px', height: '20px' %7D %0A
4a59249fa81b3b4d8b17e4f90688fd7f4c20ef50
Fix use of SwitchInput
client/src/components/forms/Audio.js
client/src/components/forms/Audio.js
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import { Form } from 'react-form'; import set from 'lodash.set'; import BootstrapForm from 'react-bootstrap/lib/Form'; import Panel from 'react-bootstrap/lib/Panel'; import FormActions from './FormActions'; import ...
JavaScript
0
@@ -813,18 +813,8 @@ Form -, getValue %7D) @@ -987,40 +987,8 @@ ic%22%0A - getValue=%7BgetValue%7D%0A @@ -1504,16 +1504,26 @@ Devices%7D +%0A /%3E%0A
98825ae36f84532b17281ac100b37c387c02805b
Clean up
chart.js
chart.js
function curve_set_mini_preview(uuid, element, data) { var margin = {top: 3, right: 3, bottom: 3, left: 3}, width = 200 - margin.left - margin.right, height = 50 - margin.top - margin.bottom; var x = d3.time.scale() .range([0, width]); var y = d3.scale.linear() .range([hei...
JavaScript
0
@@ -1,25 +1,24 @@ -%0A function curve_set_mini_ @@ -653,54 +653,8 @@ d ;%0A -// var $preview_div = $(preview_chart_id);%0A @@ -1089,18 +1089,16 @@ ; %7D));%0A%0A -// svg. @@ -1113,206 +1113,8 @@ g%22)%0A -// .attr(%22class%22, %22x axis%22)%0A// .attr(%22transform%22, %22translate(0,%22 ...
d9ef6c4868aa6cac909351808fa883878e1b739a
Fix keycodes_test for Edge ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=105918417
closure/goog/events/keycodes_test.js
closure/goog/events/keycodes_test.js
// Copyright 2010 The Closure Library 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 requ...
JavaScript
0.000172
@@ -2419,16 +2419,39 @@ t.WEBKIT + %7C%7C goog.userAgent.EDGE ,%0A
3e111a2aeaab49cf21f174d01496cd1abfe60f7a
Fix tests due to change calls
spec/widgets/category/category-widget-model.spec.js
spec/widgets/category/category-widget-model.spec.js
var cdb = require('cartodb.js'); var CategoryWidgetModel = require('../../../src/widgets/category/category-widget-model'); describe('widgets/category/category-widget-model', function () { beforeEach(function () { var vis = cdb.createVis(document.createElement('div'), { layers: [{type: 'torque'}] }); ...
JavaScript
0
@@ -5430,24 +5430,169 @@ nction () %7B%0A + beforeEach(function () %7B%0A spyOn(this.dataviewModel, 'enableFilter');%0A spyOn(this.dataviewModel, 'disableFilter');%0A %7D);%0A%0A it('sh @@ -5730,38 +5730,116 @@ del. -get('ownFilter')).toBe(true +disableFilter).toHaveBeenCalled();%0A ...
3143845e1db8d7c39429130a03db9a414232cc9f
Fix spelling of 'langauge' in ScrollerVerticalSample
samples/ScrollerVerticalSample.js
samples/ScrollerVerticalSample.js
enyo.kind({ name: 'moon.sample.ScrollerVerticalSample', classes: "moon enyo-unselectable enyo-fit", components: [ { kind: 'moon.Scroller', classes: 'moon-scroller-vertical-sample-scroller enyo-fill', components: [ {kind: "moon.ExpandablePicker", noneText: "No Language Selected", autoCollapse: true, co...
JavaScript
0.999949
@@ -322,34 +322,34 @@ tent: %22Menu Lang -a u +a ge%22, defaultKind @@ -1135,34 +1135,34 @@ tent: %22Menu Lang -a u +a ge%22, defaultKind @@ -2368,18 +2368,18 @@ enu Lang -a u +a ge%22, def
79ef54b0ed406b973a03d5fb07c28d8f0799ab29
Make `html` a parameter to the main function
substitutions.js
substitutions.js
function xkcdSubstitutions(){ var words = [ {find: new RegExp('\\bwitnesses\\b', 'gi'), replace: 'these dudes I know'}, {find: new RegExp('\\ballegedly\\b', 'gi'), replace: 'kinda probably'}, {find: new RegExp('\\bnew study\\b', 'gi'), replace: 'tumblr post'}, {find: new RegExp('\\brebuild\\b', 'gi'), replace:...
JavaScript
0.000009
@@ -20,16 +20,20 @@ tutions( +html )%7B%0A%09var @@ -4183,38 +4183,22 @@ var -html = document.body.in ne -r +w HTML + = html ;%0A%09f @@ -4243,19 +4243,25 @@ %7B%0A%09%09 -html = html +newHTML = newHTML .rep @@ -4311,20 +4311,23 @@ %09return -html +newHTML ;%0A%7D%0A%0Adoc @@ -4346,17 +4346,19 @@ nnerHTML...
73ea91926f9aa1e1621e4fcb2f3c98de6986118b
Correct test description
tests/scale/discontinuity/skipWeekendsSpec.js
tests/scale/discontinuity/skipWeekendsSpec.js
(function(d3, fc) { 'use strict'; describe('skipWeekends', function() { var millisPerDay = 24 * 3600 * 1000; var skipWeekends = fc.scale.discontinuity.skipWeekends(); describe('clampUp', function() { it('should leave non-weekend days unchanged', function() { ...
JavaScript
0.998525
@@ -2188,32 +2188,44 @@ t('should clamp +any time on saturday up to 0 @@ -2209,34 +2209,36 @@ ime on saturday -up +down to 00:00 on mon @@ -2226,35 +2226,37 @@ own to 00:00 on -mon +satur day', function()
d54bea480a062e7f8e870a1e0ba6d11aeae61723
Update test name
tests/src/assertions/testAttributeContains.js
tests/src/assertions/testAttributeContains.js
var BASE_PATH = process.env.NIGHTWATCH_COV ? 'lib-cov' : 'lib'; var Api = require('../../../' + BASE_PATH + '/core/api.js'); module.exports = { setUp: function(callback) { callback(); }, 'attributeEquals assertion passed': function(test) { var assertionFn = require('../../../' + BASE_PATH + '/seleniu...
JavaScript
0.000002
@@ -209,13 +209,15 @@ bute -Equal +Contain s as
a2f48d098ae3aa56780eca0efed1efe88ef584f8
Add Player to Podcast page
src/components/podcast-page/index.js
src/components/podcast-page/index.js
import React, {Component} from 'react' import styles from './style.module.css' import Link, {navigateTo} from 'gatsby-link' import marked from 'marked' import {Box, Thread} from 'react-disqussion' import {timestampToSeconds} from '../../utils/time' import throttle from 'lodash.throttle' const PLAYBACK_RATES = [1.0, 1....
JavaScript
0
@@ -41,20 +41,16 @@ mport st -yles from '. @@ -186,16 +186,49 @@ ussion'%0A +import %7BPlayer%7D from '../Player'%0A import %7B @@ -410,199 +410,63 @@ %7B%0A -constructor(props) %7B%0A super(props)%0A this.handleTimeClick = this.handleTimeClick.bind(this)%0A this.handleTimeUpdate = this.handleTimeUpdat...
f47bd8b03190a741f08fc6a92d2dad81f6e40880
add comments to confusing algorithm
app/assets/javascripts/reducers/timeline.js
app/assets/javascripts/reducers/timeline.js
import { RECEIVE_TIMELINE, SAVED_TIMELINE, ADD_WEEK, DELETE_WEEK, SET_BLOCK_EDITABLE, CANCEL_BLOCK_EDITABLE, UPDATE_BLOCK, ADD_BLOCK, INSERT_BLOCK } from '../constants'; const initialState = { blocks: {}, blocksPersisted: {}, weeks: {}, weeksPersisted: {}, editableBlockIds: [], loading: t...
JavaScript
0
@@ -1512,24 +1512,192 @@ wArray;%0A%7D;%0A%0A +// Returns a new blocks object with updates to a single block's week and order within%0A// that week, along with updated order for any other blocks affected by the move.%0A const update @@ -1992,108 +1992,509 @@ %7D;%0A - delete updatedBlocks%5BmovingBlock.id%5D;%0A%0...
3af0cfa3f1eb9bd8c87b51220a357db268a6e412
Load cart on startup, added TODO items to app.js
solution/app/scripts/modules/app.js
solution/app/scripts/modules/app.js
/* Copyright 2016 Google 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 in writing, software dis...
JavaScript
0.000002
@@ -600,16 +600,58 @@ 'cart';%0A +import LocalStorage from 'local-storage';%0A import C @@ -672,24 +672,24 @@ cart-view';%0A - import ShopV @@ -838,24 +838,64 @@ tructor() %7B%0A + this._storage = new LocalStorage();%0A this._ca @@ -908,16 +908,29 @@ ew Cart( +this._storage );%0A t @@ -1068,24 +1068,4...
6a3663b4e22f27e5c78c915c43f92a19b9fe20f2
Fix issue #403 (#404)
app/containers/TrackPopupContainer/index.js
app/containers/TrackPopupContainer/index.js
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ipcRenderer } from 'electron'; import * as DownloadsActions from '../../actions/downloads'; import * as FavoritesActions from '../../actions/favorites'; import * as...
JavaScript
0
@@ -888,22 +888,16 @@ name: -props. title,%0A @@ -1391,20 +1391,21 @@ ons.play -Song +Track (musicSo