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 |
|---|---|---|---|---|---|---|---|
adba05d82eb744d8caacc9d919eb14a5e6b4c11f | Update switch js | js/switch.js | js/switch.js | /* SwitchJS v1.2 by Zerthox */
!function() {
// Inject CSS
var style = document.createElement("style");
style.id = "switchjs-style";
style.innerHTML = `
[switch-page] {
-webkit-transition: opacity 0.3s ease-in-out;
-moz-transition: opacity 0.3s ease-in-out;
-ms-transition: op... | JavaScript | 0.000001 | @@ -12,9 +12,9 @@
v1.
-2
+3
by
@@ -428,24 +428,44 @@
ase-in-out;%0A
+ opacity: 0;%0A
%7D%0A %5Bs
@@ -479,13 +479,8 @@
age%5D
-:not(
%5Bswi
@@ -491,17 +491,16 @@
visible%5D
-)
%7B%0A
@@ -506,37 +506,112 @@
-height: 0
+opacity: 1
;%0A
+%7D%0A
-opacity: 0
+%5Bswitch-page%5D:... |
2d48592ed1909ed74ee2c84550d983969eefc5e1 | maintain existing css classes on existing tags | js/tag-it.js | js/tag-it.js | (function($) {
$.fn.tagit = function(options) {
var settings = {
'itemName' : 'item',
'fieldName' : 'tags',
'availableTags' : [],
// callback: called when a tag is added
'onTagAdded' : null,
// callback: called when a tag is removed
'onTagRem... | JavaScript | 0 | @@ -1269,35 +1269,8 @@
t))%0A
- // add existing tags%0A
@@ -1778,24 +1778,51 @@
%7D%0A %7D)%0A
+ // add existing tags%0A
.child
@@ -1943,16 +1943,39 @@
).html()
+, $(this).attr(%22class%22)
);%0A
@@ -4614,24 +4614,41 @@
te_tag(value
+, additionalClass
) %7B%0A //
@@ -4763,24... |
827a357d1c9314d4679dc7cabbf1cf33887588c1 | correct repacked | js/update.js | js/update.js | //
// Author: Nuno Aguiar
// Update to the latest version
//
plugin("HTTP");
plugin("ZIP");
// VARIABLES
// ---------
var homeServerURLs = __openafRelease;
var homeServerURLs2 = __openafBuild;
var updateURLs = __openafDownload;
var currentVersion = getVersion();
var endCommand = "";
var updated = false;
// FUNCTION... | JavaScript | 0.000008 | @@ -2024,16 +2024,111 @@
5000);%0A
+%09%09%09var down2 = new HTTP(updateURL(i, latestVersion) + %22.repacked%22, %22GET%22, %22%22, %7B%7D, true, 5000);%0A
%09%09%09log(%22
@@ -2557,24 +2557,25 @@
%09%09%09%09
-$rest().get2File
+io.writeFileBytes
(cla
@@ -2626,49 +2626,29 @@
%22),
-updateURL(i, latestVersion) + ... |
234a6092da0c19366cdcdad57558ec3e613da881 | Update eme_player to handle SessionType changes. | media/test/data/eme_player_js/player_utils.js | media/test/data/eme_player_js/player_utils.js | // Copyright 2014 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.
// The PlayerUtils provides utility functions to binding common media events
// to specific player functions. It also provides functions to load media sou... | JavaScript | 0 | @@ -2391,83 +2391,365 @@
d);%0A
- var session = message.target.mediaKeys.createSession('persistent');
+%0A // Temporary fix while the session type changes.%0A // TODO(jrummell): Remove once the blink change lands.%0A var session;%0A try %7B%0A session = message.target.mediaK... |
58148762c614852fea2b8ded9a8123d74870e9e4 | Fix commandError check to send extension errors | events/commandError.js | events/commandError.js | "use strict";
const { Event } = require("sosamba");
const { version: sosambaVersion } = require("sosamba/package.json");
const { version } = require("../package.json");
class CommandErrorEvent extends Event {
constructor(...args) {
super(...args, {
name: "commandError"
});
}
pr... | JavaScript | 0.000001 | @@ -315,23 +315,24 @@
-prerequisites(e
+async run(e, ctx
) %7B%0A
@@ -343,15 +343,12 @@
-return
+if (
e.co
@@ -386,48 +386,9 @@
ror%22
-;%0A %7D%0A%0A async run(e, ctx) %7B%0A
+)
thi
|
5b41e7f3bb654d05c8260f0f76094dda88733abf | remove .getType from Observable | src/observable.js | src/observable.js | import {extend} from './utils/objects';
import {VALUE, ERROR, ANY, END} from './constants';
import {Dispatcher, callSubscriber} from './dispatcher';
import _Event from './event';
const Event = _Event;
export default function Observable() {
this._dispatcher = new Dispatcher();
this._active = false;
this._alive ... | JavaScript | 0 | @@ -1736,53 +1736,8 @@
%7D,%0A%0A
- getType() %7B%0A return 'observable';%0A %7D,%0A%0A
//
|
17da95e2179cd67baf8d68092faa25f8fe99f423 | change new point acceptance factor | src/pointStack.js | src/pointStack.js | function pointStack(maxPnts) {
var _this = this;
var points = [];
var bAver = true;
//var averDiff = new aveCont();
var sampsX = new aveCont();
var sampsY = new aveCont();
points.changeAveraging = function(num) {
if (num < 2) bAver = false;
else {
sampsX.changeNumSamps(num);
sampsY.... | JavaScript | 0.000001 | @@ -1208,16 +1208,17 @@
).x) %3E .
+0
01 %7C%7C Ma
@@ -1252,16 +1252,17 @@
).y) %3E .
+0
01);%0A%0A
|
0712cf5f94dbea9f1d4c6b355b98f6e370243050 | Fix "basic" example (a little bit) | examples/basic/main.js | examples/basic/main.js | (function (){
var canvas = document.querySelector("#webgl-canvas");
var gl = glTips.getWebGL1Context(canvas);
if (gl) {
console.log("WebGL1 context was created successfully.");
}
gl.clearColor(0.8, 0.8, 1, 1);
var shaderProgram = null;
var attribLocationPosition = null;
var attribLocationNormal = ... | JavaScript | 0.000012 | @@ -318,16 +318,53 @@
= null;
+%0A var attribLocationTexcoord = null;
%0A%0A func
|
73775ff2c06395b0e244c86b580637562a81aaa6 | fix package path | examples/dojoConfig.js | examples/dojoConfig.js | var dojoConfig = {
parseOnLoad : true,
async : true,
packages : [{
"name" : "utils",
"location" : location.pathname.replace(/\/[^/]+\/[^/]+$/, "") + "/src/utils"
}]
};
| JavaScript | 0.000006 | @@ -102,60 +102,30 @@
%22 :
-location.pathname.replace(/%5C/%5B%5E/%5D+%5C/%5B%5E/%5D+$/, %22%22) + %22
+%22/esri-kinetic-panning
/src
|
6d3f65e98f0aa5027f02b3cb14a4fe8876ec3e2c | hey_buddy_10 | test.js | test.js | var superagent = require("superagent"),
chai = require("chai"),
expect = chai.expect,
should = require("should");
describe("Index", function () {
it("renders HTML", function (done) {
superagent.get("http://localhost:3000/")
.end(function (e, res) {
(e === null).should.equal(true);
... | JavaScript | 0.999792 | @@ -353,9 +353,10 @@
ddy_
-9
+10
!%22);
|
f2cdb44eb2f6fda0ca5e5a617036a1338ccacb59 | Modify tests according to new API in AVA | test.js | test.js | import assertElement from 'assert-element';
import componentMock from 'component-mock';
import test from 'ava';
import Pokemon from './';
test('Pokemon', t => {
const mock = componentMock(Pokemon);
const el = mock.render({props: {
class: 'TestClass',
name: 'Pikachu'
}});
assertElement.isNode(el, 'img');
asse... | JavaScript | 0 | @@ -148,17 +148,18 @@
kemon',
-t
+()
=%3E %7B%0A%09c
@@ -533,19 +533,8 @@
g');
-%0A%0A%09t.end();
%0A%7D);
|
6dafeded054252b9c7b5f4af2623823c501705fe | Remove redundant test | test.js | test.js | var test = require('tape')
var deepEqual = require('./')
test('primitives', function(t) {
t.ok(deepEqual(1, 1))
t.ok(deepEqual('a', 'a'))
t.ok(deepEqual(undefined, undefined))
t.ok(deepEqual(null, null))
t.ok(deepEqual(true, true))
t.ok(deepEqual(NaN, NaN))
t.notOk(deepEqual('5', 5))
t.notOk(deepEqual... | JavaScript | 0.00086 | @@ -3070,64 +3070,8 @@
)))%0A
- t.notOk(deepEqual(d, %7B getTime: d.getTime.bind(d) %7D))%0A
t.
|
8a28c39c000b1064178cae9eb76c9bd2b03a186a | Use const | examples/sample_bot.js | examples/sample_bot.js | 'use strict';
const Botkit = require('botkit');
const apiaibotkit = require('../apiaibotkit');
const slackToken = process.env.SLACK_TOKEN;
const apiaiToken = process.env.APIAI_TOKEN;
var apiai = apiaibotkit(apiaiToken);
var controller = Botkit.slackbot();
controller.hears('.*', ['direct_message', 'direct_mention', ... | JavaScript | 0.000004 | @@ -179,19 +179,21 @@
TOKEN;%0A%0A
-var
+const
apiai =
@@ -218,19 +218,21 @@
Token);%0A
-var
+const
control
|
9acfc2c4b3a137314b852c4cb60dd2bebdeadb9e | Add tests against exception cases | test.js | test.js | 'use strict'
var test = require('tape')
var obstruct = require('./')
test('obstruction', function (t) {
t.deepEqual(obstruct({foo: true})({foo: 'bar'}), {
foo: 'bar'
}, 'passthrough')
t.deepEqual(obstruct({foo: 'bar'})({foo: 'bar', bar: 'baz'}), {
foo: 'baz'
}, 'source key')
t.deepEqual(obstruct({... | JavaScript | 0.000001 | @@ -2466,24 +2466,201 @@
ther now')%0A%0A
+ t.throws(obstruct, 'schema object is required')%0A t.throws(obstruct(%7Bfoo: ''%7D).bind(null, %7B%7D), /falsy values/)%0A t.throws(obstruct(%7B'foo.bar': true%7D).bind(null, %7B%7D), /dots/)%0A%0A
t.end()%0A%7D)
|
6c3ea0100f52a60c4cebf00cf943ac9c98f25a91 | Make 'stubs' local | test.js | test.js | /* eslint-env mocha */
import test from 'assert'
import sinon from 'sinon'
import { formatMsg } from './src/msg'
import * as msg from './src/msg'
import expect, { be, not } from './src'
const stubs = []
describe('expect-to', () => {
it('triggers callback', () => {
let count = 0
expect('test').to(() => {
... | JavaScript | 0.001522 | @@ -186,26 +186,8 @@
c'%0A%0A
-const stubs = %5B%5D%0A%0A
desc
@@ -3021,24 +3021,45 @@
g', () =%3E %7B%0A
+ const stubs = %5B%5D%0A
beforeEa
|
b5dc07e132bb0d62b6aef8e12adfdac797e52dcb | update test.html | test.js | test.js | var input;
var output;
function setup() {
canvas = createCanvas(1075,500);
canvas.position(20,180);
nameP = createP('Search births by his/her name');
nameP.position(480,122);
nameP.mousePressed(gotData);
input = select('#search');
var button = select('#submit');
button.mousePressed(search);
}
functio... | JavaScript | 0 | @@ -1476,16 +1476,17 @@
d Date%22:
+d
eathdate
|
9f204ec30a7a0808602b8b929cefcd6d3ffc863f | Make tests more readable | test.js | test.js | 'use strict';
var test = require('tape');
var nodes3 = require('./');
test('should correctly parse a string', function (t) {
var s3 = nodes3('s3://key:secret@bucket.s3.amazonaws.com/prefix');
t.equal(s3.pathname, '/prefix');
t.equal(s3.bucket, 'bucket');
t.end();
});
test('should correctly parse an object', ... | JavaScript | 0.000015 | @@ -206,32 +206,47 @@
(s3.pathname, '/
+prefix', 'have
prefix');%0A t.eq
@@ -253,32 +253,47 @@
ual(s3.bucket, '
+bucket', 'have
bucket');%0A t.en
@@ -514,24 +514,39 @@
pathname, '/
+prefix', 'have
prefix');%0A
@@ -561,24 +561,39 @@
s3.bucket, '
+bucket', 'have
bucket');%0A
@@ -740,24 +740,47 @@
pathn... |
46e96e6ff8fe3e2e3c52098d8062b6ebe5da1b80 | use `import` instead of `require` | test.js | test.js | 'use strict';
const test = require('ava');
const arrayDifference = require('array-difference');
const allEslintRules = require('all-eslint-rules');
const allEslintRuleSet = require('.');
test('Exposes a Set.', t => {
t.true(allEslintRuleSet instanceof global.Set);
});
test('Includes all the ESLint rules.', t => {
... | JavaScript | 0.000001 | @@ -1,52 +1,33 @@
-'use strict';%0A%0Aconst test = require(
+import test from
'ava'
-)
;%0A
-cons
+impor
t ar
@@ -40,26 +40,21 @@
ference
-= require(
+from
'array-d
@@ -63,23 +63,23 @@
ference'
-)
;%0A
-cons
+impor
t allEsl
@@ -87,26 +87,21 @@
ntRules
-= require(
+from
'all-esl
@@ -114,15 +114,15 @@
les... |
13f1c83a5aa081500fc5899fd1ef280aaafccfc2 | add alias test | test.js | test.js | import test from 'ava';
import webid from './dist/webid.cjs';
/** @todo import this from ./src/constants.js once ava updates @babel/core */
const DefaultOptions = {
delimiter: '-',
lower: true,
maxLength: 128,
remove: null,
strict: true,
};
const testStr = '1. László Čapek ♥ déjà vu in the Åland Islands';
test.b... | JavaScript | 0.000001 | @@ -2687,32 +2687,246 @@
wid-suf');%0A%7D);%0A%0A
+test('use alias options', (t) =%3E %7B%0A%09const opts = %7B%0A%09%09pre: 'wid-pre',%0A%09%09suf: 'wid-suf',%0A%09%09delim: '_',%0A%09%7D;%0A%09t.is(webid.generate(testStr, opts), 'wid_pre_laszlo_capek_love_deja_vu_in_the_aland_islands_wid_suf');%0A%7D);%0A%0A
test('... |
78831998e708cd9f7faacf08b12fd13e22326a93 | add custom variable with node version | test.js | test.js | var util = require('util')
// Setup
// set env BOLCOM_APIKEY (Travis CI)
// or use cli arguments: npm test --bolapikey=abc123
var url = process.env.npm_config_piwikurl || process.env.PIWIK_URL || null
var token = process.env.npm_config_piwiktoken || process.env.PIWIK_TOKEN || null
var siteId = process.env.npm_config_p... | JavaScript | 0.000001 | @@ -1901,16 +1901,69 @@
e/piwik'
+,%0A cvar: %7B '1': %5B'node test', process.version%5D %7D
%0A %7D,%0A
|
63b2c60a6b022be8e6abb4de8b5fc350275f8743 | Make tests more lenient | test.js | test.js | 'use strict'
var test = require('tape')
var geocodeWifi = require('./')
var towers1 = [
{ mac: 'bc:ae:c5:c3:dd:56',
ssid: 'Arconet Camp',
signal: '-75' },
{ mac: '5c:d9:98:5a:93:72',
ssid: 'Arconet',
signal: '-73' },
{ mac: '1c:af:f7:ce:fb:f9',
ssid: 'Arconet',
signal: '-62' },
{ mac: ... | JavaScript | 0.005775 | @@ -1614,33 +1614,26 @@
(err)%0A t.
-deepEqual
+ok
(location, %7B
@@ -1625,36 +1625,33 @@
.ok(location
-, %7B
+.
accuracy
: 22, lat: 3
@@ -1642,58 +1642,301 @@
racy
-: 22, lat: 34.34273700000001, lng: -112.1004467 %7D)
+ %3E 0)%0A t.ok(location.lat %3E= -90)%0A t.ok(location.lat %3C= 90)%0A t.ok(loca... |
35e6ce244455da884c6db7897329dd7a853dd799 | add more metadata and successful rate | test.js | test.js | const testers = require('./testers.json');
const fs = require('fs');
var version = process.versions.node;
var es_staging = /--es_staging/.test(process.execArgv)? '--es_staging' : '';
if(es_staging) version+='--es_staging';
console.log('Testing '+version);
// This function is needed to run the tests and was extracted f... | JavaScript | 0.000001 | @@ -62,16 +62,36 @@
('fs');%0A
+var successful = 0;%0A
var vers
@@ -944,16 +944,62 @@
sions.v8
+,%0A _successful: 0,%0A _count: 0,%0A _percent: 0
%0A%7D;%0A%0Afun
@@ -1196,16 +1196,38 @@
e output
+%0A results._count++;
%0A%0A re
@@ -1464,38 +1464,167 @@
-%7D);%0A %7D)%0A)%0A.then(function () %7B
+... |
150241ce7228a810baf204d0ea74ad17edecf563 | Fix reference error in test | test.js | test.js | import parse from './module';
const test = require('tape-catch');
const {safeLoad: yaml} = require('js-yaml');
// const {readFileSync, readdirSync} = require('fs');
const {readFileSync} = require('fs');
const {resolve} = require('path');
const ord = require('ord');
const tosource = require('tosource');
const {jsdom} =... | JavaScript | 0.000002 | @@ -1478,16 +1478,24 @@
(%7Binput,
+ output:
expecte
|
e1cf182d40ecb20ad2a86370e822e3d322cfed10 | improve coverage | test.js | test.js | #!/usr/bin/env node
'use strict';
const Result = require('.');
const TAP = require('tap');
TAP.test('Create Results', $t => {
$t.plan(4);
$t.ok(Result.fromError('TEST'), 'Create Result from Error');
$t.ok(Result.fromSuccess('TEST'), 'Create Result from Success');
$t.ok((new Result()).isErr(), ... | JavaScript | 0 | @@ -548,17 +548,17 @@
t.plan(1
-2
+3
);%0A%0A
@@ -886,32 +886,90 @@
ccess.expect');%0A
+ $t.throws(s.expectErr.bind(s), 'Check Ok.expectErr');%0A
$t.equal(s.a
|
bb322f02675ef2818282557feed8438e976eb827 | add another test | test.js | test.js | var test = require('tape');
var area = require('./2d-polygon-area');
test('square (CCW)', function(t) {
var square = [
[0, 0],
[1, 0],
[1, 1],
[0, 1]
];
t.equal(area(square), -1);
t.end();
});
test('square (CW)', function(t) {
var square = [
[0, 0],
[1, 0],
[1, 1],
[0, 1]
... | JavaScript | 0.000004 | @@ -76,16 +76,20 @@
'square
+1x1
(CCW)',
@@ -94,32 +94,32 @@
, function(t) %7B%0A
-
var square = %5B
@@ -230,16 +230,20 @@
'square
+1x1
(CW)', f
@@ -335,16 +335,16 @@
rse();%0A%0A
-
t.equa
@@ -362,24 +362,194 @@
re), 1);%0A t.end();%0A%7D);%0A
+%0Atest('square 10x10 (CW)', function(t) %7B%0A var squ... |
43a1934645da0a127179729b7a807ef271c3e6cc | fix double trailing newline | test.js | test.js | 'use strict'
var test = require('tape')
var majors = require('./')
test(function (t) {
t.deepEqual(majors('2'), ['2'])
t.deepEqual(majors('> 2 < 5'), ['3', '4'])
t.deepEqual(majors('> 2 <= 4'), ['3', '4'])
t.deepEqual(majors('< 5 > 2'), ['3', '4'])
t.deepEqual(majors('>= 2.3.0 < 5'), ['2.3', '3', '4'])
t.... | JavaScript | 0.000158 | @@ -1050,9 +1050,8 @@
nd()%0A%7D)%0A
-%0A
|
1c52505f45905d2b51e1a4a635f3d26a4e1c5d8a | Update the renderable documentation | src/renderable.js | src/renderable.js | udefine(['./graphics'], function(Graphics) {
'use strict';
return function() {
var self = this;
this.on('render', function() {
Graphics.trigger('render', self);
self.children.forEach(function(child) {
child.trigger('render');
});
});
};
});
| JavaScript | 0 | @@ -144,42 +144,134 @@
-Graphics.trigger('render', self);%0A
+// Emit %60render%60 event on the %60Graphics%60 object%0A Graphics.trigger('render', self);%0A%0A // Render all children elements
%0A
|
c9c911c463a6b8729b53d93e3db925e320d432a7 | handle possible scoping error | extensions/controls.js | extensions/controls.js | /*!
* Slider Controls for frankenslide
* Copyright 2013 Jake Duffy
* Licensed under the MIT license.
*/
(function( factory ) {
//AMD
if(typeof define === 'function' && define.amd) {
define([], factory);
//NODE
} else if(typeof module === 'object' && module.exports) {
module.exports = factory();
... | JavaScript | 0.000002 | @@ -617,16 +617,82 @@
, i) %7B%0A%0A
+ if( !s.currentSlide ) %7B%0A s = slider;%0A %7D%0A
%09 var
@@ -1228,16 +1228,21 @@
);%0A%09%7D%0A%09%0A
+ %0A
slide
@@ -1243,16 +1243,24 @@
slider.
+element.
on('move
@@ -1291,21 +1291,16 @@
trols);%0A
- %0A
%7D;%0A%0A
|
ca3b4b94b185aa0090abd4863950f69db35b35e5 | add scheduleEager, so nested async outlet attachments collapse into one job on the scheduler queue | src/schedulers.js | src/schedulers.js | /**
* Thoughts:
*
* desired scheduling syntax?
* perhaps:
* PL.schedule(jobFn)
* PL.scheduleSync(jobFn)
* PL.scheduleAsync(jobFn)
* or:
* PL.schedule(jobFn)
* PL.SyncScheduler.schedule(jobFn)
* PL.AsyncScheduler.schedule(jobFn)
*/
var _current
var currentScheduler = function() {
return _curre... | JavaScript | 0 | @@ -473,24 +473,107 @@
e(jobFn)%0A%7D%0A%0A
+var scheduleEager = function(jobFn) %7B%0A currentScheduler().scheduleEager(jobFn)%0A%7D%0A%0A
var withCurr
@@ -896,24 +896,78 @@
serFn()%0A %7D%0A
+ ,scheduleEager: function(userFn) %7B%0A userFn()%0A %7D%0A
%7D%0A%0Avar Async
@@ -1306,52 +1306,25 @@
-try %... |
7e2283635e7df65f4380eab67e544af022cc4c31 | disable raven alerts | src/setupRaven.js | src/setupRaven.js | import raven from 'raven'
import pkg from '../package.json'
const noSentry = process.env.ARGOS_CLIENT_SENTRY === 'false'
const DSN = 'https://33b6f7cfa05848f8a1edd6997db57ac1:00e3923d9b874f499e75be04b7dc1b4f@sentry.io/133467'
function setupRaven() {
raven.config(noSentry ? false : DSN, {
environment: 'productio... | JavaScript | 0.000041 | @@ -376,16 +376,48 @@
,%0A %7D)%0A%0A
+ raven.disableConsoleAlerts()%0A%0A
if (!n
|
90d3ae86f0eaf9d1753806e5ba4b5b0422c3ea3c | Add relation type metadata in builder.build method | addon/query/builder.js | addon/query/builder.js | import Ember from 'ember';
import DS from 'ember-data';
import BaseBuilder from './base-builder';
import OrderByClause from './order-by-clause';
import QueryObject from './query-object';
import { createPredicate } from './predicate';
import Information from '../utils/information';
import isEmbedded from '../utils/is-e... | JavaScript | 0.000001 | @@ -4511,16 +4511,131 @@
.expand;
+%0A let primaryKeyName = tree.primaryKeyName; // TODO: Set primaryKeyName field in query as it does for modelName.
%0A%0A re
@@ -6722,16 +6722,17 @@
ed: true
+,
// TODO
@@ -6778,16 +6778,46 @@
trName)%0A
+ type: attr.kind%0A
|
6d8bfa5cb384ed6116cbb769a3594bb3b47ecb4e | Add check to ensure that we should still be polling | addon/services/poll.js | addon/services/poll.js | import Ember from 'ember';
var Poll = Ember.Service.extend({
setup: function (route, record, interval_info) {
if (typeof(Ember.$.idle) !== "function") {
this.setIdleListener();
}
if (!interval_info) {
interval_info = Ember.Object.create({
repititions_per_itteration: 5,
mulipl... | JavaScript | 0 | @@ -102,24 +102,59 @@
val_info) %7B%0A
+ route.set('stop_poll', false);%0A
if (type
@@ -3524,24 +3524,61 @@
d, route) %7B%0A
+ if (!route.get('stop_poll')) %7B%0A
var inte
@@ -3617,16 +3617,18 @@
info');%0A
+
var
@@ -3729,24 +3729,26 @@
n + 1);%0A
+
var current_
@@ -3803,24 +3803,26... |
cf733eda3c8467308f25d3535ec66fb07cc9934a | increase interval | src/main/webapp/ui/app/constants.js | src/main/webapp/ui/app/constants.js | define(function () {
var SECOND_MS = 1000;
var MINUTE_MS = 60 * SECOND_MS;
var HOUR_MS = 60 * MINUTE_MS;
return {
SECOND_MS: SECOND_MS,
MINUTE_MS: MINUTE_MS,
HOUR_MS: HOUR_MS,
DAY_MS: 24 * HOUR_MS,
SAMPLE_DATE: '2015-02-05 13:23 UTC',
SAMPLE_DATE_DAY: '2... | JavaScript | 0.000003 | @@ -390,12 +390,15 @@
AL:
-5000
+HOUR_MS
,%0A
|
7b25fc42e35b565af16258bbc41d02dbb7967c05 | Add loaders for style | src/main/yarn/config/task-config.js | src/main/yarn/config/task-config.js | module.exports = {
html : true,
images : true,
fonts : true,
static : true,
svgSprite : true,
ghPages : true,
stylesheets : true,
javascripts: {
entry: {
// files paths are relative to
// javascripts.dest in path-config.json
app: ["./app.js"]
},
... | JavaScript | 0 | @@ -1,8 +1,423 @@
+const cssModulesLoader = %7B%0A loader: 'css-loader',%0A options: %7B%0A sourceMap: true,%0A minimize: false,%0A modules: true,%0A importLoaders: 1,%0A localIdentName: '%5Bname%5D__%5Blocal%5D___%5Bhash:base64:5%5D'%0A %7D%0A%7D%0A%0Aconst sass_loaders = %5B%0A 'style-loader',%0A ... |
4a64935ceef498432f7eb57d337e2da302fc9862 | Provide a better isObject check | lib/api/formtools/list.js | lib/api/formtools/list.js | var linz = require('../../../'),
async = require('async'),
dedupe = require('dedupe');
/**
* Get toolbar items from list settings and execute render method (if available) for each item to obtain the HTML markup
* @param {Object} req Request object
* @param {Object} res Response object
* @pa... | JavaScript | 0.999676 | @@ -3724,48 +3724,73 @@
(!(
-data instanceof Object && !Array.isArray
+!Object.is(data, null) && !Array.isArray(data) && data === Object
(dat
@@ -6168,48 +6168,73 @@
(!(
-data instanceof Object && !Array.isArray
+!Object.is(data, null) && !Array.isArray(data) && data === Object
(dat
|
e23e7cf0ea7deb41511d007aa05b769f1878212d | Remove old onScroll implematation from MessageListContainter. | src/message/MessageListContainer.js | src/message/MessageListContainer.js | /* @flow */
import React, { PureComponent } from 'react';
import { connectActionSheet } from '@expo/react-native-action-sheet';
import type {
Actions,
Auth,
Fetching,
FlagsState,
Message,
MuteState,
Narrow,
RealmEmojiType,
Subscription,
User,
} from '../types';
import connectWithActions from '../co... | JavaScript | 0 | @@ -806,108 +806,8 @@
rs';
-%0Aimport %7B filterUnreadMessageIds %7D from '../utils/unread';%0Aimport %7B queueMarkAsRead %7D from '../api';
%0A%0Aex
@@ -1334,40 +1334,8 @@
id,%0A
- onScroll: (e: Event) =%3E void,%0A
on
@@ -2460,418 +2460,29 @@
%0A%0A
-handleMessageListScroll = (e: Object) =%3E %7B%0A cons... |
c7e25b07764a1910c3525912bb03e7d380007521 | Test for storeAmazonBids | web/src/js/ads/amazon/__tests__/amazonBidder.test.js | web/src/js/ads/amazon/__tests__/amazonBidder.test.js | /* eslint-env jest */
import getAmazonTag, {
__disableAutomaticBidResponses,
__runBidsBack
} from '../getAmazonTag'
import getGoogleTag from '../../google/getGoogleTag'
import {
getDefaultTabGlobal
} from 'utils/test-utils'
jest.mock('../getAmazonTag')
jest.mock('../../consentManagement')
beforeEach(() => {
... | JavaScript | 0.000013 | @@ -197,16 +197,41 @@
abGlobal
+,%0A mockAmazonBidResponse
%0A%7D from
@@ -2761,12 +2761,1315 @@
ue)%0A %7D)
+%0A%0A it('stores Amazon bids in tabforacause window variable', async () =%3E %7B%0A expect.assertions(4)%0A%0A // Mock apstag's %60fetchBids%60 so we can invoke the callback function%0A var pas... |
ffebdb720c7f5a7b18de13c1e36ec07e95847c62 | Remove non-postgresql data | modules/users/server/models/user.server.model.js | modules/users/server/models/user.server.model.js | 'use strict';
/**
* User Model
*/
var crypto = require('crypto');
Array.prototype.contains = function(element) {
return this.indexOf(element) > -1;
};
/**
* A Validation function for local strategy properties
*/
var validateLocalStrategyProperty = function(property) {
if (((this.provider !== 'local' && !thi... | JavaScript | 0.00003 | @@ -68,96 +68,8 @@
);%0A%0A
-Array.prototype.contains = function(element) %7B%0A return this.indexOf(element) %3E -1;%0A%7D;%0A%0A
/**%0A
@@ -1574,1785 +1574,391 @@
pe:
-(sequelize.options.dialect === 'postgres') ? DataTypes.JSON : DataTypes.STRING,%0A defaultValue: %5B%22user%22%5D,%0A isArray: true,%0A... |
b04a4da1738f37d396a2516dc7e79b0af22b57be | fix test comment | test/unit/get-project-options-test.js | test/unit/get-project-options-test.js | 'use strict';
const { describe, it } = require('../helpers/mocha');
const { expect } = require('../helpers/chai');
const path = require('path');
const _getProjectOptions = require('../../src/get-project-options');
describe(_getProjectOptions, function() {
let cwd;
let packageJson;
let blueprint;
before(funct... | JavaScript | 0 | @@ -3629,16 +3629,23 @@
detects
+custom
blueprin
|
94e4e53f494084dfbfe89350cb7a1edfcd4f3cbb | Remove duplicate a11y tagName option, use innerContent for accessibleName | js/buttons/ResetAllButton.js | js/buttons/ResetAllButton.js | // Copyright 2013-2017, University of Colorado Boulder
/**
* Reset All button, typically used to reset everything ('reset all') on a Screen.
* Extends ResetButton, adding things that are specific to 'reset all'.
*
* @author John Blanco
* @author Chris Malley
*/
define( function( require ) {
'use strict';
//... | JavaScript | 0 | @@ -1738,38 +1738,13 @@
-tagName: 'button',%0A label
+inner
Cont
|
ae54a127e0e689f03dca91a960ce9f471b5073e1 | Fix Karma warnings logged to console | ng2-components/ng2-alfresco-search/karma.conf.js | ng2-components/ng2-alfresco-search/karma.conf.js | 'use strict';
module.exports = function (config) {
var configuration = {
basePath: '.',
frameworks: ['jasmine-ajax', 'jasmine'],
files: [
// System.js for module loading
'node_modules/systemjs/dist/system.src.js',
// Polyfills
'node_modules/core-js/client/shim.js',
'node_... | JavaScript | 0 | @@ -1597,21 +1597,21 @@
//
-ng2-component
+mimetype icon
s%0A
@@ -1607,33 +1607,32 @@
pe icons%0A %7B
-
pattern: 'node_m
@@ -1629,51 +1629,26 @@
n: '
-node_modules/ng2-alfresco-core/dist/**/*.js
+dist/src/img/*.svg
', i
@@ -1683,35 +1683,59 @@
, watched: false
-
%7D,
+%0A%0A // ng2-components
%... |
46d9e6af3f6480702860e795f7016ab76e6c06ed | simplify checkPath | src/cli/commands/files/add.js | src/cli/commands/files/add.js | 'use strict'
const Command = require('ronin').Command
const utils = require('../../utils')
const debug = require('debug')
const log = debug('cli:version')
log.error = debug('cli:version:error')
const bs58 = require('bs58')
const fs = require('fs')
const async = require('async')
const path = require('path')
const glob ... | JavaScript | 0.000002 | @@ -772,391 +772,128 @@
%0A%0A
-var s = fs.statSync(inPath)%0A%0A if (s.isDirectory() && recursive === false) %7B%0A throw new Error('Error: ' + process.cwd() + ' is a directory, use the %5C'-r%5C' flag to specify directories')%0A %7D%0A if (inPath === '.' && recursive === true) %7B%0A inPath = process.cwd(... |
80864c5fa087249ac742551f9c833679db31fab5 | remove runOnline tool | clair.config.js | clair.config.js | const boilerplates = readDirFiles('./boilerplate/')
Object.keys(boilerplates).forEach(key => {
const val = boilerplates[key]
boilerplates[key] = o => val.replace(/\$\{(\w+)\}/g, (_, g1) => o[g1])
})
module.exports = {
boilerplate: {
// where to place generated components
dir: 'src/components',
files:... | JavaScript | 0 | @@ -646,32 +646,35 @@
me, uid) %7B%0A
+ //
return %60%3Cinput
@@ -761,16 +761,97 @@
id%7D%22/%3E%60%0A
+ return %60%3Cinput id=%22$%7Buid%7D%22 type=%22checkbox%22 /%3E%3Clabel for=%22$%7Buid%7D%22%3E%3C/label%3E%60%0A
%7D%0A
|
23a5ce69bb5203b97ae8074bd5c94502da5516d3 | Fix linter error. | src/client/app-es2015/boot.js | src/client/app-es2015/boot.js | import "core-js/shim";
import "reflect-metadata";
import "zone.js/dist/zone";
import { NgModule, Component, VERSION, enableProdMode } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
import { HttpClientModule, H... | JavaScript | 0 | @@ -293,16 +293,77 @@
import %7B
+ HttpClientModule %7D from %22@angular/common/http%22;%0A%0A// import %7B
HttpCli
|
56db0e3e3421e0cd9dfb7fad792103c25a1bfaa5 | send anonymous user to login | packages/core/articles/public/routes/articles.js | packages/core/articles/public/routes/articles.js | 'use strict';
//Setting up route
angular.module('mean.articles').config(['$stateProvider',
function($stateProvider) {
// states for my app
$stateProvider
.state('all articles', {
url: '/articles',
templateUrl: '/articles/views/list.html',
requiredCircles : {
circles: ... | JavaScript | 0 | @@ -545,16 +545,51 @@
icated'%5D
+,%0A denyState: 'auth.login'
%0A
|
deb4c83b1ead2cae4cee39814fa0e406ccd6be6b | update modal to primary03 (#310) | src/components/Modal/Modal.js | src/components/Modal/Modal.js | import React from 'react';
import ReactDOM from 'react-dom';
import styled, { ThemeProvider } from 'styled-components';
import _ from 'lodash';
import PropTypes from 'prop-types';
import {
colors,
renderThemeIfPresentOrDefault,
} from '../styles';
const DialogWrapper = styled.div`
position: ${(props) => {
i... | JavaScript | 0 | @@ -1346,17 +1346,17 @@
primary0
-1
+3
', defau
|
28710fd7c9d49afb5cbce040a0c2fdff2024c023 | check if next media started based on historyID, not media object | src/components/Video/index.js | src/components/Video/index.js | import cx from 'classnames';
import isEqual from 'is-equal-shallow';
import React from 'react';
import CurrentMediaStore from '../../stores/CurrentMediaStore';
import listen from '../../utils/listen';
import SoundCloudPlayer from './SoundCloudPlayer';
import YouTubePlayer from './YouTubePlayer';
function getState() {
... | JavaScript | 0.000006 | @@ -324,16 +324,65 @@
eturn %7B%0A
+ historyID: CurrentMediaStore.getHistoryID(),%0A
medi
@@ -806,25 +806,16 @@
%7C%0A
-!isEqual(
nextStat
@@ -816,22 +816,29 @@
xtState.
-media,
+historyID !==
this.st
@@ -841,22 +841,25 @@
s.state.
-media)
+historyID
;%0A %7D%0A%0A
|
7817ab07471be4d6b90ddbb189d7b9e913f18f11 | fix race condition | packages/docs/src/store/modules/documentation.js | packages/docs/src/store/modules/documentation.js | import deprecatedIn from '@/data/deprecated'
import newIn from '@/data/new'
// Utilities
import { set } from '@/util/vuex'
import camelCase from 'lodash/camelCase'
import upperFirst from 'lodash/upperFirst'
export default {
namespaced: true,
state: {
deprecatedIn,
newIn,
namespace: null,
page: nu... | JavaScript | 0.000006 | @@ -392,32 +392,118 @@
s, rootState) %7B%0A
+ if (!rootState %7C%7C !rootState.route %7C%7C !rootState.route.params) return undefined%0A
return upp
@@ -597,24 +597,110 @@
ootState) %7B%0A
+ if (!rootState %7C%7C !rootState.route %7C%7C !rootState.route.params) return undefined%0A
return
|
4c0226a35acdec268a2b0efcf99c7d3de741f844 | increase monitor limits | public/javascripts/monitor.js | public/javascripts/monitor.js | (function (app) {
function create(elt) { return window.document.createElement(elt); }
function SpeedOMeter (config) {
this.maxVal = config.maxVal;
this.threshold = config.threshold || 1;
this.unit = config.unit ? config.unit + " " : "";
this.name = config.name;
this.container = config.containe... | JavaScript | 0.000001 | @@ -2611,17 +2611,18 @@
axVal :
-6
+10
00,%0A
@@ -2725,18 +2725,18 @@
axVal :
-15
+30
0,%0A
@@ -2856,17 +2856,17 @@
axVal :
-5
+7
00,%0A
@@ -2996,17 +2996,17 @@
axVal :
-2
+4
000,%0A
@@ -3127,33 +3127,33 @@
%0A maxVal :
-2
+3
00,%0A thresh
@@ -3263,33 +3263,33 @@
%0A maxVa... |
ecd39aa10352bcd2159915069ad388aed6c92fd2 | Add zipping to release script | dawn/release.js | dawn/release.js | var minimist = require('minimist');
var packager = require('electron-packager');
var execSync = require('child_process').execSync;
function build() {
console.log('Packaging with webpack, using the production config');
var child = execSync('npm run-script build', function(err, stdout, stderr) {
console.log('std... | JavaScript | 0.000001 | @@ -123,16 +123,44 @@
xecSync;
+%0Avar path = require('path');
%0A%0Afuncti
@@ -446,22 +446,16 @@
on pack(
-prod,
platform
@@ -460,16 +460,25 @@
rm, arch
+, noprune
) %7B%0A va
@@ -517,20 +517,34 @@
%0A%0A if (
-prod
+!platform %7C%7C !arch
) %7B%0A
@@ -839,19 +839,23 @@
prune =
-t
+!nop
ru
+n
e; //r... |
a015eab013333e1d2674f6cdc6df8d2feace4722 | save to db function callback for after http request | db/animeData.js | db/animeData.js | var request = require('request-json');
var mongoose = require("mongoose");
var Anime = require('../models/anime');
// Database
var config = require('../config/config');
mongoose.connect(config.database);
//data to get token
var data = {
grant_type : "client_credentials",
client_id : process.env.ClientI... | JavaScript | 0 | @@ -202,16 +202,502 @@
base);%0A%0A
+function saveToDb(err, res, body) %7B%0A if (err) return console.log(err); //error%0A // clear description%0A console.log(body);%0A var re = /%3Cbr%3E%7C%5C(Source.+/g;%0A var description = body.description.replace(re, %22%22);%0A //create a mongoose document for every return... |
120eb542d9bb179900e044678a11d932d7dd598b | add trigger update event | src/components/table/index.js | src/components/table/index.js | /**
* Created by huangxinghui on 2015/8/25.
*/
var $ = require('jquery');
var _ = require('underscore');
var Immutable = require('immutable');
var plugin = require('../../plugin');
var mixin = require('../../utils/mixin');
var Widget = require('../../widget');
var ListMixin = require('../../mixins/list');
var templa... | JavaScript | 0 | @@ -2106,32 +2106,77 @@
y);%0A %7D);%0A
+ this.trigger('update', data, index);%0A
%7D,%0A%0A _onC
|
a0896f89de781aa205c30a2be4fd327a318f775e | Set visible to false on close button press | src/sap.m/src/sap/m/MessageStrip.js | src/sap.m/src/sap/m/MessageStrip.js | /*!
* ${copyright}
*/
// Provides control sap.m.MessageStrip.
sap.ui.define(["jquery.sap.global", "./library", "sap/ui/core/Control", "sap/m/MessageStripUtilities",
"sap/m/Text", "sap/m/Link"],
function (jQuery, library, Control, MSUtils, Text, Link) {
"use strict";
/**
* Constructor for a new MessageStrip.
... | JavaScript | 0 | @@ -4672,15 +4672,17 @@
**%0A%09
+
* Close
+s
the
@@ -4701,130 +4701,189 @@
p.%0A%09
-*%0A%09* @type void%0A%09* @public%0A%09* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
+ * This method sets the visible property of the MessageStrip to false.%0A%09 * The MessageStri... |
239d70245d23e4be60083633528503c8e708c2a4 | print sponsor message instead of twice the success message (#14332) | cli/utils.js | cli/utils.js | /**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | JavaScript | 0.000001 | @@ -4022,38 +4022,38 @@
halk.cyan.bold(S
-UCCESS
+PONSOR
_MESSAGE));%0A %7D
|
6a1c2de82ea970a4b3b9066ea59ee2b648ec5cc7 | Print the body. | cloud/app.js | cloud/app.js | // 在 Cloud code 里初始化 Express 框架
var express = require('express');
var app = express();
// App 全局配置
app.set('views','cloud/views'); // 设置模板目录
app.set('view engine', 'ejs'); // 设置 template 引擎
app.use(express.bodyParser()); // 读取请求 body 的中间件
// 使用 Express 路由 API 服务 /hello 的 HTTP GET 请求
app.get('/hello', function... | JavaScript | 0.000235 | @@ -471,16 +471,21 @@
.dir(req
+.body
);%0A res
|
1d79783f301510f9e117275acbe34a371387513f | change some validation fields for multi-send | packages/local-sync/src/local-api/routes/send.js | packages/local-sync/src/local-api/routes/send.js | const Joi = require('joi');
const LocalDatabaseConnector = require('../../shared/local-database-connector');
const SendingUtils = require('../sending-utils');
const SendmailClient = require('../sendmail-client');
const SEND_TIMEOUT = 1000 * 60; // millliseconds
const recipient = Joi.object().keys({
name: Joi.string... | JavaScript | 0.000001 | @@ -2244,38 +2244,38 @@
ray().items(Joi.
-string
+object
()),%0A d
@@ -2374,36 +2374,16 @@
.array()
-.items(Joi.string())
,%0A
@@ -2406,36 +2406,16 @@
.array()
-.items(Joi.string())
,%0A
@@ -2437,36 +2437,16 @@
.array()
-.items(Joi.string())
,%0A
|
5e317420cdfabb0f0d8c10590247c2cc0432df34 | Remove extra quotes around development string | packages/pluginsdk/pluginconfig/rollup.config.js | packages/pluginsdk/pluginconfig/rollup.config.js | const { nodeResolve } = require('@rollup/plugin-node-resolve');
const commonjs = require('@rollup/plugin-commonjs');
const externalGlobals = require('rollup-plugin-external-globals');
const json = require('@rollup/plugin-json');
const postCss = require('rollup-plugin-postcss');
const replace = require('@rollup/plugin-... | JavaScript | 0 | @@ -688,17 +688,16 @@
ENV %7C%7C '
-%22
developm
@@ -699,17 +699,16 @@
elopment
-%22
');%0Acons
|
e34957718aeeb275bd0c786172d6d89b71b47dd5 | Remove 'jsx' | packages/react-hot-boilerplate/webpack.config.js | packages/react-hot-boilerplate/webpack.config.js | var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./src/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: ... | JavaScript | 0.000002 | @@ -430,62 +430,8 @@
%5D,%0A
- resolve: %7B%0A extensions: %5B'', '.js', '.jsx'%5D%0A %7D,%0A
mo
@@ -475,10 +475,8 @@
%5C.js
-x?
$/,%0A
|
a9cc0f01e05c80943d5f6fdfeecd3c2abf09d416 | fix some flow reference-before-declaration errors | packages/relay-runtime/store/RelayRecordState.js | packages/relay-runtime/store/RelayRecordState.js | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
* @oncall relay
*/
'use strict';
export type RecordState = $Keys<typeof RelayRecordState>;
const R... | JavaScript | 0.00001 | @@ -251,67 +251,8 @@
';%0A%0A
-export type RecordState = $Keys%3Ctypeof RelayRecordState%3E;%0A%0A
cons
@@ -723,16 +723,75 @@
N',%0A%7D;%0A%0A
+export type RecordState = $Keys%3Ctypeof RelayRecordState%3E;%0A%0A
module.e
|
518399e6983082c62a30ee0407e4afaa4c9170bb | add 3 char hex color support in hexToRGB function add input checking in hexToRGB function | public/js/lib/models/arrow.js | public/js/lib/models/arrow.js | // create global CSSArrowPlease if it doesn't exist
if (!('CSSArrowPlease' in window)) window.CSSArrowPlease = {};
(function (G) {
/**
@class Arrow
@constructor
**/
var Arrow = function () {
this.init.apply(this, arguments);
};
Arrow.prototype = {
init: function () {
// jquerify 'this'
... | JavaScript | 0 | @@ -993,24 +993,223 @@
ction (h) %7B%0A
+ if ( typeof h !== 'string' %7C%7C !h.match(/%5E#(%5B0-9A-F%5D%7B3%7D$)%7C(%5B0-9A-F%5D%7B6%7D$)/i) ) return %5B0, 0, 0%5D;%0A else if ( h.match(/%5E(#%5B0-9a-f%5D%7B3%7D)$/i) ) h = '#' + h%5B1%5D + h%5B1%5D + h%5B2%5D + h%5B2%5D + h%5B3%5D + h%5B3%5D;%0A
var r... |
ec4773a7c97c5d90cbbba93c34ed5e7a62bb7462 | remove and isolate bluebird | src/commands/generate-serverless-express-proxy.js | src/commands/generate-serverless-express-proxy.js | /*global module, require, Promise */
var path = require('path'),
shell = require('shelljs'),
Bluebird = require('bluebird'),
fs = Bluebird.promisifyAll(require('fs')),
NullLogger = require('../util/null-logger'),
runNpm = require('../util/run-npm');
module.exports = function generateServerlessExpressProxy(options,... | JavaScript | 0.000002 | @@ -88,24 +88,18 @@
ljs'),%0A%09
-Bluebird
+fs
= requi
@@ -106,61 +106,27 @@
re('
-bluebird'),%0A%09fs = Bluebird.promisifyAll(require('fs')
+../util/fs-promise'
),%0A%09
|
3642b1e13cee1a0d57d074fc15d4f91fff1ec67f | add Figma designs | src/components/statusLabel/statusLabel.stories.js | src/components/statusLabel/statusLabel.stories.js | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { select } from '@storybook/addon-knobs/react';
import {
Box,
Heading1,
Heading2,
Heading3,
Heading4,
StatusLabel,
TextBody,
TextDisplay,
TextSmall,
} from '../../index';
const colors = ['... | JavaScript | 0 | @@ -492,24 +492,168 @@
rameters: %7B%0A
+ design: %7B%0A type: 'figma',%0A url: 'https://www.figma.com/file/LHH25GN90ljQaBEUNMsdJn/Desktop-components?node-id=246%253A1041',%0A %7D,%0A
info: %7B%0A
|
d62d8623581645a385942e0e5ea9ceb2dfaa3afe | Simplify errorSlot | src/foam/u2/detail/SectionedDetailPropertyView.js | src/foam/u2/detail/SectionedDetailPropertyView.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.detail',
name: 'SectionedDetailPropertyView',
extends: 'foam.u2.View',
documentation: `
View for one property of a SectionedDetailView.
`,
css: `
... | JavaScript | 0.00002 | @@ -1503,25 +1503,24 @@
is.SUPER();%0A
-%0A
this%0A
@@ -1661,16 +1661,22 @@
ion(
+data,
prop) %7B%0A
@@ -1671,28 +1671,16 @@
prop) %7B%0A
-
%0A
@@ -1704,119 +1704,13 @@
t =
-foam.core.SimpleSlot.create(%7Bvalue: null%7D);%0A var slotSub;%0A self.slot(functi... |
0556c772c17951f9d81e66086328f66deb61ab95 | check if performance measurer is defined | lib/bloob/scenes/mapscene.js | lib/bloob/scenes/mapscene.js | mini.Module(
"bloob/scenes/mapscene"
)
.requires(
"engine/scene",
"basic/mouse",
"basic/utils",
"basic/interactionhandler",
"basic/interactionhandlerbuilder",
"basic/mapbuilder",
"engine/map/map",
"assets/loader",
"basic/audio/sound",
"engine/rendering/debugdraw/debugdraw",
"engine/firefly"
)... | JavaScript | 0.000001 | @@ -1017,16 +1017,34 @@
es/map%0D%0A
+%09%09%09if(ff.graph)%0D%0A%09
%09%09%09ff.gr
@@ -1099,24 +1099,42 @@
mePassed);%0D%0A
+%09%09%09if(ff.graph)%0D%0A%09
%09%09%09ff.graph.
@@ -1171,16 +1171,34 @@
dering%0D%0A
+%09%09%09if(ff.graph)%0D%0A%09
%09%09%09ff.gr
@@ -1290,16 +1290,34 @@
.map);%0D%0A
+%09%09%09if(ff.... |
95c79ea8a5a447254aeaea5c8697d0152a50d5cd | fix print method | lib/built-in/command/help.js | lib/built-in/command/help.js | 'use strict';
var help = module.exports = {};
help.run = function (options, callback) {
var command = options.command;
if(command === '*'){
all_help(options.options);
}else{
var exists = fs.exists( options.options.option_root, command + '.js' );
if(exists){
options.d... | JavaScript | 0.000344 | @@ -1008,16 +1008,38 @@
er.info(
+ help.logger.template(
line, da
@@ -1037,24 +1037,26 @@
(line, data)
+ )
;%0A %7D);%0A%7D%0A
|
545ccbff673e4c611da6939585ce37f7b06fff28 | Fix DmFacet.list() method | lib/clients/web/facets/dm.js | lib/clients/web/facets/dm.js | /**
* API Facet to make calls to methods in the im namespace.
*
* This provides functions to call:
* - close: {@link https://api.slack.com/methods/im.close|im.close}
* - history: {@link https://api.slack.com/methods/im.history|im.history}
* - list: {@link https://api.slack.com/methods/im.list|im.list}
* ... | JavaScript | 0 | @@ -1996,16 +1996,34 @@
ptCb) %7B%0A
+ var args = %7B%7D;%0A%0A
return
@@ -2050,16 +2050,22 @@
m.list',
+ args,
optCb);
|
f0d2746ac04b7e29066f7d03e2e55244a2270fce | add insert sort | src/sort/index.js | src/sort/index.js | const src = [3, 44, 38, 5, 47, 15, 36, 26, 27, 2, 46, 4, 19, 50, 48]
const swap = (arr, m, n) => {
const temp = arr[m]
arr[m] = arr[n]
arr[n] = temp
return arr
}
const bubble = (arr) => {
for (let i = 0, len = arr.length; i < len; i = i + 1) {
for (let j = 0; j < (len - i - 1); j = j + 1) {
if (ar... | JavaScript | 0.000001 | @@ -641,24 +641,253 @@
turn arr%0A%7D%0A%0A
+const insert = (arr) =%3E %7B%0A for (let i = 0, len = arr.length; i %3C (len - 1); i = i + 1) %7B%0A for (let j = i + 1; j %3C 1; j = j - 1) %7B%0A if (arr%5Bj%5D %3C arr%5Bj - 1%5D) %7B%0A swap(arr, j - 1, j)%0A %7D%0A %7D%0A %7D%0A return arr%0A... |
c0f17e3bebe17ecdaae1aec7c5fcf2303edfc973 | add support for 'terrain' maptype | src/static_map.js | src/static_map.js | /*
* Static Map
* A JS class for rendering static Google Maps and loading dynamic maps on the fly
*
* Requires jQuery library (http://www.jquery.com),
* jQuery.Class plug-in (http://github.com/taylanpince/jquery-class)
*
* Taylan Pince (taylanpince at gmail dot com) - October 24, 2008
*/
$.namespace("core.StaticMa... | JavaScript | 0.000001 | @@ -502,19 +502,42 @@
mat=png8
+&maptype=%25(maptype)
%22,%0A
-
api_
@@ -1153,16 +1153,41 @@
m : 14,%0A
+ maptype : %22roadmap%22,%0A
mark
@@ -2427,16 +2427,54 @@
rs, %22%7C%22)
+,%0A %22maptype%22 : this.maptype
%0A
@@ -4293,32 +4293,32 @@
%7D%0A %0A
-
gmap... |
598fd682efc359e5e8c5256876ddea9047cd1f0c | Load distributions directory using file-loader | src/store/data.js | src/store/data.js | import history from '!json!../assets/data/history.json'
import metadata from '!json!../assets/data/metadata.json'
import latestSeasonData from '!json!../assets/data/season-latest.json'
const req = require.context(
'file-loader!../assets/data/',
false,
/^\.\/.*\.json$/
)
const seasonDataUrls = req.keys().reduce(... | JavaScript | 0 | @@ -103,24 +103,75 @@
adata.json'%0A
+// Loading latest season in the main bundle itself%0A
import lates
@@ -236,19 +236,29 @@
%0A%0Aconst
-req
+seasonDataCtx
= requi
@@ -343,28 +343,353 @@
nst
-seasonDataUrls = req
+distDataCtx = require.context(%0A 'file-loader!../assets/data/distributions/',%0A false,%0A ... |
49e51307a2e73492c0b0aaf72189330621ce25e2 | add date to button text | src/containers/date_filter.js | src/containers/date_filter.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { getShows } from '../actions/index';
import { clearShows } from '../actions/index';
import moment from 'moment';
class DateFilter extends Component {
getShows(numDaysFromNow) {
let... | JavaScript | 0.000001 | @@ -761,16 +761,96 @@
Today%0A
+ %3Cbr/%3E%0A %3Csmall%3E%7Bmoment().format('ddd, MMM Do')%7D%3C/small%3E%0A
@@ -853,32 +853,32 @@
%3C/button%3E%0A
-
%3C/div%3E%0A
@@ -1080,16 +1080,111 @@
omorrow%0A
+ %3Cbr/%3E%0A %3Csmall%3E%7Bmoment().add... |
c4ab062d5c0dad27264576c7bbbdbd68b5bf980d | years are not nouns | src/tags/index.js | src/tags/index.js | 'use strict';
const conflicts = require('./conflicts');
const tree = require('./tree');
const extra = {
Month: 'Singular',
Year: 'Noun',
Time: 'Noun',
WeekDay: 'Noun',
Duration: 'Noun',
NumberRange: 'Contraction'
};
const all_children = (obj) => {
let children = Object.keys(obj || {});
//two levels ... | JavaScript | 0.999996 | @@ -120,16 +120,19 @@
ular',%0A
+ //
Year: '
|
aadba0bf85c154af6bb54e1dd338d63fa1b2f8e8 | Update supervisor.js | src/controllers/supervisor.js | src/controllers/supervisor.js | import Supervisor from '../models/supervisor'
import { getPasswordHash, checkPassword } from '../utils/security'
import { InvalidSupervisorCredentialsError, InternalError } from '../utils/errors'
import constants from '../utils/constants'
import logger from '../utils/logger'
class SupervisorController {
static isSup... | JavaScript | 0.000001 | @@ -1570,16 +1570,22 @@
ame)%0A%09
+
.update(
|
3139f005b606a86c221cf79985bd0b978dea9203 | Use open and close function | src/mw-ui-components/directives/mw_collapsible.js | src/mw-ui-components/directives/mw_collapsible.js | angular.module('mwUI.UiComponents')
//TODO rename to mwCollapsible
.directive('mwCollapsable', function () {
return {
transclude: true,
scope: {
mwCollapsable: '=',
title: '@mwTitle'
},
templateUrl: 'uikit/mw-ui-components/directives/templates/mw_collapsible.html',
l... | JavaScript | 0.000016 | @@ -685,20 +685,16 @@
-scope.toggle
+var open
= f
@@ -692,36 +692,34 @@
open = function
-
()
-
%7B%0A var
@@ -769,101 +769,52 @@
dy')
-,%0A maxHeight;%0A%0A if (!scope.viewModel.collapsed) %7B%0A maxH
+;%0A%0A collapsedBody.css('max-h
eight
- =
+',
get... |
305457af9acdf3ea8972409353ea835c6ff05970 | Fix places.js | chrome/content/browser/places.js | chrome/content/browser/places.js | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript | 0.009947 | @@ -1746,18 +1746,17 @@
er(%0A
-
+%09
'load',%0A
fu
@@ -1751,18 +1751,17 @@
'load',%0A
-
+%09
function
@@ -1765,20 +1765,18 @@
ion() %7B%0A
-
+%09%09
removeEv
@@ -1821,20 +1821,18 @@
true);%0A%0A
-
+%09%09
Componen
@@ -1895,20 +1895,18 @@
TrayR);%0A
-
+%09%09
gMinTray
@@ -1917,75 +1917,31 @... |
6336717b02180a326e454a0884dff06dc65e5adc | Fix the use of SafeString | client/app/helpers/handlebars.js | client/app/helpers/handlebars.js | //
// Copyright 2009-2014 Ilkka Oksanen <iao@iki.fi>
//
// 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 b... | JavaScript | 0.999931 | @@ -691,16 +691,69 @@
mber';%0A%0A
+var SafeString = Ember.Handlebars.Utils.SafeString;%0A%0A
Ember.Ha
@@ -865,33 +865,16 @@
urn new
-Ember.Handlebars.
SafeStri
@@ -1326,33 +1326,16 @@
urn new
-Ember.Handlebars.
SafeStri
@@ -1696,16 +1696,16 @@
%0A %7D%0A%0A
+
retu
@@ -1711,33 +1711,16 @@
urn new
-Em... |
c820896cad759ee0f5b191e76b01b244fee789df | Update ufs-local.js | ufs-local.js | ufs-local.js | if (Meteor.isServer) {
var fs = Npm.require('fs');
var mkdirp = Npm.require('mkdirp');
}
/**
* File system store
* @param options
* @constructor
*/
UploadFS.store.Local = function (options) {
// Set default options
options = _.extend({
mode: '0744',
path: 'ufs/uploads',
writ... | JavaScript | 0 | @@ -2911,74 +2911,8 @@
d);%0A
- UploadFS.tokens.remove(%7BfileId: fileId%7D);%0A
|
3619187840e1c094ceb6fe0881fbc841efa18501 | Fix variable name | src/utils/post.js | src/utils/post.js | const https = require('https');
function post (options, body) {
return new Promise((resolve, reject) => { // TODO: catch this through https
const data = JSON.stringify(body);
const postOptions = {
host: options.url[0],
path: options.url[1],
method: 'POST',
headers: options.headers || ... | JavaScript | 0.99981 | @@ -585,20 +585,20 @@
q.write(
-body
+data
);%0A r
|
164b11488d0f3ff56e4ba54f3c5c637eff6c6671 | Throw received err in responseHandler | src/utils/rest.js | src/utils/rest.js | import 'isomorphic-fetch';
import reduxApi, { transformers } from 'redux-api';
import adapterFetch from 'redux-api/lib/adapters/fetch';
import jwtDecode from 'jwt-decode';
import config from 'config';
import { showError } from '../modules/ErrorSnackbar';
let store;
export const injectStore = (_store) => {
store =... | JavaScript | 0.000001 | @@ -2424,16 +2424,32 @@
r(msg));
+%0A%0A throw err;
%0A %7D%0A%7D);
|
73c86daa57c1ec97179779d69bfa7ad23e925c9c | Update UI (#22) | src/server/static/app/components/devBar/devBar.js | src/server/static/app/components/devBar/devBar.js | app.directive('devBar', function() {
return {
templateUrl: 'app/components/devBar/devBar.html',
controller: 'devBarCtrl',
restrict: 'E'
};
});
app.controller('devBarCtrl', function($scope, $route, ApiService) {
$scope.appVersion = 4.0;
$scope.show = DEBUG;
$scope.changePort = fu... | JavaScript | 0 | @@ -264,9 +264,9 @@
n =
-4
+5
.0;%0A
|
800d263ace8470f9f546c136325d2d425ddbe356 | Remove unused validation context key | src/validation.js | src/validation.js | /*
*
* Message Validation
*
*/
import {
attributeName,
convertToNamespacedName,
elementAttributes,
elementName,
elementNamespaceOrName,
i18nId,
idOrComponentName,
hasI18nId,
isComponent,
isElementMarker,
isSimpleExpression,
isTag
} from './ast';
import {assertInpu... | JavaScript | 0.000001 | @@ -7284,187 +7284,8 @@
) %7B%0A
- assertUnique(%0A validationContext.componentsWithSanitizedAttributes,%0A 'Found the following duplicate elements/components',%0A validationContext.root%0A );%0A%0A
@@ -7660,56 +7660,8 @@
: %7B%7D
-,%0A componentsWithSanitizedAttributes: %7B%7D... |
63c31a8b12228ffa48f3a2760f7b3795f5f84f7f | Fix return on add for the tree data structure | tree.js | tree.js | function Node(data) {
this.data = data;
this.children = [];
}
function Tree() {
this.root = null;
}
Tree.prototype.add = function(data, toNodeData) {
var node = new Node(data);
var parent = toNodeData ? this.findBFS(toNodeData) : null;
if(parent) {
parent.children.push(node);
} else {
if(!this.r... | JavaScript | 0.000001 | @@ -348,22 +348,8 @@
de;%0A
- return;%0A
@@ -375,16 +375,9 @@
rn '
-Error: r
+R
oot
@@ -413,50 +413,8 @@
%7D%0A
- return 'Error: parent does not exit';%0A
%7D%0A
|
757f00116a938c8db9e8da2edae9724df03f0ea6 | Fix missing sorting in overview | src/ui/scripts/components/routes/RouteOverview.js | src/ui/scripts/components/routes/RouteOverview.js | import { createElement as h, Fragment, useEffect } from 'react'
import { DURATIONS_INTERVAL } from '../../../../constants/durations'
import * as route from '../../constants/route'
import { ALL_DOMAINS } from '../../actions/overview'
import * as selectOverviewValue from '../../selectors/selectOverviewValue'
import enh... | JavaScript | 0.000021 | @@ -1468,16 +1468,60 @@
DOMAINS%0A
+%09const filterSorting = props.filter.sorting%0A
%09const f
@@ -1552,16 +1552,16 @@
r.range%0A
-
%09const f
@@ -2751,21 +2751,15 @@
ng:
-props.pages.s
+filterS
orti
@@ -3017,25 +3017,15 @@
ng:
-props.referrers.s
+filterS
orti
@@ -3339,23 +3339,15 @@
ng:
-props.systems.s
+... |
93f4cf2326e90231ceb846e1123fc765fba7ba95 | Fix module call | src/wef.logger.js | src/wef.logger.js | //requires: wef
/*!
* Wef logger
* Copyright (c) 2011 Pablo Escalada
* MIT Licensed
*/
(function () {
var LOGLEVEL = {
all:-1,
trace:1,
debug:2,
log:2,
info:3,
warn:4,
error:5,
none:100
};
var textFormatter = function() {
return t... | JavaScript | 0.000001 | @@ -88,32 +88,35 @@
%0A */%0A(function (
+wef
) %7B%0A var LOGL
@@ -7649,10 +7649,20 @@
ger;%0A%7D)(
+window.wef
);
|
3b879c0520510a6e1758b522e8f049567c3bc04e | Fix image src in prod | source/static/scripts.js | source/static/scripts.js | // Piwik/Matomo
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.openfisca.org"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.data.gouv.fr/";
_paq.push(['setTrackerUrl', u+'piwik.php'])... | JavaScript | 0.000471 | @@ -549,16 +549,252 @@
%0A%7D)();%0A%0A
+function getPathName() %7B%0A if (location.pathname.startsWith('/doc/')) %7B // Very ugly. Triggered when the doc is hosted under the /doc/ subdomain. A proper configuration system would be preferable.%0A return '/doc';%0A %7D%0A return '';%0A%7D%0A%0A
$(docume
@@ -817,1... |
87f9c43845e4c5cf3946be70ce90e99674e27af9 | test statement-db migrations | test/peer/statement_db_test.js | test/peer/statement_db_test.js | // @flow
const assert = require('assert')
const { before, describe, it } = require('mocha')
const { StatementDB } = require('../../src/peer/db/statement-db')
import type { StatementMsg } from '../../src/protobuf/types'
const SEED_STATEMENTS: Array<StatementMsg> = [
{
id: 'QmF001234:foo:5678',
publisher: '... | JavaScript | 0.000001 | @@ -8,23 +8,35 @@
w%0A%0Aconst
+ %7B
assert
+, expect %7D
= requi
@@ -39,22 +39,20 @@
equire('
-assert
+chai
')%0Aconst
@@ -96,17 +96,45 @@
mocha')%0A
+const path = require('path')
%0A
-
const %7B
@@ -192,16 +192,16 @@
t-db')%0A%0A
-
import t
@@ -254,16 +254,108 @@
types'%0A%0A
+const MIGRATIONS_DIR = pat... |
b2e41dc32868bd0bc8bdb946bc2faddefc6797bc | Correct small screen adaptation | web/js/core.js | web/js/core.js | function getIdInClasses(el)
{
var classes = $(el).attr("class").split(" ");
for ( var i = 0; i < classes.length; i++ )
{
exp = new RegExp(".*id_([-]?[0-9]+)",'gi');
var result = exp.exec(classes[i]) ;
if ( result )
{
return result[1];
}
}
}
function c... | JavaScript | 0.00012 | @@ -376,17 +376,12 @@
$('
-link:last
+head
').a
|
3a9d9140d3bebfee9c48048ae728e04c65f994f5 | Set display name when registering tasks | task/helper.js | task/helper.js | // helper.js
var gulp = require('gulp');
var notify = require('gulp-notify');
var cli = require('commander');
var logger = require('gulplog');
var chalk = require('chalk');
var exists = require('file-exists');
// Set up CLI options.
cli
.option('-w, --watch', 'Watch files for changes and re-run tasks automatically.'... | JavaScript | 0.000001 | @@ -1297,37 +1297,85 @@
%0A%09%09%09
-gulp.task(name, require(path)
+var task = require(path);%0A%09%09%09task.displayName = name;%0A%09%09%09gulp.task(name, task
);%0A%09
|
85c4abbf4d166fc60999169fdaa9f85ff6c910c7 | fix ember try the right way | config/ember-try.js | config/ember-try.js | /* jshint node:true*/
module.exports = {
scenarios: [
{
name: 'default',
bower: {
dependencies: { }
}
},
{
name: 'ember-1.13',
bower: {
dependencies: {
'ember': '~1.13.0'
},
resolutions: {
'ember': '~1.13.0'
}
... | JavaScript | 0 | @@ -159,19 +159,18 @@
'ember-
-1.1
+2-
3',%0A
@@ -217,35 +217,34 @@
'ember': '~
-1.1
+2.
3.0'%0A %7D,%0A
@@ -291,11 +291,10 @@
: '~
-1.1
+2.
3.0'
|
b5fb56ec4434310be896a04e545fc8cf414fa18d | Remove global variable | jquery.sticky.js | jquery.sticky.js | // Sticky Plugin v1.0.0 for jQuery
// =============
// Author: Anthony Garand
// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)
// Improvements by Leonardo C. Daronco (daronco)
// Created: 2/14/2011
// Date: 2/12/2012
// Website: http://labs.anthonygarand.com/sticky
// Description: Makes an element ... | JavaScript | 0.002444 | @@ -3565,32 +3565,36 @@
is);%0A%0A
+var
removeIdx = -1;%0A
|
f0d8b1222d2860de86fe6baf7ecf7607e783368a | Update config/ember-try.js | config/ember-try.js | config/ember-try.js | 'use strict';
const getChannelURL = require('ember-source-channel-url');
module.exports = function() {
return Promise.all([
getChannelURL('release'),
getChannelURL('beta'),
getChannelURL('canary')
]).then((urls) => {
return {
useYarn: true,
scenarios: [
{
name: 'ember... | JavaScript | 0 | @@ -1180,16 +1180,54 @@
source':
+ '~3.4.0',%0A 'ember-data':
'~3.4.0
|
1b13d7ab983d1753bf0c5e223ceedf1e7f6ed2fa | Update app.js | markdown-web-note/app.js | markdown-web-note/app.js | const $ = (q) => document.querySelector(q);
const saveToken = (v) => localStorage.setItem('token', v);
const loadToken = (v) => localStorage.getItem('token');
const removeToken = (v) => localStorage.removeItem('token');
(async ()=>
{
if(location.href.match(/\?(clear|reset)/))
{
removeToken();
}
const API = "ht... | JavaScript | 0.000002 | @@ -2392,19 +2392,12 @@
file
- && content
+name
)%0A%09%09
@@ -2540,20 +2540,24 @@
) + %60 $%7B
-file
+markdown
%7D.md%60,%0A%09
|
71c42b4326405900368b5479fab85a6c583fdf2e | fix (modules): Fix polyfillNonStandardDefaultUsage (#850) | modules/fuse-heresy-default/index.js | modules/fuse-heresy-default/index.js | module.exports = function(input) {
return ['function', 'object', 'array']
.indexOf(typeof input) > -1 && input.default === undefined ? input.default = input : void 0;
} | JavaScript | 0 | @@ -144,29 +144,98 @@
d ?
+%0A Object.defineProperty(
input
-.
+, %22
default
- = input
+%22, %7Bvalue : input, enumerable : false%7D)
: v
|
3f835ba89403cc7f0ffabc0b097910fce2cfc472 | Update stock-opname-product-record.js | src/inventory/stock-opname-product-record.js | src/inventory/stock-opname-product-record.js | 'use strict';
var BaseModel = require('model-toolkit').BaseModel;
module.exports = class StockOpnameProductRecord extends BaseModel {
constructor(source) {
super('stock-opname-product-record', '1.0.0');
// Define properties.
this.productCode = "";
this.ProductName = "";
th... | JavaScript | 0.000001 | @@ -285,17 +285,17 @@
this.
-P
+p
roductNa
|
cbb9cff998246229bd893c2abb641db51986afa0 | Improve error message for clean task | tasks/clean.js | tasks/clean.js | const gulp = require('gulp');
const del = require('del');
const Log = require('./lib/logger');
const config = require('../config');
gulp.task('clean', () => {
const folderDelete = ['js', 'css', 'images', 'sprite', 'fonts'].map(asset => {
if (!config[ asset ] || !config[ asset ].dist) {
return new Log(
... | JavaScript | 0.000191 | @@ -54,45 +54,8 @@
l');
-%0Aconst Log = require('./lib/logger');
%0A%0Aco
@@ -90,16 +90,54 @@
fig');%0A%0A
+const Log = require('./lib/logger');%0A%0A
gulp.tas
@@ -159,17 +159,16 @@
%3E %7B%0A
-%0A
const
fold
@@ -163,22 +163,30 @@
const
-f
+tasksF
older
+sTo
Delete =
@@ -233,21 +233,20 @@
s'%5D.map(
+t... |
3568d8496223a5d26cde24ef7ed5766190b43c06 | Set a prefix in all tests | test/streams/documentStream.js | test/streams/documentStream.js | var tape = require( 'tape' );
var event_stream = require( 'event-stream' );
var DocumentStream = require( '../../lib/streams/documentStream' );
function test_stream(input, testedStream, callback) {
var input_stream = event_stream.readArray(input);
var destination_stream = event_stream.writeArray(callback);
inp... | JavaScript | 0 | @@ -553,32 +553,38 @@
tStream.create('
+prefix
', stats);%0A%0A te
@@ -1084,16 +1084,22 @@
create('
+prefix
', stats
|
8255ed032f1d01b9e9a0cd6c065f17c921ff0650 | fix reference in file context menu | controllers/imageCtrl.js | controllers/imageCtrl.js | spacialistApp.controller('imageCtrl', ['$scope', 'imageService', 'mainService', 'snackbarService', '$translate', function($scope, imageService, mainService, snackbarService, $translate) {
$scope.images = {};
$scope.images.all = imageService.all;
$scope.images.linked = imageService.linked;
$scope.current... | JavaScript | 0.000001 | @@ -858,35 +858,33 @@
) %7B%0A var
-img
+f
= $itemScope.im
@@ -873,35 +873,33 @@
f = $itemScope.
-img
+f
;%0A var co
@@ -920,35 +920,33 @@
for(var i=0; i%3C
-img
+f
.linked_images.l
@@ -966,35 +966,33 @@
%0A if(
-img
+f
.linked_images%5Bi
@@ -1483,19 +1483,17 @@
var
-img
+f
... |
a27b1c76fa18da27017e562ee1949a7056bfbe45 | Remove @bs.com restriction for FastFwd invites. | src/jobs/jobs/email-fast-fwd-instructions.js | src/jobs/jobs/email-fast-fwd-instructions.js | import pg from 'pg'
import log from '../../backend/log'
import knex from '../../backend/data/knex'
import async from 'async'
import Promise from 'bluebird'
import importData from '../../backend/data/import-data'
import moment from 'moment-timezone'
import MG from '../../backend/mail'
import rq from 'request-promise'
c... | JavaScript | 0 | @@ -2358,110 +2358,8 @@
%22 +%0A
- %22AND %22 +%0A %22bsd_emails.email NOT ILIKE '%25@berniesanders.com%25' %22 +%0A
@@ -3743,106 +3743,8 @@
alse
- %22 +%0A %22AND %22 +%0A %22bsd_emails.email NOT ILIKE '%25@berniesanders.com%25'
%22;%0A%0A
|
8bd69b568e0b7677e642683f1c1f6e60f367e6ff | Update Travis-yml tests to chai | test/system/travis-yml.test.js | test/system/travis-yml.test.js | /* global describe, it */
var expect = require('expect.js');
describe('travis.yml', function () {
var fs = require('fs'),
yaml = require('js-yaml'),
travisYAML,
travisYAMLError;
try {
travisYAML = yaml.safeLoad(fs.readFileSync('.travis.yml').toString());
}
catch (e) {
... | JavaScript | 0 | @@ -19,23 +19,17 @@
, it
- */%0Avar
+,
expect
= re
@@ -28,31 +28,10 @@
ect
-= require('expect.js');
+*/
%0A%0Ade
@@ -541,26 +541,24 @@
to.not.be.ok
-()
;%0A %7D);%0A%0A
@@ -704,18 +704,21 @@
ist).to.
-b
e
+qual
('trusty
@@ -842,18 +842,21 @@
age).to.
-b
e
+qual
('node_j
@@ -1456,32 +1456,32 @@
, fu... |
c04f1d42eee5fb1ad6aa397059a9a647a5da057b | Make watch task compile everything first | tasks/index.js | tasks/index.js | import gulp from 'gulp'
import { fonts } from './fonts'
import { images } from './images'
import { scripts } from './webpack'
import { styles } from './styles'
export function watch() {
gulp.watch('./resources/assets/sass/**/*.scss', styles);
gulp.watch('./resources/js/**/*.js', scripts);
gulp.watch('./re... | JavaScript | 0.000536 | @@ -155,23 +155,16 @@
tyles'%0A%0A
-export
function
@@ -169,16 +169,21 @@
on watch
+_task
() %7B%0A
@@ -410,16 +410,67 @@
styles);
+%0Aexport const watch = gulp.series(dev, watch_task);
%0A%0Aexport
|
86db5718a7780a98f060bfd9e8f60fe40a7334fe | Replace '\n' for EOL in tests of keysets-xml tech for fix broken tests on windows | test/techs/keysets-xml.test.js | test/techs/keysets-xml.test.js | var mockFs = require('mock-fs'),
MockNode = require('mock-enb/lib/mock-node'),
Tech = require('../../techs/keysets-xml');
describe('keysets-xml', function () {
afterEach(function () {
mockFs.restore();
});
it('must get valid *.lang.xml from *.keyset file', function () {
var keysets... | JavaScript | 0 | @@ -1,12 +1,41 @@
var
+EOL = require('os').EOL,%0A
mockFs =
@@ -51,24 +51,24 @@
'mock-fs'),%0A
-
MockNode
@@ -1423,36 +1423,35 @@
%5D.join(
-'%5Cn'
+EOL
);%0A%0A retu
@@ -2358,36 +2358,35 @@
%5D.join(
-'%5Cn'
+EOL
);%0A%0A retu
@@ -2962,20 +2962,19 @@
%5D.join(
-'%5Cn'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.