id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
21,001
verify(messageConverter).write(eq(body), eq(accepted), isA(HttpOutputMessage.class)); } @Test public void handleReturnValueProduces() throws Exception { String body = "Foo"; <BUG>ResponseEntity<String> returnValue = new ResponseEntity<String>(body, HttpStatus.OK); servletRequest.addHeader("Accept", "text/*");</BUG> ser...
ResponseEntity<String> returnValue = new ResponseEntity<>(body, HttpStatus.OK); servletRequest.addHeader("Accept", "text/*");
21,002
verify(messageConverter).write(eq("Foo"), eq(MediaType.TEXT_HTML), isA(HttpOutputMessage.class)); } @Test(expected = HttpMediaTypeNotAcceptableException.class) public void handleReturnValueNotAcceptable() throws Exception { String body = "Foo"; <BUG>ResponseEntity<String> returnValue = new ResponseEntity<String>(body, ...
ResponseEntity<String> returnValue = new ResponseEntity<>(body, HttpStatus.OK); MediaType accepted = MediaType.APPLICATION_ATOM_XML;
21,003
fail("Expected exception"); } @Test(expected = HttpMediaTypeNotAcceptableException.class) public void handleReturnValueNotAcceptableProduces() throws Exception { String body = "Foo"; <BUG>ResponseEntity<String> returnValue = new ResponseEntity<String>(body, HttpStatus.OK); MediaType accepted = MediaType.TEXT_PLAIN;</BU...
ResponseEntity<String> returnValue = new ResponseEntity<>(body, HttpStatus.OK); MediaType accepted = MediaType.TEXT_PLAIN;
21,004
processor.handleReturnValue(returnValue, returnTypeResponseEntityProduces, mavContainer, webRequest); fail("Expected exception"); } @Test(expected=HttpMediaTypeNotAcceptableException.class) public void handleReturnValueNotAcceptableParseError() throws Exception { <BUG>ResponseEntity<String> returnValue = new ResponseEn...
ResponseEntity<String> returnValue = new ResponseEntity<>("Body", HttpStatus.ACCEPTED); servletRequest.addHeader("Accept", "01");
21,005
verify(messageConverter).write(eq("body"), eq(MediaType.TEXT_PLAIN), outputMessage.capture()); assertTrue(mavContainer.isRequestHandled()); assertEquals("headerValue", outputMessage.getValue().getHeaders().get("header").get(0)); } @Test <BUG>public void handleReturnTypeLastModified() throws Exception { </BUG> long cur...
public void handleReturnValueLastModified() throws Exception {
21,006
long currentTime = new Date().getTime(); long oneMinuteAgo = currentTime - (1000 * 60); servletRequest.addHeader(HttpHeaders.IF_MODIFIED_SINCE, dateFormat.format(currentTime)); HttpHeaders responseHeaders = new HttpHeaders(); responseHeaders.setDate(HttpHeaders.LAST_MODIFIED, oneMinuteAgo); <BUG>ResponseEntity<String>...
ResponseEntity<String> returnValue = new ResponseEntity<>("body", responseHeaders, HttpStatus.OK); initStringMessageConversion(MediaType.TEXT_PLAIN);
21,007
assertResponseNotModified(); assertEquals(1, servletResponse.getHeaderValues(HttpHeaders.LAST_MODIFIED).size()); assertEquals(dateFormat.format(oneMinuteAgo), servletResponse.getHeader(HttpHeaders.LAST_MODIFIED)); } @Test <BUG>public void handleReturnTypeEtag() throws Exception { </BUG> String etagValue = "\"deadb33f8b...
public void handleReturnValueEtag() throws Exception {
21,008
</BUG> String etagValue = "\"deadb33f8badf00d\""; servletRequest.addHeader(HttpHeaders.IF_NONE_MATCH, etagValue); HttpHeaders responseHeaders = new HttpHeaders(); responseHeaders.set(HttpHeaders.ETAG, etagValue); <BUG>ResponseEntity<String> returnValue = new ResponseEntity<String>("body", responseHeaders, HttpStatus.OK...
assertResponseNotModified(); assertEquals(1, servletResponse.getHeaderValues(HttpHeaders.LAST_MODIFIED).size()); assertEquals(dateFormat.format(oneMinuteAgo), servletResponse.getHeader(HttpHeaders.LAST_MODIFIED)); } @Test public void handleReturnValueEtag() throws Exception { ResponseEntity<String> returnValue = new Re...
21,009
servletRequest.addHeader(HttpHeaders.IF_MODIFIED_SINCE, dateFormat.format(currentTime)); servletRequest.addHeader(HttpHeaders.IF_NONE_MATCH, etagValue); HttpHeaders responseHeaders = new HttpHeaders(); responseHeaders.setDate(HttpHeaders.LAST_MODIFIED, oneMinuteAgo); responseHeaders.set(HttpHeaders.ETAG, etagValue); <B...
ResponseEntity<String> returnValue = new ResponseEntity<>("body", responseHeaders, HttpStatus.OK); initStringMessageConversion(MediaType.TEXT_PLAIN);
21,010
assertEquals(dateFormat.format(oneMinuteAgo), servletResponse.getHeader(HttpHeaders.LAST_MODIFIED)); assertEquals(1, servletResponse.getHeaderValues(HttpHeaders.ETAG).size()); assertEquals(etagValue, servletResponse.getHeader(HttpHeaders.ETAG)); } @Test <BUG>public void handleReturnTypeNotModified() throws Exception { ...
public void handleReturnValueNotModified() throws Exception {
21,011
long oneMinuteAgo = currentTime - (1000 * 60); String etagValue = "\"deadb33f8badf00d\""; HttpHeaders responseHeaders = new HttpHeaders(); responseHeaders.setDate(HttpHeaders.LAST_MODIFIED, oneMinuteAgo); responseHeaders.set(HttpHeaders.ETAG, etagValue); <BUG>ResponseEntity<String> returnValue = new ResponseEntity<Str...
ResponseEntity<String> returnValue = new ResponseEntity<>("body", responseHeaders, HttpStatus.NOT_MODIFIED); initStringMessageConversion(MediaType.TEXT_PLAIN);
21,012
assertEquals(1, servletResponse.getHeaderValues(HttpHeaders.LAST_MODIFIED).size()); assertEquals(dateFormat.format(oneMinuteAgo), servletResponse.getHeader(HttpHeaders.LAST_MODIFIED)); assertEquals(1, servletResponse.getHeaderValues(HttpHeaders.ETAG).size()); assertEquals(etagValue, servletResponse.getHeader(HttpHeader...
[DELETED]
21,013
long currentTime = new Date().getTime(); long oneMinuteAgo = currentTime - (1000 * 60); String etagValue = "\"deadb33f8badf00d\""; String changedEtagValue = "\"changed-etag-value\""; servletRequest.addHeader(HttpHeaders.IF_MODIFIED_SINCE, dateFormat.format(currentTime)); servletRequest.addHeader(HttpHeaders.IF_NONE_MA...
assertEquals(HttpStatus.NOT_MODIFIED.value(), servletResponse.getStatus()); assertEquals(0, servletResponse.getContentAsByteArray().length); } private void assertResponseOkWithBody(String body) throws Exception {
21,014
String skinName = null; String skinRepo = null; String iconBase = null; Placement placement = ToolManager.getCurrentPlacement(); String toolId = placement.getToolId(); <BUG>boolean inline = false; if (httpServletRequest.getRequestURI().startsWith("/portal/site/")) { inline = true;</BUG> if (reseturl == null) reseturl =...
String portalTemplates = ServerConfigurationService.getString("portal.templates", ""); if ("morpheus".equals(portalTemplates)) inline = true;
21,015
public static boolean debugMode = false; @ModConfigProperty(category = "Debug", name = "debugModeGOTG", comment = "Enable/Disable Debug Mode for the Gift Of The Gods") public static boolean debugModeGOTG = false; @ModConfigProperty(category = "Debug", name = "debugModeEnchantments", comment = "Enable/Disable Debug Mode...
@ModConfigProperty(category = "Weapons", name = "enableSwordsRecipes", comment = "Enable/Disable ArmorPlus Sword's Recipes") @ModConfigProperty(category = "Weapons", name = "enableBattleAxesRecipes", comment = "Enable/Disable ArmorPlus Battle Axes's Recipes") @ModConfigProperty(category = "Weapons", name = "enableBowsR...
21,016
package org.opencms.mail; import org.opencms.i18n.A_CmsMessageBundle; import org.opencms.i18n.I_CmsMessageBundle; public final class Messages extends A_CmsMessageBundle { public static final String ERR_SEND_EMAIL_AUTHENTICATE_2 = "ERR_SEND_EMAIL_AUTHENTICATE_2"; <BUG>public static final String ERR_SEND_EMAIL_HOSTNAME_1...
public static final String ERR_SEND_EMAIL_CONFIG_0 = "ERR_SEND_EMAIL_CONFIG_0";
21,017
import org.opencms.main.CmsLog; import org.opencms.main.CmsRuntimeException; import org.opencms.main.OpenCms; import org.opencms.util.CmsStringUtil; import javax.mail.AuthenticationFailedException; <BUG>import javax.mail.MessagingException; import javax.mail.SendFailedException;</BUG> import org.apache.commons.logging....
[DELETED]
21,018
public class CmsSimpleMail extends SimpleEmail { private static final Log LOG = CmsLog.getLog(CmsSimpleMail.class); public CmsSimpleMail() { super(); CmsMailHost host = OpenCms.getSystemInfo().getMailSettings().getDefaultMailHost(); <BUG>setHostName(host.getHostname()); String userName = host.getUsername();</BUG> if (C...
this.setSmtpPort(host.getPort()); String userName = host.getUsername();
21,019
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.DigestOutputStream; import java.security.MessageDigest; <BUG>import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.List;</BUG> public final class ...
import java.text.DateFormat; import java.util.Date; import java.util.List;
21,020
package org.jboss.as.patching.runner; <BUG>import org.jboss.as.boot.DirectoryStructure; import org.jboss.as.patching.LocalPatchInfo;</BUG> import org.jboss.as.patching.PatchInfo; import org.jboss.as.patching.PatchLogger; import org.jboss.as.patching.PatchMessages;
import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp; import org.jboss.as.patching.CommonAttributes; import org.jboss.as.patching.LocalPatchInfo;
21,021
private static final String PATH_DELIMITER = "/"; public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT; enum Element { ADDED_BUNDLE("added-bundle"), ADDED_MISC_CONTENT("added-misc-content"), <BUG>ADDED_MODULE("added-module"), BUNDLES("bundles"),</BUG> CUMULATIVE("cumulative"), DESCRIPTION("description"), MIS...
APPLIES_TO_VERSION("applies-to-version"), BUNDLES("bundles"),
21,022
final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { <BUG>case APPLIES_TO_VERSION: builder.addAppliesTo(value); break;</BUG> case RESULTING_VE...
[DELETED]
21,023
final StringBuilder path = new StringBuilder(); for(final String p : item.getPath()) { path.append(p).append(PATH_DELIMITER); } path.append(item.getName()); <BUG>writer.writeAttribute(Attribute.PATH.name, path.toString()); if(type != ModificationType.REMOVE) {</BUG> writer.writeAttribute(Attribute.HASH.name, bytesToHex...
if (item.isDirectory()) { writer.writeAttribute(Attribute.DIRECTORY.name, "true"); if(type != ModificationType.REMOVE) {
21,024
package org.jboss.as.patching; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.patching.runner.PatchingException; import org.jboss.logging.Messages; import org.jboss.logging.annotations.Message; <BUG>import org.jboss.logging.annotations.MessageBundle; import java.io.IOException;</BUG> impor...
import org.jboss.logging.annotations.Cause; import java.io.IOException;
21,025
import com.webobjects.foundation.NSArray; import com.webobjects.foundation.NSDictionary; import com.webobjects.foundation.NSKeyValueCoding; import com.webobjects.foundation.NSMutableDictionary; import com.webobjects.jdbcadaptor.JDBCAdaptor; <BUG>import er.extensions.ERXJDBCUtilities; import er.extensions.ERXProperties;...
import er.extensions.ERXModelGroup; import er.extensions.ERXProperties;
21,026
} public boolean tryLock(EOAdaptorChannel channel, EOModel model, String lockOwnerName) { return _tryLock(channel, model, lockOwnerName, createIfMissing()); } public boolean _tryLock(EOAdaptorChannel channel, EOModel model, String lockOwnerName, boolean createTableIfMissing) { <BUG>JDBCAdaptor adaptor = (JDBCAdaptor)ch...
protected boolean createIfMissing() { return ERXProperties.booleanForKeyWithDefault("er.migration.createTablesIfNecessary", false); JDBCAdaptor adaptor = (JDBCAdaptor) channel.adaptorContext().adaptor();
21,027
protected EOModel dbUpdaterModelWithModel(EOModel model, JDBCAdaptor adaptor) { EOModel dbUpdaterModel; if (_lastUpdatedModel == model) { dbUpdaterModel = _dbUpdaterModelCache; } <BUG>else { dbUpdaterModel = new EOModel();</BUG> dbUpdaterModel.setConnectionDictionary(model.connectionDictionary()); dbUpdaterModel.setAda...
ERXModelGroup modelGroup = (ERXModelGroup) model.modelGroup(); EOEntity prototypeEntity = modelGroup.entityNamed(modelGroup.prototypeEntityNameForModel(model)); boolean isWonderPrototype = (prototypeEntity != null && prototypeEntity.model().name().equals("erprototypes")); dbUpdaterModel = new EOModel();
21,028
.observeOn(AndroidSchedulers.mainThread()) .unsubscribeOn(Schedulers.io()) .subscribe(observer) ); } <BUG>public final <T> void subscribe(int viewId, Single<T> single, Action1<T> action) { findViewHolderByViewIdOrThrow(viewId).subscriptions.add( single</BUG> .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.ma...
private <T> void subscribe(Single<T> single, Action1<T> action, ViewHolder<V> viewHolder) { viewHolder.subscriptions.add( single
21,029
import io.reist.visum.presenter.VisumPresenter; @SuppressWarnings("unused") public abstract class VisumDialogFragment<P extends VisumPresenter> extends DialogFragment implements VisumView<P> { <BUG>private final VisumViewHelper viewHelper; </BUG> @SuppressWarnings("deprecation") @Deprecated public VisumDialogFragment()...
private final VisumViewHelper helper;
21,030
return inflater.inflate(getLayoutRes(), container, false); } @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); <BUG>viewHelper.onResume(); </BUG> } @Override public void onHiddenChanged(boolean hidden) {
helper.onResume();
21,031
import io.reist.visum.VisumClientHelper; import io.reist.visum.presenter.VisumPresenter; public abstract class VisumFragment<P extends VisumPresenter> extends Fragment implements VisumView<P> { <BUG>private final VisumViewHelper viewHelper; </BUG> @SuppressWarnings("deprecation") @Deprecated public VisumFragment() {
private final VisumViewHelper helper;
21,032
return inflater.inflate(getLayoutRes(), container, false); } @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); <BUG>viewHelper.onResume(); </BUG> } @Override public void onHiddenChanged(boolean hidden) {
helper.onResume();
21,033
private static PsiClassType createDefaultConsumerType(Project project, PsiVariable variable) { final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project); final PsiClass consumerClass = psiFacade.findClass("java.util.function.Consumer", GlobalSearchScope.allScope(project)); return consumerClass != null ? psiFac...
[DELETED]
21,034
PsiElement result = initializer.replace(elementFactory.createExpressionFromText(callText, null)); simplifyAndFormat(project, result); foreachStatement.delete(); return; } <BUG>} } } } final String qualifierText = qualifierExpression != null ? qualifierExpression.getText() : ""; final String callText = StringUtil.getQu...
[DELETED]
21,035
import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.LocalFileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsPermission; import org.apache.hadoop.util.Progressable; <BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*; public class S3AFileSystem extends FileSyste...
import static org.apache.hadoop.fs.s3a.Constants.*; public class S3AFileSystem extends FileSystem {
21,036
public void initialize(URI name, Configuration conf) throws IOException { super.initialize(name, conf); uri = URI.create(name.getScheme() + "://" + name.getAuthority()); workingDir = new Path("/user", System.getProperty("user.name")).makeQualified(this.uri, this.getWorkingDirectory()); <BUG>String accessKey = conf.get(...
String accessKey = conf.get(NEW_ACCESS_KEY, conf.get(OLD_ACCESS_KEY, null)); String secretKey = conf.get(NEW_SECRET_KEY, conf.get(OLD_SECRET_KEY, null));
21,037
} else { accessKey = userInfo; } } AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain( <BUG>new S3ABasicAWSCredentialsProvider(accessKey, secretKey), new InstanceProfileCredentialsProvider(), new S3AAnonymousAWSCredentialsProvider() );</BUG> bucket = name.getHost();
new BasicAWSCredentialsProvider(accessKey, secretKey), new AnonymousAWSCredentialsProvider()
21,038
awsConf.setSocketTimeout(conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT)); </BUG> s3 = new AmazonS3Client(credentials, awsConf); <BUG>maxKeys = conf.getInt(MAX_PAGING_KEYS, DEFAULT_MAX_PAGING_KEYS); partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE); partSizeThreshold = conf.getInt(MIN_MULTIPART_THR...
new InstanceProfileCredentialsProvider(), new AnonymousAWSCredentialsProvider() bucket = name.getHost(); ClientConfiguration awsConf = new ClientConfiguration(); awsConf.setMaxConnections(conf.getInt(NEW_MAXIMUM_CONNECTIONS, conf.getInt(OLD_MAXIMUM_CONNECTIONS, DEFAULT_MAXIMUM_CONNECTIONS))); awsConf.setProtocol(conf.g...
21,039
cannedACL = null; } if (!s3.doesBucketExist(bucket)) { throw new IOException("Bucket " + bucket + " does not exist"); } <BUG>boolean purgeExistingMultipart = conf.getBoolean(PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART); long purgeExistingMultipartAge = conf.getLong(PURGE_EXISTING_MULTIPART_AGE, DEFAULT_...
boolean purgeExistingMultipart = conf.getBoolean(NEW_PURGE_EXISTING_MULTIPART, conf.getBoolean(OLD_PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART)); long purgeExistingMultipartAge = conf.getLong(NEW_PURGE_EXISTING_MULTIPART_AGE, conf.getLong(OLD_PURGE_EXISTING_MULTIPART_AGE, DEFAULT_PURGE_EXISTING_MULTIPART...
21,040
import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; <BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*; public class S3AOutputStream extends OutputStream {</BUG> private OutputStream backupStream; private File backup...
import static org.apache.hadoop.fs.s3a.Constants.*; public class S3AOutputStream extends OutputStream {
21,041
this.client = client; this.progress = progress; this.fs = fs; this.cannedACL = cannedACL; this.statistics = statistics; <BUG>partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE); partSizeThreshold = conf.getInt(MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD); </BUG> if (conf.get(BUFFER_DIR, null) ...
partSize = conf.getLong(OLD_MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE); partSizeThreshold = conf.getInt(OLD_MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
21,042
.filter(notNull(COLUMN_PROCESS_ID)) .column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes") .format(COLUMN_PROCESS_INSTANCE_ID, i18n.processes(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings()...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,043
.filter(COLUMN_PROCESS_STATUS, equalsTo(1)) .column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes") .format(COLUMN_PROCESS_INSTANCE_ID, i18n.activeProcesses(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .b...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,044
.filter(COLUMN_PROCESS_STATUS, equalsTo(0)) .column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes") .format(COLUMN_PROCESS_INSTANCE_ID, i18n.pendingProcesses(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() ....
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,045
.filter(COLUMN_PROCESS_STATUS, equalsTo(4)) .column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes") .format(COLUMN_PROCESS_INSTANCE_ID, i18n.suspendedProcesses(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn()...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,046
.filter(COLUMN_PROCESS_STATUS, equalsTo(3)) .column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes") .format(COLUMN_PROCESS_INSTANCE_ID, i18n.abortedProcesses(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() ....
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,047
.filter(COLUMN_PROCESS_STATUS, equalsTo(2)) .column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes") .format(COLUMN_PROCESS_INSTANCE_ID, i18n.completedProcesses(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn()...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,048
.filter(notNull(COLUMN_TASK_ID)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasks(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings();
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,049
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_CREATED)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksCreated(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings();
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,050
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_READY)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksReady(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings();
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,051
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_RESERVED)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksReserved(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings()...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,052
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_IN_PROGRESS)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksInProgress(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSetti...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,053
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_SUSPENDED)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksSuspended(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,054
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_COMPLETED)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksCompleted(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,055
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_FAILED)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksFailed(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings();
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,056
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_ERROR)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksError(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings();
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,057
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_EXITED)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksExited(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings();
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,058
.filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_OBSOLETE)) .column(COLUMN_TASK_ID, COUNT, "Tasks") .format(COLUMN_TASK_ID, i18n.tasksObsolete(), NO_DECIMALS) .width(METRIC_WIDTH).height(METRIC_HEIGHT) .margins(0, 0, 0, 0) <BUG>.backgroundColor(BG_COLOR) .filterOn(false, true, true)</BUG> .refreshOn() .buildSettings()...
.backgroundColor(METRIC_BG) .htmlTemplate(METRIC_HTML) .jsTemplate(METRIC_JS) .filterOn(false, true, true)
21,059
import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.math.BigInteger; import java.util.ArrayList; <BUG>import java.util.Collection; import static com.n1analytics.paillier.TestConfiguration.CONFIGURATIONS;</BUG> import static com.n1analyt...
import java.util.Random; import static com.n1analytics.paillier.TestConfiguration.CONFIGURATIONS;
21,060
@RunWith(Parameterized.class) @Category(SlowTests.class) public class AdditionTest { private PaillierContext context; private PaillierPrivateKey privateKey; <BUG>static private int maxIteration = 100; @Parameterized.Parameters</BUG> public static Collection<Object[]> configurations() { Collection<Object[]> configuratio...
static private int MAX_ITERATIONS = TestConfiguration.MAX_ITERATIONS; @Parameterized.Parameters
21,061
} }}; BinaryAdder4 binaryAdders4[] = new BinaryAdder4[]{new BinaryAdder4() {</BUG> @Override public EncodedNumber eval(EncodedNumber arg1, EncodedNumber arg2) { return arg1.add(arg2); } <BUG>}, new BinaryAdder4() { @Override</BUG> public EncodedNumber eval(EncodedNumber arg1, EncodedNumber arg2) {
}, new EncodedToEncodedAdder() { return arg2.add(arg1);
21,062
return context.add(arg2, arg1); } }}; <BUG>void testDoubleAddition(BinaryAdder1 adder) { double a, b, plainResult, decodedResult, tolerance; EncryptedNumber ciphertTextA, ciphertTextB, encryptedResult; EncodedNumber decryptedResult; for(int i = 0; i < maxIteration; i++) { a = randomFiniteDouble();</BUG> b = randomFini...
@Test public void testDoubleAddition() { EncryptedNumber cipherTextA, cipherTextA_obf, cipherTextB, cipherTextB_obf, encryptedResult; EncodedNumber encodedA, encodedB, encodedResult, decryptedResult; Random rnd = new Random(); int maxExponentDiff = (int)(0.5 * context.getPublicKey().getModulus().bitLength() / (Math.log...
21,063
@RunWith(Parameterized.class) @Category(SlowTests.class) public class DivisionTest { private PaillierContext context; private PaillierPrivateKey privateKey; <BUG>static private int maxIteration = 100; @Parameters</BUG> public static Collection<Object[]> configurations() { Collection<Object[]> configurationParams = new ...
static private int maxIteration = TestConfiguration.MAX_ITERATIONS; @Parameters
21,064
import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.os.Handler; <BUG>import android.support.v4.app.NavUtils; import android.support.v7.app.AppCompatActivity;</BUG> import android.support.v7.widget.Toolbar; import android.util.Log; import androi...
import android.support.v4.view.MenuItemCompat; import android.support.v7.app.AppCompatActivity;
21,065
import android.database.ContentObserver; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.os.Handler; <BUG>import android.support.v4.app.NavUtils; import android.support.v7.app.AppCompatActivity;</BUG> import android.support.v7.widget.Toolbar; import android.util.Log; imp...
import android.support.v4.view.MenuItemCompat; import android.support.v7.app.AppCompatActivity;
21,066
import android.os.Handler; import android.os.Looper; import android.os.PowerManager; import android.os.PowerManager.WakeLock; import android.preference.PreferenceManager; <BUG>import android.support.design.widget.FloatingActionButton; import android.support.v7.widget.Toolbar;</BUG> import android.util.Log; import andro...
import android.support.v4.view.MenuItemCompat; import android.support.v7.widget.Toolbar;
21,067
mAltitude.setOnCheckedChangeListener(mCheckedChangeListener); mDistance.setOnCheckedChangeListener(mCheckedChangeListener); mCompass.setOnCheckedChangeListener(mCheckedChangeListener); mLocation.setOnCheckedChangeListener(mCheckedChangeListener); builder.setTitle(R.string.dialog_layer_title).setIcon(android.R.drawable....
(android.R.string.ok, null).setView(view);
21,068
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.DigestOutputStream; import java.security.MessageDigest; <BUG>import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.List;</BUG> public final class ...
import java.text.DateFormat; import java.util.Date; import java.util.List;
21,069
package org.jboss.as.patching.runner; <BUG>import org.jboss.as.boot.DirectoryStructure; import org.jboss.as.patching.LocalPatchInfo;</BUG> import org.jboss.as.patching.PatchInfo; import org.jboss.as.patching.PatchLogger; import org.jboss.as.patching.PatchMessages;
import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp; import org.jboss.as.patching.CommonAttributes; import org.jboss.as.patching.LocalPatchInfo;
21,070
private static final String PATH_DELIMITER = "/"; public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT; enum Element { ADDED_BUNDLE("added-bundle"), ADDED_MISC_CONTENT("added-misc-content"), <BUG>ADDED_MODULE("added-module"), BUNDLES("bundles"),</BUG> CUMULATIVE("cumulative"), DESCRIPTION("description"), MIS...
APPLIES_TO_VERSION("applies-to-version"), BUNDLES("bundles"),
21,071
final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { <BUG>case APPLIES_TO_VERSION: builder.addAppliesTo(value); break;</BUG> case RESULTING_VE...
[DELETED]
21,072
final StringBuilder path = new StringBuilder(); for(final String p : item.getPath()) { path.append(p).append(PATH_DELIMITER); } path.append(item.getName()); <BUG>writer.writeAttribute(Attribute.PATH.name, path.toString()); if(type != ModificationType.REMOVE) {</BUG> writer.writeAttribute(Attribute.HASH.name, bytesToHex...
if (item.isDirectory()) { writer.writeAttribute(Attribute.DIRECTORY.name, "true"); if(type != ModificationType.REMOVE) {
21,073
package org.jboss.as.patching; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.patching.runner.PatchingException; import org.jboss.logging.Messages; import org.jboss.logging.annotations.Message; <BUG>import org.jboss.logging.annotations.MessageBundle; import java.io.IOException;</BUG> impor...
import org.jboss.logging.annotations.Cause; import java.io.IOException;
21,074
createCheckMenu(settingMenu, "clickPlayMenu", properties::getEnableClickPlay, properties::setEnableClickPlay); createCheckMenu(settingMenu, "view.marker", properties::getEnableViewMarker, properties::setEnableViewMarker); createCheckMenu(settingMenu, "view.range", properties::getViewRage, properties::setViewRage); crea...
createCheckMenu(settingMenu, "play.dls_attenuation", properties::getDLSAttenuation, properties::setDLSAttenuation); createMenuItem(settingMenu, "menu.clear_dls", ActionDispatcher.CLEAR_DLS);
21,075
Sequence seq = dls.createSequence(score); assertEquals(3, seq.getTracks().length); assertEquals(MMLTicks.getTick("1"), seq.getTickLength()); byte a[][] = new byte[][] { new byte[]{(byte)ShortMessage.PROGRAM_CHANGE, 0x5}, <BUG>new byte[]{(byte)ShortMessage.NOTE_ON, 69, 64}, // a new byte[]{(byte)ShortMessage.NOTE_ON, 7...
new byte[]{(byte)ShortMessage.NOTE_ON, 69, 56}, // a new byte[]{(byte)ShortMessage.NOTE_ON, 71, 56}, // b new byte[]{(byte)ShortMessage.NOTE_ON, 60, 56}, // c
21,076
import java.util.MissingResourceException; import java.util.ResourceBundle; import javax.sound.midi.Instrument; import javax.sound.midi.InvalidMidiDataException; import javax.sound.midi.MidiSystem; <BUG>import javax.sound.midi.Soundbank; import fourthline.mabiicco.MabiIccoProperties;</BUG> import fourthline.mmlTools.co...
import com.sun.media.sound.DLSInstrument; import com.sun.media.sound.DLSRegion; import fourthline.mabiicco.MabiIccoProperties;
21,077
private final int lowerNote; private final int upperNote; private final InstType type; private final Instrument inst; private static final String RESOURCE_NAME = "instrument"; <BUG>private static final ResourceBundle instResource = ResourceBundle.getBundle(RESOURCE_NAME, new ResourceLoader()); public InstClass(String n...
public static boolean debug = false; public InstClass(String name, int bank, int program, Instrument inst) {
21,078
import java.nio.file.FileSystems; import java.nio.file.Path; import java.util.ArrayList; import java.util.Arrays; import java.util.List; <BUG>import javax.sound.midi.*; import fourthline.mabiicco.AppErrorHandler; import fourthline.mmlTools.MMLEventList;</BUG> import fourthline.mmlTools.MMLNoteEvent; import fourthline.m...
import com.sun.media.sound.DLSInstrument; import com.sun.media.sound.DLSRegion; import fourthline.mabiicco.MabiIccoProperties; import fourthline.mmlTools.MMLEventList;
21,079
track.add(new MidiEvent(pcMessage, 0)); for (MMLTrack mmlTrack : score.getTrackList()) { if (mmlTrack.getSongProgram() != program) { continue; } <BUG>InstType instType = getInstByProgram(program).getType(); convertMidiPart(track, mmlTrack.getMMLEventAtIndex(3).getMMLNoteEventList(), channel, instType); </BUG> } }
InstClass instClass = getInstByProgram(program); convertMidiPart(track, mmlTrack.getMMLEventAtIndex(3).getMMLNoteEventList(), channel, instClass);
21,080
int note = noteEvent.getNote(); int tick = noteEvent.getTick(); int tickOffset = noteEvent.getTickOffset() + 1; int endTickOffset = tickOffset + tick - 1; if (noteEvent.getVelocity() >= 0) { <BUG>volumn = noteEvent.getVelocity(); }</BUG> try { MidiMessage message1 = new ShortMessage(ShortMessage.NOTE_ON, channel,
velocity = convertVelocityOnAtt(inst, note, noteEvent.getVelocity()); }
21,081
private static final String ENABLE_CLICK_PLAY = "function.enable_click_play"; private static final String ENABLE_VIEW_MARKER = "function.enable_view_marker"; private static final String ENABLE_EDIT = "function.enable_edit"; private static final String VIEW_RANGE = "view.pianoRoll.range"; private static final String VIE...
private static final String DLS_ATTENUATION = "function.dls_attenuation"; public static final int MAX_FILE_HISTORY = 8;
21,082
} else { updateMemo(); callback.updateMemo(); } dismiss(); <BUG>}else{ </BUG> Toast.makeText(getActivity(), getString(R.string.toast_memo_empty), Toast.LENGTH_SHORT).show(); } }
[DELETED]
21,083
} @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);
21,084
MemoEntry.COLUMN_REF_TOPIC__ID + " = ?" , new String[]{String.valueOf(topicId)}); } public Cursor selectMemo(long topicId) { Cursor c = db.query(MemoEntry.TABLE_NAME, null, MemoEntry.COLUMN_REF_TOPIC__ID + " = ?", new String[]{String.valueOf(topicId)}, null, null, <BUG>MemoEntry._ID + " DESC", null); </BUG> if (c != nu...
MemoEntry.COLUMN_ORDER + " ASC", null);
21,085
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(
21,086
import android.widget.RelativeLayout; import android.widget.TextView; import com.kiminonawa.mydiary.R; import com.kiminonawa.mydiary.db.DBManager; import com.kiminonawa.mydiary.shared.EditMode; <BUG>import com.kiminonawa.mydiary.shared.ThemeManager; import java.util.List; public class MemoAdapter extends RecyclerView.A...
import com.marshalchen.ultimaterecyclerview.dragsortadapter.DragSortAdapter; public class MemoAdapter extends DragSortAdapter<DragSortAdapter.ViewHolder> implements EditMode {
21,087
private DBManager dbManager; private boolean isEditMode = false; private EditMemoDialogFragment.MemoCallback callback; private static final int TYPE_HEADER = 0; private static final int TYPE_ITEM = 1; <BUG>public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMe...
public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMemoDialogFragment.MemoCallback callback, RecyclerView recyclerView) { super(recyclerView); this.mActivity = activity;
21,088
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) {
21,089
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;
21,090
import org.geogebra.common.kernel.algos.AlgoBarChart; import org.geogebra.common.kernel.algos.AlgoDependentNumber; import org.geogebra.common.kernel.algos.AlgoDependentPoint; import org.geogebra.common.kernel.algos.AlgoElement; import org.geogebra.common.kernel.algos.AlgoJoinPointsSegment; <BUG>import org.geogebra.comm...
import org.geogebra.common.kernel.algos.AlgoMax; import org.geogebra.common.kernel.algos.AlgoMin; import org.geogebra.common.kernel.algos.AlgoPointOnPath;
21,091
xLow = new AlgoDependentNumber(cons, lowPlusOffset, false); } cons.removeFromConstructionList(xLow);</BUG> AlgoDependentNumber xHigh = new AlgoDependentNumber(cons, highPlusOffset, false); <BUG>cons.removeFromConstructionList(xHigh); AlgoTake take = new AlgoTake(cons, discreteValueList, (GeoNumeric) xLow.getOutput(0), ...
xMin = new AlgoMin(cons, xLow.getNumber(), xHigh.getNumber()); xMax = new AlgoMax(cons, xLow.getNumber(), xHigh.getNumber()); cons.removeFromConstructionList(xLow); (GeoNumeric) xMin.getOutput(0), (GeoNumeric) xMax.getOutput(0));
21,092
(GeoNumeric) xHigh.getOutput(0)); </BUG> cons.removeFromConstructionList(take); intervalValueList = (GeoList) take.getOutput(0); AlgoTake take2 = new AlgoTake(cons, discreteProbList, <BUG>(GeoNumeric) xLow.getOutput(0), (GeoNumeric) xHigh.getOutput(0)); </BUG> cons.removeFromConstructionList(take2);
xLow = new AlgoDependentNumber(cons, lowPlusOffset, false); xMin = new AlgoMin(cons, xLow.getNumber(), xHigh.getNumber()); xMax = new AlgoMax(cons, xLow.getNumber(), xHigh.getNumber()); } cons.removeFromConstructionList(xLow); AlgoTake take = new AlgoTake(cons, discreteValueList, (GeoNumeric) xMin.getOutput(0), (GeoNum...
21,093
package org.oliot.epcis.service.query; import java.net.URI; import java.util.List; <BUG>import javax.jws.WebMethod; import javax.jws.WebService;</BUG> import org.oliot.model.epcis.QueryParams; import org.oliot.model.epcis.QueryResults; import org.oliot.model.epcis.SubscriptionControls;
import javax.jws.WebParam; import javax.jws.WebService;
21,094
public void subscribe(String queryName, QueryParams params, URI dest, SubscriptionControls controls, String subscriptionID); @WebMethod public void unsubscribe(String subscriptionID); @WebMethod <BUG>public QueryResults poll(String queryName, QueryParams params); @WebMethod</BUG> public List<String> getQueryNames(); @W...
public QueryResults poll(@WebParam(name = "queryName") String queryName, @WebParam(name = "params") QueryParams params);
21,095
<BUG>package com.liferay.portlet.journal.util; import com.liferay.portal.kernel.search.Hits;</BUG> import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.IndexerRegistryUtil; import com.liferay.portal.kernel.search.QueryConfig;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.search.Hits;
21,096
if (result == null) return null; } final int maxLine = editor.offsetToLogicalPosition(editor.getDocument().getTextLength()).line; if (result.startLine <= 1 && !isDown) return null; if (result.endLine >= maxLine - 1 && isDown) return null; <BUG>final PsiElement guard = PsiTreeUtil.getParentOfType(file.findElementAt(edit...
final PsiElement elementAt = file.findElementAt(editor.getCaretModel().getOffset()); if (elementAt == null) return null; final PsiElement guard = PsiTreeUtil.getParentOfType(elementAt, new Class[]{PsiMethod.class, PsiClassInitializer.class, PsiClass.class}); final int insertOffset = editor.logicalPositionToOffset(new L...
21,097
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()};
21,098
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];
21,099
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];
21,100
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];