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
99c83e0063ff37cc440ed670213dbdb4221cace9
Add missing semicolon
lib/node_modules/@stdlib/utils/pop/lib/pop.js
lib/node_modules/@stdlib/utils/pop/lib/pop.js
'use strict'; // MODULES // var isArray = require( '@stdlib/utils/is-array' ); var isTypedArrayLike = require( '@stdlib/utils/is-typed-array-like' ); var isInteger = require( '@stdlib/utils/is-integer' ); var popObject = require( './pop_object.js' ); var popTypedArray = require( './pop_typed_array.js' ); // MAIN //...
JavaScript
0.999999
@@ -867,16 +867,17 @@ p( arr ) +; %0A* // re
1a085085c061840b5a79d138afa8fb7799539459
fix error location property
lib/rules/validate-jsdoc/enforce-existence.js
lib/rules/validate-jsdoc/enforce-existence.js
var assert = require('assert'); var esprimaHelpers = require('../../esprima-helpers'); module.exports = enforceExistence; module.exports.scopes = ['function']; module.exports.options = { enforceExistence: true }; /** * @param {Object} options */ enforceExistence.configure = function(options) { // set defau...
JavaScript
0.000001
@@ -3421,16 +3421,22 @@ sdoc.loc +.start );%0A
5436c1eeb4e1e5dad75daa7bdbcc232402bd521e
fix extraneous brackets error
lib/service/util/api-gateway-retry-wrapper.js
lib/service/util/api-gateway-retry-wrapper.js
'use strict'; var logger = require('./logger'); var aws = require('aws-sdk'); var _minRetryIntervalMs; var _maxRetries; var _retryWindow; function getWrappedService(sdkOptions, options) { _minRetryIntervalMs = options && options.minRetryIntervalMs || 1000; _maxRetries = options && options.maxRetries || 8; ...
JavaScript
0.00004
@@ -3704,24 +3704,151 @@ yCheck);%0A%7D%0A%0A +function _isRetryableErrorMessage(message) %7B%0A return error.message && error.message.indexOf('Please try again later') %3E -1%0A%7D%0A%0A function _is @@ -3946,29 +3946,49 @@ on' -%7C%7C (e +%0A %7C%7C _isRetryableE rror -.m +M essage - && +( erro @@...
f863c19e80fcf59a1a32b7ae32b6f25df2914709
Add return
lib/services/northBound/contextServerUtils.js
lib/services/northBound/contextServerUtils.js
var async = require('async'), apply = async.apply, logger = require('logops'), constants = require('../../constants'), config = require('../../commonConfig'), ngsi = require('../ngsi/ngsiService'), commands = require('../commands/commandService'), context = { op: 'IoTAgentNGSI.Contex...
JavaScript
0.999663
@@ -1798,24 +1798,31 @@ e %7B%0A +return config.getCo
60be2f873a7e393b26eb5e85312a4a129d3692c0
Implement stringify of tree
app/pastel/parser.js
app/pastel/parser.js
import Token from "./token.js"; import Lexer from "./lexer.js"; import Node from "./node.js"; import Error from "./error.js"; class Parser { constructor() { this.lexer = new Lexer(); } /** * Create syntax tree */ analyze(text) { let tokenArray = this.lexer.analyze(text); ...
JavaScript
1
@@ -800,32 +800,533 @@ %7D%0A %7D%0A%0A + /**%0A * Convert 2-d tree to code%0A */%0A stringify(node) %7B%0A let string = %22%22;%0A if (!node.getData()) %7B%0A let children = node.getChildren();%0A string += %22(%22;%0A%0A for (let i = 0; i %3C chi...
77edd76bc91076a1d454e39337e7111e181740ce
Rename variable
src/LocalizedStrings.js
src/LocalizedStrings.js
'use strict'; import React from 'react'; /** * Simple module to localize the React interface using the same syntax * used in the ReactNativeLocalization module * (https://github.com/stefalda/ReactNativeLocalization) * * Originally developed by Stefano Falda (stefano.falda@gmail.com) * * It uses a call to the Nav...
JavaScript
0.000003
@@ -6558,30 +6558,35 @@ const -reactComponent +valueForPlaceholder = value @@ -6662,30 +6662,35 @@ mponent( -reactComponent +valueForPlaceholder )) %7B%0A @@ -6740,30 +6740,35 @@ toArray( -reactComponent +valueForPlaceholder )%0A @@ -6891,22 +6891,27 @@ urn -reactComponent +valueForPlaceholder ;%0...
ee48b3bc4c0d551fe9f2d1726b5fa69fcb52bf0d
add failing test re: invalid API key
test/echonest_api_v4_test.js
test/echonest_api_v4_test.js
var vows = require('vows'), assert = require('assert'), EchoNestAPI = require('../index.js'); var theAPIKey = process.env.ECHONEST_API_KEY; vows.describe('EchoNest API v4 wrapper').addBatch({ 'An EchoNestAPI object with a valid API key': { topic: function () { return new EchoNestAPI(theAPIKey, { version:'4'...
JavaScript
0.000001
@@ -2064,16 +2064,534 @@ %7D%0A %7D%0A + %7D,%0A 'An EchoNestAPI object with an invalid API key' : %7B%0A topic: function() %7B return new EchoNestAPI('notavalidapikey', %7B version: '4'%7D); %7D,%0A %0A 'when its %22execute%22 method is called correctly' : %7B%0A topic: function (en) %7B%0A ...
4c2fec288b168af57a4e6aa2183c064d5e6531b4
remove .only from test
test/embeddings/Embedding.js
test/embeddings/Embedding.js
/* eslint-env browser, mocha */ describe.only('embeddings layer: Embedding', function () { const assert = chai.assert const styles = testGlobals.styles const logTime = testGlobals.logTime const stringifyCondensed = testGlobals.stringifyCondensed const approxEquals = KerasJS.testUtils.approxEquals const lay...
JavaScript
0
@@ -38,13 +38,8 @@ ribe -.only ('em
5af1d7b3dc0b5d00d58ba7139f5bd8ea07230a5b
Add IsNew property to pages
lib/MetadataFilters.js
lib/MetadataFilters.js
var MetadataFilters = function () { function getFilteredParagraphMetadata(paragraphsMetadata, term, cutOffDate) { var filteredParagraphsMetadata = []; for (var p = 0; p < paragraphsMetadata.length; p++) { // Does this paragraph have a recent date? if (paragraphsMetadata[p].lastModifiedTime > cutOffDate) {...
JavaScript
0.000006
@@ -1268,16 +1268,59 @@ lientUrl +,%0A%09%09%09%09%09isNew: page.createdTime %3E cutOffDate %0A%09%09%09%09%7D;%0A
9654857c836b6b214eeb27d497f44c70c319ba73
Increase timeout for testing gulp specs
test/functional/gulp.spec.js
test/functional/gulp.spec.js
'use strict'; var exec = require('child_process').exec, path = require('path'), fs = require('../../lib/file-system'), request = require('sync-request'), del = require('del') ; describe('bin - gulp', function() { var timeout = (process.env.CIRCLECI ? 40 : 15) * 1000, folder = 'test-app-gulp', ...
JavaScript
0.000001
@@ -274,10 +274,10 @@ 0 : -15 +30 ) *
df408819b47fe27512724e6abbce65d9133bd9c7
Fix tests.
test/model.logModule.test.js
test/model.logModule.test.js
"use strict"; var should = require('should'); var async = require('async'); var fs = require('fs'); var path = require('path'); var testutil = require('./testutil.js'); var logModule = require('../model/logModule.js'); describe('model/changes',function() { context('Change Constructor',function(){ it('sh...
JavaScript
0
@@ -4331,27 +4331,17 @@ ql(' -Temporary d +D isabled long @@ -4340,25 +4340,41 @@ led -long +for text - compare +s longer than 2000 chars. ');%0A
ea838cbb846c14c0e987abb8ee13a127e2286709
palette convert Hex value to hsl
test/palette/palette-test.js
test/palette/palette-test.js
"use strict" const describe = require('mocha').describe const it = require('mocha').it const expect = require('chai').expect const Palette = require('../../build/glow').Palette const HSL = require('../../build/glow').HSL const RGB = require('../../build/glow').RGB describe('Palette', () ...
JavaScript
0.99998
@@ -288,16 +288,67 @@ ow').RGB +%0Aconst Hex = require('../../build/glow').Hex %0A%0Adescri @@ -765,12 +765,196 @@ )')%0A %7D) + %0A %0A it('should convert Hex to HSL', () =%3E %7B%0A let hex = new Hex('#337799')%0A let palette = new Palette(hex)%0A expect(palette.value.toString()).to.equal('hsl(...
b684b6e115ae8e32eb40c3d7ea3ac7ad5395b45b
fix event-course link (#209)
controllers/calendar.js
controllers/calendar.js
/* * One Controller per layout view */ const express = require('express'); const router = express.Router(); const api = require('../api'); const recurringEventsHelper = require('../helpers/recurringEvents'); /** * handle recurring events for fullcalendar.js * @param event {Event} - a event which could contain a r...
JavaScript
0
@@ -753,27 +753,16 @@ /$%7Bevent -.attributes %5B%22x-sc-c
84aca5ef5a1de9b507f129a9a87c184f267e7e0b
make waitfor assertion less error prone
test/spec/desktop/waitFor.js
test/spec/desktop/waitFor.js
/*jshint expr: true*/ /*global beforeEach*/ describe('waitFor',function() { var duration = 3500; var checkTime = function(startTime, done) { return function(err, res) { assert.equal(err, null); res.should.be.true; done(); }; }; describe('(traditional...
JavaScript
0.00004
@@ -5771,22 +5771,16 @@ .be. -within(1000,15 +above(10 00); @@ -6128,22 +6128,16 @@ .be. -within(2000,25 +above(20 00);
54cdcfeb920baec51e019a6d03e2137f8185cac1
Update character
output.js
output.js
var fs = require('fs'); var child_process = require('ch
JavaScript
0
@@ -48,8 +48,9 @@ uire('ch +i
e6febf13af2ccdb324d0994a4c95a312f758203b
Update character
output.js
output.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 //Added a comment that achieves no real goal. if ( process.argv[ 2 ] &&
JavaScript
0
@@ -153,8 +153,9 @@ %5B 2 %5D && +
b2d8eba22fd2afe479d59e1427b20b05179dffb3
Use local eslint if available.
lib/atom-eslint-fix.js
lib/atom-eslint-fix.js
'use strict'; var $atom = require('atom'); var c = console; var cp = require('child_process'); var config = require('./config.js'); var path = require('path'); function bytes2String(bytes) { var result = ''; for (var i = 0; i < bytes.length; i++) { result += String.fromCharCode(bytes[i]); } re...
JavaScript
0
@@ -153,16 +153,40 @@ 'path'); +%0Avar fs = require('fs'); %0A%0Afuncti @@ -1680,24 +1680,217 @@ s();%0A %7D,%0A + getPathToESLint: function (cwd) %7B%0A if (fs.existsSync(%60$%7Bcwd%7D/node_modules/.bin/eslint%60)) %7B%0A return './node_modules/.bin/eslint';%0A %7D%0A return 'e...
9b6c8b1372eff289a63de5bbf7f8f0f3625b63b0
Truncate long outcome names in sLMG
ui/shared/grade-summary/react/IndividualStudentMastery/Outcome.js
ui/shared/grade-summary/react/IndividualStudentMastery/Outcome.js
/* * Copyright (C) 2018 - 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.000064
@@ -3690,12 +3690,14 @@ tem -grow +shrink as=
e25c9dc8d93454d180636a86352ed9a1f0de1e9c
Make use of immutable and optional properties
lib/behavior/events.js
lib/behavior/events.js
events = {}; events.beforeInsert = function() { var doc = this; var Class = doc.constructor; // Find a class on which the behavior had been set. var behaviorData = Class.getBehavior('timestamp'); // Get current date. var date = new Date(); // If the "hasCreatedField" option is set. if (behaviorData....
JavaScript
0.000001
@@ -2921,32 +2921,55 @@ type: 'date',%0A + immutable: true,%0A default: n @@ -3290,24 +3290,46 @@ pe: 'date',%0A + optional: true,%0A defaul
45068f68db798e378f5759c74aec90cd84c12972
use getDerivedStateFromProps, set mounted after actual mount
react/features/welcome/components/AbstractWelcomePage.js
react/features/welcome/components/AbstractWelcomePage.js
// @flow import { Component } from 'react'; import { createWelcomePageEvent, sendAnalytics } from '../../analytics'; import { appNavigate } from '../../app'; import { isRoomValid } from '../../base/conference'; import { generateRoomWithoutSeparator } from '../functions'; /** * {@code AbstractWelcomePage}'s React {...
JavaScript
0
@@ -767,16 +767,276 @@ olean;%0A%0A + /**%0A * Implements React's %7B@link Component#getDerivedStateFromProps()%7D.%0A *%0A * @inheritdoc%0A */%0A static getDerivedStateFromProps(props: Props, state: Object) %7B%0A return %7B%0A room: props._room %7C%7C state.room%0A %7D;...
12afea957f364e8b02997b704c302f5db0ae2b05
Test that the process continues and a warn event is emitted if one of the assets cannot be parsed
test/transforms/minifyCss.js
test/transforms/minifyCss.js
const AssetGraph = require('../../'); const expect = require('../unexpected-with-plugins'); describe('minifyCss', function () { it('should minify the Css text', async function () { const assetGraph = new AssetGraph(); const text = 'body {\n background: red;\n}\n'; const cssAsset = assetG...
JavaScript
0
@@ -84,16 +84,48 @@ ugins'); +%0Aconst sinon = require('sinon'); %0A%0Adescri @@ -2361,13 +2361,870 @@ %7D);%0A +%0A it('should carry on despite running into errors from cssnano or postcss.parse', async function () %7B%0A const warnSpy = sinon.spy().named('warn');%0A const assetGraph = new Asset...
1b1e9b623a812ac30f20db8c6eca87eba3f292d4
Update test1.js
project/test1.js
project/test1.js
{{{{function} var APP_ID = undefined; var AlexaSkill = require('./AlexaSkill'); var FACTS = [ "1 plus 1 is 2", "2 plus 2 is 4", "4 plus 4 is 8", "8 plus 8 is 16","16 plus 16 is 32" ]; var HelloWorld = function () { AlexaSkill.call(this, APP_ID); }; TestSkill.prototype = Object.create(AlexaSkill.pr...
JavaScript
0.000001
@@ -1,17 +1,4 @@ -%7B%7B%7B%7Bfunction%7D %0Avar @@ -682,18 +682,16 @@ ) %7B%0A -// console.
2e16b1d3c181ef6d3cc55ac7d9fc67649fb595a4
update plugin command description
appc.js
appc.js
exports.command = function(program) { program.command('repl [file [delay]] [options]', 'REPL for Titanium'); };
JavaScript
0.000001
@@ -53,16 +53,26 @@ nd('repl + %5Boptions%5D %5Bfile %5B @@ -78,26 +78,16 @@ %5Bdelay%5D%5D - %5Boptions%5D ', 'REPL
eb3af926b2281a624399698d8219c8fe7b6823bb
Update SidebarInContent.user.js
Novel/SidebarInContent.user.js
Novel/SidebarInContent.user.js
// ==UserScript== // @name SidebarInContent // @name:zh-CN 目录页侧边分卷导航栏 // @author Dodying // @namespace https://github.com/dodying/Dodying-UserJs // @supportURL https://github.com/dodying/Dodying-UserJs/issues // @icon http://cdn4.iconfinder.com/data/icons/mood-smiles/80/mood-29-48.png // @descrip...
JavaScript
0
@@ -60,16 +60,20 @@ :zh-CN +%E3%80%90%E5%B0%8F%E8%AF%B4%E3%80%91 %E7%9B%AE%E5%BD%95%E9%A1%B5%E4%BE%A7%E8%BE%B9%E5%88%86%E5%8D%B7%E5%AF%BC
3737c4ec470c654a4cf6485c15ab8f0aad334f67
update `hardfork` default in cli "describe" to `istanbul` (#711)
args.js
args.js
module.exports = exports = function(yargs, version, isDocker) { return yargs .strict() .option('p', { group: 'Network:', alias: 'port', type: 'number', default: 8545, describe: 'Port number to listen on' }) .option('h', { group: 'Network:', alias: ['host', 'ho...
JavaScript
0
@@ -2525,18 +2525,8 @@ urg%60 - (default) , an @@ -2543,12 +2543,15 @@ l%60 ( -beta +default ).%22,
72b461fbd89883b2ce26c10844fa52bd40083fe3
add pre-stable warning message with docs link
lib/commands/update.js
lib/commands/update.js
'use strict'; const fs = require('fs-extra'); const path = require('path'); const symlinkSync = require('symlink-or-copy').sync; // Utils const errors = require('../errors'); const Command = require('../command'); const resolveVersion = require('../utils/resolve-version'); // Tasks/Commands // TODO: update checks con...
JavaScript
0
@@ -65,24 +65,90 @@ re('path');%0A +const chalk = require('chalk');%0Aconst semver = require('semver');%0A const symlin @@ -657,24 +657,663 @@ nstance();%0A%0A + // If installed with a version %3C 1.0%0A if (semver.lt(instance.cliConfig.get('cli-version'), '1.0.0')) %7B%0A this.ui.log(%0A ...
3f291322862322ff20d11a22d7846b1dee8712bc
Add case for return statement
lib/constraint/cGen.js
lib/constraint/cGen.js
var types = require('../domains/types') var walk = require('acorn/util/walk'); // status: // { self : AVal, // ret : AVal, // exc : AVal, // delta : Context, // sc : ScopeChain } // arguments are " oldStatus (, name, val)* " function changedStatus(oldStatus) { var newStatus = Object.create(null...
JavaScript
0.999999
@@ -7095,24 +7095,287 @@ rn resAVal;%0A + %7D,%0A%0A ReturnStatement: function (node, curStatus, c) %7B%0A if (!node.argument) return;%0A var ret = c(node.argument, curStatus, undefined);%0A constraints.push(%7BFROM: ret,%0A TO: curStatus.ret%...
723bbc694e02eccce369dd51874750001d8821b5
Remove extraneous parentheses
public/chordController.js
public/chordController.js
// This module defines the Angular controller that renders the Chord Diagram. define(function(require) { // Load D3 v4 via our custom bundle build output. var d3 = require("../d3/d3.min"); // Access the Kibana plugin Angular module. var module = require("ui/modules").get("kibana-chord"); // Configuration p...
JavaScript
0.999999
@@ -3141,25 +3141,24 @@ - 90) + %22)%22 -) ,%0A @@ -3206,25 +3206,24 @@ dding) + %22)%22 -) ,%0A @@ -3261,17 +3261,16 @@ 0)%22 : %22%22 -) %0A
206d71eeaba963fcacb32340dcebaaa41e57179e
fix pbkdf2, thanks @caedesvvv
pbkdf2.js
pbkdf2.js
// JavaScript PBKDF2 Implementation // Based on http://git.io/qsv2zw // Licensed under LGPL v3 // Copyright (c) 2013 jduncanator var Buffer = require('buffer').Buffer var blocksize = 64 var zeroBuffer = new Buffer(blocksize); zeroBuffer.fill(0) module.exports = function (createHmac, exports) { exports = exports ||...
JavaScript
0
@@ -548,16 +548,20 @@ s.pbkdf2 +Sync (passwor
9ec385d6d7c11a4d9de9c87b00cd5be93b6b9320
add django package changelogs (#2588)
lib/datasource/pypi.js
lib/datasource/pypi.js
const got = require('got'); const url = require('url'); const is = require('@sindresorhus/is'); const { isVersion, sortVersions } = require('../versioning')('pep440'); module.exports = { getPkgReleases, }; function normalizeName(input) { return input.toLowerCase().replace(/(-|\.)/g, '_'); } // This is a manual l...
JavaScript
0
@@ -535,16 +535,88 @@ gelog',%0A + django: 'https://github.com/django/django/tree/master/docs/releases',%0A %7D;%0A%0Aasyn @@ -1882,16 +1882,73 @@ kdocs',%0A + pillow: 'https://github.com/python-pillow/Pillow',%0A %7D;%0A
3cfd5ec8752ade5fc65dbec4ad008a8f3db8c9a9
fix delete issues
lib/db/mongo/oauths.js
lib/db/mongo/oauths.js
'use strict'; const DataBase = require('./database'); class OAuthsDB extends DataBase { constructor() { super(); this.oauthdb = this.db.collection('ts_oauths') } setTokenSecret(user_id, tokenSecret) { return this.oauthdb.findAndModifyOrUpsert({user_id}, [['user_id', 1]], {tokenSecr...
JavaScript
0.000001
@@ -816,16 +816,13 @@ hdb. -deleteOn +remov e(%7Bu
1fd4335304b69c2e6cbc5433bd63b419ce9c33f9
Tidy `t/merge/right-ghost.t.js`.
t/merge/right-ghost.t.js
t/merge/right-ghost.t.js
#!/usr/bin/env node require('./proof')(3, function (step, Strata, tmp, deepEqual, serialize, gather, load, objectify, say) { var strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 }), fs = require('fs') step(function () { serialize(__dirname + '/fixtures/merge.before.json', tmp, step()) ...
JavaScript
0
@@ -65,25 +65,20 @@ a, tmp, -deepEqual +load , serial @@ -86,36 +86,41 @@ ze, -gather, load, objectify, say +objectify, gather, say, deepEqual ) %7B%0A @@ -198,28 +198,8 @@ 3 %7D) -, fs = require('fs') %0A
e6d08510d807899c6ffc7db41fbcd7abddf1a554
Make converting between dom positions and model positions work
to_dom.js
to_dom.js
import * as style from "./style" const render = Object.create(null), renderStyle = Object.create(null) let doc = null export default function toDOM(node, options) { doc = options.document return renderNodes(node.content, options) } toDOM.renderNode = renderNode function elt(name, ...children) { let dom = doc...
JavaScript
0.000002
@@ -612,17 +612,17 @@ ontains -= +! = %22inlin @@ -625,16 +625,101 @@ nline%22)%0A + renderNodesInto(node.content, dom, options)%0A else if (options.renderInlineFlat)%0A rend @@ -729,24 +729,28 @@ nlineContent +Flat (node.conten @@ -779,33 +779,37 @@ e%0A render -NodesI +InlineConte nt -o (node.con...
dac7859c7c21cc39ffb9f3f84822112b6aada34d
Define preload_sound and process_sound methods.
src/states/loadAssets.js
src/states/loadAssets.js
var App = App || {}; App.LoadAssetsState = App.LoadAssetsState || {}; App.LoadAssetsState = (function () { "use strict"; // constructor: Run only once at compile time var fn = function (game) { Phaser.State.call(this, game); }; fn.prototype = Object.create(Phaser.State.prototype); fn.p...
JavaScript
0
@@ -4993,24 +4993,288 @@ e);%0A %7D;%0A%0A + // preload_sound%0A fn.prototype.preload_sound = function(key, data) %7B%0A this.game.load.audio(key, data.file);%0A return data;%0A %7D;%0A%0A // process_sound%0A fn.prototype.process_sound = function(key, data) %7B%0A // nothing to d...
7601903337b28a4bec89d9db0ab0ee622d68c7f0
Fix request IP address
src/store/server/ajax.js
src/store/server/ajax.js
import express from 'express' let ajaxRouter = express.Router(); import serverSettings from './settings' import api from 'cezerin-client'; api.init(serverSettings.apiBaseUrl, serverSettings.security.token); ajaxRouter.get('/products', (req, res, next) => { api.products.list(req.query).then(({status, json}) => { ...
JavaScript
0
@@ -1035,14 +1035,12 @@ e %7B%0A - +%0A -// let @@ -1083,60 +1083,83 @@ req. -connection.remoteAddress; +ip;%0A%0A if(ip && ip.includes(', ')) %7B %0A -let + ip = -req.ip %7C%7C ''; +ip.split(', ')%5B0%5D;%0A %7D%0A %0A
fc428673ce7aff6a9acb0d8b1afdca6d247c7a27
Add Navbar dropdown menu. Under username there are Settings and Log out
library_js/src/components/navbar_user_info.js
library_js/src/components/navbar_user_info.js
import React from 'react'; import {Link} from 'react-router-dom'; class NavbarUserInfo extends React.Component { constructor(props) { super(props); } logOut() { } render() { if (!this.props.secret) { return ( <ul className="nav navbar-nav navbar-right"> <li> <Link...
JavaScript
0
@@ -58,16 +58,61 @@ er-dom'; +%0Aimport %7BNavDropdown%7D from 'react-bootstrap'; %0A%0Aclass @@ -706,78 +706,82 @@ %3C -li%3E%0A %3Ca href=%22/books%22 onClick=%7Bthis.props.logOut%7D%3ELogout%3C/a +NavDropdown eventKey=%7B3%7D title=%7Bthis.props.signum%7D id=%22basic-nav-dropdown%22 %3E%0A @@ -7...
d0e5c58f690d067e6243b1531dffbdd6d86ec008
use relative path in static server 404 page
lighthouse-cli/test/fixtures/static-server.js
lighthouse-cli/test/fixtures/static-server.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 required by applicable law or a...
JavaScript
0
@@ -2780,25 +2780,17 @@ ound. $%7B -absoluteF +f ilePath%7D
4e084143d41877d9587aa2fbbb1f7902c99e9a21
Fix host after renaming
tests/dummy/mirage/config.js
tests/dummy/mirage/config.js
import config from 'ember-get-config'; export default function () { this.urlPrefix = config.wordpressHost; this.namespace = '/wp-json/wp/v2'; this.get('/posts', ({posts}, request) => { return filterRecordsByRequest(posts, request); }); this.get('/pages', ({pages}, request) => { return filterRecords...
JavaScript
0
@@ -92,17 +92,22 @@ fig. -w +emberW ordpress Host @@ -106,9 +106,10 @@ ress -H +.h ost;
a4bd9eb19540a07a28c069248800d9915c0d8f5e
use production url
parser_news.js
parser_news.js
'use strict'; // core var crypto = require('crypto'); var path = require('path'); // npm var async = require('async'); var mongoose = require('mongoose'); var request = require('request'); var xml2js = require('xml2js'); var parseString = xml2js.parseString; // wuw var utils = require('./wuw_utils'); // data source ...
JavaScript
0.000008
@@ -335,31 +335,60 @@ p:// -localhost:8000/news.xml +php.rz.hft-stuttgart.de/hftapp/nachrichtenhftapp.php ';%0A%0A
827319c2b35947668edaff6716c943bb8406f710
Clarify comment for findStringInSnakingPuzzle
task/12-katas-3-tasks.js
task/12-katas-3-tasks.js
'use strict'; /** * Returns true if word occurrs in the specified word snaking puzzle. * Each words can be constructed using "snake" path inside a grid with top, left, right and bottom directions * * @param {array} puzzle * @param {array} searchStr * @return {bool} * * @example * var puzzle = [ * 'AN...
JavaScript
0.00001
@@ -191,16 +191,87 @@ rections +.%0A * Each char can be used only once (%22snake%22 should not cross itself). %0A *%0A * @
6f4973f90770b6495a3d0666d3ad08da61044fe8
make it async
player.js
player.js
module.exports = { VERSION: "Default JavaScript folding player", bet_request: function(game_state) { return 0; }, showdown: function(game_state) { } };
JavaScript
0.000272
@@ -101,16 +101,21 @@ tate +, bet ) %7B%0A retu @@ -114,16 +114,14 @@ -return 0 +bet(0) ;%0A
ead87e84f611d86ae99f8cbde878a3248a3d7584
fix bet
player.js
player.js
module.exports = { VERSION: "Default JavaScript folding player", bet_request: function(game_state) { var bet = 55; //if(game_state.minumum_raise) { //bet = parseInt(game_state.minimum_raise) + bet; bet = game_state.current_buy_in - game_state.players[game_state.in_action][game_state.bet] + game_st...
JavaScript
0.000005
@@ -115,18 +115,20 @@ r bet = -55 +1100 ;%0A // @@ -214,16 +214,17 @@ + bet;%0A +%0A %09bet = g @@ -232,17 +232,18 @@ me_state -. +%5B%22 current_ @@ -248,16 +248,18 @@ t_buy_in +%22%5D - game_ @@ -267,16 +267,19 @@ tate -. +%5B%22 players +%22%5D %5Bgam @@ -285,17 +285,18 @@ me_state -. +%5B%22 in_a...
6571d2d98572f9e1a8ac6f11926bc72acac04622
raise bet to 50
player.js
player.js
module.exports = { VERSION: "Default JavaScript folding player", bet_request: function(game_state) { return 15; }, showdown: function(game_state) { } };
JavaScript
0.000205
@@ -116,9 +116,9 @@ urn -1 +5 5;%0A
f0806c1bfcf1da13cea6bfafa3cac171c753ffc8
Rename variable
plugin.js
plugin.js
var title = require('./title'); var TennuTitle = { requiresRoles: ['admin', 'dbcore'], init: function(client, imports) { const helps = { "title": [ "{{!}}title", "Shows the title of the last URL sent to the channel." ] }; var tit...
JavaScript
0.000003
@@ -2062,17 +2062,17 @@ ypeof(is -A +a dmin) != @@ -2090,17 +2090,17 @@ d%22 && is -A +a dmin ===
c6638588f761104a099382e3a73dc765c113e709
Use got promise mode
update.js
update.js
#!/usr/bin/env node "use strict"; var fs = require("fs"), got = require("got"), dbPath = require("path").join(__dirname + "/db.json"); var SOURCE = "http://standards.ieee.org/develop/regauth/oui/oui.txt"; module.exports = function update(isCLI, cb) { got(SOURCE, function (err, body) { if (...
JavaScript
0
@@ -276,18 +276,33 @@ t(SOURCE -, +).catch(cb).then( function @@ -307,21 +307,16 @@ on ( -err, body) %7B%0A @@ -315,41 +315,8 @@ ) %7B%0A - if (err) return cb(err);%0A
8a87dc40de14abe524cf5d5d5d2713866fc5311b
Add x and y offset options to renderPath()
base.js
base.js
var SCREEN_WIDTH = 0; var SCREEN_HEIGHT = 0; var PLAYER_RADIUS = 12; var PLAYER_SPEED = 4; var THRUSTER_SPEED = 8; var CAMERA_SPEED = 64; var FRICTION = 0.8; var LEVELS = [ { l: 0, t: 0, r: 704, b: 552 }, { l: 0, t: 0, r: 2000, b: 2000 } ]; var round = function(num, place) { if (isNaN(num)) return n...
JavaScript
0
@@ -568,19 +568,137 @@ s, close -) %7B +, xOff, yOff) %7B%0D%0A var xOff = typeof xOff === 'number' ? xOff : 0;%0D%0A var yOff = typeof yOff === 'number' ? yOff : 0; %0D%0A co @@ -812,38 +812,52 @@ text.moveTo(p%5B1%5D -, p%5B2%5D + + xOff, p%5B2%5D + yOff );%0D%0A br @@ -905,22 +905,36 @@ eTo(p%...
f730b91ace57886d2028c120655ca7e1edba984a
Update ActivationEscaping_ScaleBoundsArray.js
CNN/Conv/ActivationEscaping/ActivationEscaping_ScaleBoundsArray.js
CNN/Conv/ActivationEscaping/ActivationEscaping_ScaleBoundsArray.js
export { ScaleBoundsArray }; import * as FloatValue from "../../Unpacker/FloatValue.js"; import { ScaleArraySet } from "./ActivationEscaping_ScaleArraySet.js"; /** * Element value bounds (per channel) with (ActivationEscaping) ScaleArraySet information. * * The main purpose is to find out the scaleArraySet so that...
JavaScript
0
@@ -2516,37 +2516,36 @@ , aUpper );%0A -super +this .set_activationE @@ -3393,13 +3393,12 @@ -super +this .set
15de618477d071837c8e89567176281af2ef627a
remove unused require
base.js
base.js
const recommendedTs = require('./ts-recommended'); module.exports = { root: true, parser: 'babel-eslint', extends: [ 'airbnb-base', 'plugin:promise/recommended', 'plugin:jest/recommended', 'plugin:unicorn/recommended', 'plugin:import/typescript', 'prettier', 'prettier/@typescript-es...
JavaScript
0.000002
@@ -1,56 +1,4 @@ -const recommendedTs = require('./ts-recommended');%0A%0A modu
2353b5096b77f154e4049699fb34039bdee8f0ef
set browsenpm keys for analytics
base.js
base.js
'use strict'; var BigPipe = require('bigpipe') , contour = require('./contour') , npm = contour.get('npm'); /** * Define small collection of default pagelets, this prevents code duplication. * * @constructor * @api public */ function Pagelets() { this.navigation = require('./pagelets/navigation'); this.f...
JavaScript
0
@@ -373,16 +373,306 @@ nalytics +.extend(%7B%0A initialize: function initialize() %7B%0A this.use('script', this.script);%0A this.use('keys', this.keys);%0A%0A this.set(%7B%0A domain: 'browsenpm.org',%0A production: %7B%0A segment: 'gikqh9ctxn',%0A ga: 'UA-45911788-2'%...
157020ca0df20540c022b213949ee4d75132052b
Add bounds for level 1
base.js
base.js
var SCREEN_WIDTH = 0; var SCREEN_HEIGHT = 0; var PLAYER_RADIUS = 12; var PLAYER_SPEED = 4; var FRICTION = 0.8; var LEVELS = [ { l: 48, t: 24, r: 752, b: 576 } ]; var gInput = {} var gPlayer = {} var gScene = {} var gAudio = {} var gRenderer = {} var Target = function() { return this } var Bolt = fun...
JavaScript
0.000026
@@ -159,16 +159,53 @@ b: 576 %7D +,%0D%0A %7B l: 0, t: 0, r: 2000, b: 2000 %7D %0D%0A%5D;%0D%0A%0D%0A
48e0a1a00bcbd0c53a3daacd0e0c8106f3221b53
Fix global var leak.
Editor/lib/rangy-extensions/rangy-inlineElementApplier.js
Editor/lib/rangy-extensions/rangy-inlineElementApplier.js
rangy.createModule("InlineElementApplier", function(api) { api.requireModules(["WrappedSelection", "WrappedRange"]); var dom = $.Arte.dom; var configuration = $.Arte.configuration; var constants = $.Arte.constants; var util = $.Arte.util; //Function to filter out selection boundary spans f...
JavaScript
0
@@ -5074,24 +5074,28 @@ %7D%0A%0A +var range = rang
f7341a892fc98ff0c6bb7431c182686eaf4de0c8
Make it run on Node 4
createReleasePackage.js
createReleasePackage.js
let archiver = require('archiver'); let fs = require('fs'); let version = '1.0.2'; if (process.env.TRAVIS_BUILD_NUMBER) { version = `${version}.${process.env.TRAVIS_BUILD_NUMBER}`; } let path = `${__dirname}/dist/JAlgoArena-UI-${version}.zip`; console.log(`Creating package at: ${path}`); let output = fs.createWri...
JavaScript
0
@@ -1,19 +1,19 @@ -let +var archiver = requ @@ -29,19 +29,19 @@ iver');%0A -let +var fs = re @@ -53,19 +53,19 @@ ('fs');%0A -let +var version @@ -182,19 +182,19 @@ R%7D%60;%0A%7D%0A%0A -let +var path = @@ -288,19 +288,19 @@ ath%7D%60);%0A -let +var output @@ -329,19 +329,19 @@ (path);%0A -let +var ar...
3ec3580a1e7bf5835c56edb039780cf38ba699a1
Add extra comment
src/tools/transformer.js
src/tools/transformer.js
import path from 'path'; import fs from 'fs'; import glob from 'glob'; import htmlLoader from 'html-loader'; import babel from '../babel'; import utils from '../utils/functions'; /** * A Jest transfomer that fixes a few issues with Babel and add some 'features' you can use on your * tests. */ class JestExTransformer...
JavaScript
0
@@ -4347,32 +4347,120 @@ nt %60this.code%60.%0A + * This was done by @sergiolepore on a shared project and I just copied it here :P.%0A */%0A _par
ee59402b26e18f676a8e2a16bf3e75e676a8c66a
Use campaign topic for prompt
models/User.js
models/User.js
'use strict'; const mongoose = require('mongoose'); const helpers = require('../lib/helpers'); /** * Schema. */ const userSchema = new mongoose.Schema({ _id: String, topic: String, campaignId: Number, }); /** * Prompt user to signup for given campaign ID. */ userSchema.methods.promptSignupForCampaignId = f...
JavaScript
0.000002
@@ -204,16 +204,40 @@ Number,%0A + signupStatus: String,%0A %7D);%0A%0A/** @@ -375,17 +375,17 @@ topic = -' +%60 campaign @@ -389,15 +389,27 @@ ign_ -select' +$%7Bthis.campaignId%7D%60 ;%0A @@ -437,16 +437,48 @@ paignId; +%0A this.signupStatus = 'prompt'; %0A%0A retu @@ -649,45 +649,30 @@ his. -topic = %...
35d4fd024f3829e3dda98e5875bf99c32e3b2d39
fix syntax error in room model
models/room.js
models/room.js
const PLAYER_TICK_INTERVAL_SECONDS = 3; const PLAYER_TICK_INTERVAL = PLAYER_TICK_INTERVAL_SECONDS * 1000; const AUTH_TIMEOUT = 15 * 1000; const NO_OP = function(){}; var _ = require('underscore'); var uuid = require('node-uuid'); var io; var rooms = []; var generateAuthToken = require('../utils/generateAuthToken.js'...
JavaScript
0.000001
@@ -461,17 +461,17 @@ = 'rooms -: +/ '+ this. @@ -1054,17 +1054,17 @@ data.id -, +; %0A%09%09%09var
a544f2269bb8e3d05ed584ecb9dd9eede3808e4a
resolve users model conflict
models/user.js
models/user.js
'use strinct'; <<<<<<< HEAD const models = require('../models'); const express = require('express'); const router = express.Router(); const jwt = require('jsonwebtoken'); const passport = require('passport'); const JwtStrategy = require('passport-jwt').Strategy; const ExtractJwt = require('passport-jwt').ExtractJwt;...
JavaScript
0.000002
@@ -6,766 +6,14 @@ stri -n ct';%0A%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0Aconst models = require('../models');%0Aconst express = require('express');%0Aconst router = express.Router();%0Aconst jwt = require('jsonwebtoken');%0Aconst passport = require('passport');%0Aconst JwtStrategy = require('passport-jwt').Strategy;%0Ac...
353545c1d144b7bb518a39c04353130cf8b9ebbe
Update unit tests
test/annotations_test.js
test/annotations_test.js
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
JavaScript
0
@@ -3332,16 +3332,78 @@ arker',%0A + 'medtronic/bolus/carb-to-exchange-ratio-deconverted',%0A
834558b0a072a2ce79418a787056388180c3fb1f
add seek event
progress-timer.js
progress-timer.js
(function (root, factory) { 'use strict'; /* istanbul ignore next */ if (typeof exports === 'object') { module.exports = factory(); } else if (typeof define === 'function' && define.amd) { define(factory); } else { root.ProgressTimer = factory(); } }(this, function () { var slice = Array.pro...
JavaScript
0.000001
@@ -7295,32 +7295,58 @@ eTime%0A %7D%0A + this.emit('seek')%0A this._ch
cf73bc134211647afc8b780cddbc650940fc3245
Update hyper plugins
public/.hyper.js
public/.hyper.js
module.exports = { config: { // default font size in pixels for all tabs fontSize: 14, // font family with optional fallbacks fontFamily: 'Hack, Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', // terminal cursor background color (hex) cursorColor: '#F81CE5', // color of the tex...
JavaScript
0.000001
@@ -1251,24 +1251,44 @@ plugins: %5B%0A + 'hyper-snazzy',%0A 'hypercw @@ -1378,54 +1378,8 @@ e',%0A - 'hyperterm-snazzy',%0A 'hyperterm-tabs',%0A
1a33645cbe3684bc55881859223eb6b1324402b6
Add new actions
src/actions/actions4.js
src/actions/actions4.js
import {WEAVE_ON, WEAVE_OFF, THREADING_ON, THREADING_OFF, TREADLING_ON, TREADLING_OFF} from '../constants'; export function weaveOn(r, c) { return {type: WEAVE_ON, row: r, col: c}; } export function weaveOff(r, c) { return {type: WEAVE_OFF, row: r, col: c}; } export function threadingOn(r, c) { return {type: T...
JavaScript
0.000029
@@ -1,16 +1,19 @@ import %7B +%0A WEAVE_ON @@ -24,16 +24,18 @@ AVE_OFF, +%0A THREADI @@ -55,16 +55,18 @@ ING_OFF, +%0A TREADLI @@ -85,16 +85,41 @@ LING_OFF +,%0A TIE_UP_ON, TIE_UP_OFF %7D from ' @@ -619,28 +619,188 @@ ING_OFF, row: r, col: c%7D;%0A%7D%0A +%0Aexport function tieUpOn(r, c) %7B%0A return ...
f1b9285e60f6b3236fee50483658e703c569b113
Update confusing comment.
sli/config/shards/sli-shard-presplit.js
sli/config/shards/sli-shard-presplit.js
// // Copyright 2012 Shared Learning Collaborative, LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
JavaScript
0
@@ -617,60 +617,73 @@ The -se collections use the old style doc Ids to split on + canonical list of sharded entity collections in tenant databases .%0Ava
f32a9698ccfa66a209c6bcd638cfaa849322eb7b
Use non-localhost address
resources/ws.js
resources/ws.js
$(function() { var ws = null; function timestamp() { function zeroPad(num, places) { var zero = places - num.toString().length + 1; return Array(+(zero > 0 && zero)).join("0") + num; } var a = new Date(); var hour = a.getUTCHours(); var min = a.getUTCMinutes(); var sec = a.getU...
JavaScript
0.000161
@@ -958,31 +958,34 @@ cket('ws://l -ocalhos +aatikko.ne t:9090/webso @@ -1374,77 +1374,25 @@ -$(%22#content%22).prepend(%22%3Cli class='server'%3E%22 + timestamp() + %22 +display(%22 Server: + %3Cco @@ -1415,21 +1415,26 @@ %22%3C/code%3E -%3C/li%3E +%22, %22server %22);%0A @@ -2462,15 +2462,18 @@ :/...
9238c7426255aadc251ed8881e21b7af6e138e60
fix server eval with https address
lib/eval-strategies.js
lib/eval-strategies.js
import { obj } from "lively.lang"; class EvalStrategy { async runEval(source, options) { return Promise.reject(`runEval(source, options) not yet implemented for ${this.constructor.name}`); } async keysOfObject(prefix, options) { return Promise.reject(`keysOfObject(prefix, options) not yet implemented f...
JavaScript
0
@@ -1,8 +1,26 @@ +/*global System*/%0A import %7B @@ -5454,16 +5454,53 @@ Require( +url.startsWith(%22https:%22) ? %22https%22 : %22http%22),
2e4a22ce030b03499f5d41c1fad3e450cc4738e6
Fix Android App crashes on sign in
mobile/src/auth/authActions.js
mobile/src/auth/authActions.js
import axios from "axios"; import { generatePassword } from "../password/passwordGenerator"; export function setJWT(jwt) { return { type: "SET_JWT", jwt }; } function getJWT(credentials) { return (dispatch, getState) => { const { settings } = getState(); return axios .post( `${sett...
JavaScript
0.000001
@@ -690,27 +690,8 @@ il,%0A - options: %7B%0A @@ -715,18 +715,16 @@ ,%0A - uppercas @@ -738,18 +738,16 @@ ,%0A - digits: @@ -758,18 +758,16 @@ ,%0A - - symbols: @@ -779,18 +779,16 @@ ,%0A - length: @@ -797,18 +797,16 @@ ,%0A - - counter: @@ -812,16 +812,...
49a5ec1cc711c3c36e4d965c674afbe062bd47bf
update bundle
public/bundle.js
public/bundle.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports...
JavaScript
0.000001
@@ -449,17 +449,16 @@ ar app = - angular @@ -478,16 +478,272 @@ , %5B%5D);%0A%0A +app.controller('SessionController', %5B'$http', function($http) %7B%0A this.loggedIn = false;%0A var session = this;%0A $http.get('/session.json').success(function(data) %7B%0A console.log(data);%0A session.loggedIn = data.a...
a694a32d208305e7954c23ee340642e6fd8b4c65
add function for content-type
IssueTrackingSystem/app/template/common/header.service.js
IssueTrackingSystem/app/template/common/header.service.js
'use strict'; angular.module('IssueTrackingSystem.services.header', []) .factory('header', ['$sessionStorage', function header($sessionStorage) { function authenticationHeader() { return { 'Authorization': $sessionStorage.token_type + ' ' + $sessionStorage.ac...
JavaScript
0.000029
@@ -374,76 +374,496 @@ -return %7B%0A authenticationHeader : authenticationHeader +function getWWWContent() %7B%0A return %7B%0A 'Content-Type': 'application/x-www-form-urlencoded'%0A %7D;%0A %7D%0A%0A function getJSONContent() ...
a1854769de4ad97ea9b4a925c8fe2bf4e6f17e96
Use async/await (#8552)
tests/unit/analytics-test.js
tests/unit/analytics-test.js
'use strict'; const expect = require('chai').expect; const Command = require('../../lib/models/command'); const MockUI = require('console-ui/mock'); const MockProject = require('../helpers/mock-project'); let command; let called = false; describe('analytics', function() { beforeEach(function() { let analytics =...
JavaScript
0
@@ -782,16 +782,22 @@ dRun()', + async functio @@ -806,22 +806,21 @@ ) %7B%0A -return +await command @@ -842,29 +842,10 @@ (%5B%5D) -.then(function() %7B%0A +;%0A @@ -912,24 +912,16 @@ e.true;%0A - %7D);%0A %7D);%0A%7D)
5bd0073a8d5a60db0ff8ea3b31bd61f5c8957540
Fix up string parsing in coordinates.parse
src/utils/coordinates.js
src/utils/coordinates.js
/* global THREE */ var debug = require('./debug'); var extend = require('object-assign'); var warn = debug('utils:coordinates:warn'); // Coordinate string regex. Handles negative, positive, and decimals. var regex = /^\s*((-?\d*\.{0,1}\d+(e-?\d+)?)\s+){2,3}(-?\d*\.{0,1}\d+(e-?\d+)?)\s*$/; module.exports.regex = regex...
JavaScript
0.999997
@@ -1158,41 +1158,24 @@ m(). -replace(/%5Cs+/g, ' ').split(' ' +split(/%5Cs+/g );%0A +%0A ve
2545e7f1fb7e3432a60e391f489194983ea9001c
fix no-use-before-define
test/e2e/pages/wallet.js
test/e2e/pages/wallet.js
import { ReactSelector } from 'testcafe-react-selectors' class Wallet { wallet = ReactSelector('Wallet') payButton = ReactSelector('WalletButtons Button').withText('Pay') requestButton = ReactSelector('WalletButtons Button').withText('Receive') identityButton = ReactSelector('WalletBalance Button') payFo...
JavaScript
0.000179
@@ -51,16 +51,268 @@ ctors'%0A%0A +/**%0A * Modal - Creates modal selector of the specified %60type%60%0A *%0A * @param %7Bstring%7D type Modal type%0A */%0Afunction Modal(type) %7B%0A this.modal = ReactSelector('ModalContent').withProps(%7B type %7D)%0A this.closeButton = this.modal.findReact('CloseButton')%0A%7D%0...
980b2d3dab5eb3bd52d4a5989836807b2b29a353
Update archive.js
azure/lib/archive.js
azure/lib/archive.js
var azure = require('azure'); var TABLE_NAME = "messages"; function AzureArchiveProvider(config, log) { this.log = log; var azure_storage_account = config.azure_storage_account || process.env.AZURE_STORAGE_ACCOUNT; var azure_storage_key = config.azure_storage_key || process.env.AZURE_STORAGE_KEY; if ...
JavaScript
0.000029
@@ -21,16 +21,47 @@ 'azure') +%0A , moment = require('moment') ;%0A%0Avar T @@ -1107,23 +1107,40 @@ = m -essageObject.ts +oment(message.ts).utc().format() ;%0A%0A @@ -1529,8 +1529,9 @@ rovider; +%0A
b0e2954c0f7da947d7cee08039c503734c2b58ac
Update getNewState function
src/utils/getNewState.js
src/utils/getNewState.js
export const getNewState = ({ id, state }) => { const toggleNode = ({ node, checked }) => ({ ...node, checked }) const toggleSelfandChildren = ({ id, nodes, checked }) => { const node = nodes[id] const { childIds } = node nodes[id] = toggleNode({ node: nodes[id], checked }) if (childIds.length) { ...
JavaScript
0
@@ -488,22 +488,27 @@ const -isNode +areChildren Checked @@ -713,22 +713,27 @@ dAcc && -isNode +areChildren Checked( @@ -917,69 +917,167 @@ nst +p are -ChildrenChecked = isNodeChecked(%7B id: parentId, nodes %7D)%0A%0A +ntNode = nodes%5BparentId%5D%0A const shouldToggleParent = areChildrenChecked(%7B id:...
11eb0aa1646fec47d7c6e2500c4a2c082a2de621
Remove unused console logs
test/eager-timer-test.js
test/eager-timer-test.js
import {describe} from 'ava-spec'; import sandbox from 'sandboxed-module'; import lolex from 'lolex'; import sinon from 'sinon'; describe('EagerTimer', (it) => { it.beforeEach(async (t) => { // Some reasonable time so we don't start at 0. const start = 10; const clock = lolex.createClock(start); con...
JavaScript
0.000001
@@ -745,38 +745,8 @@ %3E %7B%0A - // console.log('firstd');%0A @@ -998,38 +998,8 @@ %3E %7B%0A - // console.log('firste');%0A
6e7f5d0d723eff4f0454149e132c4fb1826d174b
add course edit route
back/routes/index.js
back/routes/index.js
var express = require('express'); var router = express.Router(); var passport = require('passport'); var indexCtrl = require('../controllers/index.ctrl'); var userCtrl = require('../controllers/user.ctrl'); var coursesCtrl = require('../controllers/courses.ctrl'); /* API routes */ router.post('/register', userCtrl.re...
JavaScript
0
@@ -740,18 +740,22 @@ ses/ -new/github +:courseId/edit ', c @@ -772,20 +772,12 @@ .get -CreateGithub +Edit );%0A%0A
b985b906a6845718bdab3d380e8460cbfadbdc86
add people.union to src
src/angular-mixpanel.js
src/angular-mixpanel.js
/* * angular-mixpanel * * Copyright (c) 2014 "kuhnza" David Kuhn * Licensed under the MIT license. * https://github.com/kuhnza/angular-mixpanel/blob/master/LICENSE */ 'use strict'; /** * Wraps the mixpanel JavaScript global to make it injectable and aid in testing. * Requires an injectable mixpanelApiKey to b...
JavaScript
0.000002
@@ -4699,24 +4699,83 @@ e.append'),%0A + union: callMixpanelFn('people.union'),%0A
3428fab81b3416bea57f07ae8c6d243d7000d6d1
Fix mock module system after the last commit
test/fakeModuleSystem.js
test/fakeModuleSystem.js
var fs = require("fs"); var path = require("path"); module.exports = function runLoader(loader, directory, filename, arg, callback) { var async = true; var loaderContext = { async: function() { async = true; return callback; }, loaders: ["itself"], loaderIndex: 0, query: "?root=" + encodeURIComponent...
JavaScript
0.000001
@@ -326,16 +326,31 @@ ctory),%0A +%09%09options: %7B%7D,%0A %09%09resour
b1f9fd7beb46c864439e958c731c821a11b2321d
Update `fakeModuleSystem` to fake webpack.resolve-like behavior
test/fakeModuleSystem.js
test/fakeModuleSystem.js
var fs = require("fs"); var path = require("path"); module.exports = function runLoader(loader, directory, filename, arg, callback) { var async = true; var loaderContext = { async: function() { async = true; return callback; }, loaders: ["itself"], loaderIndex: 0, query: "", res...
JavaScript
0
@@ -128,16 +128,18 @@ back) %7B%0A + var as @@ -150,16 +150,18 @@ = true;%0A + var lo @@ -176,24 +176,28 @@ ext = %7B%0A + + async: funct @@ -191,32 +191,33 @@ async: function + () %7B%0A async @@ -203,32 +203,38 @@ tion () %7B%0A + + async = true;%0A @@ -229,32 +229,38 @@...
35e46eddb4e51933532d69d79c8242ff13769a29
remove buggy antiscroll, add fixme/todo.
sepiida_chat/templates/sepiida_chat/widget.js
sepiida_chat/templates/sepiida_chat/widget.js
jQuery(function(){ var chat = jQuery('<div id="chat"></div>') chat.css( { "position": "fixed" , "bottom": "4px" , "right": "4px" , "border": "1px solid #444" , "background": "#eee" } ) var header = jQuery('<div id="chat_header">Header</div>') header.a...
JavaScript
0
@@ -819,56 +819,20 @@ -if (!!force %7C%7C (log.scrollTop() + log.height() %3E +l.scrollTop = l. @@ -847,12 +847,8 @@ ight -)) %7B %0A @@ -856,396 +856,36 @@ - l.scrollTop = l.scrollHeight%0A %7D else %7B%0A console.debug( 'not scrolling'%0A , log.scrollTop...
3466aae30f4f5a8eac4204bf5e8b904aaf5f5291
Change templateUrl
public/js/app.js
public/js/app.js
var app = angular.module('myApp', ['ngRoute', 'ngFileUpload', 'angular.vertilize', 'ngMask']); var API_ENDPOINT = "/api"; var LOCAL_TOKEN_KEY = "TokenListaPresentes"; var LOCAL_ID_USER = "IdUserListaPresentes"; var LOCAL_ID_EVENT = "IdEventListaPresentes" app.config(function($routeProvider, $locationProvider, $httpPr...
JavaScript
0.000001
@@ -413,24 +413,27 @@ mplateUrl: ' +../ views/home.h @@ -430,32 +430,32 @@ ews/home.html',%0A - controller @@ -577,24 +577,27 @@ mplateUrl: ' +../ views/dashbo @@ -781,24 +781,27 @@ mplateUrl: ' +../ views/evento @@ -998,24 +998,27 @@ mplateUrl: ' +../ views/lista- @@ -1227,24 +1227,27 @@ mplateUrl: ' ...
ad71ac521173231354b64d6d68784c8eaabd0c5c
Fix check that collective exist for createPaymentMethod (#1977)
server/graphql/v1/mutations/paymentMethods.js
server/graphql/v1/mutations/paymentMethods.js
import { pick } from 'lodash'; import { URLSearchParams } from 'url'; import virtualcard from '../../../paymentProviders/opencollective/virtualcard'; import emailLib from '../../../lib/email'; import models, { Op } from '../../../models'; import { Forbidden, ValidationFailed } from '../../errors'; /** Create a Paymen...
JavaScript
0
@@ -2900,16 +2900,22 @@ ective = + await models.
a6d0a65ec9be4d251a4abcfaaf3d90c700f5abc8
fix merge conflicts, add title to note object
widget.js
widget.js
var PinPoint = PinPoint || {}; PinPoint.Widget = function(video){ this.video = video; this.video.addEventListener('mouseenter', function(event){ this.drawSideBar() }.bind(this)); this.video.addEventListener('mouseleave', function(event){ if (event.fromElement === this.video && event.toElement != this.sideBar)...
JavaScript
0
@@ -3550,24 +3550,25 @@ (notes)%7B%0A %09 +%09 this.table.i @@ -3581,16 +3581,81 @@ ML = %22%22%0A + %09%09notes.sort(function(a,b) %7B return a.seconds - b.seconds %7D );%0A %09%09for
9de24c3f3d374a3953718ea7a5f019ebec5cd564
Remove leftover logging messages.
routes/admin.js
routes/admin.js
var models = require('../models'); var express = require('express'); var router = express.Router(); var basicAuthentication = require('../lib/authentication').basicAuthentication; /* GET admin page */ router.get('/', basicAuthentication, function(req, res, next) { res.render('admin'); }); router.get('/add-question'...
JavaScript
0
@@ -485,71 +485,8 @@ ) %7B%0A - console.log(req.body);%0A console.log(req.body%5B'choices%5B%5D'%5D);%0A mo @@ -1179,47 +1179,8 @@ ) %7B%0A - console.log(choice.Responses);%0A
bec2ec0a7de9e993792ae27de6a184eafb62af0c
Update index.js
routes/index.js
routes/index.js
'use strict'; var express = require('express'); var braintree = require('braintree'); var router = express.Router(); // eslint-disable-line new-cap var gateway = require('../lib/gateway'); var SUBSCRIPTION_SUCCESS_STATUSES = [ braintree.Subscription.Status.Active, braintree.Subscription.Status.Canceled, ...
JavaScript
0.000002
@@ -2149,16 +2149,52 @@ Errors;%0A + var plan = req.body.selectedPlan;%0A var fi @@ -3066,34 +3066,12 @@ Id: -%22four_month_membership_id%22 +plan ,%0A
5a78cfc7a93b51f4c6dc63103a994768bfe12216
fix gateway ip parameter
cli2.js
cli2.js
var lifx = require('./lifx'); var util = require('util'); var step = 100; var autoCommit = true; var timing = 0; var lx = lifx.init(); lx.on('bulbstate', function(b) { console.log('Bulb state: ' + util.inspect(b)); }); lx.on('bulbonoff', function(b) { console.log('Bulb on/off: ' + util.inspect(b)); }); lx.on('bulb...
JavaScript
0
@@ -451,18 +451,8 @@ + g. -ipAddress. ip);
1d54e33e46361831c3fcee9adfe40721e284aa01
add function to remove cards when you complete a column. also add winning message when board is cleared
public/spider.js
public/spider.js
function unblockCards(blockedArray){ if (blockedArray.length >= 1){ $.each(blockedArray, function(){ if (this === blockedArray[0]){ $(this).removeClass("blocked"); } else if ($(this).find(".suit").text() == $(this).next().find(".suit").text() && +$(this).find(".value").text() == +$(thi...
JavaScript
0.000001
@@ -969,133 +969,8 @@ ();%0A - console.log(%22comparing the prev card %22 + card.find(%22.value%22).text() + %22with the next card %22+ $eval.find(%22.value%22).text());%0A if @@ -1041,24 +1041,68 @@ blocked%22))%7B%0A + console.log(%22There's a no condition.%22);%0A return n @@ -1287,16 +1287,18 @@ e%22...
6c0af5df93ff414994b8574c6332b269dbf11741
Update something, Header ready send
routes/index.js
routes/index.js
var express = require('express'), Rusha = require('rusha'), md5 = require('blueimp-md5').md5, Sequelize = require('sequelize'), router = express.Router(), session = require('express-session'), models = require('../models'); router.get('/', function(req, res, next) { if (req.session.uid) { res.redirect('/ap...
JavaScript
0
@@ -322,18 +322,8 @@ ');%0A -%09%09return;%0A %09%7D%0A%0A @@ -723,32 +723,41 @@ ex.js'%0A%09%09%5D%0A%09%7D);%0A +%09return;%0A %7D);%0A%0Arouter.get(
61037f0268b9e921c37b930fe7cf30d8ead79dcc
Update routes
routes/index.js
routes/index.js
JavaScript
0.000001
@@ -0,0 +1,53 @@ +'use strict';%0A%0Avar render = require('../lib/render');
aa51d247a6696423191fd4e294ae9d21fa3b3808
fix server
routes/index.js
routes/index.js
var express = require('express'); var router = express.Router(); router.get('/', function (req, res, next) { res.render('index'); }); module.exports = router;
JavaScript
0.000001
@@ -124,16 +124,21 @@ r('index +.html ');%0A%7D);%0A
97af5e846da3eb280765276c9d24fd62d817a705
Update items.js
routes/items.js
routes/items.js
/*eslint-env node */ var http = require('http'); var db = require('./db'); db.initDB(); var USE_FASTCACHE = false; /* * To enable the load generator and 'improved' cache mechanism below: * 1. remove the 'res.json({"success": 0, "fail": 0, "time": 0});' line * 2. uncomment the remaining method body */ exports.loadT...
JavaScript
0.000001
@@ -332,32 +332,34 @@ ion(req, res) %7B%0A +// res.json(%7B%22s @@ -394,16 +394,18 @@ %22: 0%7D);%0A +// /*%0A U @@ -1246,16 +1246,18 @@ ;%0A %7D%0A +// */%0A%7D;%0A%0A%0A
a9710e50b184b2347452f8d0eec4813b1203a182
Update items.js
routes/items.js
routes/items.js
require('./db'); initDB(); var USE_FASTCACHE = true; var http = require('http'); //Create and populate or delete the database. exports.dbOptions = function(req, res) { var option = req.params.option.toLowerCase(); if(option === 'create'){ cloudant.db.create('items', function(err, body){ i...
JavaScript
0.000001
@@ -41,19 +41,20 @@ CACHE = -tru +fals e;%0A%0Avar
5365e12144cd80fd2439820a8159fcade3ae798f
allow underbars in file names
routes/jsapi.js
routes/jsapi.js
var http = require('http'), querystring = require('querystring'), async = require('async'), fs = require('fs'); var validFileNameRegExp = /^[a-z]+$/; exports.load = function(req, res) { "use strict"; var files = ['base']; var lib; for (lib in req.query) { if (validFileNameRegExp.te...
JavaScript
0.000001
@@ -150,16 +150,17 @@ = /%5E%5Ba-z +_ %5D+$/;%0Aex
64e6c2941e10018ad74dcc73b331bf9ca68f3bb7
初始化"/users"的路由
routes/users.js
routes/users.js
var express = require('express'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource'); }); module.exports = router;
JavaScript
0
@@ -143,31 +143,248 @@ nd(' -respond with a resource +Get method');%0A%7D);%0A%0Arouter.post('/', function(req, res, next) %7B%0A res.send('Post method');%0A%7D);%0A%0Arouter.put('/', function(req, res, next) %7B%0A res.send('Put method');%0A%7D);%0A%0Arouter.delete('/', function(req, res, next) %7B%0A res.send('De...
6f7bfaf510106bfee90e683ddcb1d251444892a6
Support commonjs module exports
rules/import.js
rules/import.js
'use strict'; module.exports = { plugins: [ 'import', ], parserOptions: { ecmaVersion: 2017, sourceType: 'module', }, settings: { 'import/resolver': { node: { extensions: ['.js', '.jsx'], }, }, 'import/extensions': ['.js', '.jsx'], }, rules: { // static ana...
JavaScript
0
@@ -280,16 +280,55 @@ .jsx'%5D,%0A + 'import/ignore': %5B'node_modules'%5D,%0A %7D,%0A r
8f70761e373dc89fc2d21ee7deab9b878ce05566
FIX ALL THE BUGS
remove.js
remove.js
var toArray = require("to-array") , mutation = require("./mutation") module.exports = remove function remove(first) { var list = toArray(arguments) list.map(function (elem) { if (elem && elem.view && elem.nodeType) { return elem.view } return elem }).forEach(remov...
JavaScript
0.000001
@@ -221,16 +221,21 @@ && elem. +view. nodeType
edda20961204d89ec39deaa894f183f000332a43
remove pregnancy form check. this might cause double counting
mvp_apps/mvp_births/views/child_cases_by_status/map.js
mvp_apps/mvp_births/views/child_cases_by_status/map.js
function (doc) { // !code util/mvp.js if (isChildCase(doc) || isPregnancyCloseForm(doc)) { var indicator_entries_open = {}, indicator_entries_closed = {}, indicators_dob_occured = {}, indicators_dob = []; var status = (doc.closed) ? "closed" : "open";...
JavaScript
0.000105
@@ -63,45 +63,8 @@ doc) - %7C%7C%0A isPregnancyCloseForm(doc) ) %7B%0A
020bbfe32c8322087b959b8b03d061c2209388c0
cleanup tests
node-tests/unit/targets/cordova/tasks/open-app-test.js
node-tests/unit/targets/cordova/tasks/open-app-test.js
'use strict'; const td = require('testdouble'); const path = require('path'); const expect = require('../../../../helpers/expect'); const Promise = require('rsvp').Promise; const contains = td.matchers.contains; const appPath = 'appPath'; const appName = 'appName'; const openComman...
JavaScript
0.999814
@@ -1,19 +1,4 @@ -'use strict';%0A%0A cons @@ -1803,32 +1803,429 @@ ('run', () =%3E %7B%0A + it('calls spawn with correct arguments', () =%3E %7B%0A td.config(%7B ignoreWarnings: true %7D);%0A%0A td.when(spawn(), %7B ignoreExtraArgs: true %7D)%0A .thenReturn(Promise.resolve(%7B code: 0 %7D));%0A%0...
aed8b3752999ad08935c6e38880091da3b69cc2b
Fix variable shadowing in blog-starter example (#13988)
examples/blog-starter/pages/posts/[slug].js
examples/blog-starter/pages/posts/[slug].js
import { useRouter } from 'next/router' import ErrorPage from 'next/error' import Container from '../../components/container' import PostBody from '../../components/post-body' import Header from '../../components/header' import PostHeader from '../../components/post-header' import Layout from '../../components/layout' ...
JavaScript
0
@@ -1989,17 +1989,16 @@ ap((post -s ) =%3E %7B%0A @@ -2049,17 +2049,16 @@ ug: post -s .slug,%0A
17c25bb7e2b8d3034bc5fdeb87a0a846aa757ce8
Add server test for testing error return from prepareRespReturn
spec/server_spec.js
spec/server_spec.js
import Store from '../store.js'; import CorvoServer from '../corvo_server.js'; import Net from 'net'; describe("CorvoServer", () => { it("exists as a class", () => { const server = new CorvoServer(); expect(server.constructor).toBe(CorvoServer); }); it("instantiates a store", () => { const server = ...
JavaScript
0
@@ -1618,16 +1618,311 @@ %0A %7D);%0A%0A + it(%22prepareRespReturn returns Resp response for an error%22, () =%3E %7B%0A const corvoServer = new CorvoServer();%0A const errMessage = %22this is the error message%22;%0A const response = %22-%22 + errMessage + %22%5Cr%5Cn%22;%0A expect(corvoServer.prepareRe...
08a14c4c8143609ac381db9088b0e09a1ee46158
Update example.js
new/example.js
new/example.js
var utils = {} utils.onload = function(element) { element.classList.remove("hide") } var todos = {} todos.controller = function(props) { this.todoItem = [] this.onload = utils.onload this.add = function(text) { var item = { _onclick: function(index, e) { this.todoItem[index]._completed = ...
JavaScript
0.000001
@@ -697,18 +697,28 @@ todo = +mag.prop( '' +) ,%0A do @@ -751,16 +751,18 @@ if (todo +() == '') @@ -788,16 +788,18 @@ add(todo +() )%0A @@ -802,21 +802,20 @@ todo - = +( '' +) %0A e @@ -1367,33 +1367,32 @@ focus: function( -e ) %7B%0A e.targ @@ -1381,32 +1381,28 @@ n() %7B%0A ...
4b1c0766872d2a5a3dbb3079efbbd628ea4b31d1
Clean up
packages/bpk-docs/src/pages/ShadowsPage/ShadowsPage.js
packages/bpk-docs/src/pages/ShadowsPage/ShadowsPage.js
/* * Backpack - Skyscanner's Design System * * Copyright 2018 Skyscanner Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
JavaScript
0.000002
@@ -986,864 +986,28 @@ ';%0A%0A -// const ShadowsPage = () =%3E (%0A// %3CDocsPageBuilder%0A// title=%22Shadows%22%0A// tokenMap=%7BgetPlatformTokens(%0A// TOKENS,%0A// IOS_TOKENS,%0A// ANDROID_TOKENS,%0A// (%7B category %7D) =%3E %5B'box-shadows', 'elevation'%5D.indexOf(category) !==...
9623946c0a7f133f56c8dd7b03b4fcd53d407968
Fix error calling show on non-supported browsers
notify.js
notify.js
/* * Copyright (c) 2013 Alex Gibson * Released under MIT license * http://alxgbsn.co.uk */ /*global clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: false, set...
JavaScript
0.000001
@@ -2196,24 +2196,63 @@ nction () %7B%0A +%09%09if (!this.notifications) %7B return; %7D%0A %09%09if (this.n