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 |
|---|---|---|---|---|---|---|---|
3f2d0d93f308a52c533d3e5fd079942e90b0b6e7 | Clean up code | scripts/js/020-components/06-searchresults.js | scripts/js/020-components/06-searchresults.js | // Get URL parameters as an object
// USAGE:
// getAllUrlParams().product; // 'shirt'
// getAllUrlParams().color; // 'blue'
// getAllUrlParams().newuser; // true
// getAllUrlParams().nonexistent; // undefined
// getAllUrlParams('http://test.com/?a=abc').a; // 'abc'
function getAllUrlParams(url) {
// get query strin... | JavaScript | 0.000004 | @@ -2304,56 +2304,8 @@
) %7B%0A
-%09// query = %22keywords:product keywords:manager%22;
%0A%09va
|
c21bb763e20b48f0eccf0f9205de7e1bb10ad41d | add few more tests | test.js | test.js | /*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
/* deps: mocha */
var assert = require('assert');
var isNumber = require('./');
var shouldPass = [
0xff,
5e3,
0,
-1.1,
37,
3.14,
1,
1.1,
... | JavaScript | 0 | @@ -277,16 +277,31 @@
3,%0A 0,%0A
+ 0.1,%0A -0.1,%0A
-1.1,%0A
@@ -358,16 +358,35 @@
-100,%0A%0A
+ '0.1',%0A '-0.1',%0A
'-1.1'
|
a4f2dc209dd373185c697d7f7825626bcf3191a5 | Add .package to interface test | test.js | test.js | var doTest = require ('./');
var testsDone = 0;
// Tests
doTest.add ('Module interface', function () {
var test = doTest.test ();
test
.isObject ('fail', 'exports', doTest)
.isFunction ('fail', '.config', doTest.config)
.isFunction ('fail', '.add', doTest.add)
.isFunction ('fail', '.run', doTest... | JavaScript | 0.000001 | @@ -174,24 +174,75 @@
s', doTest)%0A
+ .isObject ('fail', '.package', doTest.package)%0A
.isFunct
|
04080254cb8d8e68f680731ce821d2662ca896fb | update prompt / question | fstimizely.js | fstimizely.js | #! /usr/bin/env node
var UPLOAD = process.argv[2] === 'up';
var Optimizely = require('./lib/optimizely');
var fs = require('fs');
var slug = require('slug');
var git = require('git-promise');
var gitUtil = require('git-promise/util');
require('colors');
/**
* Token API for multiple projects
* cat ~/.fstimizelyrc ... | JavaScript | 0.000111 | @@ -3956,24 +3956,25 @@
urn start !=
+=
end; // jsh
@@ -4119,24 +4119,47 @@
Answer(q) %7B%0A
+ console.log('here');%0A
var prompt
@@ -4189,17 +4189,8 @@
nc')
-.question
;%0A
@@ -4226,16 +4226,16 @@
.parse;%0A
-
var a
@@ -4242,16 +4242,25 @@
= prompt
+.question
(q + '?
|
60267a2d2a01b39410f20c8953f6b71430d4d6ed | fix example not using mocks (#445) | packages/data-point/examples/reducer-entity-instance.js | packages/data-point/examples/reducer-entity-instance.js | const assert = require("assert");
const DataPoint = require("../");
const { Model, Request } = DataPoint;
const PersonRequest = Request("PersonRequest", {
url: "https://swapi.co/api/people/{value}"
});
const PersonModel = Model("PersonModel", {
value: {
name: "$name",
birthYear: "$birth_year"
}
});
c... | JavaScript | 0 | @@ -102,16 +102,97 @@
Point;%0A%0A
+const mocks = require(%22./async-example.mocks%22);%0A%0A// mock request calls%0Amocks();%0A%0A
const Pe
@@ -275,16 +275,17 @@
/%7Bvalue%7D
+/
%22%0A%7D);%0A%0Ac
|
6ddb22900275b3c8d3adf9840dad0be002a99d27 | fix init method | src/core/plugin.js | src/core/plugin.js | 'use strict';
const EventEmittable = require('./eventemittable');
const Unique = require('./unique');
const Promise = require('bluebird');
const ParamValidator = require('./param-validator');
const errorist = require('errorist');
const validator = ParamValidator.validator;
const {DepGraph} = require('dependency-graph'... | JavaScript | 0.000096 | @@ -1949,104 +1949,124 @@
.
-unknown(true)%0A .label('context')%0A .description('Stampit init context')%0A %7D
+label('instance')%0A .unknown(true)%0A .description('Stampit instance')%0A %7D)%0A .unknown(true
)%0A
|
2601c94c7a30f2f127daf3d09d876524605a2992 | update script | js/script.js | js/script.js | jQuery('#pixad1101d').css('overflow', 'hidden');jQuery('.sticky-box').remove();jQuery('.article-body iframe').remove();jQuery('.article-body script').remove();jQuery('#main').css('overflow', 'hidden'); | JavaScript | 0.000001 | @@ -138,14 +138,20 @@
ody
-script
+.adsbygoogle
').r
|
c07af02a3c872b2ce90da9700754ffd7e2d2c058 | add stop timer logic | js/script.js | js/script.js | // Declare global variables
var mainTimer = document.getElementById("startTimer");
var timerState = document.getElementById("displayTimer");
var breakState = document.getElementById("displayBreak");
var count = parseInt(document.getElementById("displayTimer").innerHTML);
var breakCount = parseInt(document.getElementByI... | JavaScript | 0.000001 | @@ -1104,24 +1104,70 @@
n timer() %7B%0A
+ if (timerState.style.zIndex == %221%22) %7B%0A
count
@@ -1168,24 +1168,26 @@
count -= 1;%0A
+
if (co
@@ -1207,16 +1207,18 @@
+
alertSou
@@ -1228,16 +1228,18 @@
play();%0A
+
@@ -1266,24 +1266,26 @@
r);%0A
+
+
var b... |
846133bc34f008f0d4ecc64e7b0f0080571aaed2 | Fix for occasional instangram api bug | js/script.js | js/script.js | // http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller, fixes from Paul Irish and Tino Zijdel
(function() {
"use strict";
var lastTime = 0;
var vendors = ['ms'... | JavaScript | 0 | @@ -5222,24 +5222,113 @@
gth; i++) %7B%0A
+%09%09%09%09// A bug in the api occasionally means the url is returned on the thumbnail property%0A
%09%09%09%09images.p
@@ -5364,16 +5364,49 @@
nail.url
+ %7C%7C data.data%5Bi%5D.images.thumbnail
);%0A%09%09%09%7D%0A
|
d4c2050662bcaf878d4e12bda96beb2eb3584125 | Update componentsDirective | angular/directives/componentsDirective.js | angular/directives/componentsDirective.js | (function() {
'use strict';
/**
* @ngdoc directive
* @name app
*
* @description
* _Please update the description and restriction._
*
* @restrict A
* */
angular.module('components.directives').directive('componentsDirective', function() {
return {
... | JavaScript | 0 | @@ -114,16 +114,9 @@
* _
-Please u
+U
pdat
@@ -264,16 +264,17 @@
ctive',
+%5B
function
@@ -405,16 +405,17 @@
%7D;%0A %7D
+%5D
);%0A%7D)();
|
1b42aa05260069c1965f016dc94840cc8c3226e7 | fix whoami | scripts/eastereggs.js | scripts/eastereggs.js | module.exports = function(robot){
var thankYouResponses = [
"You're welcome!",
"No problem."
];
robot.hear(/(thanks|thank you) bocbot/i, function(res){
var index = Math.floor(Math.random() * thankYouResponses.length);
res.reply(thankYouResponses[index]);
});
robot.hear(/I like pie/i, function(res){
ro... | JavaScript | 0.000015 | @@ -1367,23 +1367,64 @@
%7B%0A%09%09
-res.sendPrivate
+if (robot.auth.isAdmin(res.message.user))%0A%09%09%09res.respond
(res
|
166e2e7881707c45f5ea7022ea1dd61665093848 | Update script.js | js/script.js | js/script.js | (function(window, document, undefined) {
window.onload = init;
function init() {
//get the canvas
var canvas = document.getElementById("mapcanvas");
var c = canvas.getContext("2d");
var width = 512;
var height = 288;
var blockSize = 16;
document.getE... | JavaScript | 0.000002 | @@ -662,32 +662,32 @@
c.fillRect(
-i*x, j*y
+x+i, y+j
, 1, 1);%0A
@@ -846,16 +846,16 @@
ect(
-i*x, j*y
+x+i, y+j
, 1,
|
9222123ab11b5b92f8b10ac74a7149b659b2f8cc | Update app/assets/javascripts/ckeditor/config.js | app/assets/javascripts/ckeditor/config.js | app/assets/javascripts/ckeditor/config.js | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AA... | JavaScript | 0.000106 | @@ -3195,16 +3195,38 @@
pload &&
+ upload.filebrowser &&
upload.
@@ -3249,21 +3249,27 @@
ams'%5D ==
- null
+= undefined
) %7B%0D%0A
|
6b8befeff80e1ea8ae3cd7401b40a6e1a8703bb1 | Update script.js | js/script.js | js/script.js | var script = document.createElement('script');
script.src = 'http://code.jquery.com/jquery-1.11.0.min.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);
(function(window, document, undefined) {
window.onload = init;
function init() {
var canvas = documen... | JavaScript | 0.000002 | @@ -583,16 +583,18 @@
+//
dynamic
@@ -662,15 +662,96 @@
amic
- * 1.2;
+;%0A %0A //if we've reached the end, change direction%0A if(x
%0A
|
614dc5f34e7dde8034e0882f63939c0d49fc13a2 | Update script.js | js/script.js | js/script.js | (function(window, document, undefined) {
window.onload = init;
function init() {
//get the canvas
var canvas = document.getElementById("mapcanvas");
var c = canvas.getContext("2d");
var cwidth = 960;
var cheight = 540;
document.getElementById("paintbtn").onclick ... | JavaScript | 0.000002 | @@ -1707,17 +1707,16 @@
dom() *
-1
9));%0A
|
ee8efc2d327da8d4b10e94ab274273225bda038a | Support browsers without `console.log` | js/search.js | js/search.js | function Search (url) {
this.reset();
this.url = url;
this.MAXIMUM_ACTIVE_CONNECTIONS = 10;
this.QUEUE_DELAY = 100;
}
Search.prototype.reset = function () {
this.discovered = [];
this.activeConnections = 0;
this.searchQueue = [];
this.nextSearchQueue = [];
this.chains = [];
}
Search.prototype.c... | JavaScript | 0 | @@ -2319,24 +2319,140 @@
ngth %3E 0) %7B%0A
+ // Keep pushing to the console to make sure it didn't stall%0A if (console != null && console.log != null) %7B%0A
console.
@@ -2478,16 +2478,22 @@
ue...%22);
+%0A %7D
%0A%0A //
|
dca094b389a6ae0c3a2d1074ddd4e91349facc23 | create the DummySerial | js/serial.js | js/serial.js | var GameboyJS;
(function (GameboyJS) {
"use strict";
// Handler for the Serial port of the Gameboy
//
// It is designed for debug purposes as some tests output data on the serial port
//
// Will regularly output the received byte (converted to string) in the console logs
// This handler always push the value 0xFF as a... | JavaScript | 0.000496 | @@ -57,16 +57,17 @@
Handler
+s
for the
@@ -98,19 +98,62 @@
boy%0A
-//
%0A//
-It is
+The ConsoleSerial is an output-only serial port%0A//
des
@@ -189,16 +189,20 @@
ome test
+ rom
s output
@@ -749,16 +749,17 @@
nction()
+
%7B%0A
@@ -949,16 +949,16 @@
%7D%0A%7D;%0A
-
GameboyJ
@@ -989,16 +989,205 @... |
5e670a108da092f048697b054aef099ee2e6f42a | Update generate-docs script | scripts/generate-docs.js | scripts/generate-docs.js | #!/usr/bin/env node
'use strict';
(function () {
var fs = require('fs');
var jsdom = require('jsdom');
var docs = require('../docs/docs');
// Jsdom document
var document = jsdom.jsdom(
'<!DOCTYPE html>' +
'<html>' +
'<head>' +
'<meta charset="utf-8">' +
'<meta name="viewport" con... | JavaScript | 0 | @@ -448,21 +448,16 @@
%22 href=%22
-docs/
styles.c
@@ -5841,39 +5841,11 @@
%7D%0A
+%0A
-%7D%0A%0A createDocumentation();%0A%0A
fs
@@ -5855,17 +5855,29 @@
iteFile(
-'
+%0A 'docs/
index.ht
@@ -5880,16 +5880,22 @@
x.html',
+%0A
'%3C!DOCT
@@ -5945,43 +5945,199 @@
HTML
-);%0A%0A console.log('Do... |
9495a3b19811899337da8f1ceabea434c3685c8f | Update social.js | js/social.js | js/social.js | var social = {
facebook: {
share: function(url) {
FB.ui({
method: 'share',
href: url
}, function(response){});
},
count: function(url) {
var result;
$.get("https://graph.facebook.com/",{id: url},function(data, status){
result = data.share;
});
return result;
}
}
}
| JavaScript | 0.000001 | @@ -175,16 +175,24 @@
%0A%09%09%09%0A%09%09%09
+var s =
$.get(%22h
|
1ed5717d54476c8f599ffea682c2e53ce6f93102 | Update social.js | js/social.js | js/social.js | var social = {
facebook: {
share: function(url) {
FB.ui({
method: 'share',
href: url
}, function(response){});
},
count: function(url, callback) {
$.get("https://graph.facebook.com/",{id: url},function(data, status){
callback(data.share);
});
}
},
reddit: {
process: function(domai... | JavaScript | 0.000001 | @@ -13,99 +13,106 @@
%7B%0A%09
-facebook: %7B%0A%09%09share: function(url) %7B%0A%09%09%09FB.ui(%7B%0A%09%09%09%09method: 'share',%0A%09%09%09%09href: url%0A%09%09 %09
+linkedin: %7B%0A%09%09process: function(url, callback) %7B%0A%09%09%09$.get(%22https://graph.facebook.com/%22,%7Bid: url
%7D,
-
func
@@ -120,34 +... |
4ed80aec12ad52cb2f435a38d4d1edd76280c22f | add inline jsdoc to msp-manager | fabric-client/lib/msp/msp-manager.js | fabric-client/lib/msp/msp-manager.js | /**
* Copyright 2017 IBM All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | JavaScript | 0 | @@ -1069,72 +1069,859 @@
p;%0A%0A
-var MSPManager = class %7B%0A%09constructor() %7B%0A%09%09this._msps = %7B%7D;%0A%09%7D%0A
+/**%0A * MSPManager is an interface defining a manager of one or more MSPs. This essentially acts%0A * as a mediator to MSP calls and routes MSP related calls to the appropriate MSP. This obje... |
3c28ceeaa9c53466ac404d33c1972e6764208786 | Change refresh interval to 15 seconds | js/tasseo.js | js/tasseo.js | // add our containers
for (var i=0; i<metrics.length; i++) {
$('#main').append('<div id="graph" class="graph' + i + '"><div id="overlay-name" class="overlay-name' + i + '"></div><div id="overlay-number" class="overlay-number' + i + '"></div></div>');
}
var graphs = []; // rickshaw objects
var datum = []; // met... | JavaScript | 0.00001 | @@ -3235,17 +3235,18 @@
ned') ?
-2
+15
000 : re
|
856780f40f382efb558d161d2e1fc45934689146 | fix object parsing | game/world.js | game/world.js | var Player = require('./player');
var World = module.exports = function World(level, players) {
//Mixin level definitions
for (var key in level) {
this[key] = level[key];
}
this.init();
this.width = this.map_definition.width;
this.height = this.map_definition.height;
this.map = new... | JavaScript | 0.000067 | @@ -1227,18 +1227,40 @@
ject
-.x%5D%5Bobject
+_definition.x%5D%5Bobject_definition
.y%5D.
@@ -1289,16 +1289,23 @@
finition
+.object
(); %0A
|
255dadb1c03ea3076ba45e6198dac4dfe2839755 | Fix anvil jss suite. | tests/anvil/configSet/Resources/suites/jss.js | tests/anvil/configSet/Resources/suites/jss.js | /*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
module.exports = new function() {
var finish;
var valueOf;
this.init = function... | JavaScript | 0 | @@ -539,16 +539,20 @@
eView(%7B
+%0A%09%09%09
id: %22tes
@@ -557,12 +557,45 @@
est%22
- %7D);
+,%0A%09%09%09backgroundColor: %22blue%22%0A%09%09%7D);%0A%09%09
%0A%09%09v
|
d7dc4dcb3c8daae16e3b625add8d8a4ee96062aa | Allow random to link directly to an image. | keydeerme.js | keydeerme.js | Images = new Mongo.Collection("images");
if (Meteor.isServer) {
Images._ensureIndex( {url: 1}, { unique: true });
Images._ensureIndex( {random: 1} );
}
var PREFER_ORIG = true
function maxResUrl(image) {
url = image.url
if (PREFER_ORIG && _.contains(image.resolutions, null)) {
return url + ".jpg";
... | JavaScript | 0 | @@ -2379,16 +2379,392 @@
+'%22%7D';%0A
+%09%7D,%0A%0A%09'api/random.jpg': function(data) %7B%0A%09 this.setContentType('text/html');%0A%09 this.addHeader(%22Cache-Control%22, %22no-cache, no-store, must-revalidate%22); // HTTP 1.1.%0A%09 this.addHeader(%22Pragma%22, %22no-cache%22); // HTTP 1.0.%0A%09 thi... |
386b47b0b505ca9445a5d4597110aa8f226e5a77 | Remove CM_FormField_Integer.getValue in favor of correct value sync. | library/CM/FormField/Integer.js | library/CM/FormField/Integer.js | /**
* @class CM_FormField_Integer
* @extends CM_FormField_Abstract
*/
var CM_FormField_Integer = CM_FormField_Abstract.extend({
_class: 'CM_FormField_Integer',
_$noUiHandle: null,
ready: function() {
var field = this;
var $input = this.$('input');
var $slider = this.$('.noUiSlider');
var $sl... | JavaScript | 0 | @@ -1427,124 +1427,8 @@
%7D,%0A%0A
- /**%0A * @returns %7BNumber%7D%0A */%0A getValue: function() %7B%0A return parseInt(this.$('.noUiSlider').val());%0A %7D,%0A%0A
_o
|
dd0ef7f927a5183b450b4f6e6b4b38a5339b886a | complete has user media method | scripts/src/UserMedia.js | scripts/src/UserMedia.js | window.define(['src/NavigatorWrapper'], function(NavigatorWrapper) {
"use strict";
var UserMedia = function(navigator) {
if(typeof navigator === "undefined") {
this.navigator = new NavigatorWrapper();
}
else {
this.navigator = navigator;
}
};
User... | JavaScript | 0.000398 | @@ -372,53 +372,146 @@
-// Note: Opera is un prefixed.%0A return
+try %7B%0A this.navigator.getUserMedia();%0A return true;%0A %7D%0A catch(e) %7B%0A return false;%0A %7D
%0A
|
8ec32ca69f8759bf2e64724cf7ef7aad9744c87b | Clear php log on each npm start | scripts/webpack-serve.js | scripts/webpack-serve.js | const fs = require('fs-extra')
const path = require('path')
const browserSync = require('browser-sync')
const webpack = require('webpack')
const webpackConfig = require('../webpack.config.dev')
const webpackDevMiddleware = require('webpack-dev-middleware')
const webpackHotMiddleware = require('webpack-hot-middleware')
... | JavaScript | 0 | @@ -4386,16 +4386,86 @@
r () %7B%0A
+ Promise.resolve()%0A .then(() =%3E fs.remove(LOGPATH))%0A .then(() =%3E
fs.ensu
@@ -4479,16 +4479,17 @@
LOGPATH)
+)
%0A .th
|
780473fccf5293da6dec4707707f4c472aba3243 | allow GH deps | tests/unit/package/dependency-version-test.js | tests/unit/package/dependency-version-test.js | 'use strict';
var assert = require('../../helpers/assert');
var semver = require('semver');
function assertVersionLock(deps) {
deps = deps || {};
Object.keys(deps).forEach(function(name) {
if (name !== 'ember-cli' && semver.gtr('1.0.0', deps[name])) {
// only valid if the version is fixed
assert(... | JavaScript | 0.000001 | @@ -114,16 +114,17 @@
ionLock(
+_
deps) %7B%0A
@@ -129,15 +129,20 @@
%7B%0A
+var
deps =
+_
deps
@@ -226,16 +226,60 @@
-cli' &&
+%0A semver.valid(deps%5Bname%5D) &&%0A
semver.
|
579b672c9377595b33f8f33dba57ac14f6e9295d | Build search conditions correctly | content/typicalReplyButtons.js | content/typicalReplyButtons.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var TypicalReplyButtons = {
get utils() {
delete this.utils;
let { TypicalReply } = Components.utils.imp... | JavaScript | 0.000009 | @@ -5774,16 +5774,27 @@
ndition(
+aDefinition
);%0A i
|
420ca6d21c2072a0f10e05a1cf5d2fc8e961e4c6 | Create login functionality in Ally framework | plugins/gui-core/gui-resources/scripts/js/views/auth.js | plugins/gui-core/gui-resources/scripts/js/views/auth.js | define
([
'jquery', 'jquery/superdesk', 'dust/core', 'utils/sha512', 'jquery/tmpl', 'jquery/rest', 'bootstrap',
'tmpl!auth',
],
function($, superdesk, dust, jsSHA)
{
<<<<<<< HEAD
var AuthLogin = function(username, password, logintoken){
=======
var AuthDetails = function(username){
var authDetails ... | JavaScript | 0 | @@ -1220,29 +1220,16 @@
ssion);%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
%09%09%09local
@@ -1445,437 +1445,8 @@
');%0A
-=======%0A%09%09%09//localStorage.setItem('superdesk.login.id', user.Id);%0A%09%09%09localStorage.setItem('superdesk.login.name', user.UserName);%0A%09%09%09localStorage.setItem('superdesk.login.email', u... |
50e2c2435e662105664985fa24684d66f409a124 | fix tests | test/Context.test.js | test/Context.test.js | 'use strict';
const expect = require('chai').expect;
const Context = require('../lib/Context');
const Method = require('../lib/Method');
describe('class Context', function() {
let context, method;
let noop = function() {};
beforeEach(function() {
method = new Method('test', {
params: [
{ name... | JavaScript | 0.000001 | @@ -2124,18 +2124,24 @@
iters').
-eq
+to.match
(/,%7C /g)
|
52806beb826b63d43d1637ebf32e1da64ccb6357 | Use global state for testTemplates | src/app/components/TestGenerator.js | src/app/components/TestGenerator.js | import 'codemirror/mode/javascript/javascript';
import React, { Component, PropTypes } from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import Button from './Button';
import AddButton from 'react-icons/lib/md/add';
import EditButton from 'react-icons/lib/md/e... | JavaScript | 0 | @@ -683,16 +683,50 @@
yles';%0A%0A
+let testTemplates;%0Alet selected;%0A%0A
export d
@@ -807,27 +807,51 @@
props);%0A
-let
+if (!testTemplates) %7B%0A
testTemplat
@@ -912,27 +912,25 @@
ates');%0A
-let
+
selected =
@@ -994,24 +994,30 @@
sel') %7C%7C 0;%0A
+ %7D%0A
if (type
@@ -1409,32 +1... |
528324e00953a8689778aa1811529a39528e584c | Clean up redundant Promise.resolve() in ImagePreview.js | front_end/components/ImagePreview.js | front_end/components/ImagePreview.js | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as Common from '../common/common.js';
import * as i18n from '../i18n/i18n.js';
import * as Platform from '../platform/platform.js';
import * as S... | JavaScript | 0.000013 | @@ -1622,15 +1622,21 @@
tic
+async
build(%0A
-
@@ -1935,32 +1935,16 @@
return
-Promise.resolve(
/** @typ
@@ -1957,33 +1957,32 @@
ement%7D */ (null)
-)
;%0A %7D%0A let
@@ -2360,24 +2360,8 @@
urn
-Promise.resolve(
/**
@@ -2386,17 +2386,16 @@
/ (null)
-)
;%0A %7D%0A
|
b8f3d96e5a9eff76834b4cb95238218eb42c6a4c | use explicit cookie name for cookieconsent | sirepo/package_data/static/js/sirepo-common.js | sirepo/package_data/static/js/sirepo-common.js | 'use strict';
// Common code shared between the landing page app and the various sirepo apps
window.cookieconsent.initialise({
//TODO(pjm): set cookie domain?
content: {
//TODO(pjm): update with links to terms of service when available
message: 'This site uses cookies to deliver our services. ... | JavaScript | 0.000001 | @@ -438,24 +438,79 @@
ull,%0A %7D,%0A
+ cookie: %7B%0A name: 'sr_cookieconsent',%0A %7D,%0A
palette:
|
c9340fce163c1d4c07dd5ce9d066818768bb76f3 | Fix style violation. | frontend/js/components/atoms/Card.js | frontend/js/components/atoms/Card.js | import React, { PropTypes, Component } from 'react';
class Card extends Component {
constructor(props) {
super(props);
}
render() {
return (
<section
className={`${this.props.className} card`}
onClick={this.props.onClick}>
{
... | JavaScript | 0 | @@ -45,16 +45,52 @@
'react';
+%0Aimport Icon from './../atoms/Icon';
%0A%0Aclass
@@ -1135,32 +1135,60 @@
opTypes.string,%0A
+ actions: PropTypes.any,%0A
onClose: Pro
|
07b88fb9792c25d4c70651488c14f5a6249e1331 | Remove unnecessary Em.run wrapping | test/app/app_test.js | test/app/app_test.js | module("Application", {
setup: function () {
Ember.run(function () {MY_APP.reset();});
}
});
test("Parameters", function () {
ok(MY_APP.rootElement === "#MY_APP", "rootElement");
ok(Ember.$.support.cors, "Cross-origin resource sharing support");
});
| JavaScript | 0.000008 | @@ -45,31 +45,8 @@
%7B%0A%09%09
-Ember.run(function () %7B
MY_A
@@ -56,19 +56,16 @@
reset();
-%7D);
%0A%09%7D%0A%7D);%0A
|
01ae2f9b8f48b29b8478138d2af15acc2d0cfa9e | Update Cell.js | src/entity/Cell.js | src/entity/Cell.js | function Cell(gameServer, owner, position, size) {
this.gameServer = gameServer;
this.owner = owner; // playerTracker that owns this cell
this.tickOfBirth = 0;
this.color = { r: 0, g: 0, b: 0 };
this.position = { x: 0, y: 0 };
this._sizeSquared = 0;
this._size = 0;
this... | JavaScript | 0 | @@ -913,22 +913,35 @@
is.g
-etNextNodeId()
+ameServer.lastNodeId++ %3E%3E 0
;%0D%0A
@@ -1194,207 +1194,8 @@
%0D%0A%0D%0A
-Cell.prototype.getNextNodeId = function () %7B%0D%0A if (this.gameServer.lastNodeId %3E 2147483647) %7B%0D%0A this.gameServer.lastNodeId = 1;%0D%0A %7D%0D%0A return this.gameServ... |
9211bb282e64d552267a601f29d1d1447a5fd7e2 | delete toBeFalsy, add toBeNull and toBeCloseTo methods | src/expectation.js | src/expectation.js | define(['is-equal', 'get-type', 'condition'],
function (isEqual, getType, condition) {
"use strict";
function Expectation (context, thing, opts) {
opts = opts || {};
var not = opts.not || false,
passed = null,
message = function () {
var n,
... | JavaScript | 0 | @@ -992,35 +992,35 @@
ssage(not ?
-%22
+'
not
-%22 : %22%22
+' : ''
, 'to equal
@@ -1302,14 +1302,15 @@
toBe
-Truthy
+CloseTo
= f
@@ -1310,32 +1310,43 @@
eTo = function (
+num, margin
) %7B%0A
@@ -1358,30 +1358,97 @@
d =
-not ? !thing : !!thing
+thing %3C num + margin %7C%7C thing %3E num - mar... |
18a2b4ee7bc9398c9208470c33406c4f584e1e76 | Add small delay on experiment return log | src/experiments.js | src/experiments.js | /* @flow */
import { info, track, immediateFlush } from 'beaver-logger/client';
import { FPTI } from './config';
import { getReturnToken, getSessionState, getDomainSetting, eventEmitter } from './lib';
export let onAuthorizeListener = eventEmitter();
function log(experiment : string, treatment : string, token : ?st... | JavaScript | 0.000001 | @@ -2758,24 +2758,55 @@
ken %7D) =%3E %7B%0A
+ setTimeout(() =%3E %7B%0A
logR
@@ -2822,24 +2822,39 @@
mentToken);%0A
+ %7D, 1);%0A
%7D);%0A%0A
@@ -2926,29 +2926,124 @@
-logReturn(returnToken
+setTimeout(() =%3E %7B%0A if (returnToken) %7B%0A logReturn... |
535aa6c1b4a7dc04dc7ca69a6fa5a9499b5bfd50 | Add Expression._hasVariable to check if an expression has a variable | src/expressions.js | src/expressions.js | var Fraction = require('./fractions');
var Term = require('./terms');
var isInt = require('./helper').isInt;
var UserException = require('./exceptions').UserException;
// The constant of the expression is maintained on the Expression object itself.
// Anything else is held in an array of Term objects.
var Expression ... | JavaScript | 0.000012 | @@ -5213,16 +5213,233 @@
tr;%0A%7D;%0A%0A
+Expression.prototype._hasVariable = function(variable) %7B%0A for (i = 0; i %3C this.terms.length; i++) %7B%0A if (variable == this.terms%5Bi%5D.variable) %7B%0A return true;%0A %7D%0A %7D%0A%0A return false;%0A%7D;%0A%0A
module.e
|
fcab90f27c6588b3c3d6c6b1eb4fa1589e499974 | test cases for vanilla usage of stringify; #1 | test/comment-json.js | test/comment-json.js | 'use strict';
var expect = require('chai').expect;
var comment_json = require('../'); | JavaScript | 0.000015 | @@ -53,16 +53,8 @@
var
-comment_
json
@@ -69,10 +69,957 @@
re('../'
+);%0A%0Adescribe(%22vanilla usage of %60json.stringify()%60%22, function()%7B%0A var subjects = %5B%0A 'abc',%0A 1,%0A true,%0A false,%0A null,%0A undefined,%0A %5B%5D,%0A %7B%7D,%0A %5B'abc', 1, %7Ba: 1, b: undefined%7... |
22ca2419a125125101b1966b6c9c6d96fbec760f | Update ArmQuadrapus.js | game/js/gameentities/ArmQuadrapus.js | game/js/gameentities/ArmQuadrapus.js | "use strict";
var QuadrapusArm = function(world, Bullet, options, audio) {
this.world = world;
this.color = options.color || "#800080";
this.Bullet = Bullet;
this.audio = audio;
this.spriteName = options.spriteName || null;
this.type = "boss";
this.active = true;
this.width = options.width;
this.height = 13... | JavaScript | 0 | @@ -1148,33 +1148,33 @@
i,%0A%09%09%09%09%09speed:
-5
+2
,%0A%09%09%09%09%09accelerat
@@ -1573,9 +1573,9 @@
ed:
-5
+2
,%0A%09%09
|
7fa27abeb433327ae608ef4b4dd5781247b36d11 | Clear timer on component destruction | app/ui/app/app-ui-widget-constraintset.js | app/ui/app/app-ui-widget-constraintset.js | /*
** ComponentJS -- Component System for JavaScript <http://componentjs.com>
** Copyright (c) 2009-2013 Ralf S. Engelschall <http://engelschall.com>
**
** This Source Code Form is subject to the terms of the Mozilla Public
** License, v. 2.0. If a copy of the MPL was not distributed with this
** file, You c... | JavaScript | 0 | @@ -2475,32 +2475,114 @@
%7D)%0D%0A
+ %7D,%0D%0A destroy: function () %7B%0D%0A clearTimeout(this.timer)%0D%0A
%7D%0D%0A %7D
|
378a32f905aa64f9ecf2d588c2aabd078f25cbd4 | Fix charts not showing in printed compendium | src/main/web/js/app/print-compendium.js | src/main/web/js/app/print-compendium.js | $(function() {
if ($('body').hasClass('compendium_landing_page')) {
$('.js-print-chapters').click(function (e) {
addLoadingOverlay();
$('.chapter').each(function (index) {
// Synchronously adds div with id to get around Ajax working asynchronously
$('... | JavaScript | 0 | @@ -3,16 +3,17 @@
function
+
() %7B%0A
@@ -115,24 +115,56 @@
ction (e) %7B%0A
+ e.preventDefault();%0A
@@ -201,21 +201,108 @@
-$('.chapter')
+var $chapters = $('.chapter'),%0A chapterLength = $chapters.length;%0A%0A $chapters
.eac
@@ -757,64 +757,451 @@
... |
30984b994111903bb7f41557e9a2eeed58ccd0d2 | remove some useless code. | src/client/containers/notes/list.js | src/client/containers/notes/list.js | import React, {Component, PropTypes} from 'react';
import { connect } from 'react-redux';
import {visibleNotesSelector} from '../../selectors/notes';
import {notesActions} from '../../actions/notes';
import {personsActions} from '../../actions/persons';
import {companiesActions} from '../../actions/companies';
import {... | JavaScript | 0.000011 | @@ -1,12 +1,34 @@
+import R from 'ramda'%0A
import React
@@ -1308,92 +1308,8 @@
%7D%0A%0A
- handleResetFilter = () =%3E %7B%0A this.props.dispatch(notesActions.filter(''))%0A %7D%0A%0A
ha
@@ -1495,86 +1495,65 @@
)%0A
- // Masonry hack for reloading layout on search%0A this.masonry.layout()%0A %7D
+%7... |
212518a4196dacc9e663475874ae7731e871cfb6 | Update passwordToggler.js | passwordToggler.js | passwordToggler.js | function PasswordToggler($strSelector, callBack){
this.strPrefix = "";
this.strSelector = $strSelector;
this.strHandler = "click";
this.strIconShow = "fa fa-eye";
this.strIconHide = "fa fa-eye-slash";
this.strTextShow = "Show password";
... | JavaScript | 0 | @@ -1,14 +1,15 @@
+
function
@@ -749,17 +749,17 @@
elector
-=
+!
= null)%7B
@@ -5798,17 +5798,73 @@
-C
+ new PasswordToggler.exception(e.message)%0A //c
onsole.l
@@ -7029,7 +7029,175 @@
-%7D;
+ %0A %7D;%0A PasswordToggler.prototype.exception = function(message) %7B%0A... |
c52eafcd58cc7d5126ead2dddb835964aa505c8d | add live reloading to customers | src/components/HomePage/HomePage.js | src/components/HomePage/HomePage.js | import React, { PropTypes, Component } from 'react';
import styles from './HomePage.scss';
import withStyles from '../../decorators/withStyles';
import IdleScreen from '../IdleScreen';
import Passenger from '../Passenger';
import Firebase from 'firebase';
import $ from 'jquery';
@withStyles(styles)
class HomePage exte... | JavaScript | 0 | @@ -1038,32 +1038,719 @@
%7D);%0A %7D);%0A%0A
+ self.firebaseCustomerRef.on(%22child_added%22, (customer)=%3E %7B%0A if (self.state.customers%5Bcustomer.key()%5D) return null;%0A%0A let customerVal = customer.val();%0A customerVal.key = customer.key;%0A self.state.customers%5BcustomerVal.k... |
4f17de7379a358ecaaca5108e0174d1035680bbd | fix test | test/fixtures/tag.js | test/fixtures/tag.js | module.exports = `
acyort.builder.register(['archives', 'archives'])
acyort.builder.extension = 'swig'
`
| JavaScript | 0.000002 | @@ -19,23 +19,24 @@
%0Aacyort.
-builder
+template
.registe
@@ -74,15 +74,16 @@
ort.
-builder
+template
.ext
|
1f548b577dc073c7b10de99cb5b7d8cf4464dafe | Remove proximity test | test/geocode.test.js | test/geocode.test.js | var fs = require('fs');
var util = require('util');
var Carmen = require('..');
var UPDATE = process.env.UPDATE;
var test = require('tape');
test('geocode', function(t) {
var geocoder = new Carmen({
country: Carmen.auto(__dirname + '/fixtures/01-ne.country.s3'),
province: Carmen.auto(__dirname + '/... | JavaScript | 0.000002 | @@ -1893,886 +1893,8 @@
%7D);%0A
- t.test ('proximity geocoding', function(q) %7B%0A geocoder.geocode('saint john', %7B%7D, function(err, res) %7B%0A q.ifError(err);%0A if (UPDATE) fs.writeFileSync(__dirname + '/fixtures/geocode-without-proximity.json', JSON.stringify(res, null, 4));%0A... |
906cfa81f2509da651e3f40c4a2580be3535b733 | comment cleanup | src/components/NumericInput.spec.js | src/components/NumericInput.spec.js | // the eslint "no-unused-expressions" rule is triggered by the `expect`
// assertions in the tests. So, in order to avoid problems with eslint, I'm
// disabling that rule in this file
//
/* eslint-disable no-unused-expressions */
import React from 'react';
import { shallow } from 'enzyme';
import chai from 'chai';
imp... | JavaScript | 0 | @@ -770,16 +770,320 @@
ecified%0A
+ should include a label with the the required flag if a label is specified & required is set%0A should not include a label with the the required flag if a label is specified & required is not set%0A should not include a label with the the required flag if a label is not spec... |
edbf526aeca5f2f38dbe1c042bb1d1cabe72db24 | Remove indirect Symbol polyfill requirement | src/components/ObserverContainer.js | src/components/ObserverContainer.js | // based on @researchgate/react-intersection-observer
import { parseRootMargin, shallowCompareOptions } from '../lib/utils'
export function getPooled(options = {}) {
const root = options.root || null
const rootMargin = parseRootMargin(options.rootMargin)
const threshold = Array.isArray(options.threshold)
... | JavaScript | 0 | @@ -403,29 +403,24 @@
d : 0%5D%0A%0A
-for (
const observ
@@ -421,19 +421,19 @@
observer
- of
+s =
storage
@@ -439,16 +439,103 @@
e.keys()
+%0A%0A for (let observer = observers.next(); !observer.done; observer = observers.next()
) %7B%0A
@@ -555,18 +555,16 @@
atched =
- %5B
%0A
@@ -572,44 +572... |
b1befcf2041910f2651e3f0e435d7c172457ccb9 | Fix string concatenation for showProgress | src/components/Tooltip/Container.js | src/components/Tooltip/Container.js | import React from 'react';
import PropTypes from 'prop-types';
import CloseBtn from './CloseBtn';
const JoyrideTooltipContainer = ({
continuous,
backProps,
closeProps,
primaryProps,
skipProps,
index,
isLastStep,
setTooltipRef,
size,
step,
}) => {
const { content, hideBackButton, locale, showProg... | JavaScript | 0.000875 | @@ -484,106 +484,50 @@
-if (isLastStep) %7B%0A output.primary = last;%0A %7D%0A else %7B%0A output.primary = next;%0A %7D
+output.primary = isLastStep ? last : next;
%0A%0A
@@ -573,15 +573,34 @@
ary
-+
=
-%60
+%3Cspan%3E%7Boutput.primary%7D
(
-$
%7Bind
@@ -611,17 +611,22 @@
1%7D/
-$... |
5ba27204d584301e716122c84bfe55f18fb45f19 | clean some commented code | src/components/Utils/FirebaseApi.js | src/components/Utils/FirebaseApi.js | import storage from 'key-storage';
import INITIAL_STATE from '../../INITIAL_STATE';
import fbConfig from '../../fbConfig';
import firebase from 'firebase';
firebase.initializeApp(fbConfig);
var DB = firebase.database();
class FirebaseApi {
constructor() {
}
getTodos(status_filter = [], priorities_filter = []... | JavaScript | 0.000001 | @@ -240,32 +240,8 @@
%7B%0A%0A
- constructor() %7B%0A%0A %7D%0A%0A
ge
@@ -401,271 +401,8 @@
%7D%0A%0A
- useFilters(todos, status_filter = %5B%5D, priorities_filter = %5B%5D) %7B%0A /*todos = todos.filter((obj, i) =%3E %7B%0A return status_filter.indexOf(parseInt(obj.status)) != -1 %7C%7C priorities_fi... |
a8537e6386e0906db044d1f00a2b82ec59c13570 | use fixed position for global backdrops. | src/components/backdrop/backdrop.js | src/components/backdrop/backdrop.js | /*
* @ngdoc module
* @name material.components.backdrop
* @description Backdrop
*/
/**
* @ngdoc directive
* @name mdBackdrop
* @module material.components.backdrop
*
* @restrict E
*
* @description
* `<md-backdrop>` is a backdrop element used by other components, such as dialog and bottom sheet.
* Apply cl... | JavaScript | 0 | @@ -1595,24 +1595,130 @@
(parent) %7B%0A
+%0A if ( parent.nodeName == 'BODY' ) %7B%0A element.css(%7Bposition : 'fixed'%7D);%0A %7D%0A%0A
va
|
5cc7e868dfb3ad719b0113e0eae5d1b5b6a07200 | Update HomePage.js | src/modules/core/components/HomePage.js | src/modules/core/components/HomePage.js | import React from "react";
import { graphql } from "react-apollo";
import gql from "graphql-tag";
import injectSheet from "react-jss";
import { Grid, Row, Col } from "react-bootstrap/lib";
import {
FeaturedArticle,
RecommendedArticles,
LatestArticlesRibbon,
LeftColumn,
RightColumn,
} from "../../articles/com... | JavaScript | 0 | @@ -2578,13 +2578,12 @@
g=%7B%22
-sing!
+news
%22%7D /
|
18d70ee9f03026a0435d85dbd299f3d9e7cae3fd | test exit code of info command | test/info-command.js | test/info-command.js | const assert = require('assert')
const path = require('path')
const z1 = require('..')
const { works } = require('./lib/command')
const {
TIMEOUT,
KILL_TIMEOUT
} = require('./lib/config')
describe('info command', function () {
this.timeout(TIMEOUT)
describe('option', function () {
before(async function (... | JavaScript | 0.000001 | @@ -255,45 +255,8 @@
T)%0A%0A
- describe('option', function () %7B%0A
be
@@ -276,34 +276,32 @@
nction () %7B%0A
-
await z1.start('
@@ -329,18 +329,16 @@
%7B%0A
-
workers:
@@ -344,31 +344,25 @@
: 1%0A
-
%7D)%0A
-
-
%7D)%0A%0A
-
after(
@@ -385,18 +385,16 @@
) %7B%0A
-
-
... |
dec236142e9a5d25ee10f1dcc26bf126a9af26bc | Fix test regression | test/linters/less.js | test/linters/less.js | var expect = require('unexpected'),
Path = require('path'),
fs = require('fs'),
less = require('../../lib/linters/less');
/*global describe, it*/
function loadTestCase(lessFileName, cb) {
var lessPath = Path.resolve(__dirname, 'less', lessFileName);
fs.readFile(lessPath, 'utf-8', function (err, le... | JavaScript | 0.000018 | @@ -787,17 +787,18 @@
qual', '
-%22
+%5C'
notFound
@@ -806,9 +806,10 @@
less
-%22
+%5C'
was
|
13fbe91c30cdef4b10ee86c79aaadd7487623b5c | Test fix | test/mocha/base10.js | test/mocha/base10.js | var assert = require('assert');
var base = require('./../../index.js');
describe('base10', function (){
describe('js', function (){
var base10 = base[10].js;
describe('base2', function (){
it('returns {string}1111 when arg1={int}15', function (){
assert.equal(base10[2](15), '1111');
}... | JavaScript | 0.000001 | @@ -1985,24 +1985,29 @@
%7D);%0A %7D);%0A
+ %0A
/*%0A d
|
112e38a232389471c602bc6499605cda1472b6ff | Add a test case | test/mongodb.test.js | test/mongodb.test.js | // This test written in mocha+should.js
var should = require('./init.js');
var User, Post, db;
describe('mongodb', function(){
before(function() {
db = getDataSource();
User = db.define('User', {
name: { type: String, index: true },
email: { type: String, index: ... | JavaScript | 0.99959 | @@ -84,16 +84,23 @@
r, Post,
+ Post1,
db;%0A%0Ade
@@ -522,32 +522,225 @@
%7D%0A %7D);%0A%0A
+ Post1 = db.define('Post1', %7B%0A id: %7Btype: String, id: true%7D,%0A title: %7B type: String, length: 255, index: true %7D,%0A content: %7B type: String %7D%0A %7D);... |
4b2c28201203fecd0f829597c041ca242eaea081 | fix ids when constructing relationships | src/node_modules/read-csv-data/index.js | src/node_modules/read-csv-data/index.js | var fs = require('fs')
var Path = require('path')
var mapValues = require('lodash.mapvalues')
var parseInput = require('csv-parser')
var runAuto = require('run-auto')
var through = require('through2')
var uuid = require('node-uuid')
var assign = require('lodash.assign')
var Url = require('url')
var config = require('co... | JavaScript | 0.000015 | @@ -3001,32 +3001,43 @@
%7B%0A '@id':
+ 'roles/' +
uuid(),%0A
@@ -3021,32 +3021,32 @@
les/' + uuid(),%0A
-
'@type':
@@ -3227,16 +3227,27 @@
'@id':
+ 'roles/' +
uuid(),
@@ -3446,32 +3446,32 @@
%0A return %7B%0A
-
id: uuid
@@ -3465,16 +3465,35 @@
id:
+ 'relationships/'... |
d2a2e43c5e5561ab1601e64fcfbfe8be864eda5e | Remove erroneous semicolon in security test script | test/security/pwn.js | test/security/pwn.js | (function(){
var message = 'Ya been pwned by an XSS from an unsanitized script tag injection.';
if(alertify){
alertify.error(message);
} else {
document.body.innerHTML = '<h1>' + message + '</h1>';
};
})();
| JavaScript | 0.99886 | @@ -208,16 +208,15 @@
1%3E';%0A %7D
-;
%0A%7D)();%0A
|
2561595f61aaffbd4fbb653128a7d36321e96308 | fix body-copying behavior on GET and HEAD requests in some browsers | src/http-client.js | src/http-client.js | import {HttpClientConfiguration} from './http-client-configuration';
import {RequestInit, Interceptor} from './interfaces';
import 'core-js';
/**
* An HTTP client based on the Fetch API.
*/
export class HttpClient {
/**
* The current number of active requests.
* Requests being processed by interceptors are consi... | JavaScript | 0 | @@ -4701,24 +4701,87 @@
input.url;%0A
+ if (input.method !== 'GET' && input.method !== 'HEAD') %7B%0A
body = i
@@ -4793,16 +4793,22 @@
blob();%0A
+ %7D%0A
%7D else
@@ -4873,16 +4873,56 @@
y;%0A %7D%0A%0A
+ let bodyObj = body ? %7B body %7D : null;%0A
let pa
@@ -5051,25 +5051,24 @@
source,
- %... |
00c68399e37c09d6d718cb8e184232b9e3c3ec80 | Update EU_cookies_law.min.js | EU_cookies_law.min.js | EU_cookies_law.min.js | /*! Simple EU Cookies Law Compliance without dependencies by cara-tm.com, 2017. MIT license */
var EU_cookies_law=function(r){"use strict";var msg="You refuse external third-party cookies: none, at the initiative of this site, is present on your device.",
future='1 Month',
minutes=1;
var domain=window.location.hostnam... | JavaScript | 0 | @@ -1495,16 +1495,17 @@
urn null
+;
%7D%0Afuncti
@@ -1594,16 +1594,17 @@
oader(r)
+;
%7Delse if
@@ -1654,16 +1654,17 @@
msg(msg)
+;
%7D%7D%0Afunct
@@ -1778,16 +1778,17 @@
String()
+;
%7D%0Afuncti
@@ -2146,16 +2146,17 @@
(s%5Bi%5D,a)
+;
%7D%7D%7D%7D%0Afun
@@ -2291,18 +2291,18 @@
erHTML=m
-%7D
;
+%7D
%0Afunc... |
2559bbadf7de3f94e2028bd503e903a60ba159a4 | Remove the upload button in folder views (#950) | source/features/remove-upload-files-button.js | source/features/remove-upload-files-button.js | import select from 'select-dom';
import * as pageDetect from '../libs/page-detect';
const repoUrl = pageDetect.getRepoURL();
export default () => {
if (pageDetect.isRepoRoot()) {
const uploadFilesButton = select(`.file-navigation a[href^="/${repoUrl}/upload"]`);
if (uploadFilesButton) {
uploadFilesButton.remo... | JavaScript | 0 | @@ -171,16 +171,43 @@
poRoot()
+ %7C%7C pageDetect.isRepoTree()
) %7B%0A%09%09co
|
2770897c6b795898e9e6404d61026fd292192e7c | Fix weird floating green bug thingy | src/main/js/components/Workspace.js | src/main/js/components/Workspace.js | var React = require('react');
var Interact = require('interact.js');
var _ = require('lodash');
var PersonContainer = require('containers/PersonContainer.js');
var Space = require('components/Space.js');
var Workspace = React.createClass({
componentDidMount: function() {
var self = this;
Interact... | JavaScript | 0 | @@ -2595,16 +2595,86 @@
arget');
+%0A event.relatedTarget.classList.remove('can-drop');
%0A%0A
@@ -2962,24 +2962,318 @@
sonIndex);%0A%0A
+ if (fromSpaceIndex === toSpaceIndex) %7B%0A event.relatedTarget.removeAttribute('style');%0A ... |
50b105a0da0695ba25e67b03a6df354e712e0c6c | correct test | test/subscription.js | test/subscription.js | const hub = require('../')
const test = require('tape')
// test('subscription - val + fields', t => {
// const server = hub({
// _uid_: 'server',
// port: 6060,
// a: {
// val: 'a',
// b: { c: 'c!' }
// }
// })
// server.set({ nostamp: 'nostamp!' }, false)
// const client = hub({
... | JavaScript | 0.000717 | @@ -1118,17 +1118,16 @@
'%0A %7D)%0A%0A
-%0A
client
@@ -1419,12 +1419,11 @@
()%0A %7D)%0A
-%0A
%7D)%0A
|
8b096564b08a788d8d10f04c541e885ac49c2867 | Add correct column widths | src/pages/dataTableUtilities/columns.js | src/pages/dataTableUtilities/columns.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2016
*/
import { tableStrings } from '../../localization';
const PAGE_COLUMN_WIDTHS = {
customerInvoice: [2, 4, 2, 2, 1],
supplierInvoice: [1, 3, 1, 1, 1],
};
const PAGE_COLUMNS = {
customerInvoice: ['itemCode', 'itemName', 'availableQuantity', 'totalQu... | JavaScript | 0.001313 | @@ -201,18 +201,18 @@
e: %5B
-1, 3, 1, 1
+2, 4, 2, 2
, 1%5D
|
38908396f516ce76132bab0a2c288835668c00c9 | Fix stream view spec to look for different things on FF and on webkit. Sigh. | spec/javascripts/app/views/stream_view_spec.js | spec/javascripts/app/views/stream_view_spec.js | describe("app.views.Stream", function(){
beforeEach(function(){
loginAs({name: "alice", avatar : {small : "http://avatar.com/photo.jpg"}});
this.posts = $.parseJSON(spec.readFixture("multi_stream_json"))["posts"];
this.stream = new app.models.Stream();
this.stream.add(this.posts);
this.view = n... | JavaScript | 0 | @@ -2306,17 +2306,16 @@
);%0A%0A
-x
it('coll
@@ -2334,16 +2334,26 @@
elements
+ on webkit
', funct
@@ -2375,109 +2375,271 @@
/ Th
-is does not work on firefox. Seems to be different behavior of the expander plugin. Needs more work.%0A
+e expander plugin has different behavior on firefox and webkit %3E.%3C%0A ... |
5a5d8f8086c70f4cd328ea806e01e0e523fbcaa9 | Fix test | test/test.winston.js | test/test.winston.js | var expect = require('chai').expect;
var winstonSupport = require('../lib/winston');
var winston = require('winston');
var runServer = require('../lib/testHelper').runServer;
describe("winston", function(){
describe('name', function(){
it('should be "fluent"', function(done){
expect(winstonSupport.name).to... | JavaScript | 0.000004 | @@ -289,16 +289,22 @@
expect
+((new
(winston
@@ -311,16 +311,30 @@
Support.
+Transport)()).
name).to
|
4d633f24b26d224580c3fef255fa352623fd982a | Use velocity to animate thread scroll for better performance | src/modules/Thread/events/scroll.js | src/modules/Thread/events/scroll.js | const {
headerHeight,
threadpostScrollDuration,
threadpostScrollHighlightDuration
} = window.appSettings;
export default function createPostScroller( $context ) {
return function (href) {
const $item = $context.find(href);
const offset = $item[0].offsetTop;
console.log(`Post s... | JavaScript | 0.000004 | @@ -254,219 +254,279 @@
-const offset = $item%5B0%5D.offsetTop;%0A%0A console.log(%60Post scrolled to has offset: %22$%7Boffset%7Dpx%22%60);%0A%0A $context.animate(%7B%0A scrollTop: offset - headerHeight%0A %7D, threadpostScrollDuration
+// $context.animate(%7B%0A // scr... |
a4911813d9bcbeca50968e538940f1934822e14d | fix example, add missing comma | aura_components/registration/form/main.js | aura_components/registration/form/main.js | /**
*
* Shows a form so the user can fill any kind of data.
*
* Define the fields using the `admin/registration` component.
* Client-side validation is handled automatically and forms are build using a form builder with support for several field types.
* Look at the JSON samples below to get a feel on what fiel... | JavaScript | 0.00098 | @@ -2302,16 +2302,21 @@
ion/form
+@hull
'%3E%3C/div%3E
@@ -2543,24 +2543,25 @@
%7D%0A %7D
+,
%0A%0A comple
|
f05fb051917e564d4059bc7d9e4cc26487f00273 | remove unused force arg | src/issue-store.js | src/issue-store.js | import _ from 'underscore';
import {EventEmitter} from 'events';
import Client from './github-client';
import {fetchAll, KANBAN_LABEL, ICEBOX_NAME} from './helpers';
const RELOAD_TIME = 60 * 1000;
const toIssueListKey = (repoOwner, repoName) => {
return repoOwner + '/' + repoName + '/issues';
};
const toIssueKey = ... | JavaScript | 0.000129 | @@ -1967,15 +1967,8 @@
Name
-, force
) %7B%0A
@@ -2250,18 +2250,8 @@
Key%5D
- && !force
) %7B%0A
|
fac54d5ba2296bd891dc60da065f7503af984f4e | Revert "We need an entity name" | blueprints/ember-cli-latex-maths/index.js | blueprints/ember-cli-latex-maths/index.js | module.exports = {
//description: '',
normalizeEntityName: function() {}, // no-op since we're just adding dependencies
// locals: function(options) {
// // Return custom template variables here.
// return {
// foo: options.entity.options.foo
// };
// }
// afterInstall: function(options) {... | JavaScript | 0.000009 | @@ -36,92 +36,8 @@
'',
-%0A normalizeEntityName: function() %7B%7D, // no-op since we're just adding dependencies
%0A%0A
|
ea219d201fdc10358b34cf4e87c0143af2f5ae3b | Fix "dialogFieldRefresh #initializeDialogSelectPicker ... has no expectations" | spec/javascripts/dialog_field_refresh_spec.js | spec/javascripts/dialog_field_refresh_spec.js | describe('dialogFieldRefresh', function() {
describe('#addOptionsToDropDownList', function() {
var data = {};
beforeEach(function() {
var html = "";
html += '<select class="dynamic-drop-down-345 selectpicker">';
html += '</select>';
setFixtures(html);
});
context('when the re... | JavaScript | 0.000007 | @@ -4445,32 +4445,28 @@
', function(
-done
) %7B%0A
+
dialog
@@ -4548,30 +4548,16 @@
, url);%0A
- done();%0A
ex
@@ -4738,20 +4738,16 @@
unction(
-done
) %7B%0A
@@ -4850,22 +4850,8 @@
');%0A
- done();%0A
|
6c3f7569aa4e41f34d9447f1095b886e94e7c801 | Remove Error type as it is a javascript file | templates/expo-template-tabs/App.js | templates/expo-template-tabs/App.js | import { AppLoading } from 'expo';
import { Asset } from 'expo-asset';
import * as Font from 'expo-font';
import React, { useState } from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import AppNavigator from './navigation/AppNavigator';
... | JavaScript | 0.000001 | @@ -1397,15 +1397,8 @@
rror
-: Error
) %7B%0A
|
a1f070f309dba348b5c537ae9efdc34cf622fa0b | handle condition where expected value is an empty string | test/acceptance/acceptance_tests.js | test/acceptance/acceptance_tests.js | const fs = require('fs');
const _ = require('lodash');
const tape = require('tape');
const filename = process.argv[2];
if (!filename) {
console.error('no source supplied');
process.exit(1);
}
if (!fs.existsSync(filename)) {
console.error(`file ${filename} not found`);
process.exit(1);
}
// this function match... | JavaScript | 0.00003 | @@ -1034,16 +1034,30 @@
);%0A %7D%0A%0A
+ return '';%0A%0A
%7D%0A%0Afunct
@@ -2685,16 +2685,30 @@
ed_value
+ !== undefined
) %7B%0A
|
43ce6e09f4fbe8f3fc5fe09d5b5986d4ee57ea55 | fix auth.account data util | test/data/auth/account-data-util.js | test/data/auth/account-data-util.js | "use strict";
var _getSert = require("../getsert");
var generateCode = require("../../../src/utils/code-generator");
var Role = require("./role-data-util");
class AccountDataUtil {
getSert(input) {
var ManagerType = require("../../../src/managers/auth/account-manager");
return _getSert(input, Manag... | JavaScript | 0.000028 | @@ -1074,17 +1074,16 @@
it.test%60
-
%0A
@@ -1499,24 +1499,168 @@
e = %22Unit%22;%0A
+ data.profile.email = %22dev@unit.test%22;%0A data.profile.gender = %22M%22;%0A data.profile.dob = new Date();%0A
|
015563fd86fc238e7951ce9af48b8445553b31fc | include default channel in tests | test/httpApi-authorizedUser.test.js | test/httpApi-authorizedUser.test.js | const app = require('../app');
const server = app.http;
const mockgoose = app.mockgoose;
const chai = require('chai'),
expect = chai.expect,
should = chai.should();
const request = require('supertest');
const io = require('socket.io-client');
const events = require('../events');
const models = require('../models'... | JavaScript | 0 | @@ -313,24 +313,63 @@
/models');%0A%0A
+const config = require('../config/');%0A%0A
const server
@@ -3451,21 +3451,118 @@
o.equal(
-1
+2
);%0A%0A
+ expect(res.body.local.channels).to.include(config.defaultChannel);%0A
|
a978d3d342c20c4071005397ef316ee0bb216fbe | Increase wait-time for glob return | test/new-server/cli-get-fileSpec.js | test/new-server/cli-get-fileSpec.js | 'use strict';
var module = require('../../lib/index');
var setup = module.setup;
var file1 = "test/fixtures/index.html";
var file2 = "test/fixtures/forms.html";
var file3 = "test/fixtures/scrolling.html";
var css = "test/fixtures/assets/style.css";
var scss = "test/fixtures/scss/main.scss";
describe("Style Injector... | JavaScript | 0.000001 | @@ -3132,33 +3132,33 @@
waits(
-1
+3
00);%0A
|
a22c0fb268bb97d85d7aa25dd2bb1b32f1718d91 | Implement file ediiting | Container.js | Container.js | /**
* @author Christopher Klpap
* @description This component displays the Verse so selection, edit and comments can be made
******************************************************************************/
import React from 'react'
import View from './components/View'
const NAMESPACE = "VerseCheck";
import MuiTh... | JavaScript | 0.000003 | @@ -2827,16 +2827,57 @@
actions
+, contextIdReducer, projectDetailsReducer
%7D = that
@@ -3046,33 +3046,105 @@
e.tags, username
-)
+, contextIdReducer.contextId, projectDetailsReducer.projectSaveLocation);
%0A that.se
@@ -3182,40 +3182,8 @@
t',%0A
- verseText: undefined,%0A
@@ -3657,25 +3657... |
785151564291dcc0d1482758b3a723976f4878d7 | fix in content visibility | src/javascript/static/pages/home.js | src/javascript/static/pages/home.js | const Login = require('../../_common/base/login');
const localize = require('../../_common/localize').localize;
const State = require('../../_common/storage').State;
const TabSelector = require('../../_common/tab_selector');
const urlFor = require('../../_common/url').urlFor;
const BinaryPjax ... | JavaScript | 0.000003 | @@ -1595,56 +1595,8 @@
0);%0A
- $('.eu-hide').setVisibility(0);%0A
|
d4065427962c1bcfae1ed3f0a14c2eb2ae8f73b2 | fix lint | src/layers/grid-layer/grid-layer.js | src/layers/grid-layer/grid-layer.js | // Copyright (c) 2015 Uber Technologies, Inc.
//
// 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, merge... | JavaScript | 0.000013 | @@ -4435,16 +4435,32 @@
lue%5Bi4 +
+ 2%5D = value%5Bi4 +
0%5D += 1
@@ -4493,36 +4493,8 @@
5;%0A
- value%5Bi4 + 2%5D += 1;%0A
|
643c4f809de50861fcc63df149d56a8034340ad3 | Add differencesById function to get the differences between to arrays of objects that contain an 'id' field. | website/app/index/util.js | website/app/index/util.js | function isImage(mime) {
switch (mime) {
case "image/gif":
case "image/jpeg":
case "image/png":
case "image/tiff":
case "image/x-ms-bmp":
case "image/bmp":
return true;
default:
return false;
}
}
function numberWithCommas(n) {
n = n.toString();
var pattern = ... | JavaScript | 0 | @@ -1120,16 +1120,415 @@
CK%22;%0A%7D%0A%0A
+function differenceById(from, others) %7B%0A var idsFrom = from.map(function(entry) %7B%0A return entry.id;%0A %7D);%0A var idsOthers = others.map(function(entry) %7B%0A return entry.id;%0A %7D);%0A%0A var diff = _.difference(idsFrom, idsOthers)... |
3a4825862bae25157bbfefe51eb0d9a9f70b1d8e | Add test on robot to check instanciation with serialPort | tests/server/robot_test.js | tests/server/robot_test.js | var chai = require('chai');
var expect = chai.expect;
var Robot = require('../../src/Robot');
var sinon = require('sinon');
describe('Robot', function() {
describe('#contructor', function() {
it('should be instanciate', function() {
var robot = new Robot
expect(robot).to.be.instanceof(Robot);
})... | JavaScript | 0 | @@ -387,34 +387,123 @@
var
-robot = new Robot(
+fakeAdapter = %7B%7D;%0A var robot = new Robot(fakeAdapter);%0A expect(robot.serialPort).to.deep.equal(%7B%7D
);%0A %7D
|
52f786328eba779610777cf14b7943e7d8cab282 | Disable import/export linting rule since it will fail when only one action is defined, but pass on mutliple actions | generators/root/templates/action/const.js | generators/root/templates/action/const.js | /* Populated by react-webpack-redux:action */
| JavaScript | 0 | @@ -1,8 +1,58 @@
+/* eslint-disable import/prefer-default-export */%0A
/* Popul
|
077407297bc919cf829aaf60b4236a326c49d436 | improve build config | scripts/rollup.config.js | scripts/rollup.config.js | import commonjs from 'rollup-plugin-commonjs'
import nodeResolve from 'rollup-plugin-node-resolve'
import json from 'rollup-plugin-json'
import babel from 'rollup-plugin-babel'
import buble from 'rollup-plugin-buble'
import { terser } from 'rollup-plugin-terser'
const pkg = require('../package.json')
const banner = ... | JavaScript | 0.000022 | @@ -255,16 +255,63 @@
-terser'
+%0Aimport defaultsDeep from 'lodash/defaultsDeep'
%0A%0Aconst
@@ -527,29 +527,106 @@
()%0A%0A
-const baseC
+function rollupConfig(%7B%0A plugins = %5B%5D,%0A ...config%0A %7D) %7B%0A%0A return defaultsDeep(%7B%7D, c
onfig
- =
+,
%7B%0A
+
in
@@ -642,32 +642,34 @@
/browser... |
7777b2f6b31d3ea8366af600811a8ac13871d302 | Update EnvironmentPlugin TODO comment | lib/EnvironmentPlugin.js | lib/EnvironmentPlugin.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Authors Simen Brekken @simenbrekken, Einar Löve @einarlove
*/
"use strict";
const DefinePlugin = require("./DefinePlugin");
const WebpackError = require("./WebpackError");
/** @typedef {import("./Compiler")} Compiler */
const needsEnvVarFix =
["8"... | JavaScript | 0 | @@ -946,12 +946,12 @@
%09//
-TODO
+NOTE
rem
@@ -967,40 +967,41 @@
the
-fix has made its way into Node 8
+required node version is %3E=8.10.0
.%0A%09%09
|
b3cec47999a8be85b616546e53665ab56396c836 | fix export | src/Parser/Core/Modules/Items/BFA/Dungeons/HarlansLoadedDice.js | src/Parser/Core/Modules/Items/BFA/Dungeons/HarlansLoadedDice.js | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import { formatPercentage, formatNumber } from 'common/format';
import { calculateSecondaryStatDefault } from 'common/stats';
/**
* Harlan's Loaded Dice
* Your attacks and ab... | JavaScript | 0.000001 | @@ -548,31 +548,33 @@
/%0Aclass
-GalecallersBoon
+HarlansLoadedDice
extends
@@ -3576,21 +3576,23 @@
ult
-GalecallersBoon
+HarlansLoadedDice
;%0A
|
cea687e75c54459b2d04ee3d65bbb994cfccb66e | Update locales verify script to count special chars | scripts/locales/verify.js | scripts/locales/verify.js | const fs = require('fs')
const path = require('path')
const defaultLocale = require('../../src/config.js').bot.locale
const COLORS = {
RESET: '\x1b[0m',
RED: '\x1b[31m',
GREEN: '\x1b[32m',
CYAN: '\x1b[36m'
}
const referenceLocaleData = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'src', 'locales'... | JavaScript | 0 | @@ -128,16 +128,37 @@
ORS = %7B%0A
+ BRIGHT: '%5Cx1b%5B1m',%0A
RESET:
@@ -230,16 +230,61 @@
%5B36m'%0A%7D%0A
+const CONSTANT_CHARACTERS = %5B'%22', '%5Cn', '%60'%5D%0A
const re
@@ -494,16 +494,17 @@
les'))%0A%0A
+%0A
const er
@@ -944,43 +944,8 @@
ect'
- && typeof object%5Bkey%5D === 'object'
) %7B%0A
@@ -988... |
bd697ab9f5db3f6e9377f93c5b946795b59eab28 | update vendor bundle to include new packages | webpack.config.vendor.js | webpack.config.vendor.js | const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
var AssetsPlugin = require('assets-webpack-plugin');
var assetsPluginInstance = new AssetsPlugin({ filename: 'vendor-assets.json' });
const BUILD_DIR = path.resolve(__dirname, 'public');
module.exports = (env) =>... | JavaScript | 0 | @@ -1414,16 +1414,82 @@
erscore'
+,%0A 'query-string',%0A 'path-to-regexp'
%0A
|
7fe248ce228359a0e5e00fc229df2d032614a9d5 | Allow more powerful overrides in lazylinkfield | src/resources/elements/lazylinkfield.js | src/resources/elements/lazylinkfield.js | import {containerless} from 'aurelia-framework';
import {Field} from './abstract/field';
/**
* LazyLinkfield is a field that lazily proxies the a whole field (value & UI)
* to another place.
*/
@containerless
export class LazyLinkfield extends Field {
target = '#';
overrides = {};
_child = undefined;
/** @... | JavaScript | 0 | @@ -657,224 +657,821 @@
-const lastSlash = field.lastIndexOf('/');%0A const path = field.substr(0, lastSlash);%0A const fieldName = field.substr(lastSlash + 1, field.length);%0A this._child.resolveRef(path)%5BfieldName%5D = value;%0A %7D
+let target;%0A let fieldPath;%0A if (field.incl... |
f24b7ba1d4c03810d84f35c0e75919d216817851 | Add missing js | src/SumoCoders/FrameworkCoreBundle/Resources/assets/js/Index.js | src/SumoCoders/FrameworkCoreBundle/Resources/assets/js/Index.js | import {Ajax} from './Framework/Ajax'
import {Form} from './Framework/Form'
import {Link} from './Framework/Link'
import {LoadingBar} from './Framework/LoadingBar'
import {Navbar} from './Framework/Navbar'
import {Popover} from './Framework/Popover'
import {Scrolling} from './Framework/Scrolling'
import {SetHeight} fro... | JavaScript | 0.999043 | @@ -1148,16 +1148,54 @@
lects()%0A
+ this.initializeOtherChoiceTypes()%0A
%7D%0A%0A i
@@ -1872,16 +1872,506 @@
%7D)%0A %7D
+%0A%0A initializeOtherChoiceTypes () %7B%0A $(function() %7B%0A $('%5Bdata-role=other-choice-list%5D').on('change', function() %7B%0A let $select = $(this)%0A le... |
0943dd66807181b67745c7ab9a312a8f048ee4c0 | add mainFields | webpack_config/common.js | webpack_config/common.js | /*eslint-env node*/
const path = require('path');
const autoprefixer = require('autoprefixer');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
module.exports = {
entry: {
... | JavaScript | 0.000001 | @@ -572,16 +572,82 @@
json'%5D,%0A
+ mainFields: %5B'jsnext:main', 'main', 'module', 'browser'%5D,%0A
%7D,%0A
|
2c3d10a4c63354899c1e077a6f1a2dc890eed2b7 | Test corrected. | tests/test-apache-crypt.js | tests/test-apache-crypt.js | // Apache crypt.
var crypt = require('../lib/apache-crypt');
module.exports = {
// Test for valid password.
testValidPassword: function(test) {
var crypted = crypt("validPass", "B5xBYM2HbnPqI");
test.ok(crypted, "B5xBYM2HbnPqI", "Wrong password!");
test.done();
},
// Test for i... | JavaScript | 0 | @@ -223,10 +223,13 @@
est.
-ok
+equal
(cry
|
297a9ea827655e5fb406a86907bb0d89b01deae8 | fix typo | tests/test-localAddress.js | tests/test-localAddress.js | var request = request = require('../index')
, assert = require('assert')
;
request.get({
uri: 'http://www.google.com', localAddress: '1.2.3.4' // some invalid address
}, function(err, res) {
assert(!res) // asserting that no response received
})
request.get({
uri: 'http://www.google.com', localAddress: '127... | JavaScript | 0.999991 | @@ -6,26 +6,16 @@
equest =
- request =
require
|
9b0bb45721a2dc5b32823b33a7f4576e1a311b9a | 更新 gulpfile | Gulpfile.js | Gulpfile.js | /**
* jshint strict:true
*/
//npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev
var gulp = require('gulp');
var watch = require('gulp-watch');
var clean = require('gulp-clean');
var concat = require('gulp-concat');
var coffee ... | JavaScript | 0 | @@ -694,36 +694,38 @@
lean', function(
+cb
) %7B%0A
-
return gulp.sr
@@ -787,16 +787,35 @@
true %7D))
+%0A .on('end', cb)
;%0A%7D);%0A%0Ag
@@ -924,16 +924,17 @@
t('build
+/
'));%0A%7D);
@@ -1389,34 +1389,32 @@
pipe(gulp.dest('
-./
build/js/'));%0A%7D)
@@ -1529,16 +1529,17 @@
uild/css
+/
'));%0A%7D);
@@ ... |
0c0c53589a54fb7f91f8100c5a3d4929bd00f1ff | Update gulpfile to watch contrib styles and not just core project files | Gulpfile.js | Gulpfile.js | var autoprefix = require("gulp-autoprefixer"),
connect = require("gulp-connect"),
gulp = require("gulp"),
sass = require("gulp-sass");
var paths = {
scss: [
"./core/**/*.scss",
"./contrib/styles.scss"]
};
gulp.task("sass", function () {
return gulp.src(paths.scss)
.pipe(sass... | JavaScript | 0 | @@ -223,14 +223,12 @@
rib/
-styles
+**/*
.scs
|
81ab1414e614937b4ec0c841cf1dfd83a496193a | Fix use of wrong length value | src/PiecemealDownloadManager.js | src/PiecemealDownloadManager.js | define(['Promise', './PiecemealDownload'], function(Promise, PiecemealDownload) {
'use script';
function PiecemealDownloadManager(url) {
this.url = url;
}
PiecemealDownloadManager.prototype = {
getBytes: function(offset, length) {
offset = +(offset || 0);
if (isNaN(offset) || !isFinite(offset) || offse... | JavaScript | 0.023183 | @@ -1080,27 +1080,16 @@
diff +
-pieceBytes.
length))
|
e7ffafdb5f931701918b86489b8baf67730b24e4 | Refactor JavaScript slightly | website/javascript/api.js | website/javascript/api.js | export const API_SERVER_URL = "http://35.190.3.178/v1/api";
export const LOGIN_SERVER_URL = "http://35.190.3.178/v1/login";
// TODO: also cache login in local cookie so we don't have to do so many round trips
let cached_me = null;
let logged_in = null;
export function me_cached() {
if (window.localStorage["cache"... | JavaScript | 0.000002 | @@ -1681,32 +1681,121 @@
ot%60,%0A %7D);%0A%7D%0A%0A
+export function makeRequest() %7B%0A const xhr = new XMLHttpRequest();%0A return xhr;%0A%7D%0A%0A
export function
@@ -1979,35 +1979,28 @@
const xhr =
-new XMLHttp
+make
Request();%0A
@@ -3426,35 +3426,28 @@
const xhr =
-new XMLHttp
+make
Request()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.