conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
import java.util.HashMap;
import java.util.Map;
=======
import java.util.Collections;
import java.util.Set;
>>>>>>>
import java.util.HashMap;
import java.util.Map;
import java.util.Collections;
import java.util.Set;
<<<<<<<
* Arbitrary attributes associated with this RemoteAuthenticatedUser object.
... |
<<<<<<<
import enmasse.controller.api.osb.v2.EmptyResponse;
import enmasse.controller.api.osb.v2.OSBServiceBase;
import enmasse.controller.flavor.FlavorRepository;
import enmasse.controller.instance.InstanceManager;
import enmasse.controller.model.Instance;
=======
>>>>>>> |
<<<<<<<
import com.alibaba.fastjson.JSONObject;
=======
import com.rebuild.server.helper.AesPreferencesConfigurer;
>>>>>>>
import com.alibaba.fastjson.JSONObject;
import com.rebuild.server.helper.AesPreferencesConfigurer; |
<<<<<<<
final ServiceSpec es = Application.getService(record.getEntity().getEntityCode());
// 业务实体才查重
if (EntityService.class.isAssignableFrom(es.getClass())) {
List<Record> repeated = Application.getGeneralEntityService().checkRepeated(record);
if (!repeated.isEmpty()) {
JSONObject map = new JSONObjec... |
<<<<<<<
rootView.findViewById(R.id.RoundRobin).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
FragmentTransaction transaction = getFragmentManager().beginTransaction();
transaction.replace(R.... |
<<<<<<<
return state.getBlock().getBlockLayer() == layer; // Vanilla logic. Should be updated if vanilla changes. Any override will skip our patch anyways.
=======
ProfileUtil.end();
return state.getBlock().canRenderInLayer(layer);
>>>>>>>
ProfileUtil.end();
return state.getB... |
<<<<<<<
import net.minecraft.entity.player.EntityPlayer;
=======
import net.minecraft.launchwrapper.Launch;
>>>>>>>
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.launchwrapper.Launch;
<<<<<<<
@Override
public EntityPlayer getClientPlayer() {
return Minecraft.getMinecraft... |
<<<<<<<
import org.lwjgl.opengl.GLContext;
=======
import org.lwjgl.util.Rectangle;
import org.lwjgl.util.glu.Project;
>>>>>>>
import org.lwjgl.util.Rectangle;
import org.lwjgl.util.glu.Project;
<<<<<<<
import team.chisel.client.util.ClientUtil;
=======
import team.chisel.api.carving.CarvingUtils;
import team.chi... |
<<<<<<<
CarvingUtils.getChiselRegistry().registerOre("blockAluminum", "blockAluminum");
=======
>>>>>>>
<<<<<<<
CarvingUtils.getChiselRegistry().registerOre("basalt", "stoneBasalt");
//CarvingUtils.getChiselRegistry().registerOre("basalt", "stoneBasaltPolished");
... |
<<<<<<<
=======
import com.google.common.collect.Lists;
@ParametersAreNonnullByDefault
>>>>>>>
@ParametersAreNonnullByDefault
<<<<<<<
ingredients.setOutputs(ItemStack.class, outputs);
=======
return outputStack;
}
@Override
public List<FluidStack> getFluidInputs(){
return Col... |
<<<<<<<
=======
@SuppressWarnings("deprecation")
@SneakyThrows
>>>>>>>
<<<<<<<
return state.getBlock().getBlockLayer() == layer; // Vanilla logic. Should be updated if vanilla changes. Any override will skip our patch anyways.
=======
return ret;
}
public static ThreadLocal<B... |
<<<<<<<
stack.setCount(toCraft);
=======
>>>>>>>
<<<<<<<
if (chisel.isEmpty()) {
=======
stack.stackSize = toCraft;
if (chisel.stackSize <= 0) {
>>>>>>>
stack.setCount(toCraft);
if (chisel.... |
<<<<<<<
if (slot.getSlotType() == Type.HAND) {
multimap.put(SharedMonsterAttributes.ATTACK_DAMAGE.getName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Chisel Damage", type.attackDamage, 0));
=======
if (slot == EntityEquipmentSlot.MAINHAND) {
multimap.put(SharedMonsterAttr... |
<<<<<<<
return !held.isEmpty() && held.getItem() instanceof ItemChisel;
=======
return held != null && held.getItem() instanceof IChiselItem;
>>>>>>>
return !held.isEmpty() && held.getItem() instanceof IChiselItem; |
<<<<<<<
.next("")
.next("")
.next("")
.next("")
.next("")
.next("")
.next("")
.next("bricks-solid")
=======
.next("cuts")
... |
<<<<<<<
=======
import java.lang.reflect.Field;
import com.google.common.collect.ImmutableSet;
import lombok.SneakyThrows;
>>>>>>>
import java.lang.reflect.Field;
import com.google.common.collect.ImmutableSet;
import lombok.SneakyThrows;
<<<<<<<
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
impor... |
<<<<<<<
=======
import net.minecraft.util.math.RayTraceResult.Type;
>>>>>>>
import net.minecraft.util.math.RayTraceResult.Type;
<<<<<<<
if (!target.isEmpty()) {
=======
IChiselMode mode = NBTUtil.getChiselMode(held);
Iterable<? extends BlockPos> candidates = mode.getCandidates(... |
<<<<<<<
public boolean isUsableByPlayer(EntityPlayer entityplayer) {
ItemStack held = entityplayer.inventory.getStackInSlot(container.getChiselSlot());
return !held.isEmpty() && held.getItem() instanceof IChiselItem;
=======
public boolean isUsableByPlayer(EntityPlayer player) {
ItemSt... |
<<<<<<<
import javax.annotation.ParametersAreNonnullByDefault;
=======
import java.util.Optional;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
>>>>>>>
import javax.annotation.ParametersAreNonnullByDefault;
import java.util.Optional;
import javax.annotation.Nonnull;
import javax.annotation.Nul... |
<<<<<<<
public EntityPlayer getClientPlayer() {
return null;
}
=======
public boolean isCTMPresent() {
return true;
}
>>>>>>>
public EntityPlayer getClientPlayer() {
return null;
}
public boolean isCTMPresent() {
return true;
} |
<<<<<<<
@SuppressWarnings("null")
public static @Nonnull ItemChisel itemChiselIron, itemChiselDiamond;
=======
public static ItemChisel itemChiselIron, itemChiselDiamond, itemChiselHitech;
>>>>>>>
@SuppressWarnings("null")
public static @Nonnull ItemChisel itemChiselIron, itemChiselDiamond, itemC... |
<<<<<<<
=======
import net.minecraftforge.fluids.FluidStack;
import team.chisel.api.carving.CarvingUtils;
>>>>>>>
import team.chisel.api.carving.CarvingUtils;
<<<<<<<
@ParametersAreNonnullByDefault
=======
>>>>>>>
@ParametersAreNonnullByDefault |
<<<<<<<
public static final String THUMBNAIL_BLOB_KEY = "thumbnailBlobKey";
=======
public static final String AL_CATEGORY = "AL_CATEGORY";
>>>>>>>
public static final String THUMBNAIL_BLOB_KEY = "thumbnailBlobKey";
public static final String AL_CATEGORY = "AL_CATEGORY";
<<<<<<<
private static ... |
<<<<<<<
import org.n52.sos.exception.ows.concrete.MissingResponseFormatParameterException;
=======
import org.n52.sos.exception.ows.concrete.MissingServiceParameterException;
import org.n52.sos.exception.ows.concrete.MissingValueReferenceException;
import org.n52.sos.exception.ows.concrete.NotYetSupportedException;
i... |
<<<<<<<
public int parsePermissions(String permission)
{
=======
public int parsePermissions(String permission) {
permission = permission.toLowerCase(Locale.US);
>>>>>>>
public int parsePermissions(String permission) {
permission = permission.toLowerCase(Locale.US);
<<<<<<<
i... |
<<<<<<<
import org.teavm.jso.JSConstructor;
=======
import org.teavm.dom.typedarrays.ArrayBuffer;
import org.teavm.dom.typedarrays.Int8Array;
import org.teavm.jso.JSConstructor;
>>>>>>>
import org.teavm.dom.typedarrays.ArrayBuffer;
import org.teavm.dom.typedarrays.Int8Array;
import org.teavm.jso.JSConstructor;
<<<<... |
<<<<<<<
import org.n52.sos.ds.hibernate.dao.DaoFactory;
import org.n52.sos.ds.hibernate.dao.observation.series.AbstractSeriesObservationDAO;
import org.n52.sos.ds.hibernate.dao.observation.series.parameter.SeriesParameterDAO;
import org.n52.sos.ds.hibernate.entities.observation.series.Series;
import org.n52.sos.ds.hibe... |
<<<<<<<
=======
private Tracker mTracker;
/**
* Gets the default {@link Tracker} for this {@link Application}.
*
* @return tracker
*/
synchronized public Tracker getDefaultTracker() {
if (mTracker == null) {
GoogleAnalytics analytics = GoogleAnalytics.getInstance(... |
<<<<<<<
import java.sql.SQLException;
=======
import java.text.DateFormat;
>>>>>>>
import java.sql.SQLException;
import java.text.DateFormat; |
<<<<<<<
HashMap<String, Integer> refreshValues = UmbrellaUtil.getRefreshValues(getApplicationContext());
for (Map.Entry<String, Integer> entry : refreshValues.entrySet()) {
if (entry.getValue().equals(refreshValue)) {
refreshValueLabel = (String) entry.getKey();
=======
... |
<<<<<<<
final HashMap<String, Integer> refreshValues = UmbrellaUtil.getRefreshValues(SettingsActivity.this);
for (Map.Entry<String, Integer> entry : refreshValues.entrySet()) {
if (entry.getValue().equals(currentRefresh)) {
=======
final Map<String, Integer> refreshValues = Umbrell... |
<<<<<<<
Criterion filterHql = SosTemporalRestrictions.filterHql(tf, 1);
assertThat(filterHql.toString(), equalTo("resultTime>:resultTime1"));
=======
Criterion filterHql = TemporalRestrictions.filterHql(tf, 1);
assertThat(filterHql.toString(), equalTo("resultTime>:end1"));
>>>>>>>
... |
<<<<<<<
import java.io.InputStream;
=======
import java.util.List;
>>>>>>>
import java.io.InputStream;
import java.util.List;
<<<<<<<
public SlackMessageHandle<SlackMessageReply> sendFileToUser(SlackUser user, InputStream data, String fileName)
=======
public SlackMessageHandle<SlackMessageRepl... |
<<<<<<<
case SLACK_USER_CHANGE:
dispatchImpl((SlackUserChange) event, slackUserChangeListener);
case UNKNOWN:
=======
case PIN_ADDED:
dispatchImpl((PinAdded) event, pinAddedListener);
break;
cas... |
<<<<<<<
import com.ullink.slack.simpleslackapi.replies.SlackReply;
import java.util.concurrent.TimeUnit;
=======
import com.ullink.slack.simpleslackapi.events.SlackReplyEvent;
import java.util.concurrent.TimeUnit;
>>>>>>>
import java.util.concurrent.TimeUnit;
import com.ullink.slack.simpleslackapi.replies.SlackRepl... |
<<<<<<<
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.Map;
=======
import com.ullink.slack.simpleslackapi.blocks.Block;
>>>>>>>
import com.ullink.slack.simpleslackapi.blocks.Block;
<<<<<<<
public SlackMessageHandle<SlackMessageReply> sendFileToUser(SlackU... |
<<<<<<<
=======
import org.wikapidia.core.WikapidiaException;
import org.wikapidia.core.cmd.Env;
>>>>>>>
import org.wikapidia.core.WikapidiaException;
import org.wikapidia.core.cmd.Env; |
<<<<<<<
=======
import gnu.trove.set.hash.TIntHashSet;
import org.apache.commons.lang3.ArrayUtils;
>>>>>>>
import gnu.trove.set.hash.TIntHashSet;
import org.apache.commons.lang3.ArrayUtils;
<<<<<<<
import org.wikapidia.lucene.WikapidiaScoreDoc;
=======
import org.wikapidia.matrix.SparseMatrix;
import org.wikapidi... |
<<<<<<<
TIntDoubleHashMap comparison = getVector(localPageId, phrase.getLanguage());
if (comparison != null) {
SRResult result = new SRResult(localPageId, SimUtils.cosineSimilarity(vector,comparison));
results.add(result);
}
======... |
<<<<<<<
// check to see if GADM layers already exist
// TODO: this check should be made more sophisticated, esp. in the case of partial downloads
//if (folder.hasLayer("GADM0", "earth")){ // if layers already exist, do nothing and return
// return;
//}
... |
<<<<<<<
import org.apache.cayenne.CayenneException;
=======
>>>>>>>
import org.apache.cayenne.CayenneException;
<<<<<<<
import org.apache.cayenne.access.loader.filters.OldFilterConfigBridge;
=======
import org.apache.cayenne.access.loader.DefaultDbLoaderDelegate;
import org.apache.cayenne.access.loader.filters.En... |
<<<<<<<
import java.io.File;
import org.apache.cayenne.access.loader.filters.OldFilterConfigBridge;
=======
import org.apache.cayenne.access.loader.filters.EntityFilters;
import org.apache.cayenne.access.loader.filters.FilterFactory;
import org.apache.cayenne.configuration.DataNodeDescriptor;
import org.apache.cayen... |
<<<<<<<
JScrollPane dataMapView = new JScrollPane(new DataMapView(mediator));
JScrollPane dbImportView = new JScrollPane(new DbImportView(mediator));
addTab("DataMap", dataMapView);
addTab("DB Import", dbImportView);
=======
JScrollPane dataMapScrollPane = new JScrollPane(new D... |
<<<<<<<
import android.view.WindowManager;
=======
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;
>>>>>>>
import android.view.WindowManager;
<<<<<<<
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED |
WindowManager.LayoutP... |
<<<<<<<
import com.apptentive.android.sdk.module.messagecenter.view.AvatarView;
import com.apptentive.android.sdk.module.messagecenter.view.CollapsibleTextView;
=======
import com.apptentive.android.sdk.module.messagecenter.view.ApptentiveAvatarView;
>>>>>>>
import com.apptentive.android.sdk.module.messagecenter.vi... |
<<<<<<<
timestampView.setText(createTimestamp(sentTime));
// Set Progress indicator
View progressBar = findViewById(R.id.progress);
if (progressBar != null) {
if (sentTime == null) {
progressBar.setVisibility(View.VISIBLE);
} else {
progressBar.setVisibility(View.INVISIBLE);
}
}
=======
... |
<<<<<<<
public static final String PREF_KEY_DEVICE_INTEGRATION_CONFIG = "integrationConfig";
=======
public static final String PREF_KEY_DEVICE_DATA_SENT = "deviceDataSent"; // Keeps track of whether we have ever sent device data.
>>>>>>>
public static final String PREF_KEY_DEVICE_INTEGRATION_CONFIG = "integrati... |
<<<<<<<
=======
import java.util.List;
>>>>>>> |
<<<<<<<
private final SharedPreferences globalSharedPrefs;
private final String apiKey;
=======
SharedPreferences globalSharedPrefs;
String apiKey;
String serverUrl;
>>>>>>>
private final SharedPreferences globalSharedPrefs;
private final String apiKey;
String serverUrl;
<<<<<<<
public static ApptentiveInt... |
<<<<<<<
clearComposingUi(null);
clearWhoCardUi(null);
MetricModule.sendMetric(activity, Event.EventLabel.message_center__close);
=======
clearComposingUi();
clearWhoCardUi();
>>>>>>>
clearComposingUi(null);
clearWhoCardUi(null);
<<<<<<<
clearComposingUi(new Animator.AnimatorListener() {
@Overrid... |
<<<<<<<
} else if (interactionName.equals("Survey")) {
interaction = new SurveyInteraction(SURVEY_INTERACTION);
} else if (interactionName.equals("Working Rating Flow")) {
String json = FileUtil.loadTextAssetAsString(this, "ratingFlowInteractions.json");
=======
} else if (interactionName.equals("Wor... |
<<<<<<<
public static Integer parseCacheControlHeader(String cacheControlHeader) {
if (cacheControlHeader != null) {
String[] cacheControlParts = cacheControlHeader.split(",");
for(String part : cacheControlParts) {
part = part.trim();
if(part.startsWith("max-age=")) {
String[] maxAgeParts = part... |
<<<<<<<
import com.apptentive.android.sdk.module.messagecenter.model.Message;
import com.apptentive.android.sdk.module.messagecenter.model.MessageCenterComposingItem;
=======
>>>>>>>
import com.apptentive.android.sdk.module.messagecenter.model.MessageCenterComposingItem;
<<<<<<<
private int pendingUpdateIndex = IN... |
<<<<<<<
public static String classToString(Object object) {
if (object == null) {
return "null";
} else {
return String.format("%s(%s)", object.getClass().getSimpleName(), object);
}
}
=======
public static String getImageMimeType(Context context, Uri contentUri) {
return context.getContentResolver()... |
<<<<<<<
public static final String PREF_KEY_VERSION_HISTORY = "versionHistory";
=======
public static final String PREF_KEY_PENDING_PUSH_NOTIFICATION = "pendingPushNotification";
>>>>>>>
public static final String PREF_KEY_VERSION_HISTORY = "versionHistory";
public static final String PREF_KEY_PENDING_PUSH_NOT... |
<<<<<<<
/*
* Copyright (C) 2012-2017 52°North Initiative for Geospatial Open Source
=======
/**
* Copyright (C) 2012-2017 52°North Initiative for Geospatial Open Source
>>>>>>>
/*
* Copyright (C) 2012-2017 52°North Initiative for Geospatial Open Source
<<<<<<<
import org.slf4j.Logger;
import org.slf4j.LoggerFact... |
<<<<<<<
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
=======
>>>>>>>
import android.widget.EditText;
<<<<<<<
import com.apptentive.android.sdk.module.messagecenter.model.MessageCenterComposingItem;
=======
import com.apptentive... |
<<<<<<<
* Optional user id for logged-in conversations
*/
private String userId;
/**
=======
* A utility for encrypting the data in payloads, files, and the conversation itself.
* Should be set on this object when it becomes LOGGED_IN.
* TODO: Create an encryptor, use it to decrypt this Conversation obje... |
<<<<<<<
/**
* Augments the stack trace of the given exception with the local stack
* trace. Useful for rethrowing exceptions from asynchronous callbacks.
*/
public static void addLocalTrace(Throwable e) {
String message = "--- thread transfer ---";
StackTraceElement[] original =... |
<<<<<<<
private volatile ExecutorService mSorterExecutor;
volatile boolean mClosed;
volatile Throwable mClosedCause;
=======
private volatile boolean mClosed;
private volatile Throwable mClosedCause;
>>>>>>>
private volatile ExecutorService mSorterExecutor;
private volatile boolean mClo... |
<<<<<<<
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
=======
import java.util.concurrent.ThreadLocalRandom;
>>>>>>>
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
im... |
<<<<<<<
writeShortLE(newValue, 1, (int) vlength); // full length
writeShortLE(newValue, 1 + 2, (int) vlength); // inline length
arrayCopyOrFill(value, 0, newValue, (1 + 2 + 2), (int) vlength);
=======
encodeShortLE(newValue, 1, value.length); // full length
... |
<<<<<<<
try {
readMultilevelFragments(db, pos, levels, inode, b, (int) bOff, (int) bLen);
} finally {
inode.releaseShared();
}
=======
final Node inode = db.nodeMapLoadFragment(inodeId);
... |
<<<<<<<
private boolean isContainedInSelectClause;
private String nameOriginText;
=======
>>>>>>>
private String nameOriginText;
<<<<<<<
this(exp, name, anonymous, true);
}
/**
* @param exp
* an expression
* @param name
* the name with which the the element can be ref... |
<<<<<<<
/*package*/ abstract class AbstractColumnQuery<K, N, V> extends AbstractQuery<K, N, V, HColumn<N, V>>
implements ColumnQuery<K, N, V>{
=======
public abstract class AbstractColumnQuery<N, V> extends AbstractQuery<N, V, HColumn<N, V>>
implements ColumnQuery<N, V>{
>>>>>>>
public abstract class Abstrac... |
<<<<<<<
import me.prettyprint.cassandra.model.HectorException;
import me.prettyprint.cassandra.model.PoolExhaustedException;
=======
import me.prettyprint.hector.api.exceptions.HectorException;
import me.prettyprint.hector.api.exceptions.HectorTransportException;
import me.prettyprint.hector.api.exceptions.PoolExhaus... |
<<<<<<<
public ThriftRangeSlicesQuery(KeyspaceOperator ko,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer) {
super(ko, keySerializer, nameSerializer, valueSerializer);
keyRange = new HKeyRange<K>(keySerializer);
=======
public ThriftRangeSlicesQu... |
<<<<<<<
import org.apache.cassandra.thrift.Clock;
=======
import me.prettyprint.hector.api.query.SuperColumnQuery;
>>>>>>>
import me.prettyprint.hector.api.query.SuperColumnQuery;
import org.apache.cassandra.thrift.Clock;
<<<<<<<
public static <K,N,V> MultigetSliceQuery<K,N,V> createMultigetSliceQuery(
K... |
<<<<<<<
import me.prettyprint.cassandra.service.CassandraClient.FailoverPolicy;
import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
import me.prettyprint.hector.api.ddl.KeyspaceDefinition;
=======
import me.prettyprint.cassandra.connection.HConnectionManager;
import me.prettyprint.cassandra.serializers.Strin... |
<<<<<<<
/*package*/ RangeSuperSlicesQuery(KeyspaceOperator ko, Serializer<K> keySerializer, Serializer<SN> sNameSerializer,
=======
public RangeSuperSlicesQuery(KeyspaceOperator ko, Serializer<SN> sNameSerializer,
>>>>>>>
public RangeSuperSlicesQuery(KeyspaceOperator ko, Serializer<K> keySerializer, Serializer... |
<<<<<<<
import me.prettyprint.cassandra.model.IndexedSlicesQuery;
import me.prettyprint.cassandra.model.KeyspaceOperator;
import me.prettyprint.cassandra.model.Mutator;
=======
import me.prettyprint.cassandra.model.MutatorImpl;
>>>>>>>
import me.prettyprint.cassandra.model.IndexedSlicesQuery;
import me.prettyprint.c... |
<<<<<<<
import me.prettyprint.cassandra.model.HColumn;
import me.prettyprint.cassandra.model.HSuperColumn;
import me.prettyprint.cassandra.model.IndexedSlicesQuery;
=======
import me.prettyprint.cassandra.model.HColumnImpl;
import me.prettyprint.cassandra.model.HSuperColumnImpl;
>>>>>>>
import me.prettyprint.cassand... |
<<<<<<<
tColumns.add(new Column(new byte[]{}, new byte[]{}, new Clock(0)));
slice = new ColumnSliceImpl<String, Long>(tColumns, se, le);
=======
tColumns.add(new Column(new byte[]{}, new byte[]{}, 0L));
slice = new ColumnSlice<String, Long>(tColumns, se, le);
>>>>>>>
tColumns.add(new Column(new b... |
<<<<<<<
ks.multigetSlice(keySerializer.toBytesSet(keysList), columnParent, getPredicate()));
return new RowsImpl<K, N, V>(thriftRet, columnNameSerializer, valueSerializer);
=======
ks.multigetSlice(keySerializer.toBytesList(keysList), columnParent, getPredicate()));
... |
<<<<<<<
/*package*/ public ThriftSuperColumnQuery(KeyspaceOperator keyspaceOperator,
Serializer<K> keySerializer,
Serializer<SN> sNameSerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer) {
super(keyspaceOperator, keySerializer, sNameSerializer, nameSerializer, valueSeri... |
<<<<<<<
// like a simple get operation
// may return a Column or a SuperColumn
public final class ColumnQuery<K,N,V> extends AbstractQuery<K,N,V,HColumn<N,V>> implements Query<HColumn<N,V>> {
=======
/**
* like a simple get operation for a standard column
* @author Ran Tavory
*
* @param <N> column name type
* @p... |
<<<<<<<
=======
import java.util.List;
import java.util.Map;
import me.prettyprint.hector.api.Serializer;
>>>>>>>
import me.prettyprint.hector.api.Serializer;
<<<<<<<
@Override
=======
@Override
public byte[] toBytes(byte[] obj) {
return obj;
}
@Override
>>>>>>>
@Override
<<<<<<<
@Override
... |
<<<<<<<
public Void execute(final Keyspace ks) throws HectorException {
ks.insert(keySerializer.toBytes(key), new ColumnParent(columnFamilyName), new Column(bytes(columnName), bytes(value), new Clock(ks.createClock())));
=======
public Void execute(final KeyspaceService ks) throws HectorException ... |
<<<<<<<
tColumns.add(new Column(new byte[]{}, new byte[]{}, new Clock(0)));
slice = new ColumnSlice<String, Long>(tColumns, se, le);
=======
tColumns.add(new Column(new byte[]{}, new byte[]{}, 0));
slice = new ColumnSliceImpl<String, Long>(tColumns, se, le);
>>>>>>>
tColumns.add(new Column(new by... |
<<<<<<<
/*package*/ SubSliceQuery(KeyspaceOperator ko, Serializer<K> keySerializer, Serializer<SN> sNameSerializer,
=======
public SubSliceQuery(KeyspaceOperator ko, Serializer<SN> sNameSerializer,
>>>>>>>
public SubSliceQuery(KeyspaceOperator ko, Serializer<K> keySerializer, Serializer<SN> sNameSerializer, |
<<<<<<<
/*
* 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 |
<<<<<<<
/*package*/ HSuperColumn(SN sName, List<HColumn<N, V>> columns, Clock clock,
=======
public HSuperColumn(SN sName, List<HColumn<N, V>> columns, long timestamp,
>>>>>>>
public HSuperColumn(SN sName, List<HColumn<N, V>> columns, Clock clock, |
<<<<<<<
import me.prettyprint.cassandra.model.HectorException;
import me.prettyprint.cassandra.serializers.StringSerializer;
=======
>>>>>>>
import me.prettyprint.cassandra.serializers.StringSerializer; |
<<<<<<<
=======
import java.util.Collections;
import java.util.List;
import me.prettyprint.cassandra.utils.Assert;
import me.prettyprint.hector.api.query.Query;
>>>>>>>
import me.prettyprint.hector.api.query.Query; |
<<<<<<<
import me.prettyprint.cassandra.model.KeyspaceOperator;
import me.prettyprint.cassandra.model.Mutator;
import me.prettyprint.cassandra.model.Result;
import me.prettyprint.cassandra.model.Serializer;
=======
>>>>>>>
<<<<<<<
ExampleDaoV2 ed = new ExampleDaoV2(createKeyspaceOperator(KEYSPACE, c));
ed.i... |
<<<<<<<
import me.prettyprint.hector.api.query.SuperCountQuery;
=======
import me.prettyprint.hector.api.query.SuperSliceQuery;
>>>>>>>
import me.prettyprint.hector.api.query.SuperCountQuery;
import me.prettyprint.hector.api.query.SuperSliceQuery; |
<<<<<<<
public String addColumnFamily(final ColumnFamilyDefinition cfdef) throws HectorException {
Operation<String> op = new Operation<String>(OperationType.META_WRITE) {
=======
public String addColumnFamily(final HCfDef cfdef) throws HectorException {
Operation<String> op = new Operation<String>(Operat... |
<<<<<<<
import me.prettyprint.cassandra.model.Serializer;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.cassandra.service.Keyspace;
=======
import me.prettyprint.cassandra.service.KeyspaceService;
>>>>>>>
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.pr... |
<<<<<<<
public AvroSubColumnQuery(KeyspaceOperator keyspaceOperator,
Serializer<K> keySerializer,
=======
public AvroSubColumnQuery(Keyspace keyspace,
>>>>>>>
public AvroSubColumnQuery(Keyspace keyspace,
Serializer<K> keySerializer,
<<<<<<<
super(keyspaceOperator, keySerializer, sNameSerialize... |
<<<<<<<
import android.support.annotation.Nullable;
import android.support.constraint.ConstraintLayout;
import android.support.v4.content.ContextCompat;
=======
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.cardview.widget.CardView;
import androidx.loca... |
<<<<<<<
celsiusTempUnit = sharedPreferences.getBoolean("selectTemperatureUnit", true); //true = celcius, false = fahrenheit
=======
boolean temperatureUnits = sharedPreferences.getBoolean("selectTemperatureUnit", true); //true = celcius, false = fahrenheit
powerUnits = sharedPreferences.getB... |
<<<<<<<
=======
import org.eclipse.vorto.repository.notification.IMessage;
import org.eclipse.vorto.repository.notification.INotificationService;
import org.eclipse.vorto.repository.notification.message.AddedToNamespaceMessage;
import org.eclipse.vorto.repository.notification.message.RemovedFromNamespaceMessage;
impo... |
<<<<<<<
=======
import java.security.Principal;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.function.Predicate;
import java.util.stream.C... |
<<<<<<<
/*
* 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 |
<<<<<<<
* @throws IOException;
*
* @throws NullPointerException if {@code data == null}.
=======
* @throws IOException if an I/O error occurs.
>>>>>>>
* @throws IOException if an I/O error occurs.
*
* @throws NullPointerException if {@code data == null}. |
<<<<<<<
private XBeeDevice xbeeDevice;
=======
private XBeePacketsQueue xbeePacketsQueue;
private XBeeDevice xbeeDevice;
>>>>>>>
private XBeePacketsQueue xbeePacketsQueue;
private XBeeDevice xbeeDevice;
<<<<<<<
String address = null;
RemoteXBeeDevice remoteXBeeDevice = null;
=======
RemoteXBe... |
<<<<<<<
protected OperatingMode determineOperatingMode() {
=======
protected OperatingMode determineConnectionMode() throws InterfaceNotOpenException, TimeoutException {
// Check if device is in API or API Escaped operating modes.
>>>>>>>
protected OperatingMode determineOperatingMode() throws InterfaceNotOpenE... |
<<<<<<<
import org.apache.hop.junit.rules.RestoreHopEngineEnvironment;
import org.apache.hop.workflow.engine.IWorkflowEngine;
import org.apache.hop.workflow.engines.local.LocalWorkflowEngine;
=======
>>>>>>>
import org.apache.hop.workflow.engine.IWorkflowEngine;
import org.apache.hop.workflow.engines.local.LocalWork... |
<<<<<<<
// Contract payment option may only be chosen if offered by SECC AND if communication is secured by TLS
if (paymentOptionsOffered.getPaymentOption().contains(PaymentOptionType.CONTRACT) &&
getCommSessionContext().isSecureCommunication())
return PaymentOptionType.CONTRACT;
else
return PaymentOp... |
<<<<<<<
import com.mifos.services.data.GpsCoordinatesRequest;
import com.mifos.services.data.GpsCoordinatesResponse;
import com.mifos.services.API;
=======
import com.mifos.objects.accounts.savings.SavingsAccountWithAssociations;
>>>>>>>
import com.mifos.services.data.GpsCoordinatesRequest;
import com.mifos.services... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.