id
int64
1
60k
buggy
stringlengths
34
37.5k
fixed
stringlengths
6
37.4k
1,901
"meta.getTableOrViewName()).where()", whereTypeName, privateFieldName, "unknown_keyspace_for_") .addStatement("return new $T(where)", newTypeName) .returns(newTypeName) .build(); } <BUG>static MethodSpec buildFromWithSchemaProvider(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) { </BUG> return MethodSpec.methodBuilder("from") .addJavadoc("Generate a ... <strong>FROM xxx</strong> ... using the given SchemaNameProvider") .addModifiers(Modifier.PUBLIC, Modifier.FINAL)
"meta.getTableOrViewName()).where()", whereTypeName, privateFieldName, "unknown_keyspace_for_") .addStatement("return new $T(where)", newTypeName) .returns(newTypeName) .build(); } public MethodSpec buildFromWithSchemaProvider(TypeName newTypeName, TypeName whereTypeName, String privateFieldName) { return MethodSpec.methodBuilder("from") .addJavadoc("Generate a ... <strong>FROM xxx</strong> ... using the given SchemaNameProvider") .addModifiers(Modifier.PUBLIC, Modifier.FINAL)
1,902
.addStatement("final $T where = $L.from(currentKeyspace, currentTable).where()", whereTypeName, privateFieldName) .addStatement("return new $T(where)", newTypeName) .returns(newTypeName) .build(); } <BUG>default List<FieldSignatureInfo> getPartitionKeysSignatureInfo(List<FieldMetaSignature> parsingResults) { </BUG> return new ArrayList<>(parsingResults .stream() .filter(x -> x.context.columnType == ColumnType.PARTITION)
.addStatement("final $T where = $L.from(currentKeyspace, currentTable).where()", whereTypeName, privateFieldName) .addStatement("return new $T(where)", newTypeName) .returns(newTypeName) .build(); } public List<FieldSignatureInfo> getPartitionKeysSignatureInfo(List<FieldMetaSignature> parsingResults) { return new ArrayList<>(parsingResults .stream() .filter(x -> x.context.columnType == ColumnType.PARTITION)
1,903
.map(x -> Tuple4.of(x.context.fieldName, x.context.cqlColumn, x.sourceType, (PartitionKeyInfo) x.context.columnInfo)) .sorted(TUPLE4_PARTITION_KEY_SORTER) .map(x -> FieldSignatureInfo.of(x._1(), x._2(), x._3())) .collect(toList())); } <BUG>default List<FieldSignatureInfo> getClusteringColsSignatureInfo(List<FieldMetaSignature> parsingResults) { </BUG> return new ArrayList<>(parsingResults .stream() .filter(x -> x.context.columnType == ColumnType.CLUSTERING)
.map(x -> Tuple4.of(x.context.fieldName, x.context.cqlColumn, x.sourceType, (PartitionKeyInfo) x.context.columnInfo)) .sorted(TUPLE4_PARTITION_KEY_SORTER) .map(x -> FieldSignatureInfo.of(x._1(), x._2(), x._3())) .collect(toList())); } public List<FieldSignatureInfo> getClusteringColsSignatureInfo(List<FieldMetaSignature> parsingResults) { return new ArrayList<>(parsingResults .stream() .filter(x -> x.context.columnType == ColumnType.CLUSTERING)
1,904
.map(x -> Tuple4.of(x.context.fieldName, x.context.cqlColumn, x.sourceType, (ClusteringColumnInfo) x.context.columnInfo)) .sorted(TUPLE4_CLUSTERING_COLUMN_SORTER) .map(x -> FieldSignatureInfo.of(x._1(), x._2(), x._3())) .collect(toList())); } <BUG>default void buildLWtConditionMethods(EntityMetaSignature signature, ClassSignatureInfo currentSignature, boolean hasCounter, TypeSpec.Builder builder) { </BUG> if (!hasCounter) { signature.fieldMetaSignatures.stream() .filter(x -> x.context.columnType == ColumnType.NORMAL || x.context.columnType == ColumnType.STATIC)
.map(x -> Tuple4.of(x.context.fieldName, x.context.cqlColumn, x.sourceType, (ClusteringColumnInfo) x.context.columnInfo)) .sorted(TUPLE4_CLUSTERING_COLUMN_SORTER) .map(x -> FieldSignatureInfo.of(x._1(), x._2(), x._3())) .collect(toList())); } public void buildLWtConditionMethods(EntityMetaSignature signature, String parentFQCN, ClassSignatureInfo currentSignature, boolean hasCounter, TypeSpec.Builder parentBuilder) { if (!hasCounter) { signature.fieldMetaSignatures.stream() .filter(x -> x.context.columnType == ColumnType.NORMAL || x.context.columnType == ColumnType.STATIC)
1,905
</BUG> .returns(currentType) .build(); } <BUG>default MethodSpec buildLWTNotEqual(FieldSignatureInfo fieldSignatureInfo, TypeName currentType) { String methodName = "if" + upperCaseFirst(fieldSignatureInfo.fieldName) + "_NotEq"; return MethodSpec.methodBuilder(methodName)</BUG> .addJavadoc("Generate an ... <strong>IF $L != ?</strong>", fieldSignatureInfo.fieldName) .addAnnotation(AnnotationSpec.builder(SuppressWarnings.class).addMember("value", "$S", "static-access").build())
.addParameter(fieldSignatureInfo.typeName, fieldSignatureInfo.fieldName, Modifier.FINAL) .addStatement("boundValues.add($N)", fieldSignatureInfo.fieldName) .addStatement("encodedValues.add(meta.$L.encodeFromJava($N))", fieldSignatureInfo.fieldName, fieldSignatureInfo.fieldName) .addStatement("where.onlyIf($T.$L($S, $T.bindMarker($S)))", QUERY_BUILDER, relation, fieldSignatureInfo.cqlColumn, QUERY_BUILDER, fieldSignatureInfo.cqlColumn) .addStatement("return $T.this", currentType) .returns(currentType) .build(); } public MethodSpec buildLWTNotEqual(FieldSignatureInfo fieldSignatureInfo, TypeName currentType) { String methodName = "NotEq"; return MethodSpec.methodBuilder(methodName) .addJavadoc("Generate an ... <strong>IF $L != ?</strong>", fieldSignatureInfo.fieldName) .addAnnotation(AnnotationSpec.builder(SuppressWarnings.class).addMember("value", "$S", "static-access").build())
1,906
return ">="; default: return " ??? "; } } <BUG>default String formatColumnTuplesForJavadoc(String columnTuples) { </BUG> return "(" + columnTuples.replaceAll("\"","") + ")"; } <BUG>enum ReturnType { </BUG> NEW,
return ">="; default: return " ??? "; } } public String formatColumnTuplesForJavadoc(String columnTuples) { return "(" + columnTuples.replaceAll("\"","") + ")"; } public enum ReturnType { NEW,
1,907
builder.addMethod(buildAllColumns(deleteFromTypeName, DELETE_WHERE, "delete")); builder.addMethod(buildAllColumnsWithSchemaProvider(deleteFromTypeName, DELETE_WHERE, "delete")); deleteWhereDSLCodeGen.buildWhereClasses(signature).forEach(builder::addType); return builder.build(); } <BUG>default TypeSpec buildDeleteStaticClass(EntityMetaSignature signature, DeleteWhereDSLCodeGen deleteWhereDSLCodeGen) { </BUG> final String firstPartitionKey = signature.fieldMetaSignatures .stream() .filter(x -> x.context.columnType == ColumnType.PARTITION)
builder.addMethod(buildAllColumns(deleteFromTypeName, DELETE_WHERE, "delete")); builder.addMethod(buildAllColumnsWithSchemaProvider(deleteFromTypeName, DELETE_WHERE, "delete")); deleteWhereDSLCodeGen.buildWhereClasses(signature).forEach(builder::addType); return builder.build(); } public TypeSpec buildDeleteStaticClass(EntityMetaSignature signature, DeleteWhereDSLCodeGen deleteWhereDSLCodeGen) { final String firstPartitionKey = signature.fieldMetaSignatures .stream() .filter(x -> x.context.columnType == ColumnType.PARTITION)
1,908
.addParameter(metaClassType, "meta") .addStatement("super(rte)") .addStatement("this.meta = meta") .build(); } <BUG>default TypeSpec buildDeleteColumns(EntityMetaSignature signature, </BUG> String deleteColumnClass, TypeName deleteColumnsTypeName, TypeName deleteFromTypeName,
.addParameter(metaClassType, "meta") .addStatement("super(rte)") .addStatement("this.meta = meta") .build(); } public TypeSpec buildDeleteColumns(EntityMetaSignature signature, String deleteColumnClass, TypeName deleteColumnsTypeName, TypeName deleteFromTypeName,
1,909
.forEach(x -> builder.addMethod(buildDeleteColumnMethod(deleteColumnsTypeName, x, ReturnType.THIS))); builder.addMethod(buildFrom(deleteFromTypeName, DELETE_WHERE, "deleteColumns")); builder.addMethod(buildFromWithSchemaProvider(deleteFromTypeName, DELETE_WHERE, "deleteColumns")); return builder.build(); } <BUG>default TypeSpec buildDeleteFrom(EntityMetaSignature signature, </BUG> String deleteFromClassName, TypeName deleteWhereTypeName) { return TypeSpec.classBuilder(deleteFromClassName)
.forEach(x -> builder.addMethod(buildDeleteColumnMethod(deleteColumnsTypeName, x, ReturnType.THIS))); builder.addMethod(buildFrom(deleteFromTypeName, DELETE_WHERE, "deleteColumns")); builder.addMethod(buildFromWithSchemaProvider(deleteFromTypeName, DELETE_WHERE, "deleteColumns")); return builder.build(); } public TypeSpec buildDeleteFrom(EntityMetaSignature signature, String deleteFromClassName, TypeName deleteWhereTypeName) { return TypeSpec.classBuilder(deleteFromClassName)
1,910
.addStatement("return new $T(where)", deleteWhereTypeName) .returns(deleteWhereTypeName) .build()) .build(); } <BUG>default MethodSpec buildDeleteColumnMethod(TypeName deleteTypeName, FieldMetaSignature parsingResult, ReturnType returnType) { </BUG> final MethodSpec.Builder builder = MethodSpec.methodBuilder(parsingResult.context.fieldName) .addJavadoc("Generate DELETE <strong>$L</strong> ...", parsingResult.context.quotedCqlColumn) .addModifiers(Modifier.PUBLIC, Modifier.FINAL)
.addStatement("return new $T(where)", deleteWhereTypeName) .returns(deleteWhereTypeName) .build()) .build(); } public MethodSpec buildDeleteColumnMethod(TypeName deleteTypeName, FieldMetaSignature parsingResult, ReturnType returnType) { final MethodSpec.Builder builder = MethodSpec.methodBuilder(parsingResult.context.fieldName) .addJavadoc("Generate DELETE <strong>$L</strong> ...", parsingResult.context.quotedCqlColumn) .addModifiers(Modifier.PUBLIC, Modifier.FINAL)
1,911
} @RootTask static Task<Exec.Result> exec(String parameter, int number) { Task<String> task1 = MyTask.create(parameter); Task<Integer> task2 = Adder.create(number, number + 2); <BUG>return Task.ofType(Exec.Result.class).named("exec", "/bin/sh") .in(() -> task1)</BUG> .in(() -> task2) .process(Exec.exec((str, i) -> args("/bin/sh", "-c", "\"echo " + i + "\""))); }
} @RootTask static Task<Exec.Result> exec(String parameter, int number) { Task<String> task1 = MyTask.create(parameter); Task<Integer> task2 = Adder.create(number, number + 2); return Task.named("exec", "/bin/sh").ofType(Exec.Result.class) .in(() -> task1) .in(() -> task2) .process(Exec.exec((str, i) -> args("/bin/sh", "-c", "\"echo " + i + "\""))); }
1,912
return args; } static class MyTask { static final int PLUS = 10; static Task<String> create(String parameter) { <BUG>return Task.ofType(String.class).named("MyTask", parameter) .in(() -> Adder.create(parameter.length(), PLUS))</BUG> .in(() -> Fib.create(parameter.length())) .process((sum, fib) -> something(parameter, sum, fib)); }
return args; } static class MyTask { static final int PLUS = 10; static Task<String> create(String parameter) { return Task.named("MyTask", parameter).ofType(String.class) .in(() -> Adder.create(parameter.length(), PLUS)) .in(() -> Fib.create(parameter.length())) .process((sum, fib) -> something(parameter, sum, fib)); }
1,913
final String instanceField = "from instance"; final TaskContext context = TaskContext.inmem(); final AwaitingConsumer<String> val = new AwaitingConsumer<>(); @Test public void shouldJavaUtilSerialize() throws Exception { <BUG>Task<Long> task1 = Task.ofType(Long.class).named("Foo", "Bar", 39) .process(() -> 9999L); Task<String> task2 = Task.ofType(String.class).named("Baz", 40) .in(() -> task1)</BUG> .ins(() -> singletonList(task1))
final String instanceField = "from instance"; final TaskContext context = TaskContext.inmem(); final AwaitingConsumer<String> val = new AwaitingConsumer<>(); @Test public void shouldJavaUtilSerialize() throws Exception { Task<Long> task1 = Task.named("Foo", "Bar", 39).ofType(Long.class) .process(() -> 9999L); Task<String> task2 = Task.named("Baz", 40).ofType(String.class) .in(() -> task1) .ins(() -> singletonList(task1))
1,914
assertEquals(des.id().name(), "Baz"); assertEquals(val.awaitAndGet(), "[9999] hello 10004"); } @Test(expected = NotSerializableException.class) public void shouldNotSerializeWithInstanceFieldReference() throws Exception { <BUG>Task<String> task = Task.ofType(String.class).named("WithRef") .process(() -> instanceField + " causes an outer reference");</BUG> serialize(task); } @Test
assertEquals(des.id().name(), "Baz"); assertEquals(val.awaitAndGet(), "[9999] hello 10004"); } @Test(expected = NotSerializableException.class) public void shouldNotSerializeWithInstanceFieldReference() throws Exception { Task<String> task = Task.named("WithRef").ofType(String.class) .process(() -> instanceField + " causes an outer reference"); serialize(task); } @Test
1,915
serialize(task); } @Test public void shouldSerializeWithLocalReference() throws Exception { String local = instanceField; <BUG>Task<String> task = Task.ofType(String.class).named("WithLocalRef") .process(() -> local + " won't cause an outer reference");</BUG> serialize(task); Task<String> des = deserialize(); context.evaluate(des).consume(val);
serialize(task); } @Test public void shouldSerializeWithLocalReference() throws Exception { String local = instanceField; Task<String> task = Task.named("WithLocalRef").ofType(String.class) .process(() -> local + " won't cause an outer reference"); serialize(task); Task<String> des = deserialize(); context.evaluate(des).consume(val);
1,916
TaskContext taskContext = TaskContext.inmem(); TaskContext.Value<Long> value = taskContext.evaluate(fib92); value.consume(f92 -> System.out.println("fib(92) = " + f92)); } static Task<Long> create(long n) { <BUG>TaskBuilder<Long> fib = Task.ofType(Long.class).named("Fib", n); </BUG> if (n < 2) { return fib .process(() -> n);
TaskContext taskContext = TaskContext.inmem(); TaskContext.Value<Long> value = taskContext.evaluate(fib92); value.consume(f92 -> System.out.println("fib(92) = " + f92)); } static Task<Long> create(long n) { TaskBuilder<Long> fib = Task.named("Fib", n).ofType(Long.class); if (n < 2) { return fib .process(() -> n);
1,917
} @RootTask public static Task<String> standardArgs(int first, String second) { firstInt = first; secondString = second; <BUG>return Task.ofType(String.class).named("StandardArgs", first, second) .process(() -> second + " " + first * 100);</BUG> } @Test public void shouldParseFlags() throws Exception {
} @RootTask public static Task<String> standardArgs(int first, String second) { firstInt = first; secondString = second; return Task.named("StandardArgs", first, second).ofType(String.class) .process(() -> second + " " + first * 100); } @Test public void shouldParseFlags() throws Exception {
1,918
assertThat(parsedEnum, is(CustomEnum.BAR)); } @RootTask public static Task<String> enums(CustomEnum enm) { parsedEnum = enm; <BUG>return Task.ofType(String.class).named("Enums", enm) .process(enm::toString);</BUG> } @Test public void shouldParseCustomTypes() throws Exception {
assertThat(parsedEnum, is(CustomEnum.BAR)); } @RootTask public static Task<String> enums(CustomEnum enm) { parsedEnum = enm; return Task.named("Enums", enm).ofType(String.class) .process(enm::toString); } @Test public void shouldParseCustomTypes() throws Exception {
1,919
assertThat(parsedType.content, is("blarg parsed for you!")); } @RootTask public static Task<String> customType(CustomType myType) { parsedType = myType; <BUG>return Task.ofType(String.class).named("Types", myType.content) .process(() -> myType.content);</BUG> } public enum CustomEnum { BAR
assertThat(parsedType.content, is("blarg parsed for you!")); } @RootTask public static Task<String> customType(CustomType myType) { parsedType = myType; return Task.named("Types", myType.content).ofType(String.class) .process(() -> myType.content); } public enum CustomEnum { BAR
1,920
import org.pentaho.big.data.plugins.common.ui.HadoopClusterDelegateImpl; import org.pentaho.di.core.exception.KettleFileException; import org.pentaho.di.core.util.StringUtil; import org.pentaho.di.core.vfs.KettleVFS; import org.pentaho.di.i18n.BaseMessages; <BUG>import org.pentaho.di.job.JobMeta; import org.pentaho.ui.xul.XulDomContainer;</BUG> import org.pentaho.ui.xul.binding.Binding; import org.pentaho.ui.xul.binding.BindingConvertor; import org.pentaho.ui.xul.binding.BindingFactory;
import org.pentaho.big.data.plugins.common.ui.HadoopClusterDelegateImpl; import org.pentaho.di.core.exception.KettleFileException; import org.pentaho.di.core.util.StringUtil; import org.pentaho.di.core.vfs.KettleVFS; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.job.JobMeta; import org.pentaho.metastore.api.exceptions.MetaStoreException; import org.pentaho.ui.xul.XulDomContainer; import org.pentaho.ui.xul.binding.Binding; import org.pentaho.ui.xul.binding.BindingConvertor; import org.pentaho.ui.xul.binding.BindingFactory;
1,921
import org.pentaho.ui.xul.containers.XulTree; import org.pentaho.ui.xul.stereotype.Bindable; import org.pentaho.ui.xul.util.AbstractModelList; import org.pentaho.vfs.ui.VfsFileChooserDialog; import java.util.ArrayList; <BUG>import java.util.Collection; import java.util.List;</BUG> import java.util.Map; import java.util.Properties; public class OozieJobExecutorJobEntryController extends
import org.pentaho.ui.xul.containers.XulTree; import org.pentaho.ui.xul.stereotype.Bindable; import org.pentaho.ui.xul.util.AbstractModelList; import org.pentaho.vfs.ui.VfsFileChooserDialog; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Properties; public class OozieJobExecutorJobEntryController extends
1,922
BindingFactory bindingFactory, Collection<Binding> bindings ) { bindingFactory.setBindingType( Binding.Type.BI_DIRECTIONAL ); bindings.add( bindingFactory.createBinding( config, BlockableJobConfig.JOB_ENTRY_NAME, BlockableJobConfig.JOB_ENTRY_NAME, VALUE ) ); String clusterName = config.getClusterName(); <BUG>namedClustersBinding = bindingFactory.createBinding( config, "namedClusters", "named-clusters", "elements" ); </BUG> try { namedClustersBinding.fireSourceChanged(); } catch ( Throwable ignored ) {
BindingFactory bindingFactory, Collection<Binding> bindings ) { bindingFactory.setBindingType( Binding.Type.BI_DIRECTIONAL ); bindings.add( bindingFactory.createBinding( config, BlockableJobConfig.JOB_ENTRY_NAME, BlockableJobConfig.JOB_ENTRY_NAME, VALUE ) ); String clusterName = config.getClusterName(); namedClustersBinding = bindingFactory.createBinding( config.getNamedClusters(), "children", "named-clusters", "elements" ); try { namedClustersBinding.fireSourceChanged(); } catch ( Throwable ignored ) {
1,923
return null; } return clusters.get( index ); } public Integer targetToSource( final NamedCluster value ) { <BUG>return null; }</BUG> } ); try { selectedNamedClusterBinding.fireSourceChanged();
return null; } return clusters.get( index ); } public Integer targetToSource( final NamedCluster value ) { return config.getNamedClusters().indexOf( value ); } } ); try { selectedNamedClusterBinding.fireSourceChanged();
1,924
package org.pentaho.big.data.kettle.plugins.oozie; import org.eclipse.swt.widgets.Shell; <BUG>import org.pentaho.big.data.api.cluster.NamedCluster;</BUG> import org.pentaho.big.data.plugins.common.ui.HadoopClusterDelegateImpl; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.job.JobMeta; import org.pentaho.di.job.entry.JobEntryDialogInterface; import org.pentaho.di.job.entry.JobEntryInterface; import org.pentaho.di.repository.Repository; import org.pentaho.di.ui.core.database.dialog.tags.ExtTextbox; <BUG>import org.pentaho.di.ui.core.dialog.ErrorDialog;</BUG> import org.pentaho.di.ui.job.entry.JobEntryDialog;
package org.pentaho.big.data.kettle.plugins.oozie; import org.eclipse.swt.widgets.Shell; import org.pentaho.big.data.plugins.common.ui.HadoopClusterDelegateImpl; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.job.JobMeta; import org.pentaho.di.job.entry.JobEntryDialogInterface; import org.pentaho.di.job.entry.JobEntryInterface; import org.pentaho.di.repository.Repository; import org.pentaho.di.ui.core.database.dialog.tags.ExtTextbox; import org.pentaho.di.ui.job.entry.JobEntryDialog;
1,925
import org.pentaho.di.ui.core.database.dialog.tags.ExtTextbox; <BUG>import org.pentaho.di.ui.core.dialog.ErrorDialog;</BUG> import org.pentaho.di.ui.job.entry.JobEntryDialog; import org.pentaho.di.ui.spoon.Spoon; import org.pentaho.di.ui.spoon.XulSpoonSettingsManager; <BUG>import org.pentaho.metastore.api.exceptions.MetaStoreException;</BUG> import org.pentaho.ui.xul.XulDomContainer; import org.pentaho.ui.xul.XulException; import org.pentaho.ui.xul.XulRunner; import org.pentaho.ui.xul.binding.BindingFactory;
import org.pentaho.di.ui.core.database.dialog.tags.ExtTextbox; import org.pentaho.di.ui.job.entry.JobEntryDialog; import org.pentaho.di.ui.spoon.Spoon; import org.pentaho.di.ui.spoon.XulSpoonSettingsManager; import org.pentaho.ui.xul.XulDomContainer; import org.pentaho.ui.xul.XulException; import org.pentaho.ui.xul.XulRunner; import org.pentaho.ui.xul.binding.BindingFactory;
1,926
import org.pentaho.ui.xul.XulRunner; import org.pentaho.ui.xul.binding.BindingFactory; import org.pentaho.ui.xul.binding.DefaultBindingFactory; import org.pentaho.ui.xul.swt.SwtXulLoader; import org.pentaho.ui.xul.swt.SwtXulRunner; <BUG>import java.util.Collections;</BUG> import java.util.Enumeration; <BUG>import java.util.List;</BUG> import java.util.ResourceBundle; public class OozieJobExecutorJobEntryDialog extends JobEntryDialog implements JobEntryDialogInterface {
import org.pentaho.ui.xul.XulRunner; import org.pentaho.ui.xul.binding.BindingFactory; import org.pentaho.ui.xul.binding.DefaultBindingFactory; import org.pentaho.ui.xul.swt.SwtXulLoader; import org.pentaho.ui.xul.swt.SwtXulRunner; import java.util.Enumeration; import java.util.ResourceBundle; public class OozieJobExecutorJobEntryDialog extends JobEntryDialog implements JobEntryDialogInterface {
1,927
import org.pentaho.big.data.api.cluster.NamedCluster; import org.pentaho.big.data.kettle.plugins.job.BlockableJobConfig; import org.pentaho.big.data.kettle.plugins.job.JobEntryMode; import org.pentaho.big.data.kettle.plugins.job.PropertyEntry; import org.pentaho.ui.xul.XulEventSource; <BUG>import org.pentaho.ui.xul.stereotype.Bindable; import java.util.ArrayList;</BUG> import java.util.List; public class OozieJobExecutorConfig extends BlockableJobConfig implements XulEventSource, Cloneable { public static final String OOZIE_WORKFLOW = "oozieWorkflow";
import org.pentaho.big.data.api.cluster.NamedCluster; import org.pentaho.big.data.kettle.plugins.job.BlockableJobConfig; import org.pentaho.big.data.kettle.plugins.job.JobEntryMode; import org.pentaho.big.data.kettle.plugins.job.PropertyEntry; import org.pentaho.ui.xul.XulEventSource; import org.pentaho.ui.xul.stereotype.Bindable; import org.pentaho.ui.xul.util.AbstractModelList; import java.util.ArrayList; import java.util.List; public class OozieJobExecutorConfig extends BlockableJobConfig implements XulEventSource, Cloneable { public static final String OOZIE_WORKFLOW = "oozieWorkflow";
1,928
public static final String OOZIE_WORKFLOW = "oozieWorkflow"; public static final String OOZIE_URL = "oozieUrl"; public static final String OOZIE_WORKFLOW_CONFIG = "oozieWorkflowConfig"; public static final String OOZIE_WORKFLOW_PROPERTIES = "oozieWorkflowProperties"; public static final String MODE = "mode"; <BUG>private transient List<NamedCluster> namedClusters; </BUG> private transient NamedCluster namedCluster = null; // selected private String clusterName; // saved (String) private String oozieUrl = null;
public static final String OOZIE_WORKFLOW = "oozieWorkflow"; public static final String OOZIE_URL = "oozieUrl"; public static final String OOZIE_WORKFLOW_CONFIG = "oozieWorkflowConfig"; public static final String OOZIE_WORKFLOW_PROPERTIES = "oozieWorkflowProperties"; public static final String MODE = "mode"; private transient AbstractModelList<NamedCluster> namedClusters; private transient NamedCluster namedCluster = null; // selected private String clusterName; // saved (String) private String oozieUrl = null;
1,929
private String oozieUrl = null; private String oozieWorkflowConfig = null; private String oozieWorkflow = null; private ArrayList<PropertyEntry> workflowProperties = null; private String mode = null; <BUG>public OozieJobExecutorConfig() { }</BUG> @Bindable public String getOozieUrl() { return oozieUrl;
private String oozieUrl = null; private String oozieWorkflowConfig = null; private String oozieWorkflow = null; private ArrayList<PropertyEntry> workflowProperties = null; private String mode = null; public OozieJobExecutorConfig() { namedClusters = new AbstractModelList<>( ); } @Bindable public String getOozieUrl() { return oozieUrl;
1,930
Range nod = nodata; <BUG>Double destNod = null; </BUG> if (backgroundValues != null && backgroundValues.length > 0) { <BUG>destNod = backgroundValues[0]; }</BUG> if (interp instanceof InterpolationBilinear) { interpB = (InterpolationBilinear) interp; this.interp = interpB; interpB.setROIdata(roiBounds, roiIter);
Range nod = nodata; double[] destNod = null; if (backgroundValues != null && backgroundValues.length > 0) { destNod = backgroundValues; } if (interp instanceof InterpolationBilinear) { interpB = (InterpolationBilinear) interp; this.interp = interpB; interpB.setROIdata(roiBounds, roiIter);
1,931
interpB.setROIdata(roiBounds, roiIter); if (nod == null) { nod = interpB.getNoDataRange(); } if (destNod == null) { <BUG>destNod = interpB.getDestinationNoData(); </BUG> } } if (nod != null) {
interpB.setROIdata(roiBounds, roiIter); if (nod == null) { nod = interpB.getNoDataRange(); } if (destNod == null) { destNod = new double[]{interpB.getDestinationNoData()}; } } if (nod != null) {
1,932
} else { <BUG>byteLookupTable[i] = 0; </BUG> if(i !=0){ <BUG>byteLookupTable[0] = 1; </BUG> } } } else { <BUG>byteLookupTable[i] = value; </BUG> }
} else { byteLookupTable[b][i] = 0; if(i !=0){ byteLookupTable[b][0] = 1; } } } else { byteLookupTable[b][i] = value;
1,933
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } } else
1,934
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } }
1,935
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } } else
1,936
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; } } } else {
1,937
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } }
1,938
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) {
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]]; 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; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {
1,939
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]] = (byte) (intResult & 0xff); } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; } } if (fracx < fracdx1) {
1,940
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } } else
1,941
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; } } } else {
1,942
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) {
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]]; 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; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {
1,943
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } }
1,944
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } } else
1,945
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; } } } else {
1,946
+ 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) {
+ bandOffsets[k2]]; final int s10 = srcDataArrays[k2][posx + posyhigh + bandOffsets[k2]]; final int s11 = srcDataArrays[k2][posxhigh + posyhigh + bandOffsets[k2]]; 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; if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {
1,947
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; dstPixelOffset += dstPixelStride; } }
1,948
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,949
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } }
1,950
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,951
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; } } } else {
1,952
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } }
1,953
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
1,954
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]] = (short) (intResult & 0xffff); } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; } } if (fracx < fracdx1) {
1,955
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,956
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; } } } else {
1,957
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
1,958
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } }
1,959
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,960
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; } } } else {
1,961
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01,
1,962
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; dstPixelOffset += dstPixelStride; } }
1,963
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,964
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } }
1,965
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,966
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; } } } else {
1,967
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } }
1,968
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
1,969
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]] = (short) (intResult); } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; } } if (fracx < fracdx1) {
1,970
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,971
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; } } } else {
1,972
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
1,973
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } }
1,974
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } } else
1,975
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; } } } else {
1,976
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01,
1,977
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2]; dstPixelOffset += dstPixelStride; } }
1,978
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } } else
1,979
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } }
1,980
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } } else
1,981
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; } } } else {
1,982
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } }
1,983
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
1,984
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]] = intResult; } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; } } if (fracx < fracdx1) {
1,985
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } } else
1,986
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; } } } else {
1,987
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
1,988
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } }
1,989
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
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } } else
1,990
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 {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; } } } else {
1,991
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,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01,
1,992
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2]; dstPixelOffset += dstPixelStride; } }
1,993
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) {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; } } if (fracx < fracdx1) {
1,994
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]] = destinationNoDataFloat; </BUG> dstPixelOffset += dstPixelStride; } } else
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; dstPixelOffset += dstPixelStride; } } else
1,995
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; dstPixelOffset += dstPixelStride; } }
1,996
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]] = destinationNoDataFloat; </BUG> dstPixelOffset += dstPixelStride; } } else
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++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; dstPixelOffset += dstPixelStride; } } else
1,997
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]] = destinationNoDataFloat; </BUG> } } } else {
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++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; } } } else {
1,998
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; } }
dstPixelOffset += dstPixelStride; } if (setDestinationNoData && clipMinX <= clipMaxX) { for (int x = clipMaxX; x < dst_max_x; x++) { for (int k2 = 0; k2 < dst_num_bands; k2++) dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; dstPixelOffset += dstPixelStride; } }
1,999
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]] = destinationNoDataFloat; </BUG> } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
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) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; } } else { double result = computeValue(s00, s01, s10, s11, w00, w01, w10,
2,000
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = (float) 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]] = (float) result; } } } else if (setDestinationNoData) { for (int k2 = 0; k2 < dst_num_bands; k2++) { dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; } } if (fracx < fracdx1) {