id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
26,401
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2];
26,402
s_ix = startPts[0].x; s_iy = startPts[0].y; if (setDestinationNoData) { for (int x = dst_min_x; x < clipMinX; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,403
final int posyROI = (s_iy - srcRectY) * roiScanlineStride; final int baseIndex = (posx / dst_num_bands) + posyROI; if (baseIndex > roiDataLength || roiDataArray[baseIndex] == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = desti...
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,404
: 0); } } } if (tmpROI == 0) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } else { for (int h = 0; h < KERNEL_LINE_DIM; h++) { double tempSum = 0;
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,405
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,406
s_ix = startPts[0].x; s_iy = startPts[0].y; if (setDestinationNoData) { for (int x = dst_min_x; x < clipMinX; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,407
int x0 = src.getX() + posx / srcPixelStride; int y0 = src.getY() + posy / srcScanlineStride; if (!roiBounds.contains(x0, y0)) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,408
pixelKernel[h][z] = srcDataArrays[k2][pos + (z - 1) tmpROI += roiIter.getSample(x0 + h - 1, y0 + z - 1, 0) & 0xff; } } if (tmpROI == 0) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } else { for (int h = 0; h < KERNEL_LINE_DIM; h++) { double tempSum = 0;
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,409
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,410
weightVert &= (0x0F - (1 << h)); } sumArray[h] = tempSum; } if (weight == 0) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } else { double[] tempData = bicubicInpaintingDouble(sumArray, weightVert, emptyArray);
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,411
sum = 0; } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } } if (fracx < fracdx1) {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,412
s_ix = startPts[0].x; s_iy = startPts[0].y; if (setDestinationNoData) { for (int x = dst_min_x; x < clipMinX; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,413
final int offsetY = KERNEL_LINE_DIM * (int) (shift * fracy); final int pos = posx + posy; if (baseIndex > roiDataLength || roiDataArray[baseIndex] == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG...
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,414
weight &= (0xffff - (1 << 4 * h + z)); } } } if (weight == 0 || tmpROI == 0) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } else { for (int h = 0; h < KERNEL_LINE_DIM; h++) { double tempSum = 0;
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,415
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,416
s_ix = startPts[0].x; s_iy = startPts[0].y; if (setDestinationNoData) { for (int x = dst_min_x; x < clipMinX; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,417
final int offsetY = KERNEL_LINE_DIM * (int) (shift * fracy); final int pos = posx + posy; if (!roiBounds.contains(x0, y0)) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,418
weight &= (0xffff - (1 << 4 * h + z)); } } } if (weight == 0 || tmpROI == 0) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> } else { for (int h = 0; h < KERNEL_LINE_DIM; h++) { double tempSum = 0;
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,419
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
26,420
import org.springframework.core.env.Environment; import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; import com.devnexus.ting.core.applicationlistener.ContextRefreshedEventListener; import com.google.common.cache.CacheBuilder; @EnableCaching <BUG>@SpringBootApplication(exclude = { org.spring...
@SpringBootApplication public class DevNexusApplication implements EmbeddedServletContainerCustomizer {
26,421
package com.devnexus.ting.common; public final class SpringProfile { <BUG>public static final String MAIL_ENABLED = "mail-enabled"; public static final String TWITTER_ENABLED = "twitter-enabled";</BUG> public static final String PAYPAL_ENABLED = "paypal-enabled"; public static final String PAYPAL_LIVE = "paypal-live"; ...
public static final String MAIL_DISABLED = "!mail-enabled"; public static final String TWITTER_ENABLED = "twitter-enabled";
26,422
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) setOutlineProvider(ViewOutlineProvider.BOUNDS); } } @Override <BUG>public void draw(@NonNull Canvas canvas) { if (cornerRadius > 0 && getWidth() > 0 && getHeight() > 0 && Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT_WATCH) {</BUG> int saveCount = canvas....
drawCalled = true; if (cornerRadius > 0 && getWidth() > 0 && getHeight() > 0 && Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT_WATCH) {
26,423
import com.dsh105.echopet.compat.api.event.PetTeleportEvent; import com.dsh105.echopet.compat.api.plugin.EchoPet; import com.dsh105.echopet.compat.api.plugin.uuid.UUIDMigration; import com.dsh105.echopet.compat.api.reflection.ReflectionConstants; import com.dsh105.echopet.compat.api.reflection.SafeMethod; <BUG>import c...
import com.dsh105.echopet.compat.api.util.INMS; import com.dsh105.echopet.compat.api.util.PetNames;
26,424
this.getRider().removePet(false); } new BukkitRunnable() { @Override public void run() { <BUG>method.invoke(PlayerUtil.playerToEntityPlayer(getOwner()), getEntityPet()); ownerIsMounting = false;</BUG> if (getEntityPet() instanceof IEntityNoClipPet) { ((IEntityNoClipPet) getEntityPet()).noClip(false); }
INMS.getInstance().mount(getOwner(), getEntityPet().getBukkitEntity()); ownerIsMounting = false;
26,425
@Override public void onEnable() { EchoPet.setPlugin(this); isUsingNetty = CommonReflection.isUsingNetty(); this.configManager = new YAMLConfigManager(this); <BUG>COMMAND_MANAGER = new CommandManager(this); try { Class.forName(ReflectionUtil.COMPAT_NMS_PATH + ".SpawnUtil"); } catch (ClassNotFoundException e) {</BUG> Ec...
if (!INMS.isSupported()) {
26,426
</BUG> import com.jolbox.bonecp.BoneCP; import org.bukkit.plugin.Plugin; public interface IEchoPetPlugin extends Plugin { <BUG>public ISpawnUtil getSpawnUtil(); </BUG> public String getPrefix(); public String getCommandString(); public String getAdminCommandString(); PetRegistry getPetRegistry();
import com.dsh105.commodus.config.YAMLConfig; import com.dsh105.echopet.compat.api.config.ConfigOptions; import com.dsh105.echopet.compat.api.plugin.hook.IVanishProvider; import com.dsh105.echopet.compat.api.plugin.hook.IWorldGuardProvider; import com.dsh105.echopet.compat.api.registration.PetRegistry; import com.dsh10...
26,427
String command = null; String result = null; Socket socket; while (continueListenning() && (socket = getSocket()) != null) { try { <BUG>time = System.currentTimeMillis(); try {</BUG> InputStream inputStream = socket.getInputStream(); InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "ISO-8859-1")...
InetAddress ipAddress = socket.getInetAddress();
26,428
InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "ISO-8859-1"); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); command = bufferedReader.readLine(); if (command == null) { command = "DISCONNECTED"; <BUG>} else { result = AdministrationTCP.this.processCommand(command); </BU...
Client client = Client.get(ipAddress); User user = client == null ? null : client.getUser(); result = AdministrationTCP.this.processCommand(user, command);
26,429
} catch (SocketException ex) { Server.logDebug("interrupted " + getName() + " connection."); result = "INTERRUPTED\n"; } finally { socket.close(); <BUG>InetAddress address = socket.getInetAddress(); </BUG> clearSocket(); Server.logAdministration( time,
InetAddress address = ipAddress;
26,430
Bundle savedInstanceState) { final View rootView = inflater.inflate(R.layout.tab_qibla, container, false); final QiblaCompassView qiblaCompassView = (QiblaCompassView)rootView.findViewById(R.id.qibla_compass); qiblaCompassView.setConstants(((TextView)rootView.findViewById(R.id.bearing_north)), getText(R.string.bearing_...
sOrientationListener = new android.hardware.SensorListener() {
26,431
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.DigestOutputStream; import java.security.MessageDigest; <BUG>import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.List;</BUG> public final class ...
import java.text.DateFormat; import java.util.Date; import java.util.List;
26,432
package org.jboss.as.patching.runner; <BUG>import org.jboss.as.boot.DirectoryStructure; import org.jboss.as.patching.LocalPatchInfo;</BUG> import org.jboss.as.patching.PatchInfo; import org.jboss.as.patching.PatchLogger; import org.jboss.as.patching.PatchMessages;
import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp; import org.jboss.as.patching.CommonAttributes; import org.jboss.as.patching.LocalPatchInfo;
26,433
private static final String PATH_DELIMITER = "/"; public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT; enum Element { ADDED_BUNDLE("added-bundle"), ADDED_MISC_CONTENT("added-misc-content"), <BUG>ADDED_MODULE("added-module"), BUNDLES("bundles"),</BUG> CUMULATIVE("cumulative"), DESCRIPTION("description"), MIS...
APPLIES_TO_VERSION("applies-to-version"), BUNDLES("bundles"),
26,434
final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { <BUG>case APPLIES_TO_VERSION: builder.addAppliesTo(value); break;</BUG> case RESULTING_VE...
[DELETED]
26,435
final StringBuilder path = new StringBuilder(); for(final String p : item.getPath()) { path.append(p).append(PATH_DELIMITER); } path.append(item.getName()); <BUG>writer.writeAttribute(Attribute.PATH.name, path.toString()); if(type != ModificationType.REMOVE) {</BUG> writer.writeAttribute(Attribute.HASH.name, bytesToHex...
if (item.isDirectory()) { writer.writeAttribute(Attribute.DIRECTORY.name, "true"); if(type != ModificationType.REMOVE) {
26,436
package org.jboss.as.patching; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.patching.runner.PatchingException; import org.jboss.logging.Messages; import org.jboss.logging.annotations.Message; <BUG>import org.jboss.logging.annotations.MessageBundle; import java.io.IOException;</BUG> impor...
import org.jboss.logging.annotations.Cause; import java.io.IOException;
26,437
private boolean isSameKey(DefaultIssue newIssue, IssueDto pastIssue) { return Objects.equal(newIssue.key(), pastIssue.getUuid()); } private void mapIssue(DefaultIssue newIssue, IssueDto pastIssue, Multimap<Integer, IssueDto> lastIssuesByRule, Map<DefaultIssue, IssueDto> issueMap) { if (pastIssue != null) { <BUG>newIssu...
newIssue.setUpdatedAt(project.getAnalysisDate()); newIssue.setKey(pastIssue.getUuid());
26,438
import com.google.devtools.moe.client.Ui; import com.google.devtools.moe.client.Ui.Task; import com.google.devtools.moe.client.github.GithubAPI.PullRequest; import com.google.devtools.moe.client.github.GithubClient; import com.google.devtools.moe.client.github.PullRequestUrl; <BUG>import com.google.devtools.moe.client....
import com.google.devtools.moe.client.project.ProjectContext; import com.google.devtools.moe.client.project.RepositoryConfig;
26,439
import com.google.devtools.moe.client.Ui; import com.google.devtools.moe.client.database.Db; import com.google.devtools.moe.client.parser.Parser; import com.google.devtools.moe.client.parser.Parser.ParseError; import com.google.devtools.moe.client.parser.RepositoryExpression; <BUG>import com.google.devtools.moe.client....
import com.google.devtools.moe.client.project.ProjectContext; import dagger.Lazy; import org.kohsuke.args4j.Option;
26,440
package com.google.devtools.moe.client.directives; <BUG>import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; </BUG> import com.google.devtools.moe.client.options.MoeOptions; import com.google.devtools.moe.client.project.InvalidProject;
import static com.google.common.base.Preconditions.checkNotNull;
26,441
) String repositoryExpression = ""; private final Ui ui; private final Migrator migrator; @Inject <BUG>DetermineMetadataDirective(ProjectContextFactory contextFactory, Ui ui, Migrator migrator) { super(contextFactory); // TODO(cgruber) Inject project context, not its factory this.ui = ui;</BUG> this.migrator = migrato...
DetermineMetadataDirective(Lazy<ProjectContext> context, Ui ui, Migrator migrator) { super(context); this.ui = ui;
26,442
} catch (ParseError e) { ui.error(e, "Couldn't parse " + repositoryExpression); return 1; } List<Revision> revs = Revision.fromRepositoryExpression(repoEx, context()); <BUG>RepositoryType repositoryType = context.getRepository(repoEx.getRepositoryName()); </BUG> RevisionMetadata rm = migrator.processMetadata(repository...
RepositoryType repositoryType = context().getRepository(repoEx.getRepositoryName());
26,443
this.bookkeeper = bookkeeper; } @Override protected int performDirectiveBehavior() { Db db = dbFactory.load(dbLocation); <BUG>return bookkeeper.bookkeep(db, context()); </BUG> } @Override public String getDescription() {
return bookkeeper.bookkeep(db, context.get());
26,444
@Option(name = "--destination", required = true, usage = "Expression of destination writer") String destination = ""; private final Ui ui; private final DraftRevision.Factory revisionFactory; @Inject <BUG>ChangeDirective( ProjectContextFactory contextFactory, Ui ui, DraftRevision.Factory revisionFactory) { super(conte...
ChangeDirective(Lazy<ProjectContext> context, Ui ui, DraftRevision.Factory revisionFactory) { super(context); this.ui = ui;
26,445
package com.google.devtools.moe.client; import com.google.devtools.moe.client.database.FileDb; import com.google.devtools.moe.client.directives.DirectivesModule; import com.google.devtools.moe.client.gson.GsonModule; <BUG>import com.google.devtools.moe.client.options.OptionsModule; import com.google.devtools.moe.client...
import com.google.devtools.moe.client.options.OptionsModule.Argument; import com.google.devtools.moe.client.project.ProjectContext; import com.google.devtools.moe.client.project.ProjectContextFactory;
26,446
import com.google.devtools.moe.client.repositories.Repositories; import com.google.devtools.moe.client.tools.FileDifference.ConcreteFileDiffer; import com.google.devtools.moe.client.tools.FileDifference.FileDiffer; import com.squareup.okhttp.OkHttpClient; import dagger.Module; <BUG>import dagger.Provides; import javax....
import javax.annotation.Nullable; import javax.inject.Singleton;
26,447
@Singleton ProjectContextFactory projectContextFactory(FileReadingProjectContextFactory factory) { return factory; } @Provides <BUG>@Singleton CommandRunner commandRunner(SystemCommandRunner runner) {</BUG> return runner; } @Provides
Ui ui(SystemUi sysui) { return sysui; public Messenger messenger(Ui ui) { return ui;
26,448
import com.google.devtools.moe.client.Ui; import com.google.devtools.moe.client.database.Db; import com.google.devtools.moe.client.migrations.Migration; import com.google.devtools.moe.client.migrations.MigrationConfig; import com.google.devtools.moe.client.migrations.Migrator; <BUG>import com.google.devtools.moe.client...
import com.google.devtools.moe.client.project.ProjectContext; import dagger.Lazy; import org.kohsuke.args4j.Option;
26,449
private final Db.Factory dbFactory; private final Ui ui; private final Migrator migrator; @Inject public DetermineMigrationsDirective( <BUG>ProjectContextFactory contextFactory, Db.Factory dbFactory, Ui ui, Migrator migrator) { super(contextFactory); // TODO(cgruber) Inject project context, not its factory this.dbFact...
Lazy<ProjectContext> context, Db.Factory dbFactory, Ui ui, Migrator migrator) { super(context); this.dbFactory = dbFactory;
26,450
MigrationConfig config = context().migrationConfigs().get(migrationName); if (config == null) { ui.error("No migration found with name " + migrationName); return 1; } <BUG>RepositoryType fromRepo = context.getRepository(config.getFromRepository()); </BUG> List<Migration> migrations = migrator.findMigrationsFromEquivale...
RepositoryType fromRepo = context().getRepository(config.getFromRepository());
26,451
package com.google.devtools.moe.client.directives; import static dagger.Provides.Type.MAP; import com.google.devtools.moe.client.Ui; import com.google.devtools.moe.client.github.GithubClient; <BUG>import com.google.devtools.moe.client.project.ProjectContextFactory; import dagger.Lazy;</BUG> import dagger.MapKey; import...
import com.google.devtools.moe.client.project.ProjectContext; import dagger.Lazy;
26,452
@Option(name = "--codebase2", required = true, usage = "Codebase2 expression") String codebase2Spec = ""; private final CodebaseDiffer differ; private final Ui ui; @Inject <BUG>DiffCodebasesDirective(ProjectContextFactory contextFactory, CodebaseDiffer differ, Ui ui) { super(contextFactory); // TODO(cgruber) Inject pr...
DiffCodebasesDirective(Lazy<ProjectContext> context, CodebaseDiffer differ, Ui ui) { super(context); this.differ = differ;
26,453
import com.google.devtools.moe.client.Ui.Task; import com.google.devtools.moe.client.codebase.Codebase; import com.google.devtools.moe.client.codebase.CodebaseCreationError; import com.google.devtools.moe.client.parser.Parser; import com.google.devtools.moe.client.parser.Parser.ParseError; <BUG>import com.google.devtoo...
import com.google.devtools.moe.client.project.ProjectContext; import dagger.Lazy; import org.kohsuke.args4j.Option;
26,454
) String tarfile = null; private final CommandRunner cmd; private final Ui ui; @Inject <BUG>CreateCodebaseDirective(CommandRunner cmd, ProjectContextFactory contextFactory, Ui ui) { super(contextFactory); // TODO(cgruber) Inject project context, not its factory this.cmd = cmd;</BUG> this.ui = ui; }
CreateCodebaseDirective(Lazy<ProjectContext> context, CommandRunner cmd, Ui ui) { super(context); this.cmd = cmd;
26,455
import org.spongepowered.api.Sponge; import org.spongepowered.api.block.BlockState; import org.spongepowered.api.block.BlockType; import org.spongepowered.api.block.tileentity.Sign; import org.spongepowered.api.data.key.Keys; <BUG>import org.spongepowered.api.data.property.block.GroundLuminanceProperty; import org.spon...
import org.spongepowered.api.data.property.block.IndirectlyPoweredProperty; import org.spongepowered.api.data.property.block.PoweredProperty;
26,456
this.selector = ioSelector.getSelector(); this.socketChannel = connection.getSocketChannelWrapper(); this.connectionManager = connection.getConnectionManager(); this.logger = connectionManager.ioService.getLogger(this.getClass().getName()); this.initialOps = initialOps; <BUG>} public void requestMigration(final IOSelec...
[DELETED]
26,457
private final AtomicBoolean scheduled = new AtomicBoolean(false); private final ByteBuffer outputBuffer; private SocketWritable currentPacket; private SocketWriter socketWriter; private volatile long lastHandle; <BUG>private volatile long eventCount; WriteHandler(TcpIpConnection connection, IOSelector ioSelector) {</BU...
private boolean shutdown; private IOSelector newOwner; WriteHandler(TcpIpConnection connection, IOSelector ioSelector) {
26,458
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "VO_VOLATILE_INCREMENT", justification = "eventCount is accessed by a single thread only.") public void handle() { eventCount++; lastHandle = Clock.currentTimeMillis(); <BUG>if (!connection.isAlive()) { return;</BUG> } if (socketWriter == null) { logger.log(Leve...
if (shutdown) { return;
26,459
logger.finest("Error while closing outbound", e); } finally { latch.countDown(); } } <BUG>}); try {</BUG> latch.await(TIMEOUT, TimeUnit.SECONDS); } catch (InterruptedException e) { EmptyStatement.ignore(e);
void awaitCompletion() { try {
26,460
public class UserControllerTest { private static final Logger LOGGER = Logger.getLogger( UserControllerTest.class.getName() ); Properties properties = new Properties(); InputStream input = null; <BUG>private String neo4jServerPort = System.getProperty( "neo4j.server.port" ); private String neo4jRemoteShellPort = System...
private String dbmsConnectorHttpPort = System.getProperty( "dbms.connector.http.port" ); private String dbmsConnectorBoltPort = System.getProperty( "dbms.connector.bolt.port" ); private String dbmsShellPort = System.getProperty( "dbms.shell.port" ); private String dbmsDirectoriesData = System.getProperty( "dbms.directo...
26,461
@Bean public Configuration getConfiguration() { if ( StringUtils.isEmpty( url ) ) { <BUG>url = "http://localhost:" + port; </BUG> } Configuration config = new Configuration(); config.driverConfiguration().setDriverClassName( HttpDriver.class.getName() )
url = "http://localhost:" + dbmsConnectorHttpPort;
26,462
private long position = 0; public EventQueue( @Nonnull NamePathMapper mapper, CommitInfo info, @Nonnull NodeState before, @Nonnull NodeState after, @Nonnull String basePath, @Nonnull EventFilter filter) { <BUG>EventHandler handler = new QueueingHandler( this, mapper, info, before, after); for (String name : PathUtils.e...
EventFactory factory = new EventFactory(mapper, info); EventHandler handler = new QueueingHandler(this, factory, before, after); for (String name : PathUtils.elements(basePath)) {
26,463
import org.opencms.file.CmsResource; import org.opencms.jsp.CmsJspActionElement; import org.opencms.main.CmsException; import org.opencms.main.I_CmsConstants; import org.opencms.main.OpenCms; <BUG>import org.opencms.site.CmsSite; import org.opencms.site.CmsSiteManager; import org.opencms.util.CmsStringUtil;</BUG> impor...
import org.opencms.staticexport.CmsLinkManager; import org.opencms.util.CmsStringUtil;
26,464
checkLock(getParamResource()); writeProperty(I_CmsConstants.C_PROPERTY_EXPORT, getParamExport()); writeProperty(I_CmsConstants.C_PROPERTY_EXPORTNAME, getParamExportname()); writeProperty(I_CmsConstants.C_PROPERTY_SECURE, getParamSecure()); CmsResource resource = getCms().readResource(filename); <BUG>if ("true".equals(g...
if (resource.isInternal() && !Boolean.valueOf(getParamIntern()).booleanValue()) { getCms().chflags(filename, resource.getFlags() & (~I_CmsConstants.C_RESOURCEFLAG_INTERNAL)); } else if (!resource.isInternal() && Boolean.valueOf(getParamIntern()).booleanValue()) {
26,465
package org.springframework.scheduling.config; import java.lang.reflect.Method; <BUG>import java.util.Collection; import java.util.Map;</BUG> import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test;
import java.util.Date; import java.util.Map;
26,466
import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import org.springframework.beans.DirectFieldAccessor; import org.springframework.context.ApplicationContext; <BUG>import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.scheduling.support.Sch...
import org.springframework.scheduling.Trigger; import org.springframework.scheduling.TriggerContext; import org.springframework.scheduling.support.ScheduledMethodRunnable;
26,467
if (StringUtils.hasText(schedulerRef)) { builder.addPropertyReference("taskScheduler", schedulerRef); } builder.addPropertyValue("cronTasks", cronTaskMap); builder.addPropertyValue("fixedDelayTasks", fixedDelayTaskMap); <BUG>builder.addPropertyValue("fixedRateTasks", fixedRateTaskMap); }</BUG> private boolean isSchedul...
builder.addPropertyValue("triggerTasks", triggerTaskMap);
26,468
super(ownerNode, childRole, context, false); } public SNode createNodeToInsert(EditorContext editorContext) { SNode listOwner = super.getOwner(); return NodeFactoryManager.createNode(listOwner, editorContext, super.getElementRole()); <BUG>} public EditorCell createNodeCell(EditorContext editorContext, SNode elementNode...
private String getSeparatorText(EditorContext context, SNode node) { return ":foo:"; public EditorCell createNodeCell(EditorContext editorContext, SNode elementNode) {
26,469
import org.gradle.nativebinaries.toolchain.internal.ArgsTransformer; import org.gradle.nativebinaries.toolchain.internal.MacroArgsConverter; import org.gradle.nativebinaries.toolchain.internal.NativeCompileSpec; import java.io.File; import java.util.ArrayList; <BUG>import java.util.List; abstract class VisualCppCompile...
import static org.gradle.nativebinaries.toolchain.internal.msvcpp.EscapeUserArgs.escapeUserArg; import static org.gradle.nativebinaries.toolchain.internal.msvcpp.EscapeUserArgs.escapeUserArgs; abstract class VisualCppCompilerArgsTransformer<T extends NativeCompileSpec> implements ArgsTransformer<T> {
26,470
import org.gradle.nativebinaries.toolchain.internal.ArgsTransformer; import org.gradle.nativebinaries.toolchain.internal.OptionsFileArgsTransformer; import org.gradle.nativebinaries.toolchain.internal.CommandLineTool; import java.io.File; import java.util.ArrayList; <BUG>import java.util.List; class LibExeStaticLibrary...
import static org.gradle.nativebinaries.toolchain.internal.msvcpp.EscapeUserArgs.escapeUserArgs; class LibExeStaticLibraryArchiver implements Compiler<StaticLibraryArchiverSpec> {
26,471
private static class LibExeSpecToArguments implements ArgsTransformer<StaticLibraryArchiverSpec> { public List<String> transform(StaticLibraryArchiverSpec spec) { List<String> args = new ArrayList<String>(); args.add("/OUT:" + spec.getOutputFile().getAbsolutePath()); args.add("/NOLOGO"); <BUG>args.addAll(spec.getAllArg...
args.addAll(escapeUserArgs(spec.getAllArgs()));
26,472
import org.gradle.nativebinaries.language.assembler.internal.AssembleSpec; import org.gradle.nativebinaries.toolchain.internal.ArgsTransformer; import org.gradle.nativebinaries.toolchain.internal.CommandLineTool; import java.io.File; import java.util.ArrayList; <BUG>import java.util.List; class Assembler implements Com...
import static org.gradle.nativebinaries.toolchain.internal.msvcpp.EscapeUserArgs.escapeUserArgs; class Assembler implements Compiler<AssembleSpec> {
26,473
public AssemblerArgsTransformer(File inputFile) { this.inputFile = inputFile; } public List<String> transform(AssembleSpec spec) { List<String> args = new ArrayList<String>(); <BUG>args.addAll(spec.getAllArgs()); </BUG> args.add("/nologo"); args.add("/c"); File outputFile = getOutputFilePath(spec);
args.addAll(escapeUserArgs(spec.getAllArgs()));
26,474
return unixStyle(original); } }; } public static ArgWriter windowsStyle(PrintWriter writer) { <BUG>return new ArgWriter(writer, true); </BUG> } public static Transformer<ArgWriter, PrintWriter> windowsStyleFactory() { return new Transformer<ArgWriter, PrintWriter>() {
return new ArgWriter(writer, false);
26,475
import org.gradle.nativebinaries.toolchain.internal.ArgsTransformer; import org.gradle.nativebinaries.toolchain.internal.OptionsFileArgsTransformer; import org.gradle.nativebinaries.toolchain.internal.CommandLineTool; import java.io.File; import java.util.ArrayList; <BUG>import java.util.List; class LinkExeLinker imple...
import static org.gradle.nativebinaries.toolchain.internal.msvcpp.EscapeUserArgs.escapeUserArgs; class LinkExeLinker implements Compiler<LinkerSpec> {
26,476
return commandLineTool.execute(spec); } private static class LinkerArgsTransformer implements ArgsTransformer<LinkerSpec> { public List<String> transform(LinkerSpec spec) { List<String> args = new ArrayList<String>(); <BUG>args.addAll(spec.getAllArgs()); </BUG> args.add("/OUT:" + spec.getOutputFile().getAbsolutePath())...
args.addAll(escapeUserArgs(spec.getAllArgs()));
26,477
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
26,478
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++) {
26,479
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++) {
26,480
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
26,481
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++) {
26,482
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
26,483
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++) {
26,484
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
26,485
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++) {
26,486
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
26,487
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++) {
26,488
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
26,489
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++) {
26,490
addNativeMethodToClassScope(); } @Override protected Object runMethodNative(BdsThread bdsThread, Object objThis) { try { <BUG>return (bdsThread.data(objThis.toString())).getPath(); </BUG> } catch (Exception e) { return ""; }
return (bdsThread.data(objThis.toString())).getCanonicalPath();
26,491
if (statements.isEmpty()) statements.add(statement); for (BigDataScriptNode node : statements) { if (node instanceof Statement) { boolean ok = node instanceof ExpressionSys // || node instanceof Block // <BUG>|| node instanceof LiteralString // || node instanceof InterpolateVars //</BUG> || node instanceof Reference //...
|| node instanceof Literal // || node instanceof InterpolateVars //
26,492
package ca.mcgill.mcb.pcingola.bigDataScript.lang.nativeMethods.string; import java.util.ArrayList; <BUG>import java.util.Collections; import ca.mcgill.mcb.pcingola.bigDataScript.lang.Parameters;</BUG> import ca.mcgill.mcb.pcingola.bigDataScript.lang.Type; import ca.mcgill.mcb.pcingola.bigDataScript.lang.TypeList; impo...
import ca.mcgill.mcb.pcingola.bigDataScript.data.Data; import ca.mcgill.mcb.pcingola.bigDataScript.lang.Parameters;
26,493
Type argTypes[] = { Type.STRING }; parameters = Parameters.get(argTypes, argNames); addNativeMethodToClassScope(); } @Override <BUG>protected Object runMethodNative(BdsThread bdsThread, Object objThis) { ArrayList<String> list = bdsThread.data(objThis.toString()).list(); Collections.sort(list);</BUG> return list;
[DELETED]
26,494
public MethodNative_string_upload() { super(); } @Override protected void initMethod() { <BUG>functionName = "download"; </BUG> classType = Type.STRING; returnType = Type.STRING; String argNames[] = { "this" };
functionName = "upload";
26,495
<BUG>package ca.mcgill.mcb.pcingola.bigDataScript.lang.nativeMethods.string; import ca.mcgill.mcb.pcingola.bigDataScript.lang.Parameters;</BUG> import ca.mcgill.mcb.pcingola.bigDataScript.lang.Type; import ca.mcgill.mcb.pcingola.bigDataScript.lang.TypeList; import ca.mcgill.mcb.pcingola.bigDataScript.lang.nativeMethods...
import java.util.ArrayList; import java.util.Collections; import ca.mcgill.mcb.pcingola.bigDataScript.lang.Parameters;
26,496
</BUG> classType = Type.STRING; returnType = Type.BOOL; String argNames[] = { "this", "localName" }; <BUG>Type argTypes[] = { Type.STRING }; </BUG> parameters = Parameters.get(argTypes, argNames); addNativeMethodToClassScope(); } @Override
public MethodNative_string_upload_localname() { super(); protected void initMethod() { functionName = "upload"; Type argTypes[] = { Type.STRING, Type.STRING };
26,497
public ClassConfigurator() { } protected static void init() throws ChannelException { try { Util.loadClass("javax.xml.parsers.DocumentBuilderFactory", ClassConfigurator.class); <BUG>MagicNumberReader reader=new MagicNumberReader(); try { String mnfile=Util.getProperty(new String[]{Global.MAGIC_NUMBER_FILE, "org.jgroups...
String mnfile=null; try { // PropertyPermission not granted if running in an untrusted environment with JNLP null, null, false, MAGIC_NUMBER_FILE);
26,498
import ml.puredark.hviewer.ui.activities.BaseActivity; import ml.puredark.hviewer.ui.dataproviders.ListDataProvider; import ml.puredark.hviewer.ui.fragments.SettingFragment; import ml.puredark.hviewer.ui.listeners.OnItemLongClickListener; import ml.puredark.hviewer.utils.SharedPreferencesUtil; <BUG>import static androi...
import static ml.puredark.hviewer.R.id.container; public class PictureViewerAdapter extends RecyclerView.Adapter<PictureViewerAdapter.PictureViewerViewHolder> {
26,499
final PictureViewHolder viewHolder = new PictureViewHolder(view); if (pictures != null && position < pictures.size()) { final Picture picture = pictures.get(getPicturePostion(position)); if (picture.pic != null) { loadImage(container.getContext(), picture, viewHolder); <BUG>} else if (site.hasFlag(Site.FLAG_SINGLE_PAGE...
} else if (site.hasFlag(Site.FLAG_SINGLE_PAGE_BIG_PICTURE) && site.extraRule != null) { if(site.extraRule.pictureRule != null && site.extraRule.pictureRule.url != null) getPictureUrl(container.getContext(), viewHolder, picture, site, site.extraRule.pictureRule.url, site.extraRule.pictureRule.highRes); else if(site.extr...
26,500
import java.util.regex.Pattern; import butterknife.BindView; import butterknife.ButterKnife; import ml.puredark.hviewer.R; import ml.puredark.hviewer.beans.Category; <BUG>import ml.puredark.hviewer.beans.CommentRule; import ml.puredark.hviewer.beans.Rule;</BUG> import ml.puredark.hviewer.beans.Selector; import ml.pured...
import ml.puredark.hviewer.beans.PictureRule; import ml.puredark.hviewer.beans.Rule;