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 |
|---|---|---|---|---|---|---|---|
adda1e261b87633559d9165e13dcafbd6f709ac7 | correct error with submission hooks. | src/services/submissions/hooks/index.js | src/services/submissions/hooks/index.js | 'use strict';
const globalHooks = require('../../../hooks');
const hooks = require('feathers-hooks');
const auth = require('feathers-authentication').hooks;
exports.before = {
all: [
// auth.verifyToken(),
// auth.populateUser(),
// auth.restrictToAuthenticated()
],
find: [],
get: [],
create: []... | JavaScript | 0 | @@ -179,27 +179,24 @@
all: %5B%0A
- //
auth.verify
@@ -203,27 +203,24 @@
Token(),%0A
- //
auth.popula
@@ -236,11 +236,8 @@
%0A
- //
aut
|
fe899e38f4f19ba914f568af0232d52fbfda3003 | add S3 copy object example | javascriptv3/example_code/s3/src/s3_copyobject.js | javascriptv3/example_code/s3/src/s3_copyobject.js | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3),
which is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Developer Gui... | JavaScript | 0 | @@ -586,13 +586,60 @@
:%0A-
-BUCKE
+DESTINATION_BUCKET_NAME%0A- SOURCE_BUCKET_NAME%0A- OBJEC
T_NA
@@ -976,95 +976,82 @@
t: %22
-brmurbucket%22,%0A CopySource: %22/apigatewaystack-mybucket160f8132-1dysc21xykp8d/index.js
+DESTINATION_BUCKET_NAME%22,%0A CopySource: %22/SOURCE_BUCKET_NAME/OBJECT_NAME
%22,%0A
@@... |
b805b78b03d58efb353c725390cef10562652021 | Update checks | Source/Core/FeatureDetection.js | Source/Core/FeatureDetection.js | /*global define*/
define([
'./defaultValue',
'./defined',
'./Fullscreen'
], function(
defaultValue,
defined,
Fullscreen) {
'use strict';
var theNavigator;
if (typeof navigator !== 'undefined') {
theNavigator = navigator;
} else {
theNa... | JavaScript | 0.000001 | @@ -742,49 +742,78 @@
-if (/Google Inc/.test(theNavigator.vendor
+// Edge contains Chrome in the user agent too%0A if (!isEdge(
)) %7B
@@ -1394,24 +1394,32 @@
Chrome
+and Edge
contain
-s
Safari
@@ -1470,16 +1470,29 @@
ome() &&
+ !isEdge() &&
(/ Safa
|
9daee0f6354a660f6ec6e33aeb9669a11b8a7c89 | add ts and tsx to extension config | .storybook/main.js | .storybook/main.js | const path = require("path");
const glob = require("glob");
const projectRoot = path.resolve(__dirname, "../");
const ignoreTests = process.env.IGNORE_TESTS === "true";
const isChromatic = !ignoreTests;
const getStories = () =>
glob.sync(`${projectRoot}/src/**/*.stories.@(js|mdx)`, {
...(ignoreTests && {
i... | JavaScript | 0 | @@ -1027,16 +1027,31 @@
: %5B%22.js%22
+, %22.tsx%22, %22.ts%22
%5D,%0A %7D
|
678c011c7125fb12e22d86678cc0d05794db8135 | Add default response to search | controllers/people/index.js | controllers/people/index.js | 'use strict';
var _ = require('underscore'),
ccb = require('../../lib/ccb'),
peopleModel = require('../../models/people'),
Promise = require('bluebird');
module.exports = function (router) {
router.get('/', function (req, res) {
if(process.env.NODE_ENV === 'production' && req.query.token !== p... | JavaScript | 0.000001 | @@ -39,20 +39,17 @@
core'),%0A
-
+%09
ccb = re
@@ -72,20 +72,17 @@
/ccb'),%0A
-
+%09
peopleMo
@@ -119,20 +119,17 @@
ople'),%0A
-
+%09
Promise
@@ -189,20 +189,17 @@
uter) %7B%0A
-
+%09
router.g
@@ -228,24 +228,18 @@
res) %7B%0A
-
+%09%09
if(proce
@@ -355,28 +355,19 @@
dleware%0A
- ... |
dbdad7ffd14a30ccfe0553721ca7d46a9d257a6d | remove full browser width from web components wrapper | src/BookReaderComponent/BookReaderComponent.js | src/BookReaderComponent/BookReaderComponent.js | /**
* BookReaderTemplate to load BookNavigator components
*/
import { LitElement, html, css } from 'lit-element';
import '../ItemNavigator/ItemNavigator.js'
import '../BookNavigator/BookNavigator.js'
export class BookReader extends LitElement {
static get properties() {
return {
base64Json: { type: Str... | JavaScript | 0 | @@ -2016,30 +2016,8 @@
ve;%0A
- width: 100vw;%0A
|
0814008f10a5317bc7d60044d2e449134c19c740 | use yarn publish | scripts/publish-to-npm.js | scripts/publish-to-npm.js | 'use strict';
const yargs = require('yargs');
const execa = require('execa');
const util = require('util');
const glob = util.promisify(require('glob'));
const fs = require('fs-extra');
const path = require('path');
const rootDir = process.cwd();
let argv = yargs
.usage(
'$0 [-t|--tag]'
)
.command({
com... | JavaScript | 0 | @@ -850,19 +850,20 @@
hCmd = %60
-npm
+yarn
publish
|
978d2a42b5ff4d5edcf58e621030253d60d5c2b0 | Fix host computation in Hacker News Answer Generator | src/answer_generators/hacker_news/generator.js | src/answer_generators/hacker_news/generator.js | /*jslint continue: true, devel: true, evil: true, indent: 2, nomen: true, plusplus: true, regexp: true, rhino: true, sloppy: true, sub: true, unparam: true, vars: true, white: true */
/*global _, HostAdapter, hostAdapter */
var ICON_URL = 'https://news.ycombinator.com/favicon.ico';
var BASE_RELEVANCE = 0.4;
function ... | JavaScript | 0.00014 | @@ -419,16 +419,208 @@
tIndex);
+ %0A var endIndex2 = url.indexOf('?', startIndex);%0A %0A if (endIndex %3C 0) %7B%0A endIndex = endIndex2; %0A %0A if (endIndex %3C 0) %7B%0A return url.substring(startIndex);%0A %7D %0A %7D %0A
%0A retur
|
55524174ef76c23b1e1917e57cbe863fee3acd8e | Resolve #67: Add channelOptions option to ChannelPool constructor | lib/ChannelPool.js | lib/ChannelPool.js | /*jslint node: true, indent: 2, unused: true, maxlen: 80, camelcase: true */
/*
* stompit.ChannelPool
* Copyright (c) 2014 Graham Daws <graham.daws@gmail.com>
* MIT licensed
*/
var Channel = require('./Channel');
var assign = require('object-assign');
function ChannelPool(connectFailover, option... | JavaScript | 0 | @@ -661,16 +661,41 @@
ut: null
+,%0A%0A channelOptions: %7B%7D
%0A %0A
@@ -949,32 +949,119 @@
annels = %5B%5D;%0A %0A
+ this._channelOptions = assign(%7B%7D, options.channelOptions, %7BalwaysConnected: true%7D);%0A%0A
this._freeChan
@@ -1477,18 +1477,16 @@
ion() %7B%0A
-
%0A retur
@@ -1526,39 +1526... |
709f9ae84a27cca1e4b4c540237a7c75cddd5383 | fix line endings and update build 2 | Jakefile.js | Jakefile.js | var build = require('./build/build.js'),
lint = require('./build/hint.js');
var COPYRIGHT = "/*\r\n Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin\n" +
" Leaflet is a modern open-source JavaScript library for interactive maps.\n" +
" http://leaflet.cloudmade.com\r\n*/\r\n";
de... | JavaScript | 0 | @@ -150,16 +150,18 @@
afonkin%5C
+r%5C
n%22 +%0A
|
1c4a59f86ac4e1e062ad061b5850f0175184958e | Make sure we're only adding labels to lis on the top level | github.com.js | github.com.js | var dotjs_github = {};
dotjs_github.init = function() {
dotjs_github.$issues = $('.issues');
var style = '<style>' +
'.filter-exclude { margin-top: 10px; }' +
'.filter-exclude input {' +
' box-sizing: border-box;' +
' padding: 3px 4px;' +
' width: 100%;' +
'}' +
'.filter-exclude .minibutton {' +
... | JavaScript | 0 | @@ -1296,20 +1296,24 @@
$labels.
-find
+children
('li').p
|
5f9703e389ba0ab7471ef4d3f41b9f07b9198f71 | Update throbber test time to avoid test inaccuracies | test/__playground/throbber.formatted.js | test/__playground/throbber.formatted.js | #!/usr/bin/env node
'use strict';
var throbber = require('../../lib/throbber')
, interval = require('clock/lib/interval')
, format = require('../../lib/index').red;
var i = interval(100, true);
throbber(i, format);
process.stdout.write('START');
setTimeout(i.stop.bind(i), 500);
| JavaScript | 0 | @@ -278,13 +278,13 @@
nd(i), 5
-0
+5
0);%0A
|
17b95e4b726a9c59096fe56c20cda3b05bb3acd3 | add new test spec for models | server/spec/modelSpec.js | server/spec/modelSpec.js | import jasmine from 'jasmine';
import Sequelize from 'sequelize';
import expect from 'expect';
import Users from '../models/users';
import Group from '../models/group';
// import GroupMembers from '../models/groupMembers';
// import Messages from '../models/messages';
import db from '../config/db_url.json';
describe(... | JavaScript | 0 | @@ -1904,2664 +1904,4 @@
);%0A%0A
-%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A/* describe('Models test suite', () =%3E %7B%0A describe('Establish connection to the database', () =%3E %7B%0A beforeAll((done) =%3E %7B%0A const sequelize = new Sequelize(db.url);%0A sequelize.authenticate().then(() =%3E %7... |
aa10cda61021ef3d32c301755e594faecbf24f2e | Add tests to <Text> | src/Text/__tests__/Text.test.js | src/Text/__tests__/Text.test.js | import React from 'react';
import ReactDOM from 'react-dom';
import Text from '../Text';
it('renders without crashing', () => {
const div = document.createElement('div');
const element = (
<Text
align="right"
basic="Basic text"
aside="Aside text"
tag="Tag... | JavaScript | 0 | @@ -65,26 +65,138 @@
ort
-Text from '../Text
+%7B shallow %7D from 'enzyme';%0A%0Aimport StatusIcon from 'src/StatusIcon';%0Aimport Text from '../Text';%0Aimport BasicRow from '../BasicRow
';%0A%0A
@@ -474,12 +474,1709 @@
div);%0A%7D);%0A%0A
+it('renders using %3CBasicRow%3E with BEM className', () =%3E %7B%0A ... |
63c03ef48a1fc0dbeec02943909bc9bc26ad7a2c | Mark TODO | lib/api/register_user.js | lib/api/register_user.js | var data = require(__dirname+'/../data/');
var sql = require(__dirname +'/../data/sequelize.js');
var config = require(__dirname+'/../../config/environment.js');
var validator = require(__dirname+'/../validator.js');
var RippleRestClient = require('ripple-rest-client');
var uuid = require('node-uuid');
/*... | JavaScript | 0.000004 | @@ -3682,16 +3682,83 @@
e in DB%0A
+ // TODO the server.js process is restarted here - why?%0A
|
847544231b0819913f22e2fe437f5cf475542962 | fix code identity | server/streak/service.js | server/streak/service.js | const rp = require('request-promise');
const cheerio = require('cheerio');
const getStreakBody = (userName) => {
var options = {
uri: `https://github.com/users/${userName}/contributions`,
transform: function (body) {
return cheerio.load(body);
}
};
return rp(options)
.then(function ($) {
const curr... | JavaScript | 0.000717 | @@ -799,56 +799,8 @@
) %7B%0A
-%09%09%09%09%09%09if ($(this).prop('fill') != '#ebedf0') %7B%0A%09
%09%09%09%09
@@ -818,25 +818,24 @@
reak.push(%7B%0A
-%09
%09%09%09%09%09%09%09date:
@@ -848,17 +848,16 @@
%0A%09%09%09%09%09%09%09
-%09
commit:
@@ -893,21 +893,12 @@
%09%09%09%09
-%09
%7D);%0A
-%09%09%09%09%09%09%... |
5418e50f4d56f3f700c9ecc745c3d1d3e25bbfc9 | Add extra named-chunks test cases for variations with require.ensure error callback present. | test/cases/chunks/named-chunks/index.js | test/cases/chunks/named-chunks/index.js | it("should handle named chunks", function(done) {
var sync = false;
require.ensure([], function(require) {
require("./empty?a");
require("./empty?b");
testLoad();
sync = true;
process.nextTick(function() {
sync = false;
});
}, "named-chunk");
function testLoad() {
require.ensure([], function(requir... | JavaScript | 0 | @@ -757,12 +757,977 @@
e;%0A%09%7D);%0A%7D);%0A
+%0Ait(%22should handle named chunks when there is an error callback%22, function(done) %7B%0A var sync = false;%0A require.ensure(%5B%5D, function(require) %7B%0A require(%22./empty?a%22);%0A require(%22./empty?b%22);%0A testLoad();%0A sync = true;%0A p... |
4acca781206921d81fb4dd1b05df11920951621c | Fix formatting | cla_public/static-src/javascripts/modules/form-errors.js | cla_public/static-src/javascripts/modules/form-errors.js | (function() {
'use strict';
moj.Modules.FormErrors = {
init: function() {
_.bindAll(this, 'postToFormErrors', 'onAjaxSuccess', 'onAjaxError');
this.bindEvents();
this.loadTemplates();
},
bindEvents: function() {
$('form')
.on('submit', this.postToFormErrors)
// ... | JavaScript | 0.000029 | @@ -3240,12 +3240,14 @@
ed')
+
? ''
+
: pr
|
ce9b5866133de731e00202a8faa19f7de1ecbd38 | Fix in category filter popup | cityproblems/site/static/site/js/index.js | cityproblems/site/static/site/js/index.js | var mainPageViewCtrl = function ($scope, $http, $route)
{
"use strict";
$scope.showMenu = false;
$scope.alerts=[];
$scope.$on('$routeChangeSuccess', function(next, current)
{
if((current.params.reportBy != $scope.reportBy || current.params.category != $scope.category) && (typeof current... | JavaScript | 0.000001 | @@ -539,24 +539,82 @@
dMarkers();%0A
+ $('#popup-filter-category').trigger('close');%0A
%7D%0A
|
0e8964f2cca4493045814fb74fb4ea7de53d9242 | Fix paths on Windows | lib/asset_types/html5.js | lib/asset_types/html5.js | var loader = require("@loader");
var nodeRequire = loader._nodeRequire;
var path = nodeRequire("path");
// Register the html5-upgrade asset type
module.exports = function(register){
var shivPath = path.join(__dirname, "/../../scripts/html5shiv.min.js");
var loaderBasePath = loader.baseURL.replace("file:", "");
var ... | JavaScript | 0 | @@ -362,16 +362,36 @@
hivPath)
+.replace(/%5C%5C/g, %22/%22)
;%0A%0A%09regi
|
0f6506374ddfed2969454b081e5494f0cda811de | Update cred.js | server/routes/cred.js | server/routes/cred.js | var User = require('../models/users.js');
var express = require('express');
var router = express.Router();
var nodemailer = require('nodemailer');
var wellknown = require('nodemailer-wellknown');
module.exports = router;
router.post('/sendEmail', function(req,res){
var email = req.body.email;
console.log('emai... | JavaScript | 0.000001 | @@ -910,25 +910,31 @@
http
+s
://
-localhost:3000
+www.fairshare.cloud
/res
@@ -1303,8 +1303,9 @@
err))%0A%7D)
+%0A
|
b03df04b45b069a4bea75bed5a8428eb7b1275c2 | reformulate as recursion | WordSmushing/smushing.js | WordSmushing/smushing.js | "use strict";
var assert = require('assert');
var smush = function(w1,w2) {
return w1 + w2;
};
describe('word smushing', function() {
it('should join words with no overlap', function() {
assert.equal('thecat', smush('the', 'cat'));
});
it('should do single character overlaps', function() {
assert.... | JavaScript | 0.999976 | @@ -79,22 +79,77 @@
-return w1 +
+if (w1 === '') return w2;%0A%0A return w1%5B0%5D + smush(w1.substr(1),
w2
+)
;%0A%7D;
@@ -191,24 +191,29 @@
n() %7B%0A it
+.only
('should joi
|
c4b6024abd81b33562c78c343ecb99e0210ecfb5 | Add test that child nodes are rendered. | src/components/with-drag-and-drop/draggable-context/__spec__.js | src/components/with-drag-and-drop/draggable-context/__spec__.js | import React from 'react';
import { DragDropContext } from 'react-dnd';
import DraggableContext from './draggable-context';
fdescribe('DraggableContext', () => {
it('is wrapped in a DragDropContextContainer', () => {
expect(DraggableContext.name).toBe('DragDropContextContainer');
});
it('has a DecoratedCom... | JavaScript | 0 | @@ -121,10 +121,41 @@
t';%0A
+import %7B mount %7D from 'enzyme';%0A
%0A
-f
desc
@@ -480,13 +480,378 @@
);%0A %7D);
+%0A%0A describe('render', () =%3E %7B%0A it('renders this.props.children', () =%3E %7B%0A let wrapper = mount(%0A %3CDraggableContext%3E%0A %3Cdiv%3E%0A %3Cp%3EOn... |
eafcb68040b44a73e6c2d3605e75f75847d2dfef | update TableHeader | src/_TableHeader/TableHeader.js | src/_TableHeader/TableHeader.js | /**
* @file TableHeader component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import TableHeaderSortIcon from '../_TableHeaderSortIcon';
class TableHeader extends Component {
constructor... | JavaScript | 0 | @@ -653,43 +653,16 @@
r =
-e
+()
=%3E %7B%0A
- e.preventDefault();%0A
|
539dde3653d78ccf4bbf2a67c109167c28f260e6 | version up | vendor/ember-simple-token/register-version.js | vendor/ember-simple-token/register-version.js | Ember.libraries.register('Ember Simple Token', '1.1.2');
| JavaScript | 0 | @@ -49,9 +49,9 @@
1.1.
-2
+3
');%0A
|
69ee5277e50328bf2daa3ef21686dd96a2c58470 | Fix error "Cannot read property 'min' of undefined" | src/models/axis.js | src/models/axis.js | /*!
* VIZABI Axis Model (hook)
*/
(function () {
"use strict";
var root = this;
var Vizabi = root.Vizabi;
var utils = Vizabi.utils;
//warn client if d3 is not defined
if (!Vizabi._require('d3')) {
return;
}
//constant time formats
var time_formats = {
"year": d3.time.format("%Y"),
"... | JavaScript | 0 | @@ -2530,16 +2530,73 @@
linear%22;
+%0A if (margins === undefined)%0A margins = true;
%0A%0A
@@ -3130,16 +3130,26 @@
ins.min
+&& margin
? margin
@@ -3183,16 +3183,26 @@
ins.max
+&& margin
? margin
|
b97fac279648ce2216a4f01cf6f1ec44e244ef08 | Refresh the whole scrollbar when adapting to size | Source/Widget/Scrollbar.js | Source/Widget/Scrollbar.js | /*
---
script: Scrollbar.js
description: Scrollbars for everything
license: MIT-style license.
authors: Yaroslaff Fedin
requires:
- ART.Widget.Paint
- ART.Widget.Section
- ART.Widget.Button
- Base/Widget.Trait.Slider
provides: [ART.Widget.Scrollbar]
...
*/
ART.Widget.Scrollbar = new Class({
Includes: [
... | JavaScript | 0 | @@ -2090,16 +2090,20 @@
refresh(
+true
);%0A t
|
0e4adfa855d599636c70622af81d9475165a3515 | Undo workaround for offline testing. | client/components/widget/query/data-view-service_test.js | client/components/widget/query/data-view-service_test.js | /**
* @copyright Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | JavaScript | 0 | @@ -1020,41 +1020,8 @@
);%0A%0A
-var _describe = function() %7B%7D;%0A%0A_
desc
|
def49f76b0b9a0259aa3cb3e8bca5242f50d65be | Update LoadCSSJS.min.js | LoadCSSJS.min.js | LoadCSSJS.min.js | /*! Simple CSS JS loader asynchronously for all browsers by cara-tm.com, MIT Licence */
function LoadCSSJS(e,t,r){"use strict";var els="";-1==els.indexOf("["+e+"]")?(Loader(e,t,r),els+="["+e+"]"):alert("File "+e+" already added!")}function Loader(e,t,r){if("css"==t){var s=document.createElement("link");s.setAttribute("... | JavaScript | 0 | @@ -128,19 +128,17 @@
var
-els
+a
=%22%22;-1==
els.
@@ -133,19 +133,17 @@
=%22%22;-1==
-els
+a
.indexOf
@@ -169,19 +169,17 @@
(e,t,r),
-els
+a
+=%22%5B%22+e+
|
b5c5d531d169f974651b08d3000b541062f71390 | Fix for unhandled promise on fresh db startup | core/server/data/migration/index.js | core/server/data/migration/index.js |
var _ = require('underscore'),
when = require('when'),
series = require('when/sequence'),
errors = require('../../errorHandling'),
knex = require('../../models/base').Knex,
defaultSettings = require('../default-settings'),
Settings =... | JavaScript | 0 | @@ -2344,34 +2344,31 @@
-return when.reject
+throw new Error
('Settin
@@ -4041,16 +4041,31 @@
if (err
+.message %7C%7C err
=== 'Se
|
cd3aa58988d8bdadfae7449052eeaa410bd385a6 | Fix import bug in make-html command. | lib/cli/cmd/make-html.js | lib/cli/cmd/make-html.js | /* dendry
* http://github.com/idmillington/dendry
*
* MIT License
*/
/*jshint indent:2 */
(function() {
"use strict";
var path = require('path');
var fs = require('fs');
var handlebars = require('handlebars');
var async = require('async');
var browserify = require('browserify');
var uglify = require(... | JavaScript | 0 | @@ -359,24 +359,76 @@
../utils');%0A
+ var compiler = require('../../parsers/compiler');%0A
var cmdCom
@@ -518,21 +518,24 @@
) %7B%0A
-utils
+compiler
.loadCom
@@ -1382,22 +1382,8 @@
%22%22);
-//result.code;
%0A
|
7ef05101fafd008f7886571b2595bc810025f4aa | Fix floatbar behaviour on "More threads/posts" clicks. | client/common/system/floatbar/floatbar.js | client/common/system/floatbar/floatbar.js | 'use strict';
var _ = require('lodash');
N.wire.on('navigate.done', function () {
var $window = $(window)
, $floatbar = $('#floatbar')
, isFixed = false
, navTop;
// Remove previous floatbar handlers if any.
$window.off('scroll.floatbar');
if (0 === $floatbar.length) {
// Do nothing if... | JavaScript | 0 | @@ -183,90 +183,8 @@
p;%0A%0A
- // Remove previous floatbar handlers if any.%0A $window.off('scroll.floatbar');%0A%0A
if
@@ -744,8 +744,317 @@
));%0A%7D);%0A
+%0A%0AN.wire.on('navigate.exit', function () %7B%0A // Remove floatbar event handler.%0A $(window).off('scroll.floatbar');%0A%0A // Get floatbar back t... |
b9dcce9939f2bcaeec8d4dbc4d8607e3b6ba856a | remove console statement | client/components/projects/ProjectItem.js | client/components/projects/ProjectItem.js | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { formatTime } from '../../helpers';
class ProjectItem extends React.Component {
constructor(props) {
super(props);
this.state = {
showInput: false,
newName: '',
};
this.handleNe... | JavaScript | 0.000032 | @@ -1129,34 +1129,8 @@
'';%0A
- console.log(project);%0A
|
bd57d8643a445faf8777c4d2961821cfa8e56288 | connect relevancy feature flag to experiment | share/spice/news/news.js | share/spice/news/news.js | (function (env) {
"use strict";
env.ddg_spice_news = function (api_result) {
if (!api_result || !api_result.results) {
return Spice.failed('news');
}
var useRelevancy = false,
entityWords = [],
goodStories = [],
searchTerm = DDG.get_query... | JavaScript | 0 | @@ -212,13 +212,104 @@
y =
-false
+DDG.opensearch.installed.experiment === %22organic_ux%22 && DDG.opensearch.installed.variant === 'b'
,%0A
|
4bb1faa246cff960a7a28ea85d000bd69cd30b23 | Fix bug with incorrect 'auto storage' calculation when more than 3 | src/app/components/player/player.controller.js | src/app/components/player/player.controller.js | export default class PlayerController {
constructor($rootScope, $scope, $log, $uibModal, _, toastr, playersApi, playerModel, websocket) {
'ngInject';
this.$rootScope = $rootScope;
this.$scope = $scope;
this.$log = $log.getInstance(this.constructor.name);
this.$uibModal = $uibModal;
this._ = _;
this.toa... | JavaScript | 0.000001 | @@ -2254,12 +2254,13 @@
log.
-info
+debug
('nu
@@ -2347,19 +2347,42 @@
%7B%0A%09%09%09%09%09%09
-if
+let numGroups = Math.floor
(cardsGr
@@ -2396,20 +2396,200 @@
gth
-%25 3 === 0) %7B
+/ 3),%0A%09%09%09%09%09%09%09numToStore = numGroups * 3;%0A%0A%09%09%09%09%09%09if (numToStore) %7B%0A%09%09%09%09%09%09%09let c... |
75aa9ab5476e62adbb5abbbaaf8cbfbf5933ea94 | stop serving bower_components separately. bower_components are now inside the app directory (ionic/www) and hence get served along with the app directory. | server/boot/dev-assets.js | server/boot/dev-assets.js | var path = require('path');
module.exports = function(app) {
if (!app.get('isDevEnv')) return;
var serveDir = app.loopback.static;
app.use(serveDir(projectPath('.tmp')));
app.use('/bower_components', serveDir(projectPath('client/bower_components')));
// app.use('/bower_components', serveDir(projectPath('bo... | JavaScript | 0 | @@ -169,24 +169,26 @@
('.tmp')));%0A
+//
app.use('/
|
7b3e3cbad51dfa66fa7aa81bb74a93419c3a19c9 | add fn assertion to app.use(). Closes #337 | lib/application.js | lib/application.js | /**
* Module dependencies.
*/
var debug = require('debug')('koa:application');
var Emitter = require('events').EventEmitter;
var compose = require('koa-compose');
var isJSON = require('koa-is-json');
var response = require('./response');
var context = require('./context');
var request = require('./request');
var onF... | JavaScript | 0.000001 | @@ -1926,16 +1926,22 @@
assert(
+fn &&
'Generat
|
ba0731679463757c03975f43fdbe63ed22675aff | Improve copy Grunt task structure | grunt/copy.js | grunt/copy.js | 'use strict';
module.exports = {
fonts: {
files: [
{
expand: true,
cwd: '<%= paths.src %>/fonts/',
src: ['**/*'],
dest: '<%= paths.dist %>/fonts/',
},
{
expand: true,
cwd: '<%= paths.bower %>/bootstrap/fonts/',
src: ['**/*'],
dest... | JavaScript | 0.000033 | @@ -344,32 +344,53 @@
nts/',%0A %7D,%0A
+ %5D,%0A vendor: %5B%0A
%7B%0A
|
b2b4408b2401fba7d7ad971b69c40b5d47720ee4 | optimize DraggableGridGroup | src/_DraggableGridGroup/DraggableGridGroup.js | src/_DraggableGridGroup/DraggableGridGroup.js | /**
* @file DraggableGridGroup component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {DragSource, DropTarget} from 'react-dnd';
import DraggableGridItem from '../_DraggableGridItem';
import Theme from '../Theme';
import D... | JavaScript | 0.000002 | @@ -811,24 +811,51 @@
omponent %7B%0A%0A
+ static Theme = Theme;%0A%0A
construc
|
43b7930247c46cfa454f4ceed1f1e777235ea895 | clear action | src/astroprint/static/js/app/views/terminal.js | src/astroprint/static/js/app/views/terminal.js | var TerminalView = Backbone.View.extend({
el: '#terminal-view',
outputView: null,
sourceId: null,
events: {
'submit form': 'onSend',
'show': 'onShow',
'hide': 'onHide'
},
initialize: function()
{
this.outputView = new OutputView();
this.sourceId = Math.floor((Math.random() * 100000)); ... | JavaScript | 0.000001 | @@ -180,16 +180,53 @@
'onHide'
+,%0A 'click button.clear': 'onClear'
%0A %7D,%0A
@@ -2325,14 +2325,15 @@
$el.
-empty(
+html(''
);%0A
|
3e496394541b46fe822903c9b180419979fbd608 | Remove dragStart event from example | examples/events/main.js | examples/events/main.js | import { default as React, Component } from 'react';
var ReactDOM = require('react-dom');
import { ReactiveBase } from '@appbaseio/reactivebase';
import { ReactiveMap } from '../../app/app.js';
class Main extends Component {
constructor(props) {
super(props);
this.eventLists = [
'onDragstart',
'onClick',
... | JavaScript | 0 | @@ -280,34 +280,16 @@
sts = %5B%0A
-%09%09%09'onDragstart',%0A
%09%09%09'onCl
|
615a2718f0d62205869b72e347cf909c8c43c4de | Add docstrings to the popover view | web_client/views/popover/AnnotationPopover.js | web_client/views/popover/AnnotationPopover.js | import _ from 'underscore';
import View from '../View';
import { restRequest } from 'girder/rest';
import ElementCollection from 'girder_plugins/large_image/collections/ElementCollection';
import annotationPopover from '../../templates/popover/annotationPopover.pug';
import '../../stylesheets/popover/annotationPopove... | JavaScript | 0 | @@ -323,16 +323,336 @@
styl';%0A%0A
+/**%0A * This view behaves like a bootstrap %22popover%22 that follows the mouse pointer%0A * over the image canvas and dynamically updates according to the features%0A * under the pointer.%0A *%0A * @param %7Bobject%7D %5Bsettings%5D%0A * @param %7Bnumber%7D %5Bsettings.debounce%5... |
828032d625d4246a1d4a86333e962d00e04bcfb6 | test åäö | src/main/resources/client/components/SiteWrapper/SiteWrapper.js | src/main/resources/client/components/SiteWrapper/SiteWrapper.js | 'use strict';
// Vendor
var _assign = require('lodash/object/assign');
var Vue = require('vue');
var $ = require('jquery');
// Components
var TechInfoWindow = require('components/TechInfoWindow/TechInfoWindow.js');
// Utils
var AuthenticationUtil = require('utils/AuthenticationUtil/AuthenticationUtil.js');
var Techni... | JavaScript | 0.000001 | @@ -1424,16 +1424,48 @@
cated);%0A
+%09%09%09%09console.log(authenticated);%0A
%09%09%09%7D%09%0A%09%09
|
362901bbe5c73ac8c534675f84aab9e5a62aebd5 | fix unknown error when showing details of expense from /expenses page | src/apps/expenses/components/PayExpenseBtn.js | src/apps/expenses/components/PayExpenseBtn.js | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { get } from 'lodash';
import withIntl from '../../../lib/withIntl';
import { isValidEmail } from '../../../lib/uti... | JavaScript | 0 | @@ -2398,22 +2398,38 @@
Method =
-
+%0A get(
host
-.
+, '
paymentM
@@ -2434,16 +2434,18 @@
tMethods
+')
&& host
|
ae543be4b0ce6807cbb6b70b09d28bd390290fad | add default export (#48) | leveldown.js | leveldown.js | const util = require('util')
, AbstractLevelDOWN = require('abstract-leveldown').AbstractLevelDOWN
, binding = require('bindings')('leveldown').leveldown
, ChainedBatch = require('./chained-batch')
, Iterator = require('./iterator')
, fs = require(... | JavaScript | 0 | @@ -3997,16 +3997,36 @@
xports =
+ LevelDOWN.default =
LevelDO
|
5b3a17e24efcf7603f0fd73d8eabd8fb516ee536 | fix wrong this context (#4352) | lib/workers/repository/process/lookup/rollback.js | lib/workers/repository/process/lookup/rollback.js | const { logger } = require('../../../../logger');
const versioning = require('../../../../versioning');
module.exports = {
getRollbackUpdate,
};
function getRollbackUpdate(config, versions) {
const { packageFile, versionScheme, depName, currentValue } = config;
const version = versioning.get(versionScheme);
/... | JavaScript | 0.000011 | @@ -1039,16 +1039,26 @@
ns.sort(
+(a, b) =%3E
version.
@@ -1069,16 +1069,22 @@
Versions
+(a, b)
);%0A con
|
c2e3d2b8ca5ebe76fc12a08038bf9251c43bdbac | Fix time differences (add 1 second) | src/client/rest/RequestHandlers/Sequential.js | src/client/rest/RequestHandlers/Sequential.js | const RequestHandler = require('./RequestHandler');
/**
* Handles API Requests sequentially, i.e. we wait until the current request is finished before moving onto
* the next. This plays a _lot_ nicer in terms of avoiding 429's when there is more than one session of the account,
* but it can be slower.
* @extends {... | JavaScript | 0.000059 | @@ -2251,17 +2251,17 @@
ference
--
++
1000);%0A
|
c0d9881a621bd39be404fb0905fd11843d0ff4c9 | add memoryUsageHeap value | src/node/server.js | src/node/server.js | #!/usr/bin/env node
'use strict';
/**
* This module is started with bin/run.sh. It sets up a Express HTTP and a Socket.IO Server.
* Static file Requests are answered directly from this module, Socket.IO messages are passed
* to MessageHandler and minfied requests are passed to minified.
*/
/*
* 2011 Peter 'Pita... | JavaScript | 0 | @@ -1991,16 +1991,88 @@
().rss);
+%0A stats.gauge('memoryUsageHeap', () =%3E process.memoryUsage().heapUsed);
%0A%0A awai
|
928ce8b8f980c89e9419f2174f7efa6dabf14334 | update delete user JSON message | lib/controllers/users.js | lib/controllers/users.js | const express = require('express');
const router = express.Router(); // eslint-disable-line new-cap
const async = require('async');
const UserModel = require('../models/user');
const authenticate = require('../middlewares/authenticate');
const authorise = require('../middlewares/authorise');
router.use('/users', auth... | JavaScript | 0.000001 | @@ -5333,36 +5333,36 @@
er could not be
-upda
+dele
ted.',%0A %7D
|
1eeee314affb486acc249d670452063b78e42e49 | refactor the Index module for readability and testability | lib/Index.js | lib/Index.js | 'use strict';
const path = require('path');
const defaults = require('defa');
const Sequelize = require('sequelize');
class Index {
constructor(options) {
defaults(options, {
'filename': () => path.join(process.cwd(), '.index')
});
this.prepareDb(options.filename);
... | JavaScript | 0.000004 | @@ -18,14 +18,24 @@
nst
-path
+%7Bnoop, defaults%7D
@@ -45,19 +45,21 @@
equire('
-pat
+lodas
h');%0Acon
@@ -61,24 +61,34 @@
;%0Aconst
-defaults
+path
= requ
@@ -92,20 +92,20 @@
equire('
-defa
+path
');%0Acons
@@ -116,16 +116,26 @@
quelize
+
= requir
@@ -162,24 +162,62 @@
s... |
551054d702cd378e598dbbdee9731e540b9acf42 | Remove comment | lib/core/shared/store.js | lib/core/shared/store.js | /*
* Kuzzle, a backend software, self-hostable and ready to use
* to power modern apps
*
* Copyright 2015-2020 Kuzzle
* mailto: support AT kuzzle.io
* website: http://kuzzle.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | JavaScript | 0 | @@ -6963,84 +6963,8 @@
%7D%0A%0A
- // Create call will update collection and cache it internally%0A
@@ -7311,24 +7311,65 @@
Settings %7D,%0A
+ %7B indexCacheOnly: true %7D%0A
|
be75c469b7d90952e89a9ee7c87ea7ad017cd104 | Allow alias exploding | plugins/aliases.js | plugins/aliases.js | // This is the aliases plugin
// One must not run this plugin with the queue/smtp_proxy plugin.
var Address = require('address-rfc2821').Address;
exports.register = function () {
this.inherits('queue/discard');
this.register_hook('rcpt','aliases');
};
exports.aliases = function (next, connection, params) {
... | JavaScript | 0.000005 | @@ -2422,16 +2422,20 @@
ddress;%0A
+
%0A if
@@ -2444,24 +2444,444 @@
onfig.to) %7B%0A
+ if (Array.isArray(config.to)) %7B%0A connection.logdebug(plugin, %22aliasing %22 + connection.transaction.rcpt_to + %22 to %22 + config.to);%0A connection.transaction.rcpt_to.pop();%0A fo... |
70fc4295de4e9123f90bbf9e18749d990e2da403 | Fix indentation | simplePagination.spec.js | simplePagination.spec.js | 'use strict';
describe('Simple Pagination', function() {
var pagination;
// load the app
beforeEach(module('SimplePagination'));
// get service
beforeEach(inject(function(Pagination) {
pagination = Pagination.getNew();
}));
it('should paginate', function() {
pagination.numPages = 2;
expect(paginatio... | JavaScript | 0.017244 | @@ -52,17 +52,18 @@
on() %7B%0A%0A
-%09
+
var pagi
@@ -71,17 +71,18 @@
ation;%0A%0A
-%09
+
// load
@@ -89,17 +89,18 @@
the app%0A
-%09
+
beforeEa
@@ -132,17 +132,18 @@
on'));%0A%0A
-%09
+
// get s
@@ -150,17 +150,18 @@
ervice %0A
-%09
+
beforeEa
@@ -189,26 +189,28 @@
gination) %7B%0A
-%09%09
+ ... |
f6faa3bc938bb92cbe7497b228eeeba0ca256020 | Edit comment | core/tests/protractor/cacheSlugs.js | core/tests/protractor/cacheSlugs.js | // Copyright 2016 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | JavaScript | 0 | @@ -2271,18 +2271,28 @@
ibs.html
- t
+.%0A // T
his warn
@@ -2297,25 +2297,16 @@
rning is
-%0A //
expecte
|
7a8f39067376f44c30b688e960d980b1cafe2337 | Add 'add' to projectDeploy provided interface | core/cb.project.deploy/main.js | core/cb.project.deploy/main.js | // Requires
var _ = require('underscore');
var DeploymentSolution = require("./solution").DeploymentSolution;
// List of all deployment solution
var SUPPORTED = [];
function setup(options, imports, register) {
// Import
var logger = imports.logger.namespace("deployment");
var events = imports.events;
... | JavaScript | 0.000001 | @@ -814,16 +814,17 @@
);%0A %7D
+;
%0A%0A%0A /
@@ -1026,24 +1026,56 @@
getSolution
+,%0A 'add': addSolution
%0A %7D%0A
|
66d067a35ed2fcaf9decaad683ebeb2f563b2117 | Add styling clases to fix buttons appearing white on iOS | src/main/web/js/app/mobile-table.js | src/main/web/js/app/mobile-table.js | $(function() {
var markdownTable = $('.markdown-table-wrap');
if (markdownTable.length) {
$('<button class="btn btn--mobile-table-show">View table</button>').insertAfter(markdownTable);
$('<button class="btn btn--mobile-table-hide">Close table</button>').insertAfter(markdownTable.find('table'))... | JavaScript | 0 | @@ -114,32 +114,47 @@
tton class=%22btn
+btn--secondary
btn--mobile-tabl
@@ -237,24 +237,39 @@
class=%22btn
+btn--secondary
btn--mobile-
|
285bdf6c56f70fb2fd0a8fc7e881d244bf8a6cd0 | Remove odd html tags | src/components/NavigationBar/NavigationBar.js | src/components/NavigationBar/NavigationBar.js | import React from 'react'
import {
Link
} from 'react-router-dom';
import './navigation-bar.css';
import { isAuthenticated } from '../../helper/auth';
import * as firebase from 'firebase';
class NavigationBar extends React.Component {
signout() {
firebase.auth().signOut();
}
authenticated() {
... | JavaScript | 0.999801 | @@ -344,170 +344,46 @@
- %3Cdiv className=%22navigation-bar__wrapper%22%3E%0A %3Cdiv className=%22navigation-bar__placeholder%22%3E%3C/div%3E%0A %3Cnav className=%22navigation-bar%22%3E%0A
+%3Cnav className=%22navigation-bar glow%22%3E%0A
@@ -451,36 +451,32 @@
... |
207f9e63434b1c191b8d3296e17e1bb881c580c0 | reset board on start | lib/board/index.js | lib/board/index.js | import bus from 'component/bus'
import Board from 'kvnneff/bloxparty-board@1.0.3-alpha'
export default function plugin () {
return function (app) {
var board = new Board()
app.set('board', board.json())
board.on('change', function () {
app.set('board', board.json())
})
bus.on('player:move'... | JavaScript | 0.000001 | @@ -404,32 +404,52 @@
, function () %7B%0A
+ board.reset()%0A
board.star
|
965716143e75bb52d4979986fd35e9b4bbc1acde | use 1 for env instead of true, since it becomes a string | lib/boilerplate.js | lib/boilerplate.js | "use strict";
var mocha = require('gulp-mocha'),
Q = require('q'),
Transpiler = require('../index').Transpiler,
jshint = require('gulp-jshint'),
jscs = require('gulp-jscs'),
vinylPaths = require('vinyl-paths'),
del = require('del'),
_ = require('lodash');
var DEFAULT_OPTS = {
files: ["*.j... | JavaScript | 0.000011 | @@ -1633,20 +1633,17 @@
STING =
-true
+1
;%0A
@@ -1782,44 +1782,8 @@
r);%0A
- process.env._TESTING = false;%0A
|
95fb0e2af62acc4b3ea4d88e1832325807467143 | Put initialization in a separate callable function. | www/googleplayservices.js | www/googleplayservices.js | var argscheck = require ('cordova/argscheck')
var exec = require ('cordova/exec')
module.exports = function () {
var exports = {}
exports.getPlayerId = function (init) {
var success = (typeof init.success != "undefined") ? init.success : function () {}
var error = (typeof init.error != "undefined") ? ... | JavaScript | 0 | @@ -421,16 +421,303 @@
%5D)%0A %7D%0A %0A
+ exports.initialize = function (init) %7B%0A var success = (typeof init.success != %22undefined%22) ? init.success : function () %7B%7D%0A var error = (typeof init.error != %22undefined%22) ? init.error : function () %7B%7D%0A cordova.exec (success, error, %22GoogleP... |
eab5c2896ea862ce2023e317b65d483d592d1792 | Fix to check for zero s value in sign function | lib/browser/Key.js | lib/browser/Key.js | var ECKey = require('../../browser/vendor-bundle.js').ECKey;
var SecureRandom = require('../SecureRandom');
var Curve = require('../Curve');
var bignum = require('bignum');
var Key = function() {
this._pub = null;
this._compressed = true; // default
};
var bufferToArray = Key.bufferToArray = function(buffer) {
... | JavaScript | 0 | @@ -3015,56 +3015,8 @@
;%0A
- %7D while (r.compareTo(BigInteger.ZERO) %3C= 0);%0A%0A
@@ -3077,16 +3077,102 @@
.mod(n);
+%0A %7D while (r.compareTo(BigInteger.ZERO) %3C= 0 %7C%7C s.compareTo(BigInteger.ZERO) %3C= 0);
%0A%0A re
|
e291726e5fe2c2cfe858c3ace02c7c1fb14eefa9 | Update build-state.js | lib/build-state.js | lib/build-state.js | /** @babel */
import path from 'path'
import { isTexFile, isKnitrFile } from './werkzeug'
function toArray (value) {
return (typeof value === 'string') ? value.split(',').map(item => item.trim()) : Array.from(value)
}
function toBoolean (value) {
return (typeof value === 'string') ? !!value.match(/^(true|yes)$/i... | JavaScript | 0.000001 | @@ -1565,24 +1565,109 @@
Mode()%0A %7D%0A%0A
+ getOpenResultAfterBuild () %7B%0A return this.parent.getOpenResultAfterBuild()%0A %7D%0A%0A
getEngine
@@ -1663,32 +1663,32 @@
getEngine () %7B%0A
-
return this.
@@ -2399,32 +2399,72 @@
uildMode(false)%0A
+ this.setOpenResultAfterBuild(false)%0A
t... |
d39a9a0f189f3a2ce13e230ecd76ee4d9fd6e575 | bring back select-all-on-click | src/components/views/elements/EditableText.js | src/components/views/elements/EditableText.js | /*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | JavaScript | 0.000001 | @@ -4347,16 +4347,289 @@
length);
+%0A%0A var node = ev.target.childNodes%5B0%5D;%0A var range = document.createRange();%0A range.setStart(node, 0);%0A range.setEnd(node, node.length);%0A %0A var sel = window.getSelection();%0A sel.removeAllRanges();%0A sel.addRa... |
384f50609d92ed9e525f261ea6bf4a64d97b401c | Allow searching by partial prefix (/w or /wo '+') | src/components/views/login/CountryDropdown.js | src/components/views/login/CountryDropdown.js | /*
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | JavaScript | 0.000001 | @@ -835,24 +835,150 @@
country) %7B%0A
+ // Remove '+' if present (when searching for a prefix)%0A if (query%5B0%5D === '+') %7B%0A query = query.slice(1);%0A %7D%0A%0A
if (coun
@@ -1128,25 +1128,38 @@
y.prefix
- == query
+.indexOf(query) !== -1
) return
|
f69efdf8441ba4ec5e8abf9af4fa04b29f15130d | Add args as a parameter for cmdRunner.runHadoopJar | cosmos-tidoop-api/src/cmd_runner.js | cosmos-tidoop-api/src/cmd_runner.js | /**
* Copyright 2016 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of fiware-cosmos (FI-WARE project).
*
* fiware-cosmos is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
* General Public License as published by the Free Software Foundation, either v... | JavaScript | 0 | @@ -1134,16 +1134,22 @@
sInHDFS,
+ args,
input,
@@ -1805,16 +1805,22 @@
assName,
+ args,
'-libja
|
8a0df6aefa71fb2e34bc891b59791d8c8d5c963c | Fix build target selection | lib/admin.js | lib/admin.js | var async = require('async'),
campfire = require('./campfire'),
config = require('./config'),
express = require('express'),
log = require('./log');
module.exports = function(app, repo) {
var branches = [],
currentBranch;
campfire.init(repo);
app.get('/ms_admin', function(req, res, next) {... | JavaScript | 0 | @@ -2066,16 +2066,25 @@
arget =
+parseInt(
req.para
@@ -2094,16 +2094,17 @@
target')
+)
;%0A if
@@ -2097,32 +2097,46 @@
get'));%0A if (
+target %3C 0 %7C%7C
(config.projectC
@@ -2169,28 +2169,25 @@
%5B%5D).
-indexOf(
+length %3C=
target)
- %3C 0)
%7B%0A
|
27df63964a1fc93b2fd909c17db766ebf460d292 | Fix "no-unused-styles" suite name | tests/lib/rules/no-unused-styles.js | tests/lib/rules/no-unused-styles.js | /**
* @fileoverview No unused styles defined in javascript files
* @author Tom Hastjarjanto
*/
'use strict';
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const rule = require('../... | JavaScript | 0 | @@ -6314,32 +6314,23 @@
un('
-split-platform-component
+no-unused-style
s',
|
ded1e02da7a42aaa5ea0a4414d9ebac7d986995f | move buildHelpers require down a slot | packages/build-runtime.js | packages/build-runtime.js | "use strict";
var buildHelpers = require("../lib/babel/build-helpers");
var transform = require("../lib/babel/transformation");
var util = require("../lib/babel/util");
var fs = require("fs");
var t = require("../lib/babel/types");
var _ = require("lodash");
var relative = f... | JavaScript | 0 | @@ -12,28 +12,28 @@
%22;%0A%0Avar
-buildHelpers
+transform
= requi
@@ -53,41 +53,42 @@
bel/
-build-helpers%22);%0Avar transform
+transformation%22);%0Avar buildHelpers
= r
@@ -104,38 +104,37 @@
./lib/babel/
-transformation
+build-helpers
%22);%0Avar util
|
62a0f429264c4d63006e455690d02496674d3a2f | Fix chart symbol | src/botPage/view/blockly/blocks/trade/index.js | src/botPage/view/blockly/blocks/trade/index.js | import { observer as globalObserver } from 'binary-common-utils/lib/observer';
import { translate } from '../../../../../common/i18n';
import config from '../../../../common/const';
import { setBlockTextColor, findTopParentBlock, deleteBlockIfExists } from '../../utils';
import { defineContract } from '../images';
impo... | JavaScript | 0.000002 | @@ -1405,239 +1405,8 @@
T');
-%0A const submarket = trade.getInput('SUBMARKET').connection.targetConnection;%0A // eslint-disable-next-line no-underscore-dangle%0A const needsMutation = submarket && submarket.sourceBlock_.type !== 'tradeOptions';
%0A%0A
@@ -1425,26 +1425,8 @@
mbol
- && !needsM... |
4982d4029e48a8d89f70ba01a9fc69b959f212fc | Fix #8 | WebContent/static/games/Tanks/displayScript.js | WebContent/static/games/Tanks/displayScript.js | /**
* The display script for Tanks. This code displays sprites in a grid based canvas.
*/
var images = {};
var idList = null;
//Called on page load
function onLoad(gameID) {
displayMessage("Loading Sprites");
let sprites = {
bullet: "../static/games/Tanks/bullet.png",
};
loadSprites(sprites, gameID);
}
fu... | JavaScript | 0.000001 | @@ -2290,16 +2290,32 @@
ndex) %7B%0A
+%09clear(x, y);%0A%09%0A
%09if(idLi
|
1f4875527d1e2f9a0f3812eca958ece9377595d4 | Change language on counts block from Events to Performances. | imports/api/counts/server/publications.js | imports/api/counts/server/publications.js | /* eslint-disable prefer-arrow-callback */
import { Meteor } from 'meteor/meteor';
import { TAPi18n } from 'meteor/tap:i18n';
import { _ } from 'meteor/underscore';
// API
import { Counts } from '../../counts/counts.js';
import { Profiles } from '../../profiles/profiles.js';
import { Shows } from '../../shows/shows.js... | JavaScript | 0 | @@ -2216,37 +2216,43 @@
nged('Counts', '
-Event
+Performance
s', %7B count: cou
@@ -2348,37 +2348,43 @@
nged('Counts', '
-Event
+Performance
s', %7B count: cou
@@ -3648,21 +3648,27 @@
unts', '
-Event
+Performance
s', %7B co
|
cb9bc30842fdededbb25f7e627e8f3f84eb151a4 | Fix failing test | tests/pages/jobs/JobsOverview-cy.js | tests/pages/jobs/JobsOverview-cy.js | describe('Jobs Overview', function () {
context('Jobs page loads correctly', function () {
beforeEach(function () {
cy.configureCluster({
mesos: '1-for-each-health',
nodeHealth: true
});
cy.visitUrl({url: '/jobs'});
});
it('has the right active navigation entry', functio... | JavaScript | 0.000209 | @@ -578,12 +578,14 @@
obs
-Foun
+Create
d');
|
8bf416778ad35f9c96c76de2db451fc3924de8f9 | Fix little typo | plugins/weather.js | plugins/weather.js | /** Created on May 6, 2014
* author: MrPoxipol
*/
var http = require('http');
var util = require('util');
// Templates module
var Mustache = require('mustache');
var debug = require('../nibo/debug');
const COMMAND_NAME = 'weather';
// pattern for util.format()
const API_URL_PATTERN = 'http://api.openweathermap.or... | JavaScript | 0.999968 | @@ -2660,16 +2660,17 @@
not avai
+l
able at
|
f258286c431b46f944ecaffb319bf44b749f04f4 | Fix #149 TextCell should trigger error and high light the text box if the formatter returns undefined | src/extensions/text-cell/backgrid-text-cell.js | src/extensions/text-cell/backgrid-text-cell.js | /*
backgrid-text-cell
http://github.com/wyuenho/backgrid
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
Licensed under the MIT @license.
*/
(function (window, $, _, Backbone, Backgrid) {
/**
Renders a form with a text area and a save button in a modal dialog.
@class Backgrid.Extension.T... | JavaScript | 0 | @@ -3215,24 +3215,90 @@
%22);%0A %7D,%0A%0A
+ /**%0A Clears the error class on the parent cell.%0A */%0A
clearErr
@@ -3335,16 +3335,31 @@
if
+(!_.isUndefined
(this.fo
@@ -3405,16 +3405,17 @@
.val()))
+)
%7B%0A
|
f9451d9339839e32fab7c6c27e6fcc32dfe75037 | make composition cache work | lib/composition.js | lib/composition.js | var File = require('./file');
var Cache = require('./cache');
var Module = require('./module');
var utils = require('./client/utils');
var composition_cache = Cache('compositions');
/**
* Get module instance composition.
*/
module.exports = function (name, role, callback) {
// get composition from cache
... | JavaScript | 0 | @@ -368,14 +368,10 @@
-switch
+if
(co
@@ -383,22 +383,16 @@
tion) %7B%0A
-
%0A
@@ -396,64 +396,27 @@
-// handle invalid composition configuration%0A case
+if (composition ===
'IN
@@ -421,17 +421,19 @@
INVALID'
-:
+) %7B
%0A
@@ -516,79 +516,11 @@
-%0A // handle... |
2533551dcd46caa844436ec5f9b1aa83912291c4 | Implement signup email handler and email state * Re-order state object to reflect order of inputs | client/mobile/components/shared/signup.js | client/mobile/components/shared/signup.js | var React = require('react-native');
var Login = require('./login');
var JoinClassView = require('./../student/joinClassView');
var StartClassView = require('./../teacher/startClassView');
var api = require('./../../utils/api');
var {
View,
Text,
StyleSheet,
TextInput,
TouchableHighlight,
Picker,
Activit... | JavaScript | 0 | @@ -453,29 +453,30 @@
e = %7B%0A
-usern
+firstN
ame: '',%0A
@@ -474,32 +474,32 @@
: '',%0A
-password
+lastName
: '',%0A
@@ -498,33 +498,24 @@
,%0A
-confirmedPassword
+username
: '',%0A
@@ -514,33 +514,29 @@
: '',%0A
-firstName
+email
: '',%0A
@@ -531,32 +531,61 @@
: '',... |
b7a634649f273aff78eef8fda8cf5f1a3075016e | Implement signup email handler and email state * Re-order state object to reflect order of inputs | client/mobile/components/shared/signup.js | client/mobile/components/shared/signup.js | var React = require('react-native');
var Login = require('./login');
var JoinClassView = require('./../student/joinClassView');
var StartClassView = require('./../teacher/startClassView');
var api = require('./../../utils/api');
var {
View,
Text,
StyleSheet,
TextInput,
TouchableHighlight,
Picker,
Activit... | JavaScript | 0 | @@ -453,29 +453,30 @@
e = %7B%0A
-usern
+firstN
ame: '',%0A
@@ -474,32 +474,32 @@
: '',%0A
-password
+lastName
: '',%0A
@@ -498,33 +498,24 @@
,%0A
-confirmedPassword
+username
: '',%0A
@@ -514,33 +514,29 @@
: '',%0A
-firstName
+email
: '',%0A
@@ -531,32 +531,61 @@
: '',... |
93a63d4371249b1d3d8f0c934153804261d6e072 | add promise rejection error reporting | client/scripts/arcademode/actions/test.js | client/scripts/arcademode/actions/test.js |
'use strict';
export const OUTPUT_CHANGED = 'OUTPUT_CHANGED';
export const TESTS_STARTED = 'TESTS_STARTED';
export const TESTS_FINISHED = 'TESTS_FINISHED';
export function onOutputChange(newOutput) {
return {
type: OUTPUT_CHANGED,
userOutput: newOutput
};
}
/* Thunk action which runs the test cases aga... | JavaScript | 0 | @@ -610,16 +610,17 @@
6255766%0A
+%0A
func
@@ -1309,24 +1309,91 @@
%7D%0A %7D)
+%0A .catch(err =%3E %7B console.log(%60Promise rejected: $%7Berr%7D.%60); %7D)
;%0A %7D;%0A%7D%0A%0A/*
|
31e94b683dbe349bd19c1c0d9f279b0b6c2f46e5 | Update to new redis port to reduce potential collisions | lib/core/config.js | lib/core/config.js | 'use strict';
var path = require('path');
var fs = require('fs');
var env = require('./env.js');
var deps = require('./deps.js');
// Constants
var CONFIG_FILENAME = 'kalabox.json';
exports.CONFIG_FILENAME = CONFIG_FILENAME;
var DEFAULT_GLOBAL_CONFIG = {
domain: 'kbox',
kboxRoot: ':home:/kalabox',
kalaboxRoot: ... | JavaScript | 0 | @@ -631,20 +631,20 @@
port:
-6379
+8160
%0A %7D,%0A
@@ -1842,20 +1842,20 @@
'
-6379
+8160
/tcp' :
@@ -1889,12 +1889,12 @@
: '
-6379
+8160
'%7D%5D,
|
2fd85899d20ad2d15555c6975f16e095dfc348f3 | add exception handling for cloudflare error. | lib/courier/jnt.js | lib/courier/jnt.js | 'use strict'
var request = require('request')
var moment = require('moment')
var tracker = require('../')
var trackingInfo = function (number) {
return {
method: 'POST',
url: 'https://www.jtexpress.ph/index/router/index.html',
json: true,
body: {
method: 'app.findTrack',
data: {
... | JavaScript | 0 | @@ -1645,16 +1645,124 @@
try %7B%0A
+ if (res.statusCode !== 200) %7B%0A return cb(tracker.error(res.statusMessage))%0A %7D%0A
|
3d5f46d4917d6eadf46a8e1d772ff7f9f410a29e | Prepare new Info to be in modal | client/src/components/shared/Info/Info.js | client/src/components/shared/Info/Info.js | // @flow
import React, {Fragment} from 'react'
import Circle from 'react-icons/lib/fa/circle-o'
import {Container} from 'reactstrap'
import {Link} from 'react-router-dom'
import type {Node} from 'react'
import {
getNewFinancialData,
icoUrl,
ShowNumberCurrency,
showDate,
} from '../../../services/utilities'
imp... | JavaScript | 0 | @@ -416,16 +416,33 @@
Location
+, toggleModalOpen
%7D from '
@@ -968,16 +968,37 @@
Detail,%0A
+ inModal?: boolean,%0A
canClo
@@ -4535,16 +4535,33 @@
Location
+, toggleModalOpen
%7D),%0A wi
@@ -4595,16 +4595,25 @@
(%7Bdata,
+ inModal,
zoomToL
@@ -4619,16 +4619,33 @@
Location
+, toggleModalOpen
%7D) =%3E ... |
138ad3b71603f2f1ce7a05954c2e065b41d339cb | Update to ES6 syntax | client/webpack.production.config.babel.js | client/webpack.production.config.babel.js | /* global module, __dirname */
import path from "path";
import webpack from "webpack";
import HTMLPlugin from "html-webpack-plugin";
import CleanPlugin from "clean-webpack-plugin";
import ExtractTextPlugin from "extract-text-webpack-plugin";
import UglifyJSPlugin from "uglifyjs-webpack-plugin";
module.exports = {
... | JavaScript | 0 | @@ -6,16 +6,8 @@
obal
- module,
__d
@@ -286,24 +286,22 @@
%22;%0A%0A
-module.exports =
+export default
%7B%0A%0A
|
37d3d04f0ec20f4145fcb9d90b805e706e948a41 | Clean mediatag integration code | www/common/diffMarked.js | www/common/diffMarked.js | define([
'jquery',
'/bower_components/marked/marked.min.js',
'/common/cryptpad-common.js',
'/common/media-tag.js',
'/bower_components/diff-dom/diffDOM.js',
'/bower_components/tweetnacl/nacl-fast.min.js',
],function ($, Marked, Cryptpad, MediaTag) {
var DiffMd = {};
var DiffDOM = window.... | JavaScript | 0 | @@ -3189,752 +3189,8 @@
%7D;%0A%0A
- var getSubMediaTag = function (element) %7B%0A var result = %5B%5D;%0A console.log(element);%0A if (element.nodeName === %22MEDIA-TAG%22) %7B%0A result.push(element);%0A return result;%0A %7D%0A if (element.childNodes) %7B... |
7b2b3e9dfbf805da61b1e957e71bdd3bad0352dc | Fix typo | server/lib/client-info.js | server/lib/client-info.js | /**
* Client info keyed on client id. Mainly used for logging.
* Getting full details about a client is a multi-part process
* since we get partial info when they request a token, and more
* when they finally connect/authenticate over the web socket.
*/
var useragent = require('useragent');
var log = require('./lo... | JavaScript | 0.999999 | @@ -1064,18 +1064,18 @@
ytesRece
-v
i
+v
ed = 0;%0A
|
205dba7e0e4a828ae27a4b08af3c67186e162a7a | Improve variable names | server/lib/userSession.js | server/lib/userSession.js | //
// Copyright 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 by app... | JavaScript | 0.998747 | @@ -643,17 +643,17 @@
%0A%0Aconst
-u
+U
ser = re
@@ -950,22 +950,16 @@
nst user
-Record
= yield
@@ -959,17 +959,17 @@
= yield
-u
+U
ser.fetc
@@ -1010,22 +1010,16 @@
user
-Record
&& user
Reco
@@ -1010,30 +1010,24 @@
user && user
-Record
.get('secret
@@ -1047,31 +1047,13 @@
s &&
-%0A userRecord... |
55be56e6a4d27d717954a93e4043a04705ad06af | use https for transifex download | tools/downloadLanguages.js | tools/downloadLanguages.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
Environment Variables
USERNAME - valid Transifex user name with read privileges
PASSWORD -... | JavaScript | 0 | @@ -1594,16 +1594,17 @@
= 'http
+s
://www.t
|
d6ae29f4d18462b2b150fba0e12d3b42960fca20 | Test cases for default code version | tests/unit/services/rollbar-test.js | tests/unit/services/rollbar-test.js | import { moduleFor, test } from 'ember-qunit';
import Ember from 'ember';
import Rollbar from 'rollbar';
moduleFor('service:rollbar', 'Unit | Service | rollbar', {
needs: ['config:environment']
});
test('it exists', function(assert) {
let service = this.subject();
assert.ok(service);
});
test('notifier', funct... | JavaScript | 0 | @@ -1131,32 +1131,520 @@
.ok(uuid);%0A%7D);%0A%0A
+test('config with default value for code version', function(assert) %7B%0A let service = this.subject();%0A let currentVersion = Ember.getOwner(this).resolveRegistration('config:environment').APP.version%0A assert.equal(service.get('config').code_version, currentVe... |
8ceb8c074327ecd4be630018c7643f84e26f1b08 | Include the extra secrets.js. | server/config/secrets.js | server/config/secrets.js | JavaScript | 0 | @@ -0,0 +1,362 @@
+/** Important **/%0A/** You should not be committing this file to GitHub **/%0A%0Amodule.exports = %7B%0A // Find the appropriate database to connect to, default to localhost if not found.%0A db: process.env.MONGOHQ_URL %7C%7C process.env.MONGOLAB_URI %7C%7C 'mongodb://localhost/ReactWebpackNode',%... | |
ede80b3f5a07d3cc11ba94f9ea40e52e0bb3a8a1 | add endGame method in game menu | src/common/directives/diGameMenu/diGameMenu.js | src/common/directives/diGameMenu/diGameMenu.js | /**
* directive.diGameMenu Module
*
* Description
*/
angular.module('directive.diGameMenu', [
'service.GameManager'
])
.controller('GameMenuCtrl', [
'$scope',
'GameManager',
function (
$scope,
GameManager
){
$scope.continueGame = function continueGame() {
GameManager.setPause();
... | JavaScript | 0 | @@ -334,37 +334,16 @@
odal();%0A
- return this;%0A
%7D;%0A%0A
@@ -496,23 +496,113 @@
- return this
+%7D;%0A%0A $scope.endGame = function endGame() %7B%0A GameManager.gameOver();%0A $scope.closeModal()
;%0A
|
0313147b8cc69c0eb8fe76642922be9b121eadcd | Fix closure loader path in legacy example | examples/legacy-closure-lib/webpack.config.js | examples/legacy-closure-lib/webpack.config.js | var HtmlWebpackPlugin = require('html-webpack-plugin'),
webpack = require('webpack'),
pathUtil = require('path');
module.exports = {
entry: {
app: './src/app.js',
},
output: {
path: './build',
filename: '[name].js',
},
resolve: {
modulesDirectories: ['node_mo... | JavaScript | 0 | @@ -1241,17 +1241,38 @@
-'closure'
+require.resolve('../../index')
,%0A
|
70f855f1a8accf94641c71e48e8544676085fa20 | Rewrite LogoutButton to hooks | src/components/SettingsManager/LogoutButton.js | src/components/SettingsManager/LogoutButton.js | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from '@u-wave/react-translate';
import Button from '@mui/material/Button';
import LogoutIcon from '@mui/icons-material/PowerSettingsNew';
import ConfirmDialog from '../Dialogs/ConfirmDialog';
import FormGroup from '../Form/Group';
cons... | JavaScript | 0 | @@ -65,25 +65,29 @@
mport %7B
-t
+useT
ranslat
-e
+or
%7D from
@@ -323,279 +323,165 @@
nst
-enhance = translate();%0A%0Aclass LogoutButton extends React.Component %7B%0A static propTypes = %7B%0A t: PropTypes.func.isRequired,%0A onLogout: PropTypes.func.isRequired,%0A %7D;%0A%0A constructor(props) %7B%... |
89ab12e6324f4d6fc32280f244bb91cea81482dd | Use correct path in examples when using handlers nested in subdirs | examples/serverless-offline/webpack.config.js | examples/serverless-offline/webpack.config.js | const path = require('path');
const nodeExternals = require('webpack-node-externals');
module.exports = {
entry: './src/handler.js',
target: 'node',
externals: [nodeExternals()],
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel-loader'],
include: __dirname,
exclude: /node_modul... | JavaScript | 0 | @@ -433,16 +433,20 @@
ename: '
+src/
handler.
|
cde39cdfb33867d32c9b9b8e4b19a27592ff00e8 | Stop ending the test twice\! | features-support/step_definitions/features.js | features-support/step_definitions/features.js | 'use strict';
var should = require('should');
var By = require('selenium-webdriver').By;
// Test helper.
function getProjectFromUrl(callback) {
var world = this;
var projectRetrievalUrl = 'http://localhost:' + world.appPort + '/?repo_url=' + encodeURIComponent(world.repoUrl);
world.browser.get(projectRetrieval... | JavaScript | 0.000001 | @@ -4186,31 +4186,24 @@
ew SHA.%0A
-return
world.browse
|
9c3003410adceb851ea3cb2ae16ef37d55046ae4 | add genotype colors constants (#337) | src/genome-browser/genome-browser-constants.js | src/genome-browser/genome-browser-constants.js | // Global constants for GenomeBrowser
export default class GenomeBrowserConstants {
// CellBase constants
static CELLBASE_HOST = "https://ws.zettagenomics.com/cellbase";
static CELLBASE_VERSION = "v5";
// OpenCGA Constants
static OPENCGA_HOST = "https://ws.opencb.org/opencga-test";
static OPEN... | JavaScript | 0 | @@ -4541,10 +4541,169 @@
%7D;%0A%0A
+ // Genotypes colors%0A static GENOTYPES_COLORS = %7B%0A %22heterozygous%22: %22darkblue%22,%0A %22homozygous%22: %22cyan%22,%0A %22reference%22: %22gray%22,%0A %7D;%0A%0A
%7D%0A
|
4453bf5e68f1fd41cebe9e3dc2833d2df7fdfd0f | Update moonpay api | server/lib/v1/moonpay.js | server/lib/v1/moonpay.js | 'use strict';
var axios = require('axios');
var db = require('./db');
var PRIORITY_SYMBOLS = ['BTC', 'BCH', 'ETH', 'USDT', 'LTC', 'XRP', 'XLM', 'EOS', 'DOGE', 'DASH'];
var fiatSigns = {
usd: '$',
eur: '€',
gbp: '£'
};
function save(_id, data) {
var collection = db().collection('moonpay');
return collection... | JavaScript | 0 | @@ -63,16 +63,59 @@
'./db');
+%0Avar API_KEY = process.env.MOONPAY_API_KEY;
%0A%0Avar PR
@@ -508,24 +508,73 @@
/currencies'
+, %7B%0A params: %7B%0A apiKey: API_KEY%0A %7D%0A %7D
).then(funct
|
94f350b9b01a1048f03c9c93bad0fda1f0b9041e | refactor serial writes | lib/board.js | lib/board.js |
var events = require('events'),
child = require('child_process'),
util = require('util'),
serial = require('serialport').SerialPort;
/*
* The main Arduino constructor
* Connect to the serial port and bind
*/
var Board = function (options) {
this.messageBuffer = '';
var self = this;
this.detect... | JavaScript | 0.000001 | @@ -385,24 +385,52 @@
l = serial;%0A
+ self.serial.write('0');%0A
self.ser
@@ -1743,17 +1743,29 @@
l.write(
-m
+'!' + m + '.'
);%0A%7D%0A%0A/*
@@ -1881,53 +1881,20 @@
%7B%0A
-this.serial.write(%0A '00' +%0A pin +%0A (
+val = (%0A
val
@@ -1907,24 +1907,102 @@
t' ?
+%0A
'01' :
+%0A
... |
41edd3fb3a1db6a4cfe3e728663595586f5c39e6 | I never claimed to be a smart man. fix stupid bug | server/routes/download.js | server/routes/download.js | 'use strict';
// We have three possible outcomes when someone requests `/download`,
// 1. serve the compilled, static html file if in production
// 2. serve a compiled handlebars template on each request, in development
// 3. reply with a tar ball of a compiled version of Modernizr, if requested via bower
// this mo... | JavaScript | 0.158806 | @@ -4502,16 +4502,118 @@
%7Cx64)/);
+%0A var query = request.url.search.replace(/%5C.tar(%5C.gz)?%7Czip$/, '');%0A var buildConfig = config(query);
%0A%0A if (
@@ -4854,114 +4854,8 @@
r');
-%0A var query = request.url.search.replace(/%5C.tar(%5C.gz)?%7Czip$/, '');%0A var buildConfig = config(query);
%0A%0A... |
e732a1170294e70fee3b6a30bedec6ddf981b6bd | refactor missions endpoint | server/routes/missions.js | server/routes/missions.js | var express = require('express');
var router = express.Router();
//console.log(__dirname);
const bookshelf = require('../db/knex')
// models
const Mission = require('../Models/Mission');
const Casefile = require('../Models/Casefile');
const User = require('../Models/User');
// collections - TODO not used??? - when is ... | JavaScript | 0.000109 | @@ -701,19 +701,28 @@
let
-files = %7B%7D;
+missionsArray = %5B%5D;%0A
%0A /
@@ -957,32 +957,33 @@
.then((mission
+s
) =%3E %7B%0A //
@@ -1016,16 +1016,17 @@
mission
+s
= missi
@@ -1027,16 +1027,17 @@
mission
+s
.toJSON(
@@ -1035,24 +1035,25 @@
s.toJSON();%0A
+%0A
// loo
@@ -1097,16 +1097,2... |
09214e30538194174194130ccc2e85c70648915d | Change text view init | www/views/backup/text.js | www/views/backup/text.js | define([
'jquery',
'underscore',
'backbone',
'shCore',
'shBrushAppleScript',
'shBrushAS3',
'shBrushBash',
'shBrushColdFusion',
'shBrushCpp',
'shBrushCSharp',
'shBrushCss',
'shBrushDelphi',
'shBrushDiff',
'shBrushErlang',
'shBrushGroovy',
'shBrushHaxe',
'shBrushJava',
'shBrushJavaFX',... | JavaScript | 0.000001 | @@ -1402,108 +1402,15 @@
del(
-%7B%0A id: options.id,%0A volume: options.volume,%0A snapshot: options.snapshot%0A %7D
+options
);%0A
|
0d63f0442e795ec0371e73050076ea3dd60c0725 | Fix for undefined req.onErrorCallback | lib/express_validator.js | lib/express_validator.js | /*
* This binds the node-validator library to the req object so that
* the validation / sanitization methods can be called on parameter
* names rather than the actual strings.
*
* 1. Be sure to include `req.mixinParams()` as middleware to merge
* query string, body and named parameters into `req.params`
*
* ... | JavaScript | 0.00001 | @@ -1946,16 +1946,51 @@
error);%0A
+%0A if(req.onErrorCallback) %7B%0A
re
@@ -2013,16 +2013,24 @@
k(msg);%0A
+ %7D%0A
%7D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.