conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
import java.net.URLEncoder;
=======
import com.fasterxml.jackson.databind.JsonNode;
import org.keycloak.models.KeycloakSession;
>>>>>>>
import com.fasterxml.jackson.databind.JsonNode;
import org.keycloak.models.KeycloakSession;
import java.net.URLEncoder; |
<<<<<<<
import org.keycloak.services.resources.admin.permissions.AdminPermissionEvaluator;
=======
import org.keycloak.services.resources.admin.AdminEventBuilder;
import org.keycloak.services.resources.admin.RealmAuth;
>>>>>>>
import org.keycloak.services.resources.admin.permissions.AdminPermissionEvaluator;
import ... |
<<<<<<<
import de.k3b.io.FileUtils;
import de.k3b.media.ImageMetaReader;
=======
import de.k3b.io.FileCommands;
>>>>>>>
import de.k3b.media.ImageMetaReader;
import de.k3b.io.FileCommands; |
<<<<<<<
public void shouldSerializeCurrentToken() throws Exception {
assertJson(CurrentToken(), "{\"current_token\":null}");
}
@Test
=======
public void shouldSerializeHasCurrentToken() throws Exception {
assertJson(HasCurrentToken(), "{\"has_current_token\":null}");
}
@Test
public void shou... |
<<<<<<<
=======
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == InputAddressView.BARCODE_READER_REQUEST_CODE) {
switch (resultCode)
{
case FullScannerFragment.SUCCESS:
if (data != n... |
<<<<<<<
definition.context = new TokenscriptContext();
definition.context.cAddr = cAddr;
definition.context.attrInterface = this;
List<AttributeType> attrList = new ArrayList<>(definition.attributeTypes.values());
if (extraAttrs != null) attrList.addAll(extraAttrs);
re... |
<<<<<<<
import com.wallet.crypto.trustapp.repository.PreferenceRepositoryType;
import com.wallet.crypto.trustapp.repository.SharedPreferenceRepository;
import com.wallet.crypto.trustapp.ui.ManageAccountsActivity;
=======
import com.wallet.crypto.trustapp.util.KS;
import com.wallet.crypto.trustapp.views.AccountListAct... |
<<<<<<<
import com.wallet.crypto.alphawallet.ui.MarketplaceFragment;
import com.wallet.crypto.alphawallet.ui.NewSettingsFragment;
=======
import com.wallet.crypto.alphawallet.ui.RedeemAssetSelectActivity;
import com.wallet.crypto.alphawallet.ui.RedeemSignatureDisplayActivity;
>>>>>>>
import com.wallet.crypto.alphawa... |
<<<<<<<
import com.alphawallet.app.entity.Event;
import com.alphawallet.app.entity.FragmentMessenger;
=======
import com.alphawallet.app.entity.TokenLocator;
>>>>>>>
import com.alphawallet.app.entity.Event;
import com.alphawallet.app.entity.FragmentMessenger;
import com.alphawallet.app.entity.TokenLocator;
<<<<<<<
... |
<<<<<<<
//put the view in here
String tokenIdWrapperName = "token-card-" + tokenId.toString(10);
initSrc = String.format(initSrc, tokenContent, walletAddress, EthereumNetworkRepository.getNodeURLByNetworkId(chainId), chainId, tokenIdWrapperName);
=======
initSrc = String.format(initSrc... |
<<<<<<<
import io.stormbird.wallet.service.OpenseaService;
=======
import io.stormbird.wallet.service.TokensService;
>>>>>>>
import io.stormbird.wallet.service.OpenseaService;
import io.stormbird.wallet.service.TokensService;
<<<<<<<
AssetDefinitionService assetDefinitionService,
OpenseaServ... |
<<<<<<<
viewModel.save(address, symbol, decimals, name, viewModel.getNetworkInfo().chainId);
=======
showProgress(true);
viewModel.save(address, symbol, decimals, name, isStormbird);
>>>>>>>
viewModel.save(address, symbol, decimals, name, viewModel.getNetworkInfo().cha... |
<<<<<<<
import org.n52.iceland.exception.CodedException;
import org.n52.iceland.exception.ows.OwsExceptionReport;
import org.n52.sos.ds.hibernate.dao.series.SeriesObservationDAO;
import org.n52.sos.ds.hibernate.entities.AbstractObservation;
=======
import org.n52.sos.ds.hibernate.dao.observation.AbstractObservationDA... |
<<<<<<<
adapter.updateRecentTransactions(transactions, contractAddress, myAddress, HISTORY_LENGTH);
=======
Transaction[] newArray = new Transaction[3];
int i = 0;
for (int x = transactions.length - 1; x > 0; x--) {
if (transactions[x] != null && i < 3) {
... |
<<<<<<<
import android.text.TextUtils;
=======
>>>>>>>
import android.text.TextUtils;
<<<<<<<
import com.alphawallet.app.entity.tokens.Token;
=======
>>>>>>>
import com.alphawallet.app.entity.tokens.Token;
<<<<<<<
import com.alphawallet.app.util.Utils;
import com.alphawallet.token.entity.As;
import com.alphaw... |
<<<<<<<
import android.webkit.ConsoleMessage;
=======
import android.view.View;
>>>>>>>
import android.webkit.ConsoleMessage;
import android.view.View;
<<<<<<<
public void onUnhandledKeyEvent(WebView view, KeyEvent event)
{
=======
public boolean shouldOverrideUrlLoading(WebView view, Stri... |
<<<<<<<
import io.stormbird.wallet.service.OpenseaService;
=======
import io.stormbird.wallet.service.TokensService;
>>>>>>>
import io.stormbird.wallet.service.OpenseaService;
import io.stormbird.wallet.service.TokensService;
<<<<<<<
private final OpenseaService openseaService;
=======
private final Token... |
<<<<<<<
/*
* 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 |
<<<<<<<
String generateTransactionPayload(Token token, BigInteger tokenId, FunctionDefinition fd, TokenDefinition td);
Single<Token[]> addERC20(Wallet wallet, Token[] tokens);
=======
>>>>>>>
Single<Token[]> addERC20(Wallet wallet, Token[] tokens); |
<<<<<<<
import com.alphawallet.app.interact.GenericWalletInteract;
import com.alphawallet.app.interact.GetDefaultWalletBalance;
=======
import com.alphawallet.app.repository.CurrencyRepositoryType;
>>>>>>>
import com.alphawallet.app.interact.GenericWalletInteract;
import com.alphawallet.app.interact.GetDefaultWallet... |
<<<<<<<
import com.wallet.crypto.trustapp.ui.TokenChangeCollectionActivity;
=======
import com.wallet.crypto.trustapp.ui.TicketTransferActivity;
>>>>>>>
import com.wallet.crypto.trustapp.ui.TicketTransferActivity;
import com.wallet.crypto.trustapp.ui.TokenChangeCollectionActivity;
<<<<<<<
@ActivityScope
@Cont... |
<<<<<<<
public void calculateGasEstimate(byte[] transaction, int chainId, String toAddress, BigInteger amount)
{
disposable = gasService.calculateGasEstimate(transaction, chainId, toAddress, amount, defaultWallet.getValue())
.observeOn(AndroidSchedulers.mainThread())
.su... |
<<<<<<<
Function function = new Function("transfer", params, returnTypes);
String encodedFunction = FunctionEncoder.encode(function);
byte[] data = Numeric.hexStringToByteArray(Numeric.cleanHexPrefix(encodedFunction));
=======
String password = PasswordManager.getPassword(from, ... |
<<<<<<<
import io.stormbird.wallet.service.OpenseaService;
=======
import io.stormbird.wallet.service.TokensService;
>>>>>>>
import io.stormbird.wallet.service.OpenseaService;
import io.stormbird.wallet.service.TokensService;
<<<<<<<
private final OpenseaService openseaService;
=======
private final Token... |
<<<<<<<
public static final String EXTRA_CURRENCY = "CURRENCY_STRING";
=======
public static final String EXTRA_PAGE_TITLE = "PTITLE";
>>>>>>>
public static final String EXTRA_PAGE_TITLE = "PTITLE";
public static final String EXTRA_CURRENCY = "CURRENCY_STRING"; |
<<<<<<<
this.walletRouter = walletRouter;
this.marketplaceRouter = marketplaceRouter;
this.newSettingsRouter = newSettingsRouter;
this.homeRouter = homeRouter;
=======
this.fetchTokensInteract = fetchTokensInteract;
>>>>>>>
this.walletRouter = walletRouter;
thi... |
<<<<<<<
public LiveData<TransactionData> sendDappTransaction() {
return newDappTransaction;
}
public void prepare() {
=======
public void prepare(ConfirmationActivity ctx) {
>>>>>>>
public LiveData<TransactionData> sendDappTransaction() {
return newDappTransaction;
}
pub... |
<<<<<<<
//Issue 460
@Test
public void nestedGenericTypes()
{
assertHasWarningsParse("424_nestedGenerics1.ump", 46);
assertHasWarningsParse("424_nestedGenerics2.ump", 1007);
}
=======
//Issue 546
@Test
public void portPrefixAttributeNameAssignment()
{
assertHasNoWarningsParse("701_validAtt... |
<<<<<<<
=======
private static final long serialVersionUID = -5527566248002296042L;
public Crisis(){}
public Long getCrisisID() {
return crisisID;
}
public void setCrisisID(Long crisisID) {
this.crisisID = crisisID;
}
public String getName() {
return name;
... |
<<<<<<<
import java.util.Set;
=======
>>>>>>>
import java.util.Set;
<<<<<<<
import qa.qcri.aidr.persister.filter.NominalLabel;
import qa.qcri.aidr.utils.PersisterConfigurationProperty;
import qa.qcri.aidr.utils.PersisterConfigurator;
=======
import qa.qcri.aidr.common.filter.NominalLabel;
>>>>>>>
import qa.qcri.... |
<<<<<<<
public static int setsockopt(int s, SocketLevel level, SocketOption optname, int optval) {
if (optname == SocketOption.SO_RCVTIMEO) {
DefaultNativeTimeval t = new DefaultNativeTimeval(Runtime.getSystemRuntime());
t.setTime(new long [] {optval / 1000, (optval % 1000) * 1000})... |
<<<<<<<
import javax.lang.model.SourceVersion;
import javax.tools.Diagnostic;
import javax.tools.JavaFileManager;
import javax.tools.JavaFileObject;
import javax.tools.StandardLocation;
import manifold.internal.BootstrapPlugin;
import manifold.internal.host.ManifoldHost;
import manifold.internal.runtime.Bootstrap;
impo... |
<<<<<<<
import net.minecraftforge.common.MinecraftForge;
=======
>>>>>>>
import net.minecraftforge.common.MinecraftForge; |
<<<<<<<
private static final String CONFIG_TARGET_KEYSPACE_NAME = PRIAM_PRE + ".target.keyspace";
private static final String CONFIG_TARGET_COLUMN_FAMILY_NAME = PRIAM_PRE + ".target.columnfamily";
private static final String CONFIG_CASS_MANUAL_START_ENABLE = PRIAM_PRE + ".cass.manual.start.enable";
=======... |
<<<<<<<
public boolean isBackingUpCommitLogs();
public String getCommitLogBackupArchiveCmd();
public String getCommitLogBackupRestoreCmd();
public String getCommitLogBackupRestoreFromDirs();
public String getCommitLogBackupRestorePointInTime();
=======
/**
* @return true/false, if ... |
<<<<<<<
public int getHintedHandoffThrottleKb();
/**
* @return max_hints_delivery_threads
*/
public int getMaxHintThreads();
=======
public int getHintHandoffDelay();
>>>>>>>
public int getHintedHandoffThrottleKb();
/**
* @return max_hints_delivery_threads
*/
publi... |
<<<<<<<
@Override
public boolean isBackingUpCommitLogs()
{
return config.get(CONFIG_COMMITLOG_BKUP_ENABLED, false);
}
@Override
public String getCommitLogBackupArchiveCmd()
{
return config.get(CONFIG_COMMITLOG_ARCHIVE_CMD, "");
}
@Override
public String getComm... |
<<<<<<<
@Override
public boolean doesCassandraStartManually() {
return false;
}
public String getInternodeCompression()
{
return "all";
=======
@Override
public boolean doesCassandraStartManually() {
return false;
}
@Override
public boolean isBackingUpCommitLogs()... |
<<<<<<<
import org.apache.commons.io.IOUtils;
import com.google.common.collect.Lists;
import com.google.common.util.concurrent.RateLimiter;
=======
import org.apache.commons.io.IOUtils;
>>>>>>>
import org.apache.commons.io.IOUtils;
import com.google.common.collect.Lists;
import com.google.common.util.concurrent.Rate... |
<<<<<<<
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
=======
>>>>>>>
<<<<<<<
{
if(!config.doesCassandraStartManually())
SystemUtils.startCassandra(true, config); // Start cassandra.
else
logger.info(... |
<<<<<<<
public int getNumTokens()
{
return 1;
}
=======
public String getYamlLocation()
{
return "conf/cassandra.yaml";
}
public String getAuthenticator()
{
return PriamConfiguration.DEFAULT_AUTHENTICATOR;
}
public String getAuthorizer()
{
... |
<<<<<<<
import com.netflix.priam.scheduler.BlockingSubmitThreadPoolExecutor;
import com.netflix.priam.utils.Throttle;
=======
import com.netflix.priam.scheduler.CustomizedThreadPoolExecutor;
>>>>>>>
import com.netflix.priam.scheduler.BlockingSubmitThreadPoolExecutor;
<<<<<<<
private Throttle throttle;
priva... |
<<<<<<<
logger.info("node tool repair being called");
nodetool.repair(isSequential, localDCOnly);
=======
logger.debug("node tool repair being called");
nodetool.repair(isSequential);
>>>>>>>
logger.debug("node tool repair being called");
nodetool.repair(isSequential, ... |
<<<<<<<
import org.apache.commons.lang.StringUtils;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.joda.time.DateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
=======
import com.netflix.priam.utils... |
<<<<<<<
@Override
public String getTargetKSName() {
return config.getProperty(CONFIG_TARGET_KEYSPACE_NAME, null);
}
@Override
public String getTargetCFName() {
return config.getProperty(CONFIG_TARGET_COLUMN_FAMILY_NAME, null);
}
@Override
public boolean doesCassandraStartManually() {
return config.g... |
<<<<<<<
private static final String CONFIG_COMMITLOG_RESTORE_MAX = PRIAM_PRE + ".clrestore.max";
=======
private static final String CONFIG_CLIENT_SSL_ENABLED = PRIAM_PRE + ".client.sslEnabled";
private static final String CONFIG_INTERNODE_ENCRYPTION = PRIAM_PRE + ".internodeEncryption";
private stati... |
<<<<<<<
=======
import org.shipkit.internal.gradle.configuration.DeferredConfiguration;
import org.shipkit.internal.gradle.configuration.LazyConfiguration;
>>>>>>>
import org.shipkit.internal.gradle.configuration.LazyConfiguration;
<<<<<<<
TaskMaker.task(project, COMMIT_VERSION_UPGRADE, ShipkitExecTask.clas... |
<<<<<<<
private Set<BaseProjectProperties> dependentSiblingProjects;
=======
private Jar sourcesJar;
private String pomTaskName;
public void compareBinaries(Closure<File> left, Closure<File> right) {
zipComparator.setPair(left, right);
}
public void comparePoms(Closure<String> left, ... |
<<<<<<<
LOG.lifecycle("Applying VersionUpgradeConsumerPlugin, beware that it's is INCUBATING state, so its API may change!");
final GitRemoteOriginPlugin gitOriginPlugin = project.getPlugins().apply(GitRemoteOriginPlugin.class);
final GitAuthPlugin.GitAuth gitAuth = project.getPlugins().apply(Gi... |
<<<<<<<
=======
@Override
public boolean isSolid(BlockState state) {
return false;
}
>>>>>>>
<<<<<<<
if (worldIn.isRemote) {
return ActionResultType.SUCCESS;
} else {
SchematicTableTileEntity te = (SchematicTableTileEntity) worldIn.getTileEntity(pos);
if (te != null)
NetworkHooks.openGui... |
<<<<<<<
=======
import com.simibubi.create.foundation.utility.TessellatorHelper;
import com.simibubi.create.modules.schematics.block.LaunchedItem.ForBlockState;
import com.simibubi.create.modules.schematics.block.LaunchedItem.ForEntity;
>>>>>>>
import com.simibubi.create.modules.schematics.block.LaunchedItem.ForBloc... |
<<<<<<<
ms.push();
=======
GlStateManager.pushMatrix();
>>>>>>>
ms.push();
<<<<<<<
for (TransportedItemStack transported : te.getInventory().items) {
ms.push();
TessellatorHelper.fightZFighting(transported.angle, ms);
=======
for (TransportedItemStack transported : te.getInventory().getItems(... |
<<<<<<<
import com.simibubi.create.foundation.ponder.PonderTooltipHandler;
=======
import com.simibubi.create.foundation.render.backend.FastRenderDispatcher;
import com.simibubi.create.foundation.render.backend.RenderWork;
>>>>>>>
import com.simibubi.create.foundation.ponder.PonderTooltipHandler;
import com.simibubi... |
<<<<<<<
@Override
public double getMaxRenderDistanceSquared() {
return super.getMaxRenderDistanceSquared();
}
@Override
public void onLoad() {
super.onLoad();
if (world != null && world.isRemote)
DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> CreateClient.kineticRenderer.add(this));
}
@Override
publ... |
<<<<<<<
import net.minecraft.client.renderer.BufferBuilder;
=======
import net.minecraft.client.renderer.Rectangle2d;
>>>>>>>
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Rectangle2d; |
<<<<<<<
import com.simibubi.create.modules.logistics.block.inventories.FlexcrateContainer;
import com.simibubi.create.modules.logistics.block.inventories.FlexcrateScreen;
import com.simibubi.create.modules.logistics.management.controller.LogisticalInventoryControllerContainer;
import com.simibubi.create.modules.logisti... |
<<<<<<<
KineticTileEntity te = (KineticTileEntity) worldIn.getTileEntity(pos);
if (te == null)
return;
if (entityIn.getY() < pos.getY() + 1.25f || !entityIn.onGround)
return;
=======
try {
CrushingWheelTileEntity te = getTileEntity(worldIn, pos);
if (entityIn.posY < pos.getY() + 1.25f || !entityIn... |
<<<<<<<
public ActionResultType onUse(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn,
=======
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving) {
if (state.hasTileEntity() && state.getBlock() != newState.getBlock()) {
i... |
<<<<<<<
float speed = ((KineticTileEntity) te).getSpeed() * 3/10;
World world = e.getEntityWorld();
if (speed == 0)
return;
if (e.getY() < pos.getY() + .5f)
=======
if (e.posY < pos.getY() + .5f)
>>>>>>>
if (e.getY() < pos.getY() + .5f) |
<<<<<<<
RenderSystem.rotatef(90, 0, 1, 0);
if (color == -1) {
blockRenderer.getBlockModelRenderer().renderModel(ms.peek(), vb, blockToRender, modelToRender, 1, 1, 1,
0xF000F0, OverlayTexture.DEFAULT_UV, EmptyModelData.INSTANCE);
} else {
Vec3d rgb = ColorHelper.getRGB(color);
blockRenderer.ge... |
<<<<<<<
import net.minecraft.entity.EntityType;
import net.minecraft.entity.merchant.villager.VillagerProfession;
=======
import net.minecraft.inventory.container.ContainerType;
>>>>>>>
import net.minecraft.entity.EntityType;
import net.minecraft.entity.merchant.villager.VillagerProfession;
import net.minecraft.inve... |
<<<<<<<
import net.minecraftforge.fml.DistExecutor;
=======
import net.minecraftforge.client.model.data.ModelProperty;
>>>>>>>
import net.minecraftforge.client.model.data.ModelProperty;
import net.minecraftforge.fml.DistExecutor;
<<<<<<<
@OnlyIn(value = Dist.CLIENT)
=======
>>>>>>>
@OnlyIn(value = Dist.CL... |
<<<<<<<
=======
import static com.simibubi.create.content.contraptions.relays.belt.BeltPart.MIDDLE;
import static com.simibubi.create.content.contraptions.relays.belt.BeltSlope.HORIZONTAL;
import static net.minecraft.util.Direction.AxisDirection.NEGATIVE;
import static net.minecraft.util.Direction.AxisDirection.POSIT... |
<<<<<<<
keyframeTimes = new IntegerList(4);
=======
scaleFactor = 1;
yOffset = 0;
>>>>>>>
keyframeTimes = new IntegerList(4);
scaleFactor = 1;
yOffset = 0; |
<<<<<<<
import com.simibubi.create.content.contraptions.components.structureMovement.chassis.StickerRenderer;
import com.simibubi.create.content.contraptions.components.structureMovement.chassis.StickerTileEntity;
import com.simibubi.create.content.contraptions.components.structureMovement.gantry.GantryPinionRenderer;
... |
<<<<<<<
public class BeltBlock extends HorizontalKineticBlock implements ITE<BeltTileEntity>, IHaveColorHandler {
=======
public class BeltBlock extends HorizontalKineticBlock
implements IHaveNoBlockItem, ITE<BeltTileEntity>, IHaveColorHandler, ISpecialBlockItemRequirement {
>>>>>>>
public class BeltBlock extends ... |
<<<<<<<
=======
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockRenderLayer;
>>>>>>>
import net.minecraft.tileentity.TileEntity; |
<<<<<<<
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionType;
=======
import com.simibubi.create.content.contraptions.components.structureMovement.AllContraptionTypes;
import com.simibubi.create.content.contraptions.components.structureMovement.AssemblyException;
>>>>>>>
impor... |
<<<<<<<
public static SpriteShiftEntry animatedTexture = SpriteShifter.get("block/crafter_thingies",
"block/crafter_thingies");
public MechanicalCrafterTileEntityRenderer(TileEntityRendererDispatcher dispatcher) {
super(dispatcher);
}
=======
public static SpriteShiftEntry animatedTexture =
SpriteShifter... |
<<<<<<<
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.Tessellator;
=======
>>>>>>>
import net.minecraft.client.renderer.IRenderTypeBuffer;
<<<<<<<
float alpha = timer > 20 ? .5f : timer / 40f;
RenderSystem.color4f(1, .7f, 0, alpha);
Set<BlockPos> includedPosition... |
<<<<<<<
double x = hangingPosition.getX() + 0.5 - facingDirection.getXOffset() * 0.5;
double y = hangingPosition.getY() + 0.5 - facingDirection.getYOffset() * 0.5;
double z = hangingPosition.getZ() + 0.5 - facingDirection.getZOffset() * 0.5;
this.setPos(x, y, z);
double d1 = (double) this.getWidthPixels(... |
<<<<<<<
public int getColor(BlockState state, ILightReader reader, BlockPos pos, int layer) {
=======
public int getColor(BlockState state, IEnviromentBlockReader reader, BlockPos pos, int layer) {
if (reader == null)
return 0;
>>>>>>>
public int getColor(BlockState state, ILightReader reader, BlockPos pos, ... |
<<<<<<<
import org.n52.shetland.ogc.sos.Sos2Constants;
import org.n52.shetland.ogc.sos.SosConstants;
import org.n52.shetland.ogc.sos.gda.GetDataAvailabilityConstants;
import org.n52.shetland.ogc.sos.gda.GetDataAvailabilityRequest;
import org.n52.shetland.ogc.sos.gda.GetDataAvailabilityResponse;
import org.n52.shetland.... |
<<<<<<<
CONFIGURE_LOGISTICAL_CONTROLLER(LogisticalControllerConfigurationPacket.class,
LogisticalControllerConfigurationPacket::new),
=======
CONFIGURE_MIXER(ConfigureMixerPacket.class, ConfigureMixerPacket::new),
>>>>>>>
CONFIGURE_LOGISTICAL_CONTROLLER(LogisticalControllerConfigurationPacket.class,
Logisti... |
<<<<<<<
import com.mojang.blaze3d.matrix.MatrixStack;
=======
import java.util.Arrays;
import java.util.List;
import com.mojang.blaze3d.platform.GlStateManager;
>>>>>>>
import java.util.Arrays;
import java.util.List;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
<<<... |
<<<<<<<
return ActionResultType.PASS;
if (worldIn.getTileEntity(pos) == null)
return ActionResultType.PASS;
=======
return false;
>>>>>>>
return ActionResultType.PASS; |
<<<<<<<
=======
import android.support.annotation.FloatRange;
import android.support.annotation.IdRes;
import android.support.annotation.LayoutRes;
import android.support.annotation.RequiresApi;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.ViewPager;
import android.support.v4... |
<<<<<<<
import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes;
import androidx.core.content.ContextCompat;
=======
import android.support.annotation.ColorRes;
import android.support.annotation.DrawableRes;
>>>>>>>
import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes; |
<<<<<<<
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
=======
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
>>>>>>>
import static org.junit.Assert.assertEquals;
import static org.junit.As... |
<<<<<<<
private static OutputStream os;
=======
private static String TEMP_DIR = System.getProperty("java.io.tmpdir");
>>>>>>>
private static OutputStream os;
private static String TEMP_DIR = System.getProperty("java.io.tmpdir");
<<<<<<<
public static void sendSignal() {
try {
os.write("\n".getBytes())... |
<<<<<<<
public ESTRequest newWithURL(URL url)
{
ESTRequest req = new ESTRequest(this.method, url, this.writer, hijacker, listener, new HttpUtil.Headers(), estClient);
for (Map.Entry<String, String[]> s : headers.entrySet())
{
req.headers.put(s.getKey(), s.getValue());
... |
<<<<<<<
private JVMStat jvmStat=new JVMStat();
=======
// 存储占比
private Integer storagePercent;
>>>>>>>
private JVMStat jvmStat=new JVMStat();
// 存储占比
private Integer storagePercent; |
<<<<<<<
private MessageConvertSupport messageConvertSupport;
=======
private ConfigurationManager configurationManager;
>>>>>>>
private MessageConvertSupport messageConvertSupport;
private ConfigurationManager configurationManager; |
<<<<<<<
public DefaultBrokerMonitorInternalService(BrokerStat brokerStat, Consume consume, StoreManagementService storeManagementService, NameService nameService, StoreService storeService, ElectionService electionManager) {
=======
public DefaultBrokerMonitorInternalService(BrokerStat brokerStat, Consume con... |
<<<<<<<
private int lastEntryTerm = -1; // 最新一条消息的term
private final CasLock flushLock = new CasLock(); // 刷盘锁,刷盘、回滚的时候需要持有这个锁。
=======
private int lastEntryTerm = -1;
private final CasLock flushLock = new CasLock();
private final ReadWriteLock rollbackLock = new ReentrantReadWriteLock();
>>>>>>>... |
<<<<<<<
if (usedSize.get() > maxMemorySize * EVICT_RATIO) {
evictThread.wakeup();
=======
if (usedSize.addAndGet(size) > maxMemorySize * EVICT_RATIO) {
evictThread.weakup();
>>>>>>>
if (usedSize.addAndGet(size) > maxMemorySize * EVICT_RATIO) {
evictThread.w... |
<<<<<<<
import com.jd.journalq.broker.kafka.coordinator.Coordinator;
import com.jd.journalq.broker.kafka.coordinator.group.GroupBalanceHandler;
import com.jd.journalq.broker.kafka.coordinator.group.GroupBalanceManager;
import com.jd.journalq.broker.kafka.coordinator.group.GroupCoordinator;
import com.jd.journalq.broker... |
<<<<<<<
import org.joyqueue.broker.limit.RateLimiter;
=======
import org.joyqueue.broker.monitor.BrokerMonitor;
>>>>>>>
import org.joyqueue.broker.limit.RateLimiter;
import org.joyqueue.broker.monitor.BrokerMonitor;
<<<<<<<
import org.joyqueue.network.session.Joint;
=======
import org.joyqueue.monitor.PointTracer... |
<<<<<<<
@Override
public JVMStat getJVMState() {
JVMStat jvmStat=brokerStat.getJvmStat();
jvmStat.setMemoryStat(jvmMonitorService.memSnapshot());
return jvmStat;
}
@Override
public void addGcEventListener(GCEventListener listener) {
this.gcNotificationParser.addLis... |
<<<<<<<
import com.jd.journalq.nsr.service.AppTokenService;
import com.jd.journalq.nsr.service.BrokerService;
import com.jd.journalq.nsr.service.ConfigService;
import com.jd.journalq.nsr.service.ConsumerService;
import com.jd.journalq.nsr.service.DataCenterService;
import com.jd.journalq.nsr.service.PartitionGroupRepli... |
<<<<<<<
public static PlantUmlResult render(String source, ImageFormat format, int page) {
//todo save multiple descriptions? or get rid of them?
=======
public static PlantUmlResult render(String source, ImageFormat format, int page, final int zoom) {
ByteArrayOutputStream os = new ByteArra... |
<<<<<<<
determineLanguage(ctx);
// make sure custom XPath functions are initialized
Initializer.initialize();
// Coarse check to see if any RuleSet applies to file, will need to do a finer RuleSet specific check later
if (ruleSets.applies(ctx.getSourceCodeFile())) {
... |
<<<<<<<
=======
import net.sourceforge.pmd.lang.java.oom.api.ClassMetric;
>>>>>>>
<<<<<<<
=======
import net.sourceforge.pmd.lang.java.oom.api.OperationMetric;
>>>>>>>
<<<<<<<
public static double get(MetricKey<ASTAnyTypeDeclaration> key, ASTAnyTypeDeclaration node) {
=======
public static double get(... |
<<<<<<<
=======
import net.sourceforge.pmd.lang.rule.RuleReference;
import net.sourceforge.pmd.RuleSet.RuleSetBuilder;
>>>>>>> |
<<<<<<<
@Parameter(names = {"-failOnViolation", "--failOnViolation"}, arity = 1, description = "By default PMD exits with status 4 if violations are found. Disable this option with '-failOnViolation false' to exit with 0 instead and just write the report.")
private boolean failOnViolation = true;
=======
... |
<<<<<<<
{"PLSQL", new LanguageConfig() {
public Language languageFor(LanguageFactory lf, Properties p) { return lf.createLanguage("plsql"); }
public String[] extensions() { return new String[] {".sql"
,".trg"
,".prc",".fnc"
,".pld"
... |
<<<<<<<
* ClassScope</p>
=======
* ClassScope
*
* @param classNameDeclaration The declaration of this class, as known to the parent scope.
>>>>>>>
* ClassScope</p>
*
* @param classNameDeclaration The declaration of this class, as known to the parent scope. |
<<<<<<<
import net.sourceforge.pmd.PMDVersion;
=======
import net.sourceforge.pmd.PMD;
import net.sourceforge.pmd.util.fxdesigner.util.DesignerUtil;
>>>>>>>
import net.sourceforge.pmd.PMDVersion;
import net.sourceforge.pmd.util.fxdesigner.util.DesignerUtil; |
<<<<<<<
@Test
public void testComments() throws IOException {
SourceCode sourceCode = new SourceCode(new SourceCode.StringCodeLoader("classdef LC" + PMD.EOL
+ " methods" + PMD.EOL
+ " function [obj, c,t, s ] = Classification( obj,m,t, cm )%#codegen" + PMD.EOL
... |
<<<<<<<
/**
* A convenience constructor
*
* @param name
* the rule set name
* @param theRules
* the rules to add to the rule set
* @return a new rule set with the given rules added
*/
public static RuleSet createFor(String name, Rule... theRules) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.