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 |
|---|---|---|---|---|---|---|---|
369f1b53ad8205672df02d0a3a9401f1cec840f1 | use svg to indicate rotation axis. | src/components/widgets/controls/rotate.js | src/components/widgets/controls/rotate.js | 'use strict'
import React from 'react'
let RotateControl = React.createClass({
onMouseDown: function (ev) {
this.props.onRotateMouseDown(ev, this.props.idx, this.props.axis)
},
render: function () {
return <span
className={"rotate-"+this.props.axis}
onMouseDown={this.onMouseDown}
>↻</span... | JavaScript | 0 | @@ -250,9 +250,11 @@
te-%22
-+
+ +
this
@@ -312,9 +312,1171 @@
%3E
-%E2%86%BB
+%0A %3Csvg width=%2228%22 height=%2228%22 viewBox=%220 0 512 512%22 cursor=%22pointer%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%0A %3Cpath fill=%22#000000%22 id=%22path3036%22%0A d=%22m255.65625,40.15625c-1... |
0d23aea2818865a40c6c83029e04e62af9ae5f22 | Allow TilemapLayers to set post pipelines | src/tilemaps/TilemapLayerWebGLRenderer.js | src/tilemaps/TilemapLayerWebGLRenderer.js | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Utils = require('../renderer/webgl/Utils');
/**
* Renders this Game Object with the WebGL Renderer to the given Camera.
* The object will... | JavaScript | 0 | @@ -1234,16 +1234,21 @@
pipeline
+, src
);%0A%0A
@@ -1466,24 +1466,95 @@
rc.scaleY;%0A%0A
+ var pipelines = renderer.pipelines;%0A%0A pipelines.preBatch(src);%0A%0A
for (var
@@ -2819,16 +2819,47 @@
);%0A %7D
+%0A%0A pipelines.postBatch(src);
%0A%7D;%0A%0Amod
|
9c8eb5544d18f4cb32465010f48a4e36a20b5c46 | fix blickCheckbox. | src/components/toolbar/views/TriggerButtonView.js | src/components/toolbar/views/TriggerButtonView.js | import ButtonView from './ButtonView';
export default ButtonView.extend({
triggers: {
click: 'click',
keyup: 'keyup'
}
});
| JavaScript | 0 | @@ -103,39 +103,243 @@
ck:
-'click',%0A keyup: 'keyup'
+%7B%0A event: 'click',%0A preventDefault: false,%0A stopPropagation: false%0A %7D,%0A keyup: %7B%0A event: 'keyup',%0A preventDefault: false,%0A stopPropagation: false%0A ... |
c5f10840ee3edcbe690bef446e17bafc1b5b3fe1 | Fix for offer ID (should be String, not Number) | src/disclosures/js/utils/query-handler.js | src/disclosures/js/utils/query-handler.js | 'use strict';
var stringToNum = require( './handle-string-input.js' );
/**
* Handles URL questy string to turn key-value pairs into an object.
* @param {string} queryString - The query string of a url (location.search)
* @returns {object} - An object containing key-value pairs from the query
*/
function queryHan... | JavaScript | 0.000069 | @@ -425,15 +425,8 @@
id',
- 'oid',
'tu
|
b85f7ee2ac0520ffe16496356c4318bc33d26d89 | Fix broken bookmark in VY2 | src/components/vlplotgrouplist/vlplotgrouplist.js | src/components/vlplotgrouplist/vlplotgrouplist.js | 'use strict';
angular.module('vlui')
.directive('vlPlotGroupList', function (vl, cql, jQuery, consts, _, Logger, Pills) {
return {
templateUrl: 'components/vlplotgrouplist/vlplotgrouplist.html',
restrict: 'E',
replace: true,
scope: {
/** An instance of specQueryModelGroup */
... | JavaScript | 0 | @@ -1407,16 +1407,60 @@
toSpec()
+,%0A shorthand: specM.toShorthand()
%0A
|
274988ad8fc020522d955e5fb5c09339396071e1 | Truncate long title. | src/containers/pages/ArticlesPage/ArticlesPage.js | src/containers/pages/ArticlesPage/ArticlesPage.js | import { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Immutable from 'immutable';
import pureRender from 'pure-render-decorator';
import Radium from 'radium';
import moment from 'moment';
import { arrayOf } from 'normalizr';
import { Paper, RaisedButton } from 'material-ui';
impor... | JavaScript | 0.000005 | @@ -1043,21 +1043,75 @@
h: 220,%0A
+ overflow: 'hidden',%0A textOverflow: 'ellipsis',%0A
%7D,%0A
-
%7D;%0A%0Acons
@@ -1488,32 +1488,209 @@
chema) %7D);%0A %7D%0A%0A
+ truncateTitle(title) %7B%0A const start = 0;%0A const end = 25;%0A%0A if (title.length %3E end) %7B%0A return %60$%7Btitle.su... |
8f917136416ef0c06658074fff8310ad1485ff85 | remove types | src/core/view/plugins/wxs/component-descriptor.js | src/core/view/plugins/wxs/component-descriptor.js | import {
isPlainObject
} from 'uni-shared'
const CLASS_RE = /^\s+|\s+$/g
const WXS_CLASS_RE = /\s+/
function getWxsClsArr (clsArr, classList, isAdd) {
const wxsClsArr = []
let checkClassList = function (cls) {
if (isAdd) {
checkClassList = function (cls) {
return !classList.conta... | JavaScript | 0.000002 | @@ -4109,42 +4109,17 @@
dler
-: TimerHandler, timeout ? : number
+, timeout
) %7B%0D
@@ -4200,18 +4200,8 @@
ndle
- ? : numbe
r) %7B
@@ -4239,16 +4239,17 @@
t(handle
+r
)%0D%0A %7D%0D%0A
|
71483f7a341d0d80e5d67e2302d6602ad0802205 | Add forecas hourly chart | src/forecastHourly/forecastHourlyChart.js | src/forecastHourly/forecastHourlyChart.js | import React from 'react'
const ForecastHourlyChart = ({ forecastHourly }) => (
<div>
<h2>Hourly</h2>
{ JSON.stringify(forecastHourly) }
</div>
)
export default ForecastHourlyChart
| JavaScript | 0 | @@ -18,16 +18,951 @@
'react'
+%0Aimport %7B LineChart, Line, CartesianGrid, XAxis, Tooltip %7D from 'recharts'%0A%0A/*%0A%5B%7B%22momentId%22:%222017:4:20:6%22,%22hour%22:9,%22temp%22:288.03,%22weatherIcon%22:%2201n%22%7D,%7B%22momentId%22:%222017:4:20:6%22,%22hour%22:12,%22temp%22:288.83,%22weatherIcon%22:%2201d%22%... |
951b6a541971bab3dc067fe8510c48ad8d02090d | Add constituent lookup tab, shorten tab labels | src/frontend/components/AdminDashboard.js | src/frontend/components/AdminDashboard.js | import React from 'react';
import Relay from 'react-relay';
import {Styles} from 'material-ui';
import MuiThemeProvider from 'material-ui/lib/MuiThemeProvider';
import TopNav from './TopNav';
import {BernieTheme} from './styles/bernie-theme';
import {BernieColors} from './styles/bernie-css';
class AdminDashboard exten... | JavaScript | 0 | @@ -413,20 +413,86 @@
Call
- Assignments
+s'%0A %7D,%0A %7B%0A value: '/admin/constituent-lookup',%0A label: 'People
'%0A
|
f24c850022fe750ea0d5e28536801f9eda87b138 | Add detailed error message on scale | src/js/components/modals/ServiceScaleFormModal.js | src/js/components/modals/ServiceScaleFormModal.js | import mixin from 'reactjs-mixin';
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import {StoreMixin} from 'mesosphere-shared-reactjs';
import FormModal from '../FormModal';
import MarathonStore from '../../stores/MarathonStore';
const METHODS_TO_BIND = [
'handleSc... | JavaScript | 0 | @@ -1362,16 +1362,39 @@
errorMsg
+ = '', details: details
%7D) %7B%0A
@@ -1405,32 +1405,352 @@
s.resetState();%0A
+ let isErrorMsgToShort = errorMsg.toLowerCase() === 'object is not valid' &&%0A details.length !== 0;%0A%0A if (isErrorMsgToShort) %7B%0A this.setState(%7B%0A errorMsg: details... |
707c423f01cfb9385d22609d9f1ad3f3ce19ece6 | Make animated views work even if reinserted | source/Overture/animation/AnimatableView.js | source/Overture/animation/AnimatableView.js | // -------------------------------------------------------------------------- \\
// File: AnimatableView.js \\
// Module: Animation \\
// Requires: Core, UA, Animation.js ... | JavaScript | 0.000001 | @@ -3574,41 +3574,314 @@
' )
-&& this.get( 'isInDocument' ) ) %7B
+) %7B%0A // Must wait until in document to animate%0A if ( !this.get( 'isInDocument' ) ) %7B%0A O.RunLoop.invokeInNextFrame(%0A this.propertyNeedsRedraw.bind(%0A this, this... |
ce0f94ea4589dcdbca815b420ac217988909aaae | Fix tiny mistake in iOSPrivateBrowsing fix. | source/application/applicationcontroller.js | source/application/applicationcontroller.js | APP.applicationController = (function () {
'use strict';
var fastClick,
iOSPrivateBrowsing;
function offlineWarning() {
alert("This feature is only available online.");
}
function pageNotFound() {
alert("That page you were looking for cannot be found.");
}
function s... | JavaScript | 0 | @@ -2160,34 +2160,16 @@
e.start(
-iOSPrivateBrowsing
);%0A
|
3e0a4baf9818053998411c0739bfccedc3d2495c | Fix lint | cypress/integration/locations-hub.spec.js | cypress/integration/locations-hub.spec.js | // / <reference types="Cypress" />
describe('The Locations Hub', () => {
before(() => {
cy.visit('/#/locations');
});
it('successfully loads', () => {
cy.get('header');
cy.get('main');
cy.get('footer');
cy.get('h1');
});
it('has a header with title and description', () => {
cy.get('... | JavaScript | 0 | @@ -934,25 +934,8 @@
();%0A
- cy.wait(1000)
%0A
@@ -977,24 +977,42 @@
uld('exist')
+.and('be.visible')
;%0A cy.get
|
497ee278de35cfc71d2a2779bfd3487436ca4ad8 | Fix typo | 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.999999 | @@ -2366,16 +2366,19 @@
ceof win
+dow
.MouseEv
|
678f2ef56da5b618c5308ba66138979ecc9286b7 | fix issue where errorMessage was not appended to the DOM (git merge fail :)) | src/main/webapp/pub/js/springbvjquery/spring-validationerrors.js | src/main/webapp/pub/js/springbvjquery/spring-validationerrors.js | jQuery.extend({
/**
* Main method allowing to display springBindingResults error messages
*/
displaySpringErrors: function(springBindingResults, selector) {
$.each(springBindingResults, function(index, bindingError){
$.displaySpringErrorMessage(selector, bindingError.field, binding... | JavaScript | 0 | @@ -1545,32 +1545,97 @@
ssage;%0A %7D
+%0A errorMessageContainerInfos.container.text(errorMessage);
%0A%0A // Add
|
19646b12cf2562349e16b15521b02a51ddb35ef6 | Support for no startDate | App/Components/RepoItem.js | App/Components/RepoItem.js | 'use strict';
var React = require('react-native');
var moment = require('moment');
require('moment-duration-format');
var BuildsScreen = require('./BuildsScreen');
var StatusSidebar = require('./StatusSidebar');
var {
StyleSheet,
Text,
View,
TouchableHighlight
} = React;
var RepoItem = React.createClass({
... | JavaScript | 0 | @@ -654,21 +654,75 @@
var
-startedDate =
+date = this.props.details.last_build_duration ? 'Finished ' +%0A
mom
@@ -755,21 +755,22 @@
t_build_
-start
+finish
ed_at).f
@@ -781,32 +781,16 @@
ow()
-;
+ :
%0A
-var finishedDate =
+
mom
@@ -815,38 +815,37 @@
ails.last_build_
-finish
+start
ed_at).fromNow... |
21a64956559d0a8d2e0743c1423488d87f34629f | Add more useful info in box | src/parser/shared/modules/spells/bfa/azeritetraits/Tradewinds.js | src/parser/shared/modules/spells/bfa/azeritetraits/Tradewinds.js | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS/index';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
/**
* Your spells and abilities have a chance to grant you 583 Master... | JavaScript | 0 | @@ -1144,16 +1144,147 @@
);%0A %7D%0A%0A
+ get uptimePct() %7B%0A return (this.selectedCombatant.getBuffUptime(SPELLS.TRADEWINDS.id) / this.owner.fightDuration) * 100;%0A %7D%0A%0A
statis
@@ -1431,10 +1431,85 @@
ue=%7B
-%60$
+(%0A %3C%3E%0A %7Bthis.uptimePct.toFixed(0)%7D%25 uptime%3Cbr /%3... |
8805963fe55f54f95eec94a050fec3ab48ab43aa | MX true/false endpoint | cf-workers/resolve-worker.js | cf-workers/resolve-worker.js | /* globals fetch, addEventListener, Headers, Response */
// Routes:
// * https://dnstwister.report/api/a*
// * https://dnstwister.report/api/mx*
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
const urlStart = 'https://cloudflare-dns.com/dns-query?type=A&ct=application/dns-j... | JavaScript | 0.999542 | @@ -290,15 +290,8 @@
ery?
-type=A&
ct=a
@@ -317,16 +317,16 @@
&name='%0A
+
%0Aconst j
@@ -966,16 +966,28 @@
+ domain
+ + '&type=A'
, %7B cf:
@@ -1710,16 +1710,22 @@
Record (
+domain
) %7B%0A re
@@ -1733,26 +1733,696 @@
urn
-new Response('MX!'
+fetch(urlStart + domain + '&type=MX', %7B cf: %7B cacheTtl: 8640... |
d5de66bff8534592b836dd1f722718d0dc03afba | Prepend StackMob root URL to supplied URL | src/StackMobAjax.js | src/StackMobAjax.js | /**
* Copyright 2012 Palomino Labs, Inc.
*
* 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 agree... | JavaScript | 0 | @@ -1249,16 +1249,347 @@
ers());%0A
+ %7D,%0A%0A /**%0A * Specialized version of setupUrl to prepend the StackMob URL root%0A * @param %7BObject%7D options%0A * @param %7BString%7D url%0A * @return %7BString%7D The modified url%0A */%0A setupUrl: function(options, url) %7B%0A var me... |
0ac32d54077ea5bf5a75f49f979c9ec60f655521 | refactor docker commands | CLI/commands/lifterInit.js | CLI/commands/lifterInit.js | var fs = require('fs');
var aync = require('async');
var exec = require('child_process').exec;
var helpers = require('../helpers/helpers.js');
var builder = require('../helpers/dockerfileBuilder.js');
var spawnSeriesLib = require('../helpers/spawnSeries.js');
var dockerSpawnSeries = spawnSeriesLib.dockerSpawnSeries;
va... | JavaScript | 0.999723 | @@ -4609,16 +4609,68 @@
_name .%0A
+ var appContainerName = settings.appContainerName;%0A
var im
@@ -4728,44 +4728,142 @@
me;%0A
- var dbImageName = imageName + '_db
+%0A var dbContainerName = settings.dbContainerName;%0A var dbImageName = settings.dbImageName;%0A var dbLinkName = dbContainerName+'-link
';%0... |
779f0cfa957ce67207c7191ba866fddab218e9c6 | make sure length gets set before creating the oscillator | src/Voices/Noise.js | src/Voices/Noise.js | import Voice from "./Voice";
export default class Noise extends Voice{
constructor(context, gain = 1) {
super(context, "none");
this.length = 2;
this.partials = [];
this.voicePartials();
}
voicePartials() {
var lBuffer = new Float32Array(this.length * this.context.sampleRate);
var rBuffer = new Float... | JavaScript | 0.000001 | @@ -129,24 +129,25 @@
e%22);%0A%09%09this.
+_
length = 2;%0A
@@ -157,45 +157,121 @@
his.
-p
+voiceP
artials
- = %5B%5D;%0A%09%09this.voicePartials()
+();%0A%09%7D%0A%0A%09get length () %7B%0A%09%09return this._length %7C%7C 2;%0A%09%7D%0A%09set length (value) %7B%0A%09%09this._length = value
;%0A%09%7D
@@ -291,17 ... |
8e37620320f64b985b8e549e0f5e66f874f6e578 | Update ValueRange.js | CNN/Unpacker/ValueRange.js | CNN/Unpacker/ValueRange.js | export { Same, Bool, Int };
/**
* Provides methods for converting nothing (just return original value).
*/
class Same {
/** @return {any} Return the input value directly. */
adjust( value ) {
return value;
}
/**
* @return {function}
* Return a function object. When calling the returned functio... | JavaScript | 0.000001 | @@ -606,16 +606,27 @@
e is no
+meaningful
testable
@@ -642,17 +642,16 @@
ir could
-e
be gene
@@ -1028,22 +1028,55 @@
) %7B%0A
-return
+yield %7B valueInput: 0, valueOutput: 0 %7D
;%0A %7D%0A%0A
|
2443e07be4d74797ef3066434b9125826f611302 | Update Pool_Base.js | CNN/util/Pool/Pool_Base.js | CNN/util/Pool/Pool_Base.js | export { Base, Root };
/**
* A pool for recycling (re-using) objects.
*
* It could be used to improve performance by reducing memory re-allocation.
*
*/
let Base = ( ParentClass = Object ) => class PadInfoCalculator extends ParentClass {
/**
* @param {Class} objectClass
* The class for all newly create... | JavaScript | 0.000001 | @@ -1047,24 +1047,70 @@
Float32Array
+ because of reducing more memory re-allocation
.%0A//%0A%0A th
|
da9b93c381762f5b754492a0f767fbadeeda132b | update Thead | src/_Thead/Thead.js | src/_Thead/Thead.js | /**
* @file Thead component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import TheadItem from '../_TheadItem';
class Thead extends Component {
constructor(props, ...restArgs) {
s... | JavaScript | 0 | @@ -202,23 +202,16 @@
mport Th
-eadItem
from '.
@@ -215,23 +215,16 @@
'../_Th
-eadItem
';%0A%0Aclas
@@ -833,15 +833,8 @@
%3CTh
-eadItem
key
@@ -834,39 +834,32 @@
%3CTh key=%7Bindex%7D%0A
-
@@ -907,23 +907,16 @@
ssName%7D%0A
-
@@ -996,23 +996,16 @@
- ... |
d8a0335ebeb7a666cc65088f71bc1fd110aeb1eb | update the minified version | min/text2jsvar.min.js | min/text2jsvar.min.js | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | JavaScript | 0.000001 | @@ -733,87 +733,123 @@
urn
-double?convertEscapeChars(convertEscapeChars(source)):convertEscapeChars(source
+JSON.stringify(double?JSON.stringify(source).slice(1,-1).replace(/'/g,%22%5C%5C'%22):source).slice(1,-1).replace(/'/g,%22%5C%5C'%22
)%7D,r
@@ -1425,12 +1425,17 @@
ing=
-this
+undefined
.toS
@@ -1735,204 +17... |
1087e75a9c221385ce3fbf7ca112eb915df7abf8 | Update colordeclare.js | chat-plugins/colordeclare.js | chat-plugins/colordeclare.js | var fs = require('fs');
var badges = fs.createWriteStream('badges.txt', {'flags': 'a'});
exports.commands = {
declaregreen: 'declarered',
declarered: function (target, room, user, connection, cmd) {
if (!target) return this.parse('/help declare');
if (!this.can('declare', null, room)) return false;
if ((user.lo... | JavaScript | 0.000001 | @@ -104,16 +104,837 @@
nds = %7B%0A
+%09gdeclarered: 'gdeclare',%0A%09gdeclaregreen: 'gdeclare',%0A%09gdeclare: function (target, room, user, connection, cmd) %7B%0A%09%09if (!target) return this.parse('/help gdeclare');%0A%09%09if (!this.can('declare')) return false;%0A%09%09if ((user.locked %7C%7C user.mutedRooms%5B... |
a972ef96dfacea8321de194289d3aa0ecba74fa8 | Fix minor bugs on roll command | src/commandHandler.js | src/commandHandler.js | module.exports = {
handle: function(cmd, msg) {
var global = require('./global.js');
if(cmd.rest == null) var args = null;
else var args = cmd.rest.split(' ');
switch (cmd.name) {
case 'stats':
msg.reply(`Number of guilds connected: ${global.bot.guilds.array().length}`);
break;
case 'uptime':
... | JavaScript | 0.000001 | @@ -968,24 +968,85 @@
6) + 1)%7D%60);%0A
+%09%09%09%09else if (isNaN(args)) msg.reply(%22please roll a number%22);%0A
%09%09%09%09else msg
|
8428b4ee25e2e200cd220d483db52e6b7ad1c7fb | Update clear cache to electron promise APIs | src/api/server/LocalApi.js | src/api/server/LocalApi.js | import { ipcRenderer, remote } from 'electron';
import du from 'du';
import { getServicePartitionsDirectory } from '../../helpers/service-helpers.js';
const debug = require('debug')('Franz:LocalApi');
const { session } = remote;
export default class LocalApi {
// Settings
getAppSettings(type) {
return new P... | JavaScript | 0 | @@ -1236,39 +1236,16 @@
return
- new Promise(resolve =%3E
s.clear
@@ -1246,32 +1246,24 @@
.clearCache(
-resolve)
);%0A %7D%0A%0A as
@@ -1386,31 +1386,8 @@
turn
- new Promise(resolve =%3E
s.c
@@ -1396,24 +1396,16 @@
arCache(
-resolve)
);%0A %7D%0A%7D
|
3ae19e5453069281870523189c7e6749bf0db1d8 | Add filter module to clients.js | src/app/clients/clients.js | src/app/clients/clients.js | angular.module( 'billify.clients', [
'ui.router',
'placeholders',
'ui.bootstrap'
])
.config(function config( $stateProvider ) {
$stateProvider.state( 'clients', {
url: '/clients',
views: {
"main": {
controller: 'ClientsCtrl',
templateUrl: 'clients/index.tpl.html'
}
},
... | JavaScript | 0.000001 | @@ -79,16 +79,37 @@
otstrap'
+,%0A 'billify.filters'
%0A%5D)%0A%0A.co
@@ -129,17 +129,16 @@
config(
-
$statePr
@@ -143,17 +143,16 @@
Provider
-
) %7B%0A $s
|
2400625a6050f9734a17914bf64f835d5c86eca5 | Add px/py and mx/my props to Box component | src/components/Box.js | src/components/Box.js | import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import Base from './Base';
const SIZES = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
const size = value => props => props.theme.space[props[value]];
const Box = styled(Base)`
margin: ${size('m')};
margin-top: ${size('mt')};
margin-right: ${s... | JavaScript | 0 | @@ -292,16 +292,30 @@
ze('mt')
+ %7C%7C size('my')
%7D;%0A%09marg
@@ -336,16 +336,30 @@
ze('mr')
+ %7C%7C size('mx')
%7D;%0A%09marg
@@ -381,16 +381,30 @@
ze('mb')
+ %7C%7C size('my')
%7D;%0A%09marg
@@ -424,16 +424,30 @@
ze('ml')
+ %7C%7C size('mx')
%7D;%0A%09padd
@@ -491,16 +491,30 @@
ze('pt')
+ %7C%7C size('p... |
913af1f42201ffd29eb157505abdf99111cb7314 | create mock todos, imported into same page second paragraph,(added divs, todoslist | src/components/app.js | src/components/app.js | import React from 'react';
export default class App extends React.Component { //this is what were calling our component
render () {
return ( //keeps code organzed, putting divs in there
<div>
<h1>React ToDos App</h1>
</div>
);
}
}
| JavaScript | 0 | @@ -19,16 +19,220 @@
'react';
+%0Aimport TodosList from './todos-list';%0A%0Aconst todos = %5B //creating mock to dos%0A %7B%0A task: 'make React tutorial',%0A isCompleted: false%0A%7D,%0A%7B%0A task: 'eat dinner',%0A isCompleted: true%0A%0A%7D%0A%5D;
%0A%0Aexport
@@ -444,16 +444,41 @@
pp%3C/h1... |
f7a507afdbcf65210a917d2ac4effe27a06e6494 | Update landing.js | client/components/landing.js | client/components/landing.js | import React from 'react';
import {withRouter, Link} from 'react-router-dom';
import { Button } from 'semantic-ui-react';
import Splash from './Splash.jsx';
import {
Login,
Signup,
} from './auth-form';
const containerStyles = {
width: "650px",
display: "flex",
alignItems: "left",
justifyContent: "center"... | JavaScript | 0 | @@ -657,10 +657,10 @@
e yo
-r
u
+r
voc
|
47d1d09a3ea7b63e05059caa101793a0f5b9b7de | change from http to https | src/components/app.js | src/components/app.js | import { h, Component } from 'preact';
import Header from './header';
import Home from './home';
function fetchStory(url) {
return fetch("http://hn.algolia.com/api/v1/search?query=" + url)
.then((res) => {
if (res.status >= 200 && res.status < 300)
return Promise.resolve(res);
return Promise.reject(... | JavaScript | 0 | @@ -131,32 +131,33 @@
turn fetch(%22http
+s
://hn.algolia.co
@@ -676,16 +676,17 @@
ch(%22http
+s
://hn.al
@@ -1279,16 +1279,17 @@
= %22http
+s
://danwa
|
396e0b0d350c9fd400bf4e119989e005c39d53e5 | Change image url | src/components/seo.js | src/components/seo.js | /**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { useStaticQuery, graphql } from 'gatsby'
function SEO({ descripti... | JavaScript | 0.000045 | @@ -1485,32 +1485,129 @@
%7D,%0A %7B%0A
+ name: %60twitter:site%60,%0A content: site.siteMetadata.author%0A %7D,%0A %7B%0A
name:
@@ -1909,32 +1909,61 @@
content: %60
+https://beta.docs.inkdrop.app
/og-cover-image.
|
4b5ccb6b334424f50ad83b29846f9ac4133a1c05 | replace jumbotron with plain elements | client/javascript/profile.js | client/javascript/profile.js | /**
* @jsx React.DOM
*/
'use strict';
// config
var config = require('./config');
var api = require('./modules/api')(config);
// dependencies
var React = require('react');
var ReactAsync = require('react-async');
var superagent = require('superagent');
var io = require('socket.io-client');
var sockets = require('./... | JavaScript | 0.001156 | @@ -723,62 +723,8 @@
s');
-%0Avar Jumbotron = require('react-bootstrap').Jumbotron;
%0A%0A//
@@ -1491,29 +1491,85 @@
%3C
-Jumbotron className='
+div className=%22container%22%3E%0A %3Cdiv className=%22jumbotron
text
@@ -1579,11 +1579,15 @@
nter
-'
+%22
%3E%0A
+
@@ -1652,19 +16... |
eedcabfcc1fea8efe5225f0701eb66f1aa807abd | move actions | client/middleware/pouchDb.js | client/middleware/pouchDb.js | import PouchDB from 'pouchdb'
import PouchSync from 'pouch-websocket-sync'
import * as types from './actions';
import PouchMiddleware from 'pouch-redux-middleware'
const syncEvents = ['change', 'paused', 'active', 'denied', 'complete', 'error'];
const clientEvents = ['connect', 'disconnect', 'reconnect'];
export defa... | JavaScript | 0.000087 | @@ -93,16 +93,27 @@
from '.
+./constants
/actions
@@ -115,16 +115,17 @@
tions';%0A
+%0A
import P
|
ba3a2756dda299f470431d59446af3be65e1271b | add helmet for the title | src/containers/App.js | src/containers/App.js | /*
* Entry-point into the app on the client side
*
*/
import React from 'react'
import { connect } from 'react-redux'
import styled from 'styled-components'
import ChatContainer from './chatContainer'
import LoginForm from '../components/login'
import Popup from '../components/popup'
import SignInPopup from '../co... | JavaScript | 0.000114 | @@ -153,16 +153,50 @@
ponents'
+%0Aimport Helmet from 'react-helmet'
%0A%0Aimport
@@ -705,16 +705,60 @@
tions'%0A%0A
+import %7B viewerName %7D from '../viewerInfo'%0A%0A
const Ap
@@ -2154,16 +2154,118 @@
tainer%3E%0A
+ %3CHelmet%0A titleTemplate=%7B%60%25s - $%7BviewerName%7D%60%7D%0A defaultTi... |
691a9f7a1a23b80a8c9076b6e4ef3e93fc070b01 | Allow base Button component to take className prop | client/src/js/base/Button.js | client/src/js/base/Button.js | import React from "react";
import PropTypes from "prop-types";
import CX from "classnames";
import { Tooltip, OverlayTrigger } from "react-bootstrap";
import { Icon } from "./Icon";
import { bsStyles } from "./utils";
/**
* A extension of the <Button /> component from react-bootstrap. Adds the features:
* - blur on... | JavaScript | 0 | @@ -499,32 +499,69 @@
PropTypes.bool,%0A
+ className: PropTypes.string,%0A
disabled
@@ -1378,16 +1378,38 @@
Style%7D%60,
+ this.props.className,
%7B%0A
|
fd9dbd580aeb3b8ec222ef075e357d52ce28b2cc | prepend `REACT_APP_` to environment variables | src/core/constants.js | src/core/constants.js | //=========================================================
// CONSTANTS
//---------------------------------------------------------
export const APP_NAME = 'soundcloud-redux';
//=====================================
// API
//-------------------------------------
export const API_BASE_URL = 'https://api.soundcloud.... | JavaScript | 0.000008 | @@ -467,16 +467,26 @@
ess.env.
+REACT_APP_
SOUNDCLO
|
ea18c21bf8b5e5ceda274445664543900c929231 | fix dns-cache.js | src/core/dns-cache.js | src/core/dns-cache.js | import dns from 'dns';
import net from 'net';
export const DNS_DEFAULT_EXPIRE = 3600000;
export class DNSCache {
_pool = {};
_expire = DNS_DEFAULT_EXPIRE;
constructor({expire} = {}) {
if (expire !== undefined) {
this._expire = expire;
}
}
_now() {
return (new Date()).getTime();
}
... | JavaScript | 0.000004 | @@ -111,16 +111,23 @@
he %7B%0A%0A
+static
_pool =
@@ -130,16 +130,16 @@
l = %7B%7D;%0A
-
%0A _expi
@@ -320,16 +320,22 @@
%0A %7D%0A%0A
+async
_lookup(
@@ -676,20 +676,24 @@
;%0A
-this
+DNSCache
._pool%5Bh
@@ -855,20 +855,24 @@
(typeof
-this
+DNSCache
._pool%5Bh
@@ -1023,20 +1023,24 @@
pire%5... |
29b4bf6a814360d9ac02558d9a6cd2a5b66a4315 | check if the binding value is truthy before attempting to access nested properties closes #1192 | src/core/generator.js | src/core/generator.js | import Config from '../config';
import {
getScope,
getDataAttribute,
isObject,
toArray,
find,
getPath,
hasPath,
isNullOrUndefined,
isCallable,
deepParseInt,
} from './utils';
/**
* Generates the options required to construct a field.
*/
export default class Generator {
static generate (el, bind... | JavaScript | 0 | @@ -1583,16 +1583,33 @@
if (
+binding.value &&
~%5B'strin
|
a32606222d1f62191c43fcab68ed9c04efbd74fb | Fix loading stopwords | src/core/stopwords.js | src/core/stopwords.js | import fs from 'fs';
import logger from './logger';
const stopwords = fs.readFileSync('./lib/stopwords').toString().split(/\r\n?|\n/);
logger.debug('Loaded stopwords');
export default stopwords;
| JavaScript | 0.000003 | @@ -84,16 +84,20 @@
Sync('./
+src/
lib/stop
|
0d3dd56a8639da43faa7f689ca502952ab630014 | Extract DEFAULT_LANGUAGE | embark-ui/src/components/TextEditor.js | embark-ui/src/components/TextEditor.js | import React from 'react';
import MonacoEditor from 'react-monaco-editor';
import PropTypes from 'prop-types';
const supportedLanguages = ['css', 'sol', 'html', 'json'];
class TextEditor extends React.Component {
language() {
const extension = this.props.file.name.split('.').pop();
return supportedLanguages... | JavaScript | 0.999999 | @@ -111,34 +111,35 @@
%0A%0Aconst
-supportedLanguages
+SUPPORTED_LANGUAGES
= %5B'css
@@ -164,16 +164,55 @@
'json'%5D;
+%0Aconst DEFAULT_LANGUAGE = 'javascript';
%0A%0Aclass
@@ -339,45 +339,47 @@
urn
-supportedLanguages%5BsupportedLanguages
+SUPPORTED_LANGUAGES%5BSUPPORTED_LANGUAGES
.ind
@@ -398,28 +398,32 @@
... |
47865ceeac991a3e91b62abdbb4b00daff58a7ee | Enable multi-level domains to be recognized | etherpad/src/etherpad/pro/pro_utils.js | etherpad/src/etherpad/pro/pro_utils.js | /**
* Copyright 2009 Google Inc.
*
* 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 agree... | JavaScript | 0.000001 | @@ -1349,150 +1349,311 @@
var
-parts = request.domain.split('.');%0A parts.reverse();%0A if (parts%5B0%5D == %22.%22) %7B%0A parts.shift();%0A %7D%0A return %5Bparts%5B1%5D, parts%5B0%5D%5D.join('.');
+SUPERDOMAINS = get_superdomains();%0A var parts = request.domain.split('.');%0A /* Loop through the domain ... |
59b941b445b43152b374b3251334eba652c546aa | fix frontend format names of osm_xml and osm_pbf | ui/app/components/utils.js | ui/app/components/utils.js | import React from 'react';
import { HelpBlock, FormControl, FormGroup, ControlLabel, Checkbox } from 'react-bootstrap';
import { Field } from 'redux-form'
import Select from 'react-select';
import styles from '../styles/utilsStyles.css'
import yaml from 'js-yaml';
export const AVAILABLE_EXPORT_FORMATS = {
shp: 'ESRI... | JavaScript | 0.00028 | @@ -414,16 +414,20 @@
KMZ',%0A
+osm_
xml: 'OS
@@ -437,16 +437,20 @@
XML',%0A
+osm_
pbf: 'OS
|
23678d71e20fa48f68dcff56225a32360794abf7 | Improve countdown sound logic | ui/tournament/src/sound.js | ui/tournament/src/sound.js | var countDownTimeout;
function doCountDown(seconds) {
return function() {
$.sound['countDown' + seconds]();
if (seconds > 0) countDownTimeout = setTimeout(
doCountDown(seconds - 1),
1000);
};
}
module.exports = {
end: function(data) {
if (!data.me) return;
if (!data.isRecentlyFinishe... | JavaScript | 0 | @@ -37,23 +37,26 @@
untDown(
-seconds
+targetTime
) %7B%0A re
@@ -72,16 +72,221 @@
tion
-() %7B%0A
+ curCounter() %7B%0A var timeToStart = targetTime - (new Date().getTime() / 1000);%0A%0A // always play the 0 sound before completing.%0A var bestTick = Math.max(0, Math.round(timeToStart));%0A if (bes... |
08b1aeb07dfcdd67a1a320c2b33841e71e4b1c4e | revert compression per process | packages/process/index.js | packages/process/index.js | // child process to run given lambda server
const path = require("path"),
http = require("http"),
url = require("url"),
//handlers = require("./handlers"),
Youch = require("youch"),
YouchTerminal = require("youch-terminal"),
express = require("express");
const FETCH = require("node-fetch");
const debug = re... | JavaScript | 0.000001 | @@ -372,24 +372,26 @@
/globals%22);%0A
+//
const compre
@@ -3358,24 +3358,26 @@
sponses%0A
+//
app.use(comp
|
ae3dd65478f5331af46449366eea9873eb82c87a | Use iterative way to solve inorder traversal. | src/tree/binary-tree-inorder-traversal.js | src/tree/binary-tree-inorder-traversal.js | /**
* Given a binary tree, return the inorder traversal of its nodes' values.
*
* For example:
* Given binary tree [1,null,2,3],
* 1
* \
* 2
* /
* 3
* return [1,3,2].
*
* Note: Recursive solution is trivial, could you do it iteratively?
*/
const inorderTraversal = root => {
const res... | JavaScript | 0 | @@ -317,24 +317,26 @@
res
+ult
= %5B%5D;%0A
-%0A
const
help
@@ -335,31 +335,76 @@
nst
-helper
+stack = %5B%5D;%0A let current
=
-(
root
-, res) =%3E
+;%0A%0A while (stack.length %7C%7C current)
%7B%0A
@@ -414,12 +414,14 @@
if (
-!roo
+curren
t) %7B
@@ -431,67 +431,125 @@
-return;%0A %7D%0... |
2db13c349e3e2b6c4bcff01cd7922c6bdce8fb31 | Update to Promises/A+ compatible RSVP | packages/rsvp/lib/main.js | packages/rsvp/lib/main.js | define("rsvp",
[],
function() {
"use strict";
var browserGlobal = (typeof window !== 'undefined') ? window : {};
var MutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
var RSVP, async;
if (typeof process !== 'undefined' &&
{}.toString.call(process)... | JavaScript | 0 | @@ -4082,20 +4082,95 @@
var
-value, error
+hasCallback = typeof callback === 'function',%0A value, error, succeeded, failed
;%0A%0A
@@ -4174,25 +4174,28 @@
%0A%0A if (
-c
+hasC
allback) %7B%0A
@@ -4261,20 +4261,73 @@
-%7D catch(e) %7B
+ succeeded = true;%0A %7D catch(e) %7B%0A ... |
b8bf76e65d255766d2f68990a93da575a7da2921 | fix days of buffering logic | src/common/res/features/days-of-buffering/main.js | src/common/res/features/days-of-buffering/main.js | // DoB means Days of Buffering
function ynabEnhancedDoB() {
var YNABheader = document.getElementsByClassName("budget-header-flexbox")[0];
var elementForAoM = document.getElementsByClassName("budget-header-days")[0];
var elementForDoB = elementForAoM.cloneNode(true);
var DoB = ynabEnhancedDoBCalculate(... | JavaScript | 0.000003 | @@ -2876,24 +2876,103 @@
DoBInit() %7B%0A
+ var elementForAoM = document.getElementsByClassName(%22budget-header-days%22);%0A
var elem
@@ -3045,16 +3045,45 @@
if (
+elementForAoM.length == 1 &&
elementF
|
22624ccceb68356b005a8c37a14e367172dff85b | add story for small TrustButton | src/users/components/TrustButton.story.js | src/users/components/TrustButton.story.js | import { createDatastore, statusMocks, storybookDefaults as defaults } from '>/helpers'
import { storiesOf } from '@storybook/vue'
import { action } from '@storybook/addon-actions'
const datastore = createDatastore({
users: { getters: { get: () => id => id } },
})
import TrustButton from './TrustButton'
let groupI... | JavaScript | 0 | @@ -4039,28 +4039,389 @@
store: datastore,%0A %7D))%0A
+ .add('small - My Trust Button', () =%3E defaults(%7B%0A render: h =%3E h(TrustButton, %7B%0A props: %7B%0A user: %7B%0A ...baseUser,%0A isCurrentUser: true,%0A %7D,%0A group: groupFactory(),%0A membersh... |
5540d60534026a4a22f9fd23d1a809c9953ade22 | remove foreign key constraints from tests. They serve no purpose there and break poor old MySql. fixes #20 | tests/setup/IntegrationTestSession.js | tests/setup/IntegrationTestSession.js | 'use strict';
const _ = require('lodash')
, Knex = require('knex')
, models = require('./models');
class IntegrationTestSession {
constructor(config) {
const knex = Knex(config.knex);
this.knex = knex;
this.models = _.mapValues(models, (modelClass) => {
return modelClass.bindKnex(knex);
... | JavaScript | 0.000004 | @@ -416,88 +416,21 @@
ts('
-Movie').then(() =%3E %7B%0A return knex.schema.dropTableIfExists('Person');%0A %7D
+Person_Movie'
).th
@@ -558,21 +558,22 @@
Exists('
-Movie
+Person
');%0A
@@ -628,31 +628,24 @@
leIfExists('
-Person_
Movie');%0A
@@ -1197,76 +1197,8 @@
Id')
-%0A .references('id'... |
c2da525f3d9f1dcfae560cb091f8c43d193ae0a8 | add missing dollar | src/gwt/acesupport/snippets/snippets/r.js | src/gwt/acesupport/snippets/snippets/r.js | /*
* r.js
*
* Copyright (C) 2009-15 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This progra... | JavaScript | 0.999996 | @@ -2193,16 +2193,17 @@
%22
+$
%7B0%7D%22,%0A
|
05ee128a5dd46f78196875fa85e89a6f4f265791 | Add a comment describing what's going on here | src/sagas/api.js | src/sagas/api.js | import 'isomorphic-fetch'
import { call, put, select, take } from 'redux-saga/effects'
import { AUTHENTICATION } from '../constants/action_types'
import {
accessTokenSelector,
shouldUseAccessTokenSelector,
shouldUseRefreshTokenSelector,
} from './selectors'
import { refreshAuthenticationToken } from '../actions... | JavaScript | 0 | @@ -660,16 +660,118 @@
oken())%0A
+ // Wait for the refresh to resolve one way or another before firing%0A // fetchCredentials again%0A
yiel
|
cff605d2e88915f50e4f7764506bb56a6c06174e | Set default movement to ant | src/selectors.js | src/selectors.js | import { createSelector } from 'reselect';
import { generateId } from './utils';
const getTiles = (state) => state.tiles;
const getTile = (state, props) => state.tiles[props.id];
const getTurn = (state) => state.turn;
const getMoveCount = (state) => state.moveCount;
const getDraggedTileId = (state) => state.draggedTil... | JavaScript | 0.000001 | @@ -2415,61 +2415,273 @@
%7D
-%0A // Tile movement rules go here%0A return false;
+ else if (draggedTile.type === 'ant') %7B%0A return true;%0A %7D else if (draggedTile.type === 'grasshopper') %7B%0A return true; // Tile movement rules go here%0A %7D else if (draggedTile.type === 'spider') %7B... |
1b51821c9a110e7cb406d5f595027aad54221967 | Simplify check | src/javascript/static/pages/regulation.js | src/javascript/static/pages/regulation.js | const getElementById = require('../../_common/common_functions').getElementById;
const urlFor = require('../../_common/url').urlFor;
const Client = require('../../app/base/client');
const BinarySocket = require('../../app/base/socket');
const Regulation = (() => {
const onLoad = () => {
$... | JavaScript | 0.000002 | @@ -1025,16 +1025,17 @@
if (
+!
$accordi
@@ -1070,14 +1070,8 @@
ve')
- === 0
) %7B%0A
|
fb21de8035f6abe9c64f1d79cdc85aeefc9ad471 | remove todo in validate-phone.js | src/js/controller/login/validate-phone.js | src/js/controller/login/validate-phone.js | 'use strict';
var ValidatePhoneCtrl = function($scope, $location, $routeParams, mailConfig, auth, admin) {
!$routeParams.dev && !auth.isInitialized() && $location.path('/'); // init app
// TODO: move to Account service create function
$scope.validateUser = function() {
if ($scope.form.$invalid) {... | JavaScript | 0.000001 | @@ -189,62 +189,8 @@
pp%0A%0A
- // TODO: move to Account service create function%0A%0A
@@ -1956,8 +1956,9 @@
oneCtrl;
+%0A
|
c1c74391ffe051bb92d1eb84805eb469962f3441 | Fix name placeholder. | src/js/conversion/generate-shapescript.js | src/js/conversion/generate-shapescript.js | const scaling = require('./scaling');
const MIMETYPE_SVG = 'image/svg+xml';
const parseSvg = function (source) {
return new DOMParser().parseFromString(source, 'application/xml');
};
const popToken = function (context) {
if (context.tokens.length > 0) {
let token = context.tokens[0];
context.... | JavaScript | 0 | @@ -4982,153 +4982,82 @@
= %60%0A
-%09shape namecom
+ %09if(hasproperty(%22isin
par
-tm
ent
- %7B%0A%09%09h_align = %22center%22;%0A%09%09editablefield = %22name%22;%0A%09%09println(%22#name#%22);%0A%09%09if(hasproperty(%22packagename%22,%22Applications%22))%7B%0A%09%09
+%22,%22true%22)) %7B%0A %09%09println(%... |
512b4416de77b76c306f26b44b70ef86aa457057 | rename page properties | client/Dashboard/Dashboard.routes.js | client/Dashboard/Dashboard.routes.js | /**
* Dashboard routes
*/
(function () {
'use strict';
angular.module('DashboardModule').config([
'$routeProvider',
function ($routeProvider) {
$routeProvider.when('/dashboard', {
templateUrl: 'client/Dashboard/Partials/dashboard.html',
controller: ... | JavaScript | 0.000001 | @@ -576,15 +576,15 @@
h
-asH
elp:
+
@@ -614,12 +614,9 @@
-hasC
+c
onfi
|
bc77554f8d298b28dff47d25cd553f20c28a02f1 | Split LessonsData into Lessons and LessonsData components | client/desktop/app/components/app.js | client/desktop/app/components/app.js | import React from 'react'
import Login from './login'
import Signup from './signup'
import Classes from './teacher/classes/Classes'
import Lessons from './teacher/classes/lessons/lessonData'
import Students from './teacher/classes/students/studentData'
class App extends React.Component {
constructor(props) {
sup... | JavaScript | 0 | @@ -141,24 +141,84 @@
essons from
+'./teacher/classes/lessons/Lessons'%0Aimport LessonsData from
'./teacher/c
@@ -244,16 +244,16 @@
onData'%0A
-
import S
@@ -673,16 +673,17 @@
eturn (%0A
+%0A
%3Cd
@@ -713,16 +713,32 @@
ll%3C/h1%3E%0A
+ %3CNav /%3E%0A
@@ -916,19 +916,943 @@
ses%0A %7D%0... |
e100a004c2e2305649fd694a453a35d39ac3f096 | Fix indentation | src/nodes/local-node-candy-line-go-live/device.js | src/nodes/local-node-candy-line-go-live/device.js | /**
* @license
* Copyright (c) 2021 CANDY LINE INC.
*
* 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 applica... | JavaScript | 0.017244 | @@ -1206,16 +1206,18 @@
nt'%0A
+
%5D) %7B%0A
|
fb565e10d7b3e7ad4062b29863eedd731999c522 | clean element | src/test/util.js | src/test/util.js | export function createElement(html) {
const div = document.createElement('div')
div.innerHTML = html
return div
}
export function click(el) {
const ev = document.createEvent('MouseEvents')
ev.initMouseEvent( /* deprecated but works */
'click',
true, true,
document.defaultView,
0, 0, 0, 0, 0,... | JavaScript | 0.000002 | @@ -1,24 +1,58 @@
+import %7B clean %7D from 'dom-clean'%0A
export function createEl
@@ -132,16 +132,28 @@
= html%0A
+ clean(div)
%0A retur
@@ -157,16 +157,27 @@
turn div
+.firstChild
%0A%7D%0A%0Aexpo
|
2543042b541c325bd03b4485ef88fba1b29f5353 | Usa o mesmo callback para qualquer erro | src/main/javascript/editor-de-servicos.js | src/main/javascript/editor-de-servicos.js | 'use strict';
var modelos = require('modelos');
var importarXml = require('xml/importar-v3');
var exportarXml = require('xml/exportar');
var salvarXml = require('xml/salvar');
var slugify = require('slugify');
var carregarServico = require('carregar-servico');
module.exports = {
controller: function () {
this.c... | JavaScript | 0 | @@ -501,16 +501,17 @@
if
+
(!this.d
@@ -611,16 +611,138 @@
%7D%0A%0A
+ var erro = _.bind(function () %7B%0A this.cabecalho.tentarNovamente(_.bind(this.salvar, this));%0A %7D, this);%0A%0A
re
@@ -868,16 +868,22 @@
ortarXml
+, erro
)%0A
@@ -902,16 +902,22 @@
.servico
+, err... |
2b8d17ce309fee53daa873bea1b3d0af4dd1873e | Add some comments | src/util-path.js | src/util-path.js | /**
* util-path.js - The utilities for operating path such as id, uri
*/
var DIRNAME_RE = /[^?#]*\//
var DOT_RE = /\/\.\//g
var DOUBLE_DOT_RE = /\/[^/]+\/\.\.\//
// Extract the directory portion of a path
// dirname("a/b/c.js?t=123#xx/zz") ==> "a/b/"
// ref: http://jsperf.com/regex-vs-split/2
function dirname(path... | JavaScript | 0 | @@ -802,16 +802,27 @@
ve slice
+ and RegExp
%0Afunctio
|
a3304cc25e43583d7784413d5a245376d0e6710f | use the dot product directly since the axes are normalized | src/utils/obb.js | src/utils/obb.js | import Vector from '../vector';
export default class OBB {
constructor (x, y, a, w, h) {
this.dimension = [w, h];
this.angle = a;
this.centroid = [x, y];
this.quad = [];
this.axes = [];
this.update();
}
move (px, py) {
this.centroid = [px, py];
... | JavaScript | 0 | @@ -1630,21 +1630,63 @@
ach
-separated axi
+axis, project obb quad to it and find min and max value
s%0A
@@ -1738,32 +1738,12 @@
let
-proj = Vector.mult(axis,
+d =
Vec
@@ -1768,55 +1768,9 @@
xis)
-);%0A let d = Vector.dot(proj, axis);%0A
+;
%0A
|
bbc3f89013a22e9c764c4334d7b9e5e7048b134f | Add rule name to invalid GraphQL schema errors | src/validator.js | src/validator.js | import { parse } from 'graphql';
import { validate } from 'graphql/validation';
import { buildASTSchema } from 'graphql/utilities/buildASTSchema';
import { GraphQLError } from 'graphql/error';
import { validateSDL } from 'graphql/validation/validate';
import { validateSchema } from 'graphql/type/validate';
export func... | JavaScript | 0.000107 | @@ -649,24 +649,68 @@
hQLError) %7B%0A
+ e.ruleName = 'graphql-syntax-error';%0A%0A
return
@@ -715,16 +715,16 @@
rn %5Be%5D;%0A
-
%7D el
@@ -840,32 +840,39 @@
turn sortErrors(
+%0A
schemaErrors);%0A
@@ -859,32 +859,135 @@
schemaErrors
+.map(error =%3E %7B%0A error.ruleName = 'inv... |
a486f2ab87169a6de2adb50ac1f2ae50bad2d55a | call instead of apply here | src/responsive-carousel.js | src/responsive-carousel.js | /*
* responsive-carousel
* https://github.com/filamentgroup/responsive-carousel
*
* Copyright (c) 2012 Filament Group, Inc.
* Licensed under the MIT, GPL licenses.
*/
(function($) {
var pluginName = "carousel",
initSelector = "[data-"+ pluginName +"]",
getMarginLeft = function( $elem ){
return $elem[ 0... | JavaScript | 0 | @@ -1137,18 +1137,16 @@
%22goTo%22,
- %5B
%22-1%22, c
@@ -1153,17 +1153,16 @@
urrMarg
-%5D
);%0A%09%09%09%7D
@@ -1238,10 +1238,8 @@
To%22,
- %5B
%221%22
@@ -1252,11 +1252,8 @@
Marg
- %5D
);%0A
@@ -3245,13 +3245,12 @@
g %5D.
-apply
+call
( th
|
5951d5810c52c16f24afaeec2e502905cb331de3 | Add keyed index | src/routes/standups/new.js | src/routes/standups/new.js | import React, { Component } from 'react';
import TeamMemberInput from './components/team-member-input';
class StandupsNew extends Component {
componentDidMount() {
this.props.actions.startStandup();
}
render() {
return (
<div className="container">
<h2>Standups</h2>
<table>
... | JavaScript | 0.000001 | @@ -391,16 +391,23 @@
ap((name
+, index
) =%3E %7B%0A
@@ -443,16 +443,28 @@
berInput
+ key=%7Bindex%7D
%0A
|
f76300ee4c666b1ccf2da1949d9e586dfa228e71 | Fix for truncated text 'see more' click triggering text click events. | VotingApplication/VotingApplication.Web/Scripts/Directives/TruncatedText.js | VotingApplication/VotingApplication.Web/Scripts/Directives/TruncatedText.js | (function () {
'use strict';
angular
.module('GVA.Common')
.directive('truncatedText', truncatedText);
truncatedText.$inject = ['$parse'];
function truncatedText() {
function truncateText(text, limit) {
var words = text.split(' ');
var truncatedtext... | JavaScript | 0 | @@ -1715,16 +1715,42 @@
ed=false
+;$event.stopPropagation();
%22%3EShow M
|
973d0d3c0b92ecf34e7136759bd1e2a746a83e5c | Correct API URL | src/services/api-client.js | src/services/api-client.js | import request from 'superagent'
const apiBaseUrl = 'https://wiki-langlinks.now.sh'
async function fetchLangLinks ({ searchTerm, sourceLang, targetLangs }) {
const res = await request
.get(`${apiBaseUrl}/langlinks`)
.query({
search: searchTerm,
source: sourceLang,
target: targetLangs.join(... | JavaScript | 0.000052 | @@ -69,16 +69,20 @@
anglinks
+-api
.now.sh'
|
6708feffdbe055e8b89737ea51f5c23376899e91 | update Chrome to v34 | protractor-travis-conf.js | protractor-travis-conf.js | var config = require('./protractor-shared-conf').config;
config.sauceUser = process.env.SAUCE_USERNAME;
config.sauceKey = process.env.SAUCE_ACCESS_KEY;
config.multiCapabilities = [{
'browserName': 'chrome',
'name': 'Angular E2E',
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
'build': process.env.TRAVIS_... | JavaScript | 0 | @@ -325,16 +325,35 @@
D_NUMBER
+,%0A 'version': '34'
%0A%7D, %7B%0A
|
ab8d31852e9e159af23de895b345c9e583587af6 | Update sketch.js | p5/10print/alex/sketch.js | p5/10print/alex/sketch.js | // Alex Alessi © 2016 MIT License
// 10 print porting to P5js | San Marino, SM | 4.2016
// Educational purpose, made for DSII2016 lab @UniRSM
var w = 16;
var h = 16;
var index = 0;
function setup() {
pixelDensity(displayDensity());
createCanvas(windowWidth, windowHeight);
background(255);
noStroke();
url = getUR... | JavaScript | 0.000001 | @@ -156,14 +156,17 @@
var
-h = 16
+value = 0
;%0Ava
@@ -233,16 +233,18 @@
ity());%0A
+
createCa
@@ -248,35 +248,37 @@
eCanvas(
-windowWidth, window
+displayWidth, display
Height);
@@ -278,16 +278,18 @@
eight);%0A
+
backgrou
@@ -297,16 +297,18 @@
d(255);%0A
+
noStroke
@@ -311,17 +311,17 @@
roke();%0A
-... |
7a9ae00fd071ebc60fc93ebeeb73472198bb0e7f | rename js function | static/js/app.js | static/js/app.js | // custon
if (!Array.prototype.last){
Array.prototype.last = function(){
return this[this.length - 1];
};
};
function chart_fill(canvas_id, chart_data) {
var canvas = document.getElementById(canvas_id).getContext('2d');
new Chart(canvas).Line(chart_data, {
//Boolean - Whether to show... | JavaScript | 0.000239 | @@ -529,19 +529,26 @@
backforT
-ank
+emperature
(tank) %7B
@@ -3678,16 +3678,17 @@
a)%0A%0A%7D%0A%0A%0A
+%0A
$.getJSO
@@ -3734,19 +3734,26 @@
backforT
-ank
+emperature
('hot'))
@@ -3808,19 +3808,26 @@
backforT
-ank
+emperature
('mash')
@@ -3883,19 +3883,26 @@
backforT
-ank
+emperature
('boil')
|
1b820c27a822dcf41681d1e83ca4b1ea98963fe5 | fix weird error where last command gets lost | public/convert/convert.js | public/convert/convert.js | // building is problematic because acorn.es
// import buble from './buble.deps.js'
// import rollup from './rollup.browser.js'
var modules = [
'draw', 'greeter', 'store', 'util'
].reduce(function(memo, item){
memo[item] =
fetch('es_modules/' + item + '.js')
.then(function(r){ return r.text()})
return... | JavaScript | 0.000005 | @@ -442,16 +442,23 @@
t(source
+ + '%5Cn'
)%0A%0A ret
|
bd503bf31adc2766d3b0ad89a31abd4ea2ac59d4 | Fix missing semicolon in discord.net generator | src/snippets/discordnet.js | src/snippets/discordnet.js | const fields = {
title: (title) => `\t.WithTitle(${JSON.stringify(title)})`,
description: (desc) => `\t.WithDescription(${JSON.stringify(desc)})`,
url: (url) => `\t.WithUrl(${JSON.stringify(url)})`,
color: (color) => `\t.WithColor(new Color(0x${color.toString(16).toUpperCase()}))`,
... | JavaScript | 0.999992 | @@ -1062,17 +1062,16 @@
';%5Cn%5Ct%7D)
-;
';%0A%0A
|
f7517107b23760cfea5f7bd47a2128b3bf309131 | Load background faster first time | static/script.js | static/script.js | var default_opacity = 0.2;
var animate_time = 1000;
var num_images = 152;
function fix_resolutions() {
var img = $('#imgloader').get(0);
var img_ratio = img.naturalWidth / img.naturalHeight;
var wnd_ratio = window.innerWidth / window.innerHeight;
$("#back").css("background-size", img_ratio > wnd_ratio ? "auto ... | JavaScript | 0 | @@ -38,16 +38,46 @@
e_time =
+ 0;%0Avar default_animate_time =
1000;%0Av
@@ -530,16 +530,84 @@
ion() %7B%0A
+ if(animate_time == 0) %7B animate_time = default_animate_time; %7D%0A%0A
back
|
d2a5f7b3881272c75b4674b4834ebe88ca604b94 | add debug info on wechat config on editu profile | public/js/user_profile.js | public/js/user_profile.js | var angularjs = angular.module('userProfileModule', ['ngCookies', 'ngVideo']);
angularjs.controller('UserProfileController', ['$rootScope', '$scope',
'$http', '$stateParams', '$state', '$location',
'$sce', '$cookies', '$httpParamSerializer', 'video', '$route',
function($rootScope, $scope, $http, $stateParams,
$sta... | JavaScript | 0 | @@ -4190,11 +4190,12 @@
ug:
-tru
+fals
e,%0A%09
@@ -4359,16 +4359,154 @@
%09%09%09%09%7D);%0A
+%09%09%09%09%09wx.ready(function() %7B%0A%09%09%09%09%09%09console.log('wx ready');%0A%0A%09%09%09%09%09%7D);%0A%09%09%09%09%09wx.error(function(res) %7B%0A%09%09%09%09%09%09console.log('wx error');%0A%09%09%09%09%09%7D);... |
ca6cfb1608147e11c7fc2f4c12813359b7d55215 | Handle "not connected" errors | stream-server.js | stream-server.js |
if( process.argv.length < 3 ) {
console.log(
'Usage: \n' +
'node stream-server.js <secret> [<stream-port> <websocket-port>]'
);
process.exit();
}
var STREAM_SECRET = process.argv[2],
STREAM_PORT = process.argv[3] || 8082,
WEBSOCKET_PORT = process.argv[4] || 8084,
STREAM_MAGIC_BYTES = 'jsmp'; // Must be 4 by... | JavaScript | 0.000803 | @@ -1125,39 +1125,126 @@
%7B%0A%09%09
-this.clients%5Bi%5D.send(data, opts
+if (this.clients%5Bi%5D.readyState == 1)%0A%09%09%09this.clients%5Bi%5D.send(data, opts);%0A%09%09else%0A%09%09%09this.emit(%22error%22, %22not connected%22
);%0A%09
|
7330cb7fb4593982e1a116620baf82377c33e8f9 | remove space | substitutions.js | substitutions.js | function xkcdSubstitutions(){
var words = [
{find: new RegExp('\\bwitnesses\\b', 'gi'), replace: 'these dudes I know '},
{find: new RegExp('\\ballegedly\\b', 'gi'), replace: 'kinda probably '},
{find: new RegExp('\\bnew study\\b', 'gi'), replace: 'tumblr post '},
{find: new RegExp('\\brebuild\\b', 'gi'), repla... | JavaScript | 0.998712 | @@ -112,17 +112,16 @@
s I know
-
'%7D,%0A%09%09%7Bf
@@ -186,17 +186,16 @@
probably
-
'%7D,%0A%09%09%7Bf
@@ -257,17 +257,16 @@
blr post
-
'%7D,%0A%09%09%7Bf
@@ -321,17 +321,16 @@
'avenge
-
'%7D,%0A%09%09%7Bf
@@ -384,17 +384,16 @@
'spaaace
-
'%7D,%0A%09%09%7Bf
@@ -458,17 +458,16 @@
tual boy
-
'%7D,%0A%... |
acdf319bcf4a45f675e4cb3f3ab37e7ec6aa9cbc | Fix Zoom demo | src/main/java/wicket/contrib/gmap3/wicket-gmap.js | src/main/java/wicket/contrib/gmap3/wicket-gmap.js | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | JavaScript | 0 | @@ -4732,28 +4732,58 @@
%7B%0A%09
-%09this.map.zoomOut();
+ %0A%09 this.map.setZoom(this.map.getZoom()-1)%0A%09%09
%0A%09%7D%0A
@@ -4826,17 +4826,37 @@
map.
-zoomIn();
+setZoom(this.map.getZoom()+1)
%0A%09%7D%0A
|
f8448dd238c769255c93713290882073e3dd6e9d | Update api_1_call_1.js | src/api_1_call_1.js | src/api_1_call_1.js | function getResult(callback, json) {
console.log("json", json);
var input = json.input;
console.log("input", input);
if(input.city){
//Put your action here
var city = input.city;
var country = 'FR';
require('request')('https://maps.googleapis.com/maps/api/geocode/json?k... | JavaScript | 0.000003 | @@ -26,24 +26,75 @@
ck, json) %7B%0A
+ %0A console.log(%22Call made : api_1_call_1%22);%0A
console
|
35b1e07925ba951065a116da3655b043c31147a5 | Fix string contatenation. | src/app-download.js | src/app-download.js | import Promise from "bluebird";
import { getLocalPackage, getRemotePackage } from "./app-package";
import appInstall from "./app-install";
import log from "./log";
/**
* Downloads the app from the remote repository.
*
* @param id: The unique ID of the application.
* @param localFolder: The path to whe... | JavaScript | 0.998215 | @@ -1241,17 +1241,17 @@
og.info(
-%22
+%60
...downl
@@ -1266,17 +1266,17 @@
%7B id %7D'.
-%22
+%60
); %7D%0A
|
d7c8b4478b9d6945889f14a6301c695a08ed5ad0 | Make InteractionManager.runAfterInteractions() return a Promise | Libraries/Interaction/InteractionManager.js | Libraries/Interaction/InteractionManager.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | JavaScript | 0.999996 | @@ -2393,16 +2393,17 @@
llback:
+?
Function
@@ -2407,47 +2407,98 @@
ion)
- %7B%0A invariant(%0A typeo
+: Promise %7B%0A return new Promise(resolve =%3E %7B%0A scheduleUpdate();%0A i
f
+(
callback
===
@@ -2497,99 +2497,53 @@
back
- === 'function',%0A 'Must specify a function to schedu... |
2d675941ae6e682bd6f00d9248cd8b226fcf4942 | Update library | modules/lib/locale.js | modules/lib/locale.js | /**
* @fileOverview Locale module for restartless addons
* @author YUKI "Piro" Hiroshi
* @version 6
*
* @license
* The MIT License, Copyright (c) 2010-2013 YUKI "Piro" Hiroshi.
* https://github.com/piroor/restartless/blob/master/license.txt
* @url http://github.com/piroor/restartless
*/
const E... | JavaScript | 0.000001 | @@ -109,9 +109,9 @@
-6
+7
%0A *%0A
@@ -1707,33 +1707,115 @@
%09Cu.reportError(
-e
+new Error('locale.js: failed to call GetStringFromName() with: ' + aKey + '%5Cn' + e)
);%0A%09%09%7D%0A%09%09return
@@ -1951,24 +1951,24 @@
ength);%0A%09%09%7D%0A
-
%09%09catch(e) %7B
@@ -1960,32 +1960,178 @@
%09%7D%0A%09%09... |
7cfcd60015505f49dfb1c234b083793dd183b2d7 | fix args.help() output if an option has no short variant | modules/ringo/args.js | modules/ringo/args.js | /**
* @fileoverview A parser for command line options. This parser supports
* various option formats:
*
* <pre>-a -b -c (multiple short options)
* -abc (multiple short options combined into one)
* -a value (short option with value)
* -avalue (alternative short option with value)
* --option value (long option wi... | JavaScript | 0.000732 | @@ -1739,32 +1739,194 @@
lags
- = %22 -%22 + opt.shortName;
+;%0A if (opt.shortName !== undefined && opt.shortName !== null) %7B%0A flags = %22 -%22 + opt.shortName;%0A %7D else %7B%0A flags = %22 %22;%0A %7D
%0A
|
51ec7d073f32b82814116b640b8454e6ce002891 | Fix old sidebar class name | Core/webroot/js/sidebar.js | Core/webroot/js/sidebar.js | /**
* Admin
*
* for admin pages
*/
var Admin = typeof Admin == 'undefined' ? {} : Admin;
/**
* Navigation
*
* @return void
*/
Admin.navigation = function () {
var $sidebar = $('#sidebar-menu');
var $topLevelMenus = $('#sidebar-menu > li > .hasChild');
// no item is current, fallback to current controlle... | JavaScript | 0.000322 | @@ -342,16 +342,20 @@
t = $('.
+nav-
sidebar
@@ -872,16 +872,20 @@
Until('.
+nav-
sidebar'
|
372d4f419a99147e05b14de97fc51cb3a157d9e2 | Assume browser support if iOS PWA/APP | src/browsercheck.js | src/browsercheck.js | import parser from 'ua-parser-js';
import { steamBrowser, supportedLanguages, unsupported } from './browsercheck-utils';
// Adapted from 'is-browser-supported' npm package. Separate from index.js so it'll run even if that fails.
// This is also intentionally written in es5 and not TypeScript because it should not use ... | JavaScript | 0.999999 | @@ -1849,24 +1849,132 @@
false;%0A %7D%0A%0A
+ if (navigator.standalone) %7B%0A // Assume support if we're installed as an iOS PWA.%0A return true;%0A %7D%0A%0A
var agent
|
7ef35ef03ae785bd13b505a943b3460fa952f3dd | handle all line break types | src/bundle-stats.js | src/bundle-stats.js | /*
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/... | JavaScript | 0.000007 | @@ -5314,10 +5314,20 @@
ce(/
-%5Cn
+(%5Cr%5Cn%7C%5Cn%7C%5Cr)
/g,
|
6fdffbbe636f913e333e9af4472a4f739b4cb576 | Create a copy of attribute if a link with the same name already exists | src/call_builder.js | src/call_builder.js | import {NotFoundError, NetworkError, BadRequestError} from "./errors";
import forEach from 'lodash/forEach';
let URI = require("urijs");
let URITemplate = require("urijs").URITemplate;
let axios = require("axios");
var EventSource = (typeof window === 'undefined') ? require('eventsource') : window.EventSource;
let to... | JavaScript | 0 | @@ -3908,16 +3908,178 @@
ey) =%3E %7B
+%0A // If the key with the link name already exists, create a copy%0A if (typeof json%5Bkey%5D != 'undefined') %7B%0A json%5B%60$%7Bkey%7D_attr%60%5D = n;%0A %7D%0A
json%5Bkey
@@ -4108,16 +4108,21 @@
Link(n);
+%0A
%7D);%0A
|
7248f6edcbd9dd59decab8d26b6e35ccdcc957b7 | Make layer selections throw when given invalid data | src/cc/selection.js | src/cc/selection.js | // Copyright (c) 2013 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.
'use strict';
base.require('tracing.analysis.generic_object_view');
base.require('tracing.analysis.analyze_selection');
base.require('tracing.analysi... | JavaScript | 0.000003 | @@ -2113,24 +2113,84 @@
on(layer) %7B%0A
+ if (!layer)%0A throw new Error('Layer is required');%0A
this.lay
|
141580ee93a7c10146902467117ed8f2189a38b8 | Add a ref to connectTheme HoC | src/connectTheme.js | src/connectTheme.js | import React, { Component, PropTypes } from 'react'
import invariant from 'invariant'
export default (component) => {
let WrappedComponent = component
// Handle stateless components
if (!WrappedComponent.render && !WrappedComponent.prototype.render) {
WrappedComponent = class extends Component {
rende... | JavaScript | 0 | @@ -731,16 +731,37 @@
.props%7D%0A
+ ref=%22node%22%0A
|
172232748f7e6c481938199047868044e274a5e9 | add missing return statement | src/console.real.js | src/console.real.js | ;(function (console) {
'use strict';
if (typeof console.real !== 'undefined') {
throw new Error('console.real cannot be run, as something else is occupying the `console.real` object.')
}
console.real = {};
['log', 'info', 'error', 'warn'].forEach(function (consoleFunctionName) {
console.real[consoleFunctionName] =... | JavaScript | 1 | @@ -410,16 +410,27 @@
ame%5D();%0A
+%09%09%09return;%0A
%09%09%7D%0A%0A%09%09v
|
1b11e513aa559dc823a48bb68cc8e3e5ddc23242 | Add support for ES5/ES6 module styles in role getter | src/createSanity.js | src/createSanity.js | function createSanity({roles}) {
return {
getRole(roleName) {
return roles[roleName]
}
}
}
export default createSanity
| JavaScript | 0 | @@ -71,30 +71,321 @@
-return roles%5BroleName%5D
+const fulfiller = roles%5BroleName%5D%0A if (!fulfiller) %7B%0A return null%0A %7D%0A%0A return fulfiller.module.__esModule && fulfiller.module.default%0A ? fulfiller.module.default%0A : fulfiller.module%0A %7D,%0A%0A getP... |
90591041d9e8160aa8cf4b1f941f61afcaad8df0 | Rebuild answers.js following removal of cheaper oil choice | src/data/answers.js | src/data/answers.js | // This file is automatically generated by 'scripts/buildAnswers.js. Do not make
// changes directly to this file as they will be overwritten the next time the
// script is run.
export default [
-1.6188,
-2.4326,
-0.4854,
0,
-0.5248,
-1.9632,
-4.7661,
-1.2781,
-4.2849,
-0.6129,
-0.9019,
-0.7229... | JavaScript | 0.000046 | @@ -381,21 +381,16 @@
4.4306,%0A
- 0,%0A
-0.151
|
1b8ab4ed190b182510dcff7a3640b855ec9e0efb | Fix on hover out first symbol always highlighted | bootstrap-rating.js | bootstrap-rating.js | (function ($, undefined) {
'use strict';
var OFFSET = 5;
$.fn.rating = function (options) {
this.each(function () {
var $input = $(this);
// Merge data and parameter options.
// Those provided as parameter prevail over the data ones.
var opts = $.extend({}, $input.data(), options);
... | JavaScript | 0 | @@ -1082,24 +1082,134 @@
children();%0A
+ // Empty all just in case index is NaN.%0A $rates.removeClass(opts.filled).addClass(opts.empty);%0A
// F
@@ -1375,144 +1375,8 @@
d);%0A
- // Empty the rest.%0A $rates.eq(index).nextAll('.rating-symbol')%0A .removeClass(opts.filled... |
8b699b72520534c8e114f173f5d004acf0627c0d | return the exact error status to the client. format the document. | bot/modules/jira.js | bot/modules/jira.js | "use strict";
const request = require("request-promise-native");
module.exports = exports = {
addWorklog,
getAssignedIssues,
getRecentIssues
};
// adds a new worklog under a particular issue key
function addWorklog(jiraOptions, issueKey, worklog, callback) {
let urlStub = `issue/${issueKey}/worklog`;... | JavaScript | 0 | @@ -462,16 +462,25 @@
request
+%0A
.post(op
@@ -477,32 +477,41 @@
.post(options)
+%0A
.then((response)
@@ -520,24 +520,28 @@
%3E %7B%0A
+
+
let newWorkl
@@ -565,24 +565,28 @@
d;%0A%0A
+
return newWo
@@ -594,22 +594,35 @@
klogId;%0A
+
%7D)
+%0A
.catch... |
b62262b3573bb353a99804c788ed14ec5fb85720 | remove default object in model | viewer/model.js | viewer/model.js | (function(){
'use strict';
angular.module('chaise.viewer')
.value('viewerModel', {
table: {},
rows: [{}], // rows of data in the form, not the table from ERMrest
oldRows: [{}], // Keep a copy of the initial rows data so that we can see if user has made any changes later
subm... | JavaScript | 0.000001 | @@ -119,26 +119,24 @@
rows: %5B
-%7B%7D
%5D, // rows o
@@ -320,26 +320,24 @@
ssionRows: %5B
-%7B%7D
%5D, // rows o
@@ -405,18 +405,16 @@
yData: %5B
-%7B%7D
%5D, // th
|
a8a6134d31c197fe6c0fe368bb9b5421bbab2274 | Add checks for playback mode on suite setup and teardown to prevent attempting to create / delete resource group. | test/commands/arm/powerbiembedded/arm.powerbiembedded-tests.js | test/commands/arm/powerbiembedded/arm.powerbiembedded-tests.js | //
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | JavaScript | 0 | @@ -2027,24 +2027,61 @@
rceGroups);%0A
+ if (!suite.isPlayback()) %7B%0A
suit
@@ -2176,32 +2176,34 @@
lt) %7B%0A
+
result.exitStatu
@@ -2227,24 +2227,77 @@
;%0A
+ %0A done();%0A %7D);%0A %7D else %7B
%0A d
@@ -2308,26 +2308,24 @@
);%0A ... |
edec2d5832e0140cbcd76df8ef2345b0ee8d4f53 | Add refreshDataWithFinalisedToggle constant | src/pages/dataTableUtilities/actions/constants.js | src/pages/dataTableUtilities/actions/constants.js | /* eslint-disable import/prefer-default-export */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
export const ACTIONS = {
// tableAction constants
SORT_DATA: 'sortData',
FILTER_DATA: 'filterData',
REFRESH_DATA: 'refreshData',
ADD_ITEM: 'addItem',
ADD_RECORD: 'addRecord',
HIDE_OVER_STOC... | JavaScript | 0 | @@ -447,16 +447,88 @@
alised',
+%0A REFRESH_DATA_WITH_FINALISED_TOGGLE: 'refreshDataWithFinalisedToggle',
%0A%0A // p
|
3259f1e0eaac83e47fdab6bbc5834145f84c86a9 | add refresh button to ResourceMaster | troposphere/static/js/components/admin/ResourceMaster.react.js | troposphere/static/js/components/admin/ResourceMaster.react.js | define(function (require) {
"use strict";
var React = require('react/addons'),
Router = require('react-router'),
RouterInstance = require('../../Router'),
stores = require('stores'),
ResourceRequest = require('./ResourceRequest.react'),
RouteHandler = Router.RouteHandler;
return React.create... | JavaScript | 0 | @@ -359,153 +359,492 @@
-onResourceClick: function(request)%7B%0A RouterInstance.getInstance().transitionTo(%22resource-request-detail%22, %7Brequest: request, id: request.id%7D
+componentDidMount: function()%7B%0A stores.StatusStore.getAll();%0A %7D,%0A%0A onRefresh: function()%7B%0A sto... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.