conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
import org.eclipse.egit.github.core.Download;
import org.eclipse.egit.github.core.Release;
import android.content.Context;
=======
>>>>>>>
import android.content.Context;
<<<<<<<
startActivity(RepositoryActivity.makeIntent(this,
mRepoOwner, mRepoName, mRelease.getTag... |
<<<<<<<
=======
public static final String ACTION_IMPORT = "import";
>>>>>>> |
<<<<<<<
@RemoteProperty
private String cssClass;
=======
@RemoteProperty
private String expandedId;
>>>>>>>
@RemoteProperty
private String cssClass;
@RemoteProperty
private String expandedId; |
<<<<<<<
super(new ConnectionParameters(), new SocketFrameHandler(SocketFactory.getDefault().createSocket("localhost", 5672)));
this.start();
}
=======
super(
new ConnectionParameters(),
new SocketFrameHandler(SocketFactory.getDefault().createSocket("localhost", 5672)),
... |
<<<<<<<
/**
* Condition to trigger automatic connection recovery.
* @since 5.4.0
*/
private Predicate<ShutdownSignalException> connectionRecoveryTriggeringCondition;
=======
/**
* Filter to include/exclude entities from topology recovery.
* @since 4.8.0
*/
private Topolo... |
<<<<<<<
suite.addTestSuite(Firehose.class);
=======
suite.addTest(PersisterRestartTests.suite());
>>>>>>>
suite.addTest(PersisterRestartTests.suite());
suite.addTestSuite(Firehose.class); |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
ch.queueDeclare(QUEUE_NAME, true, false, true, null);
ch.confirmSelect();
ch.setConfirmListener(new ConfirmListener() {
public void handleAck(long seqNo, boolean multiple) {
if (multiple) {
... |
<<<<<<<
new AMQConnection(_params, _mockFrameHandler, handler).start();
=======
new AMQConnection(factory, _mockFrameHandler, handler).start(false);
>>>>>>>
new AMQConnection(factory, _mockFrameHandler, handler).start(); |
<<<<<<<
import com.rabbitmq.client.impl.ConnectionParams;
=======
import com.rabbitmq.client.impl.DefaultThreadFactory;
>>>>>>>
import com.rabbitmq.client.impl.DefaultThreadFactory;
import com.rabbitmq.client.impl.ConnectionParams;
<<<<<<<
private SocketConfigurator socketConf = new DefaultSocketConfigu... |
<<<<<<<
=======
protected void doAutoDelete(boolean durable, int queues) throws IOException {
String[] queueNames = null;
Binding binding = Binding.randomBinding();
channel.exchangeDeclare(binding.x, "direct", durable, true, null);
channel.queueDeclare(binding.q, durable, false, true, null);
cha... |
<<<<<<<
SslContextFactoryTest.class,
LambdaCallbackTest.class,
ChannelAsyncCompletableFutureTest.class,
RecoveryDelayHandlerTest.class
=======
RecoveryDelayHandlerTest.class,
PropertyFileInitialisationTest.class
>>>>>>>
SslContextFactoryTest.class,
LambdaCallbackTest.class,
Channe... |
<<<<<<<
replyCommand.getMethod(); // discard result
Consumer callback = _consumers.remove(consumerTag);
// We need to call back inside the connection thread
// in order avoid races with 'deliver' commands
dispatcher.handleCancelOk(callback,... |
<<<<<<<
public MockSetup(final String baseUrl, final Iterable<HttpMessageConverter<?>> converters) {
this.baseUrl = baseUrl;
this.converters = converters;
this.template = new AsyncRestTemplate();
=======
public MockSetup(final String baseUrl, @Nullable final Iterable<HttpMessageConvert... |
<<<<<<<
import org.bladerunnerjs.api.App;
import org.bladerunnerjs.api.Aspect;
import org.bladerunnerjs.api.Blade;
import org.bladerunnerjs.api.BladerunnerConf;
import org.bladerunnerjs.api.model.exception.request.ContentProcessingException;
import org.bladerunnerjs.api.spec.engine.SpecTest;
import org.bladerunnerjs.ut... |
<<<<<<<
import org.bladerunnerjs.api.BladeWorkbench;
=======
import org.bladerunnerjs.api.BladerunnerConf;
>>>>>>>
import org.bladerunnerjs.api.BladeWorkbench;
import org.bladerunnerjs.api.BladerunnerConf;
<<<<<<<
=======
import org.bladerunnerjs.logging.SLF4JLogger;
import org.bladerunnerjs.plugin.proxy.Virtual... |
<<<<<<<
import static org.bladerunnerjs.api.spec.utility.BRJSAssertions.*;
=======
import static org.bladerunnerjs.testing.utility.BRJSAssertions.*;
import static org.mockito.Mockito.*;
import static org.junit.Assert.*;
>>>>>>>
import static org.bladerunnerjs.api.spec.utility.BRJSAssertions.*;
import static org.juni... |
<<<<<<<
import org.bladerunnerjs.plugin.plugins.bundlers.nodejs.CommonJsSourceModule;
import org.bladerunnerjs.utility.PrimaryRequirePathUtility;
=======
import org.bladerunnerjs.plugin.plugins.bundlers.commonjs.CommonJsSourceModule;
>>>>>>>
import org.bladerunnerjs.plugin.plugins.bundlers.commonjs.CommonJsSourceMod... |
<<<<<<<
import org.n52.iceland.ds.ConnectionProvider;
import org.n52.iceland.ds.HibernateDatasourceConstants;
=======
>>>>>>>
import org.n52.iceland.ds.ConnectionProvider; |
<<<<<<<
SourceModule jsModule = (SourceModule)bundleSet.getBundlableNode().getLinkedAsset(contentPath.properties.get("module"));
IOUtils.copy(jsModule.getReader(), writer);
=======
SourceModule jsModule = bundleSet.getBundlableNode().getSourceModule(contentPath.properties.get("module"));
try (Rea... |
<<<<<<<
@Override
public boolean isScopeEnforced()
{
return false;
}
=======
@Override
public boolean isRequirable()
{
return true;
}
private String getModuleContent() {
return " module.exports = require('br/ServiceRegistry').getService('" + requirePath + "');\n";
}
>>>>>>>
@Override
publi... |
<<<<<<<
this.pluginLocator = pluginLocator;
=======
sdkFolder = dir().file("sdk");
>>>>>>>
this.pluginLocator = pluginLocator;
sdkFolder = dir().file("sdk"); |
<<<<<<<
private FileModificationRegistry fileModificationRegistry = new FileModificationRegistry(new File("."));
=======
private FileModificationRegistry fileModificationRegistry = new FileModificationRegistry(this, new File("."), FalseFileFilter.INSTANCE);
>>>>>>>
private FileModificationRegistry fileModificatio... |
<<<<<<<
private FileModificationRegistry fileModificationRegistry = new FileModificationRegistry(this, new File("."));
private final IO io = new IO();
=======
private FileModificationRegistry fileModificationRegistry = new FileModificationRegistry(new File("."), FalseFileFilter.INSTANCE);
private final IO io = ne... |
<<<<<<<
import org.bladerunnerjs.core.plugin.minifier.MinifierPlugin;
=======
import org.bladerunnerjs.core.plugin.command.CommandPlugin;
>>>>>>>
import org.bladerunnerjs.core.plugin.minifier.MinifierPlugin;
import org.bladerunnerjs.core.plugin.command.CommandPlugin;
<<<<<<<
public static final String CREATING_PL... |
<<<<<<<
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
=======
import java.util.LinkedHashSet;
>>>>>>>
import java.util.LinkedHashSet;
import java.util.LinkedList; |
<<<<<<<
public interface ContentCache
extends Serializable,
TemporalCache,
SpatialCache,
CompositePhenomenonCache {
=======
public interface ContentCache extends Serializable {
/**
* @return the last cache update time
*/
DateTime getLastUp... |
<<<<<<<
public CommanderChainer hasBeenCreatedWithWorkingDir(File workingDir) {
call(new ValueCommand<Void>() {
@Override
public Void call() throws Exception {
new BRJSBuilder(specTest, brjs).hasBeenCreatedWithWorkingDir(workingDir);
return null;
}
});
return commanderChainer;
}
=======
... |
<<<<<<<
import java.util.LinkedHashSet;
=======
import java.util.HashSet;
import java.util.List;
>>>>>>>
import java.util.LinkedHashSet;
import java.util.HashSet;
import java.util.List; |
<<<<<<<
/*
* Copyright (C) 2012-2019 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2020 52°North Initiative for Geospatial Open Source |
<<<<<<<
public SourceAssetLocation(RootNode rootNode, Node parent, File dir, AssetLocation... dependentAssetLocations) {
super(rootNode, parent, dir, dependentAssetLocations);
=======
public SourceAssetLocation(RootNode rootNode, Node parent, File dir, AssetLocation assetLocation) {
super(rootNode, parent, dir,... |
<<<<<<<
=======
import org.bladerunnerjs.utility.FileUtils;
>>>>>>>
<<<<<<<
=======
targetDir = FileUtils.createTemporaryDirectory( this.getClass() );
>>>>>>> |
<<<<<<<
import org.bladerunnerjs.api.Asset;
import org.bladerunnerjs.api.AssetLocation;
import org.bladerunnerjs.api.BundleSet;
import org.bladerunnerjs.api.LinkedAsset;
import org.bladerunnerjs.api.SourceModule;
import org.bladerunnerjs.api.aliasing.AliasDefinition;
import org.bladerunnerjs.api.aliasing.AliasException... |
<<<<<<<
public AppVersionGenerator getAppVersionGenerator()
{
return appVersionGenerator;
}
=======
@Override
public String toString()
{
return getClass().getSimpleName()+", dir: " + dir().getPath();
}
>>>>>>>
public AppVersionGenerator getAppVersionGenerator()
{
return appVersionGenerator;
}
... |
<<<<<<<
import static org.bladerunnerjs.api.spec.utility.BRJSAssertions.*;
=======
import static org.bladerunnerjs.testing.utility.BRJSAssertions.*;
import static org.mockito.Mockito.*;
import static org.junit.Assert.*;
>>>>>>>
import static org.bladerunnerjs.api.spec.utility.BRJSAssertions.*;
import static org.mock... |
<<<<<<<
import org.bladerunnerjs.plugin.plugins.bundlers.nodejs.CommonJsSourceModule;
import org.bladerunnerjs.utility.PrimaryRequirePathUtility;
=======
import org.bladerunnerjs.plugin.plugins.bundlers.commonjs.CommonJsSourceModule;
>>>>>>>
import org.bladerunnerjs.plugin.plugins.bundlers.commonjs.CommonJsSourceMod... |
<<<<<<<
=======
import org.bladerunnerjs.model.engine.Node;
import org.bladerunnerjs.model.exception.request.ContentFileProcessingException;
import org.bladerunnerjs.model.exception.request.ContentProcessingException;
import org.bladerunnerjs.model.exception.request.MalformedTokenException;
>>>>>>>
<<<<<<<
Node... |
<<<<<<<
BladeWorkbench workbench = blade.workbench();
updateRequirePrefix(workbench.assetLocations(), sourceAppRequirePrefix, sourceBladesetRequirePrefix + "/" + blade.getName(), blade.requirePrefix());
=======
Workbench workbench = blade.workbench();
updateRequirePrefix(workbench, sourceAppRequi... |
<<<<<<<
=======
private App app;
private NodeProperties appProperties;
>>>>>>>
private App app;
private NodeProperties appProperties;
<<<<<<<
=======
app = assetLocation.getAssetContainer().getApp();
appProperties = app.nodeProperties("fully-qualified-linked-asset");
>>>>>>>
app = assetLocation.getAsse... |
<<<<<<<
import org.bladerunnerjs.model.Theme;
=======
import org.bladerunnerjs.model.JsLib;
>>>>>>>
import org.bladerunnerjs.model.Theme;
import org.bladerunnerjs.model.JsLib;
<<<<<<<
standardBladeTheme = blade.theme("theme");
=======
sdkLib = brjs.sdkLib();
sdkThirdpartyLib = brjs.sdkNonBladeRunnerLib("... |
<<<<<<<
import org.bladerunnerjs.utility.SourceModuleResolver;
import org.bladerunnerjs.utility.reader.factory.JsCommentAndCodeBlockStrippingReaderFactory;
import org.bladerunnerjs.utility.reader.factory.JsCommentStrippingReaderFactory;
=======
import org.bladerunnerjs.utility.reader.JsCommentAndCodeBlockStrippingRea... |
<<<<<<<
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashSet;
=======
import java.util.Collections;
>>>>>>>
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashSet;
<<<<<<<
private MemoizedFile assetFile;
=======
private App app;
protected MemoizedFile assetFile... |
<<<<<<<
then(indexPageResponse.toString().replace("\n", "")).textEquals(
("<style>template{display:none;}</style>\n"+
"<template id=\"brjs-html-templates-loaded\"></template>\n"+
response.toString()).replace("\n","") );
=======
then(indexPageResponse.toString().replace("\n", "")).equals(
("<... |
<<<<<<<
given(aspect.theme("standard")).hasBeenCreated()
.and(aspect).indexPageHasContent("<@css.bundle theme=\"standard\"@/>")
.and(commonTheme).containsFiles("style.css", "style_en.css")
.and(standardTheme).containsFiles("style.css", "style_en.css");
=======
given(aspect).containsFile("themes/standard/... |
<<<<<<<
=======
import org.bladerunnerjs.api.AssetLocation;
import org.bladerunnerjs.api.BladerunnerConf;
>>>>>>>
import org.bladerunnerjs.api.BladerunnerConf;
<<<<<<<
=======
import org.bladerunnerjs.api.aliasing.AliasDefinition;
import org.bladerunnerjs.api.model.exception.request.ContentProcessingException;
i... |
<<<<<<<
import org.bladerunnerjs.model.BRJSTestModelFactory;
=======
import org.bladerunnerjs.model.TemplateGroup;
import org.bladerunnerjs.model.TestModelAccessor;
>>>>>>>
import org.bladerunnerjs.model.TemplateGroup;
import org.bladerunnerjs.model.BRJSTestModelFactory; |
<<<<<<<
getTarget().genFile(g,outputFileST, getListenerFileName());
if ( getTemplates().isDefined("ListenerHeaderFile") ) {
String fileName = getListenerHeaderFileName();
if ( fileName==null ) return;
ST headerFileST = getTemplates().getInstanceOf("ListenerHeaderFile");
getTarget().genListenerHeaderFil... |
<<<<<<<
import org.antlr.v4.runtime.misc.NotNull;
import java.util.*;
=======
import org.antlr.v4.runtime.misc.Interval;
import org.antlr.v4.runtime.misc.NotNull;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
>>>>>>>
import org.antlr.v4.runtime.misc.Interval;
im... |
<<<<<<<
if ( D.isAcceptState && D.configs.hasSemanticContext ) {
predicateDFAState(D, decState);
if ( D.predicates!=null ) {
=======
if ( D.isAcceptState && D.configset.hasSemanticContext ) {
int nalts = decState.getNumberOfTransitions();
DFAState.PredPrediction[] predPredictions =
predica... |
<<<<<<<
public boolean isPrecedenceRule;
=======
@Override
public int getStateType() {
return RULE_START;
}
>>>>>>>
public boolean isPrecedenceRule;
@Override
public int getStateType() {
return RULE_START;
} |
<<<<<<<
for (GrammarAST rref : t.getNodesWithType(RULE_REF)) {
if ( rref.getText().equals(ruleName) ) {
rref.setText(ruleName+"<"+LeftRecursiveRuleTransformer.PRECEDENCE_OPTION_NAME+"="+prec+">");
=======
// get all top-level rule refs from ALT
List<GrammarAST> outerAltRuleRefs = t.getNodesWithTypePreord... |
<<<<<<<
public static Locale defaultLocale = Locale.getDefault();// 设置系统语言
public static final String xJavaFxToolVersions = "V0.2.0";// xJavaFxTool版本信息
public static final int xJavaFxToolVersionsInteger = 12;// xJavaFxTool更新信息
/**
* 集中存放配置 key 的地方
*/
public static class Keys {
/**
* 窗体相关配置... |
<<<<<<<
mes(n, player.getWorld().getServer().getConfig().GAME_TICK * 2, "Would you like to be teleport to Varrock centre for 1000 gold?");
=======
mes(player, n, config().GAME_TICK * 2, "Would you like to be teleport to Varrock centre for 1000 gold?");
>>>>>>>
mes(n, config().GAME_TICK * 2, "Would you li... |
<<<<<<<
public Shop getShop() {
return shop;
}
@Override
public boolean blockOpLoc(GameObject obj, String command,
Player player) {
=======
public boolean blockOpLoc(Player player, GameObject obj, String command) {
>>>>>>>
public Shop getShop() {
return shop;
}
@Override
public boolean blockO... |
<<<<<<<
import com.openrsc.server.model.action.WalkToActionNpc;
import com.openrsc.server.model.Point;
import com.openrsc.server.model.Skills.SKILLS;
import com.openrsc.server.model.container.Item;
=======
>>>>>>>
import com.openrsc.server.model.action.WalkToActionNpc;
import com.openrsc.server.model.Point;
import c... |
<<<<<<<
mes(n, player.getWorld().getServer().getConfig().GAME_TICK * 2, "The headless, spirit of Viyeldi animates and walks towards you.");
=======
mes(player, n, config().GAME_TICK * 2, "The headless, spirit of Viyeldi animates and walks towards you.");
>>>>>>>
mes(n, config().GAME_TICK * 2, "The hea... |
<<<<<<<
//message(player, n, player.getWorld().getServer().getConfig().GAME_TICK * 2, "You quickly grab the Holy Force Spell and cast it at the Demon.");
mes("You thrust the Holy Force spell in front of the spirit.");
mes(n, player.getWorld().getServer().getConfig().GAME_TICK * 2, "A bright, holy light streams ou... |
<<<<<<<
import org.joda.time.DateTimeZone;
=======
>>>>>>>
<<<<<<<
import org.n52.sos.ds.hibernate.entities.observation.AbstractTemporalReferencedObservation;
import org.n52.sos.ds.hibernate.entities.observation.BaseObservation;
import org.n52.sos.ds.hibernate.entities.observation.Observation;
import org.n52.sos.... |
<<<<<<<
delay(player.getWorld().getServer().getConfig().GAME_TICK * 3);
mes("The ship arrives at Entrana");
=======
delay(config().GAME_TICK * 3);
mes(player, "The ship arrives at Entrana");
>>>>>>>
delay(config().GAME_TICK * 3);
mes("The ship arrives at Entrana");
<<<<<<<
delay(pl... |
<<<<<<<
mes(n, player.getWorld().getServer().getConfig().GAME_TICK * 2, "The Shaman seems to be fighting an inner battle.");
=======
mes(player, n, config().GAME_TICK * 2, "The Shaman seems to be fighting an inner battle.");
>>>>>>>
mes(n, config().GAME_TICK * 2, "The Shaman seems to be fighting an... |
<<<<<<<
mes(third_nezikchened, player.getWorld().getServer().getConfig().GAME_TICK * 2, "The Demon starts chanting...",
=======
mes(player, third_nezikchened, config().GAME_TICK * 2, "The Demon starts chanting...",
>>>>>>>
mes(third_nezikchened, config().GAME_TICK * 2, "The Demon starts chanting...",
<<... |
<<<<<<<
=======
if (!getOwner().getInventory().hasItemId(item.getID())) {
interrupt();
return;
}
if (getOwner().inCombat()) {
interrupt();
return;
}
>>>>>>>
<<<<<<<
if (owner.getInventory().remove(item.getID(),1,false) > -1) {
owner.getInventory().add(newItem,true);
... |
<<<<<<<
import com.openrsc.server.external.*;
=======
import com.openrsc.server.event.rsc.impl.BankEventNpc;
import com.openrsc.server.event.rsc.impl.RangeEventNpc;
import com.openrsc.server.event.rsc.impl.StrPotEventNpc;
import com.openrsc.server.event.rsc.impl.ThrowingEvent;
import com.openrsc.server.external.*;
>... |
<<<<<<<
mes(n, player.getWorld().getServer().getConfig().GAME_TICK * 2, "Enter your Bank PIN to downgrade your Iron Man status.");
=======
mes(player, n, config().GAME_TICK * 2, "Enter your Bank PIN to downgrade your Iron Man status.");
>>>>>>>
mes(n, config().GAME_TICK * 2, "Enter your Bank PIN to do... |
<<<<<<<
player.setBatchEvent(new BatchEvent(player, 600, Formulae
.getRepeatTimes(player, SKILLS.FLETCHING.id()), false) {
=======
player.setBatchEvent(new BatchEvent(player, 600, "Fletching String Bow",
Formulae.getRepeatTimes(player, Skills.FLETCHING), false) {
>>>>>>>
int amount = 10;
if (headlessAr... |
<<<<<<<
owner.setBatchEvent(new BatchEvent(owner, 1200, Formulae.getRepeatTimes(owner, SKILLS.CRAFTING.id()), false) {
=======
owner.setBatchEvent(new BatchEvent(owner, 1200, "Craft Jewelry", Formulae.getRepeatTimes(owner, Skills.CRAFTING), false) {
>>>>>>>
owner.setBatchEvent(new Ba... |
<<<<<<<
mes(n, player.getWorld().getServer().getConfig().GAME_TICK * 2, "Gujuo offers you an awe inspiring jungle crafted Totem Pole.");
=======
mes(player, n, config().GAME_TICK * 2, "Gujuo offers you an awe inspiring jungle crafted Totem Pole.");
>>>>>>>
mes(n, config().GAME_TICK * 2, "Gujuo o... |
<<<<<<<
public static boolean WANT_NEW_RARE_DROP_TABLES = false;
=======
public static boolean WANT_PARTIES = false;
>>>>>>>
public static boolean WANT_PARTIES = false;
public static boolean WANT_NEW_RARE_DROP_TABLES = false;
<<<<<<<
WANT_NEW_RARE_DROP_TABLES = Boolean.parseBoolean(props.getProperty("wan... |
<<<<<<<
thinkbubble(item);
delay(player.getWorld().getServer().getConfig().GAME_TICK * 2);
=======
thinkbubble(player, item);
delay(config().GAME_TICK * 2);
>>>>>>>
thinkbubble(item);
delay(config().GAME_TICK * 2); |
<<<<<<<
Server.getServer().getEventHandler().add(batchEvent);
} else {
this.batchEvent = null;
=======
Server.getServer().getGameEventHandler().add(batchEvent);
>>>>>>>
Server.getServer().getGameEventHandler().add(batchEvent);
} else {
this.batchEvent = null; |
<<<<<<<
if (itemToAdd.getDef(player.getWorld()).isStackable()) {
for (int index = 0; index < list.size(); index++) {
Item existingStack = list.get(index);
if (itemToAdd.equals(existingStack) && existingStack.getAmount() < Integer.MAX_VALUE) {
existingStack.setAmount(existingStack.getAmount()... |
<<<<<<<
player.setBatchEvent(new BatchEvent(player, 600, Formulae
.getRepeatTimes(player, SKILLS.HERBLAW.id()), false) {
=======
player.setBatchEvent(new BatchEvent(player, 600, "Herblaw Identify Herb",
Formulae.getRepeatTimes(player, Skills.HERBLAW), false) {
>>>>>>>
player.setBatchEvent(new BatchEvent... |
<<<<<<<
import com.openrsc.server.constants.ItemId;
import com.openrsc.server.constants.Skills;
=======
import com.openrsc.server.constants.NpcId;
>>>>>>>
import com.openrsc.server.constants.ItemId;
import com.openrsc.server.constants.Skills;
import com.openrsc.server.constants.NpcId;
<<<<<<<
import com.openrsc.s... |
<<<<<<<
mes(npc, player.getWorld().getServer().getConfig().GAME_TICK * 2, "You give Thrander a " + itemLower,
=======
mes(player, npc, config().GAME_TICK * 2, "You give Thrander a " + itemLower,
>>>>>>>
mes(npc, config().GAME_TICK * 2, "You give Thrander a " + itemLower,
<<<<<<<
mes(npc, player.... |
<<<<<<<
import java.util.Arrays;
=======
import static java.util.stream.Collectors.toSet;
>>>>>>>
import static java.util.stream.Collectors.toSet;
<<<<<<<
import org.n52.janmayen.i18n.LocaleHelper;
=======
import org.n52.shetland.ogc.om.ObservationStream;
>>>>>>>
import org.n52.janmayen.i18n.LocaleHelper;
impo... |
<<<<<<<
protected boolean sessionSelector = false;
=======
protected long failoverRetryInterval = DEFAULT_FAILOVER_RETRY_INTERVAL;
protected int failoverRetryCount = DEFAULT_FAILOVER_RETRY_COUNT;
>>>>>>>
protected boolean sessionSelector = false;
protected long failoverRetryInterval = D... |
<<<<<<<
EsConfig esConfig = new EsConfig(EsConstants.clusterName, new String[]{"localhost:9300"});
builder.setBolt(BOLT_ID, new EsIndexBolt(esConfig), 1).shuffleGrouping(SPOUT_ID);
=======
EsConfig esConfig = new EsConfig();
esConfig.setClusterName(EsConstants.clusterName);
esC... |
<<<<<<<
=======
import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelFactory;
import org.jboss.netty.channel.group.ChannelGroup;
import org.jboss.netty.channel.group.DefaultChannelGroup;
import org.jboss.netty.channel.socket.nio.NioServerSocke... |
<<<<<<<
/**
* @since 0.11
*/
class EsState implements State {
=======
/**
* Trident State for storing tuple to ES document.
*/
public class EsState implements State {
>>>>>>>
/**
* Trident State for storing tuple to ES document.
* @since 0.11
*/
class EsState implements State {
<<<<<<<
public void update... |
<<<<<<<
private String TEST_TOPIC = "testTopic";
=======
private static final Logger LOG = LoggerFactory.getLogger(KafkaUtilsTest.class);
>>>>>>>
private String TEST_TOPIC = "testTopic";
private static final Logger LOG = LoggerFactory.getLogger(KafkaUtilsTest.class); |
<<<<<<<
import org.apache.storm.elasticsearch.common.EsTupleMapper;
=======
>>>>>>>
import org.apache.storm.elasticsearch.common.EsTupleMapper;
<<<<<<<
public class EsPercolateBoltTest extends AbstractEsBoltTest {
private EsPercolateBolt bolt;
=======
public class EsPercolateBoltTest extends AbstractEsBoltInt... |
<<<<<<<
if(o instanceof Long) {
return ((Long) o ).intValue();
} else if (o instanceof Integer) {
return (Integer) o;
} else if (o instanceof Short) {
return ((Short) o).intValue();
} else if (o instanceof String) {
return Integer.parseInt(... |
<<<<<<<
import com.google.common.testing.NullPointerTester;
=======
import backtype.storm.Config;
import backtype.storm.task.OutputCollector;
>>>>>>>
import com.google.common.testing.NullPointerTester;
import backtype.storm.Config;
import backtype.storm.task.OutputCollector; |
<<<<<<<
import org.apache.storm.utils.DisallowedStrategyException;
=======
import org.apache.storm.utils.Utils;
>>>>>>>
import org.apache.storm.utils.DisallowedStrategyException;
import org.apache.storm.utils.Utils; |
<<<<<<<
import backtype.storm.metric.api.IMetric;
import backtype.storm.metric.api.rpc.IShellMetric;
=======
import backtype.storm.multilang.ShellMsg;
import backtype.storm.multilang.SpoutMsg;
>>>>>>>
import backtype.storm.metric.api.IMetric;
import backtype.storm.metric.api.rpc.IShellMetric;
import backtype.storm.m... |
<<<<<<<
=======
import redis.clients.jedis.Pipeline;
import storm.trident.state.JSONNonTransactionalSerializer;
import storm.trident.state.JSONOpaqueSerializer;
import storm.trident.state.JSONTransactionalSerializer;
>>>>>>>
import redis.clients.jedis.Pipeline;
<<<<<<<
public class RedisMapState<T> extends Abstract... |
<<<<<<<
=======
import org.apache.storm.elasticsearch.common.EsTupleMapper;
>>>>>>>
import org.apache.storm.elasticsearch.common.EsTupleMapper;
<<<<<<<
/**
* @since 0.11
*/
class EsStateFactory implements StateFactory {
private final EsConfig esConfig;
=======
/**
* StateFactory for providing EsState.
*... |
<<<<<<<
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.data.ACL;
import org.apache.zookeeper.data.Id;
=======
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
>>>>>>>
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.data.ACL;
import org.apache.zookeeper.data.Id;
<<<<<<<
... |
<<<<<<<
private String sched_status; // required
private String owner; // required
private int replication_count; // required
=======
private String sched_status; // optional
private String owner; // optional
>>>>>>>
private String sched_status; // optional
private String owner; // optional
private i... |
<<<<<<<
Math.abs(r.nextInt()) + "" +
Math.abs(r.nextInt()));
configOut.println("");
configOut.close();
}
}
/**
* Possibly creates the configuration file wit zend command line options.
*
* @throws ... |
<<<<<<<
=======
import java.util.List;
>>>>>>> |
<<<<<<<
protected AbstractFeatureOfInterest getEntity(String id, Session session) {
return new FeatureOfInterestDAO(daoFactory).getFeatureOfInterest(id, session);
=======
protected FeatureOfInterest getEntity(String id, Session session) {
return new FeatureOfInterestDAO(daoFactory).get(id, ses... |
<<<<<<<
// Set to 0 until we have UI to perform undo
public static final long UNDO_DELAY = 0;
// For recurring events which instances of the series are being modified
public static final int MODIFY_UNINITIALIZED = 0;
public static final int MODIFY_SELECTED = 1;
public static final int MODIFY_AL... |
<<<<<<<
=======
// These must be in sync with the array preferences_alert_type_values
static final String ALERT_TYPE_ALERTS = "0";
static final String ALERT_TYPE_STATUS_BAR = "1";
static final String ALERT_TYPE_OFF = "2";
// The value to use when setting Calendar to use the device's time zone
... |
<<<<<<<
=======
static final String KEY_DETAIL_VIEW = "DETAIL_VIEW";
// An arbitrary constant to pass to the GoogleLoginHelperService
private static final int GET_ACCOUNT_REQUEST = 1;
private Bundle mExtras;
>>>>>>>
static final String KEY_DETAIL_VIEW = "DETAIL_VIEW";
private Bundle mExtras... |
<<<<<<<
import org.n52.sos.ds.hibernate.entities.feature.FeatureOfInterest;
=======
import org.n52.sos.ds.hibernate.entities.ResultTemplate;
>>>>>>>
import org.n52.sos.ds.hibernate.entities.feature.FeatureOfInterest;
import org.n52.sos.ds.hibernate.entities.ResultTemplate; |
<<<<<<<
@Override
protected void finalize() throws Throwable {
close();
}
=======
/**
* Selects the slave device if not already selected on this bus
*
* @param device device to select
* @return 0 if success or else (-errno - 10000)
*/
private int checkSlaveSelect(... |
<<<<<<<
* This is abstraction of i2c bus. This interface allows bus to return i2c device.
*
* @author Daniel Sendula
*
=======
* This is abstraction of i2c bus. This interface allows the bus to return i2c device.
*
* @author Daniel Sendula, refactored by <a href="http://raspelikan.blogspot.co.at">RasPelikan</... |
<<<<<<<
* This is implementation of i2c bus. This class keeps underlying linux file descriptor of
* particular bus. As all reads and writes from/to i2c bus are blocked I/Os current implementation uses only
* one file per bus for all devices. Device implementations use this class file handle.
*
* @author Daniel Sen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.