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 |
|---|---|---|---|---|---|---|---|
2bf39adf2efd7afdf156678e64efd25443951343 | Improve style of the test suite | test/getCommands.spec.js | test/getCommands.spec.js | const path = require('path');
const expect = require('chai').expect;
const getCommands = require('../src/getCommands');
const findPlugins = require('../src/findPlugins');
const mock = require('mock-require');
const mockFs = require('mock-fs');
const commands = require('./fixtures/commands');
const testPluginPath = pat... | JavaScript | 0.000001 | @@ -1648,40 +1648,8 @@
%7D);%0A
-%0A process.chdir('testDir');%0A%0A
@@ -1696,16 +1696,23 @@
mock(
+%0A
path.joi
@@ -1727,16 +1727,27 @@
s.cwd(),
+ 'testDir',
'packag
@@ -1755,22 +1755,33 @@
.json'),
+%0A
pjson
+%0A
);%0A m
@@ -1807,32 +1807,43 @@
n(process.cwd(),
+ 'testDir',
... |
afd1b15205049c3a7eeef84b3991479a6effa43e | Fix tests for getCommands | test/getCommands.spec.js | test/getCommands.spec.js | const path = require('path');
const expect = require('chai').expect;
const getCommands = require('../src/getCommands');
const findPlugins = require('../src/findPlugins');
const mock = require('mock-require');
const mockFs = require('mock-fs');
const sinon = require('sinon');
const commands = require('./fixtures/comman... | JavaScript | 0.000002 | @@ -317,36 +317,38 @@
mmands');%0Aconst
-t
+n
est
+ed
PluginPath = pat
@@ -412,20 +412,22 @@
;%0Aconst
-t
+n
est
+ed
PluginPa
@@ -492,24 +492,177 @@
n-test-2');%0A
+const flatPluginPath = path.join(process.cwd(), '..', 'rnpm-plugin-test');%0Aconst flatPluginPath2 = path.join(process.cwd(), '..', 'rnpm-plugin-t... |
36e2b977da9ad4f1bdf7ab12d3365fa18b116e39 | fix filtering events by venue. part of #692 | lib/Filtering.js | lib/Filtering.js | var Predicates = {
string: function(param) {
return {
merge: function(other) { return other; },
without: function(predicate) { return false; },
get: function() { return param; },
param: function() { return param; },
query: function() { return param; },
equals: function(other) { return param === oth... | JavaScript | 0.000001 | @@ -2806,16 +2806,13 @@
s,%0A%09
-location
+venue
: P
@@ -5288,8 +5288,9 @@
self;%0A%7D;
+%0A
|
d21e70e4dd4e35f0e65d74078f4f557159d6abd9 | Use jQuery oembed all to render OEmbed content | posts/client/item/item.js | posts/client/item/item.js | import Oembed from 'oembed-all';
Template.postItem.onRendered(function () {
// Get reference to template instance
const instance = this;
// Get Post ID from template instance
const postId = instance.data.post._id;
// Select post DOM element
const postElement = document.querySelector(`#${postId}`);
// ... | JavaScript | 0 | @@ -223,22 +223,32 @@
;%0A%0A //
-Select
+Get reference to
post DO
@@ -283,30 +283,18 @@
t =
-document.querySelector
+instance.$
(%60#$
@@ -322,21 +322,8 @@
der
-post element
OEmb
@@ -339,34 +339,8 @@
t%0A
-const oembed = new Oembed(
post
@@ -346,15 +346,23 @@
tElement
+.oembed(
);%0A%7D);%0A
|
180df034f4c45d1efbb79537a087e53b84020497 | I am an idiot | server/controllers/fb.js | server/controllers/fb.js | import fetch from 'isomorphic-fetch';
const VERIFY_TOKEN = process.env.VERIFY_TOKEN
const PAGE_TOKEN = process.env.PAGE_TOKEN
const MESSAGES_PATH = 'https://graph.facebook.com/v2.6/me/messages'
export function verify (req, res) {
console.log('Request query:', req.query)
if (req.query['hub.verify_token'] === VERIF... | JavaScript | 0.998675 | @@ -29,17 +29,47 @@
c-fetch'
-;
+%0Aimport Promise from 'bluebird'
%0A%0Aconst
@@ -1416,10 +1416,12 @@
on%0A %7D);
+%0A%7D
%0A%0A
|
b0c3859699cfcbe2eb059d9f02532cc1b8d3af0a | Fix a test | test/commands/register.js | test/commands/register.js | var Q = require('q');
var expect = require('expect.js');
var helpers = require('../helpers');
var register = helpers.command('register');
var fakeRepositoryFactory = function (canonicalDir, pkgMeta) {
function FakeRepository() { }
FakeRepository.prototype.fetch = function () {
return Q.fcall(function... | JavaScript | 0.999999 | @@ -4259,16 +4259,17 @@
bower.io
+)
, contin
|
9758163842b91c0ebe4ab91fae6c6515a7d5a4a1 | Fix bug in s3 syncing. | lib/Site-sync.js | lib/Site-sync.js | var request = require('superagent'),
mkdirp = require('mkdirp'),
fs = require('fs'),
path = require('path'),
async = require('async'),
knox = require('knox'),
hashFile = require('hash_file'),
crypto = require('crypto');
var Page = require('./Page'),
Site = require('./Site'),
File = require('./File'),
fsUtil ... | JavaScript | 0 | @@ -3883,16 +3883,11 @@
ask.
-getUrl()
+url
);%0A%09
|
f54afb86f022f56640e15559af7f8784a2e49a85 | fix sorting; improve display more | shootout.js | shootout.js |
var competition = require('./the_competitors.js'),
valid = require('testdata-valid-email'),
invalid = require('testdata-invalid-email');
var maxscore = 0;
function verify_one(X) {
var result = { errors: [] },
score = 0;
maxscore = 0;
valid.map( function(V) { if ( X.... | JavaScript | 0 | @@ -794,21 +794,16 @@
verify()
-;%0Ares
.sort(fu
@@ -840,16 +840,49 @@
Y.score
+? 1 : (X.score %3E Y.score? -1 : 0)
; %7D);%0A%0Ac
@@ -988,28 +988,27 @@
+ X.
-nam
+scor
e + '
-:
' + X.
-scor
+nam
e);%0A
|
5cfba21cbb3b506820c60cce0d1fcb8c721fcd8f | Reset counters in test to make it more readable | test/local-state-test.js | test/local-state-test.js | var tape = require("tape"),
jsdom = require("jsdom"),
d3 = Object.assign(require("../"), require("d3-selection"));
/*************************************
************ Components *************
*************************************/
// Local state.
var spinnerCreated = 0,
spinnerDestroyed = 0,
spinner... | JavaScript | 0 | @@ -270,20 +270,16 @@
rCreated
- = 0
,%0A sp
@@ -296,12 +296,8 @@
oyed
- = 0
,%0A
@@ -1268,16 +1268,57 @@
Create.%0A
+ spinnerCreated = spinnerDestroyed = 0;%0A
div.ca
@@ -1577,16 +1577,57 @@
tate().%0A
+ spinnerCreated = spinnerDestroyed = 0;%0A
spinne
@@ -1798,33 +1798,33 @@
spinnerCreated,
-1
+0... |
e09bfd2da1e9fa8c0e0f92b0c17996e1e282b87b | Update bits-oder-functions.js | js/bits-oder-functions.js | js/bits-oder-functions.js | ////////////////////////////////////////////////////////////////////////////////////////////////////////////
function oid() {
//Get Token Balance
$("#tokenBal").html(allTokens.balanceTokens.totalEarned.toFixed(2) + " tokens");
//Load Wallet
$(".walletToast").remove();
if (localStorage.getItem('bits-... | JavaScript | 0.000001 | @@ -4825,16 +4825,26 @@
n at) %7B%0A
+%0Atry%7B%0A
if(!(loc
@@ -4916,21 +4916,16 @@
e;%0A %7D%0A
-try%7B%0A
|
ac865c37ea378fd32841b174d138a8f9d52564b6 | Copy progress is broken * tell yui compressor to not remove the comment with the Velocity code when minifying the JavaScript | xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/uicomponents/job/job.js | xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/uicomponents/job/job.js | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* th... | JavaScript | 0 | @@ -889,16 +889,17 @@
.%0A */%0A/*
+!
%0A#set ($
|
a3fe38912ad35a469b5114e3536bbde155738f41 | Remove change in web config | server/config/servers/web.js | server/config/servers/web.js | 'use strict'
var os = require('os')
exports.default = {
servers: {
web: function (api) {
return {
enabled: true,
// HTTP or HTTPS?
secure: false,
// Passed to https.createServer if secure=true. Should contain SSL certificates
serverOptions: {},
// Should we ... | JavaScript | 0.000001 | @@ -985,21 +985,17 @@
p://
-192.168.0.105
+localhost
:996
|
090c26360cc19a818d75e8fc9ad9478521529d87 | Return array of activity IDs; cleanup | server/methods/activities.js | server/methods/activities.js | Meteor.methods({
'getResidentLatestActivityByType': function (residentId, activityTypeId) {
/*
Get the resident's most recent activity by type
*/
var query = {
activityTypeId: activityTypeId,
residentIds: residentId
};
// Set up sort by activity date, in descending order
var s... | JavaScript | 0.000008 | @@ -621,26 +621,27 @@
atestActivit
-ie
+yId
sByType': fu
@@ -1086,26 +1086,27 @@
atestActivit
-ie
+yId
sByType = %5B%5D
@@ -1266,39 +1266,8 @@
pes%0A
- console.log(residentId);%0A
@@ -1869,32 +1869,34 @@
ntLatestActivity
+Id
ByType = Meteor.
@@ -2012,34 +2012,35 @@
ntsLatestActivit
-ie
+yId
sByType%... |
df74b647eb9838edb0b3d094e715fcad103fda2e | indent well code | js/jquery.customSelect.js | js/jquery.customSelect.js | /*
Alessandro Minoccheri
V 1.0.0
15-02-2014
*/
(function ($) {
$.fn.extend({
customSelect: function (argumentOptions) {
var defaults = {
width : 100,
height : 19,
image : "select.jpg",
textAlign : "left",
textIndent : "10"
}
var options = $.extend(d... | JavaScript | 0.000057 | @@ -400,16 +400,21 @@
var o
+%09%09%09%09%09
= option
@@ -428,16 +428,20 @@
var obj
+%09%09%09%09
= $(this
@@ -454,16 +454,21 @@
%09var ul
+%09%09%09%09%09
= $(%22ul%22
@@ -486,16 +486,21 @@
%09var li
+%09%09%09%09%09
= $(%22li%22
@@ -519,16 +519,20 @@
ar span
+%09%09%09%09
= $(%22spa
@@ -556,16 +556,2... |
e2e2cf278af7ecbe1af65d93f193ee3c9f3a39dd | fix upgrade bar | js/saiku/views/Upgrade.js | js/saiku/views/Upgrade.js | /*
* Copyright 2012 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | JavaScript | 0 | @@ -975,69 +975,8 @@
5)%7B%0A
-%09%09%09license.fetch_license('api/api/license', function (opt) %7B%0A
%09%09%09%09
@@ -1255,71 +1255,103 @@
if (
-opt.status !== 'error' && opt.data.get(%22
+Settings.LICENSE.licenseType != %22trial%22 && Settings.LICENSE.
licen
-s
+c
eType
-%22)
!= %22
-trial
+Open Source Licens... |
a6e43dc64d00425bc1794f0f87a725a2b4e36817 | Fix for Zero Search Radius | js/tasks/LayerInfoTask.js | js/tasks/LayerInfoTask.js | /*global pulse, app, jQuery, require, document, esri, esriuk, Handlebars, console, $, mynearest, window, alert, unescape, define */
/*
| Copyright 2015 ESRI (UK) Limited
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You ma... | JavaScript | 0 | @@ -2647,24 +2647,25 @@
s.KILOMETERS
+;
%0A%0A
@@ -2720,16 +2720,17 @@
s.METERS
+;
%0A%0A
@@ -2939,278 +2939,90 @@
Task
-;%0A%0A // Use the current location and buffer the point to create a search radius%0A query = new Query();%0A queryTask = new QueryTask(_this.pro... |
1fa2a2aa3b50a8564f533b6aafdac96a75d1b745 | Copy commits individually (#7486) | bin/copy.js | bin/copy.js |
const copyAssets = require("./copy-assets")
const copyModules = require("./copy-modules")
const minimist = require("minimist");
const fs = require("fs");
const chalk = require("chalk");
const args = minimist(process.argv.slice(1), {
string: ["mc"],
boolean: ["watch", "symlink", "assets"]
});
const mc = args.mc |... | JavaScript | 0 | @@ -1,16 +1,301 @@
+%0A/*%0A * copy files to mc%0A * node ./bin/copy --mc ../gecko-dev%0A *%0A * copy files per commit%0A * node ./bin/copy --mc ../gecko-dev --sha 123%0A *%0A * copy files per commit with a message%0A * node ./bin/copy --mc ../gecko-dev --sha 123 --message %22bug 123 (release 106) __message__.r=dwalsh%... |
be351ce1face2c69c68a4eda2418e57998b3e3fa | check for null in getTextBounds | js/views/headerBarView.js | js/views/headerBarView.js | (function(ionic) {
'use strict';
ionic.views.HeaderBar = ionic.views.View.inherit({
initialize: function(opts) {
this.el = opts.el;
ionic.extend(this, {
alignTitle: 'center'
}, opts);
this.align();
},
align: function(align) {
align || (align = this.alignTitle);
... | JavaScript | 0 | @@ -1277,25 +1277,26 @@
-childSize
+var bounds
= ionic
@@ -1324,15 +1324,88 @@
s(c)
-.width;
+;%0A if(bounds) %7B%0A childSize = bounds.width;%0A %7D
%0A
|
44bf5eb045d89b20ba28e6648e91a371ecf9cf10 | Refactor the bin file | bin/pnpm.js | bin/pnpm.js | #!/usr/bin/env node
if (~process.argv.indexOf('--debug')) {
process.env.DEBUG = 'pnpm:*'
process.argv.push('--quiet')
}
var rc = require('rc')
var camelcaseKeys = require('camelcase-keys')
var spawnSync = require('cross-spawn').sync
var installCmd = require('../lib/cmd/install')
var uninstallCmd = require('../lib... | JavaScript | 0.000006 | @@ -13,16 +13,29 @@
nv node%0A
+'use strict'%0A
if (~pro
@@ -344,16 +344,81 @@
tall')%0A%0A
+const supportedCmds = new Set(%5B'install', 'uninstall', 'help'%5D)%0A%0A
function
@@ -1564,127 +1564,44 @@
var
-installC
+c
md
-s
=
-%5B'install', 'i'%5D%0A var supportedCmds = installCmds.concat(%5B'uninstall', 'r'... |
7e62aaf4395dc69b92d4e4ea3c437677430e7797 | Update neko.js | bot/neko.js | bot/neko.js | /*
Created by ℭrystaℒ on 7/10/2017.
*/
const Discord = require('discord.js');
const client = new Discord.Client();
const fs = require("fs");
const path = require("path");
const prefixPath = path.join(__dirname, "prefixes.json");
require("./functions/functions.js")(client);
fs.readdir("./events/", (err, files... | JavaScript | 0 | @@ -119,125 +119,8 @@
);%0D%0A
-const fs = require(%22fs%22);%0D%0Aconst path = require(%22path%22);%0D%0Aconst prefixPath = path.join(__dirname, %22prefixes.json%22);%0D%0A
requ
@@ -570,78 +570,8 @@
%7B%0D%0A
- const gprefix = JSON.parse(fs.readFileSync(prefixPath, 'utf8'));%0D%0A
@@ -634,23 +634,31 @@
i... |
0e593910e739f1776152502c3f93387078d962d0 | Enable cobertura coverage report generation for jenkins consumption | gulp-tasks/tests.js | gulp-tasks/tests.js | var angularProtractor = require('gulp-angular-protractor'),
del = require('del'),
exec = require('child_process').exec,
mocha = require('gulp-spawn-mocha'),
path = require('path'),
symlink = require('gulp-symlink');
var yargs = require('yargs');
module.exports = function(gulp) {
gulp.task('unit-test', fun... | JavaScript | 0 | @@ -659,20 +659,57 @@
tanbul:
-true
+%7B%0A report: 'cobertura'%0A %7D
%0A %7D
|
877d2929b8ced2bf4fdf804819dd012547dfede1 | remove comment in gulp.config.js | gulp/gulp.config.js | gulp/gulp.config.js | module.exports = function (fs) {
var paths = {
assets: __base + 'assets/',
bower: __base + 'bower_components/'
};
var config = {
bundleSettingPath: __base + 'gulp/bundle.setting',
bower: {
"bootstrap": paths.bower + "bootstrap/dist/**/*.{js,map,css,ttf,svg,woff,eot}",
... | JavaScript | 0.000001 | @@ -380,292 +380,8 @@
p%7D%22%0A
- // %22angular%22: paths.bower + %22angular/angular*.%7Bjs,map%7D%22,%0A // %22slick%22: paths.bower + %22slick-carousel/slick/*.%7Bjs,css%7D%22,%0A // %22slider%22: paths.bower + %22seiyria-bootstrap-slider/dist/**/*.%7Bjs,css%7D%22,%0A // %22mousewhee... |
9b09db804c2c8f3dc51fdf54d85754569c7e330b | update browser versions | browsers.js | browsers.js | 'use strict';
/* eslint camelcase: [0] */
module.exports = {
sl_chrome_41_osx9: {
base: 'SauceLabs',
platform: 'OS X 10.9',
browserName: 'chrome',
version: '41'
},
sl_firefox_36_osx9: {
base: 'SauceLabs',
platform: 'OS X 10.9',
browserName: 'firefox',
version: '36'
},
sl_safari_7_osx9: {
base: ... | JavaScript | 0.000002 | @@ -69,25 +69,26 @@
hrome_41_osx
-9
+10
: %7B%0A%09%09base:
@@ -113,33 +113,34 @@
tform: 'OS X 10.
-9
+10
',%0A%09%09browserName
@@ -185,25 +185,26 @@
refox_36_osx
-9
+10
: %7B%0A%09%09base:
@@ -229,33 +229,34 @@
tform: 'OS X 10.
-9
+10
',%0A%09%09browserName
@@ -304,17 +304,18 @@
ri_7_osx
-9
+10
: %7B%0A%0... |
62a4043f4eacc778c8a1ba57c83926fd843fd505 | remove logging | db/jobs.js | db/jobs.js | "use strict"
/**
* [collectionName description]
* @type {String}
*/
var collectionName = 'Jobs'
/**
* [description]
* @param {[type]} dbs [description]
* @param {[type]} opts [description]
* @param {[type]} _cb [description]
* @return {[type]} [description]
*/
module.exports.get = (dbs, opts, _cb) => {
d... | JavaScript | 0.000001 | @@ -916,42 +916,25 @@
j, (
-) =%3E %7B%0A console.log(arguments);
+err, result) =%3E %7B
%0A
|
baa7c4bc738aaae47e4897142362eaec19a86843 | fix tests | server/test/session.js | server/test/session.js | var Lab = require('lab');
var Code = require('code');
var server = require('../').hapi;
var lab = exports.lab = Lab.script();
var sessionA = {
id: 'john.doe',
name: 'John Doe',
};
var changesSessionA = {
name: 'Jane Doe'
};
var credentials = {
id: 'john.doe',
name: 'John Doe',
participations: [{
r... | JavaScript | 0.000001 | @@ -177,18 +177,92 @@
n Doe',%0A
-%7D;
+ event: 'test-event'%0A%7D;%0A%0Avar sessionId = sessionA.id + '-' + sessionA.event
%0A%0Avar ch
@@ -885,35 +885,33 @@
to.equal(session
-A.i
+I
d);%0A Code.e
@@ -1554,35 +1554,33 @@
ssions/'+session
-A.i
+I
d,%0A credent
@@ -1834,35 +1834,33 @@
to.equal(session
... |
b8631b79ce8bceb13444815f42fc23255c27514f | fix testcase | test/startserver.test.js | test/startserver.test.js | 'use strict';
var path = require('path');
var CliTest = require('command-line-test');
var StartServer = require('../build/server');
var logger = require('../build/middleware/logger');
var markdown = require('../build/middleware/markdown');
var statics = require('../build/middleware/static');
var directory = require('... | JavaScript | 0.000009 | @@ -111,21 +111,19 @@
ire('../
-build
+lib
/server'
@@ -142,37 +142,35 @@
r = require('../
-build
+lib
/middleware/logg
@@ -194,37 +194,35 @@
n = require('../
-build
+lib
/middleware/mark
@@ -247,37 +247,35 @@
s = require('../
-build
+lib
/middleware/stat
@@ -308,21 +308,19 @@
ire('../
-build
+lib
/middlew
|
95fc8af2c642989d247a5b9d637945fb7686a2e8 | Fix configure step usage. | lib/configure.js | lib/configure.js |
module.exports = exports = configure
/**
* Module dependencies.
*/
var path = require('path')
, win = process.platform == 'win32'
exports.usage = 'Generates ' + (win ? 'MSVS project files' : 'a Makefile') + ' for the current platform'
function configure (gyp, argv, callback) {
var python = gyp.opts.python |... | JavaScript | 0 | @@ -173,17 +173,17 @@
n ? 'MSV
-S
+C
project
@@ -226,24 +226,22 @@
current
-platform
+module
'%0A%0Afunct
|
1cd22bab62d358dedf80c376da31dc3236cd6cb7 | Use double quotes by default for all languages | lib/converter.js | lib/converter.js | var sprintf = require("sprintf-js").sprintf;
/**
* Perform JSON conversion to target language
*/
function jsonToLang(json, lang, level) {
var indentationLevel = level || 0;
var dataFormatted = '';
var formatMap = {
csharp: {
fileStart: "",
variable: "var data = ",
hashStart: "new Hashtabl... | JavaScript | 0 | @@ -570,20 +570,22 @@
shRow: %22
-'%25s'
+%5C%22%25s%5C%22
=%3E %25s%22,
@@ -782,12 +782,14 @@
w: %22
-'%25s'
+%5C%22%25s%5C%22
: %25
@@ -1493,247 +1493,36 @@
-// Certain languages require double quotes for values%0A switch(lang)%0A %7B%0A case 'csharp':%0A value = %22%5C%22%22 + v... |
985370371ac0b00e5397011fb1fae120d391db40 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
/* jshint expr: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
console.log();
var fileContentI... | JavaScript | 0 | @@ -4107,38 +4107,35 @@
utf8');%0A
-expect
+if
(fileContentRead
@@ -4158,19 +4158,61 @@
icense')
-, '
+ === -1) %7B%0A console.log('Warning:
The READ
@@ -4213,32 +4213,30 @@
e README.md
-needs to
+should
have a sect
@@ -4255,83 +4255,145 @@
se')
-.not.equal(-1);%0A expect(fileConten... |
1208d188372e5c67309cf74ca438e70ddc46ce71 | add the post method | lib/db_helper.js | lib/db_helper.js | var sqlite3 = require('sqlite3').verbose();
var _ = require("underscore");
var config = require('../iot').config;
var MongoClient = require('mongodb').MongoClient;
var mongodb_url = 'mongodb://127.0.0.1:27017/' + config.mongodb_name.toString();
function DBHelper() {
'use strict';
return;
}
function... | JavaScript | 0 | @@ -511,24 +511,1123 @@
urn str;%0A%7D%0A%0A
+function mongodb_postData(convertedData, callback) %7B%0A 'use strict';%0A MongoClient.connect(mongodb_url, function (err, db) %7B%0A if (err) %7B%0A throw err;%0A %7D%0A console.log(%22connect:%22 + convertedData);%0A var updat... |
a40a4c6082a836fe5a052d282dc4f1199588d025 | Use camel-case for font-size property | src/Cell.js | src/Cell.js | // @flow
import React from 'react';
function Cell(props) {
var classname="xwordjs-cell";
if (props.isHidden) {
classname += " xwordjs-cell-hidden";
} else if (props.isBlack) {
classname += " xwordjs-cell-black";
}
if (props.isTop) {
classname += " xwordjs-cell-top";
}
if (props.isShaded) {
... | JavaScript | 0.000001 | @@ -1236,18 +1236,17 @@
=%7B%7B%22font
--s
+S
ize%22: fo
|
af7afe7eb749937eabe5b4cac860f023fe2e4ae9 | Revert "Testing." | test/test_controllers.js | test/test_controllers.js | 'use strict';
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var after = require('mocha').after;
var afterEach = require('mocha').afterEach;
var async = require('async');
var before = require('mocha').before;
var beforeEach = require('mocha').beforeEach;
var cheerio = require('che... | JavaScript | 0 | @@ -706,77 +706,8 @@
) %7B%0A
- console.log('does it exist?', process.env.STORMPATH_API_KEY_ID);%0A
|
8f9da1d96891b99bab9c0c1441da0ba336571d7e | Add tests for move-right command | test/unit/interpreter.js | test/unit/interpreter.js | const assert = require('chai').assert;
const interpret = require('../../interpreter');
function initState(input) {
return {
input: '',
output: '',
pointer: 0,
tape: [],
};
}
describe('unit > interpreter', () => {
let state;
beforeEach(() => {
state = initState('foo');
});
afterEach((... | JavaScript | 0.000001 | @@ -3684,32 +3684,259 @@
right.', () =%3E %7B
+%0A const tokens = %5B %7B type: '%3E', %7D, %5D;%0A%0A state = Object.assign(state, %7B pointer: 1, %7D);%0A%0A const result = interpret(tokens, state).pointer;%0A%0A const expected = 2;%0A%0A assert.deepEqual(expected, result);%0A
%7D);%0A ... |
5bbb8a32966d794d665e031c3a416922f078d71a | Clean redis session data before test | test/unit/store/redis.js | test/unit/store/redis.js | /**
* The MIT License (MIT)
*
* Copyright (c) 2017 GochoMugo <mugo@forfuture.co.ke>
* Copyright (c) 2017 Forfuture LLC <we@forfuture.co.ke>
*/
// built-in modules
const assert = require("assert");
// own modules
const SessionStore = require("../../../store/base");
const RedisStore = require("../../../store/red... | JavaScript | 0 | @@ -353,24 +353,56 @@
unction() %7B%0A
+ const prefix = %22test:mau:%22;%0A
const si
@@ -412,16 +412,16 @@
%22SID%22;%0A
-
cons
@@ -522,32 +522,36 @@
reEach(function(
+done
) %7B%0A stor
@@ -593,32 +593,49 @@
efix
-: %22test:mau:%22,%0A %7D
+,%0A %7D);%0A store.del(sid, do... |
5f17d881a9e8447a317f97f029f1a914888f875c | Fix nit. | test/unit/stream_spec.js | test/unit/stream_spec.js | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
describe('stream', function() {
beforeEach(function() {
this.addMatchers({
toMatchTypedArray: function(expected) {
var actual = this.ac... | JavaScript | 0.000005 | @@ -1100,16 +1100,25 @@
edArray(
+%0A
new Uint
@@ -1149,16 +1149,23 @@
102, 1%5D)
+%0A
);%0A %7D
|
0e4563924c752e24f3ef779f9d455ac0cebe81ae | Update Configuration.test.js | lib/Configuration.test.js | lib/Configuration.test.js | 'use strict';
/**
* Unit tests for Configuration.
*/
const chai = require('chai');
const Configuration = require('./Configuration');
const expect = chai.expect;
describe('Configuration', () => {
describe('defaults', () => {
let expectedDefaults;
before(() => {
expectedDefaults = {
webpackC... | JavaScript | 0.000001 | @@ -496,32 +496,30 @@
-serializedCompile: false
+concurrency: undefined
%0A
@@ -2549,32 +2549,30 @@
-serializedCompile: false
+concurrency: undefined
%0A
@@ -3175,32 +3175,30 @@
-serializedCompile: false
+concurrency: undefined
%0A
@@ -3800,32 +3800,30 @@
-serializedCompile: false
+c... |
1e11be51df72c81a3df8aafc6c0e072462d6b093 | Fix for custom arrows issue https://github.com/akiran/react-slick/issues/671 | examples/CustomArrows.js | examples/CustomArrows.js | import React, { Component } from 'react'
import Slider from '../src/slider'
var SampleNextArrow = React.createClass({
render: function() {
return <div {...this.props} style={{display: 'block', background: 'red'}}></div>;
}
});
var SamplePrevArrow = React.createClass({
render: function() {
return (
... | JavaScript | 0 | @@ -74,58 +74,57 @@
r'%0A%0A
-var SampleNextArrow = React.createClass(
+class CarouselArrow extends Component
%7B%0A
+%0A
render
: fu
@@ -115,34 +115,24 @@
%7B%0A%0A render
-: function
() %7B%0A ret
@@ -132,21 +132,28 @@
-return %3Cdiv %7B
+let style = %7B%0A
...t
@@ -157,34 +157,38 @@
..thi... |
2291f6c2ae8785f4dff7d5c1054f763462f3eeec | Fix host 'id' value in error responses | host/nodeachrome.js | host/nodeachrome.js | #!/Users/admin/.nvm/versions/node/v4.2.4/bin/node
// ^ full path to node must be specified above, edit for your system. may also try:
// #!/usr/local/bin/node
'use strict';
// Native messaging host, provides native access to OS functions over stdin/stdout
// for the Google Chrome extension
// TODO: port off nodejs?
... | JavaScript | 0.000004 | @@ -1272,32 +1272,25 @@
- id: id
+%7D
,%0A
@@ -1292,17 +1292,23 @@
-%7D
+id: id,
%0A
|
ae33f6a77e2bc7b5d095c9b46ee0cf8d1a977b70 | add delete confirmation reducer to reducer index [#146514255] | client/reducers/index.js | client/reducers/index.js | import { combineReducers } from 'redux';
import users from './userReducer';
import documents from './documentReducer';
import search from './searchReducer';
import auth from './auth';
const rootReducer = combineReducers({
auth,
documents,
users,
search
});
export default rootReducer;
| JavaScript | 0 | @@ -34,16 +34,66 @@
redux';%0A
+import %7B reducer %7D from 'react-redux-sweetalert';%0A
import u
@@ -296,16 +296,39 @@
users,%0A
+ sweetalert: reducer,%0A
search
|
e57b78e4014c6d004e20ae1a9cd50645cd5ef443 | Clarify test, add ref to special code in comment | tests/BookReader.test.js | tests/BookReader.test.js | import '../BookReader/jquery-1.10.1.js';
import '../BookReader/jquery-ui-1.12.0.min.js';
import '../BookReader/jquery.browser.min.js';
import '../BookReader/dragscrollable-br.js';
import '../BookReader/jquery.colorbox-min.js';
import '../BookReader/jquery.bt.min.js';
import BookReader from '../src/js/BookReader.js';
i... | JavaScript | 0 | @@ -1946,41 +1946,62 @@
st('
-overrides cookie if page fragment
+gets index from fragment when both fragment and cookie
whe
@@ -2463,32 +2463,147 @@
eTruthy();%0A%7D);%0A%0A
+// Default behavior same in%0A// BookReader.prototype.drawLeafsThumbnail%0A// BookReader.prototype.getPrevReadMode%0A
test('sets prevP
|
446c64496dd2abcbae478d4698e4cdcdbc7e4f43 | remove protocol from nominatim url | contrib/l.geosearch.provider.openstreetmap.js | contrib/l.geosearch.provider.openstreetmap.js | /**
* L.Control.GeoSearch - search for an address and zoom to it's location
* L.GeoSearch.Provider.OpenStreetMap uses openstreetmap geocoding service
* https://github.com/smeijer/leaflet.control.geosearch
*/
L.GeoSearch.Provider.OpenStreetMap = L.Class.extend({
options: {
},
initialize: function(opti... | JavaScript | 0.000009 | @@ -551,13 +551,8 @@
rn '
-http:
//no
@@ -1006,8 +1006,9 @@
%7D%0A%7D);
+%0A
|
231c549a19b2adef0d33fa1bc33f9705fa78404d | Remove link to elife and link to HW feedback form. | nodes/cover/cover_view.js | nodes/cover/cover_view.js | "use strict";
var _ = require("underscore");
var util = require("substance-util");
var html = util.html;
var NodeView = require("../node").View;
var TextView = require("../text").View;
var $$ = require("substance-application").$$;
var articleUtil = require("../../article_util");
// Lens.Cover.View
// ================... | JavaScript | 0 | @@ -928,17 +928,16 @@
-%0A //
-
%0A //
@@ -1205,56 +1205,12 @@
bsp;
-%3Ca href=%22http://lens.elifesciences.org%22%3ELens%3C/a%3E
+Lens
pro
@@ -1321,58 +1321,48 @@
f: %22
-mailto:lens-feedback@highwire.org?subject=Lens%2520F
+http://home.highwire.org/feedback/lens-f
eedb
@@ -1388,16 +1388,35 @@
eedback%... |
f5f7e2dbed86e3b31dc2636e22d59c5d9ba6842f | Update electron sample to make it work on electron v5. | samples/electron/start.js | samples/electron/start.js | const electron = require('electron')
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow;
var mainWindow = null;
app.on('window-all-closed', function() {
if (process.platform != 'darwin')
app.quit();
});
app.on(... | JavaScript | 0 | @@ -369,16 +369,21 @@
Window(%7B
+%0A
width: 8
@@ -385,16 +385,20 @@
th: 800,
+%0A
height:
@@ -401,16 +401,66 @@
ght: 600
+,%0A webPreferences: %7B nodeIntegration: true %7D%0A
%7D);%0A ma
|
0429a053484977fd26a3cd53fbbf28000f896b3a | Add tests | lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-markdown-remark/test/fixtures/unvalidated.js | lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-markdown-remark/test/fixtures/unvalidated.js | 'use strict';
// MODULES //
var config = require( './config.js' );
// VARIABLES //
var valid;
var test;
// MAIN //
// Create our test cases:
valid = [];
test = {
'code': [
'function fizzBuzz() {',
' // This is a single-line comment',
' var out;',
' var i;',
'',
' for ( i = 1; i <= 100; i++ ) {... | JavaScript | 0.000001 | @@ -1922,24 +1922,286 @@
h( test );%0A%0A
+// The following is only valid as the configuration provided:%0Atest = %7B%0A%09'code': %5B%0A%09%09'/**',%0A%09%09'* Beep boop.',%0A%09%09'*',%0A%09%09'* ## Beep',%0A%09%09'*',%0A%09%09'* ## Beep',%0A%09%09'*/',%0A%09%09'function beep() %7B',%0A%09%09' console.log( %22boo... |
a256180f267a02c53a6809a7db01853629ae6fdb | Add isPaused check to fail download quicker | src/actions/Bluetooth/SensorDownloadActions.js | src/actions/Bluetooth/SensorDownloadActions.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2021
*/
import moment from 'moment';
import { PermissionActions } from '../PermissionActions';
import BleService from '../../bluetooth/BleService';
import TemperatureLogManager from '../../bluetooth/TemperatureLogManager';
import SensorManager from '../../bluet... | JavaScript | 0 | @@ -2151,16 +2151,21 @@
iltered(
+%0A
'locatio
@@ -2193,17 +2193,41 @@
== true
-'
+ && isPaused == false'%0A
);%0A%0A if
|
f13e4e40d42578be2006c5167b48e19f13ce7c90 | Fix typo mistake for user config object | files/api/user/services/jwt.js | files/api/user/services/jwt.js | 'use strict';
/**
* Module dependencies
*/
// Public node modules
const jwt = require('jsonwebtoken');
/**
* Service method to generate a new token based on payload we want to put on it.
*
* @param {String} payload
*
* @return {*}
*/
exports.issue = function (payload) {
return jwt.sign(
payload,
... | JavaScript | 0.000182 | @@ -350,33 +350,32 @@
strapi.api.user
-s
.config.jwtSecre
@@ -712,17 +712,16 @@
api.user
-s
.config.
|
700a932f05e901d53915da5ced17d2cbb588c299 | Update all batching token placeholder | examples/all_batching.js | examples/all_batching.js | /*
* Copyright 2015 Splunk, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"): you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | JavaScript | 0 | @@ -1072,16 +1072,21 @@
ur-token
+-here
%22,%0A u
|
4e729898c234339a9256eb890533cf80d26cf439 | Add clickable `localhost` link (#28) | examples/basic/server.js | examples/basic/server.js | var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true,
stats: { colors: true }
}).listen(3000, 'localhost', function (err... | JavaScript | 0 | @@ -385,16 +385,23 @@
ning at
+http://
localhos
|
004f0dd6d0286893a4f12ed75beb0df9f45e6f01 | add seenBy column to message model | server/models/message.js | server/models/message.js | 'use strict';
module.exports = (sequelize, DataTypes) => {
const Message = sequelize.define('Message', {
id: {
allowNull: false,
primaryKey: true,
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4
},
sentBy: {
type: DataTypes.STRING,
allowNull: false,
validate:... | JavaScript | 0 | @@ -443,24 +443,136 @@
%7D%0A %7D,%0A
+ seenBy: %7B%0A type: DataTypes.ARRAY(DataTypes.JSON),%0A allowNull: true,%0A defaultValue: %5B%5D%0A %7D,%0A
senderId
|
666aa9a0981af80532f66da82d1f735b677f5ce1 | add class if iframe has height property | utils/dom-purify/dom-purify.web.js | utils/dom-purify/dom-purify.web.js | var objectAssign = require('object-assign');
var DOMPurify = require('dompurify');
var defaults = {
ALLOWED_TAGS: [
'a',
'b',
'br',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'i',
'iframe',
'img',
'p',
'small',
'sub',
'sup',
'span'
],
RETURN_DOM: true,... | JavaScript | 0.000003 | @@ -1494,16 +1494,128 @@
%7B%0A
+var iframe = iframes%5Bi%5D;%0A var heightClass = iframe.height %7C%7C iframe.style.height ? 'has-height' : ''%0A
if (!ifr
@@ -1617,20 +1617,16 @@
(!iframe
-s%5Bi%5D
.parentN
@@ -1683,28 +1683,24 @@
iframe
-s%5Bi%5D
.outerHTML =
@@ -1736,16 +1736,31 @@
erCl... |
df79e1529b479fc116eacb4511052f8d98d9b4bb | Add login nav functionality to Home | simul/app/components/home.js | simul/app/components/home.js | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
TouchableHighlight,
} from 'react-native';
import Search from './search.js'
class Home extends Component{
constructor(props) {
super(props);
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r... | JavaScript | 0 | @@ -165,12 +165,38 @@
arch
-.js'
+'%0Aimport Login from './login'%0A
%0A%0Acl
@@ -928,24 +928,108 @@
ssLogin() %7B%0A
+ this.props.navigator.push(%7B%0A title: 'Login',%0A component: Login%0A %7D)%0A
%7D%0A%0A _onPr
|
e6f438a17e9cf530440cd8f66ff269b126ec1aa8 | Add messages model | server/models/message.js | server/models/message.js | export default (connection, Sequelize) => {
const Message = connection.define('message', {
messageId: {
type: Sequelize.UUID,
defaultValue: Sequelize.UUIDV4,
primaryKey: true
},
inGroup: {
type: Sequelize.UUID,
allowNull: false
},
author: {
type: Sequelize.UUID,... | JavaScript | 0.000001 | @@ -410,28 +410,8 @@
alse
-,%0A unique: true
%0A
|
9257014f5aed89a6e36cbcdc105f176c6449351a | Update code style. | base/UI.js | base/UI.js | /*
===============================================================================
Class defines UI: HUD (head-up display) with player stats and menu GUI.
===============================================================================
*/
function UI() {
if ( !(this instanceof UI) ) return new UI();
this.... | JavaScript | 0.000004 | @@ -1456,25 +1456,24 @@
s.width / -
-
2;%0A this.
@@ -1509,17 +1509,16 @@
width /
-
2;%0A
@@ -1562,17 +1562,16 @@
ight /
-
2;%0A t
@@ -1613,17 +1613,16 @@
ight / -
-
2;%0A t
|
7b96e4a7e51db89549edc230c7946ec4fec48850 | Update the build process to build assets in the correct path. | Gulpfile.js | Gulpfile.js | /**
* Created by Marian on 09/12/2015.
*/
var paths = {
tmp: './tmp',
src: './app',
pub: './public'
};
var gulp = require('gulp');
var jade = require('gulp-jade');
var data = require('gulp-data');
var debug = require('gulp-debug');
var browserSync = require('browser-sync'... | JavaScript | 0 | @@ -1326,16 +1326,20 @@
('assets
+:dev
', funct
@@ -1343,24 +1343,24 @@
nction () %7B%0A
-
gulp.src
@@ -1439,32 +1439,172 @@
/fonts'));%0A%7D);%0A%0A
+gulp.task('assets:build', function () %7B%0A gulp.src(paths.src + '/assets/fonts/**/*')%0A .pipe(gulp.dest(paths.pub + '/fonts'));%0A%7D);%0A%0A
gulp... |
2030b2c8405b1c011ef09e3c4386486f91121917 | Fix z-index issue (#53) | simulator/js/ToolBarGroup.js | simulator/js/ToolBarGroup.js | var ToolTypeEnum = {
RADIO: 1,
RADIOLIST: 2,
BUTTON: 3,
CHECK: 4,
SLIDE: 5,
HELP: 6
};
Object.freeze(ToolTypeEnum);
class ToolBarItem {
/**
* Create a ToolBarItem that can be any type listed in ToolTypeEnum.
* @param {string|String[]} name
* @param {string} id
* @param {string} img popover im... | JavaScript | 0 | @@ -1084,38 +1084,1229 @@
//
-Warning: Dirty code below.%0A
+ Currently, a hack is used to make the RADIOLIST dropdown menu appear%0A // above other toolbar buttons. This hack requires setting the%0A // %60description%60 of the RADIOLIST to represent its z-index. This%0A // value should monotonically dec... |
83e991339ed3ca179f7e38fcc6ff4d35cf97ecef | Fix remove bit length select for ECC algo and GnuPG usage | src/app/keyring/components/AdvKeyGenOptions.js | src/app/keyring/components/AdvKeyGenOptions.js | /**
* Copyright (C) 2016 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import * as l10n from '../../../lib/l10n';
import moment from 'moment';
import {KeyringOptions} from '../KeyringOptions';
import DatePicker from... | JavaScript | 0 | @@ -640,16 +640,68 @@
led%7D) %7B%0A
+ const context = React.useContext(KeyringOptions);%0A
const
@@ -1478,65 +1478,16 @@
-%3CKeyringOptions.Consumer%3E%0A %7Boptions =%3E options
+%7Bcontext
.gnu
@@ -1519,45 +1519,8 @@
os%7D%0A
- %3C/KeyringOptions.Consumer%3E%0A
@@ -1582,16 +15... |
200cc21b91ae8348268c666d1c71306f6415c9da | drop debug statement | dnt/dnt.js | dnt/dnt.js | /*jslint white:true */
/*global chrome */
(function ( http ) {
'use strict';
var dnt_header = { name: 'DNT', value: '1' },
filter = { urls: [ '<all_urls>' ] },
info = [ 'requestHeaders', 'blocking' ];
function doNotTrack( r ) {
console.log( r );
r.requestHeaders.push( dnt... | JavaScript | 0.000001 | @@ -1,8 +1,327 @@
+// ____ __ __ ______ %0A// /%5C _%60%5C /%5C %5C/%5C %5C/%5C__ _%5C %0A// %5C %5C %5C/%5C %5C %5C %60%5C%5C %5C/_/%5C %5C/ %0A// %5C %5C %5C %5C %5C %5C , %60 %5C %5C %5C %5C %0A// %5C %5C %5C_%5C %5C %5C %5C%60%5C %5C %5C %5C %5C %0A// %5C %5C____/%5C %5C_%5C %5C_%5C %... |
b2cacec4919cf60436ba5ba1108c8bd1b6802cd2 | Update comment_admin.js | modules/comment/tpl/js/comment_admin.js | modules/comment/tpl/js/comment_admin.js |
function doCancelDeclare() {
var comment_srl = new Array();
jQuery('#fo_list input[name=cart]:checked').each(function() {
comment_srl[comment_srl.length] = jQuery(this).val();
});
if(comment_srl.length<1) return;
var params = new Array();
params['comment_srl'] = comment_srl.join(',');... | JavaScript | 0.000001 | @@ -90,20 +90,24 @@
ut%5Bname=
+%22
cart
+%5B%5D%22
%5D:checke
|
69fea5c1f020484fffc669abcedbcaae927b735e | remove todo tag | scaffold/gulp/gulpfile.js | scaffold/gulp/gulpfile.js | var gulp = require('gulp'),
fs = require("fs"),
file = require('gulp-file'),
runSequence = require('run-sequence'),
replace = require('gulp-replace'),
babel = require('gulp-babel'),
bc=require('babel-core');
var componentFileArr=[];
gulp.task('readFile',function(callback) {
walk("src/comp... | JavaScript | 0.000001 | @@ -4242,18 +4242,4 @@
);%0A%7D
-%0A%0A//todo es6%E8%BD%AC%E6%8D%A2
|
bc74c89e7600430d6f00c36b4cb72d73935ffd4c | Update excerpt helper to properly filter HTML footnotes | core/server/helpers/excerpt.js | core/server/helpers/excerpt.js | // # Excerpt Helper
// Usage: `{{excerpt}}`, `{{excerpt words="50"}}`, `{{excerpt characters="256"}}`
//
// Attempts to remove all HTML from the string, and then shortens the result according to the provided option.
//
// Defaults to words="50"
var hbs = require('express-hbs'),
_ = requir... | JavaScript | 0.000001 | @@ -818,16 +818,26 @@
lace(/%3Ca
+ href=%22#fn
.*?rel=%22
|
015c8807bac4db359950dd13298cc925e69699f1 | Fix CSV format | bin/cli.js | bin/cli.js | #!/usr/bin/env node
'use strict';
var path = require('path');
var jade = require('jade');
var Table = require('cli-table');
var numeral = require('numeral');
var program = require('commander');
var json2csv = require('json2csv');
var _ = require('underscore');
_.str = require('underscore.string');
_.mixin(_.str.expo... | JavaScript | 0.999994 | @@ -2378,16 +2378,184 @@
'csv':%0A
+ Object.keys(result).forEach(function(key) %7B%0A result%5Bkey%5D = Array.isArray(result%5Bkey%5D) ? result%5Bkey%5D.join(' ') : result%5Bkey%5D;%0A %7D);%0A
|
ac6c0b44dec5a286d2ea79d77ad4a2e2365fab56 | Fix loading with global "define" set to null | build/wrapper.template.js | build/wrapper.template.js | /*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
(function() {
// This is "window" in browsers and "global" in nodejs.
// See https://github.com/google/shaka-player/issues/1445
var innerGlobal = typeof window != 'undefined' ? window : global;
// This is wher... | JavaScript | 0.000014 | @@ -1615,29 +1615,28 @@
define
-!
+=
= '
+f
un
-defined
+ction
' && def
|
7597f2c653b077e8696bb200ac29f6f35dd382ab | Comment test on vuejsdialog with vue3 | resources/js/app.js | resources/js/app.js | import { createApp, defineAsyncComponent } from 'vue';
import '@fontsource/kreon';
const app = createApp({
mounted: function() {
document.body.classList.add('cssLoading');
setTimeout(() => document.body.classList.remove('cssLoading'), 0);
},
components: {
PageRandom: defineAsyncCom... | JavaScript | 0 | @@ -1173,16 +1173,18 @@
i18n);%0A%0A
+//
import V
@@ -1215,16 +1215,18 @@
ialog';%0A
+//
app.use(
|
d4e433d79d650b623a42909a20b9761e43a1f537 | Fix Gulpfile | Gulpfile.js | Gulpfile.js | var gulp = require('gulp');
var gulpif = require('gulp-if');
var uglify = require('gulp-uglify');
var uglifycss = require('gulp-uglifycss');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var debug = require('gulp-debug');
var livereload = require('gul... | JavaScript | 0.00002 | @@ -1936,32 +1936,123 @@
ivate/sass/**',%0A
+ 'vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/private/scss/**',%0A
%5D,%0A
@@ -5031,24 +5031,35 @@
k('watch', %5B
+'default',
'admin-watch
|
afc26be7607f399ab038c8d5bf5a627759912bbc | Add bandaid fix for #91 | src/Util.js | src/Util.js | const crypto = require('crypto')
/**
* @module Util
*/
module.exports = {
/**
* Performs string formatting for things like custom nicknames.
*
* @param {string} formatString The string to format (contains replacement strings)
* @param {object} data The data to replace the string replacements with
* ... | JavaScript | 0 | @@ -2830,24 +2830,157 @@
own%5Cn' : ''%0A
+%0A if (binding.groups == null) %7B%0A return %60%5CnInvalid Group Format - Unbind role $%7Bbinding.role%7D to fix this problem.%5Cn%60%0A %7D%0A%0A
for (let
|
e4698003aa02a0fa93225c2b96689217f2cd4986 | remove commetns for sse | xgds_core/static/xgds_core/js/sseUtils.js | xgds_core/static/xgds_core/js/sseUtils.js | // __BEGIN_LICENSE__
//Copyright (c) 2015, United States Government, as represented by the
//Administrator of the National Aeronautics and Space Administration.
//All rights reserved.
//
//The xGDS platform is licensed under the Apache License, Version 2.0
//(the "License"); you may not use this file except in compl... | JavaScript | 0.00002 | @@ -3125,32 +3125,34 @@
hannels%5Bi%5D;%0A%09%09%09%09
+//
console.log('SUB
@@ -3495,16 +3495,18 @@
i%5D;%0A%09%09%09%09
+//
console.
|
5a4fd3a0e456b4884f4a8ffefa3666e1bc5eb754 | check if has internet connection | bin/cli.js | bin/cli.js | #! /usr/bin/env node
'use strict'
const pkg = require('../package.json'),
got = require('got'),
money = require('money'),
colors = require('colors'),
API = 'https://api.fixer.io/latest'
// arguments
let argv = process.argv.slice(2),
amount = argv[0],
from = argv[1]
... | JavaScript | 0.000449 | @@ -419,30 +419,40 @@
.version)%0A
-return
+process.exit(1)%0A
%0A%7D%0A%0A%0A// help
@@ -809,19 +809,31 @@
D 1%0A
+
%60)%0A
-return
+process.exit(1)%0A
%0A%7D%0A%0A
@@ -1225,17 +1225,16 @@
se()) %7B%0A
-%0A
co
@@ -1464,16 +1464,16 @@
amount%7D%0A
-
%60.it
@@ -1483,11 +1483,245 @@
c.gray)%0A
+... |
ee5b0ad78e6ac38d65432bfc483fc7b01659a966 | fix onload | public/js/index.js | public/js/index.js | /**
* Created by azu on 2014/06/10.
* LICENSE : MIT
*/
"use strict";
function windowOnload() {
require("./console-editor").initilize();
require("./sync-toc").initilize();
require("./bug-report").initilize();
}
window.addEventListener("DOMContentLoaded", windowOnload); | JavaScript | 0.000014 | @@ -218,16 +218,151 @@
ze();%0A%7D%0A
+var readyState = document.readyState;%0Aif (readyState == %22interactive%22 %7C%7C readyState === 'complete') %7B%0A windowOnload();%0A%7D else %7B%0A
window.a
@@ -411,8 +411,10 @@
Onload);
+%0A%7D
|
66702e84ad3b31e82759243acb6a719a2d8159b0 | upgrade the code for 0.2.0 | bin/cli.js | bin/cli.js | #!/usr/bin/env node
'use strict';
var pkg = require('../package.json');
var Promise = require('rsvp').Promise;
var CMDS = ['on', 'off', 'state', 'temp', 'version', 'voltage'];
var _ = require('lodash');
var yargs = require('yargs');
var argv = yargs
.demand(1)
.usage('Usage: $0 cmd [relay] [opts]')
.help('h')
.... | JavaScript | 0.000026 | @@ -1019,22 +1019,19 @@
%0A%7D%0A%0Avar
-create
+run
= funct
@@ -1039,185 +1039,46 @@
on (
+c
) %7B%0A%09
-var options = %7B%0A%09%09debug: argv.v,%0A%09%09relayCount: argv.n%0A%09%7D;%0A%09if (!argv.p) %7B%0A%09%09return Tosr0x.fromPortScan(); // TODO: put options when available%0A%09%7D else %7B%0A%09%09return ... |
76bfa593e9a03579487fd396d03c9ee7a140b06e | Improve yarn init | bin/init.js | bin/init.js | var fs = require('fs-extra');
var logger = require('winston');
var path = require('path');
var inquirer = require('inquirer');
var child_process = require('child_process');
module.exports = function init() {
var destination = process.cwd();
var questions = [
{
type: 'confirm',
name: 'destinationOk... | JavaScript | 0.000001 | @@ -630,24 +630,54 @@
caffold');%0A%0A
+ // Copy scaffold project.%0A
try %7B%0A
@@ -816,44 +816,706 @@
-%5B%0A '_site',%0A 'node_modules
+// Create our package.json file. Grab the existing dependencies from the%0A // scaffold package.json and create our clean new one.%0A try %7B%0A ... |
8df91fd2ba6fbc09141b87ca37dce1f949341cd1 | Fix path | bin/cli.js | bin/cli.js | #!/usr/bin/env node
var entity2utf8 = require('../lib/check-entity'),
log = require('../lib/log'),
program = require('commander'),
isutf8 = require('isutf8'),
Q = require('q'),
FS = require('q-io/fs');
program
.version(require('../package.json').version)
.usage('[options] <file...>')
.... | JavaScript | 0.000018 | @@ -52,20 +52,19 @@
lib/
-check-
entity
+2utf8
'),%0A
|
f4e4eb6305916ebf39046d813c1ae8f36db0fc0d | Add support for array bodies | lib/form-data.js | lib/form-data.js | 'use strict'
var path = require('path')
var mime = require('mime-types')
, isstream = require('isstream')
function generate (options) {
var parts = []
Object.keys(options.multipart).forEach(function (key) {
var part = options.multipart[key]
var body = part.value || part
if (isstream(body) && part... | JavaScript | 0 | @@ -279,24 +279,113 @@
lue %7C%7C part%0A
+ body = (body instanceof Array) ? body : %5Bbody%5D%0A%0A body.forEach(function (item) %7B%0A
if (isst
@@ -389,20 +389,20 @@
sstream(
-body
+item
) && par
@@ -448,20 +448,22 @@
%7B%0A
-body
+ item
._knownL
@@ -499,19 +499,24 @@
gth%0A
+
%7D%0A%... |
406f0d1e1df5053847e3bc6cd0f514f50502cf5d | fix this instance | src/a11y.js | src/a11y.js | import after from './after'
import validate from './options'
import browser from './util/browser'
import Suite from './test'
export default class A11y {
/**
* @arg {object} React - The React instance you want to patch
* @arg {object} ReactDOM - The ReactDOM instance you'll be using
* @arg {object... | JavaScript | 0.999999 | @@ -3355,16 +3355,70 @@
l._owner
+%0A console.log('owner', owner && owner._instance)
%0A%0A
@@ -4571,16 +4571,27 @@
%7D
+.bind(this)
)%0A
|
1e4564e97312961cc4d734bd8a927f3df6653f6c | Fix path of file uploads | lib/form-data.js | lib/form-data.js | const mime = require("./mime-types"),
fs = require("fs"),
os = require("os"),
path = require("path"),
url = require("url");
class FormData {
constructor(server) {
let cfg = server.getCfg("file_uploads");
this.server = server;
this.buffer = new Buffer("\r\n");
this.type = "";
this.boundary = "";
t... | JavaScript | 0.000013 | @@ -4412,16 +4412,31 @@
th.join(
+process.cwd(),
dir %7C%7C o
@@ -4724,24 +4724,104 @@
= true;%0A%09%09%09%7D
+ else %7B%0A%09%09%09%09this.server.server.writeError(%22Could not upload file %22 + name);%0A%09%09%09%7D
%0A%0A%09%09%09this.mu
|
6bf3feca6d9d28783962058e876a1e8f757885ef | Add appending of file paths (still weird but at least it will not override it anymore) | bin/cli.js | bin/cli.js | #!/usr/bin/env node
"use strict";
const fs = require("fs");
const path = require("path");
const { promisify } = require("util");
const mkdirp = require("mkdirp");
const mkdir = promisify(mkdirp);
const writeFile = promisify(fs.writeFile);
const readFile = promisify(fs.readFile);
const buildStats = require("../plugi... | JavaScript | 0 | @@ -1466,16 +1466,20 @@
(const %5B
+file
, fileCo
@@ -1732,88 +1732,103 @@
s);%0A
+%0A
-Object.assign(nodeIds, fileContent.nodeIds);//TODO this will override things
+for (const %5Bid, uid%5D of fileContent.nodeIds) %7B%0A nodeIds%5Bfile + %22/%22 + id%5D = uid;%0A %7D
%0A%0A
|
f841f65508bb81fc926fdc722a8b0deea01cb5d2 | Trim whitespace and remove \n from item name. | src/alza.js | src/alza.js | import _request from 'request-promise'
import cheerio from 'cheerio'
const jar = _request.jar()
const request = _request.defaults({
headers: {'Content-Type': 'application/json'},
jar,
})
const SCV='https://www.alza.sk/Services/EShopService.svc/'
export function* login(credentials) {
return yield request.post(`... | JavaScript | 0 | @@ -688,16 +688,44 @@
).text()
+.trim().replace(/%5Cs+/g, ' ')
%0A const
|
9d8dc8ddf67ca1abc8ef1b60def1b5c5efc644fb | Include exception stack trace in notifications | lib/formatter.js | lib/formatter.js | "use babel";
import gateway from "./gateway";
import main from "./main";
export default {
// formats the active text editor
formatActiveTextEditor() {
if ((editor = atom.workspace.getActiveTextEditor())) {
if (main.hasElixirGrammar(editor)) {
this.formatTextEditor(editor);
} else {
... | JavaScript | 0 | @@ -966,24 +966,32 @@
xception%22, %7B
+%0A
detail: exc
@@ -996,16 +996,54 @@
xception
+,%0A stack: exception.stack%0A
%7D);%0A
|
4bee26216fc55d38f2bd059f74c35bce67c696c7 | add pid-file | bin/cli.js | bin/cli.js | #!/usr/bin/env node
'use strict';
const connect = require('connect');
const hall = require('hall');
const {middleware, FileStore, NedbDataStorage, FsBlobStorage} = require('..');
const nedb = require('nedb');
const argentum = require('argentum');
const path = require('path');
const argv = process.argv.slice(2);
cons... | JavaScript | 0.000001 | @@ -238,24 +238,50 @@
argentum');%0A
+const fs = require('fs');%0A
const path =
@@ -294,24 +294,24 @@
re('path');%0A
-
%0Aconst argv
@@ -577,24 +577,91 @@
SE === '1',%0A
+ pidFile: process.env.PID_FILE %7C%7C '/var/run/file-store.pid'%0A
%7D,%0A%7D);%0A%0A
@@ -802,16 +802,349 @@
%7C%7C '.');
+%0Acons... |
79ea71c51f0cd54abb4d5059ae4013c7b5cfeb88 | Update #broadcast examples to new interface | examples/broadcast.js | examples/broadcast.js |
"use strict"
var example = require("washington")
var Sydney = require("../sydney")
example("#broadcast: send to the subscriber", function (check) {
var venue = new Sydney
var event = { name: "event" }
venue.add(function (e) { check(e, event) })
venue.broadcast(event)
})
example("#broadcast: chainable"... | JavaScript | 0 | @@ -209,32 +209,48 @@
%7D%0A%0A venue.add(
+%7B%0A callback:
function (e) %7B c
@@ -265,16 +265,20 @@
event) %7D
+%0A %7D
)%0A%0A ven
|
b7a0da513efd7f4f74f8ba25462abcf4deef3076 | Mark sub paths active | public/js/senna.js | public/js/senna.js |
function scroll_toc(path) {
// remove base either '/docs/' or '/'
var base = '/docs/';
path = path.indexOf(base) == 0? path.substring(base.length) : path.substring(1);
if(path[path.length - 1] == '/') {
path = path.substring(0, path.length - 1);
}
var path = '.' + path.split('/').join(' .')... | JavaScript | 0.000001 | @@ -270,20 +270,16 @@
%7D%0A %0A
-var
path = '
@@ -318,53 +318,20 @@
%0A%0A
-if(window.toc.active) %7B%0A window.toc.active
+$('.active')
.rem
@@ -349,20 +349,16 @@
ctive');
-%0A %7D
%0A%0A if(p
@@ -383,58 +383,149 @@
-window.toc.active = $(path);%0A window.toc.active
+$(path).addClass('activ... |
35e6d43022214df16810194bf62f6a895c88713f | Set session and sessionhandle events | bin/seed.js | bin/seed.js | /*
* Copyright (c) 2015 peeracle contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... | JavaScript | 0 | @@ -1245,19 +1245,8 @@
eam;
-%0Avar media;
%0A%0Ava
@@ -1818,16 +1818,21 @@
n start(
+media
) %7B%0A va
@@ -1910,16 +1910,422 @@
metadata
+, media);%0A%0A session.on('connect', function onConnectCb(tracker) %7B%0A %7D);%0A%0A session.on('disconnect', function onDisconnectCb(tracker) %7B%0A %7D);%0A%0A handle... |
9e4782c4e52a4d6c17a9e4d98fdf55a3eb80b264 | Fix typo | public/js/todos.js | public/js/todos.js | let updateID;
$(document).ready(() => {
$('#newDialog').dialog({
title: 'Add New Todo',
autoOpen: false,
modal: true,
show: {
effect: 'blind',
duration: 1000
},
hide: {
effect: 'blind',
duration: 1000
},
buttons: [{
text: 'Add',
click: function() {
... | JavaScript | 0.999999 | @@ -2537,24 +2537,25 @@
Type: 'json'
+,
%0A headers
|
bab3e22ed1099f56f136b89e2bd08d4f6ff90fb9 | fix typo in markdown instructions | examples/markdown/app.js | examples/markdown/app.js | var mercury = require('../../index')
var h = mercury.h
var inlineMdEditor = require('./component/inlineMdEditor')
var sideBySideMdEditor = require('./component/sideBySideMdEditor')
app.render = appRender
module.exports = app
function app() {
var state = mercury.hash({
inlineEditor: inlineMdEditor({
placeholder... | JavaScript | 0.999005 | @@ -836,44 +836,44 @@
own
-and click outside of the textarea to
+in the left pane and see it rendered
' +
@@ -881,63 +881,33 @@
%09%09%09%09
-%09'see
+'in
the pa
-rsed result. Click the output to edit again
+ne on the right
.'),
@@ -1071,17 +1071,16 @@
to ' +%0A
-%09
%09%09%09%09'see
|
8b333abd75138b854f7e729843088735aa41a1d9 | Add license text | lib/globalize.js | lib/globalize.js | var path = require('path');
var SG = require('strong-globalize');
SG.SetRootDir(path.join(__dirname, '..'), {autonomousMsgLoading: 'all'});
module.exports = SG();
| JavaScript | 0.000001 | @@ -1,12 +1,235 @@
+// Copyright IBM Corp. 2016. All Rights Reserved.%0A// Node module: loopback-connector-ibmdb%0A// This file is licensed under the Artistic License 2.0.%0A// License text available at https://opensource.org/licenses/Artistic-2.0%0A%0A
var path = r
|
bd6e1ea40607b8ec35e65b12e5bf8801e4782926 | Main is an abstract state | custom/gnap-angular/app/main/routes.config.js | custom/gnap-angular/app/main/routes.config.js | (function () {
angular
.module('gnap-example-app')
.config(mainRouteConfig);
mainRouteConfig.$inject = ['$stateProvider'];
function mainRouteConfig($stateProvider) {
$stateProvider
.state('main', {
templateUrl: 'app/main/main.html',
contr... | JavaScript | 0.999056 | @@ -241,16 +241,48 @@
ain', %7B%0A
+ abstract: true,%0A
|
ba913c7f5dd2336eb945094c663bd4f8e40be8c6 | fix typo | ChartGenerator/Repositories/UploadRepository.js | ChartGenerator/Repositories/UploadRepository.js | let Promise = require('bluebird')
let model = require('../connect')
let upload = function (id, table, path, field) {
return new Promise((resolve, reject) => {
model.knex(table + id).del().then(() => {
let query = 'alter table ' + table + id + ' auto_increament = 1'
return model.knex.raw(query)
}... | JavaScript | 0.999991 | @@ -256,23 +256,22 @@
+ '
-auto_increament
+AUTO_INCREMENT
= 1
|
65ecb1ba9f3f5bda65cfe2972d93a6f47b0e5f3d | add existsPlugin | bin/use.js | bin/use.js | var path = require('path');
var os = require('os');
var util = require('util');
var cp = require('child_process');
var fs = require('fs');
var colors = require('colors/safe');
var fse = require('fs-extra2');
var getPluginPaths = require('../lib/plugins/module-paths').getPaths;
/*eslint no-console: "off"*/
var pluginPa... | JavaScript | 0 | @@ -1302,21 +1302,22 @@
-check
+exists
Plugin:
chec
@@ -1312,21 +1312,22 @@
Plugin:
-check
+exists
Plugin%0A
@@ -1428,13 +1428,14 @@
ion
-check
+exists
Plug
@@ -1522,16 +1522,20 @@
r (var i
+ = 0
, len =
@@ -1703,21 +1703,34 @@
%7B%7D%0A %7D%0A
-%7D%0A
+ return false;%0A%7D%0A
%0Amodule.
|
c9741e1e6dd01c987bd8f139c8359984dc4340f4 | Switch to Bootstrap 4.4.1 (#4571) | scripts/benchmark-rule.js | scripts/benchmark-rule.js | 'use strict';
/* eslint-disable no-console */
const Benchmark = require('benchmark');
const chalk = require('chalk');
const got = require('got');
const normalizeRuleSettings = require('../lib/normalizeRuleSettings');
const postcss = require('postcss');
const requireRule = require('../lib/requireRule');
const ruleName... | JavaScript | 0.000002 | @@ -628,14 +628,17 @@
s://
-maxcdn
+stackpath
.boo
@@ -665,13 +665,13 @@
rap/
-3.3.6
+4.4.1
/css
|
8ca13d62c489727fba132c0d010ded17e6168a3b | Fix load plugin | GameCenterPlugin.js | GameCenterPlugin.js | (function(window) {
var GameCenter = function() {
if(!localStorage.getItem('GameCenterLoggedin')) {
cordova.exec("GameCenterPlugin.authenticateLocalPlayer");
}
};
GameCenter.prototype = {
authenticate: function() {
cordova.exec("GameCenterPlugin.authenticateLocalPlayer");
},
show... | JavaScript | 0.000001 | @@ -1052,16 +1052,56 @@
;%0A %7D;%0A%0A
+ cordova.addConstructor(function() %7B%0A
if(!wi
@@ -1135,16 +1135,18 @@
s = %7B%7D;%0A
+
window
@@ -1185,16 +1185,22 @@
nter();%0A
+ %7D);%0A
%7D)(windo
|
fab44a50e336593152d341b181be09b28c4e2eb1 | Update anti_spam.js | node_modules/discord-anti-spam/anti_spam.js | node_modules/discord-anti-spam/anti_spam.js | const authors = [];
var warned = [];
var banned = [];
var messagelog = [];
/**
* Add simple spam protection to your discord server.
* @param {Bot} bot - The discord.js CLient/bot
* @param {object} options - Optional (Custom configuarion options)
* @return {[type]} [description]
*/
module.exports = funct... | JavaScript | 0.000004 | @@ -291,16 +291,55 @@
on%5D%0A */%0A
+const Discord = require('discord.js');%0A
module.e
@@ -904,16 +904,595 @@
%7C%7C 20);
+%0A const muteRole = client.guilds.get(message.guild.id).roles.find('name', %60SendMessage%60);%0A const modlog = client.channels.find('name', 'mod-log');%0A %0A const embed = new Dis... |
35bc583975026ea6e8cf7b81f50a745d0447d1ed | Use mouseleave instead of mouseout | scripts/display_people.js | scripts/display_people.js | var areasToDefine = 10;
var dotMax = 0;
var dotMin = 0;
var dotAreas = [];
var showActualValue = function() {
var matrixDotElem = $(this);
var val = matrixDotElem.attr('value') || '0';
$('.display-count .count-value').text(val);
};
var hideActualValue = function() {
$('.display-count .count-value').text('-');... | JavaScript | 0.000001 | @@ -423,11 +423,13 @@
ouse
-out
+leave
(hid
|
05699f0e5f4b3fea5eb44ee20ef2d0e52b21a4bc | Use strict | openseadragon-annotations.js | openseadragon-annotations.js | (function ($) {
if (!$) { throw new Error('OpenSeadragon Annotations requires OpenSeadragon'); }
$.Viewer.prototype.initializeAnnotations = function (options) {
var options = $.extend({ viewer: this }, options);
this.addHandler('open', annotations.onOpen.bind(annotations));
this.annota... | JavaScript | 0.000083 | @@ -1,16 +1,31 @@
+'use strict';%0A%0A
(function ($) %7B%0A
|
bef994329ec6a7db0ee2c35ef13662ad508107a8 | Remove unneeded js; set standard time on scroll; fix spacing and quotes | source/javascripts/scripts.js | source/javascripts/scripts.js | function getUrlParameter(sParam) {
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam) {
return sParameterName[1];
}
}
}
... | JavaScript | 0 | @@ -4161,12 +4161,12 @@
ttr(
-%22id%22
+'id'
);%0A
@@ -4181,85 +4181,26 @@
$('
-.cycle-icon-row .step').removeClass('active');%0A $(%22
+a
%5Bhref=
-'#%22
+%22#'
+ id +
%22'%5D%22
@@ -4199,12 +4199,12 @@
d +
-%22'%5D%22
+'%22%5D'
).ad
@@ -4285,301 +4285,8 @@
con%0A
- var animateScroll = function... |
095b29e56f17c6c2b065e7efb62fa707cd0e35d0 | Rename `context` to `qualifier`. | prolific.logger/logger.js | prolific.logger/logger.js | var prolific = require('prolific')
function Logger (context) {
this.context = context
this._path = ('.' + context).split('.')
}
; [ 'error', 'warn', 'info', 'debug', 'trace' ].forEach(function (level) {
Logger.prototype[level] = function (name, properties) {
prolific.json(this._path, level, this.c... | JavaScript | 0.000073 | @@ -46,23 +46,25 @@
Logger (
-context
+qualifier
) %7B%0A
@@ -72,25 +72,29 @@
his.
-context = context
+qualifier = qualifier
%0A
@@ -114,23 +114,25 @@
('.' +
-context
+qualifier
).split(
@@ -320,23 +320,25 @@
l, this.
-context
+qualifier
, name,
|
a0f8b1e72bab4738006a790364ab66d24b8cd917 | fix template literals. | tests/functional_test.js | tests/functional_test.js | /* eslint no-undefined: 0 */
'use strict';
const path = require('path');
const assert = require('assert');
const https = require('https');
const walk = require('fs-walk');
const async = require('async');
const semver = require('semver');
const digest = require('../lib/helpers.js').sri.digest... | JavaScript | 0 | @@ -1896,17 +1896,17 @@
-'
+%60
Expected
@@ -1962,15 +1962,15 @@
oin(
-%22, %22)%7D'
+', ')%7D%60
);%0A%0A
|
9a29cf1bd0a38741d37e66168ba3c3a48d3e1f55 | Stop logging full websocket buffer to fix infinite loop | src/legacy/js/classes/_websocket.js | src/legacy/js/classes/_websocket.js | var websocket = {
socket: null,
retrySocketDelay: 1,
buffer: new Map(),
messageCounter: 0,
hasConnected: false,
reconnectAttempts: 0,
open: function() {
console.info("Trying to open websocket...");
websocket.socket = new WebSocket(location.protocol.replace(/^http/, 'ws') + l... | JavaScript | 0.000013 | @@ -2686,16 +2686,18 @@
+//
log.add(
|
d9a37d8dbbc30730c28194826e390bca24170e6d | 修改 context 参数类型 | src/base.js | src/base.js | define(function (require, exports, module) {
/**
* 基类
*
* @module Base
*/
'use strict';
var Class = require('class'),
Events = require('events');
var Aspect = require('./aspect');
/**
* 基类
*
* 实现 事件订阅 与 Aspect (AOP)
*
* @class Base
* @constructor
* @implements Events
* @implements Aspect
*
* @examp... | JavaScript | 0.000001 | @@ -1624,22 +1624,22 @@
@param %7B
-Object
+String
%7D %5Bconte
@@ -1765,18 +1765,43 @@
context
-%7C%7C
+? this.__options%5Bcontext%5D :
this.__
|
948f797a7129bcad17ed03de23c5f59c9ab182ae | clean up repetitive styles | GraphQLWebClient.js | GraphQLWebClient.js | import React from 'react';
import GraphQLQueryInput from './GraphQLQueryInput';
import GraphQLQueryResults from './GraphQLQueryResults';
var parentDivStyle = {
display: "flex",
flexWrap: "wrap"
};
var divStyle = {
margin: "auto",
width: "49%",
border: "1px dotted #ccc"
};
var divStyleQuerying = {
margin: "... | JavaScript | 0.000002 | @@ -305,44 +305,8 @@
= %7B
-%0A margin: %22auto%22,%0A width: %2249%25%22,%0A
bor
@@ -326,17 +326,17 @@
id #aaa%22
-%0A
+
%7D;%0Avar d
@@ -361,44 +361,8 @@
= %7B
-%0A margin: %22auto%22,%0A width: %2249%25%22,%0A
bor
@@ -382,20 +382,110 @@
id #000%22
-%0A
+
%7D;%0A
+Object.assign(divStyleQuerying, d... |
4b4f33d6e5bced25e2c883efe28ec354826503f7 | Annotate that Impromptu extends EventEmitter. | lib/impromptu.js | lib/impromptu.js | var EventEmitter = require('events').EventEmitter
var fs = require('fs')
var path = require('path')
var util = require('util')
var _ = require('underscore')
// Load our own package.json
var npmConfig = require('../package.json')
/**
* The base Impromptu class.
* @constructor
*/
function Impromptu() {
EventEmitt... | JavaScript | 0 | @@ -1,24 +1,18 @@
var
-E
+e
vent
-Emitter
+s
= requi
@@ -27,21 +27,8 @@
ts')
-.EventEmitter
%0Avar
@@ -255,16 +255,50 @@
tructor%0A
+ * @extends %7Bevents.EventEmitter%7D%0A
*/%0Afunc
@@ -318,16 +318,23 @@
u() %7B%0A
+events.
EventEmi
@@ -816,16 +816,23 @@
romptu,
+events.
EventEmi
|
c5fcba8fb7a34d4b9d3615dedd3f1191abd4e416 | fix the fetch question select option | scripts/fetch-question.js | scripts/fetch-question.js | const { writeFileSync, closeSync, openSync } = require('fs');
const { execSync } = require('child_process');
const { resolve } = require('path');
const { get } = require('request');
const { load } = require('cheerio');
const { prompt } = require('inquirer');
const { info } = require('better-console');
const { clearCon... | JavaScript | 0.999866 | @@ -594,18 +594,15 @@
%60../
-submission
+problem
s/*$
@@ -607,16 +607,22 @@
*$%7Bslug%7D
+/index
.js%60);%0A%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.