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 |
|---|---|---|---|---|---|---|---|
4df37e4b922ffbc170a69e93647e64f22dbaa7ca | Correct event binding from popover-close to popover-content | scripts/views/popover-view.js | scripts/views/popover-view.js | /**
* Popover View Usage Example
* This is a block helper so it can be used like so:
*
* {{#view App.PopoverView title="Test Title"}}
* Hover over me.
* <div class="popover-content" style="display:none;">
* This is the contention popover content. View Id: {{view.elementId}}
* </div>
* {{/view}}... | JavaScript | 0 | @@ -2126,28 +2126,30 @@
('.popover-c
-lose
+ontent
').on('mouse
|
6ef0fb6d95a7dff6e89182649e294c6ebb26fa07 | Fix cancel uploading action | src/apps/Syncano/Actions/Hosting.js | src/apps/Syncano/Actions/Hosting.js | import _ from 'lodash';
import bluebird from 'bluebird';
let stopUploading = false;
export default {
list() {
this.NewLibConnection
.Hosting
.please()
.list()
.ordering('desc')
.then(this.completed)
.catch(this.failure);
},
create(params) {
this.NewLibConnection
... | JavaScript | 0 | @@ -1616,32 +1616,65 @@
ring: 'desc' %7D);
+%0A let cancelFileIndex = false;
%0A%0A all.on('st
@@ -2555,31 +2555,220 @@
ed: true
-%0A %7D)
+,%0A currentFileIndex: cancelFileIndex,%0A lastFileIndex: cancelFileIndex%0A %7D);%0A %7D%0A if (!cancelF... |
2004133758bce649ed09d9be8dc8fb2990e94f4a | Add method to send message to all channels | plugins/BotPlug.js | plugins/BotPlug.js | 'use strict';
class BotPlug {
constructor( bot ) {
this.bot = bot;
this.aliasList = {
gustin : 'gust1n',
sälen : 'theseal',
jwilsson : 'mcgurk'
};
this.names = {};
this.setupNameDetection();
}
setupNameDetection(){
this... | JavaScript | 0 | @@ -2285,24 +2285,231 @@
%7D );%0A %7D%0A%0A
+ sendMessageToAllChannels( message )%7B%0A for( let i = 0; i %3C this.bot.opt.channels.length; i = i + 1 )%7B%0A this.sendMessageToChannel( this.bot.opt.channels%5B i %5D, message );%0A %7D%0A %7D%0A%0A
sendMess
|
9af07949e997e8f7bae3ab3b406ba78dff6737fc | Update a test name | test/unit/containers/DiscoverContainer_test.js | test/unit/containers/DiscoverContainer_test.js | import { expect } from '../../spec_helper'
import { stubJSONStore } from '../../stubs'
import { sortCategories } from '../../../src/selectors'
import {
loadCategoryPosts,
loadDiscoverPosts,
loadDiscoverUsers,
getCategories,
} from '../../../src/actions/discover'
import {
generateTabs,
getStreamAction,
sho... | JavaScript | 0.00009 | @@ -3664,14 +3664,8 @@
ould
-Search
Cont
|
7dcd8fef16b38b4781a329bedbd89bd5e273983e | Fix tooltip position when legend displayed | src/assets/facette/js/chart/rect.js | src/assets/facette/js/chart/rect.js | chart.fn.drawBackgroundRect = function() {
var $$ = this;
$$.bgRect = $$.svg.append('rect')
.attr('class', 'chart-background')
.attr('width', $$.width)
.attr('height', $$.height);
};
chart.fn.drawZoomRect = function() {
var $$ = this;
if (!$$.config.zoom.enabled) {
ret... | JavaScript | 0.000001 | @@ -5001,16 +5001,156 @@
Width;%0A%0A
+ if ($$.legendGroup) %7B%0A tooltipPosY += $$.legendGroup.node().getBBox().height + $$.config.padding;%0A %7D%0A%0A
|
de9760d86f3e9bdb3bbbb03312662da3c33e75d9 | Add invalid test using `consistent` option value | lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker/test/fixtures/invalid.js | lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-fenced-code-marker/test/fixtures/invalid.js | 'use strict';
// VARIABLES //
var invalid;
var test;
// MAIN //
// Create our test cases:
invalid = [];
test = {
'code': [
'/**',
'* Beep boop.',
'*',
'* ~~~javascript',
'* y = x;',
'* ~~~',
'*/',
'function beep() {',
' console.log( "boop" );',
'}'
].join( '\n' ),
'errors': [
{
'mes... | JavaScript | 0.000012 | @@ -1065,16 +1065,407 @@
est );%0A%0A
+test = %7B%0A%09'code': %5B%0A%09%09'/**',%0A%09%09'* Beep _boop_.',%0A%09%09'*',%0A%09%09'* ~~~javascript',%0A%09%09'* y = x;',%0A%09%09'* ~~~',%0A%09%09'*',%0A%09%09'* %60%60%60javascript',%0A%09%09'* y = x;',%0A%09%09'* %60%60%60',%0A%09%09'*/',%0A%09%09'function beep() %7B',%... |
b4260cfb91766b4e113254562ce5283bddb5950e | refactor toward next test | server/03-stack/stack.spec.js | server/03-stack/stack.spec.js | describe('the stack spec', () => {
it('shows the infrastructure works', () => {
true.should.be.true();
});
const makeStack = () => {
return {
isEmpty: () => true,
size: () => 0
};
};
const stack = {
isEmpty: () => true,
size: () => 0
};
describe('a stack should', () => {... | JavaScript | 0.000001 | @@ -212,20 +212,18 @@
%7D;%0A%0A
-cons
+le
t stack
|
943204dc50393bb22a5cabad088c6abdf0e28d55 | Fix object is not a function error in omxviewer | server/configure-socket-io.js | server/configure-socket-io.js | var socketio = require('socket.io');
function configureSocketIo(server, repo) {
var io = socketio.listen(server);
// If this is a raspberry pi viewer.
var viewerMode = process.argv[2] ? process.argv[2].toLowerCase() : 'none';
if(viewerMode === 'omx' || viewerMode == '-omx') {
console.log('omxp... | JavaScript | 0.000395 | @@ -384,18 +384,16 @@
viewer')
-()
;%0A %7D%0A
|
04b638a893952ff7d818b7913904132b21b768d5 | Fix error | apps/marketplace/index.js | apps/marketplace/index.js | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import { Provider } from 'react-redux'
import Banner from 'shared/Banner/Banner'
import Header from './components/Header/Header'
import AUFooter from './components/Footer/AUFooter'
import configureStore from './... | JavaScript | 0.000004 | @@ -222,23 +222,16 @@
s/Header
-/Header
'%0Aimport
|
e901a01be1c46ca4a207a07f0132911c9e9acd42 | Fix react-tap-event-plugin issue | src/client/entryPoint/app-client.js | src/client/entryPoint/app-client.js | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import AppRoutes from '../components/AppRoutes';
import 'jquery';
// var injectTapEventPlugin = require('react-tap-event-plugin');
import './less/style.less';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
// injectTa... | JavaScript | 0.000015 | @@ -140,14 +140,14 @@
';%0A%0A
-// var
+import
inj
@@ -168,18 +168,13 @@
gin
-= require(
+from
'rea
@@ -193,17 +193,16 @@
-plugin'
-)
;%0A%0Aimpor
@@ -296,19 +296,16 @@
/988941%0A
-//
injectTa
|
a98445143d6e1c67a1cb9e2c9a4be2740fa7e325 | remove more actionTypes for comment | src/comments/commentsActionTypes.js | src/comments/commentsActionTypes.js | export const GET_COMMENTS = 'GET_COMMENTS';
export const GET_COMMENTS_START = 'GET_COMMENTS_START';
export const GET_COMMENTS_SUCCESS = 'GET_COMMENTS_SUCCESS';
export const GET_COMMENTS_ERROR = 'GET_COMMENTS_ERROR';
export const GET_MORE_COMMENTS = 'GET_MORE_COMMENTS';
export const GET_MORE_COMMENTS_START = 'GET_MORE_... | JavaScript | 0 | @@ -214,265 +214,8 @@
';%0A%0A
-export const GET_MORE_COMMENTS = 'GET_MORE_COMMENTS';%0Aexport const GET_MORE_COMMENTS_START = 'GET_MORE_COMMENTS_START';%0Aexport const GET_MORE_COMMENTS_SUCCESS = 'GET_MORE_COMMENTS_SUCCESS';%0Aexport const GET_MORE_COMMENTS_ERROR = 'GET_MORE_COMMENTS_ERROR';%0A%0A
expo
|
5dba978146c2e9d9dc911277305ae42537b6791b | Fix missing slash in Navigation, breaking the page when clicked. | src/common/components/Navigation.js | src/common/components/Navigation.js | import React from 'react';
import Relay from 'react-relay';
import ActionLockOpen from 'material-ui/svg-icons/action/lock-open';
import Avatar from 'material-ui/Avatar';
import { Menu, MenuItem } from 'material-ui/Menu';
import IconButton from 'material-ui/IconButton';
import Popover from 'material-ui/Popover';
import ... | JavaScript | 0 | @@ -8491,16 +8491,17 @@
to=%22
+/
about%22%0A
|
6cb4b3cad60ee232a1eaa4df760f120e43765e79 | Improve padding of donation form | src/components/donate/DonateForm.js | src/components/donate/DonateForm.js | import React, { Component } from 'react'
import {
Box,
LargeButton,
Button,
Flex,
Heading,
Icon,
Input,
Label,
Text
} from '@hackclub/design-system'
import { CLIENT_URL, PUBLIC_STRIPE_KEY } from 'constants'
import { toNumber } from 'lodash'
import api from 'api'
const Secure = Flex.extend`
position... | JavaScript | 0 | @@ -1879,17 +1879,17 @@
4%5D%7D pb=%7B
-3
+4
%7D mb=%7B3%7D
@@ -2143,17 +2143,17 @@
4%5D%7D pt=%7B
-3
+4
%7D px=%7B3%7D
|
69158a8cc7b2deb536c808b180bfa75276d184c7 | change responsiveness level for finances | src/components/finances/finances.js | src/components/finances/finances.js | import React, { Component } from 'react'
import Bills from './bills'
import Payments from './payments'
import FinanceNavmenu from './finance_navmenu'
class Finances extends Component {
render() {
return (
<article className="finances col-sm-9">
<FinanceNavmenu />
{this.props.children}
... | JavaScript | 0 | @@ -249,10 +249,10 @@
col-
-s
m
+d
-9%22%3E
|
f9f9c093b4f8ea784ec2657f9222e1b582461a78 | comment cleanup | src/components/form/SubmitButton.js | src/components/form/SubmitButton.js | // dependencies
//
import React from 'react';
import classnames from 'classnames';
// @TODO a generic button which is not wired into the form `isValid` state
/**
* The SubmitButton component
* @param {String} children The label to display in the button
* @param {String} style The style with which to disp... | JavaScript | 0 | @@ -436,18 +436,81 @@
lag
-indicating
+(from the parent Form's context) indicating%0A *
whe
@@ -536,21 +536,38 @@
ich this
+ button is attached
%0A *
-
@@ -584,34 +584,17 @@
-button is attached
+
is vali
|
0451123acb987f53bfaaa6719881a404519fc7f9 | comment cleanup | src/components/form/SubmitButton.js | src/components/form/SubmitButton.js | // npm dependencies
//
import React from 'react';
import classnames from 'classnames';
/**
* The SubmitButton component
* @param {String} children The label to display in the button
* @param {String} name The name for the component
* @param {String} style The style with which to display the button
... | JavaScript | 0 | @@ -712,172 +712,558 @@
-constructor(props) %7B%0A super(props);%0A%0A this.state = %7B%0A disabled: props.disabled,%0A %7D;%0A %7D%0A%0A componentWillReceiveProps(newProps) %7B
+/**%0A * Construct the SubmitButton instance%0A * @param %7BObject%7D props The componen... |
85fd8fd6bb679d9499f4b77859e7e0ffa68bcb4d | Switch x axis to minute | src/components/pres/Moisture/Day.js | src/components/pres/Moisture/Day.js | import React from 'react';
import { Line } from 'react-chartjs-2';
export default function Day({ days }) {
const items = days.day || [];
if (days.loading) {
return (
<p>Loading...</p>
);
}
const data = {
labels: items.map((d) => d.date, []),
datasets: [{
label: 'Moisture',
f... | JavaScript | 0.000001 | @@ -384,16 +384,111 @@
,%0A %7D;%0A%0A
+ const options = %7B%0A scales: %7B%0A xAxes: %5B%7B%0A type: 'time',%0A %7D%5D,%0A %7D,%0A %7D;%0A%0A
return
@@ -580,16 +580,34 @@
a=%7Bdata%7D
+ options=%7Boptions%7D
/%3E%0A
|
48563d681904294c2c8e3d0e90b5853bc69917d9 | Use site-wide page styling | src/components/user/user-profile.js | src/components/user/user-profile.js | import React from 'react';
import { Paper, AppBar, Tabs, Tab } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import { user } from '@openchemistry/girder-ui';
const StyledTabs = withStyles({
indicator: {
display: 'flex',
justifyContent: 'center',
backgroundColor: 'tran... | JavaScript | 0 | @@ -53,16 +53,28 @@
abs, Tab
+, Typography
%7D from
@@ -150,16 +150,91 @@
yles';%0A%0A
+import PageHead from '../page-head';%0Aimport PageBody from '../page-body';%0A%0A
import %7B
@@ -275,17 +275,16 @@
r-ui';%0A%0A
-%0A
const St
@@ -790,52 +790,340 @@
%3C
-Paper style=%7B%7Bmargin:'10px'%7D%7D%3E%0A %... |
93d9f3b8f18a4c3e20c86f17ca40acf6540b495f | use angular window to redirect | src/controllers/certificate-edit.js | src/controllers/certificate-edit.js | /* global app:true */
((angular, app) => { 'use strict';
const controller = 'CertificateEditController';
if (typeof app === 'undefined') throw (controller + ': app is undefined');
app.controller(controller, ['$scope', '$routeParams', 'ajax', 'viewFactory', 'toast',
function ($scope, $routeParams,... | JavaScript | 0.000001 | @@ -16,16 +16,25 @@
rue */%0A(
+function
(angular
@@ -39,19 +39,16 @@
ar, app)
- =%3E
%7B 'use
@@ -109,17 +109,16 @@
oller';%0A
-%0A
if (
@@ -221,16 +221,27 @@
oller, %5B
+'$window',
'$scope'
@@ -308,16 +308,25 @@
nction (
+$window,
$scope,
@@ -368,16 +368,65 @@
ast) %7B%0A%0A
+ viewFactory.... |
e1976ec748999aa0d48f5ac456902e906e8a5051 | Prevent 0-length phrases | yipsum.js | yipsum.js | var sourceWords = [
// Variations on fur
'fur',
'furry',
'furre',
'furries',
// Conventions
'con',
'convention',
'anthrocon',
'AC',
'Further Confusion',
'FC',
'Midwest Fur Fest',
'MFF',
// Fursuiting
'fursuit',
'suiter',
'headless',
'ruining the magic',
// Various
'popufur',... | JavaScript | 0.999997 | @@ -1083,16 +1083,20 @@
() * 10)
+ + 1
).times(
|
72dc834d56b010607a8699a3e4da9b9a5abd87c9 | Fix bug with levels being equal on same tile | src/game/Generators/genCreatures.js | src/game/Generators/genCreatures.js | import CreaturesJSON from "../db/Creatures.json";
const creatures = new Map(Object.entries(CreaturesJSON));
class Creature {
constructor(level, creature) {
this.name = creature.name;
this.level = level;
this.symbol = creature.attributes.healthBar;
// this.items = getItems(this.name);
this.attr =... | JavaScript | 0 | @@ -416,68 +416,8 @@
%5B%5D;%0A
- let level = Math.ceil(Math.random() * playerLevel * 1.5);%0A
cr
@@ -529,21 +529,60 @@
reature(
-level
+Math.ceil(Math.random() * playerLevel * 1.5)
, c));%0A
|
098a23560ff10ae9e68e8bf9367f3ad3b1e51ee7 | Load analytics with the main bundle | assets/javascript/main.js | assets/javascript/main.js | import supports from './supports';
const POLYFILL_PATH = process.env.SBF_PUBLIC_PATH + 'polyfills.js';
/**
* The main script entry point for the site. Initalizes all the sub modules
* analytics tracking, and the service worker.
* @param {?Error} err Present if an error occurred loading the polyfills.
*/
functio... | JavaScript | 0 | @@ -1,12 +1,54 @@
+import * as analytics from './analytics';%0A
import suppo
@@ -71,17 +71,16 @@
orts';%0A%0A
-%0A
const PO
@@ -747,138 +747,23 @@
%0A%0A
-System.import('./analytics').then((analytics) =%3E %7B%0A analytics.init();%0A if (err) %7B%0A analytics.trackError(err);%0A %7D%0A %7D
+analyti... |
bd5d76bb4f9e6286cf61112eac9386d3ce546a48 | Remove left over console log | assets/js/participants.js | assets/js/participants.js | (function(){
var $wrapper_div = document.querySelector('#participant-management');
var phone_icon_url = chrome.extension.getURL('assets/img/phone_icon.png');
var phone_img_src = '<img class="phoneicon" src="' + phone_icon_url + '" alt="Edit phone number">';
// =========================================================... | JavaScript | 0 | @@ -738,64 +738,8 @@
');%0A
- console.log('$pencil_icon ',$pencil_icon );%0A
|
89404d2fdbed0c9db41ade5d27fddfabf1b7baf6 | fix unmountTimeout | src/js/SGoogleMapMarkerComponent.js | src/js/SGoogleMapMarkerComponent.js | import SGoogleMapComponentBase from 'coffeekraken-s-google-map-component-base'
import __whenAttribute from 'coffeekraken-sugar/js/dom/whenAttribute'
/**
* @name SGoogleMapMarkerComponent
* @extends SGoogleMapComponentBase
* Provide a nice webcomponent wrapper around the google map marker api.
*
* @example htm... | JavaScript | 0.000003 | @@ -874,16 +874,132 @@
turn %7B%0A%0A
+%09%09%09// set the unmout timeout to 0 to avoid unwanted delays when adding and removing markers%0A%09%09%09unmountTimeout : 0,%0A%0A
%09%09%09/**%0A%09
|
4f8f1ba354299b0f1b03ba744d21b8f2f8011119 | Check if elements exists before adding unread class | src/js/modules/discussion-topics.js | src/js/modules/discussion-topics.js | this.mmooc = this.mmooc || {};
this.mmooc.discussionTopics = function () {
return {
setDiscussionTopicPubDate: function(discussionTopic) {
var formattedDate = mmooc.util.formattedDate(discussionTopic.posted_at);
var pubDate = $("<div class='publication-date'>" + formattedDate + "</d... | JavaScript | 0 | @@ -1936,19 +1936,25 @@
var
-wai
+checkExis
t = setI
@@ -1966,32 +1966,104 @@
al(function() %7B%0A
+ if ($(%22#open-discussions .ig-list .discussion%22).length) %7B%0A
clea
@@ -2076,15 +2076,23 @@
val(
-wai
+checkExis
t);%0A
+
@@ -2171,24 +2171,26 @@
+
var un... |
8afada94833b0262fae99cc6e6f6819b49c71a62 | Fix type | src/js/sparql/documented-queries.js | src/js/sparql/documented-queries.js | import queries from './queries'
const {
GSBPMDescription
} = queries
export default {
GSBPMDescription: {
descr: 'Retrieve a globale description of the GSBPM',
whatWeGet: 'phases',
results: {
phase: 'phase (uri)',
phaseLabel: 'phase label',
subprocess: 'subprocess (uri)',
subpr... | JavaScript | 0.000002 | @@ -134,17 +134,16 @@
a global
-e
descrip
|
5279c542a204c049f6d0f7f7d62f5e44d690ecc2 | Use of js-tokeniser | backend/tokeniser.test.js | backend/tokeniser.test.js | /*eslint-env mocha */
const should = require('should') // eslint-disable-line no-unused-vars
const tokeniser = require('js-tokeniser')
const rules = require('./rules')
describe('Tokeniser', () => {
it('should recognise comments', done => {
let result = tokeniser('// abc', rules)
result.should.be.an... | JavaScript | 0.000001 | @@ -3173,24 +3173,25 @@
n%5D')%0A
+
done()%0A %7D
|
c5ad514dd1ecdf057c5f0f5e7522b7e40534692b | Use different arity in benchmark to avoid deopt | bench/fork-performance.js | bench/fork-performance.js | /**
* Fork Performance Benchmark
* Measures the cost of forking a repo. This is a good indicator of
* start up time for complicated trees.
*/
'use strict'
const { Microcosm } = require('../build/microcosm.min')
const time = require('microtime')
const SIZES = [
100,
5000,
15000,
30000
]
console.log('\nCo... | JavaScript | 0 | @@ -458,19 +458,22 @@
%5D: (
-n
+a, b
) =%3E
-n + 1
+a + b
%0A
|
5328e8a2757e8c7f6e0fedf57230d930d3fe43fd | Add extension point to add properties to event | src/clients/appinsights/AppInsightsClient.js | src/clients/appinsights/AppInsightsClient.js | const appInsightsKey = process.env.FORTIS_SERVICES_APPINSIGHTS_KEY;
let client;
let consoleLog = console.log;
let consoleError = console.error;
let consoleWarn = console.warn;
const TRACE_LEVEL_INFO = 1;
const TRACE_LEVEL_WARNING = 2;
const TRACE_LEVEL_ERROR = 3;
function setup() {
if (appInsightsKey) {
const ... | JavaScript | 0 | @@ -1592,24 +1592,40 @@
c, eventName
+, extraPropsFunc
) %7B%0A if (!c
@@ -1642,32 +1642,137 @@
urn promiseFunc;
+%0A extraPropsFunc = extraPropsFunc %7C%7C ((returnValue, err) =%3E (%7B%7D)); // eslint-disable-line no-unused-vars
%0A%0A function eve
@@ -1932,32 +1932,89 @@
%7B%0A const
+props = extraPr... |
ab94a8f1639e8c8f5eb4214fa1c4d4d8dac2fb93 | Add paging mode route | examples/express/express.js | examples/express/express.js | 'use strict'
const path = require('path')
const express = require('express')
const hackernews = require('../../')
const app = express()
const news = hackernews()
const watchmode = process.argv.includes('--watch')
const index = `
<ul>
<li><a href="/stories/top">top</a></li>
<li><a href="/stories/new">new</a></li>
<... | JavaScript | 0.000001 | @@ -262,32 +262,98 @@
p%22%3Etop%3C/a%3E%3C/li%3E%0A
+%09%3Cli%3E%3Ca href=%22/stories/top?page=1&count=1%22%3Etop at page 1%3C/a%3E%3C/li%3E%0A
%09%3Cli%3E%3Ca href=%22/s
@@ -766,24 +766,49 @@
, res) =%3E %7B%0A
+%09console.log(req.query);%0A
%09news.storie
@@ -824,16 +824,71 @@
ams.type
+, %7B%0A%09%09page: req.... |
2648985f2cd50ad42f2f9d4d9642696fc2d022bb | update API call | get-contributors.js | get-contributors.js | #!/usr/bin/env node
/**
* Usage:
* ./get-contributors.js "project"
*
* Example:
* ./get-contributors.js macbre/phantomas
*/
var api = require('github'),
log = require('npmlog'),
format = require('util').format,
github;
var argv = process.argv.slice(2),
user = argv[0].split('/')[0],
project = argv[0].split(... | JavaScript | 0 | @@ -464,18 +464,19 @@
tors(%7B%0A%09
-us
+own
er: user
|
7d594d5857f9730048ae79cf931e25a78c466677 | Remove obsolete variable | view/dbjs/form-section-base-get-legacy.js | view/dbjs/form-section-base-get-legacy.js | 'use strict';
var forEach = require('es5-ext/object/for-each')
, normalizeOptions = require('es5-ext/object/normalize-options')
, d = require('d')
, generateId = require('time-uuid')
, resolvePropertyPath = require('dbjs/_setup/utils/resolve-property-path')
, db = r... | JavaScript | 0.023758 | @@ -642,14 +642,8 @@
1%5D),
- self,
mas
@@ -732,23 +732,8 @@
%7B%7D;%0A
-%09%09self = this;%0A
%09%09th
@@ -975,20 +975,20 @@
%0A%09%09%09if (
-self
+this
.inputOp
@@ -1049,12 +1049,12 @@
ons(
-self
+this
.inp
|
61c8ce4464e58172a89182397bfaef3ead64d14d | Test session ending | connect.js | connect.js | var alexa = require('alexa-app');
var request = require('request-promise');
var express = require('express');
var express_app = express();
var app = new alexa.app('connect');
app.express({ expressApp: express_app });
app.intent('PlayIntent', {
"utterances": [
"play",
"resume",
"continue"
... | JavaScript | 0.000001 | @@ -1270,16 +1270,24 @@
d these
+connect
devices:
@@ -1663,16 +1663,61 @@
vices);%0A
+ res.shouldEndSession(false);%0A
|
138b8cc669f274ed09337ea1cf5aa6937a1cf0ab | Update example phantomwebintro (#14545) | examples/phantomwebintro.js | examples/phantomwebintro.js | // Read the Phantom webpage '#intro' element text using jQuery and "includeJs"
"use strict";
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
page.open("http://phantomjs.org/", function(status) {
if (status === "success") {
page.includeJs("http://aj... | JavaScript | 0 | @@ -26,14 +26,16 @@
ge '
-#intro
+.version
' el
@@ -354,13 +354,13 @@
ery/
-1.6.1
+3.1.0
/jqu
@@ -416,32 +416,78 @@
te(function() %7B%0A
+ // lastest version on the web%0A
@@ -503,25 +503,25 @@
og(%22$(%5C%22
-.explanat
+span.vers
ion%5C%22).t
@@ -540,17 +540,17 @@
$(%22
-.expl... |
01a94507b7da914116e38b181918c53adf1ae862 | update regex and external path | content.js | content.js | (() => {
const $title = document.querySelector('.js-issue-title');
if (!$title) {
return;
}
chrome.storage.local.get('inlineLinks', (options) => {
let title = $title.innerHTML.replace(/(<a[^>]+>|⬆︎|<\/a>)/g, '');
title.match(/#\d+(?=[\],\s\d#]*\])/g).forEach((tag) => {
const url = `https://w... | JavaScript | 0 | @@ -245,11 +245,20 @@
ch(/
-#%5Cd
+%5Ba-zA-Z0-9-%5D
+(?=
@@ -325,60 +325,46 @@
s://
-www.pivotaltracker.com/story/show/$%7Btag.match(/%5Cd+/)
+nextcapital.atlassian.net/browse/$%7Btag
%7D%60;%0A
|
8dcb9e13d1cf54e53f5c24fc3a51aed2221d2c58 | fix 1 typo | examples/shared_testconf.js | examples/shared_testconf.js | var config = {
job_basename: require('path').basename(process.cwd()) + '_' + process.env.TRAVIS_JOB_ID,
sauceSeleniumAddress: 'localhost:4445/wd/hub',
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
browsers: [
{browserName: 'chrome'},
{browserName: 'firefox'},
{br... | JavaScript | 0.000017 | @@ -1193,16 +1193,17 @@
eName: '
+i
Phone Si
|
7021f759c85d7efb63cb6043d1a68189e35da422 | Add rpc-port to the user login token | api/user.js | api/user.js | var api = require('express').Router()
, config = require('../lib/config')
, db = require('ezseed-database').db.user
, jwt = require('express-jwt')
, prettyBytes = require('pretty-bytes')
, debug = require('debug')('ezseed:api')
, logger = require('ezseed-logger')('api')
jwt.sign = require('jsonwebtoken').s... | JavaScript | 0 | @@ -113,16 +113,63 @@
db.user%0A
+ , p = require('path')%0A , fs = require('fs')%0A
, jwt
@@ -861,16 +861,240 @@
ecret) %0A
+%0A if(user.client == 'transmission') %7B%0A var transmission = JSON.parse(fs.readFileSync(p.join(config.home, user.username, '.settings.'+user.username+'.json')))%0A u... |
023dec86037a7fade22eb7199f53edafda07c25c | update backends of mostomessages, status and frame | backends.js | backends.js | var mbc = require('mbc-common'),
search_options = mbc.config.Search,
collections = mbc.config.Common.Collections,
backboneio = require('backbone.io'),
middleware = new mbc.iobackends().get_middleware()
;
module.exports = function (db) {
var backends = {
app: {
... | JavaScript | 0 | @@ -1552,32 +1552,57 @@
ddleware.uuid%5D,%0A
+ redis: true,%0A
mong
@@ -1772,38 +1772,64 @@
: %7B%0A
-us
+redis: true,%0A stor
e:
-%5B
backboneio.middl
@@ -1865,17 +1865,16 @@
ss', %7B%7D)
-%5D
,%0A
@@ -1899,24 +1899,49 @@
messages: %7B%0A
+ redis:... |
4a97ef3d48d7d99444225eff2b07b2f6a1fb248f | Clean up convert.js code style | convert.js | convert.js | module.exports = function convert (keys, values) {
var reverse = { }
var full = { }
var i
for (i = keys.length; i--;) {
full[keys[i].toUpperCase()] = values[i].toUpperCase()
full[keys[i]] = values[i]
}
for (i in full) {
reverse[full[i]] = i
}
return {
fromEn: function (str) {
re... | JavaScript | 0.000032 | @@ -26,17 +26,16 @@
convert
-
(keys, v
@@ -56,25 +56,24 @@
reverse = %7B
-
%7D%0A var full
@@ -76,17 +76,16 @@
full = %7B
-
%7D%0A var
@@ -115,16 +115,17 @@
th; i--;
+
) %7B%0A
|
a3d136ab5c9e0f40fcec7dbde12ecec0b9df9202 | Replace references to the highlight rule's function name. | convert.js | convert.js | var fs = require('fs');
var dot = require('dot');
function fetchHighlightRules(aceSheet) {
var lines = (''+aceSheet).split('\n');
var beforeStart = true; // Before the start of the function we fetch.
var beforeEnd = true;
var result = 'function() {\n';
for (var i = 0; i < lines.length; i++) {
var line =... | JavaScript | 0 | @@ -223,16 +223,88 @@
= true;%0A
+ var functionName = ''; // Name of the real *HighlightRules function.%0A
var re
@@ -328,16 +328,16 @@
) %7B%5Cn';%0A
-
for (v
@@ -468,24 +468,97 @@
nction/)) %7B%0A
+ functionName = line.match(/ (%5Ba-zA-Z%5C$_%5D+HighlightRules) =/)%5B1%5D;%0A
befo
@@ -725,1... |
c09750335756415533cbd9848e1b099538efbe5a | Fix options extend | cordova.js | cordova.js | // The pushApi is just an Event emitter
Push = new EventEmitter();
Push.setBadge = function(count) {
// Helper
var pushNotification = window.plugins.pushNotification;
// If the set application badge is available
if (typeof pushNotification.setApplicationIconBadgeNumber == 'function') {
// Set the badge
... | JavaScript | 0.000002 | @@ -2368,16 +2368,25 @@
tions =
+_.extend(
%7B%0A ba
@@ -2495,16 +2495,26 @@
lse)%0A %7D
+, options)
;%0A%0A /
|
6a9dfdec12a61ae3c3be5710148b3c1c6b20503c | Add new life event | app/app.js | app/app.js | /* global angular */
angular.module('app', ['templates', 'ngDialog'])
.controller('AppController', ['$scope', 'ngDialog', function($scope, ngDialog) {
$scope.toDo = [
{
'name': 'Get A Job',
'where': 'Your Company',
'job': true,
'draggable': true
}
];
$scope.inProgress = [
{
... | JavaScript | 0.999999 | @@ -328,32 +328,30 @@
name': 'Web
-Develope
+Creato
r',%0A 'w
@@ -362,20 +362,17 @@
': '
-TrackInsight
+Freelance
',%0A
@@ -414,32 +414,32 @@
rue%0A %7D%0A %5D;%0A%0A
-
$scope.done =
@@ -469,32 +469,125 @@
Web Developer',%0A
+ 'where': 'TrackInsight',%0A 'job': true%0A %7D,%0A %7B%0... |
802e405f1a3786a59968fc3463610edcaeb61f1e | fix for notify that got unmerged | admin/server.js | admin/server.js | var express = require('express');
var bodyParser = require('body-parser');
var sendNotification = require('./fireBase/notification.js');
var app = express();
app.use(bodyParser.json());
var queue = [];
var notificationTimers = [];
var numberOfMonitors = 5;
var notificationTimeoutInMinutes = 5;
app.set('port', (proce... | JavaScript | 0 | @@ -5020,32 +5020,48 @@
tifyUser(user);%0A
+%09 break;%0A
%7D%0A %7D%0A
|
c817baab9eb7a7da76c5743b7f2c4c249d5396fa | add usage of react-router | app/app.js | app/app.js | /**
* Main entrance of the app.
**/
import React from 'react'
import ReactDOM from 'react-dom'
const App = ({ title = 'Hello, World!' }) => (
<div>{title}</div>
)
App.propTypes = {
title: React.PropTypes.string,
}
ReactDOM.render(<App title="Hello from Pyssion in AnYang, again!" />, document.getElementById('app... | JavaScript | 0.000001 | @@ -88,16 +88,77 @@
act-dom'
+%0Aimport %7B Router, Route, browserHistory %7D from 'react-router'
%0A%0Aconst
@@ -280,76 +280,143 @@
%0A%7D%0A%0A
-ReactDOM.render(%3CApp title=%22Hello from Pyssion in AnYang, again!%22 /%3E
+const AppRouter = (%0A %3CRouter history=%7BbrowserHistory%7D%3E%0A %3CRoute path=%22/%... |
df82e186753ce4552d99e1f96bcb54579f2ae3ab | make regexes case insenitive | app/app.js | app/app.js | 'use strict';
const TelegramBot = require('node-telegram-bot-api');
const bot_api_token = process.env.BOT_API_TOKEN;
const tgBot = new TelegramBot(bot_api_token, { polling: true });
const CronJob = require('cron').CronJob;
const Parser = require('./SVPageParser');
const Subscriptions = require('./subscriptions');
/*... | JavaScript | 0.001567 | @@ -615,16 +615,17 @@
ay)?$/mg
+i
,getToda
@@ -660,16 +660,17 @@
etDaily/
+i
,getDail
@@ -708,16 +708,17 @@
artTime/
+i
,getPart
@@ -753,16 +753,17 @@
%5C/start/
+i
,startHa
@@ -791,16 +791,17 @@
/%5C/stop/
+i
,cancelS
@@ -845,16 +845,17 @@
/cancel/
+i
,cancelS
@@ -907,16 +907,17 @@
ource/mg
+i
,getSour
|
9077d08fee6f80fd1ebb4bcb470aeefbdba4aaf4 | fix bug in expire delete job | app/app.js | app/app.js |
// Module dependencies
var express = require('express');
var strftime = require('strftime');
var _ = require('underscore');
var path = require('path');
var http = require('http');
var util = require('util');
// Internal modules
var routes = require('./routes');
var api = require('./routes/api');
var mid = require('.... | JavaScript | 0 | @@ -473,24 +473,73 @@
(express);%0A%0A
+var Paste = require('./models/paste.js').Paste;%0A%0A
// Initialis
|
f0a6476cf8c086a3d9d4dbbeef289cd05f2f3dcd | Update app.js | app/app.js | app/app.js | (function () {
'use strict';
angular
.module('DeezerKids', [
// Angular modules.
'ngRoute',
'ngCookies',
'ngAnimate',
'ngMaterial',
'ngMessages'
])
.config(config)
.run(run);
config.$inject = ['$routePr... | JavaScript | 0.000002 | @@ -388,16 +388,30 @@
rovider'
+, '$rootScope'
%5D;%0A%0A
@@ -502,16 +502,28 @@
Provider
+, $rootScope
) %7B%0A
@@ -2292,22 +2292,63 @@
grey');%0A
+ %0A $rootScope.mode = null;%0A
%7D%0A
-
%0A run
@@ -2526,32 +2526,34 @@
refresh%0A
+//
$rootScope.globa
@@ -2832,40 +2832,8 @... |
e0f9b1c4d04221f9df132507a129e53f4007ae93 | Use broadcast for parent-children communication | app/app.js | app/app.js | 'use strict';
var errorSound = "http://www.soundjay.com/button/sounds/button-10.mp3";
var startSound = "http://www.soundjay.com/misc/bell-ringing-05.mp3";
var victoryCount = 3;
var victorySeq = [3, 1, 0, 2, 3, 1, 0, 2];
// n: number, z: 0
function pad(n, width, z) {
z = z || '0';
n = n + '';
return n.leng... | JavaScript | 0.000001 | @@ -1293,32 +1293,59 @@
ghtened: false,%0A
+ enabled: true,%0A
%7D%0A %7D,
@@ -1334,24 +1334,24 @@
,%0A %7D%0A
-
%7D,%0A m
@@ -1379,32 +1379,68 @@
y: function() %7B%0A
+ if (this.enabled) %7B%0A
this
@@ -1469,16 +1469,20 @@
arken);%0A
+
... |
2c6089e70f0ed76b42a6c17f03d46d72e5674cc3 | Edit config for editor | app/app.js | app/app.js | var editor = ace.edit("game-rb-editor");
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/ruby");
editor.getSession().setTabSize(2);
editor.getSession().setUseSoftTabs(true);
var toggleConnectionStatus = function(display) {
var connStatus = document.getElementById('conn-status');
con... | JavaScript | 0.000003 | @@ -68,24 +68,68 @@
/monokai%22);%0A
+editor.getSession().setFoldStyle('manual');%0A
editor.getSe
@@ -238,16 +238,156 @@
s(true);
+%0Aeditor.setDisplayIndentGuides(true);%0Aeditor.setHighlightActiveLine(true);%0Aeditor.setShowPrintMargin(false);%0Aeditor.setShowInvisibles(true);
%0A%0Avar to
|
b6c1f6ff66967ac1f7384b9b4987f139ccbd8903 | Improve react example | examples/react/src/airbrake.js | examples/react/src/airbrake.js | import React, { Component } from 'react';
import AirbrakeClient from 'airbrake-js';
let airbrakeClient;
export function notify(err) {
if (!airbrakeClient) {
airbrakeClient = new AirbrakeClient({
projectId: 1,
projectKey: 'FIXME'
});
}
airbrakeClient.notify(err);
}
export default class Airb... | JavaScript | 0.000006 | @@ -283,16 +283,84 @@
ify(err)
+.catch(function(err) %7B%0A console.warn('notify failed:', err);%0A %7D)
;%0A%7D%0A%0Aexp
|
327763cc82d367d07d154fc2d7a55e5052d2e859 | Add stars to example | examples/symbol-atlas-webgl.js | examples/symbol-atlas-webgl.js | goog.require('ol.Feature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.geom.Point');
goog.require('ol.layer.Vector');
goog.require('ol.source.Vector');
goog.require('ol.style.AtlasManager');
goog.require('ol.style.Circle');
goog.require('ol.style.Fill');
goog.require('ol.style.Stroke');
goog.requ... | JavaScript | 0.000036 | @@ -267,24 +267,63 @@
yle.Fill');%0A
+goog.require('ol.style.RegularShape');%0A
goog.require
@@ -339,24 +339,24 @@
e.Stroke');%0A
-
goog.require
@@ -423,16 +423,118 @@
nager(%7B%0A
+ // we increase the default size so that all symbols fit into%0A // a single atlas image%0A size: 512,%0A
maxSiz
@@ -1138,16 +1... |
3691087d5e2f08a3da6e0eba35353edc65b36fa4 | Add lint config to add-domains script | scripts/add-domains.js | scripts/add-domains.js | #!/usr/bin/env node
if (process.argv.includes('--help') || process.argv.includes('-h')) {
console.info(`Usage: ${__filename.slice(__dirname.length + 1)} [-h|--help] [--dry]`);
process.exit(0);
}
const isDry = process.argv.includes('--dry');
const fs = require('fs');
process.env.ENABLE_PROVIDER_DOMAINS = 'tr... | JavaScript | 0.000001 | @@ -14,16 +14,103 @@
v node%0A%0A
+/* eslint-env node */%0A/* eslint no-console: %5B%22error%22, %7B allow: %5B%22info%22, %22warn%22%5D %7D%5D */%0A%0A
if (proc
@@ -1585,11 +1585,12 @@
ole.
-log
+warn
('!!
|
4fa616a0646b11c883d460b06b80bae2fd1d3984 | change scatter backplane acrosss to use ciecam02 | imports/3d/drawBackplane.js | imports/3d/drawBackplane.js | import THREE from 'three';
import { _ } from 'meteor/underscore';
import * as d3scale from 'd3-scale';
import * as d3shape from 'd3-shape';
import * as d3color from 'd3-color';
const d3 = { ...d3scale, ...d3color, ...d3shape };
export function drawBackplane(ctx, options) {
const defaults = {
textColor: d3.hcl(0, 0... | JavaScript | 0 | @@ -169,16 +169,71 @@
-color';
+%0Aimport %7B ciecam02 %7D from '/imports/color/ciecam02.js';
%0A%0Aconst
@@ -1037,22 +1037,25 @@
e =
-d3.hcl(h, 50,
+ciecam02.jch2rgb(
tile
@@ -1059,16 +1059,23 @@
ileValue
+, 50, h
);%0A%09%09%09ct
@@ -1217,37 +1217,41 @@
rokeStyle =
-d3.hcl(0, 0,
+ciecam02.jch2rgb(
tileVa... |
3f7befd512be3892de3602a7a3714139dfb238b7 | Fix Elastic smooth effect don't work correctly | Animable.js | Animable.js | /**
* Animable.js
*
* https://github.com/JWhile/Animable.js
*
* version 1.5.2
*
* Animable.js
*/
var anime,stopAnime,smooth;
(function(){ // namespace
// class Animation
function Animation(id, from, to, time, update, smooth)
{
this.id = id; // :int
this.from = from; // :float
this.diff = to - fr... | JavaScript | 0.000001 | @@ -2076,17 +2076,17 @@
ression
-*
+-
0.075)
|
b2b4d7e27c33ef9d2ddf402c2935384a91faf097 | combine positive filters on the same field before searching | scripts/search/search.js | scripts/search/search.js | 'use strict';
/* @flow */
type map = { [key: string]: any };
var Q = require('q');
var _ = require('lodash');
var searchCache = require('./searchInterfaceCache');
var searchInterface = require('gramene-search-client').client;
function checkRequestedResultTypesArePresent(data: map): map {
_.forIn(data.metadata.sea... | JavaScript | 0 | @@ -484,16 +484,610 @@
ata;%0A%7D%0A%0A
+function prepFilters(filters: map): void %7B%0A var newFilters = %7B%7D;%0A var fieldValues = %7B%7D;%0A for (var fq in filters) %7B%0A if (fq.substr(0,1) === '-') %7B%0A newFilters%5Bfq%5D = %7B%7D;%0A %7D%0A else %7B%0A var fv = fq.split(':');%0A va... |
9c174bd2fbf86a01f805061083ffe1f4928eb9b5 | Clean up | intents/polling_places.js | intents/polling_places.js | var utilities = require('../utilities/utilities');
var config = require('../config/config');
exports.respond = function(bot, message, response) {
if(!response.entities.location) {
bot.reply(message, 'You need to specify an address, like this: ```123 some street```');
}
else {
var payload = { address: response.e... | JavaScript | 0.000002 | @@ -876,26 +876,16 @@
ng: ' +
-utilities.
parkingC
@@ -952,26 +952,16 @@
ty: ' +
-utilities.
building
@@ -1288,24 +1288,16 @@
y code.%0A
-exports.
building
@@ -1401,24 +1401,16 @@
g code.%0A
-exports.
parkingC
|
9e30e7c2f9400018cd3d3e1466d4c09bf18289a7 | Format code. | website/app/application/core/login/login-controller.js | website/app/application/core/login/login-controller.js | (function(module) {
module.controller('LoginController', LoginController);
LoginController.$inject = ["$state", "User", "toastr",
"mcapi", "pubsub", "model.projects",
"projectFiles", "$anchorScroll", "$location"];
/* @ngInject */
function LoginController($state, User, toastr, m... | JavaScript | 0.000001 | @@ -2,16 +2,17 @@
function
+
(module)
@@ -141,20 +141,16 @@
-
%22mcapi%22,
@@ -178,20 +178,16 @@
jects%22,%0A
-
@@ -539,17 +539,16 @@
on login
-
() %7B%0A
|
e42d95d27b06494e2c051ad854075b52d9a7ea6f | Add tests for second item selection | test/Autocomplete.spec.js | test/Autocomplete.spec.js | import React from 'react';
import { shallow } from 'enzyme';
import Autocomplete from '../src/Autocomplete';
const data = {
Apple: null,
Microsoft: null,
Google: 'http://placehold.it/250x250',
'Apple Inc': null
};
const componentId = 'testAutocompleteId';
const wrapper = shallow(
<Autocomplete title="Test T... | JavaScript | 0 | @@ -1314,16 +1314,27 @@
ropdown
+first item
select',
@@ -1987,32 +1987,741 @@
%0A %7D);%0A %7D);%0A%0A
+ describe('on dropdown second item select', () =%3E %7B%0A const expectedValue = 'Apple Inc';%0A%0A beforeAll(() =%3E %7B%0A wrapper%0A .find('.autocomplete')%0A .simulate('change',... |
38f6999e1305cff96b9edae0d826d5f37ed4501a | Add newcontact controller | client/js/controllers.js | client/js/controllers.js | var curemControllers = angular.module('curemControllers', ['ngResource', 'ngRoute']);
curemControllers.factory('contactFactory', ['$resource', function($resource) {
return $resource(
'http://localhost:3000/contacts/:slug',
{slug: '@slug'},
{
'update': { method:'PATCH' }
}
);
}]);
cure... | JavaScript | 0 | @@ -866,46 +866,8 @@
);%0A%0A
-/*%0A Stub for newContactController%0A*/%0A
cure
@@ -927,27 +927,193 @@
pe',
- function($scope) %7B
+'$location','contactFactory', function($scope, $location, contactFactory) %7B%0A $scope.createNewContact = function() %7B%0A%09contactFactory.save($scope.contact);%0A%09$location.pa... |
11d3bc72cfe3350045e88960fd53a57140d338fa | move and zoom map according to locations of results | src/components/map-container/MapContainer.js | src/components/map-container/MapContainer.js | import React, { Component } from 'react';
import axios from 'axios'
import GoogleMapReact from 'google-map-react';
import './MapContainer.css'
class MapContainer extends Component {
constructor(props) {
super(props)
this.state = {
lat: -37.9722342,
lon: 144.7729551,
results: null
}
this.getUserLocat... | JavaScript | 0 | @@ -221,21 +221,29 @@
%0A%09%09this.
-sta
+defaultCen
te
+r
= %7B%0A%09%09%09
@@ -264,18 +264,18 @@
42,%0A%09%09%09l
-o
n
+g
: 144.77
@@ -283,24 +283,105 @@
9551,%0A%09%09
-%09results
+%7D%0A%09%09this.defaultZoom = 9%0A%09%09this.state = %7B%0A%09%09%09coords: null,%0A%09%09%09results: null,%0A%09%09%09zoomLev... |
570fb72355c401703e0ddc21f9d571716a150744 | remove unused variable and increase carousel width to 6 | website/static/js/home-page/institutionsPanelPlugin.js | website/static/js/home-page/institutionsPanelPlugin.js | /**
* Display a horizontal listing of clickable OSF4I logos (links to institution landing pages).
*/
'use strict';
var $ = require('jquery');
var m = require('mithril');
var utils = require('js/components/utils');
var required = utils.required;
var lodashChunk = require('lodash.chunk');
var institutionComps = requ... | JavaScript | 0 | @@ -564,9 +564,9 @@
H =
-5
+6
;%0Ava
@@ -667,34 +667,8 @@
TH);
-%0Avar LOGO_WIDTH = '120px';
%0A%0Ava
|
f3d9f6098f638dc2183ad7cb2e9e94161b869a8a | add missing config.SECRET | features/website-release.js | features/website-release.js | 'use strict';
var extend = require('extend'),
fs = require('fs-extra'),
cmd = require('child_process'),
glob = require('glob'),
WORK_PATH = 'work';
function _cleanWorkspace() {
if(fs.existsSync(WORK_PATH)) {
console.log('remove path ' + WORK_PATH);
fs.removeSync(WORK_PATH);
}
}
function ... | JavaScript | 0.000007 | @@ -5624,16 +5624,23 @@
replace(
+config.
SECRET,
|
98c7b7ea0032ab86a8bcb2b0ca118b0ed8a1c721 | Rename Client to Envoy. | rendezvous/envoy.js | rendezvous/envoy.js | var cadence = require('cadence')
var Interlocutor = require('interlocutor')
var protocols = { http: require('http'), https: require('https') }
var Conduit = require('nascent.upgrader/socket')
var Header = require('nascent.jacket')
var url = require('url')
var Cache = require('magazine')
function Client (middleware, re... | JavaScript | 0 | @@ -291,22 +291,21 @@
unction
-Client
+Envoy
(middle
@@ -585,30 +585,29 @@
d(this))%0A%7D%0A%0A
-Client
+Envoy
.prototype._
@@ -810,30 +810,29 @@
h)%0A %7D%0A%7D%0A%0A
-Client
+Envoy
.prototype._
@@ -3422,22 +3422,21 @@
tart%0A%7D%0A%0A
-Client
+Envoy
.prototy
@@ -4015,14 +4015,13 @@
new
-Client
+Envoy
... |
d43163373a5f2ced30ecbff252f0f840202e54b0 | add some examples for strings | example/transforms.js | example/transforms.js | 'use strict';
const transd = require('../'),
{ transform } = transd;
const xform = transd.compose(
transform.square,
transform.log
),
iterable = {
alpha: 1,
beta: 2,
gamma: 5,
delta: 5
};
const array = transd.into(xform, [], iterable),
obj... | JavaScript | 0.000019 | @@ -447,16 +447,65 @@
w Set(),
+ iterable),%0A string = transd.into(xform, '',
iterabl
@@ -756,12 +756,61 @@
et %7B 2, 6 %7D%0A
+console.log('String: ', string); // Set %7B 2, 6 %7D%0A
|
7292a498e333470d53d7972731756fd71c606d42 | Fix bug with empty translations showing up | scripts/TranslationSystem.js | scripts/TranslationSystem.js | var TranslationSystem = {
TRANSLATABLE_ATTRIBUTES: [
'title',
'alt',
'placeholder'
],
translations: undefined,
init: function() {
var settings = new Settings();
TranslationSystem.changeLanguage(settings.language);
$('#translations').click(function() {
... | JavaScript | 0 | @@ -482,16 +482,67 @@
riginal)
+ && TranslationSystem.translations%5Boriginal%5D.length
) %7B%0A
@@ -1238,33 +1238,24 @@
nSystem.
-translations%5Bkey%5D
+get(key)
);%0A
@@ -1807,25 +1807,16 @@
tem.
-translations%5Bkey%5D
+get(key)
);%0A
|
b0b1cfe3740451e994992c5a6b9990ab11123a76 | Clean up | web/public/js/controllers/manage-dojo-controller.js | web/public/js/controllers/manage-dojo-controller.js | 'use strict';
function manageDojosCtrl($scope, alertService, auth, tableUtils, cdDojoService, $location, cdCountriesService) {
$scope.filter = {};
$scope.filter.verified = 1;
$scope.itemsPerPage = 10;
$scope.pageChanged = function () {
$scope.loadPage($scope.filter, false);
};
var verificationStates ... | JavaScript | 0.000002 | @@ -797,18 +797,16 @@
%7B%0A
-//
%0A s
@@ -1864,78 +1864,32 @@
= %7B
-%7D;%0A filteredQuery.query = %7B%7D;%0A filteredQuery.query.filtered =
+ query: %7B filtered:
%7B%7D
+%7D%7D
;%0A%0A
@@ -1898,18 +1898,8 @@
if(
-!_.isNull(
filt
@@ -1911,64 +1911,8 @@
ail)
- && filter.email !== '' && !_.... |
962e35782e674489b2e246ede3da542a1d53a634 | Reformat protractor config | protractor.conf.js | protractor.conf.js | // Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
// Waiting for the following issues to fix e2e tests using firebase
// - https://github.com/angular/protractor/issues/4300
// - ... | JavaScript | 0.000001 | @@ -477,21 +477,16 @@
specs: %5B
-%0A
'./e2e/*
@@ -501,19 +501,16 @@
spec.ts'
-%0A
%5D,%0A cap
@@ -526,17 +526,16 @@
: %7B%0A
-'
browserN
@@ -537,17 +537,16 @@
wserName
-'
: 'chrom
@@ -736,17 +736,10 @@
=%3E
-undefined
+%7B%7D
%0A %7D
|
7729a7409494b5a893af296d6ba7fc2b7a68435c | Rename module home.controller -> home.module. Refactoring. Added component | angular-lazyload-webpack/src/pages/home/controllers/home.controller.js | angular-lazyload-webpack/src/pages/home/controllers/home.controller.js | "use strict";
class HomeController {
constructor() {}
}
const HOME_CTRL = angular
.module("home.controller", [])
.controller("HomeController", HomeController);
export { HOME_CTRL };
| JavaScript | 0 | @@ -59,25 +59,127 @@
%0A%0Aconst
-HOME_CTRL
+homeComponent = %7B%0A template: require(%22../views/home.html%22),%0A controller: HomeController%0A%7D;%0A%0Aconst HOME_MODULE
= angul
@@ -197,26 +197,22 @@
e(%22home.
-control
+modu
le
-r
%22, %5B%5D)%0A
@@ -219,49 +219,46 @@
.co
-ntroller(%22H
+mponent(%22h
o... |
bd99b9b82bac8e9035e1848d55a79e99104f90e5 | Disable E2E tests temporarily | protractor.conf.js | protractor.conf.js | exports.config = {
baseUrl: 'http://localhost:8000/',
framework: 'jasmine',
specs: 'e2e/**/*.test.js',
capabilities: {
browserName: 'phantomjs',
shardTestFiles: true,
maxInstances: 4,
'phantomjs.binary.path': './node_modules/phantomjs-prebuilt/bin/phantomjs'
},
se... | JavaScript | 0 | @@ -102,12 +102,16 @@
*/*.
-test
+disabled
.js'
|
c619b79276be80db73442cee0b4dfd4b975bfed9 | Fix placeholder text when empty alias input after generating alias (#4032) | src/Umbraco.Web.UI.Client/src/common/directives/components/umbGenerateAlias.directive.js | src/Umbraco.Web.UI.Client/src/common/directives/components/umbGenerateAlias.directive.js | /**
@ngdoc directive
@name umbraco.directives.directive:umbGenerateAlias
@restrict E
@scope
@description
Use this directive to generate a camelCased umbraco alias.
When the aliasFrom value is changed the directive will get a formatted alias from the server and update the alias model. If "enableLock" is set to <code>tr... | JavaScript | 0 | @@ -2786,16 +2786,17 @@
+
$timeout
@@ -2871,10 +2871,10 @@
if
-(
+(
valu
@@ -2923,26 +2923,24 @@
== null) %7B%0A%0A
-
@@ -3300,32 +3300,34 @@
+
scope.alias = sa
@@ -3360,33 +3360,105 @@
-%7D
+ %7D%0A scope.placeholderT... |
827c5adc6c9ce1c5ba7fded7b1336cc0a2fe90bf | add id to add link; add id to remove link | lib/js/advance_search/advance_search.js | lib/js/advance_search/advance_search.js | var AdminData = AdminData || {};
AdminData.advanceSearch = {
buildFirstRow: function() {
var img = $('<img />', {
src: 'https://github.com/neerajdotname/admin_data/raw/rails3_gem/public/images/add.png'
});
$('#advance_search_table').append(this.buildRow()).find('tr td:last a').removeClass('remove_row').ad... | JavaScript | 0.000001 | @@ -285,16 +285,44 @@
ast a').
+attr('id','add_row_link_1').
removeCl
@@ -2024,32 +2024,105 @@
%5D%5Bcol3%5D'%0A%09%09%7D);%0A%0A
+ $tr.find('.remove_row').attr('id', 'remove_row_'+currentRowNumber);%0A%0A
%09%09return $tr;%0A%09%7D
|
6af3c9a8ac801d41c89e61d2ddbdd9d849a77e32 | Remove onRequest function usages | components/org.wso2.carbon.uuf.common.foundation.ui/src/main/fragments/uuf-client/uuf-client.js | components/org.wso2.carbon.uuf.common.foundation.ui/src/main/fragments/uuf-client/uuf-client.js | /**
* @license
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.... | JavaScript | 0 | @@ -693,14 +693,10 @@
n on
-Reques
+Ge
t(en
|
ef457ca69b9fcb89b2760e10c5ba3817185d3f89 | Disable crossdomainrpc_test | protractor_spec.js | protractor_spec.js | // TODO(joeltine): Remove promise module when stable node version supports it
// natively.
var Promise = require('promise');
var allTests = require('./alltests');
// Timeout for individual test package to complete.
var TEST_TIMEOUT = 45 * 1000;
var TEST_SERVER = 'http://localhost:8080';
var IGNORED_TESTS = [
// Test... | JavaScript | 0 | @@ -873,16 +873,63 @@
st.html'
+,%0A 'closure/goog/net/crossdomainrpc_test.html'
%0A%5D;%0A%0Ades
|
67cf0a1fc7942dbdf177dee32ad4774322163f08 | make sure that option.token is a string | lib/lambdacloud/lambdacloud-uploader.js | lib/lambdacloud/lambdacloud-uploader.js | 'use strict';
var Writable = require('stream').Writable;
var _ = require('lodash');
var log = require('debug');
var request = require('request');
var retry = require('retry');
var util = require('util');
var moment = require('moment');
var SHA256 = require("crypto-js/sha256");
// Enable debugging
log.enable('lambdacl... | JavaScript | 0.999928 | @@ -1604,16 +1604,170 @@
n;%0A %7D%0A%0A
+ if (!_.isString(this.option.token)) %7B%0A console.error(%22bad request,token is not a string, you can check '--token'%22);%0A callback();%0A return;%0A %7D%0A%0A
var bo
|
12cf0f39a2d3eec2a396359178616f9bf8f92962 | Add confirm prompts for self-service cancel buttons | scripts/selfservice.js | scripts/selfservice.js | var remoteUrl = "https://api.carpoolvote.com/live";
// Create a data object containing all URL query string data:
var data = tinyQuery.getAll();
if (data.uuid_driver) {
data.uuid = data.uuid || data.uuid_driver;
data.type = data.type || 'driver';
}
if (data.uuid_rider) {
data.uuid = data.uuid || data.uuid_rider... | JavaScript | 0 | @@ -2041,24 +2041,138 @@
Request() %7B%0A
+ if (!window.confirm('This will cancel your ride request. Are you sure you want to proceed?')) %7B%0A return;%0A %7D%0A
sendAjaxRe
@@ -2170,32 +2170,32 @@
endAjaxRequest(%0A
-
%7B%0A uuid
@@ -2300,32 +2300,144 @@
lRiderMatch() %7B%0A
+ if (!window.confirm... |
bfb0983f1155ae89f23da3bbf3ca78129c824cc5 | add usage instructions | native/blockstackProxy.js | native/blockstackProxy.js | var http = require("http"),
path = require("path"),
url = require("url"),
fs = require("fs"),
port = process.argv[2] || 8888;
basePath = process.argv[3] || "./browser";
/*
Our own quick mime lookup because nexe fails to
include the npm package mime's list of mime types
*/
var mimeLookup = func... | JavaScript | 0.011399 | @@ -1,12 +1,139 @@
+/*%0A Quick and dirty server for serving single page apps on localhost. %0A%0A Usage:%0A node blockstackProxy.js %3Cport%3E %3CbasePath%3E%0A*/%0A%0A
var http = r
|
8c269883fd4353414ea5b6cf77c80bfa54a4ae2f | remove a duplicate file in angularFiles.js | angularFiles.js | angularFiles.js | angularFiles = {
'angularSrc': [
'src/Angular.js',
'src/loader.js',
'src/AngularPublic.js',
'src/jqLite.js',
'src/apis.js',
'src/auto/injector.js',
'src/ng/anchorScroll.js',
'src/ng/browser.js',
'src/ng/cacheFactory.js',
'src/ng/compile.js',
'src/ng/controller.js',
's... | JavaScript | 0.000001 | @@ -2215,42 +2215,8 @@
s',%0A
- 'src/ngScenario/Describe.js',%0A
|
084b9135df549c3f3127d5a656d25e7a3edb86fd | Add ability to add properties at the end. | arguable.js | arguable.js | var stream = require('stream')
var events = require('events')
var exit = require('./exit')
var Program = require('./program')
var slice = [].slice
// Use given stream or create pseudo-stream.
function createStream (s) { return s || new stream.PassThrough }
module.exports = function () {
// Variadic arguments.
... | JavaScript | 0 | @@ -1047,24 +1047,66 @@
gs.shift()%0A%0A
+ var properties = vargs.shift() %7C%7C %7B%7D%0A%0A
var invo
@@ -5758,16 +5758,28 @@
perties,
+ properties,
options
|
eecf3fd49ea355ba32e8faaff0e64571a472d52f | Send user email if logged in | controllers/home_controller.js | controllers/home_controller.js | module.exports = {
index: function(req, res, next){
res.render('index');
}
};
| JavaScript | 0 | @@ -70,16 +70,58 @@
('index'
+, %7Buser: req.user ? req.user.email : null%7D
);%0A %7D%0A%0A
|
fc9a25f7a1e6c790ff4e276d0f7058e81c8240de | Include missing next param. | controllers/new_transaction.js | controllers/new_transaction.js | var async = require('async');
var _ = require('underscore');
var graph = require('fbgraph');
/**
* GET /new_transaction
* Contact form page.
*/
exports.getNewTransaction = function(req, res) {
var token = _.findWhere(req.user.tokens, { kind: 'facebook' });
graph.setAccessToken(token.accessToken);
async.paral... | JavaScript | 0 | @@ -183,24 +183,30 @@
ion(req, res
+, next
) %7B%0A var to
|
4cf6b384d5bbda0f5d37ebfe7dd5c5215b170897 | Rearrange exports | lib/node_modules/@stdlib/utils/index.js | lib/node_modules/@stdlib/utils/index.js | 'use strict';
// MODULES //
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
// UTILS //
var utils = {};
setReadOnly( utils, 'fs', {} );
// General:
setReadOnly( utils, 'setReadOnly', setReadOnly );
setReadOnly( utils, 'isLittleEndian', require( '@stdlib/utils/is-little-endian' ) );
setRea... | JavaScript | 0.000036 | @@ -2057,32 +2057,98 @@
s-number' ) );%0A%0A
+setReadOnly( utils, 'isNaN', require( '@stdlib/utils/is-nan' ) );%0A
setReadOnly( uti
@@ -2471,74 +2471,8 @@
);%0A
-setReadOnly( utils, 'isNaN', require( '@stdlib/utils/is-nan' ) );%0A
setR
|
f80d57203e65e5078731e415c5395def92b7e16a | create empty stats for missing content types | lib/plugins/coach/pagexrayAggregator.js | lib/plugins/coach/pagexrayAggregator.js | 'use strict';
const statsHelpers = require('../../support/statsHelpers'),
forEach = require('lodash.foreach');
const METRIC_NAMES = ['transferSize', 'contentSize', 'requests'];
const CONTENT_TYPES = ['html', 'javascript', 'css', 'image', 'font'];
module.exports = {
stats: {},
addToAggregate(pageSummary) {
le... | JavaScript | 0.000001 | @@ -841,32 +841,187 @@
;%0A %7D);%0A
+ %7D else %7B%0A METRIC_NAMES.forEach(function(metric) %7B%0A statsHelpers.pushStats(stats, contentType + '.' + metric, 0);%0A %7D);%0A
%7D%0A
|
ed9473377b74303afdafeb8d09f28fd2a5db5241 | Fix confirm message in external links edit link view | entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarEditLinkView.js | entry_types/scrolled/package/src/contentElements/externalLinkList/editor/SidebarEditLinkView.js | import {ConfigurationEditorView, TextInputView, CheckBoxInputView, TextAreaInputView} from 'pageflow/ui';
import {editor, FileInputView} from 'pageflow/editor';
import Marionette from 'backbone.marionette';
import I18n from 'i18n-js';
export const SidebarEditLinkView = Marionette.Layout.extend({
template: (data) => ... | JavaScript | 0 | @@ -2043,23 +2043,37 @@
if (
-confirm
+window.confirm(I18n.t
('pagefl
@@ -2147,16 +2147,17 @@
_link'))
+)
%7B%0A
|
ebec266f0a5eabe24f275086d89dc65be8ff1113 | Update expected .grn dump | test/api-configuration.js | test/api-configuration.js | var utils = require('./test-utils');
var assert = require('chai').assert;
var fs = require('fs');
var nroonga = require('nroonga');
var temporaryDatabase;
suiteSetup(function() {
temporaryDatabase = utils.createTemporaryDatabase();
});
suiteTeardown(function() {
temporaryDatabase.teardown();
temporaryDatabase ... | JavaScript | 0 | @@ -1053,168 +1053,229 @@
nies
-_BigramTerms TABLE_PAT_KEY%7CKEY_NORMALIZE ShortText --default_tokenizer TokenBigram%5Cn' +%0A 'table_create companies TABLE_HASH_KEY ShortText'
+ TABLE_HASH_KEY ShortText%5Cn' +%0A 'table_create companies_BigramTerms ' +%0A ... |
d5be79d7efe530a42d21d1d0da9329d34b2c10a7 | Add missing containers prop in ContainerSelect tests. | assets/js/modules/tagmanager/components/common/ContainerSelect.test.js | assets/js/modules/tagmanager/components/common/ContainerSelect.test.js | /**
* Container Select component tests.
*
* Site Kit by Google, Copyright 2020 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/licenses/LICE... | JavaScript | 0 | @@ -1706,32 +1706,50 @@
%3CContainerSelect
+ containers=%7B %5B%5D %7D
/%3E, %7B registry
@@ -2452,16 +2452,34 @@
erSelect
+ containers=%7B %5B%5D %7D
/%3E, %7B r
|
c9ab977d736c64c43e1580283ae219759bcf833a | Fix unit tests | test/app-tests/joining.js | test/app-tests/joining.js | /*
Copyright 2016 OpenMarket 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 agreed to in writing, software
... | JavaScript | 0.000003 | @@ -3080,57 +3080,217 @@
sing
-AccessToken(HS_URL, IS_URL, USER_ID, ACCESS_TOKEN
+Creds(%7B%0A homeserverUrl: HS_URL,%0A identityServerUrl: IS_URL,%0A userId: USER_ID,%0A accessToken: ACCESS_TOKEN,%0A guest: false,%0A %7D
);%0A
|
161978ab05c5541d405acce7cd7ea23d3d4d8b71 | Fix tests | test/app-tests/joining.js | test/app-tests/joining.js | /*
Copyright 2016 OpenMarket 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 agreed to in writing, software
... | JavaScript | 0.000003 | @@ -2848,24 +2848,103 @@
hunk: %5B%5D%7D);%0A
+ httpBackend.when('GET', '/thirdparty/protocols').respond(200, %7B%7D);%0A
@@ -5485,32 +5485,259 @@
%7D).then(() =%3E %7B%0A
+ // wait for the join request to be made%0A return q.delay(1);%0A %7D).then(() ... |
42b44e51f2c5366a23d57ebbbc5963d2c048b9bd | test order of layers | test/base/feed-forward.js | test/base/feed-forward.js | 'use strict';
import assert from 'assert';
import FeedForward from '../../src/feed-forward';
import { input, output, convolution, relu, pool, softMax } from '../../src/layer';
describe('FeedForward Neural Network', () => {
describe('instantiation', () => {
describe('flat hiddenLayer option', () => {
it('ca... | JavaScript | 0.000002 | @@ -105,16 +105,23 @@
put,
+ Input,
output,
con
@@ -116,16 +116,24 @@
output,
+ Output,
convolu
@@ -142,21 +142,55 @@
on,
-relu, pool, s
+Convolution, relu, Relu, pool, Pool, softMax, S
oftM
@@ -1124,24 +1124,270 @@
length, 9);%0A
+ assert.deepEqual(net.layers.map(layer =%3E layer.constructor), %5B%... |
0c2c52e590be5fa4a22f1a4c9fb78d5061652d5d | fix nanoModal reference | lib/settings-forum/delete-modal-view.js | lib/settings-forum/delete-modal-view.js | import modal from 'nanomodal';
import FormView from '../form-view/form-view';
import template from './delete-modal.jade';
import forumStore from '../forum-store/forum-store';
export default class DeleteForumModal extends FormView {
/**
* Creates a profile edit view
*/
constructor (forum) {
super(templa... | JavaScript | 0 | @@ -1,16 +1,20 @@
import
-m
+nanoM
odal fro
@@ -797,17 +797,21 @@
modal =
-m
+nanoM
odal('',
|
a92582a477c53f6bea8c222de4611cdae574e3d0 | add placeholders for clisk on mocked request | lib/ui/components/new/MockedRequests.js | lib/ui/components/new/MockedRequests.js | import React from 'react';
import styled from 'styled-components';
const List = styled.div`
`;
const Mock = styled.div`
display: flex;
align-items: center;
padding: 4px;
background-color: ${(props) => props.isSelected ? '#cbddf5' : 'white'};
&:hover {
cursor: ${(props) => props.isSelected ? 'default'... | JavaScript | 0 | @@ -756,16 +756,30 @@
(mock) %7D
+%0A
isSelec
@@ -813,16 +813,147 @@
edMock %7D
+%0A onDoubleClick=%7B () =%3E console.log('RENAME MOCK') %7D%0A onContextMenu=%7B () =%3E console.log('CONTEXT MENU') %7D
%3E%0A
|
9ae7aaecbf423392b6879da458c83a53a6023026 | add filename key to output | server/core/compile.js | server/core/compile.js | 'use babel';
/* @flow */
/**
* Compile Data With Template
*
* The MIT License (MIT)
* Copyright (c) 2014 Equan Pr.
*/
'use strict';
var TEMPLATE_INDEX = 'template/index.hbs';
var STATIC_FOLDER = 'static';
var fs = require('fs');
var handlebars = require('handlebars');
var mkdirp = require('mkdirp');
var root = requi... | JavaScript | 0.000003 | @@ -401,16 +401,31 @@
Filename
+, cleanHtmlTags
%7D = req
@@ -2074,16 +2074,30 @@
title:
+cleanHtmlTags(
postTitl
@@ -2097,16 +2097,17 @@
ostTitle
+)
,%0A
@@ -2193,16 +2193,64 @@
pCreated
+,%0A filename: filename
%0A
|
6742625afe6ed1f36d6c1eeea050ad8f013f0b6a | Fix typo | server/downloadUrls.js | server/downloadUrls.js | var urlJoin = Npm.require('url-join');
// Global for tests.
parseMacDownloadUrl = function(electronSettings) {
if (!electronSettings || !electronSettings.downloadUrls || !electronSettings.downloadUrls.darwin) return;
return electronSettings.downloadUrls.darwin.replace('{{version}}', electronSettings.version);
};
... | JavaScript | 0.999999 | @@ -1865,27 +1865,26 @@
y %60serve
-DownloadUrl
+UpdateFeed
%60 since
|
70547272efd7a1bc27fd23f3fd6af53ccda55dd3 | Making consistent | test/attachments/test.js | test/attachments/test.js | /*global require:true */
require(['backbone', 'jquery'], function (Backbone, jquery) {
$('#versions').append('<li>Backbone: ' + Backbone.VERSION + '</li>');
var DumbView = Backbone.View.extend({
tagName: "li",
render: function(){
var view = this;
var list = $("<ul></ul>");
list.append('<l... | JavaScript | 0.999774 | @@ -561,18 +561,17 @@
/ Print
-10
+5
rows ou
@@ -1675,18 +1675,17 @@
limit%22:
-10
+5
%7D;%0A%0A
@@ -2415,18 +2415,17 @@
limit%22:
-10
+5
, %22desce
|
0e3af43d15d4981834738427c6ec102f67e73488 | Add last-step casper test | test/casper/last-step.js | test/casper/last-step.js | module.exports = function(conjure) {
'use strict';
conjure.test('r1', function() {
this.describe('click', function() {
this.it('should tag last step in native-click mode' , function() {
this.conjure.click('body', true);
});
this.it('should tag last step in jQuery-click mode' , functio... | JavaScript | 0 | @@ -910,32 +910,1209 @@
%7D);%0A %7D);%0A%0A
+ this.describe('each', function() %7B%0A this.it('should tag last step' , function() %7B%0A this.conjure.each(%5B1%5D, function() %7B%0A this.test.assertEquals(1, 1);%0A %7D);%0A %7D);%0A %7D);%0A%0A this.describe('openHash',... |
fc2aa864246976e0f833f0363a823f07cdb8f5be | set socketio transports websocket as default | sensor/GuardianSensor.js | sensor/GuardianSensor.js | /* Copyright 2016 Firewalla LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | JavaScript | 0.000001 | @@ -4418,16 +4418,25 @@
erver, %7B
+%0A
path: %60/
@@ -4459,62 +4459,141 @@
.io%60
-%7D);%0A %7D else %7B%0A this.socket = io.connect(server
+,%0A transports: %5B'websocket'%5D%0A %7D);%0A %7D else %7B%0A this.socket = io(server, %7B%0A transports: %5B'websocket'%5D%0A ... |
d35ad332e37a78f3cc2ff89d549c36123dbbcfcc | fix youtube url check | sentigator/sentigator.js | sentigator/sentigator.js | // Include The 'http' Module
var http = require("http");
// Include The 'url' Module
var url = require("url");
// Include The 'request' Module
var request = require("request");
// Include The 'async' Module
var async = require("async");
// Include The 'JSONStream' Module
var jsonStream = require("JSONStream");
// ... | JavaScript | 0 | @@ -2207,16 +2207,18 @@
ndexOf(%22
+yo
utube.co
|
dd19327e2383f9cd8fe238b19b182fa236667f04 | Update Just-Eat rating | extension/chrome/js/content.js | extension/chrome/js/content.js | init();
urls = [chrome.extension.getURL("images/fhrs_0_en-gb.jpg"),
chrome.extension.getURL("images/fhrs_1_en-gb.jpg"),
chrome.extension.getURL("images/fhrs_2_en-gb.jpg"),
chrome.extension.getURL("images/fhrs_3_en-gb.jpg"),
chrome.extension.getURL("images/fhrs_4_en-gb.jpg"),
chrome.extension.getURL... | JavaScript | 0 | @@ -3176,25 +3176,8 @@
le='
-margin-top: 10px;
floa
@@ -3198,17 +3198,17 @@
n-top: -
-3
+4
0px;marg
@@ -3216,16 +3216,34 @@
n-right:
+ 10px;padding-top:
20px;'%3E
|
2b76d1c99a53b9469904254db90dd39a8e6bd55c | add test for video xss challenge | test/e2e/complainSpec.js | test/e2e/complainSpec.js | const config = require('config')
const path = require('path')
const utils = require('../../lib/utils')
describe('/#/complain', () => {
let file, complaintMessage, submitButton
protractor.beforeEach.login({ email: 'admin@' + config.get('application.domain'), password: 'admin123' })
beforeEach(() => {
browse... | JavaScript | 0 | @@ -4210,12 +4210,788 @@
%7D)%0A %7D)
+%0A%0A describe('challenge %22videoXssChallenge%22', () =%3E %7B%0A it('should be possible to inject js in subtitles by uploading zip file with filenames having path traversal', () =%3E %7B%0A const EC = protractor.ExpectedConditions%0A complaintMessage.sendKeys('... |
9f42b8b41fa481816083ce0b17fc9586440ec368 | fix variable name for tests | test/engine.io-client.js | test/engine.io-client.js |
var expect = require('expect.js');
var eio = require('../');
describe('engine.io-client', function () {
it('should expose protocol number', function () {
expect(eio.protocol).to.be.a('number');
});
it('should properly parse http uri without port', function(done) {
var server = eio('http://localhost');... | JavaScript | 0.000039 | @@ -272,38 +272,38 @@
done) %7B%0A var
-server
+client
= eio('http://l
@@ -310,38 +310,38 @@
ocalhost');%0A
-server
+client
.on('close', fun
@@ -375,38 +375,38 @@
%7D);%0A expect(
-server
+client
.port).to.be('80
@@ -405,38 +405,38 @@
o.be('80');%0A
-server
+client
.close();%0A %7D);%0A
@@ -50... |
7aad716216bbb00f805963a4d6f63447ccf9d59e | add the “error” action | test/fixtures/actions.js | test/fixtures/actions.js | module.exports = {
toUpper({args: {message}}) {
return message.toUpperCase();
},
customEvent({emit}) {
emit({fooEvent: 'foobar'});
}
}; | JavaScript | 0.000008 | @@ -159,11 +159,84 @@
);%0A %7D
+,%0A%0A error() %7B%0A throw new Error('something went wrong!');%0A %7D,
%0A%7D;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.