conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
=======
import {
SafeBlueArea,
BlueNavigationStyle,
BlueSpacing20,
BlueCopyTextToClipboard,
BlueButton,
BlueTextCentered,
BlueText,
} from '../../BlueComponents';
>>>>>>> |
<<<<<<<
import { AppStorage, PlaceholderWallet } from '../../class';
import WalletImport from '../../class/walletImport';
import ActionSheet from '../ActionSheet';
import ImagePicker from 'react-native-image-picker';
const EV = require('../../events');
const A = require('../../analytics');
let BlueApp: AppStorage = req... |
<<<<<<<
=======
import Clipboard from '@react-native-clipboard/clipboard';
>>>>>>>
<<<<<<<
import { isCatalyst, isMacCatalina } from '../../blue_modules/environment';
import BlueClipboard from '../../blue_modules/clipboard';
=======
import { isCatalyst, isMacCatalina, isTablet } from '../../blue_modules/environme... |
<<<<<<<
=======
if (typeof Buffer === 'undefined') global.Buffer = require('buffer').Buffer;
global.net = require('react-native-tcp');
>>>>>>>
if (typeof Buffer === 'undefined') global.Buffer = require('buffer').Buffer; |
<<<<<<<
static navigationOptions = ({ navigation }) => ({
...BlueNavigationStyle,
title: loc.send.create.details,
headerRight: navigation.state.params.exportTXN ? (
<TouchableOpacity style={styles.export} onPress={navigation.state.params.exportTXN}>
<Icon size={22} name="share-alternative" t... |
<<<<<<<
import { ScrollView, Linking, Dimensions, Image, View, Text, StyleSheet } from 'react-native';
import { useNavigation } from 'react-navigation-hooks';
=======
import { ScrollView, Linking, Dimensions, Image, View, Text } from 'react-native';
import { useNavigation } from '@react-navigation/native';
>>>>>>>
i... |
<<<<<<<
=======
hideFeeSelectionModal = () => this.setState({ isFeeSelectionModalVisible: false });
renderFeeSelectionModal = () => {
const { feePrecalc, fee, networkTransactionFees: nf } = this.state;
const options = [
{
label: loc.send.fee_fast,
time: loc.send.fee_10m,
fee... |
<<<<<<<
const styles = StyleSheet.create({
root: {
flex: 1,
backgroundColor: BlueCurrentTheme.colors.elevated,
},
scrollViewContent: {
flexGrow: 1,
justifyContent: 'space-between',
},
container: {
flexDirection: 'row',
justifyContent: 'center',
paddingTop: 16,
paddingBottom: 16... |
<<<<<<<
// mouseover handler in the breadcrumb
this.breadcrumbSpotlight = function(event)
{
var obj_id = event.target.getAttribute('obj-id');
if( obj_id )
{
hostspotlighter.spotlight(obj_id);
}
}
// mouseover handler in the breadcrumb
this.breadcrumbClearSpotlight = function(event)
{... |
<<<<<<<
import { ActivityIndicator, View, BackHandler, Text, ScrollView, StyleSheet } from 'react-native';
=======
import { ActivityIndicator, View, BackHandler, Text, ScrollView } from 'react-native';
import { useNavigation, useRoute } from '@react-navigation/native';
>>>>>>>
import { ActivityIndicator, View, BackH... |
<<<<<<<
Dimensions,
PixelRatio,
=======
>>>>>>>
<<<<<<<
import { BlueListItem, BlueTransactionListItem, BlueWalletNavigationHeader, BlueAlertWalletExportReminder } from '../../BlueComponents';
=======
import {
BlueSendButtonIcon,
BlueReceiveButtonIcon,
BlueTransactionListItem,
BlueWalletNavigationHead... |
<<<<<<<
=======
var originalName = name;
>>>>>>>
var originalName = name;
<<<<<<<
if(!message) {
// or name = name + "Request directly"
var portTypes = self.definitions.portTypes;
for(var n in portTypes) {
var portType = portTypes[n];
break;
}
... |
<<<<<<<
<td className="col-md-3 break-all"><a className="toponame" href={'./topologies/' + topology.cluster + '/' + topology.environ + '/' + topology.name}>{topology.name}</a></td>
=======
<td className="col-md-3 break-all"><a className="toponame" href={'/topologies/' + topology.cluster + '/' + topo... |
<<<<<<<
=======
// note: this is some horrible code, I know
var settingsForm;
Template.settings.generate_settings_form = function (setting) {
Meteor.defer(function() {
form().generateFor(setting);
})
}
function form() {
settingsForm = new ModelForm(Settings, settingsFormOptions());
return settingsForm;
}
... |
<<<<<<<
// Localisation
i18n.init({
lng: getSetting("language"),
resStore: eval(getSetting("language")),
saveMissing: true,
debug: true
});
Handlebars.registerHelper('i18n',
function(str){
return (i18n != undefined ? i18n.t(str) : str);
}
);
=======
analyticsInit();
>>>>... |
<<<<<<<
logger.info("Delaying execution of synclet "+synclet.name+" for "+info.id);
scheduleRun(info, synclet);
return callback();
}
if(!synclet.tolMax){
synclet.tolAt = 0;
synclet.tolMax = 0;
}
// if we can have tolerance, try again later
if(synclet.tolAt > 0... |
<<<<<<<
sync.init(auth, mongoCollections);
app.get('/friends', friends);
app.get('/checkins', checkins);
=======
sync.init(auth, function() {
console.error('auth completed');
app.get('/friends', friends);
app.get('/checkins', checkins);
sync.eventEmit... |
<<<<<<<
"connect" : "connect"
=======
"allApps" : "allApps",
"viewAll" : "viewAll",
"connect" : "connect",
"settings" : "settings"
>>>>>>>
"connect" : "connect"
"allApps" : "allApps",
"connect" : "connect",
"settings" : "settings"
<<<<<<<
$.history.init(function(hash){
... |
<<<<<<<
"allApps" : "allApps",
"publish" : "publish",
"viewAll" : "viewAll",
// "exploreApps" : "exploreApps",
// "registryApp" : "registryApp",
"connect" : "connect",
"settings" : "settings"
=======
"allApps" : "allApps",
"publish" : "publish",
"viewAll" : "viewAll",
"connect" : "co... |
<<<<<<<
, glatitude = {"provider" : "glatitude",
"endPoint" : "https://accounts.google.com/o/oauth2/token",
"redirectURI" : "auth/glatitude/auth",
"grantType" : "authorization_code"}
=======
, gplus = {"provider" : "gplus",
"endPoint" : "https://accounts.google.com/o/oauth2/token",
"... |
<<<<<<<
if(thiz.repository && thiz.repository.type === 'app' && thiz.name && thiz.name.indexOf(gh.login + '-') >= 0) {
=======
if(thiz.repository && thiz.repository.type === 'app' && thiz.name && thiz.name.indexOf(gh.login + '-') === 0) {
>>>>>>>
if(thiz.repository && ... |
<<<<<<<
export const ChatInput = ({ ListingContext, scrollToBottom }) => {
=======
const MAX_TEXTAREA_HEIGHT = 120
export const ChatInput = ({ ListingContext }) => {
>>>>>>>
const MAX_TEXTAREA_HEIGHT = 120
export const ChatInput = ({ ListingContext, scrollToBottom }) => {
<<<<<<<
setTimeout(() => scrollToBo... |
<<<<<<<
this.state = { item: null, scores: {} };
this.onUpdate = this.onUpdate.bind(this);
this.onSubscribe = this.onSubscribe.bind(this);
this.onRefresh = throttle(this.onUpdate, 100, { trailing: true });
=======
const {expanded=false} = props;
this.state = { item: null, scores: {}, expanded ... |
<<<<<<<
const DEFAULT_STATS_INTERVAL = 1000;
=======
const DEFAULT_STATS_INTERVAL = 1000;
>>>>>>>
<<<<<<<
// Periodic stats gathering interval (milliseconds).
// @type {Number}
this._statsInterval = DEFAULT_STATS_INTERVAL;
=======
>>>>>>>
// Periodic stats gathering interval (milliseconds).
// @type ... |
<<<<<<<
'__context["' + operand1 + '"] = __forloopIter[forloop.key];\n' +
parser.compile.apply(this, [indent + ' ', parentBlock]);
=======
'_context["' + operand1 + '"] = __forloopIter[forloop.key];\n' +
parser.compile.call(this, indent + ' ');
>>>>>>>
'_context["' + o... |
<<<<<<<
doc: "Prompts for the name of a file to edit, opening and creating it if necessary.",
hook: function() {
eventbus.on("newfilecreated", function(path) {
if (fileCache.indexOf(path) === -1) {
fileCache.push(path);
... |
<<<<<<<
/* global define, sandboxRequest*/
define(function(require, exports, module) {
return {
readFile: function(path, callback) {
sandboxRequest("zed/configfs", "readFile", [path], callback);
},
writeFile: function(path, content, callback) {
sandboxRequest("zed/con... |
<<<<<<<
/* global define, sandboxRequest*/
define(function(require, exports, module) {
return {
readFile: function(path, callback) {
sandboxRequest("zed/project", "readFile", [path], callback);
},
writeFile: function(path, text, callback) {
sandboxRequest("zed/project... |
<<<<<<<
let allowTransition = true
if (this.props.onClick)
this.props.onClick(event)
=======
>>>>>>> |
<<<<<<<
to: oneOfType([ string, object, func ]).isRequired,
=======
to: oneOfType([ string, object ]),
>>>>>>>
to: oneOfType([ string, object, func ]),
<<<<<<<
const toLocation = resolveToLocation(to, router)
props.href = router.createHref(toLocation)
=======
// If user does not spec... |
<<<<<<<
=======
propTypes: { router: routerShape },
getWrappedInstance() {
invariant(
withRef,
'To access the wrapped instance, you need to specify ' +
'`{ withRef: true }` as the second argument of the withRouter() call.'
)
return this.wrappedInstance
},
>>>... |
<<<<<<<
var useragent = require("ace/lib/useragent");
=======
var barEl;
>>>>>>>
var useragent = require("ace/lib/useragent");
var barEl; |
<<<<<<<
function partitionBy(byHandler) {
eventProcessor.partitionBy(byHandler);
return {
when: function (handlers) {
translateOn(handlers);
},
whenAny: function (handler) {
eventProcessor.on_any(handler);
}
};
... |
<<<<<<<
read: function (key, cb) {
if (typeof key === 'function') {
cb = key
key = null
}
function select (obj) {
return key ? obj[key] : obj
}
fs.readFile(filename, function (err, buf) {
=======
read: function (cb) {
db.fs.readFile(db.name, function... |
<<<<<<<
/* global define, sandboxRequest*/
define(function(require, exports, module) {
return {
readFile: function(path, callback) {
sandboxRequest("zed/project", "readFile", [path], callback);
},
writeFile: function(path, text, callback) {
sandboxRequest("zed/project... |
<<<<<<<
return new IndexFileStream(require('./lib/index-static.jsx'))
=======
var meta = {};
var execSync = require('child_process').execSync;
try {
meta['git-rev'] = execSync('git rev-parse HEAD', {
cwd: __dirname,
encoding: 'utf8'
}).slice(0, 40);
} catch (e) {}
return new IndexFil... |
<<<<<<<
Meteor.call('updateRegionCounters', {}, logAsyncErrors);
=======
// Update list of organizers per course
Meteor.call('course.updateGroups', {}, logAsyncErrors);
// Update List of badges per user
Meteor.call('user.updateBadges', {}, logAsyncErrors);
>>>>>>>
// Update list of organizers per course
Met... |
<<<<<<<
var get_courselist=function(listparameters){
=======
get_courselist=function(listparameters){
Session.set("isEditing", false); //unschöner temporaerer bugfix
>>>>>>>
var get_courselist=function(listparameters){
Session.set("isEditing", false); //unschöner temporaerer bugfix
<<<<<<<
if... |
<<<<<<<
import { PleaseLogin } from '/imports/ui/lib/please-login.js';
=======
import '/imports/Filtering.js';
import '/imports/Predicates.js';
import '/imports/AsyncTools.js';
import '/imports/StringTools.js';
import '/imports/HtmlTools.js';
import { PleaseLogin } from '/imports/ui/account/AccountTools.js';
>>>>>... |
<<<<<<<
=======
//this will not be necessary once the above is active
>>>>>>> |
<<<<<<<
this.busy(false);
=======
this.showFirstSteps = new ReactiveVar(false);
this.firstSteps = () => {
// make sure that first steps are only shown once per course
const parentInstance = this.parentInstance();
if (parentInstance.firstStepsShown) return;
this.showFirstSteps.set(true);
parentInstance.... |
<<<<<<<
import { ScssVars } from '/imports/ui/lib/Viewport.js';
import { PleaseLogin } from '/imports/ui/account/AccountTools.js';
import '/imports/ui/components/price-policy/price-policy.js';
=======
import '/imports/IdTools.js';
import { ScssVars } from '/imports/ui/lib/scss-vars.js';
import { PleaseLogin } from '... |
<<<<<<<
=======
add_role: function(courseId, userId, role, incognito) {
check(courseId, String);
check(userId, String);
check(role, String);
check(incognito, Boolean);
var user = Meteor.users.findOne(userId);
if (!user) throw new Meteor.Error(404, "User not found");
var operator = Meteor.us... |
<<<<<<<
import { ScssVars } from '/imports/ui/lib/Viewport.js';
import { PleaseLogin } from '/imports/ui/account/AccountTools.js';
=======
import '/imports/IdTools.js';
>>>>>>>
import '/imports/IdTools.js';
import { ScssVars } from '/imports/ui/lib/Viewport.js';
import { PleaseLogin } from '/imports/ui/account/Ac... |
<<<<<<<
import Regions from '/imports/api/regions/regions.js';
=======
import Courses from '/imports/api/courses/courses.js';
>>>>>>>
import Regions from '/imports/api/regions/regions.js';
import Courses from '/imports/api/courses/courses.js'; |
<<<<<<<
import { PleaseLogin } from '/imports/ui/account/AccountTools.js';
=======
import '/imports/Filtering.js';
import '/imports/Predicates.js';
import '/imports/StringTools.js';
import '/imports/HtmlTools.js';
>>>>>>>
import { PleaseLogin } from '/imports/ui/account/AccountTools.js';
import '/imports/Filteri... |
<<<<<<<
for (var count = 0; count < items; count++) {
found = found + $('._m3b',body).eq(count).html() + ", ";
}
}
}
=======
//name list
if (!found && $('#_vBb',body).length>0){
found = $('#_vBb',body).html()
console.log("Found name list")
}
>>... |
<<<<<<<
/*------------------------- Form_ Neue Kategorie erstellen ------------*/
/*
=======
/*------------------------- Form_ Neue Kategorie erstellen ------------
>>>>>>>
/*
<<<<<<<
*/
=======
*/
>>>>>>>
*/ |
<<<<<<<
import { PleaseLogin } from '/imports/ui/lib/please-login.js';
=======
import { PleaseLogin } from '/imports/ui/account/AccountTools.js';
import '/imports/StringTools.js';
>>>>>>>
import { PleaseLogin } from '/imports/ui/lib/please-login.js';
import '/imports/StringTools.js'; |
<<<<<<<
this.route('showCourse', { ///////// coursedetails /////////
path: 'course/:_id',
template: 'coursedetails',
waitOn: function () {
return [
Meteor.subscribe('courses')
]
},
data: function () {
return Courses.findOne({_id: this.params._id})
},
unload: function () {
Session.set... |
<<<<<<<
description: instance.$('#eventEditDescription').html(),
venue: instance.selectedLocation.get(),
=======
location: instance.selectedLocation.get(),
>>>>>>>
venue: instance.selectedLocation.get(), |
<<<<<<<
date: '2017-09-24',
// eslint-disable-next-line
migrate: async function() {
await r.knex.schema.alterTable('job_request', (table) => {
table.string('result_message').nullable().default('')
})
await r.knex.schema.alterTable('opt_out', (table) => {
table.string('reas... |
<<<<<<<
browser.cookies.getAll({ url: this.currentTab.url }).then(callback, function (e) {
console.error('Failed to retrieve cookies', e);
});
=======
browser.cookies.getAll({
url: this.currentTab.url,
storeId: this.currentTab.cookie... |
<<<<<<<
=======
var paused = startPaused || false;
var readable = false;
// convert to an old-style stream.
stream.readable = true;
stream.pipe = Stream.prototype.pipe;
stream.on = stream.addListener = Stream.prototype.on;
stream.on('readable', function() {
readable = true;
var c;
while ... |
<<<<<<<
var index = stack.lastIndexOf(this);
if (index !== -1)
stack.splice(index);
else
stack.length = 0;
_domain_flag[0] = stack.length;
=======
stack.splice(index);
>>>>>>>
stack.splice(index);
_domain_flag[0] = stack.length; |
<<<<<<<
assert.equal(0x6f, z[1]);
assert.equal(0, Buffer('hello').slice(0, 0).length)
b = new Buffer(50);
b.fill("h");
for (var i = 0; i < b.length; i++) {
assert.equal("h".charCodeAt(0), b[i]);
}
b.fill(0);
for (var i = 0; i < b.length; i++) {
assert.equal(0, b[i]);
}
b.fill(1, 16, 32);
for (var i = 0; i < 16; ... |
<<<<<<<
assert.ok(util.inspect(x).indexOf('inspect') != -1);
// util.inspect.styles and util.inspect.colors
function test_color_style(style, input, implicit) {
var color_name = util.inspect.styles[style];
var color = ['', ''];
if(util.inspect.colors[color_name])
color = util.inspect.colors[color_name];
va... |
<<<<<<<
if (startup.lazyConstants()[sig]) {
err = process._kill(pid, startup.lazyConstants()[sig]);
=======
if (startup.lazyConstants()[sig] &&
sig.slice(0, 3) === 'SIG') {
r = process._kill(pid, startup.lazyConstants()[sig]);
>>>>>>>
if (startup.lazyConstants(... |
<<<<<<<
EventEmitter.prototype.setMaxListeners = function(n) {
if (!util.isNumber(n) || n < 0 || isNaN(n))
=======
var defaultMaxListeners = 10;
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
if (typeof n !== 'number' || n < 0 || isNaN(n))
>>>>>>>
EventEmitter.prototype.setMaxListeners = ... |
<<<<<<<
return (this[offset] * 0x1000000) +
((this[offset + 1] << 16) |
(this[offset + 2] << 8) |
(this[offset + 3]) >>> 0);
};
=======
return (this[offset] * 0x1000000) +
((this[offset + 1] << 16) |
(this[offset + 2] << 8) |
this[offset + 3]);
};
>>>>>>>
return (this[offset... |
<<<<<<<
(util.isFunction(list.listener) && list.listener === listener)) {
this._events[type] = undefined;
=======
(typeof list.listener === 'function' && list.listener === listener)) {
delete this._events[type];
>>>>>>>
(util.isFunction(list.listener) && list.listener === listener)) {
d... |
<<<<<<<
if (!util.isBuffer(chunk) &&
!util.isString(chunk) &&
!util.isNullOrUndefined(chunk) &&
!state.objectMode &&
!er) {
=======
if (!Buffer.isBuffer(chunk) &&
'string' !== typeof chunk &&
chunk !== null &&
chunk !== undefined &&
!state.objectMode) {
>>>>>>>
i... |
<<<<<<<
editors: String
=======
overrideOrganizationTextingHours: Boolean
textingHoursEnforced: Boolean
textingHoursStart: Int
textingHoursEnd: Int
timezone: String
>>>>>>>
editors: String
overrideOrganizationTextingHours: Boolean
textingHoursEnforced: Boolean
textingHoursStar... |
<<<<<<<
});
test('transpose matrix - (3, 2) to (2, 3)', () => {
let m = new Matrix(3, 2);
m.data[0] = [1, 2]
m.data[1] = [3, 4]
m.data[2] = [5, 6]
let mt = Matrix.transpose(m);
expect(mt).toEqual({
rows: 2,
cols: 3,
data: [
[1, 3, 5],
[2, 4, 6]
]
})
})
test('transpose matrix ... |
<<<<<<<
if (res.hasOwnProperty("current_observation")) {
var cur = res.current_observation;
var loc = cur.display_location;
msg.data = res;
msg.payload.weather = cur.weather;
msg.payload.tempk = Number(cu... |
<<<<<<<
componentWillMount = () => {
var initial = Orientation.getInitialOrientation();
if (initial === 'PORTRAIT') {
this.setState({ width: Dimensions.get('window').width});
} else {
this.setState({ width: Dimensions.get('window').width, landscape: true });
}
}
componentDidMount = () => {
Orientat... |
<<<<<<<
params: "",
parents: [],
path: "",
pname: "",
query: "",
refs: [],
=======
params: "",
parent: undefined,
path: "",
pname: "",
policyv... |
<<<<<<<
.controller('modalEditCtrl', ['$modalInstance', 'EASEOFRESOLUTION', 'STATUSES', 'commonsFact', 'severities', 'vuln', 'vulnModelsManager', 'vulnsManager',
function($modalInstance, EASEOFRESOLUTION, STATUSES, commonsFact, severities, vuln, vulnModelsManager, vulnsManager) {
=======
.con... |
<<<<<<<
.controller('modalEditCtrl',
['$scope', '$modalInstance', 'severities', 'vulns', 'commons',
function($scope, $modalInstance, severities, vulns, commons) {
=======
.controller('modalEditCtrl', ['$scope', '$modalInstance', 'commonsFact', 'severities', 'vulns',
function($scope, ... |
<<<<<<<
vulnsManager, workspacesFact, csvService, uiGridConstants, vulnModelsManager, ServerAPI) {
=======
vulnsManager, workspacesFact, csvService, uiGridConstants, vulnModelsManager, referenceFact) {
>>>>>>>
vulnsManager, workspacesFact, ... |
<<<<<<<
"data": true,
"date": true,
"desc": true,
"method": false,
"name": true,
"params": false,
"path": false,
"pname": false,
"query": false,
... |
<<<<<<<
$scope.loading = false;
=======
$scope.loading = false;
>>>>>>>
$scope.loading = false;
<<<<<<<
$scope.loading = false;
=======
$scope.totalModels = vulnModelsManager.totalNumberOfModels;
>>>>>>>
... |
<<<<<<<
const getFactorioLocale = require("./lib/getFactorioLocale");
=======
const getFactorioLocale = require("lib/getFactorioLocale");
const stringUtils = require("lib/stringUtils");
const fileOps = require("lib/fileOps");
>>>>>>>
const getFactorioLocale = require("lib/getFactorioLocale");
<<<<<<<
const pluginM... |
<<<<<<<
ingestMethod.processContactLoad(job, false, {
/*FUTURE: context obj*/
});
=======
dispatchContactIngestLoad(job, organization, {/*FUTURE: context obj*/});
>>>>>>>
dispatchContactIngestLoad(job, organization, {
/*FUTURE: context obj*/
}); |
<<<<<<<
hasUnsentInitialMessages: async (campaign) => {
const contacts = await r.knex('campaign_contact')
.select('id')
.where({ campaign_id: campaign.id, message_status: 'needsMessage' })
.limit(1)
return contacts.length > 0
},
customFields: async (campaign) => {
c... |
<<<<<<<
else {
module.error(errors.state);
return false;
}
=======
>>>>>>> |
<<<<<<<
console.timeEnd("func2");
console.time("func3");
=======
>>>>>>>
<<<<<<<
console.timeEnd("func3");
console.time("func4");
=======
>>>>>>>
<<<<<<<
console.timeEnd("func4");
console.time("func5");
=======
>>>>>>>
<<<<<<<
console.timeEnd("func5");
console.time("func6");
... |
<<<<<<<
if (this.get('session').isAuthenticated) {
this.get('notifications').showAlert('请先退出登录,然后再注册新用户。', {type: 'warn', delayed: true});
this.transitionTo(Configuration.routeAfterAuthentication);
=======
if (this.get('session.isAuthenticated')) {
this.get('notific... |
<<<<<<<
const answerOptionStore = {}
for (let index = 0; index < job.payload.interaction_steps.length; index++) {
=======
for (let index = 0; index < payload.interaction_steps.length; index++) {
>>>>>>>
const answerOptionStore = {}
for (let index = 0; index < payload.interaction_steps.length; index++) { |
<<<<<<<
if (s != null) s.volume += interp.arg(b, 0);
};
=======
if (s != null) s.volume += interp.numarg(b, 0);
}
>>>>>>>
if (s != null) s.volume += interp.numarg(b, 0);
};
<<<<<<<
if (s != null) s.volume = interp.arg(b, 0);
};
=======
if (s != null) s.volume = interp.numarg(b, 0);
}
>>>>>>>
... |
<<<<<<<
var radians = (90 - s.direction) * Math.PI / 180;
var d = interp.arg(b, 0);
=======
var radians = ((Math.PI * (90 - s.direction)) / 180);
var d = interp.numarg(b, 0);
>>>>>>>
var radians = (90 - s.direction) * Math.PI / 180;
var d = interp.numarg(b, 0);
<<<<<<<
s.setDirection(int... |
<<<<<<<
litmus: common.isNumber,
=======
FunctionController.prototype,
Controller.prototype,
{
fire: function() {
if (this.__onChange) {
this.__onChange.call(this);
}
this.getValue().call(this.object);
if (this.__onFinishChang... |
<<<<<<<
draggedNumberField = true;
e.preventDefault();
// We don't want to be highlighting this field as we scroll.
// Or any other fields in this gui for that matter ...
// TODO: Make makeUselectable go through each element and child element.
GUI.makeUnselectable(_this.parent.domElement);
GUI.makeUn... |
<<<<<<<
import del from 'del';
=======
import {
getRenderedTemplate,
makeDestPath,
throwStringifiedError,
getRelativeToBasePath
} from './_common-action-utils';
>>>>>>>
import del from 'del';
import {
getRenderedTemplate,
makeDestPath,
throwStringifiedError,
getRelativeToBasePath
} from './_common-action-uti... |
<<<<<<<
if(shell.notebook.controller.is_mine()) {
if(shell.notebook.model.read_only()) {
$('#revert-notebook').show();
$('#save-notebook').hide();
}
else {
$('#revert-notebook').hide();
$('#save-notebook').show();
}
}
else {
... |
<<<<<<<
return rcloud.rename_notebook(gistname, newname).then(this.load_callback({is_change: true, selroot: true}));
=======
if (result && !/^\s+$/.test(result)) { // not null and not empty or just whitespace
rcloud.rename_notebook(gistname, newname, this.load_callback({is_chan... |
<<<<<<<
rcloud.display.set_device_pixel_ratio = function() {
return rcloud_ocaps.set_device_pixel_ratioAsync(window.devicePixelRatio);
=======
var cached_device_pixel_ratio;
rcloud.display.set_device_pixel_ratio = function(k) {
cached_device_pixel_ratio = window.deviceP... |
<<<<<<<
ui_utils.install_common_ace_key_bindings(widget, function() {
return language;
});
widget.commands.addCommands([{
name: 'sendToR',
bindKey: {
win: 'Alt-Return',
mac: 'Alt-Return',
sender: 'editor'
},
exec: function(widget, a... |
<<<<<<<
var scratchpad_editor = $("#scratchpad-editor");
if (scratchpad_editor.length) {
setup_scratchpad(scratchpad_editor);
}
var first = true;
=======
make_cells_sortable();
>>>>>>>
var scratchpad_editor = $("#scratchpad-editor");
if (scratchpad_editor.length) {
setup... |
<<<<<<<
var promises = []; // fetch and setup various ui "in parallel"
current_ = {notebook: result.id, version: options.version};
if(!options.tag) {
for(var i=0;i<result.history.length;i++) {
if(result.history[i].version === op... |
<<<<<<<
.filter({'is_started': true,
'organization_id': organizationId,
'is_archived': false}
)('left')
}
=======
.filter((row) =>
r.and(
row('right')('is_started').eq(true),
row('right')('organization_id').eq(orga... |
<<<<<<<
=======
insert_cell_button.click(function(e) {
if (!$(e.currentTarget).hasClass("button-disabled")) {
shell.insert_cell_before(cell_model.language(), cell_model.id());
}
});
join_button.click(function(e) {
join_button.tooltip('destroy');
if (!$(e.current... |
<<<<<<<
checkEndpoint = 'updates.ghostchina.com',
currentVersion = packageInfo.version;
=======
checkEndpoint = 'updates.ghost.org',
currentVersion = config.ghostVersion;
>>>>>>>
checkEndpoint = 'updates.ghostchina.com',
currentVersion = config.ghostVersion; |
<<<<<<<
var hljs_classes_ = {
R: "r",
Python: "python"
};
=======
// the keys of the language map come from GitHub's language detection
// infrastructure which we don't control. (this is likely a bad thing)
// The values are the extensions we use for the gists.
var extensions_... |
<<<<<<<
login: token + "\n" + execToken
=======
on_data: opts.on_data,
login: token + "\n" + token
>>>>>>>
on_data: opts.on_data,
login: token + "\n" + execToken |
<<<<<<<
that.set_status_message("Waiting...");
var snapshot = cell_model.get_execution_snapshot();
RCloud.UI.run_button.enqueue(
function() {
that.set_status_message("Computing...");
return cell_model.parent_model.controller.exe... |
<<<<<<<
=======
insert_cell_button.click(function(e) {
if (!$(e.currentTarget).hasClass("button-disabled")) {
shell.insert_cell_before(cell_model.language(), cell_model.id());
}
});
join_button.click(function(e) {
join_button.tooltip('destroy');
if (!$(e.current... |
<<<<<<<
rcloud.display.set_device_pixel_ratio = function() {
return rcloud_ocaps.set_device_pixel_ratioAsync(window.devicePixelRatio);
=======
var cached_device_pixel_ratio;
rcloud.display.set_device_pixel_ratio = function(k) {
cached_device_pixel_ratio = window.deviceP... |
<<<<<<<
.resize(params.width, params.height, params.resizeOption)
.toBuffer(this.image.getImageType(), (error, buffer) => {
=======
.resize(params.width, params.height)
.toBuffer(params.format || this.image.getImageType(), (error, buffer) => {
>>>>>>>
... |
<<<<<<<
const rnInstall = await reactNative.install({ name })
=======
const rnInstall = await reactNative.install({ name, skipJest: true, version: REACT_NATIVE_VERSION })
>>>>>>>
const rnInstall = await reactNative.install({ name, version: REACT_NATIVE_VERSION }) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.