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 |
|---|---|---|---|---|---|---|---|
3d47dabd7e6d23d56c5c96d5686ba1328cde16f7 | make sure not to change title if forced | lib/console2/console.js | lib/console2/console.js | 'use babel'
/** @jsx etch.dom */
import etch from 'etch'
import { Raw } from '../util/etch.js'
import { CompositeDisposable, Emitter } from 'atom'
import { Terminal } from 'xterm'
import * as fit from 'xterm/lib/addons/fit/fit'
import * as webLinks from 'xterm/lib/addons/webLinks/webLinks'
import * as winptyCompat fro... | JavaScript | 0.000007 | @@ -2595,20 +2595,87 @@
Title (t
+, force
) %7B%0A
+ if (force == undefined) %7B%0A if (!this.forced) %7B%0A
this
@@ -2685,16 +2685,20 @@
tle = t%0A
+
this
@@ -2730,16 +2730,133 @@
le', t)%0A
+ %7D%0A %7D else %7B%0A this.forced = force%0A this.title = t%0A this.emit... |
9461b7d20691a6c9dcad0d7f28f4e5b17ad2353e | Comment for enemy movement | src/GameElements/Enemy.js | src/GameElements/Enemy.js | /**
* Enemy
*/
import animate;
import ui.View;
import ui.ImageView as ImageView;
exports = Class(ui.View, function (supr) {
this.init = function (opts) {
this._config = JSON.parse(CACHE['resources/conf/config.json']);
this._progress = 0;
//@TODO: Later development. Moving the enemy.
... | JavaScript | 0 | @@ -2193,24 +2193,58 @@
n tick () %7B%0A
+ // Move enemy left and right.%0A
this._en
|
2de5d8e0c02352308b5b294761d4072e4bcf869f | update doc, https://github.com/phetsims/sun/issues/466 | js/ComboBoxIO.js | js/ComboBoxIO.js | // Copyright 2017-2018, University of Colorado Boulder
/**
* IO type for ComboBox
*
* @author Sam Reid (PhET Interactive Simulations)
* @author Andrew Adare (PhET Interactive Simulations)
*/
define( function( require ) {
'use strict';
// modules
var NodeIO = require( 'SCENERY/nodes/NodeIO' );
var phetioI... | JavaScript | 0 | @@ -856,155 +856,336 @@
n: '
-User interface component that displays the current value and shows a
+A combo box is composed of a push button and a listbox. The listbox contains items that represent ' +%0A 'choices. Pressing the button
pop
+s
up
-for s
+the listbox. S
electi
-o
n
+g
from a
- ... |
2173aab47723a6c36b2c3f06a69cd5b866125000 | remove username from the localstorage on sign out | app/assets/javascripts/money/routers/default_router.js | app/assets/javascripts/money/routers/default_router.js | M.DefaultRouter = Backbone.Router.extend({
initialize: function() {
this.listenTo(M.dispatcher, 'm:show:signin', function() {
this.navigate('/', { trigger: true });
});
this.listenTo(M.dispatcher, 'm:show:signup', function() {
this.navigate('/signup', { trigger: true });
});
this.lis... | JavaScript | 0 | @@ -1159,24 +1159,67 @@
ss_token');%0A
+ localStorage.removeItem('username');%0A
this.n
|
5f746a355c1f268cb63b52696eed92a186c9aace | Build site at 2014-06-17 15:17:54 UTC | cfacalc/main.js | cfacalc/main.js | function createAlert(message)
{
var alertbox = document.getElementById('message_placeholder');
alertbox.className = "alert alert-danger alert-dismissable";
alertbox.innerHTML = message;
console.log("Alert Added");
}
function createSuccess(message)
{
var alertbox = document.getElementById('message_placeholder... | JavaScript | 0 | @@ -1,20 +1,261 @@
+var appCache = window.applicationCache;%0AappCache.update(); // Attempt to update the user's cache.%0Aif (appCache.status == window.applicationCache.UPDATEREADY) %7B%0A appCache.swapCache(); // The fetch was successful, swap in the new cache.%0A%7D%0A%0A%0A
function createAlert
|
d7130812d040774621aed6f53eb44a91ec6c1223 | Fix expand / collapse actions | app/javascript/gobierto_admin/modules/terms_controller.js | app/javascript/gobierto_admin/modules/terms_controller.js | import Sortable from 'sortablejs';
window.GobiertoAdmin.TermsController = (function() {
function TermsController() {}
TermsController.prototype.index = function() {
_handleTermsList();
_handleSortableList();
};
function _handleTermsList() {
// Toggle selected element child
$('.v_container .v_... | JavaScript | 0.000003 | @@ -908,32 +908,58 @@
k(function(e) %7B%0A
+ e.preventDefault();%0A
// closes
@@ -963,32 +963,32 @@
es all elements%0A
-
$('.v_cont
@@ -1031,32 +1031,115 @@
s('el-opened');%0A
+ $('.fa-caret-down').removeClass('fa-caret-down').addClass('fa-caret-right');%0A
%7D);%0A%0A //
@@ -1246,2... |
91812eec077c1cf257e5c93731e256f3efa99555 | Add linked element for Property, see https://github.com/phetsims/sun/issues/420 | js/ToggleNode.js | js/ToggleNode.js | // Copyright 2013-2018, University of Colorado Boulder
/**
* Display one of N nodes based on a given Property. Maintains the bounds of the union of children for layout.
* Supports null and undefined as possible values. Will not work correctly if the children are changed externally
* after instantiation (manages i... | JavaScript | 0 | @@ -2065,24 +2065,139 @@
options );%0A%0A
+ this.addLinkedElement( valueProperty, %7B%0A tandem: options.tandem.createTandem( 'valueProperty' )%0A %7D );%0A%0A
// @priv
|
3ec627056585c1b9e6063d09268b0135c3fce4bb | Fix code editor | js/app/editor.js | js/app/editor.js | /*
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... | JavaScript | 0.001087 | @@ -561,25 +561,24 @@
nse.%0A*/%0A
-%0A
import %7B
EditorS
@@ -573,22 +573,8 @@
rt %7B
- EditorState,
basi
@@ -579,26 +579,24 @@
sicSetup
-
%7D from
-'@
+%22
codemirr
@@ -601,22 +601,9 @@
rror
-/basic-setup';
+%22
%0Aimp
@@ -666,35 +666,29 @@
rt %7B
- defaultTabBinding
+indentWithTab
%7D from
-'
+%22
... |
cc80b7afb3abb03e5ad2d17a277c36e0fbf72a68 | check existence of tab.url in background.js | js/background.js | js/background.js | // background.js
// coded by azrafe7
// manifest object
var manifest = {};
// store current tab info
var currentTab;
init();
// read manifest file and put parsed object in manifest global variable
function readManifestFile() {
xhr = new XMLHttpRequest();
xhr.open("GET", chrome.extension.getURL("manifest.json"));
... | JavaScript | 0 | @@ -546,16 +546,28 @@
b) %7B%0A%09if
+ (tab.url &&
(tab.ur
@@ -622,16 +622,17 @@
%22) %3E= 0)
+)
%7B%0A%09%09con
|
3b8209246785d885cce4005f1a2e7fcae709f3da | Correct text style proptypes (#1956) | src/pricing/PricingCard.js | src/pricing/PricingCard.js | import React from 'react';
import PropTypes from 'prop-types';
import { View, Platform, StyleSheet } from 'react-native';
import { normalizeText } from '../helpers';
import { fonts, ViewPropTypes, withTheme } from '../config';
import Text from '../text/Text';
import Button from '../buttons/Button';
import Icon from '... | JavaScript | 0 | @@ -91,16 +91,32 @@
yleSheet
+, Text as RNText
%7D from
@@ -2183,25 +2183,32 @@
titleStyle:
-P
+RNText.p
ropTypes.obj
@@ -2200,30 +2200,29 @@
t.propTypes.
-object
+style
,%0A pricingS
@@ -2223,25 +2223,32 @@
icingStyle:
-P
+RNText.p
ropTypes.obj
@@ -2240,30 +2240,29 @@
t.propTypes.
-object
+style
,%0A i... |
36f26d2aeb16ee3d8c3e061d4fae72fb0458a31b | Add a title to the project title in the sidebar | src/project/SidebarView.js | src/project/SidebarView.js | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0.000001 | @@ -2276,24 +2276,103 @@
ot().name);%0A
+ $projectTitle.attr(%22title%22, ProjectManager.getProjectRoot().fullPath);%0A
%7D%0A %0A
|
47adba4a5b03a7dd66327073c782ea472c66cbf6 | remove suicide argument | lib/executables/pump.js | lib/executables/pump.js | /**
* Copyright (c) 2012 Andreas Madsen
* MIT License
*/
(function () {
"use strict";
var helpers = require('../helpers.js');
var core = helpers.core('core');
var Process = helpers.core('process');
var streams = helpers.core('streams');
// get and parse the options
var options = JSON.parse(process.e... | JavaScript | 0.000038 | @@ -1689,39 +1689,32 @@
top', function (
-suicide
) %7B%0A monito
|
dc4ad0cca85eb7a5ea812200c42c2845678fa54c | access token | app/js/main.js | app/js/main.js | /* ========================================================================= */
/* VARIABLES =============================================================== */
/* ========================================================================= */
var checkedBoxes = 0,
round = [],
results = [],
tour;
/* ==================... | JavaScript | 0.000002 | @@ -2186,217 +2186,8 @@
);%0A%0A
-%09%09/*// Provide your access token%0A%09%09L.mapbox.accessToken = 'pk.eyJ1Ijoiam9zZW5tYXIiLCJhIjoiRTBnY2plZyJ9.16b9pM_DfVdunAs6jZmE-A';%0A%09%09// Create a map in the div #map%0A%09%09L.mapbox.map('map', 'josenmar.fac6fc28');*/%0A%0A
%09%09//
|
f469adebf9c6dcd348be53e537a7dbc310d4601a | Update contact_me.js | js/contact_me.js | js/contact_me.js | var index = 0;
var captionLength = 0;
var captionOptions = ["Data Scientist","Python Enthusiast","Social Activist"]
// this will make the cursor blink at 400ms per cycle
function cursorAnimation() {
$('#cursor').animate({
opacity: 0
}, 400).animate({
opacity: 1
}, 400);
}
// this types the caption
f... | JavaScript | 0 | @@ -3671,19 +3671,16 @@
false,%0A
-//
|
6c74ee1ebdfbe59c96911a1be501b111a26c697e | Fix simple path filter | lib/filters/simple-path.js | lib/filters/simple-path.js | import url from 'url';
const simplePathFilter = str => req =>
url.parse(req.url, true).pathname.indexOf(str) != -1;
module.exports = simplePathFilter;
| JavaScript | 0.000004 | @@ -1,25 +1,30 @@
-impor
+cons
t url
-from
+= require(
'url'
+)
;%0A%0Ac
|
29e600ed5c82141d29730a2d35f7cc97783d64be | lowercase mobile device type | js/core/Stage.js | js/core/Stage.js | define(["js/html/HtmlElement", "js/core/Bus", "js/core/WindowManager", "js/core/ExternalInterface"], function (HtmlElement, Bus, WindowManager, ExternalInterface) {
var browserClassMap = {
"hasTouch" : ["touch","no-touch"],
"supportsTransition" : ["transition","no-transition"],
"isMobile" :... | JavaScript | 0.999941 | @@ -2154,24 +2154,38 @@
= mobile%5B1%5D
+.toLowerCase()
;%0A
|
32a2590665dfc4b27917ceb4b58a6d8085514e54 | Implement the decorator pattern | lib/formats/json/parser.js | lib/formats/json/parser.js | const {
isString,
isDefinedOrThrow,
isStringOrObjectOrThrow
} = require("../../utils/fun.js");
function JSONParser() {
}
const invalidPayloadTypeError =
new Error("invalid payload type, allowed are: string or object");
const nullOrIndefinedPayload =
new Error("null or undefined payload");
// Function
con... | JavaScript | 0.00042 | @@ -115,20 +115,58 @@
NParser(
-) %7B%0A
+decorator) %7B%0A this.decorator = decorator;
%0A%7D%0A%0Acons
@@ -952,24 +952,122 @@
n(payload) %7B
+%0A let toparse = payload;%0A%0A if(this.decorator) %7B%0A toparse = this.decorator.parse(payload);%0A %7D
%0A%0A //is tha
@@ -1121,23 +1121,23 @@
ndParse(
-payloa... |
35fcb23080be03b9e64ed1c15b5438fb421000d6 | Add score goal when game starts | app/src/app.js | app/src/app.js | const throttle = require('throttle-debounce/throttle');
const shortid = require('shortid');
// const convert = require('convert-range');
(function() {
const ws = new WebSocket('ws://' + location.hostname + ':' + location.port);
const id = shortid.generate();
ws.addEventListener('open', onOpenSocket);
ws.addEv... | JavaScript | 0.000459 | @@ -2439,32 +2439,43 @@
newPlayer
+%0A
.setAttribute('d
@@ -2498,17 +2498,16 @@
ayer.id)
-;
%0A
@@ -2507,25 +2507,18 @@
-newPlayer
+
.setAttr
@@ -2782,32 +2782,43 @@
newPlayer
+%0A
.appendChild(pla
@@ -2825,17 +2825,16 @@
yerType)
-;
%0A
@@ -2830,33 +... |
28e76677fe295c3bded1b2eb688896785442528c | Fix Duty Roster not considering trademarked divers | js/dutyRoster.js | js/dutyRoster.js | var config = require('../data/config.json');
dutyRoster = function() {
const guildID = config.dutyRosterGuild;
const gameName = config.dutyRosterGame;
const roleName = config.dutyRosterRole;
guild = this.guilds.get(guildID);
roleID = guild.roles.filter(r => r.name === roleName).first().id;
gui... | JavaScript | 0 | @@ -1132,33 +1132,41 @@
ce.game.name
- ===
+.startsWith(
game
+)
;%0A %7D catc
@@ -1418,17 +1418,25 @@
name
- ===
+.startsWith(
game
+)
;%0A
|
ad255aa565d55d8cf725d3acc783f29602f6a23a | remove unneeded assignment | lib/godot/net/client.js | lib/godot/net/client.js | /*
* client.js: Client object responsible for managing Producers attached to a TCP or UDP client.
*
* (C) 2012, Nodejitsu Inc.
*
*/
var dgram = require('dgram'),
net = require('net'),
utile = require('utile'),
clone = utile.clone,
back = require('back'),
EventEmitter = require('events').EventE... | JavaScript | 0.000001 | @@ -4904,40 +4904,8 @@
) %7B%0A
- self.attempt = backoff;%0A
|
7e05a0a089772707953822d55b15a892eea89d15 | test commit | js/index/user.js | js/index/user.js | function userAtk(){
//monHP -= userAtk;
console.log(userHP);
$("#monHP").html(monHP);
} | JavaScript | 0.000001 | @@ -18,10 +18,8 @@
)%7B%0A%09
-//
monH
@@ -27,37 +27,23 @@
-=
-userAtk;%0A%09console.log(userHP)
+monHP - userAtk
;%0A%09$
|
6de3c1570e579841b7cf5c434460db7b7777c001 | Fix DOWNLOAD to model.DOWNLOAD in CardController | js/myapp/card.js | js/myapp/card.js |
// ----------------------------------------------------------------
// Card Class
class CardModel extends SwitchModel {
constructor({
name,
lsKeyView,
triggerSelector,
switchSelector
} = {}) {
super({
name: name,
lsKeyView: lsKeyView,
triggerSelector: triggerSelector,
s... | JavaScript | 0 | @@ -2103,32 +2103,38 @@
;%0A %0A this.
+model.
DOWNLOAD = false
@@ -2462,16 +2462,22 @@
this.
+model.
DOWNLOAD
|
d0d13e5feea4aa2c3d7f35be31dcbd0299f9a4d3 | Fix mobile footer toolbar import rename | client/components/App/App.js | client/components/App/App.js | // @flow
import React from 'react'
import 'normalize.css/normalize.css'
import Footer from 'components/Footer/Footer'
import Nav from '../Nav/Nav'
import MobileFooterToolbar from '../Nav/MobileFooterToolbar/MobileFooterToolbar'
import styles from './App.scss'
import '../../styles/global.scss'
import Content from 'react... | JavaScript | 0.000001 | @@ -192,23 +192,19 @@
leFooter
-Toolbar
+Nav
/MobileF
@@ -208,23 +208,19 @@
leFooter
-Toolbar
+Nav
'%0Aimport
|
8f1ac322014dc5e82876b52012bc9e1bcfed0f7f | add PUT to the list of requests that pace tracks | client/config/environment.js | client/config/environment.js | /* jshint node: true */
module.exports = function (environment) {
var ENV = {
modulePrefix: 'hvzsite-client',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. '... | JavaScript | 0 | @@ -3307,16 +3307,105 @@
'orange'
+,%0A ajax: %7B%0A trackMethods: %5B'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'%5D%0A %7D
%0A %7D%0A
|
edd29b9bcb894ed1fd6511f2e748a87a14d792f3 | Add initializer to set active tab in page header | assets/site.js | assets/site.js | (function(){
"use strict";
var d = document, inits = [];
window.initializers = inits;
// initializer to manipulate all hyperlinks
inits.push(function(){
var x, h = location.host;
for (var xs = d.links, i = xs.length; i--; ){
var x = xs[i], m = x.getAttribute('data-m');
if (m) {
... | JavaScript | 0 | @@ -663,16 +663,435 @@
%7D%0A %7D);
+%0A %0A // initializer to set active tab in page header%0A inits.push(function()%7B%0A if (d.querySelectorAll)%7B%0A var xs = d.querySelectorAll('body%3Eheader%3Enav%3Ea'), href = location.href;%0A for(var i = 1, n = xs.length; i %3C n; i++)%7B%0A var x = x... |
55f32b0cd1305f28cf7e794983df38babece5a80 | Remove more Cortex | client/models/courseTable.js | client/models/courseTable.js | var _ = require('lodash')
var React = require('react')
var mori = require('mori')
var Year = require('./year')
var findFirstAvailableYear = require('../helpers/findFirstAvailableYear')
var calculateNextScheduleId = require('../helpers/calculateNextScheduleId')
var CourseTable = React.createClass({
addYear: function... | JavaScript | 0.000001 | @@ -362,14 +362,8 @@
ules
-.val()
%0A%09%09v
@@ -475,51 +475,36 @@
)%0A%09%09
-this.props.schedules.push(%7B%0A%09%09%09id: nextId,
+ScheduleActions.create(%7B%0A%09%09%09
year
|
d6c07b5a9fda7f255599e83d3f6fc8d514bb58a3 | tweak junit formatter output | lib/lint/reporter/junit.js | lib/lint/reporter/junit.js | // <?xml version="1.0" encoding="utf-8"?>
// <testsuite name="basis lint" tests="1" failures="2">
// <testcase name="filename.js" failures="2">
// <failure>...</failure>
// <failure>...</failure>
// ...
// </testcase>
// </testsuite>
var utils = require('../../build/misc/utils');
modul... | JavaScript | 0.000006 | @@ -308,16 +308,172 @@
ils');%0A%0A
+function escapeString(str)%7B%0A return str%0A .replace(/&/g, '&')%0A .replace(/%3C/g, '<')%0A .replace(/%3E/g, '>')%0A .replace(/%22/g, '"');%0A%7D%0A%0A
module.e
@@ -1269,135 +1269,58 @@
%5Ct%5Ct
-' +%0A '%3Cfailure%3E' +%0A w... |
50935dd9d2cda92901d84b5c1fe484a751a72851 | ADd & enable cors. | backend/app.js | backend/app.js | var express = require("express");
var logger = require("morgan");
var bodyParser = require("body-parser");
var mongoose = require("mongoose");
// =====config =====
const SERVER_PORT = process.env.PORT || 3000;
const MONGODB_URI = process.env.MONGODB_URI || 'mongodb://localhost/test';
// ===== Database connection ====... | JavaScript | 0 | @@ -23,24 +23,52 @@
%22express%22);%0A
+var cors = require(%22cors%22);%0A
var logger =
@@ -698,16 +698,33 @@
ress();%0A
+app.use(cors());%0A
app.use(
|
1ae6c860428082744dc4f850db459ef9673ef529 | Remove UV tooltip | src/parser/hunter/marksmanship/modules/spells/azeritetraits/UnerringVision.js | src/parser/hunter/marksmanship/modules/spells/azeritetraits/UnerringVision.js | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import BoringSpellValueText from 'interface/statistics/components/BoringSpellValueText';
import CriticalStrike from 'interface/icons/CriticalStrike';
import AzeritePowerStatistic from 'interface/statistics/Azerit... | JavaScript | 0 | @@ -460,26 +460,8 @@
rt %7B
- formatPercentage,
for
@@ -1642,210 +1642,8 @@
le%22%0A
- tooltip=%7B(%0A %3C%3E%0A Unerring Vision granted %3Cstrong%3E%7Bthis.crit%7D%3C/strong%3E Crit for %3Cstrong%3E%7BformatPercentage(this.uptime)%7D%25%3C/strong%3E of the fight. %3Cbr /%3E%0A %... |
0a728f11cf21c0a835445b275ba269d677a9571f | change style to title | client/src/components/App.js | client/src/components/App.js | import React, { Component } from 'react';
import { BrowserRouter as Router, NavLink, Route, Switch } from 'react-router-dom';
import { Link, withRouter } from 'react-router-dom'
import { Nav, Navbar, Jumbotron, Button, ButtonToolbar } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
impor... | JavaScript | 0.001661 | @@ -509,17 +509,36 @@
Thrones
-
+%3C/h1%3E%0A %3Ch2%3E
Quote Ge
@@ -547,17 +547,17 @@
rator%3C/h
-1
+2
%3E%0A
|
aa9fee0e9ce03012658321a90a1969a8cc8714b0 | Fix ScrollTo linting errors | src/animation/ScrollTo.js | src/animation/ScrollTo.js | /**
* @overview An animation module that smoothly scrolls to a given page position
* @module ScrollTo.js
*/
export const ScrollTo = {
/**
* Initiates a smooth scrolling animation to a specified page element
* @param {object} scrollTarget - DOM element to scroll to
* @param {number} [offset=0] - Scroll ta... | JavaScript | 0 | @@ -1439,31 +1439,9 @@
rget
-: scrollTarget, offset:
+,
off
@@ -2294,12 +2294,13 @@
%7D%0A %7D
+,
%0A%7D;%0A
|
3f9ad1796617297be8f74b0da387b39139997bc0 | Enforce same int precision over all shaders | js/regl-utils.js | js/regl-utils.js | export class Framebuffer {
constructor(regl) {
this.texture = regl.texture({ width: 1, height: 1, min: 'linear', mag: 'linear' }); // call resize before first use !
this.framebuffer = regl.framebuffer({ color: this.texture, depth: false, stencil: false, depthStencil: false });
}
resize(width, height) {
... | JavaScript | 0.000002 | @@ -1077,16 +1077,43 @@
p float;
+%0A precision highp int;
%0A%0A
|
3eb48e403c86ce2ebffb2e9265763a2f75ca4be7 | add serial number and device ID to upload record | lib/drivers/abbott/abbottFreeStyleLibre.js | lib/drivers/abbott/abbottFreeStyleLibre.js | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | JavaScript | 0 | @@ -5324,16 +5324,27 @@
r: data.
+deviceInfo.
serialNu
@@ -5372,18 +5372,72 @@
d: data.
-i
d
+eviceInfo.driverId + '-' + data.deviceInfo.serialNumber
,%0A
|
df583a0e4a7302b3168bc4054012ddafbb465d72 | Handle problem with default language not passing validation | app/assets/javascripts/views/components/Editor/DirectoryList.js | app/assets/javascripts/views/components/Editor/DirectoryList.js | /*
Copyright 2016 First People's Cultural Council
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 w... | JavaScript | 0.000001 | @@ -1581,16 +1581,233 @@
);%0A %7D%0A%0A
+ componentWillReceiveProps(nextProps) %7B%0A // Ensure value is in sync -- relevant for setting default value dynamically%0A if (nextProps.value != undefined) %7B%0A this.props.onChange(nextProps.value);%0A %7D%0A %7D%0A%0A
compon
|
df440ea132fb90a76c34b82c1fe293f8a81ed890 | change variable name, fix linting error | app/components/property-editor/editor-components/colorpicker.js | app/components/property-editor/editor-components/colorpicker.js | import React, { Component } from "react";
import { EYEDROPPER } from "../../../assets/icons";
import styles from "./colorpicker.css";
import { SketchPicker } from "react-color";
export default class ColorPicker extends Component {
static propTypes = {
currentElement: React.PropTypes.object
}
static contextT... | JavaScript | 0 | @@ -456,493 +456,274 @@
%0A%0A
-updateColor(hex, opacity) %7B%0A const style = this.props.currentElement.props.style;%0A const updatedColor = %7B%7D;%0A%0A if (style.color !== hex) %7B%0A updatedColor.color = hex;%0A %7D%0A%0A if (style.opacity !== opacity) %7B%0A updatedColor.opacity = opac... |
0e2a4993e757fa479a530d849ec6d9cbec9b9490 | add propertyRevision unit test | frameworks/runtime/tests/mixins/observable/propertyChanges.js | frameworks/runtime/tests/mixins/observable/propertyChanges.js | // ========================================================================
// SC.Observable Tests
// ========================================================================
/*globals module test ok isObj equals expects */
module("object.propertyChanges", {
setup: function() {
ObjectA = SC.Object.create({
... | JavaScript | 0 | @@ -218,16 +218,39 @@
cts */%0A%0A
+var revMatches = NO ;%0A%0A
module(%22
@@ -846,19 +846,88 @@
get, key
-) %7B
+, value, rev) %7B%0A revMatches = (rev === target.propertyRevision) ;
%0A
@@ -4051,12 +4051,136 @@
r bar');%0A%7D);
+%0A%0Atest(%22revision passed to observers should match .propertyRevis... |
b70bf9b11393c4930a27df979572eccbbbfa0198 | Fix new package to use propper cli useer input (as practice for build/pub) | src/scripts/new-package.js | src/scripts/new-package.js | import init from 'init-package-json'
import path from 'path'
import pick from 'lodash/pick'
import { exit, cp } from 'shelljs'
import { packageExists, getAllPackageNames, packageFullName } from './lib/packageUtils'
import config from './lib/config'
import PromptUtilities from './utils/PromptUtilities'
import inputPac... | JavaScript | 0 | @@ -1908,16 +1908,17 @@
s'%5D)
+,
%0A %7D)%0A
%0A
@@ -1917,754 +1917,8 @@
%7D)%0A
-%0A exit(0)%0A%0A%0A // const packageData = await PromptUtilities.prompt(questions(await getAuthor()))%0A // const packageData = await inquirer.prompt(questions(await getAuthor()))%0A logSuccess(JSON.stringify(pack... |
01805a1a1c14cf43c326777860588be561b4fe1d | update after minor layout changes | src/inject/inject.js | src/inject/inject.js | var natives = [
'_debugger',
'_linklist',
'assert',
'buffer',
'child_process',
'console',
'constants',
'crypto',
'cluster',
'dgram',
'dns',
'domain',
'events',
'freelist',
'fs',
'http',
'https',
'module',
'net',
'os',
'path',
'punycode',
'querystring',
'readline',
'repl... | JavaScript | 0 | @@ -1679,17 +1679,16 @@
r('.pl-s
-1
');%0A%0A
@@ -2371,15 +2371,8 @@
line
- .pl-s3
');%0A
@@ -2445,21 +2445,25 @@
nnerHTML
- ===
+.indexOf(
'require
@@ -2464,16 +2464,22 @@
equire')
+ %3E -1)
%7B%0A
@@ -2504,31 +2504,30 @@
ine.
-nextSibling.nextSibling
+querySelector('.pl-s')
;%0A
|
fd360a1315640847c249b3422790ce0bbd57d0d9 | Fix a typing mistake in 'logical absurdity' message | lib/package/plugins/checkConditionTruth.js | lib/package/plugins/checkConditionTruth.js | /*
Copyright 2019 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/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | JavaScript | 0.999999 | @@ -1293,18 +1293,18 @@
al absur
-i
d
+i
ty.%22%0A
|
4a238be90d6d9bbec39cb317946e30be31720206 | clear out firestorm too | src/server/routes/debug.js | src/server/routes/debug.js | var debug = require('debug')('wol:leaderboard');
var $db = require('../lib/mongo');
var gameres = require('../lib/gameres');
exports.reset = function(req, res, next) {
var games = ['ts', 'ra', 'td', 'd2', 'am'];
games.forEach(function(game) {
$db.get(game +'_dumps').drop();
$db.get(game +'_game... | JavaScript | 0.000002 | @@ -207,16 +207,22 @@
2', 'am'
+, 'fs'
%5D;%0A g
|
4bf2b06d3110ddc2d054a9bc772a729326ed3433 | Change incorrect/unneeded test logic | graphql/database/users/__tests__/checkSearchRateLimit.test.js | graphql/database/users/__tests__/checkSearchRateLimit.test.js | /* eslint-env jest */
import {
DatabaseOperation,
clearAllMockDBResponses,
getMockUserContext,
getMockUserInfo,
mockDate,
setMockDBResponse,
} from '../../test-utils'
import UserSearchLogModel from '../UserSearchLogModel'
import UserModel from '../UserModel'
jest.mock('../../databaseClient')
const userCo... | JavaScript | 0.000344 | @@ -822,36 +822,8 @@
lt%0A%0A
- // Spy on query methods%0A
@@ -1137,20 +1137,18 @@
mit
-ReferralData
+UserSearch
Log
@@ -1356,28 +1356,17 @@
const
-referralLogQ
+q
ueryMock
@@ -1505,20 +1505,9 @@
ect(
-referralLogQ
+q
uery
@@ -2216,66 +2216,18 @@
-// Mock UserSearchLogModel query%0A const ... |
10e59d4141cb93e13caa23c7e3a950b0e6fc198a | complete for functions | lib/rules/whitespace.js | lib/rules/whitespace.js | /**
* @fileoverview Specify where whitespace is suitable and where it isn't
* @author Raghav Dua <duaraghav8@gmail.com>
*/
'use strict';
module.exports = {
verify: function (context) {
var sourceCode = context.getSourceCode ();
context.on ('CallExpression', function (emitted) {
var node = emitted.node,
... | JavaScript | 0.999768 | @@ -881,68 +881,48 @@
var
-argsText = nodeCode.replace (new RegExp (fName + '%5Cs*'), '')
+lastArg = node.arguments.slice (-1) %5B0%5D;
%0A%0A%09%09
@@ -1053,66 +1053,214 @@
ne (
-node.arguments.slice (-1) %5B0%5D)) ) %7B%0A%09%09%09%09return;%0A%09%09%09%7D
+lastArg)) ) %7B%0A%09%09%09%09return;%0A%09%09%09%7D%0A%... |
8798eeef8fd7d4325bdafa408c6b32e5e173f134 | decode bool | src/solidity/types/Bool.js | src/solidity/types/Bool.js | 'use strict'
var util = require('./util')
function Bool () {
this.storageSlots = 1
this.storageBytes = 1
this.typeName = 'bool'
}
Bool.prototype.decodeFromStorage = function (location, storageContent) {
var value = util.extractHexValue(location, storageContent, this.storageBytes)
return value !== '00'
}
mo... | JavaScript | 0.999999 | @@ -311,16 +311,267 @@
'00'%0A%7D%0A%0A
+Bool.prototype.decodeLocals = function (stackHeight, stack, memory) %7B%0A if (stack.length - 1 %3C stackHeight) %7B%0A return false%0A %7D else %7B%0A return util.extractHexByteSlice(stack%5Bstack.length - 1 - stackHeight%5D, this.storageBytes, 0) !== '00'%0A %7D%0A%7... |
6a36d69126e959727a5530bb9be17b833c453d4a | Rename parameter | src/js/mousewheel.js | src/js/mousewheel.js | /*=========================
Mousewheel Control
===========================*/
s.mousewheel = {
event: false,
lastScrollTime: (new window.Date()).getTime()
};
if (s.params.mousewheelControl) {
if (document.onmousewheel !== undefined) {
s.mousewheel.event = 'mousewheel';
}
if (!s.mousewheel... | JavaScript | 0.000001 | @@ -1839,23 +1839,16 @@
usewheel
-Control
Invert)
|
9084eab186f807d7315db7c28892208ecb6a6e5c | Add default offset, add padding accordingly | lib/slide-indicators.js | lib/slide-indicators.js | (function($) {
$.declare('slideIndicators', {
defaults: {
element: '<div/>',
activeClass: 'slide-indicator-active',
itemClass: 'slide-indicator',
offsetY: 0,
allowClick: true
},
init: function() {
this.sliderContainer = this.el.slide('getContainer');
this.pageCo... | JavaScript | 0 | @@ -179,16 +179,18 @@
ffsetY:
+-1
0,%0A
@@ -455,16 +455,54 @@
bottom':
+ (this.offsetY %3C 0) ? -this.offsetY :
0,%0A
@@ -1443,16 +1443,17 @@
ottom':
+(
this.off
@@ -1456,16 +1456,40 @@
.offsetY
+ %3E 0) ? this.offsetY : 0
%0A %7D
|
c6da66dd9bbf2b2632ec74a1d12fb67c1523ab9d | add docstrings for messaging module | src/lib/messaging.js | src/lib/messaging.js | define('messaging',
['util', 'vent'],
function( util, vent ){
'use strict';
var init,
bindEvents,
show,
hide,
headerText,
subheaderText,
elem,
header,
subheader;
init = function(){
elem = util.getById('messenging');
header... | JavaScript | 0 | @@ -224,20 +224,110 @@
-subheader;%0A%0A
+message,%0A subheader;%0A%0A%0A /**%0A * Initialize messaging module%0A * @return %7Bvoid%7D%0A */
%0A
@@ -479,32 +479,121 @@
'h4');%0A %7D;%0A%0A%0A
+ /**%0A * Bind event handlers to global event emitter%0A * @return %7Bvoid%7D%0A... |
2f49448d27d2472df51a4e85344f89ce7adae4b2 | fix jshint | lib/tags/definitions.js | lib/tags/definitions.js | /*!
* comment.js
* Copyright (c) 2014 Denis Ciccale (@tdecs)
* Released under the MIT license
* https://github.com/dciccale/comment.js/blob/master/LICENSE.txt
*/
'use strict';
var utils = require('../utils');
var REGEX_OPTIONAL_PARAM = /#optional\s*/g;
var REGEX_TYPES = /\s*\|\s*/;
exports.defineTags = functio... | JavaScript | 0.000002 | @@ -4173,33 +4173,16 @@
ns = %7B%7D;
-%0A var types;
%0A%0A
|
361f7df974affda26f9adbbea029f8c1491c04fd | Support "rf" so you can do `npm rm -rf connect` | lib/utils/parse-args.js | lib/utils/parse-args.js | // info about each config option.
var url = require("url")
, path = require("path")
, Stream = require("stream").Stream
module.exports = exports = parseArgs
// [array,of,things] = allowed vals
// [array,of,types] allowed types
// Type : allowed type
var types = exports.types =
{ "auto-activate" : ["always", tr... | JavaScript | 0 | @@ -1496,16 +1496,41 @@
force%22%5D%0A
+ , rf : %5B%22--recursive%22%5D%0A
%7D%0A%0Avar
|
f816d903797b42d008312c9b2949b24b2495d192 | Maintain Dust context hierarchy | lib/view-engine-dust.js | lib/view-engine-dust.js | var req = require;
var onLoad = require('./onLoad');
// dust.debugLevel = 'DEBUG';
module.exports = function createEngine(config, viewEngine) {
var dust = config.dust || req('dustjs-linkedin');
config.dust = dust;
var onLoadFunc = onLoad(config);
if (onLoadFunc) {
dust.onLoad = onLoadFunc;
... | JavaScript | 0.000057 | @@ -1012,32 +1012,133 @@
%0A %7D%0A%0A
+ if (out.dustContext) %7B%0A base = out.dustContext.push(base);%0A %7D%0A%0A
temp
|
1b90c44424cc45acfcaffbb34230de6c3943ca5d | Add visibility::get to BottomTab | lib/views/bottom-tab.js | lib/views/bottom-tab.js | 'use strict';
class BottomTab extends HTMLElement{
initialize(Content, onClick) {
this._active = false
this.innerHTML = Content
this.classList.add('linter-tab')
this.countSpan = document.createElement('span')
this.countSpan.classList.add('count')
this.countSpan.textContent = '0'
this.a... | JavaScript | 0 | @@ -104,16 +104,44 @@
= false%0A
+ this._visibility = true%0A
this
@@ -161,16 +161,16 @@
Content%0A
-
this
@@ -531,24 +531,49 @@
ve(value) %7B%0A
+ this._active = value%0A
if (valu
@@ -673,33 +673,8 @@
%7D%0A
- this._active = value%0A
%7D%0A
@@ -698,32 +698,8 @@
) %7B%0A
- this._cou... |
2a1c337b00954e676fbbd548fb2bc2b6521a2214 | update CascaderList examples | examples/containers/app/modules/layout/CascaderListExamples.js | examples/containers/app/modules/layout/CascaderListExamples.js | /**
* @file CascaderList examples
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
// Components
import Widget from 'src/Widget';
import WidgetHeader from 'src/WidgetHeader';
import Paper from 'src/Paper';
import CascaderList from 'src/CascaderList';
// Docs
import Pro... | JavaScript | 0 | @@ -5085,35 +5085,157 @@
-node-text%22%3E
-%7Bnode.text%7D
+%0A %7Bnode.text%7D%0A
%3C/span%3E%0A
@@ -7299,27 +7299,149 @@
e-text%22%3E
-%7Bnode.text%7D
+%0A ... |
d0c3ea86cd6abd411827898e3bd468e2c13fcc9f | Add fade to tooltips | eventkit_cloud/ui/static/ui/app/components/BaseTooltip.js | eventkit_cloud/ui/static/ui/app/components/BaseTooltip.js | import React, { PropTypes, Component } from 'react';
export class BaseTooltip extends Component {
onMouseOver(e) {
if (typeof this.props.onMouseOver === 'function') {
this.props.onMouseOver(e);
}
}
onMouseOut(e) {
if (typeof this.props.onMouseOut === 'function') {
... | JavaScript | 0.000001 | @@ -580,85 +580,8 @@
x',%0A
- // marginTop: '-38%25',%0A // marginLeft: '-48%25',%0A
@@ -604,24 +604,24 @@
om: '36px',%0A
+
@@ -863,23 +863,59 @@
-display
+opacity: '0',%0A pointerEvents
: 'none'
@@ -1474,61 +1474,395 @@
-display: 'inhe... |
724f9e2eb30c3393787e1b9a2686256520866f30 | Revert "Hide floating action button on thread views (#6859)" | app/javascript/mastodon/features/ui/components/columns_area.js | app/javascript/mastodon/features/ui/components/columns_area.js | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { link... | JavaScript | 0 | @@ -1298,68 +1298,8 @@
);%0A%0A
-const shouldHideFAB = path =%3E path.match(/%5E%5C/statuses%5C//);%0A%0A
expo
@@ -5188,291 +5188,8 @@
n) %7B
-%0A const floatingActionButton = shouldHideFAB(this.context.router.history.location.pathname) ? null : %3CLink key='floating-action-button' to='/statuses/new' className=... |
71def46198c123a8bb51f0ec36765799cd024869 | Remove outer describe | app/shared/reservation-access-code/GeneratedAccessCode.spec.js | app/shared/reservation-access-code/GeneratedAccessCode.spec.js | import React from 'react';
import { shallowWithIntl } from 'utils/testUtils';
import GeneratedAccessCode from './GeneratedAccessCode';
describe('shared/reservation-access-code/GeneratedAccessCode', () => {
const defaultProps = {
accessCode: '1234',
};
function getWrapper(extraProps) {
return shallowWit... | JavaScript | 0.000272 | @@ -388,62 +388,8 @@
%7D%0A%0A
- describe('if reservation has accessCode', () =%3E %7B%0A
te
@@ -428,34 +428,32 @@
class', () =%3E %7B%0A
-
const span =
@@ -480,26 +480,24 @@
span');%0A
-
expect(span.
@@ -513,26 +513,24 @@
oBe(1);%0A
-
-
expect(span.
@@ -577,35 +577,31 @@
ess-code');%0A... |
d1293e868ed3d7187423a56717f406e052da41a2 | FIX - changed node api to https | config/index.js | config/index.js | import defaults from 'defaults'
const API_GLOBAL = '_IMDIKATOR'
const env = process.env.NODE_ENV || 'development'
const DEFAULTS = {
port: 3000,
reduxDevTools: false
}
const globalConfig = (typeof window !== 'undefined' && window[API_GLOBAL] || {})
export default defaults({
env,
port: process.env.PORT,
/... | JavaScript | 0 | @@ -366,16 +366,8 @@
t: '
-https://
atin
|
31aed20f9758946d9dbecb031605de38c5cbb02d | fix db url typo | config/index.js | config/index.js | const config = {
redisURL: process.env.redisURL
}
config.privilege = {
PrimaryUser: 1,
Teacher: 2,
Root: 3
}
config.judge = {
Pending: 0,
Running: 1,
CompileError: 2,
Accepted: 3,
RuntimeError: 4,
WrongAnswer: 5,
TimeLimitExceeded: 6,
MemoryLimitExceed: 7,
OutputLimitExceed: 8,
Presentatio... | JavaScript | 0.000805 | @@ -763,16 +763,19 @@
.1:27017
+/oj
' // %E4%B9%8B%E6%89%80%E4%BB%A5
|
405e1f3110b3a1488625df7adabeb024cf4cdd39 | fix undefined properties | lib/ormneo-object-parse.js | lib/ormneo-object-parse.js | 'use strict';
const _ = require('lodash');
class ORMNeoObjectParse {
static objectString(node) {
if (node && _.isObject(node)) {
let keys = _.keys(node);
let createString = keys.reduce((result, current) => {
if (current !== 'id') {
return result... | JavaScript | 0.002118 | @@ -276,16 +276,49 @@
!== 'id'
+ && !_.isUndefined(node%5Bcurrent%5D)
) %7B%0A
|
2a865ca7cda020c1c2940763337e7f54985855ab | Use CommonJS syntax in configHelper | configHelper.js | configHelper.js | /* eslint-disable no-template-curly-in-string */
// Do not edit this file - edit config.json instead.
const util = require("./util");
const loadJSON = util.loadJSON;
const saveJSON = util.saveJSON;
const defaultConfig = {
eris: {
token: "TOKEN GOES HERE",
id: "CHANNEL ID GOES HERE",
topicT... | JavaScript | 0.000001 | @@ -999,23 +999,8 @@
%7D;%0A%0A
-export default
func
@@ -1333,8 +1333,87 @@
nfig;%0A%7D%0A
+%0Amodule.exports = getFullConfig;%0Amodule.exports.defaultConfig = defaultConfig;%0A
|
608498ded219247ee22179ef6be57a7f0b6ff162 | Update HomeController.js | app/resources/components/controllers/HomeController.js | app/resources/components/controllers/HomeController.js | App.controller('HomeController', function($scope, $sce, Micropost, ZueiraAPI, MicropostParticipant, SweetAlert) {
$scope.scrollTrigger = false;
$scope.api = new ZueiraAPI();
$scope.api.nextPage('active');
$scope.openShareModal = function (post) {
$scope.post = post;
$('.ui.modal').modal({ detachable:f... | JavaScript | 0 | @@ -46,14 +46,8 @@
ope,
- $sce,
Mic
|
46de3c117868584b6ced368a32081a1f9796a644 | Update browser.js | bin/browser.js | bin/browser.js | const puppeteer = require('puppeteer');
const request = JSON.parse(process.argv[2]);
const callChrome = async () => {
let browser;
let page;
const requestOptions = {};
const returnOptions = {};
returnOptions.requests = [];
returnOptions.response = {};
try {
... | JavaScript | 0.000003 | @@ -1395,24 +1395,41 @@
ns);%0A
+ const htmlCode =
await page%5B
@@ -1582,16 +1582,122 @@
st.url;%0A
+ if(request.action =='content')%7B%0A returnOptions.response.htmlCode = htmlCode;%0A %7D%0A
|
b22373c0c471bd5c45d10c05920821b1befa11f9 | Update Welcome.js | client/src/components/Welcome.js | client/src/components/Welcome.js | import React, { PureComponent } from 'react';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import ListContainer from './ListContainer';
import { redirectToCas } from '../helpers/cas';
export default class Welcome extends PureComponent {
static styles = {
root: {
... | JavaScript | 0 | @@ -513,16 +513,17 @@
%3Ch1%3E
+
Welcome
|
110e1871555cece764e2dcbfdf3ab7c14c7c164e | Add shabang to bin file | bin/gut-cli.js | bin/gut-cli.js | var gut = require('../');
if (process.argv.length > 2 && process.argv[2] === 'status') {
console.log("\n\tGut status: %s", gut.getStatus());
}
console.log('\nI think you meant "git"');
| JavaScript | 0.000001 | @@ -1,8 +1,29 @@
+#!/usr/bin/env node%0A%0A
var gut
|
9ef59bec3a93a9622e42e7c5f71a1afe544bd0d7 | Remove pointless packets and cycles, various | node/gpsloop/gpsloop.js | node/gpsloop/gpsloop.js | //Device config.
var updateServerEvery = 30; //Update the last location to server every 30 seconds.
var writeOutputBufferEvery = 60; //Save to HDD every 60 seconds.
var outputFilePath = "/home/pi/carpi/gps-history/";
var serverHost = "192.168.1.25";
var serverPort = 6668;
//Init GPSD link.
var bancroft = require("ba... | JavaScript | 0 | @@ -641,16 +641,17 @@
tion) %7B%0A
+%0A
consol
@@ -696,32 +696,503 @@
tion
-%5CnUpdating buffer.
+%22);%0A%0A //Bancroft should be updated to only hint location if it has coordinates.%0A //We'll check for them manually.%0A%0A if ( location.hasOwnProperty('latitude') && location.hasOwnProperty('longitude') && lo... |
769a7f9d9047f2ec65bd252976f79375fb4434b9 | allow option crc=false to be able to send raw data | lib/transport/serial.js | lib/transport/serial.js | var util = require("util");
var buffer = require("../buffer");
var BaseTransport = require("./transport");
function Transport(stream, options) {
options = options || {};
BaseTransport.call(this, stream, options);
this.callback = null;
this.callbackSlaveId = null;
this.queued = nu... | JavaScript | 0.000001 | @@ -688,17 +688,47 @@
ength +
-3
+(options.crc === false ? 1 : 3)
);%0A%0A%09dat
@@ -874,24 +874,55 @@
(data, 1);%0A%0A
+%09if (options.crc !== false) %7B%0A%09
%09data.writeU
@@ -994,16 +994,19 @@
th + 1);
+%0A%09%7D
%0A%0A%09retur
|
217631b66fb886684ec40fa5270f4dc36a53f01f | Handle pseudo-browser environments when rendering server-side | lib/utils/getPrefix.es6 | lib/utils/getPrefix.es6 | export default (function() {
if (typeof window === 'undefined') return '';
// Thanks David Walsh
let styles = window.getComputedStyle(document.documentElement, ''),
pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
... | JavaScript | 0.000001 | @@ -28,25 +28,287 @@
%7B%0A
-if (typeof window
+// Checking specifically for 'window.document' is for pseudo-browser server-side%0A // environments that define 'window' as the global context.%0A // E.g. React-rails (see https://github.com/reactjs/react-rails/pull/84)%0A if (typeof window === 'undefined' %7C%7C ty... |
f5054ead4ca0f64cbacd4dd2d24b420dfc1f8e12 | use non-opaque origin when mocking browser env | packages/@sanity/core/src/util/mockBrowserEnvironment.js | packages/@sanity/core/src/util/mockBrowserEnvironment.js | const pirates = require('pirates')
const jsdomGlobal = require('jsdom-global')
const pluginLoader = require('@sanity/plugin-loader')
const requireContext = require('./requireContext')
const registerBabelLoader = require('./registerBabelLoader')
const getFakeGlobals = () => ({
__DEV__: false,
requestAnimationFrame:... | JavaScript | 0.000001 | @@ -239,16 +239,129 @@
ader')%0A%0A
+const jsdomDefaultHtml = %60%3C!doctype html%3E%0A%3Chtml%3E%0A %3Chead%3E%3Cmeta charset=%22utf-8%22%3E%3C/head%3E%0A %3Cbody%3E%3C/body%3E%0A%3C/html%3E%60%0A%0A
const ge
@@ -982,16 +982,65 @@
mGlobal(
+jsdomDefaultHtml, %7Burl: 'http://localhost:3333/'%7D
)%0A cons
|
d192304759aba36813777037d0898ae974640ff5 | replace & with the HTML entity in escapeHTML | content/util.js | content/util.js | /***** BEGIN LICENSE BLOCK ***** {{{
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (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.mozilla.org/MPL/
Software distribu... | JavaScript | 0.000001 | @@ -1829,11 +1829,33 @@
ace(
-/%3C/
+%22&%22, %22&%22).replace(%22%3C%22
, %22&
@@ -1872,11 +1872,11 @@
ace(
-/%3E/
+%22%3E%22
, %22&
|
5726a1fcd9dc0469e8faded4488e5e5ee5ad811a | Make the Coverr logo prettier | assets/src/edit-story/app/media/media3p/attribution.js | assets/src/edit-story/app/media/media3p/attribution.js | /*
* 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/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0.000002 | @@ -1457,16 +1457,21 @@
6px;%0A
+line-
height:
@@ -1476,16 +1476,16 @@
: 14px;%0A
-
%60;%0A%0Acons
@@ -1519,32 +1519,48 @@
plashLogoFull)%60%0A
+ height: 14px;%0A
$%7Blogo%7D%0A%60;%0A%0Aco
@@ -1600,16 +1600,16 @@
oFull)%60%0A
-
$%7Blogo
@@ -1602,32 +1602,67 @@
ull)%60%0A $%7Blogo%7D%0A
+ height: 12... |
55dd426a0d3e4dfe960410f03fdfe0f8b5e66cfc | Use ServiceStatusWarningWithDebug... | plugins/services/src/js/components/ServiceBreadcrumbs.js | plugins/services/src/js/components/ServiceBreadcrumbs.js | import React from 'react';
import {Link} from 'react-router';
import {DCOSStore} from 'foundation-ui';
import HealthBar from './HealthBar';
import PageHeaderBreadcrumbs from '../../../../../src/js/components/NewPageHeaderBreadcrumbs';
import ServiceStatusWarning from './ServiceStatusWarning';
function getHealthStatus... | JavaScript | 0 | @@ -256,16 +256,36 @@
sWarning
+WithDebugInformation
from '.
@@ -305,16 +305,36 @@
sWarning
+WithDebugInstruction
';%0A%0Afunc
@@ -996,49 +996,41 @@
ning
- item=%7Bservice%7D showDebugInstruction=%7Btru
+WithDebugInformation item=%7Bservic
e%7D /
|
1ccaee6ffa23c0ef37c793b0c8c824463609cc6c | fix bug with arguments being passed into an engine | lib/trapper_keeper/core.js | lib/trapper_keeper/core.js | var common = require('./common'),
util = require('util'),
Resource = require('./resource');
var trapper_keeper = exports;
trapper_keeper.engines = require('./engines');
trapper_keeper.connection = {};
trapper_keeper.connect = function(/* [engine], [uri], [port], [options] */) {
var args = Array.prototype.s... | JavaScript | 0 | @@ -429,21 +429,16 @@
call(arg
-ument
s);%0A%0A i
|
fc947980c611716320d222a4f81d78e3d1f6bfcb | Fix RecipeList | recipe-server/client/control/components/RecipeList.js | recipe-server/client/control/components/RecipeList.js | import React, { PropTypes as pt } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { Table, Thead, Th, Tr, Td } from 'reactable';
import cloneArrayValues from 'client/utils/clone-array';
import {
makeApiRequest,
recipesReceived,
setSelectedRecipe,
} from 'co... | JavaScript | 0.001084 | @@ -3217,65 +3217,8 @@
%7D;%0A%0A
- this.handleSearchChange = ::this.handleSearchChange;%0A
@@ -3258,32 +3258,32 @@
ndleViewRecipe;%0A
+
%7D%0A%0A component
@@ -4239,21 +4239,20 @@
turn (%7B
-value
+slug
%7D) =%3E %7B
@@ -4284,21 +4284,20 @@
recipe%5B
-value
+slug
%5D;%0A
@@ -5122,21 +5122,20... |
366c99f42011207e2770ddaadce562ed3d2d617e | Fix searching on API docs | doc/theme/resources/index.js | doc/theme/resources/index.js | function createCookie(name, value, days) {
localStorage.setItem(name, value);
}
function readCookie(name) {
return localStorage.getItem(name);
}
function toggleInherited(el) {
var toggle = $(el).closest(".toggle");
toggle.toggleClass("toggle-on");
if (toggle.hasClass("toggle-on")) {
$("img", toggle).attr("src"... | JavaScript | 0.000004 | @@ -3769,16 +3769,66 @@
a_path%22)
+;%0A%09%09%09if (!content)%0A%09%09%09%09return%0A%09%09%09content = content
.toLower
|
a558d82a2439cf861f49d7363a6d7f77a721c9c0 | put braces around multi-line if statements | lib/wireprotocol/shared.js | lib/wireprotocol/shared.js | 'use strict';
var ReadPreference = require('../topologies/read_preference'),
MongoError = require('../error').MongoError;
var MESSAGE_HEADER_SIZE = 16;
// OPCODE Numbers
// Defined at https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#request-opcodes
var opcodes = {
OP_REPLY: 1,
OP_UPDATE: 2001,
... | JavaScript | 0.000014 | @@ -1461,32 +1461,34 @@
s === 'boolean')
+ %7B
%0A queryOption
@@ -1530,16 +1530,21 @@
eLongs;%0A
+ %7D%0A%0A
if (ty
@@ -1580,32 +1580,34 @@
s === 'boolean')
+ %7B
%0A queryOption
@@ -1651,16 +1651,21 @@
Values;%0A
+ %7D%0A%0A
if (ty
@@ -1710,16 +1710,18 @@
oolean')
+ %7B
%0A que
@@ -1775,16 +1... |
37f7f2342d822aa5873cf4989af604137ab4ae34 | Update Base64ArrayBufferToFloat32.js | CNN/Base64ArrayBufferToFloat32.js | CNN/Base64ArrayBufferToFloat32.js | import * as ValueMax from "./ValueMax.js";
export { Base64ArrayBuffer_To_Uint8Array_Generator };
const base64String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/** Mapping table for base64 (as Uint8) to index. */
let table_base64_Uint8_to_index = new Uint8Array( new ArrayBuffer(256) );
{
... | JavaScript | 0.000001 | @@ -2919,17 +2919,21 @@
sultByte
-s
+Count
= 0; //
|
6a07e1e82b41da91ee3235ef3195e9f0ca76b3f7 | add more passing tests | javascript/ql/test/library-tests/Generators/generators.js | javascript/ql/test/library-tests/Generators/generators.js | (function () {
var source = "source";
sink(source); // NOT OK
function *gen1() {
yield source;
}
for (const x of gen1()) {
sink(x); // NOT OK
}
function *gen2() {
yield "safe";
return source;
}
sink(gen2()); // OK
});
| JavaScript | 0 | @@ -242,13 +242,284 @@
); // OK
+%0A%0A Array.from(gen1()).forEach(x =%3E sink(x)); // NOT OK%0A%0A function gen3() %7B%0A yield source;%0A %7D%0A Array.from(gen3()).forEach(x =%3E sink(x)); // NOT OK%0A%0A function *gen4() %7B%0A throw source;%0A %7D%0A try %7B%0A Array.from(gen4());%0A %7D catch (e)... |
2c2251c4c14d3e98d2c35c53aa1575f8b22d84e7 | test #181 ready for testing, problem should be solved | code/media/system/js/combobox.js | code/media/system/js/combobox.js | /**
* @version $Id: modal.js 5263 2006-10-02 01:25:24Z webImagery $
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it i... | JavaScript | 0.000002 | @@ -1328,29 +1328,17 @@
ocument.
-getElementByI
+i
d('combo
@@ -1381,23 +1381,23 @@
me('LI')
-;%0A%09%09var
+,%0A%09%09
select
@@ -1419,16 +1419,52 @@
select%22)
+,%0A%09%09 parent = element.getParent()
;%0A%09%09sele
@@ -2029,58 +2029,61 @@
;%0A%09%09
-document.id(element.parentNode).setStyle('
+var con... |
817b8409c01c69c4c6dbefea179d4c1aa60d0ded | disable spec until we can figure out why IE8 is not passing | lib/ui/datepicker/tests/datepicker-spec.js | lib/ui/datepicker/tests/datepicker-spec.js | /* global beforeEach, availity, afterEach, expect, module, describe, it */
/**
* Inspiration https://github.com/mgcrea/angular-strap/blob/v0.7.8/test/unit/directives/datepickerSpec.js
*/
describe('datepicker', function() {
'use strict';
beforeEach(function() {
module('availity');
module('availity.ui');
... | JavaScript | 0 | @@ -2631,32 +2631,35 @@
Be(13);%0A %7D);%0A%0A
+ //
it('should show
@@ -2718,32 +2718,35 @@
, function() %7B%0A
+ //
availity.mock
@@ -2767,32 +2767,35 @@
edDate = null;%0A
+ //
$el = availit
@@ -2836,26 +2836,29 @@
addon'%5D);%0A
+//
+
availity.moc
@@ -2865,24 +2865,27 @@
k.flush();%0A
+ //... |
a8b672a9f3d81521aedc1e0f25875a8a7f0c6b59 | add store field to hold app info | client/index.js | client/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import postItApp from './reducers';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import { Provider } from 'react-redux';
import dataService from './services/dataservice';
// St... | JavaScript | 0 | @@ -1323,18 +1323,18 @@
ssages:
-%7B%7D
+%5B%5D
, info:
|
9c169eeb71c7d01dc18c420d93f7583bcae30fff | fix help info | bin/jade.js | bin/jade.js | #!/usr/bin/env node
/**
* Module dependencies.
*/
var fs = require('fs')
, program = require('commander')
, path = require('path')
, basename = path.basename
, dirname = path.dirname
, resolve = path.resolve
, join = path.join
, mkdirp = require('mkdirp')
, jade = require('../');
// jade options
v... | JavaScript | 0 | @@ -1426,17 +1426,17 @@
%5Bsafe%7Cr
-e
+a
dical%7Cun
|
d5f3ba8d8a6d20655043a43eec08bb9d201e52a7 | remove unnecessary require from JSON node | nodes/core/parsers/70-JSON.js | nodes/core/parsers/70-JSON.js | /**
* Copyright 2014 IBM Corp.
*
* 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 wr... | JavaScript | 0.000002 | @@ -639,40 +639,8 @@
ct%22;
-%0A var util = require(%22util%22);
%0A%0A
@@ -1427,36 +1427,8 @@
e) %7B
-%0A
nod
@@ -1475,32 +1475,8 @@
%22));
-%0A
%7D%0A
|
e2d7ff844ff3a0dd7f6d537507e6c102e67443ca | add app mining link to main menu #678 | components/main-menu/MainMenu.js | components/main-menu/MainMenu.js | import React from 'react'
import { InternalLink as InternalLinkComponent } from '@components/internal-link'
class MainMenu extends React.PureComponent {
render() {
const { closeMenu } = this.props
const InternalLink = (props) => (
<InternalLinkComponent {...props} onClick={closeMenu} />
)
retu... | JavaScript | 0 | @@ -3660,32 +3660,202 @@
%3Cli%3E%0A
+ %3Ca href=%7Bthis.props.links.appMining%7D className=%22p md%22%3E%0A App Mining%0A %3C/a%3E%0A %3C/li%3E%0A %3Cli%3E%0A
|
8eaf1ea9d8a2296db3cbcf54e135311f245db11f | check --quality is not given either for auto container | bin/ytdl.js | bin/ytdl.js | #!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var ytdl = require('..');
var cliff = require('cliff');
require('colors');
var info = require('../package');
var opts = require('nomnom')
.option('version', {
abbr: 'v',
flag: true,
callback: function() {
console.log(in... | JavaScript | 0 | @@ -3721,16 +3721,33 @@
(ext &&
+ !opts.quality &&
!opts.f
|
94465e14c97d65364ca6873fc223415a728cfbe2 | update password and profile | app/services/user/user.service.js | app/services/user/user.service.js | (function () {
'use strict';
angular
.module('doleticApp')
.factory('UserService', userService);
userService.$inject = ['store', 'SERVER_CONFIG', '$http'];
function userService(store, SERVER_CONFIG, $http) {
var userFactory = {};
var server = SERVER_CONFIG.url;
... | JavaScript | 0 | @@ -887,16 +887,17 @@
)
+;
%0A
@@ -900,16 +900,972 @@
%7D%0A%0A
+ userFactory.updateProfile = function (gender, firstName, lastName, mail, birthDate, department,%0A shoolYear, recruitmentEvent, tel, address, city, postalCode,%0A ... |
57ee55c5a7cd1e690c08e55eec8d50ab593c369d | Edit server prod file to remove config | server.prod.js | server.prod.js | var express = require('express');
var rp = require('request-promise');
var bodyParser = require('body-parser');
var app = express();
var config = require('./config.js');
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));
app.use(bodyParser.urlencoded({ extended: true }));
ap... | JavaScript | 0 | @@ -130,45 +130,8 @@
s();
-%0Avar config = require('./config.js');
%0A%0Aap
@@ -673,33 +673,8 @@
LIST
- %7C%7C config.MAILCHIMP_LIST
%7D/me
@@ -757,32 +757,8 @@
_API
- %7C%7C config.MAILCHIMP_API
,%0A
@@ -880,32 +880,8 @@
_API
- %7C%7C config.MAILCHIMP_API
%7D%60,%0A
|
dda6bebe4a54645b638f25dc2073fb6966d017f5 | Convert animas boluses to what tideline wants | app/tidepool/data/convertbolus.js | app/tidepool/data/convertbolus.js | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This progra... | JavaScript | 0 | @@ -3848,24 +3848,801 @@
%5D%0A
+).map(function(e) %7B%0A // Doing source-specific processing here is pretty broken, but it's the %22simplest%22 way to%0A // get it working given a lack of standard for the data type. When we go back and%0A // standardize the tidepool data fo... |
7f2b930cf48c3580942d686dafc86b110362ee03 | handle error from empty ES TF | server/cron.js | server/cron.js | import * as fs from 'fs'
var retrieve = require('./retrieve.js')
var index = require('./index.js')
var recursive=require('recursive-readdir')
var Entities = require('html-entities').XmlEntities;
var extract = require('./extract.js')
entities = new Entities();
// ======================================================... | JavaScript | 0.000001 | @@ -2062,19 +2062,48 @@
nction (
-) %7B
+err) %7B%0A console.log(err)%0A
createUn
|
a97a078ec740233b0fffb0ea8a88930931d3ea1f | remove unnecessary | app/utils/csv-to-json-in-place.js | app/utils/csv-to-json-in-place.js | import fs from 'fs';
import csv from 'csv-parser';
import toJson from './to-json';
import { autobind } from 'core-decorators';
import path from 'path';
export class CsvToJsonInPlace {
constructor(argv) {
this.file = argv.file;
this.tmpFile = `${this.file}.json`;
const structured = path.parse(this.file);
... | JavaScript | 0.007328 | @@ -796,72 +796,7 @@
%0A %7D
-%0A%0A @autobind%0A onUnlink(err) %7B%0A console.log('done', err);%0A %7D
%0A%7D%0A
|
eda39989338db4c454b1eb351ef267425ab5c34d | update random color | client/www/js/controllers.js | client/www/js/controllers.js | angular.module('bobo.controllers', [])
.controller('LoadingCtrl', function($scope, $state) {
$scope.goFriend = function (){
$state.go('friend');
}
})
.controller('LoginCtrl', function($scope, $state) {
$scope.sendVibrationMsg = function () {
$state.go('loading');
}
// setTimeout is temp code
setTi... | JavaScript | 0 | @@ -776,16 +776,20 @@
) %7B%0A
+var
allCircl
@@ -837,16 +837,31 @@
ircle')%0A
+ var i = 0%0A%0A
angu
@@ -905,24 +905,28 @@
le) %7B%0A
+var
tempDom = an
@@ -1221,16 +1221,19 @@
omColor(
+i%253
))%0A
@@ -1331,24 +1331,34 @@
om() * 50 )%0A
+ i++%0A
%7D);%0A %7D%0A
@@ -1385,35 +1... |
8f48ab8c6588c3c54a9632d2a046771ed31d2b8e | add deprecation warning for suggest.js (closes #7355) | trac/htdocs/js/suggest.js | trac/htdocs/js/suggest.js |
(function($){
/*
Text field auto-completion plugin for jQuery.
Based on http://www.dyve.net/jquery/?autocomplete by Dylan Verheul.
*/
$.suggest = function(input, url, paramName, minChars, delay) {
var input = $(input).addClass("suggest").attr("autocomplete", "off");
var timeout = null;
va... | JavaScript | 0.000002 | @@ -1,8 +1,226 @@
+/* Warning: this module is deprecated and will be removed in Trac 1.1.x%0A *%0A * Don't use $.suggest in your own plugins, rather look into jquery-ui's%0A * autocomplete features (http://docs.jquery.com/UI/Autocomplete).%0A */
%0A(functi
|
c025d9457aa000d0f23252e07ce6f2e2c3c5d971 | Fix releaf ckeditor assets copying | releaf-core/app/assets/config/releaf_core_manifest.js | releaf-core/app/assets/config/releaf_core_manifest.js | //= link_tree ../images
//= link releaf/application.css
//= link releaf/application.js
| JavaScript | 0 | @@ -17,16 +17,54 @@
/images%0A
+//= link_tree ../javascripts/ckeditor%0A
//= link
|
538d527e4a6b133af09adb46b01d20d7a06c59f5 | allow testMatch for jest config (#9114) | packages/react-scripts/scripts/utils/createJestConfig.js | packages/react-scripts/scripts/utils/createJestConfig.js | // @remove-file-on-eject
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const fs = require('fs');
const chalk = require('react-dev-utils/chalk');
const paths = require('... | JavaScript | 0 | @@ -2841,24 +2841,41 @@
rializers',%0A
+ 'testMatch',%0A
'transfo
|
c1e35cabe3cf2be8a425957b977ab4a957c4f1e2 | remove adaptScope config key | config/index.js | config/index.js | /**!
* cnpmjs.org - config/index.js
*
* Copyright(c) cnpmjs.org and other contributors.
* MIT Licensed
*
* Authors:
* dead_horse <dead_horse@qq.com>
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
*/
'use strict';
/**
* Module dependencies.
*/
var path = require('path');
var fs = require('fs')... | JavaScript | 0.000002 | @@ -4293,151 +4293,8 @@
%5D,%0A%0A
- // redirect @cnpm/private-package =%3E private-package%0A // forward compatbility for update from lower version cnpmjs.org%0A adaptScope: true,%0A%0A
//
@@ -4594,25 +4594,8 @@
s: %5B
-'private-package'
%5D,%0A%0A
|
e5a7fa9c7179646e237921939beee7c5b8d66c31 | Make Love Work | config/index.js | config/index.js | // see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPat... | JavaScript | 0 | @@ -317,16 +317,22 @@
cPath: '
+/game/
',%0A p
|
30a536013a8e1cbe6c1054cf412febba0ca4f881 | Add reset functionality | view2/view2.js | view2/view2.js | 'use strict';
var chart = require('chart.js');
require('chartjs-plugin-zoom')
angular.module('myApp.view2', ['ngRoute', 'ngMaterial'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view2', {
templateUrl: 'view2/view2.html',
controller: 'View2Ctrl'
});
}])
.controller("View2C... | JavaScript | 0.000001 | @@ -595,77 +595,8 @@
%22;%0A%0A
- $scope.click = function click() %7B%0A linechart.resetZoom();%0A %7D;%0A%0A
va
@@ -1312,16 +1312,17 @@
Data, 10
+0
);%0A var
@@ -1376,23 +1376,8 @@
0;%0A
- var idx = 0;%0A
va
@@ -1396,16 +1396,39 @@
= 100;%0A
+ var fullZoom = true;%0A
functi
@@ -1494,24 +1494,26... |
5f69470acd94802bab323e2ec64a953946b6c3fd | Add comment | lib/node_modules/@stdlib/ml/incr/kmeans/examples/index.js | lib/node_modules/@stdlib/ml/incr/kmeans/examples/index.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -3978,19 +3978,17 @@
ocations
-...
+:
%0A%09cx = n
@@ -4681,16 +4681,58 @@
opts );
+%0A%0A%09// Ensure that the centroids are black:
%0A%09colors
|
7a3062a02c2e676704ecad75def38d322c45a5d0 | Fix text editor wrapping when floating | lib/resources/console/scripts/content-editor/plaintext.js | lib/resources/console/scripts/content-editor/plaintext.js | pw.component.register('content-editor-plaintext', function (view, config) {
var self = this;
var mock = document.createElement('DIV');
mock.classList.add('console-content-plaintext-mock')
mock.style.position = 'absolute';
mock.style.top = '-100px';
mock.style.opacity = '0';
mock.style.width = view.node.c... | JavaScript | 0.00038 | @@ -339,34 +339,33 @@
%0A%0A
-document.body.appendChild(
+pw.node.after(view.node,
mock
|
cf2cdb4884f5fbd06f3d032423ca39ebc4c453bd | Update temp.js | server/temp.js | server/temp.js | var exporter = require('./exporter.js');
var async = require('async');
exporter.once('exporter.ready', function() {
var batchsize = 25000;
async.series([
function(nextExport){
exporter.countAll(function(a) {
console.log('countedAll', a);
nextExpo... | JavaScript | 0.000001 | @@ -514,42 +514,67 @@
s',
-err, Object.keys(map), arr.length,
+'error:' + err, 'arr.length:' + arr.length, 'batchcount:' +
c++
@@ -881,42 +881,67 @@
s',
-err, Object.keys(map), arr.length,
+'error:' + err, 'arr.length:' + arr.length, 'batchcount:' +
c++
@@ -1245,42 +1245,67 @@
s',
-err, Object.keys(map), arr.... |
3a9e7d3999d988319c61d35b9e9abfcf04615259 | Fix bugs when dealing with special characters in labels | lib/webrat/selenium/location_strategy_javascript/label.js | lib/webrat/selenium/location_strategy_javascript/label.js | var allLabels = inDocument.getElementsByTagName("label");
var candidateLabels = $A(allLabels).select(function(candidateLabel){
var regExp = new RegExp('^' + locator + '\\b', 'i');
var labelText = getText(candidateLabel).strip();
return (labelText.search(regExp) >= 0);
});
if (candidateLabels.length == 0) {
re... | JavaScript | 0 | @@ -1,59 +1,456 @@
-var allLabels = inDocument.getElementsByTagName(%22label%22
+RegExp.escape = function(text) %7B%0A if (!arguments.callee.sRE) %7B%0A var specials = %5B%0A '/', '.', '*', '+', '?', '%7C',%0A '(', ')', '%5B', '%5D', '%7B', '%7D', '%5C%5C'%0A %5D;%0A arguments.callee.sRE = new RegEx... |
b37bf469e12e48524cd8be5991c3876e38ea74c1 | Fix js error when moving graph vertices | lumify-web-war/src/main/webapp/js/data/withVertexCache.js | lumify-web-war/src/main/webapp/js/data/withVertexCache.js |
define([
'service/vertex',
], function(VertexService) {
return withVertexCache;
function withVertexCache() {
this.cachedVertices = {};
this.workspaceVertices = {};
if (!this.vertexService) {
this.vertexService = new VertexService();
}
this.resemblesVe... | JavaScript | 0.000053 | @@ -3453,16 +3453,70 @@
erties =
+ _.isUndefined(vertex.properties) ? cache.properties :
vertex.
|
0f7133bac66e2b684589ed9967110751d2e77a85 | set default port with vite 3 | vite.config.js | vite.config.js | import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [svelte()]
})
| JavaScript | 0.000001 | @@ -179,12 +179,44 @@
velte()%5D
+,%0A server: %7B%0A port: 3000%0A %7D
%0A%7D)%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.