conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
constructor({mapContext, layerIndex, toggleable, label, description, bounds, mapId$, props, progress$}) {
this.mapContext = mapContext
=======
constructor({layerIndex, toggleable, label, description, bounds, mapId$, props, onInitialized, onProgress}) {
>>>>>>>
constructor({mapContext, lay... |
<<<<<<<
Categories={
edit:function(){
console.log('Categories.edit');
$('body').append('<div id="category_dialog"></div>');
$('#category_dialog').load(OC.filePath('contacts', 'ajax', 'categories/edit.php'), function(response, status, xhr){
try {
var response = jQuery.parseJSON(response);
console.log('... |
<<<<<<<
console.log('Contact.addProperty', name)
var $elem;
=======
console.log('Contact.addProperty', name);
>>>>>>>
console.log('Contact.addProperty', name)
var $elem;
<<<<<<<
if($elem) {
$elem.find('select.type[name="parameters[TYPE][]"]')
.combobox({
singleclick: true,
classes: ['pr... |
<<<<<<<
if($('#contacts h3.addressbook').length == 0) {
$('#contacts').html('<h3 class="addressbook" title="' + book.description + '" contextmenu="addressbookmenu" data-id="'
=======
if($('#contacts h3').length == 0) {
$('#contacts').html('<h3 class="addressbook" data-id="'
>>>>>>>
... |
<<<<<<<
let options = {
withCredentials: this.withCredentials,
withoutFormatSuffix: true
};
FetchRequest.get(that.getRequestUrl(`${url}.json`), null, options).then(function (response) {
return layerInfo.layerType === "TILE" ? response.json() : response.text();... |
<<<<<<<
var unitList1 = this.getUnits();
var unitList2 = other.getUnits();
if (!_.isEqual(unitList1, unitList2)) {
return false;
}
=======
// Compare at a set number (currently 12) of points to determine
// equality.
//
// `range` (and `vars... |
<<<<<<<
/**
* If true the hover mode of the Time Picker is activated.
* In hover mode no clicks are required to start selecting an hour
* and the timemode switches automatically when a time was chosen.
* When a minute is selected the chosen time is applied automatically.
*/
hoverMode: P... |
<<<<<<<
=======
createCheckbox: PropTypes.func.isRequired,
removeCheckbox: PropTypes.func.isRequired,
toggleAllRows: PropTypes.func.isRequired,
>>>>>>>
createCheckbox: PropTypes.func.isRequired,
removeCheckbox: PropTypes.func.isRequired, |
<<<<<<<
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
=======
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
>>>>>>>
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
<<<<<<<
import { ... |
<<<<<<<
import DialogContainer from '../../Dialogs/DialogContainer';
import Portal from '../../Helpers/Portal';
=======
>>>>>>>
import Portal from '../../Helpers/Portal';
<<<<<<<
it('should inerhit and pass the dialog\'s renderNode context', () => {
const dialog = renderIntoDocument(
<Dialog id="test">
... |
<<<<<<<
=======
this.focus = this.focus.bind(this);
this.getField = this.getField.bind(this);
this._setField = this._setField.bind(this);
this._handleBlur = this._handleBlur.bind(this);
this._handleFocus = this._handleFocus.bind(this);
this._handleChange = this._handleChange.bind(this);
t... |
<<<<<<<
/* eslint-disable max-len */
=======
jest.disableAutomock();
>>>>>>>
/* eslint-disable max-len */
<<<<<<<
import TextField from '../../TextFields/TextField';
=======
import ListItem from '../../Lists/ListItem';
>>>>>>>
import TextField from '../../TextFields/TextField';
import ListItem from '../../Lists... |
<<<<<<<
onClick: PropTypes.func.isRequired,
disabledInteractions: PropTypes.arrayOf(PropTypes.oneOf(['keyboard', 'touch', 'mouse'])),
};
_handleClick = (e) => {
// The switch's thumb needs to have an onClick handler to enable keyboard accessibility, however,
// this actually triggers two click even... |
<<<<<<<
this.setState({ focus: false, visible: false });
};
=======
this.setState({ isOpen: false });
}
>>>>>>>
this.setState({ visible: false });
};
<<<<<<<
let { visible } = this.state;
let matches = value ? this.state.matches : [];
=======
let { isOpen } = this.state;
let matc... |
<<<<<<<
import { mount } from 'enzyme';
import { findDOMNode } from 'react-dom';
=======
>>>>>>>
import { mount } from 'enzyme';
<<<<<<<
import CSSTransitionGroup from 'react-addons-css-transition-group';
import Portal from '../../Helpers/Portal';
=======
>>>>>>>
import Portal from '../../Helpers/Portal';
<<<<<... |
<<<<<<<
this.setState(state);
};
=======
this.setState(state, this._field.blur);
}
>>>>>>>
this.setState(state, this._field.blur);
}; |
<<<<<<<
=======
this.focus = this.focus.bind(this);
this.getField = this.getField.bind(this);
this._setField = this._setField.bind(this);
this._setDivider = this._setDivider.bind(this);
this._setMessage = this._setMessage.bind(this);
this._setContainer = this._setContainer.bind(this);
thi... |
<<<<<<<
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
=======
import React, { PureComponent, cloneElement, Children } from 'react';
import PropTypes from 'prop-types';
>>>>>>>
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
<<<<<<<
=======
impo... |
<<<<<<<
page,
/* eslint-disable no-unused-vars */
onPagination,
rowsPerPage: propRowsPerPage,
defaultPage,
defaultRowsPerPage,
/* eslint-enable no-unused-vars */
=======
>>>>>>>
/* eslint-disable no-unused-vars */
onPagination,
rowsPerPage: propRowsPerPage,... |
<<<<<<<
import Portal from '../../Helpers/Portal';
=======
import { ENTER } from '../../constants/keyCodes';
>>>>>>>
import Portal from '../../Helpers/Portal';
import { ENTER } from '../../constants/keyCodes';
<<<<<<<
it('should not render in the Portal component by default', () => {
const dialog = mount(<Dat... |
<<<<<<<
/**
* Boolean if the nested items should animate when they appear or disappear.
*/
animateNestedItems: PropTypes.bool,
/**
* Defines the number of items in the list. This is only required when all items in the
* list are not present in the DOM.
*
* @see https://www.w3... |
<<<<<<<
tabIndex: !radio || checked ? undefined : -1,
checkedRadioIcon: !radio ? undefined : this.props.checkedRadioIcon,
uncheckedRadioIcon: !radio ? undefined : this.props.uncheckedRadioIcon,
=======
tabIndex: !radio || checked || (i === 0 && this._activeIndex === -1) ? undefined : -... |
<<<<<<<
_toggleOpen = (e) => {
if (this.props.disabled) {
=======
_toggleOpen(e) {
if (this.props.disabled || this.props.readOnly) {
>>>>>>>
_toggleOpen = (e) => {
if (this.props.disabled || this.props.readOnly) {
<<<<<<<
_handleKeyDown = (e) => {
if ((e.which || e.keyCode) === ENTER) {
... |
<<<<<<<
_setRowsPerPage = (rowsPerPage) => {
const page = getField(this.props, this.state, 'page');
const newStart = (page - 1) * rowsPerPage;
=======
_setRowsPerPage(rowsPerPage) {
const page = 1;
const newStart = 0;
>>>>>>>
_setRowsPerPage = (rowsPerPage) => {
const page = 1;
const ne... |
<<<<<<<
portal,
/* eslint-disable no-unused-vars */
type: propType,
visible: propVisible,
renderNode: propRenderNode,
defaultVisible,
defaultMedia,
mobileType,
mobileMinWidth,
tabletType,
tabletMinWidth,
desktopType,
desktopMinWidth,
tr... |
<<<<<<<
=======
if (!controlledPage) {
this.state.page = page;
}
if (!controlledRowsPerPage) {
this.state.rowsPerPage = props.defaultRowsPerPage;
}
this._setControls = this._setControls.bind(this);
this._position = this._position.bind(this);
this._increment = this._increment... |
<<<<<<<
=======
jest.disableAutomock();
>>>>>>>
<<<<<<<
import { shallow } from 'enzyme';
import renderer from 'react-test-renderer';
=======
import { shallow, mount } from 'enzyme';
>>>>>>>
import renderer from 'react-test-renderer';
import { shallow, mount } from 'enzyme'; |
<<<<<<<
chartHeatMapBmapService, chartContrastService) {
=======
chartHeatMapBmapService,chartScatterMapService,chartScatterMapBmapService) {
>>>>>>>
chartHeatMapBmapService,chartScatterMapServi... |
<<<<<<<
chartLiquidFillService, chartContrastService,chartChinaMapService, chartChinaMapBmapService) {
=======
chartLiquidFillService, chartMarkLineMapService, chartHeatMapService, chartMarkLineMapBmapService,
... |
<<<<<<<
},{
name: translate('CONFIG.WIDGET.MARK_LINE_MAP'), value: 'markLineMap', class: 'cMarkLineMap',
row: translate('CONFIG.WIDGET.TIPS_DIM_NUM_1_MORE'),
column: translate('CONFIG.WIDGET.TIPS_DIM_NUM_0_MORE'),
measure: translate('CONFIG.WID... |
<<<<<<<
chartTreeMapService, chartAreaMapService, chartHeatMapCalendarService, chartHeatMapTableService, chartMarkLineMapService) {
=======
chartTreeMapService, chartAreaMapService, chartHeatMapCalendarService, chartHeatMapTableService,... |
<<<<<<<
=======
},
bower: {
install: {
options: {
targetDir: './public/lib',
layout: 'byComponent',
install: true,
verbose: true,
cleanBowerDir: true
}
... |
<<<<<<<
var table = require('azure-mobile-apps/express').table();
table.read.authorize = true;
=======
var table = require('azure-mobile-apps').table();
table.read.authorise = true;
>>>>>>>
var table = require('azure-mobile-apps').table();
table.read.authorize = true; |
<<<<<<<
const ICOScan = ({ ...props }) => (<div>
<ICOScanHeader {...props} />
<Row>
<div id="loadingProgressG" className={props.isLoading === true ? 'show' : 'hide'}>
<div id="loadingProgressG_1" className="loadingProgressG" />
</div>
{!props.showLoader && props.web3 && <Col md={12}>
<Row cl... |
<<<<<<<
import React from 'react';
=======
import React, { Component } from 'react';
import InfiniteScroll from 'react-infinite-scroller';
import '../assets/css/App.css';
>>>>>>>
import React, { Component } from 'react';
import InfiniteScroll from 'react-infinite-scroller'; |
<<<<<<<
export const allocateCSVFile = statistics => ({ type: 'CSV_FILE', csvContent: statistics });
=======
export const showStatistics = () => ({ type: 'SHOW_STATS' });
>>>>>>>
export const allocateCSVFile = statistics => ({ type: 'CSV_FILE', csvContent: statistics });
export const showStatistics = () => ({ typ... |
<<<<<<<
<h4><a href={props.address}> {props.name || props.information.aliasName}</a></h4>
<p>{props.information.description}</p>
=======
<h4><a href={props.ico.address}> {state.name || props.ico.information.aliasName}</a>... |
<<<<<<<
import electron, {
app,
BrowserWindow,
BrowserView,
globalShortcut,
ipcMain,
webContents,
} from 'electron';
=======
import electron, {app, BrowserWindow, globalShortcut, ipcMain, nativeTheme} from 'electron';
>>>>>>>
import electron, {
app,
BrowserWindow,
BrowserView,
globalShortcut,
i... |
<<<<<<<
export const TOGGLE_BOOKMARK = 'TOGGLE_BOOKMARK';
=======
export const NEW_WINDOW_SIZE = 'NEW_WINDOW_SIZE';
>>>>>>>
export const TOGGLE_BOOKMARK = 'TOGGLE_BOOKMARK';
export const NEW_WINDOW_SIZE = 'NEW_WINDOW_SIZE';
<<<<<<<
export function gotoUrl(url) {
return (dispatch: Dispatch, getState: RootStateType... |
<<<<<<<
if (removeFixedPositionedElements) {
await this.webView.executeJavaScript(`
//document.body.classList.add('responsivelyApp__ScreenshotInProgress');
responsivelyApp.hideFixedPositionElementsForScreenshot();
`);
}
=======
await this.webView
.executeJavaScript(
... |
<<<<<<<
import {SCREENSHOT_MECHANISM} from '../constants/values';
=======
import {PERMISSION_MANAGEMENT_OPTIONS} from '../constants/permissionsManagement';
>>>>>>>
import {SCREENSHOT_MECHANISM} from '../constants/values';
import {PERMISSION_MANAGEMENT_OPTIONS} from '../constants/permissionsManagement';
<<<<<<<
cons... |
<<<<<<<
NEW_CSS_EDITOR_STATUS,
NEW_CSS_EDITOR_POSITION,
NEW_CSS_EDITOR_CONTENT,
=======
TOGGLE_ALL_DEVICES_DESIGN_MODE,
TOGGLE_DEVICE_DESIGN_MODE,
SET_HEADER_VISIBILITY,
SET_LEFT_PANE_VISIBILITY,
>>>>>>>
NEW_CSS_EDITOR_STATUS,
NEW_CSS_EDITOR_POSITION,
NEW_CSS_EDITOR_CONTENT,
TOGGLE_ALL_DEVICES_... |
<<<<<<<
DEVICE_LOADING,
} from '../actions/browser'
import type {Action} from './types'
import getAllDevices from '../constants/devices'
import {ipcRenderer, remote} from 'electron'
import settings from 'electron-settings'
import type {Device} from '../constants/devices'
=======
} from '../actions/browser';
import... |
<<<<<<<
export const RELOAD_CSS = 'RELOAD_CSS';
=======
export const DELETE_STORAGE = 'DELETE_STORAGE';
>>>>>>>
export const RELOAD_CSS = 'RELOAD_CSS';
export const DELETE_STORAGE = 'DELETE_STORAGE'; |
<<<<<<<
import {shell, ipcRenderer} from 'electron';
=======
import PropTypes from 'prop-types';
import {shell} from 'electron';
>>>>>>>
import {shell, ipcRenderer} from 'electron';
import PropTypes from 'prop-types';
<<<<<<<
const AppUpdaterStatusInfoSection = () => {
const [status, setAppUpdaterStatus] = useS... |
<<<<<<<
TOGGLE_ALL_DEVICES_DESIGN_MODE,
TOGGLE_DEVICE_DESIGN_MODE,
=======
SET_HEADER_VISIBILITY,
SET_LEFT_PANE_VISIBILITY,
>>>>>>>
TOGGLE_ALL_DEVICES_DESIGN_MODE,
TOGGLE_DEVICE_DESIGN_MODE,
SET_HEADER_VISIBILITY,
SET_LEFT_PANE_VISIBILITY,
<<<<<<<
allDevicesInDesignMode: boolean,
=======
isHea... |
<<<<<<<
screenshotMechanism: string,
=======
permissionManagement: 'Ask always' | 'Allow always' | 'Deny always',
>>>>>>>
screenshotMechanism: string,
permissionManagement: 'Ask always' | 'Allow always' | 'Deny always', |
<<<<<<<
import Heartbreaker from './Modules/Talents/Heartbreaker';
=======
import Bloodworms from './Modules/Talents/Bloodworms';
>>>>>>>
import Heartbreaker from './Modules/Talents/Heartbreaker';
import Bloodworms from './Modules/Talents/Bloodworms';
<<<<<<<
heartbreaker: Heartbreaker,
=======
bloodworms... |
<<<<<<<
handleMouseEnter = () => {
this.props.active && this.setState({hover: true})
=======
handleMouseEnter() {
this.props.active && this.props.useHover && this.setState({hover: true})
>>>>>>>
handleMouseEnter = () => {
this.props.active && this.props.useHover && this.setState({hover: true}) |
<<<<<<<
var me = {};
function initialiseTearout() {
var myDropTarget = tearElement.parentNode,
parent = myDropTarget.parentNode,
myHoverArea = parent.getElementsByClassName('hover... |
<<<<<<<
=======
<Components.PreviewWindow
display={displayPreview}
htmlfile="preview-chart.html"
position={previewDetails.position}
size={previewDetails.size}
></Components.PreviewWindow>
<div className="header">
<span className="watchlist-name">My Watchlist</... |
<<<<<<<
import Borderless from './components/buttons/borderless-button/BorderlessButton';
import ChartBorderless from './components/buttons/borderless-buttons/app-shortcuts/Chart';
import NewsBorderless from './components/buttons/borderless-buttons/app-shortcuts/News';
import CloseBorderless from './components/buttons/... |
<<<<<<<
import ConfirmationWindow from './components/popups/ConfirmationWindow';
import PopupWindow from './components/popups/PopupWindow';
=======
import PreviewWindow from './components/preview-window/PreviewWindow';
>>>>>>>
import ConfirmationWindow from './components/popups/ConfirmationWindow';
import PopupWindo... |
<<<<<<<
<div className="launcher-container">
<div className="launcher-title">
<Components.Titlebar title={title} confirmClose={true} />
=======
<div className="launcher">
<div className="title">
<Titlebar dockedTo={edge} />
>>>>>>>
<div className="launcher">
<div classNa... |
<<<<<<<
el.connectedCallback();
expect(el.state).to.eql({foo: 'bar'});
=======
el.attachedCallback();
expect(el.state).to.eql({foo: 'bar', baz: 'qux'});
>>>>>>>
el.connectedCallback();
expect(el.state).to.eql({foo: 'bar', baz: 'qux'});
<<<<<<<
el.connectedCallback();
expect(el.state)... |
<<<<<<<
transform.normalize()
=======
>>>>>>>
transform.normalize()
<<<<<<<
transform.normalize()
=======
>>>>>>>
transform.normalize()
<<<<<<<
transform.normalize()
=======
>>>>>>>
transform.normalize()
<<<<<<<
transform.normalize()
=======
>>>>>>>
transform.normalize()
<<<<<<<
tr... |
<<<<<<<
return new Inline(properties)
=======
if (properties.nodes.size == 0) {
properties.nodes = properties.nodes.push(Text.create())
}
return new Inline(properties).normalize()
>>>>>>>
if (properties.nodes.size == 0) {
properties.nodes = properties.nodes.push(Text.create())
}
... |
<<<<<<<
return new Block(properties)
=======
if (properties.nodes.size == 0) {
properties.nodes = properties.nodes.push(Text.create())
}
return new Block(properties).normalize()
>>>>>>>
if (properties.nodes.size == 0) {
properties.nodes = properties.nodes.push(Text.create())
}
... |
<<<<<<<
* Normalize the state using the core schema.
* TODO: calling this transform should be useless
*
* @param {Transform} transform
* @return {Transform}
*/
export function normalize(transform) {
return transform.normalizeWith(defaultSchema)
/*
let { state } = transform
let { document, selection } = s... |
<<<<<<<
AbstractChosen = (function() {
function AbstractChosen(elmn) {
=======
Chosen = (function() {
function Chosen(form_field, options) {
this.form_field = form_field;
this.options = options != null ? options : {};
>>>>>>>
AbstractChosen = (function() {
function AbstractChosen(form_f... |
<<<<<<<
// TODO: Play around with react spring and create animation. It's currently located in the TrelloCard file.
=======
>>>>>>> |
<<<<<<<
var base_template, container_classes, container_props;
=======
var base_template, container_props, dd_top, dd_width, sf_width,
_this = this;
>>>>>>>
var base_template, container_classes, container_props,
_this = this; |
<<<<<<<
var base_template, container_classes, container_props;
=======
var base_template, container_classes, container_props, dd_top, dd_width, sf_width;
>>>>>>>
var base_template, container_classes, container_props;
<<<<<<<
var _this = this;
=======
var scrollCallback,
_... |
<<<<<<<
if (this.result_single_selected != null) {
this.result_do_highlight(this.result_single_selected);
} else if (this.is_multiple && this.max_selected_options <= this.choices) {
=======
var dd_top;
if (!this.is_multiple) {
this.selected_item.addClassName('chzn-single-with-d... |
<<<<<<<
var Chosen, root,
=======
var Chosen, get_side_border_padding, root, _ref,
>>>>>>>
var Chosen, root, _ref,
<<<<<<<
var container_classes, container_props;
=======
var base_template, container_classes, container_props, dd_top, dd_width, sf_width;
>>>>>>>
var container_classes, con... |
<<<<<<<
option.dom_id = this.container_id + "_o_" + option.array_index;
classes = [];
if (!option.disabled && !(option.selected && this.is_multiple)) {
classes.push("active-result");
}
if (option.disabled && !(option.selected && this.is_multiple)) {
classes.push("disabled-... |
<<<<<<<
=======
out += "Raw JSON:\n";
out += this.toString();
>>>>>>> |
<<<<<<<
this.streamingCount = 0;
this.deviceList = new Array();
=======
this._pluginPipelineSteps = {};
this._pluginExtendedMethods = {};
if (opts.useAllPlugins) this.useRegisteredPlugins();
>>>>>>>
this.streamingCount = 0;
this.deviceList = new Array();
this._pluginPipelineSteps = {};
this._plugin... |
<<<<<<<
enableHeartbeat: true,
heartbeatInterval: 100,
requestProtocolVersion: 5
=======
background: false,
requestProtocolVersion: 4
>>>>>>>
background: false,
requestProtocolVersion: 5
<<<<<<<
},{"./protocol":13,"events":18,"underscore":21}],2:[function(require,module,exports){
var Cir... |
<<<<<<<
Controller.prototype.streaming = function() {
return this.streamingCount > 0;
}
=======
Controller.prototype.connected = function() {
return !!this.connection.connected;
}
>>>>>>>
Controller.prototype.streaming = function() {
return this.streamingCount > 0;
}
Controller.prototype.connected = funct... |
<<<<<<<
sessionCookieName : 'nanotraderSession', // Name of the Cookie that will store the session info in the browser
urlRoot : '/spring-nanotrader-services/api/', // Path to the API service
tplRoot : './templates/', // Path to the Templates directory
accountIdUrlKey : '{... |
<<<<<<<
enterNumUsers : "Please enter number of accounts you want to create",
showWipeDBWarning : "Warning: This action is not recoverable. It will wipe your database.",
showIntegerError : "Please enter a valid number",
admin : "Admin",
createUsers : "Create Users",
dataPop : "Populating data ..... |
<<<<<<<
files.sort();
=======
if (filter) files = files.filter(filter);
>>>>>>>
if (filter) files = files.filter(filter);
files.sort(); |
<<<<<<<
var http = require('http');
var escapehtml = require('escape-html');
var debug = require('debug')('connect:dispatcher');
var parseUrl = require('parseurl');
=======
var escapeHtml = require('escape-html');
var http = require('http')
, parseurl = require('parseurl')
, debug = require('debug')('connect:disp... |
<<<<<<<
this.context.get(this.apiPath, this.ramlHandler(this.settings.ramlFile));
}
if (this.settings.exceptionHandler) {
return this.context.use(this.exceptionHandler(this.settings.exceptionHandler));
=======
this.context.get(this.apiPath, this.ramlHandler(this.settings.ramlFile))... |
<<<<<<<
if (!isValid && (methodInfo.responses[statusCode].body != null)) {
throw new InvalidAcceptTypeError;
=======
if (!isValid && (((_ref3 = methodInfo.responses) != null ? (_ref4 = _ref3[statusCode]) != null ? _ref4.body : void 0 : void 0) != null)) {
res.send(406);
>>>>>>>
if (... |
<<<<<<<
// @version 1.0.2
=======
// @version 1.0.3 DEV
>>>>>>>
// @version 1.0.3
<<<<<<<
// @require https://cdn.rawgit.com/camagu/jquery-feeds/master/jquery.feeds.js
// @require https://cdn.rawgit.com/soscripted/sox/v1.0.2/sox.enhanced_editor.js
// @require https://cdn.rawgit.com/sos... |
<<<<<<<
document.body.onload = function() {
XSS.load();
setTimeout(XSS.fontLoad, 500);
=======
window.onload = function() {
setTimeout(XSS.main, 250);
>>>>>>>
document.body.onload = function() {
XSS.load();
setTimeout(XSS.fontLoad, 250); |
<<<<<<<
exports['eachSeries'] = function(test){
=======
exports['forEachOf'] = function(test){
var args = [];
async.forEachOf({ a: 1, b: 2 }, forEachOfIterator.bind(this, args), function(err){
test.same(args, ["a", 1, "b", 2]);
test.done();
});
};
exports['forEachOf empty object'] = funct... |
<<<<<<<
const mapboxEnabled = false
// please change this if you take some code from here.
// otherwise the demo page will run out of credits and that would be very sad :(
const MAPBOX_ACCESS_TOKEN =
'pk.eyJ1IjoicGlnZW9uLW1hcHMiLCJhIjoiY2l3eW01Y2E2MDA4dzJ6cWh5dG9pYWlwdiJ9.cvdCf-7PymM1Y3xp5j71NQ'
const mapbox = (map... |
<<<<<<<
result = result.replace(/\bM\b/, locale.monthsShort[d.month]);
case /ii/.test(result):
result = result.replace(/\bii\b/, d.fullMinutes);
case /i/.test(result):
result = result.replace(/\bi(?!>)\b/, d.minutes);
... |
<<<<<<<
const events = getActivityLogEvents( state, orderId );
=======
const orderLoading = isOrderLoading( state, orderId, siteId );
const orderLoaded = isOrderLoaded( state, orderId, siteId );
>>>>>>>
const events = getActivityLogEvents( state, orderId );
const orderLoading = isOrderLoading( state, order... |
<<<<<<<
import { translate, localize } from 'i18n-calypso';
import { RadioControl, SelectControl } from '@wordpress/components';
import { mapValues, concat, values } from 'lodash';
=======
import { translate, localize, moment } from 'i18n-calypso';
import { RadioControl, CheckboxControl } from '@wordpress/components'... |
<<<<<<<
import RequestsFilter, { filterByType } from 'ui/components/RequestsFilter';
=======
import ResizeableCell from 'ui/components/ResizeableCell';
>>>>>>>
import RequestsFilter, { filterByType } from 'ui/components/RequestsFilter';
import ResizeableCell from 'ui/components/ResizeableCell';
<<<<<<<
constructo... |
<<<<<<<
const disabledIconStyle = Object.assign({}, iconStyle, {
opacity: '0.3'
});
const delayOptions = [
=======
const delayPreset = [
>>>>>>>
const disabledIconStyle = Object.assign({}, iconStyle, {
opacity: '0.3'
});
const delayPreset = [ |
<<<<<<<
ROLLING_HAVOC: {
id: 278747,
name: 'Rolling Havoc',
icon: 'warlock_pvp_banehavoc',
},
ROLLING_HAVOC_BUFF: {
id: 278931,
name: 'Rolling Havoc',
icon: 'warlock_pvp_banehavoc',
},
=======
// Destruction Azerite traits and effects
ACCELERANT: {
id: 272955,
name: 'Acce... |
<<<<<<<
test.equal(domToHtml.domToHtml(doc), '<html style="color: black; background-color: white"></html>\r\n', '');
test.done();
=======
assertEquals('',
'<html style="color: black; background-color: white"></html>\n',
require('../../lib/jsdom/browser/domtohtml').domToHtml(doc... |
<<<<<<<
},
script_execution_in_body : function() {
var window, caught = false;
try {
window = jsdom.jsdom('<html><body><script>document.body.innerHTML = "monkey"</script></body></html>').createWindow();
} catch (e) {
console.log(e.stack)
caught = true;
}
... |
<<<<<<<
const Writable = require('stream').Writable;
const lookup = require('./lookup');
/**
*
* https://gist.github.com/telekosmos/3b62a31a5c43f40849bb
* @param arr
* @returns {Array}
*/
function uniques(arr) {
// Sets cannot contain duplicate elements, which is what we want
return [...new Set(arr)];
}
====... |
<<<<<<<
=======
if (!this._nodes) {
this._nodes = [];
}
this._nodes.push(this);
>>>>>>>
if (!this._nodes) {
this._nodes = [];
}
this._nodes.push(this); |
<<<<<<<
},
ensure_a_default_window_has_a_window_location_hash: function(test) {
var window = require("../../lib/jsdom/browser/index").windowAugmentation(dom);
var defaultHref = window.location.href;
test.equals(window.location.hash, "");
window.location.href = window.location.href + "#foobar";
... |
<<<<<<<
}
},
importNode: function() {
var caught = false;
try {
var doc1 = jsdom.jsdom('<html><body><h1 id="headline">Hello <span id="world">World</span></h1></body></html>'),
doc2 = jsdom.jsdom();
doc2.body.appendChild(doc2.importNode(doc1.getElementById('headline'), true... |
<<<<<<<
totalItemsCount: _react.PropTypes.number.isRequired,
onChange: _react.PropTypes.func.isRequired,
activePage: _react.PropTypes.number,
itemsCountPerPage: _react.PropTypes.number,
pageRangeDisplayed: _react.PropTypes.number,
prevPageText: _react.PropTypes.oneOfType([_react.PropTypes.string... |
<<<<<<<
import PropTypes from 'prop-types';
=======
const PropTypes = require('prop-types');
>>>>>>>
import PropTypes from 'prop-types';
<<<<<<<
<View style={styles.labelContainer}
accessible={this.props.accessible}
accessibilityLabel={this.props.acc... |
<<<<<<<
this.copyChanges[layer] = this.gpu.createKernel(
function(value) { return value[this.thread.y][this.thread.x]; },
{
output: this.changesPropagate[layer].output,
pipeline: true,
}
);
this.copyWeights[layer] = this.gpu.createKernel(
function (... |
<<<<<<<
this.updateUI = nanoraf((state) => {
this.el = yo.update(this.el, this.render(state))
})
// this.updateUI = (state) => {
// this.el = yo.update(this.el, this.render(state))
// }
=======
// this.updateUI = nanoraf((state) => {
// this.el = yo.update(this.el, this.render(st... |
<<<<<<<
// const addFile = (file) => {
// this.core.emit('core:file-add', file)
// }
const removeFile = (fileID) => {
this.core.emit('core:file-remove', fileID)
}
=======
>>>>>>>
<<<<<<<
this.core.emit('core:upload-pause', fileID)
}
const retryUpload = (fileID) => {
... |
<<<<<<<
=======
/**
* Generate a preview image for the given file, if possible.
*/
generatePreview (file) {
if (Utils.isPreviewSupported(file.type) && !file.isRemote) {
let previewPromise
if (this.opts.thumbnailGeneration === true) {
previewPromise = Utils.createThumbnail(file, 280)
... |
<<<<<<<
core.setState({
files: {
fileId: {
name: 'filename'
}
}
})
core.emit('upload-error', core.getFile('fileId'), new Error('this is the error'))
expect(core.getState().info).toEqual({'message': 'Failed to upload filename', 'details': 'this is t... |
<<<<<<<
if (this.opts.browserBackButtonClose) {
this.updateBrowserHistory()
}
=======
this.rerender(this.uppy.getState())
>>>>>>>
if (this.opts.browserBackButtonClose) {
this.updateBrowserHistory()
}
this.rerender(this.uppy.getState()) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.