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 |
|---|---|---|---|---|---|---|---|
5dc471343e671cd063cc9b9d2f79e1f1b2e514f1 | fix carousel slides | client/js/ratings.js | client/js/ratings.js | angular.module('onTappApp.ratings', [])
.controller('RatingsController', ['$scope', 'breweries', function($scope, breweries) {
$scope.rate = 0;
$scope.max = 5;
$scope.isReadonly = false;
$scope.hoveringOver = function(value) {
$scope.overStar = value;
$scope.percent = 100 * (value / $sco... | JavaScript | 0 | @@ -196,16 +196,206 @@
false;%0A%0A
+ var allBreweries = %5B%5D;%0A%0A var handleSuccess = function(data, status)%7B%0A allBreweries = data.data;%0A $scope.addSlide();%0A %7D;%0A%0A breweries.getData().success(handleSuccess);%0A%0A
$sco
@@ -426,24 +426,24 @@
on(value) %7B%0A
-
$scope... |
aceb6246ac8e079148d3964bb608ef595287f16d | Fix XSS injection | client/src/views/member.js | client/src/views/member.js | _kiwi.view.Member = Backbone.View.extend({
tagName: "li",
initialize: function (options) {
this.model.bind('change', this.render, this);
this.render();
},
render: function () {
var $this = this.$el,
prefix_css_class = (this.model.get('modes') || []).join(' ');
... | JavaScript | 0.000001 | @@ -614,16 +614,25 @@
ender =
+_.escape(
this.mod
@@ -647,16 +647,17 @@
gender')
+)
,%0A
@@ -1416,32 +1416,41 @@
ltip_content +=
+_.escape(
this.model.get('
@@ -1454,16 +1454,17 @@
t('age')
+)
+ ' ' +
@@ -2143,16 +2143,25 @@
tent +=
+_.escape(
this.mod
@@ -2174,16 +2174,17 @@
('info')
+)
;%0A ... |
dc9c87331cdb0304af6bc54bd4bbf3617d21cd94 | Fix runner to ignore skipped tests | test/browser/runner.js | test/browser/runner.js | var system = require('system');
function waitFor(testFx, onReady, timeOutMillis) {
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 30000,
start = new Date().getTime(),
condition = false,
interval = setInterval(function() {
if ( (new Date().getTime() - start < maxtimeOutMillis) && !condition ... | JavaScript | 0.000001 | @@ -1450,65 +1450,232 @@
-system.stdout.write(items%5Bindex%5D === 'passed' ? '.' : 'X'
+var item = '';%0A switch (items%5Bindex%5D) %7B%0A case 'skipped': item = ''; break;%0A case 'passed': item = '.'; break;%0A case 'failed': item = 'X'; break;%0A %7D%0A syste... |
310e01c731b0a60ec1da06aa8c129723da995909 | fix karma test, use preact | client/karma.conf.js | client/karma.conf.js | /*eslint-env node */
const _ = require("lodash");
const webpack = require("webpack");
const path = require("path");
const webpackConfig = require("./webpack.dev");
webpackConfig.devtool = "cheap-module-source-map";
module.exports = function(config) {
webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, ... | JavaScript | 0.000001 | @@ -47,74 +47,8 @@
%22);%0A
-const webpack = require(%22webpack%22);%0Aconst path = require(%22path%22);%0A
cons
@@ -183,138 +183,8 @@
) %7B%0A
- webpackConfig.resolve.alias = _.omit(webpackConfig.resolve.alias, %5B%0A %22react%22,%0A %22react-dom%22,%0A %22create-react-class%22%0A %5D);
%0A c
|
6a012523b154038dad25ae4fad6e02de24bdb8cb | Add logic to fold/call before flop | player.js | player.js | l = console.log;
function toNum(c) {
switch(c) {
case 'J':
return 11;
break;
case 'Q':
return 12;
break;
case 'K':
return 13;
break;
case 'A':
return 14;
break;
default:
... | JavaScript | 0.000009 | @@ -854,16 +854,279 @@
%7D%0A%7D%0A%0A
+function lameCards(cards) %7B%0A // return TRUE if the cards are LAME%0A if (%0A toNum(cards%5B0%5D.rank) %3C 9 &&%0A toNum(cards%5B1%5D.rank) %3C 9 &&%0A cards%5B0%5D.rank != cards%5B1%5D.rank%0A ) %7B%0A return true%0A %7D else %7B... |
aaaabd9fb0631df79a022fb600f2689b3f584b7c | Remove unused extension point in computeContextFromReq | packages/vulcan-lib/lib/server/apollo-server/context.js | packages/vulcan-lib/lib/server/apollo-server/context.js | /**
* Context prop of the ApolloServer config
*
* It sets up the server options based on the current request
* Replacement to the syntax graphqlExpress(async req => {... })
* Current pattern:
* @see https://www.apollographql.com/docs/apollo-server/migration-two-dot.html#request-headers
* @see https://github.com/... | JavaScript | 0 | @@ -2609,256 +2609,14 @@
text
-, customContextFromReq) =%3E %7B%0A // givenOptions can be either a function of the request or an object%0A const getBaseContext = req =%3E%0A customContextFromReq%0A ? %7B ...currentContext, ...customContextFromReq(req) %7D%0A : %7B ...currentContext %7D;%0A
+) =%3E %7B
... |
2315ea7b56b7526faa6a47210d0adc03d7333da1 | Revert threshold | shy-navbar.js | shy-navbar.js | //
// shy-navbar.js - Add “shyness” into your navigation bar.
// https://github.com/lqez/shy-navbar
//
// usage : $("#navbar").shy();
//
(function ($) {
$.fn.shy = function(options) {
if (options == 'off' || options == 'brave') {
this.brave();
return;
}
// for re-init... | JavaScript | 0.000002 | @@ -555,17 +555,17 @@
ldDown:
-5
+8
0,%0A
|
292709be70948f1b6f7948da8b310e7ecf3b8fff | add insertNode to edt | src/sqedt.js | src/sqedt.js | 'use strict';
var utils = require('./utils');
var DEFAULT_CONFIG = {};
function Edt(config) {
this.el = config.el;
this.sl = window.getSelection();
this.callbackInChange = (s) => {
console.log('default callbackInChange');
};
}
const createInstance = config => new Edt(config);
const SQEdt=(el,option)=>{... | JavaScript | 0.000001 | @@ -484,16 +484,50 @@
edt;%0A%7D%0A%0A
+Edt.prototype.insertNode()%7B%0A %0A%7D%0A%0A
module.e
|
dae1ccbe1206f8f3151090b2f103914ae0d70a61 | fix tests of transitions | test/client/spec/victory-util/transitions.spec.js | test/client/spec/victory-util/transitions.spec.js | /* eslint no-unused-expressions: 0 */
/* global sinon */
import { Transitions } from "src/index";
import React from "react";
describe("getInitialTransitionState", () => {
const makeChild = (data) => {
return React.createElement("div", {data});
};
it("returns a 'falsey' transition object if children are not ... | JavaScript | 0.000001 | @@ -530,39 +530,112 @@
odesShouldEnter:
+ false,%0A nodesDoneClipPathEnter: false,%0A nodesDoneClipPathExit:
false%0A
-
%7D);%0A %7D);%0A%0A
@@ -1018,32 +1018,105 @@
odesShouldEnter:
+ false,%0A nodesDoneClipPathEnter: false,%0A nodesDoneClipPathExit:
false%0A %7D);%0A
@@ -1530,32 +... |
f3ecabecbce46f7f665b370c274c7e816acd6635 | Change "Count" to "Number" in Dashboard Visualization | demo/js/components/dashboard-visualization.js | demo/js/components/dashboard-visualization.js | angular.module('yds').directive('ydsDashboardVisualization', ['DashboardService', '$ocLazyLoad', '$timeout',
function (DashboardService, $ocLazyLoad, $timeout) {
return {
restrict: 'E',
scope: {
projectId: '@', // Project ID of chart
dashboardI... | JavaScript | 0.000012 | @@ -2691,13 +2691,14 @@
t: %22
-Count
+Number
%22,%0A
|
5a01d68f15f66e7cb7b53b5a60497ae5ae22c6a2 | Fix issue with constructing the keys prefix by name and storeName options | src/webStorage.js | src/webStorage.js | /**
* webStorage.js
* A minimal Javascript wrapper to work with Web Storage
*/
(function (name, context, definition) {
'use strict';
if (typeof module !== 'undefined' && module.exports) {
module.exports = definition();
} else if (typeof define === 'function' && define.amd) {
define(defini... | JavaScript | 0.000001 | @@ -3308,16 +3308,17 @@
rageKey
++
= name !
@@ -3340,35 +3340,16 @@
!== '' ?
- finalStorageKey +=
name +
@@ -3405,16 +3405,17 @@
rageKey
++
= storeN
@@ -3447,35 +3447,16 @@
!== '' ?
- finalStorageKey +=
storeNa
@@ -3715,20 +3715,28 @@
name:
-null
+'webStorage'
,%0A
|
c4b5fca20c68779ab9a0d6f37fa2c81bba26d6ac | Update nav.js | client/layout/nav.js | client/layout/nav.js | 'use strict';
import { $ } from 'meteor/jquery';
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { dbSeason } from '../../db/dbSeason';
import { dbResourceLock } from '... | JavaScript | 0 | @@ -2192,16 +2192,17 @@
%0A $('
+#
nav')%0A
|
0727f5558ac26e0571500f604e7222760ac70be4 | Remove maxExtent, maxResolution and units options. See #219 | examples/google-static.js | examples/google-static.js | var options = {
singleTile: true,
ratio: 1,
isBaseLayer: true,
wrapDateLine: true,
getURL: function() {
var center = this.map.getCenter().transform("EPSG:3857", "EPSG:4326"),
size = this.map.getSize();
return [
this.url, "¢er=", center.lat, ",", center.lon... | JavaScript | 0 | @@ -468,131 +468,8 @@
p%22,%0A
- maxExtent: %5B-20037508.34, -20037508.34, 20037508.34, 20037508.34%5D,%0A maxResolution: 156543.03390625,%0A units: %22m%22,%0A
|
e02be7d23da812f693d5f1f37aa38f837780f0d1 | Return the agent id and the skill id | examples/transfer2same-agent-bot/Utils.js | examples/transfer2same-agent-bot/Utils.js | 'use strict';
/**
*
* @param data the result that came out from the history api getting recently (last 10) consumers conversations
*/
function getAgentIdForBestConversationMCS (data) {
let conversations = data.conversationHistoryRecords;
let mcsArr = [];
conversations.forEach((conversation) => {
... | JavaScript | 0.999994 | @@ -140,34 +140,36 @@
unction getAgent
-Id
+Data
ForBestConversat
@@ -450,13 +450,13 @@
-%22mcs%22
+'mcs'
: co
@@ -500,17 +500,17 @@
-%22
+'
agentId
-%22
+'
: co
@@ -538,16 +538,80 @@
tAgentId
+,%0A 'skillId': conversation.info.latestSkillId
%0A
@@ -742,16 +742,8 @@
op()
-.... |
d238a216c8e5d094d19088937d4e9f6063441bff | Update about.js | commands/General/about.js | commands/General/about.js | exports.run = async (client, message) => {
const config = require("../../settings.json");
const embed = new client.methods.Embed()
.setColor("#37FDFC")
.setTimestamp()
.setTitle("About Margarine")
.setDescription(`I am a lovely and helpful bot (*Sometimes.*). Doing ${config.prefix}help is gre... | JavaScript | 0 | @@ -733,33 +733,67 @@
g()%7D by
-Butterstroke#7150
+$%7Bclient.users.find(%22id%22, %60$%7Bconfig.ownerID%7D%60).tag%7D
. My cur
|
061ac42335e53bf1509825f8cf4bbacc332c7184 | Remove arguments to array function. | lilswf.js | lilswf.js | (function(){
var version = -1,
raw = '',
numbers = [],
SIGNIFICANCE = 4;
// Init
(function init(){
if(navigator.plugins && navigator.plugins.length>0){
var type = 'application/x-shockwave-flash',
mimeTypes = navigator.mimeTypes;
if(mime... | JavaScript | 0.000001 | @@ -1230,148 +1230,8 @@
%7D%0A
- // Casts and arguments object to an array.%0A function argumentsToArray()%7B%0A return Array.prototype.slice.call(arguments);%0A %7D%0A
@@ -2128,37 +2128,35 @@
s =
-argumentsToArray.apply(null,
+Array.prototype.slice.call(
argu
@@ -4263,28 +4263,8 @@
= %5B... |
7c37a0d8e62ea05ca4cda5cc7669959c164ed0ae | Allow saves vs Scaling the Wall (#1122) | server/game/cards/events/07/scalingthewall.js | server/game/cards/events/07/scalingthewall.js | const DrawCard = require('../../../drawcard.js');
class ScalingTheWall extends DrawCard {
setupCardAbilities() {
this.reaction({
when: {
afterChallenge: (event, challenge) => (
challenge.winner === this.controller &&
challenge.attackingPla... | JavaScript | 0 | @@ -785,31 +785,44 @@
-this.controller.moveCar
+context.target.owner.returnCardToHan
d(co
@@ -837,16 +837,8 @@
rget
-, 'hand'
);%0A
|
7130fd998629ed07f32131ad1d5917062bcccc5f | Fix add name into fileInfo. | parse2ncmb.js | parse2ncmb.js | #!/usr/bin/env node
// parse2ncmb.js
(function(global) {
"use strict";
var Configfile = require('config')
, fs = require('fs')
, globule = require('globule')
, JSONStream = require('JSONStream')
, NCMB = require('ncmb')
, program = require('commander')
, Converter = require(... | JavaScript | 0 | @@ -1658,16 +1658,34 @@
e: type%0A
+%09 , name: name%0A
%09%7D;%0A
|
71674eefbd61e5a0daf7123836685e5082a4c883 | remove type attribute for button | client/src/Navbar.js | client/src/Navbar.js | import React, { Component } from 'react';
import { Link, NavLink } from 'react-router-dom';
import EventHive from './EventHive';
import Spinner from './Spinner';
import Logout from './Logout';
import { ReactComponent as Logo } from './images/logo.svg';
import { ReactComponent as CloseIcon } from './icons/material/clos... | JavaScript | 0.000001 | @@ -1015,34 +1015,8 @@
ton%0A
- type=%22button%22%0A
|
b17da2c37a708483b3e33abd8fc659558775199d | Fix Tab propTypes | components/Tab.js | components/Tab.js | 'use strict';
import React from 'react/addons';
class Tab extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return this.props.children;
}
}
Tab.defaultProps = {
title: 'untitled',
disableClose: false
};
Tab.propTypes = {
title: React.PropTypes.... | JavaScript | 0 | @@ -284,24 +284,66 @@
opTypes = %7B%0A
+ key: React.PropTypes.string.isRequired,%0A
title: Rea
@@ -361,16 +361,27 @@
s.string
+.isRequired
,%0A disa
|
b190ab2a58b93f1645e6d744d889af48a3571f62 | Make unit tests bit faster | test/eventChainTest.js | test/eventChainTest.js | var expect = require("chai").expect;
var esticade = require("../index");
var when = require("when");
var service;
describe("Event Chain Test", function(){
after(function(done){ service.shutdown().then(done); });
it("should return service object", function () {
service = esticade("UnitTestServ... | JavaScript | 0 | @@ -4559,10 +4559,9 @@
%7D,
-10
+6
00);
|
00a58e529b2d3325a6315acb8728b18fb2ea5f4c | update the bolt site’s .boltrc config to use the updated bolt-ol and bolt-ul package names | apps/bolt-site/.boltrc.js | apps/bolt-site/.boltrc.js | const path = require('path');
const resolve = require('resolve');
const argv = require('yargs').argv;
const config = {
lang: ['en'],
renderingService: false, // starts PHP service for rendering Twig templates
openServerAtStart: false,
webpackDevServer: {
enabled: true,
watchedExtensions: ['.html'],
}... | JavaScript | 0 | @@ -2075,27 +2075,17 @@
onents-o
-rdered-list
+l
',%0A
@@ -2495,21 +2495,9 @@
ts-u
-nordered-list
+l
',%0A
|
e44148f65d3db65af1b8ab626715aec569485aa2 | initialize vars | src/javascript/_common/base/socket_cache.js | src/javascript/_common/base/socket_cache.js | const moment = require('moment');
const getLanguage = require('../language').get;
const LocalStore = require('../storage').LocalStore;
const getPropertyValue = require('../utility').getPropertyValue;
const getStaticHash = require('../utility').getStaticHash;
const isEmptyObject = require('../... | JavaScript | 0.000031 | @@ -3699,16 +3699,21 @@
urce_obj
+ = %7B%7D
, msg_ty
@@ -3706,32 +3706,37 @@
j = %7B%7D, msg_type
+ = ''
) =%3E %7B%0A l
|
da09e160c7dcf2d374503993ac906d76fd78ced0 | remove exception error handler for now, not a necessary example. | src/Three.js | src/Three.js | /**
* @author mrdoob / http://mrdoob.com/
*/
var THREE = { REVISION: '70dev' };
// browserify support
if ( typeof module === 'object' ) {
module.exports = THREE;
}
// polyfills
if ( Math.sign === undefined ) {
Math.sign = function ( x ) {
return ( x < 0 ) ? - 1 : ( x > 0 ) ? 1 : 0;
};
}
THREE.Except... | JavaScript | 0 | @@ -305,175 +305,8 @@
%7D%0A%0A%0A
-THREE.ExceptionErrorHandler = function( message ) %7B%0A%09console.error( arguments );%0A%09var error = new Error( message );%0A%09error.optionalData = arguments;%0A%09throw error;%0A%7D;%0A%0A
THRE
|
847fe239c4315cd399b15816ef14a4bcc49abd26 | fix to accidentaly pushed test changes | common/models/g-trends.js | common/models/g-trends.js | 'use strict';
const googleTrends = require('google-trends-api');
const setArgs = (params) => {
let args = {};
args.keyword = params.content ? params.content : 'ibm';
args.startTime = parseDate(params.startYear, params.startMonth, params.startDay, "start");
args.endTime = parseDate(params.endYear, params.endMo... | JavaScript | 0 | @@ -1627,19 +1627,21 @@
ull, res
-ult
+pData
);%0A %7D
|
67f24bd10d21cc9529cf3994badbea4397569f5c | replace hardcoded parameters by code | server/graphql/v1/mutations/paymentMethods.js | server/graphql/v1/mutations/paymentMethods.js | import virtualcard from '../../../paymentProviders/opencollective/virtualcard';
import emailLib from '../../../lib/email';
import models from '../../../models';
import queryString from 'query-string';
/** Create a Payment Method through a collective(organization or user)
*
* @param {Object} args contains the paramet... | JavaScript | 0.001398 | @@ -3025,17 +3025,16 @@
Date,%0A
-
%7D = paym
@@ -3153,16 +3153,21 @@
indById(
+%0A
paymentM
@@ -3208,326 +3208,97 @@
veId
-);%0A const userCollective = await user.getCollective();%0A const userName = userCollective.name && userCollective.name.match(/anonymous/i) ? '' : userCollective.name;%0A%0A const q... |
cb9f530b1c7588a0baa8d48107ded7ee444c543b | exclude binary old domain name | src/javascript/_common/third_party_links.js | src/javascript/_common/third_party_links.js | const BinarySocket = require('../app/base/socket');
const Dialog = require('../app/common/attach_dom/dialog');
const isEuCountry = require('../app/common/country_base').isEuCountry;
const ThirdPartyLinks = (() => {
const init = () => {
// show third-party website redirect notification for logged in ... | JavaScript | 0.999877 | @@ -1730,16 +1730,131 @@
bdomain%0A
+ && !/www.(betonmarkets%7Cxodds).com/.test(destination.host) // destination host is not binary old domain%0A
|
f3fd5fe35016ba035f9dd2a52303bfc8d80beb2a | update timeout | test/managers/purchasing/purchase-order/create.js | test/managers/purchasing/purchase-order/create.js | require("should");
var helper = require("../../../helper");
var purchaseRequestDataUtil = require("../../../data-util/purchasing/purchase-request-data-util");
var validatePR = require("bateeq-models").validator.purchasing.purchaseRequest;
var PurchaseRequestManager = require("../../../../src/managers/purchasing/purcha... | JavaScript | 0.000001 | @@ -756,24 +756,47 @@
on (done) %7B%0A
+ this.timeout(500);%0A
helper.g
@@ -1415,32 +1415,63 @@
e);%0A %7D);%0A
+ setTimeout(done, 400);%0A
%7D);%0A%0Ait('#01. sh
|
e146d4bbb4de09510676935b1cd9327887b9aeae | Simplify from_server | src/commands/handlers/messaging.js | src/commands/handlers/messaging.js | 'use strict';
var _ = {
each: require('lodash/each'),
find: require('lodash/find'),
};
var util = require('util');
var handlers = {
NOTICE: function(command, handler) {
var time = command.getServerTime();
var message = command.params[command.params.length - 1];
var target = command... | JavaScript | 0.000501 | @@ -1228,17 +1228,16 @@
server:
-(
!command
@@ -1245,31 +1245,8 @@
nick
- && !!command.hostname)
,%0A
|
125a5040d2ac28c8366368cf6a3a3c07913d6a31 | Fix for 4:4:4 files with software YUV | src/YCbCr.js | src/YCbCr.js | /**
* Basic YCbCr->RGB conversion
*
* @author Brion Vibber <brion@pobox.com>
* @copyright 2014
* @license MIT-style
*
* @param ybcbr {bytesY, bytesCb, bytesCr, strideY, strideCb, strideCr, width, height, hdec, vdec}
* @param TypedArray output: CanvasPixelArray or Uint8ClampedArray to draw RGBA into
* Assumes t... | JavaScript | 0 | @@ -929,16 +929,21 @@
(hdec ==
+ 1 &&
vdec ==
|
69242f36f49f462c10dbc9fb2cf919eed6b8764f | Remove buildTime | unify/framework/source/class/unify/Application.js | unify/framework/source/class/unify/Application.js | /*
===============================================================================================
Unify Project
Homepage: unify-project.org
License: MIT + Apache (V2)
Copyright: 2009-2010 Deutsche Telekom AG, Germany, http://telekom.com
=======================================================================... | JavaScript | 0.000001 | @@ -1363,16 +1363,24 @@
dTime =
+null; //
jasy.Env
|
a7ffac48b1bb8210b691bd89c5ea8f9f753310cf | Use Backbone's methods to fetch and destroy all directories | _attachments/js/views/MenuView.js | _attachments/js/views/MenuView.js | define(
[
'../config',
'mustache',
'backbone',
'model',
'text!views/Menu.html'
],
function(config, Mustache, Backbone, model, template){
return Backbone.View.extend({
initialize: function(){
},
render: function(){
$('.navbar').html(Mustache.rende... | JavaScript | 0 | @@ -1936,72 +1936,30 @@
-// Get all directories from db%0A config.db.view('rcl/d
+var dirs = new model.D
irec
@@ -1964,19 +1964,18 @@
ectories
-',%7B
+()
%0A
@@ -1971,36 +1971,44 @@
s()%0A
-
+dirs.fetch(%7B
success:function
@@ -2013,613 +2013,121 @@
on(d
-ata)%7B%0A ... |
6cac14b316b7cd8267f34a2f5da069ffb69c893c | use getElementById | src/javascript/app/pages/trade/tradepage.js | src/javascript/app/pages/trade/tradepage.js | const Dropdown = require('@binary-com/binary-style').selectDropdown;
const TradingAnalysis = require('./analysis');
const commonTrading = require('./common');
const cleanupChart = require('./charts/webtrader_chart').cleanupChart;
const displayCurrencies = require('./currency');
const Defaults ... | JavaScript | 0.000002 | @@ -1003,16 +1003,88 @@
).State;
+%0Aconst getElementById = require('../../../_common/common_functions');
%0A%0Aconst
@@ -3628,17 +3628,19 @@
const
-$
+el_
binary_g
@@ -3656,12 +3656,24 @@
r =
-$
+getElementById
('
-#
bina
@@ -3706,17 +3706,19 @@
-$
+el_
binary_g
@@ -3742,20 +3742,17 @@
ibili... |
74fd9a80370e9eb4fcb18522aa9bad911c86c248 | fix brackets; | player.js | player.js |
module.exports = {
VERSION: "Default JavaScript folding player",
bet_request: function(game_state, bet) {
bet(Math.max(game_state.current_buy_in * 2, 350);
console.log(game_state);
},
showdown: function(game_state) {
}
};
| JavaScript | 0 | @@ -159,16 +159,17 @@
2, 350)
+)
;%0A co
|
8d213c14be4a78199d6aa2a15ccb4200504d6f85 | use resolved URLs | src/www/js/app.js | src/www/js/app.js | const React = require('react');
const ReactDOM = require('react-dom');
class Article extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="article">
<a className="articleURL" href={this.props.url}>
... | JavaScript | 0.000001 | @@ -678,21 +678,24 @@
article.
-given
+resolved
_url%7D%0A
|
53af929ef5642e36d9fdd385862bc633b97bc99c | Create login functionality in Ally framework | plugins/gui-core/gui-resources/scripts/js/views/auth.js | plugins/gui-core/gui-resources/scripts/js/views/auth.js | define
([
'jquery', 'jquery/superdesk', 'dust/core', 'utils/sha512', 'jquery/tmpl', 'jquery/rest', 'bootstrap',
'tmpl!auth',
],
function($, superdesk, dust, jsSHA)
{
<<<<<<< HEAD
var AuthLogin = function(username, password, logintoken){
=======
var AuthDetails = function(username){
var authDetails ... | JavaScript | 0 | @@ -174,21 +174,8 @@
)%0A%7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
@@ -236,558 +236,8 @@
n)%7B%0A
-=======%0A var AuthDetails = function(username)%7B%0A%09%09var authDetails = new $.rest('Superdesk/User');%0A%09%09authDetails.resetData().xfilter('Name,Id,EMail').select(%7B name: username %7D).done(function(users... |
a226043d8e7d6d153bdb48f239050a3b9f8d1fca | use $window instead of native window | cdap-ui/app/features/adapters/controllers/create-new-ctrl.js | cdap-ui/app/features/adapters/controllers/create-new-ctrl.js | angular.module(PKG.name + '.feature.adapters')
.controller('_AdapterCreateController', function(MyPlumbService, myAdapterApi, $bootstrapModal, $scope, rConfig, $stateParams, $alert, $modalStack, ModalConfirm, EventPipe) {
this.metadata = MyPlumbService['metadata'];
function resetMetadata() {
this.metada... | JavaScript | 0.000003 | @@ -213,16 +213,25 @@
ventPipe
+, $window
) %7B%0A
@@ -2680,16 +2680,17 @@
= e %7C%7C
+$
window.e
@@ -2927,24 +2927,25 @@
%0A %7D;%0A
+$
window.onbef
|
4f365c795201a7a921eb0db8dc150f652d553b0f | test fix | tests/connection-monitors.js | tests/connection-monitors.js | const test = require('blue-tape');
const testServerDao = require('./testServerDao.js')
const ReactiveDao = require("../index.js")
const LoopbackConnection = require('../lib/LoopbackConnection.js')
test("connection monitors", (t) => {
t.plan(5)
let sessionId = ""+Math.random()
let server
let serverConnection
... | JavaScript | 0.000001 | @@ -603,22 +603,22 @@
return
-client
+server
Monitor
@@ -1093,38 +1093,38 @@
%0A return
-server
+client
Monitor = new Re
|
35a4cad00c253777fdf46f95f1fe9c767de22643 | Fix missing semicolon | display_price_history_on_amazon.co.jp.user.js | display_price_history_on_amazon.co.jp.user.js | // ==UserScript==
// @name Display price history on Amazon.co.jp
// @namespace curipha
// @description Import price history from Keepa.com
// @include https://www.amazon.co.jp/gp/product/*
// @include https://www.amazon.co.jp/dp/*
// @include https://www.amazon.co.jp/*/dp/*
// @ex... | JavaScript | 0.999999 | @@ -824,24 +824,25 @@
: null;%0A %7D
+;
%0A%0A const in
@@ -1894,16 +1894,17 @@
%7D%0A %7D
+;
%0A%0A inse
|
3adcd85c89d3c15118a37b4d669ebe1fb3bcc9e3 | Fix nudging, cleanup code.. | js/id/modes/move.js | js/id/modes/move.js | iD.modes.Move = function(context, entityIDs) {
var mode = {
id: 'move',
button: 'browse'
};
var keybinding = d3.keybinding('move'),
edit = iD.behavior.Edit(context),
annotation = entityIDs.length === 1 ?
t('operations.move.annotation.' + context.geometry(entityID... | JavaScript | 0 | @@ -411,23 +411,8 @@
in,%0A
- delta,%0A
@@ -1023,20 +1023,25 @@
var
-orig
+currMouse
= conte
@@ -1047,69 +1047,21 @@
ext.
-projection(origin);%0A%0A orig = vecSub(orig, nudge);%0A
+mouse(),%0A
@@ -1064,34 +1064,37 @@
orig
-in
+Mouse
= context.proje
@@ -1102,23 ... |
c59a9f2171e13cd3c4d42bd60f2daaadcc902d52 | Fix user info parser | common/userinfo_parser.js | common/userinfo_parser.js | /*
* (c) Copyright Ascensio System SIA 2010-2021
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its S... | JavaScript | 0.001992 | @@ -3820,21 +3820,24 @@
f groups
-.
+%5B%22
view
+%22%5D
== 'obj
@@ -3850,21 +3850,24 @@
& groups
-.
+%5B%22
view
+%22%5D
.length%3E
@@ -3878,21 +3878,24 @@
? groups
-.
+%5B%22
view
+%22%5D
: null,
@@ -3935,21 +3935,24 @@
f groups
-.
+%5B%22
edit
+%22%5D
== 'obj
@@ -3965,21 +3965,24 @@
& groups
-.
+%5B%... |
eac26b7977315b1dd173c455f1bea96665cc0a54 | add solution | Algorithms/JS/strings/wordPattern.js | Algorithms/JS/strings/wordPattern.js | // Given a pattern and a string str, find if str follows the same pattern.
// Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str.
// Examples:
// pattern = "abba", str = "dog cat cat dog" should return true.
// pattern = "abba", str = "dog cat cat fi... | JavaScript | 0.000003 | @@ -683,8 +683,556 @@
an%7D%0A */%0A
+%0Avar wordPattern = function(pattern, str) %7B%0A var subSet = str.split(%22 %22),%0A result = true,%0A i;%0A%0A function map( a, b )%7B%0A var storage = %7B%7D;%0A for ( i = 0; i %3C subSet.length; i++ )%7B%0A if( storage%5Ba%5Bi%5D%5... |
80183d50ed406b262ab8b7f676b6a064121c07d0 | Add comment | server/api/socket/player.js | server/api/socket/player.js | const db = require('sqlite')
const squel = require('squel')
const log = require('debug')('app:socket:player')
const {
PLAYER_NEXT_REQUEST,
PLAYER_NEXT,
PLAYER_QUEUE_END,
PLAYER_PLAY_REQUEST,
PLAYER_PLAY,
PLAYER_PAUSE_REQUEST,
PLAYER_PAUSE,
PLAYER_VOLUME_REQUEST,
PLAYER_VOLUME,
EMIT_STATUS,
EMIT_E... | JavaScript | 0 | @@ -1319,24 +1319,82 @@
turn%0A %7D%0A%0A
+ // emits to room, but only player should be listening%0A
ctx.io.t
|
cd8f4333aa11539a1ba9226f73d8701ef52f6f47 | update test | test/util.js | test/util.js | 'use strict';
import assert from 'power-assert';
import sinon from 'sinon';
import * as util from '../src/util';
describe('util', function() {
it('toArray', function() {
let args = util.toArray(arguments);
let nodes = util.toArray(document.querySelectorAll('*'));
assert(Array.isArray(args));
asse... | JavaScript | 0.000001 | @@ -2249,17 +2249,16 @@
hash = '
-/
123';%0A
@@ -2327,17 +2327,16 @@
hash = '
-/
';%0A a
|
d18da18fdf21817a65c6fdc15fedca0e59f06b95 | Create login functionality in Ally framework | plugins/gui-core/gui-resources/scripts/js/views/auth.js | plugins/gui-core/gui-resources/scripts/js/views/auth.js | define
([
'jquery', 'jquery/superdesk', 'dust/core', 'utils/sha512', 'jquery/tmpl', 'jquery/rest', 'bootstrap',
'tmpl!auth',
],
function($, superdesk, dust, jsSHA)
{
<<<<<<< HEAD
var AuthLogin = function(username, password, logintoken){
=======
var AuthDetails = function(username){
var authDetails ... | JavaScript | 0 | @@ -1220,29 +1220,16 @@
ssion);%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
%09%09%09local
@@ -1445,437 +1445,8 @@
');%0A
-=======%0A%09%09%09//localStorage.setItem('superdesk.login.id', user.Id);%0A%09%09%09localStorage.setItem('superdesk.login.name', user.UserName);%0A%09%09%09localStorage.setItem('superdesk.login.email', u... |
df9efcbe48f661362abc001bb40ebea57d6d43e7 | stop writing anything to the sound card | listen.js | listen.js | 'use strict';
// Listens to the microphone and prints something when it's loud.
// `npm run-script listen` to run this.
// I installed this manually rather than via package.json
let coreAudio = require('node-core-audio');
let engine = coreAudio.createNewAudioEngine();
let range = [];
for (let i = 0; i < 1024; i++) {... | JavaScript | 0 | @@ -706,46 +706,8 @@
rs.%0A
-// Returns the output buffer to play.%0A
let
@@ -896,51 +896,59 @@
e);%0A
- return zero;%0A%7D%0A %0Aengine.addAudioCallback(
+%7D%0A %0Awhile (true) %7B%0A let sample = engine.read();%0A
proc
@@ -955,11 +955,20 @@
essAudio
+(sample
);%0A
+%7D%0A
|
824afdceca3a3936806f7982924768f2d4a828f2 | use 5 seconds as cucumber timeout | features/support/env.js | features/support/env.js | var path = require('path');
var util = require('util');
var fs = require('fs');
var exec = require('child_process').exec;
var d3 = require('d3-queue');
module.exports = function () {
this.initializeEnv = (callback) => {
this.OSRM_PORT = process.env.OSRM_PORT && parseInt(process.env.OSRM_PORT) || 5000;
... | JavaScript | 0.000004 | @@ -406,17 +406,17 @@
OUT) %7C%7C
-3
+5
000;%0A
|
fc1d1fca2b141abe128ec57ff192b1cf8d1e8c70 | fix redo | tests/frontend/specs/redo.js | tests/frontend/specs/redo.js | describe("undo button then redo button", function(){
beforeEach(function(cb){
helper.newPad(cb); // creates a new pad
this.timeout(60000);
});
it("redo some typing with button", function(done){
var inner$ = helper.padInner$;
var chrome$ = helper.padChrome$;
// get the first text element insi... | JavaScript | 0.000286 | @@ -2038,16 +2038,23 @@
$.Event(
+helper.
evtType)
|
538562d2a3632e4beedf4cd7febd098068109ef9 | add contenteditable attribute to all new checkboxes | plugin.js | plugin.js | /**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 2015 SIRAP SAS All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
(function (window) {
'use strict'
var prompt = window.prompt
var $ = window.$
var tinymce = window.tiny... | JavaScript | 0 | @@ -682,16 +682,82 @@
cher'))%0A
+ editor.dom.setAttrib(labelElement, 'contenteditable', false)
%0A e
|
36c93c1afb55067c07df4e91e38a55a7624d8243 | allow setting href instead of onClick | packages/core/src/components/new-notebook-navigation/index.js | packages/core/src/components/new-notebook-navigation/index.js | // @flow
/**
* Plan:
*
* Create a 1-dimensional grid of new notebook types for clicking
* to create new notebooks
*
* Create a listing of running notebooks
* Showcase the directory navigator
*/
import * as React from "react";
import type { KernelspecProps } from "../../state/entities/kernelspecs";
import { ... | JavaScript | 0 | @@ -575,16 +575,35 @@
ook & %7B%0A
+ href?: string,%0A
onCl
@@ -605,16 +605,17 @@
onClick
+?
: (ks: K
@@ -720,26 +720,252 @@
nst
-onClick = () =%3E %7B%0A
+inner = (%0A %3CReact.Fragment%3E%0A %3Cdiv className=%22display-name%22%3E%7Bprops.kernelspec.displayName%7D%3C/div%3E%0A %3Cdiv classNa... |
9ed12edd67f2e4a4ca6108b2d47b7c1aa6b21987 | Remove comments | www/js/profile.js | www/js/profile.js | /*
* Cepat Sembuh v1.0
* Copyright 2016 Cepat Sembuh
*/
document.addEventListener('deviceready', function () {
Firebase.goOnline();
});
$('#not-available').on('click', function() {
alert('Faskes is not available.')
})
function getNoAntri(tipe, username, name) {
breanna = new Firebase('https://cepatsembuh.fire... | JavaScript | 0 | @@ -734,82 +734,13 @@
k) %7B
-%0A
-// If /users/fred/rank has never been set, currentRank will be null.
%0A
|
4bb5d7d8af8fa19545d89dcb6a53df8a677c48b9 | Include message type & id in push notification payload (#12771) | packages/rocketchat-lib/server/functions/notifications/mobile.js | packages/rocketchat-lib/server/functions/notifications/mobile.js | import { Meteor } from 'meteor/meteor';
const CATEGORY_MESSAGE = 'MESSAGE';
const CATEGORY_MESSAGE_NOREPLY = 'MESSAGE_NOREPLY';
let alwaysNotifyMobileBoolean;
RocketChat.settings.get('Notifications_Always_Notify_Mobile', (key, value) => {
alwaysNotifyMobileBoolean = value;
});
let SubscriptionRaw;
Meteor.startup(()... | JavaScript | 0 | @@ -1260,16 +1260,70 @@
m.name,%0A
+%09%09%09messageType: message.t,%0A%09%09%09messageId: message._id,%0A
%09%09%7D,%0A%09%09r
|
d175a96cc85db3f24d8482ad86ece4aa4c05d696 | update hoc | src/atlas.js | src/atlas.js | import React, { Component } from 'react';
import propTypes from 'prop-types';
import hoistNonReactStatic from 'hoist-non-react-statics';
const atlas = (atlasRequestDescription, { options, propName = 'data' } = {}) => (TargetComponent) => {
class AtlasConnectedComponent extends Component {
constructor(props, cont... | JavaScript | 0.000001 | @@ -180,16 +180,21 @@
options
+ = %7B%7D
, propNa
@@ -203,13 +203,29 @@
= '
-data'
+request', auto = true
%7D =
@@ -408,20 +408,20 @@
oading:
-true
+auto
,%0A
@@ -479,67 +479,404 @@
-componentDidMount() %7B%0A const %7B client %7D = this.context
+buildOptions() %7B%0A if (typeof options ... |
897b1ef98acce98238b674c9af1fb688f9b75623 | add usage to addons:destroy (#91) | commands/addons/destroy.js | commands/addons/destroy.js | 'use strict'
const cli = require('heroku-cli-util')
const co = require('co')
function * run (context, heroku) {
const resolve = require('../../lib/resolve')
const groupBy = require('lodash.groupby')
const toPairs = require('lodash.topairs')
let force = context.flags.force || process.env.HEROKU_FORCE === '1'
... | JavaScript | 0 | @@ -1364,16 +1364,62 @@
urces',%0A
+ usage: 'addons:destroy %5BADDON%5D... %5Bflags%5D',%0A
needsA
|
2a8fbce82d2dee9d2a4e23d60bdcc19bfe35767c | set node id for state.defaultId | Alloy/commands/compile/compilerUtils.js | Alloy/commands/compile/compilerUtils.js | var U = require('../../utils'),
colors = require('colors'),
path = require('path'),
fs = require('fs'),
_ = require('../../lib/alloy/underscore')._;
var alloyRoot = path.join(__dirname,'..','..'),
alloyUniqueIdPrefix = '__alloyId',
alloyUniqueIdCounter = 0,
JSON_NULL = JSON.parse('null'),
stylePrefix = '\t\t';... | JavaScript | 0.000002 | @@ -858,16 +858,46 @@
ueId();%0A
+%09node.setAttribute('id', id);%0A
%09if (sta
|
dd0836f750980eb0b88f9f04cc82556b543a5749 | Update confetti-rain.js | addon/components/confetti-rain.js | addon/components/confetti-rain.js | import Component from '@ember/component';
import { computed } from '@ember/object';
import { htmlSafe } from '@ember/string';
import { schedule, bind } from '@ember/runloop';
const raf = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequest... | JavaScript | 0 | @@ -879,14 +879,28 @@
ctx
+, maxParticles
%7D) %7B%0A
-
th
@@ -1062,29 +1062,28 @@
dom() *
-MAX_PARTICLES
+maxParticles
) + 10;
@@ -1918,16 +1918,47 @@
style'%5D,
+%0A maxParticles: MAX_PARTICLES,
%0A%0A styl
@@ -2281,37 +2281,48 @@
i = 0; i %3C
-MAX_PARTICLES
+this.get('maxParticles')
; i++) %7B%0A ... |
2dd369215f23638a5a48a090d425e45eebfa47a1 | Introduce AbstractEditor._scrollElementIntoView() | commons/AbstractEditor.js | commons/AbstractEditor.js | import { Component, domHelpers } from '../dom'
import { platform, getRelativeRect, getSelectionRect } from '../util'
import { EditorSession, createEditorContext } from '../editor'
export default class AbstractEditor extends Component {
constructor (...args) {
super(...args)
this._initialize(this.props)
... | JavaScript | 0 | @@ -2939,24 +2939,363 @@
(sel))%0A %7D%0A%0A
+ _scrollElementIntoView (el) %7B%0A const contentEl = this._getScrollableElement()%0A const contentRect = contentEl.getNativeElement().getBoundingClientRect()%0A const elRect = el.getNativeElement().getBoundingClientRect()%0A const rect = getRelativeRect(cont... |
ffc749ce17b4d446f381628726ba797bcbfe11e9 | Remove unnecessary brackets | __tests__/rubygems.test.js | __tests__/rubygems.test.js | /* eslint global-require: 0 */
describe('rubygems.js', () => {
beforeEach(() => {
jest.resetAllMocks();
jest.resetModules();
});
describe('search', () => {
let got;
let rubygems;
let cache;
const result = require('../__mocks__/result.json')[0];
const mockResult = [{
title: res... | JavaScript | 0.000613 | @@ -630,16 +630,14 @@
=%3E
-(
cache)
-)
;%0A%0A
|
d4792725ac4be3d1fd2dc785df40c355dea803ac | Refactor client server to incorporate api server functionality | server/config/middleware.js | server/config/middleware.js | var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var db = require('../models/index');
var passport = require('../auth/passport');
module.exports = function (app, express) {
//Function for authenticating routes
var checkUser = function(r... | JavaScript | 0 | @@ -1733,16 +1733,19 @@
%7D);%0A%0A
+ //
//Serve
@@ -1800,16 +1800,19 @@
leware%0A
+ //
app.use
@@ -1867,16 +1867,19 @@
c'));%0A%0A
+ //
app.get
@@ -1903,24 +1903,27 @@
eq, res) %7B%0A
+ //
res.rende
@@ -1936,24 +1936,27 @@
ex.html');%0A
+ //
%7D);%0A%0A //Lo
|
784d20fe2702142ca4c5ffa3cd017e3c17b71582 | remove promise (#15015) | packages/gatsby-plugin-create-client-paths/src/gatsby-node.js | packages/gatsby-plugin-create-client-paths/src/gatsby-node.js | // Prefixes should be globs (i.e. of the form "/*" or "/foo/*")
const validatePrefixEntry = prefix => {
if (!prefix.match(/^\//) || !prefix.match(/\/\*$/)) {
throw Error(
`Plugin "gatsby-plugin-client-only-paths" found invalid prefix pattern: ${prefix}`
)
}
}
exports.onCreatePage = ({ page, store, ac... | JavaScript | 0 | @@ -307,15 +307,8 @@
age,
- store,
act
@@ -428,44 +428,8 @@
y)%0A%0A
- return new Promise(resolve =%3E %7B%0A
//
@@ -483,18 +483,16 @@
set.%0A
-
-
if (page
@@ -548,36 +548,20 @@
-
return
- resolve()
%0A
-
%7D%0A%0A
-
pr
@@ -587,26 +587,24 @@
ix =%3E %7B%0A
-
-
if (!re%5Bpref... |
8985ffd8cd5a68b6fd6996fae0a86499cfa122ce | change sauce labs target platform | nightwatch.js | nightwatch.js | 'use strict'
var TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER
module.exports = {
'src_folders': ['test-browser/tests'],
'output_folder': 'reports',
'custom_commands_path': '',
'custom_assertions_path': '',
'page_objects_path': '',
'globals_path': '',
'test_settings': {
'default': {
'laun... | JavaScript | 0 | @@ -1764,32 +1764,66 @@
Enabled': true,%0A
+ 'platform': 'Windows 10',%0A
'acceptS
@@ -1860,16 +1860,20 @@
on': '11
+.103
',%0A
|
e5dfc8e4334139cc4457eb75a8c574640cb8ff76 | Clarify webhook `secret` param | config.example.js | config.example.js | var port = process.env.PORT || 3000;
// Support text emojis and all unicode emojis / symbols (as of Dec 2018)
// See: https://www.regextester.com/106421
var emoji = "(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])";
var emojiText = ":[^\n:]+:";
var signature = "(" + em... | JavaScript | 0.001306 | @@ -1845,16 +1845,41 @@
T param
+named %60secret%60%0A //
containi
@@ -1891,26 +1891,16 @@
e secret
-%0A //
from %60h
|
dd2cb266f6c5d9d9d22248c4f96ab214f4ece2ee | Move projects dropdown to Bootstrap list-group | src/components/Tickets/Projects.js | src/components/Tickets/Projects.js | import React from 'react';
const Projects = props => {
return (
<ul className="projects">
{Object.keys(props.projects).map(projectId => {
const ticket = props.projects[projectId][0];
return (
<li key={projectId}>
{ticket.company.name} —
<button
... | JavaScript | 0 | @@ -65,18 +65,19 @@
(%0A %3C
-ul
+div
classNa
@@ -88,16 +88,27 @@
projects
+ list-group
%22%3E%0A
@@ -241,92 +241,43 @@
%3C
-li key=%7BprojectId%7D%3E%0A %7Bticket.company.name%7D —%0A %3Cbutton%0A
+button%0A key=%7BprojectId%7D%0A
@@ -310,18 +310,16 @@
... |
6c530ba29f759396a32c8ab1f11044cf4b53cd74 | Fix broken comment field in CfP | indico/web/client/js/jquery/compat/jquery-ui.js | indico/web/client/js/jquery/compat/jquery-ui.js | // This file is part of Indico.
// Copyright (C) 2002 - 2019 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import 'jquery-ui';
import 'jquery-ui/ui/effect';
import 'jquery-ui/ui/effects/effect-pulsate';
impo... | JavaScript | 0.000013 | @@ -353,24 +353,68 @@
highlight';%0A
+import 'jquery-ui/ui/effects/effect-blind';%0A
import 'jque
|
dd4882efdd5b217decb294744713ce208956848d | Update HealthChecks.js | src/js/schemas/service-schema/HealthChecks.js | src/js/schemas/service-schema/HealthChecks.js | import FormUtil from '../../utils/FormUtil';
let HealthChecks = {
type: 'object',
title: 'Health Checks',
properties: {
healthChecks: {
type: 'array',
duplicable: true,
addLabel: 'Add Another Health Check',
getter: function (service) {
let healthChecks = service.getHealthCheck... | JavaScript | 0 | @@ -104,16 +104,121 @@
hecks',%0A
+ description: 'Perform health checks on running tasks to determine if they are operating as expected.',%0A
proper
|
3d193b31377e9d31880d1808c880cec2759d5ffd | Fix PR feedback | packages/core/admin/webpack.config.js | packages/core/admin/webpack.config.js | 'use strict';
const path = require('path');
const fse = require('fs-extra');
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { ESBuildMinifyPlugin } = require('esbuild-loader');
const WebpackBar = requi... | JavaScript | 0 | @@ -489,16 +489,61 @@
env');%0A%0A
+const EE_REGEX = /from.* %5B'%22%5Dee_else_ce%5C//;%0A%0A
module.e
@@ -2710,144 +2710,41 @@
-if (fileContent.match(/from.* %5B'%22%5Dee_else_ce%5C//)) %7B%0A return true;%0A %7D%0A%0A return false
+return EE_REGEX.test(file... |
cea03e2e8317c93f6cd4e7db0a922fd15a5951bd | Make plugin re-entrant | loader.js | loader.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var loaderUtils = require("loader-utils");
var NodeTemplatePlugin = require("webpack/lib/node/NodeTemplatePlugin");
var NodeTargetPlugin = require("webpack/lib/node/NodeTargetPlugin");
var LibraryTemplatePlugin = require... | JavaScript | 0 | @@ -777,16 +777,123 @@
Path);%0A%09
+// We already in child compiler, return empty bundle%0A%09if(this%5B__dirname%5D === false) %7B%0A%09%09return %22%22;%0A%09%7D else
if(this%5B
@@ -919,16 +919,16 @@
ery)) %7B%0A
-
%09%09if(que
@@ -2112,16 +2112,368 @@
%0A%09%09%09%7D);%0A
+%09%09%09// We set loaderContext%5B_... |
cb30fb50b7b7ea9bc4c01447fe8475c48fbb5056 | write bom | server/controllers/index.js | server/controllers/index.js | 'use strict'
const log = require('../log')
const querystring = require('querystring')
const rp = require('request-promise')
const settings = require('../configuration').server
const CanvasApi = require('kth-canvas-api')
const csv = require('./csvFile')
const ldap = require('./ldap')
const canvasApiUrl = `https://${set... | JavaScript | 0.999976 | @@ -4399,16 +4399,105 @@
s.csv%60)%0A
+%0A // Write BOM https://sv.wikipedia.org/wiki/Byte_order_mark%0A res.write('%5CuFEFF')%0A%0A
res.
|
2034582806b97f81738c7568dedeb2434c2a5a55 | Fix query params not captured in Google Analytics (#4527) (#4548) | packages/gatsby-plugin-google-analytics/src/gatsby-browser.js | packages/gatsby-plugin-google-analytics/src/gatsby-browser.js | exports.onRouteUpdate = function({ location }) {
// Don't track while developing.
if (process.env.NODE_ENV === `production` && typeof ga === `function`) {
window.ga(`set`, `page`, (location || {}).pathname)
window.ga(`send`, `pageview`)
}
}
| JavaScript | 0 | @@ -170,48 +170,127 @@
.ga(
-%60set%60, %60page%60, (location %7C%7C %7B%7D).pathname
+%0A %60set%60,%0A %60page%60,%0A location ? location.pathname + location.search + location.hash : undefined%0A
)%0A
|
e05ce1114c2bf57842f62cecbe6567adfffbb138 | correct config | config.webpack.js | config.webpack.js | const path = require('path');
const webpack = require('webpack');
const WatchIgnorePlugin = webpack.WatchIgnorePlugin;
demoConfig = {
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./app'
],
output: {
path: __dirname + '/public/',... | JavaScript | 0.000001 | @@ -476,16 +476,111 @@
Plugin()
+,%0A new webpack.DefinePlugin(%7B%0A API_ROOT: '%22http://localhost:8080%22'%0A %7D)
%0A %5D,%0A
|
35d9ca172324796380625eb1f9126393e5e3a8b9 | removed whitespaces | data/page-mod/jsonTool.js | data/page-mod/jsonTool.js | 'use strict';
function populate(tipo, callBack) {
console.log($('td').filter(tipo));
var thingList = null;
var myJson = {};
var targetColumn = null;
thingList = $('.thing').each(
function () {
let word = $(this).filter('.text').first().html();
... | JavaScript | 0.998971 | @@ -1308,28 +1308,16 @@
%7D );%0D%0A%0D%0A
-%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A
self.por
|
7289adfdbf6c4de702ff1e5d6c734f0d0de44ddf | Correct Jasmine method | e2e/search-results-kadastraal-subject.test.js | e2e/search-results-kadastraal-subject.test.js | describe('Zoekresultaten kadastraal subjecten', () => {
describe('niet ingelogd', () => {
it('er mogen geen kadastraal subjecten zichtbaar zijn', () => {
const page = dp.navigate('SEARCH-RESULTS--KADASTRAAL-SUBJECT'),
searchResults = page.dashboard.rightColumn.searchResults;
... | JavaScript | 0.024065 | @@ -1139,18 +1139,21 @@
ader).to
-Be
+Match
(/Kadast
|
e5e2ff2b4833149d2218b710ac16adce74b22fcb | Update publicPath for apidoc play app | webpack.config.prod.js | webpack.config.prod.js | const path = require('path');
const webpack = require('webpack');
const CarteBlanche = require('carte-blanche');
const ReactPlugin = require('carte-blanche-react-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanPlugin = require('clean-webpack-plugin');
// PostCSS plugins
const postCSSImpo... | JavaScript | 0 | @@ -63,55 +63,8 @@
');%0A
-const CarteBlanche = require('carte-blanche');%0A
cons
@@ -647,16 +647,23 @@
Path: '/
+assets/
',%0A p
@@ -3129,136 +3129,8 @@
%7D)%0A
- // new CarteBlanche(%7B%0A // componentRoot: 'src',%0A // plugins: %5B%0A // new ReactPlugin(),%0A // %5D%0A // %7D)%0A... |
5983a6b1afe4c0d09283e6269fd64230bed1215e | Update conf.js | js/conf.js | js/conf.js | var Env = require('./env.js');
exports.mongoConfig = {
username: 'pi',
host: '2.234.125.63',
agent: process.env.SSH_AUTH_SOCK,
port: 22,
dstPort: 6666,
password: 'mango932cortisone',
localPort: 27017
};
exports.dbName = 'subtitlesAlertBot';
exports.mongoHost = ... | JavaScript | 0.000001 | @@ -72,10 +72,8 @@
e: '
-pi
',%0A
@@ -90,20 +90,8 @@
t: '
-2.234.125.63
',%0A
@@ -195,25 +195,8 @@
d: '
-mango932cortisone
',%0A
@@ -296,16 +296,16 @@
vType;%0A%0A
-
exports.
@@ -327,8 +327,9 @@
g.json';
+%0A
|
8a5f5cd25208fb764fbd575fe00fd177336a2bbb | Fix regression from 3dabfc99b4754 (lodash _.sum arguments) | test/unit/loginIPCheck.js | test/unit/loginIPCheck.js | // Tradity.de Server
// Copyright (C) 2016 Tradity.de Tech Team <tech@tradity.de>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your optio... | JavaScript | 0.000001 | @@ -1095,18 +1095,21 @@
range(N)
-,
+.map(
function
@@ -1156,16 +1156,17 @@
b);%0A %7D)
+)
;%0A%7D%0A%0Afun
@@ -3219,24 +3219,51 @@
unction() %7B%0A
+ console.log(deltas);%0A
deltas
|
f6cc05f100e9fcde653a97fcf235407c7de83d13 | Add reading time | assets/js/index-design.js | assets/js/index-design.js | /**
* Main JS file for Casper behaviours
*/
/* globals jQuery, document */
(function ($, undefined) {
"use strict";
var $document = $(document);
$document.ready(function () {
var $postContent = $(".post-content");
$postContent.fitVids();
$(".scroll-down").arctic_scroll();
... | JavaScript | 0.000007 | @@ -2079,24 +2079,262 @@
%3C/span%3E%22);%0A%0A
+ var readingTime = 0;%0A var WPM = 200;%0A var $content = $(%22section.post-content%22);%0A if ( $content.length %3E 0 ) %7B%0A var readingTime = Math.ceil($content.text().trim().split(/%5Cs+/).length / WPM);%0A %7D%0A
... |
d0c709a4778a101a93b23544bb9536e3a9b9e2e2 | Fix two crashes in performSubscriptionAction | packages/lesswrong/lib/collections/subscriptions/mutations.js | packages/lesswrong/lib/collections/subscriptions/mutations.js | import { Subscriptions } from './collection';
import { subscriptionTypes } from './schema'
import { runCallbacksAsync, newMutation } from 'meteor/vulcan:core';
import Users from 'meteor/vulcan:users';
export const defaultSubscriptionTypeTable = {
"Posts": subscriptionTypes.newComments,
"Users": subscriptionTypes.n... | JavaScript | 0.000189 | @@ -241,16 +241,60 @@
ble = %7B%0A
+ %22Comments%22: subscriptionTypes.newReplies,%0A
%22Posts
@@ -996,28 +996,8 @@
me,%0A
- deleted: false,%0A
|
0cdb2b0a0ae7d38edd420c1b82a5ba5c115494dd | Remove extra addClass. | js/Ajax.js | js/Ajax.js | /**
* Ajax.js
* @param {[type]} window [description]
* @param {[type]} factory [description]
* @return {[type]} [description]
*/
( function ( window, factory ) {
'use strict';
if ( typeof define === 'function' && define.amd ) {
define( [
'jquery',
'./Util',
... | JavaScript | 0 | @@ -7543,63 +7543,8 @@
%7D;%0A%0A
-%0A $this.addClass( 'ajax-initialized' );%0A
|
cfed63aa38d84cd5d0e9762df8dd6af7e95a4b6e | Make requestIds a required prop | recipe-server/client/control/components/common/LoadingOverlay.js | recipe-server/client/control/components/common/LoadingOverlay.js | import { Spin } from 'antd';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import {
areAnyRequestsInProgress,
isRequestInProgress,
} from 'control/state/app/requests/selectors';
export class SimpleLoadingOverlay extends React.PureComponent {
static propTy... | JavaScript | 0.000067 | @@ -1497,16 +1497,23 @@
OfType(%5B
+%0A
PropType
@@ -1561,10 +1561,26 @@
ring
-%5D)
+%0A %5D).isRequired
,%0A
|
c78b158d9aeff80bd581515293c13cfce1e9261f | fix urlPreview | components/addInstance.js | components/addInstance.js | /* global Vue, global document, global location*/
'use strict';
var self = this;
var publicDomain;
self.$http.get('/-/v3/config.js').then(function (result) {
publicDomain = result.data.publicDomain;
}, console.error);
var vm = new Vue({
el: '#addInstance',
ready : function () {
var self = this;
sel... | JavaScript | 0.00019 | @@ -66,158 +66,20 @@
var
-self = this;%0Avar publicDomain;%0Aself.$http.get('/-/v3/config.js').then(function (result) %7B%0A publicDomain = result.data.publicDomain;%0A%7D, console.error)
+publicDomain
;%0A%0Av
@@ -290,16 +290,63 @@
omain);%0A
+ publicDomain = result.data.publicDomain;%0A
%7D, c
@@ -638,... |
faf44a865b9a6d898789a1a67011629d05dc9ec1 | Add file loader to production config | webpack.config.prod.js | webpack.config.prod.js | const webpack = require('webpack');
const path = require('path');
const GoogleFontsPlugin = require("google-fonts-webpack-plugin");
const BUILD_DIR = path.resolve(__dirname, 'dist');
const APP_DIR = path.resolve(__dirname, 'app');
const config = {
entry: path.resolve(APP_DIR, 'index.js'),
output: {
path: BUIL... | JavaScript | 0.000001 | @@ -224,16 +224,76 @@
'app');
+%0Aconst RESOURCES_DIR = path.resolve(__dirname, 'resources');
%0A%0Aconst
@@ -867,16 +867,123 @@
loader'%0A
+ %7D, %7B%0A test: /%5C.(png%7Cjpg%7Cgif)$/,%0A loader: 'file-loader',%0A include: RESOURCES_DIR%0A
%7D%0A
|
887b60115907c46f791194f0ef2ce459cd33344a | Fix missing argument. | smoothsort.js | smoothsort.js | // Based on implementation in http://en.wikipedia.org/wiki/Smoothsort
(function() {
// Leonardo numbers.
var LP = [
1, 1, 3, 5, 9, 15, 25, 41, 67, 109, 177, 287, 465, 753,
1219, 1973, 3193, 5167, 8361, 13529, 21891, 35421, 57313, 92735,
150049, 242785, 392835, 635621, 1028457, 1664079, 2692537,
43... | JavaScript | 0.000385 | @@ -69,24 +69,31 @@
t%0A(function(
+exports
) %7B%0A // Leo
|
4a96564c84b11b0b6088239b57bce4b41c1eee11 | fix response base types | source/renderer/app/api/transactions/types.js | source/renderer/app/api/transactions/types.js | // @flow
import BigNumber from 'bignumber.js';
import WalletTransaction from '../../domains/WalletTransaction';
import type { ResponseBase } from '../common/types';
export type Transactions = {
data: Array<Transaction>,
...ResponseBase
};
export type Transaction = {
amount: number,
confirmations: number,
cr... | JavaScript | 0 | @@ -185,16 +185,31 @@
ctions =
+ ResponseBase &
%7B%0A dat
@@ -231,34 +231,16 @@
ction%3E,%0A
- ...ResponseBase%0A
%7D;%0A%0Aexpo
@@ -829,16 +829,31 @@
ionFee =
+ ResponseBase &
%7B%0A est
@@ -878,26 +878,8 @@
er,%0A
- ...ResponseBase%0A
%7D;%0A%0A
|
3253e15a61b73dc844e779b8065296f5d7cad2cb | update files | src/toast.js | src/toast.js | /**
* Created by nuintun on 2016/5/25.
*/
'use strict';
require('./css/toast.css');
var $ = require('./jquery');
var GUID = new Date().getTime();
var Mask = {
reference: 0,
mask: $('<div class="ui-toast-mask"></div>'),
show: function (){
if (Mask.reference === 0) {
Mask.mask.appendTo(document.body... | JavaScript | 0.000001 | @@ -1560,16 +1560,22 @@
is.show(
+'init'
);%0A%7D%0A%0ATo
@@ -2127,24 +2127,33 @@
ontext.hide(
+'timeout'
);%0A %7D
@@ -3718,24 +3718,38 @@
, '%E8%A8%80%E5%AE%9C%E6%85%A2%EF%BC%8C%E5%BF%83%E5%AE%9C%E5%96%84%E3%80%82'
+, arguments%5B0%5D
);%0A %7D).on('
@@ -3800,16 +3800,30 @@
%E5%AE%9C%E6%85%A2%EF%BC%8C%... |
4d4d28dd4cb28e6507225217f4b3bd74d0a473a6 | Fix to make stop the cursor from jumping around | frameworks/foundation/views/text_field.js | frameworks/foundation/views/text_field.js | // ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// Portions ©2008-2009 Apple, Inc. All rights reserved.
// License: Licened under MIT license (see licens... | JavaScript | 0.000001 | @@ -5690,23 +5690,19 @@
$field()
-.get(0)
+%5B0%5D
.select(
@@ -6427,24 +6427,27 @@
(evt) %7B %0A
+ //
if (this._i
@@ -6454,24 +6454,31 @@
sKeyDown) %7B%0A
+ //
this.i
@@ -6540,16 +6540,23 @@
change%0A
+ //
%7D%0A
|
f734fee69eefeedda61cdf76b5a72792e7bd582b | Change key to activityDate | server/methods/residents.js | server/methods/residents.js | Meteor.methods({
'getAllResidentIds': function () {
// TODO: determine how to secure this method to prevent client abuse
// Get all residents
var residents = Residents.find().fetch();
// Create an array of resident IDs
var residentIds = _.map(residents, function (resident) {
return residen... | JavaScript | 0.000001 | @@ -1705,15 +1705,9 @@
-latestA
+a
ctiv
|
f5539dfccd9e51ae083e2ebe239df2dfb721f528 | Add util function to detect if an element is overflowing | components/utils/utils.js | components/utils/utils.js | export const getViewport = () => ({
height: window.innerHeight || document.documentElement.offsetHeight,
width: window.innerWidth || document.documentElement.offsetWidth,
});
| JavaScript | 0.000006 | @@ -172,8 +172,148 @@
th,%0A%7D);%0A
+%0Aexport const isElementOverflowing = (element) =%3E element.clientWidth %3C element.scrollWidth %7C%7C element.clientHeight %3C element.scrollHeight;%0A
|
224edf72613691bef4d9b62dd505825eacd81930 | update config | config/default.js | config/default.js | 'use strict'
/**
* config
*/
const path = require('path');
module.exports = {
// debug 为 true 时,用于本地调试
debug: true,
logger: {
appenders: [{
type: 'console'
},
{
type: 'file',
filename: path.join(__dirname, '../logs/cheese.log'),
category: 'chees... | JavaScript | 0.000001 | @@ -785,17 +785,25 @@
session
-_
+: %7B%0D%0A
secret:
@@ -820,17 +820,16 @@
_secret'
-,
// %E5%8A%A1%E5%BF%85%E4%BF%AE%E6%94%B9
@@ -836,38 +836,149 @@
%0D%0A
-auth_cookie_name: 'node_club',
+%7D,%0D%0A cookie: %7B%0D%0A name: 'node_club',%0D%0A path: '/',%0D%0A maxAge: 1000 * 60 * 60 * 24 * 30,%... |
84d36035acef65bc1a122aec09c495b81eef0a26 | add page header | powerplant.js | powerplant.js | #! /usr/bin/env node
var nomnom = require("nomnom");
var fs = require("fs");
nomnom.options({
inputFile: {
abbr: "i",
full: "input",
help: "Name of the JSON input file. If you don't specify a file, data will be read from stdin",
metavar : "FILE"
},
outputFile:{
abbr: "o",
full: "output",... | JavaScript | 0.000001 | @@ -1921,16 +1921,197 @@
ader()%7B%0A
+ this.html += %22%3Cdiv%3E%3Ch1%3E%22 + this.data.character + %22%3C/h1%3E%3Ch2%3ELevel %22 + this.data.level + %22 %22 + this.data.class + %22%3C/h2%3E%3C/div%3E%22;%0A this.html += %22%3Cdiv class=%5C'clear%5C'%3E%3C/div%3E%22;
%0A %7D,%0A%0A
|
3556b9908581d42cd1fa437e3e54cd82cabb7e6b | fix typo | node/index.js | node/index.js | var express = require("express");
var mongoose = require("mongoose");
var bodyParser = require("body-parser");
var app = express();
mongoose.connect("mongodb://localhost:27017/chat");
var db = mongoose.connection;
var users = db.collection("users");
var conversations = db.collection("conversations");
app.use(bodyPars... | JavaScript | 0.999991 | @@ -170,16 +170,22 @@
t:27017/
+users-
chat%22);%0A
|
94d6d21aece9b75520a48acc9570e725022dc1ee | Remove plugin | webpack.main.config.js | webpack.main.config.js | "use strict";
const path = require("path");
const packageJSON = require("./package.json");
const dependencies = packageJSON.dependencies;
const optionalDependencies = packageJSON.optionalDependencies || {};
const webpack = require("webpack");
const outputDir = path.join(__dirname, "output");
const CopyWebpackPlugin... | JavaScript | 0.000001 | @@ -2828,29 +2828,40 @@
%5D%0A %7D)
+%0A //
,%0A
+ //
new webpack
|
4a209f5393c47dec0797f1d448a4f2c65aebc64a | Update version string to 2.5.3-zzz.1 | source/boot/version.js | source/boot/version.js | /**
* Each Enyo-provided library will annotate this structure with its own
* version info. Why? In general, Enyo and its libraries are versioned
* and released together, but libraries may be versioned separately in
* the future. Also, since libraries are checked out and updated
* individually, a project may be using "m... | JavaScript | 0.000001 | @@ -904,13 +904,13 @@
5.3-
-pre.3
+zzz.1
'%0A%7D;
|
7e65d607922a7178e33cd712bb0052b4ce815f54 | Fix JSCS rule violation | src/rules/rdf/mustNotExist.js | src/rules/rdf/mustNotExist.js | import { RDF_OBSOLETE_TAGS, RDF_UNALLOWED_TAGS, RDF_UNALLOWED_IF_LISTED_TAGS,
VALIDATION_ERROR, VALIDATION_WARNING } from 'const';
import * as messages from 'messages';
export function mustNotExist(xmlDoc, filename, {namespace}={}) {
return new Promise((resolve) => {
var bannedTags = RDF_UNALLOWED_TAGS;
v... | JavaScript | 0.000015 | @@ -1324,16 +1324,31 @@
= %7B%7D) %7B
+ // jscs:ignore
%0A var v
|
4e6538f62429edd26eb880e51d7c0a92b8653dec | fix error when brands is null | desktop-site/components/CartProduct.js | desktop-site/components/CartProduct.js | // Copyright (C) 2016 Goom Inc. All rights reserved.
import React, { PropTypes } from 'react';
import _ from 'lodash';
import brandUtil from 'commons/utils/brandUtil';
import numberUtil from 'commons/utils/numberUtil';
import productUtil from 'commons/utils/productUtil';
import ResponsiveImage from 'components/snipp... | JavaScript | 0.00005 | @@ -3491,24 +3491,25 @@
%7B
+(
brand.produc
@@ -3510,16 +3510,23 @@
products
+ %7C%7C %5B%5D)
.map((p)
@@ -4027,22 +4027,30 @@
%7B
+(
brands
+ %7C%7C %5B%5D)
.map(ren
|
7fa62afbf542921465b6f4e9ea583fc555bc8d02 | Write tests for localStorage, app, and search. Media queries for styling. | lib/Components/Search.js | lib/Components/Search.js | import React from 'react';
import Trie from '../utils/Trie';
import Cities from '../utils/cities'
let newTrie = new Trie()
newTrie.populate(Cities.data)
export default class Search extends React.Component {
constructor(props) {
super(props);
this.state = {
search: '',
suggestedCities: []
}... | JavaScript | 0 | @@ -792,17 +792,16 @@
', '_')%0A
-%0A
retu
@@ -806,24 +806,54 @@
turn () =%3E (
+this.props.onClick(newPlace),
this.setStat
|
88a9f9109e54bf475d6a74ca3600da1a4d735fa5 | Fix bug where some browsers automatically turn the suggested zip code into a tel: link, and we blindly copied it into spree's zip code field | app/assets/javascripts/spree/frontend/spree_ups_address_validation.js | app/assets/javascripts/spree/frontend/spree_ups_address_validation.js | // Placeholder manifest file.
// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'
$(document).ready(function () {
$(".ups-address-validation-skip-container").on('change', function() {
$("#order_skip_ups_validation").val( $("input[type=checkbox... | JavaScript | 0 | @@ -1492,36 +1492,36 @@
%22, $suggestion).
-html
+text
() );%0A %7D);%0A%0A
|
e24869972b7cedab44b2bb269b119ea6bede3449 | Add firefox check | samples/msal-react-samples/react-router-sample/src/authConfig.js | samples/msal-react-samples/react-router-sample/src/authConfig.js | // Browser check variables
// If you support IE, our recommendation is that you sign-in using Redirect APIs
// If you as a developer are testing using Edge InPrivate mode, please add "isEdge" to the if check
const ua = window.navigator.userAgent;
const msie = ua.indexOf("MSIE ");
const msie11 = ua.indexOf("Trident/");
... | JavaScript | 0.000001 | @@ -345,24 +345,63 @@
f(%22Edge/%22);%0A
+const firefox = ua.indexOf(%22Firefox%22);%0A
const isIE =
@@ -451,16 +451,124 @@
dge %3E 0;
+%0Aconst isFirefox = firefox %3E 0; // Only needed if you need to support the redirect flow in Firefox incognito
%0A%0A// Con
@@ -836,16 +836,29 @@
%7C isEdge
+ %7C%7C isFirefox
... |
32fdda518e35319e00112af9fbd09375f2ae56db | Fix syntax error | Specs/Widgets/InfoBox/InfoBoxSpec.js | Specs/Widgets/InfoBox/InfoBoxSpec.js | /*global defineSuite*/
defineSuite([
'Widgets/InfoBox/InfoBox',
'Core/defined',
'Specs/pollToPromise'
], function(
InfoBox,
defined,
pollToPromise) {
'use strict';
var testContainer;
var infoBox;
beforeEach(function() {
testContainer = documen... | JavaScript | 0.000585 | @@ -2263,16 +2263,17 @@
iner.id)
+)
;%0A %7D)
|
03e433df8c8efb4d3d12fef297d0a4ebf8e4502a | Implement IMB | src/main/resources/static/js/HackMdk3App.js | src/main/resources/static/js/HackMdk3App.js | var hackMdk3App = angular.module('hackMdk3App', [
'ngRoute',
'ngCookies']);
hackMdk3App.constant('$constant', {
apiVersion: {
public: 'api/v1/public',
protected: 'api/v1/protected'
},
templates: {
login: 'templates/login.tpl.html',
include: 'templates/include.tpl.html... | JavaScript | 0 | @@ -1559,37 +1559,35 @@
Url: 'templates/
-e-ktp
+imb
.tpl.html',%0A
|
e5cd7e8a0db844ca0aab0c8d524b3854248caafa | modify modal | src/components/modal/modalstack.js | src/components/modal/modalstack.js | /**
* Created by huangxinghui on 2015/5/28.
*/
var $ = require('jquery');
var $body = require('../../body');
var transition = require('../../transition');
var StackedMap = require('./stackedmap');
var openedWindows = StackedMap.createNew();
var OPENED_MODAL_CLASS = 'modal-open';
var BACKDROP_TRANSITION_DURATION = 15... | JavaScript | 0.000002 | @@ -2612,40 +2612,243 @@
$
-modalElement = $(options.content
+body.addClass(OPENED_MODAL_CLASS);%0A%0A $modalElement = $(options.content);%0A $modalElement%0A .on('click.dismiss.data-api', '%5Bdata-dismiss%5D', function(e) %7B%0A modalStack.dismiss(modalInstance, 'dismiss click');%0A %7... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.