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 |
|---|---|---|---|---|---|---|---|
f3356a587ba5d0873543b4216f77b8b3f86aec1c | add tests for update and edit button | client/spa/js/learning-resource/spec/learning-resource.view.spec.js | client/spa/js/learning-resource/spec/learning-resource.view.spec.js | /*
global jasmine, describe, it, expect, beforeEach, afterEach, xdescribe, xit,
spyOn
*/
// Get the code you want to test
var View = require('../learning-resource.view.js');
var matchers = require('jasmine-jquery-matchers');
var Backbone = require('../../vendor/index').Backbone;
// Test suite
console.log('test learni... | JavaScript | 0 | @@ -701,17 +701,21 @@
: 'C
-ontact %3C3
+risis Averted
',%0A
@@ -738,11 +738,20 @@
e: '
-web
+presentation
',%0A
@@ -769,18 +769,32 @@
ption: '
+You are welco
me
+.
'%0A %7D)
@@ -1139,16 +1139,28 @@
s('learn
+ing-resource
');%0A
@@ -1418,16 +1418,19 @@
.$('
-h1').htm
+#title').va
l())
@@ -1444,20 +1... |
44f060f08042c5a51da7fd5941f56a22e62a658e | Check if selectize.js is already loaded | addon/src/main/resources/VAADIN/selectize/selectize-connector.js | addon/src/main/resources/VAADIN/selectize/selectize-connector.js | window.com_byteowls_vaadin_selectize_Selectize = function() {
var THEME_ID = "selectize-theme-id";
var themeLink;
// see the javadoc of com.vaadin.ui.
// for all functions on this.
var e = this.getElement();
// Please note that in JavaScript, this is not necessarily defined inside callback functions and it might ... | JavaScript | 0 | @@ -1540,36 +1540,42 @@
%7B%0A%09%09%09%09self.
-initComponen
+loadSelectizeScrip
t(state);%0A%09%09
@@ -1599,28 +1599,34 @@
%09%09%09self.
-initComponen
+loadSelectizeScrip
t(state)
@@ -1662,20 +1662,26 @@
his.
-initComponen
+loadSelectizeScrip
t =
@@ -1789,53 +1789,298 @@
;%0A%09%09
-this.loadScript(selectiz... |
ac6139d4d8bd3ae13c6fa5f45ef70edd3fdabbf8 | Update mataro.conf.js | app/javascript/gobierto_investments/webapp/mixins/mataro.conf.js | app/javascript/gobierto_investments/webapp/mixins/mataro.conf.js | import axios from "axios";
export default {
title: {
id: "title_translations"
},
description: {
id: "descripcio-projecte"
},
phases: {
id: "estat"
},
location: {
id: "wkt",
center: [41.536908, 2.4418503],
minZoom: 13,
maxZoom: 16
},
availableFilters: [
{
id: "dat... | JavaScript | 0 | @@ -1168,32 +1168,96 @@
ue%0A %7D,%0A %7B%0A
+ id: %22tipus%22%0A %7D,%0A %7B%0A id: %22element%22%0A %7D,%0A %7B%0A
id: %22tipus
|
bdb88819e8e31b18d4449770962c74b62fb94aa7 | Fix linter error | dataprep-webapp/src/app/services/state/grid/grid-state-service.js | dataprep-webapp/src/app/services/state/grid/grid-state-service.js | /* ============================================================================
Copyright (C) 2006-2016 Talend Inc. - www.talend.com
This source code is available under agreement available at
https://github.com/Talend/data-prep/blob/master/LICENSE
You should have received a copy of the agreement
along with thi... | JavaScript | 0.000004 | @@ -5443,15 +5443,25 @@
e =
-typeof
+angular.isNumber(
grid
@@ -5479,21 +5479,9 @@
ndex
- === %22number%22
+)
;%0A
|
beb643284887312f91b12438f3334900eba671c6 | fix knob track progress | packages/element/input-knob/index.js | packages/element/input-knob/index.js | import { modulo } from '../core/math/Math.js';
export default class KnobInputElement extends HTMLElement {
static get observedAttributes() {
return ['value', 'max', 'min', 'step', 'disabled'];
}
constructor() {
super();
this.attachShadow({ mode: 'open' }).innerHTML = `<style>
:host {
display:... | JavaScript | 0 | @@ -742,32 +742,58 @@
height: 100%25;%0A
+ stroke: currentColor;%0A
%7D%0A%0A slot%5Bname
@@ -1053,16 +1053,29 @@
%3Ccircle
+ part=%22track%22
cx=%2250%22
@@ -1119,32 +1119,75 @@
roke
-=%22black%22 stroke-width=%221
+-width=%221%22 stroke-linecap=%22round%22 vector-effect=%22non-scaling-stroke
%22 st
@@... |
01db08237a90bcbcdbe47231234d278a60771837 | copy all files to same folder structure as non-statix | app/templates/_grunt-configs/_utilities.js | app/templates/_grunt-configs/_utilities.js | module.exports.tasks = {
/**
* Clean
* https://github.com/gruntjs/grunt-contrib-clean
* Clean some files
*/
clean: {
icons : ['<%%=config.distDir%>/img/icons', '<%%=config.tempDir%>/icons'],
tempCSS : ['<%%=config.tempDir%>/css']<%
if (statix === true) {
%>,
all: ['<%%= config.statix.dir%>/dist/... | JavaScript | 0.000002 | @@ -963,21 +963,26 @@
/assets/
+dist/
img'%0A
-
%09%09%09%09%7D,%0A%09
@@ -1110,24 +1110,29 @@
dist/assets/
+dist/
js'%0A%09%09%09%09%7D,%0A%09
@@ -1265,32 +1265,37 @@
r%25%3E/dist/assets/
+dist/
css'%0A%09%09%09%09%7D%0A%09%09%09%5D%0A
@@ -1454,16 +1454,21 @@
/assets/
+dist/
css'%0A%09%09%09
@@ -1623,16 +1623... |
2cbc78440d885411edcf2f184fa3cebca5cd9f04 | allow for changing remoteServiceName at runtime | app/torii-providers/arcgis-oauth-bearer.js | app/torii-providers/arcgis-oauth-bearer.js | /**
* arcgis-oauth.js
*
* torii provider that works with ArcGIS.com oauth
*/
import Provider from 'torii/providers/oauth2-bearer';
import {configurable} from 'torii/configuration';
import QueryString from './query-string';
import ENV from '../config/environment';
import Ember from 'ember';
var ArcGISOAuth = ... | JavaScript | 0 | @@ -2528,43 +2528,457 @@
if (
-this.get('display') === 'iframe') %7B
+options.remoteServiceName) %7B%0A // torii uses this to determine whether a popout or an iframe is used%0A // we need to be able to pass this option in at runtime%0A this.set('configuredRemoteServiceName', options.remoteServiceName... |
e09a488dfcaa794d3651560b35c79cf1202e3437 | remove the page service references | webapps/camunda-webapp/webapp/src/main/webapp/app/common/pages/login.js | webapps/camunda-webapp/webapp/src/main/webapp/app/common/pages/login.js | /* global ngDefine: false */
ngDefine('camunda.common.pages.login', [ 'angular', 'require', 'module:camunda.common.services.authentication:camunda-common/services/Authentication' ],
function(module, angular, require) {
'use strict';
var Controller = [
'$scope',
'Authentication',
'AuthenticationServic... | JavaScript | 0.000001 | @@ -359,20 +359,8 @@
n',%0A
- 'page',%0A
fu
@@ -368,16 +368,16 @@
ction (%0A
+
$sco
@@ -463,18 +463,8 @@
tion
-,%0A page
%0A )
@@ -535,54 +535,15 @@
');%0A
+
%7D%0A%0A
- page.titleSet('camunda %7C login');%0A%0A
|
7b7dbe3be4c059cd92a8fb42d42086b270222f4a | Fix issue preventing sunlight overlay appearing. | application/controls/slippymap/sunlight.js | application/controls/slippymap/sunlight.js | SlippyMap.Sunlight = (function() {
function Sunlight(map) {
this.element = document.createElement('div');
this.element.className = 'slippy-sunlight';
map.element.appendChild(this.element);
}
_.extend(Sunlight.prototype, {
clear: function() {
this.element.innerHTML = '';
},
draw: fu... | JavaScript | 0 | @@ -2114,22 +2114,22 @@
ath.
-abs
+floor
(Math.
-floor
+abs
(dec
|
35570349cb623e57e45aa942a78fea872ea354ec | Rename svg icons. | assets/js/components/notifications/ZeroDataStateNotifications.js | assets/js/components/notifications/ZeroDataStateNotifications.js | /**
* ZeroDataStateNotifications component.
*
* Site Kit by Google, Copyright 2022 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/... | JavaScript | 0 | @@ -1216,16 +1216,20 @@
eroState
+Icon
from '.
@@ -1287,24 +1287,28 @@
atheringData
+Icon
from '../..
@@ -3399,16 +3399,20 @@
ringData
+Icon
%7D%0A%09%09%09%09/
@@ -4173,16 +4173,20 @@
eroState
+Icon
%7D%0A%09%09%09%09/
|
ee76ea7c6561bf5e333f197456507f2fbfb4492a | Update setup | applications/vpn-settings/src/app/index.js | applications/vpn-settings/src/app/index.js | import ReactDOM from 'react-dom';
import React from 'react';
import App from './App';
ReactDOM.render(<App />, document.querySelector('.app-root'));
| JavaScript | 0.000001 | @@ -53,16 +53,104 @@
'react';
+%0Aimport 'core-js/stable';%0Aimport 'regenerator-runtime/runtime';%0Aimport 'yetch/polyfill';
%0A%0Aimport
|
dbc2ce2eb1f2286d90fb5276150e54fa27e4f732 | replace ripple-lib implementation with ripple-rest-clinet | lib/api/refund_cold_wallet.js | lib/api/refund_cold_wallet.js | var ripple = require(__dirname+'/../ripple/');
var config = require(__dirname+'/../../config/config.js');
/**
* @requires ripple, config
*
* @function refundColdWallet
*
* @descriptions Refunds cold wallet
*
* @param {String} currency
* @param {Number} amount
* @param {callback} fn
*/
function refundColdWal... | JavaScript | 0.000001 | @@ -98,16 +98,103 @@
ig.js');
+%0Avar RippleRestClient = require('ripple-rest-client');%0Avar uuid = require('node-uuid');
%0A%0A/**%0A *
@@ -370,18 +370,24 @@
llback%7D
-fn
+callabck
%0A */%0A%0Afu
@@ -432,12 +432,120 @@
nt,
-fn)%7B
+callback)%7B%0A%0A var rippleRestClient = new RippleRestClient(%7B%0A acco... |
3b0aebc9b67dea36403b4b1f18d00e68ae186d1b | Move scanner time | server/globals.js | server/globals.js | const environment = require('./config/environment');
const globals = {
categories: {
'funny': [ 'funny', 'BlackPeopleTwitter', 'memes', 'Unexpected' ],
'cute': [ 'aww', 'wholesomegifs', 'user/316nuts/m/superaww', 'BearCubGIFs', 'Otters', 'puppies' ],
'general': [ 'pics', 'mildlyinteresting', 'woahdude' ]... | JavaScript | 0.000001 | @@ -826,17 +826,18 @@
erval: '
-5
+10
3 * * *
@@ -859,10 +859,10 @@
t 3:
+1
0
-5
AM%0A
|
217168a98499c7c52abf973178e7a140d36935de | Modify retrieveVersion to incorporate tags | server/helpers.js | server/helpers.js | let Promise = require('bluebird');
let _ = require('underscore');
let db = require(`${__dirname}/schemas.js`);
let Recipe = db.Recipe;
let UserRecipe = db.UserRecipe;
let Dependency = db.Dependency;
const fields = [
'_id',
'rootVersion',
'previousVersion',
'deleted',
'branch', ... | JavaScript | 0 | @@ -533,16 +533,26 @@
kedFrom'
+,%0A 'tags'
%0A%5D;%0A%0Amod
|
59ab9249cc3a9e7abeb5f6e599133f705ea6d8e6 | print format custom button | frappe/printing/doctype/print_format/print_format.js | frappe/printing/doctype/print_format/print_format.js | // Copyright (c) 2017, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on("Print Format", "onload", function (frm) {
frm.add_fetch("doc_type", "module", "module");
});
frappe.ui.form.on("Print Format", {
refresh: function (frm) {
frm.set_intro("");
frm.togg... | JavaScript | 0.000019 | @@ -1302,17 +1302,16 @@
c_type,
-%5B
'default
@@ -1329,19 +1329,8 @@
at',
- 'custom'%5D,
(r)
@@ -1385,20 +1385,8 @@
name
- && r.custom
) %7B%0A
|
cec5760af2b4d50fb738c5769be8ceaff3156968 | Remove extraneous parentheses. | frontend/src/components/ViewTrips/trips-container.js | frontend/src/components/ViewTrips/trips-container.js | import React from 'react';
import app from '../Firebase/';
import * as DB from '../../constants/database.js';
import { getCurUserUid } from '../Utils/temp-auth-utils.js'
import Trip from './trip.js';
const db = app.firestore();
/**
* Returns a `<div>` element with the specified error message.
*
* @param {string}... | JavaScript | 0.001768 | @@ -646,17 +646,16 @@
resolve(
-(
%0A %3C
@@ -816,17 +816,16 @@
/div%3E%0A
-)
);%0A %7D);
|
a9984faa3ecd632e035f1389c72381aec94d10b4 | Update trips container whenever the props are updated to see the different trips in each view. | frontend/src/components/ViewTrips/trips-container.js | frontend/src/components/ViewTrips/trips-container.js | import React from 'react';
import app from '../Firebase/';
import Accordion from 'react-bootstrap/Accordion';
import authUtils from '../AuthUtils';
import * as DB from '../../constants/database.js';
import Trip from './trip.js';
import { getCollaboratorField } from './trip-utils.js';
/**
* {@link TripView} defined ... | JavaScript | 0 | @@ -1639,14 +1639,18 @@
ner
-mounts
+is updated
, a
@@ -2131,21 +2131,22 @@
onentDid
-Mount
+Update
() %7B%0A
|
bea34abb11a78ef9dc52248d9618db254b04bca5 | Add clean task on imageopt | generators/app/templates/gulp-tasks/tool/imageopt.js | generators/app/templates/gulp-tasks/tool/imageopt.js | const gulp = require('gulp');
const path = require('path');
const setup = require('setup/setup');
const tasks = ['build:images'];
module.exports = gulp.series(tasks, (taskDone) => {
const assets = setup.assets;
const srcs = assets.src.images.map((imagePath) => {
return path.join(setup.root, imagePath);
})... | JavaScript | 0.00047 | @@ -108,16 +108,36 @@
asks = %5B
+%0A 'build:clean',%0A
'build:i
@@ -142,16 +142,18 @@
:images'
+,%0A
%5D;%0A%0Amodu
|
a05324d7b6e37eccfb25f2d444ee97f1a4bf3f33 | Add additional user information to auth requests | client/app/lib/actions/auth.js | client/app/lib/actions/auth.js | import { createHistory } from 'history';
import Auth0Lock from 'auth0-lock';
import { gotError } from './general';
import authVars from '../../auth0-variables';
import debugFactory from 'debug';
const debug = debugFactory( 'voyageur:actions' );
const history = createHistory();
function removeTokenFromUrl() {
if ( !... | JavaScript | 0 | @@ -642,16 +642,36 @@
nid role
+ name email nickname
' %7D %7D );
|
4b8f83367a9e9cc65a6783e1bef11a88fc8a5517 | Add tests for board body and footer | client/board/board.spec.e2e.js | client/board/board.spec.e2e.js | 'use strict';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
chai.use(chaiAsPromised);
let expect = chai.expect;
describe('Board page (desktop)', () => {
before(() => {
browser.driver.manage().window().setSize(1280, 768);
});
beforeEach(() => {
browser.get('/');... | JavaScript | 0 | @@ -919,16 +919,10 @@
ain
-a lot of
+11
boa
@@ -929,16 +929,29 @@
rd items
+ (test table)
', () =%3E
@@ -1034,19 +1034,244 @@
lly.
-be.above(50
+equal(11);%0A %7D);%0A %7D);%0A%0A describe('board footer info', () =%3E %7B%0A it('should contain right info about items', () =%3E %7B%0A ... |
b7d731da00018fc9ea2db7382d19c7150b64fceb | Remove unused icons | client/components/Icon/Icon.js | client/components/Icon/Icon.js | import React, { PropTypes } from 'react'
import keymirror from 'keymirror'
import styles from './Icon.css'
export const ICON_TYPES = keymirror({
ADD: null,
BIKE: null,
CLEAR: null,
CLOUD_UPLOAD: null,
IMAGE: null
})
export const ICON_SIZES = {
SMALL: 18,
NORMAL: 24,
LARGE: 48
}
export function getIco... | JavaScript | 0.000001 | @@ -145,62 +145,13 @@
%7B%0A
-ADD: null,%0A BIKE: null,%0A CLEAR: null,%0A CLOUD_UPLOAD
+CLEAR
: nu
@@ -317,1005 +317,137 @@
PES.
-ADD:%0A return %3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%0A case ICON_TYPES.BIKE:%0A return %3Cpath d='M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5... |
ba124c9e7507cb23077899b0a40739dc2c6a385c | Fix a few movement issues | client/game/heroes/baseHero.js | client/game/heroes/baseHero.js | 'use strict';
import BABYLON from 'babylonjs';
export class Hero {
constructor(game, id){
this.game = game;
this.scene = game.scene;
this.id = id
// Create collision mask
this.mask = BABYLON.Mesh.CreateBox("mask", 5, this.scene);
this.body = this.mask.setPhysicsState(BABYLON.PhysicsEngine.B... | JavaScript | 0.00011 | @@ -346,16 +346,18 @@
ction:0.
+00
1, resti
@@ -746,17 +746,17 @@
var s =
-1
+3
%0A thi
@@ -935,16 +935,158 @@
sition);
+%0A%0A // Limit rotation and smooth linear velocity%0A this.body.linearVelocity.scaleEqual(0.92);%0A this.body.angularVelocity.scaleEqual(0);
%0A %7D%0A%0A
|
27bce6f7ea38168ab1a51415a44ce67611556748 | Fix handleMarket | src/prototype_room_market.js | src/prototype_room_market.js | const getAverage = (type, resource) => Memory.orders[type][resource] && Memory.orders[type][resource].totalPrice ? Memory.orders[type][resource].totalPrice / Memory.orders[type][resource].totalAmount : null;
Room.prototype.trySellOrders = function(resource, sellAmount) {
const avgBuyPrice = getAverage(ORDER_BUY, res... | JavaScript | 0.000001 | @@ -2040,32 +2040,100 @@
turn true;%0A %7D%0A%0A
+ if (!Memory.orders%5BORDER_BUY%5D%5Bresource%5D) %7B%0A return false;%0A %7D%0A%0A
const sortByEn
|
28e86596f1d61eb796357dcef7e4d081262ac079 | Fix minor bug | src/application/views/common/InputTextStateful.js | src/application/views/common/InputTextStateful.js | /*
* Copyright 2015 Alexander Pustovalov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | JavaScript | 0.000001 | @@ -1722,16 +1722,59 @@
.style%7D%0A
+ type=%7Bthis.props.type%7D%0A
@@ -2214,16 +2214,34 @@
ndefined
+,%0A type: 'text'
%0A%7D;%0AInpu
@@ -2328,16 +2328,44 @@
s.func,%0A
+ type: PropTypes.string,%0A
list
|
f85cdc3eb1bb4e6f93bedebdf514068199d95141 | Improve default HTML block node converter. | src/article/converter/html/ArticleHTMLExporter.js | src/article/converter/html/ArticleHTMLExporter.js | import { HTMLExporter, DefaultDOMElement } from 'substance'
export default class ArticleHTMLExporter extends HTMLExporter {
constructor (articleConfig) {
super({
converters: articleConfig.getConverters('html'),
idAttribute: 'data-id',
elementFactory: DefaultDOMElement.createDocument('html')
... | JavaScript | 0 | @@ -610,11 +610,1313 @@
ath)%0A %7D
+%0A%0A getDefaultBlockConverter () %7B%0A return defaultBlockConverter // eslint-disable-line no-use-before-define%0A %7D%0A%7D%0A%0A// TODO: the default converter is used for nodes that do not have a converter registered%0Aconst defaultBlockConverter = %7B%0A export: functi... |
b32983c618a4359743c26d1d9db7b43862632911 | fix ref in search component | client/components/SearchBar.js | client/components/SearchBar.js | import React from 'react';
import { browserHistory } from 'react-router';
import base64url from 'base64-url';
module.exports = () =>
(
<div className="row">
<div id="formDiv" className="col-lg-6">
<form id="search" className="input-group" onSubmit={handleSubmit}>
<input
ref="s... | JavaScript | 0.000001 | @@ -299,33 +299,8 @@
put%0A
- ref=%22search%22%0A
|
5a4e7b749cb5d347d314f829d03fc5b8e5bece2f | Update mainConfig.js | app/config/mainConfig.js | app/config/mainConfig.js | app.constant("FIREBASE_URL", YOUR_DATABASE_URL;
app.constant("AUTHENTICATION", {
enabled : false,
loginProvider: 'google',
options: {
preferRedirect: true,
rememberMe: true,
scope: 'https://www.googleapis.com/auth/plus.login'
}
});
app.constant("COMPONENT_PROPERTIES", {
MIN... | JavaScript | 0.000001 | @@ -39,16 +39,17 @@
BASE_URL
+)
;%0A%0Aapp.c
|
e6fad4f03e9ff6f94240b33420fc5099dc35917f | fix images | packages/fela/src/image/container.js | packages/fela/src/image/container.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'react-fela';
import LazyLoad from './lazy';
import { ContentLoaderStyles } from '../loader';
const containerStyle = ({
ratio,
width,
minWidth,
maxWidth,
minHeight,
maxHeight,
rounded,
}) => ({
... | JavaScript | 0.000012 | @@ -704,31 +704,39 @@
'div',%0A (%7B
+%0A
ratio,
+%0A
rounded, wi
@@ -732,28 +732,129 @@
rounded,
+%0A
width,
+%0A maxResolution,%0A srcRatio,%0A minWidth,%0A minHeight,%0A maxWidth,%0A maxHeight,%0A
...p
+%0A
%7D) =%3E O
@@ -1054,23 +1054,31 @@
/%3E,%0A (%7B
+%0A
rat... |
77fb542942256b6d4d8f31318cd19661aac5b37a | Use a simple `true` value for the notice. | assets/js/googlesitekit-idea-hub-notice.js | assets/js/googlesitekit-idea-hub-notice.js | /**
* Idea Hub Notice (for Block Editor) entrypoint.
*
* 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/... | JavaScript | 0 | @@ -1840,100 +1840,8 @@
%0A%09%09%09
-setItem(%0A%09%09%09%09noticeKey,%0A%09%09%09%09postMeta.googlesitekitpersistent_idea_text,%0A%09%09%09%09%7B ttl: 108000 %7D
// D
@@ -1886,16 +1886,58 @@
ays.%0A%09%09%09
+setItem( noticeKey, true, %7B ttl: 108000 %7D
);%0A%09%09%09un
|
c1ab2c4c8205cbb8be986feeba288ddeea2779b4 | convert log in button to Button component | lib/components/Application.js | lib/components/Application.js | import React, { Component } from 'react'
import { render } from 'react-dom';
import firebase, { reference, signIn } from '../firebase';
import { pick, map, extend } from 'lodash';
import Button from './Button';
import UserInput from './UserInput';
import MessageWindow from './MessageWindow';
// Very few things in this... | JavaScript | 0.00014 | @@ -1576,198 +1576,196 @@
-%7Buser ? %3Cp%3EHello %7Buser.displayName%7D%3C/p%3E : %3Cbutton onClick=%7B() =%3E signIn()%7D%3ESign In%3C/button%3E %7D%0A %3CMessageWindow messages=%7B this.state.messages %7D /%3E%0A %3Cdiv className=%22MessageInput%22
+%3CMessageWindow messages=%7B this.state.messag... |
3ed6966e48e0f7acd0ce6689cd0c0ad243883559 | Add character count and disable button functions | lib/components/Application.js | lib/components/Application.js | import React, { Component } from 'react'
import firebase, { reference, signIn } from '../firebase';
import { pick, map, extend } from 'lodash';
export default class Application extends Component {
constructor() {
super();
this.state = {
messages: [],
user: null,
}
this.updateState = this.up... | JavaScript | 0 | @@ -1220,22 +1220,45 @@
ge: '',%0A
+ disabled: false,%0A
%7D%0A
-
this
@@ -1454,16 +1454,309 @@
Input%7D)%0A
+ this.characterCount();%0A %7D%0A%0A characterCount() %7B%0A if(this.state.currentMessage.length %3E 140) %7B%0A console.log(this.state.currentMessage.length)%0A this.disableB... |
3d6c1a691ea4e8b31770da91947c648b1f0388fb | move load projects and load r5 versions calls to componentDidMount | lib/components/application.js | lib/components/application.js | // @flow
import lonlat from '@conveyal/lonlat'
import {Browser, LatLngBounds} from 'leaflet'
import React, {Component} from 'react'
import {Map as LeafletMap, TileLayer} from 'react-leaflet'
import {Link} from 'react-router'
import {sprintf} from 'sprintf-js'
import {authIsRequired} from '../utils/auth0'
import {Butto... | JavaScript | 0 | @@ -2706,65 +2706,8 @@
) %7B%0A
- const %7BloadAllProjects, loadR5Versions%7D = this.props%0A
@@ -2772,24 +2772,111 @@
itor')%0A %7D
+%0A %7D%0A%0A componentDidMount () %7B%0A const %7BloadAllProjects, loadR5Versions%7D = this.props
%0A%0A loadAl
|
4d701679556f3ffd847ace6baa494915aa8ae90e | add className node__header-title | src/react/components/Node.js | src/react/components/Node.js | import React from 'react';
import SplitSection from './SplitSection';
import Form from './Form';
const Node = (props) => {
const {
title, width, bgColor, zoom,
gui, inputs, ports,
values, onChange, wrapper
} = props;
return (
<article style={{ backgroundColor: bgColor }} className="glowing-box"... | JavaScript | 0.000042 | @@ -334,16 +334,20 @@
er class
+Name
=%22node__
@@ -397,18 +397,40 @@
an class
-=%22
+Name=%22node__header-title
%22%3E%7Btitle
|
33103275c96e131ea4b83eea25cb3ef2f2bcd5b6 | fix jsdoc tags | src/render/web_gl_program.js | src/render/web_gl_program.js | import WebGlUniform from './web_gl_uniform'
import WebGlAttribute from './web_gl_attribute'
export default class WebGlProgram {
constructor (glx, shaderProgram) {
this.glx = glx
this.vertexShader = glx.resourceLibrary.loadVertexShader(shaderProgram.vertexShader)
this.fragmentShader = glx.resourceLibrary... | JavaScript | 0.000001 | @@ -865,32 +865,46 @@
%7BShaderContext%7D
+ shaderContext
%0A */%0A loadUni
@@ -1085,16 +1085,30 @@
Context%7D
+ shaderContext
%0A */%0A
|
034db4b370e4bd630dcaf39b3417263e0113efdb | Fix missing event in switch protocol method. | src/app/components/protocol-watcher/protocol-watcher-service.js | src/app/components/protocol-watcher/protocol-watcher-service.js | angular.module( 'App.ProtocolWatcher' ).provider( 'ProtocolWatcher', function()
{
var provider = this;
var _secureSections = [];
provider.registerSecure = function( sectionPrefix )
{
_secureSections.push( sectionPrefix );
};
this.$get = function( $rootScope, $window, $state, Environment )
{
var ProtocolWat... | JavaScript | 0 | @@ -436,24 +436,31 @@
stateParams
+, event
)%0A%09%09%7B%0A%09%09%09va
|
a14d903cefbe9a2590ade6ec1074cae8262049fa | Change comment counter in CommentsContainer | src/client/components/Group/Post/CommentsContainer.component.js | src/client/components/Group/Post/CommentsContainer.component.js | 'use strict';
import React, {PropTypes} from 'react';
import Comment from './Comment.component.js';
import {isEmpty, take} from 'lodash';
class CommentsContainerComponent extends React.Component {
constructor() {
super();
this.toggleExpand = this.toggleExpand.bind(this);
this.state = {isExpanded: true};... | JavaScript | 0 | @@ -1053,17 +1053,20 @@
%3Ch4%3E%7B
-c
+allC
omments.
|
408dce81f07ad2ef20646197f0635f912015b85c | Replace state connection by store injection and observer decorator | src/screens/ProfileScreen.js | src/screens/ProfileScreen.js | import React from 'react'
import {
Image,
Text,
View,
} from 'react-native'
import { connect } from 'react-redux'
class ProfileScreen extends React.Component {
render() {
return (
<View style={{ alignItems: 'center' }}>
<Image
source={{ uri: this.props.profile.picture.data.url }}
... | JavaScript | 0 | @@ -88,38 +88,95 @@
t %7B
-connect %7D from 'react-redux'%0A%0A
+inject, observer %7D from 'mobx-react'%0A%0A@inject('profileStore')%0A@observer%0Aexport default
clas
@@ -332,32 +332,45 @@
uri: this.props.
+profileStore.
profile.picture.
@@ -499,32 +499,45 @@
%7D%7D%3E%7Bthis.props.
+profileStore.
profile.name... |
1f335016dc614a5289eac5b471bd9fbc8c93de2f | Use browser.runtime instead browser.extension | src/scripts/content/toggl.js | src/scripts/content/toggl.js | 'use strict';
const browser = require('webextension-polyfill');
let userData;
const offlineUser = localStorage.getItem('offline_users');
if (offlineUser) {
userData = JSON.parse(localStorage.getItem('offline_users-' + offlineUser));
if (userData && userData.offlineData) {
browser.extension.sendMessage({
... | JavaScript | 0.000001 | @@ -280,33 +280,31 @@
browser.
-extension
+runtime
.sendMessage
@@ -749,33 +749,31 @@
browser.
-extension
+runtime
.sendMessage
@@ -809,25 +809,23 @@
browser.
-extension
+runtime
.sendMes
@@ -903,25 +903,23 @@
browser.
-extension
+runtime
.getURL(
|
a2af52119e9be5bdd527fb12cd592560587b7143 | allow graphite to take an `options.meta` which is a key of a meta property to insert into graphite (it assumes its a Number) or defaults to `data.metric` | lib/godot/reactor/graphite.js | lib/godot/reactor/graphite.js | /*
* graphite.js: Stream responsible for sending metrics on data events to graphite.
*
* @obazoud
*
* Important: set mulitplex to false to create only one Graphite client
*
* godot.createServer({
* type: 'tcp',
* multiplex: false,
* reactors: [
* godot.reactor()
* .graphite({
* url:... | JavaScript | 0 | @@ -1261,16 +1261,60 @@
60000;%0A
+ this.meta = options.meta %7C%7C null;%0A
this._
@@ -2149,16 +2149,51 @@
cName%5D =
+ this.meta ? data.meta%5Bthis.meta%5D :
data.me
@@ -2196,16 +2196,17 @@
a.metric
+;
%0A this.
|
22b944270d601c3a685479be23b391f2d64011dc | Update layoutshim.js | lib/hooks/views/layoutshim.js | lib/hooks/views/layoutshim.js | /**
* Module dependencies
*/
var ejsLayoutEngine = require('ejs-locals')
, exphbs = require('express-handlebars')
, path = require('path');
/**
* Implement EJS layouts (a la Express 2)
*
* TODO:
* Extrapolate this functionality to a separate hook
* to make it easier for folks to extend it with suppor... | JavaScript | 0 | @@ -75,52 +75,8 @@
s')%0A
-%09, exphbs%09%09%09= require('express-handlebars')%0A
%09, p
@@ -1183,24 +1183,72 @@
dlebars') %7B%0A
+%09%09%09%09var exphbs = require('express-handlebars');%0A
%09%09%09%09return s
|
a2ed1e044f41ed5d29bd6c2a7b1a1917eee49000 | Fix to remove replacer in PersonalInfoItem | lib/editor/components/question_editors/PersonalInfoItemEditor.js | lib/editor/components/question_editors/PersonalInfoItemEditor.js | /* eslint-env browser */
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import TinyMCE from 'react-tinymce';
import { Radio } from 'react-bootstrap';
import * as EditorActions from '../../actions';
import BaseItemEditor from './BaseItemEditor';
import { isDevelopment }... | JavaScript | 0 | @@ -476,22 +476,12 @@
tent
-, replacer
) %7B%0A
+
@@ -1642,39 +1642,23 @@
ontent=%7B
-replacer.id2No(
content
-)
%7D%0A
@@ -1838,39 +1838,23 @@
__html:
-replacer.id2No(
content
-)
%7D%7D%0A
@@ -2363,37 +2363,8 @@
t %7B%0A
- runtime,%0A survey,%0A
@@ -2545,78 +2545,8 @@
'';
-... |
dcca422609a867da251dc3173af5caaf611f2953 | Add TODOs | lib/node_modules/@stdlib/math/base/special/sqrt1pm1/test/test.js | lib/node_modules/@stdlib/math/base/special/sqrt1pm1/test/test.js | 'use strict';
// MODULES //
var tape = require( 'tape' );
var linspace = require( '@stdlib/math/generics/utils/linspace' );
var isnan = require( '@stdlib/math/base/utils/is-nan' );
var expm1 = require( '@stdlib/math/base/special/expm1' );
var log1p = require( '@stdlib/math/base/special/log1p' );
var sqrt = require( '... | JavaScript | 0.000001 | @@ -1354,32 +1354,72 @@
var v;%0A%09var i;%0A%0A
+%09// TODO: Compare results against Boost%0A
%09arr = linspace(
@@ -1698,16 +1698,56 @@
var i;%0A%0A
+%09// TODO: Compare results against Boost%0A
%09arr = l
|
905c26c41b0c72db3ccded1615aef189ccc9302a | use this.vid | modules/Chromecast/resources/mw.EmbedPlayerChromecastReceiver.js | modules/Chromecast/resources/mw.EmbedPlayerChromecastReceiver.js |
( function( mw, $ ) { "use strict";
// Add chromecast player:
$( mw ).bind('EmbedPlayerUpdateMediaPlayers', function( event, mediaPlayers ){
var chromecastSupportedProtocols = ['video/h264', 'video/mp4'];
var chromecastReceiverPlayer = new mw.MediaPlayer('chromecastReceiver', chromecastSupportedProtocols, 'Chrom... | JavaScript | 0.000044 | @@ -3905,34 +3905,19 @@
rn this.
-getPlayerElement()
+vid
.current
|
b0ba7f8050c9bfa3659f3646471faa9ff7d7c666 | add back in ibm-color-map (#254) | packages/colors/tasks/build.js | packages/colors/tasks/build.js | /**
* Copyright IBM Corp. 2015, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const { reporter } = require('@carbon/cli-reporter');
const { paramCase } = require('change-case');
const fs = require('fs-ext... | JavaScript | 0 | @@ -1885,24 +1885,533 @@
ions)%0A );%0A%0A
+ const colorMapValues = Object.keys(colors).map(swatch =%3E %7B%0A return %7B%0A swatch,%0A value: Object.keys(colors%5Bswatch%5D).reduce((acc, grade, index) =%3E %7B%0A const property = %60$%7Bgrade%7D: $%7Bcolors%5Bswatch%5D%5Bgrade%5D%7D,%60;%0A ... |
6fd2c6e6f35739ff612f9814872a9f93aebea8fd | Add channel as a separate sync-able object model | lib/rpc/modelstore/schemas.js | lib/rpc/modelstore/schemas.js | var Joi = require('joi');
var VALID_MODELS = ['room', 'thing', 'device'];
exports.ObjectId = Joi.string().regex(/^[a-zA-Z0-9\-_]+$/);
exports.UserRecord = Joi.object().keys({id: exports.ObjectId}).unknown(true);
exports.ModelName = Joi.string().valid(VALID_MODELS);
| JavaScript | 0.000001 | @@ -65,16 +65,27 @@
'device'
+, 'channel'
%5D;%0A%0Aexpo
|
0a82f36760e7dfeefb022565c94aba0756e29d22 | fix path | lib/runner/RunnerInterface.js | lib/runner/RunnerInterface.js | var Base = require('../core/Base');
var AssertionHelper = require('./AssertionHelper');
var _ = require('lodash');
var zombie = require('zombie');
var Mocha = require('mocha');
var npath = require('path');
var child = require('child_process');
var Loader = require('../core/Loader');
var createUID = require('../../modul... | JavaScript | 0.000017 | @@ -308,16 +308,21 @@
('../../
+node_
modules/
|
8d1d820c930c033f7f3ecf07547efbb999999210 | update to output message; added stacktrace; | lib/spec-xunit-file-deepeq.js | lib/spec-xunit-file-deepeq.js | /**
* Module dependencies.
*/
var mocha = require("mocha")
, Base = mocha.reporters.Base
, Spec = mocha.reporters.Spec
, utils = mocha.utils
, escape = utils.escape
, config = {
"file": "xunit.xml",
"consoleOutput": {
"suite": false,
"test": false,
"fail": false
}
}
, fs = require("fs")
, differ = re... | JavaScript | 0 | @@ -2554,28 +2554,71 @@
ual)
-;%0A%09%09%09var formatted =
+ + %22%5Cn%22 + escape(err.stack);%0A%09%09%09var formattedDiff = %22Diff = %22 +
JSO
@@ -2655,16 +2655,43 @@
%22 %22)
+ + %22%5Cn%22 + escape(err.stack)
;%0A%09%09%09app
@@ -2811,16 +2811,20 @@
ormatted
+Diff
, true))
|
eee83ba5190315e472a057a984f86e6f0871a9c9 | make timers use require from game | lib/systems/advance-timers.js | lib/systems/advance-timers.js | "use strict";
module.exports = function(ecs) {
ecs.addEach(function(entity, elapsed) {
var names = Object.keys(entity.timers);
names.forEach(function(name) {
var timer = entity.timers[name];
if (!timer.running) {
return;
}
timer.time += elapsed;
if (timer.time > timer.max) {
timer.runnin... | JavaScript | 0.000001 | @@ -37,16 +37,22 @@
tion(ecs
+, data
) %7B%0A%09ecs
@@ -407,16 +407,21 @@
cript =
+data.
require(
|
688110d165d0ff43740ccf27c29e1692eaced781 | 优化 MockModuleConfig 的测试用例 | packages/matman-mock/test/scripts/model/MockModuleConfig.test.js | packages/matman-mock/test/scripts/model/MockModuleConfig.test.js | const chai = require('chai');
const expect = chai.expect;
const { MockModuleConfig } = require('../../../lib');
describe('./mocker/MockModuleConfig.js', () => {
describe('check json-file.json', () => {
let mockModuleConfig;
before(() => {
mockModuleConfig = new MockModuleConfig('json-file');
//... | JavaScript | 0 | @@ -178,22 +178,20 @@
eck
-js
+exist-c
on
--
fi
-le.json
+g
', (
@@ -290,26 +290,94 @@
Config('
-js
+exist-c
on
--
fi
-le'
+g', require('../../data/fixtures/mock_modules/exist-config/config')
);%0A
@@ -816,821 +816,69 @@
e: '
-json-file',%0A description: 'json-file',%0A priority: 0,%0A ... |
aca3e7688d1f6977a0e860bac3270a3607fbd334 | Add timer | angular-zk-notify.js | angular-zk-notify.js | 'use strict';
angular.module('zkNotify', [])
.service('zkNotifySrv', [function zkNotifySrv() {
this.message = null;
this.setNotifyMsg = function(msg) {
this.message = msg;
};
this.getNotifyMsg = function() {
return this.message;
};
}])
.directive('zkNotify', ['$timeout', '$root... | JavaScript | 0.00002 | @@ -310,22 +310,8 @@
ut',
- '$rootScope',
'zk
@@ -345,20 +345,8 @@
out,
- $rootScope,
zkN
@@ -556,16 +556,23 @@
t = 6000
+, timer
;%0A
@@ -1133,24 +1133,129 @@
n(newVal) %7B%0A
+ if (timer) %7B%0A $timeout.cancel(timer);%0A %7D%0A scope.message = newVal;%0A
... |
d9f34cc7a307bc82b4e52a2eae279c6339164321 | remove unused imports | lib/views/machine-settings.js | lib/views/machine-settings.js | 'use babel'
/* globals atom */
import { Emitter, CompositeDisposable } from 'atom'
import { View } from 'atom-space-pen-views'
import moment from 'moment'
import debug from 'debug'
import { MachineStatusText, MachineStatus } from '../constants'
const log = debug('machine-settings:log')
export default class MachineSe... | JavaScript | 0 | @@ -152,34 +152,8 @@
ent'
-%0Aimport debug from 'debug'
%0A%0Aim
@@ -217,50 +217,8 @@
nts'
-%0Aconst log = debug('machine-settings:log')
%0A%0Aex
|
90c8a01d2e29c0c5dba00e5bfba5f61376b4c8c3 | Add method to check nested prop | cea/interfaces/dashboard/inputs/static/js/store.js | cea/interfaces/dashboard/inputs/static/js/store.js | class InputStore {
constructor(store) {
this.tables = store['tables'];
this.geojsons = store['geojsons'];
this.columns = store['columns'];
this.column_types = store['column_types'];
this.glossary = store['glossary'];
this.crs = store['crs'];
this.changes = {up... | JavaScript | 0 | @@ -1426,32 +1426,128 @@
n%5D === value) %7B%0A
+ if (this._checkNestedProp(this.changes, method, table, building, column)) %7B%0A
@@ -1600,16 +1600,20 @@
olumn%5D;%0A
+
@@ -1698,32 +1698,36 @@
+
+
delete this.chan
@@ -1748,32 +1748,54 @@
ble%... |
4b455047c087185d3297db889deaa7413638d91f | Reword a label from "command line switches" to "command line", as that is more accurate. | chrome/browser/resources/net_internals/dataview.js | chrome/browser/resources/net_internals/dataview.js | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* This view displays options for importing/exporting the captured data. Its
* primarily usefulness is to allow users to copy-paste their data in... | JavaScript | 0.000023 | @@ -1587,17 +1587,8 @@
line
- switches
: '
|
2f2679a718c53cf2cfcef0aaaf364e84d594ee95 | Add missing closing angular brackets in options_bundle.js | chrome/browser/resources/options/options_bundle.js | chrome/browser/resources/options/options_bundle.js | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file exists to aggregate all of the javascript used by the
// settings page into a single file which will be flattened and served
// as a si... | JavaScript | 0.002274 | @@ -4839,24 +4839,25 @@
_confirm.js%22
+%3E
%3C/include%3E%0A%3C
@@ -4896,16 +4896,17 @@
more.js%22
+%3E
%3C/includ
|
eba5252f573d9025308e243e36d905a238d1e13a | fix clear bug | packages/giu/src/inputs/fileInput.js | packages/giu/src/inputs/fileInput.js | import React from 'react';
import { omit, merge } from 'timm';
import filesize from 'filesize';
import {
GLOW,
HIDDEN_FOCUS_CAPTURE,
} from '../gral/styles';
import input from '../hocs/input';
import Button from '../components/bu... | JavaScript | 0 | @@ -1378,16 +1378,77 @@
,%0A %7D;%0A%0A
+ constructor() %7B%0A super();%0A this.cntCleared = 0;%0A %7D%0A%0A
compon
@@ -2102,24 +2102,46 @@
terInputRef%7D
+ key=%7Bthis.cntCleared%7D
%0A t
@@ -3197,16 +3197,101 @@
ev) =%3E %7B
+%0A this.cntCleared += 1; // make sure we get a new file input ... |
5879c21ec90f321b566934514e8fc41c40f80a10 | Use single quotes. | app/js/routers/router.js | app/js/routers/router.js | app.Router = Backbone.Router.extend({
routes: {
'map/:mapid/line/:lineid(/)': 'line',
'map/:mapid(/)': 'map',
'': 'home',
'*default': 'error'
},
initialize: function(options) {
this.bind('all', this._trackPageview);
Backbone.history.start({ pushState: true, root: '/' });
},
_trackPag... | JavaScript | 0 | @@ -355,17 +355,17 @@
ga !==
-%22
+'
undefine
@@ -365,17 +365,17 @@
ndefined
-%22
+'
) %7B%0A
@@ -460,11 +460,11 @@
e':
-%22/%22
+'/'
+ u
|
08f8a6dd5c9c68e0f8b9dab0168f8f3e1418892a | update LocalAutoComplete examples | examples/containers/app/modules/fields/LocalAutoCompleteExamples.js | examples/containers/app/modules/fields/LocalAutoCompleteExamples.js | import React, {Component} from 'react';
import LocalAutoComplete from 'src/LocalAutoComplete';
import Widget from 'src/Widget';
import WidgetHeader from 'src/WidgetHeader';
import PropTypeDescTable from 'components/PropTypeDescTable';
import LocalAutoCompleteDoc from 'assets/propTypes/LocalAutoComplete.json';
export... | JavaScript | 0 | @@ -237,34 +237,17 @@
%0Aimport
-LocalAutoCompleteD
+d
oc from
@@ -6065,26 +6065,9 @@
ta=%7B
-LocalAutoCompleteD
+d
oc%7D/
|
5336da95d90da7923520f93369335e7e85602642 | Add functionality to redirect once 10 projects are added to the pathway | pipeline/app/assets/javascripts/controllers/ProjectController.js | pipeline/app/assets/javascripts/controllers/ProjectController.js | 'use strict'
angular.module('pathwayApp')
.controller('ProjectController', function ($scope, $http, $stateParams, $state) {
$http({method: 'GET',
url: '/api/pathways/' + $stateParams.pathway_id + '/projects/' + $stateParams.id
}).success(function(data, status){
$scope.project = data
})
$scope.proj... | JavaScript | 0 | @@ -738,16 +738,35 @@
%7D)%0A %7D%0A
+ var projects = 0%0A
var cu
@@ -1078,24 +1078,44 @@
a, status)%7B%0A
+ projects += 1%0A
curren
@@ -1190,16 +1190,95 @@
j.name)%0A
+ if (projects == 10) %7B$state.go('showPathway', %7B'id': currentPathway %7D)%7D %0A
%7D).e
|
460f9049e5c40ecd46c0fea620a28c7e517db70c | fix current user avatar update | client/shared/components/WeAvatarModalComponent.js | client/shared/components/WeAvatarModalComponent.js | /**
* @file Manages modal Avatar change feature, has upload, crop and setNew avatar
* @author Alberto Souza
*/
// inject store
App.inject( 'component:we-avatar-modal', 'store', 'store:main' );
App.WeAvatarModalComponent = Ember.Component.extend({
url: '/api/v1/image',
attributeBindings: ['user'],
file: null,
... | JavaScript | 0 | @@ -3025,32 +3025,104 @@
nction (data) %7B%0A
+%0A self.get('store').find('image', image.id).then(function(i) %7B%0A
// set c
@@ -3140,16 +3140,18 @@
avatar%0A
+
@@ -3184,52 +3184,25 @@
r',
-self.get('store').find('image', image.id)
+i);%0A %7D
);%0A
+%0A
|
234474af1b75d5e23465cf4907b56a617a778740 | Fix 'undefined' in Create Category modal title | app/assets/javascripts/discourse/controllers/edit_category_controller.js | app/assets/javascripts/discourse/controllers/edit_category_controller.js | /**
Modal for editing / creating a category
@class EditCategoryController
@extends Discourse.ObjectController
@namespace Discourse
@uses Discourse.ModalFunctionality
@module Discourse
**/
Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
generalSelected:... | JavaScript | 0.000353 | @@ -913,16 +913,17 @@
ng%22) + %22
+
: %22 + th
@@ -1081,24 +1081,51 @@
.create%22) +
+(this.get('model.name') ? (
%22 : %22 + this
@@ -1138,24 +1138,31 @@
model.name')
+) : '')
;%0A %7D.proper
|
68b7f4aa6250e36f22522bfd5f0a5940a1983c12 | add pointer cursor | components/famous-ads/sap-part-two/sap-part-two.js | components/famous-ads/sap-part-two/sap-part-two.js | BEST.component('famous-ads:sap-part-two', {
tree: 'sap-part-two.html',
behaviors: {
'#part-two-container': {
'size': [300, 600],
'position': function(containerPosition) {
return containerPosition;
}
},
'#image-a-container': {
... | JavaScript | 0.000002 | @@ -2900,16 +2900,53 @@
derline'
+,%0A 'cursor': 'pointer'
%0A
|
324df071448699515d9a5e60385e2c368de32a11 | Update background.js | alertover_extension/src/js/background.js | alertover_extension/src/js/background.js | var $ = require('jquery');
var io = require('socket.io/node_modules/socket.io-client');
var Promise = require('promise');
var Moment = require('moment');
var socket;
var base = (function(){
var getPushtokenUrl = 'https://api.alertover.com/api/v1/get_pushtoken';
var getGroupIds = 'https://api.alertover.com/api... | JavaScript | 0.000001 | @@ -3982,32 +3982,240 @@
%7D);%0A
+ %0A var link = data%5B'url'%5D;%0A if (link) %7B %0A notification.onclick = function() %7B%0A window.open(url);%0A %7D%0A %7D%0A
%0A chr
|
f4e26aa6b973154ad8d3d9f9a5110a351acb26c6 | Update affix.js | contrast-finder-webapp/src/main/webapp/Js/affix.js | contrast-finder-webapp/src/main/webapp/Js/affix.js | /*$('#old-contrast').affix(
{
offset: {
top: function() {
var header = $('#header').height()
var setUpForm = $('#set-up-form').height()
return (this.top = header + setUpForm + 135)
}
}
})*/
| JavaScript | 0.000001 | @@ -1,6 +1,4 @@
-/*
$('#
@@ -278,7 +278,5 @@
%7D)
-*/
%0A
|
d78c4bd3329828bcf578f6a013247bac9439bf01 | return id with response | lib/api/events/getById.js | lib/api/events/getById.js | 'use strict';
var HoekBoom = require('hoek-boom'),
Boom = HoekBoom.boom,
elasticsearch = require('elasticsearch'),
config = require('../../config'),
BPromise = require('bluebird'),
elsClient;
//setup ELS client
elsClient = new elasticsearch.Client(config.elsClient);
module.exports = function getBy... | JavaScript | 0.000884 | @@ -856,16 +856,42 @@
details;
+%0A response.id = id;
%0A%0A
|
8a2124a4c6f7db724333b280cd4731305026af63 | use local vars, thanks @kambfhase | lib/modules/auphonic_production_data/js/auphonic_production_data.js | lib/modules/auphonic_production_data/js/auphonic_production_data.js | jQuery(document).ready(function($) {
$("#_podlove_meta_slug").bind('change', function() {
slug = $("#_podlove_meta_slug").val();
url = podlove_media_base_url + slug + ".json";
update_auphonic_data(url);
});
function update_auphonic_data (param) {
var data = {
action: 'get_auphonic_data',
url: param
... | JavaScript | 0 | @@ -87,16 +87,20 @@
n() %7B%0A%09%09
+var
slug = $
@@ -132,16 +132,20 @@
al();%0A%09%09
+var
url = po
@@ -845,8 +845,9 @@
%09%7D %0A%0A%7D);
+%0A
|
45df53b17beee905ba8d0a45b8bfb893d7825912 | Use string utility | lib/node_modules/@stdlib/assert/is-lowercase/benchmark/benchmark.js | lib/node_modules/@stdlib/assert/is-lowercase/benchmark/benchmark.js | 'use strict';
// MODULES //
var bench = require( '@stdlib/bench' );
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var isLowercase = require( './../lib' );
// MAIN //
bench( pkg, function benchmark( b ) {
var bool;
var i;
b.tic();
for ( i = 0... | JavaScript | 0.000028 | @@ -131,16 +131,81 @@
mitive;%0A
+var fromCodePoint = require( '@stdlib/string/from-code-point' );%0A
var pkg
@@ -243,16 +243,16 @@
).name;%0A
-
var isLo
@@ -432,27 +432,21 @@
se(
-String.fromCharCode
+fromCodePoint
( i%25
@@ -547,16 +547,17 @@
;%0A%09if (
+!
isBoolea
@@ -574,52 +574,8 @@
) %7B%0A
-%09%09b.... |
5369a75d5ac14b5b0b3346ba7d7325ebb1439661 | update start.js | lib/cli/commands/start.js | lib/cli/commands/start.js | const { resolve } = require('path')
const chalk = require('chalk')
const os = require('os')
const consola = require('consola')
module.exports = {
flags: 'start [dir]',
desc: 'Start Server',
paramsDesc: 'Root directory of app, containing config file',
async run (argv) {
const rootDir = resolve(process.cwd()... | JavaScript | 0.000002 | @@ -3,19 +3,12 @@
nst
-%7B resolve %7D
+path
= r
@@ -285,16 +285,21 @@
otDir =
+path.
resolve(
@@ -352,16 +352,21 @@
gPath =
+path.
resolve(
|
ab7e744ea7b76ac68957146eecfa60e4271fe0a3 | send credentials with intl userInfo fetch | packages/tocco-util/src/intl/intl.js | packages/tocco-util/src/intl/intl.js | import {updateIntl} from 'react-intl-redux'
export const initIntl = (store, moduleName, locale) => {
const loadLocale = locale
? Promise.resolve(locale)
: getUserInfo().then(userInfo => Promise.resolve(userInfo.locale))
return loadLocale.then(locale => setLocale(store, moduleName, locale))
}
export const... | JavaScript | 0 | @@ -532,24 +532,162 @@
%7D)))%0A)%0A%0A
+const fetchOptions = %7B%0A method: 'GET',%0A headers: new Headers(%7B%0A 'Content-Type': 'application/json'%0A %7D),%0A credentials: 'include'%0A%7D%0A%0A
const getUse
@@ -745,16 +745,30 @@
sername%60
+, fetchOptions
)%0A .t
@@ -849,34 +849,104 @@
uleName) =%... |
a69175eb021f9c265b5f654af1271a668ef65390 | Correct crucial mistake | packages/users/server/models/user.js | packages/users/server/models/user.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
crypto = require('crypto');
/**
* Validations
*/
var validatePresenceOf = function(value) {
// If you are authenticating by any of the oauth strategies, don't validate.
return (this.provider && this.p... | JavaScript | 0.000076 | @@ -2157,17 +2157,16 @@
hods%0A */
-%22
%0AUserSch
|
a88bcd2a548a48bc32186c3a2a8f971a146a7598 | fix args function | packages/veui-theme-one/functions.js | packages/veui-theme-one/functions.js | module.exports = {
install (less, pluginManager, functions) {
functions.add('args', node => {
let result = []
for (let i = 0; i < node.value.length; i++) {
result.push(node.value[i].value)
}
return result.join(', ')
})
}
}
| JavaScript | 0.001113 | @@ -93,16 +93,94 @@
de =%3E %7B%0A
+ if (typeof node.value === 'string') %7B%0A return node.value%0A %7D%0A
le
|
0ce804b8e6473e4ff809800bc9b8e41935a66d0c | Fix web-client production deployment config | packages/web-client/config/deploy.js | packages/web-client/config/deploy.js | /* eslint-env node */
module.exports = function (deployTarget) {
// these get less aggressive caching because they exist at stable URLs
let s3PagePattern = '**/*.{html,zip,pdf,css}'; // note that fingerprinting has not been implemented in embroider yet, using less agressive caching for css for now
let s3WellKnow... | JavaScript | 0.000009 | @@ -2198,16 +2198,47 @@
bucket =
+ ENV.s3WellKnown.bucket =%0A
'app-as
|
0eeb4f2adf4740c35eaa5646e38fdccf55878cd5 | Remove logs in tests | src/__unit__/migration-file/index.js | src/__unit__/migration-file/index.js | const test = require("ava")
const migrationFile = require("../../migration-file")
test("Hashes of JS files should be the same when the SQL is the same", async t => {
const [js1, js2] = await Promise.all([
migrationFile.load(__dirname + "/fixtures/different-js-same-sql-1/1_js.js"),
migrationFile.load(__dirnam... | JavaScript | 0.000001 | @@ -373,33 +373,8 @@
%5D)%0A%0A
- console.log(js1, js2)%0A%0A
t.
@@ -699,33 +699,8 @@
%5D)%0A%0A
- console.log(js1, js2)%0A%0A
t.
|
08f9d55f4942e4740e522adbde6ae325340f4b3c | Optimize common chunk plugin | webpack-cfg/common-chunk.js | webpack-cfg/common-chunk.js | const webpack = require('webpack')
const regex = /lodash|material-ui/
module.exports = {
plugins: [
new webpack.optimize.CommonsChunkPlugin({
children: true,
minChunks: (module, count) => (
module.resource && regex.test(module.resource) && count >= 3
)
})
]
}
| JavaScript | 0.000001 | @@ -66,10 +66,20 @@
l-ui
+%7Creact-dom
/%0A
-
%0Amod
@@ -163,22 +163,63 @@
-children: true
+name: 'vendor',%0A filename: 'vendor.%5Bchunkhash%5D.js'
,%0A
@@ -237,23 +237,14 @@
ks:
-(
module
-, count)
=%3E
@@ -260,24 +260,23 @@
module.
-resource
+context
&& rege
@@ -293,31 +293,16 @@
ule.
-re... |
0dc4bd4d73ccd325b916da60441506d3bd3d5194 | Update WebP options. | webtask/compress-webtask.js | webtask/compress-webtask.js | 'use strict'
const request = require('request')
const sharp = require('sharp')
const JPEG_QUALITY = 40
module.exports = (context, req, res) => {
const imageUrl = req.query.url
if (!imageUrl.match(/^https?:/i)) return res.status(400).end()
const transformer = sharp().grayscale().toFormat('webp', {
quality: ... | JavaScript | 0 | @@ -79,21 +79,16 @@
%0A%0Aconst
-JPEG_
QUALITY
@@ -294,20 +294,16 @@
webp', %7B
-%0A
quality
@@ -308,70 +308,15 @@
ty:
-JPEG_
QUALITY
-,%0A compressionLevel: 9,%0A progressive: true%0A
%7D)%0A
|
2e5886a42ef8a9ca45e28d8e4366e3be7ea538fe | load now checks directories every time it calls resolves #342 (#348) | lib/cluster/runners/op.js | lib/cluster/runners/op.js | 'use strict';
var path = require('path');
var exceptions = require('../../utils/exceptions');
var walk = require('../../utils/file_utils').walk;
var existsSync = require('../../utils/file_utils').existsSync;
/*
* This module defines the job execution context on the worker nodes.
*/
module.exports = function(context... | JavaScript | 0 | @@ -450,28 +450,8 @@
y;%0A%0A
- var paths = %7B%7D;%0A
@@ -507,25 +507,79 @@
ion
-gatherPaths
+findOp(name) %7B%0A var filePath;%0A%0A function filterFile
(file
-P
+p
ath,
@@ -583,17 +583,17 @@
th, root
-D
+d
ir, file
@@ -612,22 +612,24 @@
-paths%5B
+ if (
filename
%5D =
@@ -62... |
41a1054aba2478a63de1f571f84a691e26c4cbfa | now includes the _none group in the output | lib/command-line-usage.js | lib/command-line-usage.js | "use strict";
var columnLayout = require("column-layout");
var o = require("object-tools");
var a = require("array-tools");
var util = require("util");
var ansi = require("ansi-escape-sequences");
var t = require("typical");
var UsageOptions = require("./usage-options");
var arrayify = require("array-back");
/**
@modu... | JavaScript | 0.999107 | @@ -1440,24 +1440,26 @@
tions.title,
+ %5B
%22underline%22
@@ -1450,32 +1450,34 @@
e, %5B %22underline%22
+ %5D
));%0A if (opti
@@ -2511,32 +2511,186 @@
%7D%0A
+ if (group === %22_none%22)%7B%0A a(cliOptions).where(%7B group: undefined %7D).forEach(lines.addRow);... |
3962ba2bad9fc34fb605095e3420b45fa1b39fc4 | Remove seeds of test data | api/seeders/20161003085039-first-seed.js | api/seeders/20161003085039-first-seed.js | const stages = require('../../stages');
const Stages = require('../models/stage');
module.exports = {
up: (queryInterface) => (
queryInterface.bulkInsert('stages', stages.map((stage, index) => ({
name: stage.name || `stage${index}`,
createdAt: new Date(),
updatedAt: new Date(),
})), {}).then(() => (
S... | JavaScript | 0.000012 | @@ -36,51 +36,8 @@
s');
-%0Aconst Stages = require('../models/stage');
%0A%0Amo
@@ -256,1299 +256,8 @@
%7B%7D)
-.then(() =%3E (%0A%09%09%09Stages.findOne(%7Bwhere: %7Bname: 'wire01'%7D%7D)%0A%09%09)).then((stage) =%3E %7B%0A%09%09%09if (process.env.NODE_ENV !== 'production') %7B%0A%09%09%09%09const board = JSON.str... |
815eccf8894c7712a0d3ee827803189b7571ced4 | Update ContainersListContainer.js | app/Container/ContainersListContainer.js | app/Container/ContainersListContainer.js | import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { buildFullTextRegex, fullTextRegexFilter } from '../Search/FullTextSearch';
import actions from './actions';
import ContainersList from '../Presentational/ContainersList/ContainersList';
function flatValues(o) {
const values = ... | JavaScript | 0 | @@ -374,38 +374,12 @@
ion'
-)%0A .map((e) =%3E %7B%0A if (
+ &&
type
@@ -383,17 +383,17 @@
ypeof e
-=
+!
== 'obje
@@ -400,72 +400,8 @@
ct')
- %7B%0A return flatValues(e);%0A %7D%0A return e;%0A %7D);
%0A%0A
|
7f600b7ff3a7e02adb3c6df98ad7aca1663d0990 | update karma conf | packages/splitjs/karma.conf.js | packages/splitjs/karma.conf.js | module.exports = config => {
config.set({
customLaunchers: {
sl_firefox_latest: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'macOS 10.13',
version: '63.0',
},
sl_chrome_latest: {
ba... | JavaScript | 0 | @@ -627,17 +627,17 @@
on: '12.
-0
+1
',%0A
|
95f87cecb1c86ce4441edf157d43fe315350b136 | Remove const and let | app/assets/javascripts/actions/router.js | app/assets/javascripts/actions/router.js | const ActionTypes = window.CONSTANTS.ActionTypes;
const Dispatcher = window.Dispatcher;
const NProgress = require('nprogress');
const page = require('page');
const qs = require('qs');
const url = require('url');
class Router {
constructor(actionType, routes) {
this.actionType = actionType;
this.routes = rout... | JavaScript | 0 | @@ -1,13 +1,11 @@
-const
+var
ActionT
@@ -41,21 +41,19 @@
nTypes;%0A
-const
+var
Dispatc
@@ -77,21 +77,19 @@
atcher;%0A
-const
+var
NProgre
@@ -115,21 +115,19 @@
ress');%0A
-const
+var
page =
@@ -143,21 +143,19 @@
page');%0A
-const
+var
qs = re
@@ -167,21 +167,19 @@
('qs');%0A
-const
+var
url = r
@@ -... |
ead7013b6d5b09c999dc6eb50c864149f081da6b | Disable leak detection by default | app/assets/javascripts/konacha/iframe.js | app/assets/javascripts/konacha/iframe.js | window.Konacha = {
reset: function() {
document.body = document.createElement('body');
document.body.id = 'konacha';
}
};
window.Mocha = Object.create(parent.Mocha);
window.mocha = Object.create(parent.mocha);
// In order to isolate top-level before/beforeEach hooks,
// the specs in each iframe are wrappe... | JavaScript | 0 | @@ -844,24 +844,147 @@
ui('bdd');%0A%0A
+// Disable leak detection by default. It doesn't seem to be reliable%0A// with Konacha's iframe setup.%0Amocha.ignoreLeaks();%0A%0A
mocha.suite.
|
607e8f745619a22a3b035f2739653e658fd653c2 | fix deprecation warning in Ember.Helper.helper usage. | app/assets/javascripts/savagery/ember.js | app/assets/javascripts/savagery/ember.js | //= require ember-rails-assets
Savagery = {
svgSpriteInclude: function(name) {
if(this._svgSpritesIncluded[name]) { return; }
this._svgSpritesIncluded[name] = true
path = window.ASSETS.path(name + ".svg")
$.get(path, function(data) {
$("body").prepend(data);
}, "text");
},
svgSpriteUs... | JavaScript | 0 | @@ -539,24 +539,49 @@
ion(
-name, options) %7B
+params, hash) %7B%0A var name = params%5B0%5D;
%0A
@@ -731,16 +731,8 @@
s =
-options.
hash
@@ -1018,16 +1018,36 @@
e-use%22,
+Ember.Helper.helper(
Savagery
@@ -1059,16 +1059,17 @@
rHelper)
+)
;%0A %7D%0A%7D)
|
eb7e59d0f8610e4373d0d224fac6c9054882c8bf | update current-deadlines.js | invoicing/write-back/src/main/resources/projections/current-deadlines.js | invoicing/write-back/src/main/resources/projections/current-deadlines.js | fromStreams(['clock', '$ce-deadlines']).
when({
'$init' : function(s,e) {
return { "deadlines": []}
},
'pl.newicom.dddd.scheduling.EventScheduled' : function(s,e) {
s.deadlines[s.deadlines.length] = e;
},
'tick' : function(s,e) {
for(var i ... | JavaScript | 0.000001 | @@ -555,16 +555,25 @@
payload.
+metadata.
deadline
@@ -712,16 +712,25 @@
payload.
+metadata.
business
|
d4e3b65f9e5e50c1f610870d0aea943fd83239c2 | Replace subscriptions; lint | app/client/views/activities/form/form.js | app/client/views/activities/form/form.js | Template.activityForm.created = function () {
this.subscribe('allCurrentResidents');
this.subscribe('allCurrentResidencies');
this.subscribe('allHomes');
this.subscribe('allActivityTypes');
this.subscribe('allRolesExceptAdmin');
};
Template.activityForm.helpers({
activityTypeIdOptions: function() {
// ... | JavaScript | 0.000009 | @@ -33,17 +33,16 @@
function
-
() %7B%0A t
@@ -51,35 +51,43 @@
s.subscribe(
-'allC
+%22c
urrent
+UserVisible
Residents');
@@ -83,17 +83,17 @@
esidents
-'
+%22
);%0A thi
@@ -108,19 +108,33 @@
ibe(
-'allC
+%22c
urrent
+UserVisibleActive
Resi
@@ -140,17 +140,17 @@
idencies
-'
+%22
);%0A thi
@@ -165,18 +165... |
3fac0f3bc9af29ad5039844309d0cdf2bc95de33 | Replace placeholder text in cancel from | app/containers/ReservationCancelModal.js | app/containers/ReservationCancelModal.js | import forEach from 'lodash/collection/forEach';
import React, { Component, PropTypes } from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-bootstrap/lib/Modal';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { cancelPreliminaryReservation ... | JavaScript | 0.000001 | @@ -1846,9 +1846,9 @@
ong%3E
-X
+5
p%C3%A4i
|
d2c1d13cf0f7345aa2c18f4162e19fcc8a4ea56a | Add toString() method to complex numbers for easier debugging | app/javascript/helpers/complex-number.js | app/javascript/helpers/complex-number.js | /* FILE complex_number.js */
/*globals sparks */
(function () {
sparks.ComplexNumber = function (real, imag) {
this.real = real || 0;
this.imag = imag || 0;
this.magnitude = Math.sqrt(this.real*this.real + this.imag*this.imag);
this.angle = Math.atan2(this.imag, this.real); /... | JavaScript | 0.000001 | @@ -1290,14 +1290,131 @@
%0A %7D;%0A
+ %0A sparks.ComplexNumber.prototype.toString = function() %7B%0A return %22%22 + this.real + %22+i%22 + this.imag%0A %7D;
%0A%7D)();
|
3fb9f062c23f06dd3d334d12f74863f4733d1b0b | Refactor bindClick() in token directive | app/js/arethusa.core/directives/token.js | app/js/arethusa.core/directives/token.js | 'use strict';
angular.module('arethusa.core').directive('token', [
'state',
function (state) {
return {
restrict: 'AE',
scope: {
token: '=',
colorize: '=',
click: '@',
hover: '@',
highlight: '@'
},
link: function (scope, element, attrs) {
i... | JavaScript | 0 | @@ -578,43 +578,8 @@
) %7B%0A
- if (event.ctrlKey) %7B%0A
@@ -592,33 +592,32 @@
apply(function
-
() %7B%0A
@@ -623,126 +623,64 @@
- state.toggleSelection(id, 'ctrl-click');%0A %7D);%0A %7D else %7B%0A apply(function () %7B%0A
+var clickTy... |
9f6bb2f30c47df53e76cdd49bb6e87a263e5ce87 | Fix delete | src/api/controller/EditController.js | src/api/controller/EditController.js | 'use strict';
/**
* NpolarEditController extends [NpolarBaseController](https://github.com/npolar/angular-npolar/blob/master/src/api/controller/BaseController.js) with scope methods for REST-style document editing (using ngResource)
* and [formula](https://github.com/npolar/formula)-bound controller action methods, l... | JavaScript | 0.000003 | @@ -3820,32 +3820,65 @@
= function() %7B%0A
+ let id = $scope.document.id;%0A
$scope.docum
@@ -3955,42 +3955,10 @@
ve(%7B
-%0A id: $scope.document.id%0A
+id
%7D, f
|
82ea98a7166a0f1010d4004c1347d00334bf4549 | Fix lint error | app/pages/__tests__/AppContainer.test.js | app/pages/__tests__/AppContainer.test.js | import React from 'react';
import { shallow } from 'enzyme';
import simple from 'simple-mock';
import { Helmet } from 'react-helmet';
import Header from '../../../src/domain/header/Header';
import AccessibilityShortcuts from '../../shared/accessibility-shortcuts/AccessibilityShortcuts';
import { getState } from '../..... | JavaScript | 0.000035 | @@ -2617,16 +2617,17 @@
tributes
+,
%0A
|
3aa00b4ee50c2e1fa1af265541daa75418ff9bdf | update sidenav | src/app/components/common/SideNav.js | src/app/components/common/SideNav.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router';
import Drawer from 'material-ui/Drawer';
import Divider from 'material-ui/Divider';
import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton... | JavaScript | 0.000001 | @@ -4833,12 +4833,35 @@
%7D%3E%C2%A9
-2018
+$%7Bnew Date().getFullYear()%7D
- v
|
77d9495ad4b784f0fd07c9ae367f70cb59bf7479 | Fix jshint error | app/scripts/collections/modules/notes.js | app/scripts/collections/modules/notes.js | /**
* Copyright (C) 2015 Laverna project Authors.
*
* 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/.
*/
/* global define */
define([
'underscore',
'q',
... | JavaScript | 0.000006 | @@ -1410,16 +1410,43 @@
eTags ==
+= undefined %7C%7C saveTags ===
null)%7B%0A
|
cd1892ae59fbcefbbdaa3a0ec13b830fa713f3d4 | disable multi-click | src/app/post/edit/edit.controller.js | src/app/post/edit/edit.controller.js | 'use strict';
class PostEditCtrl {
/** @ngInject */
constructor($window, $cookies, $timeout, $state, $stateParams, $mdSidenav, $mdDialog, $translate, Config, Toast, PostService, post) {
Object.assign(this, {
$window, $cookies, $timeout, $state, $stateParams, $mdSidenav, $mdDialog, $translate, Config, Toa... | JavaScript | 0.000003 | @@ -531,16 +531,43 @@
d(this);
+%0A this.updating = false;
%0A%0A $t
@@ -1185,24 +1185,69 @@
(publish) %7B%0A
+ if (this.updating) %7B%0A return;%0A %7D%0A
if (!thi
@@ -1413,24 +1413,50 @@
turn;%0A %7D%0A
+ this.updating = true;%0A
let post
@@ -2081,32 +2081,32 @@
R_POST_UPDATE);%0... |
1711fc67952d17f4238d04475829e7ecb756d9e5 | remove predicting the content | app/scripts/superdesk-users/providers.js | app/scripts/superdesk-users/providers.js | define(['lodash', 'angular'], function(_, angular) {
'use strict';
angular.module('superdesk.users.providers', [])
.factory('rolesLoader', ['$q', 'em', function ($q, em) {
var delay = $q.defer();
function zip(items, key) {
var zipped = {};
_.each... | JavaScript | 0.000003 | @@ -1433,220 +1433,22 @@
-if (popover.userId && popover.userId === userId) %7B%0A popover.element.show();%0A return;%0A %7D%0A resetContent();%0A popover.userId = userId
+resetContent()
;%0A%0A
|
e611710448944a57ca5b764891489e16ee0c794c | Correct a variable name that was preventing menus from being closable | src/assets/scripts/overlay_toggle.js | src/assets/scripts/overlay_toggle.js | // JavaScript Document
// Scripts written by YOURNAME @ YOURCOMPANY
/* jshint -W083 */
var i = 0,
overlay_buttons = document.querySelectorAll("[data-overlay]:not([aria-hidden])"),
overlays = document.querySelectorAll("[data-overlay]"),
overlay_closers = document.querySelectorAll(... | JavaScript | 0.998378 | @@ -2371,15 +2371,14 @@
) ?
-closing
+target
_ove
|
298d72d42ebbb8e3fe6b8006aeae1e2a19aa9669 | fix a syntax error | src/backend/data/models/bsd-group.js | src/backend/data/models/bsd-group.js | import BSDClient from '../../bsd-instance';
export default function(sequelize, DataTypes) {
let BSDGroup = sequelize.define('BSDGroup', {
id: {
type: DataTypes.INTEGER,
field: 'cons_group_id',
primaryKey: true
},
name: DataTypes.STRING,
description: {
type: DataTypes.STRING,
... | JavaScript | 0.99847 | @@ -588,14 +588,13 @@
new
-Survey
+Group
.con
|
149e4bf603ad46e66bd4892058f75f7f71819158 | Revert project attributes delimiter to dot | app/src/controllers/project/constants.js | app/src/controllers/project/constants.js | export const PROJECT_INFO_INITIAL_STATE = {};
export const PROJECT_PREFERENCES_INITIAL_STATE = {
filters: [],
};
export const PROJECT_ATTRIBUTES_DELIMITER = '$';
export const FETCH_PROJECT_SUCCESS = 'fetchProjectSuccess';
export const FETCH_PROJECT_PREFERENCES_SUCCESS = 'fetchProjectPreferencesSuccess';
export const... | JavaScript | 0 | @@ -157,9 +157,9 @@
= '
-$
+.
';%0A%0A
|
48bbdf34757440c365ec3ddc52cdb74e96ec7215 | fix lint issue | app/templates/test/fixtures/bootstrap.js | app/templates/test/fixtures/bootstrap.js | 'use strict';
const pify = require('aws-lambda-pify');
require('./env');
const index = require('../../');
module.exports = (test, method, path) => {
const options = {
'http-method': method,
'resource-path': path,
'identity': {},
'body': {},
'params': {},
'query': {}
};
test.before(() => {
// run set... | JavaScript | 0.000003 | @@ -143,17 +143,16 @@
h) =%3E %7B%0A
-%0A
%09const o
|
5ae77bd9c00f347d43e9c44bf702305a3d155125 | Add watches for unresolved watch calls and signals unwatched signals | src/botPage/bot/TradeEngine/index.js | src/botPage/bot/TradeEngine/index.js | import { Map } from 'immutable'
import Proposal from './Proposal'
import Broadcast from './Broadcast'
import Total from './Total'
import Balance from './Balance'
import FollowTicks from './FollowTicks'
import OpenContract from './OpenContract'
const scopeToWatchResolve = {
before: ['before', true],
purchase: ['bef... | JavaScript | 0 | @@ -678,30 +678,29 @@
()%0A this.
-promis
+watch
es = new Map
@@ -1524,22 +1524,21 @@
f (this.
-promis
+watch
es.has(w
@@ -1560,42 +1560,38 @@
-this.signals = this.signals.del
+const watch = this.watches.g
et
-e
(wat
@@ -1594,24 +1594,25 @@
(watchName)%0A
+%0A
this.p
@@ -1614,20 +1614,37 @@
his.... |
cb9b21b23baf16053083091138b0936df4ddb119 | Improve story post time labelling | src/client/react/components/Story.js | src/client/react/components/Story.js | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import DateFormat from 'dateformat';
import { connect } from 'react-redux';
import { graphql } from 'react-apollo';
import { Icon, Intent } from '@blueprintjs/core';
import MarkdownRenderer from '../../../... | JavaScript | 0.000001 | @@ -3342,14 +3342,9 @@
= '
-Just a
+A
mom
@@ -3453,19 +3453,11 @@
out
-ten minutes
+10m
ago
@@ -3501,20 +3501,11 @@
out
-half an hour
+30m
ago
@@ -3547,15 +3547,10 @@
out
-an hour
+1h
ago
|
6de5ea04a4450b9a31809fc8f5cf5eda65511e03 | Add support for extended date format options, as described here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString | appdaemon/widgets/baseclock/baseclock.js | appdaemon/widgets/baseclock/baseclock.js | function baseclock(widget_id, url, skin, parameters)
{
// Will be using "self" throughout for the various flavors of "this"
// so for consistency ...
self = this
// Initialization
self.widget_id = widget_id
// Parameters may come in useful later on
self.parameters = ... | JavaScript | 0.00002 | @@ -1568,39 +1568,238 @@
%7B
-
+%0A%09%09%09if (%22date_format_options%22 in self.parameters)%0A%09%09%09%7B%0A%09%09%09%09self.set_field(self, %22date%22, today.toLocaleDateString(self.parameters.date_format_country, self.parameters.date_format_options));%0A%09%09%09%7D%0A%09%09%09else%0A%09%09%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.