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 |
|---|---|---|---|---|---|---|---|
033ca6db226d5f153f277a5d03f7b9b21056eab1 | Simplify CameraComponent ctor camera setup. | src/core/CameraComponent.js | src/core/CameraComponent.js | /*jshint white: false, strict: false, plusplus: false, onevar: false,
nomen: false */
/*global define: false, console: false, window: false, setTimeout: false */
define( function ( require ) {
var Component = require( './Component' );
function CameraComponent( paladin, options ) {
options = options || {};... | JavaScript | 0 | @@ -403,20 +403,8 @@
ra =
- (options &&
opt
@@ -418,28 +418,11 @@
mera
-) ? options.camera :
+ %7C%7C
new
@@ -458,16 +458,18 @@
amera(%7B%0A
+
|
ba43154c4b57677f095d5b1aa55655671f3b2058 | test 08.08.16 v8.88 dangerHtml 1aaa | src/containers/App/App.js | src/containers/App/App.js | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { IndexLink } from 'react-router';
import { LinkContainer } from 'react-router-bootstrap';
import Navbar from 'react-bootstrap/lib/Navbar';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/l... | JavaScript | 0.000001 | @@ -1083,18 +1083,16 @@
push%7D)%0A
-
export d
@@ -2291,63 +2291,8 @@
) %7B%0A
- const %7BuserName, userPw, userUuid%7D = this.state;%0A
|
e8f37342bad5d45e67d4f95ccc4c677fc62f55a4 | resolve warnings | src/ContentBlocks/BlockCarouselWithContent/BlockCarouselWithContent.js | src/ContentBlocks/BlockCarouselWithContent/BlockCarouselWithContent.js | // @flow
import React from 'react';
import Box from 'grommet/components/Box';
import Carousel from 'grommet/components/Carousel';
import Footer from 'grommet/components/Footer';
import Markdown from 'grommet/components/Markdown';
import unescape from 'unescape';
import ImageWrapper from '../BlockMarquee/BlockMarquee/Im... | JavaScript | 0 | @@ -798,16 +798,17 @@
mageSize
+?
: string
|
5cf287a747ed5b22ceb7ac09af9b8c9a54de025e | implement stopCheck | lib/core/services_monitor.js | lib/core/services_monitor.js | var async = require('../utils/async_extend.js');
var ServicesMonitor = function(options) {
this.events = options.events;
this.logger = options.logger;
this.checkList = {};
this.checkTimers = {};
this.checkState = {};
};
ServicesMonitor.prototype.addCheck = function(name, checkFn, time) {
this.logger.info(... | JavaScript | 0.000001 | @@ -342,132 +342,264 @@
;%0A
-// TODO: check if a service with the same name already exists%0A this.checkList%5Bname%5D = %7Bfn: checkFn, interval: time %7C%7C 5000%7D
+this.checkList%5Bname%5D = %7Bfn: checkFn, interval: time %7C%7C 5000%7D;%0A%7D;%0A%0AServicesMonitor.prototype.stopCheck = function(name) %7B%0A ... |
b9167a54c2ff3ff797b7198b7fa5070d9cd54a06 | switch deprecated fs.exists for fs.stat | controllers/thumbnails.js | controllers/thumbnails.js | 'use strict';
var path = require('path'),
fs = require('fs'),
sharp = require('sharp'),
config = require('../config.json'),
Promise = require('bluebird'),
restifyErrors = require('restify-errors'),
CommonController = require('./common');
class ThumbnailsController extends CommonController {
... | JavaScript | 0.000003 | @@ -1018,22 +1018,20 @@
fs.
-exists
+stat
(file, (
exis
@@ -1030,20 +1030,19 @@
e, (
-exis
+sta
ts) =%3E %7B
cb(
@@ -1041,26 +1041,189 @@
=%3E %7B
- cb(null, exists);
+%0A if (!stats) %7B%0A console.log('FILE NOT FOUND:', file);%0A %7D%0A ... |
e192402a426c24e0733822ea5bc4ce455bbdb416 | Add item priorities | js/forum/src/components/HeaderSecondary.js | js/forum/src/components/HeaderSecondary.js | import Component from 'flarum/Component';
import Button from 'flarum/components/Button';
import LogInModal from 'flarum/components/LogInModal';
import SignUpModal from 'flarum/components/SignUpModal';
import SessionDropdown from 'flarum/components/SessionDropdown';
import SelectDropdown from 'flarum/components/SelectDr... | JavaScript | 0.000006 | @@ -1054,16 +1054,20 @@
render()
+, 30
);%0A%0A
@@ -1853,27 +1853,31 @@
nk'%0A %7D)
+, 20
);%0A
-
%7D%0A%0A i
@@ -1961,24 +1961,28 @@
.component()
+, 10
);%0A ite
@@ -2026,16 +2026,19 @@
ponent()
+, 0
);%0A %7D
@@ -2314,24 +2314,28 @@
%7D)
+, 10
%0A );%0A
@@ -2535,32 ... |
6d81e5a8ab8d7d330c75da418b32168d5545356a | Update e2e tests | e2e-tests/scenarios.js | e2e-tests/scenarios.js | 'use strict';
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
describe('my app', function() {
it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
browser.get('index.html');
expect(browser.getLocationAbsUrl()).toMatch("/view1");
});
desc... | JavaScript | 0 | @@ -100,24 +100,25 @@
p', function
+
() %7B%0A%0A%0A it(
@@ -152,21 +152,16 @@
ect to /
-view1
when lo
@@ -189,16 +189,24 @@
is empty
+/invalid
', funct
@@ -200,32 +200,33 @@
valid', function
+
() %7B%0A browser
@@ -297,16 +297,106 @@
tch(
-%22/view1%22
+'/');%0A%0A browser.get('index.html#/invalid')... |
e75185669f843c7074755315c310c6789ba31c26 | fix for bottom border color getting reset (#7114) | src/TextField/TextFieldUnderline.js | src/TextField/TextFieldUnderline.js | import React from 'react';
import PropTypes from 'prop-types';
import transitions from '../styles/transitions';
const propTypes = {
/**
* True if the parent `TextField` is disabled.
*/
disabled: PropTypes.bool,
/**
* Override the inline-styles of the underline when parent `TextField` is disabled.
*/
... | JavaScript | 0 | @@ -1654,24 +1654,29 @@
erBottom
+Style
: 'solid
1px',%0A
@@ -1671,13 +1671,37 @@
olid
- 1px'
+',%0A borderBottomWidth: 1
,%0A
@@ -1886,16 +1886,21 @@
erBottom
+Style
: 'dotte
@@ -1900,21 +1900,45 @@
'dotted
- 2px'
+',%0A borderBottomWidth: 2
,%0A
@@ -2007,24 +2007,29 @@
erBottom
+Style
... |
abef50a8ff972cf766666e94d5ad97a5545e743b | Update lib/flatiron/plugins/http.js to fix missed https {Object} option | lib/flatiron/plugins/http.js | lib/flatiron/plugins/http.js | /*
* http.js: Top-level plugin exposing HTTP features in flatiron
*
* (C) 2011, Nodejitsu Inc.
* MIT LICENSE
*
*/
var director = require('director'),
flatiron = require('../../flatiron'),
union;
try {
//
// Attempt to require union.
//
union = require('union');
}
catch (ex) {
//
// Do nothin... | JavaScript | 0 | @@ -1788,16 +1788,45 @@
tp.limit
+,%0A https: app.http.https
%0A %7D);
|
299b3004da77fcbe9230031b127d25515491e748 | Fix wrap(). See note | src/core/MeshComponent.js | src/core/MeshComponent.js | import {Mesh} from 'three';
import {Component} from './Component';
import {attributes, copy, mirror} from './prototype/attributes';
import {CompositionError} from './errors';
@attributes(
copy('position', 'rotation', 'quaternion', 'scale'),
mirror('material', 'geometry')
)
class MeshComponent extends Component {
... | JavaScript | 0 | @@ -2083,24 +2083,65 @@
e =%3E %7B%0A
+ // TODO: Fix defer with physics%0A //
this.defer(
@@ -2144,26 +2144,24 @@
fer(() =%3E %7B%0A
-
const
@@ -2212,18 +2212,16 @@
arams;%0A%0A
-
th
@@ -2275,26 +2275,24 @@
n.z);%0A
-
this.rotatio
@@ -2330,26 +2330,24 @@
otation.z);%0A
-
... |
897349c097d0576377ad8ead81e89b3793974078 | Update eventManager tests. Remove jest timer | src/__tests__/utils/eventManager.js | src/__tests__/utils/eventManager.js | /* eslint-env jest */
import eventManager from './../../utils/eventManager';
jest.useFakeTimers();
describe('EventManager', () => {
it('Should be able to bind an event', () => {
eventManager.on('foo', () => {});
expect(eventManager.list.has('foo')).toBe(true);
});
it('Should be able to emit event', ()... | JavaScript | 0 | @@ -75,31 +75,8 @@
';%0A%0A
-jest.useFakeTimers();%0A%0A
desc
@@ -429,33 +429,8 @@
');%0A
- jest.runAllTimers();%0A
@@ -582,33 +582,8 @@
');%0A
- jest.runAllTimers();%0A
|
49caad8bc465a630ae0478f3150a29cbfa55a485 | Refactor of through | src/gulp-phantomcss.js | src/gulp-phantomcss.js | var path = require('path');
var through2Concurrent = require('through2-concurrent');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
var _ = require('lodash');
module.exports.configure = function (config) {
this.paths = config.paths;
this.phantom = config.phantom;
return this;
};
module.e... | JavaScript | 0.000001 | @@ -701,289 +701,17 @@
ion
-endStream(file, cb) %7B%0A if (args.breakOnError && error %3E 0) %7B%0A return this.emit('error', new PluginError(%0A 'gulp-phantomcss', 'Some tests have failed.'%0A ));%0A %7D%0A this.emit('end');%0A %7D%0A%0A return through2Concurrent.obj(%0A %7BmaxConcurre... |
2c69c82222a6ba070b1c78a68f5ee10682bd3dc6 | Fix purchase confirmation decimal points | src/_common/PurchaseConfirmation.js | src/_common/PurchaseConfirmation.js | import React, { PropTypes } from 'react';
import { FormattedTime } from 'react-intl';
import { epochToDate } from '../_utils/DateUtils';
import { M } from '../_common';
const PurchaseConfirmation = ({ receipt }) => (
<div>
<table>
<tbody>
<tr>
<td colSpan="2">
{receipt.longcode}
</td>
</t... | JavaScript | 0.999999 | @@ -140,16 +140,29 @@
port %7B M
+, NumberPlain
%7D from
@@ -241,16 +241,105 @@
%3Ctable%3E%0A
+%09%09%09%3Cthead%3E%0A%09%09%09%09%3Cth colSpan=%222%22%3E%7B%60Contract Ref. $%7Breceipt.contract_id%7D%60%7D%3C/th%3E%0A%09%09%09%3C/thead%3E%0A
%09%09%09%3Ctbod
@@ -708,32 +708,58 @@
%3E%3C/td%3E%0A%09%09%09%09%09... |
5ea844e19a2e936f9f1520fecc581dcc868c05ca | Use sensible defaults for trace signature and type | lib/instrumentation/trace.js | lib/instrumentation/trace.js | 'use strict'
var asyncState = require('../async-state')
var Trace = module.exports = function (transaction, signature, type) {
this.transaction = transaction
this.signature = signature
this.type = type
this.ended = false
this._stackPrevStarted = asyncState.lastTransactionTraceStarted
asyncState.lastTrans... | JavaScript | 0 | @@ -183,16 +183,29 @@
ignature
+ %7C%7C 'unknown'
%0A this.
@@ -215,16 +215,29 @@
e = type
+ %7C%7C 'unknown'
%0A this.
|
94d3596f93da57cc03b8612129ae99c74645962a | reset offest properly (scope!) | src/historicBGPData.js | src/historicBGPData.js | /*jslint node:true, bitwise:true */
var Q = require('q');
var fs = require('fs');
var http = require('http');
var chalk = require('chalk');
var readline = require('linebyline');
var spawn = require('child_process').spawn;
var moment = require('moment');
// Take a line of the origin RIB file and load it into a hash map... | JavaScript | 0 | @@ -365,43 +365,8 @@
var
-offsets = %5B0, 0%5D,%0A parseASLine,%0A
asnR
@@ -417,16 +417,25 @@
nction (
+offsets,
seen, ma
@@ -1035,16 +1035,25 @@
nction (
+offsets,
map, lin
@@ -1286,16 +1286,21 @@
%0A %7D%0A%7D;%0A
+%0Avar
parseASL
@@ -1315,16 +1315,19 @@
nction (
+c,
s, m, l)
@@ -1351,23 +1351,17 @... |
1c95a05ad333791a130ca090be9b0068a05d8085 | fix unit test | test/purchasing/unit-receipt-note/validator.js | test/purchasing/unit-receipt-note/validator.js | var helper = require("../../helper");
var validator = require('dl-models').validator.master;
var validatorPurchasing = require('dl-models').validator.purchasing;
var UnitReceiptNoteManager = require("../../../src/managers/purchasing/unit-receipt-note-manager");
var unitReceiptNoteManager = null;
var unitReceiptNote = r... | JavaScript | 0.000001 | @@ -6313,16 +6313,80 @@
+data.storageId=storageDataId;%0A data.isInventory=true;
%0A%0A
|
937e1d9b136ff5adbcbec3406cbd7aa3babb91c6 | Fix tests | test/resources/6_setup.js | test/resources/6_setup.js | var fs = require('fs');
var assert = require('assert');
var restify = require('restify');
var client = require('../client');
var settings = require('../../lib/settings.js');
describe('Resource:', function() {
describe('Setup:', function() {
it('should the database connection', function(done) {
client.p... | JavaScript | 0.000003 | @@ -16,16 +16,44 @@
e('fs');
+%0Avar path = require('path');
%0A%0Avar as
@@ -810,32 +810,37 @@
%0A %7D);%0A%0A it
+.only
('should generat
@@ -1050,22 +1050,33 @@
ync(
-settings.path(
+path.join(process.cwd(),
sett
@@ -1104,15 +1104,29 @@
)),
-false);
+true);%0A assert
%0A
|
1839c7117a226f1dc390d5d6bdcfc6a33dacb195 | remove unused variable | lib/model/breakpointModel.js | lib/model/breakpointModel.js | 'use strict'
'use babel'
const Breakpoint = require('thera-debug-common-types').Breakpoint
const {COMMAND} = require('thera-debug-common-types').Payload
const {Emitter, Disposable} = require('atom')
module.exports =
class BreakpointModel {
constructor (service) {
this.breakpoints = []
this.emitter = new Em... | JavaScript | 0.00003 | @@ -23,74 +23,8 @@
l'%0A%0A
-const Breakpoint = require('thera-debug-common-types').Breakpoint%0A
cons
|
ebdd42a863a6a95b7d2cf176401b1c4c6489d6d5 | Throw instead of assert.fail | src/create-client.test.js | src/create-client.test.js | import { strict as assert } from 'assert';
import createClient from './create-client.js';
export default {
simple: () => {
const client = createClient();
const events = [];
const onChange = data => events.push(data);
client.watch({ onChange });
client.watch({ query: { foo: {} }, onChange });
... | JavaScript | 0.000438 | @@ -381,19 +381,33 @@
=%3E
-assert.fail
+%7B%0A throw new Error
('Sh
@@ -433,16 +433,25 @@
called')
+;%0A %7D
%0A %7D);
|
7ef660b4a314b0fd04dbc90e3d2231ece5d1b3e6 | Update tests according to the latest breaking changes | src/input-tags.spec.js | src/input-tags.spec.js | describe('Module: angularjs-input-tags -', () => {
let $componentController;
beforeEach(angular.mock.module('angularjs-input-tags'));
beforeEach(angular.mock.inject(_$componentController_ => {
$componentController = _$componentController_;
}));
describe('Component: inputTags -', () => {
let ctrl;
... | JavaScript | 0 | @@ -957,32 +957,38 @@
eBeenCalledWith(
+%7Btag:
%7Bcode: 1, text:
@@ -983,32 +983,33 @@
e: 1, text: '1'%7D
+%7D
);%0A %7D);%0A
@@ -1996,16 +1996,22 @@
ledWith(
+%7Btag:
%7Bcode: 1
@@ -2014,32 +2014,33 @@
e: 1, text: '1'%7D
+%7D
);%0A %7D);%0A%0A
|
8289cc5c585b6e816b6a3c95949ec6dc3bb10229 | fix test cases | server/test/test.js | server/test/test.js | var assert = require('assert')
, jrs = require('jsonrpc-serializer')
, Handler = require('../lib/p2p-rpc')
, sse = require('../lib/sse');
function CheckRes(fn) {
this.json = fn;
}
function CheckSseRes(fn) {
this.send = fn;
}
function mockPost(jstring) {
return {
type: 'POST',
body: JSON.parse(jst... | JavaScript | 0.000013 | @@ -2758,28 +2758,23 @@
.params.
-notification
+request
, 'Admir
@@ -3532,28 +3532,23 @@
cation('
-notification
+request
', %7B%0A
@@ -3600,28 +3600,23 @@
-notification
+request
: 'Admir
@@ -3852,16 +3852,24 @@
ual(obj.
+payload.
method,
@@ -3869,23 +3869,28 @@
ethod, '
-forward
+notification
Suc... |
661e3b3c8b021b1a9a4c6f09a61121e55a5d4209 | Set model body during a DELETE request. Refs #70. | servers/Route.bones | servers/Route.bones | var path = require('path');
var env = process.env.NODE_ENV || 'development';
var headers = { 'Content-Type': 'application/json' };
server = Bones.Server.extend({});
var options = {
type: '.js',
wrapper: Bones.utils.wrapClientFile,
sort: Bones.utils.sortByLoadOrder
};
// TODO: This should be moved to the ... | JavaScript | 0 | @@ -5088,32 +5088,146 @@
return next();%0A
+ if (req.body && !req.model.set(req.body, %7B%0A error: function(model, err) %7B next(err); %7D%0A %7D)) return;%0A
req.model.de
|
bd822e6184b0c65f3756081f49e252c5c95d8aba | extract id | client/edit/index.js | client/edit/index.js | /* globals define, ajaxify, socket, app, config, utils, bootbox */
define('forum/client/plugins/custom-fields-edit', [], function () {
'use strict';
var Edit = {};
// TODO User ajaxify.data.theirid ?
var idPrefix = 'field_',
api = {
get : 'plugins.ns-custom-fields.getFields'... | JavaScript | 0.999697 | @@ -784,24 +784,33 @@
jaxify.data.
+userData.
theirid, dat
|
06073eea66d2e7900f17e583aacc083db58c17b8 | remove space bar testing | client/game_board.js | client/game_board.js | var stage, board, tiles, fleets, scale, sWid, is_dragging;
var lastMouse = { x:0, y:0 };
var is_dragging = false;
$(document).ready(function() {
init_stage();
document.addEventListener('keyup', handleKeyUp, false);
document.addEventListener('keydown', handleKeyDown, false);
});
/**
* Called from createAll in g... | JavaScript | 0 | @@ -997,92 +997,8 @@
ak;%0A
-%09%09case 32:%0A%09%09%09drawExplosion(500, 300, 1.0);%0A%09%09%09drawShield(800, 300, 1.0);%0A%09%09%09break;%0A
%09%09de
|
ea7038a45ac7e70af974463f4e5bd1c442bdf6f1 | 清理:待发布文件 | service/deployer.js | service/deployer.js | 'use strict';
const path = require('path');
const fsHelper = require('../utils/fsHelper');
const fs = fsHelper.fsExtra;
const backup = require('./backup');
const config = require('../config');
const deployDir = config['deploy.dir'];
const clobberOptions = {
clobber: true
};
module.exports = {
/**
* 添加发布文件
... | JavaScript | 0 | @@ -34,24 +34,58 @@
re('path');%0A
+const moment = require('moment');%0A
const fsHelp
@@ -261,16 +261,66 @@
y.dir'%5D;
+%0Aconst deployKeeptime = config%5B'deploy.keepTime'%5D;
%0A%0Aconst
@@ -2537,15 +2537,473 @@
yDir%7D%60;%0A
+ %7D,%0A%0A /**%0A * %E6%B8%85%E7%90%86%E5%BE%85%E5%8F%91%E5%B8%83%E6%96%87%E4%B... |
cac3cd583afc05624a3b0c2befdadec84607fe7a | Revert "testing" | api/login/forgot/index.js | api/login/forgot/index.js | 'use strict';
exports.init = function(req, res){
if (req.isAuthenticated()) {
res.redirect(req.user.defaultReturnUrl());
}
else {
res.render('login/forgot/index');
}
};
exports.send = function(req, res, next){
console.log('in send');
//res.send('test');
/*var workflow = req.app.utility.workf... | JavaScript | 0 | @@ -275,18 +275,16 @@
t');%0A%0A
-/*
var work
@@ -2539,16 +2539,18 @@
%7D);
+%0A%0A
@@ -2554,22 +2554,392 @@
-%0A %0A%0A
+ //create Resetpassword record%0A /*var resetPW = req.app.db.models.ResetPassword.build(%7B%0A userId: userId, %0A resetPasswordTok... |
a9ef57b9b04692d85086e9da188564c56854709e | update LUTShader | shader/LUTShader.js | shader/LUTShader.js | export default class LUTShader {
// Adapted from Matt DesLauriers - https://github.com/mattdesl/glsl-lut
// FOR LUT of 64x64x64
static computeLUT64() {
return `
vec3 computeLUT64(vec3 color, sampler2D lutTexture, vec4 lutRectangle)
{
float blueColor = color.b * 63.0;
vec2 quad1;
... | JavaScript | 0 | @@ -32,130 +32,114 @@
%7B%0A
-// Adapted from Matt DesLauriers - https://github.com/mattdesl/glsl-lut%0A // FOR LUT of 64x64x64%0A static computeLUT64() %7B
+static computeLUT(%7B%0A lutSize = 64,%0A %7D = %7B%7D) %7B%0A const lutTextureSize = lutSize * Math.sqrt(lutSize);
%0A
@@ -161,34 +161,32 @@
ve... |
95ff97899ca882c39f53789fbf867f127469cdb4 | Add custom grouping key based on the message | lib/raygun.messageBuilder.js | lib/raygun.messageBuilder.js | /*
* raygun
* https://github.com/MindscapeHQ/raygun4node
*
* Copyright (c) 2015 MindscapeHQ
* Licensed under the MIT license.
*/
'use strict';
var stackTrace = require('stack-trace');
var os = require('os');
var humanString = require('object-to-human-string');
var packageDetails = require('../package.json');
f... | JavaScript | 0 | @@ -1172,24 +1172,104 @@
ing(error);%0A
+ message.details.groupingKey = error.replace(/%5CW+/g, %22%22).substring(0, 64);%0A
%7D%0A%0A i
|
b3de618c9370344f9ed385db4f74687ab8dd15b4 | Update yawsSocketConnect.js | test/yawsSocketConnect.js | test/yawsSocketConnect.js | var should = require('chai').should();
var expect = require('chai').expect;
require('fake-dom');
describe('yaws.socketConnect', function() {
window={location:{href:"https://127.0.0.1/example"}};
require('../src/yawsSocketConnect.js');
it('yaws should be an object', function() {
window.yaws.should.be.a('object... | JavaScript | 0.000001 | @@ -1438,32 +1438,39 @@
unction() %7B%0A
+expect(
window.yaws.sock
@@ -1495,32 +1495,41 @@
(blob)%7B%7D,%7B%7D,'/')
+).to.have
.property('url',
@@ -1756,32 +1756,39 @@
unction() %7B%0A
+expect(
window.yaws.sock
@@ -1821,16 +1821,25 @@
,%7B%7D,'/')
+).to.have
.propert
|
1ff11883a02f0348eaccfb5e400edc466e526b27 | Convert MessageList to radio buttons | dev/js/containers/MessageList.js | dev/js/containers/MessageList.js | import React from 'react';
const MessageList = () => (
<ul>
<li>Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>
);
export default MessageList;
| JavaScript | 0.999999 | @@ -56,20 +56,68 @@
%0A %3C
-ul
+div
%3E%0A %3C
-li%3E
+p%3E%3Cinput type=%22radio%22 name=%22message%22 value=%221%22 /%3E
Opti
@@ -122,28 +122,74 @@
tion 1%3C/
-li
+p
%3E%0A %3C
-li%3E
+p%3E%3Cinput type=%22radio%22 name=%22message%22 value=%222%22 /%3E
Option 2
@@ -194,20 +194,66 @@
2%3C/
-li
+p
%3... |
15acbb145d267ca5268135a417c1e31fcaa60f1b | Implement resetCallback function | src/jquery.seslider.js | src/jquery.seslider.js | (function($) {
$.fn.seSlider = function(options) {
var defaults = {
nextBtn: '.sliderNextBtn',
prevBtn: '.sliderPrevBtn',
playPauseBtn: '.sliderPlayBtn',
resetBtn: '.sliderResetBtn',
preventReversedCycle: false,
progressBar: null,
... | JavaScript | 0.000075 | @@ -469,32 +469,65 @@
Callback: null,%0A
+ resetCallback: null,%0A
auto
@@ -4870,15 +4870,20 @@
if(
-reset !
+endReached =
== t
@@ -4965,32 +4965,162 @@
.endCallback();%0A
+ else if(reset === true && typeof params.resetCallback === 'function')%0A params.res... |
259e54bb53471164ad844007684c72c8f5ef636a | make Dom accessible in Context for plugins | src/js/base/Context.js | src/js/base/Context.js | define([
'jquery',
'summernote/base/core/func',
'summernote/base/core/list',
'summernote/base/core/dom'
], function ($, func, list, dom) {
/**
* @param {jQuery} $note
* @param {Object} options
* @return {Context}
*/
var Context = function ($note, options) {
var self = this;
var ui = $.s... | JavaScript | 0 | @@ -424,16 +424,36 @@
options;
+%0A this.dom = dom;
%0A%0A /*
|
657700925ba8042025d3942e32d5d31790082c9a | Fix delete card copy. | app/account/views/card.js | app/account/views/card.js | module.exports = Zeppelin.ModelView.extend({
tagName: 'li',
attributes: function() {
return {
'title': this.model.get('name'),
'data-type': this.model.get('type')
};
},
className: function() {
var className = 'card is-item';
if (this.model.get('featured')) className += ' is-feature... | JavaScript | 0 | @@ -769,16 +769,21 @@
delete
+this
card?'))
|
4063b4e83c5db06e187c2c0be73c64a71d02e857 | return callback function. | testcube/static/common.js | testcube/static/common.js | "use strict";
let my = {};
my.defaultToolTip = "Loading ...";
my.debugLog = true;
function disableConsoleLog() {
my.logMethod = console.log;
console.log = function () {
}
}
function enableConsoleLog() {
console.log = my.logMethod;
}
function doSetup() {
}
function getColor(value) {
// value fr... | JavaScript | 0.000001 | @@ -1207,16 +1207,23 @@
allback)
+ return
callbac
|
0bf0256337755d880901b57ba327d866b962903e | Use similar assetstorage scanning mechanism in the qmlui menu as well. Check asset suffixes properly. | bin/scenes/Avatar/avatarmenu.js | bin/scenes/Avatar/avatarmenu.js | var avatarMenu = null;
function MenuActionHandler(assetRef, index)
{
this.assetName = assetRef;
}
MenuActionHandler.prototype.triggered = function()
{
var avatarEntity = scene.GetEntity("Avatar" + client.GetConnectionID());
if (avatarEntity == null)
return;
var r = avatarEntity.avatar.appearan... | JavaScript | 0 | @@ -1048,24 +1048,124 @@
tRefs();%0A%7D%0A%0A
+function EndsWith(str, suffix)%0A%7B%0A return str.indexOf(suffix) == (str.length - suffix.length);%0A%7D%0A%0A
function Pop
@@ -1740,16 +1740,25 @@
if ((
+EndsWith(
assetNam
@@ -1767,35 +1767,31 @@
ower
-.indexOf(%22.xml%22) != -1) %7C%7C
+, %22.xml%22)) %7C%7... |
95fa66c2bacd1fd98a4ec8ee7fbb58b9e51361f5 | Remove renderValue from FieldHelper | client/src/components/FieldHelper.js | client/src/components/FieldHelper.js | import React from "react"
import {
Col,
ControlLabel,
FormControl,
FormGroup,
HelpBlock,
InputGroup,
ToggleButton,
ToggleButtonGroup
} from "react-bootstrap"
import utils from "utils"
const getFieldId = field => field.id || field.name // name property is required
const getHumanValue = (field, humanVal... | JavaScript | 0 | @@ -5097,343 +5097,8 @@
%0A%7D%0A%0A
-export const renderValue = (%7B%0A field, // %7B name, value, onChange, onBlur %7D%0A form, // also values, setXXXX, handleXXXX, dirty, isValid, status, etc.%0A ...props%0A%7D) =%3E %7B%0A const id = field.id %7C%7C field.name%0A return (%0A %3CFormControl.Static component... |
1ace0f6d5438d459debdffe2ac80a298f594dbf0 | remove hard-coded list of unary keywords in space-unary-ops rule (fixes #2696) | lib/rules/space-unary-ops.js | lib/rules/space-unary-ops.js | /**
* @fileoverview This rule shoud require or disallow spaces before or after unary operations.
* @author Marcin Kumorek
* @copyright 2014 Marcin Kumorek. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//-------------------... | JavaScript | 0 | @@ -1130,311 +1130,8 @@
%7D%0A%0A
- /**%0A * Checks if the type is a unary word expression%0A * @param %7Bstring%7D type value of AST token%0A * @returns %7Bboolean%7D Whether the word is in the list of known words%0A */%0A function isWordExpression(type) %7B%0A return %5B%22delete%22, %22new... |
7e629a4aa50ff8323a58d333ad2a0701969c5db8 | Stop comment polling on route change | client/src/js/controllers/comment.js | client/src/js/controllers/comment.js | angular.module('gokibitz.controllers')
.controller('CommentController', [
'$rootScope',
'$scope',
'$http',
'$routeParams',
'Comment',
'pathFilter',
function ($rootScope, $scope, $http, $routeParams, Comment, pathFilter) {
//console.log('Comment Controller');
//console.log('scope', $scope);
$sco... | JavaScript | 0 | @@ -69,96 +69,8 @@
er',
- %5B%0A%09%09'$rootScope',%0A%09%09'$scope',%0A%09%09'$http',%0A%09%09'$routeParams',%0A%09%09'Comment',%0A%09%09'pathFilter',
%0A%09%09f
@@ -2595,16 +2595,35 @@
;%0A%0A%09%09%09%09%09
+var pollComments =
setInter
@@ -2681,24 +2681,133 @@
%09%7D, 3000);%0A%0A
+%09%09%09%09%09$scope.$on('$... |
0eb98c637bb0e4e882a20c95189cac56341a311f | Handle local execution with the Lambda callback model | lib/run/execution-wrapper.js | lib/run/execution-wrapper.js | // Wrapper for a Lambda function executing in a different process
"use strict";
function sendError(pid, err, callback) {
const message = err.message || err;
console.error(message);
if (err.stack) {
console.error(err.stack);
}
process.send({ result: message, type: 'error' }, null, callback... | JavaScript | 0 | @@ -1221,16 +1221,42 @@
t %7C%7C %7B%7D;
+%0A let finished = false;
%0A%0A //
@@ -1558,32 +1558,61 @@
', function() %7B%0A
+ if (!finished) %7B%0A
context.
@@ -1669,24 +1669,34 @@
request'));%0A
+ %7D%0A
%7D);%0A%0A
@@ -2230,24 +2230,71 @@
);%0A %7D
+,%0A%0A c... |
a750bcf87327c0e413ad6019e991aaa0a88d072e | Update fichas.js | app/controllers/fichas.js | app/controllers/fichas.js | //PdfModule
var fichaReme = require('../pdf/fichaReme');
// Config
var config = require('../config/config');
// Models
Ficha = require('../models/').Ficha;
Users = require('../models/').User;
// CRUD Operations for Ficha Model
module.exports = {
index(req, res) {
Ficha.findAll()
.then(function (... | JavaScript | 0 | @@ -675,45 +675,8 @@
%7D)%0A
- console.log(Fichas);%0A
@@ -1098,28 +1098,43 @@
-console.log(Ficha);%0A
+Ficha.forEach(function(ficha)%7B%0A
@@ -1206,17 +1206,17 @@
Seccion(
-F
+f
icha.sec
@@ -1221,17 +1221,17 @@
eccion,
-F
+f
icha.are
@@ -1254,33 +1254,37 @@
... |
0e96b4f59abd87c4b74b4e97bdf419bbf00e9516 | Debounce the search query task | app/controllers/search.js | app/controllers/search.js | import Controller from '@ember/controller';
import { computed } from '@ember/object';
import { alias, bool, readOnly } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import { task } from 'ember-concurrency';
import PaginationMixin from '../mixins/pagination';
export default Contro... | JavaScript | 0.999998 | @@ -209,16 +209,25 @@
t %7B task
+, timeout
%7D from
@@ -301,16 +301,42 @@
tion';%0A%0A
+const DEBOUNCE_MS = 250;%0A%0A
export d
@@ -1381,24 +1381,98 @@
(params) %7B%0A
+ // debounce the search query%0A yield timeout(DEBOUNCE_MS);%0A%0A
if (
@@ -1610,12 +1610,19 @@
%7D).
-drop
+restarta... |
d1cbff7110f4c139d2993327b81a002413b769c5 | Add person information if available and http headers | lib/server/rollbar-server.js | lib/server/rollbar-server.js | rollbar = Npm.require("rollbar");
var environmentVarsRequired = [
'ROLLBAR_SERVER_ACCESS_TOKEN',
'ROLLBAR_CLIENT_ACCESS_TOKEN'
];
rollbarServerAccessToken = null;
rollbarClientAccessToken = null;
var allNecessaryKeysAvailable = function() {
return _.reduce(_.map(environmentVarsRequired, function(envVar) {
... | JavaScript | 0 | @@ -196,16 +196,307 @@
null;%0A%0A
+var getUserPayload = function(userId) %7B%0A var userPayload = %7B%7D;%0A if(userId) %7B%0A var user = Meteor.users.findOne(%7B_id: userId%7D);%0A userPayload = %7B%0A id: userId,%0A username: user.profile && user.profile.name%0A %7D;%0A %7D else %7B%0A use... |
9fbce034009fe669358f70e5440aab93073287a0 | Remove the strange `isFalse` and `isTrue`. | katas/es6/language/number-api/isinteger.js | katas/es6/language/number-api/isinteger.js | // 55: Number - isInteger
// To do: make all tests pass, leave the assert lines unchanged!
// Follow the hints of the failure messages!
describe('`Number.isInteger()` determines if a value is an integer', function(){
const isTrue = (what) => assert.equal(what, true);
const isFalse = (what) => assert.equal(what, fa... | JavaScript | 0.99947 | @@ -215,116 +215,8 @@
()%7B%0A
- const isTrue = (what) =%3E assert.equal(what, true);%0A const isFalse = (what) =%3E assert.equal(what, false);%0A
it
@@ -273,24 +273,24 @@
unction() %7B%0A
+
//// con
@@ -544,38 +544,38 @@
zero = 0;%0A
-isTrue
+assert
(Number.isIntege
@@ -689,38 +689,38 @@
0.00000;... |
18c6d8cb2ebeafef2efeb9c447e87733f3cd1095 | Fix hiding the blinking cursor on Firefox | tests/acceptance/setup.js | tests/acceptance/setup.js | import { remote } from 'webdriverio';
import Mugshot from 'mugshot';
import WebdriverIOAdapter from 'mugshot-webdriverio';
import path from 'path';
const { BROWSER } = process.env;
let mugshot;
before(function() {
this.timeout(10 * 1000);
const options = {
host: 'selenium',
desiredCapabilities: { browse... | JavaScript | 0 | @@ -606,16 +606,22 @@
r;%0A%7D);%0A%0A
+async
function
@@ -682,22 +682,256 @@
p') %7B%0A
-return
+// TODO: defocus the add todo field because the _blinking_ caret is causing%0A // the tests to be flaky; remove when Firefox 53 is released and leave it to%0A // caret-color: transparent.%0A return global.browser.... |
3048a7d2f00dc9897181eee1f650157c8dd49da1 | Update play button selector for Hype Machine test. | tests/connectors/hypem.js | tests/connectors/hypem.js | 'use strict';
module.exports = function(driver, connectorSpec) {
connectorSpec.shouldBehaveLikeMusicSite(driver, {
url: 'http://hypem.com/artist/Violet+Days+x+Win+and+Woo',
playButtonSelector: '.tools .playdiv'
});
};
| JavaScript | 0 | @@ -197,23 +197,19 @@
r: '
-.tools .playdiv
+#playerPlay
'%0A%09%7D
|
00d812479fe791c7b0921d72ae0eb108c35486a4 | Use proper placeholders for future functionalities | plugins/core-cloud/src/components/detailstab.js | plugins/core-cloud/src/components/detailstab.js | const {i18n, React} = Serverboards
import Details from '../containers/details'
class DetailsTab extends React.Component{
constructor(props){
super(props)
this.state={
tab: "details"
}
}
render(){
let Section = () => null
const section = this.state.tab
switch(section){
case "... | JavaScript | 0 | @@ -858,20 +858,19 @@
ion == %22
-edit
+ssh
%22 ? %22act
@@ -919,12 +919,27 @@
8n(%22
-Edit
+SSH Remote Terminal
%22)%7D%0A
@@ -1031,12 +1031,11 @@
ab:%22
-edit
+ssh
%22%7D)%7D
@@ -1151,20 +1151,30 @@
ion == %22
-logs
+remote_desktop
%22 ? %22act
@@ -1223,12 +1223,22 @@
8n(%22
-Logs
+Remote Desktop
%22)%7D%0A... |
7ac1c53a91ed0598ecf09c0f310ea599b2daa201 | Fix the compressor output connection | src/youmix.js | src/youmix.js | $(document).ready(function() {
var player = $("video.html5-main-video")[0];
if (!player) {
return;
}
function makeDistortionCurve(amount) {
var k = typeof amount === 'number' ? amount : 50,
samples = 44100,
curve = new Float32Array(samples),
deg = Math.PI / 180,
i = 0,
x;... | JavaScript | 0.000058 | @@ -1840,16 +1840,17 @@
= 0.25;%0A
+%0A
@@ -1874,32 +1874,34 @@
put%0A
-gainNode
+compressor
.connect(con
|
9d43907c856fc053f764543cbbd441719b55b5e5 | Include rescue list in rat | api/models/rat.js | api/models/rat.js | 'use strict'
let mongoose = require('mongoose')
mongoose.Promise = global.Promise
let Schema = mongoose.Schema
let RatSchema = new Schema({
archive: {
default: false,
type: Boolean
},
CMDRname: {
type: String
},
createdAt: {
type: Date
},
data: {
default: {},
type: Schema.T... | JavaScript | 0.000001 | @@ -1756,10 +1756,8 @@
-//
this
@@ -1770,17 +1770,16 @@
es.push(
-
rescue._
@@ -1780,17 +1780,16 @@
scue._id
-
)%0A
|
0e97b90e355cb69b7b9b59952ed335ffef38eb8d | add (probably)complete elements with [src] list | recliner.js | recliner.js | /**
* Recliner.js
* A super lightweight production ready jQuery plugin
* for lazy loading images and other dynamic content.
*
* Licensed under the MIT license.
* Copyright 2014 Kam Low
* http://sourcey.com
*/
;(function($) {
$.fn.recliner = function(options) {
var $w = $(window),
elements = this,... | JavaScript | 0 | @@ -1110,24 +1110,25 @@
ding');%0A
+%0A
if (type
@@ -1123,45 +1123,326 @@
-if (type == 'IMG' %7C%7C type == 'IFRAME'
+// elements with %5Bsrc%5D attribute: %3Caudio%3E, %3Cembed%3E, %3Ciframe%3E, %3Cimg%3E, %3Cinput%3E, %3Cscript%3E, %3Csource%3E, %3Ctrack%3E, %3Cvideo%3E (https://developer.mozilla.or... |
cf4dac1b49177ebb73fd59d35641ef00ee5a1a04 | Update paramour.js | Paramour/paramour/paramour.js | Paramour/paramour/paramour.js | CodeMirror.defineSimpleMode("paramour", {
// The start state contains the rules that are intially used
start: [
// Strings
{
regex: /(["'])(?:[^\\]|\\.)*?\1/,
token: "string"
},
{
regex: /(\B\/(?:[^\\]|\\.)+?\/)([imguy]*)/,
token: ["string", "variable-2"]
},
// Commen... | JavaScript | 0 | @@ -225,10 +225,8 @@
/(%5C
-B%5C
/(?:
@@ -235,17 +235,17 @@
%5C%5C%5D%7C%5C%5C.)
-+
+*
?%5C/)(%5Bim
|
aade0c7b62c53fbcada89610610d4d3e704964ef | Use put | src/decorator/validation.js | src/decorator/validation.js | import {OrmMetadata} from '../orm-metadata';
export function validation () {
return function (target) {
OrmMetadata.forTarget(target).addTo('validation', true);
}
}
| JavaScript | 0 | @@ -138,13 +138,11 @@
et).
-addTo
+put
('va
|
95910172775ef59ccefcbbde3d3d6028f3140528 | Add @fileoverview to control.js | src/directives/control.js | src/directives/control.js | goog.provide('ngeo.CreateControl');
goog.provide('ngeo.controlDirective');
goog.require('goog.asserts');
goog.require('ngeo');
/**
* @typedef {function(Element): ol.control.Control}
*/
ngeo.CreateControl;
/**
* This directive can be used to add a control to a DOM element of
* the HTML page. The user of the dir... | JavaScript | 0 | @@ -1,227 +1,35 @@
-goog.provide('ngeo.CreateControl');%0Agoog.provide('ngeo.controlDirective');%0A%0Agoog.require('goog.asserts');%0Agoog.require('ngeo');%0A%0A%0A/**%0A * @typedef %7Bfunction(Element): ol.control.Control%7D%0A */%0Angeo.CreateControl;%0A%0A%0A/**%0A * This
+/**%0A * @fileoverview Provides a
dir
@@ ... |
5edfb9eef5941eda4f9c5dbfc57e0a5c87228988 | use _.cancellable in component | src/directives/component.js | src/directives/component.js | var _ = require('../util')
var templateParser = require('../parsers/template')
module.exports = {
isLiteral: true,
/**
* Setup. Two possible usages:
*
* - static:
* v-component="comp"
*
* - dynamic:
* v-component="{{currentView}}"
*/
bind: function () {
if (!this.el.__vue__) {
... | JavaScript | 0.000196 | @@ -3051,24 +3051,8 @@
%0A
- var pendingCb =
thi
@@ -3066,16 +3066,30 @@
ingCb =
+_.cancellable(
function
@@ -3102,46 +3102,8 @@
) %7B%0A
- if (!pendingCb.invalidated) %7B%0A
@@ -3121,18 +3121,16 @@
Id = id%0A
-
se
@@ -3144,18 +3144,16 @@
= ctor%0A
-
cb
@@ -3155,33 +3155,26 @... |
f1f5e2fbf7876050fcac018cf08bdbe73752c613 | use will-change in animations to improve performance | src/element.visibility.js | src/element.visibility.js | import _ from "./utils";
import $Element from "./element";
import styleAccessor from "./styleaccessor";
/**
* Changing of element visibility support
* @module visibility
*/
var parseTimeValue = (value) => {
var endIndex = value.length - 1;
return value.lastIndexOf("ms") === endIndex - 1 || value.l... | JavaScript | 0 | @@ -1895,39 +1895,141 @@
-style.pointerEvents = %22
+// remove temporary properties%0A style.pointerEvents = %22auto%22;%0A style.willChange = %22auto
%22;%0A
@@ -3830,32 +3830,239 @@
%7D);%0A%0A
+ // use willChange to improve performa... |
b2d928c0c63f75f9da9531b538c41fb78d3f477a | Fix logic of mirobot-service which would close the connection before the last acknowledgement would have been received. | app/js/mirobot-service.js | app/js/mirobot-service.js | // Jean-Daniel Michaud - 2015
//
// This service offers API for mirobot communication back and forth
define(function () {
'use strict';
// First, the error codes
var eErrCode = {
CONN_CLOSED: 1
};
// We return this object to anything injecting our service
var Service = {};
// Keep all pending request... | JavaScript | 0 | @@ -2192,23 +2192,25 @@
no more
-message
+callbacks
to be p
@@ -2242,33 +2242,47 @@
ted%0A if (
-_msgQueue
+Object.keys(_callbacks)
.length ===
|
025aaa369b3f31ae294ec377fed77edd5fd0f215 | trim unused lasso.js regexes | src/languages/lasso.js | src/languages/lasso.js | /*
Language: Lasso
Author: Eric Knibbe <eric@lassosoft.com>
Description: Lasso is a language and server platform for database-driven web applications. This definition handles Lasso 9 syntax and LassoScript for Lasso 8.6 and earlier.
*/
function(hljs) {
var LASSO_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_.]*';
var LASSO_ANGL... | JavaScript | 0.000001 | @@ -285,18 +285,11 @@
Z_%5D%5B
-a-zA-Z0-9_
+%5C%5Cw
.%5D*'
@@ -2527,64 +2527,8 @@
= %5B%0A
- hljs.COMMENT(%0A '/%5C%5C*%5C%5C*!',%0A '%5C%5C*/'%0A ),%0A
@@ -3397,11 +3397,8 @@
%3E%7C%5C.
-%5C.?
)%5Cs*
@@ -4981,19 +4981,23 @@
'%5E#!
-.+
+', end:'
lasso9
-%5C%5Cb
+$
',%0A
|
a579048995e9b5fd913aba639232f6210bc6ccc4 | fix after dogstack-agents update | app/components/Navigation.js | app/components/Navigation.js | import React from 'react'
import { connect as connectFela } from 'react-fela'
import { not, pipe, map, values, isNil } from 'ramda'
import AppBar from 'material-ui/AppBar'
import Drawer from 'material-ui/Drawer'
import MenuItem from 'material-ui/MenuItem'
import Divider from 'material-ui/Divider'
import { withState, wi... | JavaScript | 0 | @@ -394,16 +394,68 @@
ter-dom'
+%0Aimport %7B LogOut %7D from 'dogstack-agents/components'
%0A%0Aimport
@@ -543,60 +543,8 @@
ntl'
-%0Aimport LogOut from '../../agents/containers/LogOut'
%0A%0Afu
|
126e36bd8dc17d92d3e02912359f04513b7f2d37 | Support for more than one extended class in same file. | src/lexers/PHPLexer.js | src/lexers/PHPLexer.js | define(function (require, exports, module) {
"use strict";
var Lexer = require("thirdparty/lexer");
/** @const {string} Placeholder for unnamed functions. */
var UNNAMED_PLACEHOLDER = "function";
/**
* Parse the source and extract the code structure.
* @param {string} source the sou... | JavaScript | 0 | @@ -780,32 +780,65 @@
abstract flag.%0A
+ var lastExtended = null;%0A
// helpe
@@ -3825,34 +3825,99 @@
-state.pop(
+lastExtended = results.pop();%0A state.push(%22extended%22
);%0A
@@ -5461,32 +5461,312 @@
break;%0A
+ case... |
cc174405dac4d565afb474ebe3fb580197338f50 | remove debugging | src/lib/LazyBuilder.js | src/lib/LazyBuilder.js | import Immutable from 'immutable';
import Promise, {coroutine} from 'bluebird';
import PairTable from 'pair-table';
import {isString, isPlainObject} from 'lodash';
import path from 'path';
import getChanges from './getChanges';
const privates = new WeakMap();
const build = coroutine(function* _build(input) {
const ... | JavaScript | 0.000065 | @@ -1629,244 +1629,8 @@
);%0A%0A
- // debug%0A // console.log('%5Cn%5Cnfiles to build');%0A // for (const %5Bfile, contents%5D of filesToBuild.entries()) %7B%0A // console.log(' ' + file, contents ? JSON.stringify(String(contents)) : contents);%0A // %7D%0A // console.log('%5Cn%5Cn');%0A%0A
//
@@ -6537,97 ... |
5e5d9ba7acee8f8c9ce0fc407b0c4c57e1ae1bee | Corrige une typo dans la nationalité (#1700) | src/lib/Nationality.js | src/lib/Nationality.js | let ZONE_LABEL = {
fr: "française",
ue: "UE",
autre: "hors UE",
}
let EEE_COUNTRY_CODES = [
"AT",
"BE",
"BG",
"CY",
"CZ",
"DE",
"DK",
"EE",
"ES",
"FI",
"FR",
"GR",
"HR",
"HU",
"IE",
"IS",
"IT",
"LI",
"LU",
"LV",
"MT",
"NL",
"NO",
"PL",
"PT",
"RO",
"SE",
"SI... | JavaScript | 0.000107 | @@ -492,16 +492,17 @@
Fran%C3%A7ais
+e
%22%0A ca
|
f6d41fc87dd92474e2a2006a5139b6863a88b1e4 | Add auth.register-confirm state | app/app.module.js | app/app.module.js | // Written by Joshua Paul A. Chan
(function() {
"use strict";
// Import variables if present (from env.js) (thanks @jvandemo)
var env = {};
if (window) { env = window.__env; }
// Initialize app
angular.module('wr', ['ui.router', 'textAngular', 'angularModalService', 'wr.controllers', 'wr.services', 'wr.directives', '... | JavaScript | 0.000001 | @@ -1292,32 +1292,215 @@
/%3E%22,%0A %7D)%0A
+ .state('auth.register-confirm', %7B%0A url: %22/register-confirm%22,%0A templateUrl: %22client/app/components/registerConfirm/registerConfirm.view.html%22,%0A %7D)%0A
.state('
|
435470b44d03ef670e10bbf2ef01a9e3a3000461 | Remove default parameter value from RuleFinder | src/lib/rule-finder.js | src/lib/rule-finder.js | const path = require('path');
const eslint = require('eslint');
const isAbsolute = require('path-is-absolute');
const difference = require('./array-diff');
const getSortedRules = require('./sort-rules');
function _getConfigFile(specifiedFile) {
if (specifiedFile) {
if (isAbsolute(specifiedFile)) {
return ... | JavaScript | 0 | @@ -2326,29 +2326,24 @@
ile, options
- = %7B%7D
) %7B%0A const
|
275f7df1fc1c69f33362b5ff114d645013fe1584 | Add pageChange event for tracking virtual page changes | app/public/sa-tracking.js | app/public/sa-tracking.js | 'use strict';
var events = [];
var requestInterval = 5000;
window.addEventListener('click', function(e) {
e = event || window.event;
events.push(processEvent(e));
});
var processEvent = function(e) {
// Event attributes
var eventProps = ['type', 'timeStamp'];
// Event target attributes
var targetP... | JavaScript | 0 | @@ -1844,80 +1844,241 @@
-console.log('from %25s to %25s', previous.originalPath, current.originalPath
+var pageChange = %7B%7D;%0A%0A pageChange.from = previous.originalPath;%0A pageChange.to = current.originalPath;%0A pageChange.timeStamp = new Date().getTime();%0A%0... |
2dfbcd853df7d83a295fbcf3a3166c62cb3e1e6a | Validate localStorage in server | src/extra/auth/reducer.js | src/extra/auth/reducer.js | import {
LOGIN_REQUEST,
LOGIN_SUCCESS,
LOGIN_FAILURE,
} from './actions';
function reducer(state = {
token: localStorage.getItem('token') || '',
}, action) {
switch (action.type) {
case LOGIN_REQUEST:
return Object.assign({}, state, {
creds: action.payload,
});
case LOGIN_SUCCESS:... | JavaScript | 0.000004 | @@ -78,43 +78,97 @@
';%0A%0A
-function reducer(state = %7B%0A
+const isNode = typeof localStorage === 'undefined';%0Alet token = '';%0A%0Aif (!isNode)
token
-:
+ =
loc
@@ -199,18 +199,52 @@
') %7C%7C ''
-,%0A
+;%0A%0Afunction reducer(state = %7B token
%7D, actio
|
356f2ed7a4a23421cce3aebd1811e458054aa69f | add task list update mutation and action | app/renderer/src/store.js | app/renderer/src/store.js | import Vue from 'vue'
import Vuex from 'vuex'
import io from 'socket.io-client'
Vue.use(Vuex)
const state = {
is_connected: false,
port: null,
current_protocol_name: "No File Selected",
errors: "No errors"
}
const mutations = {
UPDATE_ROBOT_CONNECTION (state, payload) {
state.is_connecte... | JavaScript | 0.000001 | @@ -216,16 +216,31 @@
errors%22
+,%0A tasks: %5B%5D
%0A%7D%0A%0A%0Acon
@@ -543,16 +543,97 @@
.errors%0A
+ %7D,%0A UPDATE_TASK_LIST (state, payload) %7B%0A state.tasks = payload.tasks%0A
%7D%0A%7D%0A
@@ -2292,24 +2292,391 @@
%0A %7D)%0A
+ %7D,%0A updateTasks (%7Bcommit%7D, target) %7... |
3f818d6f3b29bd19a10cd48b6219a7a8b0767394 | Add token event listeners in text | app/js/arethusa.text/text.js | app/js/arethusa.text/text.js | 'use strict';
angular.module('arethusa.text').service('text', [
'state',
'configurator',
function (state, configurator) {
var self = this;
function configure() {
configurator.getConfAndDelegate('text', self);
self.hideArtificialTokens = false;
}
configure();
function selectRealT... | JavaScript | 0.000014 | @@ -306,219 +306,862 @@
ion
-selectRealTokens() %7B%0A return arethusaUtil.inject(%7B%7D, state.tokens, function(memo, id, token) %7B%0A if (!token.artificial) %7B%0A memo%5Bid%5D =
+addRealToken(container, id, token) %7B%0A if (!token.artificial) %7B%0A container%5Bid%5D = token;%0A ... |
8df7bcc622f5cc32ddbc6954d5da7564de34c7d2 | Update style templates | app/feed/types.js | app/feed/types.js | let types = {
'photo': {
title: 'PHOTO',
colorDark: 'black',
colorLight: 'white',
},
'question': {
title: 'QUESTION',
colorDark: '#00301B',
colorLight: '#00AA4E',
},
'deadline': {
title: 'DEADLINE',
colorDark: '#A91400',
colorLight: '#FF5505',
},
'update': {
title: ... | JavaScript | 0 | @@ -89,21 +89,39 @@
white',%0A
+ reaction: '%F0%9F%93%B7'%0A
%7D,%0A
-
'quest
@@ -204,16 +204,34 @@
0AA4E',%0A
+ reaction: '%F0%9F%A4%93'%0A
%7D,%0A '
@@ -319,16 +319,34 @@
F5505',%0A
+ reaction: '%F0%9F%98%B1'%0A
%7D,%0A '
@@ -403,16 +403,16 @@
32269',%0A
-
colo
@@ -430,16 +430,34 @@
7... |
2b26198fd2868fe64edb4cc3372e39aac65be70a | update application to use updated WebPush implementation (#146) | app/js/lib/foxbox/webpush.js | app/js/lib/foxbox/webpush.js | 'use strict';
import EventDispatcher from './common/event-dispatcher';
// Private members
const p = Object.freeze({
// Properties,
api: Symbol('api'),
settings: Symbol('settings'),
// Methods:
listenForMessages: Symbol('listenForMessages'),
});
export default class WebPush extends EventDispatcher {
cons... | JavaScript | 0 | @@ -1134,16 +1134,93 @@
) : '';%0A
+ const auth = subscription.getKey ? subscription.getKey('auth') : '';%0A
@@ -1352,16 +1352,115 @@
(key)));
+%0A settings.pushAuth = btoa(String.fromCharCode.apply(null,%0A new Uint8Array(auth)));
%0A%0A
@@ -1864,16 +1864,59 @@
dpoint,%0A
+ ... |
99be04da487e5f7a840fec40f9740e2b47a344cf | Revert "fix removeChild error" | app/routes/application.js | app/routes/application.js | import Ember from 'ember';
import AjaxPromise from '../utils/ajax-promise';
import config from '../config/environment';
import preloadDataMixin from '../mixins/preload_data';
const { getOwner } = Ember;
export default Ember.Route.extend(preloadDataMixin, {
cordova: Ember.inject.service(),
i18n: Ember.inject.servic... | JavaScript | 0 | @@ -4498,102 +4498,8 @@
if
-(reason.name === %22NotFoundError%22 && reason.code === 8) %7B%0A return false;%0A %7Delse if
(sta
|
ec16ab7b7eed0bdf8e9d583a24127665732b048e | Use bind for a concise invocation of generateCouchdbResponse(). | lib/unexpectedMockCouchdb.js | lib/unexpectedMockCouchdb.js | var BufferedStream = require('bufferedstream');
var expect = require('unexpected');
var http = require('http');
var mockCouch = require('mock-couch');
var url = require('url');
function generateCouchdbResponse(databases, request) {
var responseObject = null;
function createMockReq(requestProperties) {
... | JavaScript | 0 | @@ -2093,136 +2093,51 @@
se:
-function (requestProperties) %7B%0A return generateCouchdbResponse(couchdb, requestProperties);%0A %7D
+generateCouchdbResponse.bind(null, couchdb)
%0A
|
b9abcf6ffff61c98a1e40b00607e51d33c38e303 | Remove unnecessary destructuring | app/routes/team/canvas.js | app/routes/team/canvas.js | import Ember from 'ember';
import preload from 'canvas-web/lib/preload';
export default Ember.Route.extend({
model({ id }) {
return this.get('store').findRecord('canvas', id,
{ adapterOptions: { team: this.modelFor('team') } });
},
afterModel() {
if (this.modelFor('team').get('isInTeam')) {
... | JavaScript | 0.000484 | @@ -413,18 +413,14 @@
ken(
-%7B
canvas
- %7D
) %7B%0A
|
beb4d3bd70c8443c545d40955c51152f7b3ac89c | Change content type check to check for 'application/json' not 'json' | lib/utils/responseHandler.js | lib/utils/responseHandler.js | var Promise = require("bluebird");
module.exports = (response, body) => {
var outResponse = {
statusCode: response.statusCode,
headers: response.headers,
body: body
};
if (response.statusCode != 200) {
var errorResponse = outResponse;
if (/\bjson\b/.test(response.headers['content-type'])) {
... | JavaScript | 0.000541 | @@ -263,16 +263,29 @@
if (/%5Cb
+application%5C/
json%5Cb/.
|
860a082bb1b024d1e76f081957b08dd215a72147 | Troubleshoot script for displaying getting the counts of tickets assigned to each user. | app/scripts/getTickets.js | app/scripts/getTickets.js | /* global SW:true */
$(document).ready(function(){
'use strict';
console.log( 'Doing SW things!' );
var card = new SW.Card();
var helpdesk = card.services('helpdesk');
helpdesk
.request('tickets')
.then( function(data){
console.log( 'got data!' );
var ticketCount = {};
$.each(data... | JavaScript | 0 | @@ -172,16 +172,44 @@
desk');%0A
+ var assignmentCount = %7B%7D;%0A
helpde
@@ -300,36 +300,8 @@
);%0A
- var ticketCount = %7B%7D;%0A
@@ -369,21 +369,34 @@
le.log(
-index
+ticket.assignee.id
);%0A
@@ -403,21 +403,25 @@
if (
-ticke
+assignmen
tCount%5Bt
@@ -443,37 +443,41 @@
id%5D)%7B%0A ... |
cedba3c6b47495115ec845efb3e9e486907a53e9 | Fix calc | lib/views/permission-view.js | lib/views/permission-view.js | 'use babel';
import { $, View, TextEditorView } from 'atom-space-pen-views';
import { CompositeDisposable } from 'atom';
class PermissionView extends View {
static content() {
return this.div({
class: 'permission-view remote-ftp',
}, () => {
this.div({
class: 'permissions-wrapper',
... | JavaScript | 0.000309 | @@ -5503,21 +5503,36 @@
perms =
-right
+params.rights%5Bright%5D
.split('
|
24e2c29df3e7adb9126401863803939be2ed1a21 | fix can view all articles acceptance test | tests/acceptance/can-view-all-articles-test.js | tests/acceptance/can-view-all-articles-test.js | import Ember from 'ember';
import { test } from 'qunit';
import moduleForAcceptance from 'adlet/tests/helpers/module-for-acceptance';
let s3Mock = Ember.Service.extend({
listAll(){
return [
{Key: "Article1", Body: [77,121,32,83,101,120,121,32,66,101,97,99,104,32,66,111,100,121,33,33,33,33]},
{Key: "Artic... | JavaScript | 0 | @@ -808,38 +808,37 @@
rt.equal(body.in
-cludes
+dexOf
(%22Article1%22), tr
@@ -833,16 +833,23 @@
ticle1%22)
+ !== -1
, true,
@@ -914,14 +914,13 @@
y.in
-cludes
+dexOf
(%22Ar
@@ -927,16 +927,23 @@
ticle2%22)
+ !== -1
, true,
|
bac79c1a18a369c81a560de29d790a671f3dc836 | add support for chart tooltip | app/public/js/chart_donut.js | app/public/js/chart_donut.js |
var Donut = function(args) {
var element = args.element;
var dataset = args.dataset;
var width = args.width || 100;
var height = args.height || 100;
var radius = Math.min(width, height) / 2;
var colors = args.colors;
if (typeof colors == 'undefined') {
var color = d3.scale.category20();
} else {
... | JavaScript | 0 | @@ -223,16 +223,42 @@
.colors;
+%0A var title = args.title;
%0A%0A if (
@@ -715,24 +715,103 @@
2 + %22)%22);%0A%0A
+ if (typeof title != 'undefined') %7B%0A svg.append(%22title%22).text(title);%0A %7D%0A%0A
var path =
|
e9f68c5dd05e4bd52909882ae21dcfb959935d61 | remove Crag planet. only need 1 planet per faction | app/js/objects.js | app/js/objects.js | var Planet = require('./classes/Planet');
var BattleGroup = require('./classes/BattleGroup');
var Tatooine = new Planet({
id: "Tatooine",
type: "Planet",
radius: 100,
color: 0x000000,
texture: 'assets/mars.jpg',
homePosition: new THREE.Vector3(-300, 100, 0),
autoRotationSpeed: -0.005,
videoId: 'video',... | JavaScript | 0.000151 | @@ -607,264 +607,8 @@
);%0A%0A
-%0Avar Crag = new Planet(%7B%0A id: %22Crag%22,%0A type: %22Planet%22,%0A radius: 50,%0A color: 0x000000,%0A texture: 'assets/planet_crag.jpg',%0A homePosition: new THREE.Vector3(0, 200, 0),%0A autoRotationSpeed: -0.005,%0A videoId: 'video',%0A moons: %7B%0A count: 1%0A %7D... |
194719649978a99c73b1801e1d6c7abae7969dc2 | Set tracking/crash reporting to true by default | app/lib/config.js | app/lib/config.js | import { app, remote, ipcRenderer } from 'electron'
import fs from 'fs'
import { memoize } from 'cerebro-tools'
import { trackEvent } from './trackEvent'
import loadThemes from './loadThemes'
const electronApp = remote ? remote.app : app
// initiate portable mode
// set data directory to ./userdata
process.argv.forEa... | JavaScript | 0.000001 | @@ -1058,28 +1058,27 @@
ingEnabled:
-fals
+tru
e,%0A crash
@@ -1095,20 +1095,19 @@
nabled:
-fals
+tru
e,%0A o
|
e27995027a8ae5bfa5c68de32b49e11cd9b6f4c9 | Add ISO-639-2 code to Albanian locale | src/locale/sq/index.js | src/locale/sq/index.js | import formatDistance from './_lib/formatDistance/index'
import formatLong from './_lib/formatLong/index'
import formatRelative from './_lib/formatRelative/index'
import localize from './_lib/localize/index'
import match from './_lib/match/index'
/**
* @type {Locale}
* @category Locales
* @summary Albanian locale.
... | JavaScript | 0.999226 | @@ -332,16 +332,34 @@
e Shqip%0A
+ * @iso-639-2 sqi%0A
* @auth
@@ -665,12 +665,14 @@
e: 1
+,
%0A %7D
+,
%0A%7D%0A%0A
|
c12baf05a552d6f49f2b4effa7ec9e250779cce7 | Fix jscs warning. | app/lib/helper.js | app/lib/helper.js | module.exports = (function () {
'use strict';
/**
* Return lodash extended with custom methods.
*/
var lodashExtended = function () {
var _ = require('lodash');
/**
* Return an UUID
*/
function uuid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
... | JavaScript | 0 | @@ -496,17 +496,16 @@
);%0A %7D
-;
%0A%0A /*
|
c3ae981e9d825d2244a50a131ba175ae005564ba | Change position of all the food | games/hungrydog.js | games/hungrydog.js | var puppy = {
x: 550,
y: 490,
alive: true,
won: false,
canMove: true,
};
var bone1 = {
x: 560,
y: 80,
alive: true,
};
var bone2 = {
x: 560,
y: 200,
alive: true,
};
var bacon = {
x: 560,
y: 320,
alive: true,
};
document.getElementById("up").onclick = function() {move(38);};
document.getEl... | JavaScript | 0.000106 | @@ -1697,16 +1697,18 @@
%7D%0A %7D%0A%7D
+%0A%7D
%0A%0Afuncti
@@ -1967,25 +1967,8 @@
2)%7B%0A
- // move down%0A
@@ -2106,26 +2106,8 @@
3)%7B%0A
- // move right%0A
@@ -2219,16 +2219,17 @@
%7D%0A
+
%7Delse%7B%0A
@@ -2228,24 +2228,8 @@
se%7B%0A
- //move left%0A
|
0e10e0317455cd9f16c7386e9043bf594fb00827 | Change injectHTML, add getOptions, add done | core/src/bg/injecthtml.js | core/src/bg/injecthtml.js | // RegExp test cases here: http://regexr.com/3gqin
function injectHTML() {
// select everything in the body except <script>, <style>, <a>, <code>, <pre>
const elements = document.querySelectorAll('body *:not(script):not(style):not(a):not(code):not(pre)');
const userLowerLimit = 10;
const userUpperLimit = 100;... | JavaScript | 0.000002 | @@ -65,16 +65,23 @@
ectHTML(
+options
) %7B%0A //
@@ -261,25 +261,24 @@
pre)');%0A
-%0A
const
userLowe
@@ -273,58 +273,134 @@
nst
-userLowerLimit = 10;%0A const userUpperLimit = 100;
+%7B%0A lowerRegexLimit, upperRegexLimit,%0A %7D = options;%0A%0A // generate regex using with custom upper and lower ch... |
eaff275ec10c30e06ca0e31cd82ee91060aae23d | hide swiper if events count is 0 | app/static/script/myjs.js | app/static/script/myjs.js | // Use '[[' and ']]' tags since Django using Mustache's default template tags.
Mustache.tags = ['[[', ']]'];
$(function(){
var swiper = new Swiper('.swiper-container', {
loop : true,
pagination: '.swiper-pagination',
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
slidesPerV... | JavaScript | 0.998986 | @@ -117,16 +117,96 @@
tion()%7B%0A
+ var count = $('.swiper-container .swiper-slide').length;%0A if (count %3E 0) %7B%0A
var sw
@@ -250,16 +250,18 @@
, %7B%0A
+
loop : t
@@ -257,32 +257,34 @@
loop : true,%0A
+
pagination:
@@ -309,16 +309,18 @@
n',%0A
+
nextButt
@@ -350,16 +350,18 @@
... |
55a19445c3799cbb0681c1c67ad498d11aff5b8c | add handling the hash in the url | lessons/misc/webdev-intro/app/slideshow.js | lessons/misc/webdev-intro/app/slideshow.js | 'use strict'
var contents = '';
console.log('this is a slideshow');
console.log(marked('# test\nof *marked*'));
function splitContents(text) {
// split the slides apart
var slides = text.split('\n#');
// handle the special cases of starting with a newline or whitespace
if (text.startsWith('\n'))
... | JavaScript | 0.000012 | @@ -1860,24 +1860,293 @@
ontentElm);%0A
+ // This sets the hash in the url%0A var h = location.hash;%0A if (h === '')%0A selectSlide(cElm.children%5B0%5D);%0A else %7B%0A let slideIndex = parseInt(h.slice(1)) - 1;%0A selectSlide(cElm.children%5BslideIndex%5D... |
91e63e57862249383d88f1374024d255a888a6f1 | Make comments more clear | src/main_unresolved.js | src/main_unresolved.js | define([
"./main",
"./item/lookup",
"./item/get_resolved",
"./util/json/merge"
], function( Cldr, itemLookup, itemGetResolved, jsonMerge ) {
var getSuper;
Cldr._raw = {};
// Load resolved or unresolved cldr data
// @json [JSON]
//
// Overwrite Cldr.load().
Cldr.load = function( json ) {
if ( typeof json... | JavaScript | 0.000002 | @@ -539,85 +539,159 @@
%09//
-Simplify locale using languageId (there are no other resource bundles)
+1: use languageId as locale on item lookup for simplification purposes, because no other extended subtag is used anyway on bundle parent lookup.
%0A%09%09//
-1
+2
: du
@@ -703,19 +703,27 @@
init(),
-get
+this me... |
536203b9121d6cac460fcee5b2bafbef27d80b63 | Update current-user service to findRecord by id | app/services/current-user.js | app/services/current-user.js | import Service, { inject as service } from '@ember/service';
import { isEmpty } from '@ember/utils';
import RSVP from 'rsvp';
import Sentry from '../sentry';
export default Service.extend({
session: service(),
store: service(),
load() {
let username = this.get('session.data.authenticated.profile.sub');
... | JavaScript | 0 | @@ -246,24 +246,18 @@
let
-username
+id
= this.
@@ -320,24 +320,18 @@
isEmpty(
-username
+id
)) %7B%0A
@@ -355,61 +355,45 @@
ore.
-query('user', %7B%0A 'username': username,
+findRecord(%0A 'user', id
%0A
-%7D
).th
@@ -399,17 +399,16 @@
hen(user
-s
=%3E %7B%0A
@@ -428,28 +428,8 ... |
3d099f2003199e201bbf1ad70673e5b148c2e01e | fix validator of unit payment order item | src/purchasing/unit-payment-order-item-validator.js | src/purchasing/unit-payment-order-item-validator.js | require("should");
var validateUnitReceiptNote = require('./unit-receipt-note-validator');
var validateProduct = require('../master/product-validator');
var validateUom = require('../master/uom-validator');
module.exports = function (data) {
data.should.have.property('unitReceiptNoteId');
data.unitReceipt... | JavaScript | 0 | @@ -487,16 +487,27 @@
ata.unit
+ReceiptNote
); %0A %0A
|
210e6ab8a7b3071f46abe75ca1de7ecfd8b82fb8 | fix jshint warning | corejs/core/webstorage.js | corejs/core/webstorage.js | define([ "core/assert", "core/config" ], function (ASSERT, CONFIG) {
"use strict";
var MStorage = function (collectionname) {
var storage = {};
var load = function (key, callback) {
setTimeout(function () {
var data = storage[key];
if( data ) {
callback(null, data);
}
else {
... | JavaScript | 0.000001 | @@ -1681,23 +1681,16 @@
sion%22 ?
-window.
sessionS
@@ -1702,15 +1702,8 @@
e :
-window.
loca
|
19fec4fee9bf92c2e576f132d7ffe69c59826d42 | Affinity names are internationalized | src/main/js/utils/dbxBuilder.js | src/main/js/utils/dbxBuilder.js | import abilityMessages from '../i18n/ability';
import roleMessages from '../i18n/role';
import unitNameMessages from '../i18n/unitName';
export const transformSponsorAffinityGroupAvailabilitiesJson = (json, intl) => {
var result = [];
var entry;
var mapped;
for (var i=0; i<json.length; i++) {
ent... | JavaScript | 0.997631 | @@ -88,24 +88,24 @@
%0Aimport
-unitName
+affinity
Messages
@@ -123,16 +123,16 @@
18n/
-unitName
+affinity
';%0A%0A
@@ -390,16 +390,22 @@
tyGroups
+, intl
);%0A
@@ -463,23 +463,17 @@
sult;%0A%7D%0A
-export
+%0A
const tr
@@ -663,16 +663,52 @@
-value :
+label : intl.formatMessage(affinityMessages%5B
... |
47d5f23fee02cfe7b7e28b9824c0694767078d1a | Remove chai truncation to read error messages on spec failure | app/templates/_helpers.js | app/templates/_helpers.js | var chai = require('chai');
var sinonChai = require('sinon-chai');
var sdk = require('flowxo-sdk');
chai.use(sinonChai);
chai.use(sdk.Chai);
chai.should();
chai.config.includeStack = true;
global.expect = chai.expect;
global.AssertionError = chai.AssertionError;
global.Assertion = chai.Assertion;
global.assert = cha... | JavaScript | 0 | @@ -150,16 +150,190 @@
hould();
+%0A%0A// Don't truncate assertion display:%0A// allows us to view the full error message%0A// when a spec fails%0Achai.config.truncateThreshold = 0;%0A%0A// Show error stack on failed spec
%0Achai.co
|
e83f04b286adcf8068d124bbf83c1beb93911fed | Fix lint | packages/pack/cli/initProtonApp.js | packages/pack/cli/initProtonApp.js | const path = require('path');
const fs = require('fs').promises;
const execa = require('execa');
const chalk = require('chalk');
const dedent = require('dedent');
const { success } = require('./log');
const bash = (cli) => execa.shell(cli, { shell: '/bin/bash' });
const TEMPLATE = path.resolve(__dirname, '..', 'templ... | JavaScript | 0.000032 | @@ -191,24 +191,25 @@
e('./log');%0A
+%0A
const bash =
|
9c4840ff0669996a643747f768f38ec776f0cd34 | Update initialState | src/client/reducers/initialState.js | src/client/reducers/initialState.js | export default {
status: {
isScrolling: false, // app scroll
currentPage: "home", // currentPage
isHeaderVisible: false, // if currentPage == "content"
statusMessage: null, // reveal status to user
providers: ["4chan", "reddit"],
provider: "4chan",
boardID: "g",
threadID: null,
},
boardList: { ... | JavaScript | 0.000001 | @@ -157,22 +157,21 @@
tent%22%0A%09%09
-status
+alert
Message:
@@ -203,17 +203,16 @@
to user%0A
-%0A
%09%09provid
@@ -273,11 +273,12 @@
ID:
-%22g%22
+null
,%0A%09%09
@@ -461,53 +461,8 @@
: %7B%0A
-%09%09requestWhenOlderThan: 1200, // in seconds%0A
%09%09re
@@ -538,16 +538,36 @@
false,%0A
+%09%09searchWord: ... |
fe8def6a2602b30c9d4a24cba36a28d1406f08a1 | Enable InlineWrappers. | packages/scientist/JATSImporter.js | packages/scientist/JATSImporter.js | 'use strict';
var isString = require('lodash/isString');
var isArray = require('lodash/isArray');
var last = require('lodash/last');
var DOMImporter = require('substance/model/DOMImporter');
var XMLImporter = require('substance/model/XMLImporter');
var DefaultDOMElement = require('substance/ui/DefaultDOMElement');
var... | JavaScript | 0 | @@ -483,24 +483,61 @@
r(config) %7B%0A
+ config.enableInlineWrapper = true;%0A
JATSImport
|
1e010a992cc5ab5874a2cdcbbf1687bc81146fec | Use Promise instead of callback | src/modules/florins.js | src/modules/florins.js | import assign from 'object-assign'
import Promise from 'bluebird'
const debug = require('debug')('wololobot:florins')
export default function (opts) {
opts = assign({
delay: 4000
, gain: 5 // 5 florins per 10 minutes
, subGain: 10 // 10 florins per 10 minutes
, gainInterval: 10 * 60 * 1000 // 10 minutes
... | JavaScript | 0 | @@ -405,18 +405,23 @@
actions'
-,
+).then(
exists =
|
0f2718149b4394665b6ecaf9dc0c717936e8a0fd | Add asset thumbnail to Assets table | app/views/Assets/index.js | app/views/Assets/index.js | import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { formatDate, formatBytes } from '../../utils/helpers';
import DeleteIcon from '../../components/DeleteIcon';
import Page from '../../containers/Page';
import Table from '../../components/Table';
import Button from '../../c... | JavaScript | 0 | @@ -853,16 +853,244 @@
ps._id,%0A
+ image: %7B%0A sortBy: false,%0A component: %3Ca href=%7B%60/public/assets/$%7Bprops.filename%7D%60%7D rel=%22noopener noreferrer%22 target=%22_blank%22%3E%3Cimg src=%7B%60/public/assets/$%7Bprops.filename%7D%60%7D alt=%7Bprops.filename%7D /%3E%3C/a%3E,%0A %7D... |
d3834bb200c9f1b1c6ae64e370985029e83cc7e6 | Fix broken modal close | app/assets/javascripts/modal.js | app/assets/javascripts/modal.js | $('#overlay, .modal-close, .navigation-overlay').click(function() {
$('#overlay, #modal').fadeOut('fast');
});
$('.navigation-modal-open').click(function() {
$('.navigation-overlay, .navigation-modal').fadeTo('slow', 1)
});
| JavaScript | 0.00005 | @@ -78,24 +78,64 @@
rlay, #modal
+, .navigation-overlay, .navigation-modal
').fadeOut('
@@ -233,24 +233,39 @@
gation-modal
+, i.icon-remove
').fadeTo('s
|
18262016f553ef53c91495d91dbe645d90a423ff | Fix for repeating years under premium calculator | app/assets/javascripts/plans.js | app/assets/javascripts/plans.js | $(document).ready(function() {
$('#plan-years').prop('disabled', true);
$('#plans').prop('disabled', true);
$('#carriers').change(function(e) {
$('#plans').prop('disabled', true);
$('#plan-years').prop('disabled', false);
var id = $('#carriers').val();
$.getJSON('/carriers/'+ id +'/plan_years... | JavaScript | 0 | @@ -230,24 +230,79 @@
d', false);%0A
+ $('#plans').empty();%0A $('#plan-years').empty();%0A
var id =
|
0b21266af15b88090e192d8bf1d66c3809bef690 | change bullshit index | app/components/VotingButtons.js | app/components/VotingButtons.js | import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import Button from 'muicss/lib/react/button';
import Container from 'muicss/lib/react/container';
import Dropdown from 'muicss/lib/react/dropdown';
import DropdownItem from 'muicss/lib/react/dropdown-item';
import { getGoogleT... | JavaScript | 0.000001 | @@ -1296,17 +1296,17 @@
Creator(
-0
+1
)%7D%0A
@@ -1695,33 +1695,33 @@
.onClickCreator(
-1
+0
)%7D%0A /
|
24eddfc7954f24b78b665b33beac55d420c23ccd | fix slider layout in form | app/components/gui/iftttForm.js | app/components/gui/iftttForm.js | "use strict";
var React = require('react');
var Col = require('react-bootstrap').Col;
var Row = require('react-bootstrap').Row;
var Modal = require('react-bootstrap').Modal;
var Input = require('react-bootstrap').Input;
var Button = require('react-bootstrap').Button;
var LinkedStateMixin = require('react-addons-link... | JavaScript | 0 | @@ -3678,16 +3678,31 @@
%3CSwitch
+ bsSize=%22small%22
labelTe
@@ -3716,21 +3716,8 @@
ble%22
- size=%22small%22
%0A
|
72f1271c33ef8a6a21e0b1fa99ae0b419cdecc9d | Remove particle debug logging. | src/graphics/particles.js | src/graphics/particles.js | var Particles = {
emit: function (usrConfig) {
var config = {
srcX: 0,
srcY: 0,
minAmount: 10,
maxAmount: 20,
color: '#ff0000',
lifetime: 60,
minSize: 2,
maxSize: 5
};
for (var prop in usrConfig)... | JavaScript | 0 | @@ -843,60 +843,8 @@
le);
-%0A%0A console.log('add particle', particle);
%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.