id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
17,101 | .addEntityDropCaptures()
.complete());
}
this.onDeath(source);
if (enterDeathPhase) {
<BUG>causeTracker.completePhase();
}</BUG>
}
} else if (flag1) {
this.playHurtSound(source);
| causeTracker.completePhase(EntityPhase.State.DEATH);
|
17,102 | import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.Redirect;
<BUG>import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
impor... | import org.spongepowered.common.event.tracking.phase.entity.EntityPhase;
import org.spongepowered.common.interfaces.entity.IMixinGriefer;
|
17,103 | this.isCorrectlyOverridden = ((EntityCreeper) (Object) this).getClass() == EntityCreeper.class;
}
@Inject(method = "onDeath", at = @At("RETURN"))
private void onDeath(DamageSource damageSource, CallbackInfo ci) {
if (!this.world.isRemote && this.tracksEntityDeaths) {
<BUG>((IMixinWorldServer) this.world).getCauseTracke... | ((IMixinWorldServer) this.world).getCauseTracker().completePhase(EntityPhase.State.DEATH);
|
17,104 | phaseBody.call();
} catch (Exception e) {
this.abortCurrentPhase(e);
return;
}
<BUG>this.completePhase();
</BUG>
}
public void abortCurrentPhase(Exception e) {
PhaseData data = this.stack.peek();
| this.completePhase(state);
|
17,105 | public void abortCurrentPhase(Exception e) {
PhaseData data = this.stack.peek();
this.printMessageWithCaughtException("Exception during phase body", "Something happened trying to run the main body of a phase", data.state, data.context, e);
stack.pop();
}
<BUG>public void completePhase() {
final PhaseData currentPhaseDa... | public void completePhase(IPhaseState prevState) {
final PhaseData currentPhaseData = this.stack.peek();
|
17,106 | } catch (Exception e) {
printMessageWithCaughtException("Exception Exiting Phase", "Something happened when trying to unwind", state, context, e);
}
if (state != GeneralPhase.Post.UNWINDING && phase.requiresPost(state)) {
try {
<BUG>completePhase();
} catch (Exception e) {</BUG>
printMessageWithCaughtException("Excepti... | completePhase(GeneralPhase.Post.UNWINDING);
|
17,107 | if (entityIn.isEntityAlive() && !(fromWorld.provider instanceof WorldProviderEnd)) {
fromWorld.profiler.startSection("placing");
teleporter.placeInPortal(entityIn, entityIn.rotationYaw);
fromWorld.profiler.endSection();
}
<BUG>toCauseTracker.completePhase();
fromMixinWorld.getCauseTracker().completePhase();
final Trans... | toCauseTracker.completePhase(EntityPhase.State.CHANGING_TO_DIMENSION);
fromMixinWorld.getCauseTracker().completePhase(EntityPhase.State.LEAVING_DIMENSION);
final Transform<World> portalExitTransform = mixinEntity.getTransform().setExtent((World) toWorld);
|
17,108 | .add(NamedCause.source(playerMP))
.addCaptures()
.complete()
);
world.removeEntity(player);
<BUG>causeTracker.completePhase();
}</BUG>
@Inject(method = "saveAllPlayerData()V", at = @At("RETURN"))
private void onSaveAllPlayerData(CallbackInfo ci) {
for (SpongeUser user : SpongeUser.dirtyUsers) {
| causeTracker.completePhase(PlayerPhase.State.PLAYER_LOGOUT);
}
|
17,109 | @Inject(method = "findChunksForSpawning", at = @At(value = "RETURN"))
private void onFindChunksForSpawningReturn(WorldServer worldServer, boolean spawnHostileMobs, boolean spawnPeacefulMobs, boolean spawnedOnSetTickRate, CallbackInfoReturnable<Integer> ci) {
IMixinWorldServer spongeWorld = ((IMixinWorldServer) worldSer... | causeTracker.completePhase(GenerationPhase.State.WORLD_SPAWNER_SPAWNING);
|
17,110 | @Inject(method = "performWorldGenSpawning", at = @At(value = "RETURN"))
private static void onPerformWorldGenSpawningReturn(World worldServer, Biome biome, int j, int k, int l, int m, Random rand, CallbackInfo ci) {
IMixinWorldServer spongeWorld = (IMixinWorldServer) worldServer;
if (CauseTracker.ENABLED) {
final Cause... | causeTracker.completePhase(GenerationPhase.State.WORLD_SPAWNER_SPAWNING);
|
17,111 | this.takeStat(StatList.TIME_SINCE_DEATH);
this.extinguish();
this.setFlag(0, false);
this.getCombatTracker().reset();
if (causeTracker != null && tracksEntityDeaths) {
<BUG>causeTracker.completePhase();
}</BUG>
}
@Override
public IMixinWorldServer getMixinWorld() {
| causeTracker.completePhase(EntityPhase.State.DEATH_UPDATE);
|
17,112 | import net.minecraft.block.Block;
import net.minecraft.block.BlockEventData;
import net.minecraft.block.BlockRedstoneLight;
import net.minecraft.block.BlockRedstoneRepeater;
import net.minecraft.block.BlockRedstoneTorch;
<BUG>import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.item.EntityItem;</BU... | import net.minecraft.entity.boss.dragon.phase.IPhase;
import net.minecraft.entity.item.EntityItem;
|
17,113 | context.complete();
causeTracker.switchToPhase(BlockPhase.State.BLOCK_DROP_ITEMS, context);
}
block.dropBlockAsItemWithChance((WorldServer) mixinWorld, pos, state, chance, fortune);
if (shouldEnterBlockDropPhase) {
<BUG>causeTracker.completePhase();
}</BUG>
}
static boolean trackBlockChange(CauseTracker causeTracker, C... | causeTracker.completePhase(BlockPhase.State.BLOCK_DROP_ITEMS);
|
17,114 | .addCaptures()
.addEntityDropCaptures()
.complete());
}
player.onUpdateEntity();
<BUG>causeTracker.completePhase();
for (WorldServer worldServer : WorldManager.getWorlds()) {</BUG>
if (worldServer == mixinWorldServer) { // we don't care about entering the phase for this world server of which we already entered
continue... | for (WorldServer worldServer : WorldManager.getWorlds()) {
|
17,115 | private void completeCommandPhase() {
if (CauseTracker.ENABLED && SpongeImpl.getServer().isCallingFromMinecraftThread()) {
Sponge.getServer().getWorlds().forEach(world -> {
final IMixinWorldServer mixinWorld = (IMixinWorldServer) world;
try {
<BUG>mixinWorld.getCauseTracker().completePhase();
</BUG>
} catch (Exception ... | mixinWorld.getCauseTracker().completePhase(GeneralPhase.State.COMMAND);
|
17,116 | worldServer.getChunkProvider().provideChunk(blockpos.getX() + k >> 4, blockpos.getZ() + l >> 4);
}
}
this.clearCurrentTask();
if (CauseTracker.ENABLED) {
<BUG>causeTracker.completePhase();
}</BUG>
chunkProviderServer.setForceChunkRequests(false);
}
@SuppressWarnings({"rawtypes", "unchecked"})
| causeTracker.completePhase(GenerationPhase.State.TERRAIN_GENERATION);
|
17,117 | BlockPos pos = VecHelper.toBlockPos(this.pos);
IBlockState current = world.getBlockState(pos);
IBlockState replaced = (IBlockState) this.blockState;
if (!force && (current.getBlock() != replaced.getBlock() || current.getBlock().getMetaFromState(current) != replaced.getBlock().getMetaFromState(replaced))) {
if (currentS... | causeTracker.completePhase(BlockPhase.State.RESTORING_BLOCKS);
|
17,118 | te.readFromNBT(this.compound);
te.markDirty();
}
}
if (!currentState.tracksBlockRestores()) {
<BUG>causeTracker.completePhase();
}</BUG>
return true;
}
@Override
| causeTracker.completePhase(BlockPhase.State.RESTORING_BLOCKS);
|
17,119 | .addCaptures()
.complete());
}
boolean result = worldIn.setBlockState(pos, state, flags);
if (isBlockAlready && !isWorldGen) {
<BUG>causeTracker.completePhase();
}</BUG>
return result;
}
@Overwrite
| causeTracker.completePhase(BlockPhase.State.BLOCK_DECAY);
|
17,120 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
17,121 | final int lineStride = dst.getScanlineStride();
final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final byte[][] data = dst.getByteDataArrays();
final float[] warpData = new float[2 * dstWidth];
<BUG>int lineOffset = 0;
if (ctable == null) { // source does not have IndexColor... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
17,122 | pixelOffset += pixelStride;
} // COLS LOOP
} // ROWS LOOP
}
} else {// source has IndexColorModel
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += lineStride;
warp.warpRect(dst.getX(), dst.getY() + h, dstWidth, 1, warpData);
| } else if (caseB) {
for (int h = 0; h < dstHeight; h++) {
|
17,123 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
17,124 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final short[][] data = dst.getShortDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
17,125 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
17,126 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final short[][] data = dst.getShortDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
17,127 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
17,128 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final int[][] data = dst.getIntDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += lineS... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
17,129 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
17,130 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final float[][] data = dst.getFloatDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset += l... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
17,131 | minX = src.getMinX();
maxX = src.getMaxX();
minY = src.getMinY();
maxY = src.getMaxY();
} else {
<BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);
minX = src.getMinX() + 1; // Left padding
maxX = src.getMaxX() - 2; // Right padding
minY = src.getMinY() + 1; // Top padding
max... | iterSource = getRandomIterator(src, null);
minX = src.getMinX() + leftPad; // Left padding
maxX = src.getMaxX() - rightPad; // Right padding
minY = src.getMinY() + topPad; // Top padding
maxY = src.getMaxY() - bottomPad; // Bottom padding
|
17,132 | final int pixelStride = dst.getPixelStride();
final int[] bandOffsets = dst.getBandOffsets();
final double[][] data = dst.getDoubleDataArrays();
final float[] warpData = new float[2 * dstWidth];
int lineOffset = 0;
<BUG>if (caseA) {
for (int h = 0; h < dstHeight; h++) {</BUG>
int pixelOffset = lineOffset;
lineOffset +=... | if(hasROI && !roiContainsTile && roiIter == null){
throw new IllegalArgumentException("Error on creating the ROI iterator");
}
if (caseA || (caseB && roiContainsTile)) {
for (int h = 0; h < dstHeight; h++) {
|
17,133 | } else {
updateMemo();
callback.updateMemo();
}
dismiss();
<BUG>}else{
</BUG>
Toast.makeText(getActivity(), getString(R.string.toast_memo_empty), Toast.LENGTH_SHORT).show();
}
}
| [DELETED] |
17,134 | }
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_memo);
<BUG>ChinaPhoneHelper.setStatusBar(this,true);
</BUG>
topicId = getIntent().getLongExtra("topicId", -1);
if (topicId == -1) {
finish();
| ChinaPhoneHelper.setStatusBar(this, true);
|
17,135 | MemoEntry.COLUMN_REF_TOPIC__ID + " = ?"
, new String[]{String.valueOf(topicId)});
}
public Cursor selectMemo(long topicId) {
Cursor c = db.query(MemoEntry.TABLE_NAME, null, MemoEntry.COLUMN_REF_TOPIC__ID + " = ?", new String[]{String.valueOf(topicId)}, null, null,
<BUG>MemoEntry._ID + " DESC", null);
</BUG>
if (c != nu... | MemoEntry.COLUMN_ORDER + " ASC", null);
|
17,136 | MemoEntry._ID + " = ?",
new String[]{String.valueOf(memoId)});
}
public long updateMemoContent(long memoId, String memoContent) {
ContentValues values = new ContentValues();
<BUG>values.put(MemoEntry.COLUMN_CONTENT, memoContent);
return db.update(</BUG>
MemoEntry.TABLE_NAME,
values,
MemoEntry._ID + " = ?",
| return db.update(
|
17,137 | import android.widget.RelativeLayout;
import android.widget.TextView;
import com.kiminonawa.mydiary.R;
import com.kiminonawa.mydiary.db.DBManager;
import com.kiminonawa.mydiary.shared.EditMode;
<BUG>import com.kiminonawa.mydiary.shared.ThemeManager;
import java.util.List;
public class MemoAdapter extends RecyclerView.A... | import com.marshalchen.ultimaterecyclerview.dragsortadapter.DragSortAdapter;
public class MemoAdapter extends DragSortAdapter<DragSortAdapter.ViewHolder> implements EditMode {
|
17,138 | private DBManager dbManager;
private boolean isEditMode = false;
private EditMemoDialogFragment.MemoCallback callback;
private static final int TYPE_HEADER = 0;
private static final int TYPE_ITEM = 1;
<BUG>public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMe... | public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMemoDialogFragment.MemoCallback callback, RecyclerView recyclerView) {
super(recyclerView);
this.mActivity = activity;
|
17,139 | this.memoList = memoList;
this.dbManager = dbManager;
this.callback = callback;
}
@Override
<BUG>public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
</BUG>
View view;
if (isEditMode) {
if (viewType == TYPE_HEADER) {
| public DragSortAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
17,140 | editMemoDialogFragment.show(mActivity.getSupportFragmentManager(), "editMemoDialogFragment");
}
});
}
}
<BUG>protected class MemoViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
private View rootView;
private TextView TV_memo_item_content;</BUG>
private ImageView IV_memo_item_delete;
| protected class MemoViewHolder extends DragSortAdapter.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
private ImageView IV_memo_item_dot;
private TextView TV_memo_item_content;
|
17,141 | import org.apache.karaf.shell.table.ShellTable;
import org.opendaylight.controller.config.yang.bgp.rib.impl.BgpSessionState;
import org.opendaylight.controller.config.yang.bgp.rib.impl.LocalPeerPreferences;
import org.opendaylight.controller.config.yang.bgp.rib.impl.MessagesStats;
import org.opendaylight.controller.con... | public final class BgpCliUtils {
|
17,142 | table.addRow().addContent("Object Name", objectName.getCanonicalName());
table.addRow().addContent("HoldtimeCurrent", bgpSessionState.getHoldtimeCurrent());
table.addRow().addContent("KeepaliveCurrent", bgpSessionState.getKeepaliveCurrent());
table.addRow().addContent("SessionDuration", bgpSessionState.getSessionDurati... | if (messageStats != null) {
table.addRow().addContent(MESSAGE_STATS_LABEL + "ErrorMsgsSent", messageStats.getErrorMsgs().getErrorSent().size());
|
17,143 | table.addRow().addContent(MESSAGE_STATS_LABEL + "KeepAliveMsgsSent", messageStats.getKeepAliveMsgs().getSent().getCount());
table.addRow().addContent(MESSAGE_STATS_LABEL + "KeepAliveMsgsReceived", messageStats.getKeepAliveMsgs().getReceived().getCount());
table.addRow().addContent(MESSAGE_STATS_LABEL + "TotalMsgsSent",... | }
if (peerPreferences != null) {
table.addRow().addContent(PEER_PREFERENCES_LABEL + "AddPathCapability", peerPreferences.getAddPathCapability());
|
17,144 | table.addRow().addContent(PEER_PREFERENCES_LABEL + "BgpExtendedMessageCapability", peerPreferences.getBgpExtendedMessageCapability());
table.addRow().addContent(PEER_PREFERENCES_LABEL + "BgpId", peerPreferences.getBgpId());
table.addRow().addContent(PEER_PREFERENCES_LABEL + "FourOctetAsCapability", peerPreferences.getF... | }
if (speakerPreferences != null) {
table.addRow().addContent(SPEAKER_PREFERENCES_LABEL + "AddPathCapability", speakerPreferences.getAddPathCapability());
|
17,145 | {
if (!first)
{
builder.append(", ");
}
<BUG>final A_Set plans = bundlesMap.mapAt(bundle);
final A_DefinitionParsingPlan plan = plans.iterator().next();
builder.append(plan.nameHighlightingPc(pc));</BUG>
first = false;
| public final static String errorIndicatorSymbol =
System.getProperty("os.name").startsWith("Windows")
? "↪"
: "⤷";
public interface CompilerProgressReporter
extends Continuation4<ModuleName, Long, ParserState, A_Phrase>
|
17,146 | if (detail)
{
final Set<A_Bundle> bundleSet =
new HashSet<A_Bundle>();
final List<A_DefinitionParsingPlan>
<BUG>representativePlans = new ArrayList<>();
for (final MapDescriptor.Entry successorBundleEntry
: entry.value().allParsingPlans().mapIterable())
</BUG>
{
| final A_BundleTree nextTree = entry.value();
: nextTree.allParsingPlans().mapIterable())
|
17,147 | import java.sql.SQLException;
import java.sql.Statement;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collection;
<BUG>import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;</BUG>
import java.util.concurrent.locks.Lock;
| import java.util.HashMap;
import java.util.Map;
import java.util.Set;
|
17,148 | if (msgin != null) {
try {
msgin.close();
} catch (IOException e) {
}
<BUG>}
}
}
protected void updateSourceSequence(SourceSequence seq)
</BUG>
throws SQLException {
| releaseResources(stmt, null);
protected void storeMessage(Identifier sid, RMMessage msg, boolean outbound)
throws IOException, SQLException {
storeMessage(connection, sid, msg, outbound);
protected void updateSourceSequence(Connection con, SourceSequence seq)
|
17,149 | } catch (SQLException ex) {
if (!isTableExistsError(ex)) {
throw ex;
} else {
LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
<BUG>verifyTable(SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
17,150 | } catch (SQLException ex) {
if (!isTableExistsError(ex)) {
throw ex;
} else {
LOG.fine("Table CXF_RM_DEST_SEQUENCES already exists.");
<BUG>verifyTable(DEST_SEQUENCES_TABLE_NAME, DEST_SEQUENCES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
17,151 | }
} finally {
stmt.close();
}
for (String tableName : new String[] {OUTBOUND_MSGS_TABLE_NAME, INBOUND_MSGS_TABLE_NAME}) {
<BUG>stmt = connection.createStatement();
try {</BUG>
stmt.executeUpdate(MessageFormat.format(CREATE_MESSAGES_TABLE_STMT, tableName));
} catch (SQLException ex) {
if (!isTableExistsError(ex)) {
| stmt = con.createStatement();
try {
stmt.executeUpdate(CREATE_DEST_SEQUENCES_TABLE_STMT);
|
17,152 | throw ex;
} else {
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("Table " + tableName + " already exists.");
}
<BUG>verifyTable(tableName, MESSAGES_TABLE_COLS);
</BUG>
}
} finally {
stmt.close();
| LOG.fine("Table CXF_RM_SRC_SEQUENCES already exists.");
verifyTable(con, SRC_SEQUENCES_TABLE_NAME, SRC_SEQUENCES_TABLE_COLS);
|
17,153 | if (newCols.size() > 0) {
if (LOG.isLoggable(Level.FINE)) {
LOG.log(Level.FINE, "Table " + tableName + " needs additional columns");
}
for (String[] newCol : newCols) {
<BUG>Statement st = connection.createStatement();
try {</BUG>
st.executeUpdate(MessageFormat.format(ALTER_TABLE_STMT_STR,
tableName, newCol[0], newCol[... | Statement st = con.createStatement();
try {
|
17,154 | if (nextReconnectAttempt < System.currentTimeMillis()) {
nextReconnectAttempt = System.currentTimeMillis() + reconnectDelay;
reconnectDelay = reconnectDelay * useExponentialBackOff;
}
}
<BUG>}
public static void deleteDatabaseFiles() {</BUG>
deleteDatabaseFiles(DEFAULT_DATABASE_NAME, true);
}
public static void deleteD... | public static void deleteDatabaseFiles() {
|
17,155 | Color.WHITE,
UserHandle.USER_CURRENT);
if (!mLavaLampEnabled) {
mPaint.setColor(mColor);
}
<BUG>int time = Settings.Secure.getIntForUser(resolver,
Settings.Secure.FLING_PULSE_LAVALAMP_SPEED, ColorAnimator.ANIM_DEF_DURATION,
UserHandle.USER_CURRENT);
mLavaLamp.setAnimationTime(time);
</BUG>
if (mLavaLampEnabled && mIsV... | int lavaLampSpeed = Settings.Secure.getIntForUser(resolver,
Settings.Secure.PULSE_LAVALAMP_SOLID_SPEED, 10 * 1000,
mLavaLamp.setAnimationTime(lavaLampSpeed);
|
17,156 | private int mUserColor;
private int mDbFuzzFactor;
private int mDbFuzz;
private int mPathEffect1;
private int mPathEffect2;
<BUG>private int mNumDivision;
private int mCustomDimen;
private int mFilledBlock;
private int mEmptyBlock;
private int mFudgeFactor;</BUG>
private Bitmap mCanvasBitmap;
| [DELETED] |
17,157 | UserHandle.USER_CURRENT);
if (!mLavaLampEnabled) {
mPaint.setColor(applyPaintAlphaToColor(mUserColor));
}
int time = Settings.Secure.getIntForUser(resolver,
<BUG>Settings.Secure.FLING_PULSE_LAVALAMP_SPEED, ColorAnimator.ANIM_DEF_DURATION,
UserHandle.USER_CURRENT);</BUG>
mLavaLamp.setAnimationTime(time);
if (mLavaLampEn... | Settings.Secure.FLING_PULSE_LAVALAMP_SPEED, 10000,
|
17,158 | public void readPhrasesWithTagScores(String filename, Pattern fieldDelimiterPattern, Pattern countDelimiterPattern) throws IOException
{
Timing timer = new Timing();
timer.doing("Reading phrases: " + filename);
BufferedReader br = IOUtils.getBufferedFileReader(filename);
<BUG>String line;
while ((line = br.readLine()) ... | int lineno = 0;
while ((line = br.readLine()) != null) {
|
17,159 | public String getText() {
return text;
}
public String getTag() {
return tag;
<BUG>}
public Collection<String> getAlternateForms() {</BUG>
if (alternateForms == null) {
List<String> forms = new ArrayList(1);
forms.add(text);
| public Object getData() {
return data;
public Collection<String> getAlternateForms() {
|
17,160 | @ApiOperation(value = OperationDescriptions.AccountPreferencesDescription.POST_PRIVATE, produces = ContentType.JSON, notes = Notes.ACCOUNT_PREFERENCES_NOTES)
AccountPreferencesJson post(@Valid AccountPreferencesJson updateRequest);
@GET
@Path("/isplatformselectiondisabled")
@Produces(MediaType.APPLICATION_JSON)
<BUG>@A... | @ApiOperation(value = OperationDescriptions.AccountPreferencesDescription.IS_PLATFORM_SELECTION_DISABLED, produces = ContentType.JSON,
Map<String, Boolean> isPlatformSelectionDisabled();
|
17,161 | private Map<String, Object> fileSystemParameters = new HashMap<>();
private Map<Long, String> ldapConfigs = new HashMap<>();
private Boolean defaultFileSystem;
private Long selectedMarathonStackId;
private String selectedMarathonStackName;
<BUG>private Set<String> constraintTemplates = new HashSet<>();
private Map<Stri... | private Set<String> enabledPlatforms = new HashSet<>();
private Map<String, MarathonHostgroupEntry> marathonHostgroups = new HashMap<>();
|
17,162 | import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.configuration.DefaultConfiguration;
import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
import org.apache.avalon.framework... | import org.apache.jmeter.reporters.ResultCollector;
import org.apache.jmeter.samplers.SampleResult;
|
17,163 | subTree.add(element, t);
}
}
return subTree;
}
<BUG>public static void processSamples(String filename, Visualizer visualizer, boolean showAll)
</BUG>
throws SAXException, IOException, ConfigurationException
{
DefaultConfigurationBuilder cfgbuilder = new DefaultConfigurationBuilder();
| public static void processSamples(String filename, Visualizer visualizer, ResultCollector rc)
|
17,164 | DefaultConfigurationBuilder cfgbuilder = new DefaultConfigurationBuilder();
Configuration savedSamples = cfgbuilder.buildFromFile(filename);
Configuration[] samples = savedSamples.getChildren();
for (int i = 0; i < samples.length; i++) {
SampleResult result = OldSaveService.getSampleResult(samples[i]);
<BUG>if (showAll... | if (rc.isSampleWanted(result.isSuccessful())) {
visualizer.add(result);
|
17,165 | private static final String XML_HEADER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; // $NON-NLS-1$
private static final int MIN_XML_FILE_LEN = XML_HEADER.length() + TESTRESULTS_START.length()
+ TESTRESULTS_END.length();
public final static String FILENAME = "filename"; // $NON-NLS-1$
private final static String SAVE... | private static final String SUCCESS_ONLY_LOGGING = "ResultCollector.success_only_logging"; // $NON-NLS-1$
transient private DefaultConfigurationSerializer serializer;
|
17,166 | private boolean inTest = false;
private static Map files = new HashMap();
private Set hosts = new HashSet();
protected boolean isStats = false;
public ResultCollector() {
<BUG>setErrorLogging(false);
setProperty(new ObjectProperty(SAVE_CONFIG, new SampleSaveConfiguration()));</BUG>
}
public Object clone(){
ResultCollec... | setSuccessOnlyLogging(false);
setProperty(new ObjectProperty(SAVE_CONFIG, new SampleSaveConfiguration()));
|
17,167 | }
parsedOK = true;
} else { // We are processing XML
try { // Assume XStream
bufferedInputStream = new BufferedInputStream(new FileInputStream(file));
<BUG>readSamples(SaveService.loadTestResults(bufferedInputStream), visualizer, showAll);
parsedOK = true;</BUG>
} catch (Exception e) {
log.info("Failed to load "+filena... | public void testStarted() {
testStarted(TEST_IS_LOCAL);
|
17,168 | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Arrays;
import java.util.Collection;
import javax.swing.JButton;
<BUG>import javax.swing.JCheckBox;
import javax.swing.JPopupMenu;</BUG>
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import org.apa... | import javax.swing.JLabel;
import javax.swing.JPopupMenu;
|
17,169 | extends AbstractJMeterGuiComponent
implements Visualizer, ChangeListener, UnsharedComponent, Clearable
{
private static final Logger log = LoggingManager.getLoggerForClass();
private FilePanel filePanel;
<BUG>private JCheckBox errorLogging;
private JButton saveConfigButton;</BUG>
protected ResultCollector collector = n... | private JCheckBox successOnlyLogging;
private JButton saveConfigButton;
|
17,170 | ComponentUtil.centerComponentInComponent(GuiPackage.getInstance().getMainFrame(), d);
d.setVisible(true);
}
});
filePanel = new FilePanel(JMeterUtils.getResString("file_visualizer_output_file"), ".jtl"); // $NON-NLS-1$ $NON-NLS-2$
<BUG>filePanel.addChangeListener(this);
filePanel.add(errorLogging);
filePanel.add(saveCo... | filePanel.add(new JLabel(JMeterUtils.getResString("log_only"))); // $NON-NLS-1$
filePanel.add(successOnlyLogging);
filePanel.add(saveConfigButton);
|
17,171 | if (menuSize != mButtons.length) {
buildMenuView();
return;
}
for (int i = 0; i < menuSize; i++) {
<BUG>mPresenter.setUpdateSuspended(true);
mButtons[i].initialize((MenuItemImpl) mMenu.getItem(i), 0);</BUG>
mPresenter.setUpdateSuspended(false);
}
}
| if (mMenu.getItem(i).isChecked()) {
mActiveButton = i;
mButtons[i].initialize((MenuItemImpl) mMenu.getItem(i), 0);
|
17,172 | customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString());
customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName);
customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString());
customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName);
customTokens.put("%%mlTraceFo... | customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName);
customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName);
}
|
17,173 | import org.thingsboard.server.extensions.api.plugins.msg.ToDeviceRpcRequest;
import org.thingsboard.server.extensions.api.plugins.rpc.PluginRpcMsg;
import org.thingsboard.server.extensions.api.plugins.rpc.RpcMsg;
import org.thingsboard.server.extensions.api.plugins.ws.PluginWebsocketSessionRef;
import org.thingsboard.s... | import org.w3c.dom.Attr;
import javax.annotation.Nullable;
|
17,174 | pluginCtx.msgEndpoint.close(sessionRef);
}
@Override
public void saveAttributes(DeviceId deviceId, String scope, List<AttributeKvEntry> attributes, PluginCallback<Void> callback) {
validate(deviceId);
<BUG>Set<AttributeKey> keys = new HashSet<>();
for (AttributeKvEntry attribute : attributes) {
keys.add(new AttributeKe... | [DELETED] |
17,175 | for (AttributeKvEntry attribute : attributes) {
keys.add(new AttributeKey(scope, attribute.getKey()));
}</BUG>
ListenableFuture<List<ResultSet>> rsListFuture = pluginCtx.attributesService.save(deviceId, scope, attributes);
Futures.addCallback(rsListFuture, getListCallback(callback, v -> {
<BUG>onDeviceAttributesChanged... | pluginCtx.msgEndpoint.close(sessionRef);
@Override
public void saveAttributes(DeviceId deviceId, String scope, List<AttributeKvEntry> attributes, PluginCallback<Void> callback) {
validate(deviceId);
onDeviceAttributesChanged(deviceId, scope, attributes);
|
17,176 | if (securityCtx.isPresent()) {
PluginApiCallSecurityContext ctx = securityCtx.get();
</BUG>
if (ctx.isTenantAdmin() || ctx.isCustomerUser()) {
<BUG>Device device = pluginCtx.deviceService.findDeviceById(deviceId);
if (device == null) {</BUG>
throw new IllegalStateException("Device not found!");
} else {
if (!device.ge... | final PluginApiCallSecurityContext ctx = securityCtx.get();
ListenableFuture<Device> device = pluginCtx.deviceService.findDeviceById(deviceId);
Futures.addCallback(device, );
if (device == null) {
|
17,177 | public class DummyWorld extends WorldServer
{
public List<Entity> spawnedEntities = new ArrayList<>();
public DummyWorld(WorldServer world)
{
<BUG>super(Minecraft.getMinecraft().getIntegratedServer(), world.getSaveHandler(), world.getWorldInfo(), world.provider.getDimension(), world.theProfiler);
</BUG>
this.provider.r... | super(Minecraft.getMinecraft().getIntegratedServer(), world.getSaveHandler(), world.getWorldInfo(), world.provider.getDimensionType().getId(), world.theProfiler);
|
17,178 | final int processors = Runtime.getRuntime().availableProcessors();
this.executor = Executors.newFixedThreadPool(processors - 1);
}
public void addChunkProfiler(DummyWorld dummyWorld, List<Chunk> chunks)
{
<BUG>final int dimId = dummyWorld.provider.getDimension();
</BUG>
final ProfiledDimensionData dimensionData = profi... | final int dimId = dummyWorld.provider.getDimensionType().getId();
|
17,179 | import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
<BUG>import net.minecraft.world.chunk.Chunk;
import java.util.Arrays;</BUG>
import java.util.HashMap;
import java.util.... | import javax.annotation.Nonnull;
import java.util.Arrays;
|
17,180 | for (Chunk chunk : this.chunks)
profileChunk(chunk);
}
private void profileChunk(Chunk chunk)
{
<BUG>this.timer.startChunk(world.provider.getDimension());
Map<String, Integer[]> temp = new HashMap<>();</BUG>
BlockPos.MutableBlockPos blockPos = new BlockPos.MutableBlockPos();
RayTraceResult rayTraceResult = new RayTrace... | int dimId = world.provider.getDimensionType().getId();
this.timer.startChunk(dimId);
Map<String, Integer[]> temp = new HashMap<>();
|
17,181 | public class WorldEventHelper
{
@SubscribeEvent
public void onWorldLoad(WorldEvent.Load event)
{
<BUG>if (!DimensionRegistry.contains(event.world.provider.getDimension()))
{
DimensionRegistry.registerDimension(BlockRestriction.STONE, event.world.provider.getDimension(), false/*ModList.mystcraft.isLoaded() && MystCompat... | int dimId = event.world.provider.getDimensionType().getId();
if (!DimensionRegistry.contains(dimId))
DimensionRegistry.registerDimension(BlockRestriction.STONE, dimId, false/*ModList.mystcraft.isLoaded() && MystCompat.isMystDim(event.world.provider.dimensionId)*/);
|
17,182 | this.timer.complete();
}
private void profileWorld(final WorldServer worldServer)
{
final ProfilingExecutor executor = new ProfilingExecutor(this);
<BUG>this.currentExecutor = executor;
this.allDimensionData.put(worldServer.provider.getDimension(), new ProfiledDimensionData());
</BUG>
DummyWorld dummyWorld = new DummyW... | int dimId = worldServer.provider.getDimensionType().getId();
this.allDimensionData.put(dimId, new ProfiledDimensionData());
|
17,183 | import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.LocalFileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.util.Progressable;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AFileSystem extends FileSyste... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AFileSystem extends FileSystem {
|
17,184 | public void initialize(URI name, Configuration conf) throws IOException {
super.initialize(name, conf);
uri = URI.create(name.getScheme() + "://" + name.getAuthority());
workingDir = new Path("/user", System.getProperty("user.name")).makeQualified(this.uri,
this.getWorkingDirectory());
<BUG>String accessKey = conf.get(... | String accessKey = conf.get(NEW_ACCESS_KEY, conf.get(OLD_ACCESS_KEY, null));
String secretKey = conf.get(NEW_SECRET_KEY, conf.get(OLD_SECRET_KEY, null));
|
17,185 | } else {
accessKey = userInfo;
}
}
AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain(
<BUG>new S3ABasicAWSCredentialsProvider(accessKey, secretKey),
new InstanceProfileCredentialsProvider(),
new S3AAnonymousAWSCredentialsProvider()
);</BUG>
bucket = name.getHost();
| new BasicAWSCredentialsProvider(accessKey, secretKey),
new AnonymousAWSCredentialsProvider()
|
17,186 |
awsConf.setSocketTimeout(conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT));
</BUG>
s3 = new AmazonS3Client(credentials, awsConf);
<BUG>maxKeys = conf.getInt(MAX_PAGING_KEYS, DEFAULT_MAX_PAGING_KEYS);
partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THR... | new InstanceProfileCredentialsProvider(),
new AnonymousAWSCredentialsProvider()
bucket = name.getHost();
ClientConfiguration awsConf = new ClientConfiguration();
awsConf.setMaxConnections(conf.getInt(NEW_MAXIMUM_CONNECTIONS, conf.getInt(OLD_MAXIMUM_CONNECTIONS, DEFAULT_MAXIMUM_CONNECTIONS)));
awsConf.setProtocol(conf.g... |
17,187 | cannedACL = null;
}
if (!s3.doesBucketExist(bucket)) {
throw new IOException("Bucket " + bucket + " does not exist");
}
<BUG>boolean purgeExistingMultipart = conf.getBoolean(PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART);
long purgeExistingMultipartAge = conf.getLong(PURGE_EXISTING_MULTIPART_AGE, DEFAULT_... | boolean purgeExistingMultipart = conf.getBoolean(NEW_PURGE_EXISTING_MULTIPART, conf.getBoolean(OLD_PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART));
long purgeExistingMultipartAge = conf.getLong(NEW_PURGE_EXISTING_MULTIPART_AGE, conf.getLong(OLD_PURGE_EXISTING_MULTIPART_AGE, DEFAULT_PURGE_EXISTING_MULTIPART... |
17,188 | import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AOutputStream extends OutputStream {</BUG>
private OutputStream backupStream;
private File backup... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AOutputStream extends OutputStream {
|
17,189 | this.client = client;
this.progress = progress;
this.fs = fs;
this.cannedACL = cannedACL;
this.statistics = statistics;
<BUG>partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
</BUG>
if (conf.get(BUFFER_DIR, null) ... | partSize = conf.getLong(OLD_MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(OLD_MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
|
17,190 | package com.projecttango.examples.java.augmentedreality;
import com.google.atap.tangoservice.Tango;
import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;
import com.google.atap.tangoservice.TangoCameraIntrinsics;
import com.google.atap.tangoservice.TangoConfig;
<BUG>import com.google.atap.tangoservice.TangoC... | import com.google.atap.tangoservice.TangoErrorException;
import com.google.atap.tangoservice.TangoEvent;
|
17,191 | super.onResume();
if (!mIsConnected) {
mTango = new Tango(AugmentedRealityActivity.this, new Runnable() {
@Override
public void run() {
<BUG>try {
connectTango();</BUG>
setupRenderer();
mIsConnected = true;
} catch (TangoOutOfDateException e) {
| TangoSupport.initialize();
connectTango();
|
17,192 | if (lastFramePose.statusCode == TangoPoseData.POSE_VALID) {
mRenderer.updateRenderCameraPose(lastFramePose, mExtrinsics);
mCameraPoseTimestamp = lastFramePose.timestamp;</BUG>
} else {
<BUG>Log.w(TAG, "Can't get device pose at time: " + mRgbTimestampGlThread);
}</BUG>
}
}
}
@Override
| mRenderer.updateRenderCameraPose(lastFramePose);
mCameraPoseTimestamp = lastFramePose.timestamp;
Log.w(TAG, "Can't get device pose at time: " +
|
17,193 | import org.rajawali3d.materials.Material;
import org.rajawali3d.materials.methods.DiffuseMethod;
import org.rajawali3d.materials.textures.ATexture;
import org.rajawali3d.materials.textures.StreamingTexture;
import org.rajawali3d.materials.textures.Texture;
<BUG>import org.rajawali3d.math.Matrix4;
import org.rajawali3d.... | import org.rajawali3d.math.Quaternion;
import org.rajawali3d.math.vector.Vector3;
|
17,194 | translationMoon.setRepeatMode(Animation.RepeatMode.INFINITE);
translationMoon.setTransformable3D(moon);
getCurrentScene().registerAnimation(translationMoon);
translationMoon.play();
}
<BUG>public void updateRenderCameraPose(TangoPoseData devicePose, DeviceExtrinsics extrinsics) {
Pose cameraPose = ScenePoseCalculator.t... | public void updateRenderCameraPose(TangoPoseData cameraPose) {
float[] rotation = cameraPose.getRotationAsFloats();
float[] translation = cameraPose.getTranslationAsFloats();
Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]);
getCurrentCamera().setRotation(quaternion.conjugate()... |
17,195 | package com.projecttango.examples.java.helloareadescription;
import com.google.atap.tangoservice.Tango;
<BUG>import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;
import com.google.atap.tangoservice.TangoConfig;</BUG>
import com.google.atap.tangoservice.TangoCoordinateFramePair;
import com.google.atap.tangos... | import com.google.atap.tangoservice.TangoAreaDescriptionMetaData;
import com.google.atap.tangoservice.TangoConfig;
|
17,196 | private final I18n i18n;
private Filter filter;
ApplicationElement(TodoItemRepository repository, I18n i18n) {
this.repository = repository;
this.i18n = i18n;
<BUG>Elements.Builder builder = new Elements.Builder()
.section().css("todoapp")</BUG>
.header().css("header")
.h(1).innerText(i18n.constants().todos()).end()
.i... | TodoBuilder builder = new TodoBuilder()
.section().css("todoapp")
|
17,197 | import static org.junit.Assert.assertNotNull;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class ElementsBuilderTest {
<BUG>private Elements.Builder builder;
</BUG>
@Before
public void setUp() {
Document document = mock(Document.cla... | private TestableBuilder builder;
|
17,198 | when(document.createParagraphElement()).thenAnswer(invocation -> new StandaloneElement("p"));
when(document.createSelectElement()).thenAnswer(invocation -> new StandaloneInputElement("select"));
when(document.createSpanElement()).thenAnswer(invocation -> new StandaloneElement("span"));
when(document.createTextAreaEleme... | builder = new TestableBuilder(document);
|
17,199 | TodoItemRepository repository = new TodoItemRepository(BEAN_FACTORY);
ApplicationElement application = new ApplicationElement(repository, i18n);
Element body = Browser.getDocument().getBody();
body.appendChild(application.asElement());
body.appendChild(new FooterElement(i18n).asElement());
<BUG>Element e = new MyBuilde... | [DELETED] |
17,200 | @Override
public String toString() {
return (container ? "container" : "simple") + " @ " + level + ": " + element.getTagName();
}
}
<BUG>public static class Builder extends CoreBuilder<Builder>
{
public Builder() {
super(Browser.getDocument());
}
protected Builder(Document document) {
super( document );</BUG>
}
| [DELETED] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.