conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
=======
import android.annotation.TargetApi;
import android.content.Context;
import android.content.pm.PackageManager;
>>>>>>>
<<<<<<<
public static Camera getCameraInstance() {
=======
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
public static Camera getCameraInstance(int cameraId){
>>>>>>>
... |
<<<<<<<
final AtomicReference<CountDownLatch> connectedLatch = new AtomicReference<>(new CountDownLatch(1));
final AtomicReference<CountDownLatch> disconnectedLatch = new AtomicReference<>(new CountDownLatch(1));
=======
final AtomicReference<CountDownLatch> connectedLatch = new AtomicReferenc... |
<<<<<<<
import static org.junit.Assert.assertTrue;
=======
import java.io.IOException;
>>>>>>>
<<<<<<<
=======
import javax.servlet.ServletException;
>>>>>>> |
<<<<<<<
bayeux.getChannel(channelName).publish(null, new HashMap<>());
=======
channel.getReference().publish(null, new HashMap<String, Object>(), null);
>>>>>>>
channel.getReference().publish(null, new HashMap<>());
<<<<<<<
bayeux.getChannel(channelName).publish(null, new HashMap<>(... |
<<<<<<<
public boolean allowMessageDeliveryDuringHandshake(ServerSessionImpl session) {
return (session != null && session.isAllowMessageDeliveryDuringHandshake()) ||
isAllowMessageDeliveryDuringHandshake();
=======
protected boolean allowMessageDeliveryDuringHandshake(ServerSessionImp... |
<<<<<<<
super(cometURL,WebSocketTransport.create(null,oort.getWebSocketClient()),LongPollingTransport.create(null, oort.getHttpClient()));
=======
this(oort, cometURL, null);
}
public OortComet(Oort oort, String cometURL, Map<String, Object> options)
{
super(cometURL, WebSocketTra... |
<<<<<<<
// Wait for the /meta/connect to return.
Thread.sleep(1000);
// Rehandshake
=======
// Rehandshake.
subscribeLatch.set(new CountDownLatch(1));
>>>>>>>
// Wait for the /meta/connect to return.
Thread.sleep(1000);
// Rehandshake
subscrib... |
<<<<<<<
import jdk.nashorn.api.scripting.ScriptObjectMirror;
=======
>>>>>>>
import jdk.nashorn.api.scripting.ScriptObjectMirror; |
<<<<<<<
client.getChannel(Channel.META_HANDSHAKE).addListener((ClientSessionChannel.MessageListener)(channel, message) -> {
System.err.println("<<" + message + " @ " + channel);
if (message.isSuccessful()) {
handshakeLatch.countDown();
=======
client.getChannel(... |
<<<<<<<
import org.cometd.bayeux.server.BayeuxContext;
=======
>>>>>>>
import org.cometd.bayeux.server.BayeuxContext; |
<<<<<<<
String cometdURLMapping = (String)getOption(COMETD_URL_MAPPING_OPTION);
if (cometdURLMapping == null)
throw new IllegalArgumentException("Missing '" + COMETD_URL_MAPPING_OPTION + "' parameter");
=======
String cometdURLMapping = (String)getOption(COMETD_URL_MAPPING);
... |
<<<<<<<
@Override
protected void sendConnect() {
if (connects.incrementAndGet() < 2) {
super.sendConnect();
return;
}
Message.Mutable connect = newMessage();
connect.setId(newMessageId());
... |
<<<<<<<
protected void write(HttpServletRequest request, HttpServletResponse response, ServerSessionImpl session, boolean scheduleExpiration, List<ServerMessage> messages, ServerMessage.Mutable[] replies)
{
=======
protected void write(HttpServletRequest request, HttpServletResponse response, ServerSessio... |
<<<<<<<
public static final String ALLOWED_TRANSPORTS_OPTION = "allowedTransports";
public static final String SWEEP_PERIOD_OPTION = "sweepPeriod";
public static final String TRANSPORTS_OPTION = "transports";
private final Logger _logger = LoggerFactory.getLogger(getClass().getName() + "." + Integer.to... |
<<<<<<<
import org.eclipse.jetty.client.HttpClientTransport;
=======
import org.eclipse.jetty.client.api.Request;
>>>>>>>
import org.eclipse.jetty.client.HttpClientTransport;
import org.eclipse.jetty.client.api.Request;
<<<<<<<
import org.eclipse.jetty.http2.client.HTTP2Client;
import org.eclipse.jetty.http2.client... |
<<<<<<<
ServerConnector connector = new ServerConnector(server);
=======
connector = new SelectChannelConnector();
>>>>>>>
connector = new ServerConnector(server);
<<<<<<<
CometDServlet cometdServlet = new CometDServlet();
=======
cometdServlet = new CometdServlet();
>>>>>... |
<<<<<<<
AsyncContext asyncContext = request.startAsync();
asyncContext.setTimeout(timeout);
scheduler = new LongPollScheduler(session, asyncContext, reply, browserId);
=======... |
<<<<<<<
=======
import org.junit.rules.TestWatcher;
import org.junit.runner.Description;
>>>>>>>
import org.junit.rules.TestWatchman;
import org.junit.runners.model.FrameworkMethod;
<<<<<<<
public final TestTracker testName = new TestTracker();
private final List<Server> servers = new ArrayList<>();
pri... |
<<<<<<<
private final AtomicLong actions = new AtomicLong();
private final ConcurrentMap<Long, C> callbacks = new ConcurrentHashMap<>();
=======
private final AtomicLong contextIds = new AtomicLong();
private final ConcurrentMap<Long, Map<String, Object>> callbacks = new ConcurrentHashMap<Long, Map<St... |
<<<<<<<
promise.fail(new IllegalArgumentException("Bayeux messages must have a channel, " + message));
return;
=======
throw new IllegalArgumentException("Bayeux message must have a channel: " + message);
>>>>>>>
promise.fail(new IllegalArgumentException("Bayeux messag... |
<<<<<<<
protected void write(HttpServletRequest request, HttpServletResponse response, ServerSessionImpl session, boolean scheduleExpiration, List<ServerMessage> messages, ServerMessage.Mutable[] replies)
{
try
{
int replyIndex = 0;
boolean needsComma = false;
=======
... |
<<<<<<<
=======
_debug = oort.isDebugEnabled();
}
protected Logger getLogger()
{
return _logger;
}
public boolean isDebugEnabled()
{
return _debug;
}
public void setDebugEnabled(boolean debug)
{
_debug = debug;
}
private void debug(String... |
<<<<<<<
public abstract class AbstractClientSession implements ClientSession, Dumpable
{
=======
public abstract class AbstractClientSession implements ClientSession, Dumpable {
protected static final String SUBSCRIBER_KEY = "org.cometd.client.subscriber";
protected static final String CALLBACK_KEY = "org.com... |
<<<<<<<
protected void deliver1(ServerSession sender, ServerMessage.Mutable mutable, Promise<Boolean> promise) {
if (sender == this && !isBroadcastToPublisher()) {
promise.succeed(false);
} else {
extendOutgoing(mutable, Promise.from(message -> {
if (message =... |
<<<<<<<
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
=======
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import j... |
<<<<<<<
bayeuxServer.getChannel(channelName).publish(serverSession, new HashMap<>());
=======
channel.getReference().publish(serverSession, new HashMap(), null);
>>>>>>>
channel.getReference().publish(serverSession, new HashMap<>());
<<<<<<<
bayeuxServ... |
<<<<<<<
public class BayeuxClientTest extends ClientServerTest
{
=======
public class BayeuxClientTest extends ClientServerTest {
private boolean stress = Boolean.getBoolean("STRESS");
private Random random = new Random();
>>>>>>>
public class BayeuxClientTest extends ClientServerTest {
<<<<<<<
public ... |
<<<<<<<
import org.cometd.client.transport.LongPollingTransport;
import org.cometd.server.transport.HttpTransport;
=======
>>>>>>>
import org.cometd.client.transport.LongPollingTransport;
import org.cometd.server.transport.HttpTransport;
<<<<<<<
BayeuxClient client1 = new BayeuxClient(cometdURL, new LongPol... |
<<<<<<<
.send(result -> {
assertTrue(result.isSucceeded());
assertEquals(408, result.getResponse().getStatus());
abortedConnectLatch.countDown();
=======
.send(new Response.CompleteListener() {
@Override
... |
<<<<<<<
final AtomicReference<ServerMessage> publishRef = new AtomicReference<>();
new AbstractService(bayeux, "test")
{
{
addService(channel, "test");
}
public void test(ServerSession remote, ServerMessage message)
{
... |
<<<<<<<
session.addListener((ServerSession.DeQueueListener)(s, queue) -> {
long lastTimeStamp = 0;
for (Iterator<ServerMessage> iterator = queue.iterator(); iterator.hasNext(); ) {
ServerMessage message1 = iterator.next();
... |
<<<<<<<
=======
import javax.servlet.AsyncContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
>>>>>>> |
<<<<<<<
import java.util.stream.Stream;
=======
>>>>>>>
import java.util.stream.Stream;
<<<<<<<
import org.cometd.annotation.Service;
=======
import org.cometd.bayeux.Message;
>>>>>>>
import org.cometd.annotation.Service; |
<<<<<<<
private final List<EntryListener<V>> listeners = new CopyOnWriteArrayList<>();
=======
private final List<EntryListener<K, V>> listeners = new CopyOnWriteArrayList<EntryListener<K, V>>();
>>>>>>>
private final List<EntryListener<K, V>> listeners = new CopyOnWriteArrayList<>();
<<<<<<<
... |
<<<<<<<
ServerMessage.Mutable reply = message.getAssociated();
if (session == null || session.isDisconnected()) {
=======
if (session == null || session.isDisconnected() ||
(!session.getId().equals(message.getClientId()) && !Channel.META_HANDSHAKE.equals(message.getChannel())))... |
<<<<<<<
long contextId = (Long)ctx.get(ID_FIELD);
TimeoutTask timeoutTask = new TimeoutTask(contextId);
ctx.put(TIMEOUT_FIELD, ((BayeuxServerImpl)oort.getBayeuxServer()).schedule(timeoutTask, getTimeout()));
=======
long contextId = ((Number)ctx.get(ID_FIELD)).longValue();
Time... |
<<<<<<<
import org.cometd.bayeux.server.ServerMessage;
import org.cometd.bayeux.server.ServerSession;
=======
>>>>>>>
import org.cometd.bayeux.server.ServerMessage;
import org.cometd.bayeux.server.ServerSession; |
<<<<<<<
private class HandshakeListener implements ClientSessionChannel.MessageListener {
@Override
public void onMessage(ClientSessionChannel channel, Message message) {
if (!message.isSuccessful()) {
return;
}
Map<String, Object> ext = message.... |
<<<<<<<
protected ServerMessage.Mutable processReply(ServerSessionImpl session, ServerMessage.Mutable reply)
{
if (reply != null)
reply = getBayeux().extendReply(session, session, reply);
return reply;
}
protected byte[] toJSONBytes(ServerMessage message, String encoding)
... |
<<<<<<<
/*
* 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 |
<<<<<<<
long defaultMaxNetworkDelay = _httpClient.getIdleTimeout();
if (defaultMaxNetworkDelay <= 0)
defaultMaxNetworkDelay = 10000;
_maxNetworkDelay = getOption(MAX_NETWORK_DELAY_OPTION, defaultMaxNetworkDelay);
=======
setMaxNetworkDelay(_httpClient.getTimeout());
>>>>>>... |
<<<<<<<
Map<String, Object> login1 = new HashMap<>();
=======
Assert.assertTrue(client1.waitFor(5000, BayeuxClient.State.CONNECTED));
Map<String, Object> login1 = new HashMap<String, Object>();
>>>>>>>
Assert.assertTrue(client1.waitFor(5000, BayeuxClient.State.CONNECTED));
Map... |
<<<<<<<
import org.cometd.bayeux.Promise;
=======
>>>>>>>
import org.cometd.bayeux.Promise; |
<<<<<<<
// Tells if the current line number should be added to an instruction that is added to this
// method. If it is the first instruction corresponding to the current line, then the line
// number is added to the instruction.
private boolean isFreshNewLine = true;
// A mapping between labels - ... |
<<<<<<<
logger.debug("Handshaking on transport {}: {}", bayeuxClientState.transport, message);
bayeuxClientState.send(handshakeListener, message);
return true;
=======
debug("Handshaking on transport {}: {}", bayeuxClientState.transport, message);
return bay... |
<<<<<<<
process(remote, message);
=======
message.setClientId(remote.getId());
bayeuxServer.handle((ServerSessionImpl)remote.getServerSession(), message);
>>>>>>>
message.setClientId(remote.getId());
process(remote, message);
<<<<<<<
process(remote, message);
=======... |
<<<<<<<
data.put(Info.OBJECT_FIELD, getFactory().newObject(data.get(Info.OBJECT_FIELD)));
Info<T> newInfo = new Info<>(oort.getURL(), data);
=======
data.put(Info.OBJECT_FIELD, getFactory().newObject(object));
Info<T> newInfo = new Info<T>(oort.getURL(), data);
>>>>>>>
data.pu... |
<<<<<<<
=======
private boolean signAsCommittee = false;
private boolean signWithDefaultAccount = false;
>>>>>>>
private boolean signAsCommittee = false;
private boolean signWithDefaultAccount = false;
<<<<<<<
defaultAccount = Account.fromWIF(DEFAULT_ACCOUNT_WIF);
committeeMember =... |
<<<<<<<
protected void dump(StringBuilder b, String indent)
{
b.append(toString());
b.append('\n');
for (ServerSessionListener child : _listeners)
{
b.append(indent);
b.append(" +-");
b.append(child);
b.append('\n');
}
... |
<<<<<<<
import org.cometd.bayeux.server.BayeuxContext;
=======
>>>>>>>
import org.cometd.bayeux.server.BayeuxContext; |
<<<<<<<
private final List<BayeuxServerListener> _listeners = new CopyOnWriteArrayList<>();
private final List<Extension> _extensions = new CopyOnWriteArrayList<>();
private final ConcurrentMap<String, ServerSessionImpl> _sessions = new ConcurrentHashMap<>();
private final ConcurrentMap<String, ServerCh... |
<<<<<<<
protected AbstractSessionChannel newChannel(ChannelId channelId)
{
=======
protected void notifyListeners(Message.Mutable message) {
ClientSessionChannel.MessageListener callback = (ClientSessionChannel.MessageListener)message.remove(CALLBACK_KEY);
if (message.isMeta() || message.i... |
<<<<<<<
SecurityContextToken sct;
if (tokenIdToRenew != null) {
((TokenStore)exchange.get(Endpoint.class).getEndpointInfo()
.getProperty(TokenStore.class.getName())).remove(tokenIdToRenew);
sct = new SecurityContextToken(
... |
<<<<<<<
if (LOG.isLoggable(Level.FINE)) {
LOG.log(Level.FINE, "Not asserting " + assertion.getName() + ": " + reason);
}
Collection<AssertionInfo> ais;
ais = aim.get(assertion.getName());
=======
LOG.log(Level.FINE, "Not asserting " + assertion.getName() + ": " + re... |
<<<<<<<
import io.neow3j.model.types.NEOAsset;
=======
import static io.neow3j.protocol.TestHelper.GAS_HASH;
import static io.neow3j.protocol.TestHelper.NEO_HASH;
import static io.neow3j.utils.Numeric.prependHexPrefix;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.equalTo;
import stat... |
<<<<<<<
*
* @param invocationScripts One or more invocation scripts that are part of the witness.
=======
* @param invocationScript The invocation script of the witness.
>>>>>>>
*
* @param invocationScript The invocation script of the witness.
<<<<<<<
this.attributes = attribut... |
<<<<<<<
import static java.nio.charset.StandardCharsets.UTF_8;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
=======
import static java.nio.charset.StandardCharsets.UTF_8;
>>>>>>>
import static ... |
<<<<<<<
import android.util.Log;
=======
import java.util.HashMap;
import java.util.Map;
import junit.framework.Assert;
>>>>>>>
<<<<<<<
import com.couchbase.cblite.CBLiteException;
import com.couchbase.cblite.internal.CBLRevisionInternal;
import junit.framework.Assert;
import java.util.HashMap;
import java.util.... |
<<<<<<<
import java.io.ByteArrayOutputStream;
=======
import java.io.File;
>>>>>>>
import java.io.ByteArrayOutputStream;
import java.io.File; |
<<<<<<<
=======
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.Observable;
import java.util.Observer;
import java.util.concurrent.CountDownLatch;
import java.util.concur... |
<<<<<<<
Method setter;
Class<?> getterReturnType = actualFieldDescriptor.getGetter().getReturnType();
try {
setter = ReflectUtil.getSetterFromGetter(actualFieldDescriptor.getGetter(), new Class<?>[] {String.class}, recordClazz);
} catch (NoSuchMethodException e1) {
=======
if(actualFieldDescripto... |
<<<<<<<
@Test
public void doIfSenderCannotCoverFees() throws IOException {
ContractTestHelper.setUpWireMockForCall("invokefunction",
"invokefunction_transfer_neo.json",
"9bde8f209c88dd0e7ca3bf0af0f476cdd8207789",
"transfer"
);
ContractTest... |
<<<<<<<
if (!json.isNull("immutable")) {
=======
if (json.has("caddisflyResourceUuid")
&& json.getString("caddisflyResourceUuid") != null) {
dto.setCaddisflyResourceUuid(json.getString("caddisfl... |
<<<<<<<
import com.gallatinsystems.user.domain.UserRole;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.FetchOptions;
import com.google.appengine.ap... |
<<<<<<<
import com.gallatinsystems.surveyal.dao.SurveyedLocaleClusterDao;
=======
import com.gallatinsystems.survey.domain.Translation;
>>>>>>>
import com.gallatinsystems.surveyal.dao.SurveyedLocaleClusterDao;
import com.gallatinsystems.survey.domain.Translation;
<<<<<<<
private static final Integer LOCALE_PAGE_SI... |
<<<<<<<
public Boolean getLocaleNameFlag() {
return localeNameFlag;
}
public void setLocaleNameFlag(Boolean localeNameFlag) {
this.localeNameFlag = localeNameFlag;
}
public Boolean getLocaleLocationFlag() {
return localeLocationFlag;
}
public void setLocaleLocationFlag(Boolean localeLocationFlag) {
t... |
<<<<<<<
=======
metricDao = new MetricDao();
metricMappingDao = new SurveyMetricMappingDao();
mergeNearby = false;
String mergeProp = PropertyUtil.getProperty("mergeNearbyLocales");
useDynamicScoring = Boolean.parseBoolean(PropertyUtil.getProperty("scoreLocaleDynmaic"));
if (mergeProp != null && "false".... |
<<<<<<<
=======
//Return a list all the surveys the device needs
//use imei or phone number for lookup
private String getSurveyForPhone(String devicePhoneNumber, String imei) {
DeviceSurveyJobQueueDAO dsjqDAO = new DeviceSurveyJobQueueDAO();
SurveyDAO surveyDao = new SurveyDAO();
SurveyGroupDAO sgDao = ne... |
<<<<<<<
serverBase, questionMap, wb, isFullReport, fileName,
criteria.get("apiKey"), lastCollection, from, to, limit);
addColumnWarnings(wb);
=======
questionMap,
wb, baseSheet,
... |
<<<<<<<
private Boolean repeatable;
=======
private Status status = null;
public enum Status {
READY, COPYING
};
>>>>>>>
private Boolean repeatable;
private Status status = null;
public enum Status {
READY, COPYING
}; |
<<<<<<<
properties.add("enableDataApproval");
=======
properties.add("extraMapboxTileLayerMapId");
properties.add("extraMapboxTileLayerAccessToken");
properties.add("extraMapboxTileLayerLabel");
>>>>>>>
properties.add("enableDataApproval");
properties.add("extraMapboxT... |
<<<<<<<
String val = ExportImportUtils
.formatDate(new Date(Long.parseLong(value)));
=======
String val = ExportImportUtils
.formatDate(ExportImportUtils.parseDate(value));
>>>>>>>
String val = ExportI... |
<<<<<<<
private Boolean localeNameFlag;
private Boolean localeLocationFlag;
=======
private Boolean geoLocked = null;
>>>>>>>
private Boolean localeNameFlag;
private Boolean localeLocationFlag;
private Boolean geoLocked = null;
<<<<<<<
public Boolean getLocaleNameFlag() {
return localeNameFlag;
}
publi... |
<<<<<<<
=======
final int variableNameColumnIndex = 3;
final int descriptiveStatsColumnIndex = 4;
>>>>>>>
final int variableNameColumnIndex = 3;
final int descriptiveStatsColumnIndex = 4;
<<<<<<<
createCell(row, 4, "N");
... |
<<<<<<<
import java.util.Arrays;
import java.util.Date;
=======
import java.util.ArrayList;
>>>>>>>
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
<<<<<<<
import com.gallatinsystems.survey.domain.CascadeResource;
import com.gallatinsystems.survey.domain.Question;
import com.gallatinsyst... |
<<<<<<<
=======
private Boolean geoLocked = null;
private Boolean requireDoubleEntry = null;
>>>>>>>
private Boolean geoLocked = null;
private Boolean requireDoubleEntry = null;
<<<<<<<
public void setLocaleNameFlag(Boolean localeNameFlag) {
this.localeNameFlag = localeNameFlag;
}
public Boolean getLocal... |
<<<<<<<
public static final String ADD_SURVEY_INSTANCE_TO_LOCALES_ACTION = "addSurveyInstanceToLocales";
=======
public static final String CHANGE_LOCALE_TYPE_ACTION = "changeLocaleType";
>>>>>>>
public static final String CHANGE_LOCALE_TYPE_ACTION = "changeLocaleType";
public static final String ADD_SURVEY_INST... |
<<<<<<<
import net.sf.jsr107cache.CacheException;
import org.akvo.flow.domain.SecuredObject;
import com.google.appengine.datanucleus.query.JDOCursorHelper;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import javax.jdo.JDOObjectNotFoun... |
<<<<<<<
//Output the descriptive stats;
// this section is short enough to stay within window
if (stats != null && stats.getSampleCount() > 0) {
=======
//Output the descriptive stats; always within window
if (doDescri... |
<<<<<<<
import static org.logicng.datastructures.Tristate.FALSE;
import static org.logicng.datastructures.Tristate.TRUE;
import static org.logicng.datastructures.Tristate.UNDEF;
=======
import static org.logicng.datastructures.Tristate.FALSE;
import static org.logicng.datastructures.Tristate.TRUE;
import static org.... |
<<<<<<<
import static org.kaazing.gateway.resource.address.http.HttpResourceAddress.USER_AGENT_HEADER_ENABLED;
import static org.kaazing.gateway.resource.address.http.HttpResourceAddress.HOST_HEADER_ENABLED;
=======
import static org.kaazing.gateway.resource.address.http.HttpResourceAddress.DATE_HEADER_ENABLED;
>>>>... |
<<<<<<<
private Collection<Class<? extends Principal>> realmUserPrincipalClasses;
HttpResourceAddress(URI original, URI resource) {
super(original, resource);
=======
HttpResourceAddress(ResourceAddressFactorySpi factory, URI original, URI resource) {
super(factory, original, resource);
>>>>>>>
... |
<<<<<<<
=======
/**
* Method returning lowest transport layer
* @param transport
* @return
*/
private static ResourceAddress getLowestTransportLayer(ResourceAddress transport) {
if (transport.getTransport() != null) {
return getLowestTransportLayer(transport.getTransp... |
<<<<<<<
import static org.kaazing.gateway.resource.address.http.HttpResourceAddress.USER_AGENT_HEADER_ENABLED;
import static org.kaazing.gateway.resource.address.http.HttpResourceAddress.HOST_HEADER_ENABLED;
=======
import static org.kaazing.gateway.resource.address.http.HttpResourceAddress.DATE_HEADER_ENABLED;
>>>>... |
<<<<<<<
import static org.kaazing.gateway.transport.http.HttpHeaders.HEADER_FORWARDED;
=======
import static org.kaazing.gateway.transport.http.HttpHeaders.HEADER_LOCATION;
import static org.kaazing.gateway.transport.http.HttpHeaders.HEADER_SET_COOKIE;
>>>>>>>
import static org.kaazing.gateway.transport.http.HttpHea... |
<<<<<<<
import org.kaazing.gateway.resource.address.uri.URIUtils;
=======
import org.kaazing.gateway.resource.address.ws.WsResourceAddress;
>>>>>>>
import org.kaazing.gateway.resource.address.uri.URIUtils;
import org.kaazing.gateway.resource.address.ws.WsResourceAddress; |
<<<<<<<
String selectedBalanceeURI = availableBalanceeURIs.get((int) (Math.random() * availableBalanceeURIs.size()));
GL.info("ha", "Selected Balancee URI: {}", selectedBalanceeURI);
=======
URI selectedBalanceeURI = availableBalanceeURIs.get((int) (Math.random() * availableBalance... |
<<<<<<<
for (String key : memberBalancedUrisMap.keySet()) {
GL.debug(CLUSTER_LOGGER_NAME, "URI Key: {}", key);
List<String> memberBalancedUris = memberBalancedUrisMap.get(key);
TreeSet<String> globalBalancedUris = null;
... |
<<<<<<<
authenticationContext = new DefaultAuthenticationContext(
authType.getHttpChallengeScheme().toString(),
authType.getHttpHeaderArray(),
authType.getHttpQueryParameterArray(),
authTy... |
<<<<<<<
=======
import static org.kaazing.test.util.ITUtil.timeoutRule;
>>>>>>>
import static org.kaazing.test.util.ITUtil.timeoutRule;
<<<<<<<
import org.junit.rules.DisableOnDebug;
import org.junit.rules.RuleChain;
=======
import org.junit.rules.RuleChain;
>>>>>>>
import org.junit.rules.RuleChain;
import org.j... |
<<<<<<<
static EarlyAccessFeature HTTP_PROXY_SERVICE = new EarlyAccessFeature("http.proxy", "HTTP Proxy Service", false);
static EarlyAccessFeature TURN_PROXY = new EarlyAccessFeature("turn.proxy", "TURN Proxy Service", false);
=======
EarlyAccessFeature HTTP_PROXY_SERVICE = new EarlyAccessFeature("http.p... |
<<<<<<<
public static final HttpResourceOption<Boolean> DATE_HEADER_ENABLED = new HttpServerDateHeaderOption();
public static final HttpResourceOption<Collection<Class<? extends Principal>>> REALM_USER_PRINCIPAL_CLASSES = new HttpRealmAuthenticationUserPrincipalClassesOption();
=======
public static fina... |
<<<<<<<
final InetSocketAddress remoteAddress = new InetSocketAddress(InetAddress.getByName("localhost"), 2121);
=======
>>>>>>>
<<<<<<<
final InetSocketAddress localAddress = new InetSocketAddress(InetAddress.getByName("localhost"), 2121);
=======
@Test
public void getUserIdentifierShou... |
<<<<<<<
=======
import net.yacy.grid.mcp.AbstractBrokerListener;
import net.yacy.grid.mcp.BrokerListener;
>>>>>>>
import net.yacy.grid.mcp.AbstractBrokerListener;
import net.yacy.grid.mcp.BrokerListener;
<<<<<<<
public static class ParserListener extends AbstractBrokerListener implements BrokerListener {
... |
<<<<<<<
options.put("http.dateHeaderEnabled", Boolean.FALSE);
=======
options.put("http.max.authentication.attempts", 5);
options.put("http.realms", realms);
>>>>>>>
options.put("http.dateHeaderEnabled", Boolean.FALSE);
options.put("http.max.authentication.attempts", 5);
... |
<<<<<<<
import TOOL.Misc.Estimate;
=======
public class TOOLVisionLink {
//These are defined here for ease, but need to get read from somewhere else
public static final int DFLT_IMAGE_WIDTH = 640;
public static final int DFLT_IMAGE_HEIGHT = 480;
//image dimensions
private int width;
private ... |
<<<<<<<
native private void cppGetCameraCalibrate(float[] calibrateArray);
native private void cppSetCameraCalibrate(float[] calibrateArray);
=======
native private void cppSetFieldLinesDebugVertEdgeDetect(boolean _bool);
native private void cppSetFieldLinesDebugHorEdgeDetect(boolean _bool);
native p... |
<<<<<<<
} else if (encoding.equalsIgnoreCase("[Ball]")) {
Map<String, String> dict = log.getAttributes();
Vector<String> ballLocs = new Vector<String>();
for (int numBalls=0; ; numBalls++) {
String location = dict.get("ball"+numBalls);
if(location == null) break;
ballLocs.add(location);
... |
<<<<<<<
/*
* 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 Block() { }
=======
public Block() {
this(null, null, null, null, 0, 0);
}
>>>>>>>
public Block() {
this(null, null, null, null, 0, 0);
}
<<<<<<<
=======
>>>>>>>
<<<<<<<
public BlockParseException(String type, String ... rtype) {
super(String.format("Block of type '%s' ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.