conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
import NameEntryPanel from './name-entry-panel';
import { VR_DEVICE_AVAILABILITY } from "../utils/vr-caps-detect";
=======
import { VR_DEVICE_AVAILABILITY } from "../utils/vr-caps-detect.js";
import queryString from "query-string";
import { SCHEMA } from "../storage/store";
const { detect } = require("detect-... |
<<<<<<<
audioInput.onchange = () => {
=======
console.log("Input fields ready");
const getAudio = () => {
>>>>>>>
const getAudio = () => {
<<<<<<<
dataInput.onchange = () => {
=======
if (audioInput.files && audioInput.files.length > 0) {
getAudio();
} else {
audioInput.on... |
<<<<<<<
gripdown: "action_grab",
gripup: "action_release",
=======
gripdown: "middle_ring_pinky_down",
gripup: "middle_ring_pinky_up",
abuttontouchstart: "thumb_down",
abuttontouchend: "thumb_up",
bbuttontouchstart: "thumb_down",
bbuttontouchend: "thumb_... |
<<<<<<<
const packageLock = require("./package-lock.json");
=======
const request = require("request");
>>>>>>>
const packageLock = require("./package-lock.json");
const request = require("request"); |
<<<<<<<
const deviceDetect = require("device-detect")();
=======
const mobiledetect = new MobileDetect(navigator.userAgent);
>>>>>>>
const deviceDetect = require("device-detect")();
const mobiledetect = new MobileDetect(navigator.userAgent); |
<<<<<<<
import "./utils/theme";
import "./utils/configs";
=======
>>>>>>>
import "./utils/theme"; |
<<<<<<<
this.scene.addEventListener("object_pinned", e => {
const el = e.detail.el;
const networkId = el.components.networked.data.networkId;
const gltfNode = pinnedEntityToGltf(el);
if (!gltfNode) return;
el.setAttribute("networked", { persistent: true });
this.hubChannel.pin(... |
<<<<<<<
import "./systems/camera-mirror";
=======
import "./systems/userinput/userinput-debug";
>>>>>>>
import "./systems/camera-mirror";
import "./systems/userinput/userinput-debug"; |
<<<<<<<
const has_agreed_to_terms = this.props.store.state.profile.has_agreed_to_terms || this.state.has_agreed_to_terms;
if (!has_agreed_to_terms) return;
=======
const { has_changed_name, display_name } = this.props.store.state.profile;
const hasChangedName = has_changed_name || this.state.display_n... |
<<<<<<<
import "./components/visibility-on-content-type";
=======
import "./components/hide-when-pinned-and-forbidden";
>>>>>>>
import "./components/visibility-on-content-type";
import "./components/hide-when-pinned-and-forbidden"; |
<<<<<<<
<WithHoverSound>
<button className={styles.linkButton} onClick={this.copyClicked.bind(this, "https://" + shareLink)}>
<span>{this.state.copyButtonActive ? "copied!" : "copy"}</span>
</button>
</WithHoverSound>
=======
<button className={style... |
<<<<<<<
this.startInteractionAndForceCursorUpdate = this.startInteractionAndForceCursorUpdate.bind(this);
this.startInteraction = this.startInteraction.bind(this);
this.moveCursor = this.moveCursor.bind(this);
this.endInteraction = this.endInteraction.bind(this);
this.handleMouseWheel = this.handleM... |
<<<<<<<
has_saved_profile: { type: "boolean" },
has_agreed_to_terms: { type: "boolean" },
=======
has_changed_name: { type: "boolean" },
>>>>>>>
has_agreed_to_terms: { type: "boolean" },
has_changed_name: { type: "boolean" }, |
<<<<<<<
import { isHubsDestinationUrl } from "./utils/media-utils";
=======
const PHYSICS_CONSTANTS = require("aframe-physics-system/src/constants"),
COLLISION_FLAGS = PHYSICS_CONSTANTS.COLLISION_FLAGS,
TYPES = PHYSICS_CONSTANTS.TYPES,
SHAPES = PHYSICS_CONSTANTS.SHAPES;
>>>>>>>
import { isHubsDestinationUrl } ... |
<<<<<<<
import { RoomInfoDialog } from "./room-info-dialog.js";
=======
import LeaveRoomDialog from "./leave-room-dialog.js";
>>>>>>>
<<<<<<<
import { LeaveReason, LeaveRoomModal } from "./room/LeaveRoomModal";
=======
import { RoomSidebar } from "./room/RoomSidebar";
import { RoomSettingsSidebarContainer } from ... |
<<<<<<<
=======
import "./components/animation";
import "./components/disable-frustum-culling";
>>>>>>>
import "./components/disable-frustum-culling"; |
<<<<<<<
registerNetworkSchemas();
document.querySelector("a-scene").addEventListener("loaded", onSceneLoad);
=======
const scene = document.querySelector("a-scene");
window.APP.scene = scene;
scene.addEventListener("loaded", onSceneLoad);
>>>>>>>
registerNetworkSchemas();
const scene = document.quer... |
<<<<<<<
import jTool from '@jTool';
import { isFunction, each, isArray } from '@jTool/utils';
import { showLoading, hideLoading, getVisibleTh, getTbody } from '@common/base';
import { outError } from '@common/utils';
import { getSettings, getCheckedData, getTableData } from '@common/cache';
import { GM_CREATE, TD_VISIB... |
<<<<<<<
cursor.object3D.matrixNeedsUpdate = true;
=======
cursor.object3D.scale.setScalar(Math.pow(this.distance, 0.315) * 0.75);
>>>>>>>
cursor.object3D.scale.setScalar(Math.pow(this.distance, 0.315) * 0.75);
cursor.object3D.matrixNeedsUpdate = true; |
<<<<<<<
import { exit2DInterstitialAndEnterVR, isIn2DInterstitial } from "../utils/vr-interstitial";
import maskEmail from "../utils/mask-email";
import { resetTips } from "../systems/tips";
import { faTimes } from "@fortawesome/free-solid-svg-icons/faTimes";
import { FontAwesomeIcon } from "@fortawesome/react-fontawe... |
<<<<<<<
simpleViewModule.controller('SimpleCtrl', ['$scope', 'propertyService', 'serverContext', 'sfMediaService', '$q', function ($scope, propertyService, serverContext, mediaService, $q) {
=======
simpleViewModule.controller('SimpleCtrl', ['$scope', 'propertyService', 'serverContext', 'serviceHelper', 'sfMe... |
<<<<<<<
$scope.parentSelector = { selectedItemsIds: [] };
$scope.feedback.showLoadingIndicator = true;
=======
$scope.additionalFilters = {};
>>>>>>>
$scope.parentSelector = { selectedItemsIds: [] };
$scope.feedback.showLoadingIndicator = true;
$scope.additionalFilters... |
<<<<<<<
newComment.find('[data-sf-role="comment-date"]').text(this.getDateFromSfString(comment.DateCreated).toDateString());
if (appendPendingApproval) {
newComment.find('[data-sf-role="comment-date"]').after($('<span />').text(this.resources.commentPendingApproval));
... |
<<<<<<<
const downloadManager = Cc["@mozilla.org/download-manager;1"].createInstance(Ci.nsIDownloadManager);
=======
const downloadManager = Cc["@mozilla.org/download-manager;1"].createInstance(Ci.nsIDownloadManager);
const ioService = services.get("io");
>>>>>>>
const downloadManager = Cc["@mozil... |
<<<<<<<
let extensionName = config.name.toUpperCase();
let init = services.get("environment").get(extensionName + "_INIT");
=======
let init = services.get("environment").get(config.name.toUpperCase() + "_INIT");
let rcFile = io.getRCFile("~");
>>>>>>... |
<<<<<<<
=======
#!/usr/bin/env node
const fs = require('fs');
const luxon = require('luxon');
const minimist = require('minimist');
>>>>>>>
#!/usr/bin/env node
<<<<<<<
// happy goodbye
console.log('\nAll done!');
console.log('Look for your output files in: ' + path.resolve(config.output));
})().catch(ex => {
... |
<<<<<<<
var currentUser = 'fakeuser@someemail.com';
var copy = { 'id': '21', 'imageUrl': 'path/to/image' };
var loan = {'id': '12', 'email': currentUser, 'copy': copy };
=======
var user = { 'imageUrl' : 'http://www.gravatar.com/avatar/1dbd3e934b5d9a64f15826f7e9e23e16' };
var lastLoan = { 'id':... |
<<<<<<<
require('./connect')
require('./multiple')
require('./data-size')
require('./references')
require('./subscription')
require('./switch')
require('./client')
require('./types')
require('./context')
require('./resolveRefs')
// missing auto remove of context
=======
// require('./connect')
// require('./multiple... |
<<<<<<<
options.date =
typeof options.date === 'string'
? format(options.date)
: format('YYYY/MM/DD');
options.relative = options.hasOwnProperty('relative')
? options.relative
: true;
options.linksets = options.linksets || [];
=======
options.date = options.date ? format(options.date) ... |
<<<<<<<
});
=======
// in case of any leftover tests that have modified the direction
document.body.dir = 'auto';
}
});
>>>>>>>
// in case of any leftover tests that have modified the direction
document.body.dir = 'auto';
});
<<<<<<<
let subject = this.owner.lookup('service:language-pref... |
<<<<<<<
export default AbstractEditController.extend(InventorySelection, PatientId, PatientSubmodule, UserSession, {
needs: ['application','medication'],
=======
export default AbstractEditController.extend(InventorySelection, FulfillRequest, InventoryLocations, PatientId, PatientSubmodule, UserSession, {... |
<<<<<<<
import localeConfig from 'ember-i18n/config/en';
=======
import { getOwner } from '@ember/application';
>>>>>>>
<<<<<<<
import tHelper from 'ember-i18n/helper';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Controller | abstract-report-controller', function(h... |
<<<<<<<
import english from 'hospitalrun/locales/en/translations';
import french from 'hospitalrun/locales/fr/translations';
import german from 'hospitalrun/locales/de/translations';
module('Acceptance | language dropdown', function(hooks) {
setupApplicationTest(hooks);
=======
function selectFromLanguageSelect(lo... |
<<<<<<<
module('Unit | Service | Language preference', function(hooks) {
setupTest(hooks);
hooks.beforeEach(function() {
=======
moduleFor('service:language-preference', 'Unit | Service | Language preference', {
needs: ['service:config', 'service:intl'],
beforeEach() {
>>>>>>>
module('Unit | Service | Langu... |
<<<<<<<
{ name: 'Social Worker', roles: ['Social Worker', 'user'], defaultRoute: 'patients' },
{ name: 'System Administrator', roles: ['System Administrator', 'admin', 'user'] },
=======
{ name: 'Social Worker', roles: ['Social Worker', 'user'], defaultRoute: 'patients.index' },
{ name: 'System Administrator'... |
<<<<<<<
module('Unit | Mixin | dob-days', function(hooks) {
setupTest(hooks);
hooks.beforeEach(function() {
this.subject = function(attrs) {
let subject;
run(() => {
let Test = DS.Model.extend(DOBDays);
this.owner.register('model:test', Test);
subject = this.store().createRe... |
<<<<<<<
=======
var queryKey = this.get('queryKey');
// first check if these changes include any of the record types
if(recordTypes && queryKey && recordTypes.contains(queryKey.recordType)) return;
>>>>>>> |
<<<<<<<
_styleProperties: [ "opacity", "display" ],
_layoutStyles: 'width height top bottom marginLeft marginTop left right zIndex minWidth maxWidth minHeight maxHeight centerX centerY'.w(),
=======
_styleProperties: [ "opacity", "display", "-webkit-transform" ],
_layoutStyles: 'width height top bottom margin... |
<<<<<<<
=======
// const htmlHead = htmlFile.match(/(?:<head.*?>)([\s\S]*?)(?:<\/head>)/gmi);
// const headRegex = new RegExp('head', 'i');
// let htmlHeadContents = htmlHead[0].split(headRegex)[1];
// htmlHeadContents = htmlHeadContents.slice(1, htmlHeadContents.length - 2);
// htmlHeadContents +... |
<<<<<<<
setUnsavedChanges={this.props.setUnsavedChanges}
=======
infiniteLoop={this.props.ide.infiniteLoop}
detectInfiniteLoops={this.props.detectInfiniteLoops}
resetInfiniteLoops={this.props.resetInfiniteLoops}
stopSketch={this... |
<<<<<<<
inputStyle: 'contenteditable',
mode: 'javascript'
=======
mode: 'javascript',
lineWrapping: true
>>>>>>>
inputStyle: 'contenteditable',
mode: 'javascript',
lineWrapping: true |
<<<<<<<
test("should react to object array item value mutation", () => {
let reactionCount = 0;
const tree = new ProxyStateTree({
items: [
{
title: "foo"
},
{
title: "bar"
}
]
});
const state = tree.get();
const trackId = tree.startPa... |
<<<<<<<
import { Router, browserHistory } from 'react-router';
import { createStore, applyMiddleware } from 'redux';
import { routerMiddleware, syncHistoryWithStore } from 'react-router-redux';
=======
import { Router } from 'react-router';
>>>>>>>
import { Router, browserHistory } from 'react-router';
import { sync... |
<<<<<<<
actions: [{
type: 'modify',
path: '../../app/routes.js',
pattern: /(\s{\n\s{6}path: '\*',)/g,
templateFile: './route/route.hbs',
}],
=======
actions: data => {
const actions = [];
if (reducerExists(data.component)) {
actions.push({
type: 'modify',
path: '../... |
<<<<<<<
module = tryRequire('makara');
=======
// After all engines are registered, apply i18n. It needs to know
// about the state of the current view engine in order to work. :/
module = tryRequire('dustjs-i18n');
>>>>>>>
module = tryRequire('makara');
... |
<<<<<<<
selectedTimeZoneOffset: null,
tableDataColumns: [
SC.Object.create(SCTable.Column, {
name: "Name",
valueKey: 'name',
width: 150
}),
SC.Object.create(SCTable.Column, {
name: "Value",
valueKey: 'value',
width: ... |
<<<<<<<
}
export function hideRuntimeErrorWarning() {
return {
type: ActionTypes.HIDE_RUNTIME_ERROR_WARNING
};
}
export function showRuntimeErrorWarning() {
return {
type: ActionTypes.SHOW_RUNTIME_ERROR_WARNING
};
}
=======
}
export function startSketch() {
return (dispatch) => {
dispatch(cle... |
<<<<<<<
import './Dropdown'
=======
import './Emoji'
import './EmojiPicker'
>>>>>>>
import './Dropdown'
import './Emoji'
import './EmojiPicker' |
<<<<<<<
autoWordWrap: PropTypes.bool,
=======
block: PropTypes.bool,
>>>>>>>
autoWordWrap: PropTypes.bool,
block: PropTypes.bool,
<<<<<<<
const {
autoWordWrap,
children,
className,
external,
href,
wordWrap,
...rest
} = props
const forceWordWrap = wordWrap || (autoWordWrap ... |
<<<<<<<
lockBodyOnOpen: false,
timeout: 0
=======
timeout: 200
>>>>>>>
lockBodyOnOpen: false,
timeout: 200
<<<<<<<
this.unlockBody()
}, ANIMATION_TIMEOUT)
=======
}, this.state.timeout)
>>>>>>>
this.unlockBody()
}, this.state.timeout) |
<<<<<<<
const InMemoryStorage = require('../test/mockups/in-memory-storage');
const H5PEditorConfig = require('../src/config');
const FileLibraryManager = require('../test/mockups/file-library-manager');
const User = require('../test/mockups/user');
=======
const server = express();
const bodyParser = require('body-... |
<<<<<<<
await expect(repository.install("H5P.Blanks")).rejects.toThrow("hub-install-denied");
=======
await expect(repository.install("H5P.Dialogcards")).resolves.toBe(true);
await expect(repository.install("H5P.ImageHotspotQuestion")).rejects.toThrow("hub-install-denied");
>>>>>>>
aw... |
<<<<<<<
.addRuleWhen(this._librariesMustBeValid, checkLibraries)
.addRule(throwErrorsNow)
.addRule(this._returnTrue)
=======
.addRuleWhen(this._librariesMustBeValid.bind(this), checkLibraries)
.addRule(throwErrorsNow.bind(this))
>>>>>>>
.addRule... |
<<<<<<<
require("@babel/register");
=======
require("@babel/core");
>>>>>>>
require("@babel/core");
require("@babel/register");
<<<<<<<
const shortid = require('shortid');
const LibraryManager = require('../src/library-manager');
const FileLibraryStorage = require('../src/file-library-storage');
=======
const Fil... |
<<<<<<<
import * as EditorHiddenActions from '../actions/editorHidden';
import { getFile, getHTMLFile, getJSFiles, getCSSFiles } from '../reducers/files';
=======
import * as PreferencesActions from '../actions/preferences';
import { getFile, getHTMLFile, getJSFiles, getCSSFiles, setSelectedFile } from '../reducers/f... |
<<<<<<<
var _ = window.jarn.i18n.MessageFactory("bika");
var curDate = new Date();
var y = curDate.getFullYear();
var limitString = "1900:" + y;
var dateFormat = _("date_format_short_datepicker");
$("input.datepicker").live("click", function() {
$(this).datepicker({
showOn:... |
<<<<<<<
['SampleView',
'RejectionKickOff'],
=======
['SampleView'],
// Samples fodler
".portaltype-samplesfolder":
['SamplesFolderView'],
>>>>>>>
['SampleView',
'RejectionKickOff'],
// Samples fodler
".portaltype-samplesfolder":
['SamplesFolder... |
<<<<<<<
export const SET_UNSAVED_CHANGES = 'SET_UNSAVED_CHANGES';
=======
export const DETECT_INFINITE_LOOPS = 'DETECT_INFINITE_LOOPS';
export const RESET_INFINITE_LOOPS = 'RESET_INFINITE_LOOPS';
>>>>>>>
export const SET_UNSAVED_CHANGES = 'SET_UNSAVED_CHANGES';
export const DETECT_INFINITE_LOOPS = 'DETECT_INFINITE... |
<<<<<<<
if (channel && !slack.channel) {
return res
.status(500)
.json({ msg: `Channel not found "${channel}"` });
=======
let chanId;
if (channels) {
let channel = req.body.channel;
if (!channels.includes(channel)) {
return res
.status(400)
.send({ ms... |
<<<<<<<
displayName: displayName,
render: function() {
=======
displayName: "MobXStoreInjector",
render: function () {
>>>>>>>
displayName: displayName,
render: function () {
<<<<<<<
return observer(createStoreInjector(grabStoresFn, componentClass, grabStoresFn.name));
=======
... |
<<<<<<<
};
function observableTypeChecker (type) {
return function(props, propName, componentName) {
if (!mobx['isObservable' + type](props[propName])) {
return new Error(
'Invalid prop `' + propName + '` supplied to' +
... |
<<<<<<<
const urlRoot = 'https://zh-hans.reactjs.org';
const version = '16.14.0';
=======
const urlRoot = 'https://reactjs.org';
const version = '17.0.0';
>>>>>>>
const urlRoot = 'https://zh-hans.reactjs.org';
const version = '17.0.0'; |
<<<<<<<
debug('exec', this.name)
func(this.server, this.opts, cb)
}
Plugin.prototype.enqueue = function (obj, cb) {
debug('enqueue', this.name, obj.name)
this.q.push(obj, cb)
=======
// we must defer the loading of the plugin until the
// current execution has ended
process.nextTick(() => {
var pr... |
<<<<<<<
shareModalProjectId: null,
shareModalProjectName: null,
shareModalProjectUsername: null,
=======
shareModalProjectId: 'abcd',
shareModalProjectName: 'My Cute Sketch',
shareModalProjectUsername: 'p5_user',
sketchlistModalVisible: false,
>>>>>>>
shareModalProjectId: 'abcd',
shareModalProjectN... |
<<<<<<<
},
Modal: {
background: grays.light,
border: grays.middleLight
}
=======
},
Separator: grays.middleLight,
>>>>>>>
},
Modal: {
background: grays.light,
border: grays.middleLight
},
Separator: grays.middleLight,
<<<<<<<
},
Modal: {
back... |
<<<<<<<
tape('should load with callback', function(assert) {
new Bridge({ xml: xml.a, base:__dirname + '/' }, function(err, source) {
=======
it('should load with callback', function(done) {
new Bridge({ xml: xml.a, base:path.join(__dirname,'/') }, function(err, source) {
>>>>>>>
tape('sh... |
<<<<<<<
self.connectionStatus = ko.computed(function () {
var result = "";
if (self.isReceiving()) {
if (self.isFirewalled()) {
if (self.localRelays()!=null && self.localRelays()>0) {
result = "firewalledRelaying";
}
else {
result = "firewalled";
}
... |
<<<<<<<
var src = config.themeSrc + '/resources/javascripts/main.js';
var dest = {
dev: config.themeDev + '/resources/javascripts/',
prod: config.themeProd + '/resources/javascripts/'
};
var bundleMethod = global.isWatching ? watchify : browserify;
var bundler = browserify({
// Specify the entry point of yo... |
<<<<<<<
=======
import Pressable from '@enact/ui/Pressable';
import Pure from '@enact/ui/internal/Pure';
>>>>>>>
import Pure from '@enact/ui/internal/Pure';
<<<<<<<
const MoonstoneButton = Uppercase(
TooltipDecorator(
MarqueeDecorator(
{className: componentCss.marquee},
Touchable(
{activeProp: 'p... |
<<<<<<<
const expected = 100;
const actual = resultScrollTop;
expect(actual).toBe(expected);
=======
>>>>>>>
<<<<<<<
test('should call onScrollStop once', () => {
=======
it('should call onScrollStop once', (done) => {
const onScrollStop = handlerOnScrollStop(done, () => {
const expected... |
<<<<<<<
=======
import {privatePressable as Pressable} from '@enact/ui/Pressable';
>>>>>>>
<<<<<<<
const IncrementSliderBaseFactory = factory({css: componentCss}, ({css}) => {
const Slider = Touchable({activeProp: 'pressed'}, Spottable(Skinnable(SliderBaseFactory({css}))));
=======
const PrivateIncrementSliderBa... |
<<<<<<<
UNSAFE_componentWillReceiveProps (nextProps) {
// while transitioning, we set `popupOpen` with the given `open` prop value
if (!this.props.noAnimation && this.state.floatLayerOpen) {
=======
componentWillReceiveProps (nextProps) {
if (!this.props.open && nextProps.open) {
>>>>>>>
UNSAFE_componentWil... |
<<<<<<<
onDown={this.handleIncDown}
=======
>>>>>>>
onDown={this.handleIncDown}
<<<<<<<
=======
onMouseDown={this.handleIncDown}
>>>>>>>
<<<<<<<
onDown={this.handleDecDown}
=======
>>>>>>>
onDown={this.handleDecDown}
<<<<<<<
=======
onMouseDown={this.handleDecDown}
>>>>>>> |
<<<<<<<
* {@link moonstone/Slider.Slider} is a Slider with Moonstone styling, Spottable, Changeable,
* Touchable and SliderDecorator applied.
=======
* {@link moonstone/Slider.Slider} is a Slider with Moonstone styling, Spottable, Pressable
* and SliderDecorator applied.
>>>>>>>
* {@link moonstone/Slider.S... |
<<<<<<<
=======
var warnDeprecatedDoc = true;
var warnDeprecatedAfterSubmit = true;
var DOC_ACTION_DEPRECATION_WARNING = 'DEPRECATED: "doc" middleware action. Use "readSnapshots" instead. ' +
'Pass `disableDocAction: true` option to ShareDB to disable the "doc" action and this warning.';
var AFTER_SUBMIT_ACTION_D... |
<<<<<<<
handleDecPulse = () => {
if (!this.hasReachedBound(this.props.step * -1)) {
this.handleDown(-1);
this.updateValue(-1);
}
}
handleIncPulse = () => {
if (!this.hasReachedBound(this.props.step)) {
this.handleDown(1);
this.updateValue(1);
}
}
=======
>>>>>>>
<<<<<<<
onDown={this.h... |
<<<<<<<
import Spottable from '@enact/spotlight/Spottable';
import onlyUpdateForKeys from 'recompose/onlyUpdateForKeys';
=======
import Spottable from '@enact/spotlight/Spottable';
import Pressable from '@enact/ui/Pressable';
import Pure from '@enact/ui/internal/Pure';
>>>>>>>
import Spottable from '@enact/spotlight... |
<<<<<<<
import Catalog from '../Catalog/Catalog'
import { fetchCatalogs } from '../../fetch/fetch';
import { waitForDataAndSetState, cancelAllPromises } from '../../helpers/components';
import { container, loader } from './Catalogs.css'
=======
import CatalogPreview from '../Catalog/CatalogPreview'
import { fetchCata... |
<<<<<<<
=======
const styles = {
container: {
textAlign: 'center',
paddingTop: '2em',
},
loader: {
textAlign: 'center',
marginTop: '5em',
},
}
>>>>>>>
<<<<<<<
if (!this.state.catalogs) return <div className={loader}><ContentLoader /></div>
=======
if (!this.state.catalogs) return... |
<<<<<<<
if (address.substring(0, 2) != '0x') return false;
else if (!/^(0x)?[0-9a-f]{40}$/i.test(address)) return false;
else if (
/^(0x)?[0-9a-f]{40}$/.test(address) ||
/^(0x)?[0-9A-F]{40}$/.test(address)
)
return true;
else return isChecksumAddress(address);
=======
if (address.substring(0... |
<<<<<<<
import CircularProgress from '../CircularProgress/CircularProgress'
import DownloadsSection from './DownloadsSection'
=======
import CircularProgress from 'material-ui/CircularProgress'
import LinksSection from './LinksSection'
>>>>>>>
import CircularProgress from '../CircularProgress/CircularProgress'
impor... |
<<<<<<<
return (slot <= 3 ? text+meter : meter+text) + '<br/>';
}
// calculate AP gain from destroying portal
// so far it counts only resonators + links
window.getDestroyAP = function(d) {
console.log('rendering destroy AP');
var res_count = 0;
var links_count = 0;
var fields_count
$.each(d.resonatorArra... |
<<<<<<<
, Multipart = require('./lib/multipart').Multipart
=======
, Redirect = require('./lib/redirect').Redirect
>>>>>>>
, Multipart = require('./lib/multipart').Multipart
, Redirect = require('./lib/redirect').Redirect |
<<<<<<<
this._refreshDynamicObjects = function() {
__dynamicObjects = __dynamicObjects.filter(function (obj) { return !obj._isDestroyed(); });
}
=======
/* (unexposed) wrappers for game methods */
this._endOfStartLevelReached = function() {
__game._endOfStartLevelReached = true;
... |
<<<<<<<
},
qunit: {
all: ['tests/index.html']
=======
},
jshint: {
all: ['Gruntfile.js', 'src/**/*.js', 'tests/unit/**/*.js']
>>>>>>>
},
jshint: {
all: ['Gruntfile.js', 'src/**/*.js', 'tests/unit/**/*.js']
},
qunit: {
all: ['tests/index.html'] |
<<<<<<<
this._transport = new SimUDP(globals._transport_server, (options) ? options.transport : undefined);
=======
this._udp = new SimUDP(globals.TRANSPORT_SERVER, (options) ? options.transport : undefined);
>>>>>>>
this._transport = new SimUDP(globals.TRANSPORT_SERVER, (options) ? options.transpo... |
<<<<<<<
anything.prototype.zombofy = zombofy;
=======
anything.prototype.execFunction = execFunction;
>>>>>>>
anything.prototype.zombofy = zombofy;
anything.prototype.execFunction = execFunction; |
<<<<<<<
function hash(message) {
return message.length.toString(16);
}
=======
/**
* Finds elements in the DOM that match the selector
*/
var find = function(selector) {
if('undefined' !== typeof document.querySelector)
return document.querySelector(selector)
... |
<<<<<<<
function hash(message) {
return message.length.toString(16);
}
/**
* Finds elements in the DOM that match the selector
*/
var find = function(selector) {
if('undefined' !== typeof document.querySelector)
return document.querySelector(selector)
return undefi... |
<<<<<<<
* Transforms a natural layout or dimension to the browser-calculated values
* and resets the appropriate element attribute(s). A layout=natural transforms
* to a layout=fixed, that calculates the browser's natural dimensions. It's
* also possible to preserve a different layout, like fill or container, but
... |
<<<<<<<
$A.mark(mark);
button.set("v.label", "clicked");
$A.endMark(mark);
=======
$A.Perf.mark(mark);
button.getValue("v.label").setValue("clicked");
$A.Perf.endMark(mark);
>>>>>>>
$A.Perf.mark(mark);
button.s... |
<<<<<<<
=======
// in case component.getElements() returns nothing (invalid)
// we'll return previously rendered in indexed object form
var prevRenderedIndexed = {},
count = 0;
for(var p in prevRendered) {
if(prevRendered.hasOwnProperty(p)) {
prevRenderedIndexed[count] = pr... |
<<<<<<<
'cask-angular-sortable',
=======
'cask-angular-progress',
'cask-angular-password',
'cask-angular-dropdown-text-combo',
>>>>>>>
'cask-angular-sortable',
'cask-angular-progress',
'cask-angular-password',
'cask-angular-dropdown-text-combo', |
<<<<<<<
keymap: rtElement.keymap,
clear: rtElement.clear
};
toolbarButton = {
className: 'rte2-toolbar-noicon rte2-toolbar-' + styleName,
style: styleName,
text: rtElement.displayName,
tooltip: rtEle... |
<<<<<<<
'v3/plugin/auto-expand',
'bsp-autosubmit',
=======
'bsp-autoexpand',
'v3/plugin/auto-submit',
>>>>>>>
'v3/plugin/auto-expand',
'v3/plugin/auto-submit', |
<<<<<<<
keymap: rtElement.keymap,
clear: rtElement.clear
=======
clear: rtElement.clear,
toggle: rtElement.toggle
>>>>>>>
keymap: rtElement.keymap,
clear: rtElement.clear,
toggle: rtElement.toggle |
<<<<<<<
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
// Attempt to convert a string value to a Number.
// Otherwise, return 0.
exports.default = function (val) {
var alt = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
return typeof val === ... |
<<<<<<<
}, u ? {
'Coopr-UserID': u.username,
'Coopr-TenantID': u.tenant
} : {});
$log.log('[myApi]', config.method, config.url.substr(MYAPI_PREFIX.length));
=======
});
if(myAuth.currentUser) {
angular.extend(config.headers, {
... |
<<<<<<<
authPathHasQuery = (params.authorizePath.indexOf('?') == -1) ? false : true,
appendChar = (authPathHasQuery) ? '&' : '?', //if authorizePath has ? already append OAuth2 params
responseType = (params.responseType) ? encodeURIComponent(params.responseType) : '';
=======
authPa... |
<<<<<<<
"V": formatWeekNumberISO,
"w": formatWeekdayNumber,
=======
"w": formatWeekdayNumberSunday,
>>>>>>>
"V": formatWeekNumberISO,
"w": formatWeekdayNumberSunday,
<<<<<<<
"V": formatUTCWeekNumberISO,
"w": formatUTCWeekdayNumber,
=======
"w": formatUTCWeekdayNumberSunday,
>>>>>>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.