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 |
|---|---|---|---|---|---|---|---|
c386ca8d113a51292a4e98d3fb0a29b46e4a63ef | change format to follow the same as other examples | examples/infrared.js | examples/infrared.js | // Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/
/*********************************************
This infrared module example transmits the
power signal sequence of an Insignia brand
television every three seconds, while also
listening for (and logging) any incomi... | JavaScript | 0.000002 | @@ -574,17 +574,18 @@
ion() %7B%0A
-%09
+
if (!err
@@ -588,18 +588,20 @@
!err) %7B%0A
-%09%09
+
console.
@@ -625,18 +625,20 @@
IR!%22);%0A
-%09%09
+
// Start
@@ -675,18 +675,20 @@
seconds%0A
-%09%09
+
setInter
@@ -704,19 +704,22 @@
ion() %7B%0A
-%09%09%09
+
// Make
@@ -774,19 +774,22 @@
... |
09d989a6ed1d3fb1641ec63e5c92e4f212882406 | Update draft_button.spec.js | web-ui/test/spec/mail_view/ui/draft_button.spec.js | web-ui/test/spec/mail_view/ui/draft_button.spec.js | /* global Pixelated */
describeComponent('mail_view/ui/draft_button', function(){
'use strict';
describe('draft save button', function(){
beforeEach(function(){
this.setupComponent('<button></button>');
});
describe('after initialize', function(){
it('should be enabled', function(){
... | JavaScript | 0 | @@ -282,26 +282,27 @@
('should be
-en
+dis
abled', func
|
46e9cc6580872861d2780b44be61efeefc6780ab | Remove return address stuff from the frida script. | apitrace.js | apitrace.js | "use strict";
const beginEventAddr = Module.findExportByName("apitrace-d3d9.dll", "D3DPERF_BeginEvent");
const endEventAddr = Module.findExportByName("apitrace-d3d9.dll", "D3DPERF_EndEvent");
const D3DPERF_BeginEvent = new NativeFunction(beginEventAddr, "int", ["uint32", "pointer"], "stdcall");
const D3DPERF_EndEvent... | JavaScript | 0 | @@ -804,228 +804,8 @@
%7D%0A%0A
- if (returnAddr.compare(ffviiDllBase) %3E 0) %7B%0A s += %22) (return to af3dn+0x%22 + returnAddr.sub(ffviiDllBase).toString(16) + %22)%22;%0A %7D else %7B%0A s += %22) (return to 0x%22 + returnAddr.toString(16) + %22)%22;%0A %7D%0A%0A
|
9241bbbff54d5f465f498c5d06c5205f48139d34 | Update xss-shrapnel.js | xss-shrapnel.js | xss-shrapnel.js | // ==UserScript==
// @name XSS Shrapnel
// @namespace *
// @description aaa"bbb'ccc<ddd>zzz
// @include *
// @version 2.4
// @grant none
// ==/UserScript==
var bForceUrlEncoded = 1
var bFillHiddenForms = 0
var iPayload = 0
var aPayloads = ['aaa"bbb\'{{3*3}}<ddd>zzz',
'aaa"{{3*3}}\'zzz',
... | JavaScript | 0 | @@ -130,17 +130,17 @@
n 2.
-4
+5
%0A// @gra
|
8235559e7e48c72ea1844b8ecb9d3d7eb0a5c298 | Configure mongodb URL | config/db.js | config/db.js | var mongoose = require("mongoose");
mongoose.connect("mongodb://localhost/whatsup", function () {
console.log("mongodb connected");
});
module.exports = mongoose;
| JavaScript | 0.000001 | @@ -34,25 +34,46 @@
);%0A%0A
-mongoose.connect(
+var url = process.env.MONGOLAB_URI %7C%7C
%22mon
@@ -97,16 +97,39 @@
whatsup%22
+;%0A%0Amongoose.connect(url
, functi
|
63d689f272818a184c54759d5806f66324f5edc8 | Add delete vertex property to ignore list | web/war/src/main/webapp/js/data/withAjaxFilters.js | web/war/src/main/webapp/js/data/withAjaxFilters.js |
define([], function() {
var // keypaths to vertices objects in ajax responses
VERTICES_RESPONSE_KEYPATHS = ['vertices', 'data.vertices'],
IGNORE_NO_CONVERTER_FOUND_REGEXS = [
/^user/,
/^configuration$/,
/^workspaces?$/,
/^workspace\?/,
/... | JavaScript | 0 | @@ -781,24 +781,57 @@
ex%5C/audit/,%0A
+ /%5Evertex%5C/property/,%0A
|
99f939bf5fddfad5f6ce314aa0303db21dc81316 | Remove trailing comma | examples/js/index.js | examples/js/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import {
Appear,
Box,
CodePane,
CodeSpan,
Deck,
FlexBox,
FullScreen,
Grid,
Heading,
Image,
ListItem,
Markdown,
Notes,
OrderedList,
Progress,
Slide,
SpectacleLogo,
Stepper,
Text,
indentNormalizer,
} from 'spectacle';
/... | JavaScript | 0.999402 | @@ -289,17 +289,16 @@
rmalizer
-,
%0A%7D from
|
7ac148b9905bf2e8e9b1bd149d4ac1a8040013a6 | add ro language | app/i18n.js | app/i18n.js | /**
* i18n.js
*
* This will setup the i18n language files and locale data for your app.
*
*/
import { addLocaleData } from 'react-intl'
import bg from 'react-intl/locale-data/bg'
import en from 'react-intl/locale-data/en'
import nl from 'react-intl/locale-data/nl'
import es from 'react-intl/locale-data/es'
import ... | JavaScript | 0.999994 | @@ -650,16 +650,59 @@
ata/gl'%0A
+import ro from 'react-intl/locale-data/ro'%0A
import r
@@ -736,16 +736,16 @@
ata/ru'%0A
-
import a
@@ -1685,24 +1685,83 @@
ns/gl.json'%0A
+import roTranslationMessages from './translations/ro.json'%0A
import ruTra
@@ -2220,16 +2220,25 @@
...gl,%0A
+ ...ro,%0A
...ru,
@@ -354... |
abe48517f01b6f02ff6e592d31697bca682487b9 | update HuePicker | src/HuePicker/HuePicker.js | src/HuePicker/HuePicker.js | /**
* @file HuePicker component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Event from '../_vendors/Event';
import Dom from '../_vendors/Dom';
import Valid from '../_vendors/Valid';
imp... | JavaScript | 0 | @@ -1619,45 +1619,8 @@
nst
-%7BscrollEl%7D = this.props,%0A
%7Blef
@@ -1635,19 +1635,8 @@
.get
-TotalScroll
Offs
@@ -1661,18 +1661,8 @@
arEl
-, scrollEl
),%0A
@@ -3825,41 +3825,8 @@
r,%0A%0A
- scrollEl: PropTypes.object,%0A%0A
@@ -3898,37 +3898,8 @@
e: 0
-,%0A scrollEl: document.body
... |
b58caa6f7e5fa785f2fc36e6f397c3dbdc6f2809 | Bump release URL | app/main.js | app/main.js | 'use strict';
var app = require('app');
var BrowserWindow = require('browser-window');
var Menu = require("menu");
var env = require('./vendor/electron_boilerplate/env_config');
var menuTemplate = require('./menu_template')(app);
var windowStateKeeper = require('./vendor/electron_boilerplate/window_state');
var shell =... | JavaScript | 0 | @@ -2108,26 +2108,20 @@
s://
-obscure-fjord-9578
+slacks-hacks
.her
|
9640e7a3517f95e59cbf4c9f3fe07900a1d52a20 | Add a mention that imagemagick is needed for HEIC images | src/cli/dependencies.js | src/cli/dependencies.js | const chalk = require('chalk')
const commandExists = require('command-exists')
const warn = require('debug')('thumbsup:warn')
const messages = require('./messages')
const BINARIES = [
{
// required to build the database
mandatory: true,
cmd: 'exiftool',
url: 'https://www.sno.phy.queensu.ca/~phil/exif... | JavaScript | 0.000007 | @@ -506,32 +506,212 @@
sg: ''%0A %7D,%0A %7B%0A
+ // optional to process HEIC files%0A mandatory: false,%0A cmd: 'magick',%0A url: 'https://imagemagick.org',%0A msg: 'You will not be able to process HEIC images.'%0A %7D,%0A %7B%0A
// optional
|
1cb5d6ac2ac12c59b30419ad495c99039cfb062e | Remove extraneous tool tip. | apps/dg/components/guide/guide_configuration_view.js | apps/dg/components/guide/guide_configuration_view.js | // ==========================================================================
// DG.GuideConfigurationView
//
// Implements a modal dialog used to configure the Guide menu in the tool shelf
//
// Authors: William Finzer
//
// Copyright ©2014 Concord Consortium
//
// Licensed under the Apa... | JavaScript | 0 | @@ -3667,29 +3667,8 @@
ll,%0A
- toolTip: '',%0A
|
0c9a9ce8d2f757026ed07e29da14656a5966e99f | Change tooltip format | anaclock.js | anaclock.js | 'use strict';
var conf = {
"hand": {
"color": {
"r": 0,
"g": 0,
"b": 0
}
},
"background": {
"shape": "square",
"color": {
"r": 0,
"g": 0,
"b": 0
}
}
};
function drawClock(items) {
var canvas = document.getElementById('canvas');
var ctx = canvas.getCo... | JavaScript | 0.000001 | @@ -430,35 +430,106 @@
;%0A
-if (h %3E 12)
+var rad = 0;%0A%0A var str_mon = d.getMonth() + 1;%0A var str_d = d.getDate();%0A var str_
h
--
=
-12
+h
;%0A var
rad
@@ -524,25 +524,172 @@
;%0A var
-rad = 0;%0A
+str_m = m;%0A if (str_mon %3C 10) str_mon = %220%22 + str_mon;%0A if (str_d %3C 10) str_d =... |
160bcf30ce98025cf86ec15c35aab8b019e9f9a3 | disable hw acceleration | app/main.js | app/main.js | const electron = require('electron');
const path = require('path');
const { app, BrowserWindow } = electron;
// simple parameters initialization
const electronConfig = {
URL_LAUNCHER_TOUCH: process.env.URL_LAUNCHER_TOUCH === '1' ? 1 : 0,
URL_LAUNCHER_TOUCH_SIMULATE: process.env.URL_LAUNCHER_TOUCH_SIMULATE === '1'... | JavaScript | 0.000001 | @@ -1095,16 +1095,50 @@
: 0,%0A%7D;%0A
+app.disableHardwareAcceleration();
%0A// enab
|
9ed7f7068fa41cefecca4140e97c95c58146c9af | Remove tray when appWindow closes | app/main.js | app/main.js | 'use strict';
var app = require('app');
var ipc = require('ipc');
var path = require('path');
var BrowserWindow = require('browser-window');
var env = require('./vendor/electron_boilerplate/env_config');
var devHelper = require('./vendor/electron_boilerplate/dev_helper');
var windowStateKeeper = require('./vendor/elec... | JavaScript | 0.000001 | @@ -809,28 +809,8 @@
) %7B%0A
- tray.destroy();%0A
@@ -2501,24 +2501,48 @@
App = true;%0A
+ tray.destroy();%0A
%7D);%0A%0A
|
4266c50b115cbb59d5f283732e42c3ac95bed715 | Enable retries in demo | demo/demo.js | demo/demo.js | /* global tus */
/* eslint no-console: 0 */
var upload = null;
var stopBtn = document.querySelector("#stop-btn");
var resumeCheckbox = document.querySelector("#resume");
var input = document.querySelector("input[type=file]");
var progress = document.querySelector(".progress");
var progressBar = progress.querySelector(... | JavaScript | 0 | @@ -1324,16 +1324,50 @@
nkSize,%0A
+ retryDelays: %5B0, 1000, 2000%5D,%0A
meta
|
56d883b592ee663dda0100cd49b5a5166bb081a1 | change order of args | resources/public/js/Sprite.js | resources/public/js/Sprite.js | function Sprite(size, position, animationSpeed, frames) {
this.size = size; // in "pixels" per tile
this.position = position; // 2d Vector
this.currentFrame = 0;
this.tick = 0;
this.frames = frames || [];
this.cache = {};
this.animationDelta = 0;
this.animationSpeed = animationSpeed || 100;
}
// global... | JavaScript | 0.000069 | @@ -24,16 +24,24 @@
osition,
+ frames,
animati
@@ -47,24 +47,16 @@
ionSpeed
-, frames
) %7B%0A th
|
a367fb8a98d1f9242a755a9a6f7c993f333b1c0e | remove path and exit to fix bug with windows squirell launch | app/main.js | app/main.js | /* eslint-env node */
const electron = require("electron")
const {app, BrowserWindow, ipcMain, Menu, shell} = electron
const isDev = require("electron-is-dev")
const { URL } = require("url")
const defaultMenu = require("electron-default-menu")
const updater = require("./updater")
const logger = require("./logger")
cons... | JavaScript | 0 | @@ -312,37 +312,8 @@
er%22)
-%0Aconst path = require(%22path%22)
%0A%0Aco
@@ -519,26 +519,26 @@
rtup%22)) app.
-qu
+ex
it()%0A%0Alogger
|
331f7603a00d8d055105eb9d8f11a70ad93fd739 | Remove some debug info | app/main.js | app/main.js | 'use strict';
var app = require('app');
var BrowserWindow = require('browser-window');
var Menu = require("menu");
var env = require('./vendor/electron_boilerplate/env_config');
var menuTemplate = require('./menu_template')(app);
var windowStateKeeper = require('./vendor/electron_boilerplate/window_state');
var shell =... | JavaScript | 0.000001 | @@ -1542,41 +1542,8 @@
);%0A%0A
- //console.log(menuTemplate);%0A
@@ -1596,32 +1596,8 @@
e);%0A
- console.log(built);%0A
@@ -1641,66 +1641,8 @@
lt);
-%0A console.log(%22menu set result%22);%0A console.log(res);
%0A%0A
@@ -1930,57 +1930,8 @@
();%0A
- console.log(%22title changed to: %... |
19e39b08feb29499ec21671aefcb65fae829b48f | Extend HTTP basic auth example | samples/http_basic_auth.js | samples/http_basic_auth.js | import http from "k6/http";
import { check } from "k6";
export default function() {
// Passing username and password as part of URL will authenticate using HTTP Basic Auth
let res = http.get("http://user:passwd@httpbin.org/basic-auth/user/passwd");
// Verify response
check(res, {
"status is 20... | JavaScript | 0.000002 | @@ -1,12 +1,48 @@
+import encoding from %22k6/encoding%22;%0A
import http
@@ -288,16 +288,481 @@
swd%22);%0A%0A
+ // Verify response%0A check(res, %7B%0A %22status is 200%22: (r) =%3E r.status === 200,%0A %22is authenticated%22: (r) =%3E r.json().authenticated === true,%0A %22is correct us... |
055252448cf6a541ad9284114933ebd2074a037f | update icon path to match repo contents | app/main.js | app/main.js | 'use strict';
var app = require('app');
var ipc = require('ipc');
var path = require('path');
var BrowserWindow = require('browser-window');
var env = require('./vendor/electron_boilerplate/env_config');
var devHelper = require('./vendor/electron_boilerplate/dev_helper');
var windowStateKeeper = require('./vendor/elec... | JavaScript | 0 | @@ -1342,25 +1342,12 @@
', '
-tray', 'icon-tray
+icon
.png
|
a6c1deb9dae8cfb7ea6ec6e732c5f945bcec1521 | Use webId var for focus_webview | app/main.js | app/main.js | const { app, BrowserWindow, globalShortcut, ipcMain, Menu } = require('electron')
const windowStateKeeper = require('electron-window-state');
let mainWindow;
// Main app menu
const name = app.getName();
const webviewId = 'overcast_webview';
const appWebsite = 'https://github.com/vitorgalvao/fog/';
const template = [
... | JavaScript | 0 | @@ -2184,32 +2184,33 @@
ntById(%22
-overcast_
+' +
webview
+Id + '
%22).focus
|
5db3b46e8edcaecccc3e3dd6ab2568bbe4d1f2fb | Fix var error in fnSetFilteringDelay - just a warning, but good to tidy up | api/fnSetFilteringDelay.js | api/fnSetFilteringDelay.js | /**
* Enables filtration delay for keeping the browser more responsive while
* searching for a longer keyword.
* @name fnSetFilteringDelay
* @anchor fnSetFilteringDelay
* @author <a href="http://www.zygimantas.com/">Zygimantas Berziunas</a>, <a href="http://www.sprymedia.co.uk/">Allan Jardine</a> and <i>vex</i... | JavaScript | 0 | @@ -532,62 +532,33 @@
) %7B%0A
- var%0A _that = this,%0A iDelay = (typeof
+%09var _that = this;%0A%0A%09if (
iDe
@@ -563,18 +563,18 @@
Delay ==
+=
-'
undefine
@@ -578,37 +578,36 @@
ined
-') ? 250 : iDelay;%0A %0A
+ ) %7B%0A%09%09iDelay = 250;%0A%09%7D%0A%09 %0A%09
this
@@ -630,24 +630... |
0d609e8168c8fac996ab0198941f2d550d35ff6c | use enableEmails flag to determine if emails should be sent. | api/src/services/emails.js | api/src/services/emails.js | import { disallow } from 'feathers-hooks-common'
import Email from 'email-templates'
import path from 'path'
import inky from 'inky'
import nunjucks from 'nunjucks'
import nodemailer from 'nodemailer'
import sparkPostTransport from 'nodemailer-sparkpost-transport'
import glob from 'glob'
import filterAllowedFields from... | JavaScript | 0 | @@ -1314,16 +1314,27 @@
Emails')
+ === 'true'
) %7B%0A
@@ -1661,17 +1661,16 @@
%7C%7C
-!
app.get(
%22ena
@@ -1665,17 +1665,17 @@
app.get(
-%22
+'
enableEm
@@ -1682,10 +1682,21 @@
ails
-%22)
+') !== 'true'
) %7B%0A
|
e24d7a346ce789b7121800498e786721f09614b4 | Enable auto-refresh when inviting a participant to an inventory | app/assets/javascripts/client/inventories/InviteInventoryUserCtrl.js | app/assets/javascripts/client/inventories/InviteInventoryUserCtrl.js | (function() {
'use strict';
angular.module('PDRClient')
.controller('InviteInventoryUserCtrl', InviteInventoryUserCtrl);
InviteInventoryUserCtrl.$inject = [
'$scope',
'$stateParams',
'InventoryInvitation'
];
function InviteInventoryUserCtrl($scope, $stateParams, InventoryInvitation) {
... | JavaScript | 0 | @@ -759,16 +759,65 @@
sent');%0A
+ $scope.$emit('update_participants');%0A
|
6ad7a0008bf0125b4aca4d60ed872adabe3d4508 | Fix pool disconnecting | app/pool.js | app/pool.js | // TODO: error handling
Pool = function(poolInfo) {
this.id = poolInfo.id;
this.url = poolInfo.url;
this.port = poolInfo.port;
this.username = poolInfo.username;
this.password = poolInfo.password;
this.miner = miner;
this._SUBSCRIBE = {
id: 1,
method: "mining.subscribe",
params: ["avalon-nano-app"]
};
t... | JavaScript | 0 | @@ -775,16 +775,53 @@
ion() %7B%0A
+%09if (this.socketId !== undefined) %7B%0A%09
%09chrome.
@@ -860,20 +860,21 @@
etId);%0A%09
-pool
+%09this
.log(%22in
@@ -896,16 +896,19 @@
ted.%22);%0A
+%09%7D%0A
%7D;%0A%0APool
|
c8f2dc71306d807805fa9a23b28bcc93bc7619ec | update class to className (#877) | src/components/Breadcrumb/Breadcrumb.Skeleton.js | src/components/Breadcrumb/Breadcrumb.Skeleton.js | import React from 'react';
export default class BreadcrumbSkeleton extends React.Component {
render() {
const item = (
<div className="bx--breadcrumb-item">
<a href="/#" class="bx--link">
</a>
</div>
);
return (
<div className="bx--breadcrumb bx--skeleto... | JavaScript | 0 | @@ -189,16 +189,20 @@
#%22 class
+Name
=%22bx--li
|
fe59143d9fecc328c87f4920789e3a5432bf0e71 | Modify announcements data | app/javascript/mastodon/features/compose/components/announcements.js | app/javascript/mastodon/features/compose/components/announcements.js | import React from 'react';
import Immutable from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from '../../../components/icon_button';
const storageKey = 'announcements_dismissed';
class Announcements extends React.PureComponent {
static propTypes = {
account: Immut... | JavaScript | 0.000001 | @@ -1160,16 +1160,290 @@
%5D,%0A
+ %7D,%0A %7B%0A id: 7,%0A icon: '/announcements/info_03.png',%0A body: '%E3%82%84%E3%82%8B%E3%81%93%E3%81%A8%E8%BF%B7%E3%81%A3%E3%81%9F%E3%82%89%E3%81%BE%E3%81%9A%E7%A2%BA%E8%AA%8D%EF%BC%81%E5%A4%8F%E3%81%AE%E5%8D%8A%E9%A1%8D%E7%89%B9%E9%9B%86',%0A ... |
5cda20965c86fde4dc6dee86393e27a6128db527 | Fix ESLint errors in FormSummary | src/components/form/form-summary/form-summary.js | src/components/form/form-summary/form-summary.js | import React from 'react';
import I18n from 'i18n-js';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import tagComponent from '../../../utils/helpers/tags';
import Icon from './../../icon';
/**
* Adds an 's' to pluralise (keys will always be error or warning)
*
* @param {string} key
* @r... | JavaScript | 0 | @@ -2755,16 +2755,55 @@
key) %7D %7D
+ // eslint-disable-line react/no-danger
%0A
@@ -3335,32 +3335,82 @@
ypes.oneOfType(%5B
+ // eslint-disable-line react/no-unused-prop-types
%0A PropTypes.s
@@ -3476,16 +3476,66 @@
OfType(%5B
+ // eslint-disable-line react/no-unused-prop-types
%0A Pro
|
fefb289a03d126bb2b3be4eee32337cea370bc35 | version 1.17 autoscroll with 7 access per day | I/autoscroll.user.js | I/autoscroll.user.js | // ==UserScript==
// @name autoscroll
// @namespace autoscroll
// @version 1.16
// @description autoscroller to be used with https://facebook.tracking.exposed, This userscript works with TamperMoneky extension.
// @author Claudio Agosti @_vecna
// @match https://www.facebook.com/*
// @conn... | JavaScript | 0 | @@ -87,17 +87,17 @@
1.1
-6
+7
%0A// @des
@@ -686,25 +686,77 @@
%221
-6:01%22,%0A %2223:55
+0:01%22,%0A %2212:01%22,%0A %2214:01%22,%0A %2216:01%22,%0A %2218:01%22,%0A %2220:01
%22%0A%5D;
|
74d878af88fca19ddbfb9e1a7309f439ca359bd5 | Add --verbose to tail.js | app/tail.js | app/tail.js | #!/usr/bin/env node
/**
* `tail` source files listed in app/config.js.
*
* Usage:
* - To use config/config.js source list: app/tail.js
* - To use external source list: app/tail.js path/to/config.js
*
* process.send() is occasionally used to coordinate flow with test scripts.
*/
'use strict';
(function() {
... | JavaScript | 0.000018 | @@ -538,15 +538,37 @@
iet'
-, fal
+)%0A .option('-v, --verbo
se
+'
)%0A
@@ -1624,16 +1624,131 @@
ength;%0A%0A
+ if (program.verbose) %7B%0A monitor.log('data=%5B%25s%5D length=%7B%25d%5D', data.toString(), lines.length);%0A %7D%0A%0A
pa
|
a760735e8ba3b55cb96063c56de83a8a89132d62 | fix missing .cache | src/commands/Command.js | src/commands/Command.js | const Commando = require('discord.js-commando')
module.exports =
class Command extends Commando.Command {
constructor (client, info) {
info.group = 'rover'
info.guildOnly = info.guildOnly == null ? true : info.guildOnly
info.memberName = info.name
info.argsPromptLimit = 1
super(client, info)
... | JavaScript | 0.000009 | @@ -618,16 +618,22 @@
r.roles.
+cache.
find(rol
|
3ad4e6ee6064f18e42ce6df8631653b235d7c058 | Fix work count bug | app/util.js | app/util.js | const sanitizeHtml = require('sanitize-html')
const sanitizeOpts = require('./sanitizeOpts')
const loadingImg = require('./loadingImg')
const equationImageSelector = 'img[src^="/math.svg"]'
const SCREENSHOT_LIMIT_ERROR = () => new Bacon.Error('Screenshot limit reached!')
module.exports = {
isKey,
isCtrlKey,
... | JavaScript | 0.000001 | @@ -2020,14 +2020,24 @@
ent.
-text()
+get(0).innerText
%0A
|
00adc59ba957979755264ef6c96af87104ff402b | Update joshuaSprite.js | javascript/joshuaSprite.js | javascript/joshuaSprite.js | /*
Up : 38
Down : 40
Right : 39
Left : 37
Enter : 13
SpaceBar : 32
Shift : 16
*/
var walking;
$(document).keydown(function(e) {
//var element = $(".joshua");
if(e.keyCode == 32) {
//alert("hi");
$(".joshua").css("width", "80px");
$(".joshua").css("background-image", "url(../image/joshua-sprite-walk.png)";
$... | JavaScript | 0 | @@ -308,16 +308,17 @@
lk.png)%22
+)
;%0A%09%09$(%22.
|
78d7477f0462d6ff6bc4582c464b4b2a9e072efb | Fix miscellaneous linting errors. | colorgame.js | colorgame.js | var closeColorRange = 60,
colorRange = "Full",
colors,
MAX_RGB = 255,
messageDisplay = document.querySelector("#message"),
modeButtons = document.querySelectorAll(".modeButton"),
modeElement = document.querySelector(".mode"),
numOfGuesses = 6,
possibleGuesses = document.querySelectorAll(... | JavaScript | 0.000047 | @@ -778,24 +778,36 @@
rs(color) %7B%0A
+ var i;%0A%0A
for (var
@@ -795,36 +795,32 @@
ar i;%0A%0A for (
-var
i = 0; i %3C possi
@@ -2095,16 +2095,17 @@
X_RGB);%0A
+%0A
retu
@@ -2633,18 +2633,10 @@
%5Bi%5D
-= rgb%5Bi%5D
-
+=
var
@@ -2682,18 +2682,10 @@
%5Bi%5D
-= rgb%5Bi%5D
+
+=
var
@@ -2... |
a2005517f337c0f9d619bd5d3a7570570ba8d07f | fix doc error | src/commons/appUtils.js | src/commons/appUtils.js | exports.checkUser = async function checkUser(app) {
let uid;
if (app.auth.isAuthenticated()) {
app.authenticated = true; // Logout element is reliant upon a local var;
try {
uid = app.auth.getTokenPayload().sub;
} catch (e) {
app.logout();
return Promise.resolve('bad token');
}
... | JavaScript | 0.000001 | @@ -1410,16 +1410,21 @@
nP = doc
+ument
.getElem
|
18b648a7b0fe8c222c5dcd322b6f1c5c1d86a680 | Add Search placeholder | lib/gollum/frontend/public/javascript/gollum.js | lib/gollum/frontend/public/javascript/gollum.js | // ua
$(document).ready(function() {
// ua detection
if ($.browser.mozilla) {
$('body').addClass('ff');
} else if ($.browser.webkit) {
$('body').addClass('webkit');
} else if ($.browser.msie) {
$('body').addClass('ie');
if ($.browser.version == "7.0") {
$('body').addClass('ie7');
} ... | JavaScript | 0 | @@ -1646,24 +1646,84 @@
).length) %7B%0A
+ $.GollumPlaceholder.add($('#searchbar #search-query'));%0A
$('#sear
@@ -1844,24 +1844,180 @@
();%0A %7D);%0A
+ $('#searchbar #search-form').submit(function(e) %7B%0A $.GollumPlaceholder.clearAll();%0A $(this).unbind('submit');%0A $(this).submit()... |
8e3fdc1e5c1311428810dc40d2893b4b84536d7a | Update growlNotification directive to support options passed in as object | src/growlNotifications/directives/growlNotification.js | src/growlNotifications/directives/growlNotification.js | angular.module('growlNotifications.directives')
.directive('growlNotification', ['growlNotifications', '$sce', '$interpolate', function(growlNotifications, $sce, $interpolate){
return {
restrict: 'AE',
replace: true,
template: '',
transclude: true,
... | JavaScript | 0 | @@ -171,24 +171,134 @@
erpolate)%7B%0A%0A
+ var defaults = %7B%0A message: '',%0A type: 'info',%0A ttl: 5000%0A %7D;%0A%0A
retu
@@ -481,24 +481,124 @@
scludeFn)%7B%0A%0A
+ var options = angular.extend(%7B%7D, defaults, scope.$eval(iAttrs.growlNoti... |
29029298fe6d74c4840a631427226e7de5af8d4a | Drop table if exists | script/create-test-tables.js | script/create-test-tables.js | var args = require(__dirname + '/../test/cli');
var pg = require(__dirname + '/../lib');
var people = [
{name: 'Aaron', age: 10},
{name: 'Brian', age: 20},
{name: 'Chris', age: 30},
{name: 'David', age: 40},
{name: 'Elvis', age: 50},
{name: 'Frank', age: 60},
{name: 'Grace', age: 70}... | JavaScript | 0.000002 | @@ -1167,24 +1167,34 @@
%22drop table
+if exists
person%22);%0A
|
51f81416ce2ae116df2b525d9350332b4cb69492 | Fix stylesheet tag | built-in.js | built-in.js | 'use strict';
const mahabhuta = require('./index');
exports.mahabhuta = new mahabhuta.MahafuncArray("mahabhuta built-in", {});
class SiteVerification extends mahabhuta.CustomElement {
get elementName() { return "site-verification"; }
process($element, metadata, dirty) {
return new Promise((resolve, reject)... | JavaScript | 0.002424 | @@ -2607,39 +2607,32 @@
heet%22 type=%22
-application/xml
+text/css
%22 href=%22$%7Bhr
@@ -2733,31 +2733,24 @@
%22 type=%22
-application/xml
+text/css
%22 href=%22
@@ -3538,16 +3538,1094 @@
ta());%0A%0A
+class Partial extends mahabhuta.CustomElement %7B%0A%09get elementName() %7B return %22partially%22; %7D%0A%09p... |
fc1fe8b094039e26a3c321c202e4a431361e0a62 | Correct contenteditable behaviour | src/main/resources/js/tdapp_controller_main.js | src/main/resources/js/tdapp_controller_main.js | /*
tdapp_controller_main.js
*/
var tdapp = require('./tdapp');
tdapp.controller("MainCtrl",function($scope,$timeout,$interval,$http,$cookies,$window,appdata,TDMgr,Backend,Autologin){
// Injections
Autologin.setScope($scope);
Backend.setScope($scope);
// General Done Filter
$scope.showdone = false;
$scop... | JavaScript | 0.00004 | @@ -2510,16 +2510,116 @@
d'+id);%0A
+%09%09%09// Correct contenteditable behaviour%0A%09%09%09currentTodo.html(currentTodo.html().replace('%3Cbr%3E',''));%0A
%09%09%09curre
|
974baa407735a37844fb849810594081815abe3a | Refactor tests for the SettingsEdit component. | assets/js/modules/analytics/components/settings/SettingsEdit.test.js | assets/js/modules/analytics/components/settings/SettingsEdit.test.js | /**
* Analytics Settings Edit component tests.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licens... | JavaScript | 0 | @@ -843,88 +843,8 @@
s';%0A
-import %7B CORE_SITE %7D from '../../../../googlesitekit/datastore/site/constants';%0A
impo
@@ -1030,42 +1030,220 @@
_';%0A
-%0Adescribe( 'SettingsEdit', () =%3E %7B
+import %7B provideSiteInfo %7D from '../../../../../../tests/js/utils';%0A%0Adescribe( 'SettingsEdit', () =%3E %7B%0A%09l... |
aa3ce1a0b98a6197166facaa1f0670e3b5344a78 | Fix success and error callbacks. | job_runner/apps/job_runner/static/job_runner/js/models.new.js | job_runner/apps/job_runner/static/job_runner/js/models.new.js | /*
Get all objects from a paginated resource.
*/
angular.module('getAll', []).factory('getAll', function() {
var forEach = angular.forEach;
var extend = angular.extend;
var getAll = function(output_list, model, offset, params, success, error) {
var items = model.get(extend({}, params, {offset: ... | JavaScript | 0 | @@ -320,32 +320,16 @@
offset%7D
-, success, error
), funct
@@ -598,32 +598,80 @@
uccess, error);%0A
+ %7D else %7B%0A success();%0A
%7D%0A
@@ -673,24 +673,31 @@
%7D%0A %7D
+, error
);%0A %7D;%0A%0A
@@ -1463,32 +1463,39 @@
params, success
+, error
);%0A ... |
aeee48e40baef4d22abd0c06399032e6197e0cfa | align host and port in settings | ui/mods/connect_buttons/settings.js | ui/mods/connect_buttons/settings.js | (function() {
var numberOfButtons = 3
var list = []
for (var i = 1;i <= numberOfButtons;i++) {
list.push('server.connect_to_host_'+i)
api.settings.definitions.server.settings['connect_to_host_' + i] = {
title: 'host ' + i,
type: 'text',
group: i.toString(),
default: ''
}
l... | JavaScript | 0 | @@ -39,20 +39,22 @@
3%0A var
-list
+groups
= %5B%5D%0A%0A
@@ -101,51 +101,8 @@
) %7B%0A
- list.push('server.connect_to_host_'+i)%0A
@@ -271,51 +271,8 @@
%7D%0A
- list.push('server.connect_to_port_'+i)%0A
@@ -779,80 +779,249 @@
ting
-List = list.map(function(s) %7B%0A return model.setting... |
f3d69e05655c3daad3da2e24a2f50389b1e9a7ca | Set overflow CSS setting for ideas section | app/components/TripPage.js | app/components/TripPage.js | 'use strict';
require('../stylesheets/react-spinner.css');
import React, { Component, PropTypes } from 'react';
import { Button } from 'react-bootstrap';
import Spinner from './Spinner';
import TripIdeas from '../containers/TripIdeas';
import TripMap from '../containers/TripMap';
import { viewTripsPage } from '../act... | JavaScript | 0 | @@ -1838,16 +1838,60 @@
'left',%0A
+ height: '100%25',%0A overflow: 'scroll',%0A
padd
@@ -1894,25 +1894,25 @@
padding: '0
-2
+3
0 0',%0A wi
@@ -2092,31 +2092,8 @@
400
-,%0A padding: '0 20 0'
%0A %7D
|
0488ce417f1e1828d997f376baccdbada6c3e82a | Add complicated way of adding to existing data points | client.js | client.js | var legend = document.getElementById('legend');
var lastUpdated;
var chart;
var table;
function init() {
chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
table = new google.visualization.DataTable();
table.addColumn('number', 'Lat');
table.addColumn('number', 'Lng');
table.add... | JavaScript | 0.000096 | @@ -335,20 +335,31 @@
', '
-Pageviews');
+Commitments'); // Color
%0A t
@@ -384,30 +384,36 @@
mber', '
-Commitments');
+Pageviews'); // Size
%0A refre
@@ -598,22 +598,63 @@
-table.ad
+var lookup = table.getFiltere
dRow
+s
(%5B
+%7Bcolumn: 0, value:
data
@@ -671,17 +671,37 @@
nates%5B0%5D
+%7D
,
+ %7Bc... |
6ffe80fb7b2dd3ee20b27bd44023dde56fb063fa | Fix lint errors | lib/node_modules/@stdlib/utils/find/lib/find.js | lib/node_modules/@stdlib/utils/find/lib/find.js | 'use strict';
// MODULES //
var isFunction = require( '@stdlib/utils/is-function' );
var isInteger = require( '@stdlib/utils/is-integer' ).isPrimitive;
var isObject = require( '@stdlib/utils/is-plain-object' );
var isString = require( '@stdlib/utils/is-string' ).isPrimitive;
var isArrayLike = require( '@stdlib/utils/... | JavaScript | 0.000396 | @@ -2506,16 +2506,52 @@
clbk ) %7B
+ // eslint-disable-line no-redeclare
%0A%09var re
@@ -4121,16 +4121,32 @@
;%0A%09%09%09%09%7D%0A
+%09%09%09%09count += 1;%0A
%09%09%09%09if (
@@ -4138,34 +4138,32 @@
+= 1;%0A%09%09%09%09if (
-++
count === k ) %7B%0A
@@ -4477,24 +4477,39 @@
);%0A%09%09%09%7D%0A
+%09%09%09coun... |
5f9003668d9e371567bb1428a45891722bd8907d | fix error | app/javascript/pages/country/components/widget-tree-loss/widget-tree-loss-component.js | app/javascript/pages/country/components/widget-tree-loss/widget-tree-loss-component.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
ResponsiveContainer
} from 'recharts';
import numeral from 'numeral';
import WidgetUpdating from '../widget-updating/widget-updating';
import TooltipChart from '... | JavaScript | 0.000002 | @@ -1344,39 +1344,8 @@
e %7B%0A
- console.log(isUpdating);%0A
|
8a1a5a6399456e2e51c9c03615163411204c134c | Add debug logging on config loading | lib/reverse-proxy-rate-limiter/limits-config.js | lib/reverse-proxy-rate-limiter/limits-config.js | "use strict";
var fs = require('fs'),
request = require("request"),
url = require("url"),
limitsConfigSchema = require('./limits-config-schema'),
Bucket = require("./bucket").Bucket,
log4js = require('log4js');
exports.isValidConfig = isValidConfig;
exports.LimitsConfiguration = LimitsConfiguratio... | JavaScript | 0.000001 | @@ -3795,32 +3795,89 @@
nfigCallback) %7B%0A
+ logger.debug(%22Loading config from URL: %22 + url);%0A
request(
@@ -3878,16 +3878,16 @@
quest(%7B%0A
-
@@ -4022,24 +4022,92 @@
=== 200) %7B%0A
+ logger.debug(%22Getting config from URL succeeded.%22);%0A
@@ -4397,... |
2520116535b90f37cc05923eae8ba9b258f27244 | Add UTC to end of pretty ranges, for email purposes | api/models/event/mixin.js | api/models/event/mixin.js | import { uniq, difference } from 'lodash/fp'
import moment from 'moment'
export default {
isEvent () {
return this.get('type') === Post.Type.EVENT
},
eventInvitees: function () {
return this.belongsToMany(User).through(EventInvitation, 'event_id', 'user_id')
.withPivot('response')
},
eventInvit... | JavaScript | 0 | @@ -2051,16 +2051,34 @@
rom + to
+ + %22 UTC timezone%22
%0A %7D,%0A%0A
|
c85de6fcb610e90547b91b8647ae13d7c7a40c73 | Address -> Host to stress that port is a separate option | announce.js | announce.js | var dgram = require('dgram');
var MULTICAST_ADDRESS = '224.0.0.234';
var MULTICAST_PORT = 60547;
module.exports = function(me, options, callback) {
var server = dgram.createSocket('udp4');
var env = process.env;
var hosts = {};
var found = 0;
var loopTimer;
var port = options.port || MULTICAST_PORT;
var addre... | JavaScript | 0 | @@ -308,23 +308,20 @@
T;%0A%09var
-address
+host
= optio
@@ -323,23 +323,20 @@
options.
-address
+host
%7C%7C MULT
@@ -741,23 +741,20 @@
, port,
-address
+host
);%0A%09%7D;%0A%09
@@ -1241,15 +1241,12 @@
hip(
-address
+host
);%0A%09
|
8d49327ae4debf0205e3492159b17ae1c1ed7116 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -978,8 +978,9 @@
unction
+s
|
8c57ddfbc40e696fe40980f27f99926c88034fe3 | Update slug.spec.js | src/__tests__/slug.spec.js | src/__tests__/slug.spec.js | import { expect } from 'chai';
import slugizoid from '../index';
describe('slugizoid', () => {
describe('.toString', () => {
it('should be a function with arity 1', () => {
// Arrange
const slug = slugizoid('pUll_reQUeSt');
// Assert
expect(slug.toString)
.to.be.a('function')
... | JavaScript | 0.000001 | @@ -2425,17 +2425,17 @@
he corre
-n
+c
t slug w
|
6f7970840a384cc728759cb0bab806bc7f600a5b | Add useYarn to npm adapter initialisation | lib/utils/dependency-manager-adapter-factory.js | lib/utils/dependency-manager-adapter-factory.js | 'use strict';
var BowerAdapter = require('../dependency-manager-adapters/bower');
var NpmAdapter = require('../dependency-manager-adapters/npm');
module.exports = {
generateFromConfig: function(config, root) {
var hasNpm = false;
var hasBower = false;
var adapters = [];
if (!config || !config.scenar... | JavaScript | 0 | @@ -668,24 +668,56 @@
g.npmOptions
+, useYarnCommand: config.useYarn
%7D));%0A %7D%0A
|
d23379347dd91ef8ed4942b3be046bb3137bb150 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -1118,12 +1118,13 @@
n('exit', fu
+n
|
5f89625a5b48461c4c3b02647e9905c1e9674e02 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -438,8 +438,9 @@
on(err,d
+a
|
211f932dad6a3f42945aaa8a34207ecb293538b3 | delete comment | public/javascripts/main.js | public/javascripts/main.js | // --------------------------------------------------------------------------------------
// define angular module/app
//var etlog = angular.module('etlog', ['ngRoute']);
var etlog = angular.module('etlog', ['ui.router']);
// --------------------------------------------------------------------------------------
| JavaScript | 0 | @@ -116,60 +116,8 @@
app%0A
-//var etlog = angular.module('etlog', %5B'ngRoute'%5D);%0A
var
|
adee7b088ad096eaa65761dccd1a9146bf0a2133 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -502,8 +502,9 @@
tes: %25s%22
+,
|
06cfc252fdb5a10f0e85735e69cdfa74f5059f29 | Update character | commit.js | commit.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
if ( process.argv[ 2 ] && process.argv[ 3 ] ) {
var inFile = process.argv[ 2 ]
var outFile = process.argv[ 3 ]
if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ]
console.info("Writing from %s to %s, with up to %s secon... | JavaScript | 0 | @@ -791,12 +791,13 @@
nter++)%0A
+%7B
|
a5c6a37697648fbf8db2e8b2fab97a9e9f4eb87c | Revert quill library capitalization | public/javascripts/main.js | public/javascripts/main.js | var ShareDB = require('sharedb/lib/client');
var Quill = require('Quill');
var QuillCursors = require('quill-cursors');
var ReconnectingWebSocket = require('reconnectingwebsocket');
var cursors = require('./cursors');
var utils = require('./utils');
ShareDB.types.register(require('rich-text').type);
var shareDBSocket... | JavaScript | 0.000015 | @@ -59,17 +59,17 @@
equire('
-Q
+q
uill');%0A
|
5aa186f6db60ff749a8500e9ca2ccef0e91f3979 | Remove x-axis padding for multi-point graph data. | public/js/helpers/Graph.js | public/js/helpers/Graph.js | define([], function() {
'use strict';
window.diana = window.diana || {};
window.diana.helpers = window.diana.helpers || {};
var diana = window.diana;
diana.helpers.Graph = {
formatRegex: {
minute: /^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:00$/,
hour: /^\d{2}\/\d{2}\/\d{4} \d{2}:00$/,
day: /^... | JavaScript | 0 | @@ -1541,16 +1541,157 @@
%0A %7D
+ else %7B%0A // Remove all x-axis padding.%0A axes.xaxis.min = data%5B0%5D%5B0%5D;%0A axes.xaxis.max = data%5Bdata.length - 1%5D%5B0%5D;%0A %7D
%0A%0A
|
d22b7991278389f41fbb083b05bb535064dfc850 | Add losePositions | src/ai/getBestPositions.js | src/ai/getBestPositions.js | import { getEmptyPositions } from './getEmptyPositions';
import { move } from './move';
/**
* Get Win Positions or Empty Positions
* @func
* @param {[Number]} oldGame old game
* @return {Number} random empty position
*/
const getBestPositions = (oldGame) => {
const emptyPositions = getEmptyPositions(oldGame.boa... | JavaScript | 0.000001 | @@ -80,16 +80,333 @@
./move';
+%0Aimport %7B filter, head, pipe %7D from 'ramda';%0A%0A/**%0A * Get another item from the list%0A * %0A * #TODO: Move to ptz-fp%0A * %0A * @param %7B*%7D item item to be excluded%0A * @param %7B*%7D list list to get a different item%0A * @return %7B*%7D another item%0A */%0Aconst getOth... |
c65bec2480a89847739979acaffd44a946878b4d | Improve and fix Andamio.Application to allow using the vent object | src/andamio.application.js | src/andamio.application.js | Andamio.Application = function (options) {
_.extend(this, options);
this.vent = _.extend({}, Backbone.Events);
};
_.extend(Andamio.Application.prototype, Backbone.Events, {
// Selector where the main appview will be rendered
container: 'main',
// data-region where every page will be displayed
el: 'page',
... | JavaScript | 0 | @@ -448,15 +448,47 @@
-if (thi
+// Initialize the router%0A if (option
s.ro
@@ -514,24 +514,38 @@
_initRouter(
+options.router
);%0A %7D%0A%0A
@@ -679,32 +679,17 @@
on (
-) %7B%0A var that = this;
+router) %7B
%0A%0A
@@ -719,118 +719,391 @@
uter
- if it's the constructor%0A if (_.isFunction(... |
8bb3deb6d07011c662828f6ff0cacfcd5d3b6838 | Update getweek.js to remove special schedule alert | app/controller/getWeeks.js | app/controller/getWeeks.js | var https = require('https');
var CronJob = require('cron').CronJob;
var currentWeek = 'UNKNOWN';
module.exports.currentWeek = function() {
if (currentWeek != 'UNKNOWN') {
return currentWeek;
} else {
console.log('currentWeek ' + currentWeek);
var week = '';
var schedulePageOptions = {
host:... | JavaScript | 0 | @@ -785,174 +785,8 @@
if
-(data.indexOf('special schedule') %3E -1 %7C%7C data.indexOf('special day') %3E -1) %7B%0A week = 'A';%0A alert(%22Today is a special schedule%22);%0A %7D else if
(dat
|
4829ca1af146c88dd140e4b340f23a5db2c6607d | fix getMempoolTxs in master network | app.es6/master/network.js | app.es6/master/network.js | import _ from 'lodash'
import { EventEmitter } from 'events'
import { setImmediate } from 'timers'
import readyMixin from 'ready-mixin'
import bitcore from 'bitcore'
import p2p from 'bitcore-p2p'
import RpcClient from 'bitcoind-rpc-client'
import config from '../lib/config'
import errors from '../lib/errors'
import lo... | JavaScript | 0 | @@ -4926,16 +4926,22 @@
*/%0A
+async
getMempo
@@ -4969,16 +4969,22 @@
esult%7D =
+ await
this._b
|
70055923a5695f1b5d5191a1e821cb2973212d6c | Fix special characters in the email title before showing up in the mailto pop up window EOSF-202 | app/controllers/content.js | app/controllers/content.js | import Ember from 'ember';
import loadAll from 'ember-osf/utils/load-relationship';
import config from 'ember-get-config';
import Analytics from '../mixins/analytics';
import permissions from 'ember-osf/const/permissions';
/**
* Takes an object with query parameter name as the key and value, or [value, maxLength] as ... | JavaScript | 0.000071 | @@ -1075,16 +1075,236 @@
&');%0A%7D%0A%0A
+%0Afunction fixSpecialChar(inputString)%7B%0A console.log(inputString);%0A if (inputString != null)%7B%0A return inputString.replace(/&/g,%22&%22).replace(/>/g,%22%3E%22).replace(/</g,%22%3C%22);%0A %7Delse%7B%0A return inputString;%0A %7D%0A%7D%0A%0A
export... |
b5f8ba4817a8a44d16e55ce667c69dce2e8ef145 | Check for destination_currencies property | src/api/ledger/pathfind.js | src/api/ledger/pathfind.js | /* @flow */
'use strict';
const _ = require('lodash');
const async = require('async');
const BigNumber = require('bignumber.js');
const utils = require('./utils');
const validate = utils.common.validate;
const parsePathfind = require('./parse/pathfind');
const NotFoundError = utils.common.errors.NotFoundError;
const co... | JavaScript | 0 | @@ -3035,16 +3035,68 @@
%7D%0A if (
+paths.destination_currencies !== undefined &&%0A
!_.inclu
|
50ee8a6d87d0ea73ec2b0725e77fc9fa01b2c723 | add city to report analytics | src/app/CurrentLocation.js | src/app/CurrentLocation.js | define([
'agrc/modules/Formatting',
'agrc/modules/WebAPI',
'app/config',
'dijit/_TemplatedMixin',
'dijit/_WidgetBase',
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/DeferredList',
'dojo/dom-class',
'dojo/io-query',
'dojo/string',
'dojo/text!app/templates/CurrentLocati... | JavaScript | 0 | @@ -7919,24 +7919,16 @@
ments);%0A
-
%0A
@@ -8086,16 +8086,53 @@
.address
+,%0A 'city:' + this.city
%5D.join('
|
958925990be89090516c07bd5cb84016882c624a | reconnect indefinitely when socket connection is lost | app/front/js/main/index.js | app/front/js/main/index.js | var config = require('../../../../config/public.json');
require('mapbox.js');
var L = window.L;
var $ = require('jquery');
var Backbone = require('backbone');
Backbone.$ = $;
var BackboneLayer = require('leaflet-backbone-layer').BackboneLayer;
var MapboxSocket = require('lightstream-socket').MapboxSocket;
var Velomagg... | JavaScript | 0.000001 | @@ -742,18 +742,16 @@
ions) %7B%0A
-
return
@@ -802,26 +802,8 @@
= %7B%0A
- max_retries: 2,%0A
re
@@ -816,17 +816,17 @@
terval:
-2
+5
000%0A%7D;%0Av
|
9cdbfd38c9074898f32a300c424f1d361fdaf8bd | Fix minor sequencing error | root/scripts/initializesvg.js | root/scripts/initializesvg.js | //Adds func to the list of things that will run upon page load
function addload(func) {
if(window.addEventListener) {
window.addEventListener('load', func)
} else {
window.attachEvent('onload', func)
}
}
//Default color of all zones
const defaultColor = '#b2b2b2'
//Stores the information objects o... | JavaScript | 0.001198 | @@ -3833,54 +3833,54 @@
-customresetcaller()%0A selectedZone = info.id
+selectedZone = info.id%0A customresetcaller()
%0A
|
31043d34ef134c74769900ba9a95cd002e8d8f43 | move starttime to state | public/js/src/solitaire.js | public/js/src/solitaire.js | 'use strict';
import $ from 'jquery';
import React from 'react';
import moment from 'moment';
import { Modal, Button } from 'react-bootstrap';
import SetGame from './setgame';
import SetCard from './setcard';
const IMG_PATH = 'static/img/';
export default class Solitaire extends SetGame {
constructor(props) {
... | JavaScript | 0 | @@ -492,20 +492,10 @@
-%7D;%0A this.
+
star
@@ -503,15 +503,21 @@
time
- =
+:
null
+,%0A %7D
;%0A
@@ -876,24 +876,30 @@
if (!this.
+state.
starttime) %7B
@@ -910,16 +910,35 @@
this.
+setState(%7B%0A
starttim
@@ -938,18 +938,17 @@
tarttime
- =
+:
moment(
@@ -948,16 +948,26 @@
mo... |
93e74fcd9edb4d35f8301fa2620df89affcb6b43 | Fix typo in example | Sources/Rendering/Misc/RemoteView/example/index.js | Sources/Rendering/Misc/RemoteView/example/index.js | import vtkWSLinkClient from 'vtk.js/Sources/IO/Core/WSLinkClient';
import SmartConnect from 'wslink/src/SmartConnect';
import vtkRemoteView from 'vtk.js/Sources/Rendering/Misc/RemoteView';
vtkWSLinkClient.setSmartConnectClass(SmartConnect);
document.body.style.padding = '0';
document.body.style.margin = '0';
const d... | JavaScript | 0.000002 | @@ -1342,13 +1342,8 @@
m =
-this.
clie
@@ -1353,23 +1353,16 @@
oConnect
-%0A
.getImag
@@ -1370,23 +1370,16 @@
Stream()
-%0A
.createV
|
074d637413f12d1326495a3bd7d845be325fe010 | add more test for default timeline. | test/__tests__/TimeLine/option-size-test.js | test/__tests__/TimeLine/option-size-test.js | 'use strict';
import {TimeLine} from "../../../src/TimeLine";
import {data,class_styles} from "../data/test.simple.data";
it('default TimeLine', () => {
document.body.innerHTML =
'<div id="time-line-container"></div>';
let chart = new TimeLine("#time-line-container", {
data: {
cla... | JavaScript | 0 | @@ -7,16 +7,59 @@
trict';%0A
+import * as d3selection from 'd3-selection'
%0Aimport
@@ -799,21 +799,235 @@
g =
-chart_svgs%5B0%5D
+d3selection.select(chart_svgs%5B0%5D);%0A expect(Number.parseInt(chart_svg.attr('width'))).toBe(TimeLine.default.options.size.width);%0A expect(Number.parseInt(chart_svg.attr('he... |
1a569894d5394c8f6d1f2ea9d948191d018d1b66 | Remove debug Signed-off-by: WTFKr0 <thomas.kovatchitch@gmail.com> | constants.js | constants.js | var fs = require('fs');
var cfs = fs.readdirSync('./json');
var constants = {};
cfs.forEach(function(f) {
constants[f.split(".")[0]] = require('./json/' + f);
});
var heroes = constants.heroes.result.heroes;
//key heroes by id
constants.heroes = {};
//key heroes by name
constants.hero_names = {};
heroes.forEach(fun... | JavaScript | 0 | @@ -2743,43 +2743,8 @@
id;%0A
-console.log(constants.regions_id);%0A
cons
|
003fb34b7b1a149d9a8c2f6c029f444158857981 | Decode tuple values into the correct types | constants.js | constants.js | Constants = (function() {
var CONSTANTS_URI = 'http://constantine.teaisaweso.me/json'
var gotConstants = new Bacon.Bus();
var constants = gotConstants.toProperty();
var getAll = function(callback) {
constants.onValue(callback);
};
var reload = function() {
var rawConstants = $... | JavaScript | 0.999998 | @@ -334,16 +334,253 @@
S_URI);%0A
+ var typeDecoders = %7B'string': function(x) %7B return x; %7D,%0A 'float': parseFloat,%0A 'int': parseFloat,%0A 'boolean': function(x) %7B return x == 'true'; %7D%7D%0A
@@ -611,24 +611,... |
7994aa8678d7d8ea94c717fd35e29e051da2b2f6 | Fix linter error :neckbeard: | test/examples/CreateCustomComponent-test.js | test/examples/CreateCustomComponent-test.js | const Rx = require(`rx`)
const test = require(`tape`)
const Yolk = require(`yolk`)
const renderInDoc = require(`../helpers/renderInDoc`)
test(`CreateCustomComponent: a component that has livecycle hooks`, t => {
t.plan(3)
t.timeoutAfter(100)
class CustomOnlyMount extends Yolk.CustomComponent {
onMount (prop... | JavaScript | 0.000002 | @@ -2447,19 +2447,13 @@
out(
-function ()
+() =%3E
%7B%0A
|
b5cadf51bee5a505cedf1bb28a9b096028607b76 | Add call succession promise to correct level | app/js/controllers/call.js | app/js/controllers/call.js | 'use strict';
/*
* Controller which handles the actual video call part of the app
* Sets up the canvases, and sets up the correct data callbacks and such...
*/
angular.module('call', [])
.controller('CallCtrl', function ($scope, trackingFactory, recordingFactory, fileFactory,
$ion... | JavaScript | 0.000001 | @@ -759,24 +759,68 @@
erLeft' %7D);%0A
+ callLogFactory.callSucceeded();%0A
@@ -2724,60 +2724,8 @@
();%0A
- callLogFactory.callSucceeded();%0A
|
fe69e4e8288edc7ea0412db035b9701d19afaa79 | Remove Accidental Chars | Videolizer/App_Plugins/Videolizer/search.dialog.js | Videolizer/App_Plugins/Videolizer/search.dialog.js |
angular.module('umbraco')
.controller('DigitalMomentum.Videolizer.Search',
function ($http, $scope, notificationsService, vimeoApi) {
$scope.hideLabel = "true"; //Hides the modal Dialog label at the top of the page
$scope.errorStr = null;
$scope.model = {
searchTerm: "",
ytApi: $scope.dialogData.ytApi,
... | JavaScript | 0.000001 | @@ -569,15 +569,8 @@
%09%09%09%7D
-'%0A%09%09%09%09'
%0A%0A%09c
|
2fcccbbb717ff7eb09035b3606f6d99d7d476c85 | fix typo in message | docs/src/examples/modules/Dropdown/Usage/index.js | docs/src/examples/modules/Dropdown/Usage/index.js | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample'
const Dro... | JavaScript | 0.000008 | @@ -4152,11 +4152,11 @@
t be
-vah
+hav
iour
|
57dad8d39afa87f35124b3a442644747435deda6 | Rename container to App to be easer to extend the boilerplate | src/app/containers/Root.js | src/app/containers/Root.js | import React, { Component, PropTypes } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './App';
export default class Root extends Component {
static propTypes = {
store: PropTypes.object.isRequired
};
render() {
const { store } = this.props;
return (
<Provider stor... | JavaScript | 0 | @@ -93,23 +93,16 @@
%0Aimport
-Counter
App from
@@ -330,15 +330,8 @@
%3C
-Counter
App
|
fe649d6aab1f94d136f9bb8e75ba79a19be566f7 | Improve reject save queue | src/ggrc/assets/javascripts/models/save_queue.js | src/ggrc/assets/javascripts/models/save_queue.js | /*!
Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
Created By: anze@reciprocitylabs.com
Maintained By: anze@reciprocitylabs.com
*/
(function(can, $) {
/* GGRC.SaveQueue
*
* SaveQueue is... | JavaScript | 0.000001 | @@ -2361,26 +2361,20 @@
ject
-With
(obj,
-%5B
single
-%5D
);%0A
|
eaeb6ec406f740da7749908c6e26f120e9c9075b | use weak comparison for dirty check | app/model/abstractModel.js | app/model/abstractModel.js | core.factory("AbstractModel", function ($injector, $rootScope, $q, ModelCache, ModelUpdateService, ValidationStore, WsApi) {
return function AbstractModel(repoName) {
var abstractModel;
var mapping;
var entityName;
var validations;
var defer = $q.defer();
var l... | JavaScript | 0 | @@ -6974,24 +6974,74 @@
if (diff) %7B%0A
+ // console.log(i)%0A
@@ -7391,17 +7391,16 @@
log(m !=
-=
s, m, s
@@ -7429,17 +7429,16 @@
urn m !=
-=
s;%0A
|
c91c7fff008c26e7c706a493d36613cee3a24331 | Update teambox.js | scripts/content/teambox.js | scripts/content/teambox.js | /*jslint indent: 2 */
/*global document: false, chrome: false, $: false, createLink: false, createProjectSelect: false*/
(function () {
"use strict";
var iframeRegex = /oauth2relay/, userData = null,
selectedProjectId = null, selectedProjectBillable = false;
function createTimerLink(taskName) {
var link... | JavaScript | 0.000001 | @@ -728,16 +728,17 @@
me === %22
+.
taskName
@@ -813,28 +813,16 @@
$(%22.
-property.description
+taskName
%22),%0A
|
f46882843dfe8fd604d4cb6afca78e82d0e07fa6 | Enable all relevant tests | test/integration/profile-history.bl.spec.js | test/integration/profile-history.bl.spec.js | import ProfileHistoryBL from './../../src/modules/profile-history/profile-history.bl';
import Context from './../../src/config/context';
import DBHelpers from './../lib/db-helpers';
import _ from 'lodash';
describe.only( 'profile-history.bl', () => {
let dbHelpers;
let context;
before( ( done ) => {
contex... | JavaScript | 0.002056 | @@ -208,21 +208,16 @@
describe
-.only
( 'profi
@@ -2642,99 +2642,10 @@
%0A%0A
-//Todo: Doesn't seem to be robust, return 2 instead of 1 from time to time ... ?!%0A it.only
+it
( 'u
|
b0133332dc7dc0ef12b3cecb410a70be30e28236 | update monorepo tests to temporarily exclude requiring the new @bolt/analytics-autotrack library to be symlinked | scripts/monorepo-tests.js | scripts/monorepo-tests.js | #!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
const readdir = promisify(fs.readdir);
const lstat = promisify(fs.lstat);
/**
* Monorepo symlink checker for internal `@bolt` packages
* Ensures every directory in `../node_modules/@bolt/` is a symbolic... | JavaScript | 0 | @@ -566,16 +566,22 @@
Names =%3E
+%0A
Promise
@@ -585,16 +585,25 @@
ise.all(
+%0A
dirNames
@@ -611,17 +611,15 @@
map(
-(
dirName
-)
=%3E
@@ -622,24 +622,28 @@
=%3E %7B%0A
+
+
const item =
@@ -645,16 +645,20 @@
tem = %7B%0A
+
@@ -702,11 +702,19 @@
+
-%7D;%0A
+ ... |
3c87548f543966e5c756689e2a36589013482951 | Correct config for RestfulSimplifiedLayout. | devilry/apps/extjshelpers/static/extjs_classes/extjshelpers/RestfulSimplifiedLayout.js | devilry/apps/extjshelpers/static/extjs_classes/extjshelpers/RestfulSimplifiedLayout.js | /** Layout for restful simplified editors.
*
* @xtype administratorrestfulsimplifiedlayout
* */
Ext.define('devilry.extjshelpers.RestfulSimplifiedLayout', {
extend: 'Ext.panel.Panel',
alias: 'widget.administratorrestfulsimplifiedlayout',
requires: ['devilry.extjshelpers.ErrorList'],
border: 0,
c... | JavaScript | 0 | @@ -1002,24 +1002,136 @@
nt'%0A %7D,%0A%0A
+ constructor: function(config) %7B%0A this.callParent(%5Bconfig%5D);%0A this.initConfig(config);%0A %7D,%0A%0A
initComp
@@ -5734,159 +5734,8 @@
d);%0A
- //var title = Ext.String.format('Edit', record.data.long_name, record.data.sho... |
b1978019d7a26e456a4dadaae0f17198de70f06f | update unit test inventory movement | test/inventory/inventory-movement/report.js | test/inventory/inventory-movement/report.js | require("should");
var InventoryMovement = require("../../data-util/inventory/inventory-movement-data-util");
var helper = require("../../helper");
var moment = require("moment");
var validate = require("dl-models").validator.inventory.inventoryMovement;
var InventoryMovementManager = require("../../../src/managers/in... | JavaScript | 0 | @@ -1699,22 +1699,24 @@
+%22
filter
+%22
: %7B%0A
@@ -1723,19 +1723,21 @@
+%22
_id
+%22
: create
@@ -1749,16 +1749,43 @@
%7D
+,%0A %22keyword%22: %22TEST%22
%0A %7D)%0A
|
aa1966f4d36bf3168c1a7025becf6feb37d1c0d5 | Fix imports in blocks.js | app/controllers/blocks.js | app/controllers/blocks.js | 'use strict';
/**
* Module dependencies.
*/
var common = require('./common'),
var async = require('async');
var bdb = require('./BlockDb').default();
var tdb = require('./TransactionDb').default();
/**
* Find block by hash ...
*/
exports.block = function(req, res, next, hash) {
bdb.fromHashWithInfo(hash, functi... | JavaScript | 0 | @@ -72,17 +72,17 @@
common')
-,
+;
%0Avar asy
@@ -124,16 +124,24 @@
quire('.
+./../lib
/BlockDb
@@ -174,16 +174,24 @@
quire('.
+./../lib
/Transac
|
fec8d3319a4e61831964adc0f73de50448782734 | Im dumb | config.js | config.js | // # Ghost Configuration
// Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments).
// Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Produ... | JavaScript | 0.999773 | @@ -719,20 +719,16 @@
user
-name
: 'gktan
|
ace49563d13c5538003d8782ecefaea7405f16ce | Update generated file. | dist/main.js | dist/main.js | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r(require,exports,module):e.gulpWrapUmd=r()}(this,function(){var e,r,n,t={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decodeArrayBuffer:function(e){var r=e.length/4*3,n=new ArrayBuffer(... | JavaScript | 0 | @@ -165,18 +165,16 @@
var e,r,
-n,
t=%7B_keyS
@@ -293,17 +293,17 @@
gth/4*3,
-n
+t
=new Arr
@@ -339,12 +339,12 @@
e(e,
-n),n
+t),t
%7D,de
@@ -366,17 +366,17 @@
,r)%7Bvar
-n
+t
=this._k
@@ -411,17 +411,17 @@
gth-1)),
-t
+n
=this._k
@@ -475,17 +475,17 @@
4*3;64==
-n
+t
&&i--,64
@@ -482,25 +482,25 @@
=t&&i--... |
753738c0d295f9e0d8a05a381e11d89e4e98de7f | Actually mark as spam | models/lead_model.js | models/lead_model.js | var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = mongoose.Schema.Types.ObjectId;
var Location = require('./location_model');
var Space = require('./space_model');
var User = require('./user_model');
var rest = require("restler-q");
var config = require("config");
var LeadSche... | JavaScript | 0.99929 | @@ -1830,24 +1830,45 @@
h(%22.ru%22)) %7B%0A
+%09%09%09this.spam = true;%0A
%09%09%09return ne
|
be5331bef27808bd39c1e7941200698ec1a53bf0 | Make filters more pivotal-style-search friendly | app/public/js/tt.search.js | app/public/js/tt.search.js | var TT = TT || {};
TT.Search = (function () {
var pub = {};
function enterKeyPressed(e) {
return e.which === 13;
}
pub.addSearchTag = function (term) {
TT.Model.Filter.add({
name: term,
type: 'search',
fn: function (story) {
return JSON.stringify(story).toLowerCase().indexOf... | JavaScript | 0 | @@ -168,170 +168,559 @@
-TT.Model.Filter.add(%7B%0A name: term,%0A type: 'search',%0A fn: function (story) %7B%0A return JSON.stringify(story).toLowerCase().indexOf(term) !== -1
+var terms = term.split(' ').map(function (term) %7B%0A return (term.indexOf(':') !== -1 ? term.split(':')%5B... |
5f165f887178937d3d0e4c0bd98708043177fa65 | add m-model case | dist/moon.js | dist/moon.js | /*
* Moon 0.0.0
* Copyright 2016, Kabir Shah
* https://github.com/KingPixil/moon/
* Free to use under the MIT license.
* https://kingpixil.github.io/license
*/
"use strict";
(function(window) {
function Moon(opts) {
var _el = opts.el;
var _data = opts.data;
var _methods = opts.method... | JavaScript | 0.000026 | @@ -2682,16 +2682,75 @@
break;%0A
+ case %22m-model%22:%0A %0A
|
59aea5d1f4118916a4b0d126c1e59e3a129d9f6e | add image_url to local user info | models/user/index.js | models/user/index.js | const mongoose = require("mongoose");
const passwordPlugin = require("./plugins/password-plugin");
const passportLocalPlugin = require("./plugins/passport-local-plugin");
const passportOauthPlugin = require("./plugins/passport-oauth-plugin");
const User = mongoose.Schema({
local: {
username: { type: String, uni... | JavaScript | 0 | @@ -417,24 +417,92 @@
im: true %7D,%0A
+ image_url: %7B type: String, default: %22/media/dummy_image.png%22 %7D,%0A
hash: %7B
|
e2de972d1c50a5df3cb5ef4a56658c6494d8de66 | use access public | scripts/publish-to-npm.js | scripts/publish-to-npm.js | 'use strict';
const yargs = require('yargs');
const execa = require('execa');
const util = require('util');
const glob = util.promisify(require('glob'));
const fs = require('fs-extra');
const path = require('path');
const rootDir = process.cwd();
let argv = yargs
.usage(
'$0 [-t|--tag]'
)
.command({
com... | JavaScript | 0 | @@ -919,16 +919,31 @@
js.org/
+--access public
%60;%0A%09%09%09%09r
|
e1c29a87142b4f19553f84c8895b6cc98cef424c | Make animations better, just cheat and use rotation instead of quaternions | js/models/MtnxToThreeJs.js | js/models/MtnxToThreeJs.js | PP64.ns("utils");
// Converts extracted MTNX (animation) data into a Three.js AnimationClip.
PP64.utils.MtnxToThreeJs = class MtnxToThreeJs {
constructor() {
}
createClip(mtnx) {
const tracks = this._createTracks(mtnx);
const duration = this._framesToSeconds(mtnx.totalFrames);
return new THREE.Anima... | JavaScript | 0 | @@ -1973,26 +1973,22 @@
w THREE.
-Quaternion
+Vector
Keyframe
@@ -2126,18 +2126,16 @@
x);%0A
-//
const di
@@ -2213,26 +2213,38 @@
deName%7D.
-quatern
+rotation%5B$%7Bdimens
ion
+%7D%5D
%60;%0A %7D%0A%0A
@@ -2410,141 +2410,71 @@
nst
-quaternion = this._createQuaternion(track.dimension, degrees);%0A da... |
301180f75004fa969e33ebe3cb2827f48430a9db | add new controller | node/apps/controller/welcome.js | node/apps/controller/welcome.js | function index(res, req) {
console.log("Request handler 'welcome' was called.");
var data = {};
data.hello = "hello";
data.pageTitle = '<script>alert(1)</script>';
data._CSSLinks = ['home', 'pages/main'];
this.render(res, req, 'welcome.html', data);
}
exports.index = index; | JavaScript | 0 | @@ -250,16 +250,289 @@
data);%0A%7D
+%0Afunction h(res, req) %7B%0A%09console.log(this)%0A%09console.log(%22Request handler 'welcome' was called.%22);%0A%09var data = %7B%7D;%0A%09data.hello = %22hello%22;%0A%09data.pageTitle = '%3Cscript%3Ealert(1)%3C/script%3E';%0A%09data._CSSLinks = %5B'home', 'pages/main'%5D;%0A%0... |
3eb994b14e168f19ff136fc96054c3a8a6d2c3ad | Improve message escaping | nodejs/public/js/ui.messages.js | nodejs/public/js/ui.messages.js | UI.once('init', function(){
var UI = this
, messages = new MessageList()
, newline = Util.Text.newlineMatcher
, last_line = null
, msgs = [];
// Clicking on username appends @username to the input
$('#message_list').click(function(e){
var name = $(e.target).data('data-uname');
if(name){
var inpu... | JavaScript | 0.000046 | @@ -1065,11 +1065,23 @@
ape
+%5B
%3C,
-%3E
+ %3E, ', %22, &%5D
so
@@ -1131,16 +1131,130 @@
t = text
+%0A .replace(/'/g, ''')%0A .replace(/%22/g, '"')%0A .replace(/&/g, '&')%0A
.replace
@@ -1267,16 +1267,27 @@
'<')
+%0A
.replace
|
7c9724cec7cb27a295d2f0a585745f0ea3d33bcf | disable test | test/protractorWithoutRestartBrowserConf.js | test/protractorWithoutRestartBrowserConf.js | /*
* Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | JavaScript | 0.000002 | @@ -3074,37 +3074,38 @@
ext-tutorial.js'
-,
%0A
+//
'tests/badToStr
|
d7c9d51a06479db562be39c73551c7d8f523cbd0 | Clean up code. | barchart.js | barchart.js | (function (exports) {
"use strict";
/*jshint curly:false */
/*global d3 */
exports.barchart = function () {
var barchart, width, height, yAxisPadding, yAxisTicks,
xScale, yScale, yInverseScale, xAxis, yAxis;
width = 300;
height = 300;
xScale = d3.scale.or... | JavaScript | 0 | @@ -156,16 +156,32 @@
height,
+ xScale, yScale,
yAxisPa
@@ -190,20 +190,8 @@
ing,
- yAxisTicks,
%0A
@@ -203,44 +203,30 @@
-xScale, yScale, yInverseScale, xAxis
+yAxisTicks, yAxisScale
, yA
@@ -311,16 +311,52 @@
dinal();
+%0A yScale = d3.scale.linear();
%0A%0A
@@ -423,51 +423,12 @@
y
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.