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 |
|---|---|---|---|---|---|---|---|
6ce7fb77c8d966fa6593aaab3d5634a8c70a9eab | Update version string to 2.6.0-pre.4.dev | version.js | version.js | if (enyo && enyo.version) {
enyo.version.spotlight = "2.6.0-pre.4";
}
| JavaScript | 0 | @@ -59,13 +59,17 @@
.0-pre.4
+.dev
%22;%0A%7D%0A
|
0c2bfae9f337fd19f7616fbfedb168098dfa88ad | Fix import-dir plugin | lib/init/assets/mincer/stylus/import-dir.js | lib/init/assets/mincer/stylus/import-dir.js | 'use strict';
/**
* lib
**/
/**
* lib.stylus
**/
// stdlib
var path = require('path');
var fs = require('fs');
// 3rd-party
var stylus = require('stylus');
////////////////////////////////////////////////////////////////////////////////
// returns list of files under given pathname, but not deeper ... | JavaScript | 0.000001 | @@ -487,52 +487,8 @@
);%0A%0A
- if (fs.statSync(filename).isFile()) %7B%0A
@@ -542,16 +542,141 @@
es only%0A
+ // and the file must have .styl extension%0A if (fs.statSync(filename).isFile() && '.styl' == path.extname(filename)) %7B%0A
fi
|
cc0026f6ed0a6f303293f555166829a56a6dedac | Remove nodes backwards in removeNodeContent, as this is a little faster. | methanal/js/Methanal/Util.js | methanal/js/Methanal/Util.js | // import Nevow.Athena
/**
* Add a class to an element's "className" attribute.
*
* This operation is intended to preserve any other values that were already
* present.
*/
Methanal.Util.addElementClass = function addElementClass(node, cls) {
var current = node.className;
// trivial case, no className yet... | JavaScript | 0 | @@ -1641,25 +1641,17 @@
ode.
-childNodes.length
+lastChild
)%0A
@@ -1682,11 +1682,10 @@
ode.
-fir
+la
stCh
|
ad6ba8bd8014569f91b55fe7ed819c64008a21b0 | Fix previous commit keeping input invisible. | static/category_filter.js | static/category_filter.js | function initCategoryFilter() {
var cin = document.getElementById("category-input");
var chi = document.getElementById("hidden-category-input");
var options = document.getElementsByTagName("option");
var currentCategoryId = chi.value;
for (var i = 0; i < options.length; i++) {
if (options[i].value === cu... | JavaScript | 0.999996 | @@ -1412,16 +1412,46 @@
e;%0A %7D);
+%0A%0A cin.style.visibility = '';
%0A%7D%0A%0Avar
|
3cf2f31b5a27d2fdf8ed9a05f1e4bab3458c8abe | Add Levene's test to namespace | lib/node_modules/@stdlib/stats/lib/index.js | lib/node_modules/@stdlib/stats/lib/index.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... | JavaScript | 0.000001 | @@ -2940,32 +2940,226 @@
s/kstest' ) );%0A%0A
+/**%0A* @name leveneTest%0A* @memberof ns%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/stats/levene-test%7D%0A*/%0AsetReadOnly( ns, 'leveneTest', require( '@stdlib/stats/levene-test' ) );%0A%0A
/**%0A* @name lowe
|
5ac7bf4f72eaf50a76f0a592f395d3d95d892d47 | Improve typing | lib/share/components/Repository/Branches.js | lib/share/components/Repository/Branches.js | // @flow
import * as React from 'react'
import { connect } from 'react-redux'
import { type Match } from 'react-router-dom'
import type { Dispatch } from 'redux'
import Panel from '../common/blocks/Panel'
import List from '../common/layouts/List'
import type { ReducersStateT } from '../../ducks'
import * as BranchesA... | JavaScript | 0.000001 | @@ -412,78 +412,20 @@
h'%0A%0A
-export const Branches = (%7B%0A branches,%0A defaultBranchName,%0A match%0A%7D:
+type Props =
%7B%0A
@@ -480,16 +480,41 @@
string,%0A
+ dispatch: Dispatch%3C*%3E,%0A
match:
@@ -561,17 +561,517 @@
ing %7D%3E%3E%0A
-
%7D
+%0Aexport default connect%3C_, ReducersStateT, *, _, *... |
0307484ea000d395717809b9dc83398916f5f599 | update leave room | webhook.js | webhook.js | const express = require('express');
const middleware = require('@line/bot-sdk').middleware;
const Client = require('@line/bot-sdk').Client;
const bodyParser = require('body-parser');
const app = express();
const config = {
channelAccessToken: 'Aewq2lkqZvmE/54OzmL7J0IUUdw7GRHCW1Bqxj0VKvB1D2CQcZVjKCDj6Eyi13cNVpI9x+KR... | JavaScript | 0.000001 | @@ -1008,24 +1008,23 @@
;%0A cons
-ole.log(
+t ei =
req.body
@@ -1037,34 +1037,36 @@
s%5B0%5D
-)
;%0A
-if(req.body.events%5B0%5D
+console.log(ei);%0A if(ei
.typ
@@ -1093,34 +1093,18 @@
%0A if(
-req.body.events%5B0%5D
+ei
.message
@@ -1149,35 +1149,289 @@
g =
-req.body.events%5B0%5D.message;
+ei.message... |
877e995f7ce42de6ba6cbd6727402607cd5e3929 | Use strict equality | webster.js | webster.js | (function() {
var root = this;
var webster = root.webster = {};
var each = webster.each = function(dict, fn, context) {
if (dict == undefined) return;
else if (fn == undefined) return;
else if (context != undefined) return each(dict, fn.bind(context));
for (var key in dict) {
if (dict.hasOwn... | JavaScript | 0.000023 | @@ -131,16 +131,17 @@
(dict ==
+=
undefin
@@ -170,16 +170,17 @@
f (fn ==
+=
undefin
@@ -206,32 +206,33 @@
e if (context !=
+=
undefined) retu
@@ -448,32 +448,33 @@
if (context !=
+=
undefined) retu
@@ -728,32 +728,32 @@
fn, context) %7B%0A
-
if (context
@@ -754,16 +754,17 @@
ntext !=
+=
undefin... |
d65ca352f10d420d9bf629b4b95441ed79cfa517 | Update container.js | static/views/container.js | static/views/container.js | define([
'jquery', 'underscore', 'views/base', 'globals/eventbus', 'bootbox', 'modules/cloudstore',
'codemirror', 'cm.vim', 'cm.clike', 'cm.placeholder',
//'codemirror.src', 'css!libs/codemirror/codemirror.css',
'add2home', 'css!libs/add2home/add2home.css', 'sha256', 'aes'],
function($, _, BaseView, EventBus,... | JavaScript | 0.000001 | @@ -2016,32 +2016,50 @@
done( function(
+location, fileName
) %7B%0A cons
|
17ca154352dc918e47840497f544b862e2b89a49 | add response check to prevent unexpected exception | api/api-proxy.js | api/api-proxy.js | /**
* proxy request to backend
*/
const request = require('request');
const _ = require('lodash');
const Promise = require('bluebird');
const logger = require('../mw/logger');
const appConfig = require('../config/env');
const debugLevel = appConfig.getProxyDebugLevel();
if (debugLevel && debugLevel > 0) {
if (d... | JavaScript | 0 | @@ -996,16 +996,29 @@
if (
+!response %7C%7C
response
|
b6fd0b2957fe118e98a2144c6c96d5a99c74c050 | Add rescue operation title as an optional 256 byte string. | api/db/rescue.js | api/db/rescue.js | 'use strict'
module.exports = function (sequelize, DataTypes) {
let Rescue = sequelize.define('Rescue', {
id: {
type: DataTypes.UUID,
primaryKey: true,
defaultValue: DataTypes.UUIDV4
},
active: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true
},
... | JavaScript | 0 | @@ -1287,24 +1287,122 @@
null%0A %7D,%0A
+ title: %7B%0A type: DataTypes.STRING,%0A allowNull: true,%0A defaultValue: null%0A %7D,%0A
unidenti
|
3ecc215f5f5cc433af4c60d03af65daa63244450 | Change mechanism for transform in register.js | register.js | register.js | var fs = require('fs');
var removeTypes = require('./index');
var prev = require.extensions['.js'];
require.extensions['.js'] = function(module, filename) {
if (filename.indexOf('node_modules') === -1) {
var source = fs.readFileSync(filename, 'utf8');
module._compile(removeTypes(source), filename);
} else... | JavaScript | 0 | @@ -1,14 +1,18 @@
var
-fs
+Module
= requi
@@ -15,18 +15,22 @@
equire('
-fs
+module
');%0Avar
@@ -68,18 +68,26 @@
);%0A%0A
-var prev =
+// Rather than use
req
@@ -105,215 +105,304 @@
ions
-%5B'.js'%5D;%0A%0Arequire.extensions%5B'.js'%5D = function(module, filename) %7B%0A if (filename.indexOf('node_modules')... |
0fc7244dc4742b667db267a8ac9dba606b012fed | drop unused props in a11ycss plugin | a11y.css.js | a11y.css.js | const fs = require('fs')
const path = require('path')
const showdown = require('showdown')
const fm = require('front-matter')
const prism = require('prismjs')
const loadLanguages = require('prismjs/components/');
loadLanguages(['scss', 'css-extras']);
const DIRECTORIES = {
css: {
input: './css/'
},
sass: {
... | JavaScript | 0.000001 | @@ -272,42 +272,8 @@
= %7B%0A
- css: %7B%0A input: './css/'%0A %7D,%0A
sa
@@ -274,24 +274,24 @@
%7B%0A sass: %7B%0A
+
input: '
@@ -422,208 +422,10 @@
%0A %7D
-,%0A assets: %7B%0A js: %7B%0A input: './site/assets/js/'%0A %7D%0A %7D,%0A static: './site/static/'%0A%7D%0A%0ADIRECTORIES.asset... |
08722872d4e6983da30def389882b87f09e249f7 | Use regular `computed()` instead of `ember-awesome-macros` | ember/app/controllers/index.js | ember/app/controllers/index.js | import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { conditional } from 'ember-awesome-macros';
import raw from 'ember-macro-helpers/raw';
export default Controller.extend({
account: service(),
notificationsTarget: conditional('account.user', raw('notifications... | JavaScript | 0 | @@ -50,25 +50,16 @@
t %7B
-inject as service
+computed
%7D f
@@ -74,19 +74,17 @@
ber/
-service
+object
';%0A
-%0A
impo
@@ -88,27 +88,33 @@
mport %7B
-conditional
+inject as service
%7D from
@@ -118,71 +118,22 @@
om '
+@
ember
--awesome-macros';%0Aimport raw from 'ember-macro-helpers/raw
+/service
';%0A%0... |
b3eb24b1afa72e0174a940c14cdcdebd3f4e5145 | Remove unneeded \ | add-keys.js | add-keys.js | #!/usr/bin/env node
'use strict';
const winston = require('winston'),
program = require('commander'),
cpr = require('cpr'),
path = require('path'),
exec = require('./lib/exec'),
list = (val) => val ? val.split(',') : [];
program
.version(require('./package.json').version)
.description(`C... | JavaScript | 0.000002 | @@ -4071,9 +4071,8 @@
ning
-%5C
Pro
|
436927591681934174a69825d7b428913a368ac7 | Clean up | rssmaker.js | rssmaker.js | //Make an rss feed for the source code of a web page
var cheerio = require('cheerio');
var RSS = require('rss');
var createFeed = function createFeed (html, feed_param, params) {
//Utilize cheerio to get jquery functionality
var $ = cheerio.load(html);
//Create the new feed
var feed= new RSS(feed_para... | JavaScript | 0.000002 | @@ -13,18 +13,19 @@
s feed f
-o
r
+om
the sou
@@ -174,17 +174,16 @@
rams) %7B%0A
-%0A
//Ut
@@ -490,32 +490,58 @@
var title,%0A
+ site_url,%0A
@@ -572,17 +572,43 @@
cription
-;
+,%0A rootUrl;%0A
%0A
@@ -719,16 +719,97 @@
href');%0A
+ de... |
edd538e24260f5fcfb79e091f008bf7e2fc9b91d | update InvertedIndex class to handle bad json | src/js/inverted-index.js | src/js/inverted-index.js |
/* Inverted index class */
class InvertedIndex {
/**
* @constructor
*/
constructor() {
this.indexMap = {};
}
/**
* createIndex
* create an index map of an array of object
* @param {Object} jsonContent an array of objects
* @return {Object}
*/
createIndex(jsonContent) {
if (!(t... | JavaScript | 0 | @@ -1480,16 +1480,29 @@
%0A %7D%0A%0A
+ try %7B%0A%0A
json
@@ -1530,24 +1530,26 @@
tBook) =%3E %7B%0A
+
if (!(
@@ -1630,24 +1630,26 @@
) %7B%0A
+
return false
@@ -1646,24 +1646,26 @@
turn false;%0A
+
%7D%0A
@@ -1664,20 +1664,24 @@
%7D%0A
+
%7D);%0A
+
re... |
74e617733bb8c9efa08748abbe011d7ec52c9495 | fix lint | src/lib/createActions.js | src/lib/createActions.js | // @flow
import R from 'ramda';
import { createTypes as reduxSauceCreateTypes } from 'reduxsauce';
import warn from './warn';
import type {
dict, thunk,
CreateOfflineActionsConfigs,
CreateOfflineActionsOptions,
} from './types';
// matches on capital letters (except at the start & end of the string)
const RX_... | JavaScript | 0.000013 | @@ -1095,25 +1095,27 @@
Array%3Cstring
-%7C
+ %7C
dict%3E %7D %7B%0A
@@ -1348,17 +1348,19 @@
y%3Cstring
-%7C
+ %7C
dict%3E =
@@ -1377,17 +1377,16 @@
t: dict)
-
: dict %7B
@@ -1677,17 +1677,16 @@
payload)
-
: ?dict
|
9e68fbf19fd2b4fdad9d59b33bbf2c839f53202d | fix syntax error | src/lib/events/guilds.js | src/lib/events/guilds.js | /**
* @file Guild events file.
* @author Capuccino
* @author Ovyerus
*/
module.exports = bot => {
bot.on('guildCreate', async guild => {
if (guild.members.filter(m => m.bot).filter / guild.members.size >= 0.50) {
logger.info(`Detected bot collection guild '${guild.name}' (${guild.id}). Auto... | JavaScript | 0.000003 | @@ -1748,19 +1748,8 @@
();%0A
- %7D;%0A
|
d291471c9ecbe808abf15fe0d4fe56c2feee2a49 | Use standard Redux dispatch. | src/lightbox/Lightbox.js | src/lightbox/Lightbox.js | /* @flow */
import React, { PureComponent } from 'react';
import { View, StyleSheet, Dimensions, Easing } from 'react-native';
import PhotoView from 'react-native-photo-view';
import { connectActionSheet } from '@expo/react-native-action-sheet';
import type { Actions, Auth, Message } from '../types';
import connectWit... | JavaScript | 0 | @@ -5,16 +5,56 @@
flow */%0A
+import %7B connect %7D from 'react-redux';%0A%0A
import R
@@ -87,24 +87,24 @@
om 'react';%0A
-
import %7B Vie
@@ -299,19 +299,20 @@
%7B A
-ctions, Aut
+uth, Dispatc
h, M
@@ -341,64 +341,8 @@
s';%0A
-import connectWithActions from '../connectWithActions';%0A
impo
@@ -738,16 +738,59... |
7c545e06dbae0ac4aa433d96068dbf32a9c94f00 | Fix type of cluster | cluster.js | cluster.js | /*
* Copyright 2012 The Closure Compiler Authors.
*
* 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... | JavaScript | 0.000001 | @@ -950,31 +950,28 @@
*/%0A%0A/**%0A * @
-extends
+type
events.Even
@@ -994,32 +994,16 @@
cluster
- = function() %7B%7D
;%0A%0A/**%0A
|
171880104606052a63c353afca623d1db4721674 | Fix Path in /api/arch.js | api/arch.js | api/arch.js | var badges_info_list = require(process.cwd() + '/document/badges_info_list.json');
module.exports = {
get_arch_list: function(Models) {
return function(req, res, next) {
Models['arch'].find({
uid: req.user.uid,
provider: 'arch'
}, function(err, result)... | JavaScript | 0.000004 | @@ -1,12 +1,40 @@
+var path = require('path');%0A
var badges_i
@@ -52,16 +52,26 @@
require(
+path.join(
process.
@@ -75,18 +75,17 @@
ss.cwd()
- +
+,
'/docum
@@ -111,16 +111,17 @@
t.json')
+)
;%0Amodule
|
0f3c00ef8271ff8da17bca311c3fb2c8d4aafd9b | remove unnecessary nesting; #345 | imports/i18n/en/errors.js | imports/i18n/en/errors.js | const error = {
error: {
'403': 'This username already exists',
nameRequired: 'Please enter the name of this vessel',
callsignUnique: 'A vessel with this call sign is already existing',
eniUnique: 'A vessel with this ENI number is already existing',
imoUnique: 'A vessel with this IMO number is alr... | JavaScript | 0.000011 | @@ -13,21 +13,8 @@
= %7B%0A
- error: %7B%0A
'4
@@ -50,18 +50,16 @@
xists',%0A
-
nameRe
@@ -106,18 +106,16 @@
essel',%0A
-
callsi
@@ -176,18 +176,16 @@
sting',%0A
-
eniUni
@@ -244,18 +244,16 @@
ing',%0A
-
-
imoUniqu
@@ -308,18 +308,16 @@
sting',%0A
-
mmsiUn
@@ -376,18 +376,16 @@
sti... |
8ccd20761b7cfad064a548a7b79a6bce274795a2 | use super-fancy destructuring, because i can | test/date.js | test/date.js | describe('rfc2822 dates', function() {
const { expect } = require('chai');
const { date } = require('../email');
var d_utc = dt => date.getRFC2822DateUTC(new Date(dt));
var d = (dt, utc = false) => date.getRFC2822Date(new Date(dt), utc);
it('should match standard regex', function(done) {
// RFC 2822 regex: For... | JavaScript | 0.000002 | @@ -81,14 +81,57 @@
st %7B
- date
+%0A%09%09date: %7B getRFC2822Date, getRFC2822DateUTC %7D,%0A%09
%7D =
@@ -167,29 +167,24 @@
utc = dt =%3E
-date.
getRFC2822Da
@@ -238,13 +238,8 @@
=%3E
-date.
getR
|
1d096d4aaaab9ab345e7ceb954224f3f6cc8370a | test typo | test/json.js | test/json.js |
var connect = require('../')
, should = require('./shared');
var app = connect();
app.use(connect.bodyParser());
app.use(function(req, res){
res.end(JSON.stringify(req.body));
});
app.use(function(err, req, res, next){
res.end(err.message);
});
describe('connect.bodyParser()', function(){
should['default ... | JavaScript | 0.000454 | @@ -96,26 +96,20 @@
connect.
-bodyParser
+json
());%0A%0Aap
|
f24bea00259f8fcea7a6a8efc75e2e430208d85c | Fix undefined UnsupportedModal reference | troposphere/static/js/modals/UnsupportedModal.react.js | troposphere/static/js/modals/UnsupportedModal.react.js | import React from 'react';
import BootstrapModalMixin from 'components/mixins/BootstrapModalMixin.react';
import modernizrTest from 'components/modals/unsupported/modernizrTest.js';
import BreakingFeatureList from 'components/modals/unsupported/BreakingFeatureList.react';
import chrome from 'images/google_chrome_icon.p... | JavaScript | 0.000009 | @@ -414,24 +414,93 @@
g';%0A
-%0A%0Aex
+im
port
-default
+ModalHelpers from 'components/modals/ModalHelpers';%0A%0A%0Aconst UnsupportedModal =
Rea
|
85745950c5c0fa1792db7b73562eaf772a8a5f8b | Fix Unit test to detect Bug for arguments in different case. | tests/connectControllerLoadTest.js | tests/connectControllerLoadTest.js | 'use strict'
const controller = require('./../lib/connectController')
const userCtr = {
'groups': function (nr, res) { res.render('viewName', nr) },
'index': function () {return 'I am index'},
'index_id': function (id) {return id},
'index_id_members': function () {return 'I am index_id_memb... | JavaScript | 0 | @@ -215,17 +215,21 @@
'index_
-i
+teamI
d': func
@@ -234,17 +234,21 @@
nction (
-i
+teamI
d) %7Bretu
@@ -250,17 +250,21 @@
%7Breturn
-i
+teamI
d%7D, %0D%0A
|
cb39a7ae594c39155e544e41c99b4f983a3000e1 | Fix throw assertions on plan specs | test/plan.js | test/plan.js | import 'babel-register';
import is from 'check-types';
import test from 'ava';
import Pagarme from '../src/pagarme';
import Plan from '../src/plan';
test.beforeEach(t => Pagarme.setApiKey('ak_test_TSgC3nvXtdYnDoGKgNLIOfk3TFfkl9'));
test('create a plan', async t => {
let plan = new Plan({
amount: 1000,
... | JavaScript | 0 | @@ -654,32 +654,38 @@
;%0A%0A t.throws(
+() =%3E
plan.create());%0A
@@ -676,32 +676,32 @@
plan.create());%0A
-
%7D);%0A%0Atest('creat
@@ -858,24 +858,30 @@
t.throws(
+() =%3E
plan.create(
@@ -1333,33 +1333,35 @@
id, 25937);%0A%7D);%0A
+//
%0A
-
test('find a pla
@@ -1633,32 +1633,32 @@
= new Plan();%0... |
263bb3a2640f29e9f5d3dc867e1f0150d8da507f | update Nightwatch.js E2E tests to pass with updated homepage designs | tests/e2e/pattern-lab-compiling.js | tests/e2e/pattern-lab-compiling.js | // tests/e2e/pattern-lab-compiling.js
const sauce = require('../../scripts/nightwatch-sauce');
const url = require('url');
const querystring = require('querystring');
const fetch = require('node-fetch');
const {
spawnSync
} = require('child_process');
const { NOW_TOKEN } = process.env;
if (!NOW_TOKEN) {
console.... | JavaScript | 0 | @@ -205,18 +205,16 @@
%0Aconst %7B
-%0A
spawnSy
@@ -215,17 +215,17 @@
pawnSync
-%0A
+
%7D = requ
@@ -542,16 +542,21 @@
resolve(
+%0A
'https:/
@@ -588,16 +588,20 @@
yments',
+%0A
%60?$%7Bque
@@ -625,16 +625,18 @@
y(%7B%0A
+
teamId:
@@ -659,14 +659,20 @@
m',%0A
+
%7D)%7D%60
+,%0A
);%0... |
2c7d77206c6d03384e2ab27ed430c33821140592 | correct where external link icon appears | src/app/components/msp/application/confirmation/i18n/data/en/index.js | src/app/components/msp/application/confirmation/i18n/data/en/index.js | module.exports = {
pageTitle: '<i class="fa fa-check success" aria-hidden="true"></i> Your application has been submitted.',
secondTitle: 'What happens next',
nextStep1: "<a>Print this confirmation page</a> for your records",
nextStep2: "Allow 21 business days for your application to be processed",
nextStep3:... | JavaScript | 0 | @@ -957,16 +957,70 @@
k'%3EICBC%3C
+i class='fa fa-external-link' aria-hidden='true'%3E%3C/i%3E%3C
/a%3E or %3C
@@ -1583,63 +1583,8 @@
%3C/a%3E
- %3Ci class='fa fa-external-link' aria-hidden='true'%3E%3C/i%3E
%22,%0A
@@ -1818,63 +1818,8 @@
%3C/a%3E
- %3Ci class='fa fa-external-link' aria-hidden='true'%3E%3C/i%3E
... |
59ef775e3eb75e2e4d35b56b1beb8a49835c51eb | Add a "generateToken" function in user repository | lib/api/core/models/repositories/userRepository.js | lib/api/core/models/repositories/userRepository.js | module.exports = function (kuzzle) {
var
_ = require('lodash'),
jwt = require('jsonwebtoken'),
q = require('q'),
uuid = require('node-uuid'),
User = require('../security/user'),
Repository = require('./repository'),
InternalError = require('../../errors/internalError'),
UnauthorizedErr... | JavaScript | 0.000008 | @@ -678,16 +678,657 @@
%0A %7D);%0A%0A
+ UserRepository.prototype.generateToken = function (username) %7B%0A var%0A deferred = q.defer(),%0A encodedToken,%0A error;%0A%0A if (username === null) %7B%0A error = new InternalError('Unknown User : cannot generate token');%0A return deferred... |
bc4e9e6fcfcc08a0a7d8121f989dab484479d6be | Fix resizing from the legends tab | lib/assets/javascripts/builder/embed/embed-view.js | lib/assets/javascripts/builder/embed/embed-view.js | var Backbone = require('backbone');
var _ = require('underscore');
var Ps = require('perfect-scrollbar');
var CoreView = require('backbone/core-view');
var checkAndBuildOpts = require('builder/helpers/required-opts');
var TabsView = require('./tabs/tabs-view');
var template = require('./embed.tpl');
var EmbedOverlayVie... | JavaScript | 0 | @@ -445,11 +445,11 @@
T =
-759
+600
;%0A%0Av
|
de1bcba3ef4104d06f8164f05e040d41d7c46abb | remove unneeded import | lib/components/narrative/connected-trip-details.js | lib/components/narrative/connected-trip-details.js | import { connect } from 'react-redux'
import coreUtils from '@opentripplanner/core-utils'
import styled from 'styled-components'
import TripDetailsBase from '@opentripplanner/trip-details'
const TripDetails = styled(TripDetailsBase)`
b {
font-weight: 600;
}
margin-left: 5px;
margin-right: 5px;
`
// Connec... | JavaScript | 0.000004 | @@ -35,60 +35,8 @@
ux'%0A
-import coreUtils from '@opentripplanner/core-utils'%0A
impo
|
a2819f2a0fe2c7192e201363f443581e199f0b87 | Add model methods | src/models/ImageModel.js | src/models/ImageModel.js | import mongoose from 'mongoose';
import shortid from 'shortid';
import { getThumbUrl, getSrcset } from 'src/config/constants';
const { Schema } = mongoose;
export const ImageSchema = new Schema({
name: {
type: String,
default: '',
},
url: {
type: String,
required: true,
},
shortid: {
typ... | JavaScript | 0.000001 | @@ -88,16 +88,37 @@
etSrcset
+, constructThumborUrl
%7D from
@@ -411,41 +411,137 @@
al('
-thumbUrl').get(function thumbUrl(
+srcset').get(function srcset() %7B%0A return getSrcset(this.url);%0A%7D);%0A%0AImageSchema.methods.getThumbnail = function getThumbnail(size
) %7B%0A
@@ -575,17 +575,16 @@
rl,
-640
+size... |
4bf14920b4cac450da55a018f59a2fcbff8a1a59 | Assumed synthetic route is behind nat | mod/rest/location_service.js | mod/rest/location_service.js | /**
* @author Pedro Sanders
* @since v1
*/
const postal = require('postal')
const validator = require('validator')
const CoreUtils = require('@routr/core/utils')
const { Status } = require('@routr/core/status')
const SipFactory = Java.type('javax.sip.SipFactory')
const addressFactory = SipFactory.getInstance().crea... | JavaScript | 0.999457 | @@ -1391,20 +1391,19 @@
nat:
-fals
+tru
e%0A
|
b7b8218b9bb289fc601bf15f7311c0869173ae9e | Update abilities.js | mods/tervari/abilities.js | mods/tervari/abilities.js | /*
Ratings and how they work:
-2: Extremely detrimental
The sort of ability that relegates Pokemon with Uber-level BSTs
into NU.
ex. Slow Start, Truant
-1: Detrimental
An ability that does more harm than good.
ex. Defeatist, Klutz
0: Useless
An ability with no net effect on a Pokemon during a battle.... | JavaScript | 0.000001 | @@ -905,16 +905,1306 @@
ies = %7B%0A
+%09%22frisk%22: %7B%0A inherit: true,%0A onStart: function(pokemon) %7B%0A var target = pokemon.side.foe.randomActive();%0A if (target && target.item) %7B%0A this.add('-item'... |
eb19029e5fa24a6c3c75f0d1e128d08986a4e962 | Fix streams sidebar layout (#92) | src/nav/StreamSidebar.js | src/nav/StreamSidebar.js | import React from 'react';
import {
StyleSheet,
ScrollView,
View,
Text,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import {
homeNarrow,
privateNarrow,
streamNarrow,
mentionedNarrow,
starredNarrow,
} from '../lib/narrow';
import SidebarRow from './SidebarRow';
imp... | JavaScript | 0 | @@ -1363,16 +1363,49 @@
ollView%0A
+ style=%7Bstyles.streams%7D%0A
@@ -1441,50 +1441,8 @@
%3E%0A
- %3CView style=%7Bstyles.streams%7D%3E%0A
@@ -1451,34 +1451,32 @@
%3CSidebarRow%0A
-
name
@@ -1483,18 +1483,16 @@
=%22Home%22%0A
-
@@ -1551,34 +1551,... |
03324f4fcce7dda06b5d8e1276d1218eb3696d73 | add async functions for deleting videos | app/api/index.js | app/api/index.js | import DropBox from 'dropbox';
import database from './firebase';
const endpoint = '/videos/';
const apiToken = 'KaR5yR5U9kAAAAAAAAAACEtwlnZ-37Qv8Pa403MeFDKOs8Ss7eakvlypcyEqJSG-';
const dbx = new DropBox({
accessToken: apiToken,
});
const flatten = (object) => {
const arr = [];
Object.keys(object).forEach((key... | JavaScript | 0 | @@ -380,24 +380,30 @@
const create
+Remove
Promises = (
@@ -582,16 +582,22 @@
l(create
+Remove
Promises
@@ -2294,16 +2294,739 @@
$%7Berr%7D%60);%0A %7D);%0A
+%0Aconst getIdFromUri = (uri) =%3E %7B%0A const start = uri.lastIndexOf('/');%0A const end = uri.lastIndexOf('?');%0A return uri.slice(start + 1, end);%0... |
5dcbb6f96d188625db719205d5c3028962040cad | Add missing flairs | modules/flair/RimWorld.js | modules/flair/RimWorld.js | const base = require( './base.js' );
module.exports = Object.assign( {}, base, {
list: [
'community',
'extralife',
'fun',
'gold',
'granite',
'jade',
'limestone',
'marble',
'mod',
'mod2',
'plasteel',
'pmfaf',
'sa... | JavaScript | 0.000236 | @@ -87,16 +87,34 @@
list: %5B%0A
+ 'bestof',%0A
|
5f4ddb9a6428710dac0f24c0ebdde14fff2b487d | Manage i18next's option "returnObjects" in helper | app/helpers/t.js | app/helpers/t.js | import Ember from 'ember';
/**
* An HTMLBars helper function that exposes the i18next `t()` function. Automatically
* refreshes the translated text if the application's selected locale changes.
*/
export default Ember.Helper.extend({
i18n: Ember.inject.service(),
/**
* @private
* Outputs translated text ... | JavaScript | 0.000001 | @@ -637,22 +637,17 @@
return %7B
-String
+*
%7D text l
@@ -747,37 +747,20 @@
-return Ember.String.htmlSafe(
+const res =
this
@@ -785,16 +785,82 @@
h, hash)
+;%0A%0A return hash.returnObjects ? res : Ember.String.htmlSafe(res
);%0A %7D,%0A
|
c247d2e222e106b839f95fd9f0e2311bdf4add66 | fix pull conflict | routes/quotesRouter.js | routes/quotesRouter.js | var express = require('express');
var CandidateQuote = require(__dirname + '/../models/candidateQuote');
var DictatorQuote = require(__dirname + '/../models/dictatorQuote');
var quoteChoices = [CandidateQuote, DictatorQuote];
var mongoose = require('mongoose');
var bodyParser = require('body-parser');
var handleError =... | JavaScript | 0.000002 | @@ -1423,24 +1423,192 @@
);%0A %7D%0A%7D);%0A%0A
+function total(quoteObj) %7B%0A var correct = quoteObj.correctGuesses;%0A var incorrect = quoteObj.incorrectGuesses;%0A var total = correct + incorrect;%0A%0A return total;%0A%7D%0A%0A
quotesRouter
@@ -1911,59 +1911,282 @@
var
-sorted = all.sort(function (a, b)... |
d566d1780bf3f1156c26dec34d527995f7aac17b | Revert 336a198..d06a688 | routes/views/signin.js | routes/views/signin.js | var keystone = require('../../'),
session = require('../../lib/session');
exports = module.exports = function(req, res) {
var renderView = function() {
keystone.render(req, res, 'signin', {
submitted: req.body,
from: req.query.from,
logo: keystone.get('signin logo')
});
}
// If a form was submitted,... | JavaScript | 0 | @@ -117,17 +117,18 @@
res) %7B%0A
+%09
%0A
-
%09var ren
@@ -370,17 +370,19 @@
OST%22) %7B%0A
+%09%09
%0A
-
%09%09if (!r
@@ -516,25 +516,27 @@
View();%0A%09%09%7D%0A
+%09%09
%0A
-
%09%09var onSucc
@@ -558,16 +558,19 @@
user) %7B%0A
+%09%09%09
%0A%09%09%09if (
@@ -587,63 +587,8 @@
from
- && req.query.from.ma... |
2da52e7162ed844eea4a149f274a838661d1f216 | Fix code style in live-blda | src/offline/live-blda.js | src/offline/live-blda.js | /*
Given a TRAINING_RECORD, a TEST_RECORD and optionally a MODEL, this file
classifies the test recording with a BLDA and prints out the predictions.
*/
const {
trainBLDA, getEpochData, prepareElectrodesData, getSessionFromRecording,
} = require('../lib/methods');
const numeric = require('../lib/numeric'... | JavaScript | 0.000013 | @@ -1423,16 +1423,17 @@
exOf(k))
+;
%0A%0A co
@@ -2840,19 +2840,21 @@
forEach(
+(
set
+)
=%3E %7B%0A
@@ -2943,16 +2943,17 @@
%5D %7C%7C 0))
+;
%0A %7D);
|
6ca736183cfeab70af7ae8a077920628642973f1 | fix undefined reference in JS | rtcheck/static/main.js | rtcheck/static/main.js | "use strict";
function initOrder(strings, edges) {
// Hook into the graph edges.
var labelRe = /^l([0-9]+)-l([0-9]+)$/;
$.each(edges, function(_, edge) {
var g = $(document.getElementById(edge.EdgeID));
// Increase the size of the click target by making a second,
// invisible, large... | JavaScript | 0 | @@ -2501,17 +2501,16 @@
elide
-d
Div.hide
|
6cc70d80cd4c172c13fdfe8cef118c4f8c5e4c1f | correct typo of the github checks API name used to change the build status | scripts/utils/handle-now-aliases.js | scripts/utils/handle-now-aliases.js | #!/usr/bin/env node
const shell = require('shelljs');
const { TRAVIS } = require('./travis-vars');
const { normalizeUrlAlias } = require('./normalize-url-alias');
let setCheckRun, outputBanner;
const { NOW_TOKEN } = process.env;
async function aliasNowUrl(originalUrl, prefix) {
console.log(
'Creating now.sh al... | JavaScript | 0.000002 | @@ -555,13 +555,13 @@
sh (
-basic
+alias
)',%0A
|
9a69cc40a1e013133a5cf7380dfeda5bfb01679b | Revert last commit | src/process-directory.js | src/process-directory.js | 'use strict';
import fs from 'fs';
import path from 'path';
/******************************************************************************/
function findSuffixes (name, files) {
let result = [];
for (let file of files) {
const regex = new RegExp (`${name}\.([a-zA-Z]+)\.js`);
const match = file.match (re... | JavaScript | 0 | @@ -1051,16 +1051,11 @@
in (
-path.sep
+'/'
);%0A
|
08a167ff768317f41e962545a09517ffb9dd0c4e | Update Twitter.js | src/providers/Twitter.js | src/providers/Twitter.js | /**
* Vic Shóstak <truewebartisans@gmail.com>
* Copyright (c) 2019 True web artisans https://1wa.co
* http://opensource.org/licenses/MIT The MIT License (MIT)
*
* goodshare.js
*
* Twitter (https://twitter.com) provider.
*/
import { ProviderMixin } from "../utils/ProviderMixin";
export class Twitter exten... | JavaScript | 0.000002 | @@ -398,20 +398,35 @@
nt.title
+, hashtags = %22%22
) %7B%0A
-
supe
@@ -514,16 +514,203 @@
title);%0A
+ // Allow easy discovery of Tweets by topic by including a comma-separated list of hashtag values without the preceding # character.%09%0A this.hashtags = encodeURIComponent(hashtags);%0A
this
@@ -9... |
3334605a9455d9903499b4bd9dfb30942a733037 | error properties are non-enumerable | server/middleware/error-handling.js | server/middleware/error-handling.js | const logger = require('../lib/logger');
module.exports = () =>
(err, req, res, next) => {
res.statusCode = err.status || 500;
res.body = { error: err.message };
if (res.statusCode >= 500) {
req.error = err;
logger.error({
error: req,
});
req.body = { error: 'Internal Erro... | JavaScript | 0.999318 | @@ -217,19 +217,81 @@
error =
-err
+%7B%0A message: err.message,%0A stack: err.stack,%0A %7D
;%0A
|
2055a86276b7b3ae62faa5df4e4c3e25e3720b45 | rollback to snake case | services/personality_insights/v2.js | services/personality_insights/v2.js | /**
* Copyright 2014 IBM Corp. 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 applica... | JavaScript | 0.000009 | @@ -1500,17 +1500,18 @@
include
-R
+_r
aw: incl
@@ -1537,25 +1537,26 @@
- accept
-L
+_l
anguage : Th
@@ -1908,127 +1908,23 @@
//
-include_raw%0A var queryString = %7B %7D;%0A if (params.include_raw %7C%7C params.includeRaw)%0A queryString.include_raw = true;
+Accept language
%0A%0A
@@ -1948,25 +1948... |
538a8603031f759c24c309662c1485419d986cc7 | Add read depth fragment to dof shader | shaders/post-processing/dof.frag.js | shaders/post-processing/dof.frag.js | module.exports = /* glsl */ `
precision highp float;
varying vec2 vTexCoord0;
uniform sampler2D image; //Image to be processed
uniform sampler2D depthMap; //Linear depth, where 1.0 == far plane
uniform vec2 uPixelSize; //The size of a pixel: vec2(1.0/width, 1.0/height)
uniform float uFar; // Far plane
uniform fl... | JavaScript | 0 | @@ -1,8 +1,54 @@
+const SHADERS = require('../chunks/index.js')%0A
module.e
@@ -576,282 +576,27 @@
r%0A%0A%0A
-float readDepth(const in sampler2D depthMap, const in vec2 coord, const in float near, const in float far) %7B%0A float z_b = texture2D(depthMap, coord).r;%0A float z_n = 2.0 * z_b - 1.0;%0A float z... |
6127f227c6ba64508e6cb53f265ec529923c8aad | Modify styling for stories list | simul/app/components/userStories.js | simul/app/components/userStories.js | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
TouchableHighlight,
} from 'react-native';
class UserStories extends Component{
constructor(props) {
super(props);
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
... | JavaScript | 0 | @@ -354,16 +354,223 @@
%0A
+ 'Tuesday August 23, 2016', 'Wednesday August 10, 2016', 'Wednesday August 3, 2016', 'Thursday July 28, 2016', 'Monday July 18, 2016', 'Thursday July 14, 2016', 'Saturday July 2, 2016', 'Story 8', 'Story 9',
'Story
@@ -570,16 +570,17 @@
'Story 1
+0
', 'Stor
@@ -581,17 +581,18 @@... |
5f8690729e3e4432b4776f9e56f65589b21f9050 | fix the integration test | src/secure-handlebars.js | src/secure-handlebars.js | /*
Copyright (c) 2015, Yahoo Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
Authors: Nera Liu <neraliu@yahoo-inc.com>
Albert Yu <albertyu@yahoo-inc.com>
Adonis Fung <adon@yahoo-inc.com>
*/
var Handlebars = require('handlebars'),
... | JavaScript | 0.000094 | @@ -1241,32 +1241,65 @@
ate, options) %7B%0A
+ options = options %7C%7C %7B%7D;%0A
return p
@@ -1456,32 +1456,65 @@
ate, options) %7B%0A
+ options = options %7C%7C %7B%7D;%0A
return c
|
bce61e972df216d188f76acbb67e912d8a63ee20 | Fix unexpected character in log output | src/services/Terminal.js | src/services/Terminal.js | const {gray, yellow, red, blue} = require('chalk');
const readline = require('../lib/readline/readline');
const EventEmitter = require('events');
const {Readable} = require('stream');
const boxen = require('boxen');
module.exports = class Terminal extends EventEmitter {
static create(options) {
const readlineIn... | JavaScript | 0.999993 | @@ -2750,9 +2750,8 @@
og(%60
-%EF%B8%8F
$%7B
|
8037fe69f4ef837c31f1aa32c34f5d293de5e3ea | Add 3 more drivers. | src/teamcity/buildIds.js | src/teamcity/buildIds.js | module.exports = {
"Drivers.ION": "Drivers_Ion_Ci",
"Drivers.Ziv": "Drivers_ZIV_Ci",
"Drivers.SL7000": "Drivers_SL7000_Ci",
"Drivers.Q1000": "Drivers_Q1000_Ci",
"Drivers.Nexus": "Drivers_Nexus_Ci",
"Way2 Abnt": "Drivers_Abnt_Ci",
"Drivers.E3": "Drivers_E3_Ci",
}
| JavaScript | 0 | @@ -268,10 +268,125 @@
E3_Ci%22,%0A
+ %22Drivers.Ansi%22: %22Drivers_Ansi_Ci%22,%0A %22Drivers.Cylec%22: %22Drivers_Cylec_Ci%22,%0A %22Integracao.Wits%22: %22Drivers_Wits_Ci%22%0A
%7D%0A
|
8d4b821d9879fb84fb2c545691c5f6d6017ab07c | return empty set for invisible bar trace | src/traces/bar/select.js | src/traces/bar/select.js | /**
* Copyright 2012-2017, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var DESELECTDIM = require('../../constants/interactions').DESELECTDIM;
module.exports = function selectPoints(s... | JavaScript | 0.000013 | @@ -494,16 +494,19 @@
) return
+ %5B%5D
;%0A%0A i
|
3a19125e1c3e030edb9f0cf84f8cbdc494c7fe1d | refactor transition.remove | src/transition/remove.js | src/transition/remove.js | import "transition";
d3_transitionPrototype.remove = function() {
var ns = this.namespace;
return this.each("end.transition", function() {
var p;
if (this[ns].count < 2 && (p = this.parentNode)) p.removeChild(this);
});
};
| JavaScript | 0.000016 | @@ -1,66 +1,20 @@
-im
+%0Aex
port
-%22transition%22;%0A%0Ad3_transitionPrototype.remove =
function
() %7B
@@ -5,24 +5,31 @@
ort function
+ remove
() %7B%0A var n
@@ -102,19 +102,8 @@
) %7B%0A
- var p;%0A
@@ -131,13 +131,8 @@
2 &&
- (p =
thi
@@ -148,11 +148,33 @@
ode)
-) p
+ %7B%0A this.paren... |
e8bff70fcb22b41ff248cba23f42770eebc75b0a | remove redundant comments | src/util/config/build.js | src/util/config/build.js | import fs from 'fs';
import convict from 'convict';
import path from 'path';
/**
* This module provides a single source of truth for application configuration
* info. It uses node-convict to read configuration info from, in increasing
* order of precedence:
*
* 1. Default value
* 2. File (`config.loadFile()`) - ... | JavaScript | 0.000005 | @@ -95,779 +95,46 @@
le p
-rovides a single source of truth for application configuration%0A * info. It uses node-convict to read configuration info from, in increasing%0A * order of precedence:%0A *%0A * 1. Default value%0A * 2. File (%60config.loadFile()%60) - app root %60config.%3CNODE_ENV%3E.json%60%0A * 3. Enviro... |
bb4c609fb8f9f838ba88672d3c8673a862bb211f | Change facebooks authorization endpoint | src/utils/oauthConfig.js | src/utils/oauthConfig.js | import clientConfig from "utils/clientConfig"
// const getRandomString = (length) => {
// const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
// let text = ''
// for (let i = 0; i < length; i += 1) {
// text += possible.charAt(Math.floor(Math.random() * length))
// }
// return text
// }
... | JavaScript | 0.000001 | @@ -892,13 +892,8 @@
com/
-v2.5/
dial
|
b22186f153235896b74cd1b3bd8283cc50d35ea0 | Add fetch mode to support stats in chrome | src/utils/performance.js | src/utils/performance.js | import Vue from 'vue'
import { Platform } from 'quasar'
import router from '@/base/router'
import datastore from '@/base/datastore'
import axios from '@/base/api/axios'
import { debounceAndFlushOnUnload, underscorizeKeys } from '@/utils/utils'
const SAVE_INTERVAL_MS = 5000 // batch saves to the backend
const performa... | JavaScript | 0 | @@ -2436,16 +2436,226 @@
: true,%0A
+ // without this mode set, chrome will attempt a preflight (cors) request, but fails with:%0A // %22Preflight request for request with keepalive specified is currently not supported%22%0A mode: 'same-origin',%0A
head
|
2cf4d6e86110a1f935822b9c9b69fc1b12368e99 | Update Budget_Control.js | release/Budget_Control.js | release/Budget_Control.js | function main() {
var SLACK_URL = 'https://hooks.slack.com/services/xxxxxxxx/zzzzzzzz/yyyyyyyy';
var SCRIPT_LABEL = 'Budget_Control';
// ===================================================================
ensureAccountLabels(); // Проверяем и создаем ярлык
var campaignSelector = AdWordsA... | JavaScript | 0.000001 | @@ -11,18 +11,16 @@
ain() %7B%0A
-
%0A var
@@ -20,16 +20,35 @@
var
+CONFIG = %7B%0A
SLACK_UR
@@ -48,18 +48,17 @@
LACK_URL
- =
+:
'https:
@@ -111,25 +111,62 @@
yyyyyyy'
-;
+,
%0A
-var
+ // %D0%92%D0%B5%D0%B1%D1%85%D1%83%D0%BA %D0%B4%D0%BB%D1%8F %D0%A1%D0%BB%D0%B0%D0%BA%D0%B0%0A %... |
31baebc9cf2cab77359a1c94eeb7c036da56048c | add test case | test/test.js | test/test.js | var fs = require('fs'),
path = require('path'),
ADODB = require('../index'),
expect = require('expect.js');
var source = path.join(__dirname, 'node-adodb.mdb'),
mdb = fs.readFileSync(path.join(__dirname, '../examples/node-adodb.mdb'));
fs.writeFileSync(source, mdb);
// Variable declaration
var adodb = path.j... | JavaScript | 0.000059 | @@ -580,16 +580,53 @@
(adodb);
+%0Aconsole.log(fs.existsSync(cscript));
%0A%0Adescri
|
8bf399b30fa6356be49cc6afa856ede24fc7d1da | set priority on subscription item (#43) | js/src/forum/addSubscriptionControls.js | js/src/forum/addSubscriptionControls.js | import { extend } from 'flarum/extend';
import Button from 'flarum/components/Button';
import DiscussionPage from 'flarum/components/DiscussionPage';
import DiscussionControls from 'flarum/utils/DiscussionControls';
import SubscriptionMenu from './components/SubscriptionMenu';
export default function addSubscriptionC... | JavaScript | 0 | @@ -1460,16 +1460,20 @@
ussion%7D)
+, 80
);%0A %7D
|
ec9b160d1b203acb6e4dcd3926ecf8dd4a63b395 | Test fire return value. | test/test.js | test/test.js | describe('delegated event listeners', function() {
describe('firing custom events', function() {
it('fires custom events with detail', function(done) {
const observer = function(event) {
document.removeEventListener('test:event', observer);
assert(event.bubbles);
assert(event.cancela... | JavaScript | 0 | @@ -1075,32 +1075,638 @@
event');%0A %7D);
+%0A%0A it('returns canceled when default prevented', function() %7B%0A const observer = function(event) %7B event.preventDefault(); %7D;%0A document.addEventListener('test:event', observer);%0A const canceled = !$.fire(document.body, 'test:event');%0A ... |
7e846a6df5937da22d13fe0489c947639a5d0f6e | Update appsngen-cli-login.js | commands/appsngen-cli-login.js | commands/appsngen-cli-login.js | var readlineSync = require('readline-sync');
var request = require('request');
var jsonfile = require('jsonfile');
var path = require('path');
var authcontroller = require('./../src/authcontroller');
var config = require('./../cli-config');
authcontroller.authorize()
.then(function (response) {
var config;... | JavaScript | 0.000001 | @@ -1,83 +1,4 @@
-var readlineSync = require('readline-sync');%0Avar request = require('request');%0A
var
@@ -992,12 +992,13 @@
(1);%0A %7D);
+%0A
|
6bf5216c9a45f9c4143e16c821c0920a009f7a55 | remove TODO comment | test/test.js | test/test.js | var should = require('should');
var request = require('request');
var utils = require('./utils');
var Couch = require('../lib/couch.js');
var testPort = 12500;
var dbName = 'ws_mocks';
var dbConfig = {pathname: dbName};
var serverConfig = {db: dbName, port: testPort};
var newId = '';
// TODO maybe move this to 'before... | JavaScript | 0 | @@ -283,244 +283,8 @@
';%0A%0A
-// TODO maybe move this to 'before' script%0A// before script must create couch db and maybe create some new docs there%0A// after script must remove couchdb%0A// all test must be independent (don't use results of previous test in next one!)%0A
var
|
5944345ef69a5b340f28abe41cbe07e176291ff8 | Rename test description | test/client/scripts/arcademode/actions/test.spec.js | test/client/scripts/arcademode/actions/test.spec.js | //
// 'use strict';
//
// export const OUTPUT_CHANGED = 'OUTPUT_CHANGED';
// export const TESTS_STARTED = 'TESTS_STARTED';
// export const TESTS_FINISHED = 'TESTS_FINISHED';
//
//
// export function onOutputChange(newOutput) {
// return {
// type: OUTPUT_CHANGED,
// userOutput: newOutput
// };
// }
//
// /*... | JavaScript | 0.000018 | @@ -1980,20 +1980,21 @@
be('
-test actions
+Actions: test
', (
|
191b60b3f66f3b2cf10f12ebfa358155cac7b5a2 | add test for movie/xxxx/dislike route | test/test.js | test/test.js | process.env.NODE_ENV = 'test';
const mongoose = require('mongoose');
let chai = require('chai');
let chaiHttp = require('chai-http');
const server = 'https://private-77bd5f-spotamovie.apiary-mock.com';
let should = chai.should();
chai.use(chaiHttp);
describe('Movies', () => {
// Test Login
describe('/login POST... | JavaScript | 0.000162 | @@ -196,16 +196,59 @@
k.com';%0A
+const token = 'test2j3j3k3kl2lk34j2lsois';%0A
let shou
@@ -1089,31 +1089,421 @@
n',
-'2j3j3k3kl2lk34j2lsois'
+token)%0A .end((err, res) =%3E %7B%0A res.should.have.status(201);%0A done();%0A %7D);%0A %7D);%0A %7D);%0A%0A describe('/movies/%7Bmovie_i... |
a26ab2eb282343cba3effc4bf21a54519e8e3c65 | Add the expected test spec file to the module test. | test/test.js | test/test.js | /*global describe, beforeEach, it*/
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
var assert = require('assert');
var expected = [
// Project files
'.jshintrc',
'.editorconfig',
'.htaccess',
// Bower
'.bowerrc',
'bower.json',
// Pkg
'package.json',
/... | JavaScript | 0 | @@ -4485,32 +4485,65 @@
modules/test.js'
+,%0A 'test/specs/test.spec.js'
%0A %5D;%0A%0A thi
|
49a92c39064ba085e8f9eaea53ee5fbfa873d328 | load log | static/js/angular-app.js | static/js/angular-app.js | var app = angular.module('PIR', ['ui.grid', 'ui.grid.edit', 'ui.grid.cellNav', 'ngRoute', 'chart.js', 'ngResource']);
var sort_by = function(field, reverse, primer){
var key = primer ?
function(x) {return primer(x[field])} :
function(x) {return x[field]};
reverse = !reverse ? 1 : -1;
return funct... | JavaScript | 0.000001 | @@ -2556,24 +2556,71 @@
$scope.
+item = %7B%7D;%0A $scope.item.
log = '';%0A
@@ -2674,16 +2674,21 @@
%7B$scope.
+item.
log += i
|
753b9480e2d0140ef6387282dd5fdb44610af897 | Fix #23 pull message is not correct for tag | static/js/controllers.js | static/js/controllers.js | 'use strict';
/* Use JQuery.gritter to popup success message */
function alert_success(message) {
$.gritter.add({
title: 'Success!',
text: message,
image: 'static/img/pirate-logo.png',
time: 3000
});
}
/* Use JQuery.gritter to popup error message */
function alert_error(message... | JavaScript | 0 | @@ -1985,25 +1985,25 @@
age.Name + %22
-/
+:
%22 + image.Ta
|
b1d35443c4b5d41e05ce06f8f3c45e3224472719 | Fix require path | lib/node_modules/@stdlib/datasets/savoy-stopwords-fr/benchmark/benchmark.non_browser.js | lib/node_modules/@stdlib/datasets/savoy-stopwords-fr/benchmark/benchmark.non_browser.js | 'use strict';
// MODULES //
var bench = require( '@stdlib/bench' );
var pkg = require( './../package.json' ).name;
var isStringArray = require( '@stdlib/assert/is-string-array' ).primitives;
var stopwords = require( './../lib/savoy_stopwords_fin.js' );
// MAIN //
bench( pkg+'::non_browser', function benchmark( b )... | JavaScript | 0.000003 | @@ -238,18 +238,17 @@
pwords_f
-in
+r
.js' );%0A
|
c73550b4829d97d8d5fc7d2503a58a5ce471b375 | Remove console.log | test/tile.js | test/tile.js | import { should } from "chai";
import { Tile } from "../src";
should();
/** @test {Tile} */
describe("Tile", () => {
/** @test {Tile#constructor} */
describe("#constructor", () => {
it("creates from objects", () => {
let tile = new Tile({
tileId: 56,
tilesetId: 1
});
tile.tileId.should.equal(56)... | JavaScript | 0.000004 | @@ -1069,31 +1069,8 @@
%3E %7B%0A
-%09%09%09%09console.log(%22hi%22);%0A
%09%09%09%09
|
365a5dcbf3f89dcb41b89d34752be0816b48d5a8 | Update error code for test based on updated controller value for User | test/integration/controllers/UserController.test.js | test/integration/controllers/UserController.test.js | var request = require('supertest');
describe('UserController', function () {
var credentials = { username: 'user', password: 'testtesttest', email: 'user@test.com'};
var existingEmailCredentials = { username: 'test1', password: 'gg', email: 'test@test.com'};
var existingUsernameCredentials = { username: 'test', pas... | JavaScript | 0 | @@ -1693,17 +1693,17 @@
xpect(40
-4
+1
, done);
@@ -2221,8 +2221,9 @@
%09%7D);%0A%7D);
+%0A
|
eb4d54b1e668a6339f76effe445c74f91bb88bd5 | update the geojson map | test/renderer/components/transforms/geojson-spec.js | test/renderer/components/transforms/geojson-spec.js | import React from 'react';
import Immutable from 'immutable';
import { mount } from 'enzyme';
import chai, { expect } from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
chai.use(sinonChai);
import GeoJSONTransform from '../../../../src/notebook/components/transforms/geojson';
const geojson... | JavaScript | 0.000009 | @@ -1312,16 +1312,522 @@
ngth(1);
+%0A %7D);%0A%0A it('updates the map', () =%3E %7B%0A const geoComponent = mount(%0A %3CGeoJSONTransform%0A data=%7Bgeojson%7D%0A /%3E%0A );%0A%0A const instance = geoComponent.instance();%0A%0A expect(instance.shouldComponentUpdate(%7B%0A theme: 'l... |
081f2304e6f4022e4b8b6b04a5f9647beef27e6b | resolve glslify dirs correctly | transform.js | transform.js | const format = require('kindred-shader-formatter')
const staticModule = require('static-module')
const isRequire = require('is-require')()
const combine = require('stream-combiner')
const through = require('through2')
const glslify = require('glslify')
const shortid = require('shortid')
const falafel = require('falafel... | JavaScript | 0.000555 | @@ -2609,19 +2609,23 @@
-cwd
+basedir
: cwd,%0A
|
e97c56564f018bd5cafaeae0976828f8c913c44f | update test case for single instance with open method in Mac | tests/automatic_tests/single_instance/mocha_test.js | tests/automatic_tests/single_instance/mocha_test.js | var func = require('./' + global.tests_dir +'/start_app/script.js');
var execPath = func.getExecPath();
var fs = require('fs-extra');
var os = require('os');
var spawn = require('child_process').spawn;
var exec = require('child_process').exec;
var app = new Array();
var child1, child2;
var mac_app_path = path.join('t... | JavaScript | 0 | @@ -3707,32 +3707,36 @@
it('should
+not
have a second in
@@ -3979,32 +3979,56 @@
done(
+%22have a second instance%22
);%0A
@@ -4076,37 +4076,16 @@
done(
-%22not have a instance%22
);%0A
|
8e782956ee8ed7f5249ff7b77f3e427480372595 | Make jshint pass again | jquery.cookie.js | jquery.cookie.js | /*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function($, document) {
$.cookie = function(ke... | JavaScript | 0.000001 | @@ -1,8 +1,32 @@
+/*jshint eqnull:true */%0A
/*!%0A * j
|
ade7f9c4364367e6d1026135a0e1025f41228256 | Replace |Date.now()| with |(new Date).getTime()| (Opera needs this) | public/js/online.js | public/js/online.js | $(document).ready(function() {
var parser;
var buildAndParseTimer = null;
var parseTimer = null;
var oldGrammar = null;
var oldParserVar = null;
var oldStartRule = null;
var oldInput = null;
function build() {
oldGrammar = $("#grammar").val();
oldParserVar = $("#parser-var").v... | JavaScript | 0.008609 | @@ -392,32 +392,42 @@
imeBefore =
-Date.now
+(new Date).getTime
();%0A pa
@@ -513,32 +513,42 @@
timeAfter =
-Date.now
+(new Date).getTime
();%0A%0A $
@@ -1959,24 +1959,34 @@
efore =
-Date.now
+(new Date).getTime
();%0A
@@ -2059,16 +2059,26 @@
r =
-Date.now
+(new Date).getTime
();%0A
|
866614b95078cad3404134fd900f7dbf9e09be66 | declare variable | jquery.sticky.js | jquery.sticky.js | // Sticky Plugin v1.0.0 for jQuery
// =============
// Author: Anthony Garand
// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)
// Improvements by Leonardo C. Daronco (daronco)
// Created: 2/14/2011
// Date: 2/12/2012
// Website: http://labs.anthonygarand.com/sticky
// Description: Makes an element ... | JavaScript | 0.000001 | @@ -2442,24 +2442,28 @@
%0A%0A
+var
stickyId = s
@@ -2493,24 +2493,28 @@
;%0A
+var
wrapper = $(
|
3836ef54cade51da29556fadc28ea850a222a3d5 | add event delegation hash to main view | public/js/tksweb.js | public/js/tksweb.js | (function($) {
'use strict';
var TKSWeb = window.TKSWeb = {
day_name : [ 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun' ],
month_name : [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ],
hour_label_width... | JavaScript | 0 | @@ -2928,32 +2928,112 @@
e.View.extend(%7B%0A
+ events: %7B%0A %22mousewheel .activities%22: %22mousewheel%22%0A %7D,%0A
initiali
@@ -3218,92 +3218,8 @@
s);%0A
- this.$('.activities').on('mousewheel', $.proxy(this.mousewheel, this));%0A
|
0ed002fc441561e114b77babd3c68df6d3b8eb22 | Fix bugs that creating moment object is invalid. | js/attendance.js | js/attendance.js | $(function() {
const LENGTH_OF_WEEK = 6;
const SUNDAY_NUMBER = 0;
const SATURDAY_NUMBER = 6;
var myAttendInfo = [];
var selectedDate = moment();
updateCurrentTime();
getMyAttend();
function getMyAttend() {
$.ajax({
type: "GET",
url: '/attend',
data: {},
success: function(da... | JavaScript | 0 | @@ -405,25 +405,16 @@
moment(
-).format(
record);
|
b32cf44f1a5731de74ed01d5ee4c899c7b5f65fc | Fix firefox not showing page action icon (#640) | js/background.js | js/background.js | var options;
// Performs an ajax request
function ajaxRequest(request, callback) {
var xhr = new XMLHttpRequest();
var response = request.response;
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
if (response === 'URL') {
... | JavaScript | 0 | @@ -1499,24 +1499,203 @@
ageAction':%0A
+ // Firefox url is located at sender.url, copy sender.url to sender.tab.url%0A if (!sender.tab.url && sender.url) %0A sender.tab.url = sender.url%0A
|
8d90c0514d3c2694eb4a31516c22ba2e055fcf4f | handle install event (#2) | js/background.js | js/background.js | var WORKBENCH_URL = "http://localhost:1999/recording/events?type=chrome";
var INTERVAL = 1000;
var IGNORED_PREFIXES = [
"https://loadster.app",
"https://speedway.app"
]
var requests = {}; // Requests are stored here until they are uploaded
var ports = []; // Listeners from the Loadster website that want to re... | JavaScript | 0 | @@ -337,16 +337,161 @@
events%0A%0A
+function handleFirstRun (details) %7B%0A if(details.reason === 'install') %7B%0A localStorage%5B%22loadster.recording.enabled%22%5D = %22true%22;%0A %7D%0A%7D%0A%0A
//%0A// St
@@ -4144,16 +4144,71 @@
ers'%5D);%0A
+chrome.runtime.onInstalled.addListener(handleFirstRun... |
698d419b50ddde343b449b934e7e36d952f79c36 | Make unary not (!) operator usage consistent. | js/budget-app.js | js/budget-app.js | var bb = bb || {};
bb.BudgetApp = function(pageDom) {
this.budget = new bb.Budget();
this.dataManager = new bb.DataManager(new bb.DataStore());
this.expense = new bb.Transaction();
this.income = new bb.Transaction();
this.page = new bb.Page(pageDom);
this.routes = {
'accounts': {
't... | JavaScript | 0.000003 | @@ -2631,19 +2631,17 @@
%0D%0A if (
- !
+!
page) %7B%0D
@@ -2713,17 +2713,16 @@
t') && !
-
subPage)
|
0190590fd8232033d42d90deb72a9b2829b02f74 | Update contact_me.js | js/contact_me.js | js/contact_me.js | $(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit b... | JavaScript | 0 | @@ -1119,30 +1119,44 @@
xt:
-%22Example text content%22
+message + %22%5Cn%5Cn%22 + %22Phone: %22 + phone
,%0A
@@ -1191,23 +1191,25 @@
t: %22
-example subject
+Contact Engineers
%22,%0A
@@ -1243,34 +1243,21 @@
_email:
-%22
+e
mail
-@example.com%22
,%0A
@@ -1289,22 +1289,12 @@
me:
-%22Example N
+n
a... |
1d5471c3181544d565721b300635e968082a2b5f | Fix search tests | js/emoji_util.js | js/emoji_util.js | /*
* vim: ts=4:sw=4:expandtab
*/
;(function() {
'use strict';
window.emoji_util = window.emoji_util || {};
// EmojiConverter overrides
EmojiConvertor.prototype.init_env = function() {
if (this.inits.env) {
return;
}
this.inits.env = 1;
this.include_title =... | JavaScript | 0 | @@ -1449,24 +1449,89 @@
tion($el) %7B%0A
+ if (!$el %7C%7C !$el.length) %7B%0A return;%0A %7D%0A
$el.
|
3dd87717c92d9b498ce0d9d2a13ef130eeb90cff | Fix thunker and logger priority | js/flux/store.js | js/flux/store.js | //jshint -W067
'use strict';
import * as todosreducers from 'todosreducers';
import {default as DevTools} from 'devtools';
var {
Immutable,
Redux
} = window,
{
List
} = Immutable;
const finalCreateStore = Redux.compose(
DevTools.instrument(),
window.ReduxDevTools.persistS... | JavaScript | 0 | @@ -238,16 +238,57 @@
Store =
+Redux.applyMiddleware(window.ReduxThunk)(
Redux.co
@@ -422,49 +422,8 @@
/))%0A
-)(Redux.applyMiddleware(window.ReduxThunk
)(Re
|
3cca6f9e21634d69ac1b697f286a931d572ce6e5 | update data | js/forceGraph.js | js/forceGraph.js | var width = 960,
height = 500;
var color = d3.scale.category20();
var force = d3.layout.force()
.charge(-120)
.linkDistance(250)
.size([width, height]);
var k = 0;
while ((force.alpha() > 1e-2) && (k < 150)) {
force.tick(),
k = k + 1;
}
var forceSvg = d3.select("div#chord_chart").append("svg... | JavaScript | 0.000001 | @@ -169,101 +169,8 @@
);%0A%0A
-var k = 0;%0Awhile ((force.alpha() %3E 1e-2) && (k %3C 150)) %7B%0A force.tick(),%0A k = k + 1;%0A%7D%0A%0A
var
@@ -1151,56 +1151,8 @@
ph))
-%0A console.log(graph);%0A console.log(testGraph);
%0A%0A
@@ -4346,24 +4346,137 @@
);%0A %7D);%0A%0A
+ var k = 0;%0A while... |
4d82cd6e951103888c8039f052c31fff8c149d64 | update data | js/forceGraph.js | js/forceGraph.js | var width = 960,
height = 500;
var color = d3.scale.category20();
var force = d3.layout.force()
.charge(-120)
.linkDistance(200)
.size([width, height]);
var forceSvg = d3.select("div#chord_chart").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("newsGraph.json", function... | JavaScript | 0.000001 | @@ -2577,20 +2577,12 @@
%7D);%0A
- %7D);
+%0A
%0A
-%7D%0A
//
@@ -3711,16 +3711,29 @@
%7D%0A%0A%7D%0A
+ %7D);%0A %7D%0A%0A
%0A%7D);%0A
|
8e396b7fc2e05cb07865ba790ae050a7e4be3da8 | trying to make cors work. attempt 2 | js/foursquare.js | js/foursquare.js | function loadUserData(config){
var data, url, xmlHttp;
//VARS from config
var callback = config.customCallback;
url = 'https://api.jh0.eu/swarm?fetch=user';
xmlHttp = new XMLHttpRequest();
xmlHttp.setRequestHeader('Access-Control-Allow-Origin', '*');
xmlHttp.setRequestHeader('Access-Control-Allow-Methods', ... | JavaScript | 0.999325 | @@ -155,25 +155,25 @@
h=user';%0A
-
+%09
xmlHttp = ne
@@ -196,137 +196,8 @@
();%0A
-%09xmlHttp.setRequestHeader('Access-Control-Allow-Origin', '*');%0A%09xmlHttp.setRequestHeader('Access-Control-Allow-Methods', 'GET');%0A
@@ -892,139 +892,8 @@
();%0A
-%09%09xmlHttp.setRequestHeader('Access-Control-Allow-O... |
aa88fc15da4492964991fa6f03dd68fbda388053 | update copyright dates from daily grunt work | js/grunt/lint.js | js/grunt/lint.js | // Copyright 2017-2020, University of Colorado Boulder
/**
* Runs the lint rules on the specified files.
*
* @author Sam Reid (PhET Interactive Simulations)
*/
'use strict';
// modules
const _ = require( 'lodash' ); // eslint-disable-line require-statement-match
const { ESLint } = require( 'eslint' ); // eslint-... | JavaScript | 0 | @@ -14,17 +14,17 @@
2017-202
-0
+1
, Univer
|
e29383dd868ca72ae80a478837373a85cc5cab74 | add QA to list of sims that should not be linted | js/grunt/lint.js | js/grunt/lint.js | // Copyright 2017-2021, University of Colorado Boulder
/**
* Runs the lint rules on the specified files.
*
* @author Sam Reid (PhET Interactive Simulations)
*/
'use strict';
// modules
const _ = require( 'lodash' ); // eslint-disable-line require-statement-match
const { ESLint } = require( 'eslint' ); // eslint-... | JavaScript | 0 | @@ -731,24 +731,35 @@
t-ios-app',%0A
+ '../QA',%0A
'../smithe
|
db53532fe58179e4bedb18bffb99942d6bbddf32 | Update index.js | js/main/index.js | js/main/index.js | (function(win, $) {
var items = [];
var $el;
var init = function() {
$el = $('div[node-type="apps"]');
appTodo();
};
var appTodo = function() {
var numobj = $el.find('b[node-type="num"]');
var partMash=$el.find('div[node-type="sm"]');
var mask= $('.screen_mask... | JavaScript | 0.000002 | @@ -1115,28 +1115,33 @@
=%22btn-l%22%5D').
+on('
tap
-(
+',
function() %7B
@@ -1253,20 +1253,25 @@
n-r%22%5D').
+on('
tap
-(
+',
function
@@ -1381,12 +1381,17 @@
n').
+on('
tap
-(
+',
func
|
6af42acf6a29afefaae5001974c1b3fa00cb4869 | switch to bolus groups for managing boluses enter() and exit() selections; add bolus.x for easy getting of x-coords | js/plot/bolus.js | js/plot/bolus.js | module.exports = function(pool, opts) {
var opts = opts || {};
var defaults = {
xScale: pool.xScale().copy(),
width: 8
};
_.defaults(opts, defaults);
function carbs(selection) {
selection.each(function(currentData) {
var rects = d3.select(this)
.selectAll('rect')
.data(cu... | JavaScript | 0 | @@ -174,20 +174,20 @@
unction
-carb
+bolu
s(select
@@ -246,20 +246,22 @@
var
-rect
+boluse
s = d3.s
@@ -292,20 +292,17 @@
ectAll('
-rect
+g
')%0A
@@ -469,20 +469,40 @@
;%0A
-rect
+var bolusGroups = boluse
s.enter(
@@ -511,16 +511,150 @@
+.append('g')%0A .attr(%7B%0A 'c... |
5a2edebc4711c630ac5965c98ef37bfefe8f4f9a | Generalize clipping for multiple tilesets | js/tilemapper.js | js/tilemapper.js | (function() {
var TileMap = function(options) {
this.canvas = options.canvas;
this.context = this.canvas.getContext('2d');
this.images = options.images;
this.map = options.map;
// Normalize layers to a zero indexed map
this.map.layers.forEach(function(layer) {
layer.data.forEach(functio... | JavaScript | 0.000002 | @@ -139,45 +139,375 @@
his.
-images = options.images;%0A this.map
+map = options.map;%0A%0A // Add each image to the appropriate tileset and patch a function to verify%0A // it's index boundaries%0A this.map.tilesets.forEach(function(tileset, index, tilesets) %7B%0A var tiles = Math.floor(tileset.imag... |
f2e5a9884eed39603e61b83a56beed70c80c83ed | Replace method once with one and update jQuery call accordingly | js/web-worker.js | js/web-worker.js | /*eslint no-native-reassign:0 */
(function ($) {
'use strict';
var WebWorker = null,
BrowserWorker = null,
context = null,
className = null,
defaultContext = window,
defaultClassName = 'WebWorker',
Event = null,
eventPrefix = 'webworker:',
Er... | JavaScript | 0 | @@ -5860,17 +5860,16 @@
otype.on
-c
e = func
@@ -5926,17 +5926,16 @@
orker.on
-c
e.apply(
|
4f9209feb020bf11c260195e7c8960a33f3a80fa | Change the input in the effects test to a text input. This fixes failing tests in IE8 that could not focus the input. | tests/unit/effects/effects_core.js | tests/unit/effects/effects_core.js | (function($) {
function present( value, array, message ) {
QUnit.push( jQuery.inArray( value, array ) !== -1 , value, array, message );
}
function notPresent( value, array, message ) {
QUnit.push( jQuery.inArray( value, array ) === -1 , value, array, message );
}
// minDuration is used for "short" animate tests wh... | JavaScript | 0 | @@ -1144,16 +1144,28 @@
%22%3Cinput
+ type='text'
%3E%22 ).app
|
18c25627943de8722fd343f360fe7def5f658718 | Use static member construct. | conduit.js | conduit.js | // An evented message queue.
const Queue = require('avenue')
const Interrupt = require('interrupt')
const Destructible = require('destructible')
const Flood = require('./flood')
class Conduit {
constructor () {
this._destructible = new Destructible('conduit')
this._identifier = 0n
this._wri... | JavaScript | 0 | @@ -188,16 +188,70 @@
nduit %7B%0A
+ static Error = Interrupt.create('Conduit.Error')%0A%0A
cons
@@ -5876,59 +5876,8 @@
%0A%7D%0A%0A
-Conduit.Error = Interrupt.create('Conduit.Error')%0A%0A
modu
|
21394cb5e53bdbba7f66be02944a808f1d6dab0b | check to make sure cached test page appears | tests/unit/select/select_cached.js | tests/unit/select/select_cached.js | /*
* mobile select unit tests
*/
(function($){
var resetHash;
resetHash = function(timeout){
$.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
};
// https://github.com/jquery/jquery-mobile/issues/2181
asyncTest( "dialog sized select should alter the value of its parent sele... | JavaScript | 0 | @@ -474,32 +474,125 @@
%0A%09%09%09function()%7B%0A
+%09%09%09%09ok( $.mobile.activePage.is(%22#dialog-select-parent-cache-test%22), %22cached page appears%22 );%0A
%09%09%09%09selectButton
|
fdc65a625824c545bd44a33764be3d5bd94b1e3c | improve test to stop using deprecated syntax | tests/unit/services/stripe-test.js | tests/unit/services/stripe-test.js | /* global sinon, Stripe */
import Ember from 'ember';
import { moduleFor, test } from 'ember-qunit';
import QUnit from 'qunit';
moduleFor('service:stripe', 'StripeService', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
var cc = {
number: 4242424242424242,
exp_yea... | JavaScript | 0 | @@ -3618,32 +3618,37 @@
return service.
+card.
createToken(cc)%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.