conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
if (is_func_expr(node)) {
=======
if (node instanceof AST_Function) {
node.inlined = false;
>>>>>>>
if (is_func_expr(node)) {
node.inlined = false;
<<<<<<<
var abort = false, replaced = false, can_rep... |
<<<<<<<
var ch = get_full_char(str, 0);
var prev = get_full_char(last, last.length - 1);
=======
var ch = str.charAt(0);
if (need_newline_indented && ch) {
need_newline_indented = false;
if (ch != "\n") {
print("\n");
indent();
... |
<<<<<<<
if (this.operator == "typeof" && is_func_expr(this.expression)) {
=======
if (compressor.option("typeofs")
&& this.operator == "typeof"
&& (e instanceof AST_Lambda
|| e instanceof AST_SymbolRef
&& e.fixed_value... |
<<<<<<<
}
reassign_const_1: {
options = {
collapse_vars: true,
}
input: {
function f() {
const a = 1;
a = 2;
return a;
}
console.log(f());
}
expect: {
function f() {
const a = 1;
a = 2;
r... |
<<<<<<<
if (window) function g() {}
=======
if (window);
}
}
}
defun_else_if_return: {
options = {
hoist_funs: false,
if_return: true,
}
input: {
function e() {
function f() {}
if (window) function g() {}
else... |
<<<<<<<
}
issue_2136_1: {
options = {
inline: true,
unused: true,
}
input: {
!function(a, ...b) {
console.log(b);
}();
}
expect: {
!function(a, ...b) {
console.log(b);
}();
}
expect_stdout: "[]"
node_version: ">=6"
... |
<<<<<<<
mangle_props = {
builtins: true,
keep_quoted: true
=======
mangle = {
properties: {
keep_quoted: true,
},
>>>>>>>
mangle = {
properties: {
builtins: true,
keep_quoted: true,
},
<<<<<<<
mangle_props = {
... |
<<<<<<<
}
issue_2321: {
options = {
ecma: 6,
unsafe_methods: false,
}
input: {
var f = {
foo: function(){ console.log("foo") },
bar() { console.log("bar") }
};
var foo = new f.foo();
var bar = f.bar();
}
expect: {
v... |
<<<<<<<
var scope = compressor.find_parent(AST_Scope).get_defun_scope();
=======
>>>>>>>
<<<<<<<
=======
if (def.name.fixed_value() === def.value) {
fixed_ids[node_def.id] = def;
}
>>>>>>>
<<<<<<<
if ... |
<<<<<<<
screw_ie8 : true,
keep_fnames : false,
keep_classnames : false
=======
>>>>>>> |
<<<<<<<
}
issue_2265_1: {
options = {
pure_getters: "strict",
side_effects: true,
}
input: {
({ ...{} }).p;
({ ...g }).p;
}
expect: {
({ ...g }).p;
}
}
issue_2265_2: {
options = {
pure_getters: "strict",
reduce_vars: true,
sid... |
<<<<<<<
if (node instanceof AST_SymbolFunarg) {
node.object_destructuring_arg = !!in_destructuring;
defun.def_variable(node);
}
=======
if (node instanceof AST_Label) {
node.thedef = node;
node.references = [];
}
>>>>>>>
if (node... |
<<<<<<<
var AST_Arrow = DEFNODE("Arrow", null, {
$documentation: "An ES6 Arrow function ((a) => b)"
}, AST_Lambda);
var AST_Defun = DEFNODE("Defun", null, {
=======
var AST_Defun = DEFNODE("Defun", "inlined", {
>>>>>>>
var AST_Arrow = DEFNODE("Arrow", "inlined", {
$documentation: "An ES6 Arrow function ((a)... |
<<<<<<<
init =
is("keyword", "var") ? (next(), var_(true)) :
is("keyword", "let") ? (next(), let_(true)) :
is("keyword", "const") ? (next(), const_(true)) :
expression(true, true);
var is_in = is("operator", "... |
<<<<<<<
issue_2090_1: {
options = {
evaluate: true,
reduce_vars: true,
}
input: {
console.log(function() {
var x = 1;
[].forEach(() => x = 2);
return x;
}());
}
expect: {
console.log(function() {
var x = 1;
... |
<<<<<<<
if (!drop_vars && sym.global) return true;
if (sym.orig[0] instanceof AST_SymbolCatch
&& sym.scope.parent_scope.find_variable(def.name).orig[0] === def.name) {
=======
if (sym.orig[0] instanceof... |
<<<<<<<
var value = node.fixed_value();
if (value && ref_once(d) && !compressor.exposed(d)) {
if (value instanceof AST_Lambda) {
d.single_use = d.scope === node.scope
&& !(... |
<<<<<<<
var assign_as_unused = !/keep_assign/.test(compressor.option("unused"));
=======
if (!drop_funcs && !drop_vars) return;
var assign_as_unused = /keep_assign/.test(compressor.option("unused")) ? return_false : function(node) {
if (node instanceof AST_Assign && (node.write_onl... |
<<<<<<<
componentWillReceiveProps(nextProps) {
const {
autoDrawerUp
} = this.props;
const autoDrawerUpSuccess = (autoDrawerUp !== nextProps.autoDrawerUp) && (nextProps.autoDrawerUp === 1);
if (autoDrawerUpSuccess) {
setTimeout(() => {
this.moveFinish... |
<<<<<<<
import JobInfoDialog from './common/dialog/job_info_dialog';
import BatchPriorityDialog from './/common/dialog/batch_priority_dialog';
import ImportResultDialog from './common/dialog/import_result_dialog';
=======
import MyLine from './common/charts/line';
>>>>>>>
import MyLine from './common/charts/line';
i... |
<<<<<<<
{ pattern: 'dist/client/dev/**/*.js', included: false, watched: true },
{ pattern: 'dist/client/dev/**/*.html', included: false, watched: true, served: true },
{ pattern: 'dist/client/dev/**/*.css', included: false, watched: true, served: true },
=======
'test-config.js',
{ patte... |
<<<<<<<
import bodymovin2Avd from 'bodymovin-to-avd'
=======
import {versionFetched} from '../redux/actions/generalActions'
>>>>>>>
import {versionFetched} from '../redux/actions/generalActions'
import bodymovin2Avd from 'bodymovin-to-avd'
<<<<<<<
function saveAVD(data) {
bodymovin2Avd(data).then(function(avdData)... |
<<<<<<<
[ getCompositionState, getID, getReports ],
(compositionState, id, reports) => {
=======
[ getCompositionState, getPreviewState, getID ],
(compositionState, previewState, id) => {
>>>>>>>
[ getCompositionState, getPreviewState, getID, getReports ],
(compositionState, previewState, id, reports) =>... |
<<<<<<<
},
preview: {
backgroundColor: previewState.backgroundColor,
shouldLockTimelineToComposition: previewState.shouldLockTimelineToComposition,
=======
builders: reports.settings.builders,
>>>>>>>
builders: reports.settings.builders,
},
prev... |
<<<<<<<
'use strict'
function setFavorite(_Self, _ArtistName, _CollectioName, _Artwork30, _Artwork60, _Artwork100, _FeedUrl) {
let Feed = {
'artistName': _ArtistName,
'artworkUrl100': _Artwork100,
'artworkUrl30': _Artwork30,
'artworkUrl60': _Artwork60,
'collectionName': _Col... |
<<<<<<<
renderTab: React.PropTypes.func,
=======
underlineStyle: View.propTypes.style,
>>>>>>>
renderTab: React.PropTypes.func,
underlineStyle: View.propTypes.style,
<<<<<<<
{this.props.tabs.map((name, page) => {
const isTabActive = this.props.activeTab === page;
const re... |
<<<<<<<
if (thingTimer){
window.clearInterval(thingTimer);
}
=======
if (window.CSceneGame !== undefined)
{
window.CSceneGame.prototype.DoScreenShake = function() {};
}
if (thingTimer !== undefined) {
window.clearTimeout(thingTimer);
>>>>>>>
if (thingTimer){
window.clearInterval(thingTimer);
}
if (wind... |
<<<<<<<
MenuButton: "/src/components/MenuButton/MenuButton.jsx",
=======
RadioButton: "/src/components/RadioButton/RadioButton.jsx",
>>>>>>>
MenuButton: "/src/components/MenuButton/MenuButton.jsx",
RadioButton: "/src/components/RadioButton/RadioButton.jsx", |
<<<<<<<
// @name Monster Minigame Auto-script w/ auto-click
// @namespace https://github.com/chauffer/steamSummerMinigame
=======
// @name Monster Minigame AutoScript
// @author /u/mouseasw for creating and maintaining the script, /u/WinneonSword for the Greasemonkey support, and every contributor on the GitHub repo ... |
<<<<<<<
export { default as CustomSvgIcon } from "./Icon/CustomSvgIcon";
export { default as Counter } from "./Counter/Counter";
=======
export { default as CustomSvgIcon } from "./Icon/CustomSvgIcon";
export { default as RadioButton } from "./RadioButton/RadioButton";
export { default as MenuButton } from "./MenuB... |
<<<<<<<
MenuTitle: "/src/components/Menu/MenuTitle/MenuTitle.jsx",
Divider: "/src/components/Divider/Divider.jsx",
MenuItem: "/src/components/Menu/MenuItem/MenuItem.jsx",
Menu: "/src/components/Menu/Menu/Menu.jsx",
=======
DialogContentContainer:
"/src/components/DialogContentContainer/DialogContentCont... |
<<<<<<<
var ServeTask = require('../tasks/ember-build-serve');
var Promise = require('ember-cli/lib/ext/promise');
var PortFinder = require('portfinder');
var chalk = require('chalk');
var _merge = require('lodash').merge;
var validateLocationType = require('../utils/validate-l... |
<<<<<<<
// @author /u/mouseasw for creating and maintaining the script, /u/WinneonSword for the Greasemonkey support, and every contributor on the GitHub repo for constant enhancements. /u/wchill and contributors on his repo for MSG2015-specific improvements.
// @version 1.7
// @namespace https://github.com/wchill/stea... |
<<<<<<<
const Command = require('./-command');
const Hook = require('../tasks/run-hook');
const logger = require('../utils/logger');
const CordovaTarget = require('../targets/cordova/target');
const CordovaRaw = require('../targets/cordova/tasks/raw');
const editXml = re... |
<<<<<<<
=======
var ValidateLocationType = require('../tasks/validate/location-type');
var ValidatePlatformTask = require('../tasks/validate/platform');
var ValidateAllowNavigation = require('../tasks/validate/allow-navigation');
var ValidateRootUrl = require('../tasks/validate/root-url');
var LintIndex... |
<<<<<<<
return RSVP.all(foundDevices).then((devices) => {
devices = flatten(devices);
=======
return Promise.all(getEmulators).then((emulators) => {
emulators = flatten(emulators);
>>>>>>>
return RSVP.all(foundDevices).then((devices) => {
devices = flatten(devices);
<<<<<<<
retur... |
<<<<<<<
* @struct
* @suppress {checkStructDictInheritance}
* @extends {goog.iter.Iterator}
=======
* @extends {goog.iter.Iterator<goog.date.Date>}
>>>>>>>
* @struct
* @suppress {checkStructDictInheritance}
* @extends {goog.iter.Iterator<goog.date.Date>} |
<<<<<<<
expect(Object.keys(output.components)).toContain(
'package-json-component-test'
);
});
=======
expect(Object.keys(output.components)).toContain('package-json-component-test');
})
// Tests for default and custom components
test('Idyll getComponents() gets all default & custom components', () => {
... |
<<<<<<<
const {
getChildren,
getNodeName,
getProperties,
getType,
removeNodesByName
} = require('idyll-ast');
export const buildExpression = (acc, expr, key, context, isEventHandler) => {
=======
export const buildExpression = (acc, expr, isEventHandler) => {
let identifiers = [];
const modifiedExpress... |
<<<<<<<
logging.log(request.method + " " + request.url.href);
if (request.method === "GET" || request.method === "HEAD") {
=======
logging.log(request.id + request.method + " " + request.url.href);
if (request.method == "GET" || request.method == "HEAD") {
>>>>>>>
logging.log(request.id + request.method + ... |
<<<<<<<
cache.update_timestamp(rid, userId, skin_hash, false, function(cache_err) {
callback(cache_err, skin_hash, slim);
=======
cache.update_timestamp(rid, userId, false, function(cache_err) {
callback(cache_err, skin_hash);
>>>>>>>
cache.update_timestamp(rid, userId, fa... |
<<<<<<<
function handle_default(http_status, uuid) {
if (def && def !== "steve" && def !== "alex") {
logging.log(uuid + " status: 301");
=======
function handle_default(rid, http_status, uuid) {
if (def && def != "steve" && def != "alex") {
logging.log(rid + "status: 301");
>>>>>>>
function... |
<<<<<<<
var estraverse = require('estraverse'),
=======
var estraverse = require('estraverse'),
escope = require('escope'),
esprima = require('esprima'),
escodegen = require('escodegen'),
>>>>>>>
var estraverse = require('estraverse'),
escope = require('escope'),
<<<<<<<
function equals(a, b, s) {
... |
<<<<<<<
const ConnectWithLyra = ({ onUpdate }) => {
const connectLyra = async() => {
let response = "";
try {
response = await window.lyra.getPublicKey();
} catch (e) {
console.error(e);
}
const { publicKey, error } = response;
onUpdate('sourceAccount', publicKey);
}
return (
<button ... |
<<<<<<<
it('Should expose a "notify" extender that can configure a computed to notify on all changes', function() {
var notifiedValues = [];
var observable = new ko.observable(1);
var computed = new ko.computed(function () { return observable(); });
computed.subscribe(function (valu... |
<<<<<<<
var allBindings = allBindingsAccessor();
var includeDestroyed = allBindings['optionsIncludeDestroyed'];
var captionPlaceholder = {};
var captionValue;
=======
var includeDestroyed = allBindings.get('optionsIncludeDestroyed');
var caption = {};
>>>>>>>
v... |
<<<<<<<
* Date: Aug 14 2012
=======
* Date: Aug 22 2012
>>>>>>>
* Date: Aug 23 2012
<<<<<<<
Kinetic.Node.addGettersSetters(Kinetic.Node, ['x', 'y', 'scale', 'detectionType', 'rotation', 'alpha', 'name', 'id', 'offset', 'draggable', 'dragConstraint', 'dragBounds', 'dragBoundFunc', 'listening']);
=======
Kinetic... |
<<<<<<<
filterCanvas = this.filterCanvas = new Kinetic.SceneCanvas({
width: width,
height: height
});
=======
if (this.filterCanvas){
filterCanvas = this.filterCanvas;
}
else {
filterCanvas = t... |
<<<<<<<
})
test('request should wait for "up" event', { timeout: 5000 }, (t) => {
t.plan(5)
const instance = upring(opts({
logLevel: 'error',
base: []
}))
var key = 'hello'
instance.on('request', (req, reply) => {
t.equal(req.key, key, 'key matches')
t.equal(req.hello, 42, 'other key match... |
<<<<<<<
const parsedProfile = Object.create(BaseStateProfile);
parsedProfile.populate(mockStateApi);
export const mockBreakdownProps = {
stateProfile: {
id: '06',
fy: 'latest',
overview: parsedProfile
}
};
=======
export const mockTimes = {
fiscal_year: '2017',
quarter: '4',
... |
<<<<<<<
'pop_city',
=======
'parent_award',
'pop_city_name',
>>>>>>>
'pop_city',
'parent_award', |
<<<<<<<
import * as ContractFilterFunctions from './filters/contractFilterFunctions';
=======
import * as OtherFilterFunctions from './filters/OtherFilterFunctions';
>>>>>>>
import * as ContractFilterFunctions from './filters/contractFilterFunctions';
import * as OtherFilterFunctions from './filters/OtherFilterFunct... |
<<<<<<<
});
export const fetchSpendingOverTime = (params) => apiRequest({
isMocked: true,
url: 'v2/disaster/spending_over_time/',
method: 'post',
data: params
=======
});
export const fetchAwardAmounts = (params) => apiRequest({
isMocked: true,
url: 'v2/disaster/award/amount/',
method: '... |
<<<<<<<
];
export const unlinkedDataColumns = (type) => ([
{ displayName: '' },
{ displayName: `Unlinked ${type} Awards in ${type === 'Contract' ? type : 'Financial Assistance'} Data` },
{ displayName: `Unlinked ${type} Awards in Award Spending Breakdown Data` },
{ displayName: 'Total' }
]);
const moc... |
<<<<<<<
// make API call to transactions total aggregation endpoint
export const performTransactionsTotalSearch = (params) => {
=======
// Fetch Individual Award
export const fetchAward = (num) => {
const source = CancelToken.source();
return {
promise: Axios.request({
url: `awards/${num}/... |
<<<<<<<
import Controller from '@ember/controller';
import { computed } from '@ember/object';
import { A } from '@ember/array';
import { inject as service } from '@ember/service';
import _ from 'lodash';
=======
import Ember from 'ember';
import values from 'npm:lodash.values';
import groupBy from 'npm:lodash.groupby... |
<<<<<<<
head.writeUInt8(0x04, 0)
head.writeUInt8(quantity * 2, 1)
var response = Buffer.concat([head, mem.slice(byteStart * 2, byteStart * 2 + quantity * 2)])
=======
var response = Buffer.concat([head, mem.slice(byteStart, byteStart + quantity * 2)]);
>>>>>>>
head.wr... |
<<<<<<<
(function(phantomas) {
// Prevent events from being sent from an iframe. Only from the main document.
if (window.parent !== window || window.location.href === 'about:blank') {
return;
}
function emit(eventName) {
phantomas.log('Navigation Timing milestone: %s', eventName);
... |
<<<<<<<
readHoldingRegister: function (start, quantity, cb) {
var fc = 3,
defer = Q.defer(),
pdu = that.pduWithTwoParameter(fc, start, quantity);
if (!cb) {
that.makeRequest(fc, pdu, that.promiseCallback(d... |
<<<<<<<
const payloadHashBuffer = new Buffer(block.payloadHash, 'hex')
=======
var payloadHashBuffer = Buffer.from(block.payloadHash, 'hex')
>>>>>>>
const payloadHashBuffer = Buffer.from(block.payloadHash, 'hex')
<<<<<<<
const generatorPublicKeyBuffer = new Buffer(block.generatorPublicKey, '... |
<<<<<<<
* @param {Number} config
* @param {Boolean} networkStart
* @return {void}
=======
* @param {Object} config [description]
* @param {Boolean} networkStart [description]
>>>>>>>
* @param {Number} config
* @param {Boolean} networkStart
* @return {void}
<<<<<<<
* @param {S... |
<<<<<<<
const moment = require('moment')
=======
const delay = require('delay')
>>>>>>>
const moment = require('moment')
const delay = require('delay') |
<<<<<<<
const transformer = requireFrom('api/transformer')
const arkjs = require('arkjs')
=======
const Transformer = requireFrom('api/transformer')
>>>>>>>
const Transformer = requireFrom('api/transformer')
const arkjs = require('arkjs')
<<<<<<<
index(req, res, next) {
db.accounts.all(req.query).then(result ... |
<<<<<<<
const Sequelize = require('sequelize')
=======
const Op = require('sequelize').Op
const moment = require('moment')
>>>>>>>
const Sequelize = require('sequelize')
const Op = require('sequelize').Op
const moment = require('moment')
<<<<<<<
all(queryParams) {
let whereStatement = {}
let orderBy = ... |
<<<<<<<
logger.info('Removing ' + (height - newHeigth) + ' blocks to start from current round')
let count = 0
const max = stateMachine.state.lastBlock.data.height - newHeigth
=======
logger.info(`Removing ${height - newHeigth} blocks to reset current round`)
>>>>>>>
logger.info(`Removing ${heigh... |
<<<<<<<
if (this.transactionPool) this.transactionPool.acceptChainedBlock(block)
=======
if (this.transactionPool) {
this.transactionPool.removeTransactions(block.transactions)
}
>>>>>>>
if (this.transactionPool) {
this.transactionPool.acceptChainedBlock(block)
} |
<<<<<<<
model.welcome = undefined;
model.search = (model.lastname + ' ' + model.firstname + ' ' + model.email).toSearch();
=======
delete model.welcome;
model.search = (model.lastname + ' ' + model.firstname + ' ' + model.email).search();
>>>>>>>
model.welcome = undefined;
model.search = (model.lastname ... |
<<<<<<<
=======
.option('useLedgerKey', {
desc: 'Use Ledger for signing with given HD key path',
type: 'string',
default: "44'/397'/0'/0'/1'"
})
>>>>>>>
.option('useLedgerKey', {
desc: 'Use Ledger for signing with given HD key path',
type: 'string',
defaul... |
<<<<<<<
const NEAR_ENV_SUFFIXES = {
production: 'near',
default: 'test',
development: 'test',
devnet: 'dev',
betanet: 'beta'
};
const TLA_MIN_LENGTH = 32;
=======
const eventtracking = require('../utils/eventtracking');
>>>>>>>
const eventtracking = require('../utils/eventtracking');
const NEAR_E... |
<<<<<<<
const defaultConfig = require('./blank_project/src/config')(process.env.NODE_ENV || 'development');
console.log(defaultConfig);
=======
const defaultConfig = require('./config')(process.env.NODE_ENV || 'development');
>>>>>>>
const defaultConfig = require('./co... |
<<<<<<<
/**
* Get ajax parameters to be used in setupArticleSelector, based on session.autocomplete
* @return {object|null} to be passed in as the value for `ajax` in setupArticleSelector
*/
=======
/**
* Returns the AJAX options based on search type
* @returns {object} options to be passed to $.ajax
*/
>>>>>>... |
<<<<<<<
attribute.informativeProperties = ['id', 'default', 'description', 'title'];
attribute.argumentProperties = ['exclusiveMinimum', 'exclusiveMaximum', 'additionalItems'];
attribute.ignoreProperties = [].concat(attribute.informativeProperties, attribute.argumentProperties);
=======
attribute.ignoreProperties = {... |
<<<<<<<
describe("libjoynr-js.integration.end2end.datatypes", function() {
var datatypesProxy;
var abstractTest = new End2EndAbstractTest("End2EndDatatypesTest", "TestEnd2EndDatatypesProviderProcess");
=======
describe("libjoynr-js.integration.end2end.datatypes", () => {
let datatypesProxy;
const abst... |
<<<<<<<
=======
/**
* @name MessageRouter#route
* @function
*
* @param {JoynrMessage}
* joynrMessage
* @returns {Object} A+ promise object
*/
this.route =
... |
<<<<<<<
/*jslint es5: true, nomen: true */
=======
/*jslint es5: true, node: true, node: true */
>>>>>>>
/*jslint es5: true, nomen: true, node: true */
<<<<<<<
define(
"joynr/messaging/mqtt/SharedMqttClient",
[
"global/Promise",
"global/Mqtt",
"joynr/messaging/JoynrMessage",
... |
<<<<<<<
/*jslint es5: true, nomen: true */
=======
/*jslint node: true */
>>>>>>>
/*jslint es5: true, nomen: true, node: true */ |
<<<<<<<
// because the generated code uses require('joynr') without knowing the location, will work only
// when joynr is a submodule and is placed inside node_modules folder. In order to emulate this
// behavior the require function is adapted here in order to always return the correct joynr while
// running tests.
va... |
<<<<<<<
/*jslint es5: true, nomen: true */
=======
/*jslint es5: true, node: true, node: true */
>>>>>>>
/*jslint es5: true, nomen: true, node: true */
<<<<<<<
define(
"joynr/messaging/channel/LongPollingChannelMessageReceiver",
[
"global/Promise",
"uuid",
"joynr/messaging/JoynrMes... |
<<<<<<<
/*jslint es5: true, nomen: true */
=======
/*jslint node: true */
>>>>>>>
/*jslint es5: true, nomen: true, node: true */ |
<<<<<<<
/*jslint es5: true, nomen: true */
=======
/*jslint node: true */
>>>>>>>
/*jslint es5: true, nomen: true, node: true */
<<<<<<<
define("joynr/capabilities/CapabilitiesRegistrar", [
"global/Promise",
"joynr/util/UtilInternal",
"joynr/types/DiscoveryEntry",
"joynr/types/ProviderScope",
... |
<<<<<<<
'site-connection-lost',
this.receiveSiteConnectionLost.bind(this)
=======
'site-did-lose-connection',
this.receiveDisconnectSite.bind(this)
>>>>>>>
'site-did-lose-connection',
this.receiveSiteConnectionLost.bind(this)
<<<<<<<
'site-connection-lost',
this.recei... |
<<<<<<<
this.router.notify({channelId: `/portals/${this.id}`, body: updateMessage.serializeBinary()})
=======
getLocalActiveEditorProxy () {
return this.activeEditorProxyForSiteId(this.siteId)
}
activeEditorProxyForSiteId (siteId) {
const leaderId = this.resolveLeaderSiteId(siteId)
const foll... |
<<<<<<<
=======
var workers = [];
>>>>>>>
var workers = [];
<<<<<<<
=======
var killer = function() {
log('exiting.');
for(var i in workers) {
var worker = workers[i];
worker.removeAllListeners(); // Prevent from master respawn
try {
worker.k... |
<<<<<<<
import withFirebaseAuth from "react-with-firebase-auth";
import * as firebaseApp from "firebase/app";
import 'firebase/auth';
import CloseIcon from '@material-ui/icons/Close';
=======
import { isMapsApiEnabled } from '../featureFlags.js';
>>>>>>>
import { isMapsApiEnabled } from '../featureFlags.js';
import ... |
<<<<<<<
var stampit = require('stampit')
var ModbusServerCore = require('./modbus-server-core.js')
var StateMachine = require('stampit-state-machine')
var net = require('net')
var ClientSocket = require('./modbus-tcp-server-client.js')
=======
'use strict'
var stampit = r... |
<<<<<<<
=======
const configuration = tslint.Configuration.findConfiguration(null, '.');
const linterOptions = { fix: false, formatter: 'json', rulesDirectory: 'build/lib/tslint' };
>>>>>>>
<<<<<<<
if (file.relative.startsWith('src/')) { // only lint files in src program
linter.lint(file.relative, content... |
<<<<<<<
// TODO@Ben Electron 2.0.x: force srgb color profile (for https://github.com/Microsoft/vscode/issues/51791)
app.commandLine.appendSwitch('force-color-profile', 'srgb');
let fs = require('fs');
let path = require('path');
let minimist = require('minimist');
let paths = require('./paths');
=======
const minimi... |
<<<<<<<
eventPokemon: [
{"generation":6,"level":50,"isHidden":false,"moves":["waterfall","earthquake","icefang","dragondance"],"pokeball":"cherishball"}
],
=======
viableDoublesMoves: {"dragondance":1,"waterfall":1,"earthquake":1,"bounce":1,"taunt":1,"protect":1,"thunderwave":1,"stoneedge":1,"substitute":1,"... |
<<<<<<<
viableMoves: {"scald":1,"aquatail":1,"zenheadbutt":1,"thunderwave":1,"toxic":1,"slackoff":1,"trickroom":1},
=======
viableMoves: {"scald":1,"aquatail":1,"zenheadbutt":1,"thunderwave":1,"toxic":1,"slackoff":1,"trickroom":1,"trick":1},
viableDoublesMoves: {"scald":1,"aquatail":1,"zenheadbutt":1,"thunderwa... |
<<<<<<<
this.send('|init|chat\n|title|'+this.title+'\n'+userList+'\n'+this.log.slice(-25).join('\n'), connection);
if (global.Tournaments && Tournaments.getTournament(this.id))
Tournaments.getTournament(this.id).update(user);
=======
var modchat = this.getModchatNote();
this.send('|init|chat\n|title|'+this... |
<<<<<<<
code = uglifyJs.minify(code).code;
if(!checkContractLength(code.length)){
cb(null);
return;
}
let deployBlock = new EcmaContractDeployBlock(code, {
randomSeed: random.int(0, 10000),
from: wallet.id,
resourceRent: Strin... |
<<<<<<<
resolve: async (parent, args, context, resolveInfo) => {
const users = await joinMonster(resolveInfo, context, sql => dbCall(sql, knex, context), options)
return users.sort((a, b) => a.id - b.id)
=======
args: {
ids: { type: new GraphQLList(GraphQLInt) }
},
wher... |
<<<<<<<
const handler = deferToType.constructor.name === 'GraphQLObjectType' ? handleSelections : handleUnionSelections
handler.call(this, children, selection.selectionSet.selections, deferToType, namespace, depth, options)
=======
handleSelections(children, selection.selectionSet.selections, ... |
<<<<<<<
function handleUnionSelections(sqlASTNode, children, selections, gqlType, namespace, depth, options) {
=======
function handleUnionSelections(children, selections, gqlType, namespace, depth, options, context) {
>>>>>>>
function handleUnionSelections(sqlASTNode, children, selections, gqlType, namespace, depth... |
<<<<<<<
module.exports = stampit()
.compose(ModbusCore)
.init(function () {
var SerialPort = require('serialport'),
serialport;
var buffer = new Buffer(0);
var init = function () {
this.setState('init');
if (!this.portName) {
... |
<<<<<<<
var page_num = 1;
var no_more = false;
//无限加载
$(window).scroll(function() {
if(no_more) {
return false;
}
if($(window).scrollTop() + $(window).height() == $(document).height()) {
$('.gallery .footer').show();
page_num++; //next page
$.ajax({
url: basePath + '/... |
<<<<<<<
* Version: v1.3.25 (01/21/2014) (Demo Version)
=======
* Version: v1.3.26 (01/26/2014)
>>>>>>>
* Version: v1.3.26 (01/26/2014) (Demo Version)
<<<<<<<
var xArray = ['d', 'e', 'm', 'o', ' ', 'v', 'e', 'r', 's', 'i', 'o', 'n'];
var xClass = Math.floor(Math.random()*12317);
$(scrollerNode).p... |
<<<<<<<
width: 'autoSize',
sortable: true
=======
flex: 1,
sortable: true,
>>>>>>>
flex: 1,
sortable: true |
<<<<<<<
class FileUpload extends React.Component {
static propTypes = {
allowedFileTypes: React.PropTypes.array,
imageUrl: React.PropTypes.string,
imageValidation: React.PropTypes.shape({
exactHeight: React.PropTypes.number,
exactWidth: React.PropTypes.number,
maxHeight: React.PropTypes.... |
<<<<<<<
const _clone = require('lodash/clone');
=======
const _find = require('lodash/find');
>>>>>>>
const _clone = require('lodash/clone');
const _find = require('lodash/find');
<<<<<<<
donutChartData: [],
=======
drawerSiblings: [
{
id: 1,
selected: true
},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.