conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
public TransitMode getTransitMode() {
return pattern.mode;
=======
public TraverseMode getTransitMode() {
return pattern.getMode();
>>>>>>>
public TransitMode getTransitMode() {
return pattern.getMode(); |
<<<<<<<
weight = slopeSpeedEffectiveLength / options.speed;
} else if (options.getModes().contains(TraverseMode.BICYCLE)) {
switch (options.optimize) {
=======
weight = slopeSpeedEffectiveLength / speed;
} else if (s0.getNonTransitMode(options).equals(TraverseMode.B... |
<<<<<<<
options.optimize = OptimizeType.TRIANGLE;
options.speed = 6.0;
=======
options.optimizeFor = OptimizeType.TRIANGLE;
options.setBikeSpeed(6.0);
>>>>>>>
options.optimize = OptimizeType.TRIANGLE;
options.setBikeSpeed(6.0); |
<<<<<<<
=======
import com.google.gerrit.server.restapi.change.CommentJson.CommentFormatter;
import com.google.gwtorm.server.OrmException;
>>>>>>>
import com.google.gerrit.server.restapi.change.CommentJson.CommentFormatter;
<<<<<<<
private final ChangeData.Factory changeDataFactory;
private final Provider<Comme... |
<<<<<<<
=======
protected TableTripPattern pattern;
>>>>>>>
<<<<<<<
public PatternEdge(TransitVertex fromv, TransitVertex tov) {
=======
public PatternEdge(TransitVertex fromv, TransitVertex tov, TableTripPattern pattern) {
>>>>>>>
public PatternEdge(TransitVertex fromv, TransitVertex tov) { |
<<<<<<<
import org.apache.bsf.BSFException;
=======
import org.opentripplanner.analyst.request.IsoChroneSPTRendererAccSampling;
import org.opentripplanner.analyst.request.Renderer;
import org.opentripplanner.analyst.request.SPTCache;
import org.opentripplanner.analyst.request.SampleGridRenderer;
import org.opentrippl... |
<<<<<<<
public class ResultFeature implements Serializable{
=======
import org.opentripplanner.analyst.pointset.PropertyMetadata;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.datab... |
<<<<<<<
=======
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
import java.util.TimeZone;
>>>>>>>
<<<<<<<
=======
import org.opentripplanner.model.FeedScopedId;
import org.opentripplanner.model.Route;
import org.opentripplanner.model.Trip;
import o... |
<<<<<<<
import java.io.*;
import java.lang.reflect.Field;
=======
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
>>>>>>>
import java.io.*;
import java.lang.reflect.Field;
<<<<<<<
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.JsonNode;
import co... |
<<<<<<<
public static long getPathSize(Configuration conf, Path path) throws IOException {
return getPathSize(FileSystem.get(conf), path);
}
public static long getPathSize(FileSystem fs, Path path) throws IOException {
if (!fs.exists(path)) {
return -1L;
}
FileStatus[] stati = null;
try {
... |
<<<<<<<
final List claimsSupported = new ArrayList((List) m.get("claims_supported"));
claimsSupported.remove("zone_info");
claimsSupported.add("zoneinfo");
m.put("claims_supported", claimsSupported);
=======
>>>>>>>
final List claimsSupported = new ArrayList((List) m.get("c... |
<<<<<<<
this.waitUntilInitialized();
try {
dispatchGroup.enter();
syncConfig.addSynchronizedDocument(namespace, documentId);
triggerListeningToNamespace(namespace);
} finally {
dispatchGroup.exit();
}
=======
for (final BsonValue documentId : documentIds) {
syncConfi... |
<<<<<<<
if(_session.jsch.getLogger().isEnabled(Logger.DEBUG)) {
_session.jsch.getLogger().log(Logger.DEBUG, "waiting max. "+t+" ms for channel reply ...");
}
=======
this.notifyme=1;
>>>>>>>
if(_session.jsch.getLogger().isEnabled(Logger.DEBUG)) {
... |
<<<<<<<
/**
* a pool of all sessions currently active for this JSch instance.
* Updated by the sessions on connect and disconnect, nowhere used.
*/
java.util.Vector pool=new java.util.Vector();
java.util.Vector identities=new java.util.Vector();
=======
private java.util.Vector sessionPool = new ja... |
<<<<<<<
/**
* checks whether this file is a directory.
* @return true if the permissions are included in the
* structure and the directory bit is set.
*/
=======
private boolean isType(int mask) {
return (flags&SSH_FILEXFER_ATTR_PERMISSIONS)!=0 &&
(permissions&S_IFMT)==mask;
}
p... |
<<<<<<<
/**
* Usually not to be used by applications.
* A DSA signing or signature checking algorithm.
* <p>
* This interface is a slimmed down and specialized (on DSA) version
* of {@link java.security.Signature}.
* </p>
* <p>
* It will be used by the library to check the server's signature
* during key e... |
<<<<<<<
/**
* creates a new session object from a JSch.
*/
Session(JSch jsch) throws JSchException{
=======
Session(JSch jsch, String username, String host, int port) throws JSchException{
>>>>>>>
/**
* creates a new session object from a JSch.
*/
Session(JSch jsch, String username, String host... |
<<<<<<<
/**
* Writes an encoded form of the private
* key to an OutputStream.
*/
// TODO: describe the format.
=======
/**
* Writes the plain private key to the given output stream.
* @param out output stream
* @see #writePrivateKey(java.io.OutputStream out, byte[] passphrase)
*/
>>>>>>>
... |
<<<<<<<
/**
* Uploads a file.
* @param src the local source file name, absolute or relative to the
* <a href="#current-directory">current local directory</a>.
* @param dst the remote destination file name, absolute or relative to the
* <a href="#current-directory">current remote directory</a>.
... |
<<<<<<<
* @see <a href="http://tools.ietf.org/html/rfc4254#section-6.4">RFC4254 6.4 Environment Variable Passing</a>
=======
>>>>>>>
<<<<<<<
* @see <a href="http://tools.ietf.org/html/rfc4254#section-6.4">RFC4254 6.4 Environment Variable Passing</a>
=======
>>>>>>>
<<<<<<<
* @see <a href="http://tools.... |
<<<<<<<
int remoteSize = buf.getInt();
if(jsch.getLogger().isEnabled(Logger.INFO)) {
jsch.getLogger().log(Logger.INFO, "SSH_MSG_CHANNEL_DATA received, channel: "+i + ", bytes: " + remoteSize);
}
channel.addRemoteWindowSize(remoteSize);
=======
channel.addRemoteWindowSi... |
<<<<<<<
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
=======
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
>>>>>>>
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLay... |
<<<<<<<
if (mirw.isMergedInto(mirw.parseCommit(accepted), mirw.parseCommit(commit))) {
log.debug(
"Dependency {} merged into branch head {}.", commit.getName(), accepted.getName());
return true;
}
}
// check if the commit associated change is merged in the ... |
<<<<<<<
public RuntimeInfo(Context context, String[] command) {
this.context = context;
mapper = new ObjectMapper();
String resultOfTop = executeCommand(command);
topCommandRows = resultOfTop.split("\n");
}
public String getCPUInfo() throws AndroidAgentException {
=======
... |
<<<<<<<
case Constants.Operation.APP_RESTRICTION:
return buildApplicationRestrictionOpearation(operation);
=======
case Constants.Operation.WORK_PROFILE:
return buildWorkProfileOperation(operation);
>>>>>>>
case Constants.Operation.APP_RESTRICTION:
return buildApplicationRestrictionOpearation(op... |
<<<<<<<
protected void doGet(HttpServletRequest req, HttpServletResponse rsp) throws IOException {
toGerrit(req.getRequestURI(), req, rsp);
=======
protected void doGet(final HttpServletRequest req, final HttpServletResponse rsp)
throws IOException {
toGerrit(... |
<<<<<<<
import org.wso2.carbon.device.mgt.common.app.mgt.ApplicationManagementException;
=======
import org.wso2.carbon.device.mgt.common.notification.mgt.*;
>>>>>>>
import org.wso2.carbon.device.mgt.common.app.mgt.ApplicationManagementException;
import org.wso2.carbon.device.mgt.common.notification.mgt.*;
<<<<<<<
... |
<<<<<<<
=======
import java.io.File;
import java.math.BigDecimal;
import java.math.RoundingMode;
import android.support.v4.content.ContextCompat;
import org.wso2.emm.agent.utils.Response;
>>>>>>> |
<<<<<<<
import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.mobile.impl.MobileDeviceManagementConstants;
=======
import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceManagementConstants... |
<<<<<<<
=======
/**
* Get a list of devices based on the username.
* @param username Username of the device owner.
* @return A list of devices.
* @throws MDMAPIException
*/
@GET
@Produces({ MediaType.APPLICATION_JSON })
@Path("listall/user/{username}")
public List<org.wso2.carbon.device.mgt.common.Devic... |
<<<<<<<
case Constants.Operation.APP_RESTRICTION:
restrictAccessToApplications(operation);
=======
case Constants.Operation.VPN:
configureVPN(operation);
break;
>>>>>>>
case Constants.Operation.VPN:
configureVPN(operation);
break;
case Constants.Operation.APP_RESTRICTION:
restrict... |
<<<<<<<
Response deviceCompatibility = state.evaluateCompatibility();
if (!deviceCompatibility.getCode()) {
txtSeverAddress.setText(deviceCompatibility.getDescriptionResourceID());
CommonUtils.callSystemApp(this,"sd","werwe");
=======
Response compatibility = state.evaluateCompatibility();
if (!compati... |
<<<<<<<
@Override
public void onProfileProvisioningComplete(Context context, Intent intent) {
Intent launch = new Intent(context, EnableProfileActivity.class);
launch.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
context... |
<<<<<<<
*
=======
>>>>>>> |
<<<<<<<
import com.github.juanmf.java2plant.render.filters.Filter;
import com.github.juanmf.java2plant.render.filters.Filters;
=======
import com.github.juanmf.java2plant.Parser;
import com.github.juanmf.java2plant.structure.Aggregation;
import com.github.juanmf.java2plant.structure.Extension;
>>>>>>>
import com.git... |
<<<<<<<
=======
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Arrays.<NativeModule>asList(
new ExtraDimensionsModule(reactContext)
);
}
>>>>>>>
<<<<<<<
@Override
public List<NativeModule> createNativeModules... |
<<<<<<<
public void showSessionDetail(@NonNull Fragment fragment, @NonNull Session session, int requestCode) {
SessionDetailActivity.startForResult(fragment, session, requestCode);
}
public void showMain(@NonNull Activity activity) {
MainActivity.start(activity);
=======
public void s... |
<<<<<<<
import retrofit2.GsonConverterFactory;
import retrofit2.Response;
=======
>>>>>>>
import retrofit2.Response;
<<<<<<<
import retrofit2.RxJavaCallAdapterFactory;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
=======
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrof... |
<<<<<<<
import com.microsoft.codepush.react.CodePush;
import com.reactnativejitsimeet.JitsiMeetPackage;
=======
import com.centaurwarchief.smslistener.SmsListenerPackage;
>>>>>>>
import com.reactnativejitsimeet.JitsiMeetPackage;
<<<<<<<
new CodePush("_C083_CqL7CmKwASrv6Xrj1wqH7erJMhIBnRQ", MainApplication... |
<<<<<<<
import com.RNRSA.RNRSAPackage;
=======
import com.brentvatne.react.ReactVideoPackage;
>>>>>>>
import com.RNRSA.RNRSAPackage;
import com.brentvatne.react.ReactVideoPackage;
<<<<<<<
new RNRSAPackage(),
=======
new ReactVideoPackage(),
>>>>>>>
new RNRSAPackage(),
... |
<<<<<<<
ElasticTestUtils.configure(
elasticsearchConfig, nodeInfo.hostname, nodeInfo.port, indicesPrefix);
return Guice.createInjector(new InMemoryModule(elasticsearchConfig));
=======
ElasticTestUtils.configure(elasticsearchConfig, container, indicesPrefix);
return Guice.createInjector(new In... |
<<<<<<<
import java.util.HashSet;
=======
>>>>>>>
import java.util.HashSet;
<<<<<<<
import java.util.Set;
=======
>>>>>>>
import java.util.Set;
<<<<<<<
// we have removed all generated values for RECORD_TYPE_1, _2 and _3, so 'allPossibleValuesForRecordType123' has be empty now
for (Set... |
<<<<<<<
public static ProtoBlock noOpBlock() {
return new ProtoBlock() {
public ProtoObject applyTo(ProtoObject r, ThisContext t) {
return ProtoObject.NIL;
}
};
}
=======
public static ProtoObject p216(ProtoObject receiver, ThisContext thisContext, ProtoObject arg1, ProtoObject arg2, ProtoObject ... |
<<<<<<<
private final PatchSetInfoFactory psInfoFactory;
=======
private final PersonIdent myIdent;
>>>>>>>
private final PatchSetInfoFactory psInfoFactory;
private final PersonIdent myIdent;
<<<<<<<
final PatchSetInfoFactory psif,
PatchListCache patchListCache, SchemaFactory<ReviewDb> schema) {... |
<<<<<<<
proto
.getPatchSetList()
.stream()
.map(bytes -> parseProtoFrom(PatchSetProtoConverter.INSTANCE, bytes))
=======
proto.getPatchSetList().stream()
.map(PATCH_SET_CODEC::decode)
>>>>>>>
... |
<<<<<<<
import won.protocol.owner.OwnerProtocolOwnerServiceClient;
=======
import won.protocol.repository.FacetRepository;
>>>>>>>
import won.protocol.owner.OwnerProtocolOwnerServiceClient;
import won.protocol.repository.FacetRepository;
<<<<<<<
private OwnerProtocolOwnerServiceClient ownerProtocolOwnerService;
... |
<<<<<<<
import java.net.URI;
import java.time.Duration;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
=======
>>>>>>>
<<<<<<<
//acknowledge the command
Model messageModel = WonRdfUtils.MessageUtils.textMessage("Ok, I'm going to validate the data in our conne... |
<<<<<<<
import com.hp.hpl.jena.vocabulary.DCTerms;
=======
import com.hp.hpl.jena.vocabulary.RDF;
>>>>>>>
import com.hp.hpl.jena.vocabulary.DCTerms;
import com.hp.hpl.jena.vocabulary.RDF; |
<<<<<<<
ElasticTestUtils.configure(elasticsearchConfig, nodeInfo.port, indicesPrefix);
return Guice.createInjector(new InMemoryModule(elasticsearchConfig));
=======
ElasticTestUtils.configure(
elasticsearchConfig, nodeInfo.hostname, nodeInfo.port, indicesPrefix);
return Guice.createInjector(ne... |
<<<<<<<
import won.bot.framework.eventbot.bus.EventBus;
=======
import won.bot.framework.eventbot.action.impl.needlifecycle.AbstractCreateNeedAction;
>>>>>>>
import won.bot.framework.eventbot.bus.EventBus;
import won.bot.framework.eventbot.action.impl.needlifecycle.AbstractCreateNeedAction; |
<<<<<<<
=======
import won.bot.framework.events.action.impl.CreateNeedWithFacetsAction;
import won.bot.framework.events.bus.EventBus;
>>>>>>>
import won.bot.framework.events.action.impl.CreateNeedWithFacetsAction;
import won.bot.framework.events.bus.EventBus;
<<<<<<<
import won.bot.framework.events.action.BaseEvent... |
<<<<<<<
import won.protocol.model.Need;
=======
>>>>>>>
import won.protocol.model.Need;
<<<<<<<
import java.util.List;
import java.util.Set;
=======
>>>>>>>
import java.util.List;
import java.util.Set; |
<<<<<<<
import org.springframework.beans.factory.annotation.Autowired;
import won.protocol.need.NeedProtocolNeedClientSide;
=======
import won.node.facet.impl.FacetRegistry;
>>>>>>>
import org.springframework.beans.factory.annotation.Autowired;
import won.protocol.need.NeedProtocolNeedClientSide;
import won.node.fac... |
<<<<<<<
=======
public static final Property HAS_ATTACHED_MEDIA = m.createProperty(BASE_URI, "hasAttachedMedia");
public static final Property HAS_HEIGHT = m.createProperty(BASE_URI, "hasHeight");
public static final Property HAS_DEPTH = m.createProperty(BASE_URI, "hasDepth");
public static final Property HAS... |
<<<<<<<
List<MessageData> logs = mockedIngestion.getMessageDataInRequest();
=======
RequestData rd = (RequestData) ((Data) rdEnvelope.getData()).getBaseData();
List<MessageData> logs = mockedIngestion.getTelemetryDataByType("MessageData");
>>>>>>>
RequestData rd = (RequestData) ((Dat... |
<<<<<<<
public List<ProcessorConfig> processors = new ArrayList<>();
=======
public boolean openTelemetryApiSupport;
>>>>>>>
public List<ProcessorConfig> processors = new ArrayList<>();
public boolean openTelemetryApiSupport; |
<<<<<<<
assertEquals("www.bing.com:-1 | www.bing.com", rdd.getTarget());
assertParentChild(rd, rdEnvelope, rddEnvelope);
=======
assertEquals("www.bing.com", rdd.getTarget());
assertTrue(rdd.getId().contains(rd.getId()));
>>>>>>>
assertEquals("www.bing.com", rdd.getTarget());
... |
<<<<<<<
public static class ProcessorConfig {
public ProcessorType type;
public String processorName;
public ProcessorIncludeExclude include;
public ProcessorIncludeExclude exclude;
public List<ProcessorAction> actions; // specific for processor type "attributes"
pub... |
<<<<<<<
=======
import io.opentelemetry.instrumentation.api.aiconnectionstring.AiConnectionString;
import io.opentelemetry.javaagent.config.ConfigOverride;
>>>>>>>
import io.opentelemetry.instrumentation.api.aiconnectionstring.AiConnectionString; |
<<<<<<<
import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
=======
import com.google.common.collect.Sets;
>>>>>>>
import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
<<<<<<<
Set<Class<?>> interfaces = Sets.newLinkedHashSet();
=======
/... |
<<<<<<<
=======
import brooklyn.util.collections.MutableMap;
>>>>>>>
<<<<<<<
redis = app.createAndManageChild(EntitySpecs.spec(RedisStore.class));
app.start(ImmutableList.of(loc));
=======
redis = app.createAndManageChild(EntitySpec.create(RedisStore.class));
app.start(ImmutableLis... |
<<<<<<<
=======
import brooklyn.event.SensorEvent;
import brooklyn.event.SensorEventListener;
import brooklyn.event.basic.DependentConfiguration;
import brooklyn.event.feed.http.HttpFeed;
import brooklyn.event.feed.http.HttpPollConfig;
import brooklyn.event.feed.http.HttpValueFunctions;
import brooklyn.event.feed.htt... |
<<<<<<<
import java.util.List;
import org.apache.brooklyn.api.entity.Application;
import org.apache.brooklyn.api.entity.EntitySpec;
=======
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import org.apache.brooklyn.api.entity.Entity;
>>>>>>>
import static org.testng.Assert... |
<<<<<<<
import com.google.common.collect.ImmutableList;
=======
>>>>>>>
import com.google.common.collect.ImmutableList;
<<<<<<<
=======
private static final Logger LOG = LoggerFactory.getLogger(RedisStoreSshDriver.class);
private String expandedInstallDir;
>>>>>>>
private static final Logger LOG =... |
<<<<<<<
import brooklyn.mementos.CatalogItemMemento;
=======
import brooklyn.mementos.BrooklynMementoRawData;
>>>>>>>
import brooklyn.mementos.BrooklynMementoRawData;
import brooklyn.mementos.CatalogItemMemento;
<<<<<<<
Stopwatch stopwatch = Stopwatch.createStarted();
LOG.debug("Scanning persisted ... |
<<<<<<<
public void testAttributeWhenReadyAbortsWhenOnFireByDefault() {
log.info("starting test "+JavaClassNames.niceClassAndMethod());
=======
public void testAttributeWhenReadyWithAbortFailsWhenAbortConditionAlreadyHoldsWaitingNow() throws Exception {
entity2.setAttribute(TestEntity.SEQUENCE... |
<<<<<<<
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
=======
>>>>>>>
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
<<<<<<<
import java.io.IOExceptio... |
<<<<<<<
AuthData exportAuthData,
AuthData importAuthData,
UUID jobId)
throws IOException, CopyException;
=======
AuthData exportAuthData,
AuthData importAuthData,
UUID jobId, Optional<ExportInformation> exportInfo)
throws IOException;
>>>>>>>
Auth... |
<<<<<<<
import com.linbit.extproc.ExtCmd;
=======
>>>>>>>
import com.linbit.extproc.ExtCmd;
<<<<<<<
public LvmThinDriverTest()
{
super(new StorageTestUtils.DriverFactory()
{
@Override
public StorageDriver createDriver(ExtCmd ec) throws StorageException
{
... |
<<<<<<<
import com.linbit.drbdmanage.security.ObjectProtection;
import java.util.Iterator;
=======
import com.linbit.drbdmanage.stateflags.Flags;
import com.linbit.drbdmanage.stateflags.StateFlags;
>>>>>>>
import com.linbit.drbdmanage.security.ObjectProtection;
import java.util.Iterator;
import com.linbit.drbdmanage... |
<<<<<<<
@Override
public Iterator<StorPool> iterateStorPools(AccessContext accCtx)
throws AccessDeniedException
{
objProt.requireAccess(accCtx, AccessType.VIEW);
return storPoolMap.values().iterator();
}
=======
@Override
public StateFlags<NodeFlags> getFlags()
{... |
<<<<<<<
// Properties container for this volume definition
private Props vlmDfnProps;
=======
// State flags
private StateFlags<VlmDfnFlags> flags;
>>>>>>>
// Properties container for this volume definition
private Props vlmDfnProps;
// State flags
private StateFlags<VlmDfnFlags> f... |
<<<<<<<
import com.linbit.ExhaustedPoolException;
=======
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.Unrecoverable... |
<<<<<<<
import java.util.Iterator;
=======
import com.linbit.drbdmanage.stateflags.Flags;
import com.linbit.drbdmanage.stateflags.StateFlags;
>>>>>>>
import java.util.Iterator;
import com.linbit.drbdmanage.stateflags.Flags;
import com.linbit.drbdmanage.stateflags.StateFlags;
<<<<<<<
public Iterator<StorPool> i... |
<<<<<<<
import static com.exonum.binding.common.hash.Hashing.DEFAULT_HASH_SIZE_BYTES;
=======
import static com.exonum.binding.common.crypto.CryptoFunctions.Ed25519.PUBLIC_KEY_BYTES;
>>>>>>>
import static com.exonum.binding.common.crypto.CryptoFunctions.Ed25519.PUBLIC_KEY_BYTES;
import static com.exonum.binding.comm... |
<<<<<<<
static {
LibraryLoader.load();
}
=======
private static final ViewFactory VIEW_FACTORY = ViewProxyFactory.getInstance();
>>>>>>>
static {
LibraryLoader.load();
}
private static final ViewFactory VIEW_FACTORY = ViewProxyFactory.getInstance(); |
<<<<<<<
=======
import com.exonum.binding.common.messages.Service.ServiceConfiguration;
import com.exonum.binding.common.messages.Service.ServiceConfiguration.Format;
import com.exonum.binding.core.storage.database.Fork;
>>>>>>>
import com.exonum.binding.common.messages.Service.ServiceConfiguration;
import com.exonu... |
<<<<<<<
import fj.data.Array;
import fj.data.Either;
import fj.data.LazyString;
import fj.data.List;
import fj.data.Natural;
import fj.data.NonEmptyList;
import fj.data.Option;
import fj.data.Seq;
import fj.data.Set;
import fj.data.Stream;
import fj.data.Tree;
import fj.data.TreeMap;
import fj.data.Validation;
import f... |
<<<<<<<
=======
import org.spongepowered.api.text.placeholder.PlaceholderParser;
import org.spongepowered.api.statistic.BlockStatistic;
import org.spongepowered.api.statistic.EntityStatistic;
import org.spongepowered.api.statistic.ItemStatistic;
>>>>>>>
import org.spongepowered.api.text.placeholder.PlaceholderParser... |
<<<<<<<
=======
* Removes all empty texts from the beginning and end of this
* builder.
*
* @return This builder
*/
public Builder trim() {
Iterator<Text> front = this.children.iterator();
while (front.hasNext()) {
if (front.... |
<<<<<<<
* <p>Note that an {@link Optional#empty()} channel is different from a
* {@link MessageChannel#toNone()} channel.</p>
=======
* <p>Note that setting this to {@code null}, or no channel, is different
* from a {@link MessageChannel#TO_NONE} channel.</p>
>>>>>>>
* <p>Note that setting t... |
<<<<<<<
import org.spongepowered.api.component.attribute.Flammable;
import org.spongepowered.api.component.attribute.Movable;
import org.spongepowered.api.component.attribute.Positionable;
import org.spongepowered.api.component.attribute.Rotatable;
import org.spongepowered.api.math.Vector3d;
import org.spongepowered.ap... |
<<<<<<<
import org.spongepowered.api.entity.living.animal.Rabbit;
import org.spongepowered.api.entity.living.animal.Sheep;
import org.spongepowered.api.entity.living.monster.boss.dragon.EnderDragon;
=======
import org.spongepowered.api.entity.living.animal.Rabbit;
import org.spongepowered.api.entity.living.animal.She... |
<<<<<<<
import org.checkerframework.checker.nullness.qual.Nullable;
=======
import org.spongepowered.api.data.Key;
>>>>>>>
import org.checkerframework.checker.nullness.qual.Nullable;
import org.spongepowered.api.data.Key; |
<<<<<<<
import org.spongepowered.api.entity.Player;
import org.spongepowered.api.event.entity.EntityEvent;
=======
import org.spongepowered.api.entity.player.Player;
import org.spongepowered.api.event.GameEvent;
>>>>>>>
import org.spongepowered.api.entity.player.Player;
import org.spongepowered.api.event.entity.Ent... |
<<<<<<<
/**
* Gets the {@link Value} for whether this vindicator is considered a
* "johnny" vindicator. "Johnny" vindicators will deal more damage and
* often times carry an {@link ItemTypes#IRON_AXE} of sorts.
*
* @deprecated In favor of {@link Keys#IS_JOHNNY} to match with the rest of
... |
<<<<<<<
import org.spongepowered.api.data.DataContainer;
import org.spongepowered.api.data.DataSerializable;
import org.spongepowered.api.data.Queries;
import org.spongepowered.math.GenericMath;
=======
import org.spongepowered.api.data.persistence.DataContainer;
import org.spongepowered.api.data.persistence.DataSeri... |
<<<<<<<
=======
import org.spongepowered.api.world.World;
import com.google.common.base.Optional;
>>>>>>>
import org.spongepowered.api.world.World;
import com.google.common.base.Optional;
<<<<<<<
/**
* Mount the entity provided.
*
* @param entity The entity to mount
*/
void mount(Enti... |
<<<<<<<
=======
import org.spongepowered.api.data.Keys;
import org.spongepowered.api.entity.Entity;
>>>>>>>
import org.spongepowered.api.data.Keys; |
<<<<<<<
Waypoint wp = cache.getWaypoints().get(1);
=======
cgWaypoint wp = cache.getWaypoints().get(0);
>>>>>>>
Waypoint wp = cache.getWaypoints().get(0); |
<<<<<<<
/**
* Detect waypoint types in the personal note text. It works by rule of thumb only.
*/
private static WaypointType parseWaypointType(final String input) {
final String lowerInput = StringUtils.substring(input, 0, 20).toLowerCase(Locale.getDefault());
for (WaypointType wpType... |
<<<<<<<
if (paramsMatcher1.find() == true && paramsMatcher1.groupCount() > 0) {
OAtoken = paramsMatcher1.group(1);
=======
if (paramsMatcher1.find() && paramsMatcher1.groupCount() > 0) {
OAtoken = paramsMatcher1.group(1).toString();
>>>>>>>
if (paramsMatcher1.find() && paramsMatcher1.group... |
<<<<<<<
private static final Pattern PATTERN_GK_CODE_EXTENDED = Pattern.compile("(GK[0-9A-F]{4,})|([0-9A-Z]{6})");
private static final String URL = "http://geokrety.org";
=======
private static final String HOST = "geokrety.org";
public static final String URL = "https://" + HOST;
>>>>>>>
privat... |
<<<<<<<
import org.n52.sos.ds.hibernate.entities.series.Series;
=======
import org.n52.sos.ogc.om.NamedValue;
import org.n52.sos.ogc.om.OmObservation;
>>>>>>>
import org.n52.sos.ds.hibernate.entities.series.Series;
import org.n52.sos.ogc.om.NamedValue;
import org.n52.sos.ogc.om.OmObservation; |
<<<<<<<
private static String getMatch(String match) {
// creating a new String via String constructor is necessary here!!
return new String(match.trim());
// Java copies the whole page String, when matching with regular expressions
// later this would block the garbage collector, as... |
<<<<<<<
int logType, int year, int month, int day, String log, List<cgTrackableLog> trackables) {
if (ArrayUtils.isEmpty(viewstates)) {
=======
int logType, int year, int month, int day, String log, ArrayList<cgTrackableLog> trackables) {
if (isEmpty(viewstates)) {
>>>>>>>
int logType, int year, int mon... |
<<<<<<<
=======
import com.google.gerrit.common.data.GroupReference;
import com.google.gerrit.common.data.PermissionRule;
import com.google.gerrit.extensions.api.changes.CherryPickInput;
import com.google.gerrit.extensions.api.changes.ReviewInput;
import com.google.gerrit.extensions.api.changes.SubmitInput;
import co... |
<<<<<<<
CacheDetailActivity.this.notifyDataSetChanged(); // reload cache details
=======
progress.dismiss();
if (msg.what == -1) {
showToast(res.getString(R.string.err_favorite_failed));
} else {
updateFavPointBox(... |
<<<<<<<
RETRACT(25, "25", "rectract listing", R.string.log_retractlisting),
UNKNOWN(0, "unknown", "", R.string.err_unknown, R.drawable.mark_red); // LogType not init. yet
=======
RETRACT(25, "25", "retract listing", R.string.log_retractlisting),
UNKNOWN(0, "unknown", "", R.string.err_unknown); // LogT... |
<<<<<<<
public void end(String body) {
if (StringUtils.isBlank(cache.location)) {
cache.location = validate(body.trim());
=======
public void end(String country) {
if (cache.location == null || cache.location.length() == 0) {
cache.location = validate(country);
>>>>>>>
public void e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.