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
05c263066d0496435fd8ff7feff911de76406b7c
Fix bug: for when parameters is not provided
src/js/components/forms/InputsParams/index.js
src/js/components/forms/InputsParams/index.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; class FileInput extends Component { render() { const {form, name, description, required} = this.props; if (form.type == 'select') { return ( <div className="file-input"> <label><b...
JavaScript
0.000001
@@ -2906,16 +2906,21 @@ m(params + = %7B%7D ) %7B%0A
665ff94ff73bf658fbba2d31deee3c93c4a4eae2
Revert "FIX: Don't show `undefined` in the footer text."
app/assets/javascripts/discourse/controllers/discovery/topics.js.es6
app/assets/javascripts/discourse/controllers/discovery/topics.js.es6
import DiscoveryController from 'discourse/controllers/discovery'; import { queryParams } from 'discourse/controllers/discovery-sortable'; var controllerOpts = { needs: ['discovery'], bulkSelectEnabled: false, selected: [], period: null, redirectedReason: Em.computed.alias('currentUser.redirected_to_top_rea...
JavaScript
0
@@ -5118,35 +5118,32 @@ rent()) %7B return - %22%22 ; %7D%0A%0A var spl @@ -5270,11 +5270,8 @@ turn - %22%22 ; %7D%0A
27b7fe065b155fd4cb8ca53198c6a9c5a50e7dc4
change way query is inferred
adaptors/base.adp.js
adaptors/base.adp.js
/** * @fileOverview Provide a common interface for drivers. */ var __ = require('lodash'); var EntityCrud = require('../lib/entity-crud'); /** * Provide a common interface for drivers. * * @param {Object=} optUdo Optionally define the current handling user * @constructor * @extends {crude.Entity} */ var Adapto...
JavaScript
0.999999
@@ -1208,23 +1208,24 @@ ar q +uery = %7B%7D;%0A +%0A -return +if (__ @@ -1243,40 +1243,91 @@ d)) -? id : (q%5Bthis._idName%5D = id, q) +%7B%0A return id;%0A %7D%0A%0A if (id) %7B%0A query%5Bthis._idName%5D = id;%0A %7D%0A%0A return query ;%0A%7D;
8d08bf6358c169727c449036dd77beb2c89de471
Fix queue
addon/utils/queue.js
addon/utils/queue.js
import Ember from 'ember'; export default Ember.Object.extend({ /* The queue of promises */ _queue: [Ember.RSVP.resolve()], /** If set to `true` then error occurring should not stop performing operations in queue. @property continueOnError @type Boolean @default true */ continueOnError: tr...
JavaScript
0.000001
@@ -103,30 +103,12 @@ ue: -%5BEmber.RSVP.resolve()%5D +null ,%0A%0A @@ -300,16 +300,350 @@ true,%0A%0A + /* Init instance of queue */%0A init() %7B%0A this.set('_queue', %5BEmber.RSVP.resolve()%5D);%0A %7D,%0A%0A /**%0A Adds callback to then end of queue of Promises.%0A%0A @method attach%0A @param...
aa3c861b89966426427c1adbfc3dd3868cd07789
correct EntryFieldDescription spec
test/spec/factory/EntryFieldDescriptionSpec.js
test/spec/factory/EntryFieldDescriptionSpec.js
var EntryFieldDescription = require('lib/factory/EntryFieldDescription'); var domAttr = require('min-dom').attr, domQuery = require('min-dom').query; describe('factory/EntryFieldDescription', function() { describe('show', function() { it('should use provided callback name', function() { // when ...
JavaScript
0
@@ -6295,20 +6295,14 @@ test -&lt;br /&gt; +%3Cbr /%3E webs
30800668dc9f96baa3baf909b30d52a965f4712a
Update script.js
Web/js/script.js
Web/js/script.js
$(document).ready(function() { // nav // nav clase $(".nav a").on("click", function(){ $(".nav").find(".active").removeClass("active"); $(this).parent().addClass("active"); }); // nav tag $('nav').affix({ offset: { top: function() { return $('#imagen-inicial').height(); } } ...
JavaScript
0.000002
@@ -1694,37 +1694,16 @@ roll() %7B -%0A makeParallax();%0A %0A
69690a9096b143f984284086fdfb700acbc07a79
update knex model to use tableName const (#287)
packages/generator-feathers/generators/service/templates/model/knex.js
packages/generator-feathers/generators/service/templates/model/knex.js
/* eslint-disable no-console */ // <%= name %>-model.js - A KnexJS // // See http://knexjs.org/ // for more of what you can do here. module.exports = function (app) { const db = app.get('knexClient'); db.schema.hasTable('<%= kebabName %>').then(exists => { if(!exists) { db.schema.createTable('<%= kebab...
JavaScript
0
@@ -198,16 +198,55 @@ ient');%0A + const tableName = '%3C%25= kebabName %25%3E'; %0A db.sc @@ -259,34 +259,25 @@ asTable( -'%3C%25= kebabName %25%3E' +tableName ).then(e @@ -333,34 +333,25 @@ teTable( -'%3C%25= kebabName %25%3E' +tableName , table @@ -425,22 +425,16 @@ %7D) -.then( %0A @@ -434,1...
9bc721a27ad216bb2368967f8db7341079cd1a23
fix data.maybe
definitions/npm/data.maybe_v1.x.x/flow_v0.32.x-/data.maybe_v1.x.x.js
definitions/npm/data.maybe_v1.x.x/flow_v0.32.x-/data.maybe_v1.x.x.js
// @flow import type Either from "data.either"; interface Functor<A> { map<B>(f: (a: A) => B): Functor<B>; } interface Apply<A> extends Functor<A> { ap<B>(fab: Apply<(a: A) => B>): Apply<B>; } interface Applicative<A> extends Apply<A> { static of<B>(b: B): Applicative<B>; } interface Chain<A> extends Apply<A...
JavaScript
0.0003
@@ -7,57 +7,155 @@ ow%0A%0A -import type Either from %22data.either%22;%0A%0Ainterface +// TODO Once we support dependencies, put into declare module%0Aimport type Either from %22data.either%22;%0A%0Adeclare module %22data.maybe%22 %7B%0A declare class Fun @@ -164,16 +164,18 @@ or%3CA%3E %7B%0A + map%3CB%3E @...
8ccc0437c31c1e8a80411e998243e79e8fcf6b59
update GhostButton
src/GhostButton/GhostButton.js
src/GhostButton/GhostButton.js
/** * @file GhostButton component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import BaseButton from '../_BaseButton'; import TipProvider from '../TipProvider'; import Theme from '../Theme'; ...
JavaScript
0
@@ -834,24 +834,160 @@ ();%0A %7D;%0A%0A + /**%0A * public%0A */%0A triggerRipple = e =%3E %7B%0A this.refs.baseButton && this.refs.baseButton.triggerRipple(e);%0A %7D;%0A%0A render()
a9a76cddfe7a2efef07c861c047f532768f7cc3e
Add braces to control block
src/main/webapp/components/utils/getFields.js
src/main/webapp/components/utils/getFields.js
import {getField} from "./getField"; /** * Creates a new object whose fields are either equal to obj[field] * or defaultValue. * Useful for extracting a subset of fields from an object. * * @param obj the object to query the fields for. * @param fields an array of the target fields, in string form. * @pa...
JavaScript
0
@@ -489,16 +489,18 @@ fields) + %7B res%5Bfie @@ -540,16 +540,18 @@ tValue); + %7D %0A retur
7fa08226e38a15bca37f1811d54cb9ad87c59959
Replace extracting with extract
src/main/webapp/components/utils/getFields.js
src/main/webapp/components/utils/getFields.js
import {getField} from "./getField"; /** * Creates a new object whose fields are either equal to obj[field] * or defaultValue. * Useful for extracting a subset of fields from an object. * * @param obj the object to query the fields for. * @param fields an array of the target fields, in string form. * @param def...
JavaScript
0.999997
@@ -395,19 +395,16 @@ extract -ing values
5767242231d8a23b51faca2d3847ee20e559c483
Discard the playerToken if it is about to expire
src/online/scoreboard-system/OnlineService.js
src/online/scoreboard-system/OnlineService.js
import Auth0 from 'auth0-js' import createScoreboardClient from './createScoreboardClient' export class OnlineService { constructor ({ server, storagePrefix = 'scoreboard.auth', authOptions }) { const auth = new Auth0.WebAuth({ ...authOptions, redirectUri: window.location.href, r...
JavaScript
0
@@ -403,24 +403,30 @@ Client(%7B +%0A server, auth %7D) @@ -417,21 +417,53 @@ server, - auth +%0A auth,%0A log: () =%3E %7B %7D%0A %7D)%0A @@ -682,31 +682,358 @@ -return JSON.parse(text) +const data = JSON.parse(text)%0A const playerToken = data.playerToken%0A const pl...
893b43ec955d822f1be1bc37a99d43577e1c8797
replace bookService with persistenceService (work in progress)
src/app/components/services/books/books.service.js
src/app/components/services/books/books.service.js
let self; class BooksService { /*@ngInject*/ constructor(warlockOfFiretopMountainService, templeOfTerrorService, creatureFromHavocService, messagesService, $translate, constants, persistenceService) { self = this; self.messagesService = messagesService; self.$translate = $translate; ...
JavaScript
0.000001
@@ -1525,15 +1525,10 @@ %5Bi%5D. -urlName +id ) %7B%0A
fa050657874210792ed0c3d24e72638a1815da00
Fix #541
src/page/search/advanced-search/action-bar.js
src/page/search/advanced-search/action-bar.js
// Dependencies const builder = require('focus-core').component.builder; const {reduce} = require('lodash/collection'); const {omit} = require('lodash/object'); // Components const ListActionBar = require('../../../list/action-bar/index').component; //Mixins const i18nMixin = require('../../../common/i18n/mixin');...
JavaScript
0
@@ -2796,21 +2796,17 @@ s.props. -lineO +o peration
889fa23be4a465e2091292252a870925df81fad2
fix typo
Leaflet/walkalytics.js
Leaflet/walkalytics.js
// create map var map = new L.map('map', { center: new L.latLng(46.947999, 7.448148), zoom: 15 }); // add basemap new L.tileLayer('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', { subdomains: ['1', '2', '3', '4'], attribution: 'Map data © <a href="http://www.openstreetmap.org/copyright" target="_b...
JavaScript
0.999991
@@ -4120,16 +4120,17 @@ 3857) to + lat/lng
d484372c7f42f78a7cbb4abfe5ca5f03d2255870
introduce concept of platform name, based on class name, because webpack.
src/BasePlatform.js
src/BasePlatform.js
// @flow /* Copyright 2016 Aviral Dasgupta Copyright 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 applicab...
JavaScript
0
@@ -933,24 +933,128 @@ lse;%0A %7D%0A%0A + // Used primarily for Analytics%0A getHumanReadableName() %7B%0A return 'Base Platform';%0A %7D%0A%0A setNotif
5b1ce8be706f6730cc19371b794f7eb88b257986
Remove jQuery Dependency
src/EventHandler.js
src/EventHandler.js
/** * EventHandler - Handles triggering and listening to the events of an entity. * @param {Object} entity - The entity to which the handler is attaching to. * @param {Array.<string>} events - An array of event names that this handler will use. * @constructor */ var EventHandler = function (entity, events) { this...
JavaScript
0.000001
@@ -601,201 +601,425 @@ %7B%0A%09 -this.entity.on = $.proxy(this.on, this);%0A%09this.entity.once = $.proxy(this.once, this);%0A%09this.entity.off = $.proxy(this.off, this);%0A%09this.entity.trigger = $.proxy(this.trigger, this) +var self = this;%0A%0A%09this.entity.on = function (eventName, action, conte...
8510cd4df2ba7c29a70212aa182eb056cd38564e
Remove the check for "inside a frame"
src/IFrameWindow.js
src/IFrameWindow.js
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. import { Log } from './Log.js'; const DefaultTimeout = 10000; export class IFrameWindow { constructor(params) { this._promise = ...
JavaScript
0
@@ -2877,47 +2877,8 @@ %22);%0A - if (window.frameElement) %7B%0A @@ -2916,36 +2916,32 @@ n.href;%0A - if (url) %7B%0A @@ -2927,36 +2927,32 @@ if (url) %7B%0A - Log. @@ -3026,28 +3026,24 @@ - - window.paren @@ -3104,30 +3104,16 @@ .host);%0...
601defb1885cd630a9ab76eb16a87dfc5de8bfc6
comment update
Challenge13.js
Challenge13.js
// Write a JavaScript function that takes a sentence as an argument and determines which word in that sentence has the greatest number of repeated letters (the repeated letters do not have to be consecutive). // // If the sentence has multiple words with the same max of repeated letters, return them all in an Array. //...
JavaScript
0
@@ -571,40 +571,37 @@ // -var array = sentence.split(%22 %22); +How to: split or match Method %0A / @@ -629,16 +629,56 @@ e useful + to manipulate one line of code %22.%22, %22%E2%80%93%22 %0A var a @@ -717,33 +717,8 @@ );%0A%0A - // var arraySort = %5B%5D;%0A fo
7cdc6b6f4d9dfdb560a2e4febea2262f527b6394
Update index.js
src/Notify/index.js
src/Notify/index.js
import { Component, PropTypes } from 'react' import Portal from 'react-portal' import NotifyMesssage from './NotifyMesssage' import cx from 'classnames' export default class Notify extends Component { static propTypes = { notifications: PropTypes.arrayOf(PropTypes.object).isRequired, position: PropTypes.stri...
JavaScript
0.000002
@@ -72,16 +72,45 @@ portal'%0A +import cx from 'classnames'%0A%0A import N @@ -150,36 +150,8 @@ age' -%0Aimport cx from 'classnames' %0A%0Aex
d829f75c1237ed59861cd3f189b0ef7db3081bc5
remove 'js' prefix from component initialisation
Resources/public/js/components/bulk-price/main.js
Resources/public/js/components/bulk-price/main.js
/* * This file is part of the Sulu CMS. * * (c) MASSIVE ART WebServices GmbH * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * @class bulk-price@suluproduct * @constructor * * @param {Object} [options] Configuration object * @param {Arra...
JavaScript
0.000015
@@ -5807,32 +5807,24 @@ nstanceName: - 'js-' + tmplSelecto @@ -5865,32 +5865,24 @@ inputId: - 'js-' + tmplSelecto @@ -6205,24 +6205,16 @@ nceName: - 'js-' + tmplSel @@ -6265,16 +6265,8 @@ tId: - 'js-' + tmp @@ -7200,24 +7200,27 @@ ateStart = %22 +js- input-dateSt @@ -7295,16 +7295,19 @@ eEnd = %22 +j...
9f2eae207da4f63c674cf6684d9ae818d9678b46
Create the config page
src/client/javascript/pages/configuration.react.js
src/client/javascript/pages/configuration.react.js
const ConfigurationPage = React.createClass({ render: function () { return <div><h1>Configuration</h1></div>; } }); module.exports = ConfigurationPage;
JavaScript
0.000001
@@ -45,74 +45,1962 @@ %7B%0A -render: function () %7B%0A return %3Cdiv%3E%3Ch1%3EConfiguration%3C/h1%3E%3C/div%3E +setWidth: function (event) %7B%0A let width = event.target.value;%0A%0A this.setState(state =%3E %7B%0A return %7B%0A width: width,%0A height: state.height,%0A showCon...
55fb5fc27bf5ce299bb7c831cbe1a7e421ff7d8e
Suppress the unknown types warnings in es6_runtime.js
src/com/google/javascript/jscomp/js/es6_runtime.js
src/com/google/javascript/jscomp/js/es6_runtime.js
/* * Copyright 2014 The Closure Compiler Authors. * * 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...
JavaScript
0.999595
@@ -852,16 +852,50 @@ efined.%0A + * @suppress %7BreportUnknownTypes%7D%0A */%0A$jsc @@ -1316,16 +1316,50 @@ plate T%0A + * @suppress %7BreportUnknownTypes%7D%0A */%0A$jsc
aacd4cfbf00876375ff3a3560582c9f1f94ae7f2
Fix bug of using less instead of uglify
build/shared-gulpfile.js
build/shared-gulpfile.js
/** * Common build actions that can be shared between applications fairly easily. * Brings in TypeScript compilation, Jade compilation and LESS compilation. */ "use strict"; const ts = require("gulp-typescript"); const eventStream = require("event-stream"); const tslint = require("gulp-tslint"); const babel = requ...
JavaScript
0
@@ -469,36 +469,38 @@ p-less%22);%0Aconst -less +uglify = require(%22gulp
f07e3dc399bcf8f053497bb6c1ed744fae4fa5d2
set up basic tests for GeneSummaryMaster
src/features/GeneSummary/GeneSummaryMaster.test.js
src/features/GeneSummary/GeneSummaryMaster.test.js
import React from "react" import { shallow } from "enzyme" import "../../setupTests" import { GeneSummaryMaster } from "./GeneSummaryMaster" describe("GeneSummary/GeneSummaryMaster", () => { // tests go here })
JavaScript
0
@@ -133,16 +133,56 @@ yMaster%22 +%0Aimport Tab from %22@material-ui/core/Tab%22 %0A%0Adescri @@ -231,24 +231,1085 @@ %7B%0A -// tests go here +const json = %7B%0A data: %7B%0A attributes: %7B%0A group: %5B%22protein%22, %22goa%22, %22orthologs%22, %22phenotypes%22, %22references%22%5D,%0A su...
b0e4e45e7bb953eb860f456ca3a41d55629756cb
Fix notification popup menu item CSS
src/foam/nanos/notification/NotificationRowView.js
src/foam/nanos/notification/NotificationRowView.js
/** *@license *Copyright 2018 The FOAM Authors. All Rights Reserved. *http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.notification', name: 'NotificationRowView', extends: 'foam.u2.View', requires: [ 'foam.nanos.auth.User', 'foam.nanos.notificatio...
JavaScript
0.000007
@@ -1476,30 +1476,8 @@ px;%0A - height: 20px;%0A @@ -1590,25 +1590,23 @@ -line-height: 3 +padding: 1 0px + 0 ;%0A
41499aeb8e0f5b478b1d762c978169d3852b8d7b
Update calculateValueDistance utility
src/js/utils/NumberUtils/calculateValueDistance.js
src/js/utils/NumberUtils/calculateValueDistance.js
/** @module utils/NumberUtils/calculateValueDistance */ /** * This calculates the distance from a screen x location to a position in some element * by comparing the width of the element and the element's page position to the screen * x position. * * If the distance is not _normalized_ the distance will be updated...
JavaScript
0
@@ -2626,18 +2626,34 @@ value -+ = + (value * step) + min;%0A @@ -2678,16 +2678,23 @@ = min + + step * Math.ro @@ -2731,106 +2731,8 @@ %7D%0A%0A - if (step %3E 1) %7B%0A value *= step;%0A %7D else if (step %3E 0 && step %3C 1) %7B%0A value *= step;%0A %7D%0A%0A re
c330186d8b08b65c7cc435f5c8f61e32b1ccfc06
Fix zooming
OverviewViewManager.js
OverviewViewManager.js
// ------------------------------------------------------------------------ /* * Copyright (c) 2014 Thomas Valera. All rights reserved. * * 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 Softwa...
JavaScript
0.000327
@@ -3818,16 +3818,136 @@ first(); +%0A%0A // Get overview's CodeMirror-scroll wrapper%0A var CMScroll = content.find(%22.CodeMirror-scroll%22).first(); %0A @@ -4576,16 +4576,23 @@ deMirror +-scroll %0A @@ -4602,40 +4602,18 @@ CM -Wrapper.get(0).style.setProperty +Scroll.css (%22fo @@...
a58e7c8df0373b3b0ee0891a6733728dee04d305
Refactor getRolePermissions to take property parameter
src/views/Main/Schemas/Components/AllPermissions.js
src/views/Main/Schemas/Components/AllPermissions.js
import React, { PropTypes } from 'react'; import { PermissionsApi, PrincipalsApi } from 'loom-data'; import { Permission } from '../../../../core/permissions/Permission'; import ActionConsts from '../../../../utils/Consts/ActionConsts'; import { ROLE, AUTHENTICATED_USER } from '../../../../utils/Consts/UserRoleConsts';...
JavaScript
0
@@ -4473,19 +4473,24 @@ ions = ( -set +property ) =%3E %7B%0A @@ -4509,34 +4509,123 @@ oleAcls %7D = -this.props +property ? property : this.props;%0A property ? console.log('WE GOTTA PROPERTY:', property) : null ;%0A const @@ -5088,16 +5088,26 @@ missions +, property );%0A %7D%0A%0A @@ -5141,16 +5141,2...
e9ef1415c755b8fe141f557c108b4a880c32ba9e
Update Example to support the new library version
Example/App.js
Example/App.js
/** * @flow */ import { Image, StyleSheet, Text, TouchableWithoutFeedback, View, } from 'react-native'; import React, { Component } from 'react'; import ImageCarousel from 'react-native-image-carousel'; const urls = [ 'https://d919ce141ef35c47fc40-b9166a60eccf0f83d2d9c63fa65b9129.ssl.cf5.rackcdn.com/ima...
JavaScript
0
@@ -1363,206 +1363,8 @@ %7D%0A%0A - _renderContent(idx: number): ReactElement%3Cany%3E %7B%0A return (%0A %3CImage%0A style=%7Bstyles.container%7D%0A source=%7B%7B uri: urls%5Bidx%5D %7D%7D%0A resizeMode=%7B'contain'%7D%0A /%3E%0A );%0A %7D%0A%0A re @@ -1383,32 +1383,32 @@ t...
667333c011d75464277a638560b2fb4a1a329cbb
Change comment style so not to end up in docs
src/bin/plugin-manager/plugin-manager.js
src/bin/plugin-manager/plugin-manager.js
const fs = require('fs') const path = require('path'); const winston = require('winston') const Promise = require('bluebird') const db = require('../../models') var messageManager = require('../message-manager/message-manager') const voluble_errors = require('../voluble-errors') const errs = require('common-errors') /...
JavaScript
0
@@ -1789,21 +1789,9 @@ / -**%0A * +/ Log @@ -1876,18 +1876,18 @@ - * +// SO: We @@ -2024,26 +2024,26 @@ ry.%0A - -* +// If so, upda @@ -2126,18 +2126,18 @@ - * +// The poi @@ -2226,16 +2226,27 @@ startup, +%0A // which c @@ -2361,20 +2361,8 @@ ved. -%0A ...
7b115acc0836808099387428877d76314b32cdf6
Support arbitrary ICU number formats using a quick port of git://github.com/owiber/numberformat.js.git
lib/CldrRbnfRuleSet.js
lib/CldrRbnfRuleSet.js
var _ = require('underscore'); function CldrRbnfRuleSet(config) { _.extend(this, config); this.ruleByValue = {}; } CldrRbnfRuleSet.getSafeRendererName = function (rendererName) { return ( ("render-" + rendererName) .replace(/[^\w-]/g, '-') .replace(/[-_]+([0-9a-z])/gi, function ($0...
JavaScript
0.000001
@@ -3670,120 +3670,8 @@ #.%0A - // FIXME: This is very broken. Requires support for rendering arbitrary number formats:%0A @@ -3759,32 +3759,59 @@ rNumber'%5D, %5Bexpr +, %5B'string', decimalFormat%5D %5D%5D);%0A
fb0271d68690b20e6bf68f6d723da50fd9c875ea
add stat_game_type prop
lib/CorneliusAction.js
lib/CorneliusAction.js
const EventEmitter = require('events').EventEmitter; const MlbRequest = require('./MlbRequest'); /** * Represents some Cornelius action. */ class CorneliusAction extends EventEmitter { /** * Create an action. * @param {string} action * @param {object} options */ constructor(action, options...
JavaScript
0
@@ -1789,32 +1789,337 @@ %7D)(),%0A + stat_game_type: (() =%3E %7B%0A if (options.hasOwnProperty('stat_game_type') && typeof options.stat_game_type === 'string') %7B%0A return options.stat_game_type.toUpperCase();%0A %7D else %7B%0A ...
0beac921699c0bd737667a89a97a2df743723028
Version sort fix
src/public/js/utils/get-files-by-version.js
src/public/js/utils/get-files-by-version.js
export default function (project, version) { // 1. main file // 2. min files // 3. other files // 4. map files return project.assets.filter(assets => assets.version === version)[0].files.sort((a, b) => { if (a === project.mainfile || /\.map$/i.test(b)) { return -1; } if (b === project.mainfile || /\.map$...
JavaScript
0.000001
@@ -352,32 +352,33 @@ %0A%09%09if (/%5B._-%5Dmin +%5C ./i.test(a)) %7B%0A%09 @@ -384,32 +384,33 @@ %09%09%09if (/%5B._-%5Dmin +%5C ./i.test(b)) %7B%0A%09 @@ -472,16 +472,17 @@ %5B._-%5Dmin +%5C ./i.test
749e9f44c0f820ac5f65130dc7ca79edb97d6ae7
Refactor PodNetworkSpecView
src/js/components/PodNetworkSpecView.js
src/js/components/PodNetworkSpecView.js
import React from 'react'; import DescriptionList from './DescriptionList'; const METHODS_TO_BIND = [ ]; class PodNetworkSpecView extends React.Component { constructor() { super(...arguments); this.state = { }; METHODS_TO_BIND.forEach((method) => { this[method] = this[method].bind(this); ...
JavaScript
0
@@ -75,38 +75,8 @@ ';%0A%0A -const METHODS_TO_BIND = %5B%0A%5D;%0A%0A clas @@ -126,180 +126,8 @@ t %7B%0A - constructor() %7B%0A super(...arguments);%0A%0A this.state = %7B%0A %7D;%0A%0A METHODS_TO_BIND.forEach((method) =%3E %7B%0A this%5Bmethod%5D = this%5Bmethod%5D.bind(this);%0A %7D);%0A %7D...
4fe6145f8cb52e4f2a3767b5dac1fe9c42d9e2e5
fix windows cross driver path not found issue
lib/NodeStuffPlugin.js
lib/NodeStuffPlugin.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var path = require("path"); var ModuleParserHelpers = require("./ModuleParserHelpers"); var ConstDependency = require("./dependencies/ConstDependency"); var BasicEvaluatedExpression = require("./BasicEvaluatedExpression"...
JavaScript
0
@@ -3467,15 +3467,8 @@ th = - %22./%22 + pat @@ -3518,16 +3518,117 @@ eJsPath) +;%0A if(!/%5E%5BA-Z%5D:/i.test(moduleJsPath)) %7B%0A moduleJsPath = %22./%22 + moduleJsPath .replace @@ -3641,16 +3641,30 @@ , %22/%22);%0A + %7D%0A %09%09%7D%0A%09%09re
cd5c973358783045dd871620a68122af8faa79fc
add Usage for ApiWrapper
lib/api/api-wrapper.js
lib/api/api-wrapper.js
'use strict' const debug = require('debug')('webd2-api:apiWrapper') const Serializer = require('../utils/serializer') const Deserializer = require('../utils/deserializer') const Relations = require('../relations/relations') class ApiWrapper { constructor (attrs, registryMoc) { let {model, serializer, deserializ...
JavaScript
0
@@ -219,16 +219,291 @@ ions')%0A%0A +/**%0A * REST Api wrapper%0A *%0A * Usage:%0A *%0A * const userModel = require('../models/user')%0A * const userApi = new ApiWrapper(userModel)%0A *%0A * userApi.apiFetchMany(%7BwithRelated: true, where: %7Bhide:false%7D, orderBy: 'name'%7D)%0A * .then((usersJson) =%3E %7B ... req....
85a9e6f4597a0210141d574eaa59e976504dd1a8
Support the `order` property from atom/atom#18773
lib/atom/decoration.js
lib/atom/decoration.js
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import {Disposable} from 'event-kit'; import cx from 'classnames'; import {createItem, extractProps} from '../helpers'; import {RefHolderPropType} from '../prop-types'; import {TextEditorContext} from './atom-text-editor';...
JavaScript
0
@@ -787,16 +787,43 @@ ter'%5D),%0A + order: PropTypes.number,%0A avoidO
a5eea996a5a9d190a919fd96dfaa6b35797d3d4f
fix l10n pack for basis.l10n v2
lib/build/l10n/pack.js
lib/build/l10n/pack.js
var at = require('../../ast').js; var tmplAt = require('../../ast').tmpl; module.exports = function(flow){ function packKey(key){ if (key.charAt(0) == '#') return false; return l10nIndex.keys.hasOwnProperty(key) ? '#' + l10nIndex.keys[key].toString(36) : false; } var fc...
JavaScript
0.00002
@@ -623,23 +623,20 @@ f (flow. -options +l10n .version
6d0240c42bb6db9c39c6e784dbea4484dcddb7fb
remove unnecessary variable
lib/command/publish.js
lib/command/publish.js
'use strict'; module.exports = publish; var async = require('async'); var sha = require('sha'); var node_url = require('url'); var attachment = require('./attachment'); var unpublish = require('./unpublish'); var REGEX_IS_SNAPSHOT = /\-SNAPSHOT$/; // @param {Object} options // - tar: {string} tar file path // - p...
JavaScript
0.000739
@@ -210,49 +210,8 @@ );%0A%0A -var REGEX_IS_SNAPSHOT = /%5C-SNAPSHOT$/;%0A%0A%0A // @
d226de0ceae96633225fb5c30aae509ab1fa52df
Stop overriding 0 values.
lib/config/defaults.js
lib/config/defaults.js
(function () { 'use strict'; /** * This defines defaults that will be inserted into config. */ var defaults = { http: { // Won't bind http on anything by default bind: ['127.0.0.1'], // If binding, will use default port unless instructed otherwise ...
JavaScript
0.000001
@@ -752,24 +752,50 @@ server: %7B%0A + debug: false,%0A @@ -807,16 +807,16 @@ rs: 10,%0A - @@ -1287,15 +1287,12 @@ -return +if ( opti @@ -1302,24 +1302,58 @@ %5Bcategory%5D = += undefined) %7B%0A options%5Bcat @@ -1359,18 +1359,17 @@ tegory%5D -%7C%...
5075dc1a4be313a091fa9f63a0dc282368403059
update features
app/features_spec.js
app/features_spec.js
export default { submission: false, voting: false, tagging: true, proposalsPageGroupedByTags: false, networking: true, recommendations: true, editAcceptedProposals: true, publishAgenda: true, startRegistration: true, viewSlides: true }
JavaScript
0
@@ -24,20 +24,19 @@ ission: -fals +tru e,%0A vot @@ -194,19 +194,20 @@ Agenda: -tru +fals e,%0A sta
55fff62f36a722583bce5a2fc897194dc564b217
negative tests
FizzBuzz/fizzbuzz.js
FizzBuzz/fizzbuzz.js
"use strict"; var assert = require('assert'); var fizz = function(v) { return v % 3 === 0; }; var buzz = function(v) { return v % 5 === 0; }; describe("fizzbuzz", function() { it("should fizz", function() { assert(fizz(3)); }); it("should buzz", function() { assert(!buzz(7)); }); });
JavaScript
0.999948
@@ -230,16 +230,38 @@ zz(3)); +%0A assert(!fizz(5)); %0A %7D) @@ -318,16 +318,38 @@ zz(7));%0A + assert(buzz(10));%0A %7D);%0A%7D)
0b55ffdeab384530ed6e174635e8124fa093c1e0
Remove redundant code from hapi17 consumer
lib/consumer/hapi17.js
lib/consumer/hapi17.js
var urlib = require('url') var qs = require('qs') var config = require('../config') var flows = { 1: require('../flow/oauth1'), 2: require('../flow/oauth2'), response: require('../response') } module.exports = function (_config) { var app = {} function register (server, options) { app.config = config...
JavaScript
0.00819
@@ -889,69 +889,8 @@ ry = - (parseInt(server.version.split('.')%5B0%5D) %3E= 12)%0A ? qs. @@ -943,32 +943,8 @@ 985%0A - : req.query%0A @@ -1088,69 +1088,8 @@ ad = - (parseInt(server.version.split('.')%5B0%5D) %3E= 12)%0A ? qs. @@ -1120,34 +1120,8 @@ 985%0A - : r...
4cfeacb35c4786a1d005988c20ce96637161ebd6
Use 'beforeInput' event intead 'keyPress'; https://w3c.github.io/uievents/#event-type-keypress
src/components/CardNumberInput.js
src/components/CardNumberInput.js
import React from 'react'; import InputMask from 'inputmask-core'; import TextField from 'material-ui/TextField'; const ENTER_KEY = 'Enter'; const BACKSPACE_KEY = 'Backspace'; const KEYCODE_Y = 89; const KEYCODE_Z = 90; const PATTERN = '11-1111-11-11111'; class CardNumberInput extends React.Component { constructor(...
JavaScript
0.000866
@@ -517,24 +517,27 @@ s.handle -KeyPress +BeforeInput = this. @@ -542,24 +542,27 @@ s.handle -KeyPress +BeforeInput .bind(th @@ -1705,24 +1705,25 @@ k.getValue() +; %0A const e @@ -3866,24 +3866,27 @@ handle -KeyPress +BeforeInput (event) @@ -4114,19 +4114,20 @@ t(event. -key +data )) %7B%0A @@ -467...
f82ed6ff17abc2d8ad1ee10cc7a75c5bb7bc8243
Remove duplicated editLaneTitle propType
src/components/Lane/LaneHeader.js
src/components/Lane/LaneHeader.js
import React from 'react' import PropTypes from 'prop-types' import InlineInput from 'rt/widgets/InlineInput' import {Title, LaneHeader, RightContent } from 'rt/styles/Base' import LaneMenu from './LaneHeader/LaneMenu' const LaneHeaderComponent = ({ updateTitle, canAddLanes, onDelete, onDoubleClick, editLaneTitle, l...
JavaScript
0
@@ -1198,41 +1198,8 @@ nc,%0A - editLaneTitle: PropTypes.bool,%0A t:
644fb2c2a1b34a501829ad18291cca6034d78d75
rename to "invite" and "locator" for clarity
src/components/NavTabs/NavTabs.js
src/components/NavTabs/NavTabs.js
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { Map } from 'immutable'; import { Tab, Tabs } from 'material-ui/lib/tabs'; import classes from './NavTabs.css'; export class LoginView extends React.Component { static propTypes = { ...
JavaScript
0.000302
@@ -1243,36 +1243,30 @@ %3CTab label=' -Subscription +Invite ' value='sub @@ -1293,38 +1293,39 @@ %3CTab label=' -Search +Locator ' value='search'
7499436b89acf05f696b2f5a1abd0e936ac65bee
Implement card selection
src/components/ScrumPokerCards.js
src/components/ScrumPokerCards.js
"use strict"; import React, { Component } from "react"; import { StyleSheet, View, TouchableHighlight } from "react-native"; import _ from "lodash"; import Card from "./Card"; const CARD_VALUES = [ "0", "½", "1", "2", "3", "5", "8", "13", "20", "40", "100", "?", "∞", "☕", null ]; const CARDS_PER_ROW...
JavaScript
0
@@ -428,16 +428,42 @@ ate = %7B%0A + selectedCard: null,%0A ro @@ -508,16 +508,16 @@ R_ROW),%0A - op @@ -603,16 +603,371 @@ NDER%22);%0A + if (this.state.selectedCard) %7B%0A return (%0A %3CView style=%7B styles.singleCardContainer %7D%3E%0A %3CTouchableHighlight%0A ...
1020c4d209e482c209922b31692791f7a92e2dc8
add setImmediate so the maximum stack size is not exceeded
lib/db/sqljsAdapter.js
lib/db/sqljsAdapter.js
var async = require('async'); module.exports.createAdapter = function(filePath, callback) { var fs = require('fs'); var sqljs = require('sql.js'); fs.readFile(filePath, function(err, fileBuffer) { var db = new sqljs.Database(fileBuffer); var adapter = new Adapter(db); callback(err, adapter); }); } ...
JavaScript
0
@@ -1540,24 +1540,64 @@ callback) %7B%0A + async.setImmediate(function() %7B%0A var ro @@ -1627,24 +1627,26 @@ ct();%0A + eachCallback @@ -1668,16 +1668,26 @@ lback);%0A + %7D);%0A %7D,%0A
e8c4fd26c0d028462bb94304bdde17d9d1e53975
Fix for new value not beeing stored
lib/dummy-listeners.js
lib/dummy-listeners.js
if (!Object.prototype.addListener) { Object.defineProperty(Object.prototype, 'addListener', { enumerable: false, configurable: true, writable: false, value: function() { function addOneListener(obj, name, callback) { if (!obj._listeners_) { Object.defineProperty(o...
JavaScript
0.000001
@@ -1440,32 +1440,58 @@ call(obj, val);%0D +%0A%09%09%09%09%09%09field.value = val;%0D %0A%0D%0A%09%09%09%09%09%09for (va
9e133a8bc18f4f79428f636ed4540f433e9b5a52
Simplify editor registry destructor
lib/editor-registry.js
lib/editor-registry.js
'use babel' import {Emitter, CompositeDisposable} from 'atom' const EditorLinter = require('./editor-linter') export default class EditorRegistry { constructor() { this.emitter = new Emitter() this.subscriptions = new CompositeDisposable() this.editorLinters = new Map() this.subscriptions.add(this....
JavaScript
0
@@ -590,16 +590,57 @@ )%0A )%0A + this.subscriptions.add(editorLinter)%0A retu @@ -1299,100 +1299,8 @@ e()%0A - this.editorLinters.forEach(function(editorLinter) %7B%0A editorLinter.dispose()%0A %7D)%0A
ce727ba229a1cbc09da95728884d651e3883a815
handle paragraph formatting
src/main/resources/static/js/hogwild.js
src/main/resources/static/js/hogwild.js
$(document).ready(function() { $.getJSON("/app/story", function (data) { var entries = data.entries; for (var i = 0; i < entries.length; i++) { var entry = entries[i]; var container = $("<div>"); var heading = $("<h1>"); var body = $("<body>"); ...
JavaScript
0.000019
@@ -82,282 +82,936 @@ -var entries = data.entries;%0A for (var i = 0; i %3C entries.length; i++) %7B%0A var entry = entries%5Bi%5D;%0A var container = $(%22%3Cdiv%3E%22);%0A var heading = $(%22%3Ch1%3E%22);%0A var body = $(%22%3Cbody%3E%22);%0A heading...
f7bf5b6c015dd75657903b68aaa4743ef0050646
create gulp build task, that builds everything required
ScrumPoker/gulpfile.js
ScrumPoker/gulpfile.js
var gulp = require("gulp"); var concat = require("gulp-concat"); var templateCache = require("gulp-angular-templatecache"); var minHtml = require("gulp-minify-html"); var sourcemap = require("gulp-sourcemaps"); var uglify = require("gulp-uglify"); gulp.task("script", function() { gulp.src([ "App/app.m...
JavaScript
0
@@ -260,16 +260,17 @@ (%22script +s %22, funct @@ -752,28 +752,74 @@ .pipe(gulp.dest(%22.%22));%0A%7D);%0A +%0Agulp.task(%22build%22, %5B%22scripts%22, %22templates%22%5D);
eca8eee2bb4def206897e803c1253ae75d37d9e1
Use the username from db not the one entered by the user in tab title
src/main/resources/static/js/scripts.js
src/main/resources/static/js/scripts.js
$(document).ready(function () { 'use strict'; /***************************************/ /*** ROUTES ***/ /***************************************/ /*********************/ /** Root **/ /*********************/ crossroads.addRoute('/', fu...
JavaScript
0.000002
@@ -2036,38 +2036,187 @@ -navigateTo(username, username) +axios.get('/users?username=' + username).then(function (data) %7B%0A navigateTo(username, data.data%5B0%5D.username)%0A %7D)%0A %0A
768765f6c85a108df658687aeede2e27c54cd2e3
html/js/shared
src/model/immutable/ContentBlockNode.js
src/model/immutable/ContentBlockNode.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow * @emails oncall+draft_js * * This file is a fork of ContentBlock adding support for nesting references by *...
JavaScript
0.999931
@@ -2005,16 +2005,17 @@ extends +( Record(d @@ -2027,16 +2027,24 @@ tRecord) +: any)%0A impleme
db64f9361392fd988349fbd954e3bd692729bb00
Make insertIntoList strict-local
src/model/transaction/insertIntoList.js
src/model/transaction/insertIntoList.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow * @emails oncall+draft_js */ 'use strict'; import type {List} from 'immutable'; /** * Maintain persistence...
JavaScript
0.000007
@@ -200,16 +200,29 @@ * @flow + strict-local %0A * @ema @@ -418,16 +418,19 @@ rgetList +Arg : List%3CT @@ -484,16 +484,50 @@ st%3CT%3E %7B%0A + let targetList = targetListArg;%0A if (of
ae7da122d7d35e1da38280f12defd65a899859a1
fix session management
src/node/hooks/express/adminsettings.js
src/node/hooks/express/adminsettings.js
var path = require('path'); var eejs = require('ep_etherpad-lite/node/eejs'); var settings = require('ep_etherpad-lite/node/utils/Settings'); var installer = require('ep_etherpad-lite/static/js/pluginfw/installer'); var hooks = require("ep_etherpad-lite/static/js/pluginfw/hooks"); var fs = require('fs'); exports.expre...
JavaScript
0
@@ -756,196 +756,32 @@ -console.warn (%22The middleware now handles auth but I'm not convinced SocketIO is being responsible enough here so this needs reviewing before hitting master%22);%0A // if (!socket.handshake +if (!socket.conn.request .ses @@ -792,33 +792,36 @@ %7C%7C !socket. -handshake +conn.reques...
42fe6a5a18ecea11e264d28259622a68884cc149
switch to v1 of oath url, no idea how this could have been working before
app/services/auth.js
app/services/auth.js
import Ember from 'ember'; const { inject, computed, RSVP, Logger, Service } = Ember; function objectToQueryParameters(obj) { return Object.keys(obj).map(key => { const value = obj[key]; return `${key}=${value}`; }).join('&'); } export default Service.extend({ ajax: in...
JavaScript
0
@@ -510,21 +510,16 @@ /oauth2/ -v2.0/ authoriz @@ -590,13 +590,8 @@ th2/ -v2.0/ toke @@ -1259,38 +1259,36 @@ window.location. -origin +href ,%0A re @@ -3059,32 +3059,84 @@ s.get('appId'),%0A + resource: 'https://graph.windows.net/',%0A scop @@ -3213,14 +3213,12 @@ ion. -origin...
8a1f972d7d0a5f300376501deb20b2d7d51c273a
Tweak message
app/skills/stream.js
app/skills/stream.js
const Twitter = require('twitter'); class Stream { constructor(controller) { this.controller = controller; this.client = new Twitter({ consumer_key: process.env.TWITTER_CONSUMER_KEY, consumer_secret: process.env.TWITTER_CONSUMER_SECRET, access_token_key: process.env.TWITTER_ACCESS_TOKEN, ...
JavaScript
0
@@ -422,16 +422,17 @@ r.hears( +%5B '%5Estart @@ -444,15 +444,40 @@ ming + %22 (.*) +%22 $', + '%5Estart streaming$'%5D, 'di @@ -521,38 +521,108 @@ cons -t query = msg.match%5B1%5D.trim(); +ole.log(msg.match)%0A const query = msg.match%5B1%5D && msg.match%5B1%5D.trim();%0A console.log(query) %0A ...
a17368efc279b49e22ac958528358b355febe7e3
Remove debug code
app/socket-bridge.js
app/socket-bridge.js
import debugLib from 'debug'; import socketIo from 'socket.io'; var debug = debugLib('socket-bridge'); export default function socketBridge(app) { var io = socketIo(app); var ansibleIo = io.of('/ansible'); var ansibleToPython = require('./ansible'); ansibleIo.on('connection', function (socket) { console....
JavaScript
0.000299
@@ -613,189 +613,8 @@ ) %7B%0A - if (data.header.msg_type == %22UPDATE_PERIPHERAL%22)%7B%0A console.log(%22test%22);%7D;%0A if (data.header.msg_type == %22UPDATE_BATTERY%22) %7B%0A console.log(%22test2%22);%7D;%0A
834357d245f5155a031a3db36693f3e8d293905b
Revert "Select menu options on mouse down"
Source/classes/Menu.js
Source/classes/Menu.js
/** * Menu */ Garnish.Menu = Garnish.Base.extend({ settings: null, $container: null, $options: null, $trigger: null, _windowWidth: null, _windowHeight: null, _windowScrollLeft: null, _windowScrollTop: null, _triggerOffset: null, _triggerWidth: null, _triggerHeight: null, _triggerOffsetRight: null, _t...
JavaScript
0
@@ -1008,25 +1008,21 @@ tions, ' -mousedown +click ', 'sele
3e04888ca631121900153f84acfe8575c9bde03f
Remove left-behind console log
src/components/popover/Popover.js
src/components/popover/Popover.js
import React, { PureComponent } from 'react'; import { createPortal } from 'react-dom'; import PropTypes from 'prop-types'; import cx from 'classnames'; import throttle from 'lodash.throttle'; import InjectOverlay from '../overlay'; import Transition from 'react-transition-group/Transition'; import ReactResizeDetector ...
JavaScript
0
@@ -1671,37 +1671,8 @@ g;%0A%0A - console.log(maxHeight);%0A%0A
4160ffe7c23ec4488749a0965b95a96359247348
Remove display style instead of using inline-block for editing
opentreemap/treemap/js/src/inlineEditForm.js
opentreemap/treemap/js/src/inlineEditForm.js
"use strict"; var $ = require('jquery'); var Bacon = require('baconjs'); var _ = require('underscore'); var FH = require('./fieldHelpers'); // Requiring this module handles wiring up the browserified // baconjs to jQuery require('./baconUtils'); exports.init = function(options) { var updateUrl = options.updateUr...
JavaScript
0
@@ -939,28 +939,16 @@ ion) ? ' -inline-block ' : 'non @@ -1022,33 +1022,32 @@ ionToCssDisplay, - %0A %5B'e @@ -1151,33 +1151,32 @@ ionToCssDisplay, - %0A %5B'i @@ -1278,17 +1278,16 @@ Display, - %0A @@ -1403,32 +1403,33 @@ ction(index, el) + %7B%0A @@ -2919,17 +2...
7e668e1cb853a528c2bb2559fba18d06c996de37
Add files via upload (#9588)
editor/js/Menubar.View.js
editor/js/Menubar.View.js
/** * @author mrdoob / http://mrdoob.com/ */ Menubar.View = function ( editor ) { var container = new UI.Panel(); container.setClass( 'menu' ); var title = new UI.Panel(); title.setClass( 'title' ); title.setTextContent( 'View' ); container.add( title ); var options = new UI.Panel(); options.setClass( 'op...
JavaScript
0
@@ -602,17 +602,17 @@ WebVR no -r +t availab
617e73ffb327f9ed5cb1043e5d3969eacdca261f
Remove isAuthenticated check from updateUser for now. This branch doesn't yet allow proper login, and this needs to be taken out for tests to pass.
src/controllers/userController.js
src/controllers/userController.js
'use strict'; /** * The controller for the user API * * * @module userController * @license MIT * @author yamikuronue */ /*Express typedefs*/ /** @typedef Request @type {object} @property {object} params - The parameters for the request / /** @typedef Response @type {object} @function send - The ...
JavaScript
0
@@ -2973,83 +2973,8 @@ ) %7B%0A -%09if (!req.isAuthenticated()) %7B%0A%09%09res.status(401).end();%0A%09%09return null;%0A%09%7D%0A%09 %0A%09re
759ebf6dbb2477aef1227fcc03c413cf19012529
remove waiting cursor after loading project
src/modules/savesettings/savesettings-directive.js
src/modules/savesettings/savesettings-directive.js
import './module.js'; angular.module('anol.savesettings') .directive('anolSavesettings', ['$templateRequest', '$compile', 'SaveSettingsService', 'ProjectSettings', 'NotificationService', function($templateRequest, $compile, SaveSettingsService, ProjectSettings, NotificationService) { return { ...
JavaScript
0.000001
@@ -3683,32 +3683,176 @@ (data.message);%0A + setTimeout(function() %7B%0A scope.removeWaiting();%0A %7D, 250);%0A
87a8540a4a85974b8bdf0a9fe0881f585894a111
set float to fixed if mobile
src/controls/CloseWindowButton.js
src/controls/CloseWindowButton.js
import $ from 'jquery' import { Control } from 'guide4you/src/controls/Control' import '../../less/closewindowbutton.less' /** * @typedef {g4uControlOptions} CloseWindowButtonOptions * @property {string} [label] */ /** * Close the window. This only works if the window was opened by javascript. */ export class ...
JavaScript
0.000003
@@ -946,11 +946,141 @@ ton)%0A %7D +%0A%0A getFloat () %7B%0A if (this.getMap().get('mobile')) %7B%0A return 'fixed'%0A %7D else %7B%0A return super.getFloat()%0A %7D%0A %7D %0A%7D%0A
678da73aafaeebe40023c8202443094d86c8141f
Clean up unused vars
src/controls/trackpad-controls.js
src/controls/trackpad-controls.js
/** * 3dof (Gear VR, Daydream) controls for mobile. */ module.exports = AFRAME.registerComponent('trackpad-controls', { schema: { enabled: { default: true } }, init: function () { this.dVelocity = new THREE.Vector3(); this.zVel = 0; this.bindMethods(); }, play: function () { this....
JavaScript
0.000001
@@ -1973,313 +1973,8 @@ 0)%7B%0A - var movingLeft = this.startingAxisData%5B0%5D %3E 0 && axis_data%5B0%5D %3C 0%0A var movingRight = this.startingAxisData%5B0%5D %3C 0 && axis_data%5B0%5D %3E 0%0A var movingForward = this.startingAxisData%5B1%5D %3E 0 && axis_data%5B1%5D %3C 0%0A var movin...
f04880a5d775c25c85b9c84eb63fad553dd6f9bc
Make datepicker update view after clearing selection
src/openlmis-form/openlmis-datepicker.directive.js
src/openlmis-form/openlmis-datepicker.directive.js
/* * This program is part of the OpenLMIS logistics management information system platform software. * Copyright © 2017 VillageReach * * This program 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, e...
JavaScript
0
@@ -1987,16 +1987,29 @@ $filter' +, '$document' %5D;%0A%0A%09fun @@ -2032,16 +2032,27 @@ ($filter +, $document ) %7B%0A @@ -2547,15 +2547,8 @@ ment -, attrs ) %7B%0A @@ -2774,16 +2774,562 @@ efined;%0A +%0A //This is to unselect value from datepicker view%0A //(Workaround for an...
c1447d8991f7fda2b2d3b515e47cb595d841db7b
add host_tags support to default template data
src/util/lib/cosi/registration/setup/index.js
src/util/lib/cosi/registration/setup/index.js
"use strict"; /*eslint-env node, es6 */ /*eslint-disable no-magic-numbers, global-require, camelcase */ const assert = require("assert"); const fs = require("fs"); const os = require("os"); const path = require("path"); const url = require("url"); const api = require("circonusapi2"); const chalk = require("chalk"); ...
JavaScript
0
@@ -1563,16 +1563,109 @@ ars : %7B%7D +,%0A host_tags: this.customOptions.host_tags ? this.customOptions.host_tags : %5B%5D %0A
8847f2db68ce91d4f85951573a3a9532a9d36746
Reset steps to increase smoothness
src/widgets/time-series/torque-header-view.js
src/widgets/time-series/torque-header-view.js
var cdb = require('cartodb.js'); var TorqueControlsView = require('./torque-controls-view'); var TorqueTimeInfoView = require('./torque-time-info-view'); var TimeSeriesHeaderView = require('./time-series-header-view'); var template = require('./torque-header-view.tpl'); /** * View for the header in the torque time-se...
JavaScript
0.000001
@@ -1813,32 +1813,127 @@ : function () %7B%0A + // Move it to 0 so it doesn't stutter as much%0A this._torqueLayerModel.set(%7B step: 0 %7D);%0A this._torque
d8a17c9bc1f84633a9a70e582c48df06f281632d
Update Ashjrakamas.js
src/parser/shared/modules/items/bfa/Ashjrakamas.js
src/parser/shared/modules/items/bfa/Ashjrakamas.js
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import ITEMS from 'common/ITEMS/index'; import Analyzer from 'parser/core/Analyzer'; import StatTracker from 'parser/shared/modules/StatTracker'; import UptimeIcon from 'interface/icons/Uptime'; import PrimaryStatIcon from 'interface/icons/PrimarySta...
JavaScript
0.000001
@@ -759,16 +759,21 @@ ;%0Aconst +PROC_ STATS = @@ -1170,217 +1170,8 @@ %7D%0A%0A - // TODO check if this buff scales, hotfix notes make it sound static.%0A //this.stats = calculatePrimaryStat(492, 3648, this.selectedCombatant.getItem(ITEMS.ASHJRAKAMAS_SHROUD_OF_RESOLVE.id).itemLevel);%0A%0A @@ -1242,1...
ba2c65394f55bfb5c9938d1c20c94327d23f60a0
Work in progress
eln/ExpandableMolecule.js
eln/ExpandableMolecule.js
define([ 'src/util/api', 'src/util/ui', './libs' ], function (API, UI, libs) { var OCLE = libs.OCLE; class ExpandableMolecule { constructor(sample) { this.sample = sample; this.molfile = this.sample.$content.general.molfile + ''; this.idCode = OCL...
JavaScript
0.000003
@@ -1376,38 +1376,35 @@ this. -toggle +set JSMEEdition(fals @@ -1459,22 +1459,19 @@ -toggle +set JSMEEdit @@ -1474,20 +1474,20 @@ Edition( -forc +valu e, noDep @@ -1515,256 +1515,38 @@ -if (force !== undefined && force === this.jsmeEditionMode) return;%0A if (force === undefin...
c0ff96430274316b52fc291474fb908c9864233e
remove setTimeout
eln/ExpandableMolecule.js
eln/ExpandableMolecule.js
define([ 'src/util/api', 'src/util/ui', './libs' ], function (API, UI, libs) { var OCLE = libs.OCLE; class ExpandableMolecule { constructor(sample) { this.sample = sample; this.molfile = String(this.sample.getChildSync(['$content', 'general', 'molfile']) || '...
JavaScript
0.000025
@@ -2487,47 +2487,8 @@ e);%0A - setTimeout(() =%3E %7B%0A @@ -2569,34 +2569,8 @@ dH); -%0A %7D, 1000); %0A%0A
50d3cd0a75ba83eaf4551d2e9de791319a311dbd
Handle 'no dashboard games' case gracefully
appsrc/util/fetch.js
appsrc/util/fetch.js
import invariant from 'invariant' import mklog from './log' const log = mklog('fetch') import {opts} from '../logger' import client from '../util/api' import {normalize, arrayOf} from './idealizr' import {game, user, collection, downloadKey} from './schemas' import {each, union, pluck, where, difference} from 'unde...
JavaScript
0.000775
@@ -793,16 +793,91 @@ user of%0A + if (!normalized.entities.games) %7B%0A normalized.entities.games = %7B%7D%0A %7D%0A normal
e1594913c3947c76fb04b1952c25195a9c07512b
Update Kanban Visualization
src/routers/v1/finishing-printing/kanban-router.js
src/routers/v1/finishing-printing/kanban-router.js
var Manager = require("dl-module").managers.production.finishingPrinting.KanbanManager; var JwtRouterFactory = require("../../jwt-router-factory"); var resultFormatter = require("../../../result-formatter"); var db = require("../../../db"); var passport = require("../../../passports/jwt-passport"); const apiVersion = '...
JavaScript
0
@@ -2264,16 +2264,51 @@ .select; +%0A query.order = query.order; %0A%0A
fcf678a93b675cc5f43f17ce14b80d04f597c7ad
Add a simple Flow example
WebClient/src/index.js
WebClient/src/index.js
import React from 'react' import { render } from 'react-dom' function Hello () { return <div>Hello React JSX World! powered by Babel</div> } render( <Hello />, document.getElementById('root') )
JavaScript
0
@@ -1,12 +1,22 @@ +// @flow%0A%0A import React @@ -81,16 +81,38 @@ Hello ( +%7Bname%7D: %7Bname: string%7D ) %7B%0A re @@ -131,41 +131,14 @@ llo -React JSX World! powered by Babel +%7Bname%7D %3C/di @@ -159,16 +159,29 @@ %3CHello + name='Pedro' /%3E,%0A d
670748f1006035f76a3c03d4d014d3ecce2f390f
Change from version to base path option
tools/scripts/build_api_docs_html_fragments.js
tools/scripts/build_api_docs_html_fragments.js
#!/usr/bin/env node /** * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * 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 * *...
JavaScript
0.000001
@@ -1211,19 +1211,26 @@ %0A%09%09' -version': ' +base': '/docs/api/ v' + @@ -1245,16 +1245,22 @@ ersion() + + '/' ,%0A%09%09'dir
f844f366fff47f8db44868d9dd7d0af70c824538
update jsdoc.js (#140)
packages/google-cloud-datalabeling/.jsdoc.js
packages/google-cloud-datalabeling/.jsdoc.js
// Copyright 2019 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.0 // // Unless required by applicable law or agreed to in ...
JavaScript
0
@@ -1040,9 +1040,9 @@ 201 -8 +9 Goo @@ -1165,16 +1165,71 @@ 'lumen' +,%0A default: %7B%0A %22outputSourceFiles%22: false%0A %7D %0A %7D,%0A
e85e2452adbb7d39b51b4189632fa0c785285451
Fix typo in custom click event
FastClick.js
FastClick.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/. * * Owner: mark@famo.us * @license MPL 2.0 * @copyright Famous Industries, Inc. 2014 */ define(function(require,...
JavaScript
0.000003
@@ -1760,17 +1760,16 @@ 'detail -s ': touch
2e0d74287321ba074fb8dd0c1a110b7549e5c59b
Update documentation
Firestore.js
Firestore.js
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "_|Fire|get" }] */ /* globals FirestoreRequest_, createDocument_, deleteDocument_, getAuthToken_, getDocument_, getDocumentIds_, query_, updateDocument_ */ /** * Get an object that acts as an authenticated interface with a Firestore project. * * @param {str...
JavaScript
0
@@ -2985,16 +2985,21 @@ boolean%7D + mask if true
2e72d77362f4df18f09eabb8f2fb6f73310b953c
disable specific list view ui test due to failing in saucelabs until further research.
test/e2e/adminUI/group003List/uiTest001ListView.js
test/e2e/adminUI/group003List/uiTest001ListView.js
module.exports = { before: function (browser) { browser .url(browser.globals.adminUI.url) .waitForElementVisible('#signin-view') .setValue('input[name=email]', browser.globals.adminUI.login.email) .setValue('input[name=password]', browser.globals.adminUI.login.password) .click('button[type=submit]') ...
JavaScript
0
@@ -2639,32 +2639,34 @@ e.visible;%0A%09%7D,%0A%09 +// 'List view must @@ -2714,32 +2714,34 @@ on (browser) %7B%0A%09 +// %09browser.expect. @@ -2891,24 +2891,26 @@ __expand')%0A%09 +// %09%09%09 .to @@ -2915,32 +2915,34 @@ to.be.visible;%0A%09 +// %7D,%0A%09'List view m
afbb12aa87db3c8cca0b49725208a9d029d04311
fix tests
tests/acceptance/organization_admin/client-test.js
tests/acceptance/organization_admin/client-test.js
import { module, test } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import { currentURL, visit } from '@ember/test-helpers'; import { authenticateSession } from 'ember-simple-auth/test-support'; module('Acceptance | organization_admin | client', function(hooks) { setupApplicationTest(hooks); ...
JavaScript
0.000001
@@ -689,36 +689,47 @@ asText('DataCite + Repository ');%0A - assert.dom(' @@ -1179,32 +1179,43 @@ asText('DataCite + Repository ');%0A assert.d @@ -1816,32 +1816,43 @@ asText('DataCite + Repository ');%0A assert.d @@ -2259,24 +2259,24 @@ ite/dois');%0A - assert.d @@ -2306,16 +2306,27 @@ DataCite...
b52a245bec966c71c2600552f594ae6a160d1470
add instance method scrollToRowKey unit test
tests/unit/specs/ve-table-instance-methods.spec.js
tests/unit/specs/ve-table-instance-methods.spec.js
import { mount } from "@vue/test-utils"; import veTable from "@/ve-table"; import { later, mockScrollTo } from "../util"; describe("veTable instance methods", () => { const TABLE_DATA = [ { name: "John", date: "1900-05-20", hobby: "coding and coding repeat", ...
JavaScript
0
@@ -188,32 +188,55 @@ A = %5B%0A %7B%0A + rowkey: 0,%0A name @@ -241,24 +241,24 @@ me: %22John%22,%0A - @@ -391,32 +391,55 @@ %7D,%0A %7B%0A + rowkey: 1,%0A name @@ -598,32 +598,55 @@ %7D,%0A %7B%0A + rowkey: 2,%0A ...
2daf2104593281ac80405c479c279ec9435a6991
Use radius and location type as part of cache key
Maps/Nearby.js
Maps/Nearby.js
// @flow import { DownloadResult, downloadManager } from '../HTTP.js' import { buildURL } from '../URLs.js' import { parseBar } from './PlaceInfo.js' import { config } from '../Config.js' import type { Int, Float } from '../Types.js' import type { Key, Coords, PlaceID } from './MapStore.js' import type { Bar, Photo }...
JavaScript
0
@@ -1492,16 +1492,62 @@ ngitude%7D +,radius=$%7Bradius%7D,locationType=$%7BlocationType%7D %60%0A co
44f8bf0627a4a3bfa1378bcc322967af6692f711
allow custom smtp configs
packages/isomorphic-core/src/auth-helpers.js
packages/isomorphic-core/src/auth-helpers.js
const _ = require('underscore') const Joi = require('joi'); const IMAPErrors = require('./imap-errors') const IMAPConnection = require('./imap-connection') const imapSmtpSettings = Joi.object().keys({ imap_host: [Joi.string().ip().required(), Joi.string().hostname().required()], imap_port: Joi.number().integer().r...
JavaScript
0
@@ -621,16 +621,52 @@ ired(),%0A + smtp_custom_config: Joi.object(),%0A ssl_re @@ -2026,16 +2026,38 @@ quired', + 'smtp_custom_config', %0A %5D);
67cb107510cb1384593f1d5898738abffce8bebd
update unit tests
test/api/controllers/serverController.test.js
test/api/controllers/serverController.test.js
const Promise = require('bluebird'), should = require('should'), sinon = require('sinon'), ServerController = require('../../../lib/api/controllers/serverController'), Request = require('kuzzle-common-objects').Request, KuzzleMock = require('../../mocks/kuzzle.mock'), sandbox = sinon.sandbox.create(); de...
JavaScript
0
@@ -4980,24 +4980,31 @@ url: ' +_plugin /foobar',%0A
8c1c22488114ca0d2c1265c462397a54ba8b8173
fix resolveComponentPath to handle global & linked installs
packages/mjml-core/src/helpers/mjmlconfig.js
packages/mjml-core/src/helpers/mjmlconfig.js
import path from 'path' import fs from 'fs' import { registerComponent } from '../components' export function readMjmlConfig(configPathOrDir = process.cwd()) { let componentRootPath = process.cwd() let mjmlConfigPath = configPathOrDir try { mjmlConfigPath = path.basename(configPathOrDir) === '.mjmlconfig' ...
JavaScript
0
@@ -1239,17 +1239,14 @@ // - if we g -e +o t a @@ -1273,39 +1273,296 @@ rror - try again with relative +%0A try %7B%0A // try again as relative path to node_modules: (this may be necessary if mjml is intalled globally or by npm link)%0A return resolveComponentPath(%60./node_modules/$%7BcompPa...
d9b9355ecd653daafdd5d6e2b1521e9e76dc16c1
Add support for ES6 in a pre-bundle state
packages/olo-gulp-helpers/helpers/scripts.js
packages/olo-gulp-helpers/helpers/scripts.js
"use strict"; const fs = require("fs"); const path = require("path"); const process = require("process"); const gulp = require("gulp"); const eslint = require("gulp-eslint"); const concat = require("gulp-concat"); const sourcemaps = require("gulp-sourcemaps"); const uglify = require("gulp-uglify"); const rev = require...
JavaScript
0
@@ -1683,16 +1683,108 @@ e(babel( +%7B%0A presets: %5B%22es2015%22%5D // ensure that uglify does not choke on potential es6 code%0A %7D ))%0A .
c53ebc50ee2dcd35b5f4f4662876dbc43f3b58b9
Rename variables
src/botPage/bot/Interpreter.js
src/botPage/bot/Interpreter.js
import JSInterpreter from 'js-interpreter'; import { observer as globalObserver } from 'binary-common-utils/lib/observer'; import { createScope } from './CliTools'; import Interface from './Interface'; const unrecoverableErrors = ['InsufficientBalance', 'CustomLimitsReached']; const botInitialized = bot => bot && bot....
JavaScript
0.000003
@@ -453,13 +453,21 @@ t, e +rrorName = -%7B%7D +'' ) =%3E @@ -471,16 +471,17 @@ =%3E%0A +! unrecove @@ -502,18 +502,21 @@ cludes(e -.n +rrorN ame) &&
467a4fc68453eb098f8bb1f5bad4a893c0b71048
Fix boolean logic in loadFull invocation
src/bundles/rollbar.snippet.js
src/bundles/rollbar.snippet.js
/* globals __DEFAULT_ROLLBARJS_URL__ */ /* globals _rollbarConfig */ var RollbarShim = require('../shim').Rollbar; var snippetCallback = require('../snippet_callback'); _rollbarConfig.rollbarJsUrl = _rollbarConfig.rollbarJsUrl || __DEFAULT_ROLLBARJS_URL__; var shim = RollbarShim.init(window, _rollbarConfig); var cal...
JavaScript
0.000008
@@ -397,10 +397,46 @@ nt, -!! +_rollbarConfig.async === undefined %7C%7C _rol
aef7b12c2cef8faf1d8647388676830f0e48b7ef
add style to MultiselectTag.js
packages/react-widgets/src/MultiselectTag.js
packages/react-widgets/src/MultiselectTag.js
import cn from 'classnames' import React from 'react' import PropTypes from 'prop-types' import Button from './Button' class MultiselectTag extends React.Component { static propTypes = { id: PropTypes.string, clearTagIcon: PropTypes.node, onRemove: PropTypes.func.isRequired, focused: PropTypes.bool,...
JavaScript
0
@@ -25,34 +25,8 @@ es'%0A -import React from 'react'%0A impo @@ -56,16 +56,41 @@ -types'%0A +import React from 'react' %0Aimport @@ -981,16 +981,23 @@ disabled +, style %7D = thi @@ -1236,16 +1236,17 @@ e-focus' +, %0A @@ -1249,16 +1249,38 @@ )%7D%0A + style=%7Bstyle%7D%0A %3E%0A
fb5488decad38f2fb6baaa722a4330369b95eaa4
Fix spawn module require in rear-server-scripts init
packages/rear-server-scripts/scripts/init.js
packages/rear-server-scripts/scripts/init.js
const fs = require('fs-extra'); const path = require('path'); const logger = require('rear-logger')('rear-server-scripts-init'); const spawn = require('child_process').spawn; module.exports = init; /////////////////////// function init(root, appName, origin, verbose, useYarn, template) { prepareProject(root); co...
JavaScript
0
@@ -133,16 +133,20 @@ st spawn +Sync = requi @@ -170,16 +170,20 @@ ').spawn +Sync ;%0A%0Amodul @@ -2959,18 +2959,17 @@ = spawn -.s +S ync(comm
9d7e2254c57d99f87c8f984be5a2ce228a44a1a3
Use env vars by default instead of 'CHANGE_ME'
packages/tux-scripts/template/new/src/app.js
packages/tux-scripts/template/new/src/app.js
import React from 'react' import createContentfulAdapter from 'tux-adapter-contentful' import tux from './middleware/tux' import history from 'react-chain-history' import createReactChain from 'react-chain' import Home from './home' import './index.css' const publicUrl = process.env.PUBLIC_URL ? process.env.PUBLIC_UR...
JavaScript
0
@@ -441,14 +441,34 @@ ful -tokens +clientId (application Uid) fro @@ -591,72 +591,149 @@ ce: -'CHANGE_ME',%0A accessToken: 'CHANGE_ME',%0A clientId: 'CHANGE_ME' +process.env.TUX_CONTENTFUL_SPACE_ID,%0A accessToken: process.env.TUX_CONTENTFUL_ACCESS_TOKEN,%0A clientId: process.env.TUX_CONTENTFUL_CLIENT_ID ,%0...
605f57f681e4f94297167b5800756d2c0e8722fd
Update tests for Home View
tests/routes/Home/components/HomeView.spec.js
tests/routes/Home/components/HomeView.spec.js
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
JavaScript
0
@@ -310,9 +310,13 @@ d('h -4 +eader ')%0A @@ -384,16 +384,23 @@ ch(/ -Welcome! +About Max Rojas /)%0A @@ -423,28 +423,27 @@ rs a -n awesome duck image + bio of the painter ', ( @@ -459,20 +459,19 @@ const -duck +bio = _comp @@ -486,11 +486,9 @@ nd(' -img +p ')%0A @@ -497,20 +497,19 @@ expect( -duck +...
78ea1cd9b62f00747beb24b884e0d69a43e6b52e
Remove unused import
tests/smoke-tests/readerPresenterSmokeTest.js
tests/smoke-tests/readerPresenterSmokeTest.js
const Endless = imports.gi.Endless; const EosKnowledge = imports.gi.EosKnowledge; const EosKnowledgeSearch = imports.EosKnowledgeSearch; const Gio = imports.gi.Gio; const Gtk = imports.gi.Gtk; const Lang = imports.lang; // Load and register the GResource which has content for this app let resource = Gio.Resource.load(...
JavaScript
0
@@ -162,36 +162,8 @@ io;%0A -const Gtk = imports.gi.Gtk;%0A cons
d404b07560e35f5288681f4084091c73231aba75
Tweak spacing
toolkits/landcover/test/helpers/test-image.js
toolkits/landcover/test/helpers/test-image.js
/** * @license * Copyright 2019 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.0 * * Unless required by applicable law o...
JavaScript
0.000001
@@ -724,16 +724,17 @@ E = 15;%0A +%0A /**%0A * R
7f522d8cbf244b71c36a22e3bcce6b060dc887d0
Add CSS classes to items for better customizability
accessibility.cloud.js
accessibility.cloud.js
import Mustache from 'mustache'; import humanizeString from 'humanize-string'; function formatName(name) { return humanizeString(name).replace(/^Rating /, ''); } function formatValue(value) { if (value === true) return 'Yes'; if (value === false) return 'No'; return value; } function formatRating(rating) { ...
JavaScript
0
@@ -1296,16 +1296,43 @@ urn %60%3Cli + class=%22ac-$%7Btypeof value%7D%22 %3E$%7Bforma
91db4d03f9eec41876c7fe5e3ffcdf42ab0bb267
Fix lp:1302500 by evaluating an empty context to avoid error
web_context_tunnel/static/src/js/context_tunnel.js
web_context_tunnel/static/src/js/context_tunnel.js
openerp.web_context_tunnel = function(instance) { instance.web.form.FormWidget.prototype.build_context = function() { var v_context = false; var fields_values = false; // instead of using just the attr context, we merge any attr starting with context for (var key in this.node.attrs)...
JavaScript
0
@@ -883,16 +883,85 @@ %7C%7C %7B%7D;%0A + v_context = new instance.web.CompoundContext(v_context);%0A
f349f5c37f2f6b19b951eb23b527493e88154e74
use Object.assign
src/browser/worker/process/background.js
src/browser/worker/process/background.js
import extend from 'extend'; import Image from '../../../image/Image'; const defaultOptions = { regression: { kernelType: 'polynomial', kernelOptions: { degree: 2, constant: 1 } }, threshold: 0.02, roi: { minSurface: 100, positive: false }, sampling: 20, include: [] }; function run(imag...
JavaScript
0.000051
@@ -1,34 +1,4 @@ -import extend from 'extend';%0A%0A impo @@ -321,14 +321,21 @@ s = -extend +Object.assign (%7B%7D,