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
809c28f722b7fa734dc04d9d3796b1a3db562acc
fix clone issue
src/index.js
src/index.js
function OrderedDict() { this.dict = {}; this.arr = []; } OrderedDict.prototype = { set: function(key, val) { if (!(key in this.dict)) { this.arr.push(key); } this.dict[key] = val; return this.dict[key]; }, get: function(key){ return this.dict[key]; }, nth: function(index){...
JavaScript
0
@@ -1486,24 +1486,50 @@ d.arr = +JSON.parse(JSON.stringify( this.arr ;%0A re @@ -1516,24 +1516,26 @@ ify(this.arr +)) ;%0A return
fb67387ad156dde457018a71b736a4d22ba7d58d
Fix client app warnings
src/HstWbInstaller.Imager.GuiApp/ClientApp/src/pages/Read.js
src/HstWbInstaller.Imager.GuiApp/ClientApp/src/pages/Read.js
import React from 'react' import Box from '@mui/material/Box' import Grid from '@mui/material/Grid' import Stack from '@mui/material/Stack' import InputLabel from '@mui/material/InputLabel' import MenuItem from '@mui/material/MenuItem' import FormControl from '@mui/material/FormControl' import Select from '@mui/materia...
JavaScript
0.000001
@@ -732,24 +732,82 @@ %7D);%0A %0A + const handleGetMedias = React.useCallback(() =%3E %7B%0A async fu @@ -823,24 +823,28 @@ tMedias() %7B%0A + cons @@ -881,24 +881,28 @@ ');%0A + + const data = @@ -925,16 +925,20 @@ json();%0A + @@ -985,17 +985,60 @@ %7D);...
c916331986632672541b76ee5962034962c4e27e
indent then callback
src/index.js
src/index.js
'use strict' import _ from 'lodash' import chalk from 'chalk' import inquirer from 'inquirer' import {join} from 'path' import mkdirp from 'mkdirp' import pify from 'pify' import {readdir, readFile, writeFile} from 'fs' import stringReplaceWithObject from 'string-replace-with-object' /** * Generate a file from a temp...
JavaScript
0.000001
@@ -925,16 +925,21 @@ esolve() +%0A .then(() @@ -940,24 +940,26 @@ hen(() =%3E %7B%0A + // creat @@ -977,24 +977,26 @@ le path%0A + + const prompt @@ -1039,24 +1039,26 @@ ateDir)%0A + const prompt @@ -1101,16 +1101,18 @@ ')%0A%0A + + let prom @@ -1125,16 +1125,18 @@ ule%0A + ...
db69004300faf1d850f8127a57859d88205450a7
Fix events to go through the navigation bar layers
Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js
Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js
/** * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * Facebook, Inc. ("Facebook") owns all right, title and interest, including * all intellectual property and other proprietary rights, in and to the React * Native CustomComponents software (the "Software"). Subject to your * compliance with these t...
JavaScript
0.999797
@@ -6720,16 +6720,49 @@ %7D%7D%0A + pointerEvents=%22box-none%22%0A
35aa4470d9577b4a1945161a27caf5da41fa2310
Remove console.logs
src/index.js
src/index.js
import React, {Component} from "react"; import {render} from 'react-dom' import _ from "lodash"; import {Button, Form, Input} from "semantic-ui-react"; export const DECREASE_VALUE = 'DECREASE_VALUE'; export const INCREASE_VALUE = 'INCREASE_VALUE'; /* USAGE EXAMPLES: <Form.Field inline control={NumberPicker} name={...
JavaScript
0.000002
@@ -2343,273 +2343,8 @@ ll;%0A - console.log(%22handleAction%22, actionFilter, currentValue, this.props.value, setVal, event, event.target.value, v);%0A console.log(%22props.value%22, this.props.value);%0A console.log(%22currentValue%22, currentValue);%0A console.log(%22setVal%22, setVal);%...
af4a295e8017e6ce091041277fac2cc8b2725dd4
make node removal save
modules/DataBinding/TemplateRepeatBinding.js
modules/DataBinding/TemplateRepeatBinding.js
import { Make } from '../../util/make.js'; import Binding from './Binding.js'; import { parseExpression } from './Parser.js'; import { bindNode } from './Bind.js'; import { polyInvoke, getPolyParent } from './Util.js'; let TemplateRepeatBinding = Make(/** @lends module:DataBinding.TemplateRepeatBinding# */{ /** ...
JavaScript
0
@@ -3386,32 +3386,240 @@ %7D else %7B%0A + let node = this.itemNodeList.get(item);%0A%0A // if the node doesn't exist something went totally wrong... but it happens :/%0A if (node) %7B%0A @@ -3677,37 +3677,40 @@ ild( -th...
086be3a8694b1f706cfee7cdbc7945f6a6274b76
test doesn't test anything for now.
tests/unit/initializers/load-fixtures-test.js
tests/unit/initializers/load-fixtures-test.js
import Ember from 'ember'; import { initialize } from '../../../initializers/load-fixtures'; import { module, test } from 'qunit'; var container, application; module('Unit | Initializer | load fixtures', { beforeEach: function() { Ember.run(function() { application = Ember.Application.create(); cont...
JavaScript
0.000001
@@ -476,16 +476,19 @@ ert) %7B%0A + // initial
ac707fe380820e355fd4297a7098075c0b9c5d7c
fix rolling log appender auto config
lib/controllers/AbstractApplicationFactory.js
lib/controllers/AbstractApplicationFactory.js
/** * @class AbstractApplicationFactory * * @author: darryl.west@roundpeg.com * @created: 8/10/14 4:12 PM */ var dash = require('lodash' ), CommonValidator = require( '../delegates/CommonValidator' ), MiddlewareDelegate = require( '../delegates/MiddlewareDelegate' ), bodyParser = require('body-parser' ...
JavaScript
0
@@ -1434,16 +1434,20 @@ eRolling +File Appender
5c8aa77c1b128d3ecb65e37217b69b56490c29fb
Update PhantomJS run-jasmine script. This ensures exit code is always returned.
third-party/phantomjs/examples/run-jasmine.js
third-party/phantomjs/examples/run-jasmine.js
var system = require('system'); /** * Wait until the test condition is true or a timeout occurs. Useful for waiting * on a server response or for a ui change (fadeIn, etc.) to occur. * * @param testFx javascript condition that evaluates to a boolean, * it can be passed in as a string (e.g.: "1 == 1" or "$('#bar')...
JavaScript
0
@@ -2312,23 +2312,31 @@ to -access network%22 +open %22 + system.args%5B1%5D );%0A @@ -2355,16 +2355,17 @@ om.exit( +1 );%0A %7D @@ -2616,32 +2616,58 @@ ate(function()%7B%0A + try %7B%0A @@ -2691,32 +2691,36 @@ + + console.log(docu @@ -2763,32 +2763...
71c770465ade936fea3370835fe018fcaeae949b
Fix const to let
src/client.js
src/client.js
require('babel-polyfill'); import fs from 'fs'; import path from 'path'; import Conf from 'conf'; import chalk from 'chalk'; import mkdirp from 'mkdirp'; import frun from 'first-run'; import updateNotifier from 'update-notifier'; import printBlock from '@splash-cli/print-block'; import { defaultSettings, comman...
JavaScript
0.000001
@@ -2920,20 +2920,18 @@ ash%0A -cons +le t token
fd5598e12b64553447049373392ae8a1b4c18681
Change the order of loop$ and out$ streams
src/index.js
src/index.js
import Rx, {Observable as O} from "rx" const objKeys = x => x ? Object.keys(x) : [] const isObj = x => typeof x === "object" && x.constructor === Object const noop = () => { } const mapValuesWhen = (obj, fn) => objKeys(obj).reduce((o, k) => { let a = fn(obj[k]); return a ? ({...o, [k]: a}) : o }, {}) ...
JavaScript
0.000641
@@ -1323,20 +1323,20 @@ st %5B +out$, looped -$, out $%5D =
c0c172b5db94c8694812e4b71546cc75189042ae
Remove unused code
modules/compose-window-global-counter.jsm
modules/compose-window-global-counter.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ var EXPORTED_SYMBOLS = ["ComposeWindowGlobalCounter"]; const Cu = Components.utils; Cu.import("resource://gre/mod...
JavaScript
0.000006
@@ -709,59 +709,8 @@ %7D,%0A - get: function() %7B%0A return this._counter;%0A %7D,%0A cl
f05b23f03446b576802c9efcd129ed5408336b6a
Remove trailing whitespace
lib/rules/disallow-privateregistryproperty.js
lib/rules/disallow-privateregistryproperty.js
var assert = require('assert'); module.exports = function() {}; module.exports.prototype.getOptionName = function() { return 'disallowPrivateRegistryProperty'; }; module.exports.prototype.configure = function(options) { assert( options === true || options === false, this.getOptionName() + ' option requir...
JavaScript
0.999999
@@ -1091,17 +1091,16 @@ method + - %0A @@ -1163,17 +1163,16 @@ ethod%5D + - %0A
9220aa7e314b96c1228ad5753561c8fd1efcedd8
Comment vismod
Client/Script/vismod.js
Client/Script/vismod.js
"use strict"; const THREE = require("three"), factories = require("./factories"), m = require("./math"); require("./FlyControls"); let app = window.app = module.exports = {}; function lerp(a, b, alpha) { return a + ((b - a) * alpha); } app.meta = { location: { lat: lerp(28, 31, Math.random(...
JavaScript
0
@@ -108,16 +108,109 @@ ath%22);%0A%0A +// Mouse & keyboard controls, as provided by the lovely people of the%0A// three.js community.%0A require( @@ -273,16 +273,60 @@ = %7B%7D;%0A%0A +// Classic linear interpolation arithmetic.%0A function @@ -383,16 +383,85 @@ ha);%0A%7D%0A%0A +// Set the initial position of th...
6bfcb915959ecfd539fd939ddb9aa0b5bd876766
fix state resetting on failed purchase
app/components/validated-select-state-component.js
app/components/validated-select-state-component.js
require('../components/validated-select-component'); App.ValidatedSelectStateComponent = App.ValidatedSelectComponent.extend( { optionValuePath:'content.abbreviation', optionLabelPath:'content.name', content: function () { var options = this.get('currentUser.locale.regions') || []; if (options.get('firs...
JavaScript
0
@@ -459,46 +459,84 @@ ;%0A -%7D.property('currentUser. + //Don't make this a computed property of user locale -. + region -' +s%0A %7D.property( )%0A%0A%7D
2d10e8f1cce647c37085cfe8514bc5ad4e07dc81
Remove reference to removed module
src/index.js
src/index.js
if (typeof AFRAME === 'undefined') { throw new Error('Component attempted to register before AFRAME was available.'); } // Components require('./components/motion-capture-recorder.js'); require('./components/motion-capture-replayer.js'); require('./components/avatar-recorder.js'); require('./components/avatar-replay...
JavaScript
0
@@ -373,57 +373,8 @@ ems%0A -require('./systems/motion-capture-recorder.js');%0A requ
024ee679377e490a3d8ac912b47d8271cb54bcbf
Add download chapter option
src/index.js
src/index.js
#!/usr/bin/env node 'use strict'; const program = require('commander'); const animeDl = require('anime-dl'); const chalk = require('chalk'); const updateNotifier = require('update-notifier'); const pkg = require('../package.json'); const ora = require('ora'); const spawn = require('child_process').spawn; updateNotif...
JavaScript
0
@@ -29,16 +29,72 @@ rict';%0A%0A +const fs = require('fs');%0Aconst path = require('path');%0A const pr @@ -119,24 +119,24 @@ ommander');%0A - const animeD @@ -646,16 +646,89 @@ n mpv')%0A + .option('-d, --download %5Bdirectory%5D', 'Download chapter to directory')%0A .parse @@ -820,11 +820,8 @@ hing -... ')...
f586f8134b066d8965e0c774611cfcc32192e596
Use didMount instead of willMount
app/javascript/components/search/QuestionFilter.js
app/javascript/components/search/QuestionFilter.js
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'react-bootstrap/Button'; import Popover from 'react-bootstrap/Popover'; import OverlayTrigger from 'react-bootstrap/OverlayTrigger'; import { inject, observer } from 'mobx-react'; import { getButtonHintString } from './utils'; import Co...
JavaScript
0
@@ -575,12 +575,11 @@ nent -Will +Did Moun
86e78a3e8b0433bb0bb011722700662ea0817b8d
Update main.js
RC/html/js/main.js
RC/html/js/main.js
$( document ).ready(function() { console.log( "ready!" ); $('#dir-top').click(function(){ console.log( "dir-top" ); RC4WD.top(); }); $('#dir-buttom').click(function(){ console.log( "dir-buttom" ); RC4WD.buttom(); }); $('#dir-left').click(function(){ console.log( "dir-left" ); RC4WD.l...
JavaScript
0.000001
@@ -513,13 +513,90 @@ ;%0A %7D);%0A + $( %22#slider%22 ).change(function() %7B%0A console.log( $(this).val() );%0A %7D);%0A %7D);%0A%0A
56bdd8f941d09ec162534ad16a418c093368153a
update to jsx
ReactS3Uploader.js
ReactS3Uploader.js
"use strict"; var React = require('react'), S3Upload = require('./s3upload.js'), objectAssign = require('object-assign'); var ReactS3Uploader = React.createClass({ propTypes: { signingUrl: React.PropTypes.string.isRequired, onProgress: React.PropTypes.func, onFinish: React.PropTyp...
JavaScript
0
@@ -1526,41 +1526,19 @@ urn -React.DOM.input(objectAssign(%7B%7D, +%3Cinput %7B... this @@ -1547,24 +1547,21 @@ rops -, %7B +%7D type -: += 'file' -, onC @@ -1565,18 +1565,18 @@ onChange -: +=%7B this.upl @@ -1587,10 +1587,12 @@ ile%7D -)) + /%3E ;%0A
635a5c0564f33b49ca6ce562dbdc2e1425ea9b8e
Remove unused check for visible notification badge in notification dropdown view
app/assets/javascripts/app/views/notification_dropdown_view.js
app/assets/javascripts/app/views/notification_dropdown_view.js
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.views.NotificationDropdown = app.views.Base.extend({ events: { "click #notifications-link": "toggleDropdown" }, initialize: function(){ $(document.body).click(this.hideDropdown.bind(this)); ...
JavaScript
0
@@ -1064,88 +1064,8 @@ ();%0A - if (!$(%22#notifications-link .entypo-bell:visible%22).length) %7B return true; %7D%0A
f0a9193a5e4efe5dabb921af803789f3d68e3cf6
Add a method for supporting discrete key presses
src/input.js
src/input.js
// Kind of like a singleton const Keyboard = { "KEY_ESC": 27, "KEY_UP": 38, "KEY_DOWN": 40, "KEY_LEFT": 37, "KEY_RIGHT": 39, "KEY_W": 87, "KEY_A": 65, "KEY_D": 68, "KEY_SPACE": 32, "keys": [], "nKeysDown": 0, "keydown_handler": function(evt) { Keyboard.nKeysDown ...
JavaScript
0.000002
@@ -227,16 +227,38 @@ s%22: %5B%5D,%0A + %22ignoreKeys%22: %5B%5D,%0A %22nKe @@ -269,16 +269,16 @@ wn%22: 0,%0A - %22key @@ -307,32 +307,118 @@ n(evt) %7B%0A + if (!Keyboard.ignoreKeys%5Bevt.keyCode%5D) %7B%0A if (!Keyboard.keys%5Bevt.keyCode%5D) Keyboard.nKeysD @@ -425,16 +425,20 @@...
bed89eb48eec7668c0b320f95aca96fa1fee3fad
Remove remaining filter hook.
assets/js/components/legacy-notifications/index.js
assets/js/components/legacy-notifications/index.js
/** * Notification initialization. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2...
JavaScript
0
@@ -1196,86 +1196,8 @@ on'; -%0Aimport UnsatisfiedScopesAlert from '../notifications/UnsatisfiedScopesAlert'; %0A%0Aco @@ -1629,85 +1629,8 @@ %3E ); -%0Aconst addAuthNotification = createAddToFilter( %3CUnsatisfiedScopesAlert /%3E ); %0A%0Aad @@ -1714,16 +1714,16 @@ ation',%0A + %09addCore @@ -1752,239 +1752,8 @@...
8f60609365134f8915d485bdd9cb9750a21a515f
Refactor conditional in selectAccount.
assets/js/modules/tagmanager/datastore/accounts.js
assets/js/modules/tagmanager/datastore/accounts.js
/** * modules/tagmanager data store: accounts. * * Site Kit by Google, Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licens...
JavaScript
0
@@ -1082,26 +1082,8 @@ tion -, isValidAccountID %7D f @@ -1191,16 +1191,86 @@ store';%0A +import %7B ACCOUNT_CREATE %7D from '../../analytics/datastore/constants';%0A const %7B @@ -2964,27 +2964,26 @@ f ( -! isValidAccountID( +ACCOUNT_CREATE === acc @@ -2984,26 +2984,24 @@ == accountID - ) %7C%7C select(
ce0bb2e56c9571b812644cd645ae7799673c6d7b
Refactor de comment.mod
artwork-api/src/main/webapp/src/modules/comment/comment.mod.js
artwork-api/src/main/webapp/src/modules/comment/comment.mod.js
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ (function (ng){ var mod = ng.module('commentModule', ['ngCrud', 'ui.router','artworkModule','itemModule' ]); mod.con...
JavaScript
0
@@ -394,17 +394,16 @@ mment',%0A -%09 %09url: 'c @@ -412,16 +412,16 @@ ments',%0A + @@ -1051,32 +1051,8 @@ /';%0A - %0A %0A @@ -1127,39 +1127,8 @@ d',%0A - %0A %0A @@ -1589,17 +1589,16 @@ %7D%5D -, @@ -1604,28 +1604,16 @@ ...
cbda30771cbda60204cdd34cbf7e97c9ec55de3f
Return section object instead of cursor.
client/templates/course/sidebar/section/section.js
client/templates/course/sidebar/section/section.js
Template.courseSidebarSection.helpers({ 'lessons': function () { // Get lesson IDs array //var lessonIDs = this.lessonIDs; // Get lessons from database //var lessons = Lessons.find({_id: {$in: lessonIDs}}); //return lessons; }, 'editingThisCourse': function () { ...
JavaScript
0
@@ -1102,16 +1102,19 @@ ons.find +One (section
933b25bd9666c3963180e685c202b674b2e6dafd
add margin-bottom of one element to item height calculation, setHeight at start once and then after every resize
components/03-modules/products-grid-item/products-grid-item.js
components/03-modules/products-grid-item/products-grid-item.js
/* global debounce */ (function() { // eslint-disable-line 'use strict'; // to calculate image height based on container width const imageRatio = 0.975, items = [...document.querySelectorAll('.products-grid-item')], mq = '(min-width: 768px)'; function getExtraHeight(item, detailsHeight) { ...
JavaScript
0
@@ -604,88 +604,460 @@ nst -detailsHeight = item.querySelector('.products-grid-item__details').clientHeight; +content = item.querySelector('.products-grid-item__content'),%0A details = item.querySelector('.products-grid-item__details'),%0A detailsHeight = details.offsetHeight;%0A%0A let contentPa...
80c343a568938b018982f5ed793cdda4482cdfda
Revert "temporarily disabled related users (until this does not swamp redis)" because as soon as this branch is merged back related users should be fast again
core/app/assets/javascripts/backbone/views/channel_app_view.js
core/app/assets/javascripts/backbone/views/channel_app_view.js
window.AppView = Backbone.View.extend({ el: $('#container'), initialize: function(options) { if (typeof(options)==='undefined') {options = {};} this.channelCollectionView = new ChannelCollectionView({ collection: Channels }); this.channelView = new ChannelView(); this.views = []; //[new...
JavaScript
0
@@ -307,14 +307,8 @@ s = -%5B%5D; // %5Bnew
63e2e5f51216c4db313d83aa941043fe126ffe73
Fix linter issue.
tests/rollup-config.js
tests/rollup-config.js
import babel from 'rollup-plugin-babel' import nodeResolve from 'rollup-plugin-node-resolve' import commonjs from 'rollup-plugin-commonjs' import json from 'rollup-plugin-json' import glob from 'glob' const START = '\0START' export default { entry: START, dest: './build/tests.js', format: 'umd', plugins: [ ...
JavaScript
0
@@ -801,16 +801,17 @@ k.js': %5B + 'simple'
adf906902dfda70135bdc07f540b8c863d31613e
Update info.js
tests/services/info.js
tests/services/info.js
/*! * qwebs * Copyright(c) 2016 Benoît Claveau * MIT Licensed */ "use strict"; const Readable = require('stream').Readable; class InfoService { constructor() { }; whoiam() { return "I'm Info service."; }; getInfo(request, response) { let content = { whoiam: this.whoiam() }; return response.se...
JavaScript
0
@@ -84,24 +84,27 @@ %0A%0Aconst -Readable +PassThrough = requi @@ -116,24 +116,27 @@ tream'). -Readable +PassThrough ;%0A%0Aclass @@ -424,16 +424,19 @@ new -Readable +PassThrough ;%0A%09%09
eeafdff9f1c049c065943278186f59b42de31f18
Update info.js
tests/services/info.js
tests/services/info.js
/*! * qwebs * Copyright(c) 2016 Benoît Claveau * MIT Licensed */ "use strict"; const PassThrough = require('stream').PassThrough; class InfoService { constructor() { }; whoiam() { return "I'm Info service."; }; getInfo(request, response) { let content = { whoiam: this.whoiam() }; return respo...
JavaScript
0
@@ -84,27 +84,24 @@ %0A%0Aconst -PassThrough +Readable = requi @@ -113,28 +113,128 @@ tream'). -PassThrough; +Readable;%0A%0Aclass MyReadable extends Readable %7B%0A constructor(options) %7B%0A super(options);%0A %7D%0A%0A _read() %7B%7D;%0A%7D %0A%0Aclass
84d07f0b15d389c1f17661c14012b7cd63b50e38
Delete Task Confirmation
build/app/js/tasksCtrl.js
build/app/js/tasksCtrl.js
angular.module("mirmindr") .controller("tasksCtrl",function($scope,$mdToast,$mdDialog,$firebaseArray){ var ref = new Firebase("https://mirmindr.firebaseio.com"); var authData = ref.getAuth(); function setUserRef(uid){ $scope.userRef = ref.child("users").child(uid); $scope.authenticated = true; $scope....
JavaScript
0.000001
@@ -1320,33 +1320,336 @@ -$scope.tasks.$remove(task + var confirm = $mdDialog.confirm()%0A .title('Are you sure you want to delete this task?')%0A .textContent('This cannot be undone.')%0A .ok('Yes')%0A .cancel('No');%0A $mdDialog.show(confirm).then(function() %7B...
ff19cc28077988eb54417fb0ed1cda947a3f10d2
Update proxy-http tests with requires on top level scopes
test/integration/sanity/proxy-http.test.js
test/integration/sanity/proxy-http.test.js
var expect = require('chai').expect; describe('proxy', function () { var ProxyConfigList = require('postman-collection').ProxyConfigList, proxy = require('http-proxy'), server, testrun, port = 9090, proxyHost = 'localhost', sampleHttpUrl = 'http://google.com', ...
JavaScript
0
@@ -1,78 +1,4 @@ -var expect = require('chai').expect;%0A%0Adescribe('proxy', function () %7B%0A var @@ -58,28 +58,24 @@ ConfigList,%0A - proxy = @@ -97,24 +97,93 @@ roxy'),%0A -%0A + expect = require('chai').expect;%0A%0Adescribe('proxy', function () %7B%0A +var server,
1f5a3fe6a319790e924666ea3827789b7ed6fdb2
Remove unused dependency.
blocker.js
blocker.js
var ok = require('assert').ok var util = require('util') function Blocker (stream) { this.stream = stream this.stream.on('readable', this._read.bind(this)) } Blocker.prototype.block = function (size, callback) { ok(!this._next, 'size already set') if (size == 0) { callback(null, new Buffer(0))...
JavaScript
0
@@ -26,35 +26,8 @@ ).ok -%0Avar util = require('util') %0A%0Afu
d7f2be131e1510e7e69a6867fd604cdb46aa2637
Extend loading screen to cover Discord's
appengine/static/splash.js
appengine/static/splash.js
(function () { "use strict"; if ("Windows" in self) { const applicationView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); const backgroundColor = { a: 255, r: 32, g: 34, b: 37 }; const foregroundColor = Windows.UI.Colors.white; const titleBar = applicationView....
JavaScript
0
@@ -2161,64 +2161,104 @@ ent. -body.insertBefore(container, document.body.firstChild);%0A +addEventListener(%22DOMContentLoaded%22, function ondomcontentloaded(event) %7B%0A try %7B%0A @@ -2258,35 +2258,38 @@ document. -add +remove EventListener(%22D @@ -2310,86 +2310,657 @@ d%22, -even...
1f7a215587627bb8d1c45a1debf47fcf6b8ec6f3
Return the instance from jss.use()
lib/Jss.js
lib/Jss.js
'use strict' var StyleSheet = require('./StyleSheet') var Rule = require('./Rule') var PluginsRegistry = require('./PluginsRegistry') /** * Jss constructor. * * @api public */ function Jss() { this.plugins = new PluginsRegistry() } module.exports = Jss /** * Creates a new instance of Jss. * * @see Jss * @a...
JavaScript
0.999999
@@ -1226,10 +1226,23 @@ use(fn)%0A +%09return this%0A %7D%0A
2760397b4bc64c9424b5fccfcd16c654d136040b
delete throw on bad response from api
lib/api.js
lib/api.js
const rp = require('request-promise') module.exports = async function (method, options = {}) { if (!options.v) { options.v = 5.71 } if (!options.access_token) { options.access_token = this.settings.token } try { const body = await rp({ url: `https://api.vk.com/method/${method}`, met...
JavaScript
0
@@ -380,105 +380,8 @@ %7D)%0A%0A - const %7B error %7D = body%0A%0A if (error) %7B%0A throw new Error(JSON.stringify(error))%0A %7D%0A%0A
c5bc4811bb30fcf05b13bcdb303f9e5f3a4374f1
Change lifetime report to include active/inactive status
stats-server/lib/reporting/reports/instance_life_timeline.js
stats-server/lib/reporting/reports/instance_life_timeline.js
var genericLoader = require('./generic_report_loader'); var AGGREGATION_STEPS = [ { $project: { instanceId: 1, date: 1, _id: 0 } }, { $group: { _id: "$instanceId", activityDates: { $push: "$date"} } }, { $project: { instanceId: "$_id", _id: 0, activityDates: 1 } } ]; function wrapResults(results) { return ...
JavaScript
0
@@ -115,16 +115,27 @@ date: 1, + active: 1, _id: 0 @@ -202,15 +202,45 @@ sh: -%22$date%22 +%7B date: %22$date%22, active: %22$active%22 %7D %7D %7D
f352f65b3cbc2bee45491d04bae1c59a64f2426c
test bogus
config/config.js
config/config.js
'use strict';sdsdds module.exports = require('./env/' + process.env.NODE_ENV + '.js');
JavaScript
0.999559
@@ -10,14 +10,8 @@ ct'; -sdsdds %0A%0Amo
86c06cb6b639561a5e8d512490e2e5393d7ed02e
use ui-click instead of click
super.demo.day/animation-timeline/animation-timeline.js
super.demo.day/animation-timeline/animation-timeline.js
BEST.scene('super.demo.day:animation-timeline', 'HEAD', { /** * Behaviors: * Target each circle in our tree * using selectors and set size, style * and other Famous properties. */ behaviors: { '.little-circle': { 'size': [200, 200], 'style'...
JavaScript
0.000004
@@ -1273,16 +1273,19 @@ ' +ui- click':
a1bd33f65ccc3c56f525526a419be2bcaa007a92
increase fontsize to 2x browser default
simplyread.js
simplyread.js
/* See COPYING file for copyright, license and warranty details. */ if(window.content && window.content.document && window.content.document.simplyread_original === undefined) window.content.document.simplyread_original = false; function simplyread(nostyle, nolinks) { /* count the number of <p> tags that are direct c...
JavaScript
0.000001
@@ -2363,10 +2363,10 @@ th: -32 +16 em; @@ -2468,10 +2468,10 @@ dth: -34 +17 em; @@ -2482,21 +2482,21 @@ ing: -2em 8 +1em 4 em 50%25 -8 +4 em;%22 @@ -2556,24 +2556,24 @@ ght:1.4;%22 +%0A - %09%09%22 text-al @@ -2617,16 +2617,53 @@ ns:auto; +%22 +%0A %22 font-size: 2em %7D%22;%0A%09%09/*
a085ad50052595d906d042cc57253539b9d0211b
Fix Splitter sample
demo/examples/Splitter.js
demo/examples/Splitter.js
import React from 'react'; import { Splitter, SplitterSide, SplitterContent, Page, Toolbar, Button } from '../../src/index.js'; import MyToolbar from './MyToolbar'; export default class extends React.Component { constructor(props) { super(props); this.state = { showLeft: false, show...
JavaScript
0
@@ -1362,124 +1362,73 @@ Page -%3E%0A %3CToolbar%3E%0A %3Cdiv className=%22center%22%3Eons-splitter-content%3C/div%3E%0A %3C/Toolbar + renderToolbar=%7B() =%3E %3CMyToolbar title=%22ons-splitter-content%22 /%3E%7D %3E%0A @@ -1443,17 +1443,16 @@ %3Cp%3E%0A -%0A ...
e77c7bc9573a2162d6318ef572ab7827489a601c
Enable clearProperties by default
src/style_manager/config/config.js
src/style_manager/config/config.js
export default { stylePrefix: 'sm-', sectors: [], // Specify the element to use as a container, string (query) or HTMLElement // With the empty value, nothing will be rendered appendTo: '', // Hide the property in case it's not stylable for the // selected component (each component has 'stylable' prope...
JavaScript
0
@@ -770,9 +770,12 @@ es: -0 +true ,%0A%0A
363d11b07bf650ca1185ff44c7f98933632322dd
Update config.js
config/config.js
config/config.js
/** * Created by anonymoussc on 27/11/15 21:16. */
JavaScript
0.000002
@@ -46,8 +46,191 @@ 16.%0A */%0A +%0Avar%0A config = %7B%0A generator : '',%0A workspaces : './../../../app_components',%0A templatesDirectory: './templates'%0A %7D;%0A%0Amodule.exports = config;
aa9f4aa76c0ba85e11a6f787a54bd047eb0619f7
Update Sectors
src/style_manager/model/Sectors.js
src/style_manager/model/Sectors.js
import Backbone from 'backbone'; import Sector from './Sector'; export default Backbone.Collection.extend({ model: Sector, initialize() { this.listenTo(this, 'reset', this.onReset); }, onReset(models, opts = {}) { const prev = opts.previousModels || []; prev.forEach(sect => sect.get('properties')...
JavaScript
0.000001
@@ -4,31 +4,35 @@ ort -Backbone +%7B Collection %7D from ' -backb +comm on -e ';%0Ai @@ -81,54 +81,42 @@ ult -Backbone.Collection.extend(%7B%0A model: Sector,%0A +class Sectors extends Collection %7B %0A i @@ -180,17 +180,16 @@ et);%0A %7D -, %0A%0A onRe @@ -320,11 +320,44 @@ );%0A %7D%0A%7D -) +%0A%0A...
59cf61758ab4a508482fff850d912b0f28dd6084
Fix error response type error
lib/app.js
lib/app.js
'use strict'; var _ = require('underscore'), http = require('http'), querystring = require('querystring'), url = require('url'), Command = require('./command'), NameMap = require('./name-map'); var App, PayloadError; App = function(config) { if (!(this instanceof App)) { return new App(config); } ...
JavaScript
0.000188
@@ -1320,24 +1320,35 @@ res.end(e +.toString() );%0A %7D els @@ -1806,16 +1806,27 @@ es.end(e +.toString() );%0A
936cc20d3c2a7dc1d1da322b1745758cfd3a5189
configure paths for image resizer client code
src/config.js
src/config.js
require.config({ "wrap": true, "baseUrl": ".", "keepBuildDir": true, "paths": { "mobifyjs": ".", "mobifyjs/utils": "../bower_components/mobifyjs-utils/utils", "mobifyjs/jazzcat": "../bower_components/jazzcat-client/jazzcat" }, });
JavaScript
0
@@ -256,16 +256,104 @@ jazzcat%22 +,%0A %22mobifyjs/resizeImages%22: %22../bower_components/imageresize-client/resizeImages%22 %0A %7D,%0A
1b039b3e1c99c483c8c38141e902a94f9ad47d6c
update bets
player.js
player.js
var cardLogic = require( './cardLogic' ); cardsSetup = { getRank: function( rank ) { if( rank !== 'K' && rank !== 'Q' && rank !== 'J' && rank !== 'A' ) return rank; switch( rank ) { case 'A': return 14; break; case 'K': return 13; break; case 'Q': ret...
JavaScript
0.000001
@@ -2550,24 +2550,107 @@ d.value ) %7B%0A + if( game_state.current_buy_in === 0 ) betAmount += game_state.minimum_raise;%0A if( ga
d7336153e5be0c4a60bac6a9376a38b6f0e631f1
fix scroll offset issue
client/js/Messenger.js
client/js/Messenger.js
define(['constants/NotificationConstant'], function (NotificationConstant) { function Messenger(notificationStrategy, view) { this.currentStrategy = notificationStrategy; this.view = view; } Messenger.prototype.push = function (data) { if (this.currentStrategy === NotificationConsta...
JavaScript
0
@@ -1033,16 +1033,33 @@ t.left + + window.scrollX + rect.wi @@ -1114,16 +1114,33 @@ ct.top + + window.scrollY + %22px%22);%0A
25f284daec5dc90fb595f5b5402fdd2f3376100d
Add unit test for breadcrumbs error scenario (ID not in tree)
test/unit/services/test-get-breadcrumbs.js
test/unit/services/test-get-breadcrumbs.js
const expect = require('chai').expect const sinon = require('sinon') require('sinon-bluebird') const proxyquire = require('proxyquire') const ohDataHelper = require('../../helpers/organisational-hierarchy-helper') const breadcrumbDataHelper = require('../../helpers/breadcrumb-helper') describe('services/get-breadcrumb...
JavaScript
0
@@ -4025,12 +4025,472 @@ t/)%0A %7D) +%0A%0A it('should throw an error when passed an id which does not exist in the organisational tree', function () %7B%0A var getTree = %7B%0A get: sinon.stub().returns(ohDataHelper.ORGANISATIONAL_HIERARCHY_TREE_MULTIPLE_BRANCHES)%0A %7D%0A var getBreadcrumbs = proxy...
d50055411b60a29b6f0fff636ca849f89a03aabf
add http to example urls so tests will pass
src/common/testData.js
src/common/testData.js
const testBooks = { books: [ { title: 'A Book Titled 1', subtitle: 'A Subtitle', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', authors: ['Author One', 'Author Two'], imageLinks: { thumbnail: 'cover.gif' }, id: 'nggnmAEACAAJ', shelf: 'wantToRead' }, { title: 'Boo...
JavaScript
0
@@ -230,16 +230,23 @@ bnail: ' +http:// cover.gi @@ -247,24 +247,24 @@ ver.gif' %7D,%0A - %09%09%09id: 'nggn @@ -534,16 +534,23 @@ bnail: ' +http:// pic2.jpg @@ -805,24 +805,24 @@ iter Six'%5D,%0A - %09%09%09imageLink @@ -838,16 +838,23 @@ bnail: ' +http:// bookCove
0f57f0b5f195548a1ce2d40215ffb95fe9025e55
add no-op comment to make it more clear
lib/dependencies/HarmonyCompatibilityDependency.js
lib/dependencies/HarmonyCompatibilityDependency.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const InitFragment = require("../InitFragment"); const NullDependency = require("./NullDependency"); /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ /** @typedef {import("../Depen...
JavaScript
0
@@ -1195,16 +1195,29 @@ lates) %7B +%0A%09%09// no-op%0A%09 %7D%0A%0A%09/**%0A
a58632b0ee8bd5defd32bac7262c63e16f8229c2
Disable uservoice widget in mobile devices
app/assets/javascripts/lib/uservoice.js
app/assets/javascripts/lib/uservoice.js
var uservoiceKey = $('meta[name="uservoice_key"]').attr('content'); var uservoiceSSO = $('meta[name="uservoice_sso"]').attr('content'); var hasUservoiceKey = [null, ''].indexOf(uservoiceKey) === -1 var hasUservoiceSSO = [null, ''].indexOf(uservoiceSSO) === -1 if (hasUservoiceKey) { (function(){ var uv=document.c...
JavaScript
0.000001
@@ -273,16 +273,37 @@ voiceKey + && !$.browser.mobile ) %7B%0A (f
1e47fff12e25cf22a314ec42ef25877cd5af255a
Fix test for no-permission component
tests/integration/components/no-permission/component-test.js
tests/integration/components/no-permission/component-test.js
import { expect } from 'chai' import { describe, it } from 'mocha' import { setupComponentTest } from 'ember-mocha' import hbs from 'htmlbars-inline-precompile' import { find } from 'ember-native-dom-helpers' describe('Integration | Component | no permission', function() { setupComponentTest('no-permission', { i...
JavaScript
0.000001
@@ -440,22 +440,13 @@ .to. -have.length(1) +be.ok %0A
7e2174da9dc6e1d8c555859a50fbbb961da5e65e
create alert div if it is missing
router.js
router.js
(function() { uR.mountElement = function mountElement(names,options) { options = options || {}; if (options.ur_modal) { options.mount_to = options.mount_to || uR.config.mount_alerts_to; } var mount_to = options.mount_to || uR.config.mount_to var target = document.querySelector(mount_to); ...
JavaScript
0.000001
@@ -5246,14 +5246,230 @@ ),%0A %7D;%0A + if (!document.querySelector(%22#alert-div%22)) %7B // #! TODO this is hardcoded, but am unsure what else to do CCC%0A var e = document.createElement(%22div%22);%0A e.id = %22alert-div%22;%0A document.body.appendChild(e);%0A %7D%0A %7D)();%0A
816ee5faf857781bc3d2cb5a04ca90ade0baf814
use doOnNext instead of meaningless map
lib/app.js
lib/app.js
'use strict'; const Rx = require('rx'); const express = require('express'); const config = require('./config'); const SioFb = require('./sioFb'); const SioBot = require('./sioBot'); const pkg = require('./../package.json'); module.exports = function() { const errorHandler = (e) => { console.error(e); if (e...
JavaScript
0
@@ -1963,35 +1963,40 @@ event)%0A . -map +doOnNext (() =%3E %7B%0A @@ -2164,11 +2164,16 @@ . -map +doOnNext (()
4bd42ad4d43ba8a7a307078e2e6210e197df27a4
Remove coffee script inheritance.
src/config.js
src/config.js
var _ = require('underscore'); var fs = require('fs'); /** * @param {String|Object} filePath. If param is a String then it is treated as a file path to a config file. * If param is an Object then it is treated as a parsed config file. * @constructor */ function Config(filePath) { var data; if (_.isObject(fileP...
JavaScript
0
@@ -712,38 +712,8 @@ ary, - (function(_this) %7B%0A return fun @@ -730,26 +730,24 @@ apiName) %7B%0A - if (!/%5E%5C @@ -774,18 +774,16 @@ ame)) %7B%0A - th @@ -916,22 +916,18 @@ %22);%0A - %7D%0A +%7D%0A retu @@ -929,17 +929,16 @@ return -_ this._va @@ -976,17 +976,14 @@ ;%0A ...
31242b8f51aa7c9cf60bd8f06ab9b93236f2cbbb
remove manually set flags in global.js
config/global.js
config/global.js
const util = require('util'); const { KEEP_ALIVE = false, BACKEND_URL = 'http://localhost:3030/', PUBLIC_BACKEND_URL, EDTR_SOURCE = undefined, EDITOR_URL = undefined, SENTRY_DSN = false, SC_DOMAIN = 'localhost', SC_THEME = 'default', SC_TITLE = 'HPI Schul-Cloud', SC_SHORT_TITLE = 'Schul-Cloud', DOCUMENT_BAS...
JavaScript
0.000001
@@ -731,25 +731,16 @@ _ENABLED - = 'true' ,%0A%09LIBRE @@ -836,17 +836,8 @@ BLED - = 'true' ,%0A%09E
a299d107bef7362930c264be80b8df76163b0f5c
fix wrong property name
local/src/LocalClient.js
local/src/LocalClient.js
'use strict' const greenfield = require('./protocol/greenfield-client-protocol') const LocalCompositor = require('./LocalCompositor') module.exports = class LocalClient { /** * * @param {wfc.Connection} wfsConnection * @returns {Promise<LocalClient>} */ static create (wfsConnection) { return new P...
JavaScript
0.00172
@@ -1002,17 +1002,22 @@ lClient. -c +localC omposito
c59323bcc4f28717c649fd0df0b737c2027a6419
deploy included in devel as './deploy'
root/devel.js
root/devel.js
define([ 'amber/devel', 'deploy', // --- packages used only during development begin here --- '{%= namespace %}/{%= name %}-Tests' // --- packages used only during development end here --- ], function (amber) { return amber; });
JavaScript
0.000001
@@ -26,16 +26,18 @@ ',%0A ' +./ deploy',
69d1382630350ffa788a2cb2276c61a4ca1bf695
clear out routes template
routes.js
routes.js
/* --------------------- routes.js For web clients (http and https) you can define an optional RESTful mapping to help route requests to actions. If the client doesn't specify and action in a param, and the base route isn't a named action, the action will attempt to be discerned from this routes.js file. - routes re...
JavaScript
0.000001
@@ -1699,113 +1699,4 @@ %7B%7D; -%0A%0Aexports.routes = %7B%0A get: %5B%0A %7B path: %22/:thing/:stuff%22, action: %22mimeTest%22 %7D, // (GET) /api/users%0A %5D%0A%7D;%0A
d80758e834d8ac5b5a5924a11aa4c4346de26f54
Remove unused `cookieParser` and `session` middlewares
lib/app.js
lib/app.js
#!/usr/bin/env node /*jshint globalstrict: true, white: false, unused:false */ /*globals require, exports, console, module, process */ /* * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTI...
JavaScript
0
@@ -1494,87 +1494,8 @@ ()); -%0Aapp.use(express.cookieParser('your secret here'));%0Aapp.use(express.session()); %0A%0Aco
50036a3aceeddb2e4daa37ff123ad1773c997a5d
Add test for #flatMap
test/kamo_test.js
test/kamo_test.js
var kamo = require('../src/kamo'); var assert = require('assert'); var sinon = require('sinon'); describe('kamo.Stream', function () { describe('.fromEventHandlerSetter', function () { it('creates a new Stream from an object and its setter', function () { var spy = sinon.spy(); var object = {}; ...
JavaScript
0
@@ -4845,13 +4845,541 @@ );%0A %7D); +%0A%0A describe('#flatMap', function () %7B%0A it('creates a new Stream for each source in the source Stream, flatten into one Stream', function () %7B%0A var spy = sinon.spy();%0A var stream = new kamo.Stream();%0A var innerStream = new kamo.Stream();%0A ...
6bbebf8d32525d50c83617d54ace3979bde39eb5
Update base.js
www/assets/js/nls/fr/base.js
www/assets/js/nls/fr/base.js
define({ "_current" : "fr", "user": "utilisateur", "username": "username", "firstname": "prénom", "lastname": "nom", "my-sheets": "mes fiches", "search": "recherche", "home" : "accueil", "add" : "ajouter", "cancel" : "annuler", "memo" : "mémo", "settings": "configuration"...
JavaScript
0.000001
@@ -1093,16 +1093,17 @@ d'arriv%C3%A9 +e %22,%0A @@ -2485,17 +2485,18 @@ %22 : %22pro -t +pr i%C3%A9taire%22 @@ -2520,17 +2520,16 @@ e%22 : %22N%C3%A9 -e le%22,%0A
77313ee6233597bc70e763c9c24719a2b5c90147
Add augment constructor
error.js
error.js
var util = require("util"); exports.HttpError = function(message, code) { Error.call(this, message); //Error.captureStackTrace(this, arguments.callee); this.message = message; this.code = parseInt(code, 10); this.augment = null; }; util.inherits(exports.HttpError, Error); (function() { this.t...
JavaScript
0.000001
@@ -64,16 +64,25 @@ ge, code +, options ) %7B%0A @@ -245,16 +245,36 @@ ugment = + options ? options : null;%0A%7D @@ -3207,16 +3207,25 @@ tion(msg +, options ) %7B%0A @@ -3449,32 +3449,41 @@ faultMsg, status +, options );%0A%0A
15de660bd6c2b3428fade78b3253e053979bbc83
Use optional property accessor to shorten code
Storyshots.test.js
Storyshots.test.js
import Enzyme, { mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import initStoryshots, { multiSnapshotWithOptions, } from '@storybook/addon-storyshots'; import { createSerializer } from 'enzyme-to-json'; Enzyme.configure({ adapter: new Adapter() }); const MAKE_STYLE_REGEXP = /((?:makeStyles|M...
JavaScript
0
@@ -1163,21 +1163,16 @@ s%0A if ( -%0A json.pro @@ -1177,54 +1177,9 @@ rops - &&%0A json.props.className &&%0A json.props +? .cla @@ -1184,16 +1184,17 @@ lassName +? .match(M @@ -1210,19 +1210,16 @@ _REGEXP) -%0A ) %7B%0A
5738a5561929e73e050eb648488ce098a9b33bb8
change version to 0.9 to indicate non-production ready
spectrum-angular.js
spectrum-angular.js
/*! * Spectrum Angular v1.0 * https://github.com/ispringer/spectrum-angular * * Copyright 2014, Ian Springer * Released under the Apache License, version 2.0 */ angular.module('spectrum', []) .directive('spectrum', function($log, $window, $timeout) { var DEFAULT_OPTIONS = { preferredFormat: 'hex6', sh...
JavaScript
0
@@ -22,11 +22,11 @@ ar v -1.0 +0.9 %0A *
fe5750cfda86e46248eda1f628bff342566f3295
Fix regex
tasks/gwt.js
tasks/gwt.js
var args = require('yargs').argv; var cmd = require('child_process'); var fs = require('fs-extra'); var gulp = require('gulp'); var gutil = require('gulp-util'); var rename = require('gulp-rename'); var replace = require('gulp-replace'); var pwd = process.cwd(); var gwtproject = 'vaadin-components-gwt'; var version = ...
JavaScript
0.999999
@@ -2737,17 +2737,17 @@ =%22%5B%5C.%5C/%5D -+ +* sdm.js%22.
36adef60369aa0a3babcb008b53a50dfbdba810b
Clean unused in webpack.config.js
example/webpack.config.js
example/webpack.config.js
const path = require('path'); const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); const ExtractTextPlugin = require('mini-css-extract-plugin'); const HtmlPlugin = require('html-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin'); const aliasModules = (names) => { ...
JavaScript
0.000001
@@ -801,33 +801,8 @@ %5D;%0A%0A -const temp = new Set();%0A%0A cons
0f267e8e7bfa1e86215bb4ac21f8a2fe14b539ba
Use ctx instead of this for accessing log
tasks/run.js
tasks/run.js
'use strict'; var spawn = require('child_process').spawn; var task = { id : 'run', author : 'Indigo United', name : 'Run', description : 'Run command. This can be used to run anything you want, just like you would in the command line.', options: { cmd: { de...
JavaScript
0
@@ -616,41 +616,8 @@ ld,%0A - that = this,%0A @@ -645,16 +645,16 @@ t = '',%0A + @@ -937,36 +937,35 @@ -this +ctx .log.infoln('Run @@ -1354,12 +1354,11 @@ -that +ctx .log @@ -1744,20 +1744,19 @@ -this +ctx .log.inf @@ -1961,24 +1961,24 @@ opt.c...
02f813b9a7928b4c72916fc917cdc258a46e2e19
remove unecessary function on protobuf example [skip ci]
examples/19-binary-data-protobuf.js
examples/19-binary-data-protobuf.js
/** * Copyright (c) Jonathan Cardoso Machado. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * Example showing how to send binary data using the READFUNCTION option * In this case, we are uploading a proto...
JavaScript
0
@@ -2357,213 +2357,8 @@ %0A%7D%0A%0A -function nodeLibcurlSimpleRpcImpl(method, requestData, callback) %7B%0A callWithLibcurl(%0A %60$%7BHOST%7D/$%7Bmethod.parent.parent.name%7D.$%7Bmethod.parent.name%7D/$%7Bmethod.name%7D%60,%0A requestData,%0A callback,%0A )%0A%7D%0A%0A asyn
ca891bf1c3e4bcd666fb696ec6ee88ccc80b888d
Make sure organization fields get sent to the API
public/js/instance-admin/actions/person-edit.js
public/js/instance-admin/actions/person-edit.js
/*global popit:false console:false */ define(['jquery', 'jquery.easytabs'], function ($) { "use strict"; var fields = [ 'name', 'summary', 'birth_date', 'death_date' ]; var onInvalid = function(model, err) { for ( var i = 0; i < fields.length; i++ ) { var field = fields[i]; if ( err[field]...
JavaScript
0
@@ -163,16 +163,32 @@ th_date' +, 'organization' %5D;%0A%0A v
9ccf278799064adf53d697d995435bfc78131b9c
Add loading function
includes/js/calculator.js
includes/js/calculator.js
var mode = 0; //primary var primary = 0, secondary = 0, tertiary = 0; function preload(image) { $('<img/>')[0].src = image; } var loading_img = "../includes/images/loading.gif"; preload(loading_img); function update_selected(name) { if(mode == 0) { $("#primary").text(name); $("#secondary").text("--"); $("#te...
JavaScript
0.000002
@@ -197,16 +197,299 @@ _img);%0A%0A +function loading(target) %7B%0A%09var header = $(target).find('tr:eq(0)');%0A%09var col_count = header.find('th').length;%0A%09$(target).empty();%0A%09$(target).append(header);%0A%09$(target).append(%22%3Ctr%3E%3Ctd colspan='%22+col_count+%22' style='text-align:center;'%3E%3Cimg sr...
551ebc63574357f797d2cc3d9e1690d42d13e1be
delete commented out code
routes.js
routes.js
/* Agora Forum Software Copyright (C) 2016 Gregory Sartucci License: AGPL-3.0, Check file LICENSE */ Router.onBeforeAction(function() { if (Meteor.user() && Meteor.user().isBanned) { return this.render('forbidden'); } else { return this.next(); } }); Router.route('/admin', { ...
JavaScript
0
@@ -1050,17 +1050,16 @@ rum', %7B%0A -%0A onRu @@ -1391,270 +1391,4 @@ %7D);%0A -%0A/*Router.route('/search/:_id', function() %7B%0A var id = this.params._id;%0A%0A if (this.ready()) %7B%0A var tag = Tags.findOne(%7B_id: id%7D);%0A if (tag) this.render('search', %7Bdata: tag%7D);%0A el...
57c2a651a7118d3ae0fbaa8e7111a0f78757ba83
Remove suggestion tests
tests/integration/components/x-toggle/component-test.js
tests/integration/components/x-toggle/component-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import emberVersionGTE from 'ember-test-helpers/has-ember-version'; moduleForComponent('x-toggle', 'Integration | Component | x toggle', { integration: true }); test('it renders', function(assert) { this.render(h...
JavaScript
0
@@ -646,1889 +646,8 @@ );%0A%0A -test('rejecting %22suggestion%22 disables component and sets %22invalid-state%22 class', function(assert) %7B%0A const done = assert.async();%0A this.on('onToggle', (hash) =%3E %7B%0A assert.equal(hash.code, 'suggestion', 'onToggle code is a suggestion');%0A assert.equal(hash.n...
4ddd6a002f2fa02f8fd50a031c3d310b89076f20
Fix character room bug
static/js/scenarioEditor/roomView/roomView.js
static/js/scenarioEditor/roomView/roomView.js
'use strict'; angular.module('scenarioEditor.roomView', ['ngRoute', 'scenarioServices']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/roomView', { templateUrl: '/scenario/roomView/', controller: 'roomCtrl' }); }]) ...
JavaScript
0.000001
@@ -1722,24 +1722,25 @@ usedIds = %5B +0 %5D;%0A @@ -1959,17 +1959,16 @@ rs%5Bj%5D);%0A -%0A @@ -2320,16 +2320,47 @@ if( +$scope.selectedChar == null && chars.le
944b5a10374c26320b847f0acbfc12771e5ddc1f
kill unused path
node-tests/unit/utils/cordova-assets-test.js
node-tests/unit/utils/cordova-assets-test.js
'use strict'; var td = require('testdouble'); var cordovaAssets = require('../../../lib/utils/cordova-assets'); var expect = require('../../helpers/expect'); var fs = require('fs'); var path = require('path'); var MockUI = require('ember-cli/tests/helpers/mock-u...
JavaScript
0.000005
@@ -217,47 +217,8 @@ ');%0A -var path = require('path');%0A var
607cc31955c200263645cfe5eddcad94360c88b4
Fix 'test' login provider
routes/auth/test.js
routes/auth/test.js
var express = require('express'); var router = express.Router(); var utils = require('../../utils'); var models = require('../../models'); var User = models.User; function invalid_type(req, res, next) { res.status(401).send('Invalid request type'); } login_handler = function(req, res, next) { var email = req.bo...
JavaScript
0.000029
@@ -830,16 +830,31 @@ t_test() +; return false; '%22,%0A lo @@ -894,16 +894,31 @@ t_test() +; return false; '%22%0A%7D;%0A%0Ar
98b910b87acffd2821b2cdbd00d1f28df406503e
Fix fetching url
nodist.js
nodist.js
/*! * nodist * A Node version manager for the windows folks out there. * Copyright 2012 by Marcel Klehr <mklehr@gmx.net> * * (MIT LICENSE) * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
JavaScript
0.002266
@@ -2612,18 +2612,17 @@ rceUrl+' -%5C%5C +/ '+(versi @@ -2651,18 +2651,17 @@ ersion+' -%5C%5C +/ node.exe
581df4f4c2b94e63a1af2df5569dedd6ed6b0b70
Use .File from AbstractFs
lib/Memory/index.js
lib/Memory/index.js
'use strict'; // local modules var AbstractFs = require('../AbstractFs/index.js'); var Ufs = require('./UnderlyingFilesystem.js'); var fs = AbstractFs(Ufs); var Memory = { Dir: function() { return fs.Dir('root'); }, File: function() { return Memory.Dir().File('single-file'); } }; module.exports = Me...
JavaScript
0
@@ -157,18 +157,22 @@ );%0A%0A -var Memory +module.exports = %7B @@ -260,71 +260,28 @@ urn -Memory.Dir().File('single-file');%0A %7D%0A%7D;%0A%0Amodule.exports = Memory +fs.File('root');%0A %7D%0A%7D ;%0A
ff4af0a5bce1a71feceadb504fdf05c9498c32bb
Return some app meta for paid apps
lib/app.js
lib/app.js
var Long = require('long'); function unescape (str) { return (str + Array(5 - str.length % 4).join('=')).replace(/\-/g,'+').replace(/_/g, '/'); } function decode_digest (str) { return new Buffer(unescape(str), 'base64').toString('hex'); } function signatureToSha1(sig) { return decode_digest(sig); } module.exp...
JavaScript
0
@@ -20,16 +20,47 @@ 'long'); +%0Avar extend = require('xtend'); %0A%0Afuncti @@ -497,231 +497,157 @@ var -vs = d.details.appDetails.versionString;%0A var ch = d.details.appDetails.certificateHash.map(signatureToSha1);%0A return api.downloadInfo(pkg, vc)%0A .then(function (res) %7B%0A return %7B%0A ...
a02c34c2bb948afe8305b81a4c08a5ad5dc97848
Increase the leak test timeout for CI
test/leak_test.js
test/leak_test.js
var ssr = require("../lib/"); var helpers = require("./helpers"); var assert = require("assert"); var iterate = require("leakage").iterate; var path = require("path"); var through = require("through2"); describe("Memory leaks", function(){ this.timeout(10000); before(function(){ this.oldXHR = global.XMLHttpReques...
JavaScript
0.000001
@@ -1,12 +1,38 @@ +/* jshint esversion: 6 */%0A var ssr = re @@ -89,40 +89,8 @@ %22);%0A -var assert = require(%22assert%22);%0A var @@ -242,17 +242,17 @@ timeout( -1 +3 0000);%0A%0A
2dd49064c9afda458076c65badf2333248579994
remove unused data.service in dataService and change initial in app.run to home.transactions as default tab
app/assets/javascripts/ng-app/app.js
app/assets/javascripts/ng-app/app.js
angular .module('myApp', [ 'ngAnimate', 'ui.router', 'templates', 'chart.js', 'ui.bootstrap', 'angularSlideables' ]) .config(function ($stateProvider, $urlRouterProvider, $locationProvider) { $stateProvider .state('home', { url: '', views: { // target root ...
JavaScript
0
@@ -1922,16 +1922,29 @@ go('home +.transactions ');%0A%0A%0A
8eca68b3db6ee10395258d39a1d0f866266d9af4
Fix angle of clocks hour indicator
app/components/timed-clock/component.js
app/components/timed-clock/component.js
/** * @module timed * @submodule timed-components * @public */ import Component from '@ember/component' import moment from 'moment' import Ember from 'ember' import { task, timeout } from 'ember-concurrency' const { testing } = Ember export default Component.extend({ classNames: ['timed-clock'], hour: 0, m...
JavaScript
0.00015
@@ -509,13 +509,8 @@ 60 + - 90 + min
ca0e0ca0001c3cbde45a70d7618ab66ce66337c6
refactor layout using recompose
client/pages/layout.js
client/pages/layout.js
import React, {Component} from 'react'; import App from './app'; import {withCampaign} from '../components/campaign'; import Icon from '../components/icon'; import styled, {css} from 'styled-components'; import PropTypes from 'prop-types'; import Link from '../components/link'; import {withTracker} from 'meteor/react-m...
JavaScript
0
@@ -435,16 +435,40 @@ %7Bcompose +, withContext, withState %7D from ' @@ -2192,173 +2192,167 @@ ;%0A%0Ac -lass Layout extends Component %7B%0A%09static childContextTypes = %7B%0A%09%09setNavItems: PropTypes.func,%0A%09%7D;%0A%0A%09state = %7B%0A%09%09extraItems: %5B%5D,%0A%09%7D;%0A%0A%09getChildContext() %7B%0A%09%...
fc216335023ff8f40f2c9df7a811471d376aa4b3
Add route for viewing current users history
lib/app.js
lib/app.js
var express = require('express'), flatten = require('flatten').flatten, hogan = require('hogan.js'), gobo = require('gobo'), path = require('path'), fs = require('fs'), app = express(), errors = require('./errors'), options = require('./config...
JavaScript
0
@@ -2643,24 +2643,73 @@ goutUser);%0A%0A +// List%0Aapp.get('/list', handlers.getUserBins);%0A%0A // Latest%0Aap
30f5e6591e1ac879946937a8cf1a101b04206dce
Update object.js
Untitled/object.js
Untitled/object.js
function Shot(guna, numberofi) { this.hit = 0; if (look == 3) { this.dirx = 0; this.diry = -5; this.x = px - 4; this.y = py + 27; if (guna == 3 && numberofi == 1) { this.dirx++; this.diry--; } if (guna == 3 && numberofi == 2) { this.dirx+=2; this.diry-=2; } if (guna == 3 && numberofi == ...
JavaScript
0.000001
@@ -498,10 +498,10 @@ (gu -a n +a ==
88a3cc38c6c7663eb8c42e57844473a27e3b8b7d
initialize data loading
source/app.js
source/app.js
// @flow // initialization import './init/constants' import './init/moment' import './init/analytics' import './init/api' import './init/theme' // import './init/navigation' import {ONESIGNAL_APP_ID} from './init/notifications' import * as React from 'react' import {Provider} from 'react-redux' import {makeStore, ini...
JavaScript
0.000004
@@ -138,16 +138,37 @@ /theme'%0A +import './init/data'%0A // impor
a5d35e5e7bd3ff433dec96d87888d2306aae5b5b
add convertor for _thread
mixly_arduino/blockly/converters/python/control.js
mixly_arduino/blockly/converters/python/control.js
'use strict'; pbc.globalFunctionD['type'] = function (py2block, func, args, keywords, starargs, kwargs, node) { if (args.length != 1) { throw new Error("Incorrect number of arguments"); } return block("controls_type", func.lineno, {}, { 'DATA': py2block.convert(args[0]), }, { ...
JavaScript
0
@@ -2215,17 +2215,527 @@ %7D);%0A%7D -%0A +;%0A%0Apbc.moduleFunctionD.get('_thread')%5B'start_new_thread'%5D = function(py2block, func, args, keywords, starargs, kwargs, node)%7B%0A if (args.length !== 2) %7B%0A throw new Error(%22Incorrect number of arguments%22);%0A %7D%0A pbc.pinType = %22pins_ca...
da6f4398fd51bf3388ef3aaae52662a5973f94d4
add GET latest entries (by number of days) method
routes/bookmarks.js
routes/bookmarks.js
var express = require('express'); var request = require('request'); var cheerio = require('cheerio'); var router = express.Router(); var Bookmark = require('../models/bookmark'); var MyError = require('../models/error'); /* GET title of bookmark given its url */ router.get('/scrape', function(req, res, next) { if(re...
JavaScript
0
@@ -761,24 +761,632 @@ );%0A %7D%0A%7D);%0A%0A +/**%0A * Returns the codingmarks added in the last days. The number of days to look back is specified via%0A * the query parameter numberOfDays. If not present it defaults to 7, last week.%0A *%0A */%0Arouter.get('/latest-entries', async (req, res) =%3E %7B%0A try%0A ...
a2388756f26f9482936ccb6a8f7c58cd7a37ed06
Use getFeaturesInExtent
examples/box-selection.js
examples/box-selection.js
import GeoJSON from '../src/ol/format/GeoJSON.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {DragBox, Select} from '../src/ol/interaction.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer....
JavaScript
0
@@ -1115,16 +1115,133 @@ on () %7B%0A + const extent = dragBox.getGeometry().getExtent();%0A const boxFeatures = vectorSource.getFeaturesInExtent(extent);%0A%0A // fea @@ -1295,16 +1295,16 @@ to the%0A - // col @@ -1600,241 +1600,8 @@ = 0; -%0A const candidateFeatures = oblique ? %5B%5D : selectedFeatures;...
baa857b8f028cb1f828443a815e21f6c75120b1b
Add event detail
src/components/Data.js
src/components/Data.js
import React from 'react'; // This is to add non contract binding data into Dapp. // May be replaced with IPFS at some point. let Data = [ { name: 'Edcon Post conference lunch', address: null, date:'TBD', map_url: '', location_text: 'TBD', description_text: "TBD" }, { name: 'Edcon Pos...
JavaScript
0.000002
@@ -151,37 +151,12 @@ me: -'Edcon Post conference lunch' +null ,%0A @@ -206,34 +206,222 @@ l: ' -',%0A location_text: 'TBD +https://www.google.co.uk/maps/place/Simply+Business/@51.51528,-0.0904011,15z/data=!4m5!3m4!1s0x0:0x70f23f24baccffdc!8m2!3d51.51528!4d-0.0904011',%0A location_text: 'Simply Business (99...
f3d971732c6374da7e93ddb583a50b7f3daddee6
Fix change/update event
lib/NeighbourSet.js
lib/NeighbourSet.js
'use strict'; var EventEmitter = require("events").EventEmitter; var Utils = require("cyclon.p2p-common"); function NeighbourSet(logger) { Utils.checkArguments(arguments, 1); var neighbours = {}; var myself = this; /** * Return a copy of the contents map */ this.getContents = function...
JavaScript
0.000002
@@ -3601,16 +3601,22 @@ %22update%22 +, node );%0A
33f9e309021d2afeb496df9e30b4a39b2499cfa3
Fix spacing
spec/builders/knitr-spec.js
spec/builders/knitr-spec.js
/** @babel */ import helpers from '../spec-helpers' import _ from 'lodash' import fs from 'fs-plus' import path from 'path' import KnitrBuilder from '../../lib/builders/knitr' function getRawFile (filePath) { return fs.readFileSync(filePath, {encoding: 'utf-8'}) } describe('KnitrBuilder', () => { let builder, fi...
JavaScript
0.000415
@@ -2422,16 +2422,26 @@ edWith(%7B +%0A type: ' @@ -2447,16 +2447,26 @@ 'Error', +%0A text: ' @@ -2508,16 +2508,25 @@ loaded.' +%0A %7D)%0A
0fc12c80ba1d76bfc59383d7f496e75b9b60b90c
Comment out unused "userId" propType. Fixes the only current ESLint error in the Users UI module.
UserPermissions.js
UserPermissions.js
import React from 'react'; // eslint-disable-line import {Row, Col, Dropdown} from 'react-bootstrap'; // eslint-disable-line import DropdownMenu from '@folio/stripes-components/lib/DropdownMenu'; // eslint-disable-line import Button from '@folio/stripes-components/lib/Button'; // eslint-disable-line import Icon from '@...
JavaScript
0
@@ -778,16 +778,19 @@ uired,%0A + // userId:
5fe934d000d397b95103907105f63564840da67b
Use render function instead of template for compatibility with runtime-only build of Vue.
src/create.js
src/create.js
import clone from './clone.js'; import ctors from './constrators.js'; function create(tagName, Highcharts) { var Ctor = Highcharts[ctors[tagName]]; if (!Ctor) { return null; } var isRenderer = tagName === 'highcharts-renderer'; return { name: tagName, template: '<div></div>', props: isRendere...
JavaScript
0
@@ -272,31 +272,82 @@ -template: '%3Cdiv%3E%3C/div%3E' +render: function(createElement) %7B%0A return createElement('div');%0A %7D ,%0A
5e461ae5fcd3991798ae9df6fc4799fc4fe0496d
use req.url instead of req.params
app/controllers/newURLHandler.server.js
app/controllers/newURLHandler.server.js
'use strict'; var ShortURLs = require("../models/shortURLs.js"); var bling = require('bling-hashes'); function newURLHandler (req, res) { var url_id = djbHash(req.params[0]); ShortURLs.findOneAndUpdate( {short_url: url_id}, {original_url: req.params[0], short_url: url_id}, {fields: "original_url short_url...
JavaScript
0.000001
@@ -135,16 +135,57 @@ es) %7B%0A%09%0A +%09var url = req.url.replace(%22/new/%22, %22%22);%0A %09var url @@ -198,29 +198,19 @@ djbHash( -req.params%5B0%5D +url );%0A%09%0A%09Sh @@ -279,21 +279,11 @@ rl: -req.params%5B0%5D +url , sh
689fdc1bb1acb3ffd8bf2a92adcb736d4e5ec72b
Fix deprecation image-loader warnings. Now each loader option must be passed to the correspondent optimizer.
front/webpack.config.js
front/webpack.config.js
const path = require('path') module.exports = { entry: ['babel-polyfill', './src/index.js'], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/dist/' }, resolve: { modules: ['./src', 'node_modules'], extensions: ['.js', 'jsx'] }, module: { loaders:...
JavaScript
0
@@ -642,27 +642,14 @@ -loaders: %5B%0A +use: %5B 'fil @@ -658,24 +658,16 @@ loader', -%0A %7B%0A @@ -709,33 +709,60 @@ ,%0A -query +options: %7B%0A mozjpeg : %7B%0A + @@ -778,16 +778,17 @@ ve: true +, %0A @@ -796,46 +796,237 @@ -//optim...
1260afbd3d568b7b33ce3546f2c1b5c9e168586b
Version Bump
package.js
package.js
Package.describe({ summary: "Accounts service for LinkedIn accounts", version: "1.0.0", git: "https://github.com/PauliBuccini/meteor-accounts-linkedin.git" }); Package.onUse(function(api) { api.use('accounts-base@1.0.1', ['client', 'server']); api.use('accounts-oauth@1.0.0', ['client', 'server']); api.use...
JavaScript
0.000001
@@ -81,17 +81,17 @@ n: %221.0. -0 +1 %22,%0A git @@ -330,25 +330,25 @@ inkedin@1.0. -0 +1 ', %5B'client'
c4eab89385f78ec25117e9050d29e57e5c735083
Make sure call back functions for Notify.requestPermission() are functions before trying to call them.
notify.js
notify.js
(function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD environment define('notify', [], function () { return factory(root, document); }); } else { // Browser environment root.Notify = factory(root, document); ...
JavaScript
0
@@ -3356,32 +3356,39 @@ if ( +typeof onPermissionGran @@ -3390,32 +3390,47 @@ nGrantedCallback + === 'function' ) %7B%0A @@ -3596,16 +3596,23 @@ if ( +typeof onPermis @@ -3621,32 +3621,47 @@ onDeniedCallback + === 'function' ) %7B%0A