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 |
|---|---|---|---|---|---|---|---|
0f80b1058d233f11b95fef567d1b37dd88c94f09 | Resolve the relative path to lib files last | tools/node.js | tools/node.js | var path = require("path");
var fs = require("fs");
var vm = require("vm");
var sys = require("util");
var UglifyJS = vm.createContext({
sys : sys,
console : console,
process : process,
Buffer : Buffer,
MOZ_SourceMap : require("source-map")
});
function load_global(fil... | JavaScript | 0 | @@ -1001,16 +1001,32 @@
return
+fs.realpathSync(
path.joi
@@ -1040,32 +1040,16 @@
dirname(
-fs.realpathSync(
__filena
@@ -1051,24 +1051,24 @@
ilename)
-)
, file)
+)
;%0A%7D);%0A%0AF
|
e1ed438500b04d1ec78346e09c3d40fb95187a1d | Update for jshint fixes | website/static/js/notificationsTreebeard.js | website/static/js/notificationsTreebeard.js | 'use strict';
var $ = require('jquery');
var m = require('mithril');
var Treebeard = require('treebeard');
var $osf = require('js/osfHelpers');
var projectSettingsTreebeardBase = require('js/projectSettingsTreebeardBase');
function expandOnLoad() {
var tb = this; // jshint ignore: line
for (var i = 0; i < tb... | JavaScript | 0 | @@ -4213,17 +4213,17 @@
ssage =
-%22
+'
These ar
@@ -4357,17 +4357,18 @@
rojects.
-%22
+';
%0A
|
950cdfc9483f5bc36c560bafd49061d60f1316f4 | remove former users route declaration | imports/api/routes/projectRoutes.js | imports/api/routes/projectRoutes.js | import Helpers from '/imports/api/routes/Helpers.js';
import RouteManager from '/imports/api/managers/RouteManager.js';
RouteManager.registerTranslatedPage('dashboard', {
details: 'dashboard'
});
RouteManager.registerTranslatedPage('project', {
search: 'projects'
});
RouteManager.registerTranslatedPage('user',... | JavaScript | 0 | @@ -3530,317 +3530,8 @@
);%0A%0A
-FlowRouter.route('/:language/:projectId/users', %7B%0A name: 'users',%0A triggersEnter: %5B Helpers.checkLanguage %5D,%0A action: () =%3E %7B%0A Helpers.doIfLoggedIn(() =%3E %7B%0A Session.set('parent', 'project');%0A BlazeLayout.render('mainLayou... |
38808487034aa29e039b93b77b6e14b736e57743 | Initialize graph with container to draw itself into, versus the graph element itself | src/qgr-graph-barchart.js | src/qgr-graph-barchart.js | define( [
'jquery',
'underscore',
'backbone',
'd3',
],
function ($, _, Backbone, d3) {
var BarChart = Backbone.View.extend({
initialize: function(options) {
var t = this;
t.config = t.options.graph_config;
t.raw_data = t.options.raw_data;
// Transform raw data to format need... | JavaScript | 0 | @@ -235,16 +235,55 @@
config;%0A
+ t.container = t.options.container;%0A
t.ra
@@ -480,21 +480,30 @@
width =
-t.$el
+$(t.container)
.width()
@@ -523,13 +523,22 @@
t =
-t.$el
+$(t.container)
.hei
@@ -713,18 +713,25 @@
elect(t.
-el
+container
).append
@@ -824,24 +824,72 @@
3 + 'px');%0A%0A
+ t.setElem... |
1125883add6f18fb96a12c71dbc9946d63da7db2 | Remove not used prop | src/react-slidy-slider.js | src/react-slidy-slider.js | /* eslint-disable react/prop-types */
import React, {useEffect, useRef, useState} from 'react'
import slidy from './slidy'
function noop() {}
function convertToArrayFrom(children) {
return Array.isArray(children) ? children : [children]
}
function getItemsToRender({
index,
maxIndex,
items,
itemsToPreload,
... | JavaScript | 0.000001 | @@ -1340,26 +1340,8 @@
peed
-,%0A tailArrowClass
%0A%7D)
|
10f5e652c7c60694d0e5e472507095eec654a61b | Update admin.js | src/resources/js/admin.js | src/resources/js/admin.js | /**
* jQuery and the Bootstrap jQuery plugin
*/
try {
window.Popper = require('popper.js').default;
window.$ = window.jQuery = require('jquery');
require('bootstrap');
} catch (e) {}
/**
* Axios HTTP library
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] =... | JavaScript | 0.000001 | @@ -2185,50 +2185,15 @@
File
-picker,%0A FileManager,%0A Files
+Manager
,%0A
|
35f98ce39c2814233d0af9a61203032a0f2a5c55 | Add missing Indico header | indico/htdocs/js/custom/dropzone.js | indico/htdocs/js/custom/dropzone.js | (function(global) {
'use strict';
$(document).ready(function(){
Dropzone.autoDiscover = false;
});
global.setupDropzone = function(element) {
var $dz = $(element),
$form = $dz.closest('form'),
$flashArea = $form.find('.flashed-messages'),
options = {... | JavaScript | 0.000001 | @@ -1,16 +1,763 @@
+/* This file is part of Indico.%0A * Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN).%0A *%0A * Indico is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU General Public License as%0A * published by the Free Software Foundation; eith... |
dba93ca3b6f590d4b97457cd9b9e4b18eea4c12b | Fix #254 | www/assets/js/data.js | www/assets/js/data.js | /*
The MIT License (MIT)
Copyright (c) 2013 Calvin Montgomery
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, modify, me... | JavaScript | 0.000001 | @@ -4048,16 +4048,137 @@
nneljs%22,
+ false),%0A sort_rank : getOrDefault(%22sort_rank%22, false),%0A sort_afk : getOrDefault(%22sort_afk%22,
false)%0A
|
4a4e34a7e2ef1841e18baa2ead5572343e1edeaa | fix logger error | packages/cloud-core/pubsub-connector.js | packages/cloud-core/pubsub-connector.js | const Rx = require('rx-lite')
const redis = require("redis");
const {PromiseUtils} = require('isomorphic-core');
PromiseUtils.promisifyAll(redis.RedisClient.prototype);
PromiseUtils.promisifyAll(redis.Multi.prototype);
class PubsubConnector {
constructor() {
this._broadcastClient = null;
this._listenClient... | JavaScript | 0 | @@ -467,36 +467,32 @@
global.Logger.
-log.
info(%7Baccount_id
@@ -565,20 +565,16 @@
.Logger.
-log.
error);%0A
@@ -614,36 +614,32 @@
global.Logger.
-log.
info(%7Baccount_id
@@ -3199,12 +3199,8 @@
ger.
-log.
info
|
385e8b4f7786772d7420cf7ab2ae0ec432bacf28 | Add slight animation for modal open/close to make it less jarring | www/docs/js/quant2.js | www/docs/js/quant2.js | var researchUser;
var startTime = new Date();
var recordEndpoint = 'http://logbook.mysociety.org/quant2';
var siteTag = 'openaustralia';
$(document).ready(function() {
// Retrieve the bucket from storage, or allocate the user if not.
if ($.localStorage.isEmpty('research.qual2')) {
researchUser = {
... | JavaScript | 0 | @@ -939,16 +939,50 @@
popup(%7B%0A
+ transition: 'all 0.3s',%0A
|
adaead228929fe6d00b2a83533a2a85b5a13a6d1 | fix post to back end | www/js/controllers.js | www/js/controllers.js | angular.module('starter.controllers', [])
.controller('DashCtrl', function($scope, $state, WarningService) {
$scope.warning = {
message: '1',
id_contact_type: 3
};
var listContactType = WarningService.getContactTypes();
listContactType.then(function(result) {
if (result) {
$scope.contact_ty... | JavaScript | 0 | @@ -133,26 +133,8 @@
-message: '1',%0A
id_c
@@ -147,16 +147,203 @@
_type: 3
+,%0A browser: %22android%22,%0A operating_system: %22android%22,%0A device: %22android%22,%0A raw: %22android%22,%0A warning_resp: %7B%7D,%0A enableName: false,%0A ip: %22android%22,%0A lang_key: %22pt-br%22... |
3b24dcd1e05aa164d6ebdb52781165e9bd0e4f8c | Remove inadvertently introduced alert | www/js/controllers.js | www/js/controllers.js | 'use strict';
angular.module('emission.controllers', ['emission.splash.updatecheck',
'emission.splash.startprefs'])
.controller('RootCtrl', function($scope) {})
.controller('DashCtrl', function($scope) {})
.controller('SplashCtrl', function($scope, $state, $interval, $rootSco... | JavaScript | 0 | @@ -386,16 +386,19 @@
ked');%0A
+ //
alert(%22
|
a72a4ce783aa7a430676408c4c5bf84d299728d7 | Revert "centering colin" | www/js/states/init.js | www/js/states/init.js | var gameState = {};
var state_init = function(game) {
return {
preload: function() {
game.load.image('colin1', 'assets/colin1.jpg');
game.load.image('judgeResponse', 'assets/judgeResponse.jpg');
},
create: function() {
var colin = game.add.sprite(game.... | JavaScript | 0 | @@ -312,46 +312,12 @@
ite(
-game.world.centerX, game.world.centerY
+0, 0
, 'c
@@ -539,46 +539,11 @@
ite(
-game.world.centerX, game.world.centerY
+0,0
,'ju
|
f8062f118b29316a4053fdbe0262f8d4faf289b4 | Allow requestors to manually specify response ID | packages/net/protocols/Cuppa.js | packages/net/protocols/Cuppa.js | "use import";
import lib.Callback;
import lib.PubSub;
from net.protocols.rtjp import RTJPProtocol;
var Error = Class(function() {
this.init = function(protocol, id, msg, details, requestId) {
this.id = id;
this.msg = msg;
this.details = details;
this.requestId = requestId;
}
});
var RPCRequest = Class(fun... | JavaScript | 0 | @@ -4547,16 +4547,27 @@
%7B 'id':
+ args.id %7C%7C
id, 'ms
@@ -4597,21 +4597,16 @@
;%0A%09%09%09%09%7D%0A
-%09%09%09%09%0A
%09%09%09%09var
@@ -4847,24 +4847,35 @@
eqCtor(this,
+ args.id %7C%7C
id, args.na
|
52aaa6133d2ce1f3f2f99193ee2c44984564c890 | Make revision suggesiton button's label less forceful | app/js/app/services/QuestionActions.js | app/js/app/services/QuestionActions.js | /**
* Copyright 2017 Meurig Thomas
*
* 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 | @@ -3394,32 +3394,33 @@
'2' ? 'revision
+?
' : 'practice';%0A
@@ -3412,24 +3412,25 @@
: 'practice
+?
';%0A%09%09%09var ab
@@ -3533,16 +3533,17 @@
revision
+?
' : 'pra
@@ -3543,24 +3543,25 @@
: 'practice
+?
';%0A%09%09%09if (fu
|
4898d0618e9c467d18fff2cc0d4d808b4a63dee9 | Fix django undefined error | query/utils/i18n.js | query/utils/i18n.js | let momentLocale = null;
if(window.languageCode) {
momentLocale = `moment-locale/${window.languageCode}`;
}
define(["moment", momentLocale], function(moment){
const i18n = {};
if(!django.jsi18n_initialized){
function noop(x) {
return x;
}
const i18n = {};
i18... | JavaScript | 0.000121 | @@ -188,16 +188,49 @@
%0A if(
+typeof django === %22undefined%22 %7C%7C
!django.
|
6e77f1e10189ed8d3bf2068316dcf13f8d5b890a | Make sure to redefine clickAction only when needed | app/js/arethusa.core/globalSettings.js | app/js/arethusa.core/globalSettings.js | "use strict";
angular.module('arethusa.core').service('globalSettings', [
'configurator',
'plugins',
'$injector',
'$rootScope',
'notifier',
'$timeout',
'$injector',
function(configurator, plugins, $injector, $rootScope, notifier, $timeout) {
var self = this;
self.settings = {};
self.color... | JavaScript | 0 | @@ -2039,24 +2039,125 @@
, silent) %7B%0A
+ // When nothing changed, we don't need to do anything%0A if (self.clickAction !== name) %7B%0A
self.c
@@ -2171,24 +2171,26 @@
ion = name;%0A
+
var ac
@@ -2236,24 +2236,26 @@
ion%5D;%0A
+
self.clickFn
@@ -2271,24 +2271,26 @@
s%5B0%5D;%0... |
919436e47e0e78f10d5528e5b28dca492c3a14f2 | move proto select after ip version selection | applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js | applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js | 'use strict';
'require form';
'require fs';
'require view';
'require uci';
return view.extend({
load: function() {
return Promise.all([
fs.exec_direct('/usr/libexec/luci-mwan3', ['ipset', 'dump']),
uci.load('mwan3')
]);
},
render: function (data) {
var m, s, o;
m = new form.Map('mwan3', _('MultiWAN ... | JavaScript | 0 | @@ -1444,32 +1444,287 @@
alonly = true;%0A%0A
+%09%09o = s.option(form.Value, 'proto', _('Protocol'),%0A%09%09%09_('View the content of /etc/protocols for protocol description'));%0A%09%09o.default = 'all';%0A%09%09o.rmempty = false;%0A%09%09o.value('all');%0A%09%09o.value('tcp');%0A%09%09o.value('udp');%0A%09%09o.val... |
280feef3512739b0484db751e7c2969c954a933b | Fix globalSettings labels for angular-translate | app/js/arethusa.core/globalSettings.js | app/js/arethusa.core/globalSettings.js | "use strict";
angular.module('arethusa.core').service('globalSettings', [
'configurator',
function(configurator) {
var self = this;
var confKeys = [
"alwaysDeselect"
];
function configure() {
self.conf = configurator.configurationFor('main').globalSettings || {};
configurator.de... | JavaScript | 0.000003 | @@ -499,16 +499,65 @@
operty;%0A
+ this.label = %22globalSettings.%22 + property;%0A
th
|
af85bcd585f529ff0553a6b4bdb595466c0b026b | change development config | config/env/development.js | config/env/development.js | 'use strict';
module.exports = {
db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev',
debug: true,
logging: {
format: 'tiny'
},
// aggregate: 'whatever that is not false, because boolean false value turns aggregation off', //false
aggregate: false,
mongoose: {
de... | JavaScript | 0.000001 | @@ -349,30 +349,45 @@
'http://
-localhost:3000
+pictionary.dev6.linnovate.net
',%0A app
|
575c9ce4426126c026bddfd86873bbeca4642f1b | update TODO header | config/gulp/tasks/docs.js | config/gulp/tasks/docs.js | 'use strict';
/**
* Module dependencies
*/
var gulp = require('gulp'),
gutil = require('gulp-util'),
fs = require('fs'),
runSequence = require('run-sequence'),
plato = require('plato'),
Dgeni = require('dgeni'),
todo = require('gulp-todo'),
changelog = require('co... | JavaScript | 0.000001 | @@ -1562,17 +1562,17 @@
e %7C
-l
+L
ine # %7C
todo
@@ -1567,20 +1567,23 @@
ine # %7C
-todo
+Comment
',%0A
|
37a7b254bd696725a6a5969fb34502433043cdcd | Add method to generate random game of life board | game-of-life/src/BoardContainer.js | game-of-life/src/BoardContainer.js | import React, { Component } from 'react';
class BoardContainer extends Component {
constructor() {
}
}
export default BoardContainer;
| JavaScript | 0.000007 | @@ -99,12 +99,231 @@
) %7B%0A
-
+%0A %7D%0A randomArray = () =%3E %7B%0A array = %5B%5D;%0A for (let i = 0; i %3C 10; i++) %7B%0A array%5Bi%5D = %5B%5D;%0A for (let j = 0; j %3C 10; j++) %7B%0A array%5Bi%5D%5Bj%5D = Math.floor(Math.random() + .5);%0A %7D%0A %7D%0A return array;
... |
f9547a5b0025d39276b3059f5115078d91258783 | Update jsPerf_CNNChannelShuffle.js | CNN/jsPerf/jsPerf_CNNChannelShuffle.js | CNN/jsPerf/jsPerf_CNNChannelShuffle.js |
/**
* Test different channel shuffle implementation for CNN ShuffleNet.
*
* @see {@link https://jsperf.com/colorfulcakechen-cnn-channel-shuffle}
*/
// concat-reshape-transpose-reshape-split
function ConcatReshapeTransposeReshapeSplit( dataTensor3dArray ) {
return tf.tidy( () => {
let groupCount = dataTensor... | JavaScript | 0.000001 | @@ -2080,16 +2080,94 @@
ensor3d.
+%0A let multipleChannelTensor3dArray = new Array( intermediateChannelCount );
%0A%0A //
@@ -2350,24 +2350,33 @@
s, i ) =%3E %7B%0A
+//!!!%0A//
let mu
@@ -2446,32 +2446,35 @@
nelIndex ) =%3E %7B%0A
+//
return o
@@ -2509,24 +2509,27 @@
nelIndex %5D;%0A
+//
... |
f902c135ab5338e9bf23a2029d344936e94d5171 | Fix in update view redirect. | bridje-web/src/main/resources/BRIDJE-INF/web/themes/bridje/resources/bridje-ajax.js | bridje-web/src/main/resources/BRIDJE-INF/web/themes/bridje/resources/bridje-ajax.js | /*
* Copyright 2016 Bridje Framework.
*
* 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 agr... | JavaScript | 0 | @@ -1812,28 +1812,105 @@
-console.log(
+if(typeof location === %22string%22)%0A %7B%0A window.location =
location
);%0A
@@ -1905,19 +1905,79 @@
location
-)
;%0A
+ %7D%0A else%0A %7B%0A
@@ -2019,16 +2019,20 @@
seTex... |
fab82c96110ac5470055adaad43cef3cb1c20779 | correct slider hover/focus colors | packages/theme-data/src/colorSchemes/darkGray/components/slider.js | packages/theme-data/src/colorSchemes/darkGray/components/slider.js | export default {
"slider.thumb.backgroundColor": {
value: { ref: "basics.colors.charcoal100" }
},
// These color overrides specifying colorScheme.baseColor would not be necessary if darkBlue's baseColor were
// basics.colors.darkBlue200. The darkGray theme inherits from darkBlue, so we must override darkBlu... | JavaScript | 0.000002 | @@ -878,78 +878,8 @@
sed%0A
- %22slider.pressed.halo.color%22: %7B%0A transform: %7B alpha: 0.125 %7D%0A %7D,%0A
%22s
|
d46c6495610a6a02b15d7e51566bf80c755dce17 | clean up changes | app/instagram.js | app/instagram.js | var request = require('request');
var Q = require('q');
var ig = require('../config/instagram');
// Kind of sly, but makes interacting with the Instagram API
// a little more effecient. In Node, variables can be shared
// across requests. We only need 1 API access token from
// Instagram, so we can use the ... | JavaScript | 0.000001 | @@ -392,60 +392,12 @@
n =
-'297048867.0a344b6.e7c0bb354e5b4699a43f11f854832985'
+null
;%0A%0A/
@@ -948,68 +948,8 @@
);%0A%0A
- console.log(JSON.stringify(httpResponse).headers);%0A%0A
@@ -1004,41 +1004,8 @@
dy);
-%0A console.log(response);
%0A%0A
|
d43a8652caee922b10bd0a8b6d02694928df9da9 | fix iframe | app/scripts/components/IFrame/index.js | app/scripts/components/IFrame/index.js | import React from 'react';
import LoadingSpinner from '../Loading/LoadingSpinner';
class IFrame extends React.Component {
constructor() {
super();
this.allowGoInside = true;
this.state = {
loaded: false,
height: 400
};
}
componentDidMount() {
this.allowGoInside = this.props.src.i... | JavaScript | 0.000028 | @@ -1001,16 +1001,31 @@
ops.src%7D
+ sandbox=%7Btrue%7D
%3E%3C/ifram
|
b469be3bac24c97e2d7002065dc71e7f800fc38b | Fix labelling of point charts | app/scripts/controllers/pointcharts.js | app/scripts/controllers/pointcharts.js | 'use strict';
/**
* @ngdoc function
* @name ausEnvApp.controller:PointchartsCtrl
* @description
* # PointchartsCtrl
* Controller of the ausEnvApp
*/
angular.module('ausEnvApp')
.controller('PointchartsCtrl', function ($scope,$interpolate,$q,selection,details,timeseries,spatialFoci) {
$scope.selection = sel... | JavaScript | 0.001638 | @@ -1632,32 +1632,227 @@
%7D);%0A %7D;%0A%0A
+ $scope.buildMetadata = function(layer)%7B%0A return %7B%0A label:layer.title,%0A Title:layer.title,%0A Description:layer.description,%0A Units:layer.units%0A %7D;%0A %7D;%0A%0A
$scope.getBa
@@ -1863,32 +1863,32 @@
a... |
f93d77f86adca9310c24cd97dded0a4c16a57185 | Fix jshint errors | app/scripts/directives/formElements.js | app/scripts/directives/formElements.js | 'use strict';
angular.module('confRegistrationWebApp')
.directive('formElements', function () {
return {
restrict: 'A',
link: function questionsToolbarInterface(scope) {
//Debouncing plugin for jQuery from http://www.paulirish.com/2009/throttled-smartresize-jquery-event-handler/
(func... | JavaScript | 0.000318 | @@ -177,13 +177,8 @@
ace(
-scope
) %7B%0A
@@ -696,32 +696,34 @@
if (!execAsap)
+ %7B
%0A
@@ -748,16 +748,34 @@
args);%0A
+ %7D%0A
@@ -813,17 +813,16 @@
%7D
-;
%0A%0A
@@ -841,16 +841,18 @@
timeout)
+ %7B
%0A
@@ -897,16 +897,17 @@
+%7D
els... |
023a1d5efa6619301f6e5750acf94aeeb04fd47c | Add a function to delete compare info by user ID | app/services/compare.server.service.js | app/services/compare.server.service.js | 'use strict';
var mongoose = require('mongoose'),
Compare = mongoose.model('Compare'),
_ = require('lodash'),
Q = require('q'),
config = require('../../config/config');
exports.deleteCompareById = function (compareId) {
var deferred = Q.defer();
compareId.findByIdAndRemove(compareId, function ... | JavaScript | 0 | @@ -265,25 +265,23 @@
();%0A
-c
+C
ompare
-Id
.findByI
@@ -477,24 +477,339 @@
romise;%0A%7D;%0A%0A
+exports.deleteCompareByUserId = function (userId) %7B%0A var deferred = Q.defer();%0A Compare.findOneAndRemove(%7Buser: userId%7D, function (err, compare) %7B%0A if (err) %7B%0A return def... |
c370ced80fed16a993fe2223709763843d1e099b | Use upload file chunked | scripts/sources/BlobFileSource.js | scripts/sources/BlobFileSource.js |
var BlobFileSource = Source.createComponent("BlobFileSource");
BlobFileSource.defineMethod("construct", function construct() {
if (!this.fileHandler) this.fileHandler = new BlobFileHandler();
});
BlobFileSource.defineMethod("init", function init(content, jointSource, sourceId) {
if (content) {
this.fileHa... | JavaScript | 0 | @@ -831,16 +831,23 @@
loadFile
+Chunked
(this.co
|
d434e4f7b68a45c7118c021c446ed22dfe3f0939 | add global 'saveState()' function for saving after console changes | scripts/ui/requiremodsshortcut.js | scripts/ui/requiremodsshortcut.js | /**
* RequireModsShortcut
*
* @return RequireModsShortcut
* @author Erik E. Lorenz <erik@tuvero.de>
* @license MIT License
* @see LICENSE
*/
define(['lib/extend', 'core/model'], function (extend, Model) {
function RequireModsShortcut () {
RequireModsShortcut.superconstructor.call(this)
window.setTimeou... | JavaScript | 0.000001 | @@ -1485,16 +1485,108 @@
rnaments
+%0A%0A window.saveState = mods.ui && function () %7B%0A mods.ui.statesaver.saveState()%0A %7D
%0A %7D%0A%0A
|
593e175e44d8bf2c184a56fe6cdd0f2d662f87d8 | Fix API vor GoCD v20.2.0 | server/services/GoBuildService.js | server/services/GoBuildService.js | import rp from 'request-promise';
import Logger from '../utils/Logger';
import GoPipelineParser from '../utils/GoPipelineParser';
import Util from '../utils/Util';
export default class GoBuildService {
constructor(goConfig) {
this.conf = goConfig;
}
/**
* @returns {Promise<Array<string>>} All available... | JavaScript | 0.000002 | @@ -1865,17 +1865,17 @@
.go.cd.v
-1
+3
+json'%7D)
@@ -3130,10 +3130,8 @@
tory
-/0
%60, t
@@ -3144,20 +3144,65 @@
nf, true
+, %7B'Accept' : 'application/vnd.go.cd.v1+json'%7D
);%0A
-%0A
retu
|
046e8b537bd192273951c4a296932f805c922fc0 | Handle correct spelling of card code input | app/assets/javascripts/store/spree_reuse_credit_card.js | app/assets/javascripts/store/spree_reuse_credit_card.js | //= require jquery.alerts/jquery.alerts
//= require_self
var creditCardDeleteCallback=$.noop();
function displayCreditCardDeleteStatus(notice) {
notice_div = $('.flash.notice');
if (notice) {
if (notice_div.length > 0) {
notice_div.html(notice);
notice_div.show();
} else {
$("#card_noti... | JavaScript | 0.999911 | @@ -1728,16 +1728,38 @@
rt_code%5D
+,%5Bdata-hook=card_code%5D
%22).show(
@@ -1772,36 +1772,38 @@
unfortunately th
-is i
+ere wa
s a typo in spre
@@ -1796,32 +1796,41 @@
a typo in spree
+pre-v1.1
(cart v card)%0A%0A
@@ -3539,16 +3539,38 @@
rt_code%5D
+,%5Bdata-hook=card_code%5D
%22).hide(
@@ -3595,12 +3595,1... |
a5591c90559007af79766c2fd280f9cfe9a7d730 | remove duplicated code (#805) | packages/gluestick/src/renderer/main.js | packages/gluestick/src/renderer/main.js | /* @flow */
/**
* To import/require file from project use aliases:
* root, src, actions, assets, components, containers, reducers, config
* To import/require renderer server file use relative paths.
*/
import type {
Context,
Request,
Response,
ServerPlugin,
} from '../types';
const path = require('path... | JavaScript | 0 | @@ -1345,24 +1345,25 @@
esPlugins);%0A
+%0A
// Merge h
@@ -1400,16 +1400,16 @@
hooks.%0A
+
const
@@ -1467,207 +1467,8 @@
ns);
-%0A // Developers can add an optional hook that%0A // includes script with initialization stuff.%0A if (hooks.preInitServer && typeof hooks.preInitServer === 'function') %7B%0A ... |
1eceff92a52f91bcabb791d76000d90670c90781 | Fix contexts not being displayed in the same order as the resource tree. | assets/components/clientconfig/js/mgr/widgets/combos.js | assets/components/clientconfig/js/mgr/widgets/combos.js | ClientConfig.combo.Groups = function(config) {
config = config || {};
Ext.applyIf(config,{
url: ClientConfig.config.connectorUrl,
baseParams: {
action: 'mgr/groups/getlist',
combo: true
},
fields: ['id','label'],
hiddenName: config.name || 'group',... | JavaScript | 0 | @@ -3551,32 +3551,61 @@
combo: true
+,%0A sort: '%60rank%60',
%0A %7D,%0A
|
e8e910b7c58ec522df8d32daa6c383aaeb65179f | Address Code Climate issues | assets/js/app/admin/products/product_form_controller.js | assets/js/app/admin/products/product_form_controller.js | 'use strict';
/**
* @todo This mirrors the admin_user_form_controller.js file in a lot of regards, could be abstracted.
*/
/**@ngInject*/
function ProductFormController($state, FlashesService) {
var self = this;
this.product = null;
this.formSubmitted = false;
this.priceRegex = "\\d{1,6}(\\.\\d{1,4})?";
... | JavaScript | 0 | @@ -397,160 +397,31 @@
%0A%0A
-this.create = function() %7B%0A self.formSubmitted = true;%0A if (self.form.$invalid) %7B%0A return false;%0A %7D%0A self.product.$save(function
+function onSuccess
() %7B%0A
-
@@ -460,36 +460,36 @@
ducts.list');%0A
- %7D,
+%7D%0A%0A
function() %7B%0A ... |
489658129dcfe43d27c97410efb3e5c06ba57faf | fix inserted marks (#1338) | packages/slate/src/changes/at-current-range.js | packages/slate/src/changes/at-current-range.js |
import Block from '../models/block'
import Inline from '../models/inline'
import Mark from '../models/mark'
/**
* Changes.
*
* @type {Object}
*/
const Changes = {}
/**
* Mix in the changes that pass through to their at-range equivalents because
* they don't have any effect on the selection.
*/
const PROXY_T... | JavaScript | 0 | @@ -4361,25 +4361,21 @@
arks %7C%7C
-selection
+value
.marks%0A
|
ba5f12778a5b7392ecb8c0857bc9c869d532af6c | fix clean permission | packages/strapi-admin/services/content-type.js | packages/strapi-admin/services/content-type.js | 'use strict';
const _ = require('lodash');
const fp = require('lodash/fp');
const EXCLUDE_FIELDS = ['created_by', 'updated_by'];
/**
* Creates an array of paths to the fields and nested fields, without path nodes
* @param {string} model model used to get the nested fields
* @param {Object} options
* @param {stri... | JavaScript | 0 | @@ -4782,18 +4782,16 @@
m.action
-Id
)) %7B%0A
|
926eb91d597af11883b16f6b6035f0290da6bd24 | add native events in TextField | packages/web/src/components/basic/TextField.js | packages/web/src/components/basic/TextField.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
addComponent,
removeComponent,
watchComponent,
updateQuery,
} from '@appbaseio/reactivecore/lib/actions';
import {
debounce,
checkValueChange,
checkPropChange,
getClassName,
} from '@appbaseio/reactivecore/lib/utils/helpe... | JavaScript | 0.000002 | @@ -3725,16 +3725,232 @@
tValue%7D%0A
+%09%09%09%09%09onBlur=%7Bthis.props.onBlur%7D%0A%09%09%09%09%09onFocus=%7Bthis.props.onFocus%7D%0A%09%09%09%09%09onKeyPress=%7Bthis.props.onKeyPress%7D%0A%09%09%09%09%09onKeyDown=%7Bthis.props.onKeyDown%7D%0A%09%09%09%09%09onKeyUp=%7Bthis.props.onKeyUp%7D%0A%09%09%09%09%09autoFoc... |
086828956101fb7489b5f9b93dcd9a84c5e1d4bf | Use fixed size arrays | packages/most-buffer/src/buffer-sink.js | packages/most-buffer/src/buffer-sink.js | class BufferSink {
constructor(count, sink) {
this.active = true;
this.sink = sink;
this.count = count;
this.buffer = [];
}
event(time, value) {
if (!this.active) {
return;
}
// Buffering the new value
this.buffer.push(value);
// If the buffer has a limit and is full, ... | JavaScript | 0.000001 | @@ -125,26 +125,88 @@
is.buffer =
-%5B%5D
+count === undefined ? %5B%5D : new Array(count);%0A this.length = 0
;%0A %7D%0A%0A eve
@@ -318,20 +318,31 @@
ffer
-.push(
+%5Bthis.length++%5D =
value
-)
;%0A%0A
@@ -417,29 +417,8 @@
his.
-count && this.buffer.
leng
@@ -444,37 +444,29 @@
%7B%0A
-this.sink... |
6edc10a91fe9256172685be7eb9b5b41322fb6ca | Add reflow option and encode predicate support to ChangeSet. | packages/vega-dataflow/src/ChangeSet.js | packages/vega-dataflow/src/ChangeSet.js | import {ingest} from './Tuple';
import {array, constant, isFunction} from 'vega-util';
export function isChangeSet(v) {
return v && v.constructor === changeset;
}
export default function changeset() {
var add = [], // insert tuples
rem = [], // remove tuples
mod = [], // modify tuples
remp = ... | JavaScript | 0 | @@ -355,17 +355,17 @@
odp = %5B%5D
-;
+,
// modi
@@ -379,16 +379,38 @@
redicate
+%0A reflow = false;
%0A%0A retu
@@ -1005,40 +1005,178 @@
-mod.push(%7Btuple: t, field: set%7D)
+if (isFunction(t)) modp.push(%7Bfilter: t, field: set%7D);%0A else mod.push(%7Btuple: t, field: set%7D);%0A return t... |
f72e3bb75441c045d106a31eb4a64e101acc912b | Remove angularjs CDN | pipeline/app/assets/javascripts/application.js | pipeline/app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0.000007 | @@ -612,16 +612,36 @@
ery_ujs%0A
+//= require angular%0A
//= requ
|
188693f80cff1782b74325683d2a12502f8cc32e | Add angular and angular-route requires | pipeline/app/assets/javascripts/application.js | pipeline/app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0.000003 | @@ -612,16 +612,62 @@
ery_ujs%0A
+//= require angular%0A//= require angular-route%0A
//= requ
|
3b7f030ca5cd743b74a5cfbd3bf4a161f82a4892 | Remove unused block from search reducer | app/state/reducers/ui/searchReducer.js | app/state/reducers/ui/searchReducer.js | import types from 'constants/ActionTypes';
import Immutable from 'seamless-immutable';
import { pickSupportedFilters } from 'utils/searchUtils';
import { getDuration, getEndTimeString, getStartTimeString } from 'utils/timeUtils';
const initialState = Immutable({
filters: {
date: '',
people: '',
purpose... | JavaScript | 0.000001 | @@ -1096,446 +1096,8 @@
%7D%0A%0A
- case types.API.SORT_RESULTS_GET_SUCCESS: %7B%0A const results = Object.keys(action.payload.entities.resources %7C%7C %7B%7D);%0A const paginatedResources = Object.values(action.payload.entities.paginatedResources %7C%7C %7B%7D);%0A const resultCount = paginatedRes... |
9c96464ebda4719ff1cf31146cf1fdd795643c60 | Fix first favorite fail bug | app/views/_detail/detail.controller.js | app/views/_detail/detail.controller.js | /**
* Detail controller
*/
(function () {
'use strict';
angular
.module( 'com.missofis.ontheair' )
.controller( 'DetailCtrl', DetailCtrl );
DetailCtrl.$inject = [ '$log', 'TMDbTV', '$routeParams', 'OnTheAirFirebaseDatabase', 'OnTheAirUtils', '$scope', '$mdDialog', '$mdToast', '$location', '$rootScope', '_sh... | JavaScript | 0.000001 | @@ -2566,24 +2566,264 @@
unction() %7B%0A
+%09%09%09%09%09%09// todo :: check for another solution (initial app set is false, but service returns null. false set needed for $watchCollection below)%0A%09%09%09%09%09%09if( null === vm.appState.user_favorites ) %7B%0A%09%09%09%09%09%09%09vm.appState.user_favorites = %7B%... |
85c9fa28b12aa5674455d695195514739e03b898 | save flickity-object for further use | Flickity/Kwc/Slider/Component.defer.js | Flickity/Kwc/Slider/Component.defer.js | "use strict";
var $ = require('jQuery');
var onReady = require('kwf/on-ready');
var flickity = require('flickity');
onReady.onRender('.kwcClass', function(el) {
var config = el.data('config');
var elements = el.find('.kwcClass__listItem');
elements.first().css('visibility', 'visible');
if (config['lazy... | JavaScript | 0 | @@ -639,16 +639,45 @@
config);
+%0A el.data('flkty', flkty);
%0A%0A fl
|
4d8eeba08b566946f4d1e253041013e03340829e | test viewport | application/static/js/image_capture.js | application/static/js/image_capture.js | var page = require('webpage').create(),
system = require('system');
if (system.args.length === 1) {
console.log('Pass arg when invoking script');
phantom.exit();
}
else{
title = system.args[1];
console.log(title);
page.open('http://192.241.148.248/imggen/index.php/imggen/'+title, function ( status ) {
if (sta... | JavaScript | 0.000001 | @@ -476,18 +476,16 @@
%09
-//
page.cli
@@ -545,24 +545,26 @@
;%0A%09%09
+//
page.viewpor
|
1a72d2de01d288c8341f436a9d7da245379846dd | Fix lint | packages/m-types/src/__tests__/Pointer.test.js | packages/m-types/src/__tests__/Pointer.test.js | // @flow
import Composite from '../Composite';
import Primitive from '../Primitive';
import Pointer from '../Pointer';
const string = new Primitive('string', {
isValid: value => typeof value === 'string',
coerce: String,
});
const CRDT = { import: data => data };
const Product = new Composite('Product', { CRDT })... | JavaScript | 0.000002 | @@ -318,58 +318,8 @@
%7D);
-%0Aconst Player = new Composite('Player', %7B CRDT %7D);
%0A%0Ade
|
2b059f6b30d8222c447ef038a27786c93935e75b | clean queries for rison in prod, warn in dev | packages/mwp-store/src/browser/fetchQueries.js | packages/mwp-store/src/browser/fetchQueries.js | import JSCookie from 'js-cookie';
import rison from 'rison';
import { setClickCookie } from 'mwp-tracking-plugin/lib/util/clickState';
import { parseQueryResponse, getAuthedQueryFilter } from '../util/fetchUtils';
export const CSRF_HEADER = 'x-csrf-jwt';
export const CSRF_HEADER_COOKIE = 'x-csrf-jwt-header';
/**
* ... | JavaScript | 0 | @@ -357,18 +357,8 @@
red
-OAuth and
CSRF
@@ -385,16 +385,16 @@
structs%0A
+
* the %60
@@ -949,158 +949,727 @@
%7B%0A%09
-if (process.env.NODE_ENV !== 'production') %7B%0A%09%09// basic query validation for dev. This block will be stripped out by%0A%09%09// minification in prod bundle.
+// rison serialization f... |
c31ff0eae7027df578625a6d2be6f4fb7bf2ab2a | fix auth | modules/users/client/controllers/authentication.client.controller.js | modules/users/client/controllers/authentication.client.controller.js | (function () {
'use strict';
angular
.module('users')
.controller('AuthenticationController', AuthenticationController);
AuthenticationController.$inject = ['$scope', '$state', '$http', '$location', '$window', 'Authentication', 'PasswordValidator', '$mdToast'];
function AuthenticationController($scop... | JavaScript | 0.002303 | @@ -1185,37 +1185,32 @@
m.authentication
-.user
= response;%0A
@@ -2084,21 +2084,16 @@
tication
-.user
= respo
|
a33ca11ff237781fe6d64ac2ed93825e001411ac | fix fix | redef/patron-client/src/frontend/components/work/fields/WorkSerie.js | redef/patron-client/src/frontend/components/work/fields/WorkSerie.js | import React, { PropTypes } from 'react'
import { injectIntl, intlShape, defineMessages } from 'react-intl'
import { Link } from 'react-router'
import MetaItem from '../../MetaItem'
import isEmpty from '../../../utils/emptyObject'
const WorkSerie = ({ workserie }) => {
if (!isEmpty(workserie)) {
return (
<... | JavaScript | 0.001033 | @@ -489,17 +489,16 @@
y=series
-:
%253A%22$%7Bwo
|
569f9e5cf0eb72762cf4cfa8d41e0053798b7cba | combine handlewrite functions | regulations/static/regulations/js/source/views/main/preamble-view.js | regulations/static/regulations/js/source/views/main/preamble-view.js | 'use strict';
var $ = require('jquery');
var _ = require('underscore');
var Backbone = require('backbone');
Backbone.$ = $;
var ChildView = require('./child-view');
var MainEvents = require('../../events/main-events');
var PreambleHeadView = require('../header/preamble-head-view');
var CommentView = require('../comme... | JavaScript | 0.000003 | @@ -576,20 +576,16 @@
dleWrite
-Link
'%0A %7D,%0A%0A
@@ -981,21 +981,16 @@
dleWrite
-Event
);%0A t
@@ -1352,21 +1352,16 @@
dleWrite
-Event
: functi
@@ -1363,24 +1363,25 @@
unction(
+e
) %7B%0A
var $sec
@@ -1376,216 +1376,65 @@
-var $section = $('#' + this.currentSectionId);%0A%0A this.write(%0... |
b2bc8e4b64abbb700d4ac8cc740c9819d7583232 | add in missing border line on card filters accordion. | resources/frontend_client/app/home/components/AccordianItem.react.js | resources/frontend_client/app/home/components/AccordianItem.react.js | "use strict";
import React, { Component, PropTypes } from "react";
import Icon from "metabase/components/Icon.react";
export default class AccordianItem extends Component {
render() {
let { children, onClickFn, isOpen, itemId, title } = this.props;
return (
<div key={itemId}>
... | JavaScript | 0 | @@ -371,16 +371,30 @@
nd-hover
+ border-bottom
%22 onClic
@@ -936,19 +936,11 @@
me=%22
-articlewrap
+pt1
%22%3E%0A
|
bd6ce854419f250a8fae3cb8c413b1f93356bbc6 | Fix a typo which was causing requests with DateTime2 parameters to fail. | src/rpcrequest-payload.js | src/rpcrequest-payload.js | import { WritableTrackingBuffer } from './tracking-buffer/tracking-buffer';
import { writeToTrackingBuffer as writeAllHeaders } from './all-headers';
// const OPTION = {
// WITH_RECOMPILE: 0x01,
// NO_METADATA: 0x02,
// REUSE_METADATA: 0x04
// };
const STATUS = {
BY_REF_VALUE: 0x01,
DEFAULT_VALUE: 0x02
};
... | JavaScript | 0 | @@ -2010,33 +2010,29 @@
type.resolve
-Precision
+Scale
) %7B%0A
|
948e099daf09a4ff812b4548cd941b94fcafefb8 | Fix slider glitch | dist/js/d3.slider.js | dist/js/d3.slider.js | /*
D3.js Slider
Inspired by jQuery UI Slider
Copyright (c) 2013, Bjorn Sandvik - http://blog.thematicmapping.org
BSD license: http://opensource.org/licenses/BSD-3-Clause
*/
d3.slider = function module() {
"use strict";
// Public variables width default settings
var min = 0,
max... | JavaScript | 0.000001 | @@ -1504,17 +1504,13 @@
on(%22
-mousedown
+click
%22, o
|
23b4c4da8d12d6cf99f9603b0d3d317f9e0bc91d | Make getStringFromTypedArray more testable | Source/Core/getStringFromTypedArray.js | Source/Core/getStringFromTypedArray.js | /*global define*/
define([
'./defined',
'./DeveloperError'
], function(
defined,
DeveloperError) {
"use strict";
/*global TextDecoder*/
/**
* @private
*/
var getStringFromTypedArray = function(buffer, byteOffset, length) {
//>>includeStart('debug', ... | JavaScript | 0.000059 | @@ -694,19 +694,46 @@
-var view =
+return getStringFromTypedArray.decode(
new
@@ -774,30 +774,94 @@
gth)
-;%0A%0A if (typeof
+);%0A %7D;%0A%0A // Exposed functions for testing%0A getStringFromTypedArray.decodeWith
Text
@@ -872,31 +872,27 @@
der
-!=
=
-'undefined') %7B%0A
+function(vi... |
19df4f7b1265405e4f2c6ae8705af5ceae7796d4 | enable title by default (#8750) | packages/react/src/components/Switch/Switch.js | packages/react/src/components/Switch/Switch.js | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { settings } from 'carbon-componen... | JavaScript | 0 | @@ -1298,15 +1298,44 @@
el%60%7D
-%3E%7Btext%7D
+ title=%7Btext%7D%3E%0A %7Btext%7D%0A
%3C/sp
|
0f3c89943d47691f70f2c62033b2d966b07cc1b1 | Add support for secondary colour overrides for `magazine-comment` and `magazinestandard` (#1526) | packages/styleguide/src/theme/theme-factory.js | packages/styleguide/src/theme/theme-factory.js | import sectionColours, { secondarySectionColours } from "../colours/section";
const sectionColourPicker = (
section = "default",
template = "mainstandard"
) => {
const config = {
indepth: {
...sectionColours,
...secondarySectionColours
},
magazinecomment: {
...sectionColours
},
... | JavaScript | 0 | @@ -297,32 +297,66 @@
..sectionColours
+,%0A ...secondarySectionColours
%0A %7D,%0A maga
@@ -386,32 +386,66 @@
..sectionColours
+,%0A ...secondarySectionColours
%0A %7D,%0A main
|
f321f71408554e9443722b23c60e84b65092908f | disable dragging on maps | modules/mod_ginger_base/lib/js/map.js | modules/mod_ginger_base/lib/js/map.js |
$.widget( "ui.googlemap", {
_create: function() {
var me = this,
widgetElement = $(me.element),
id = widgetElement.attr('id'),
container = widgetElement,
locations = jQuery.parseJSON(widgetElement.data('locations')),
options,
map,
bounds = new google.maps.LatLngBounds(),
info = new google.... | JavaScript | 0 | @@ -816,16 +816,45 @@
ions'));
+%0A%09%09options.draggable = false;
%0A%0A%09%09if (
|
741401f327e824adb501d48a4836a99ad9a71262 | Check whether a property in a form exists | content-scripts/helper.js | content-scripts/helper.js | function getFormElements(form) {
return Object.keys(form)
.filter(key => form[key] instanceof HTMLElement)
.map(key => form[key]);
}
function elementScore(element, regexMap) {
let score = 0;
for(let prop in regexMap) {
regexMap[prop].forEach(pair => {
let regex = pair[0],
reward = pair[1];
if(rege... | JavaScript | 0.000006 | @@ -1226,26 +1226,20 @@
for(let
-credential
+prop
in data
@@ -1243,50 +1243,61 @@
ata)
+ %7B
%0A%09%09
+if(
form%5B
-credential%5D.val(data%5Bcredential%5D);
+prop%5D)%0A%09%09%09form%5Bprop%5D.val(data%5Bprop%5D);%0A%09%7D
%0A%7D%0A%0A
|
8beed1f2ae76535b5be194274ae0bc306b7b3bd3 | Undo last commit | js/numberlookup/NumberLookupService.js | js/numberlookup/NumberLookupService.js | 'use strict';
function NumberLookupService(options) {
this.sources = options.sources.map(function (Constructor) {
return new Constructor();
});
}
NumberLookupService.prototype.lookup = function (number) {
var self = this;
return new Promise(function (resolve) {
var promises = self.sources.map(functio... | JavaScript | 0 | @@ -501,58 +501,8 @@
sult
- %7C%7C (Array.isArray(result) && result.length === 0)
;%0A
|
beb87f306996500c578352920362d6af83ad4de8 | Add 'ui-accordion:visibility' event to handle visibility of header and content of each accordion group | src/main/resources/de/csgis/geobricks/webapp/modules/ui-accordion.js | src/main/resources/de/csgis/geobricks/webapp/modules/ui-accordion.js | define([ "jquery", "message-bus", "ui-commons" ], function($, bus, commons) {
var baseEventName = "ui-accordion";
bus.listen(baseEventName + ":create", function(e, msg) {
var accordion = commons.getOrCreateDiv(msg.div, msg.parentDiv);
accordion.addClass(msg.css);
});
bus.listen(baseEventName + ":add-group", f... | JavaScript | 0 | @@ -511,16 +511,48 @@
%3Cdiv/%3E%22)
+.attr(%22id%22, groupId + %22-header%22)
;%0A%09%09var
@@ -972,12 +972,334 @@
t);%0A%09%7D);
+%0A%0A%09function visibility(id, visibility) %7B%0A%09%09if (visibility !== undefined) %7B%0A%09%09%09var div = $(%22#%22 + id);%0A%09%09%09if (visibility) %7B%0A%09%09%09%09div.show()... |
f987245dfafd1689ffe7a30a0dc205a1b7a22d0c | remove extra space.. | js/solGS/listTypeTrainingPopulation.js | js/solGS/listTypeTrainingPopulation.js |
/**
reference population upload from lists.
Isaak Y Tecle
iyt2@cornell.edu
*/
JSAN.use("CXGN.List");
JSAN.use("jquery.blockUI");
jQuery(document).ready( function() {
var list = new CXGN.List();
var listMenu = list.listSelect("reference_genotypes", ['plots', 'trials']);
if(li... | JavaScript | 0.000003 | @@ -2081,17 +2081,16 @@
lse %7B %0A
-%0A
@@ -6674,33 +6674,32 @@
+ modelId + '%5C%22
-
onclick=%22javasc
|
96a4f42072bf498ef75a0286f84beb68a85e86cc | add iOS6 to iOS workarounds Fixes #5332 - Fixed header jumps around when iOS keyboard disappears | js/widgets/fixedToolbar.workarounds.js | js/widgets/fixedToolbar.workarounds.js | //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
//>>description: Browser specific workarounds for "fixed" headers and footers
//>>label: Toolbars: Fixed: Workarounds
//>>group: Widgets
//>>css.structure: ../css/structure/jquery.mobile.fixedToolbar.css
define( [ "jquery", "../jquery.mobile.widget", "../jqu... | JavaScript | 0 | @@ -1408,59 +1408,8 @@
ios%22
- && wkversion && wkversion %3E 533 && wkversion %3C 536
) %7B
@@ -1424,17 +1424,8 @@
iOS
-5 run all
wor
@@ -1436,18 +1436,8 @@
unds
- for iOS 5
%0A%09%09%09
|
f50f5b36c2cc5f5c0b8134965f9b3b89a292fa63 | Rewrite Decals API for Koa | api/controllers/decal.js | api/controllers/decal.js | 'use strict'
const Errors = require('../errors')
const Decal = require('../classes/Decal')
const User = require('../db').User
const Permission = require('../permission')
class HTTP {
static check (request, response, next) {
if (Object.keys(request.query).length > 0) {
Permission.require('user.read', reque... | JavaScript | 0 | @@ -18,17 +18,16 @@
st Error
-s
= requi
@@ -166,16 +166,89 @@
on')
+%0Aconst DecalsPresenter = require('../classes/Presenters').DecalsPresenter
%0A%0Aclass
HTTP
@@ -243,20 +243,22 @@
%0A%0Aclass
-HTTP
+Decals
%7B%0A sta
@@ -265,38 +265,24 @@
tic
+async
check (
-request, response, next
+ctx
) %7B%0A
@@ ... |
6e92984133b033b68ea2395e4d7fda732435fc49 | Remove JQ set of placholder attribute as this is now done inPython | discussion/static/discussion/scripts/discussion.js | discussion/static/discussion/scripts/discussion.js | $(function() {
// Forum enhancements
// Requires jquery.form.js, jquery.autogrow.js and jquery.placeholder.js
//
function init(context) {
var allPostTextarea = $('.post-form textarea,', context);
var allCommentTextarea = $('.comment-form textarea,', context);
// Initialise post fiel... | JavaScript | 0 | @@ -607,28 +607,24 @@
) %7B%0A
-var
defaultPost
@@ -626,146 +626,8 @@
Post
- = 'Start a conversation';%0A var defaultComment = 'Reply to this conversation';%0A defaultPost.attr('placeholder', defaultPost)
.pla
@@ -669,44 +669,8 @@
rea.
-attr('placeholder', defaultComment).
plac
|
966c453b6e072f6eecb95a5350412f438f333241 | Update Recyclable_OwnerArray.js | CNN/util/Recyclable/Recyclable_OwnerArray.js | CNN/util/Recyclable/Recyclable_OwnerArray.js | export { OwnerArray };
import * as Pool from "../Pool.js";
import { Base } from "./Recyclable_Base.js";
/**
* Similar to Recyclable_Array but it owns its contents (which are instances of Recyclable.Base). It will release its contents
* (by calling their .disposeResources_and_recycleToPool()) in .disposeResources().... | JavaScript | 0.000001 | @@ -62,20 +62,41 @@
mport %7B
-Base
+Array as Recyclable_Array
%7D from
@@ -109,20 +109,21 @@
yclable_
-Base
+Array
.js%22;%0A%0A/
@@ -904,16 +904,27 @@
extends
+Recyclable_
Array %7B%0A
|
2680b26fb89c3dcdb5b1003ddcb61988a3785876 | add en field | lib/app/model/drama.js | lib/app/model/drama.js | "use strict";
import mongoose from 'mongoose';
let Schema = mongoose.Schema;
let dramaSchema = new Schema({
// 드라마 제목
title: { type: String, required: true },
// 드라마 시간
airTime: { type: [Date], required: true },
channel: { type: String },
chatrooms: { type: [Schema.Types.ObjectId], ref: 'chatrooms' },
... | JavaScript | 0.000001 | @@ -323,32 +323,56 @@
ategory: %7B type:
+ String %7D,%0A en: %7B type:
String %7D%0A%7D);%0A%0Ad
|
85d522c73b118384b32da6c3125f26b8c530b19c | add electron-prebuilt to search paths | lib/browser_process.js | lib/browser_process.js | 'use strict';
const child = require('child_process');
const fs = require('fs');
const path = require('path');
const util = require('util');
const which = require('which');
const debug = util.debuglog('browser_process');
const browsers = {
chrome: {
type: 'chrome',
paths: {
darwin: [
'/Applica... | JavaScript | 0.000001 | @@ -1469,32 +1469,98 @@
darwin: %5B%0A
+ 'node_modules/dist/Electron.app/Contents/MacOS/Electron',%0A
'/Applic
@@ -1700,33 +1700,33 @@
ron'),%0A '
-e
+E
lectron',%0A
@@ -1744,32 +1744,68 @@
nux: %5B%0A '
+node_modules/electron-prebuilt/dist/
electron',%0A
@@ -1835,29 ... |
9fda450e860d10896ba0dba9b14be71c1b46b237 | revert removing a space between parameters by mistake | test/sample_project/back/resources/products/variations/variations.js | test/sample_project/back/resources/products/variations/variations.js | var variations = [];
exports.post = function (req,res) {
variations.push({
name: req.body.name,
productsId: req.params.productsId
});
res.end();
};
exports.getIndex = function (res) {
res.json(variations);
};
| JavaScript | 0.000014 | @@ -44,16 +44,17 @@
on (req,
+
res) %7B%0A
|
f01cce9c0305404a2a044bbfbfd8961d40beb3da | add http status code to the response object | lib/casperjs-server.js | lib/casperjs-server.js | var system = require("system");
var Logger = require('./utils/casperLogger');
var logger = new Logger(system.env.CASPER_LOG_FILE || './casper.log');
var casper = require('casper').create({
viewportSize: {width: 1920, height: 1080},
pageSettings: {
"userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.3... | JavaScript | 0.000001 | @@ -3710,16 +3710,59 @@
ualURL;%0A
+%09%09%09%09%09%09%09%09%09%09productDetails.code = json.code;%0A
%09%09%09%09%09%09%09%09
|
df2c1ca6fa837ea7a78300eab366cbb514921c2e | read package version from package.json | lib/cli/version.cli.js | lib/cli/version.cli.js | 'use strict';
var Bluebird = require('bluebird');
/**
*
* @returns {*} promise
* @param parsedArgs - minimist-style parsed args
*/
module.exports = function (parsedArgs) {
//TODO: read from package.json file
var version = '0.0.1';
console.log(version);
return Bluebird.resolve(version);
};
| JavaScript | 0.000001 | @@ -48,196 +48,178 @@
');%0A
-%0A/**%0A *%0A * @returns %7B*%7D promise%0A * @param parsedArgs - minimist-style parsed args%0A */%0Amodule.exports = function (parsedArgs) %7B%0A //TODO: read from package.json file%0A var version = '0.0.1'
+var pkg = require('./../../package.json');%0A%0A/**%0A * Prints OraDBPM versi... |
66eac872b8cbc2f6fcdf5ea67a51a3b4041fd3b7 | Revert to a method where we internally track location state. | lib/client/location.js | lib/client/location.js | var dep = new Deps.Dependency;
var popped = false;
function onclick (e) {
var el = e.currentTarget;
var which = _.isUndefined(e.which) ? e.button : e.which;
var href = el.href;
var path = el.pathname + el.search + el.hash;
// we only want to handle clicks on links which:
// - are with the left mouse butt... | JavaScript | 0 | @@ -43,16 +43,290 @@
= false;
+%0A// XXX: we have to store the state internally (rather than just calling out%0A// to window.location) due to an android 2.3 bug. See:%0A// https://github.com/EventedMind/iron-router/issues/350%0Avar currentState = %7B%0A path: location.pathname + location.search + location.hash%0A%7... |
820b462709f2a76881d289a18dad9345effd0215 | Split git commands to multiple calls to `runCommand` (#67) | lib/commands/commit.js | lib/commands/commit.js | 'use strict';
var exec = require('child_process').exec;
var RSVP = require('rsvp');
module.exports = {
name: 'github-pages:commit',
aliases: ['gh-pages:commit'],
description: 'Build the test app for production and commit it into a git branch',
works: 'insideProject',
availableOptions: [{
name: ... | JavaScript | 0.000001 | @@ -1587,34 +1587,46 @@
ions.destination
- +
+, execOptions)
%0A
@@ -1626,31 +1626,72 @@
- ' &&
+.then(function() %7B%0A return runCommand('
mkdir '
@@ -1711,18 +1711,31 @@
tination
- +
+, execOptions);
%0A
@@ -1730,32 +1730,40 @@
ns);%0A
+ ... |
94974e7e185511361f17eb35c28de4564cbfc25d | Use switch statement instead of if/else in server | lib/commands/server.js | lib/commands/server.js | var http = require('http')
, events = require('../services/event_manager')
, notify = require('../services/notifier')
, growl_enabled = false;
exports.requestHandler = function(req, res) {
var body = '';
req.on('data', function(chunk) {
body += chunk.toString();
});
req.on('end', function() {
v... | JavaScript | 0.000002 | @@ -368,19 +368,22 @@
%7B%7D;%0A
-if
+switch
(req.met
@@ -389,46 +389,45 @@
thod
- === 'GET') %7B%0A // Block on event%0A
+) %7B%0A case 'GET': // Flinch on%0A
@@ -469,84 +469,72 @@
-%7D else if (req.method === 'POST') %7B%0A // Announce status of event%0A
+ break;%0A case '... |
18a130af77b7517ece8c3fe89d49bcf66b3659c2 | Stop Klarna from flashing on billing address change - Fix for ECPINT-394. | view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js | view/frontend/web/js/view/payment/method-renderer/checkoutcom_apm.js | /**
* Checkout.com
* Authorized and regulated as an electronic money institution
* by the UK Financial Conduct Authority (FCA) under number 900816.
*
* PHP version 7
*
* @category Magento2
* @package Checkout.com
* @author Platforms Development Team <platforms@checkout.com>
* @copyright 2010-2019 Checko... | JavaScript | 0 | @@ -5318,16 +5318,23 @@
.empty()
+.hide()
;%0A
|
6cfbae403abc3cf690565b09569f71cdd41a8372 | document run alias for run-script | lib/config/cmd-list.js | lib/config/cmd-list.js | var extend = Object.assign || require('util')._extend
// short names for common things
var shorthands = {
'un': 'uninstall',
'rb': 'rebuild',
'list': 'ls',
'ln': 'link',
'i': 'install',
'it': 'install-test',
'up': 'update',
'c': 'config',
's': 'search',
'se': 'search',
'unstar': 'star', // same f... | JavaScript | 0.000001 | @@ -385,16 +385,39 @@
: 'view'
+,%0A 'run': 'run-script'
%0A%7D%0A%0Avar
|
704e57c81520fc7678a312ce7b4e3001fff0ed7a | fix error handling of forum-api create response #915 | lib/forum-api/index.js | lib/forum-api/index.js | var mongoose = require('mongoose');
var express = require('express');
var api = require('lib/db-api');
var utils = require('lib/utils');
var restrict = utils.restrict;
var maintenance = utils.maintenance;
var Log = require('debug');
var log = new Log('democracyos:forum-api');
var app = module.exports = express();
ap... | JavaScript | 0 | @@ -1615,150 +1615,44 @@
rr)
-%7B%0A log(err);%0A return res.status(500).json(%7B error: 'So
+return _handleError(e
rr
-y
,
-there was an unexpected error. Try again later please'%7D);%0A %7D else %7B%0A
+req, res);%0A
@@ -1695,26 +1695,24 @@
ully');%0A
-
return res.s
@@ -1735,22 +1735... |
9cc074ff2a5480128394d24929fccac80d7e958a | fix file replacement viewing in MultiFileClient | exampleCourse/clientFilesCourse/MultiFileClient.js | exampleCourse/clientFilesCourse/MultiFileClient.js | var httpDownloadPrefix = 'data:text/plain;base64,';
define(["SimpleClient", "underscore", "clientCode/dropzone"], function(SimpleClient, _, Dropzone) {
return function(questionTemplate, submissionTemplate) {
var simpleClient = new SimpleClient.SimpleClient({questionTemplate: questionTemplate, submissionTem... | JavaScript | 0 | @@ -976,32 +976,142 @@
'files') %7C%7C %5B%5D;%0A
+ files = JSON.parse(JSON.stringify(files)); // deep clone needed to avoid changing backbone object%0A
var
|
1879f243dd94a430ee638927dcf5d26c7858ffd0 | generate shorter code | lib/runtime/TrustedTypesRuntimeModule.js | lib/runtime/TrustedTypesRuntimeModule.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
"use strict";
const RuntimeGlobals = require("../RuntimeGlobals");
const Template = require("../Template");
const HelperRuntimeModule = require("./HelperRuntimeModule");
class TrustedTypesRuntimeModule extends HelperRuntimeModule {
constructor() ... | JavaScript | 1 | @@ -702,37 +702,41 @@
runtimeTemplate.
-basic
+returning
Function(%22url%22,
@@ -739,23 +739,13 @@
l%22,
-%5B%22return url;%22%5D
+%22url%22
)%7D;%60
@@ -968,23 +968,16 @@
%09%09%09%22if (
-typeof
policy =
@@ -979,17 +979,16 @@
icy ===
-'
undefine
@@ -988,17 +988,16 @@
ndefined
-'
) %7B%22,%0A%09%09
@@ -1... |
154ff9e80031b69a3a4295757c61a27c1e007770 | move autoclose log | lib/workers/repository/finalise/prune.js | lib/workers/repository/finalise/prune.js | module.exports = {
pruneStaleBranches,
};
async function pruneStaleBranches(config, branchList) {
// TODO: try/catch
logger.debug('Removing any stale branches');
logger.trace({ config }, `pruneStaleBranches`);
logger.debug(`config.repoIsOnboarded=${config.repoIsOnboarded}`);
if (!branchList) {
logger.d... | JavaScript | 0.000008 | @@ -1682,24 +1682,100 @@
toclosed%60);%0A
+ logger.info(%7B prNo: pr.number, prTitle: pr.title %7D, 'PR autoclosed');%0A
%7D%0A co
@@ -1852,82 +1852,8 @@
r);%0A
- logger.info(%7B prNo: pr.number, prTitle: pr.title %7D, 'PR autoclosed');%0A
%7D%0A
|
bdf3c423bf715620cf3cc74f428ba1a2c2957c72 | fix callback url error | app/util/Util.js | app/util/Util.js | Ext.define('Wodu.util.Util', {
singleton: true,
myApikey: '0d8bbcbe916a9aec28a3363bb43fd0c4',
mySecret: '7d5e2e16976b6d4a',
showNavBarTitle: function(theNavView, title) {
var navBar = theNavView.getNavigationBar();
if (theNavView.getInnerItems().length === navBar.backButtonStack.length) {... | JavaScript | 0.000001 | @@ -1248,17 +1248,16 @@
aapp.com
-/
', // re
|
b9eac67f12b83c7e7e369757ca1bb8069c1a1ef9 | remove console.log() | assets/github.js | assets/github.js | (function ($, undefined) {
// Put custom repo URL's in this object, keyed by repo name.
var repoUrls = {};
function repoUrl(repo) {
return repoUrls[repo.name] || repo.html_url;
}
// Put custom repo descriptions in this object, keyed by repo name.
var repoDescriptions = {
"bootstrap": "An HTML, CS... | JavaScript | 0.000002 | @@ -1822,63 +1822,8 @@
));%0A
- console.log(repo);%0A console.log(repo.fork);%0A
|
2a096d956428458497610291a49c5f83f67a0a7c | Remove jquery cookie from shim config. | assets/js/app.js | assets/js/app.js | requirejs.config({
baseUrl: 'assets/js',
paths: {
'jquery': '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min',
'bootstrap': '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min',
'underscore': '//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min',
'... | JavaScript | 0 | @@ -493,134 +493,8 @@
in'%0A
- %7D,%0A shim: %7B%0A 'jquery-cookie': %7B%0A deps: %5B'jquery'%5D,%0A exports: 'jQuery.fn.cookie'%0A %7D%0A
|
d4b0545a943615d38487419c1e90666220be1eb5 | fix main | lib/assets/javascripts/esphinx/main.js | lib/assets/javascripts/esphinx/main.js | //= require ./extensor
"use strict";
var
esPhinx,
Extensor,
Iterator;
// IIFE
esPhinx = (function () {
return function esPhinx (selector, context) {
var
$ = esPhinx,
mainReference = this,
collection = [],
selectorsPattern = /(^[*.#])|(\[.+\])|... | JavaScript | 0.000088 | @@ -2618,16 +2618,84 @@
ector);%0A
+%0A if (selector.constructor !== HTMLCollection) %7B%0A
@@ -2723,32 +2723,50 @@
%5B0%5D = selector;%0A
+ %7D%0A
%7D%0A%0A
|
ef75e2efae3c5a7d87cbba9dc11075fc55a65aa6 | Change button to Next in add profile test | funnel/assets/cypress/integration/00_addProfile.js | funnel/assets/cypress/integration/00_addProfile.js | describe('Profile', function() {
const owner = require('../fixtures/user.json').owner;
const profile = require('../fixtures/profile.json');
it('Create a new profile', function() {
cy.login('/organizations', owner.username, owner.password);
cy.get('a')
.contains('new organization')
.click();
... | JavaScript | 0 | @@ -532,22 +532,20 @@
ntains('
-Create
+Next
')%0A
|
7f4fe73d5a5c61295da2c77708e984c46d6f881f | Use "themes" service in catalog directive | geoportailv3/static/js/catalog/catalogdirective.js | geoportailv3/static/js/catalog/catalogdirective.js | /**
* @fileoverview This file provides the "catalog" directive. That directive is
* used to create the catalog tree in the page. It is based on the
* "ngeo-layertree" directive. And it relies on c2cgeoportal's "themes" web
* service.
*
* Example:
*
* <app-catalog app-catalog-map="::mainCtrl.map"></app-catalog>
... | JavaScript | 0.000001 | @@ -615,24 +615,52 @@
alogNode');%0A
+goog.require('app.Themes');%0A
goog.require
@@ -1265,93 +1265,43 @@
m %7Ba
-ngular.$http%7D $http Angular http service.%0A * @param %7Bstring%7D treeUrl Catalog tree URL
+pp.Themes%7D appThemes Themes service
.%0A *
@@ -1481,22 +1481,17 @@
ion(
-$http, treeUrl
+appThemes
, ap... |
bd753807333ddba357eac26d754a1df92e8573fd | Fix travis error 2 | blueprints/flexberry-list-form/files/__root__/controllers/__name__.js | blueprints/flexberry-list-form/files/__root__/controllers/__name__.js | import ListFormController from 'ember-flexberry/controllers/list-form';
export default ListFormController.extend({
/**
Name of related edit form route.
@property editFormRoute
@type String
@default '<%= editForm %>'
*/
editFormRoute: '<%= editForm %>'
});
| JavaScript | 0.00001 | @@ -109,16 +109,18 @@
xtend(%7B%0A
+
/**%0A
|
b2635680944c9f330971f3f5321639db3e0b12f5 | increase transition speed | client-vendor/after-body/jquery.clickFeedback/jquery.clickFeedback.js | client-vendor/after-body/jquery.clickFeedback/jquery.clickFeedback.js | /*
* Author: CM
* Dependencies: jquery.transit.js
*/
(function($) {
$(document).on('mousedown', '.clickFeedback', function(event) {
var $this = $(this);
var buttonOffset = $this.offset();
var feedbackSize = 2 * Math.sqrt(Math.pow($this.outerWidth(), 2) + Math.pow($this.outerHeight(), 2));
var po... | JavaScript | 0.000001 | @@ -704,9 +704,9 @@
%7D, '
-3
+2
00ms
|
9e2fdc6e27322a436c5cf1c0b9c7646509861a90 | Update send_message_to_console_MOD.js (#405) | actions/send_message_to_console_MOD.js | actions/send_message_to_console_MOD.js | module.exports = {
name: "Send Message to Console",
section: "Other Stuff",
subtitle: function(data) {
if (data.tosend.length > 0) {
return `<font color="${data.color}">${data.tosend}</font>`;
} else {
return "Please enter a message!";
}
},
fields: ["tosend", "color"],
html: function(isEvent, data)... | JavaScript | 0 | @@ -603,51 +603,8 @@
();%0A
-%09%09Mods.CheckAndInstallNodeModule(%22chalk%22);%0A
%09%09co
|
a4ec5e5f87296b31e47f9d1e8bae57003c682226 | Fix registrations form fields visibility (#562) | decidim-core/app/assets/javascripts/decidim/user_registrations.js.es6 | decidim-core/app/assets/javascripts/decidim/user_registrations.js.es6 | $(document).on('turbolinks:load', () => {
const $userRegistrationForm = $('.register-form');
const $userGroupFields = $userRegistrationForm.find('.user-group-fields');
const inputSelector = 'input[name="user[sign_up_as]"]';
const setGroupFieldsVisibility = (value) => {
if (value === 'user') {
... | JavaScript | 0 | @@ -453,16 +453,19 @@
rm.find(
+%60$%7B
inputSel
@@ -469,16 +469,26 @@
Selector
+%7D:checked%60
).val())
|
3e991189d86da2aa3620701e0f04015955877c0c | Add methods to clear cache | addon/mixins/ember-data-store-cache.js | addon/mixins/ember-data-store-cache.js | /**
* Provides findWithCache method that forces a minimum cache time on the find
* requests.
*
* @class Ember Data Store Cache Mixin
*/
import Ember from "ember";
export default Ember.Mixin.create({
/**
* Number of seconds to require caching when using findWithCache method.
*
* @param cacheS... | JavaScript | 0.000001 | @@ -90,18 +90,17 @@
ests.%0A *
-
%0A
+
* @clas
@@ -282,33 +282,32 @@
e method.%0A *
-
%0A * @param c
@@ -392,25 +392,17 @@
s: 600,%0A
-
%0A
+
/**%0A
@@ -479,33 +479,32 @@
imeframe.%0A *
-
%0A * @method
@@ -691,17 +691,16 @@
ache for
-
%0A *
@@ -877,29 +877,17 @@
nd al... |
8cfd21f6334c3198123b6981a677b95f892805ea | fix after cash-dom migration | addon/mixins/mobile-input-component.js | addon/mixins/mobile-input-component.js | import {
isTouchDevice
} from '../utils/mobile-utils';
import {
get
} from '@ember/object';
import Mixin from '@ember/object/mixin';
import {
scheduleOnce
} from '@ember/runloop';
import $ from 'cash-dom';
import {
inject
} from '@ember/service';
import {
alias
} from '@ember/object/computed';
import $ from '... | JavaScript | 0.000002 | @@ -301,34 +301,8 @@
ed';
-%0Aimport $ from 'cash-dom';
%0A%0Aex
|
42ec4db561623c9be33b3cd8969171f8a18a5c27 | Fix Apollo Client instance caching on client-side | lib/graphql/client/initializeApollo.js | lib/graphql/client/initializeApollo.js | import {ApolloClient, HttpLink, InMemoryCache} from "@apollo/client"
import fetch from "isomorphic-fetch"
/**
* @typedef {import("@apollo/client").NormalizedCacheObject} NormalizedCacheObject
*/
/**
* @type {ApolloClient<NormalizedCacheObject>}
*/
let cachedClient = null
const createApollo = () => new ApolloCli... | JavaScript | 0.000001 | @@ -970,22 +970,68 @@
nt%0A %7D%0A%0A
+ // Cache client if it wasn't cached before%0A
if (
+!
cachedCl
|
94ce50e0599246be6eafe2c5f1f457995d5e18dc | correct instructions | lib/modules/apostrophe-groups/index.js | lib/modules/apostrophe-groups/index.js | // Provide a way to group [apostrophe-users](../apostrophe-users/index.html) together
// and assign permissions to them. This module is always active "under the hood," even if
// you take advantage of the `groups` option of `apostrophe-users` to skip a separate
// admin bar button for managing groups. **To have an admi... | JavaScript | 0.999999 | @@ -301,19 +301,19 @@
s. **To
-hav
+mak
e an adm
@@ -330,18 +330,93 @@
ton
-for groups
+available%0A// for managing groups, do NOT set the %60groups%60 option when configuring the
%0A//
@@ -438,21 +438,27 @@
rs%60
-should not be
+module. That option
con
@@ -467,26 +467,67 @@
gure
-d at project le
+s a hardc... |
ffd66c2e4a5c939ceb691e4f3927906f0c82dcfe | Update textediter.js | pages/textediter/textediter.js | pages/textediter/textediter.js | const mongo = require('mongodb');
var MongoClient = mongo.MongoClient;
function startdb(){
//code from 'ENOW code editor'
var code = document.getElementById("iframecode").contentWindow['code'];
//name of sourcecode saved in mongodb
var name = document.getElementById('nameofcode');
//connect to mongodb. inser... | JavaScript | 0.000001 | @@ -3,343 +3,732 @@
nst
-mongo = require('mongodb');%0Avar MongoClient = mongo.MongoClient;%0A%0A%0A%0Afunction startdb()%7B%0A%09//code from 'ENOW code editor'%0A%09var code = document.getElementById(%22iframecode%22).contentWindow%5B'code'%5D;%0A%09//name of sourcecode saved in mongodb%0A var name = document.get... |
c836187925f14d38700d173704df16784f3b834a | Order applied to measurements query. | lib/assets/core/javascripts/cartodb3/data/data-observatory/measurements-collection.js | lib/assets/core/javascripts/cartodb3/data/data-observatory/measurements-collection.js | var _ = require('underscore');
var BaseCollection = require('./data-observatory-base-collection');
var BaseModel = require('../../components/custom-list/custom-list-item-model');
var MEASUREMENTS_QUERY_WITH_REGION = 'SELECT * FROM OBS_GetAvailableNumerators((SELECT ST_SetSRID(ST_Extent(the_geom), 4326) FROM (<%- query... | JavaScript | 0 | @@ -344,16 +344,40 @@
) numers
+ ORDER BY numer_name ASC
';%0Avar M
@@ -529,16 +529,40 @@
) numers
+ ORDER BY numer_name ASC
';%0A%0Amodu
|
de0d7e5ebd4f4b8364a7a60723597e4a392dc04b | Fix workaround for avoiding rich formatting in article title | peel/frontend/scripts/react.js | peel/frontend/scripts/react.js | /** @jsx React.DOM */
var EventHandlerMixin = {
onBlur: function(event) {
var html = this.getDOMNode().innerHTML,
fn = this.props.fieldName,
data = {};
$(this.getDOMNode()).hallo({editable: false});
data[fn] = html;
this.props.updateArticle(data, true);
},
onMouseDown: function(e... | JavaScript | 0.000001 | @@ -639,33 +639,25 @@
in%5D,%0A%0A
-componentDidMount
+onKeyDown
: functi
@@ -651,36 +651,100 @@
yDown: function(
+e
) %7B%0A
+ // Persist the data on Enter%0A if (e.keyCode === 13) %7B%0A
$(this.getDO
@@ -756,234 +756,202 @@
()).
-on('
hallo
-modified', this.onHalloModified);%0A %7D,%0A%0A onHal... |
b2ae81f26b03f509f823a197b2ff734f8bbdcd71 | fix on js | _Build/vue/components/VExercise/VExercise.js | _Build/vue/components/VExercise/VExercise.js | "use strict";
import moment from "moment";
export default {
data(){
return {
result: {
reps: '',
weight: ''
}
};
},
props: [
'exercise',
'area',
'stopwatch'
],
computed: {
time(){
return this.stopwatch.time;
},
stats(){
var max = 0;
var last = 0;
var target = 0;
var... | JavaScript | 0.000001 | @@ -38,16 +38,71 @@
ment%22;%0A%0A
+var Workout = require('../../../js/libs/workout.js');%0A%0A
export d
@@ -726,23 +726,16 @@
rkout =
-window.
Workout(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.