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 |
|---|---|---|---|---|---|---|---|
f8ceb41fb04302eeb73302d908b1dfa1e4ab1f23 | Update testPageMetaTags.js | __tests__/e2e/extensions/testPageMetaTags.js | __tests__/e2e/extensions/testPageMetaTags.js | /* eslint-disable no-unused-expressions */
module.exports.command = function (title, description) {
this.expect.element(`meta[name="title"][content="${title}"]`).to.be.present
this.expect.element(`meta[property="og:title"][content="${title}"]`).to.be.present
this.expect.element(`meta[name="twitter:title"][conten... | JavaScript | 0.000001 | @@ -112,71 +112,33 @@
ect.
-element(%60meta%5Bname=%22title%22%5D%5Bcontent=%22$%7Btitle%7D%22%5D%60).to.be.present
+title().to.contain(title)
%0A t
|
2160ef938093d01c662c8b5624dcf4db209b41f3 | fix name clash in last JS commit | app/assets/javascripts/app/projects.js | app/assets/javascripts/app/projects.js | $(function(){
var projects = {
init: function() {
this.autoSuggest();
},
autoSuggest: function() {
var $oas = $('input.project-auto-suggest');
var _this = this;
if ($oas.length) {
$oas.keyup(function(e) {
clearTimeout($.data(this, 'timer'));
if (e.k... | JavaScript | 0 | @@ -1485,27 +1485,24 @@
var proj
-ect
s = data.pro
@@ -1656,19 +1656,16 @@
ach(proj
-ect
s, funct
|
1d49c8626ec40519a19764959b18efb2868d8f61 | Revert "V8: Don't show multiple open menus (take two) (#5609)" | src/Umbraco.Web.UI.Client/src/common/directives/components/events/events.directive.js | src/Umbraco.Web.UI.Client/src/common/directives/components/events/events.directive.js | /**
* @description Utillity directives for key and field events
**/
angular.module('umbraco.directives')
.directive('onDragEnter', function () {
return {
link: function (scope, elm, attrs) {
var f = function () {
scope.$apply(attrs.onDragEnter);
... | JavaScript | 0 | @@ -3515,265 +3515,192 @@
-// ignore clicks on button groups toggles (i.e. the save and publish button)%0A var parents = $(event.target).closest(%22%5Bdata-element='button-group-toggle'%5D%22);%0A if (parents.length %3E 0) %7B%0A return;%0A
+var el =... |
43fa3dc60c6b3652ef5655eb4348277fe4d23dcd | clear filter on log out (#2311) | src/main/webapp/scripts/searchmanagement/directives/search-filter-panel.controller.js | src/main/webapp/scripts/searchmanagement/directives/search-filter-panel.controller.js | /* global _, document */
'use strict';
angular.module('metadatamanagementApp')
.controller('SearchFilterPanelController', [
'$scope', 'SearchHelperService', '$timeout',
'$element', 'CleanJSObjectService', '$mdSelect',
function($scope, SearchHelperService, $timeout,
$element, CleanJSObjectService, $... | JavaScript | 0 | @@ -2250,32 +2250,129 @@
%7D);%0A %7D);%0A%0A
+ $scope.$on('user-logged-out', function() %7B%0A $scope.selectedFilters = %5B%5D;%0A %7D);%0A%0A
$scope.onO
|
e2ee5f819c90cd36ee98d3c21a35edd67d8b9b0f | write a function that changes the name of what I wish for and hide it | app/assets/javascripts/websites/wish_page.js | app/assets/javascripts/websites/wish_page.js | JavaScript | 0.000061 | @@ -0,0 +1,501 @@
+function wish() %7B%0A var wishes = %5B'were younger.',%0A 'could take bigger bong hits.',%0A 'could think faster and be sharper.'%5D;%0A var index = 0;%0A%0A function showMessage() %7B%0A $('#message').text(wishes%5Bindex%5D).show();%0A%0A setTimeout(hideMessag... | |
663129a71c0aa6f093cb958be0c056495bae5e01 | Temperature and humidity values truncated to 2nd decimal. Gotta handle true and false | app/control-panel/controllers/viewHubCtrl.js | app/control-panel/controllers/viewHubCtrl.js | app.controller('ViewHubCtrl', ViewHubCtrl);
ViewHubCtrl.$inject = ['$scope','$state','$stateParams','$q','hub','printer','sensor'];
function ViewHubCtrl($scope, $state, $stateParams,$q, hub, printer, sensor) {
var hubId = Number($stateParams.hubId);
var hubPromise = hub.getHub(hubId);
var changed = false;
$s... | JavaScript | 0.999999 | @@ -1148,68 +1148,257 @@
-console.log('Newest Datum: ' + $scope.sensors%5Bj%5D.newestDatum
+$scope.sensors%5Bj%5D.newestDatum.value = parseFloat($scope.sensors%5Bj%5D.data%5BdataLength - 1%5D.value).toFixed(2);%0A console.log('Newest Datum: ' + $scope.sensors%5Bj%5D.newestDatum + ' it%5C's value type is: '... |
c0e5a946ad535bc3f2cfe144f9032ec66092feb2 | Fix [IQSLDSH-164]. | app/controllers/devices.server.controller.js | app/controllers/devices.server.controller.js | /*jslint nomen: true, vars: true, unparam: true*/
/*global require, exports, console*/
(function () {
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
messagingEngineFactory = require('../services... | JavaScript | 0 | @@ -4332,187 +4332,145 @@
-return %7B $regex: '%5E' + nameFilter, $options: 'i' %7D;%0A %7D;%0A%0A exports.list = function (req, res) %7B%0A var select = %7B%7D,%0A locationsFilter,%0A nameFilter;%0A
+var regex = new RegExp('.*' + nameFilter + '.*', 'i');%0A return %7B $r... |
5b5ce871a92c2c4f504926c411cbd974bc99b2df | Add billingAddressParameters to GooglePay | app/javascript/components/GooglePayButton.js | app/javascript/components/GooglePayButton.js | // @flow
import React, { Component } from 'react';
import googlePayment from 'braintree-web/google-payment';
import { connect } from 'react-redux';
import { setSubmitting } from '../state/fundraiser/actions';
import type { AppState, PaymentMethod } from '../state';
type Props = {
client: ?any,
onSubmit: (result: ... | JavaScript | 0 | @@ -4753,32 +4753,89 @@
Required: true,%0A
+ billingAddressParameters: %7B format: 'MIN' %7D,%0A
%7D,%0A
|
814b7895c837d5dc75aa7e46e2f57f9338fb4459 | Fix organization bikes error (#1669) | app/javascript/packs/pages/binx_org_bikes.js | app/javascript/packs/pages/binx_org_bikes.js | import log from "../utils/log";
function BinxAppOrgBikes() {
return {
init() {
// I'm concerned about javascript breaking, and the bikes being hidden and unable to be shown.
// To prevent that, only hide columns after adding this class
$("#organized_bikes_index").addClass("javascriptFunctioning... | JavaScript | 0 | @@ -471,32 +471,33 @@
hange%22, function
+
(e) %7B%0A se
@@ -640,16 +640,17 @@
function
+
(e) %7B%0A
@@ -927,24 +927,105 @@
Columns() %7B%0A
+ if (!$(%22#organizedSearchSettings%22).length) %7B%0A return false;%0A %7D%0A
const
|
ee1f192e5cf0bbf4399e69e8501fbb36d1fc4303 | add pinch trigger to pop up enlargements | application/labels/static/js/jquery.hooks.js | application/labels/static/js/jquery.hooks.js | jQuery(document).ready(function() {
if( $(window).height()<710 && window.devicePixelRatio>1 ){
var v = $('meta[name^="viewport"]'),
c = v.attr('content');
v.attr('content', c.replace('initial-scale=1', 'initial-scale='+$(window).height()/710));
}
$(window).each(function(){
... | JavaScript | 0 | @@ -2717,32 +2717,146 @@
%7D%0A %7D%0A
+ %7D).on('transformstart', function(e)%7B%0A if( $(this).is('.active') )%7B $(this).trigger('click') %7D;%0A
%7D);%0A
|
cfef8ddb085f28b15efb8a883b07348702625d9f | Add styling class. | assets/js/components/settings/SetupModule.js | assets/js/components/settings/SetupModule.js | /**
* SetupModule component.
*
* Site Kit by Google, 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
*
... | JavaScript | 0 | @@ -3594,16 +3594,71 @@
warning'
+, 'googlesitekit-settings-module-warning--modules-list'
) %7D %3E%0A%09
|
e691f30aeeef919e59e5a19adbc9ec91a7339ecd | Remove console statements | backend/servers/mcapid/__tests__/example2.js | backend/servers/mcapid/__tests__/example2.js | 'use strict';
const ActionHero = require('actionhero');
const actionhero = new ActionHero.Process();
let api;
describe('actionhero Tests', () => {
beforeAll(async() => { api = await actionhero.start(); });
afterAll(async() => {
console.log('Calling actionhero.stop()');
await actionhero.stop();... | JavaScript | 0.000008 | @@ -243,127 +243,30 @@
-console.log('Calling actionhero.stop()');%0A await actionhero.stop();%0A console.log('past actionhero.stop()'
+await actionhero.stop(
);%0A
|
74e6ce76b190549fe0d648d6c212e89989e32a21 | add test whether we can instance pipelineRecord | blueocean-admin/src/test/js/pipeline-spec.js | blueocean-admin/src/test/js/pipeline-spec.js | import React from 'react';
import {createRenderer} from 'react-addons-test-utils';
import { assert} from 'chai';
import sd from 'skin-deep';
import Pipeline from '../../main/js/components/Pipeline.jsx';
const
hack={
MultiBranch:()=>{},
Pr:()=>{},
Activity:()=>{},
} ,
pipelineMulti = {
'displayN... | JavaScript | 0 | @@ -135,17 +135,16 @@
deep';%0A%0A
-%0A
import P
@@ -196,16 +196,87 @@
ne.jsx';
+%0Aimport %7B PipelineRecord %7D from '../../main/js/components/records.jsx';
%0A%0Aconst%0A
@@ -1571,24 +1571,220 @@
ti%7D/%3E%0A );%0A%0A
+describe(%22PipelineRecord can be created %22, () =%3E %7B%0A it(%22without error%22, () ... |
f8984a9c78266252670ea48510e3c72a15933b2a | Fix issue 9: Incorrect polling locations are being returned | app/scripts/polling_location_finder.js | app/scripts/polling_location_finder.js | define(['geojson', 'json!vendor/ELECTIONS_WardsPrecincts.geojson', 'json!vendor/ELECTIONS_PollingLocations.geojson'], function(GeoJSON, precinctsJSON, locationsJSON) {
'use strict';
var precincts = new GeoJSON(precinctsJSON),
pollingLocations = new GeoJSON(locationsJSON);
var map = new google.maps... | JavaScript | 0.000001 | @@ -1128,23 +1128,44 @@
cation =
+ null, wardPrecinct =
null;%0A
-
@@ -1305,24 +1305,100 @@
ecincts%5Bi%5D;%0A
+ wardPrecinct = userPrecinct.geojsonProperties.WardPrecinct;%0A
@@ -1403,16 +1403,30 @@
//
+Search for the
polling
@@ -1438,69 +1438,205 @@
tion
-s are sto... |
dbf878d4a3cc3a9cd7ff314cc4bb58e87a9d6e3b | enable usage of https Marvel services | app/scripts/services/marvel-wrapper.js | app/scripts/services/marvel-wrapper.js | 'use strict';
/*
* Wraps Marvel's rest API and does things like caching results and logging
* errors
*/
angular.module('marvelQuizApp.common')
.provider('MarvelWrapper', function MarvelWrapperProvider() {
// contains the Marvel API key to attach to every request
var apiKey;
/*
* Set Marvel's AP... | JavaScript | 0 | @@ -543,13 +543,8 @@
= '
-http:
//ga
|
9de2dd374b65583e8060bd1ce327cd0a0a4057fc | Remove newline. (#251) | lib/generateElement.js | lib/generateElement.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
'use strict';
const generate = require('./generate');
/**
* Wrap SRI data for resourceUrl in a script tag
*
... | JavaScript | 0.000249 | @@ -457,17 +457,16 @@
ack%0A */%0A
-%0A
const ge
|
cb2c1db1b64a89bd587c446cd2f39e6de013fcdd | fix emailConfirmation graphql mutation | packages/plugins/users-permissions/server/graphql/mutations/auth/email-confirmation.js | packages/plugins/users-permissions/server/graphql/mutations/auth/email-confirmation.js | 'use strict';
const { toPlainObject } = require('lodash/fp');
const { checkBadRequest } = require('../../utils');
module.exports = ({ nexus, strapi }) => {
const { nonNull } = nexus;
return {
type: 'UsersPermissionsLoginPayload',
args: {
confirmation: nonNull('String'),
},
description: '... | JavaScript | 0.000001 | @@ -456,19 +456,12 @@
ext.
-re
que
-st.bod
+r
y =
|
9605ed21921e4fc7eb2a8537c943d209fb4f4fef | Correct authentication methods in place for tournament | api/models/tournament.js | api/models/tournament.js | 'use strict';
const app_config = require('../config');
const dynamoose = require('dynamoose');
dynamoose.AWS.config.update(app_config.aws);
const Schema = dynamoose.Schema;
dynamoose.local();
const options = {
create: true,
udpate: true,
timestamps: true,
useDocumentTypes: true,
};
let tournamentS... | JavaScript | 0.000008 | @@ -1317,17 +1317,16 @@
false);%0A
-%0A
@@ -1331,10 +1331,10 @@
cb
-(
+(
matc
@@ -1348,17 +1348,16 @@
nt === 1
-
);%0A %7D
@@ -1359,18 +1359,16 @@
%7D);%0A
-%0A%0A
%7D;%0A%0Alet
|
6186c278fd87d2bc8854f68d896011c608129584 | tweak keymater with our own changes | vendor/keymaster.js | vendor/keymaster.js | // keymaster.js
// (c) 2011 Thomas Fuchs
// keymaster.js may be freely distributed under the MIT license.
;(function(global){
var k,
_handlers = {},
_mods = { 16: false, 18: false, 17: false, 91: false },
_scope = 'all',
// modifier keys
_MODIFIERS = {
'⇧': 16, shift: 16,
... | JavaScript | 0 | @@ -1717,16 +1717,19 @@
a input%0A
+//
if (
@@ -3613,11 +3613,14 @@
lit(
-'+'
+/-%7C%5C+/
);%0A
@@ -3771,16 +3771,30 @@
mods%5Bmi%5D
+.toLowerCase()
%5D;%0A
@@ -4880,16 +4880,23 @@
ports =
+global.
key;%0A%0A%7D)
|
1ab1a8fbe5aa7e4de31e2694b101691b4eb3e2e9 | fix for DFL-294, Editing the matching text (highlighted one) is not reflected in search on reverting back the edited text to the original one. | src/scripts/TextSearch.js | src/scripts/TextSearch.js | /**
* @constructor
*/
var TextSearch = function()
{
const
DEFAULT_STYLE = "background-color:#ff0; color:#000;",
HIGHLIGHT_STYLE = "background-color:#0f0; color:#000;",
DEFAULT_SCROLL_MARGIN = 50,
SEARCH_DELAY = 50;
var
self = this,
search_therm = '',
search_results = [], // collection of sp... | JavaScript | 0 | @@ -5207,76 +5207,33 @@
if(
-!search_results.every(function(hit)%7B return hit%5B0%5D.parentElement %7D )
+container && search_therm
)%0A
|
5f378db409a3813c2700628f077e7f7342fc5acc | Fix assets init processor | lib/init/app/assets.js | lib/init/app/assets.js | // `bin` section processor
//
// .
// |- /assets/
// | |- /<package>/
// | | |- **/*.*
// | | `- ...
// | `- ...
// `- ...
//
'use strict';
// stdlib
var fs = require('fs');
var path = require('path');
// 3rd-party
var async = require('nlib').Vendor.Async;
var fstools = require('nlib').Ve... | JavaScript | 0.000002 | @@ -600,34 +600,24 @@
ck) %7B%0A
-async.forEachSerie
+findPath
s(config
@@ -628,58 +628,8 @@
kup,
- function (options, next) %7B%0A findPaths(options,
fun
@@ -657,18 +657,16 @@
) %7B%0A
-
if (err)
@@ -678,23 +678,23 @@
- next
+callback
(err);%0A
-
@@ -703,18 +703,16 @@
return;%0A
-
... |
ad594f1a2026ef4fa8f4b9d06a79bbc8c48b8ba0 | Improve jekyll template | lib/jekyll-template.js | lib/jekyll-template.js | 'use strict';
let path = require('path');
module.exports = function jekyllTemplate(answers) {
return `
---
layout: post
title: ${answers.title || 'Unknown'}
speakers: ${answers.speakers || 'Unknown'}
date: ${answers.date}
duration: ${answers.duration || '0min'}
tags: [ ${answers.tags || ... | JavaScript | 0 | @@ -12,54 +12,8 @@
';%0A%0A
-let path = require('path');%0A%0Amodule.exports =
func
@@ -17,17 +17,20 @@
unction
-j
+getJ
ekyllTem
@@ -302,140 +302,408 @@
mg:
-/assets/image/speakers/$%7Banswers.imageName %7C%7C 'no-image.jpg'%7D%0A link: $%7Banswers.link%7D%0A ---%0A %60.replace(/%5E(?:%5Cn%7C%5Cs%7B2,4%... |
e280a0dc0da89803cad012f242239df9df9a6df8 | Fix sample prog err | lib/jserver/tserver.js | lib/jserver/tserver.js | var jlib = require('./jamlib'),
async = require('asyncawait/async'),
await = require('asyncawait/await'),
readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.setPrompt('J-Core > ');
rl.prompt();
rl.on('line', (line) => {
var ... | JavaScript | 0.000012 | @@ -4056,16 +4056,55 @@
+ msg);%0A
+%09msg_list.push(usr_name + %22: %22 + msg);%0A
%09//proce
|
26b7b34bd4cd6af13ec0786f2e6aa22e0e783ade | Add check for metadata | platform/core/src/utils/xhrRetryRequestHook.js | platform/core/src/utils/xhrRetryRequestHook.js | import retry from 'retry';
const defaultRetryOptions = {
retries: 5,
factor: 3,
minTimeout: 1 * 1000,
maxTimeout: 60 * 1000,
randomize: true,
retryableStatusCodes: [429, 500],
};
let retryOptions = { ...defaultRetryOptions };
/**
* Request hook used to add retry functionality to XHR requests.
*
* @par... | JavaScript | 0 | @@ -623,16 +623,60 @@
a) =%3E %7B%0A
+ if (!metadata) %7B%0A return request;%0A %7D%0A%0A
const
|
489a13f60b7a5817c8c0818a0895fbc114c3237e | Add initial, tentative pg setup | dbserver/dbroutes.js | dbserver/dbroutes.js |
var express = require('express')
var path = require('path')
var cors = require('cors')
var bodyparser = require('body-parser')
var uuid = require('uuid')
var compression = require('compression')
var bcrypt = require('bcryptjs')
var knex = require('knex')({
client: 'sqlite3',
connection: {
filename: '../datast... | JavaScript | 0 | @@ -366,16 +366,153 @@
rue%0A%7D)%0A%0A
+// var knex = require('knex')(%7B%0A// client: 'pg',%0A// connection: 'postgresql://localhost:3000',%0A// searchPath: 'knex,public'%0A// %7D)%0A%0A
module.e
|
f934f78fb811924db152551e24b77e8776acac7f | update binding handler | validate.js | validate.js | var defaultMessage = 'Invalid Value',
defaultValidator = function (value) {
return value !== undefined && value !== null && (value.length === undefined || value.length > 0);
};
var getValidationFunction = function (validator) {
//Allow Regex validations
if (validator instanceof RegExp) {
... | JavaScript | 0 | @@ -3979,16 +3979,112 @@
ate = %7B%0A
+ preprocess: function (value, name, addBinding) %7B%0A addBinding('value', value);%0A %7D,%0A
init
@@ -4113,32 +4113,32 @@
alueAccessor) %7B%0A
-
if (!ko.
@@ -4263,89 +4263,8 @@
);%0A%0A
- ko.bindingHandlers.value.init.apply(this, arguments); /... |
e5e8d645b2e1caa44903d1725e42d19e82f3931d | make sure we approximate a valid index for hover details | src/js/Rickshaw.Graph.HoverDetail.js | src/js/Rickshaw.Graph.HoverDetail.js | Rickshaw.namespace('Rickshaw.Graph.HoverDetail');
Rickshaw.Graph.HoverDetail = Rickshaw.Class.create({
initialize: function(args) {
var graph = this.graph = args.graph;
this.xFormatter = args.xFormatter || function(x) {
return new Date( x * 1000 ).toUTCString();
};
this.yFormatter = args.yFormatter || ... | JavaScript | 0 | @@ -1466,16 +1466,25 @@
Index =
+Math.min(
approxim
@@ -1496,16 +1496,44 @@
dex %7C%7C 0
+, stackedData%5B0%5D.length - 1)
;%0A%0A%09%09for
|
7933e1739679ea772828d5a488615b4eacbc7ef2 | Use factory parameters | lib/logger/loglevel.js | lib/logger/loglevel.js | /**
*
* @licstart The following is the entire license notice for the JavaScript code in this file.
*
* Loglevel logger implementation for recordLoader
*
* Copyright (c) 2015-2016 University Of Helsinki (The National Library Of Finland)
*
* This file is part of record-loader-logger-loglevel
*
* record-loader... | JavaScript | 0.000001 | @@ -1637,16 +1637,34 @@
unction(
+parameters_factory
) %7B%0A%09ret
@@ -1680,22 +1680,17 @@
ion(
-level, prefixe
+parameter
s, m
@@ -1829,16 +1829,35 @@
isArray(
+parameters_factory.
prefixes
@@ -1902,16 +1902,35 @@
fixes =
+parameters_factory.
prefixes
@@ -2037,16 +2037,35 @@
ined &&
+parameters_factory.
p... |
87908e52fabcc87a349fe81cd51cdf96a553a539 | maintain modified/saved classes and lastSaved timestamp for tiny forms | src/patterns/edit-tinymce.js | src/patterns/edit-tinymce.js | define([
'jquery',
'../lib/ajax',
"../core/parser",
'../core/logging',
'../registry',
'URIjs/URI',
'tinymce'
], function($, ajax, Parser, logging, registry, URI) {
var log = logging.getLogger('editTinyMCE'),
parser = new Parser("edit-tinymce");
parser.add_argument('tinymce-b... | JavaScript | 0 | @@ -95,24 +95,40 @@
/registry',%0A
+ %22../utils%22,%0A
'URIjs/U
@@ -193,16 +193,23 @@
egistry,
+ utils,
URI) %7B%0A
@@ -2562,24 +2562,904 @@
.baseURL);%0A%0A
+ var $tinymce,%0A modified = utils.debounce(function() %7B%0A $tinymce.off('.pat-tinymce');%0A ... |
138b21ce6033b9beac28804a295124ff9dee318f | remove deprecated req.session._csrf getter | lib/middleware/csrf.js | lib/middleware/csrf.js | /*!
* Connect - csrf
* Copyright(c) 2011 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils');
var uid = require('uid2');
var crypto = require('crypto');
/**
* Anti CSRF:
*
* CSRF protection middleware.
*
* This middleware adds a `req.csrfToken()` function to make a ... | JavaScript | 0.000002 | @@ -1582,306 +1582,8 @@
%0A
- // compatibility with old middleware%0A Object.defineProperty(req.session, '_csrf', %7B%0A configurable: true,%0A get: function() %7B%0A console.warn('req.session._csrf is deprecated, use req.csrfToken() instead');%0A return req.csrfToken();%0A... |
e21a4ff69e5090bcfae4f272781ef019d936606a | Fix for enter key clearing validation warnings | src/main/resources/static/js/main.js | src/main/resources/static/js/main.js | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | JavaScript | 0 | @@ -2150,36 +2150,136 @@
.keyup(function(
+e
) %7B%0A
+ // Fix for enter key being detected as a change%0A if (e.keyCode != 13) %7B%0A
var
@@ -2295,16 +2295,20 @@
(this);%0A
+
@@ -2356,32 +2356,36 @@
%22);%0A
+
+
field.next().tex
@@ -2387,24 +23... |
946b8af653c7e2ddd2137546afb315fc14bc48b3 | Bring back number of greenlets display in the dashboard | mrq/dashboard/static/js/views/workers.js | mrq/dashboard/static/js/views/workers.js | define(["jquery", "underscore", "views/generic/datatablepage", "models", "moment"],function($, _, DataTablePage, Models, moment) {
return DataTablePage.extend({
el: '.js-page-workers',
template:"#tpl-page-workers",
events:{
"change .js-datatable-filters-showstopped": "filterschanged",
"cli... | JavaScript | 0 | @@ -5772,21 +5772,24 @@
config.g
-event
+reenlets
%0A
|
8b41841202abcde4bfe7a5b0426f091668f35d15 | Update hyphen stitching regex to include dangling 'not signs' | src/plugins/tts/PageChunk.js | src/plugins/tts/PageChunk.js | /**
* Class to manage a 'chunk' (approximately a paragraph) of text on a page.
*/
export default class PageChunk {
/**
* @param {number} leafIndex
* @param {number} chunkIndex
* @param {string} text
* @param {DJVURect[]} lineRects
*/
constructor(leafIndex, chunkIndex, text, lineRects) {
this.le... | JavaScript | 0 | @@ -3206,24 +3206,236 @@
ens(text) %7B%0A
+ // Some books mis-OCR a dangling hyphen as a %C2%AC (mathematical not sign) . Since in math%0A // the not sign should not appear followed by a space, we think we can safely assume%0A // this should be replaced.%0A
return t
@@ -3447,17 +3447,20 @@
eplace(/
--
+... |
df4aa5c1ccc26f11f5dfbd281666f1b9ae70122c | Add index changes to start | core/pwa/scripts/start.js | core/pwa/scripts/start.js | /* eslint-disable no-console, global-require */
const { emptyDir } = require('fs-extra');
const express = require('express');
const webpack = require('webpack');
const noFavicon = require('express-no-favicons');
const webpackDevMiddleware = require('webpack-dev-middleware');
const webpackHotMiddleware = require('webpac... | JavaScript | 0 | @@ -51,18 +51,59 @@
nst
-%7B emptyDir
+path = require('path');%0Aconst %7B emptyDir, writeFile
%7D =
@@ -688,74 +688,11 @@
nst
-%7B publicPath, path: outputPath %7D = clientConfig.output;%0A%0Aconst DEV
+dev
= p
@@ -790,16 +790,228 @@
d/pwa');
+%0A const buildInfo = %7B%0A buildPath: path.resolve(__dirname... |
f597ee9ab3206d2d8a3c4e61b812fcf35ab1c37f | return xhr | client/zdr/daily/controllers/DailyManager.js | client/zdr/daily/controllers/DailyManager.js | import _ from "lodash";
import $ from "jquery";
const _stories = {};
export default class DailyManager
{
/**
* 获取目前已从服务端获取到的所有日报内容的缓存(以日报 id 进行检索,无序,请勿用 index 检索)。
*/
static getFetchedStories()
{
return _stories;
}
/**
* 获取最新热门日报的 ID 列表。
* @param {Function(err, res)} ... | JavaScript | 0.999997 | @@ -378,32 +378,39 @@
)%0A %7B%0A
+return
$.get(%22/api/4/ne
@@ -422,32 +422,32 @@
p%22, (p_data) =%3E%0A
-
%7B%0A
@@ -961,32 +961,39 @@
%7B%0A
+return
$.get(%22/api/4/ne
@@ -1221,32 +1221,39 @@
%7B%0A
+return
$.get(%22/api/4/ne
@@ -1928,32 +1928,32 @@
e%... |
ca77d7a8a76755cfc297af14c2a7788982f95da1 | Add some pauses to ensure the application has time to load | cypress/integration/gpu-dependant/cross-section-view.js | cypress/integration/gpu-dependant/cross-section-view.js | context('Snapshot-based tests', () => {
beforeEach(function () {
cy.visit('/?endTime=2018-01-01T12:00:00.000Z')
cy.waitForSplashscreen()
cy.waitForSpinner()
})
context('Cross section interactions', () => {
it('ensures user can enter and exit cross-section mode', () => {
// Show some earthqu... | JavaScript | 0 | @@ -405,16 +405,17 @@
cy.wait(
+1
500) //
@@ -542,24 +542,42 @@
y: 650 %7D %5D)%0A
+ cy.wait(500)
%0A cy.ma
|
4fca25241bb37310bfa87eea354a88460275ba0a | Support vendor sourcemaps for debugging | flexget/ui/gulpfile.js | flexget/ui/gulpfile.js | var del = require('del'),
gulp = require('gulp'),
mainBowerFiles = require('main-bower-files'),
uglify = require('gulp-uglify'),
gutil = require('gulp-util'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
vendor = require('gulp-concat-vendor'),
flatten = require('gulp-flatten... | JavaScript | 0 | @@ -821,32 +821,61 @@
pipe(flatten())%0A
+ .pipe(sourcemaps.init())%0A
.pipe(uglify
@@ -945,24 +945,57 @@
.min.js'%7D))%0A
+ .pipe(sourcemaps.write('.'))%0A
.pipe(gu
|
a9eb62880e45c166bdcd84811b6f33dac5cf6cef | Remove behaviour where backspace re-focuses on title field | js/forum/src/components/DiscussionComposer.js | js/forum/src/components/DiscussionComposer.js | import ComposerBody from 'flarum/components/ComposerBody';
import extractText from 'flarum/utils/extractText';
/**
* The `DiscussionComposer` component displays the composer content for starting
* a new discussion. It adds a text field as a header control so the user can
* enter the title of their discussion. It al... | JavaScript | 0.000001 | @@ -1972,611 +1972,8 @@
%7D%0A%0A
- config(isInitialized, context) %7B%0A super.config(isInitialized, context);%0A%0A // If the user presses the backspace key in the text editor, and the cursor%0A // is already at the start, then we'll move the focus back into the title%0A // input.%0A this.editor.$('... |
c9db90cec7ef29b1cf4cba8f842df76345863138 | Include description in the field search drop down (#182) | ui/src/App.js | ui/src/App.js | import React, { Component } from "react";
import { MuiThemeProvider } from "material-ui";
import "App.css";
import {
ApiClient,
DatasetApi,
FacetsApi,
FieldsApi
} from "data_explorer_service";
import ExportFab from "components/ExportFab";
import ExportUrlApi from "api/src/api/ExportUrlApi";
import FacetsGrid f... | JavaScript | 0 | @@ -2257,24 +2257,226 @@
(field =%3E %7B%0A
+ if (field.description) %7B%0A return %7B%0A label: field.name + %22 - %22 + field.description,%0A value: field.elasticsearch_name%0A %7D;%0A %7D%0A
|
f4d3ff4c8de242a0f51237bec0a244896306f8ea | fix pnpm postinstall error (#39) | lib/rules/node-path.js | lib/rules/node-path.js | 'use strict';
const fs = require('fs');
const path = require('path');
const childProcess = require('child_process');
const message = require('../message');
exports.description = 'NODE_PATH matches the npm root';
const errors = {
npmFailure() {
return message.get('node-path-npm-failure', {});
},
pathMismatc... | JavaScript | 0 | @@ -775,16 +775,42 @@
'ENOENT'
+ && err.code !== 'ENOTDIR'
) %7B%0A
|
f1bbb82201380edb6344b1e34896cc93a2ed1b1c | Update styling on conference tab bar | app/views/conference/ConferenceView.js | app/views/conference/ConferenceView.js | import React, { Component } from 'react';
import {
View,
StyleSheet,
Platform,
Text,
} from 'react-native';
import logger from '../../util/logger';
import css from '../../styles/css';
import ConferenceListView from './ConferenceListView';
import { platformIOS } from '../../util/general';
import { TAB_BAR_HEIGHT } f... | JavaScript | 0 | @@ -286,16 +286,121 @@
neral';%0A
+import %7B%0A%09COLOR_PRIMARY,%0A%09COLOR_MGREY,%0A%09COLOR_LGREY,%0A%09COLOR_WHITE,%0A%7D from '../../styles/ColorConstants';%0A
import %7B
@@ -500,16 +500,17 @@
able';%0A%0A
+%0A
export d
@@ -1444,32 +1444,33 @@
able%0A%09%09%09%09style=%7B
+%5B
styles.button%7D%0A%09
@@ -1458... |
f5f73d87f8018ef6d27f5e11b95800ea3a8fa1d2 | implement relationModelMeta | addon/field-meta.js | addon/field-meta.js |
import Ember from 'ember';
export default Ember.ObjectProxy.extend({
name: null,
modelMeta: null,
content: function() {
var name = this.get('name');
var modelMeta = this.get('modelMeta');
return modelMeta.get('properties.'+name);
}.property('name', 'modelMeta'),
label: f... | JavaScript | 0.000004 | @@ -102,16 +102,426 @@
null,%0A%0A
+ /** if the field type is a relation, then%0A * returns the modelMeta of this relation%0A */%0A relationModelMeta: function() %7B%0A var fieldType = this.get('content.type');%0A var relationResource = this.get('modelMeta.store.db')%5BfieldType%5D%0A ... |
71d6d98122c05bab4f50727b2208590b750d9771 | Add missing requirements to lib/confluence/metric_computer_service | lib/confluence/metric_computer_service.es6.js | lib/confluence/metric_computer_service.es6.js | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
require('../web_apis/release.es6.js');
require('../web_apis/release_interface_relationship.es6.js');
require('../web_apis/web_interface.es6.... | JavaScript | 0.000012 | @@ -201,16 +201,39 @@
/release
+_interface_relationship
.es6.js'
@@ -263,39 +263,16 @@
/release
-_interface_relationship
.es6.js'
@@ -351,32 +351,111 @@
moval.es6.js');%0A
+require('./aggressive_removal.es6.js');%0Arequire('./api_velocity_data.es6.js');%0A
require('./api_v
@@ -487,37 +487,32 @@
('./api_velocity
... |
f382538caa4358927f1ca39e0bb343b81699365f | return dialog on render | lib/scripts/factory.js | lib/scripts/factory.js | var Factory = function (dialogs, options) {
this.dialogs = dialogs;
this.options = options || {};
this.config = options.config || {};
this.templates = options.templates || {};
};
Factory.prototype.createDialog = function (dialog, options) {
var opts = options || {};
opts.dialog = dialog;
var Dialog = t... | JavaScript | 0.000001 | @@ -1195,12 +1195,30 @@
dialog);
+%0A%0A return dialog;
%0A%7D;%0A
|
c2e13e12c6f0e3f99dcfb89697a036ad8d0a34f4 | minify js | typogr.min.js | typogr.min.js | /*!
* typogr.js
* Copyright(c) 2011 Eugene Kalinin
* MIT Licensed
*/(function(a){var b=function(a){return new o(a)};b.version="0.4.0",typeof module!="undefined"&&module.exports?module.exports=b:a.typogr=b;var c=function(a,b){return new RegExp(a,b)},d=b.amp=function(a){var b=/(\s| )(&|&|&\#38;)(\s| ... | JavaScript | 0.998106 | @@ -132,17 +132,17 @@
on=%220.4.
-0
+1
%22,typeof
|
ce2bca76cea79e1793e952a3d6a442f55c9e8b15 | fix error location property | lib/rules/validate-jsdoc/enforce-existence.js | lib/rules/validate-jsdoc/enforce-existence.js | var assert = require('assert');
module.exports = enforceExistence;
module.exports.scopes = ['function'];
module.exports.options = {
enforceExistence: true
};
/**
* @param {Object} options
*/
enforceExistence.configure = function(options) {
// set default policy
var policy = this._enforceExistencePolicy... | JavaScript | 0.000003 | @@ -2585,16 +2585,22 @@
sdoc.loc
+.start
);%0A
|
051af3a73ab25a591d0f63a2a3216e807fd23ad6 | return all error properties to socket | lib/socket/handlers.js | lib/socket/handlers.js | const config = require('../config');
const convertError = require(`../utils/convertError`);
const db = require(`../db`);
const defaultCallback = () => {};
const parseArgs = (options, callback) => {
let cb;
let opts;
if (!(options || callback)) {
cb = defaultCallback;
opts = {};
}
... | JavaScript | 0.000008 | @@ -3916,130 +3916,28 @@
s =
-%7B%0A error: e.error,%0A error_description: e.error_description,%0A status: e.status,%0A %7D
+Object.assign(%7B%7D, e)
;%0A
@@ -3962,19 +3962,17 @@
rors &&
-res
+e
.status
@@ -3993,19 +3993,17 @@
e.error(
-res
+e
);%0A i
|
97ee83d8459801450868303b201069dd16db3a6a | attach dependent scripts to exampleDoc | ngdoc/processors/examples-generate.js | ngdoc/processors/examples-generate.js | var _ = require('lodash');
var log = require('winston');
var path = require('canonical-path');
var trimIndentation = require('dgeni/lib/utils/trim-indentation');
var code = require('dgeni/lib/utils/code');
var templateFolder, commonFiles;
function outputPath(example, fileName) {
return path.join(example.outputFolde... | JavaScript | 0.000001 | @@ -230,18 +230,34 @@
monFiles
+, dependencyPath
;%0A
-
%0A%0Afuncti
@@ -718,16 +718,32 @@
scripts
+ and stylesheets
%0A examp
@@ -839,16 +839,16 @@
%7D; %7D);%0A
-
exampl
@@ -960,16 +960,242 @@
%7D; %7D);%0A%0A
+ // Copy in any dependencies for this example%0A if ( example.deps ) %7B%0A _.forEach(exa... |
c4de47f6ae0e1699ac0c3f1084fab04db5727bd8 | handle undefined | app/views/management/tasks/tasks-id.js | app/views/management/tasks/tasks-id.js | define(['lodash', 'directives/management/register-facets', 'authentication', "directives/formats/views/form-loader", 'utilities/km-workflows', 'utilities/km-storage', 'utilities/km-utilities'], function(_) { 'use strict';
return [ "$scope", "$timeout", "$http", "$route", "IStorage", "IWorkflows", "authentication", fun... | JavaScript | 0.001417 | @@ -1607,16 +1607,17 @@
%09return
+(
workflow
@@ -1618,16 +1618,21 @@
rkflowID
+%7C%7C'')
.replace
|
3d3941e31837bb8182825f4b2c57e3ccc7648c4f | Tidy up | ui/actions.js | ui/actions.js | import _ from 'lodash';
import { pushPath } from 'redux-simple-router';
import { Actions, Alert } from './constants';
import * as WebAPI from './api';
function movieLoaded(movie) {
return {
type: Actions.MOVIE_LOADED,
payload: movie
};
}
export function addMessage(status, message) {
return {
t... | JavaScript | 0.000027 | @@ -563,33 +563,32 @@
%7B%0A return
-(
dispatch
) =%3E %7B%0A W
@@ -567,33 +567,32 @@
return dispatch
-)
=%3E %7B%0A WebAPI
@@ -841,33 +841,32 @@
%7B%0A return
-(
dispatch
) =%3E %7B%0A W
@@ -845,33 +845,32 @@
return dispatch
-)
=%3E %7B%0A WebAPI
@@ -1247,33 +1247,32 @@
%7B%0A return... |
25f3aa10038c4d2e7c27666f4a5337f98bcf4f2c | remove unset data and content type | plugins/de.kcct.hi5/resources/hi5-io.js | plugins/de.kcct.hi5/resources/hi5-io.js | define(['jquery'], function($) {
let module = {};
module.ax = function(method, dataType, contentType, url, o) {
const opts = {method, dataType, contentType, url, ...o};
if (opts.data && typeof opts.data == 'object') {
opts.data = JSON.stringify(o.data);
}
if (opts.params) {
opts.url = opts.url + '?' + $... | JavaScript | 0.000001 | @@ -166,16 +166,114 @@
...o%7D;%0A
+%09%09opts.dataType = opts.dataType %7C%7C undefined;%0A%09%09opts.contentType = opts.contentType %7C%7C undefined;%0A
%09%09if (op
|
5424b6727dd651d4def8d67436227e583a394b0b | replace js | charat2/static/js/rp/quirks.js | charat2/static/js/rp/quirks.js | function applyQuirks(text,pattern) {
// Case
switch (pattern['case']) {
case "lower":
text = text.toLowerCase();
break;
case "upper":
text = text.toUpperCase();
break;
case "title":
text = text.toLowerCase().replace(... | JavaScript | 0.999904 | @@ -2297,53 +2297,239 @@
-if (RegExp(regexStrings%5Breg%5D,'g').test($1)) %7B
+var original_text = $1;%0D%0A if (RegExp(regexStrings%5Breg%5D,'g').test($1)) %7B%0D%0A var replaced_text = regex%5BregexStrings%5Breg%5D%5D;%0D%0A replaced_text.replace(... |
b3566fc8e8fa0b79219eed7c342e78e32e847eb3 | add splay when building packages | aws/lambdas/hhvm-build-binary-packages/index.js | aws/lambdas/hhvm-build-binary-packages/index.js | 'use strict';
const AWS = require('aws-sdk');
const promise = require('promise');
const rp = require('request-promise');
function get_distros_uri(event) {
return 'https://raw.githubusercontent.com/hhvm/packaging/'
+ event.packagingBranch + '/CURRENT_TARGETS';
}
function get_userdata_uri(event) {
return 'https... | JavaScript | 0 | @@ -2034,16 +2034,191 @@
k) =%3E %7B%0A
+ (new promise(%0A // splay over 10 seconds for when doing multiple release builds at the same time%0A resolve =%3E setTimeout(resolve, Math.random() * 10000)%0A ))%0A .then(%0A
promis
@@ -2225,16 +2225,18 @@
e.all(%5B%0A
+
get_
@@ -2251,24 +2251,26 @@
eve... |
a2d56e8876b42b05688fedd93b1853720731fcf3 | Automatically expand the current panel group on dashboard expansion | horizon/static/horizon/js/horizon.accordion_nav.js | horizon/static/horizon/js/horizon.accordion_nav.js | horizon.addInitFunction(function() {
var allPanelGroupBodies = $('.nav_accordion > dd > div > ul');
allPanelGroupBodies.each(function(index, value) {
var activePanels = $(this).find('li > a.active');
if(activePanels.length === 0) {
$(this).slideUp(0);
}
});
// mark the active panel group
v... | JavaScript | 0.999937 | @@ -1844,24 +1844,75 @@
(%22active%22);%0A
+ activeDashPanel.closest('ul').slideDown();%0A
allP
|
c0fb0ef6ec706df71a9cc9cfc9993b5cf73d8585 | fix typo | lib/templates/index.js | lib/templates/index.js | var fs = require('fs')
var path = require('path')
var jade = require('jade')
var t = require('../translations').t
var log = require('debug')('democracyos:notifier:templates')
function _jade(opts, vars, callback) {
if ('string' === typeof opts) return _jade({ name: opts }, vars, callback)
if (!opts.name) return ca... | JavaScript | 0.999991 | @@ -439,10 +439,9 @@
ang
-%7C%7C
+:
'en
|
b3890e8a4a7d475c439c9d39685dfa0fd6a10f1a | Remove global variable leak | util/event.js | util/event.js | steal('can/util/can.js',function(can){
// event.js
// ---------
// _Basic event wrapper._
can.addEvent = function( event, fn ) {
var allEvents = this.__bindEvents || (this.__bindEvents = {}),
eventList = allEvents[event] || (allEvents[event] = []);
eventList.push({
handler: fn,
name: event
});
return ... | JavaScript | 0.000002 | @@ -2776,16 +2776,22 @@
rgs%7C%7C%5B%5D)
+,%0A%09%09ev
;%0A%09%0A%09for
@@ -2895,17 +2895,16 @@
rgs);%0A%09%7D
-;
%0A%7D%0A%0Aretu
|
8e9ea1b8c13d04d30bb7ac3c09c06f79030e08cb | Remove checksum warning until we can provide a way of fixing (#757) | packages/@sanity/core/src/actions/config/reinitializePluginConfigs.js | packages/@sanity/core/src/actions/config/reinitializePluginConfigs.js | import path from 'path'
import pathExists from 'path-exists'
import fse from 'fs-extra'
import resolveTree from '@sanity/resolver'
import normalizePluginName from '../../util/normalizePluginName'
import generateConfigChecksum from '../../util/generateConfigChecksum'
import {getChecksums, setChecksums, localConfigExists... | JavaScript | 0 | @@ -1840,24 +1840,251 @@
lugin) %7B%0A
+ return plugin%0A%0A // Disabled for now, until we can provide a way to fix.%0A // NOTE: A similar checksum diff check is also done when running the install command%0A // See https://github.com/sanity-io/sanity/pull/298%0A //
if (flags.q
@@ -2090,24 +2090,27 @@
... |
dd70ab33889a64630a271c92ded7f29ef9e773dc | Update Recyclable_Base.js | CNN/util/Recyclable/Recyclable_Base.js | CNN/util/Recyclable/Recyclable_Base.js | export { Base, Root };
import * as Pool from "../Pool.js";
/**
* The base class representing a object could be recycled (i.e. disposed without release its main object memory for re-using in the
* future).
*
* Every sub-class of this Recyclable.Base MUST define a static propery named Pool which is usually an insta... | JavaScript | 0.000001 | @@ -1553,14 +1553,16 @@
nds Base
+()
%7B%0A%7D%0A%0A
|
9c80b9c99a02af94d4dbec76a08e64e55d9a8fc3 | fix YERROR in notebook index.js | applications/desktop/src/main/index.js | applications/desktop/src/main/index.js | import { Menu, dialog, app, ipcMain as ipc, BrowserWindow } from "electron";
import { resolve, join } from "path";
import { existsSync } from "fs";
import { Subscriber } from "rxjs/Subscriber";
import { fromEvent } from "rxjs/observable/fromEvent";
import { forkJoin } from "rxjs/observable/forkJoin";
import { zip } fr... | JavaScript | 0 | @@ -1217,16 +1217,17 @@
ersion((
+(
) =%3E req
@@ -1263,16 +1263,19 @@
version)
+())
%0A .usag
|
6f50c0f92f91ca8061b14dc9f212da18d500f783 | Update core.client.routes.js | public/modules/core/config/core.client.routes.js | public/modules/core/config/core.client.routes.js | 'use strict';
// Setting up route
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
// Redirect to home view when route not found
$urlRouterProvider.otherwise('/');
// Home state routing
$stateProvider.
state('home', {
url: '/',
temp... | JavaScript | 0.000002 | @@ -650,16 +650,27 @@
%09state('
+item.forms.
wizard',
@@ -686,16 +686,17 @@
: '/item
+-
form',%0A%09
|
ac887125a4d220faf7e6d03f8a1fddb6f001fdc0 | debug flag for internal use | lib/AttributeValue.js | lib/AttributeValue.js | var isArray = require('util').isArray;
var errs = require('./errs');
function test(arr, fn) {
for (var i = 0; i < arr.length; i++) {
if (!fn(arr[i]))
return false;
}
return true;
}
function isnumber(el) {
return typeof el === 'number' || el instanceof Number;
}
function isstring(el) {
return type... | JavaScript | 0 | @@ -63,16 +63,36 @@
rrs');%0A%0A
+var DEBUG = false;%0A%0A
function
@@ -3626,16 +3626,552 @@
ult;%0A%7D%0A%0A
+function printData(input, result, title) %7B%0A if (DEBUG) %7B%0A console.log(title + ' input:');%0A console.log(JSON.stringify(input, undefined, 2));%0A console.log(title + ' result:');%0A con... |
9808a6114f1b5d7580e52c6eebd35a75a9f5be5f | fix seek and update from master | modules/KalturaSupport/components/video360.js | modules/KalturaSupport/components/video360.js | (function (mw, $, THREE) {
"use strict";
mw.PluginManager.add('video360', mw.KBasePlugin.extend({
defaultConfig: {
manualControl:false
},
setup: function() {
mw.setConfig("disableOnScreenClick",true);
var renderer;
var _this = this;
this.bind("playing play pause seek" , function(){
$(_this.... | JavaScript | 0 | @@ -285,16 +285,23 @@
use seek
+ seeked
%22 , func
@@ -915,32 +915,97 @@
%09%09%09var texture;%0A
+%09%09%09%09$(_this.getPlayer().getPlayerElement() ).css('z-index','-1');
%0A%09%09%09%09// setting
|
00375133fc147554e5de7f7e4b05e089de667c1a | Use direct link to editor scene in tutorials | lib/tutorials/index.js | lib/tutorials/index.js | var handlebars = require("handlebars");
var request = require("request");
if (!String.prototype.startsWith) {
String.prototype.startsWith = function(searchString, position){
position = position || 0;
return this.substr(position, searchString.length) === searchString;
};
}
if (!String.prototype.endsW... | JavaScript | 0 | @@ -1892,23 +1892,21 @@
/editor/
-project
+scene
/'+sampl
@@ -1913,24 +1913,26 @@
es%5Bi%5D.pr
-oject_id
+imary_pack
;%0A
|
d3c8a51c5e7d1b4324b0f43076f5d9c66aeac395 | Add uncaughtException handler | src/server/node/server.js | src/server/node/server.js | /*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribu... | JavaScript | 0.000001 | @@ -2613,16 +2613,135 @@
%0A %7D);%0A%0A
+ process.on('uncaughtException', function (error) %7B%0A console.log('UNCAUGHT EXCEPTION', error, error.stack);%0A %7D);%0A%0A
_serve
|
dfe4129726474be7d61520a4e17e277d8c96b188 | move menu content to the left | bitrepository-webclient/src/main/webapp/menu.js | bitrepository-webclient/src/main/webapp/menu.js |
var pages = [{page : "alarm-service.jsp", title : "Alarm"},
{page : "integrity-service.jsp", title : "Integrity"},
{page : "audit-trail-service.jsp", title : "Audit trail"},
{page : "status-service.jsp", title : "Status"}];
function mak... | JavaScript | 0 | @@ -545,16 +545,22 @@
ontainer
+-fluid
%5C%22%3E%22;%0A
|
cbb90a3520d469bcff1622b9a2ae1817903a5001 | remove logs | plugins/typescript.js | plugins/typescript.js | "use strict";
const ts = require('typescript');
module.exports = function () {
const host = {
getScriptVersion: () => +new Date,
getCompilationSettings: () => ({}),
getCurrentDirectory: () => '',
getScriptSnapshot: (path) => {
console.log('111getScriptSnapshot', cache[... | JavaScript | 0.000001 | @@ -263,76 +263,8 @@
%3E %7B%0A
- console.log('111getScriptSnapshot', cache%5B'$' + path%5D);%0A
@@ -1676,59 +1676,8 @@
h);%0A
- console.log(%22BAR ITEMS%22, navigationItems);%0A
%0A%0A
|
d54b3df3d54bd7bcee22d5d45a296745fcf68b5d | Update exercise.js | derekmma/exercise.js | derekmma/exercise.js | var input = require('./digits.js');
var exercise = {};
exercise.one = function(){
//-------------------
//---- Your Code ----
//-------------------
return 'Error: 1st function not implemented 1028';
};
exercise.two = function(data){
//-------------------
//---- Your Code ----
//--------... | JavaScript | 0.000001 | @@ -211,10 +211,10 @@
d 10
-28
+30
';%0A%7D
|
67bf62177b0cff325db21f7647755e11b8e8eb47 | comment out move in the chrome app | chrome-app/src/js/maze/game.js | chrome-app/src/js/maze/game.js | var Packed24 = Packed24 || {};
Packed24.Game = function(){};
var map;
var layer;
var cursors;
var player;
var puzzle_pieces = [
'puzzle-piece-0',
'puzzle-piece-1',
'puzzle-piece-2',
'puzzle-piece-3',
'puzzle-piece-4',
'puzzle-piece-5',
'puzzle-piece-6',
'puzzle-piece-7',
'puzzle-pi... | JavaScript | 0 | @@ -3801,24 +3801,27 @@
;%0A %7D%0A%0A
+ //
gs.moved(Ma
|
3ef4315612b29370ccc55abeacb1af95e96ad5bf | Fix PhantomJS test (remove 'class' from Array) | detects/phantomjs.js | detects/phantomjs.js | /*!
* PhantomJS
*/
conditionizr.add('phantomjs', ['class'], function () {
return /\sPhantomJS\/[[0-9]+\]/.test(navigator.userAgent);
});
| JavaScript | 0 | @@ -49,15 +49,8 @@
', %5B
-'class'
%5D, f
|
cc85ab9c984cc974300f05a064722088b03240a8 | disable scroll bounc in ios | app/bootstrap/app.run.js | app/bootstrap/app.run.js | LessonsApp.run(function () {
$document.on('touchmove', function (event) {
event.preventDefault()
})
}); | JavaScript | 0 | @@ -18,16 +18,25 @@
nction (
+$document
) %7B%0A%09$do
|
b6103ff5e15e9daab6ca3785f680c32de928f740 | Add Function to Format Times For Display | chrome-extension/background.js | chrome-extension/background.js | var user1, user2, currentSession, startTime, endTime, currentInterval,pairingDurationMs, timer, popup, currentView, totalSession;
var sessions = [];
var totalTimeWorking = 0;
function PairingSession(user1, user2){
this.drive = user1;
this.navigate = user2;
this.timeWorked = 0;
this.timePaused = 0;
}
function ... | JavaScript | 0 | @@ -2309,8 +2309,451 @@
%7D);%0A%7D;%0A
+%0Afunction formatCurrentInterval()%7B%0A var timeLeft = currentInterval;%0A var hours = Math.floor(timeLeft / 3600000);%0A var minutes = Math.floor((timeLeft %25 3600000) / 60000);%0A var seconds = Math.floor(((timeLeft %25 360000) %25 60000) / 1000);%0A if(hours %3E 0)%... |
2241397546db1bbe4e4d259220835d7c9ca76199 | add missing punctuation | node_modules/oae-config/lib/restmodel.js | node_modules/oae-config/lib/restmodel.js | /*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... | JavaScript | 1 | @@ -2076,16 +2076,17 @@
balAdmin
+,
name,sup
|
d6a11f69228568aece7026038e2051d88674b738 | fix countdown | web/js/functions.js | web/js/functions.js | $(document).ready(function() {
var lock = false;
var count = 1200;
var min = 0;
var secs = 0;
var progress = 0;
var w = $(window).width();
// a mettre a partir du slide 2
// $("#slide2").hide();
// $("#slide3").hide();
// $("#slide4").hide();
$("#start").click(function()... | JavaScript | 0.009717 | @@ -335,17 +335,19 @@
counter
-=
+ =
setInter
@@ -1178,24 +1178,23 @@
+if (
count
+%3C
=
-count-1;
+0)
%0A
@@ -1202,77 +1202,54 @@
-min = getMinutes(count);%0A secs = getSecondes
+%7B%0A clearInterval
(count
+er
);%0A
-%0A
if (
@@ -1240,39 +1240,36 @@
r);%0A ... |
374e001774bfd13fb0725b9ebf996fed03e99e96 | Remove trailing spaces | remoteappmanager/static/js/home/configurables.js | remoteappmanager/static/js/home/configurables.js | define([
"jquery",
"handlebars",
"utils"
], function($, hb, utils) {
"use strict";
var view_template = hb.compile(
'<div class="form-group">' +
'<label for="resolution-model-{{index}}">Resolution</label>' +
'<select class="form-control" id="resolution-model-{{ index }}">' +
... | JavaScript | 0.981252 | @@ -695,24 +695,17 @@
x768%22%5D;%0A
-
%0A
+
@@ -939,29 +939,17 @@
%7D));%0A
-
%0A
+
@@ -1152,21 +1152,9 @@
%7D);%0A
-
%0A
+
@@ -1190,29 +1190,25 @@
%7D;%0A %7D;%0A
-
%0A
+
Resoluti
@@ -1245,20 +1245,17 @@
ution%22;%0A
-
%0A
+
R... |
11b0db3786abd214895429016d229a514527ec9e | remove extra logging | browser/test/integration/pluginDocs.js | browser/test/integration/pluginDocs.js | var assert = require('assert');
const fs = require('fs')
const vm = require('vm')
const createVizorSandbox = require('../../../lib/sandbox')
const pluginsPath = 'browser/plugins'
var sandbox = createVizorSandbox()
var context = new vm.createContext(sandbox)
var engineSource = fs.readFileSync('browser/dist/engine.js... | JavaScript | 0 | @@ -482,37 +482,8 @@
n'%0A%0A
-console.error(engineSource)%0A%0A
var
|
f636d42cffd77ec6f9c91a02a4a19ecf33ac3afb | add dark class to mapbox logo container so logo is white, refs #44 | app/components/Header.js | app/components/Header.js | import React from 'react';
import Modal from 'react-modal';
var modalStyle = {
overlay: {
backgroundColor:'rgba(0,0,0,0.5)',
position: 'fixed',
top: 0,
left: 0,
right: 0,
bottom: 0
},
content: {
background: '#fff',
position: 'absolute',
top: '0',
right: '0',
left: '0',... | JavaScript | 0 | @@ -1117,32 +1117,37 @@
%22limiter contain
+ dark
%22%3E%0A
|
029ea1c42ed734f36daa3ff2b2367ee803d09ee3 | Improve cellHelpers.qualifiedId() | src/shared/cellHelpers.js | src/shared/cellHelpers.js | import { isNumber } from 'substance'
import { type } from '../value'
import { parseSymbol } from './expressionHelpers'
export function getCellState(cell) {
// FIXME: we should make sure that cellState is
// initialized as early as possible
return cell.state
}
export function isExpression(source) {
return /^\... | JavaScript | 0.000001 | @@ -10,16 +10,26 @@
isNumber
+, isString
%7D from
@@ -3954,62 +3954,156 @@
%7B%0A
-if (doc) return %60$%7Bcell.getDocument().id%7D_
+let cellId = isString(cell) ? cell : cell.id%0A if (doc) %7B%0A let docId = isString(doc) ? doc : doc.id%0A return %60$%7BdocId%7D!
$%7Bcell
-.i
+I
d%7D%60%0A
+ %7D else ... |
6540961601c2f27f649117516c6e3c03f976d8e3 | Fix semver sorting | lib/CoreDataSchema.js | lib/CoreDataSchema.js | const fs = require("fs");
const path = require("path");
const semver = require("semver");
const ManagedObject = require("./ManagedObject");
class CoreDataSchema {
constructor(coredata) {
this.coredata = coredata;
}
async load(schemaPath) {
const database = this.coredata;
let files = [];
let fol... | JavaScript | 0.000001 | @@ -16,12 +16,12 @@
ire(
-%22fs%22
+'fs'
);%0Ac
@@ -44,14 +44,14 @@
ire(
-%22
+'
path
-%22
+'
);%0Ac
@@ -76,16 +76,16 @@
ire(
-%22
+'
semver
-%22
+'
);%0A%0A
@@ -114,17 +114,17 @@
require(
-%22
+'
./Manage
@@ -130,17 +130,17 @@
edObject
-%22
+'
);%0A%0Aclas
@@ -697,16 +697,41 @@
%0A )
+%0A ? 1%... |
0a6f36e90ff2a4cb9f80efcfd43352e7419bfee1 | check that sequence is sequential, and timestamp is increasing | validation.js | validation.js | 'use strict';
var isRef = require('ssb-ref')
var isHash = isRef.isHash
var isFeedId = isRef.isFeedId
var contpara = require('cont').para
var explain = require('explain-error')
// make a validation stream?
// read the latest record in the database
// check it against the incoming data,
// and then read through
functio... | JavaScript | 0.021757 | @@ -1733,27 +1733,26 @@
+ 1%0A
- &&
+%7C%7C
msg.timesta
|
38a16605f1ac45d4823617c979fc070520dc1844 | remove container div | app/components/Navbar.js | app/components/Navbar.js | import React from 'react';
import {Link} from 'react-router';
import NavbarStore from '../stores/NavbarStore';
import NavbarActions from '../actions/NavbarActions';
class Navbar extends React.Component {
constructor(props) {
super(props);
this.state = NavbarStore.getState();
this.onChange = this.onChange... | JavaScript | 0.000002 | @@ -792,46 +792,8 @@
d%22%3E%0A
- %3Cdiv className=%22container%22%3E%0A
@@ -876,16 +876,25 @@
col-md-2
+ xmargbot
%22%3E%0A
@@ -2319,31 +2319,16 @@
%3C/div%3E%0A
- %3C/div%3E%0A
%3C/
|
f0fb551f0e7e6d67afb8f9df3148eb0c43223112 | update SprkInputElement to use additional setAriaDescribedBy function | react/src/base/inputs/components/SprkInputElement/SprkInputElement.js | react/src/base/inputs/components/SprkInputElement/SprkInputElement.js | import React, { Component } from 'react';
import classNames from 'classnames';
import propTypes from 'prop-types';
class SprkInputElement extends Component {
constructor(props) {
const { value } = props;
const { defaultValue } = props;
super(props);
if (value || defaultValue) {
this.state = {
... | JavaScript | 0 | @@ -505,102 +505,113 @@
;%0A
-%7D%0A%0A componentDidMount() %7B%0A this.setState(%7B%0A calculatedAriaDescribedBy: this.calculate
+ this.setAriaDescribedBy = this.setAriaDescribedBy.bind(this);%0A %7D%0A%0A componentDidMount() %7B%0A this.set
Aria
@@ -627,16 +627,8 @@
By()
-,%0A %7D)
;%0A
@@ -... |
f90b25cece21c618fbbfee0783a6f5f216cf8e8f | fix bug for drill through on cubes that have blanks etc in name (encoding issue) | js/saiku/views/DrillthroughModal.js | js/saiku/views/DrillthroughModal.js | /**
* Dialog for member selections
*/
var DrillthroughModal = Modal.extend({
type: "drillthrough",
buttons: [
{ text: "Ok", method: "ok" },
{ text: "Cancel", method: "close" }
],
events: {
'click .collapsed': 'select',
'click .expand': 'select',
'click .fo... | JavaScript | 0 | @@ -1485,24 +1485,43 @@
+ %22/%22 +
+encodeURIComponent(
this.query.g
@@ -1530,16 +1530,17 @@
('cube')
+)
;%0A%0A
|
5f8877feed276531a664d1f41dcc1ca2022ca411 | change safari download to `application/octet-stream' | src/snapshot/filesaver.js | src/snapshot/filesaver.js | /**
* Copyright 2012-2016, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* substantial portions of this code from FileSaver.js
* https://github.com/eligrey/FileSaver.js
* License: https://github.co... | JavaScript | 0 | @@ -1238,22 +1238,31 @@
ta:a
-ttachment/file
+pplication/octet-stream
' +
|
43f0129554c57e5259465d04db4fc7f26eec1140 | Update active_cname.js (#21) | main/active_cname.js | main/active_cname.js | /*
***** 已使用的子域名
* ***********************
*
* 目前以下子域名已经启用
* 提交一个 PR, 添加你想使用的的域名
*
*
**** 说明
* ***********
*
* KEY: 你提交的域名(如:`foo` 表示自定义子域名为 `foo.js.cool`)
*
* VALUE: 以 Github 为例,`foo.github.io` 表示用户/组织的主页,
* 或 `foo.github.io/bar` 表示项目主页,也可以绑定 Gitee、 CODING.NET 等其它开源托管服务商。
*
*... | JavaScript | 0 | @@ -1325,16 +1325,51 @@
ee.io',%0A
+ 'mengd': 'cname.vercel-dns.com',%0A
// %E8%AF%B7%E5%9C%A8%E6%AD%A4
|
060e8ce6c394c62c365618a140241522cc0b798b | Remove commented out sections | oabutton/static/public/js/bookmarklet.js | oabutton/static/public/js/bookmarklet.js | (function() {
var detectDOI = function() {
var nodes, node, childNode, matches, i, j;
// match DOI: test on http://t.co/eIJciunBRJ
var doi_re = /10\.\d{4,}(?:\.\d+)*\/\S+/;
// look for meta[name=citation_doi][content]
nodes = document.getElementsByTagName("meta");
for (i = 0; i < nodes.lengt... | JavaScript | 0 | @@ -3754,183 +3754,8 @@
%22;%0A%0A
-%09%09//closeButton = document.getElementById(%22closeButton%22);%0A%09%09//closeButton.style.position = %22relative%22;%0A%09%09//closeButton.style.top = %220%22;%0A%09%09//closeButton.style.right = %22330px%22;%0A
%09%7D%0A%7D
|
fda15702bc1c769e9d96e71d98c8d3e05026bd3b | Fix error | erpnext/hr/doctype/employee_advance/employee_advance.js | erpnext/hr/doctype/employee_advance/employee_advance.js | // Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on('Employee Advance', {
setup: function(frm) {
frm.add_fetch("employee", "company", "company");
frm.add_fetch("company", "default_employee_advance_account", "advance_account");
... | JavaScript | 0.000004 | @@ -2314,32 +2314,59 @@
unction (frm) %7B%0A
+%09%09if (frm.doc.employee) %7B%0A%09
%09%09return frappe.
@@ -2364,32 +2364,33 @@
n frappe.call(%7B%0A
+%09
%09%09%09method: %22erpn
@@ -2462,32 +2462,33 @@
amount%22,%0A%09%09%09
+%09
args: %7B%0A
%09%09%09%09%22employe
@@ -2467,32 +2467,33 @@
t%22,%0A%09%09%09%09... |
61248d29e73f41c606efca4235ee636218a75e99 | replace resource with offering | src/wirecloud/fiware/static/js/wirecloud/FiWare/FiWareCatalogue.js | src/wirecloud/fiware/static/js/wirecloud/FiWare/FiWareCatalogue.js | /*
* (C) Copyright 2012 Universidad Politécnica de Madrid
*
* This file is part of Wirecloud Platform.
*
* Wirecloud Platform 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, e... | JavaScript | 0 | @@ -3235,24 +3235,24 @@
rchased(
-resource
+offering
) %7B%0A
@@ -3262,24 +3262,24 @@
return
-resource
+offering
.state =
@@ -3296,24 +3296,24 @@
sed' %7C%7C
-resource
+offering
.state =
|
0158bf348b570453fc103d605d528dead3215428 | Remove jQuery from safari windows print | source/assets/javascripts/core.js | source/assets/javascripts/core.js | $(document).ready(function() {
$('.print-link a').attr('target', '_blank');
// header search toggle
$('.js-header-toggle').on('click', function(e) {
e.preventDefault();
$($(e.target).attr('href')).toggleClass('js-visible');
$(this).toggleClass('js-hidden');
});
var $searchFocus = $('.js-search-f... | JavaScript | 0.000001 | @@ -684,27 +684,8 @@
ari%0A
- (function () %7B%0A
va
@@ -689,26 +689,25 @@
var windows
-_s
+S
afari = (win
@@ -837,26 +837,16 @@
- $new_
style
-s
;%0A%0A
-
if
@@ -854,18 +854,17 @@
(windows
-_s
+S
afari) %7B
@@ -864,18 +864,16 @@
fari) %7B%0A
-
// s
@@ -928,39 +928,80 @@
- $new_... |
1883d07020a4415d16ae06cb850b64155297a06c | change test URL to enable debagging by real devices | app/controllers/index.js | app/controllers/index.js | function login(){
var url = 'http://127.0.0.1/wp/texchange/wp-login.php';
var loginClient = Ti.Network.createHTTPClient({
onload: function(e){
if(this.responseText.match('login_error')){
alert('IDとパスワードの組合せが不正です。');
}else{
var mainWin = Alloy.createController('main',{
loginId: $.userId.value
... | JavaScript | 0 | @@ -34,43 +34,36 @@
p://
-127.0.0.1/wp/texchange/wp-login.php
+beak.sakura.ne.jp/freecycle/
';%0A%09
|
a6ed47d8d20403fe5fb2f43134fa756e87d1186a | Change user dashboard title | app/controllers/users.js | app/controllers/users.js | var mongoose = require('mongoose')
, User = mongoose.model('User')
//Set up the log in
var login = function (req, res) {
if (req.session.returnTo) {
res.redirect(req.session.returnTo)
delete req.session.returnTo
return
}
res.redirect('/')
}
exports.authCallback = login
exports.sessio... | JavaScript | 0.000015 | @@ -697,24 +697,60 @@
title: user
+.username + %22's Dashboard - Bridges%22
,%0A user
|
ad55e14fbb2f4631009cb6e4c9ff53a973310065 | update TableExamples | examples/containers/app/modules/layout/TableExamples.js | examples/containers/app/modules/layout/TableExamples.js | import React, {Component, Fragment} from 'react';
import round from 'lodash/round';
import Table from 'src/Table';
import Switcher from 'src/Switcher';
import IconButton from 'src/IconButton';
import Widget from 'src/Widget';
import WidgetHeader from 'src/WidgetHeader';
import RaisedButton from 'src/RaisedButton';
im... | JavaScript | 0 | @@ -2207,34 +2207,32 @@
head
-er
Renderer: 'Statu
@@ -5527,18 +5527,16 @@
head
-er
Renderer
|
259c14e2432ddf3756fa758f776aaa75502d7ba5 | Make reporting tool use standard input. | utils/report.js | utils/report.js | var commandLineArguments;
// SpiderMonkey
if (typeof scriptArgs === "undefined") {
commandLineArguments = arguments;
} else {
commandLineArguments = scriptArgs;
}
var fileCount = 0;
var passCount = 0;
var finishedCount = 0;
var zeroHashCount = 0;
var histogramNames = ["Not Implemented", "somewhatImplemented", "Un... | JavaScript | 0 | @@ -1,172 +1,4 @@
-var commandLineArguments;%0A// SpiderMonkey%0Aif (typeof scriptArgs === %22undefined%22) %7B%0A commandLineArguments = arguments;%0A%7D else %7B%0A commandLineArguments = scriptArgs;%0A%7D%0A%0A
var
@@ -276,163 +276,96 @@
%7D;%0A%0A
-commandLineArguments.forEach(function (fil
+while (tru
e) %7B... |
9e6f2b62f907f4da6966c9c848fbb23b250c7e22 | Use Infrequently Accessed storage class | backup/src/s3.js | backup/src/s3.js | 'use strict'
const aws = require('aws-sdk')
const fs = require('fs')
const S3 = function(options) {
this.s3 = new aws.S3(options)
}
S3.prototype.uploadArchive = function(bucket, path, description, hints) {
const stream = fs.createReadStream(path)
const params = {
'Bucket': bucket,
'Body'... | JavaScript | 0 | @@ -351,16 +351,55 @@
iption,%0A
+ 'StorageClass': 'STANDARD_IA',%0A
|
c4c3efcecd7d96862d8e0f1a3d86654966803118 | Update theme | app/config/index.js | app/config/index.js | angular
.module('DynamoGUI')
.config(config);
config.$inject = ['$mdThemingProvider'];
function config($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('blue', {
'default': '400', // by default use shade 400 from the pink palette for primary intentions
... | JavaScript | 0 | @@ -149,16 +149,25 @@
Provider
+%0A
.theme('
@@ -205,615 +205,45 @@
te('
-blue', %7B%0A 'default': '400', // by default use shade 400 from the pink palette for primary intentions%0A 'hue-1': '100', // use shade 100 for the %3Ccode%3Emd-hue-1%3C/code%3E class%0A 'hue-2': '600'... |
81ad42b3fcb82e8e1064c41c6efabbda668d14d1 | Disable InsertInlineNodeCommand in certain scenarios. | packages/inline-node/InsertInlineNodeCommand.js | packages/inline-node/InsertInlineNodeCommand.js | import Command from '../../ui/Command'
/**
Reusable command implementation for inserting inline nodes.
@class InsertInlineNodeCommand
@example
Define a custom command.
```
class AddXRefCommand extends InsertInlineNodeCommand {
createNodeData() {
return {
attributes: {'ref-type': 'bibr... | JavaScript | 0 | @@ -1014,68 +1014,241 @@
let
-sel = params.selection%0A let newState = %7B%0A disabled:
+newState = %7B%0A disabled: this.isDisabled(params),%0A active: false%0A %7D%0A return newState%0A %7D%0A%0A isDisabled(params) %7B%0A let sel = params.selection%0A let selectionState = params.edi... |
c692d88c11a8c5557c65632d9e59d32666fab070 | add line endings to fake console in ff | mini/pilot/console.js | mini/pilot/console.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/
*
... | JavaScript | 0 | @@ -2442,16 +2442,23 @@
', ' %5D)
+ + '%5Cn'
);%0A
|
8b62f58b690fcd2373cfe5e9ef3ebdc0c2f03985 | Fix optional options | plugins/c9.ide.dialog.common/alert_internal.js | plugins/c9.ide.dialog.common/alert_internal.js | define(function(require, module, exports) {
main.consumes = ["Dialog", "util", "dialog.alert", "metrics"];
main.provides = ["dialog.alert_internal"];
return main;
function main(options, imports, register) {
var Dialog = imports.Dialog;
var util = imports.util;
var metrics = ... | JavaScript | 0.000338 | @@ -1046,24 +1046,74 @@
options) %7B%0A
+ options = options %7C%7C %7B%7D;%0A %0A
@@ -1143,24 +1143,24 @@
og.error%22);%0A
-
@@ -1499,27 +1499,16 @@
eading =
- options &&
options
@@ -1579,27 +1579,16 @@
n.body =
- options &&
options
@@ -1911,16 +1911,16 @@
pda... |
0fff202f5c64f47a78bf7faa834a53f5adc59b7a | Remove junk code and comments. | libs/runway-browser.js | libs/runway-browser.js |
var runway = require('./runway.js')
module.exports = runway
document.onclick = function(event) {
event = event || window.event // IE specials
var target = event.target || event.srcElement // IE specials
if (target.tagName === 'A') {
event.preventDefault()
processLink.call(target)
}
}
function proc... | JavaScript | 0 | @@ -646,61 +646,8 @@
l)%7B%0A
- var title = Math.random().toString().split('.')%5B1%5D%0A
if
@@ -697,21 +697,8 @@
:url
-, title:title
%7D, n
@@ -742,91 +742,8 @@
%0A%7D%0A%0A
-window.addEventListener('popstate',function(event)%7B%0A doRoute(event.state.url)%0A%7D)%0A%0A
wind
@@ -774,21 +774,16 @@
(event)%7B
... |
13773f8c87885bb4c60c0fca6f5dd8bd21351eaa | Remove useless property. | app/entity/proxy.js | app/entity/proxy.js | 'use strict';
module.exports = (function () {
var _ = require('../lib/helper')._,
Q = require('q'),
path = require('path'),
spawn = require('child_process').spawn,
// running = require('is-running'),
binPath = path.join(process.env.PW... | JavaScript | 0 | @@ -600,27 +600,8 @@
t =%0A
- this._status =%0A
|
7332cf5135f96132eab846dca4438545ffd5dbdc | Fix tests for restricted labelling | spec/shared/common/views/spec.module.js | spec/shared/common/views/spec.module.js | define([
'common/views/module',
'extensions/collections/collection',
'extensions/models/model',
'extensions/views/view'
],
function (ModuleView, Collection, Model, View) {
describe("ModuleView", function () {
var moduleView, model;
var getContent = function () {
return moduleView.$el[0].outerH... | JavaScript | 0.000042 | @@ -3208,16 +3208,35 @@
stribute
+ outside government
.%3C/p%3E%3C/d
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.