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 |
|---|---|---|---|---|---|---|---|
f95681fd001c406a4de530b13ec348190ba66f56 | add deprecations for .dropdown-menu-content | deprecations.js | deprecations.js | /*
* This object's keys are (semver) version numbers, and the
* values are arrays of objects each with a "selectors"
* array and a "message" string.
*/
const versionDeprecations = {
'13.0.0': [
{
selectors: [
'.btn-purple',
'.btn-purple:focus',
'.btn-purple.focus',
'.btn-... | JavaScript | 0.000003 | @@ -1435,16 +1435,256 @@
ement.%60%0A
+ %7D,%0A %7B%0A selectors: %5B%0A '.dropdown-menu-content',%0A '.dropdown.active .dropdown-menu-content',%0A '.dropdown-menu-content.anim-scale-in'%0A %5D,%0A message: %60The %22dropdown-menu-content%22 class is unnecessary.%60%0A
%7... |
61ca4f89eef62ddf12cb7a2ad962c60d766c452c | add deprecation for .UnderlineNav-item.selected | deprecations.js | deprecations.js | /*
* This object's keys are (semver) version numbers, and the
* values are arrays of objects each with a "selectors"
* array and a "message" string.
*/
const versionDeprecations = {
'14.0.0': [
{
variables: ['$status-pending'],
message: `This variable is deprecated.`
},
{
variables: ... | JavaScript | 0.000001 | @@ -195,24 +195,245 @@
0': %5B%0A %7B%0A
+ selectors: %5B'.UnderlineNav-item.selected', '.UnderlineNav-item.selected .UnderlineNav-octicon'%5D,%0A message: %60Please use aria-selected=%22true%22 to indicate the selected state of an UnderlineNav item.%60%0A %7D,%0A %7B%0A
variab
|
9c2086204891e1b78e8cc077272018238d0ae5c1 | Use an atomic update operation | server/vote.js | server/vote.js | // TODO: should the baseScore be stored, and updated at vote time?
// This interface should change and become more OO, this'll do for now
var Scoring = {
// re-run the scoring algorithm on a single object
updateObject: function(object) {
// just count the number of votes for now
var baseScore = MyVote... | JavaScript | 0.000001 | @@ -311,52 +311,20 @@
e =
-MyVotes.find(%7BvotedFor: object._id%7D).count()
+object.votes
;%0A
@@ -862,16 +862,18 @@
var user
+Id
= this.
@@ -894,16 +894,18 @@
if(!user
+Id
) return
@@ -916,174 +916,281 @@
se;%0A
+
%0A
-var myvote = MyVotes.findOne(%7BvotedFor: post._id, user
+// atomically update t... |
b321a8b64846596969046aa75691bad099c591dd | Make delete use dynamic row indexes. | lib/operators.js | lib/operators.js | var inherits = require('util').inherits;
var Transform = require('stream').Transform;
var toIntArr = require('./tools').toIntArr;
var csv = require('csv');
var _ = require('underscore');
operators = {
incsv: function(args) {
return csv()
.transform(function(row, index) {
return JSON.stringify({'row... | JavaScript | 0 | @@ -1429,16 +1429,37 @@
t(',');%0A
+ this._index = 0;%0A
%7D,%0A%0A
@@ -3144,35 +3144,8 @@
%7D%0A
- json = JSON.parse(chunk);
%0A v
@@ -3153,21 +3153,22 @@
r idx =
-json.
+this._
index;%0A%0A
@@ -3513,24 +3513,45 @@
sh(chunk);%0A%0A
+ this._index += 1;%0A%0A
done();%0A%7D;
|
cb1976d8af878a2b1f30614c88695626af40bc09 | Add ajax.deformify and form decoding on form requests | src/js/ajax.js | src/js/ajax.js | /*
* ajax.js by Meiguro - MIT License
*/
var ajax = (function(){
var formify = function(data) {
var params = [], i = 0;
for (var name in data) {
params[i++] = encodeURI(name) + '=' + encodeURI(data[name]);
}
return params.join('&');
};
/**
* ajax options. There are various properties with url being th... | JavaScript | 0 | @@ -246,16 +246,243 @@
');%0A%7D;%0A%0A
+var deformify = function(form) %7B%0A var params = %7B%7D;%0A form.replace(/(?:(%5B%5E=&%5D*)=?(%5B%5E&%5D*)?)(?:&%7C$)/g, function(_, name, value) %7B%0A if (name) %7B%0A params%5Bname%5D = value %7C%7C true;%0A %7D%0A return _;%0A %7D);%0A return params;%0A%... |
29a0706cdac372c1165622a53f49f344722f0964 | remove binding for onApiLoad; called internally from picker.js with jQuery.getScript() | src/js/init.js | src/js/init.js | /*
This function contains initialization code and event bindings for page elements
*/
var $ = jQuery = require('jquery');
require('../../node_modules/bootstrap-sass/assets/javascripts/bootstrap/button.js');
require('../../node_modules/bootstrap-sass/assets/javascripts/bootstrap/modal.js');
require('../../node... | JavaScript | 0 | @@ -86,16 +86,31 @@
%0D%0A*/%0D%0A%0D%0A
+%0D%0A// Requires%0D%0A
var $ =
@@ -447,16 +447,45 @@
);%0D%0A%0D%0A%0D%0A
+%0D%0A// window.onload bindings%0D%0A
$(docume
@@ -512,31 +512,8 @@
%7B%0D%0A
- picker.onApiLoad();%0D%0A
$(
@@ -626,24 +626,46 @@
;%0D%0A%7D);%0D%0A%0D%0A%0D%0A
+%0D%0A// Form submission%0D... |
f6f67a4a6463136966f233c71b7e792bc6d3f039 | add strict mode in js file | src/js/main.js | src/js/main.js | (function() {
var module = (function() {
function init() {
console.info('Module initialized.');
}
return {
init: init
};
})();
module.init();
})(); | JavaScript | 0.000001 | @@ -13,12 +13,52 @@
%7B%0A%0A%09
-var
+%22use strict%22;%0A%09%0A%09var app = app %7C%7C %7B%7D;%0A%0A%09app.
modu
@@ -182,16 +182,20 @@
%7D)();%0A%0A%09
+app.
module.i
|
665b34a4a0a9e63acb3b0b8ee55b932995b71f1e | Update main.js | src/js/main.js | src/js/main.js | /* global ga:false */
(function (window, undefined) {
'use strict';
var document = window.document;
// -----------------------------------------------------------------
// | Google Universal Analytics |
// -------------------------------------------------------... | JavaScript | 0 | @@ -5196,24 +5196,189 @@
, 'auto');%0A%0A
+ // anonymizeIP%0A // https://developers.google.com/analytics/devguides/collection/analyticsjs/ip-anonymization%0A ga('set', 'anonymizeIp', true);%0A%0A
// S
@@ -5967,16 +5967,22 @@
ps://dev
+eloper
.twitter
@@ -5990,11 +5990,36 @@
com/
-web
+... |
5c6af4003654d2a0f5099cfcfe9744c0c97ab67f | Fix #255 | make/globals.js | make/globals.js | "use strict";
const
fs = require("fs"),
sources = JSON.parse(fs.readFileSync("./src/sources.json"))
.filter(source => source.load !== false)
.map(source => source.name);
sources.unshift("boot"); // Also include boot
let
rc = 0,
rewrites = {};
class Module {
constructor (name) {
... | JavaScript | 0.000001 | @@ -115,130 +115,35 @@
.
-filter(source =%3E source.load !== false)%0A .map(source =%3E source.name);%0Asources.unshift(%22boot%22); // Also include boot
+map(source =%3E source.name);
%0A%0Ale
@@ -4619,16 +4619,49 @@
cies = %7B
+%0A boot: %5B%5D // No dependencies%0A
%7D;%0Asourc
@@ -4922,38 +4922,8 @... |
c932b97898cfc52b3da1406dea8e2a1c24f806f2 | fix slider bug, add dependency | src/js/main.js | src/js/main.js | requirejs.config({
"paths": {
"lib": "../lib",
"bootstrap": '../lib/bootstrap-3.3.6-dist/js/bootstrap',
"jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min",
"jquery-ui": "//code.jquery.com/ui/1.11.4/jquery-ui",
"angular": "//ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular",
"ngAnim... | JavaScript | 0 | @@ -566,16 +566,37 @@
angular'
+,%0A%09%09%09deps: %5B'jquery'%5D
%0A%09%09%7D,%0A%09%09
|
8e384287edd98aadf244f12611cad40b61401fc7 | Switch metrics environments from dev/staging to preview (#8711) | src/platform/monitoring/frontend-metrics/feature-flag.js | src/platform/monitoring/frontend-metrics/feature-flag.js | /**
* Returns whether the current environment should have metrics enabled.
* @returns {boolean}
* @module platform/monitoring/frontend-metrics/feature-flag
*/
export default function isMetricsEnabled() {
const environments = ['vagovdev', 'vagovstaging'];
return !!environments.includes(__BUILDTYPE__);
}
| JavaScript | 0 | @@ -251,16 +251,27 @@
staging'
+, 'preview'
%5D;%0A%0A re
|
f3645bf260d2a5f895a8bcf4aa63a71b6678c581 | add mode options for landscape | filter.js | filter.js | #!/usr/bin/env node
const config = require('./config')
const path = require('path')
const program = require('commander')
const commands = require('./commands')
const ffmpeg = require('fluent-ffmpeg')
//paths to the ffmpeg binaries for fluent-ffmpeg
ffmpeg.setFfmpegPath(config.ffmpegPath)
ffmpeg.setFfprobePath(co... | JavaScript | 0 | @@ -609,16 +609,29 @@
(--speed
+, --landscape
).')%0A .
@@ -1097,16 +1097,44 @@
eo into
+landscape mode. Defaults to
fuzzy-cr
@@ -1221,24 +1221,178 @@
TV news.')%0A
+ .option('--landscape-mode %5Bstring%5D', 'Set the background effect mode for the landscape conversion: %22fuzzy%22 (the default), %22none%22 or... |
3c4ef46c3326b378aa0d6c3f400fd573b73f70e8 | Change join to event-detail and add ajax request on main controller. | src/js/main.js | src/js/main.js | ;(function(){
angular.module('flockTogether', ['ngRoute'], function($routeProvider, $httpProvider) {
$routeProvider
.when('/', {
templateUrl: 'partials/home.html',
controller: 'homeCtrl'
})//END .when '/home'
.when('/login', {
templateUrl: 'partials/login.html',
... | JavaScript | 0 | @@ -510,20 +510,28 @@
.when('/
-join
+event-detail
/:id', %7B
@@ -562,20 +562,28 @@
artials/
-join
+event_detail
.html',%0A
@@ -607,17 +607,14 @@
r: '
-joinEvent
+detail
Ctrl
@@ -716,16 +716,155 @@
scope)%7B%0A
+ $http.get('api/event.json')%0A .then(function(response)%7B%0A $scope.events = r... |
2f055ba5a9b411c41aafeeeb35b67e0e31d48e14 | remove unused variable | lib/rndphrase.js | lib/rndphrase.js | #ifndef __RndPhrase__
#define __RndPhrase__
#include "lib/cubehash.js"
#define ENTER_KEY 13
var RndPhrase = {
mods : [],
alphabet : "abcdefghijklmnopqrstuvwxyz0123456789",
hash : function(seed, passwd, host) {
var H = CubeHash.hash;
return RndPhrase.pack(H(H(H(passwd + '$' + host) + seed) ... | JavaScript | 0.00003 | @@ -68,29 +68,8 @@
.js%22
-%0A#define ENTER_KEY 13
%0A%0Ava
|
d0ac83a2708d985627a0490d69dff05baa63237a | Remove duplicate triggering object on certain events | Backbone.listenFor.js | Backbone.listenFor.js | (function(){
//Create the events cache for 'listenFor'
var eventsCache = _.clone(Backbone.Events);
var eventsRouter = function(evt, name, callback, context){
if(typeof name === 'object'){
callback = callback || this;
}
eventsCache[evt](name, callback, context || this);
return this;
};
//Back up t... | JavaScript | 0.000001 | @@ -1338,17 +1338,209 @@
s, 0);%0A%09
+%09%09
%0A
+%09%09%09//Only add the triggering object if it is not already there%0A%09%09%09//It will already be there on many %22native%22 Backbone events%0A%09%09%09//such as model change events%0A%09%09%09if(arguments%5B1%5D !== this)%7B%0A%09
%09%09%09args.
@@ -1552,16 +155... |
8369c2946a569ee8ff405a65f0432b8fd07efabe | fix 154 by documenting .cast | lib/rsvp/cast.js | lib/rsvp/cast.js | function cast(object) {
/*jshint validthis:true */
if (object && typeof object === 'object' && object.constructor === this) {
return object;
}
var Promise = this;
return new Promise(function(resolve) {
resolve(object);
});
}
export { cast };
| JavaScript | 0 | @@ -1,16 +1,896 @@
+/**%0A %60RSVP.cast%60 returns the same object, unless the object value being%0A passed in is not an object. In that case, a promise will be returned%0A that will become fulfilled with the passed value.%0A%0A Casting an object returns the same object:%0A%0A %60%60%60javascript%0A%0A var promis... |
457db21763d4de24aae0bcff77236ec3a2180c35 | refine dns | lib/rules/dns.js | lib/rules/dns.js | var dns = require('dns');
var updateQueue = [];
var dnsCache = {};
var callbacks = {};
var reqCount = 12;
var TIMEOUT = 6000;
function lookupDNS(hostname, callback) {
var list = callbacks[hostname];
if (list) {
list.push(callback);
return;
}
callbacks[hostname] = list = [callback];
var done;
function execC... | JavaScript | 0.999973 | @@ -99,16 +99,65 @@
t = 12;%0A
+var fastReqCount = 36;%0Avar fastUpdateCount = 30;%0A
var TIME
@@ -1145,49 +1145,33 @@
t;%0A%09
-updateHost();%0A%7D%0A%0Afunction updateHost
+setTimeout(function
() %7B%0A
+%09
%09var
@@ -1202,33 +1202,86 @@
);%0A%09
-setTimeout(function(
+%09host && updateHost(host);%0A%09%7D, TI... |
0d0f7fba08f0cfa35b45b236e9fea3036c53cac8 | Add W1D4 to scheduler | lib/scheduler.js | lib/scheduler.js | // 'use strict';
var schedule = require('node-schedule');
// var c = require('./channels.js');
// var d = require('./daily.js');
// var slack = require('./slack.js');
module.exports = scheduler;
function scheduler() {
var events = [];
events = events.concat(require('../schedules/_students_daily.js'));
events... | JavaScript | 0.000001 | @@ -498,24 +498,83 @@
/W1D3.js'));
+%0A events = events.concat(require('../schedules/W1D4.js'));
%0A%0A events.f
|
509749a9b912864dc36a840c70a3cc3cae4c51a3 | remove unnecessary try..catch | lib/sdk/index.js | lib/sdk/index.js | 'use strict';
const DysmsapiClient = require('@alicloud/dysmsapi')
const DybaseapiClient = require('@alicloud/dybaseapi')
const MNSClient = require('@alicloud/mns')
// 短信回执报告:SmsReport,短信上行:SmsUp
const msgTypeList = ["SmsReport", "SmsUp"]
const DYSMSAPI_ENDPOINT = 'http://dysmsapi.aliyuncs.com'
const DYBASEAPI_ENDPO... | JavaScript | 0.000001 | @@ -2712,26 +2712,9 @@
%7B%7D%0A
- try %7B%0A
+%0A
@@ -2820,28 +2820,24 @@
s);%0A
-
result.recei
@@ -2854,20 +2854,16 @@
ceived;%0A
-
@@ -2982,28 +2982,24 @@
e);%0A
-
result.delet
@@ -3021,28 +3021,24 @@
fo;%0A
-
return resul
@@ -3044,109 +3044... |
8acbb10dfc936ab6e6e44bdf43203e548e019b7a | Rebuild crel.min.js | crel.min.js | crel.min.js | ((e,t)=>{"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.crel=t()})(this,()=>{var e="function",t="object",n="attrMap",r="isNode",o="isElement",i=document,a=(e,t)=>typeof e===t,f=(e,t)=>{null!==t&&(Array.isArray(t)?t.map(t=>f(e,t)):(d[r](t)||(t=i.createTextNode(t)),e.appendC... | JavaScript | 0.003805 | @@ -1,194 +1,40 @@
-(
(e
-,t)=%3E%7B%22object%22==typeof exports?module.exports=t():%22function%22==typeof define&&define.amd?define(t):e.crel=t()%7D)(this,()=%3E%7Bvar e=%22function%22,t=%22object%22,n=%22attrMap%22,r=%22isNode%22,o=%22isElement%22,i
+=%3E%7Bconst t=%22function%22,n=%22isNode%22,r
=doc
@@ -39,17 +39... |
d8d49e97e025a123bcf35dd97b0c94526b3ebba7 | add index creation to neighbor analysis | code/analysis/neighborAnalysis.js | code/analysis/neighborAnalysis.js | var topNeighborsForTag = function(tag, n) {
var tag_id = db.tag_graph_nodes.findOne({tag: tag})._id
var edges = db.tag_graph_edges.findOne({_id: tag_id})
var topNeighbors = []
var measures = ['dice', 'jaccard', 'overlap', 'ochiai']
measures.forEach(function(measure) {
// sort edges by m... | JavaScript | 0 | @@ -34,24 +34,70 @@
(tag, n) %7B%0A%0A
+ db.tag_graph_nodes.ensureIndex(%7Btag: 1%7D)%0A%0A
var tag_
|
3f2095a02d0ddf11552b2cbd809075ca168b98ce | fix silly bug | lib/sync/post.js | lib/sync/post.js | var slackUserProvider = require('./services/slack-user-list');
var formatter = require('./formatter');
var LM_IMAGE_URL_PREFIX = 'https://message.learnmode.net:5443/image/';
function getLMImage(hash) {
return LM_IMAGE_URL_PREFIX + hash + '?size=X';
}
var LM_SINGLE_MESSAGE_LENGTH_LIMIT = 512;
/**
* Post adapter
... | JavaScript | 0.000015 | @@ -2576,26 +2576,16 @@
ssage =
-formatter.
doc.text
|
7e8ee5340e6615e8dce9c5b0bf0af8dcf699e4fa | update phanomjs pdf printing to work with latest pdf css | plugin/print-pdf/print-pdf.js | plugin/print-pdf/print-pdf.js | /**
* phantomjs script for printing presentations to PDF.
*
* Example:
* phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
*
* By Manuel Bieh (https://github.com/manuelbieh)
*/
// html2pdf.js
var page = new WebPage();
var system = require( 'system' );
page.paperSize = {
format: ... | JavaScript | 0 | @@ -281,24 +281,78 @@
system' );%0A%0A
+page.viewportSize = %7B%0A%09width: 1024,%0A%09height: 768%0A%7D;%0A%0A
page.paperSi
@@ -372,10 +372,14 @@
t: '
-A4
+letter
',%0A%09
@@ -477,31 +477,8 @@
%7D%0A%7D;
-%0Apage.zoomFactor = 1.5;
%0A%0Ava
@@ -821,8 +821,10 @@
();%0A%7D );
+%0A%0A
|
4e5d7587ee0f1238fcb0d9645a662a55e0b34e42 | Add comments in code | src/library.js | src/library.js | ;(function ( global ) {
'use strict';
var Validator = function () {
};
var P = Validator.prototype;
P['valideAgeEmprunteur'] = function (age) {
if (age < 18) {
console.log('L\'âge de l\'emprunteur n\'atteint pas la limite d\'âge minimale requise (18 ans)');
return ... | JavaScript | 0 | @@ -44,79 +44,286 @@
-var Validator = function () %7B%0A %7D;%0A%0A var P = Validator.prototype;%0A
+/*%0A * D%C3%A9claration du constructeur pour la classe Validator%0A */%0A var Validator = function () %7B%0A %7D;%0A%0A /*%0A * Sucre syntaxique pour enrichir la classe Validator%0A ... |
1e824e92101b839d49e55fcb39713bb20f7256d9 | 修复 https://github.com/didi/chameleon/issues/304 | packages/cml-htmllinter/lib/rules/component-attr-check.js | packages/cml-htmllinter/lib/rules/component-attr-check.js | var knife = require('../knife');
var Issue = require('../issue');
var proc = require('../process_option');
module.exports = {
name: 'component-attr-check',
on: ['tag'],
options: [{
name: 'component-event-regex',
desc: 'If set, tag\'s attributes that match this regex will be considered as an evnet listene... | JavaScript | 0 | @@ -1127,16 +1127,146 @@
'';%0A%7D%0A%0A
+function getRegExecRes(reg, str) %7B%0A let res = str;%0A if (reg && reg.exec(str)) %7B%0A res = reg.exec(str)%5B1%5D;%0A %7D%0A return res;%0A%7D%0A
%0Amodule.
@@ -3502,16 +3502,30 @@
Regex ?
+getRegExecRes(
eventReg
@@ -3522,30 +3522,26 @@
s(eventRegex
-.exec(
+... |
c823b7f57e3f627fecb416126f159c1288916d3d | use real logger but now console appender | src/logging.js | src/logging.js | define([
'require',
'../lib/log4javascript',
'./lib/jquery.form/jquery.form'
], function(require) {
var l4js = log4javascript,
level = l4js.Level,
rootname = 'patterns',
root = l4js.getLogger(rootname);
var init_console_logging = function() {
// enable/disable all lo... | JavaScript | 0 | @@ -2922,20 +2922,16 @@
return
-mock
logger;%0A
|
4e24433fdf61996ff2c87c1220c637821b23ce4a | add a die function and change die to dieWithError | forkee.js | forkee.js |
var EE = require('events').EventEmitter;
var util = require('util');
module.exports = Forkee;
util.inherits(Forkee, EE);
function Forkee (options) {
if (!(this instanceof Forkee)) return new Forkee(options);
process.on('uncaughtException', this.die.bind(this));
process.on('message', this.onMessage.bind(this)... | JavaScript | 0 | @@ -250,16 +250,25 @@
this.die
+WithError
.bind(th
@@ -588,16 +588,85 @@
pe.die =
+ function () %7B%0A process.exit(0);%0A%7D;%0A%0AForkee.prototype.dieWithError =
functio
|
285904a154041dbbf47ffc4be164bea21c412360 | Fix test | tests/unit/specs/src/layouts/InterfaceLayout/components/InterfaceTokensModal/InterfaceTokensModal.spec.js | tests/unit/specs/src/layouts/InterfaceLayout/components/InterfaceTokensModal/InterfaceTokensModal.spec.js | import { shallowMount } from '@vue/test-utils';
import InterfaceTokensModal from '@/layouts/InterfaceLayout/components/InterfaceTokensModal/InterfaceTokensModal.vue';
import sinon from 'sinon';
import { Tooling } from '@@/helpers';
describe('InterfaceTokensModal.vue', () => {
let localVue, i18n, wrapper, store;
co... | JavaScript | 0.000004 | @@ -1268,16 +1268,37 @@
nAddress
+.toLowerCase().trim()
);%0A %7D);
|
ec066b79d15667eec36ae8535861f173fad86df0 | disable lint | corehq/apps/cloudcare/static/cloudcare/js/formplayer/sessions/controller.js | corehq/apps/cloudcare/static/cloudcare/js/formplayer/sessions/controller.js | hqDefine("cloudcare/js/formplayer/sessions/controller", function () {
var FormplayerFrontend = hqImport("cloudcare/js/formplayer/app");
return {
listSessions: function listSessions(pageNumber, pageSize) {
if (pageSize == null) {
pageSize = hqImport("cloudcare/js/formplayer/co... | JavaScript | 0.000002 | @@ -210,24 +210,57 @@
pageSize) %7B%0A
+ /* eslint-disable */%0A
@@ -398,32 +398,65 @@
;%0A %7D%0A
+ /* eslint-disable */%0A
if (
|
bfba4a2b7ef6b9059856b9fb0e7aec00500fd865 | Fix a problem with `emoji support` not working on the example page (#454) | demo/src/examples/Emojis.js | demo/src/examples/Emojis.js | import React from 'react'
import { Mention, MentionsInput } from '../../../src'
import { provideExampleValue } from './higher-order'
import emojiExampleStyle from './emojiExampleStyle'
import defaultMentionStyle from './defaultMentionStyle'
const queryEmojis = async (query, callback) => {
const url = new URL('http... | JavaScript | 0 | @@ -5,16 +5,41 @@
rt React
+, %7B useEffect, useState %7D
from 'r
@@ -272,356 +272,751 @@
nst
-queryEmojis = async (query, callback) =%3E %7B%0A const url = new URL('https://emoji.getdango.com/api/emoji')%0A url.searchParams.append('q', query)%0A const %7B results %7D = await fetch(url).then(res =%3E res.json()... |
04792633f2fec715dc29cd61a7997855179fe9d5 | fix spelling errors | definitions/npm/numeral_v2.x.x/flow_v0.25.x-/numeral_v2.x.x.js | definitions/npm/numeral_v2.x.x/flow_v0.25.x-/numeral_v2.x.x.js |
declare interface NumeralJSLocale {
delimiters: {
thousands: string,
decimal: string
},
abbreviations: {
thousand: string,
million: string,
billion: string,
trillion: string
},
ordinal(num: number): string,
currency: {
symbol: string
}... | JavaScript | 0.000279 | @@ -1130,16 +1130,17 @@
register
+e
d type,
@@ -1244,17 +1244,16 @@
definiti
-i
on%0A
|
e1eabf8d48e1e32927fb201fd3a2b9153b7f94be | change filenape | packages/gluestick/src/config/defaults/glueStickConfig.js | packages/gluestick/src/config/defaults/glueStickConfig.js | /* @flow */
import type { GSConfig } from '../../types';
const path = require('path');
const config: GSConfig = {
protocol: 'http',
host: '0.0.0.0',
ports: {
client: 8888,
server: 8880,
},
buildAssetsPath: 'build/assets',
assetsPath: 'assets',
sourcePath: 'src',
appsPath: 'apps',
sharedPath... | JavaScript | 0.000001 | @@ -907,17 +907,17 @@
luestick
--
+.
hooks.js
@@ -1465,24 +1465,56 @@
lugins.js',%0A
+ 'src/gluestick.hooks.js',%0A
'src/a
|
665767a0786ec216fa50bf95ff4bec0c566e02f0 | cut down on vdom markup warning spam | src/plugins/vdom/index.js | src/plugins/vdom/index.js | var h = require('virtual-dom/h');
var VDOMPatch = require('virtual-dom/patch');
var VDOMDiff = require('virtual-dom/diff');
var VNode = require('virtual-dom/vnode/vnode');
var Mixin = require('mixwith-es5').Mixin;
var defaults = require('object.defaults/immutable');
var flatMap = require('../../utils/flatmap');
var com... | JavaScript | 0 | @@ -2065,96 +2065,187 @@
-console.warn('Your markup must have one root node. Only using the first
+if (newTree.length %3E 1) %7B%0A console.warn('Your markup was truncated, as your component had more than
one
-for now
+root node
.');%0A
+ %7D%0A
|
53a147aa12006d89e8efb32fc26bf5d22ee6cf93 | remove unused mapping | custom/icds_reports/static/js/directives/cas-export/cas-export.directive.js | custom/icds_reports/static/js/directives/cas-export/cas-export.directive.js | /* global moment */
function CasExportController($window, $location, locationHierarchy, locationsService, downloadService, userLocationId, isAlertActive) {
var vm = this;
vm.isAlertActive = isAlertActive;
vm.months = [];
vm.monthsCopy = [];
vm.years = [];
vm.yearsCopy = [];
vm.selectedLoc... | JavaScript | 0.000003 | @@ -1513,774 +1513,8 @@
opy;
-%0A vm.filterOptions = %5B%0A %7Blabel: 'Data not Entered for weight (Unweighed)', id: 'unweighed'%7D,%0A %7Blabel: 'Data not Entered for height (Unmeasured)', id: 'umeasured'%7D,%0A %7Blabel: 'Severely Underweight', id: 'severely_underweight'%7D,%0A %7Blabe... |
c3ebda84d27055de8c2b508f2a4643120bdc7871 | Add notes for google closure options to check out | compiler.js | compiler.js | module.exports = {
compileJS: compileJS,
compileJSFile: compileJSFile,
compressJS: compressJS,
indentJS: indentJS
}
var fs = require('fs'),
sys = require('sys'),
path = require('path'),
util = require('util'),
child_process = require('child_process')
/* Compile a javascript file
***************************/
... | JavaScript | 0 | @@ -523,32 +523,687 @@
, basePath))%0A%7D%0A%0A
+// TODO: Look into%0A// provide a closure to make all variables local: code = '(function()%7B'+code+'%7D)()'%0A// --compilation_level %5BWHITESPACE_ONLY %7C SIMPLE_OPTIMIZATIONS %7C ADVANCED_OPTIMIZATIONS%5D%0A// --compute_phase_ordering: Runs the compile job many times... |
9445e9a0228306c66951a5ec55816b664ab3a5ca | Update the jest-editor babylon parser to return an empty JSON object instead of a empty string (#3212) | packages/jest-editor-support/src/parsers/BabylonParser.js | packages/jest-editor-support/src/parsers/BabylonParser.js | /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'... | JavaScript | 0 | @@ -600,15 +600,8 @@
is a
-n exact
cop
@@ -628,73 +628,278 @@
rser
-%0Aconst getBabelRC = (filename, %7BuseCache%7D) =%3E %7B%0A const paths = %5B
+, but it takes create-react-app%0A// into account, and will return an empty JSON object instead of %22%22.%0Aconst getBabelRC = (filename, %7BuseCache%7D) =%3E %7B%0A%... |
b657be25e07e603fd13f8fe1c56cffe6090e86eb | add TODO for further extension of GlyphOptions | common/components/utils/glyphs.js | common/components/utils/glyphs.js | // @flow
export const GlyphStyles: {[key: string]: string} = {
Close: "fas fa-times",
Delete: "far fa-trash-alt",
Edit: "far fa-edit",
Add: "fa fa-plus",
Alert: "fa fa-bell",
MapMarker: "fas fa-map-marker-alt",
Globe:"fas fa-globe-americas",
Clock: "fas fa-clock",
Search: "fa fa-search",
Github: "f... | JavaScript | 0 | @@ -1147,16 +1147,179 @@
lyphs.js
+ if you declare a size/style%0A//TODO: Add rotate, flip, and other FontAwesome options, see e.g. https://fontawesome.com/how-to-use/on-the-web/styling/rotating-icons
%0Aexport
|
718718da73fb4af5ed5bd707278046bda2883a2d | Remove unnecessary debugging prints | utuputki/webui/public/static/custom/services/userlist.js | utuputki/webui/public/static/custom/services/userlist.js | 'use strict';
app.factory('UserList', ['$location', '$rootScope', 'SockService', 'AuthService', 'AUTH_EVENTS', 'SYNC_EVENTS', 'USERLEVELS',
function ($location, $rootScope, SockService, AuthService, AUTH_EVENTS, SYNC_EVENTS, USERLEVELS) {
var last_error = "";
var users = [];
function event... | JavaScript | 0.000015 | @@ -1155,37 +1155,8 @@
');%0A
- console.log(id);%0A
|
b8c607fe5cbe087fdb6792803c1d998287977ff3 | Increase fallback timeout to 60 seconds | script/take-snapshot.js | script/take-snapshot.js | var page = require('webpage').create(),
opts = JSON.parse(require('system').args[1]);
page.viewportSize = opts.viewportSize;
if (opts.userAgent) {
page.settings.userAgent = opts.userAgent;
} else {
page.settings.userAgent = page.settings.userAgent + ' Diffux';
}
/**
* Configure timeouts
*/
page.waitTimeouts... | JavaScript | 0.002834 | @@ -377,9 +377,9 @@
ck:
-2
+6
0000
|
5ace739e349466457fc8aa0ed8797885a2444bab | Use getPieceImage, and load image each pieces. | frontend/components/piece.js | frontend/components/piece.js | import React from 'react';
import { movePiece } from '../actions';
import { connect } from 'react-redux';
import _ from 'lodash';
const mapStateToProps = (state) => {
return {
board: state.board,
turn: state.turn
};
};
const mapDispatchToProps = (dispatch) => {
return {
onPieceClick: (board, piece) ... | JavaScript | 0 | @@ -122,16 +122,77 @@
lodash';
+%0Aimport %7B getPieceImage %7D from '../images/shogiPieces/index';
%0A%0Aconst
@@ -528,16 +528,54 @@
%3Cimg
+ src=%7BgetPieceImage(this.props.piece)%7D
onClick
|
8d53937afec6c76218e0f0406ca5bfdd3845a140 | Drop obsolete | public_source/build.js | public_source/build.js | ({
baseUrl: ".",
appDir: "/home/autowp/autowp.ru/public_source/js/",
paths: {
async: 'lib/requirejs-plugins/async',
normalize: 'lib/requirejs-plugins/normalize',
css: 'lib/requirejs-plugins/css',
domReady: 'lib/requirejs-plugins/domReady',
jquery: 'lib/jquery'... | JavaScript | 0.000001 | @@ -118,122 +118,14 @@
uire
-js-plugins/async',%0D%0A normalize: 'lib/requirejs-plugins/normalize',%0D%0A css: 'lib/requirejs-plugins/css
+/async
',%0D%0A
|
be7d54758155afc22adbde24f59eb4b69dccbe0c | Add support for commonjs | dist/postman.js | dist/postman.js | (function() {
var postman = window.postman = {};
var clients = {};
/**
* Creates a client.
* @param {Window} contentWindow
* @param {string} domain
* @param {number=} opt_timeout
* @return {Client}
*/
postman.createClient = function(contentWindow, domain, opt_timeout) {
... | JavaScript | 0 | @@ -3,24 +3,25 @@
unction() %7B%0A
+%0A
var post
@@ -29,25 +29,8 @@
an =
- window.postman =
%7B%7D;
@@ -6520,15 +6520,140 @@
g;%0A %7D
+%0A%0A if (typeof exports !== 'undefined') exports = postman;%0A if (typeof window !== 'undefined') window.postman = postman;
%0A%7D)();%0A
|
a0e49724fde02e2d19997d06d07660aac4324b14 | fix bug with moment time lib | polemarch/static/js/common.js | polemarch/static/js/common.js | moment.tz.setDefault(window.timeZone);
var guiLocalSettings = {
__settings:{},
get:function(name){
return this.__settings[name];
},
set:function(name, value){
this.__settings[name] = value;
window.localStorage['guiLocalSettings'] = JSON.stringify(this.__settings)
tabSign... | JavaScript | 0 | @@ -1,8 +1,60 @@
+%0Aif(window.moment && window.moment.tz)%0A%7B%0A window.
moment.t
@@ -83,16 +83,18 @@
meZone);
+%0A%7D
%0A%0Avar gu
|
bfcd1fcce40ab63e8eb2eb6f29dad7225a6e3827 | Rename events to eventMap. | lib/thumbs.js | lib/thumbs.js | (function(scope) {
/**
* Utility function to check event support
*
* Cannot inspect document.body because it may not be loaded yet
*
* @param {String} name of the event
* @return {Boolean}
*/
var supports = function(name) {
return (typeof document['on' + name] !== 'u... | JavaScript | 0.000006 | @@ -512,17 +512,19 @@
ar event
-s
+Map
= %7B%0A
@@ -989,17 +989,19 @@
in event
-s
+Map
) %7B%0A
@@ -1108,17 +1108,19 @@
nt(event
-s
+Map
%5Be.type%5D
|
1f29311c5794ff2257776ed8397c8addcfff332a | use higher specifity regexp for checks | lib/types/svg.js | lib/types/svg.js | 'use strict';
var svgReg = /<svg[^>]+[^>]*>/;
function isSVG (buffer) {
return svgReg.test(buffer);
}
var extractorRegExps = {
'root': /<svg\s[^>]+>/,
'width': /\bwidth=(['"])([^%]+?)\1/,
'height': /\bheight=(['"])([^%]+?)\1/,
'viewbox': /\bviewBox=(['"])(.+?)\1/
};
function parseViewbox (viewbox) {
var ... | JavaScript | 0.000001 | @@ -30,17 +30,54 @@
%3Csvg
-%5B%5E%3E%5D+%5B%5E%3E%5D
+%5Cs(%5B%5E%3E%22'%5D%7C%22(%5B%5E%22%5C%5C%5D%7C%5C%5C%5B%5E%5D)*%22%7C'(%5B%5E'%5C%5C%5D%7C%5C%5C%5B%5E%5D)*')
*%3E/;
@@ -175,22 +175,14 @@
t':
-/%3C
svg
-%5Cs%5B%5E%3E%5D+%3E/
+Reg
,%0A
|
0da7f3afabbf061628b42974049ca4c206e9c532 | resolve files correctly under dependency scenarios | core/scripts/postinstall.js | core/scripts/postinstall.js | "use strict";
try{
console.log('Beginning Pattern Lab postinstall...');
var sm = require('../lib/starterkit_manager.js');
var u = require('../lib/utilities.js');
var path = require('path');
var fs = require('fs-extra');
//get the config
var configPath = path.resolve(process.cwd(), 'patternlab-config.js... | JavaScript | 0 | @@ -10,18 +10,18 @@
ct%22;%0Atry
+
%7B
-%0A
%0A conso
@@ -79,76 +79,184 @@
var
-sm = require('../lib/starterkit_manager.js');%0A var u = require('../
+path = require('path');%0A var fs = require('fs-extra');%0A var smPath = path.resolve(__dirname, '..', 'lib/starterkit_manager.js');%0A var uPath = path.resol... |
3e5aad790879a4211791b6ca63a794b1e938c8f5 | arrange js functions in better order | js/CXGN/BreedersToolbox/FieldBook.js | js/CXGN/BreedersToolbox/FieldBook.js | /**
=head1 FieldBook.js
Dialogs for field book tools
=head1 AUTHOR
Jeremy D. Edwards <jde22@cornell.edu>
=cut
*/
var $j = jQuery.noConflict();
jQuery(document).ready(function ($) {
var list = new CXGN.List();
$("#select_list").append(list.listSelect("select_list"));
$("#create_trait_file_dialog... | JavaScript | 0.00601 | @@ -1,8 +1,48 @@
+/*jslint browser: true, devel: true */%0A%0A
/**%0A
-
%0A=he
@@ -154,16 +154,17 @@
ut%0A%0A*/%0A%0A
+%0A
var $j =
@@ -262,431 +262,8 @@
);%0A%0A
-%0A $(%22#select_list%22).append(list.listSelect(%22select_list%22));%0A%0A $(%22#create_trait_file_dialog%22).dialog(%7B%0A%09autoOpen: false,%0... |
2d3d6cae3158aafabf6130b940e22b9ede156902 | Test VectorImage rendering view extent with no features | test/browser/spec/ol/renderer/canvas/vectorimage.test.js | test/browser/spec/ol/renderer/canvas/vectorimage.test.js | import CanvasVectorImageLayerRenderer from '../../../../../../src/ol/renderer/canvas/VectorImageLayer.js';
import VectorImageLayer from '../../../../../../src/ol/layer/VectorImage.js';
import VectorSource from '../../../../../../src/ol/source/Vector.js';
import {create} from '../../../../../../src/ol/transform.js';
imp... | JavaScript | 0 | @@ -96,24 +96,210 @@
eLayer.js';%0A
+import Feature from '../../../../../../src/ol/Feature.js';%0Aimport ImageCanvas from '../../../../../../src/ol/ImageCanvas.js';%0Aimport Point from '../../../../../../src/ol/geom/Point.js';%0A
import Vecto
@@ -1142,54 +1142,163 @@
-it('sets correct extent with imageRatio = 2... |
f4c5e5b15b815e64e3d3c3de0373bdf61e2036c4 | Add 'I' (Infinitum) and 'N' (Nil) type tags | src/message.js | src/message.js | import {
isArray,
isString,
isUndefined,
} from './common/utils'
import Helper, { typeTag, prepareAddress } from './common/helpers'
import AtomicBlob from './atomic/blob'
import AtomicFloat32 from './atomic/float32'
import AtomicFloat64 from './atomic/float64'
import AtomicInt32 from './atomic/int32'
import Ato... | JavaScript | 0.00089 | @@ -340,24 +340,67 @@
omic/int64'%0A
+import AtomicUInt64 from './atomic/uint64'%0A
import Atomi
@@ -3186,24 +3186,146 @@
ment = null%0A
+ %7D else if (type === 'N') %7B%0A argument = null%0A %7D else if (type === 'I') %7B%0A argument = null%0A
%7D el
@@ -5213,24 +5213,130 @@... |
02a658806093c9603a80c9ea8dd7b87400505ff5 | Upgrade auth0-metrics | src/metrics.js | src/metrics.js | import log from "loglevel";
export function init() {
// Create a queue, but don't obliterate an existing one!
var analytics = (window.metrics = window.metrics || []);
// If the real analytics.js is already on the page return.
if (analytics.initialize) return;
// If the snippet was invoked already show an e... | JavaScript | 0 | @@ -1868,16 +1868,22 @@
pt.src =
+%0A
%22https:
@@ -1913,13 +1913,15 @@
/js/
+m/
1.6.
-0
+1
/aut
@@ -1930,17 +1930,17 @@
-metrics
--
+.
min.js%22;
|
5173891b8f8b1798828dfb362b83db32266e8488 | Remove all event listener to avoid memory leaks | app/scripts/Inset.js | app/scripts/Inset.js | import * as PIXI from 'pixi.js';
const BASE_RES = 16;
const BASE_SCALE = 4;
const BASE_SCALE_UP = 1.25;
class Inset {
constructor(uid, dataPos, options, mouseHandler) {
this.uid = uid;
this.dataX1 = dataPos[0];
this.dataX2 = dataPos[1];
this.dataY1 = dataPos[2];
this.dataY2 = dataPos[3];
thi... | JavaScript | 0.000001 | @@ -738,24 +738,80 @@
destroy() %7B%0A
+ if (this.sprite) this.sprite.removeAllListeners();%0A%0A
this.gBo
@@ -876,32 +876,33 @@
Main.destroy();%0A
+%0A
this.data =
|
c96244e52833c79a51f19b2958ff2e1aed2395b6 | Add a test for an attribute selector that has an ampersand | src/rules/selector-no-redundant-parent/__tests__/index.js | src/rules/selector-no-redundant-parent/__tests__/index.js | import ruleTester from "stylelint-rule-tester"
import scss from "postcss-scss"
import rule, { ruleName, messages } from ".."
const testRule = ruleTester(rule, ruleName, {
postcssOptions: { syntax: scss },
})
testRule(undefined, tr => {
tr.ok(`
p {
&.foo {}
}
`, "when an amperand is chained with c... | JavaScript | 0.000001 | @@ -1371,24 +1371,139 @@
mpersand%22)%0A%0A
+ tr.ok(%60%0A div%5Bid=%22foo&bar%22%5D %7B%0A &.foo %7B%7D%0A %7D%0A %60, %22when an ampersand is used in an attribute selector%22)%0A%0A
tr.notOk(%60
|
dd62c9ba3a607ff2b4b8b2e55ec1b096eb41fe49 | update compiled CSS.js | lib/utils/CSS.js | lib/utils/CSS.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _cleanCss = require('clean-css');
var _cleanCss2 = _interopRequireDefault(_cleanCss);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = {
// Validate against common C... | JavaScript | 0.000001 | @@ -922,128 +922,8 @@
');%0A
- %7D else if (css.match(/%3C%5C/style%3E/i)) %7B%0A throw new Error('Unsafe CSS found in ' + foundInName + ': %22%3C/style%3E%22');%0A
|
d861784c718665a2422f7cd95b28bb2d9115a524 | fix bugs in b2b | app/scripts/admin.js | app/scripts/admin.js | (function(){
var delegate = new Delegate(document.body);
// MARK: - Click remove user in the table
delegate.on('click', '.remove-user', function(){
var t = this.parentElement.tagName;
var emailList = [];
var email;
if (t==='TD') {
email = this.closest('tr').query... | JavaScript | 0.000181 | @@ -925,24 +925,61 @@
join('%5Cn');%0A
+ console.log (emailListData);%0A
var
@@ -1487,14 +1487,8 @@
- %7Bkey:
'em
@@ -1499,17 +1499,12 @@
list
-', value:
+=' +
ema
@@ -1513,17 +1513,16 @@
ListData
-%7D
%0A
@@ -1531,24 +1531,60 @@
.join('&');%0A
+ //console.log (parameters);... |
36ed0883ef4963bb1beb8666182189e27da8ec7a | Fix response header | displays/svg.js | displays/svg.js | var displays = require('./displays'),
wiki = require('../wiki'),
lib = require('../lib');
function getCoords(inp) {
return {x: 10 * inp.ec,
y: 10 * -inp.soc };
}
function out(getData, res) {
getData(function (err, data) {
var users_data = lib.groupBy(data, function (compass) {
... | JavaScript | 0.000004 | @@ -1584,21 +1584,11 @@
pe('
-image/svg+xml
+svg
');%0A
|
578ae918aa48759244e40eda821b110b4dbbe24e | Fix JSDoc | src/sap.ui.core/src/sap/ui/model/ClientPropertyBinding.js | src/sap.ui.core/src/sap/ui/model/ClientPropertyBinding.js | /*!
* ${copyright}
*/
// Provides the JSON model implementation of a property binding
sap.ui.define(['./PropertyBinding'],
function(PropertyBinding) {
"use strict";
/**
* Creates a new ClientPropertyBinding.
*
* This constructor should only be called by subclasses or model implementations, not by applicat... | JavaScript | 0 | @@ -2130,16 +2130,87 @@
context
+.%0A%09 *%0A%09 * @param %7Bsap.ui.model.Context%7D oContext The new context to set
%0A%09 */%0A%09C
|
fb3a14981de18e5b68d068f2c4e84dfd105779d5 | Add new states paths | private/scrapers/rcp-paths.js | private/scrapers/rcp-paths.js | exports.paths = {
nv: 'nv/nevada_democratic_presidential_caucus-5337.html',
us: 'us/2016_democratic_presidential_nomination-3824.html'
};
| JavaScript | 0.000281 | @@ -16,119 +16,1191 @@
%7B%0A%09
-nv: 'nv/nevada_democratic_presidential_caucus-5337.html',%0A%09us: 'us/2016_democratic_presidential_nomination-3824
+us: 'us/2016_democratic_presidential_nomination-3824.html',%0A%09nv: 'nv/nevada_democratic_presidential_caucus-5337.html',%0A%09ma: 'ma/massachusetts_democratic_presid... |
2c00450e02a7995c9c7863f3369be133d39e4615 | fix bug in dispose, caught by phetsims/rutherford-scattering#124 | js/buttons/RadioButtonGroupMember.js | js/buttons/RadioButtonGroupMember.js | // Copyright 2014-2017, University of Colorado Boulder
/**
* A single radio button. This class is designed to be part of a RadioButtonGroup and there should be no need to use it
* outside of RadioButtonGroup. It is called RadioButtonGroupMember to differentiate from RadioButton, which already
* exists.
*
* @autho... | JavaScript | 0 | @@ -4661,36 +4661,37 @@
nk( accessibleCh
-ange
+ecked
Listener );%0A
|
471fffede605876f1d3fd02a9360b4ca3e94f5e8 | Fix a bug where _password and _auth could get set to "undefined" | lib/utils/ini.js | lib/utils/ini.js |
// TODO: Merge from other places, make locations configurable.
// Should look in {installPrefix}/etc/npmrc first by default,
// and then env.HOME/.npmrc for overrides.
var fs = require('fs')
, path = require('path')
, http = require('http')
, log = require("./log")
, ini = require("./ini-parser")
, sys = re... | JavaScript | 0.000008 | @@ -1808,69 +1808,27 @@
0%0A
-config._auth = config._auth %7C%7C config.auth%0A
+if (
config.
-_
password
= c
@@ -1815,34 +1815,33 @@
(config.password
- =
+)
config._passwor
@@ -1834,34 +1834,33 @@
onfig._password
-%7C%7C
+=
config.password
@@ -1862,30 +1862,32 @@
sword%0A
+if (
config.
-_
auth
- =... |
053c69f8c372aa3101ea774643692fe1fb255e50 | Remove comment in card.directive.js | js/core/directives/card.directive.js | js/core/directives/card.directive.js | /**
* Copyright 2015 Longtail Ad Solutions Inc.
*
* 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 o... | JavaScript | 0 | @@ -2147,99 +2147,8 @@
%7D;%0A%0A
- // @TODO touch device flag%0A // @TODO close menu when other card menu opens%0A%0A
|
d2d1d18134787a398511c60dccec4ee89f636edc | Fix links in the cherry-pick demo | examples/cherry-pick/app/screens/application/index.js | examples/cherry-pick/app/screens/application/index.js | import './base.css';
import './application.css';
import 'suitcss-base';
import 'suitcss-utils-text';
import 'suitcss-components-arrange';
import React from 'react';
module.exports = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired
},
link: function () {
var router = this.con... | JavaScript | 0 | @@ -1053,32 +1053,40 @@
%3Ca href='
+https://
github.com/Qubit
@@ -1149,16 +1149,24 @@
a href='
+https://
github.c
@@ -1172,25 +1172,60 @@
com/
-KidkAroli
+QubitProducts/cherrytree/tree/master/example
s/cherry
pick
@@ -1220,16 +1220,17 @@
s/cherry
+-
pick'%3EDe
|
4abb0701da5ee5ba75ae0067feea04a88f654a58 | Update viewstack.js | lib/viewstack.js | lib/viewstack.js |
var $ = require('jquery');
var _ = require("underscore");
var Backbone = require("backbone");
var ViewStack = module.exports = Backbone.View.extend({
_stack: null,
_stackReplace: null,
_current: null,
_length: null,
initialize: function initialize(options){
if (!options || (!options.context && !options.share... | JavaScript | 0.000001 | @@ -3000,16 +3000,51 @@
ne.View)
+ && typeof options === %22undefined%22
) %7B%0A%09%09%09o
|
fd3ff64df31e791ee8cb3a64722c202de156debe | use array for entry files so hot-reload works | frontend/starter.config.js | frontend/starter.config.js | const path = require('path');
const SRC = './src';
module.exports = () => {
const webpack = {
entry: path.resolve(__dirname, SRC, 'index.jsx'),
resolve: {
alias: {
assets: path.join(__dirname, SRC, 'assets'),
components: path.join(__dirname, SRC, 'components'),
src: path.join(_... | JavaScript | 0.000001 | @@ -100,16 +100,24 @@
entry:
+ %5B%0A
path.re
@@ -150,16 +150,22 @@
ex.jsx')
+%0A %5D
,%0A%0A r
|
9695352f59a83e00b846bfa60c22db772ba0029e | Disable flaky test - SOL-1604 | ecommerce/static/js/test/specs/views/coupon_create_view_spec.js | ecommerce/static/js/test/specs/views/coupon_create_view_spec.js | define([
'jquery',
'views/coupon_create_edit_view',
'views/alert_view',
'models/coupon_model'
],
function ($,
CouponCreateEditView,
AlertView,
Coupon) {
'use strict';
describe('coupon create view', function () {
... | JavaScript | 0.000001 | @@ -2038,32 +2038,75 @@
);%0A%0A
+//Disable flaky test SOL-1604%0A x
it('should submi
|
99d4c2e84e718031bf46952f257356c5367dcb58 | Add faq | data/faq.js | data/faq.js | faq = [
{
"ques": "I want to do a GSoC!",
"ans" : "Great! This is the right place. Check out the other questions and \
most importantly the projects page."
},
{
"ques": "How do I work out a great proposal?",
"ans" : "Please design your project in a way that you have **multiple \
checkpoints**. We'd like you to spec... | JavaScript | 0 | @@ -1217,12 +1217,186 @@
om us!%22%0A
+%7D,%0A%7B%0A%09%22ques%22: %22When should I start working out the proposal?%22,%0A%09%22ans%22 : %22You can start right now! Ping any mentor and start discussing. %5C%0AThe earlier you start, the better!%22%0A
%7D%0A%5D%0A
|
c8fcc0abc6f85846a48373244d9692c4f57e59ff | Update capabilities.js | scripts/capabilities.js | scripts/capabilities.js |
//The main method providing an entry point for the Appium JAVA REPL.
function main() {
var DesiredCapabilities = Java.type("org.openqa.selenium.remote.DesiredCapabilities")
var caps = new DesiredCapabilities();
caps.setCapability("appiumServer","http://127.0.0.1:4723/wd/hub");
caps.setCapability("udid", "5526e... | JavaScript | 0.000001 | @@ -462,31 +462,8 @@
%22, %22
-/home/pierre/Descargas/
ApiD
|
327d337fa61bca475b3a52c8c2ccc2138c74a311 | use bootrap-rtl lib when lang is Arabic | app/template.html.js | app/template.html.js | define(['app', 'underscore', 'ng-breadcrumbs','angular-animate',
'angular-localizer', 'scbd-angularjs-services', 'scbd-angularjs-filters',
'scbd-branding/directives/footer',
'/app/views/directives/nav/portal-branding.js',
'scbd-branding/directives/header/header',
'/app/views/directives/nav/portal-na... | JavaScript | 0.001786 | @@ -1266,32 +1266,106 @@
%7D;%0A %0A
+ //html body attributes lang%0A $scope.lang = locale;%0A
//se
@@ -1520,16 +1520,165 @@
(lang);%0A
+ if(lang == 'ar')%7B%0A require(%5B'css!http://muayyad-alsadi.github.io/bootstrap-rtl/3.x/css/bootstrap.rtl.c... |
05dd54cc3713e2b83bdf01ba45c367a54601e9f0 | Add growl-box tests | tests/integration/components/growl-box/component-test.js | tests/integration/components/growl-box/component-test.js | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('growl-box', 'Integration | Component | growl box', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any ac... | JavaScript | 0 | @@ -1,12 +1,39 @@
+import Ember from 'ember';%0A
import %7B mod
@@ -196,16 +196,18 @@
box', %7B%0A
+
integr
@@ -221,189 +221,1800 @@
true
-%0A%7D);%0A%0Atest('it renders', function(assert) %7B%0A%0A // Set any properties with this.set('myProperty', 'value');%0A // Handle any actions with this.on('myAction', f... |
c299e4eb1a1e8152991e2320657865673d089b19 | change back package js to dark theme | css/package.js | css/package.js | enyo.depends(
"moonstone-light.less"
);
| JavaScript | 0 | @@ -23,13 +23,12 @@
one-
-light
+dark
.les
|
b784a47854613261512cb07902b55924bd12be20 | Update angular-jscrollpane.js | dist/angular-jscrollpane.js | dist/angular-jscrollpane.js | 'use strict';
(function() {
angular.module('ngJScrollPane', []);
angular.module('ngJScrollPane').directive('scrollPane', [
'$timeout',
function($timeout) {
return {
restrict: 'A',
transclude: true,
template: '<div class="scroll-pane"><div ng-transclude class="scroll-container... | JavaScript | 0.000001 | @@ -1306,17 +1306,16 @@
%7D;
-c
%0A
|
6a78fe67ee1114a09a684d2350e8648f7d3904ad | Fix import | app/views/explore.js | app/views/explore.js | 'use strict'
let component = require('omniscient')
let immutable = require('immutable')
let S = require('underscore.string.fp')
let logger = require('js-logger-aknudsen').get('explore')
let R = require('ramda')
let h = require('react-hyperscript')
let React = require('react')
let ReactDOM = require('react-dom')
let Mas... | JavaScript | 0.000002 | @@ -422,24 +422,38 @@
ry(require('
+@arve.knudsen/
react-infini
|
96d8e209f5e86f19bdda2eaf6a37f4b917c61d37 | Fix for ws listen wrong address on ready event | lib/ws/listen.js | lib/ws/listen.js | 'use strict'
var pick = require('lodash.pick')
var createServer = require('pull-ws/server')
var http = require('http')
var util = require('../util')
module.exports = function listen(params) {
if (params) params = pick(params, 'host', 'port', 'path', 'protocol')
var notify = util.createNotify()
var _server=http.cr... | JavaScript | 0 | @@ -258,16 +258,17 @@
tocol')%0A
+
var not
@@ -533,16 +533,21 @@
on () %7B
+%0A
notify(%7B
@@ -561,16 +561,51 @@
'ready'
+,address: _server.address().address
,port:_s
@@ -627,16 +627,19 @@
.port%7D)
+%0A
%7D)%0A%0A va
|
a8749c3326f9ac1e31bcb55dff868f94ef932834 | Add proper credits for github plugin | github.js | github.js | 'use strict';
if (!Config.github || !Config.github.port) return;
let updates = {};
const github = exports.github = require('githubhook')({
port: Config.github.port,
secret: Config.github.secret,
});
function sendMessages(str) {
for (let room in Config.github.rooms) {
if (!Rooms(Config.github.rooms[room])) cont... | JavaScript | 0.000001 | @@ -1,8 +1,290 @@
+/**%0A * GitHub Alerts%0A *%0A * Primary code from https://github.com/Ecuacion/Pokemon-Showdown-Node-Bot/tree/master/features/github%0A * This handles alerting our Development room of GitHub updates/changes.%0A * This was converted to work on PS servers by jd.%0A *%0A * @license MIT license%0A */%0A
... |
3319db6d51f134e192a7df1545775e4e8f85fc77 | Add `.gql` file extension to be parsed as GraphQL (#2357) | src/options.js | src/options.js | "use strict";
const validate = require("jest-validate").validate;
const deprecatedConfig = require("./deprecated");
const defaults = {
cursorOffset: -1,
rangeStart: 0,
rangeEnd: Infinity,
useTabs: false,
tabWidth: 2,
printWidth: 80,
singleQuote: false,
trailingComma: "none",
bracketSpacing: true,
... | JavaScript | 0 | @@ -932,23 +932,29 @@
if (/%5C.
+(
graphql
+%7Cgql)
$/.test(
|
4a68f3869ab9af0c3b51bff223c36d49b58e5df3 | Add data-root div around main body for later use | app/views/wrapper.js | app/views/wrapper.js | module.exports = function (body) {
return `
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Minor WOT</title>
<link rel="stylesheet" href="/style.css" />
<script src="/app.js" defer></script>
${body}
`;
}
| JavaScript | 0 | @@ -266,15 +266,48 @@
-$%7Bbody%7D
+%3Cdiv data-root%3E%0A $%7Bbody%7D%0A %3C/div%3E
%0A %60
|
6332400399c2df24f91f0db27a59616a3e9d81e7 | Include all relevant attributes when defining model | models/Tag.js | models/Tag.js | var util = require('./util/util');
var validation = require('./util/validation');
module.exports = function(sequelize, DataTypes) {
var name = 'Tag';
var attributes = {
animal: { // Name of animal for the Tag
type: DataTypes.STRING,
},
event: {
type: DataTypes.STRING,
},
confidenc... | JavaScript | 0 | @@ -891,16 +891,17 @@
.INTEGER
+,
%0A %7D,%0A
@@ -923,38 +923,135 @@
%7B //
-%0A type: DataTypes.BOOLEAN
+ True if the tag was automatically generated.%0A type: DataTypes.BOOLEAN,%0A allowNull: false,%0A defaultValue: false,
%0A
|
5a3af4e45cb089aab3cc9dd1ab0cba1eeb1a40b2 | Index sql parameters from 1? | database.js | database.js | const pg = require('pg');
const logger = require('./logger');
pg.defaults.ssl = true;
const db = new pg.Pool({
connectionString: process.env.DATABASE_URL,
});
class Predicate {
constructor(key, operator, value) {
this.key = key;
this.operator = operator;
this.value = value;
this.adjoined = [];
}... | JavaScript | 0 | @@ -1492,17 +1492,17 @@
let i =
-0
+1
;%0A
@@ -2125,16 +2125,20 @@
=%3E %60$$%7Bi
+ + 1
%7D%60).join
|
b87ba6f1c2c80b38c5529b01557737e244dd5357 | Add hexo reuire for hexo3 | lib_src/index.js | lib_src/index.js | var _ = {
extend: require('lodash.assign')
};
var escapes = [
{ match: /\s/g, replacement: ' ' },
{ match: /</g, replacement: '<' },
{ match: />/g, replacement: '>' },
];
function escapeTag(text) {
if(text==null)
return '';
return escapes.reduce(function(result, escape){
return result.... | JavaScript | 0.000458 | @@ -1,12 +1,80 @@
+var Hexo = require('hexo');%0Avar hexo = new Hexo(process.cwd(), %7B%7D);%0A
var _ = %7B%0A
|
c55b27a2ffc54356bf6f4b6f06f160f52420981f | Set default opacity 0.8 | dem-curvature-slope-layer.js | dem-curvature-slope-layer.js | (function() {
var Loader = {
cache: {},
load: function(coords, dx, dy) {
var url = L.Util.template("https://cyberjapandata.gsi.go.jp/xyz/{id}/{z}/{x}/{y}.txt", {
x: coords.x + dx,
y: coords.y + dy,
z: coords.z,
id: coords.z <= 8 ? "demgm" : "dem"
});
if (!Lo... | JavaScript | 0.000001 | @@ -2853,11 +2853,11 @@
ty:
-1.0
+0.8
%0A
|
cf5cb3bc7da2efe5061a388ad6ee1ddbe98812ac | put html tags in code block (#563) | packages/react-instantsearch/src/widgets/MenuSelect.js | packages/react-instantsearch/src/widgets/MenuSelect.js | import connectMenu from '../connectors/connectMenu.js';
import MenuSelectComponent from '../components/MenuSelect.js';
/**
* The MenuSelect component displays a select that lets the user choose a single value for a specific attribute.
* @name MenuSelect
* @kind widget
* @requirements The attribute passed to the `a... | JavaScript | 0 | @@ -884,16 +884,17 @@
the
+%60
%3Cselect%3E
DOM
@@ -889,16 +889,17 @@
%3Cselect%3E
+%60
DOM ele
@@ -950,16 +950,17 @@
the
+%60
%3Coption%3E
DOM
@@ -955,16 +955,17 @@
%3Coption%3E
+%60
DOM ele
|
f479bd7139d6771aea1a719b182d5ddfa88dfeb2 | Add type field | models/event.js | models/event.js | 'use strict';
module.exports = function (sequelize, DataTypes) {
var Event = sequelize.define('event', {
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true
},
date: {
type: DataTypes.DATE
},
day: {
... | JavaScript | 0.000002 | @@ -581,32 +581,94 @@
RING%0A %7D,%0A
+ type: %7B%0A type: DataTypes.STRING%0A %7D,%0A
tutorId:
@@ -1087,16 +1087,24 @@
tivity',
+ 'type',
'tutorI
|
0479ec22e81f8a7366bdc2dc7ecd52d3031bcf23 | fix typeahead test | js/tests/unit/bootstrap-typeahead.js | js/tests/unit/bootstrap-typeahead.js | $(function () {
module("bootstrap-typeahead")
test("should be defined on jquery object", function () {
ok($(document.body).typeahead, 'alert method is defined')
})
test("should return element", function () {
ok($(document.body).typeahead()[0] == document.body, 'document.body ret... | JavaScript | 0.000001 | @@ -3787,37 +3787,36 @@
type: 'key
-press
+down
'%0A , keyC
@@ -3980,21 +3980,20 @@
pe: 'key
-press
+down
'%0A
|
5d3e377a3c67152a278fa2d2bbbcace18d08785b | Update path formation to work with new variable setting format. | libs/files.js | libs/files.js | import config from '../config';
import fs from 'fs';
import async from 'async';
import tar from 'tar-fs';
/**
* Files
*
* A collection of file manipulation methods
*/
export default {
/**
* Update symlinks
*
* Takes a SciTran BIDS symlink directory and a
* callback and updates ... | JavaScript | 0 | @@ -722,16 +722,22 @@
eStore +
+ '/' +
linkPat
|
ecd96470e12af95bae77bbb180aaf737721bdd39 | Rename renaming uses of 'team_token' to just 'token' | lib/SlackGhost.js | lib/SlackGhost.js | "use strict";
var rp = require('request-promise');
// How long in msec to cache avatar URL lookups from slack
var AVATAR_CACHE_TIMEOUT = 10 * 60 * 1000; // 10 minutes
function SlackGhost(opts) {
this._bridge = opts.bridge;
this._user_id = opts.user_id;
this._display_name = opts.display_name;
this._... | JavaScript | 0.000002 | @@ -1761,29 +1761,24 @@
on(user_id,
-team_
token) %7B%0A
@@ -2006,21 +2006,16 @@
token:
-team_
token,%0A
@@ -2723,21 +2723,16 @@
var
-team_
token =
@@ -2788,21 +2788,16 @@
if (!
-team_
token) r
@@ -2871,21 +2871,16 @@
ser_id,
-team_
token).t
|
436e588e380775a6a4af3f63ab0fbba121f25d73 | Fix typo (#1374) | packages/react-static/templates/blank/static.config.js | packages/react-static/templates/blank/static.config.js | // This file is used to configure:
// - static-site generation
// - Document shell (index.html)
// - ...tons of other things!
// Get started at httsp://react-static.js.org
export default {
maxThreads: 1, // Remove this when you start doing any static generation
}
| JavaScript | 0.000034 | @@ -145,10 +145,10 @@
htt
-s
p
+s
://r
|
d0d7c181d5a7fe7e906f6ef73c84f38bd420df3a | Cleaning up if statement | models/posts.js | models/posts.js | Posts = new Meteor.Collection("posts");
Posts.allow({
insert: function (userId, post) {
return false; // no cowboy inserts -- use createParty method
},
update: function (userId, post, fields, modifier) {
if (userId !== post.ownedBy)
return false; // not the owner
var allowed = ["name", "url", ... | JavaScript | 0.999957 | @@ -3186,32 +3186,33 @@
%0A if (! post)
+%7B
%0A throw new
@@ -3246,16 +3246,22 @@
post%22);
+%0A %7D
%0A%0A Po
|
fe19d09c1363252676a06ddf5d9a21ae4e3e479e | Use pure component for outline view. | packages/rekit-studio/src/features/home/OutlineView.js | packages/rekit-studio/src/features/home/OutlineView.js | import React, { Component } from 'react';
import _ from 'lodash';
import PropTypes from 'prop-types';
import { Tree } from 'antd';
import OutlineWorker from 'worker-loader?name=outline.[hash].worker.js!./workers/outline'; // eslint-disable-line
import { getTreeNodeData } from '../common/utils';
const { TreeNode } = Tr... | JavaScript | 0 | @@ -9,16 +9,20 @@
eact, %7B
+Pure
Componen
@@ -39,16 +39,16 @@
react';%0A
-
import _
@@ -363,16 +363,20 @@
extends
+Pure
Componen
@@ -863,41 +863,241 @@
nent
-WillReceiveProps(nextProps) %7B%0A
+DidUpdate(prevProps) %7B%0A console.log(%0A prevProps.code === this.props.code,%0A prevProps.onSelec... |
62166ff74bc3163f3bc5107fb12e8d0a515c6194 | Add trace.next selector | packages/truffle-debugger/lib/trace/selectors/index.js | packages/truffle-debugger/lib/trace/selectors/index.js | import { createSelectorTree, createLeaf } from "lib/selectors";
let trace = createSelectorTree({
/**
* trace.index
*
* current step index
*/
index: (state) => state.trace.index,
/**
* trace.steps
*
* all trace steps
*/
steps: (state) => state.trace.steps,
/**
* trace.stepsRemaini... | JavaScript | 0.000001 | @@ -606,16 +606,203 @@
%5Bindex%5D%0A
+ ),%0A%0A /**%0A * trace.next%0A *%0A * next trace step or %7B%7D%0A */%0A next: createLeaf(%0A %5B%22./steps%22, %22./index%22%5D, (steps, index) =%3E%0A index %3C steps.length - 1 ? steps%5Bindex + 1%5D : %7B%7D%0A
)%0A%7D);%0A
|
8974332ae49a92cbd896e80e4109241f288a48d5 | Fix script | scripts/link_locales.js | scripts/link_locales.js | var fs = require('fs');
var source = 'node_modules/moment/locale';
var dest = 'www/locale';
function recreateLink() {
// might have broken link
fs.unlinkSync(dest);
fs.symlinkSync('../' + source, dest);
}
module.exports = function() {
if (fs.existsSync(source)) {
if (!fs.existsSync(dest)) {
recrea... | JavaScript | 0.000002 | @@ -141,16 +141,47 @@
en link%0A
+ if (fs.existsSync(dest)) %7B%0A
fs.unl
@@ -195,16 +195,20 @@
(dest);%0A
+ %7D%0A
fs.sym
|
a6742a2b7de5de7f3267e763902885cb41644630 | Refactor socket connections in cypress commands | cypress/support/commands.js | cypress/support/commands.js | // ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***************************... | JavaScript | 0 | @@ -1016,16 +1016,35 @@
tabase',
+ %7B%0A ackCallback:
(acknow
@@ -1063,16 +1063,18 @@
%3E %7B%0A
+
if (ackn
@@ -1085,17 +1085,17 @@
dgement
-=
+!
== 'ok')
@@ -1103,48 +1103,8 @@
%7B%0A
- console.log('cleaned')%0A %7D else %7B%0A
@@ -1141,19 +1141,29 @@
ase'
+;%0A %7D
%0A %7D%0... |
26613dcf48791ac0c723203fed3ebe81920df20d | Allow more formatting in rich text editor | kcdc3/public/static/tinymce_setup.js | kcdc3/public/static/tinymce_setup.js |
function CustomFileBrowser(field_name, url, type, win) {
var cmsURL = '/admin/filebrowser/browse/?pop=2';
cmsURL = cmsURL + '&type=' + type;
tinyMCE.activeEditor.windowManager.open({
file: cmsURL,
width: 980, // Your dimensions may differ - toy around with them!
height: 5... | JavaScript | 0.000001 | @@ -2608,16 +2608,19 @@
ats: 'p,
+h2,
h3,h4,h5
@@ -2620,16 +2620,19 @@
3,h4,h5,
+h6,
pre',%0A
|
7a882b956e1732dfc19914543855fb484912c11a | Fix tab-pane-item-test | lib/assets/test/spec/builder/components/tab-pane/tab-pane-item-view.spec.js | lib/assets/test/spec/builder/components/tab-pane/tab-pane-item-view.spec.js | var _ = require('underscore');
var TabPaneItemView = require('builder/components/tab-pane/tab-pane-item-view');
var Backbone = require('backbone');
var CoreView = require('backbone/core-view');
describe('components/tab-pane-item-view', function () {
beforeEach(function () {
this.model = new Backbone.Model({
... | JavaScript | 0.000009 | @@ -1651,9 +1651,9 @@
oBe(
-3
+2
);%0A
|
b6c0258dc75f40b96b60284100f06fa7fa211058 | Fix joblisting list key attr | app/routes/joblistings/components/JoblistingList.js | app/routes/joblistings/components/JoblistingList.js | // @flow
import React from 'react';
import { Link } from 'react-router';
import styles from './JoblistingList.css';
import { Image } from 'app/components/Image';
import Time from 'app/components/Time';
import { Flex } from 'app/components/Layout';
import { Year, jobType, Workplaces } from './Items';
type JobListingIt... | JavaScript | 0.000013 | @@ -2164,17 +2164,16 @@
ngs.map(
-(
joblisti
@@ -2178,12 +2178,8 @@
ting
-, i)
=%3E
@@ -2207,17 +2207,29 @@
em key=%7B
-i
+joblisting.id
%7D joblis
|
b1fec61f07912e962a38b4256068e73c8f3a6a74 | Change websocket URI formation | public/js/controllers/dice.js | public/js/controllers/dice.js | /**
* @param route Part of the URI after the host name and port, including "/"
* @returns {WebSocket}
*/
var createWebSocket = function (route) {
return new WebSocket('wss://' + window.location.hostname + route)
};
angular.module("diceApp", [])
.service('nameService', function () {
return {
... | JavaScript | 0 | @@ -171,19 +171,8 @@
ket(
-'wss://' +
wind
@@ -187,16 +187,36 @@
ion.
-hostname
+origin.replace('http', 'ws')
+ r
|
5e3855541abc2252b1ab3f67ad5830acf90cea82 | Fix issues from layer panel merge. (#6641) | assets/src/edit-story/components/panels/design/pageBackground/pageBackground.js | assets/src/edit-story/components/panels/design/pageBackground/pageBackground.js | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0 | @@ -1730,17 +1730,17 @@
margin:
-6
+5
px;%0A im
@@ -1771,18 +1771,18 @@
r;%0A m
-in
+ax
-height:
@@ -1778,28 +1778,49 @@
max-height:
-24px
+100%25;%0A max-width: 100%25
;%0A %7D%0A%60;%0A%0Aco
@@ -3028,23 +3028,20 @@
%7B Layer
-Content
+Icon
%7D = get
@@ -3806,15 +3806,12 @@
ayer
-Content
+Icon
e... |
c4ae1fe341bae659a5077be90057b303de348bf1 | declare _this as a constant | app/sc-navigation/directives/main-menu-directive.js | app/sc-navigation/directives/main-menu-directive.js | (() => {
angular
.module('scNavigation')
.directive('scMainMenu', scMainMenu);
function scMainMenu(app, shell) {
return {
restrict: 'E',
replace: true,
templateUrl: 'sc-navigation/directives/main-menu-directive.tpl.html',
controllerAs: 'mainMenu',
controller(app, shell) {... | JavaScript | 0.000036 | @@ -326,11 +326,13 @@
-var
+const
_th
|
96110674abbfec7b13f64a532046ffead3cdcc2c | Fix pressure widget overlay onclick method. #127 | app/scripts/Widget/plugins/PressureWidget/Widget.js | app/scripts/Widget/plugins/PressureWidget/Widget.js | import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import classnames from 'classnames'
import * as Paths from '../../../Paths'
import { OverlayWidget } from '../../components'
import { PressureForm, TargetList, PressureCount } from './components'
import { TellAFriend } from '../... | JavaScript | 0 | @@ -1394,16 +1394,38 @@
const %7B
+ mobilization, widget,
editabl
@@ -1633,38 +1633,24 @@
%0A const %7B
- mobilization,
widget, edi
|
ee4a42de324ebe486358c18c5f083076f17e48b4 | Fix for #683 - "Mark activities" is fixed for multiple studies and for single study | web/src/main/webapp/js/scheduled-activity-batch-modes.js | web/src/main/webapp/js/scheduled-activity-batch-modes.js | /* TODO: these functions must all be namespaced. Also, most of these event registrations will need
* to be made dynamic (in response to schedule updates) instead of one time at load.
*/
function registerBatchRescheduleHandlers() {
Event.observe('batch-form', "submit", function(e) {
$('batch-indicator').... | JavaScript | 0 | @@ -678,16 +678,18 @@
d').size
+()
%3E 0) %7B%0A
|
c43afdc113bd702d113cc8ad75a33a490a6abb7e | set absolute path for junit-reporter output (#3935) | generators/client/templates/src/test/javascript/_karma.conf.js | generators/client/templates/src/test/javascript/_karma.conf.js | // Karma configuration
// http://karma-runner.github.io/0.13/config/configuration-file.html
var sourcePreprocessors = ['coverage'];
function isDebug() {
return process.argv.indexOf('--debug') >= 0;
}
if (isDebug()) {
// Disable JS minification if Karma is run with debug option.
sourcePreprocessors = [];
... | JavaScript | 0.000001 | @@ -1583,16 +1583,19 @@
tFile: '
+../
target/t
@@ -1670,16 +1670,19 @@
tFile: '
+../
build/te
|
1fa073552fd0c806aae62e6b317199e46aabd085 | Fix typo in limit configuration and remove bodyparser urlencoded middleware. | src/ParseCliServer.js | src/ParseCliServer.js | import express from 'express';
import bodyParser from 'body-parser';
import AppCache from 'parse-server/lib/cache';
import ParseCliController from './ParseCliController';
import ParseCliRouter from './ParseCliRouter';
import VendorAdapter from './VendorAdapter';
class ParseCliServer {
constructor({
config,
... | JavaScript | 0 | @@ -498,16 +498,23 @@
limit =
+config.
limit;%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.