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 |
|---|---|---|---|---|---|---|---|
5d6b34d6b14fa0caf6e2f83a759b1798d46d1024 | fix doc | src/main/webapp/js/script.js | src/main/webapp/js/script.js | /**
* @fileoverview event handlers en elementen voor de pagina.
*/
// opzoeken van de gevraagde kaart in de _layers, id's zitten in
// AvailableLayers.xml
var _defaultId = "wijkenbuurten2011_thema_gemeenten2011_aantal_inwoners";
/**
* document ready event handler.
*/
jQuery(document)
.ready(
function() {
... | JavaScript | 0.000001 | @@ -1,74 +1,4 @@
-/**%0A * @fileoverview event handlers en elementen voor de pagina.%0A */%0A%0A
// o
@@ -167,36 +167,64 @@
%0A *
-document ready event handler
+@fileoverview event handlers en elementen voor de pagina
.%0A *
|
404c4fccd3d32f4693a3e9c2bd87fb1896f3d7af | Fix unsold ticket table | _admin/js/unsold_tickets.js | _admin/js/unsold_tickets.js | function init_page()
{
$('#tickets').dataTable({
"ajax": '../api/v1/tickets?filter=sold eq 0&fmt=data-table',
columns: [
{'data': 'hash'},
{'data': 'type'}
]
});
}
$(init_page)
| JavaScript | 0.0001 | @@ -97,16 +97,47 @@
old eq 0
+ and used eq 0 and year eq 2016
&fmt=dat
|
1ec5d94872127d85cb183beab7184fae3d125a4c | move CORS checking code our of the export | lib/ember-simple-auth/core.js | lib/ember-simple-auth/core.js | import { Session } from './session';
import { Authenticators } from './authenticators';
import { Authorizers } from './authorizers';
import { Stores } from './stores';
function extractLocationOrigin(location) {
if (Ember.typeOf(location) === 'string') {
var link = document.createElement('a');
link.href = loc... | JavaScript | 0 | @@ -1051,16 +1051,340 @@
'');%0A%7D%0A%0A
+var urlOrigins = %7B%7D;%0Avar documentOrigin = extractLocationOrigin(window.location);%0Avar crossOriginWhitelist;%0Afunction shouldAuthorizeRequest(url) %7B%0A var urlOrigin = urlOrigins%5Burl%5D = urlOrigins%5Burl%5D %7C%7C extractLocationOrigin(url);%0A return cross... |
e242d9df8f4a4d8602b2b4a31d1f30b01d9a7077 | Add commented out context param. | assets/js/components/notifications/module-settings-warning.js | assets/js/components/notifications/module-settings-warning.js | /**
* Internal dependencies
*/
import Data from 'googlesitekit-data';
import { STORE_NAME as CORE_MODULES } from '../../googlesitekit/modules/datastore/constants';
import classnames from 'classnames';
import ErrorIcon from '../../../svg/error.svg';
const { useSelect } = Data;
/**
* A single module. Keeps track of ... | JavaScript | 0 | @@ -590,16 +590,29 @@
%0A%09slug,%0A
+%09// context,%0A
%7D ) %7B%0A%09/
|
df69791d2c9618076729fab010faf01802d816ec | Add a missing export statement | src/api/images.js | src/api/images.js | import { Router } from 'express';
const router = new Router();
router.post("/", function (request, response) {
response.sendStatus(200);
});
| JavaScript | 0.000632 | @@ -138,8 +138,32 @@
0);%0A%7D);%0A
+%0Aexport default router;%0A
|
60c4415fa2cf8fe120eab1d01f9ba6cfdb92d00d | Remove call to setTimeout because this Promise is async | lib/gcli/connectors/direct.js | lib/gcli/connectors/direct.js | /*
* Copyright 2012, Mozilla Foundation and contributors
*
* 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 applica... | JavaScript | 0 | @@ -2591,196 +2591,8 @@
%5D;%0A%0A
-/**%0A * Direct connection is mostly for testing. Async is closer to what things like%0A * websocket will actually give us, but sync gives us clearer stack traces.%0A */%0Avar asyncCall = false;%0A%0A
func
@@ -2921,304 +2921,8 @@
) %7B%0A
- if (asyncCall) %7B%0A setTimeout... |
56294b2e8620291649502d6b1759d1078501429b | remove duplicates in fieldOrder | lib/helpers/get-form-model.js | lib/helpers/get-form-model.js | 'use strict';
/**
* Returns a view model that can be used for rendering the form template. It
* accepts the current stormpath configuration object, and creates a view model
* which orders fields according to their field order. If a field is not
* specified in the field order it will be placed after the defined o... | JavaScript | 0.000007 | @@ -8,16 +8,44 @@
rict';%0A%0A
+var _ = require('lodash');%0A%0A
/**%0A * R
@@ -607,16 +607,162 @@
fields;%0A
+ // Something about the config parsing will create duplicates in this%0A // array, if the developer specifies these fields. Need to investigate.%0A
var fi
@@ -772,16 +772,25 @@
Order =
+_.unique(
s... |
7ac2c0d5419115711506b56013c32fbb356d4a73 | update config symbols | src/app/config.js | src/app/config.js | define([
'esri/symbols/SimpleMarkerSymbol',
'dojo/has'
], function (
SimpleMarkerSymbol,
has
) {
var agol = 'http://www.arcgis.com';
var config = {
appName: 'daq-web',
appId: 'Rngn0PfKFjvT2p26',
version: '1.1.1',
fields: {
uniqueId: 'OBJECTID... | JavaScript | 0.000001 | @@ -2,16 +2,33 @@
efine(%5B%0A
+ 'dojo/has',%0A%0A
'esr
@@ -39,30 +39,28 @@
mbols/Simple
-Marker
+Fill
Symbol',%0A%0A
@@ -56,30 +56,52 @@
ymbol',%0A
-%0A
'
-dojo/has
+esri/symbols/SimpleMarkerSymbol
'%0A%5D, fun
@@ -108,24 +108,30 @@
ction (%0A
+has,%0A%0A
SimpleMa
@@ -124,30 +124,28 @@
%... |
70270f952ab9383380e2ec24f69b9db1f1ec9a1c | Move all the Promise-related business together in make-api-call.js | lib/internal/make-api-call.js | lib/internal/make-api-call.js | /**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* 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 requir... | JavaScript | 0.000005 | @@ -3325,206 +3325,8 @@
%7D%0A%0A
- var promise, pResolve, pReject;%0A if (options.Promise) %7B%0A promise = new options.Promise(function(resolve, reject) %7B%0A pResolve = resolve;%0A pReject = reject;%0A %7D);%0A %7D%0A%0A
@@ -3969,24 +3969,28 @@
%7B%0A
+if (
callback
... |
56a47dcc0486868d0ba1d70c39473b198068bf35 | Use Task.race() to race the timeout and the request. | lib/internal/make-api-call.js | lib/internal/make-api-call.js | /**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* 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 requir... | JavaScript | 0 | @@ -3134,24 +3134,74 @@
ait(timeout)
+.thenDo(function() %7B%0A throw 'timeout';%0A %7D)
;%0A var re
@@ -3666,358 +3666,86 @@
-// Race the request and the timeout.%0A var task = Task.start(function(resolve, reject) %7B%0A timeoutTask.thenDo(function() %7B%0A reject('timeout');%0A ... |
4cd7d8b5ebe04fdae3410c734df883a92d277b59 | add basic unit tests for EditInfoPage (currently broken) | src/components/InfoPage/EditInfoPage.test.js | src/components/InfoPage/EditInfoPage.test.js | import React from "react"
import { shallow, mount } from "enzyme"
import sinon from "sinon"
import "../../setupTests"
import { EditInfoPage } from "./EditInfoPage"
describe("InfoPage/EditInfoPage", () => {
let props
let mountedEditInfoPage
const infoPage = () => {
if (!mountedEditInfoPage) {
mountedEdi... | JavaScript | 0 | @@ -156,16 +156,90 @@
nfoPage%22
+%0Aimport %7B Container %7D from %22styles%22%0Aimport %7B EditorState %7D from %22draft-js%22
%0A%0Adescri
@@ -320,17 +320,21 @@
const
-i
+editI
nfoPage
@@ -704,28 +704,602 @@
%0A%0A
-// insert tests here
+describe(%22initial render%22, () =%3E %7B%0A beforeEach(() =%3E ... |
703ef049a7b658513c40252c79887c3386fa6beb | fix broken EditInfoPage tests | src/components/InfoPage/EditInfoPage.test.js | src/components/InfoPage/EditInfoPage.test.js | import React from "react"
import { shallow, mount } from "enzyme"
import sinon from "sinon"
import "../../setupTests"
import { EditInfoPage } from "./EditInfoPage"
import { Container, SuccessBlockButton, CancelButton } from "styles"
import { EditorState } from "draft-js"
describe("InfoPage/EditInfoPage", () => {
let... | JavaScript | 0 | @@ -230,24 +230,32 @@
es%22%0Aimport %7B
+ Editor,
EditorState
@@ -688,24 +688,50 @@
undefined,%0A
+ content: undefined,%0A
%7D%0A mo
@@ -766,16 +766,199 @@
d%0A %7D)%0A%0A
+ const content = JSON.stringify(%7B%0A entityMap: %7B%7D,%0A blocks: %5B%0A %7B%0A key: %22abc%22,%0A ... |
c28f452b0e6f861d981b2954c88a7f8f32bef707 | load the persisted expressions into the component and evaluate them | src/components/SecondaryPanes/Expressions.js | src/components/SecondaryPanes/Expressions.js | // @flow
import React from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import ImPropTypes from "react-immutable-proptypes";
import actions from "../../actions";
import { prefs } from "../../utils/prefs";
import { getExpressions, getLoadedObjects, getPause } from "../../se... | JavaScript | 0 | @@ -206,51 +206,8 @@
s%22;%0A
-import %7B prefs %7D from %22../../utils/prefs%22;%0A
impo
@@ -280,16 +280,16 @@
ctors%22;%0A
+
const Cl
@@ -995,20 +995,20 @@
%7D;%0A%7D%0A%0Ac
-lass
+onst
Express
@@ -1016,55 +1016,379 @@
ons
-extends React.Component %7B%0A _input: null %7C any;
+= React.createClass(%7B%0A p... |
37311ebce7c0934a27a7df57089e97fdd345dc04 | Remove the _many '$' syntax for synthesized attributes. | src/attributes.js | src/attributes.js | 'use strict';
// --------------------------------------------------------------------
// Imports
// --------------------------------------------------------------------
var Symbol = require('symbol'); // eslint-disable-line no-undef
var Semantics = require('./Semantics');
var nodes = require('./nodes');
// -------... | JavaScript | 0.000009 | @@ -1371,473 +1371,8 @@
var
-actionFn;%0A if (node.ctorName === '_many' && node.parent) %7B%0A // If an action's name is ctorName$idx, where idx is the 1-based index of a child node that%0A // happens to be a list, it should override the _many action for that particular list node.%0A var actionName ... |
331a33a42fcf905b4d4f8c8ed4f031a39930b077 | remove debug | src/authClient.js | src/authClient.js | /* globals localStorage */
import { AUTH_LOGIN, AUTH_LOGOUT, AUTH_CHECK } from 'admin-on-rest'
import firebase from 'firebase'
const baseConfig = {
userProfilePath: '/users/',
userAdminProp: 'isAdmin',
localStorageTokenName: 'aorFirebaseClientToken',
handleAuthStateChange: async (auth, config) => {
console... | JavaScript | 0.000002 | @@ -306,55 +306,8 @@
%3E %7B%0A
- console.log(%60handleAuthStateChange%60, auth)%0A
|
1c45d215cee80bf68c9911d6ae683bb52509ebaa | check error severity besides the type | lib/modules/solidity/index.js | lib/modules/solidity/index.js | let async = require('../../utils/async_extend.js');
let SolcW = require('./solcW.js');
class Solidity {
constructor(embark, options) {
this.logger = embark.logger;
this.events = embark.events;
this.contractDirectories = options.contractDirectories;
embark.registerCompiler(".sol", this.compile_solid... | JavaScript | 0.000001 | @@ -2477,16 +2477,57 @@
'Error'
+ %7C%7C output.errors%5Bi%5D.severity === 'error'
) %7B%0A
|
6d7f302fbf5d151524bd8d1db3db8d524637fd56 | change -r, --remove and -d, --delete params | src/bin/marmot.js | src/bin/marmot.js | #!/usr/bin/env node
import 'babel-core/register';
import program from 'commander';
import pkg from '../package.json';
import * as _ from '../lib/helper';
import init from '../lib/init';
import server from '../lib/server';
program
.usage('<command>')
.version(pkg.version)
.description(pkg.description);
/... | JavaScript | 0.000015 | @@ -383,33 +383,32 @@
on('init project
-.
')%0A .option('
@@ -483,17 +483,16 @@
project
-.
')%0A .
@@ -584,33 +584,32 @@
'a tomcat server
-.
')%0A .option('
@@ -673,17 +673,16 @@
to start
-.
', 8080)
@@ -725,33 +725,32 @@
he tomcat server
-.
')%0A .option('
@@ -777,33 +777,90 @@
he tomcat server... |
93d074fbaa82cb7faecb8d84070edef609845245 | Exit with error code if given package.json not found. | lib/npm-check-github-stars.js | lib/npm-check-github-stars.js | #!/usr/bin/env node
'use strict';
const LOG_LEVEL = 'warn';
const GITHUB_REPOSITORY_RE = /github\.com\/(.*?)(\.git)?$/;
const log = require('npmlog');
log.level = LOG_LEVEL;
const fs = require('fs');
const path = require('path');
const github = require('octonode');
const ghClient = github.client();
const RegClient =... | JavaScript | 0 | @@ -611,14 +611,23 @@
ole.
-log('N
+error('Sorry, n
o pa
@@ -646,23 +646,50 @@
ound
-!');%0A return
+ at %25s', packagePath);%0A process.exit(1)
;%0A%7D%0A
|
f596402baaf538b69a1d7b00e70a5b34cbc618c3 | make the request from the angular dashboards controller to fetch the thermostats the user has | packages/dashboard/public/controllers/dashboard.js | packages/dashboard/public/controllers/dashboard.js | 'use strict';
angular.module('mean.dashboard').controller('DashboardController', ['$scope', 'Global', 'Dashboard',
function($scope, Global, Dashboard) {
$scope.global = Global;
$scope.package = {
name: 'dashboard'
};
}
]);
| JavaScript | 0 | @@ -41,16 +41,19 @@
board').
+%0A
controll
@@ -81,17 +81,40 @@
er', %5B'$
-s
+http', '$scope', '$rootS
cope', '
@@ -147,17 +147,36 @@
nction($
-s
+http, $scope, $rootS
cope, Gl
@@ -222,16 +222,224 @@
Global;%0A
+%0A var user = window.user;%0A console.log(user);%0A $http.get('/thermostats', %7B params:... |
e48745ef91a3dbb9af247ac73a6a1fa506619d5f | order alphabetically | jupyterlab/index.js | jupyterlab/index.js | // Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var phosphide = require('phosphide/lib/core/application');
// ES6 Promise polyfill
require('es6-promise').polyfill();
require('font-awesome/css/font-awesome.min.css');
require('material-design-icons/iconfont/materi... | JavaScript | 0.999969 | @@ -960,86 +960,8 @@
on,%0A
- require('jupyrerlab/lib/mdrenderwidget/plugin').markdownHandlerExtension,%0A
@@ -1070,32 +1070,110 @@
nMenuExtension,%0A
+ require('jupyterlab/lib/mdrenderwidget/plugin').markdownHandlerExtension,%0A
require('jup
|
46645cc380f2d99a7a420451b2454c000ab0a129 | Clean up entry point validation | jupyterlab/index.js | jupyterlab/index.js | // Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var JupyterLab = require('jupyterlab/lib/application').JupyterLab;
// ES6 Promise polyfill
require('es6-promise').polyfill();
require('font-awesome/css/font-awesome.min.css');
require('material-design-icons/iconfon... | JavaScript | 0 | @@ -395,188 +395,8 @@
;%0A%0A%0A
-/**%0A * Test whether a value is a function.%0A */%0Afunction isFunction(obj) %7B%0A // http://stackoverflow.com/a/6000016.%0A return !!(obj && obj.constructor && obj.call && obj.apply);%0A%7D%0A%0A
/**%0A
@@ -713,20 +713,24 @@
) %7C%7C
- !isFunction
+%0A !typeof
(plu
@@ -... |
e14ed6c6db3b3381408301e0dfcb8ea0bcd1f9db | add note | lib/template/vnode/element.js | lib/template/vnode/element.js | var protoclass = require("protoclass"),
createDocumentSection = require("document-section"),
Fragment = require("./fragment"),
utils = require("../../utils"),
BindableObject = require("bindable-object"),
script = require("../../script");
// this is the base cla... | JavaScript | 0 | @@ -1376,24 +1376,66 @@
Section();%0A%0A
+ // TODO - move hydrator to new file%0A
templa
@@ -2428,32 +2428,88 @@
%0A %7D);%0A%0A
+ // TODO - move attributes binding to new file%0A
view.b
@@ -3303,32 +3303,42 @@
%7D%0A %7D);%0A
+
%0A // is
|
bd7861ed3662f05da60cec293c934d7c64ac88cb | remove debugging, fix a bug | lib/triggers/redditTrigger.js | lib/triggers/redditTrigger.js | var util = require('util');
var request = require('request');
var winston = require('winston');
var BaseTrigger = require('./baseTrigger.js').BaseTrigger;
var TinyCache = require( 'tinycache' );
var cache = new TinyCache();
/*
Trigger that automatically looks up users on reddit when they join.
option cacheTime: Data wi... | JavaScript | 0.000033 | @@ -1950,54 +1950,8 @@
d);%0A
-%09%09console.log(%22cachedResult: %22+cachedResult);%0A
%09%09if
@@ -4200,32 +4200,53 @@
input.success &&
+ redditinput.flair &&
redditinput.fla
|
dc5d033be91bdd00b454331d43efc40e1d8bb710 | Add a way to listen to all events on a specific target | lib/util/fake_event_target.js | lib/util/fake_event_target.js | /*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shaka.util.FakeEventTarget');
goog.require('goog.asserts');
goog.require('shaka.log');
goog.require('shaka.util.FakeEvent');
goog.require('shaka.util.MultiMap');
/**
* @summary A work-alike for EventT... | JavaScript | 0 | @@ -1323,32 +1323,400 @@
listener);%0A %7D%0A%0A
+ /**%0A * Add an event listener to this object that is invoked for all events types%0A * the object fires.%0A *%0A * @param %7Bshaka.util.FakeEventTarget.ListenerType%7D listener The callback or%0A * listener object to invoke.%0A * @exportInterface%0A ... |
1e8691030ae6096ee6feac330642c8c477fd21c8 | Add support for resolutions ... makes canary and beta work for ember package * Only warn, not fail if the package version does not exactly match, * sometimes people forget to update the version in their package, also * doesn't exactly match for beta, canary, etc | lib/utils/scenario-manager.js | lib/utils/scenario-manager.js | var CoreObject = require('core-object');
var fs = require('fs');
var path = require('path');
var run = require('./run');
var BowerHelpers = require('../utils/bower-helpers');
module.exports = CoreObject.extend({
changeTo: function(scenario){
var manager = this;
var bowerFile = pa... | JavaScript | 0 | @@ -196,16 +196,53 @@
lpers');
+%0Avar Chalk = require('chalk');
%0A%0Amodule
@@ -521,16 +521,96 @@
File));%0A
+%0A if(!bowerJSON.resolutions)%7B%0A bowerJSON.resolutions = %7B%7D;%0A %7D%0A%0A
fs
@@ -810,19 +810,21 @@
anager._
-log
+check
Versions
@@ -856,11 +856,13 @@
%0A _
-log
... |
a0234996be303257b620b68fa0bd4eb823c4ffae | Set default messages val | lib/views/delveOutputPanel.js | lib/views/delveOutputPanel.js | 'use babel';
/**
Delve Output View
@description Text based view that reads from an output stream and displays
it inside a terminal-esque window
**/
import { createClass as createJSX } from 'vanilla-jsx';
/** @jsx jsx */
const DelveOutputElement = createJSX({
createMsgItem(msg) {
var classModifier;
s... | JavaScript | 0.000007 | @@ -1148,16 +1148,22 @@
messages
+ %7C%7C %5B%5D
;%0A th
|
c1c4c7dc23974c11ed284ebfafffa67ba50596e7 | set timeouts when run on saucelabs | lib/webdriver/init-browser.js | lib/webdriver/init-browser.js | module.exports = initBrowser
const webdriverio = require('webdriverio')
function initBrowser (state, callback) {
state.browser = webdriverio.remote(state.config.webdriver)
state.browser.on('command', function (command) {
state.debugBrowser('%s %s', command.method, command.uri.path)
// use named callback... | JavaScript | 0.000001 | @@ -1006,58 +1006,8 @@
Id%0A%0A
- if (state.config.runner === 'selenium') %7B%0A
@@ -1058,18 +1058,16 @@
ts.html%0A
-
//
@@ -1138,18 +1138,16 @@
r%0A
-
-
// just
@@ -1200,26 +1200,24 @@
2016%0A
-
return state
@@ -1221,26 +1221,24 @@
ate.browser%0A
-
.tim
@@ -127... |
734a18971d3845a9206f2f23fb290c6b18478a99 | Fix issue where commandLoader would load module names incorrectly | src/modules/commandLoader.js | src/modules/commandLoader.js | /*
* Clara - Command Loader File
* based from chalda/DiscordBot
*
* Contributed by Capuccino and Ovyerus
*/
// Dependancies
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
const logger = require(`${__dirname}/logger.js`);
// Variables
var commandsDirectory = 'command... | JavaScript | 0.000001 | @@ -3815,39 +3815,16 @@
le(c
-ommandPackage.main.slice(0, -3)
+mdFolder
, co
|
13dd180d73864e229ea9bca2230250cda2fb5295 | adding weekday: long to game day | _includes/js/application.js | _includes/js/application.js | (function() {
var Time = {
MINUTES_IN_HOUR : 60,
MILLISECONDS_IN_MINUTE : 60000,
OFFSETS : [300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300, 240,
300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300],
UNTILS : [1268550000000, 1289109600000, 1299999600000, 1320559200000,
... | JavaScript | 0.999958 | @@ -763,16 +763,17 @@
month
+
: %22long%22
@@ -788,16 +788,17 @@
day
+
: %22numer
@@ -792,32 +792,57 @@
y : %22numeric%22
+,%0A weekday: %22long%22
%0A %7D).format
|
ddfa131e135bfed4945e6123211ade14ea902504 | deal with special keys in Firefox | addons/web/static/src/js/framework/barcode_events.js | addons/web/static/src/js/framework/barcode_events.js | odoo.define('web.BarcodeEvents', function(require) {
"use strict";
var core = require('web.core');
var mixins = core.mixins;
return core.Class.extend(mixins.PropertiesMixin, {
timeout: null,
key_pressed: {},
buffered_key_events: [],
init: function(parent) {
... | JavaScript | 0.000001 | @@ -3063,32 +3063,595 @@
');%0A %7D,%0A%0A
+ // This checks that a keypress event is either ESC, TAB or an%0A // arrow key. This is Firefox specific, in Chrom%7Be,ium%7D%0A // keypress events are not fired for these types of keys, only%0A // keyup/keydown.%0A is_special_key: f... |
b30c4aadf736568fa37618c0437e1499887e0f38 | Fix static file serving for publicPath != `/` (fix#1176) (#1180) | template/build/webpack.dev.conf.js | template/build/webpack.dev.conf.js | 'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-err... | JavaScript | 0.000001 | @@ -149,16 +149,45 @@
merge')%0A
+const path = require('path')%0A
const ba
@@ -235,16 +235,73 @@
.conf')%0A
+const CopyWebpackPlugin = require('copy-webpack-plugin')%0A
const Ht
@@ -957,24 +957,83 @@
hot: true,%0A
+ contentBase: false, // since we use CopyWebpackPlugin.%0A
compress
@@ -1883,24 +1883,24 @@... |
b69c0816031cea05767a483311f7db3f9cc9b5c8 | remove all elements except one | wordpress/wp-content/themes/wordpress-bootstrap-master/library/js/eass.js | wordpress/wp-content/themes/wordpress-bootstrap-master/library/js/eass.js | var eassApp = angular.module(
"eassApp",
[
'ngAnimate'
]
);
eassApp
.controller('HomeImgCtrl',
[
'$scope', '$timeout',
function($scope, $timeout) {
$scope.slides = [
{name: 'renhold'},
{name: 'kantine'},
{name: 'vaktmesterservice'}
];
$scope.id = 1;
$scope.to = null;
$scope.change = function( id ) {... | JavaScript | 0.998745 | @@ -1762,16 +1762,75 @@
.html();
+%0A%0A%09%09%09%09%09%09if ( j %3E 0 ) angular.element(content%5Bj%5D ).remove();
%0A%09%09%09%09%09%7D%0A
@@ -2113,16 +2113,179 @@
%0A%09%09%09%09%09);
+%0A%0A%09%09%09%09%09var clonedElement = $compile(templateElement)($scope, function(clonedElement, $scope) %7B%0A%09%09%09%09%09%... |
cc5e85a466439cc0f18f18a1c987b9b842db1781 | change to exhibition title [PT #129766891] | applications/omeka/load.js | applications/omeka/load.js | function ready(fn) {
if (document.readyState != 'loading'){
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
function loadReusableComponents() {
loadUQFavicon();
addAppleTouchIcon();
addCss('//assets.library.uq.edu.au/master/reusable-components/omeka/custom-styles.css');
a... | JavaScript | 0 | @@ -1184,36 +1184,425 @@
e;%0A%0A
- addExhibitionHeaderLink(
+// header.libraryTitle = ''; // handle with css%0A%0A var parentblock = document.querySelector('.application-title');%0A var aTag = document.createElement('a');%0A var linkText = document.createTextNode(%22UQ Library Online Exhibitions%22);%0A ... |
9738e79350aab55fdc2c5dcdacceea4ed8cfa42f | update non-self-updating evaluators during refresh | src/internal/fragments/_helpers/Evaluator.js | src/internal/fragments/_helpers/Evaluator.js | (function ( cache ) {
var Reference, getFunctionFromString;
Evaluator = function ( root, keypath, functionStr, args, priority ) {
var i, arg;
this.root = root;
this.keypath = keypath;
this.fn = getFunctionFromString( functionStr, args.length );
this.values = [];
this.refs = [];
i = args.length;
w... | JavaScript | 0 | @@ -1955,24 +1955,87 @@
nction () %7B%0A
+%09%09%09if ( !this.selfUpdating ) %7B%0A%09%09%09%09this.deferred = true;%0A%09%09%09%7D%0A%0A
%09%09%09var i = t
@@ -2097,24 +2097,102 @@
date();%0A%09%09%09%7D
+%0A%0A%09%09%09if ( this.deferred ) %7B%0A%09%09%09%09this.update();%0A%09%09%09%09this.deferred = false;%0A%09... |
18264fac22c7ac569e2b79114ab092b328bc2099 | Add ability to bypass the chosen plugin, because sometimes it isn't necessary | app/assets/javascripts/lalala/modules/init.module.js | app/assets/javascripts/lalala/modules/init.module.js | var console = require('browser/console'),
calendar = require('lalala/modules/calendar'),
editor = require('lalala/modules/editor'),
grid = require('lalala/modules/grid'),
locale_chooser = require("lalala/modules/locale_chooser"),
sorted_pages_tree = require("lalala/modules/sorted_pages_tree");
$(fu... | JavaScript | 0.000001 | @@ -442,16 +442,38 @@
elect').
+not(%22.bypass-chosen%22).
chosen()
|
94e9b8a004f5e352592539af7378327fdb9cf112 | Add USB | src/javascript/_common/base/currency_base.js | src/javascript/_common/base/currency_base.js | const getLanguage = require('../language').get;
const localize = require('../localize').localize;
const getPropertyValue = require('../utility').getPropertyValue;
let currencies_config = {};
const formatMoney = (currency_value, amount, exclude_currency, decimals = 0, minimumFractionDigits = 0) => {
l... | JavaScript | 0.000051 | @@ -3169,24 +3169,145 @@
awal: 10 %7D,%0A
+ USB: %7B name: localize('USB'), min_withdrawal: 0.02, pa_max_withdrawal: 2000, pa_min_withdrawal: 10 %7D,%0A
%7D);%0A%0A
|
6279014c826e8b08a2ea3d7e2e7cbc8063ebb670 | add test case for ArrowFunctionExpression with SequenceExpression in body | test/cases/parsing/chunks/index.js | test/cases/parsing/chunks/index.js | it("should parse a Coffeescript style function expression in require.ensure", function(done) {
require.ensure([], (function(_this) {
return function(require) {
require("./file").should.be.eql("ok");
done();
};
}(this)));
});
it("should parse a bound function expression in require.ensure", function(done) {
... | JavaScript | 0 | @@ -768,28 +768,224 @@
l(%22ok%22);%0A%09%09done();%0A%09%7D);%0A%7D);%0A
+%0A%0Ait(%22should parse a string in require.ensure with arrow function array expression%22, function(done) %7B%0A%09require.ensure(%22./file%22, require =%3E (require(%22./file%22).should.be.eql(%22ok%22), done()));%0A%7D);%0A%0A%0A%0A
|
153ae48418722fb40c10fc62a5500dbd99ee7a83 | Fix browse tree not allowing user to upload visualisation | src/legacy/js/functions/_loadBrowseScreen.js | src/legacy/js/functions/_loadBrowseScreen.js | function loadBrowseScreen(collectionId, click, collectionData) {
// Get collection data if it's undefined and re-run the function once request has returned
if (!collectionData) {
getCollection(collectionId, success = function(getCollectionResponse) {
loadBrowseScreen(collectionId, click... | JavaScript | 0 | @@ -710,180 +710,79 @@
-// Stubbed data changes until Zebedee is updated - this should never be here in production!!!%0A // response = mock.browseTree;%0A // var modifiedResponse
+%0A var browseData = response;%0A browseData.children
= r
@@ -824,23 +824,20 @@
... |
1a234a42c78fb4e5e4f196be6a816e23d1e7091f | fix native calendar | addon/components/mi-date.js | addon/components/mi-date.js | import layout from "../templates/components/mi-date";
import MobileInputComponentMixin from "../mixins/mobile-input-component";
import {
isTouchDevice
} from "../utils/mobile-utils";
import configuration from "../configuration";
import {
get,
set,
observer,
computed
} from '@ember/object';
import {
isNone,
... | JavaScript | 0.000398 | @@ -3252,16 +3252,78 @@
cale();%0A
+ flatpickrConfig.disableMobile = this.get('isNeverNative');
%0A%0A fl
|
77a5e3d41fe0f9ce689ed7ba095b53db5a5ca7ed | use proper theme-data role for hover halo | packages/radio-button/src/presenters/stylesheet.js | packages/radio-button/src/presenters/stylesheet.js | function legacyStylesheet(props, themeData) {
const { isPressed, hasFocus, hasHover, disabled } = props;
const opacity = disabled ? themeData["component.disabled.opacity"] : "1.0";
let borderStyle = `solid ${themeData["checkbox.borderWidth"]} ${
themeData["checkbox.borderColor"]
}`;
if (disabled) {
... | JavaScript | 0.000001 | @@ -2838,37 +2838,39 @@
eData%5B%22checkbox.
-focus
+pressed
.halo.color%22%5D%0A
|
b9edea316bab0762a7bee9e958652d3ce53d8470 | Fix standard errors | test/e2e/view-caseload-progress.js | test/e2e/view-caseload-progress.js | const expect = require('chai').expect
const caseProgressDataHelper = require('../helpers/data/aggregated-data-helper')
var workloadOwnerIds = []
var workloadOwnerDefaultUrl
var teamDefaultUrl
var lduDefaultUrl
var regionDefaultUrl
var nationalDefaultUrl
describe('View caseload progress flow', () => {
before(functi... | JavaScript | 0.000055 | @@ -2106,16 +2106,17 @@
faultUrl
+
+ '/case
|
313ebd14e30eddaa881537614dab6227065d111f | Update AddTwoNumbers.js | algorithms/AddTwoNumbers.js | algorithms/AddTwoNumbers.js | // Source : https://oj.leetcode.com/problems/add-two-numbers/
// Author : Dean Shi
// Date : 2015-06-01
/**********************************************************************************
*
* You are given two linked lists representing two non-negative numbers.
* The digits are stored in reverse order and each of... | JavaScript | 0.000001 | @@ -769,42 +769,8 @@
*/%0A
-// Solution 1:%0A// Runtime: 276 ms%0A
var
@@ -812,638 +812,77 @@
-var arr = %5B%5D;%0A (l1 %7C%7C l2) && f(arr, l1, l2, 0);%0A return arr;%0A%7D;%0A%0Afunction f(arr, l1, l2, n) %7B%0A if (!l1 && !l2) %7B%0A n && arr.push(n);%0A return;%0A %7D%0A var s... |
9f400f82ab2ea95c03c6dcd7edd0f26d8b228543 | Debug logging | test/TestServer/TestFramework.js | test/TestServer/TestFramework.js | /* TestFramework - Base for classes that manage collections of devices and associated tests
*/
'use strict';
var util = require('util');
var EventEmitter = require('events').EventEmitter;
function TestFramework(testConfig, userConfig) {
TestFramework.super_.call(this);
this.devices = {};
// testConfig - Con... | JavaScript | 0.000001 | @@ -1855,16 +1855,25 @@
ole.log(
+%0A
%22Updatin
@@ -1907,22 +1907,27 @@
= %25s)%22,
-device
+existing%5B0%5D
.deviceN
@@ -1934,15 +1934,17 @@
ame,
+
d.uuid,
+
devi
@@ -1946,24 +1946,31 @@
device.uuid
+%0A
);%0A exi
|
c6d25cfe9ce98c80c98bcc3a18197efcd3636dec | add ability to get full current day from getDate function | lib/CorneliusAction.js | lib/CorneliusAction.js | const EventEmitter = require('events').EventEmitter;
const OPTION_TYPES = require('./CONFIG').OPTION_TYPES;
const PlayerRequest = require('./MlbRequest').PlayerRequest;
const TeamRequest = require('./MlbRequest').TeamRequest;
/**
* Represents a Cornelius Action.
* @private
*/
class CorneliusAction extends EventEmit... | JavaScript | 0 | @@ -786,24 +786,64 @@
rt(2, '0');%0A
+ const day = date.getDate();%0A
@@ -1023,16 +1023,75 @@
th%7D01%60,%0A
+ full_current_day: %60$%7Byear%7D$%7Bmonth%7D$%7Bday%7D%60,%0A
|
df6655976071d4ec88d9a51a4640e6b9a88f7368 | Test cleanup | test/components/ContainerTest.js | test/components/ContainerTest.js | import React from 'react';
import Container from '../../src/components/Container';
import Editor from '../../src/components/Editor';
import { expect } from 'chai';
import { spy } from 'sinon';
import { shallow, mount } from 'enzyme';
describe('<Container />', () => {
it('fires willCreateEditor callback', () => {
... | JavaScript | 0 | @@ -1647,38 +1647,18 @@
ontainer
-%3E%3CEditor /%3E%3C/Container
+ /
%3E);%0A
@@ -1762,38 +1762,18 @@
=%7Bfalse%7D
-%3E%3CEditor /%3E%3C/Container
+ /
%3E);%0A
|
c286a7f920673766825de8c6a1d18b51aa0725ec | Correct graphql url | src/client/App.js | src/client/App.js | import React from 'react'
import {
ApolloClient,
createNetworkInterface,
ApolloProvider,
} from 'react-apollo'
import { createStore, combineReducers, applyMiddleware, compose } from 'redux'
import { BrowserRouter, Route } from 'react-router-dom'
import Page from './components/Page'
import Home from './pages/Hom... | JavaScript | 0.004447 | @@ -544,29 +544,8 @@
i: '
-http://localhost:3000
/gra
|
757d143152617fa5bc832c4a6f0c562b2de47e31 | Format text results after loading | ocradmin/static/js/ocr/convert.js | ocradmin/static/js/ocr/convert.js | //
// Handle drag and drop page conversions
//
// should probably be moved to app-global scope
const MINFONTSIZE = 6;
const MAXFONTSIZE = 40;
// only in global scope for dubugging purposes
var uploader = null;
var formatter = null;
var pbuilder = null;
var sdviewer = null;
var reshandler = null;
function saveState()... | JavaScript | 0 | @@ -4232,24 +4232,80 @@
sult.data);%0A
+ formatter.blockLayout($(%22.textcontainer%22));%0A
|
e3e330c12e553b824d66e5f7634e2b1bc5a81131 | Allow to change the leaflet imageOverlay. | lib/ImageOverlay.js | lib/ImageOverlay.js | var React = require("react");
var Leaflet = require("leaflet");
var boundsType = require("./types/bounds");
var mapLayerMixin = require("./mixins/mapLayer");
module.exports = React.createClass({
displayName: "ImageOverlay",
mixins: [mapLayerMixin],
propTypes: {
url: React.PropTypes.string.isRequired,
... | JavaScript | 0 | @@ -352,41 +352,42 @@
%7D,%0A
-%0A
-componentWillMount:function()
+setInitial: function(properties)
%7B%0A
@@ -406,17 +406,17 @@
-this.prop
+propertie
s,bo
@@ -769,96 +769,522 @@
his.
-_leafletElement = Leaflet.imageOverlay(url, bounds, props);%0A %7D,%0A%0A render:function() %7B
+setState(%7Burl:u... |
f6b495e1da18dcd6248ac620010d80d800f8e428 | Fix typo | toolkits/landcover/impl/bands.js | toolkits/landcover/impl/bands.js | /**
* @license
* 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 o... | JavaScript | 0.999999 | @@ -2776,17 +2776,16 @@
%0A indic
-i
es = arg
|
3f64d404098bef4d6d0fcf24e9ca537fe6f806e0 | refactor minor variable handling | src/class-component.js | src/class-component.js | /**
* class-component.js v10.4.1
* author: Yoshiya Hinosawa ( http://github.com/kt3k )
* license: MIT
*/
import {on, emit, wire} from './decorators.js'
import camelToKebab from './camel-to-kebab.js'
import {register, init, initAll, ccc} from './class-component-manager.js'
import defineFnCc from './fn.cc.js'
import ... | JavaScript | 0.000014 | @@ -434,16 +434,23 @@
%0A%0Alet cc
+ = $.cc
%0A%0A// Ini
@@ -486,18 +486,15 @@
f (!
-$.
cc) %7B%0A%0A
-%0A
de
|
33b4938af2087107147c4f6e4818debd3b0766b2 | fix formFragments regression | packages/vulcan-forms/lib/modules/formFragments.js | packages/vulcan-forms/lib/modules/formFragments.js | /**
* Generate mutation and query fragments for a form based on the schema
* TODO: refactor to mutualize more code with vulcan-core defaultFragment functions
* TODO: move to lib when refactored
*/
import _uniq from 'lodash/uniq';
import _intersection from 'lodash/intersection';
import gql from 'graphql-tag';
import... | JavaScript | 0.000001 | @@ -1356,16 +1356,28 @@
Fragment
+ = fieldName
;%0A co
@@ -2277,52 +2277,67 @@
-%7D%0A fieldFragment = fieldName;
+ console.log('nested', fieldFragment);%0A %7D
%0A
@@ -3208,51 +3208,8 @@
%7D%0A
- fieldFragment = fieldName;%0A
|
125765faa629144b2f701f9fb926b090275e6546 | Fix bug | src/client/app/boot.js | src/client/app/boot.js | /**
* MISSKEY BOOT LOADER
* (ENTRY POINT)
*/
/**
* ドメインに基づいて適切なスクリプトを読み込みます。
* ユーザーの言語およびモバイル端末か否かも考慮します。
* webpackは介さないためrequireやimportは使えません。
*/
'use strict';
(function() {
// キャッシュ削除要求があれば従う
if (localStorage.getItem('shouldFlush') == 'true') {
refresh();
return;
}
//#region Load settings
let sett... | JavaScript | 0.000001 | @@ -579,16 +579,53 @@
'/docs'
+ %7C%7C url.pathname.startsWith('/docs/')
) app =
@@ -659,16 +659,52 @@
= '/dev'
+ %7C%7C url.pathname.startsWith('/dev/')
) app =
@@ -738,16 +738,53 @@
'/auth'
+ %7C%7C url.pathname.startsWith('/auth/')
) app =
|
3a7cb683235dc463158710773fad8209cfc790dd | remove debug log from test/hariko/resource/parse_spec.js | test/hariko/resource/parse_spec.js | test/hariko/resource/parse_spec.js | var expect = require('expect.js'),
sinon = require('sinon');
var fs = require('fs'),
path = require('path');
describe('hariko/resource/parser', function () {
var parser;
beforeEach(function () {
parser = require('../../../lib/hariko/resource/parser');
});
afterEach(function () {
parser = nul... | JavaScript | 0.000001 | @@ -534,48 +534,8 @@
));%0A
- console.log('%25j', data.warnings);%0A
|
9f01d703efe9ffc29cab97dc713c9650d488fefb | remove extraneous test | test/lib/elements/types/Literal.js | test/lib/elements/types/Literal.js | import {parseAndGetExpression} from '../../../utils';
import {expect} from 'chai';
describe('Literal', () => {
it('should return correct type', () => {
expect(parseAndGetExpression('1').type).to.equal('Literal');
});
it('should accept double quoted string', () => {
var expression = parseAn... | JavaScript | 0.999515 | @@ -780,284 +780,8 @@
);%0A%0A
- it('should accept single quoted string', () =%3E %7B%0A var expression = parseAndGetExpression('%5C'123%5C'');%0A expect(expression.type).to.equal('Literal');%0A expect(expression.value).to.equal('123');%0A expect(expression.raw).to.equal('%5C'123%5C'');%... |
b0d4cac02633ff353164af83371c8a9091feae99 | Fix Close Toggle Action for Animation Drop Down (#5671) | assets/src/edit-story/components/panels/animation/effectChooserDropdown.js | assets/src/edit-story/components/panels/animation/effectChooserDropdown.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 | @@ -661,17 +661,16 @@
/i18n';%0A
-%0A
/**%0A * E
@@ -756,16 +756,69 @@
react';%0A
+import %7B useDebouncedCallback %7D from 'use-debounce';%0A
import P
@@ -885,17 +885,16 @@
nents';%0A
-%0A
/**%0A * I
@@ -922,77 +922,8 @@
*/%0A
-import %7B DropDownSelect, DropDownTitle %7D from '../../form/dropDown';%0A
impo
@... |
e0f2854e1b71cddef50db4027ea381e4f5c578d2 | Fix return bug | cosmos-proxy/src/cache.js | cosmos-proxy/src/cache.js | /**
* Copyright 2016 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of frb-cosmos-proxy.
*
* frb-cosmos-proxy 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 ... | JavaScript | 0 | @@ -1910,22 +1910,23 @@
) %7B%0A
-return
+cache =
JSON.pa
|
aea9a21bd6702c159dd1a96ed54670911bdbd9fd | Fix bug with desynchronizing in the XQuery highlighter. | lib/ace/mode/xquery.js | lib/ace/mode/xquery.js | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | JavaScript | 0 | @@ -4761,54 +4761,8 @@
) %7B%0A
- if(that.$deltas.length %3E 0) return;%0A
@@ -4888,93 +4888,8 @@
();%0A
- session.bgTokenizer.lines = %5B%5D;%0A session.bgTokenizer.states = %5B%5D;%0A
@@ -5037,24 +5037,127 @@
t(rows%5Bi%5D);%0A
+ delete session.bgTokenizer.lines%5B... |
ddbefb30da3e61405c7541c6b4fde2512fb12f1f | test fix | test/test.create-event.selenium.js | test/test.create-event.selenium.js | var expect = require('expect.js'),
common = require('./common'),
moment = require('moment'),
request = require("superagent"),
Promise = require("bluebird");
describe("CREATE EVENT", function() {
if (process.env.SKIP_SELENIUM_TESTS) { return; }
this.timeout(60000); // Extr... | JavaScript | 0.000001 | @@ -1529,28 +1529,26 @@
Selector(%22a#
-admi
+bt
n-create-new
@@ -1582,20 +1582,18 @@
yCss(%22a#
-admi
+bt
n-create
|
a1fefa9f9222b2fdcffb8119638eb00f650ac355 | Fix wipe-all-packages test for Windows | tools/tests/wipe-all-packages.js | tools/tests/wipe-all-packages.js | var selftest = require('../selftest.js');
var Sandbox = selftest.Sandbox;
var files = require("../files.js");
var utils = require("../utils.js");
var archinfo = require("../archinfo.js");
var _ = require('underscore');
selftest.define("wipe all packages", function () {
var s = new Sandbox({
warehouse: {
v1... | JavaScript | 0.000008 | @@ -343,16 +343,35 @@
@33.0.1%22
+, recommended: true
%7D,%0A
@@ -404,16 +404,35 @@
@33.0.2%22
+, recommended: true
%7D,%0A
@@ -465,16 +465,35 @@
@33.0.3%22
+, recommended: true
%7D%0A %7D
@@ -1132,17 +1132,16 @@
ctures:
-%5B
archinfo
@@ -1147,17 +1147,16 @@
o.host()
-%5D
,%0A
|
792ae98fcc69a3abbe4822c300042f95670f2be9 | fix autoprefixer bug | lib/autoprefixer.js | lib/autoprefixer.js | var autoprefix = require('autoprefixer');
var crypto = require('crypto');
var cache = Object.create(null);
module.exports = autoprefix;
function autoprefix (options) {
options = options || {};
var auto = autoprefix;
var browsers = options.browsers;
if (Array.isArray(browsers))
browsers = b... | JavaScript | 0 | @@ -123,40 +123,16 @@
s =
-autoprefix;%0A%0Afunction autoprefix
+function
(op
|
26692e6ffd576708b1ca696bbed3c0dd935aefe0 | check if payload of message is defined | lib/base/convert.js | lib/base/convert.js | 'use strict'
var debug = require('debug')('owfs:convert')
exports.preparePayload = function (payload) {
if (payload === true) {
return '1'
} else if (payload === false) {
return '0'
} else {
return payload.toString()
}
}
exports.extractValue = function (callback) {
return function (error, messa... | JavaScript | 0.000004 | @@ -797,22 +797,23 @@
var
-result
+payload
= messa
@@ -823,16 +823,65 @@
oUse%5B0%5D.
+payload;%0A var result = payload !== null ?
payload.
@@ -913,16 +913,24 @@
g'), '')
+ : null;
%0A
|
27c6b92e18e69f1e705596414467abd9ff660157 | Remove resolve in top level | rollup.config.js | rollup.config.js | import commonjs from '@rollup/plugin-commonjs';
import glslify from 'rollup-plugin-glslify';
import resolve from '@rollup/plugin-node-resolve';
import copy from "rollup-plugin-copy";
export default {
input: ['source/gltf-sample-viewer.js'],
output: [
{
file: 'dist/gltf-viewer.js',
... | JavaScript | 0.000001 | @@ -540,166 +540,8 @@
(),%0A
- resolve(%7B%0A browser: true,%0A preferBuiltins: false,%0A dedupe: %5B'gl-matrix', 'axios', 'jpeg-js', 'fast-png'%5D%0A %7D),%0A
|
c6ddb0aed04af105207bc16a15dbde0425e213af | convert button-react to es modules | rollup.config.js | rollup.config.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | JavaScript | 0.000106 | @@ -854,34 +854,33 @@
%0A format: '
-cj
+e
s',%0A %7D,%0A e
@@ -1072,10 +1072,9 @@
t: '
-cj
+e
s',%0A
|
8a6d290fc1cb53be8e2d4e9e20328b262c1be79a | Update rollup config for xmldom | rollup.config.js | rollup.config.js | import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "@rollup/plugin-typescript";
import babel from "rollup-plugin-babel";
import { terser } from "rollup-plugin-terser";
const pkg = require("./package.json");
const banner = [].join("\n");
const inpu... | JavaScript | 0 | @@ -745,14 +745,8 @@
ldom
--alpha
%22: %22
|
9f6f4af4317b3f137c79967d8125ff5116370175 | Update rollup-plugin-uglify usage | rollup.config.js | rollup.config.js | import uglify from 'rollup-plugin-uglify'
const input = 'index.js'
const sourcemap = true
export default [{
input,
output: {
file: 'dist/simple-statistics.mjs',
format: 'es',
sourcemap
}
}, {
input,
output: {
file: 'dist/simple-statistics.js',
format: 'cjs',... | JavaScript | 0.000001 | @@ -3,15 +3,19 @@
port
+ %7B
uglify
+ %7D
fro
|
bb70b841f5f1fe48b825f68eb9fbcc49471c4a90 | simplify conditional | lib/cashbox-batches.js | lib/cashbox-batches.js | const constants = require('./constants')
const db = require('./db')
const _ = require('lodash/fp')
const uuid = require('uuid')
function createCashboxBatch (deviceId, cashboxCount) {
if (_.isEqual(0, cashboxCount)) throw new Error('Cashbox is empty. Cashbox batch could not be created.')
const sql = `INSERT INTO ca... | JavaScript | 0.998594 | @@ -879,13 +879,31 @@
%7B%0A
-if (!
+const isValidContext =
_.ha
@@ -961,13 +961,47 @@
ext)
- && !
+%0A const isCassetteAmountWithinRange =
_.in
@@ -1139,16 +1139,70 @@
settes))
+%0A if (!isValidContext && !isCassetteAmountWithinRange
)%0A th
|
2634c5da52c502da8a34eb596aa21f698ac64b61 | Fix hacker-news import | examples/hacker-news/run.js | examples/hacker-news/run.js | import {
defaultResolveConfig,
build,
start,
watch,
runTestcafe,
merge,
stop,
reset,
importEventStore,
exportEventStore
} from 'resolve-scripts'
import resolveModuleComments from 'resolve-module-comments'
import resolveModuleAuth from 'resolve-module-auth'
import resolveModuleAdmin from 'resolve-mod... | JavaScript | 0.000071 | @@ -3744,29 +3744,19 @@
= merge(
-defaultResolv
+bas
eConfig,
|
526d85ecc2b2e42d23bc396316bbf2e0159957ca | use head tag to insert script for zxcvbn instead of existing script tags (there are no script tags in tests) | src/pat/passwordstrength/passwordstrength.js | src/pat/passwordstrength/passwordstrength.js | import Base from "@patternslib/patternslib/src/core/base";
function loadScript(src) {
var s,
i,
scripts = document.getElementsByTagName("script");
// Check script element doesn't already exist
for (i = 0; i < scripts.length; i++) {
if (scripts[i].src.indexOf(src) !== -1) {
... | JavaScript | 0 | @@ -102,16 +102,30 @@
i,%0A
+ head,%0A
@@ -505,29 +505,126 @@
-scripts%5B0%5D.parentNode
+// use head tag to find a place to insert the script node%0A head = document.getElementsByTagName(%22head%22)%5B0%5D%0A head
.ins
@@ -640,18 +640,23 @@
(s,
-scripts%5B0%5D
+head.firstChild
);... |
afcd677de89b6e9264f9f37728b744bf5dafa0ab | Add `civicase-util` directive which exposes utils | ang/civicase/Utils.js | ang/civicase/Utils.js | (function(angular, $, _) {
angular.module('civicase').factory('isActivityOverdue', function(crmLegacy) {
return function(act) {
var statuses = crmLegacy.civicase.activityStatuses,
now = new Date();
return !!act &&
(['Completed', 'Canceled'].indexOf(statuses[act.status_id].name) < 0) &... | JavaScript | 0.000004 | @@ -1183,16 +1183,565 @@
%0A %7D);%0A%0A
+ // Export a set of civicase-related utility functions.%0A // %3Cdiv civicase-util=%22myhelper%22 /%3E%0A angular.module('civicase').directive('civicaseUtil', function()%7B%0A return %7B%0A restrict: 'EA',%0A scope: %7B%0A civicaseUtil: '='%0A %7D,... |
368656fce68b0ff42cf3c539147a1177cc522848 | Fix typo in cookie | angular_token_auth.js | angular_token_auth.js | (function (angular) {
'use strict';
var auth = angular.module('angular-token-auth', ['ngCookies', 'project_settings']);
// Default settings. You can override these in your settings module.
auth.constant('TOKEN_AUTH', {
ENDPOINT: '/auth/',
LOGIN: '/login/',
LOGOUT: '/logout/',
... | JavaScript | 0.99992 | @@ -6037,17 +6037,16 @@
tore.get
-r
('test')
|
a75061008cfe41a5d7543ce0273b022c42234359 | support for special episodes | anilinkz_venlarger.js | anilinkz_venlarger.js | /**
The MIT License (MIT)
Copyright © 2015 Martin Pitak
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modi... | JavaScript | 0 | @@ -1258,17 +1258,17 @@
0.2.
-2
+3
%0A// @des
@@ -1542,15 +1542,25 @@
%5C/.*
+(
episode
+%7Cspecial)
.*/%0A
|
680d958f8b4e796371af071f46edf290565adab4 | reformat input code for readability | lib/components/NewContactForm.js | lib/components/NewContactForm.js | import React, { Component } from 'react';
import Input from './Input';
export default class NewContactForm extends Component {
constructor() {
super();
this.state = {
}
}
render() {
return (
<div>
<Input className="input-field input-first-name" type="text" value="" />
... | JavaScript | 0.00036 | @@ -279,37 +279,119 @@
st-name%22
- type=%22text%22 value=%22%22
+%0A type=%22text%22%0A value=%22%22%0A onChange=%7B(e) =%3E this.updateFirst()%7D
/%3E%0A%0A
@@ -441,28 +441,58 @@
st-name%22
- type=%22text%22
+%0A type=%22text%22%0A
value=%... |
92710bc5fa22efcf701133e6208b2a77070b8dc6 | Merge beam's agar angle handling | lib/consensus/mouse/democracy.js | lib/consensus/mouse/democracy.js | 'use strict';
// Mostly borrowed from https://github.com/WatchBeam/agar-node-robot/blob/master/index.js
const ANGLE_OFFSET = Math.PI / 2;
const multiplier = 20;
function clamp(val, min, max) {
if (val < min) {
return min;
}
if (val > max) {
return max;
}
return val;
}
function formula(value, multiplier, inten... | JavaScript | 0 | @@ -186,16 +186,50 @@
max) %7B%0A
+%09if (isNaN(val)) %7B%0A%09%09return 0;%0A%09%7D%0A
%09if (val
@@ -860,23 +860,22 @@
ity);%0A%09%09
-result.
+const
angle =
@@ -920,16 +920,60 @@
_OFFSET;
+%0A%09%09result.angle = isNaN (angle) ? 0 : angle;
%0A%0A%09%09retu
|
4a4036983c4fa92e8db57346b4fdc0c85f86b6d2 | Update libraryDef.js | lib/music_services/libraryDef.js | lib/music_services/libraryDef.js | 'use strict';
const Fuse = require('fuse.js');
const fs = require("fs");
const libraryPath = "./lib/library.json";
var musicLibrary = null;
var fuzzyTracks = null;
var fuzzyAlbums = null;
const libraryDef = {
country: '',
search: {
album: '',
song: '',
stati... | JavaScript | 0.000001 | @@ -184,16 +184,40 @@
null;%0A%0A
+var isLoading = false;%0A%0A
%0Aconst l
@@ -3450,24 +3450,81 @@
y(player) %7B%0A
+ %0A if (isLoading) %7B%0A return resolve('Loading');%0A %7D%0A
console.lo
@@ -3544,16 +3544,36 @@
brary%22);
+%0A isLoading = true;
%0A%0A let
@@ -4555,24 +4555,53 @@
,(err) =%3E %7B%... |
49d868adea04b615299aa3b97761e51b09ff195a | Fix typo | Source/DynamicScene/KmlDataSource.js | Source/DynamicScene/KmlDataSource.js | /*global define*/
define(['../Core/ClockRange',
'../Core/ClockStep',
'../Core/DeveloperError',
'../Core/Event',
'../Core/Iso8601',
'../Core/loadXML',
'./DynamicClock',
'./DynamicObjectCollection'
], function(
ClockRange,
Clo... | JavaScript | 0.999999 | @@ -1627,16 +1627,17 @@
tElement
+s
ByTagNam
|
d06e69230b634b999b0253c7e7bd9c9a0e5eebe9 | Fix multi-select dropdown bug | ui/js/component/dropdown/item.js | ui/js/component/dropdown/item.js | 'use strict';
module.exports = {
replace : true,
template: require('./item.html'),
data: function () {
return {
open : false,
selected: false,
children: []
};
},
computed: {
hasChildren: function () {
return this.children && this.children.length > 0;
},
},
methods: {
toggle: func... | JavaScript | 0.000173 | @@ -327,43 +327,8 @@
) %7B%0A
-%09%09%09this.selected = !this.selected;%0A
%09%09%09t
|
4e0346b19f925c2ef8bbbe997f75709dde711abf | Update src/rules/iddataweb-verification-workflow.js | src/rules/iddataweb-verification-workflow.js | src/rules/iddataweb-verification-workflow.js | /**
* @title ID DataWeb Verification Workflow
* @overview Verify your user's identity in 180+ countries with ID DataWeb's adaptive Verification Workflows.
* @gallery true
* @category marketplace
*
* This configuration allows you to add an ID DataWeb verification workflow to the user’s first time login experience.... | JavaScript | 0 | @@ -988,39 +988,47 @@
: configuration.
-idwBase
+IDDATAWEB_BASE_
URL + '/axn/oaut
@@ -4226,8 +4226,9 @@
%0A %7D%0A%7D
+%0A
|
4ba37df9c4f35726d3f1f2751eb07569be21ec6a | Update src/rules/map-keys-quotes/__tests__/index.js | src/rules/map-keys-quotes/__tests__/index.js | src/rules/map-keys-quotes/__tests__/index.js | import rule, { messages, ruleName } from "..";
testRule(rule, {
ruleName,
config: ["always"],
syntax: "scss",
accept: [
{
code: `
$test: ("foo": 14px, "bar": 25px);
`,
description: "accepts strings without quotes"
},
{
code: `
$test: ('foo': 14px, 'bar': 25p... | JavaScript | 0 | @@ -358,35 +358,32 @@
pts strings with
-out
quotes%22%0A %7D,%0A
|
9d1568f3ec78f176f094ad37cb57639cdb2f673b | apply mutual filter dependency | lib/scripts/rs.facets.sublist.js | lib/scripts/rs.facets.sublist.js | (function() {
'use strict';
var app = angular.module("rs.facets.sublist", []);
var appmodule = angular.module("rs.facets.sublist");
/****** FacetsSublist Directive ******/
var rsFacetsSublist = function(storageService) {
return {
restrict: 'E',
require: ['rsFacetsSublist','^rsFacets'],
... | JavaScript | 0 | @@ -481,24 +481,196 @@
trs.facet);%0A
+ scope.$watch(function() %7B //refresh sublists when current items change%0A return storageService.rsDataSet.getCurrentItems();%0A %7D, function() %7B%0A
sc
@@ -723,24 +723,38 @@
ope.facet);%0A
+ %7D);%0A
%7D,%0A
@@ -1... |
33f2bb145bdb512e2d4a32d5235929a000986e93 | FIX Default agent name | lib/services/northboundServer.js | lib/services/northboundServer.js | /*
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of fiware-iotagent-lib
*
* fiware-iotagent-lib 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 versio... | JavaScript | 0 | @@ -2320,16 +2320,23 @@
Name = '
+default
';%0A%0A
|
3a28211fea59114156266a7c378a3907fd189939 | Allow underscore in mention names | draft-js-mention-plugin/src/defaultRegExp.js | draft-js-mention-plugin/src/defaultRegExp.js | export default '[' +
'a-zA-Z0-9-' +
// Latin-1 Supplement (letters only) - https://en.wikipedia.org/wiki/List_of_Unicode_characters#Latin-1_Supplement
'\u00C0-\u00D6' +
'\u00D8-\u00F6' +
'\u00F8-\u00FF' +
// Latin Extended-A (without deprecated character) - https://en.wikipedia.org/wiki/List_of_Unicode_ch... | JavaScript | 0.00001 | @@ -21,17 +21,11 @@
%0A '
-a-zA-Z0-9
+%5C%5Cw
-' +
|
c272b93de4bd9882a610d7c38e6be17f511de728 | exclude table of contents from index | ScadaDoc/ScadaDoc/js/scadadoc.js | ScadaDoc/ScadaDoc/js/scadadoc.js | var WEBSITE = "doc.rapidscada.net";
function createLayout() {
var articleElems = $("body").children();
articleElems.detach();
var layoutElem = $("<div class='sd-contents-wrapper'><div class='sd-contents'></div></div>" +
"<div class='sd-article-wrapper'><div class='sd-article'></div></div>");
... | JavaScript | 0.000002 | @@ -179,32 +179,68 @@
ntents-wrapper'%3E
+%22 +%0A %22%3C!--googleoff: index--%3E
%3Cdiv class='sd-c
@@ -251,24 +251,46 @@
nts'%3E%3C/div%3E%3C
+!--googleon: index--%3E%3C
/div%3E%22 +%0A
|
5aae1ae8a70495f4b2ff230b0881acb5b7b59d76 | remove BASEDRIVER_HANDLED_SETTINGS (#16368) | packages/base-driver/lib/index.js | packages/base-driver/lib/index.js | // transpile:main
// BaseDriver exports
import * as driver from './basedriver/driver';
import * as deviceSettings from './basedriver/device-settings';
const { BaseDriver } = driver;
const { DeviceSettings, BASEDRIVER_HANDLED_SETTINGS } = deviceSettings;
export { BaseDriver, DeviceSettings, BASEDRIVER_HANDLED_SETTING... | JavaScript | 0 | @@ -203,37 +203,8 @@
ings
-, BASEDRIVER_HANDLED_SETTINGS
%7D =
@@ -260,37 +260,8 @@
ings
-, BASEDRIVER_HANDLED_SETTINGS
%7D;%0A
|
518a6b9fad94aa2e12e2713465dca3198cf6b1fc | Remove job route debug line | WebApp/Client/routes/job/jobRoute.js | WebApp/Client/routes/job/jobRoute.js | App.JobRoute = Ember.Route.extend({
exit: function () {
var job = this.get('currentModel');
job.transaction.rollback();
},
setupController: function (controller, model) {
controller.set('content', model);
window.model = model;
this.controllerFor('attachments').set('c... | JavaScript | 0.000001 | @@ -239,38 +239,8 @@
l);%0A
- window.model = model;%0A
|
624d17f7e28e07d69708cc62c3e266cbc1aee7dd | Update license header | lib/node_modules/@stdlib/math/base/special/bessely1/lib/y1.js | lib/node_modules/@stdlib/math/base/special/bessely1/lib/y1.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 | @@ -612,27 +612,23 @@
e.%0A*
-/%0A%0A'use strict';%0A%0A/
+%0A*%0A* ## Notice%0A
*%0A*
@@ -809,20 +809,16 @@
y1.hpp%7D.
-%0A*%0A*
The imp
@@ -864,21 +864,26 @@
cript.%0A*
-/%0A%0A/*
+%0A* %60%60%60text
%0A* Copyr
@@ -909,16 +909,18 @@
, 2006.%0A
+*%0A
* Use, m
@@ -1089,17 +1089,38 @@
0.txt)%0A*
-/
+ %60%60%6... |
1cb2356cc2845766e31cc6b3f1fc5fb00f4b578f | Add TODO annotation | lib/node_modules/@stdlib/math/base/special/cospi/lib/cospi.js | lib/node_modules/@stdlib/math/base/special/cospi/lib/cospi.js | 'use strict';
/**
* Notes:
* => cos(-x) = cos(x)
* => sin(-x) = -sin(x)
* => cos(π/2) = 0
* => cos(0) = 1
* => cos(π) = -1
*/
// MODULES //
var isnan = require( '@stdlib/math/base/utils/is-nan' );
var isInfinite = require( '@stdlib/math/base/utils/is-infinite' );
var abs = require( '@stdlib/math/base/special/abs' )... | JavaScript | 0.000001 | @@ -1155,16 +1155,58 @@
x ) ) %7B%0A
+%09%09// TODO: should we throw or return NaN?%0A
%09%09throw
|
7c016e7d6056d916227d991a83291247eedf75d5 | Fix missing semicolons | lib/node_modules/@stdlib/string/format/test/test.space_pad.js | lib/node_modules/@stdlib/string/format/test/test.space_pad.js | /**
* @license Apache-2.0
*
* Copyright (c) 2022 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.999999 | @@ -1298,32 +1298,33 @@
;%0A%0A%09str = 'beep'
+;
%0A%09expected = 'be
@@ -1322,24 +1322,25 @@
ted = 'beep'
+;
%0A%09actual = s
@@ -1416,32 +1416,33 @@
;%0A%0A%09str = 'beep'
+;
%0A%09expected = '
@@ -1448,16 +1448,17 @@
beep'
+;
%0A%09actual
@@ -1960,16 +1960,17 @@
= 'beep'
+;
%0A%09expect
@@ -1984,16 +... |
f963cee35f46e33de72d62b35b9cd33bd97e834e | use djedi23/dockerode for hidden docker API | packages/dtc-dockerode/package.js | packages/dtc-dockerode/package.js | /* Meteor package information for package Dockerode*/
Package.describe({
name: "dtc-dockerode",
summary: "Docker remote API. Wraps the dockerode package for Meteor.",
description: "this package is a fork from ongoworks:dockerode. Original https://github.com/ongoworks/meteor-dockerode",
version: "2.3.0",
git: ... | JavaScript | 0 | @@ -335,16 +335,18 @@
pends(%7B%0A
+
%22docke
@@ -352,22 +352,62 @@
erode%22:%22
-2.3.0%22
+git+https://github.com/djedi23/dockerode.git%22
%0A%7D);%0A%0APa
|
2af87fc1c993c3ecc671a6de623352cdb6cbbbfd | Fix eslint error (#1658) | packages/jest-cli/src/cli/args.js | packages/jest-cli/src/cli/args.js | /**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use stri... | JavaScript | 0 | @@ -4769,19 +4769,16 @@
ny file
-or
' +%0A
@@ -4780,16 +4780,19 @@
%0A '
+or
node mod
@@ -4825,16 +4825,27 @@
ode%60 or
+' +%0A '
%60path/to
|
123b817cd50b4c81933c49aa6d5062affc73e1f7 | fix failing unit test | web/ui/src/common/baseFactory.js | web/ui/src/common/baseFactory.js | /*
* baseFactory.js
* baseFactory constructs a factory object that can be used
* to keep the UI in sync with the backend. The returned factory
* will use the provided update function (which should return a
* promise good for an map of id to object), create new objects using
* the provided ObjConstructor, and cac... | JavaScript | 0.000001 | @@ -1646,40 +1646,8 @@
or;%0A
- this.lastUpdate = null;%0A
|
b6b67afd2e0b6d2ff60a1a4eaec93b3d60430739 | Add default for episode names | packages/transformer-maxdome/transformers/asset-schema.org.js | packages/transformer-maxdome/transformers/asset-schema.org.js | const Asset = require('@maxdome/request-maxdome').Asset;
module.exports = {
detect: data => data instanceof Asset,
from: 'asset',
to: 'schema.org',
run: asset => {
const data = {
'@context': 'http://schema.org',
'@type': {
episode: 'TVEpisode',
movie: 'Movie',
season: 'T... | JavaScript | 0.000001 | @@ -2259,16 +2259,82 @@
odeTitle
+ %7C%7C %60Staffel $%7Basset.seasonNumber%7D Episode $%7Basset.episodeNumber%7D%60
;%0A
|
2cdb0f855a2c2b8e8ee42927c24020bd2e27b562 | Add access token as a query parameter when available | website/static/js/waterbutler.js | website/static/js/waterbutler.js | 'use strict';
var $ = require('jquery');
var $osf = require('./osfHelpers');
function getViewOnly() {
return $osf.urlParams().view_only;
}
function getDefaultOptions(path, provider) {
var options = {
path: path,
provider: provider
};
var viewOnly = getViewOnly();
if (viewOnly) {
... | JavaScript | 0.000001 | @@ -356,16 +356,120 @@
;%0A %7D%0A
+ if (window.contextVars.accessToken) %7B%0A options.token = window.contextVars.accessToken;%0A %7D%0A
retu
@@ -2320,24 +2320,94 @@
, 'data?'),%0A
+ buildTreeBeardDownloadZip: buildFromTreebeard.bind(this, 'zip?'),%0A
copyUrl:
|
b32b06ccdcaa75ed7a27c6619f2e850929e28796 | use spacing variables to space status element from label | packages/web/src/Switch/Switch.js | packages/web/src/Switch/Switch.js | import React from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import { lighten } from "../colors";
const Status = styled.div`
width: ${props => props.theme.fontSize(s => s * 1.4)};
height: ${props => props.theme.fontSize(s => s * 1.4)};
margin-right: ${props => props.the... | JavaScript | 0 | @@ -327,23 +327,17 @@
cing
-Base(s =%3E s / 2
+Smallest(
)%7D;%0A
|
e295c1620c31d6d723968bc71afa042d8f7733e3 | add fixedrange to gl3dAxes | shelly/plotlyjs/static/plotlyjs/src/gl3d/defaults/gl3daxes.js | shelly/plotlyjs/static/plotlyjs/src/gl3d/defaults/gl3daxes.js | var Plotly = require('../../plotly');
var Gl3dAxes = {};
var axesAttrs = Plotly.Axes.layoutAttributes;
var extendFlat = Plotly.Lib.extendFlat;
module.exports = Gl3dAxes;
Gl3dAxes.axesNames = ['xaxis', 'yaxis', 'zaxis'];
Gl3dAxes.layoutAttributes = {
showspikes: {
type: 'boolean',
dflt: true
}... | JavaScript | 0 | @@ -971,24 +971,62 @@
ttrs.range,%0A
+ fixedrange: axesAttrs.fixedrange,%0A
// ticks
|
d820fb3cc0b93dd1d46a4a76c74222d25e1757ae | Remove old test code | addon/components/mediasuite-input.js | addon/components/mediasuite-input.js | import Ember from 'ember'
const { computed } = Ember
export default Ember.Component.extend({
classNames: ['form-field', 'element-wrap'],
type: 'text',
inputID: computed('elementId', function () {
return `input-${this.get('elementId')}`
}),
actions: {
localupdate () {
debugger
}
}
})
| JavaScript | 0.000092 | @@ -248,68 +248,8 @@
%7D)
-,%0A actions: %7B%0A localupdate () %7B%0A debugger%0A %7D%0A %7D
%0A%7D)%0A
|
67b9b2233239249432bb627194dd280b94873a09 | Update the preseason date with a rough guess. | _includes/js/application.js | _includes/js/application.js | (function() {
var Time = {
MINUTES_IN_HOUR : 60,
MILLISECONDS_IN_MINUTE : 60000,
OFFSETS : [300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300, 240,
300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300],
UNTILS : [1268550000000, 1289109600000, 1299999600000, 1320559200000,
... | JavaScript | 0.000001 | @@ -3549,17 +3549,17 @@
9/22/202
-1
+2
%22).getTi
|
6551f9cce9d0ae826d9d1680d501755346dc869c | Support IDNs in autolink addon, and exclude parentheses from URL | addons/autolink/autolink.js | addons/autolink/autolink.js | /**
* @file autolink.js
* @brief javascript code for autolink addon
* @author NAVER (developers@xpressengine.com)
*/
(function($){
var protocol_re = '(https?|ftp|news|telnet|irc|mms)://';
var domain_re = '(?:[\\w\\-]+\\.)+(?:[a-z]+)';
var max_255_re = '(?:1[0-9]{2}|2[0-4][0-9]|25[0-5]|[1-9]?[0-9])';
var ip_r... | JavaScript | 0 | @@ -214,31 +214,24 @@
(?:%5B
-%5C%5Cw%5C%5C-
+%5E./
%5D+%5C%5C.)+
-(?:%5Ba-z
+%5B%5E./
%5D+
-)
';%0A%09
@@ -421,14 +421,11 @@
?:/~
-%5B
%5C%5Cw
--%5D
+)?'
@@ -451,17 +451,16 @@
= '(
-(
?:/%5B%5C%5Cw!
%22$-/
@@ -459,20 +459,26 @@
%5C%5Cw!
-%22$-/:-@
+@$%25&!?=%22/.,:;-
%5D+)*
-)
';%0A%09
@@ -504,19 +504,29 ... |
aa852fe82cf85988a7c8b4322a18f4f6847c0bf5 | Make the ball move. | pong.js | pong.js | 'use strict';
var canvas = document.querySelector('canvas');
var context = canvas.getContext('2d');
// Space between the side edge of the canvas and the paddle.
var EDGE_TO_PADDLE = 5;
/**
The paddle at either side of the canvas.
@constructor
@param {boolean} isLeft - If true, construct the left paddle, oth... | JavaScript | 0.000059 | @@ -1276,743 +1276,731 @@
%0A%7D%0A%0A
-var human = new Player(true);%0Avar computer = new Player(false);%0A%0A/*%0A Following the YAGNI principle. I don't want to split this into a class and%0A instance until I know how I'm going to use it. If it turns out that ball may%0A be null, we can make a possibly empty con... |
9da847fbf56f49ab84dfbed576ed56ab30f176d6 | handle context loss gracefully | triangle.js | triangle.js | 'use strict'
var weakMap = typeof WeakMap === 'undefined' ? require('weak-map') : WeakMap
var createBuffer = require('gl-buffer')
var createVAO = require('gl-vao')
var TriangleCache = new weakMap()
function createABigTriangle(gl) {
var triangleVAO = TriangleCache.get(gl)
if(!triangleVAO) {
var buf =... | JavaScript | 0.000001 | @@ -296,16 +296,68 @@
angleVAO
+ %7C%7C !gl.isBuffer(triangleVAO._triangleBuffer.buffer)
) %7B%0A
@@ -535,16 +535,54 @@
%0A %5D)%0A
+ triangleVAO._triangleBuffer = buf%0A
Tria
|
4b0d7d52564cffef66a79499ecf713557363ed42 | Change zoning colors to be realistic | game_browser/src/colors.js | game_browser/src/colors.js | export default {
grass: [0.79, 0.88, 0.67],
asphalt: [0.7, 0.7, 0.7],
roadMarker: [1.0, 1.0, 1.0],
wall: [0.95, 0.95, 0.95],
flatRoof: [0.5, 0.5, 0.5],
brickRoof: [0.8, 0.5, 0.2],
field: [0.7, 0.7, 0.2],
plannedAsphalt: [1.0, 1.0, 1.0],
plannedRoadMarker: [0.6, 0.6, 0.6],
destru... | JavaScript | 0.000055 | @@ -500,22 +500,35 @@
%5B0.
-16
+79
, 0.
-67, 0.28
+52, 0%5D,//%5B230, 191, 0
%5D,%0A
@@ -549,21 +549,38 @@
%5B0.
-2
+8
5, 0.
-46
+09
, 0.
-9
+05%5D,//%5B239, 87, 71
%5D,%0A
@@ -598,23 +598,41 @@
%5B0.
-35
+68
, 0.
-31
+05
, 0.
+4
8%5D,
+//%5B206, 71, 183%5D,
%0A
@@ -651,22 +651,39 @@
%5B0.
-95
+3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.