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 |
|---|---|---|---|---|---|---|---|
cbc12a04c38a4a337eac0024586f9fd746b00e3e | Update change-theme.js | change-theme.js | change-theme.js | var themes={
"Cerulean":"https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cerulean/bootstrap.min.css",
"Cosmo":"https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cosmo/bootstrap.min.css",
"Cyborg":"https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cyborg/bootstrap.min.css",
"Darkly":"https://maxcdn.bootstrapcdn.com/b... | JavaScript | 0 | @@ -1725,25 +1725,8 @@
a%0A%7D%0A
-$(function() %7B%0A
for(
@@ -1744,17 +1744,16 @@
emes) %7B%0A
-%09
%09$(%22.the
@@ -1855,20 +1855,18 @@
li%3E'));%0A
-%09
%7D%0A
-%09
if (!loc
@@ -1884,17 +1884,16 @@
tyle) %7B%0A
-%09
%09localSt
@@ -1915,25 +1915,23 @@
fault%22;%0A
-%09
%7Delse%7B%0A
-%09
%09changeT
@@ ... |
851f44c9f817ac89f892777972c3918324a59e46 | add ability to ask for the value for a specific position | src/range.js | src/range.js | 'use strict';
var utils = require('./utils');
var assign = require('lodash.assign');
var defaults = {
values: null,
tooltip: null,
input: null,
colorLower: '#5082e0',
colorUpper: '#cccccc',
thumbWidth: 16,
delay: 2000,
selectors: {
container: '.Range',
input: '.Range-inp... | JavaScript | 0 | @@ -1946,36 +1946,81 @@
ion(
-) %7B%0A return this.values ?
+position) %7B%0A var index = position %7C%7C this.input.value;%0A %0A return
thi
@@ -2031,25 +2031,28 @@
lues
-%5B
+ ?
this.
-input.value
+values%5Bindex
%5D :
|
144381475126b8ff92a5f44b1ce5dbe6f2298873 | fix to use name variable | index.db.js | index.db.js | // index.db.js
;
window.indexedDB = window.indexedDB ||
window.mozIndexedDB ||
window.webkitIndexedDB ||
window.msIndexedDB;
window.IDBTransaction = window.IDBTransaction ||
window.webkitIDBTransaction ||
window.msIDBTrans... | JavaScript | 0.000009 | @@ -909,39 +909,25 @@
-db.objectStoreN
+n
ame,%0A
|
4a8d7402f5beb2350f6ae57a1b46131925835d7f | Update xss-shrapnel.js | xss-shrapnel.js | xss-shrapnel.js | // ==UserScript==
// @name Submit form
// @namespace *
// @description Submit form
// @include *
// @version 1
// @grant none
// ==/UserScript==
var bForceUrlEncoded = 1
var bFillHiddenForms = 0
var iPayload = 0
var aPayloads = ['aaa"bbb\'ccc<ddd>eee',
'aaa"bbb\'eee',
'aaa"eee',
'a... | JavaScript | 0.000001 | @@ -434,16 +434,57 @@
.*?eee/g
+%0A//var regex = /.%7B0,10%7Daaa.*?eee.%7B0,10%7D/g
%0A%0Awindow
|
916f7f4a46a9ff627199fb502b186249a7a79ba6 | update the entry form store. | webapp/src/stores/EntryFormStore.js | webapp/src/stores/EntryFormStore.js | import _ from 'lodash'
import Reflux from 'reflux'
import ancestryString from 'data/transform/ancestryString'
import treeify from 'data/transform/treeify'
import flattenChildren from 'data/transform/flattenChildren'
import api from 'data/api'
let EntryFormStore = Reflux.createStore({
listenables: [require('actions/... | JavaScript | 0 | @@ -7029,24 +7029,49 @@
ion (err) %7B%0A
+ console.error(err)%0A
this.d
@@ -7095,33 +7095,38 @@
e%0A
-console.error(err
+this.trigger(this.data
)%0A %7D)
|
f059f7c6336deb866150c7ab9d846f2ba8448056 | Use adapter clear in adapter-flat-file-db tests | packages/adapter-flat-file-db/test.js | packages/adapter-flat-file-db/test.js | const path = require('path');
const flatfile = require('flat-file-db');
const promisify = require('then-flat-file-db');
const test = require('micro-analytics-adapter-utils/unit-tests');
const db = promisify(
flatfile.sync(path.resolve(process.cwd(), process.env.DB_NAME || 'views.db'))
);
const adapter = require('./i... | JavaScript | 0 | @@ -33,263 +33,68 @@
nst
-flatfile = require('flat-file-db');%0Aconst promisify = require('then-flat-file-db');%0Aconst test = require('micro-analytics-adapter-utils/unit-tests');%0A%0Aconst db = promisify(%0A flatfile.sync(path.resolve(process.cwd(), process.env.DB_NAME %7C%7C 'views.db'))%0A);
+test = require('mic... |
78857ed5a1a75030ffd1a8d41e344bb9568f6830 | Fix rollover output data key | utility/lambdas/ecs-service-size-rollover/index.js | utility/lambdas/ecs-service-size-rollover/index.js | // Invoked by: CloudFormation
// Returns: A `Data` object to a pre-signed URL
//
// Used as part of an ECS service custom resource, which allows for the
// DesiredSize of a service to be persisted across CloudFormation deploys.
// The name of the a cluster and service is passed in as part of the event data,
// and a qu... | JavaScript | 0.000736 | @@ -2524,16 +2524,17 @@
+%5B
RESPONSE
@@ -2556,16 +2556,17 @@
ED_COUNT
+%5D
: servic
|
303e551b6ffb77a10f55bcbc640d978432293332 | Test #9 | test/client.js | test/client.js | 'use strict';
var assert = require('assert');
var spawn = require('child_process').spawn;
var net = require('net');
var async = require('async');
var Client = require('../index').Client;
var PORT = 11212;
function getAllItems(callback) {
var client = new net.Socket();
client.connect(PORT, '127.0.0.1', function()... | JavaScript | 0.000001 | @@ -1661,24 +1661,85 @@
nsole.log);%0A
+ memcachedServerProcess.stderr.on('data', console.log);%0A
memcac
|
d47c2c8aead44a4f2304b62ea0b5e6a49e60155f | Add libsqlncli library to test with | test/common.js | test/common.js | var odbc = require("../");
//odbc.library = '/usr/lib/odbc/libsqlite3odbc-0.91';
//odbc.library = '/usr/lib/x86_64-linux-gnu/odbc/libtdsodbc';
exports.connectionString = "DRIVER={SQLite3};DATABASE=data/sqlite-test.db";
//exports.connectionString = "DRIVER={MySQL};DATABASE=test;HOST=localhost;USER=test;";
//exports.con... | JavaScript | 0 | @@ -135,16 +135,83 @@
dsodbc';
+%0A//odbc.library = '/opt/sqlncli-11.0.1790.0/lib64/libsqlncli-11.0';
%0A%0Aexport
|
5b7263513cfff77837d7529a275d92d974c8271f | Update exercise-4.js | js-conditionals/exercise-4.js | js-conditionals/exercise-4.js | // 4. Write a JavaScript conditional statement to find the largest of five numbers. Display an alert box to show the result.
// Sample numbers : -5, -2, -6, 0, -1
// Output : 0
function greatestOfFive(a, b, c, d, e) {
if(a>b && a>c && a>d && a>e) {
alert(a);
} else if(b>a && b>c && b>d && b>d) {
alert(b... | JavaScript | 0 | @@ -445,17 +445,17 @@
alert(
-f
+e
);%0A %7D%0A%7D
|
664d3ab62137da3acf676ec948c1ce33ecf39726 | change res.json to return | helpers/ImgUploader.js | helpers/ImgUploader.js | 'use strict'
const imgur = require('imgur');
const ImgUpload = (file) => {
imgur.uploadFile(file)
.then(function (json) {
console.log(json.data.link);
res.json(json.data.link);
})
.catch(function (err) {
console.error(err.message);
});
}
module.exports = {
ImgUpload
}
| JavaScript | 0.000001 | @@ -169,15 +169,13 @@
re
-s.json(
+turn
json
@@ -180,25 +180,24 @@
on.data.link
-)
;%0A %7D)%0A
|
6fc77bed71e8be2f2ad4df8d8aaf7e68fa46d83f | fix import | test/common.js | test/common.js | global.chai = require('chai');
global.expect = require('chai').expect;
global.assert = require('chai').assert;
var MeshTree = require('../src/index.js');
var multilevel = require('multilevel');
var net = require('net');
var level = require('level');
var db = level('dbtest');
net.createServer(function (con) {
con.p... | JavaScript | 0.000001 | @@ -105,19 +105,22 @@
ssert;%0A%0A
-var
+import
MeshTre
@@ -125,42 +125,30 @@
ree
-= require('../src/index.js');%0A%0Avar
+from '../src';%0A%0Aimport
mul
@@ -155,26 +155,21 @@
tilevel
-= require(
+from
'multile
@@ -176,71 +176,64 @@
vel'
-)
;%0A
-var net = require(
+import net from
'net'
-)
;%0A
-var
+i... |
4b0dd8651bc033843348c91440c49ffb47092b1e | put back original as_helper | helpers/auth_server.js | helpers/auth_server.js | var config = require(__dirname + '/../config/config'),
logger = require(__dirname + '/../lib/logger'),
curl = require(__dirname + '/../lib/curl'),
curl_to_AS = function (method, path, data, scb, ecb) {
curl.request(method)
.to(config.auth_server.host, config.auth_server.port, path)
.send(data)
.then(scb)
... | JavaScript | 0.000003 | @@ -2248,83 +2248,11 @@
%09%7D,
-function (status, data) %7B%0A%09%09status === 200%0A%09%09%09? scb(data)%0A%09%09%09: ecb(data)%0A%09%7D
+scb
, ec
|
c3dcc1dcc4134fccc8a8c420b348285e6667c3e9 | make the "too many matches" autocomplete text configurable with the autocomplete.tooManyMatchesMessage config var | js/Model/AutocompleteStore.js | js/Model/AutocompleteStore.js | dojo.declare( 'JBrowse.Model.AutocompleteStore', null,
/**
* @lends JBrowse.Model.AutocompleteStore
*/
{
/**
* @constructs
*/
constructor: function( /**Object*/ args ) {
if( ! args.namesTrie )
throw "must provide a namesTrie argument";
this.namesTrie = args.namesTrie;
... | JavaScript | 0.001334 | @@ -362,16 +362,116 @@
t %7C%7C 15;
+%0A this.tooManyMatchesMessage = args.tooManyMatchesMessage %7C%7C '(too many matches to display)';
%0A%0A
@@ -3498,39 +3498,34 @@
me:
-'(too many m
+this.tooManyM
atches
- to display)'
+Message
, hi
|
d4840919814a06e076e3a99422240da291b7624f | Disable tooltip pos settings when tooltip state disabled | src/options/settings/components/Tooltip.js | src/options/settings/components/Tooltip.js | import React from 'react'
// import Checkbox from './Checkbox'
import { Checkbox } from 'src/common-ui/components'
import * as utils from 'src/content-tooltip/utils'
import styles from './settings.css'
class Tooltip extends React.Component {
state = {
tooltip: true,
position: 'mouse',
}
... | JavaScript | 0 | @@ -1931,32 +1931,85 @@
.state.tooltip%7D%0A
+ isDisabled=%7B!this.state.tooltip%7D%0A
@@ -2278,32 +2278,87 @@
togglePosition%7D%0A
+ disabled=%7B!this.state.tooltip%7D%0A
|
403c5599f2b4eea4e56945f9294ad6baa491a284 | Update study subtype query, in transcript view. | js/controllers/transcripts.js | js/controllers/transcripts.js | 'use strict';
var _ = require('../underscore_ext');
var xenaQuery = require('../xenaQuery');
// Hard-coded expression dataset
var expressionHost = 'https://toil.xenahubs.net';
var transcriptDataset = {
host: 'https://reference.xenahubs.net',
name: 'wgEncodeGencodeBasicV23'
};
var identity = x => x;
var fetchExpr... | JavaScript | 0 | @@ -170,16 +170,109 @@
bs.net';
+%0Avar subtypeDataset = 'TCGA_GTEX_category.txt';%0Avar subtypeField = 'TCGA_GTEX_main_category';
%0A%0Avar tr
@@ -996,24 +996,54 @@
query%5D);%0A%7D%0A%0A
+var prefix = 4; // TCGA, GTEX%0A
function fil
@@ -1075,64 +1075,68 @@
var
-%7B'detailed_category': dc, '_primary_site': ps%7... |
b362b1f4b2a5aa0aedeb6a336132d146e11224b0 | reorder bolt core deps pulled into the icon component | packages/components/bolt-icon/src/icon.standalone.js | packages/components/bolt-icon/src/icon.standalone.js | import {
spacingSizes,
css,
colorContrast,
define,
hasNativeShadowDomSupport,
props,
rgb2hex,
supportsCSSVars,
h,
withPreact,
} from '@bolt/core';
import PubSub from 'pubsub-js';
import upperCamelCase from 'uppercamelcase';
import * as Icons from '@bolt/components-icons';
import styles from './icon... | JavaScript | 0 | @@ -6,31 +6,8 @@
t %7B%0A
- spacingSizes,%0A css,%0A
co
@@ -19,16 +19,23 @@
ntrast,%0A
+ css,%0A
define
@@ -36,16 +36,21 @@
define,%0A
+ h,%0A
hasNat
@@ -90,16 +90,32 @@
gb2hex,%0A
+ spacingSizes,%0A
suppor
@@ -125,21 +125,16 @@
SSVars,%0A
- h,%0A
withPr
|
0e4c3ef18f80e473dff57145db69d0990222414e | add case insensitive flag to ext regex | js/utilities/fileUtilities.js | js/utilities/fileUtilities.js | /**
* Get a file extension from a string
* @param file {string}
* @returns {boolean}
*/
function getFileExtension (file) {
const ext = file.split('.');
// extensions that are not files, you shall not pass. (unless you are a data encoded URL)
if (ext.length < 2) {
// extract mime from data encod... | JavaScript | 0.000002 | @@ -589,16 +589,21 @@
0-9%5C-%5D+/
+, 'i'
);%0A c
|
9c1e9131d03d79013656ac8e1219d5bc588a3b52 | Remove commented out code. | website/app/application/directives/setup-details.js | website/app/application/directives/setup-details.js | (function(module) {
module.directive('setupDetails', setupDetailsDirective);
function setupDetailsDirective() {
return {
restrict: 'E',
scope: {
setup: '='
},
//controller: 'DetailTabsDirectiveController',
//controllerAs: 'ctrl'... | JavaScript | 0 | @@ -224,141 +224,8 @@
%7D,%0A
- //controller: 'DetailTabsDirectiveController',%0A //controllerAs: 'ctrl',%0A //bindToController: true,%0A
|
c0927ffdb4fb2d6379b744ae79c276d498a455dd | add observable/Value#change method | src/observable/accessorMixins/Value.js | src/observable/accessorMixins/Value.js | define([
'compose',
], function(
compose
){
var ValueAPI = {
value: function(value) {
if (arguments.length) {
return this._change(value);
} else {
return this._getValue();
}
},
onChange: function(cb) {
return this._onChange(cb);
},
};
var Value = compose(function() {
this.ctr = compo... | JavaScript | 0.000001 | @@ -259,16 +259,51 @@
%09%09%7D,%0A%09%7D;
+%0A%09ValueAPI.change = ValueAPI.value;
%0A%0A%09var V
|
47f3592d579e26523f10a53f9c5f517a080bb6fb | Tweak test config glob for patterns | test/config.js | test/config.js | var path = require('path');
var yaml = require('js-yaml');
var frontMatter = require('front-matter');
var marked = require('marked');
var drizzleInit = require('../dist/init');
var Handlebars = require('handlebars');
const fixtures = path.join(__dirname, 'fixtures/');
const parsers = {
content: {
pattern: '\.(... | JavaScript | 0 | @@ -1728,20 +1728,26 @@
ns/**/*.
+%7B
html
+,hbs%7D
',%0A
|
b4129e975b2d47adf3c34eb7979ffb7593dc6949 | update tests | test/config.js | test/config.js | /*globals describe, it*/
const Config = require('../lib/core/config.js');
const Plugins = require('../lib/core/plugins.js');
const assert = require('assert');
const TestLogger = require('../lib/tests/test_logger.js');
describe('embark.Config', function () {
let config = new Config({
env: 'myenv',
configDir: ... | JavaScript | 0.000001 | @@ -1331,19 +1331,16 @@
: %7B'web3
-.js
': '1.0.
|
ad2600e2ff069ea82f8840f2f4ec4a543b122a03 | Read file in appropriate encoding according to type | packages/mendel-pipeline/src/step/fs-reader/index.js | packages/mendel-pipeline/src/step/fs-reader/index.js | const BaseStep = require('../step');
const path = require('path');
const fs = require('fs');
const analytics = require('../../helpers/analytics/analytics')('fs');
const debugError = require('debug')('mendel:reader:error');
class FileReader extends BaseStep {
constructor({registry}, {projectRoot}) {
super()... | JavaScript | 0.000003 | @@ -293,16 +293,23 @@
jectRoot
+, types
%7D) %7B%0A
@@ -397,16 +397,118 @@
gistry;%0A
+ this._typeMap = new Map();%0A types.forEach(type =%3E this._typeMap.set(type.name, type));%0A
@@ -629,16 +629,281 @@
try.id);
+%0A const entryType = this.registry.getType(entry.id);%0A co... |
1249aacd259e940d9f44ce1ae54f4506c6e6d470 | Change functions removed from Details factory to run from new Reviews Factory | client/app/reviews/reviews.js | client/app/reviews/reviews.js | angular.module('zeus.reviews', [])
.controller('ReviewsController', function($location, $stateParams, Details, authService) {
var ReviewsVm = this;
ReviewsVm.id = $stateParams.id;
ReviewsVm.review = {};
ReviewsVm.user = {};
ReviewsVm.movie = {};
ReviewsVm.currentUser = JSON.parse(localStorage.getItem('profi... | JavaScript | 0 | @@ -115,20 +115,30 @@
hService
+, Reviews
) %7B%0A
+%0A
var Re
@@ -332,22 +332,22 @@
e'));%0A
-Detail
+Review
s.getRev
@@ -659,16 +659,17 @@
vieInfo)
+;
%0A %7D
@@ -669,16 +669,17 @@
%7D)
+;
%0A %7D);
@@ -762,22 +762,22 @@
%7B%0A
-Detail
+Review
s.upvote
@@ -1097,16 +1097,17 @@
t%22)... |
e22624d42167e3a78e3669057258c9d914b270b2 | Fix a React warning | client/containers/Annotate.js | client/containers/Annotate.js | import React from 'react'
import { connect } from 'react-redux'
import Annotator from '../components/annotator'
import Selector from '../components/annotator-drawer/selector'
import { createAnnotation } from '../actions/index'
const question = JSON.parse(window.QUESTION)
const tags = question.answer.map(a => a.tag)
... | JavaScript | 0.997183 | @@ -347,16 +347,21 @@
act (obj
+, key
) %7B%0A if
@@ -453,16 +453,29 @@
ren.map(
+(item, i) =%3E
convertO
@@ -486,16 +486,25 @@
tToReact
+(item, i)
)%0A%0A i
@@ -565,32 +565,53 @@
lement(obj.name,
+ Object.assign(%7Bkey%7D,
obj.attrs, chil
@@ -596,32 +596,33 @@
%7Bkey%7D, obj.attrs
+)
, children%5B0%5D)... |
a0a229da832289af2e36f86b26f805ce38e34ef8 | set up nodemail | server/cronjob.js | server/cronjob.js | var basicScraper = require('./controllers/basicScraperController');
var getExternalUrl = require('./controllers/urlController').getExternalUrl;
var CronJob = require('cron').CronJob;
var secret = require('../config.js');
var db = require('./db.js');
var Sequelize = require('sequelize');
var mandrill = require('mandrill... | JavaScript | 0 | @@ -440,16 +440,154 @@
mpare;%0A%0A
+var nodemailer = require('nodemailer');%0Avar transporter = nodemailer.createTransport(%7B%0A service: 'mailgun',%0A auth: secret.auth%0A%7D);%0A%0A
// To ru
@@ -1389,16 +1389,92 @@
pImage;%0A
+ var email = currEmail;%0A console.log('email is', email)%0A... |
6d3fc6c0e70988a4b141a2b16a9a9b12dccbcc31 | Remove temporary, locally instantiated code schools | src/scenes/home/codeSchools/codeSchools.js | src/scenes/home/codeSchools/codeSchools.js | import React, { Component } from 'react';
import axios from 'axios';
import LinkButton from 'shared/components/linkButton/linkButton';
import Section from 'shared/components/section/section';
import ApprovedSchools from './approvedSchools/approvedSchools';
import PartnerSchools from './partnerSchools/partnerSchools';
i... | JavaScript | 0 | @@ -673,1314 +673,8 @@
) %7B%0A
- const temporaryAddons = %5B%0A %7B%0A name: 'Skill Distillery',%0A email: 'n/a',%0A url: 'https://skilldistillery.com/',%0A full_time: true,%0A hardware_included: false,%0A has_online: false,%0A online_only: false,%0A log... |
02afc29c2730b622bf061f659c3cdfe96c77c6d8 | Convert `main.t.js` to `$destructible`. | test/main.t.js | test/main.t.js | /*
___ usage ___ en_US ___
usage: executable <args>
Echo arguments to standard out.
___ . ___
*/
require('..')(module, function (program, callback) {
console.log('1..1')
console.log('ok 1')
})
| JavaScript | 0.000001 | @@ -128,38 +128,119 @@
le,
-function (program, callback) %7B
+%7B%0A $destructible: true,%0A%7D, function (destructible, arguable, options, callback) %7B%0A destructible.destroy()
%0A
@@ -284,11 +284,26 @@
'ok 1')%0A
+ callback()%0A
%7D)%0A
|
2d25ad2a12ed2cb6c06791d263ca8d92245f6a2c | update test (rename as properties) | test/mapper.js | test/mapper.js | var assert = require('assert');
describe('test mapper api', function() {
var couchbase;
it('should declare', function(done) {
require('./connector')().then(function(api) {
couchbase = api;
var test = couchbase.declare('test', {
properties: {
foo: {
type: 'string',
... | JavaScript | 0 | @@ -1889,37 +1889,41 @@
dex',%0A
-field
+propertie
s: %5B'foo', 'bar'
@@ -1952,53 +1952,8 @@
dx2:
- %7B%0A type: 'index',%0A fields:
%5B'f
@@ -1963,26 +1963,16 @@
, 'baz'%5D
-%0A %7D
,%0A
@@ -2021,13 +2021,17 @@
-field
+propertie
s: %5B
|
acb2e6ba975fdfe55f5505b9fa2a14804dc37c1b | clean up store from rebase | src/store.js | src/store.js | /* eslint-disable no-underscore-dangle */
import { createStore, applyMiddleware, compose, combineReducers } from 'redux';
import thunk from 'redux-thunk';
import { persistStore, autoRehydrate } from 'redux-persist';
import { createFilter } from 'redux-persist-transform-filter';
import { reducer as cryptoPrices } from '... | JavaScript | 0 | @@ -400,68 +400,8 @@
ux';
-%0Aimport kycSystem from '@digix/kyc-system/spectrum/reducer';
%0A%0Aim
|
57d21540e74afbeb1d52a20d7631fe3107346437 | Simplify restoration of preferences | src/store.js | src/store.js | import _merge from 'lodash/merge'
import moment from 'moment'
let today = moment().format('YYYY-MM-DD')
export default {
dimming: false,
loading: true,
schedule: {},
// Restore saved preferences to over default lunches and classes
lunches: _merge({ 'Monday': 1, 'Tuesday': 1, 'Wednesday': 1, 'Thursday': 1, '... | JavaScript | 0 | @@ -97,16 +97,116 @@
-MM-DD')
+%0Alet restorePrefs = (key, defaults) =%3E _merge(defaults, JSON.parse(localStorage.getItem(key)) %7C%7C %7B%7D)
%0A%0Aexport
@@ -305,16 +305,21 @@
to over
+write
default
@@ -350,23 +350,40 @@
unches:
-_merge(
+restorePrefs('lunches',
%7B 'Monda
@@ -451,189 +451,96 @@
1 %7D
+)... |
f50746de79f59a8f9d591474bc0935c920a629ee | rename selectf, dispatchf to selector, dispatcher | src/store.js | src/store.js | import isFunction from 'lodash/isFunction';
import isPlainObject from 'lodash/isPlainObject';
import conformsTo from 'lodash/conformsTo';
const optsShape = {
selector: isFunction,
dispatcher: isFunction
};
const promiseShape = {
then: isFunction
};
const noParent = {
select(query) {
// TODO throw
}
d... | JavaScript | 0.000002 | @@ -130,16 +130,50 @@
ormsTo';
+%0Aimport isNil from 'lodash/isNil';
%0A%0Aconst
@@ -194,18 +194,16 @@
select
-or
: isFunc
@@ -218,18 +218,16 @@
dispatch
-er
: isFunc
@@ -792,17 +792,18 @@
s.select
-f
+or
= selec
@@ -822,17 +822,18 @@
dispatch
-f
+er
= dispa
@@ -1438,17 +1438,18 @@
s.select
-f
+or
(thi... |
c2ef54f4af9a7947d19157155aff4a0245b2dbd4 | Fix test | test/output.js | test/output.js | var Cogs = this && this.Cogs || (function () {
'use strict';
var modules = {};
var loads = {};
var define = function (path, factory) {
modules[path] = {exports: {}, factory: factory, path: path};
};
var require = function (path) {
var module = modules[path];
if (!module) throw new Error("Cann... | JavaScript | 0.000004 | @@ -134,24 +134,123 @@
factory) %7B%0A
+ if (modules%5Bpath%5D) %7B%0A throw new Error(%22Module '%22 + path + %22' is already defined%22);%0A %7D%0A%0A
modules%5B
|
3cca3aca5224aaf583be37a4191a75c4034e8f83 | Add win32 to x11recorder.js origin/offset options. (#1186) | lib/video/screenRecording/desktop/x11recorder.js | lib/video/screenRecording/desktop/x11recorder.js | 'use strict';
const log = require('intel').getLogger('browsertime.video');
const get = require('lodash.get');
const util = require('util');
const fs = require('fs');
const ffmpegRecorder = require('./ffmpegRecorder');
const convert = require('./convert');
const defaults = require('../../defaults');
const getViewPort =... | JavaScript | 0 | @@ -510,16 +510,147 @@
%7D%0A %7D,%0A
+ win32: %7B%0A firefox: %7B origin: '0,71', offset: %7B x: 0, y: 168 %7D %7D,%0A chrome: %7B origin: '0,66', offset: %7B x: 0, y: 66 %7D %7D%0A %7D,%0A
darwin
|
641164dfed5142c39b0a865ae3aebc6524aa815e | Correct the import | test/runner.js | test/runner.js | import {createRunner} from '@smashwilson/atom-mocha-test-runner';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import path from 'path';
import until from 'test-until';
import NYC from 'nyc';
import semver from 'semver';
chai.use(chaiAsPromised);
global.assert = chai.assert;
// Give tests t... | JavaScript | 0.99913 | @@ -26,25 +26,13 @@
m '@
-smashwilson/
atom
--
+/
moch
|
98a62ff8774e5e1bdda3610e441f8fd6bc569f54 | Make grunt fail if tests fail. | test/runner.js | test/runner.js | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | JavaScript | 0 | @@ -2952,16 +2952,22 @@
unction(
+runner
) %7B call
@@ -2971,20 +2971,41 @@
allback(
-t
ru
-e
+nner.results().passed()
); %7D%0A
|
e2fa1d1f64c6b47db9c1468e103994db60b937c1 | set browser window size | test/runner.js | test/runner.js | var localtunnel = require('localtunnel')
, tests = require('bulk-require')(__dirname, [ '*-test.js' ])
, thunkify = require('thunkify')
, build = process.env.TRAVIS_BUILD_NUMBER || (new Date()).toJSON()
, startServer = function (done) {
var server = require('./utils/server')()
server.listen(0, fun... | JavaScript | 0.000001 | @@ -548,16 +548,61 @@
tunnel%0A%0A
+ yield browser.setWindowSize(800, 600)%0A%0A
if
|
b5687c6a3b66701584c12bb5784e5729261a9c86 | Revert "Re-enabled wrtc server tests, using SIGKILL to ensure Electron daemon gets killed" | test/server.js | test/server.js | var Client = require('../')
var common = require('./common')
var test = require('tape')
var wrtc = require('electron-webrtc')()
var wrtcReady = false
wrtc.electronDaemon.once('ready', function () {
wrtcReady = true
})
var infoHash = '4cb67059ed6bd08362da625b3ae77f6f4a075705'
var peerId = new Buffer('012345678901234... | JavaScript | 0 | @@ -81,16 +81,19 @@
'tape')%0A
+//
var wrtc
@@ -125,16 +125,19 @@
tc')()%0A%0A
+//
var wrtc
@@ -150,16 +150,19 @@
= false%0A
+//
wrtc.ele
@@ -201,16 +201,19 @@
on () %7B%0A
+//
wrtcRe
@@ -223,16 +223,19 @@
= true%0A
+//
%7D)%0A%0Avar
@@ -944,24 +944,26 @@
eUrl %5D%0A %7D
+/*
, %7B wrtc: wr
@@ -9... |
1c1a676c10df249ea4c6b523b86fd2f703d69447 | add a few more tests | test/simple.js | test/simple.js | var should = require('should');
var mstats = require('../index.js');
describe('basic wrapping test', function(){
describe('wrap only', function(){
// simple test objects
var exportTest = {
a: function a(arg1, arg2){ return arg1 + arg2;},
b: function b(arg2, arg2){ return arg1 + arg2;},
c: ... | JavaScript | 0 | @@ -264,33 +264,33 @@
: function b(arg
-2
+1
, arg2)%7B return
@@ -809,33 +809,33 @@
= function b(arg
-2
+1
, arg2)%7B return
@@ -2631,33 +2631,33 @@
: function b(arg
-2
+1
, arg2)%7B return
@@ -3401,24 +3401,130 @@
not.be.NaN;%0A
+ exportTest.b();%0A global.concurix.traceAggregate.nodeCache%5Bid%5D... |
43e774992cda04b3e6f7bef10302fd7c69be6060 | test that write throws when a peer connects twice, the first stream is disconnected, and the first is written to | test/stream.js | test/stream.js |
var createPeer = require('../')
var test = require('tape')
function create (id) {
var store = {}
function append (msg, cb) {
store[msg.author] = store[msg.author] || []
if(msg.sequence - 1 != store[msg.author].length)
cb(new Error('out of order'))
else {
store[msg.author].push(msg)
... | JavaScript | 0 | @@ -2428,16 +2428,81 @@
() %7B%7D)%0A%0A
+ t.throws(function () %7B%0A as.write(%7Balice: -1, bob: -2%7D)%0A %7D)%0A
t.equa
|
00e36f92f111e4a81a8b20900fcdb12d361561e6 | Update watch-list.js | html/2.0/watch-list.js | html/2.0/watch-list.js | var WATCH_JSON_LIST =
[
[110000],
[5],
[700],
[2858],
[1337],
[1720],
[772],
[6060],
[221004],
[110010],
[11],
[1],
[388],
[3988],
[293],
[823],
[2318],
[1299],
[66],
[6],
[1038],
[1137]
[405],
[435]
];
| JavaScript | 0.000001 | @@ -224,16 +224,17 @@
%0A%09%5B1137%5D
+,
%0D%0A%09%5B405%5D
|
218bfce49d53ea388b4f579af71b687228248af5 | Fix vPatch specs | test/vPatch.js | test/vPatch.js | import test from 'tape-catch';
import diff from 'virtual-dom/diff';
import h from 'virtual-dom/h';
import isSubset from 'is-subset';
import vPatch from '../module/vPatch';
test('vPatch: ' +
'Produces a VirtualPatch-compatible object.', (is) => {
is.ok(
isSubset(
diff(
h('svg', {
... | JavaScript | 0 | @@ -291,36 +291,50 @@
(%0A h('s
-vg',
+pan', %7Battributes:
%7B%0A a
@@ -393,16 +393,17 @@
+%7D
%7D),%0A
@@ -416,12 +416,26 @@
h('s
-vg',
+pan', %7Battributes:
%7B%0A
@@ -488,32 +488,32 @@
d: '4'%0A
-
%7D)%0A
@@ -498,32 +498,33 @@
: '4'%0A
+%7... |
0cb2448c8f673fd63521216059257ee0583a46df | Fix infinite scroll | static/javascript/tba_js/gameday_ticker.js | static/javascript/tba_js/gameday_ticker.js | var firebase = new Firebase('https://thebluealliance.firebaseio.com/notifications/');
var pageSize = 25;
var earliestKey = null;
var visibleTypes = {}; // default = visible
$(window).load(function() {
firebase.limitToLast(pageSize).on('child_added', function(childSnapshot) {
var card = buildNotificationCa... | JavaScript | 0.000194 | @@ -1867,16 +1867,23 @@
$('#
+ticker-
notifica
@@ -2064,37 +2064,29 @@
ttom%0A$('
-#
+.
ticker
--notifications
+_panel
').scrol
@@ -2112,67 +2112,70 @@
if (
-window.scrollY == document.body.scrollHeight - window.inner
+$(this).scrollTop() + $(this).innerHeight()%3E=$(this)%5B0%5D.scroll
Heig
|
ccf5b77d49a027dcce3df9cfd8d03dfb49c55d36 | improve bridge error message | Bridge.js | Bridge.js | // Bridge.js
//
// gives access to (some) native methods in the app, bypassing the UI
var debugBridge = false;
(function() {
var root = this,
bridge = null;
// put bridge in namespace of importing code
if (typeof exports !== 'undefined') {
bridge = exports;
} else {
bridge =... | JavaScript | 0.000001 | @@ -2178,14 +2178,102 @@
king
-, try
+; to diagnose, run this same command in a terminal: %22%0A + %22
$ ru
|
eb774d74c9f6baf8f40bc87c40b858543b8fae52 | remove tutorbright till approved | 2021/src/Sections/SponsorDisplay/SponsorDisplay.js | 2021/src/Sections/SponsorDisplay/SponsorDisplay.js | import React, { Component } from "react";
import { Collapse } from "antd";
import "./SponsorDisplay.css";
import CloudFlare from "../../Assets/Logos/Cloudflare.png";
import WolframAlpha from "../../Assets/Logos/WolframAlpha.png";
import TutorBright from "../../Assets/Logos/TutorBright.png";
import Linode from "../../A... | JavaScript | 0 | @@ -1119,32 +1119,36 @@
%3C/img%3E%0A
+ %7B/*
%3Cimg src=%7BTutor
@@ -1186,32 +1186,36 @@
lay-item%22%3E%3C/img%3E
+ */%7D
%0A %3Cimg
|
de0df8ac5cd572dc6eb8f00a5f320ce782102930 | Use proper timeout | tests/flags.js | tests/flags.js | "use strict";
const assert = require("assert");
const shell = require("shelljs");
const fs = require("fs-extra");
const xml2js = require("xml2js");
describe("flags", () => {
describe("--add-dependencies", () => {
beforeEach(() => {
shell.mkdir("-p", "tmp");
shell.cd("tmp");
});
afterEach(()... | JavaScript | 0.000483 | @@ -4454,92 +4454,8 @@
=%3E %7B
-%0A // This sometimes needs more time to run on Travis.%0A this.timeout(5000);
%0A%0A
@@ -4622,33 +4622,99 @@
lt.code);%0A %7D)
-;
+.timeout(5000); // This sometimes needs more time to run on Travis.
%0A %7D);%0A%0A descri
|
bf4e707eed8c3b3cece727a442baed9856210185 | Update consume_test.js | consume_test.js | consume_test.js | var Consumer = require('./lib/Consumer');
var options = {host : 'xtnvkafka01.xt.local', topic : 'social', partition : 0};
options = {host : 'localhost', topic : 'social', partition : 0, offset : 0};
var consumer = new Consumer(options);
consumer.connect(function(err){
if (err){
throw "could not connect to Kafka"... | JavaScript | 0 | @@ -61,84 +61,8 @@
st :
- 'xtnvkafka01.xt.local', topic : 'social', partition : 0%7D;%0Aoptions = %7Bhost :
'lo
|
1ad34180283e6ec3ed9e478f27453a94bd289283 | Remove PropTypes, which are used anymore | src/types.js | src/types.js | // @flow
import { PropTypes } from "react";
export const statusIds = ["ontrack", "atrisk", "intervention", "onhold"];
export type Status = "ontrack" | "atrisk" | "intervention" | "onhold";
export const tabIds = ["edit"];
export type TabId = "edit";
export type Label = {
id: string,
title: string
};
export cons... | JavaScript | 0 | @@ -7,44 +7,8 @@
ow%0A%0A
-import %7B PropTypes %7D from %22react%22;%0A%0A
expo
@@ -277,577 +277,97 @@
ort
-const labelInfoShape = %7B%0A id: PropTypes.string.isRequired,%0A initial: PropTypes.string.isRequired,%0A colour: PropTypes.string.isRequired,%0A title: PropTypes.string.isRequired%0A%7D;%0Aexport type ... |
f0d37b07de1232248f45b627c7b1fb5e9e039fd2 | remove obsolete error check | demo/test/run_tests.js | demo/test/run_tests.js | // Flight Test runner
var jasmineStarted;
var jasmineErrored;
function startJasmine(component) {
if (!jasmineStarted) {
afterEach(function(){
component.teardownAll()
});
jasmine.getEnv().addReporter(new jasmine.BootstrapReporter());
jasmine.getEnv().execute();
jasmineStarted = true;
}
}... | JavaScript | 0.000001 | @@ -865,147 +865,8 @@
r) %7B
-%0A if (errorMsg == 'setting a property that has only a getter') %7B%0A //Selenium's plugin for Firefox 3.6 throws this error%0A return;%0A %7D
%0A%0A
|
50dcd606f8ac6b4bb1f4ee5fd70d60b84dba3173 | Add file import | src/ui/ui.js | src/ui/ui.js | requirejs(["vendor/mithril"], function(mIgnore) {
const root = document.body
const Archive = {
editorContents: "",
lastLoadedContents: "",
items: [],
previousNextIndex: 0,
setEditorContents(newContents) {
Archive.editorContents = newContents
Arch... | JavaScript | 0.000002 | @@ -1078,32 +1078,1380 @@
s))%0A %7D,%0A%0A
+ importText: function() %7B%0A if (!Archive.confirmClear()) return%0A Archive.loadFromFile((fileName, fileContents) =%3E %7B%0A if (fileContents) %7B%0A console.log(%22updating editor%22)%0A ... |
83000c20d973af665c4aa4f028affa55e9ca0b93 | add extra log level: off | src/utils.js | src/utils.js | 'use strict';
import fs from 'fs';
import {hostname} from 'os';
import process from 'process';
import _ from 'lodash';
import {version} from '../package.json';
/**
* Die function. Writes to console and throws error
*/
export function die(str) {
console.trace('ERROR: ' + str); // eslint-disable-line
throw (str);
}... | JavaScript | 0.999918 | @@ -1430,24 +1430,36 @@
gLevels = %7B%0A
+ OFF: 0,%0A
ERROR: 1
|
e3dc2ae64efa8b4a90f2653ba599cc054186cbd8 | Fix getCurrentExtensionPart | src/utils.js | src/utils.js | 'use strict';
const Logdown = require('logdown');
const Constants = require('./constants.js');
// NOTE: Until https://github.com/caiogondim/logdown.js/issues/82 is implemented.
const loggerLog = new Logdown({ prefix: 'messenger-log', markdown: false });
const loggerInfo = new Logdown({ prefix: 'messenger-info', m... | JavaScript | 0 | @@ -2501,32 +2501,113 @@
%7B%0A //
+ chrome.devtools is available in devtools panel.%0A // In latest Chrome,
chrome.extensio
@@ -2658,16 +2658,26 @@
ound
- &
+,
popup
+ & devtools
.%0A
@@ -2689,16 +2689,102 @@
if
+(chrome.devtools) %7B%0A retVal = Constants.DEVTOOL;%... |
5596d738e2407dc5350945925ffa6ccbc9b0dab9 | Fix simplifyname to support arrays | src/utils.js | src/utils.js | import { browserHistory } from 'react-router';
const cleanPath = (path) => path.replace(/\W/g, '');
const onClickHref = (href) => (event) => browserHistory.push(href);
const getType = (type) => {
const ex = /[\[]?([^\]]+)/i;
return type.match(ex)[1];
};
const simplifyName = (name) => {
const splitName = name.... | JavaScript | 0.000007 | @@ -365,16 +365,20 @@
word) =%3E
+%0A
word.se
@@ -383,16 +383,17 @@
search('
+v
%5B0-9%5D+')
@@ -411,19 +411,61 @@
d : word
-%5B0%5D
+.substring(0, word.search('%5BA-Za-z%5D') + 1)%0A
).join('
|
f71ebf93c5ac76a9bd90652a20694b5998a6e8fb | fix text | src/utils.js | src/utils.js | const tokenSchemaBasic = ({
to,
gas,
value
}) => {
let base = `ethereum:${to}`,
gasBlock = '',
valueBlock = '';
if (gas) gasBlock = `[?gas=${gas}]`;
if (value) valueBlock = `[?value=${value}]`;
return `ethereum:${to}${gasBlock}${valueBlock}`;
}
/**
* generate string: ethere... | JavaScript | 0.999999 | @@ -345,27 +345,16 @@
ueBlock%7D
-$%7BgasBlock%7D
%60%0A * @pa
|
0eb609d5f5ffd9f19e935c96ce0a6a0a0a98edd7 | Update utils.js | src/utils.js | src/utils.js | /*
MagJS v0.21
http://github.com/magnumjs/mag.js
(c) Michael Glazer
License: MIT
*/
(function(mag) {
'use strict';
var utils = {};
utils.callHook = function(hookins, key, name, i, data, before) {
data.change = false
if (hookins[name][i].key == key) {
before = JSON.stringify({
v: data.val... | JavaScript | 0 | @@ -7,16 +7,18 @@
JS v0.21
+.4
%0Ahttp://
@@ -1451,27 +1451,147 @@
= function(o
-) %7B
+, clone) %7B%0A if(Object.assign && !clone) return Object.assign(o);%0A if(Object.create && clone) return Object.create(o);
%0A var out
|
2307c36929a3430f48baf2ba14fc930bae859d54 | Make music quieter by default | src/utils.js | src/utils.js | import Phaser from 'phaser'
export const centerGameObjects = objects => {
objects.forEach(
object => object.anchor.setTo(0.5)
)
}
export const enableMusicForState = (trackName, state) => {
const music = state.game.add.audio(trackName, 0, true, true)
music.play()
const muteButton = state.game.input.keyb... | JavaScript | 0.000117 | @@ -465,9 +465,12 @@
e =
-1
+0.25
%0A
|
fc83230a057cc6449e624e603ae62fc111b9fd53 | fix is.generator test | src/utils.js | src/utils.js | export const TASK = Symbol('TASK')
export const kTrue = () => true
export const noop = () => {}
export function check(value, predicate, error) {
if(! predicate(value) )
throw new Error(error)
}
export const is = {
undef : v => v === null || v === undefined,
func : f => typeof f === 'function',
a... | JavaScript | 0.002838 | @@ -192,24 +192,95 @@
r(error)%0A%7D%0A%0A
+function* sampleGen() %7B%7D%0Aconst genConstructor = sampleGen.constructor%0A%0A
export const
@@ -514,37 +514,27 @@
ctor
-.name === 'GeneratorFunction'
+ === genConstructor
,%0A
|
0e8f89f89a6c7c63f1d4d663c4b928e56643a935 | Fix typo | src/utils.js | src/utils.js | export const geocodeByAddress = (address, callback) => {
const geocoder = new google.maps.Geocoder()
const OK = google.maps.GeocoderStatus.OK
return new Promise((resolve, reject) => {
geocoder.geocode({ address }, (results, status) => {
if (status !== OK) {
// TODO: Remove callback support in ... | JavaScript | 0.998942 | @@ -2368,39 +2368,39 @@
ack to geocodeBy
-Address
+PlaceId
is deprecated.
|
72c4b596fba739087efff084ab514b39642253e8 | Use hook instead of connect functions and HOC in SaveSettingButton | native/chat/settings/save-setting-button.react.js | native/chat/settings/save-setting-button.react.js | // @flow
import * as React from 'react';
import { TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import { connect } from 'lib/utils/redux-utils';
import type { AppState } from '../../redux/redux-setup';
import { styleSelector } from '../../themes/colors';
type Props =... | JavaScript | 0 | @@ -153,128 +153,17 @@
t %7B
-connect %7D from 'lib/utils/redux-utils';%0A%0Aimport type %7B AppState %7D from '../../redux/redux-setup';%0Aimport %7B styleSelector
+useStyles
%7D f
@@ -208,16 +208,17 @@
= %7B%7C%0A
++
onPress:
@@ -234,50 +234,8 @@
id,%0A
- // Redux state%0A styles: typeof styles,%0A
%7C%7... |
4bc5d7d3decfb24400a37ee2b28ba02b3ae60097 | Add expected number of asserts to each test | tests/tests.js | tests/tests.js | (function() {
// ID of div containing test elements in html file
var TEST_DIV_ID = 'input-file-text-test';
// ID of input file element in html file
var INPUT_FILE_ID = 'input-file';
var getModuleHooks = function(context) {
return {
beforeEach: function() {
// Cre... | JavaScript | 0.000012 | @@ -851,32 +851,51 @@
nction(assert) %7B
+%0A expect(2);
%0A%0A var op
@@ -1288,16 +1288,35 @@
ssert) %7B
+%0A expect(2);
%0A%0A
@@ -1893,32 +1893,52 @@
ction(assert) %7B%0A
+ expect(2);%0A%0A
var inpu
@@ -2670,32 +2670,60 @@
ction(assert) %7B%0A
+ expect(2);%0A ... |
00f64893e7d5646d6ebaaa95454ece0367f8eaf4 | Tidy up GET test | tests/tests.js | tests/tests.js | #!/usr/bin/env node
var assert = require('assert');
var async = require('async');
var express = require('express');
var request = require('request');
var sugar = require('object-sugar');
var rest = require('../lib/rest-sugar');
var models = require('./models');
main();
function main() {
var host = 'http://loca... | JavaScript | 0.000003 | @@ -1104,17 +1104,36 @@
est.get(
-r
+%7Burl: r, json: true%7D
, functi
@@ -1203,76 +1203,8 @@
);%0A%0A
- // TODO: it should not be necessary to parse body here!%0A
@@ -1228,24 +1228,12 @@
ual(
-JSON.parse(
body
-)
.len
|
f1cbadcd4830901272cf824d9fdc19cd7bf68b86 | Fix send screenshot checkbox. There isn't any code that actually handles the send screenshot checkbox for the feedback UI. This CL adds code to handle it. | chrome/browser/resources/feedback/js/feedback.js | chrome/browser/resources/feedback/js/feedback.js | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @type {string}
* @const
*/
var FEEDBACK_LANDING_PAGE =
'https://www.google.com/support/chrome/go/feedback_confirmation';
/** @type {number}
* @... | JavaScript | 0.00001 | @@ -3714,16 +3714,148 @@
%7D%0A %7D%0A%0A
+ // If the user doesn't want to send the screenshot.%0A if (!$('screenshot-checkbox').checked)%0A feedbackInfo.screenshot = null;%0A%0A
chrome
|
48aab6da13046c1099479c8a0a01a18e2b527adf | Update display | core/display.js | core/display.js | // TODO: Implement this!
var display = {};
display.balance = function () {
console.log('Balance...');
}
module.exports = display; | JavaScript | 0.000001 | @@ -38,16 +38,59 @@
= %7B%7D;%0A%0A
+// I don't think this is necessary, but...%0A
display.
@@ -143,16 +143,17 @@
...');%0A%7D
+;
%0A%0Amodule
|
38f73b52d30d77ed3627f979c2d856354ee2a82a | Remove node fix. | src/view_.js | src/view_.js | CooCoo.View = {};
CooCoo.ViewBase = CooCoo.Base.extend({
_render: function() {
var self = this,
elems = self.__elems = [],
elem,
ret = self.__render.apply(self, arguments),
arr = ret.toArray();
for (var i = 0; i < arr.length; i++) {
elem ... | JavaScript | 0 | @@ -1023,62 +1023,122 @@
-if ((!self.__parent %7C%7C !self.__parent.__destroyed) &&
+// TODO: Check if parent view is destroyed, to avoid removeChild from%0A // removed nodes.%0A if (
elem
@@ -1224,16 +1224,59 @@
ems%5Bi%5D;%0A
+ if (elem.parentNode) %7B%0A
@@ -... |
66827b447d0abed784bff0aa3ab3e9298418432b | remove js files from basic HTML layout | components/BasicHTMLLayout.js | components/BasicHTMLLayout.js | import React from 'react';
import ApplicationStore from '../stores/ApplicationStore';
import ga from '../plugins/googleAnalytics/ga';
let hook = require('css-modules-require-hook');
hook({
generateScopedName: '[hash:base64:5]',
});
class BasicHTMLLayout extends React.Component {
render() {
let user =... | JavaScript | 0 | @@ -1087,377 +1087,8 @@
div%3E
-%0A%0A %7B/* All external vendors bundle*/%0A this.props.addAssets ? %3Cscript src=%7B'/public/js/vendor.bundle.js'%7D defer%3E%3C/script%3E : ''%0A %7D%0A %7B/* Main app bundle */%7D%0A %3Cscript src=%7B'/pu... |
f375bbc553aa5de9c45911057a0b7846a327c4a9 | fix another getComponents callback | src/routes/app_overlay_course/index.js | src/routes/app_overlay_course/index.js | export default {
path: 'course/:clbid',
getComponents(cb) {
require.ensure([], () => {
cb(null, {
overlay: require('./containers/course-overlay').default,
})
})
},
}
| JavaScript | 0.000001 | @@ -49,16 +49,26 @@
ponents(
+location,
cb) %7B%0A%09%09
|
3e0ed97da3d3d0ed9ba3538f75f4211321457b4e | Update SchemaNodeAccessor invalidate to not fetch data | src/schema/RefraxSchemaNodeAccessor.js | src/schema/RefraxSchemaNodeAccessor.js | /**
* Copyright (c) 2015-present, Joshua Hollenbeck
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const RefraxTools = require('RefraxTools');
const RefraxSchemaNode = require('RefraxSchemaNode');
const ... | JavaScript | 0 | @@ -3502,16 +3502,51 @@
extend(%7B
+%0A noFetchGet: true,%0A
noSubscr
@@ -3555,16 +3555,24 @@
e: true,
+%0A
params:
@@ -3586,16 +3586,23 @@
s.params
+%0A
%7D)))%0A
|
68657f400e4186cd0e28d67164335a9f798f6459 | complete build step | tools/build.js | tools/build.js | require('shelljs/global');
// clean
rm('-rf', 'lib/');
// move over the server
exec('babel -d lib/ src/index.js');
mv('lib/src/index.js', 'lib/index.js');
rm('-rf', 'lib/src/');
exec('babel -d lib/server src/server');
// move over the admin site
// cd('./src/admin')
// exec('');
// done
echo('build complete');
| JavaScript | 0 | @@ -243,19 +243,16 @@
in site%0A
-//
cd('./sr
@@ -264,18 +264,60 @@
in')
+;
%0A
-//
exec('
+npm run build');%0Amv('lib/', '../../lib/admin
');%0A
|
28d465be10197c452b9801f07958b98daf006bb2 | Debug modal not working | gallery/static/js/gallery.js | gallery/static/js/gallery.js | function afterMkdir(data) {
console.log(data);
if (data['success'].length > 0) {
$('#descriptions').appendTo("<div class='form-group'>");
for (var i = 0, len = data['success'].length; i < len; i++) {
var dir_name = data['success'][i]['id'];
var dir_id = data['success'][i]... | JavaScript | 0.000001 | @@ -44,16 +44,50 @@
(data);%0A
+ console.log(data%5B'success'%5D);%0A
if (
@@ -353,24 +353,91 @@
i%5D%5B'name'%5D;%0A
+ console.log(%22Dir: %22 + dir_name + %22 (%22 + dir_id + %22)%22);%0A
@@ -987,32 +987,173 @@
d + '%22%5D').val()%0A
+ %7D,%0A success:... |
afa00ebb1bbac82a1ea6fcb7f05555c7528bcc93 | Use this viewercontroller in NavigationPanel.js instead of the global viewercontroller | components/NavigationPanel.js | components/NavigationPanel.js | /*
* Copyright (C) 2012 B3Partners B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | JavaScript | 0 | @@ -1259,16 +1259,21 @@
comp =
+this.
viewerCo
@@ -1321,24 +1321,29 @@
f);%0A
+this.
viewerContro
|
63a42d4882ea01d72547a64a6eae8f0a268b3954 | Add API call to check if a dataset can be published | website/src/app/models/api/datasets-api.service.js | website/src/app/models/api/datasets-api.service.js | class DatasetsAPIService {
/*@ngInject*/
constructor(projectsAPIRoute) {
this.projectsAPIRoute = projectsAPIRoute;
}
getDatasetsForExperiment(projectId, experimentId) {
return this.projectsAPIRoute(projectId).one('experiments', experimentId).one('datasets')
.getList().then(d... | JavaScript | 0 | @@ -3466,24 +3466,269 @@
());%0A %7D%0A%0A
+ checkDataset(projectId, experimentId, datasetId) %7B%0A return this.projectsAPIRoute(projectId).one('experiments', experimentId).one('datasets', datasetId)%0A .one('publish').one('check').customGET().then(d =%3E d.plain());%0A %7D%0A%0A
unpub... |
98ce2a6a84c190a78a6e60034b6c9fb7151329fb | remove superfluous method | examples/js/components/homeRoute.js | examples/js/components/homeRoute.js |
import React from 'react'
import {Icon} from '../../../'
export default class HomeRoute extends React.Component {
showNav = (e) => {
e.preventDefault()
document.querySelector('.Navigation-hamburger button').click()
}
render () {
return (
<div className='Home'>
<div className='Hero'>
... | JavaScript | 0.998722 | @@ -114,124 +114,8 @@
%7B%0A%0A
- showNav = (e) =%3E %7B%0A e.preventDefault()%0A document.querySelector('.Navigation-hamburger button').click()%0A %7D%0A%0A
re
|
12e1fa01392941137e38881282c88964c45eb79c | Add token and token expiration to user object. | widgets/authentication/_LoginRegisterSignInPane.js | widgets/authentication/_LoginRegisterSignInPane.js | define([
'dojo/text!./templates/_LoginRegisterSignInPane.html',
'dojo/_base/declare',
'dojo/on',
'ijit/widgets/authentication/_LoginRegisterPaneMixin'
], function(
template,
declare,
on,
LoginRegisterPaneMixin
) {
// summary:
// The sign in pane for the LoginRegistrati... | JavaScript | 0 | @@ -1380,24 +1380,184 @@
.expires);%0A%0A
+ returnValue.result.user.token = returnValue.result.token;%0A returnValue.result.user.tokenExpireDate = returnValue.result.tokenExpireDate;%0A
|
3307f41f60d88f46beb0cee5f7b9f2740da77f02 | Fix encoding of Portuguese translations | wikilabels/wsgi/static/js/wikiLabels/wikiLabels.js | wikilabels/wsgi/static/js/wikiLabels/wikiLabels.js | wikiLabels = {
config: {
serverRoot: "//ores.wmflabs.org/labels",
prefix: "wikilabels-",
messages: {
en: {
'date-format': "%Y-%m-%d",
'Review': 'Review',
'Workset': 'Workset',
'Save': 'Save',
'request workset': 'request workset',
'connect to server': 'connect to server',
'Campaigns... | JavaScript | 0.001382 | @@ -1080,17 +1080,17 @@
o conclu
-%C3%83
+%C3%AD
%C2%ADdo!',%0A%09
@@ -1125,10 +1125,9 @@
o r
-%C3%83%C2%B3
+%C3%B3
tulo
@@ -1234,18 +1234,17 @@
'Diferen
-%C3%83%C2%A7
+%C3%A7
as para
@@ -1250,18 +1250,17 @@
a revis
-%C3%83%C2%A3
+%C3%A3
o $1',%0A%09
@@ -1299,10 +1299,9 @@
eren
-%C3%83%C2%A7
+%C3%A7
a',
@... |
69648e16fcfbd1427eb11ec3ee6271afd6e0ad93 | add missing state to single select example | examples/pages/Home/SingleSelect.js | examples/pages/Home/SingleSelect.js | import React, { Component } from 'react';
import { withValue } from 'react-value';
import Select from '../../../src';
import { colourOptions } from '../../data';
import { Note } from '../../components';
const SelectWithValue = withValue(Select);
const Checkbox = props => <input type="checkbox" {...props} />;
type Sta... | JavaScript | 0.000001 | @@ -1079,16 +1079,135 @@
der() %7B%0A
+ const %7B%0A isClearable,%0A isSearchable,%0A isDisabled,%0A isLoading,%0A isRtl,%0A %7D = this.state;%0A
retu
@@ -1332,27 +1332,16 @@
sabled=%7B
-this.state.
isDisabl
@@ -1369,28 +1369,115 @@
ng=%7B
-this.state.isLoading
+isLoading%7D%0A ... |
722568e4d8dd70618319e5891ec232f7d51786d5 | Fix docker tests | src/plugins/docker/__tests__/index.js | src/plugins/docker/__tests__/index.js | import { countOccurences, resolvePath, runSSHCommand } from '../../../utils';
import { describe, it } from 'mocha';
import assert from 'assert';
import os from 'os';
import sh from 'shelljs';
sh.config.silent = false;
const servers = require('../../../../tests/fixtures/servers');
describe('module - docker', function(... | JavaScript | 0.000031 | @@ -8,24 +8,25 @@
%7B countOccur
+r
ences, resol
@@ -873,16 +873,17 @@
untOccur
+r
ences('S
@@ -913,12 +913,12 @@
out.
-outp
+stdo
ut);
|
024eb8d27db6d840c11e3e158e0d4da575661e67 | Remove unnecessary request to docker registry | src/plugins/meteor/docker-registry.js | src/plugins/meteor/docker-registry.js | import axios from 'axios';
import debug from 'debug';
import querystring from 'querystring';
const log = debug('mup:docker-registry');
function parseWWWAuthenticate(value) {
// eslint-disable-next-line global-require
const parsers = require('www-authenticate/lib/parsers');
const parsed = new parsers.WWW_Authent... | JavaScript | 0.000001 | @@ -4764,209 +4764,7 @@
%7D);
-%0A%0A await retryWithAuth(registryConfig, %7B%0A url: %60/v2/$%7Bimage%7D/manifests/$%7BnewTag%7D%60,%0A method: 'GET',%0A headers: %7B%0A accept: 'application/vnd.docker.distribution.manifest.v2+json',%0A %7D%0A %7D);
%0A%7D%0A
|
49ceb980e3b31d78fafc4dff9f20cd1cc5dec8e4 | Update fzogarOgarIframe.js | AjaxData/fzogarOgarIframe.js | AjaxData/fzogarOgarIframe.js | $("#main-menu").hide();
$("#skins-panel").hide();
$("#quick-menu").hide();
$("#exp-bar").hide();
$("#close-exp-imp").click();
$("#menu-footer").after('<div id="legendformIframe" style="background-image: url('+legbgpic+'); background-color: '+legbgcolor+'; border: 1px solid black; position:absolute; height: 700px; widt... | JavaScript | 0 | @@ -1503,17 +1503,17 @@
imeOut:
-4
+8
000, ext
@@ -1526,17 +1526,17 @@
imeOut:
-2
+8
000 %7D).c
|
94bbfdad1171c02c0484e7714711a20ebe1031f8 | Update scripts.js | mods/sketchmons/scripts.js | mods/sketchmons/scripts.js | exports.BattleScripts = {
init: function() {
// Everything learns sketch, you look at the name and tell me what I'm supposed to do :/
this.modData('Learnsets').learnset.sketch = ['5L0'];
}
};
| JavaScript | 0.000002 | @@ -149,10 +149,9 @@
Data
-('
+.
Lear
@@ -159,10 +159,11 @@
sets
-')
+%5Bi%5D
.lea
|
7a007515b5b83454a195c5804cd1ba11d8bd2d27 | install npm modules in ~/.c9 for backwards compatibility | commands/npm.js | commands/npm.js | define(function(require, exports, module) {
main.consumes = ["Plugin", "installer", "proc"];
main.provides = ["installer.npm"];
return main;
function main(options, imports, register) {
var Plugin = imports.Plugin;
var installer = imports.installer;
var proc = imports.proc;
... | JavaScript | 0 | @@ -630,16 +630,17 @@
?
+'
%22$C9_DIR
@@ -653,16 +653,17 @@
bin/npm%22
+'
%0A
@@ -974,24 +974,105 @@
n:$PATH%22%5Cn'%0A
+ + (options.cwd == %22~/.c9%22 ? 'mkdir -p node_modules' : %22%22) + %22%5Cn%22%0A
@@ -1097,11 +1097,8 @@
all
--g
' +
|
6fd359f41de18a1b1916b3e7269f910530d57242 | Fix case. | elasticio.js | elasticio.js | StockXmlImport = require('./lib/stockXmlimport').StockXmlImport
exports.process = function(msg, cfg, cb, snapshot) {
config = {
client_id: cfg.clientId,
client_secret: cfg.clientSecret,
project_key: cfg.projectKey
};
var im = new StockXmlImport({
config: config
});
im.elasticio(msg, cfg, cb, ... | JavaScript | 0.000008 | @@ -30,17 +30,17 @@
ib/stock
-X
+x
mlimport
|
9ee377963ef10af234360b01412678440346256f | Improve error message if libvips tarball is corrupt | install/libvips.js | install/libvips.js | 'use strict';
const fs = require('fs');
const os = require('os');
const path = require('path');
const detectLibc = require('detect-libc');
const npmLog = require('npmlog');
const semver = require('semver');
const simpleGet = require('simple-get');
const tar = require('tar');
const copyFileSync = require('fs-copy-file... | JavaScript | 0.000017 | @@ -1254,19 +1254,206 @@
.catch(f
-ail
+unction (err) %7B%0A if (/unexpected end of file/.test(err.message)) %7B%0A npmLog.error('sharp', %60Please delete $%7BtarPath%7D as it is not a valid tarball%60);%0A %7D%0A fail(err);%0A %7D
);%0A%7D;%0A%0At
|
66ec24b31ad4bcfa4ccb99ceb7209abec33213c3 | Add {location} format object | mods/user_list.js | mods/user_list.js | /* jslint node: true */
'use strict';
var MenuModule = require('../core/menu_module.js').MenuModule;
var userDb = require('../core/database.js').dbs.user;
var getUserList = require('../core/user.js').getUserList;
var ViewController = require('../core/view_controller.js').ViewController;
var moment = requir... | JavaScript | 0.999995 | @@ -2410,16 +2410,46 @@
iation,%0A
+%09%09%09%09%09%09location%09: ue.location,%0A
%09%09%09%09%09%09//
@@ -2573,24 +2573,25 @@
mat),%0A%09%09%09%09%09%7D
+;
%0A%09%09%09%09%7D%0A%0A%09%09%09%09
|
8417f4ecd5dfebbc82a615471871561a82674789 | fix for mem-leak on promise completion after dispose | lib/ObservablePromiseProxy.js | lib/ObservablePromiseProxy.js | const Observable = require("./Observable.js")
const ObservableValue = require("./ObservableValue.js")
const ObservableError = require("./ObservableError.js")
class ObservablePromiseProxy extends Observable {
constructor(promise) {
super()
this.observable = null
this.observer = (signal, ...args) => {
... | JavaScript | 0 | @@ -677,24 +677,53 @@
servable) %7B%0A
+ if(this.disposed) return%0A
this.obs
|
4878c44b5f81162194ddf350d6a644b8bff69c37 | Fix iOS multitouch tests | test/functional/ios/testapp/touch-specs.js | test/functional/ios/testapp/touch-specs.js | "use strict";
var okIfAlert = require('../../../helpers/alert').okIfAlert,
setup = require("../../common/setup-base"),
desired = require('./desired'),
TouchAction = require('wd').TouchAction,
MultiAction = require('wd').MultiAction;
describe('testapp - pinch gesture -', function () {
describe('pinc... | JavaScript | 0.000003 | @@ -3199,32 +3199,37 @@
.perform
+Multi
Touch(multiActio
@@ -3741,24 +3741,29 @@
.perform
+Multi
Touch(multiA
|
9e6f52e3f7549c4528ca4db1e5afef341876e0b0 | Remove logger import | test/integration/authenticationAPITests.js | test/integration/authenticationAPITests.js | /* eslint-env mocha */
import request from 'supertest'
import logger from 'winston'
import * as server from '../../src/server'
import { AuditModel } from '../../src/model/audits'
import * as testUtils from '../utils'
import * as constants from '../constants'
import { promisify } from 'util'
const { SERVER_PORTS } = c... | JavaScript | 0 | @@ -53,37 +53,8 @@
st'%0A
-import logger from 'winston'%0A
impo
|
8b1cec8edd7941d6e1db9225463347b57f1309eb | Add some more setup for subitems | itemObjectModel.js | itemObjectModel.js | define(function() {
'use strict';
var _BYTESOURCE = Symbol('byteSource');
var itemObjectModel = {
createItem: function(title) {
var itemElement = document.createElement('SECTION');
itemElement.appendChild(itemElement.titleElement = document.createElement('HEADER'));
item... | JavaScript | 0 | @@ -1860,24 +1860,72 @@
sElement) %7B%0A
+ this.classList.add('has-subitems');%0A
@@ -2648,17 +2648,288 @@
%7D%0A
-%7D
+ if (this.classList.contains('has-subitems')) %7B%0A if (this.classList.toggle('open')) %7B%0A this.dispatchEvent(new Event(itemObjectModel.EVT_POPULATE))... |
7bce56e91d01d7b2231f64c6ec179935765e6d0e | Tweak fragment tag name | src/rsg-components/Preview/Preview.js | src/rsg-components/Preview/Preview.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { transform } from 'buble';
import PlaygroundError from 'rsg-components/PlaygroundError';
import Wrapper from 'rsg-components/Wrapper';
import splitExampleCode from '../../utils/splitExampleCode';
/* ... | JavaScript | 0 | @@ -475,19 +475,27 @@
e =%3E
-
+%0A%09
%60const
+Fragment
__
-f
= R
@@ -515,21 +515,26 @@
%7C%7C
-%3Cdiv /%3E; %3C
+'div'; %3CFragment
__
-f
%3E$%7Bc
@@ -543,11 +543,18 @@
e%7D%3C/
+Fragment
__
-f
%3E;%60;
|
80eba079c8f608ba9dd4dbc115be0fe5148d5ea6 | add no-useless-path-segments fixer | src/rules/no-useless-path-segments.js | src/rules/no-useless-path-segments.js | /**
* @fileOverview Ensures that there are no useless path segments
* @author Thomas Grainger
*/
import path from 'path'
import sumBy from 'lodash/sumBy'
import escapeRegExp from 'lodash/escaperegexp'
import resolve from 'eslint-module-utils/resolve'
import moduleVisitor from 'eslint-module-utils/moduleVisitor'
fu... | JavaScript | 0.000028 | @@ -704,16 +704,33 @@
meta: %7B
+ fixable: 'code'
%7D,%0A%0A cr
@@ -1055,16 +1055,93 @@
sed%7D%22%60,%0A
+ fix: fixer =%3E fixer.replaceText(source, JSON.stringify(proposed)),%0A
|
490b1032e19a22bf236b06a4b506eb4aaa4bbd1b | comment with link to project page | expanding.js | expanding.js | (function(factory) {
// Add jQuery via AMD registration or browser globals
if (typeof define === 'function' && define.amd) {
define([ 'jquery' ], factory);
}
else {
factory(jQuery);
}
}(function ($) {
$.expandingTextarea = $.extend({
autoInitialize: true,
initialS... | JavaScript | 0 | @@ -1,16 +1,88 @@
+// Expanding Textareas%0A// https://github.com/bgrins/ExpandingTextareas%0A%0A
(function(factor
|
9e86da459148ad5f742067459b0a80d63dc27745 | add transformIgnorePatterns | ui/jest.config.js | ui/jest.config.js | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
/* eslint-env node */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
globals: {
lichess: {},
'ts-jest': {
tsconfig: 'tsconfig.... | JavaScript | 0.000008 | @@ -240,16 +240,86 @@
',%0A %7D,%0A
+ transformIgnorePatterns: %5B%0A '/node_modules/(?!chessground)'%0A %5D,%0A
global
|
e610365e675695a7e083724b0752c9de839d46bd | fix #2432 setPolling(false) doesn't turn off polling | lib/ace/layer/font_metrics.js | lib/ace/layer/font_metrics.js | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | JavaScript | 0 | @@ -4694,32 +4694,64 @@
;%0A %7D else
+ if (this.$pollSizeChangesTimer)
%7B%0A i
@@ -4741,35 +4741,45 @@
) %7B%0A
-if
+clearInterval
(this.$pollSizeC
@@ -4782,34 +4782,34 @@
izeChangesTimer)
+;
%0A
-
t
@@ -4796,35 +4796,32 @@
r);%0A
-
this.$pollSiz... |
3a14abc5d9cc8196d2870d19d2dcd1d8872f8e76 | Fix the emit('ready') comment, as it now is an important part of Sails | lib/app/private/initialize.js | lib/app/private/initialize.js | /**
* Module dependencies
*/
var _ = require('@sailshq/lodash');
var async = require('async');
/**
* Sails.prototype.initialize()
*
* Start the Sails server
* NOTE: sails.load() should be run first.
*
* @param {Function?} callback [optional]
*
* @api private
*/
module.exports = function initialize(cb)... | JavaScript | 0.000001 | @@ -1450,97 +1450,244 @@
vent
- for backwards-compatibility.%0A // (this will be removed in a future version of Sails!)
+%0A // Since Express 4, the router is built in, so middlewares are divided between%0A // pre-route and post-route. The way to tell when to do the split is via the%0A // ready event%0A ... |
f722b4f509066a02ca54f4b8a9f23e594a7a8a51 | Fix a problem with res | lib/handlers/init/callback.js | lib/handlers/init/callback.js | 'use strict';
/**
* @file Define initial handlers,
*
* Trade grant_tokens for access_tokens.
*
*/
var Anyfetch = require('anyfetch');
var async = require('async');
var restify = require('restify');
var rarity = require('rarity');
var TempToken = require('../../models/temp-token.js');
var Token = require('../../mo... | JavaScript | 0.999619 | @@ -2770,24 +2770,47 @@
RR:%22, err);%0A
+ res.send(500);%0A
retu
|
baff6a5ac9d2e0a1e4858b25456df8d344f07009 | Implement HtmlTemplate.prototype.inline so changes will be reflected back into the containing asset. | lib/relations/HtmlTemplate.js | lib/relations/HtmlTemplate.js | /*global require*/
var util = require('util'),
extendWithGettersAndSetters = require('../util/extendWithGettersAndSetters'),
HtmlRelation = require('./HtmlRelation');
function HtmlTemplate(config) {
HtmlRelation.call(this, config);
}
util.inherits(HtmlTemplate, HtmlRelation);
extendWithGettersAndSetters(... | JavaScript | 0 | @@ -118,24 +118,62 @@
dSetters'),%0A
+ Relation = require('./Relation'),%0A
HtmlRela
@@ -377,16 +377,192 @@
type, %7B%0A
+ inline: function () %7B%0A Relation.prototype.inline.call(this);%0A this.node.innerHTML = this.to.text;%0A this.from.markDirty();%0A return this;%0A %7D,... |
10264d460de2423608aa87b2d5c95129a92d456e | Add better error message for ED (#1261) | lib/rules/metadata/profile.js | lib/rules/metadata/profile.js | /**
* Pseudo-rule for metadata extraction: profile.
*/
// External packages:
const PowerPromise = require('promise');
// Internal packages:
const rules = require('../../rules.json');
const sua = require('../../throttled-ua');
// 'self.name' would be 'metadata.profile'
exports.name = 'metadata.profile';
exports.ch... | JavaScript | 0 | @@ -318,16 +318,22 @@
.check =
+ async
functio
@@ -4967,33 +4967,429 @@
-throw new Error(%0A
+const getTitle = require('./title').check;%0A let docTitle;%0A await getTitle(sr, (result) =%3E %7B%0A docTitle = result && result.title;%0A %7D);%0A if (candidate.indexOf(%2... |
fda11c44f15eaa172810425a3f39f032cb1e2b36 | fix (GameConstantsUtil): typo fixed (internal) | lib/util/GameConstantsUtil.js | lib/util/GameConstantsUtil.js | const GAME_CONSTANTS = require('../GameConstants.json');
class GameConstantsUtil {
static get GAME_CONSTANTS(){return GAME_CONSTANTS}
/** @return {number[]} */
static queueIds(){
return Object.keys(GAME_CONSTANTS.matchMakingQueues).map(key => GAME_CONSTANTS.matchMakingQueues[key].queueType);
}
/** @return {num... | JavaScript | 0 | @@ -127,16 +127,17 @@
ONSTANTS
+;
%7D%0A%0A%09/**
@@ -376,33 +376,33 @@
antsUtil._ranked
-m
+M
atchMakingQueues
@@ -557,25 +557,25 @@
Util._ranked
-m
+M
atchMakingQu
@@ -686,17 +686,17 @@
_ranked
-m
+M
atchMaki
|
6149eac422bc4a621b1682e70b2387efbb2261bf | Document swizzle redirect. | lib/utils/swizzle-redirect.js | lib/utils/swizzle-redirect.js | // https://github.com/jshttp/on-headers
function createRedirect(prevRedirect, fn) {
var fired = false;
// return function with core name and argument list
return function redirect(url) {
//console.log('SWIZZLED REDIRECT');
if (arguments.length === 2 && typeof arguments[0] === 'number') {
url... | JavaScript | 0 | @@ -1,45 +1,125 @@
/
-/ https://github.com/jshttp/on-headers%0A%0A
+**%0A * Create a replacement redirect method.%0A *%0A * @param %7Bfunction%7D prevRedirect%0A * @param %7Bfunction%7D fn%0A * @private%0A */
%0Afun
@@ -163,30 +163,8 @@
) %7B%0A
- var fired = false;%0A%0A
//
@@ -251,53 +251,8 @@
) %7B%0A
- /... |
6b2e90bdc7af036f23bfbde9520303f1aa518a7d | add cleanup to motion-capture-replayer system; prevents 'too much recursion' error when loaded multiple times for unit testing | src/systems/motion-capture-replayer.js | src/systems/motion-capture-replayer.js | AFRAME.registerSystem('motion-capture-replayer', {
init: function () {
var sceneEl = this.sceneEl;
var trackedControlsComponent;
var trackedControlsSystem;
var trackedControlsTick;
trackedControlsSystem = sceneEl.systems['tracked-controls'];
trackedControlsTick = AFRAME.components['tracked-co... | JavaScript | 0.000001 | @@ -986,16 +986,469 @@
;%0A %7D,%0A%0A
+ remove: function () %7B%0A // restore modified objects%0A var trackedControlsComponent = AFRAME.components%5B'tracked-controls'%5D.Component.prototype;%0A var trackedControlsSystem = this.sceneEl.systems%5B'tracked-controls'%5D;%0A trackedControlsComponent.tick = ... |
3835d59524693965560fc700cc3aea348a051ca8 | Change @param type | src/main/webapp/components/BuilderDataTable.js | src/main/webapp/components/BuilderDataTable.js | import * as React from 'react';
// The target fields to be extracted from each build step
// and displayed on each row.
const BUILD_STEP_FIELDS = ['step_number', 'text', 'logs'];
// Headers to display at the top of the table.
const HEADERS = ['no.', 'text', 'log'];
/**
* Table responsible for displaying the data fo... | JavaScript | 0.000001 | @@ -409,38 +409,38 @@
der.%0A * @param %7B
-string
+number
%7D props.buildSte
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.