id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
42,401
package org.dspace.app.xmlui.cocoon; import java.io.*; import java.net.URLEncoder; <BUG>import java.sql.SQLException; import java.util.Map;</BUG> import javax.mail.internet.MimeUtility; import javax.servlet.http.HttpServletResponse; import org.apache.avalon.excalibur.pool.Recyclable;
import java.util.Date; import java.util.Map;
42,402
protected InputStream bitstreamInputStream; protected long bitstreamSize; protected String bitstreamMimeType; protected String bitstreamName; protected boolean isAnonymouslyReadable; <BUG>private Item item = null; </BUG> private boolean isSpider = false; private File tempFile; public void setup(SourceResolver resolver, Map objectModel, String src,
private Date itemLastModified = null;
42,403
{ super.setup(resolver, objectModel, src, par); try { this.request = ObjectModelHelper.getRequest(objectModel); <BUG>this.response = ObjectModelHelper.getResponse(objectModel); boolean BitstreamReaderOpenedContext = !ContextUtil.isContextAvailable(objectModel);</BUG> Context context = ContextUtil.obtainContext(objectModel); int itemID = par.getParameterAsInteger("itemID", -1); int bitstreamID = par.getParameterAsInteger("bitstreamID", -1);
Item item = null; boolean BitstreamReaderOpenedContext = !ContextUtil.isContextAvailable(objectModel);
42,404
import jetbrains.mps.bootstrap.helgins.runtime.InferenceRule_Runtime; import jetbrains.mps.smodel.SNode; import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SNodeOperations; import jetbrains.mps.smodel.SModelUtil_new; import jetbrains.mps.helgins.inference.TypeChecker; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_22; </BUG> import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel; import jetbrains.mps.smodel.SModelRepository;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_23;
42,405
SNode matchedNode_1178725705667 = SNodeOperations.getParent(argument, null, false, false); { boolean matches_1178725705671 = false; matches_1178725705671 = SModelUtil_new.isAssignableConcept(SNodeOperations.getParent(argument, null, false, false).getConceptFqName(), "jetbrains.mps.baseLanguage.ext.collections.lang.structure.SequenceOperationExpression"); if(matches_1178725705671) { <BUG>TypeChecker.getInstance().getRuntimeSupport().givetype(new QuotationClass_22().createNode(), argument); </BUG> break; } }
TypeChecker.getInstance().getRuntimeSupport().givetype(new QuotationClass_23().createNode(), argument);
42,406
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.SubtypingRule_Runtime; import jetbrains.mps.bootstrap.helgins.runtime.ISubtypingRule_Runtime; import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.Pattern_1; import jetbrains.mps.smodel.SNode; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_26; </BUG> import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel; import jetbrains.mps.smodel.SModelRepository;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_27;
42,407
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.SubtypingRule_Runtime; import jetbrains.mps.bootstrap.helgins.runtime.ISubtypingRule_Runtime; import jetbrains.mps.smodel.SNode; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_31; </BUG> import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel; import jetbrains.mps.smodel.SModelRepository;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_32;
42,408
import jetbrains.mps.smodel.SModelUtil_new; public class supertypesOf_ListType_ListType_withWildcard_SubtypingRule extends SubtypingRule_Runtime implements ISubtypingRule_Runtime { public supertypesOf_ListType_ListType_withWildcard_SubtypingRule() { } public SNode getSubOrSuperType(SNode type) { <BUG>return new QuotationClass_31().createNode(); </BUG> } public String getApplicableConceptFQName() { return "jetbrains.mps.baseLanguage.ext.collections.lang.structure.ListType";
return new QuotationClass_32().createNode();
42,409
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.smodel.SNode; import jetbrains.mps.helgins.inference.TypeChecker; import jetbrains.mps.bootstrap.helgins.runtime.HUtil; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_27; </BUG> import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SNodeOperations; import jetbrains.mps.smodel.SModel; import jetbrains.mps.project.GlobalScope;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_28;
42,410
import jetbrains.mps.smodel.BaseAdapter; import jetbrains.mps.smodel.SModelUtil_new; import jetbrains.mps.baseLanguage.structure.Classifier; import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SModelOperations; import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLinkOperations; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_28; import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_29; public class TypeUtil_Collections {</BUG> public static SNode coerceTo_SequenceType(SNode type) { SNode sequenceType = TypeChecker.getInstance().getRuntimeSupport().coerce(type, HUtil.createMatchingPatternByConceptFQName("jetbrains.mps.baseLanguage.ext.collections.lang.structure.SequenceType"), true);
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_30; public class TypeUtil_Collections {
42,411
if(type == null) { return null; } if("jetbrains.teamsys.dnq.structure.PListType".equals(type.getConceptFqName())) { SNode classifierType = type.getChild("classifierType"); <BUG>return new QuotationClass_27().createNode(SNodeOperations.copyNode(classifierType)); </BUG> } if(type != null) { SModel model = TypeChecker.getInstance().getRuntimeTypesModel();
return new QuotationClass_28().createNode(SNodeOperations.copyNode(classifierType));
42,412
SNode javaIterable = BaseAdapter.fromAdapter(SModelUtil_new.findNodeByFQName("java.lang.Iterable", Classifier.class, scope)); SNode javaIterableType = SModelOperations.createNewNode(model, "jetbrains.mps.baseLanguage.structure.ClassifierType", null); SLinkOperations.setTarget(javaIterableType, "classifier", javaIterable, false); SLinkOperations.addChild(javaIterableType, "parameter", entityType); if(TypeChecker.getInstance().getSubtypingManager().isSubtype(type, javaIterableType)) { <BUG>return new QuotationClass_28().createNode(SNodeOperations.copyNode(entity)); </BUG> } SNode entityIterable = BaseAdapter.fromAdapter(SModelUtil_new.findNodeByFQName("com.jetbrains.teamsys.database.EntityIterable", Classifier.class, scope)); SNode entityIterableType = SModelOperations.createNewNode(model, "jetbrains.mps.baseLanguage.structure.ClassifierType", null);
return new QuotationClass_29().createNode(SNodeOperations.copyNode(entity));
42,413
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.SubtypingRule_Runtime; import jetbrains.mps.bootstrap.helgins.runtime.ISubtypingRule_Runtime; import jetbrains.mps.smodel.SNode; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_24; </BUG> import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLinkOperations; import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_25;
42,414
import jetbrains.mps.smodel.SModelUtil_new; public class supertypesOf_ListType_ClassifierTypeList_SubtypingRule extends SubtypingRule_Runtime implements ISubtypingRule_Runtime { public supertypesOf_ListType_ClassifierTypeList_SubtypingRule() { } public SNode getSubOrSuperType(SNode type) { <BUG>return new QuotationClass_24().createNode(SLinkOperations.getTarget(type, "elementType", true)); </BUG> } public String getApplicableConceptFQName() { return "jetbrains.mps.baseLanguage.ext.collections.lang.structure.ListType";
return new QuotationClass_25().createNode(SLinkOperations.getTarget(type, "elementType", true));
42,415
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.InferenceRule_Runtime; import jetbrains.mps.smodel.SNode; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.RulesFunctions_Collections; import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLinkOperations; import jetbrains.mps.helgins.inference.TypeChecker; import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition;</BUG> import jetbrains.mps.smodel.SModel;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_21; import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition;
42,416
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.InferenceRule_Runtime; import jetbrains.mps.smodel.SNode; import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.RulesFunctions_Collections; import jetbrains.mps.helgins.inference.TypeChecker; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_21; </BUG> import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel; import jetbrains.mps.smodel.SModelRepository;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_22;
42,417
public class typeof_ReverseOperation_InferenceRule implements InferenceRule_Runtime { public typeof_ReverseOperation_InferenceRule() { } public void applyRule(SNode argument) { SNode inputElementType = RulesFunctions_Collections.get_inputListType_elementType(argument); <BUG>TypeChecker.getInstance().getRuntimeSupport().givetype(new QuotationClass_21().createNode(inputElementType), argument); </BUG> } public String getApplicableConceptFQName() { return "jetbrains.mps.baseLanguage.ext.collections.lang.structure.ReverseOperation";
TypeChecker.getInstance().getRuntimeSupport().givetype(new QuotationClass_22().createNode(inputElementType), argument);
42,418
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.SubtypingRule_Runtime; import jetbrains.mps.bootstrap.helgins.runtime.ISubtypingRule_Runtime; import jetbrains.mps.smodel.SNode; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_23; </BUG> import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLinkOperations; import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_24;
42,419
import jetbrains.mps.smodel.SModelUtil_new; public class supertypesOf_ListType_SequenceType_SubtypingRule extends SubtypingRule_Runtime implements ISubtypingRule_Runtime { public supertypesOf_ListType_SequenceType_SubtypingRule() { } public SNode getSubOrSuperType(SNode type) { <BUG>return new QuotationClass_23().createNode(SLinkOperations.getTarget(type, "elementType", true)); </BUG> } public String getApplicableConceptFQName() { return "jetbrains.mps.baseLanguage.ext.collections.lang.structure.ListType";
return new QuotationClass_24().createNode(SLinkOperations.getTarget(type, "elementType", true));
42,420
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.SubtypingRule_Runtime; import jetbrains.mps.bootstrap.helgins.runtime.ISubtypingRule_Runtime; import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.Pattern_; import jetbrains.mps.smodel.SNode; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_25; </BUG> import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel; import jetbrains.mps.smodel.SModelRepository;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_26;
42,421
import jetbrains.mps.smodel.SModelUtil_new; public class typeof_AddAllElementsOperation_InferenceRule implements InferenceRule_Runtime { public typeof_AddAllElementsOperation_InferenceRule() { } public void applyRule(SNode argument) { <BUG>SNode expectedElementType = (SNode)RulesFunctions_Collections.get_inputListType_elementType(argument); if(!(expectedElementType != null)) {</BUG> TypeChecker.getInstance().reportTypeError(argument, "couldn't define input list element type"); } SNode arg = SLinkOperations.getTarget(argument, "argument", true);
SNode expectedElementType = RulesFunctions_Collections.get_inputListType_elementType(argument); if(!(expectedElementType != null)) {
42,422
package jetbrains.mps.baseLanguage.ext.collections.lang.helgins; import jetbrains.mps.bootstrap.helgins.runtime.SubtypingRule_Runtime; import jetbrains.mps.bootstrap.helgins.runtime.ISubtypingRule_Runtime; import jetbrains.mps.smodel.SNode; <BUG>import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_30; </BUG> import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLinkOperations; import jetbrains.mps.bootstrap.helgins.structure.ApplicableNodeCondition; import jetbrains.mps.smodel.SModel;
import jetbrains.mps.baseLanguage.ext.collections.lang.helgins.QuotationClass_31;
42,423
import jetbrains.mps.smodel.SModelUtil_new; public class supertypesOf_SequenceType_ClassifierTypeIterable_SubtypingRule extends SubtypingRule_Runtime implements ISubtypingRule_Runtime { public supertypesOf_SequenceType_ClassifierTypeIterable_SubtypingRule() { } public SNode getSubOrSuperType(SNode type) { <BUG>return new QuotationClass_30().createNode(SLinkOperations.getTarget(type, "elementType", true)); </BUG> } public String getApplicableConceptFQName() { return "jetbrains.mps.baseLanguage.ext.collections.lang.structure.SequenceType";
return new QuotationClass_31().createNode(SLinkOperations.getTarget(type, "elementType", true));
42,424
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.getProperty( "neo4j.remoteShell.port" ); private String neo4jGraphDb = System.getProperty( "neo4j.graph.db" ); private ServerControls server;</BUG> @Before
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.directories.data" ); private ServerControls server;
42,425
@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;
42,426
private List<GenericContainer> mapArtifact(AbstractVertex vertex) { List<GenericContainer> tccdmDatums = new LinkedList<GenericContainer>(); InstrumentationSource activitySource = getInstrumentationSource(vertex.getAnnotation("source")); Builder baseObjectBuilder = AbstractObject.newBuilder(); if(activitySource == null){ <BUG>logger.log(Level.WARNING, "Unexpected Entity source: {0}", activitySource); }else{</BUG> baseObjectBuilder.setSource(activitySource); }
logger.log(Level.WARNING, "Unexpected Artifact source: {0}", activitySource); return tccdmDatums; }else{
42,427
"Unexpected Entity source: {0}", activitySource); }else{</BUG> baseObjectBuilder.setSource(activitySource); } AbstractObject baseObject = baseObjectBuilder.build(); <BUG>String entityType = vertex.getAnnotation("subtype"); if (entityType.equals(ArtifactIdentifier.SUBTYPE_FILE)) { </BUG> FileObject.Builder fileBuilder = FileObject.newBuilder();
private List<GenericContainer> mapArtifact(AbstractVertex vertex) { List<GenericContainer> tccdmDatums = new LinkedList<GenericContainer>(); InstrumentationSource activitySource = getInstrumentationSource(vertex.getAnnotation("source")); Builder baseObjectBuilder = AbstractObject.newBuilder(); if(activitySource == null){ logger.log(Level.WARNING, "Unexpected Artifact source: {0}", activitySource); return tccdmDatums; }else{ String artifactType = vertex.getAnnotation("subtype"); if (artifactType.equals(ArtifactIdentifier.SUBTYPE_FILE)) {
42,428
if(vertex.getAnnotation("path") != null){ FileObject.Builder unixSocketBuilder = FileObject.newBuilder(); unixSocketBuilder.setUuid(getUuid(vertex)); unixSocketBuilder.setBaseObject(baseObject); unixSocketBuilder.setUrl("file://" + vertex.getAnnotation("path")); <BUG>unixSocketBuilder.setVersion(Integer.parseInt(vertex.getAnnotation("version"))); Map<CharSequence, CharSequence> properties = new HashMap<>(); if(vertex.getAnnotation("epoch") != null){ properties.put("epoch", vertex.getAnnotation("epoch")); }</BUG> properties.put("isUnixSocket", "true");
unixSocketBuilder.setVersion(CommonFunctions.parseInt(vertex.getAnnotation("version"), 0)); unixSocketBuilder.setIsPipe(false); addIfNotNull("epoch", vertex.getAnnotations(), properties);
42,429
SrcSinkObject unknownObject = unknownBuilder.build(); tccdmDatums.add(TCCDMDatum.newBuilder().setDatum(unknownObject).build()); return tccdmDatums; } else { logger.log(Level.WARNING, <BUG>"Unexpected Artifact/Entity type: {0}", entityType); </BUG> return tccdmDatums; } }
"Unexpected Artifact type: {0}", artifactType);
42,430
} else { updateMemo(); callback.updateMemo(); } dismiss(); <BUG>}else{ </BUG> Toast.makeText(getActivity(), getString(R.string.toast_memo_empty), Toast.LENGTH_SHORT).show(); } }
[DELETED]
42,431
} @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);
42,432
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 != null) { c.moveToFirst(); }
MemoEntry.COLUMN_ORDER + " ASC", null);
42,433
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(
42,434
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.Adapter<RecyclerView.ViewHolder> implements EditMode { </BUG> private List<MemoEntity> memoList;
import com.marshalchen.ultimaterecyclerview.dragsortadapter.DragSortAdapter; public class MemoAdapter extends DragSortAdapter<DragSortAdapter.ViewHolder> implements EditMode {
42,435
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, EditMemoDialogFragment.MemoCallback callback) { this.mActivity = activity;</BUG> this.topicId = topicId; this.memoList = memoList;
public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMemoDialogFragment.MemoCallback callback, RecyclerView recyclerView) { super(recyclerView); this.mActivity = activity;
42,436
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) {
42,437
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;
42,438
customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString()); customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName); customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString()); customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName); customTokens.put("%%mlTraceForestsPerHost%%", hubConfig.traceForestsPerHost.toString()); <BUG>customTokens.put("%%mlModulesDbName%%", hubConfig.modulesDbName); }</BUG> public void init() { try { LOGGER.error("PLUGINS DIR: " + pluginsDir.toString());
customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName); customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName); }
42,439
interpB.setROIdata(roiBounds, roiIter); if (nod == null) { nod = interpB.getNoDataRange(); } if (destNod == null) { <BUG>destNod = interpB.getDestinationNoData(); </BUG> } } if (nod != null) {
destNod = new double[]{interpB.getDestinationNoData()};
42,440
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,441
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,442
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,443
final int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; final int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,444
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,445
for (int k2 = 0; k2 < dst_num_bands; k2++) { int s00 = srcDataArrays[k2][posx + posy + bandOffsets[k2]]; int s01 = srcDataArrays[k2][posxhigh + posy + bandOffsets[k2]]; int s10 = srcDataArrays[k2][posx + posyhigh + bandOffsets[k2]]; int s11 = srcDataArrays[k2][posxhigh + posyhigh + bandOffsets[k2]]; <BUG>int w00 = byteLookupTable[s00&0xFF] == destinationNoDataByte ? 0 : 1; int w01 = byteLookupTable[s01&0xFF] == destinationNoDataByte ? 0 : 1; int w10 = byteLookupTable[s10&0xFF] == destinationNoDataByte ? 0 : 1; int w11 = byteLookupTable[s11&0xFF] == destinationNoDataByte ? 0 : 1; </BUG> if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {
int w00 = byteLookupTable[k2][s00&0xFF] == destinationNoDataByte[k2] ? 0 : 1; int w01 = byteLookupTable[k2][s01&0xFF] == destinationNoDataByte[k2] ? 0 : 1; int w10 = byteLookupTable[k2][s10&0xFF] == destinationNoDataByte[k2] ? 0 : 1; int w11 = byteLookupTable[k2][s11&0xFF] == destinationNoDataByte[k2] ? 0 : 1;
42,446
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = (byte) (intResult & 0xff); } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte; </BUG> } } if (fracx < fracdx1) {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,447
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,448
int w11 = w11index < roiDataLength ? roiDataArray[w11index] & 0xff : 0; if (baseIndex > roiDataLength || w00 == 0 || (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0)) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,449
final int s00 = srcDataArrays[k2][posx + posy + bandOffsets[k2]]; final int s01 = srcDataArrays[k2][posxhigh + posy + bandOffsets[k2]]; final int s10 = srcDataArrays[k2][posx + posyhigh + bandOffsets[k2]]; final int s11 = srcDataArrays[k2][posxhigh + posyhigh + bandOffsets[k2]]; <BUG>w00 = byteLookupTable[s00&0xFF] == destinationNoDataByte ? 0 : 1; w01 = byteLookupTable[s01&0xFF] == destinationNoDataByte ? 0 : 1; w10 = byteLookupTable[s10&0xFF] == destinationNoDataByte ? 0 : 1; w11 = byteLookupTable[s11&0xFF] == destinationNoDataByte ? 0 : 1; </BUG> if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {
w00 = byteLookupTable[k2][s00&0xFF] == destinationNoDataByte[k2] ? 0 : 1; w01 = byteLookupTable[k2][s01&0xFF] == destinationNoDataByte[k2] ? 0 : 1; w10 = byteLookupTable[k2][s10&0xFF] == destinationNoDataByte[k2] ? 0 : 1; w11 = byteLookupTable[k2][s11&0xFF] == destinationNoDataByte[k2] ? 0 : 1;
42,450
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,451
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,452
int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,453
+ bandOffsets[k2]]; final int s10 = srcDataArrays[k2][posx + posyhigh + bandOffsets[k2]]; final int s11 = srcDataArrays[k2][posxhigh + posyhigh + bandOffsets[k2]]; <BUG>w00 = byteLookupTable[s00&0xFF] == destinationNoDataByte ? 0 : 1; w01 = byteLookupTable[s01&0xFF] == destinationNoDataByte ? 0 : 1; w10 = byteLookupTable[s10&0xFF] == destinationNoDataByte ? 0 : 1; w11 = byteLookupTable[s11&0xFF] == destinationNoDataByte ? 0 : 1; </BUG> if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {
w00 = byteLookupTable[k2][s00&0xFF] == destinationNoDataByte[k2] ? 0 : 1; w01 = byteLookupTable[k2][s01&0xFF] == destinationNoDataByte[k2] ? 0 : 1; w10 = byteLookupTable[k2][s10&0xFF] == destinationNoDataByte[k2] ? 0 : 1; w11 = byteLookupTable[k2][s11&0xFF] == destinationNoDataByte[k2] ? 0 : 1;
42,454
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]] = destinationNoDataByte; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2];
42,455
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,456
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,457
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,458
final int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; final int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,459
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,460
int w01 = noData.contains(s01) ? 0 : 1; int w10 = noData.contains(s10) ? 0 : 1; int w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,461
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = (short) (intResult & 0xffff); } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort; </BUG> } } if (fracx < fracdx1) {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,462
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,463
int w11 = w11index < roiDataLength ? roiDataArray[w11index] & 0xff : 0; if (baseIndex > roiDataLength || w00 == 0 || (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0)) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,464
w01 = noData.contains(s01) ? 0 : 1; w10 = noData.contains(s10) ? 0 : 1; w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,465
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,466
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,467
int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,468
w01 = noData.contains(s01) ? 0 : 1; w10 = noData.contains(s10) ? 0 : 1; w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,469
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]] = destinationNoDataUShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
42,470
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,471
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,472
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,473
final int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; final int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,474
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,475
int w01 = noData.contains(s01) ? 0 : 1; int w10 = noData.contains(s10) ? 0 : 1; int w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,476
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = (short) (intResult); } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort; </BUG> } } if (fracx < fracdx1) {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,477
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,478
int w11 = w11index < roiDataLength ? roiDataArray[w11index] & 0xff : 0; if (baseIndex > roiDataLength || w00 == 0 || (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0)) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,479
w01 = noData.contains(s01) ? 0 : 1; w10 = noData.contains(s10) ? 0 : 1; w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,480
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,481
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,482
int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,483
w01 = noData.contains(s01) ? 0 : 1; w10 = noData.contains(s10) ? 0 : 1; w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,484
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]] = destinationNoDataShort; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
42,485
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,486
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,487
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,488
final int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; final int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,489
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,490
int w01 = noData.contains(s01) ? 0 : 1; int w10 = noData.contains(s10) ? 0 : 1; int w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,491
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = intResult; } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt; </BUG> } } if (fracx < fracdx1) {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,492
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,493
int w11 = w11index < roiDataLength ? roiDataArray[w11index] & 0xff : 0; if (baseIndex > roiDataLength || w00 == 0 || (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0)) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,494
w01 = noData.contains(s01) ? 0 : 1; w10 = noData.contains(s10) ? 0 : 1; w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,495
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,496
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } } else
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,497
int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff; int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt; </BUG> } } } else {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,498
w01 = noData.contains(s01) ? 0 : 1; w10 = noData.contains(s10) ? 0 : 1; w11 = noData.contains(s11) ? 0 : 1; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) { if (setDestinationNoData) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01,
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,499
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]] = destinationNoDataInt; </BUG> dstPixelOffset += dstPixelStride; } }
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
42,500
float result = (float) ((s1 - s0) * fracy + s0); dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = result; } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat; </BUG> } } if (fracx < fracdx1) {
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2];