id
int64 2
70k
| bug_ctx
stringlengths 56
37.5k
| fixed
stringlengths 1
37k
|
---|---|---|
14,334 |
[BUG]String pageUri =UriBuilder.fromUri(baseUri).path(PageResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName()).toString();[BUG][CONTEXT]Calendar calendar = Calendar.getInstance();calendar.setTime(xwikiAttachment.getDate());attachment.setDate(calendar);attachment.setXwikiRelativeUrl(xwikiRelativeUrl);attachment.setXwikiAbsoluteUrl(xwikiAbsoluteUrl);<extra_id_0>Link pageLink = objectFactory.createLink();[CONTEXT]
|
String pageUri = uri(baseUri, PageResource.class, doc.getWiki(), doc.getSpace(), doc.getName());
|
60,647 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort;[BUG][CONTEXT]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++)<extra_id_0>dstPixelOffset += dstPixelStride;}} else[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
|
28,591 |
[BUG]}else wSuccessCondition.select(0);wIfFileExists.select(jobEntry.getIfFileExist());[BUG][CONTEXT]wSuccessCondition.select(1);else if(jobEntry.getSuccessCondition().equals(jobEntry.SUCCESS_IF_ERRORS_LESS))wSuccessCondition.select(2);elsewSuccessCondition.select(0);<extra_id_0>wcreateMoveToDirectory.setSelection(jobEntry.isCreateMoveToDirectory());}private void cancel()[CONTEXT]
|
wAddOriginalTimestamp.setSelection(jobEntry.isOriginalTimestamp());wSetModificationDateToOriginal.setSelection(jobEntry.isOriginalModificationDate());wIfFileExists.select(jobEntry.getIfFileExist());
|
66,327 |
[BUG]protected class MemoViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {private View rootView;private TextView TV_memo_item_content;[BUG][CONTEXT]editMemoDialogFragment.show(mActivity.getSupportFragmentManager(), "editMemoDialogFragment");}});}}<extra_id_0>private ImageView IV_memo_item_delete;[CONTEXT]
|
protected class MemoViewHolder extends DragSortAdapter.ViewHolder implements View.OnClickListener, View.OnLongClickListener {private ImageView IV_memo_item_dot;private TextView TV_memo_item_content;
|
55,001 |
[BUG]import com.eucalyptus.simplequeue.exceptions.UnsupportedOperationException;import com.eucalyptus.simplequeue.persistence.PersistenceFactory;[BUG][CONTEXT]import com.eucalyptus.simplequeue.exceptions.InvalidParameterValueException;import com.eucalyptus.simplequeue.exceptions.MissingParameterException;import com.eucalyptus.simplequeue.exceptions.QueueAlreadyExistsException;import com.eucalyptus.simplequeue.exceptions.QueueDoesNotExistException;import com.eucalyptus.simplequeue.exceptions.SimpleQueueException;<extra_id_0>import com.eucalyptus.simplequeue.persistence.Queue;import com.eucalyptus.util.EucalyptusCloudException;import com.eucalyptus.util.Exceptions;[CONTEXT]
|
import com.eucalyptus.simplequeue.persistence.MessagePersistence;import com.eucalyptus.simplequeue.persistence.PersistenceFactory;
|
39,155 |
[BUG]import com.liferay.portal.kernel.util.PropsKeys;import com.liferay.portal.kernel.util.PropsUtil;[BUG][CONTEXT]import com.liferay.portal.kernel.cal.DayAndPosition;import com.liferay.portal.kernel.cal.TZSRecurrence;import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;import com.liferay.portal.kernel.exception.PortalException;import com.liferay.portal.kernel.exception.SystemException;<extra_id_0>import com.liferay.portal.kernel.util.Time;import com.liferay.portal.kernel.uuid.PortalUUIDUtil;import com.liferay.portal.kernel.workflow.WorkflowConstants;[CONTEXT]
|
[DELETED]
|
20,856 |
[BUG]drawLegendEntry(number++, "Entry Point", colorMap.get(ENTRY_POINT),true);}[BUG][CONTEXT]drawLegendEntry(number++, getSpecialsDescription(special),getSpecialsColor(special), true);}}if (epAvailable) {<extra_id_0>if (overlayAvailable) {drawLegendEntry(number++, "Overlay", colorMap.get(OVERLAY));[CONTEXT]
|
drawLegendEntry(number++, "Entry Point",colorMap.get(ENTRY_POINT), true);
|
16,042 |
[BUG]return Task.ofType(String.class).named("Types", myType.content).process(() -> myType.content);[BUG][CONTEXT]assertThat(parsedType.content, is("blarg parsed for you!"));}@RootTaskpublic static Task<String> customType(CustomType myType) {parsedType = myType;<extra_id_0>}public enum CustomEnum {BAR[CONTEXT]
|
return Task.named("Types", myType.content).ofType(String.class).process(() -> myType.content);
|
17,174 |
[BUG]Set<AttributeKey> keys = new HashSet<>();for (AttributeKvEntry attribute : attributes) {keys.add(new AttributeKey(scope, attribute.getKey()));}[BUG][CONTEXT]pluginCtx.msgEndpoint.close(sessionRef);}@Overridepublic void saveAttributes(DeviceId deviceId, String scope, List<AttributeKvEntry> attributes, PluginCallback<Void> callback) {validate(deviceId);<extra_id_0>ListenableFuture<List<ResultSet>> rsListFuture = pluginCtx.attributesService.save(deviceId, scope, attributes);[CONTEXT]
|
[DELETED]
|
32,136 |
[BUG].workingDirectory(build.getGopath()).env("GOPATH", build.getGopath())[BUG][CONTEXT]if (getResult == downloaded || !exists(targetBinaryFilename)) {getLogger().info("Get tool {}...", dependency.getGroup());progress.progress("Get tool " + dependency.getGroup() + "...");delete(targetBinaryFilename.getParent());executor(toolchain.getGoBinary())<extra_id_0>.env("GOROOT", toolchain.getGoroot())[CONTEXT]
|
.workingDirectory(build.getFirstGopath()).env("GOPATH", build.getGopathAsString())
|
55,842 |
[BUG]if (customView!=null) {customView.setVisibility(View.GONE);customViewContainer.removeView(customView);[BUG][CONTEXT]public void onHideCustomView() {isVideoPlayingFullscreen = false;if (customViewContainer==null) {return;} else {<extra_id_0>customView = null;customViewContainer.setVisibility(View.GONE);[CONTEXT]
|
try {customViewContainer.removeView(customView);} catch(NullPointerException e) {e.printStackTrace();}
|
34,102 |
[BUG]remoteRevs = ClientTestUtils.getRemoteRevisionIDs(getURI);[BUG][CONTEXT]body.put("age", age);revision.setBody(DocumentBodyFactory.create(body));revision = datastore.update(revision);}super.push();<extra_id_0>localRevs = new ArrayList<String>();localRevsTree = datastore.getAllRevisionsOfDocument(bar.getId());roots = localRevsTree.roots();[CONTEXT]
|
remoteRevs = ClientTestUtils.getRemoteRevisionIDs(getURI, getCouchConfig(getDbName()));
|
10,926 |
[BUG]import android.content.Context;import android.view.inputmethod.EditorInfo;import android.view.inputmethod.InputConnection;import android.widget.EditText;public class EditTextMultiLineNoEnter extends EditText {public EditTextMultiLineNoEnter(Context context) {[BUG][CONTEXT]package it.feio.android.checklistview.models;<extra_id_0>super(context);[CONTEXT]
|
import it.feio.android.checklistview.interfaces.EditTextEventListener;import android.view.KeyEvent;import android.view.inputmethod.InputConnectionWrapper;private EditTextEventListener mEditTextEventListener;public EditTextMultiLineNoEnter(Context context) {
|
17,562 |
[BUG]public static final String EMR_CONCEPT_SOURCE_DESCRIPTION = "Source used to tag concepts used in the EMR API module";public static final String EMR_CONCEPT_SOURCE_UUID = "edd52713-8887-47b7-ba9e-6e1148824ca4";[BUG][CONTEXT]public static final String PRIMARY_IDENTIFIER_TYPE = "emr.primaryIdentifierType";public static final String GP_EXTRA_PATIENT_IDENTIFIER_TYPES = "emr.extraPatientIdentifierTypes";public static final String SAME_AS_CONCEPT_MAP_TYPE_UUID = "35543629-7d8c-11e1-909d-c80aa9edcf4e";public static final String NARROWER_THAN_CONCEPT_MAP_TYPE_UUID = "43ac5109-7d8c-11e1-909d-c80aa9edcf4e";public static final String EMR_CONCEPT_SOURCE_NAME = "org.openmrs.module.emrapi";<extra_id_0>public static final String GP_DIAGNOSIS_SET_OF_SETS = "emr.concept.diagnosisSetOfSets";public static final String GP_NON_DIAGNOSIS_CONCEPT_SETS = "emrapi.nonDiagnosisConceptSets";public static final String GP_SUPPRESSED_DIAGNOSIS_CONCEPTS = "emrapi.suppressedDiagnosisConcepts";[CONTEXT]
|
public static final String EMR_METADATA_SOURCE_NAME = "org.openmrs.module.emrapi";public static final String EMR_METADATA_SOURCE_DESCRIPTION = "Source used to tag metadata used in the EMR API module";public static final String EMR_CONCEPT_SOURCE_UUID = "edd52713-8887-47b7-ba9e-6e1148824ca4";
|
13,756 |
[BUG]integer -> new DateTime().withMonthOfYear(integer).monthOfYear().getAsText(bundle.getLocale()),expression[BUG][CONTEXT]return dom;}public static DescriptionStrategy monthsInstance(final ResourceBundle bundle, final FieldExpression expression) {return new NominalDescriptionStrategy(bundle,<extra_id_0>);}public static DescriptionStrategy plainInstance(ResourceBundle bundle, final FieldExpression expression) {[CONTEXT]
|
integer -> Month.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale()),expression
|
60,433 |
[BUG]import com.opencms.launcher.CmsXmlLauncher;import java.io.IOException;[BUG][CONTEXT]import com.opencms.file.CmsObject;import com.opencms.file.CmsResource;import com.opencms.flex.cache.CmsFlexCache;import com.opencms.flex.cache.CmsFlexRequest;import com.opencms.flex.cache.CmsFlexResponse;<extra_id_0>import javax.servlet.ServletException;import javax.servlet.http.HttpServletRequest;public class CmsXmlTemplateLoader extends CmsXmlLauncher implements I_CmsResourceLoader {[CONTEXT]
|
import com.opencms.util.Encoder;import java.io.IOException;
|
69,877 |
[BUG]connection = __getConnection();__grantDirectResourcePermissions(connection, accessorResource, accessedResource, requestedResourcePermissions);[BUG][CONTEXT]__assertPermissionSpecified(resourcePermission);__assertVarargPermissionsSpecified(resourcePermissions);final Set<ResourcePermission> requestedResourcePermissions= __getSetWithoutNullsOrDuplicates(resourcePermission, resourcePermissions);try {<extra_id_0>}finally {__closeConnection(connection);[CONTEXT]
|
accessorResource = __resolveResource(connection, accessorResource);accessedResource = __resolveResource(connection, accessedResource);__grantDirectResourcePermissions(connection, accessorResource, accessedResource, requestedResourcePermissions);
|
27,858 |
[BUG]new S3ABasicAWSCredentialsProvider(accessKey, secretKey),new InstanceProfileCredentialsProvider(),new S3AAnonymousAWSCredentialsProvider());[BUG][CONTEXT]} else {accessKey = userInfo;}}AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain(<extra_id_0>bucket = name.getHost();[CONTEXT]
|
new BasicAWSCredentialsProvider(accessKey, secretKey),new AnonymousAWSCredentialsProvider()
|
11,337 |
[BUG]import io.typefox.lsapi.FileEvent;import io.typefox.lsapi.PublishDiagnosticsParams;[BUG][CONTEXT]package com.palantir.ls.server;import com.palantir.ls.server.api.CompilerWrapper;import com.palantir.ls.server.api.TreeParser;import com.palantir.ls.server.api.WorkspaceCompiler;<extra_id_0>import io.typefox.lsapi.ReferenceParams;import io.typefox.lsapi.SymbolInformation;import io.typefox.lsapi.TextDocumentContentChangeEvent;[CONTEXT]
|
import com.google.common.base.Optional;import io.typefox.lsapi.Location;import io.typefox.lsapi.Position;import io.typefox.lsapi.PublishDiagnosticsParams;
|
37,811 |
[BUG]boolean updateNotification = progress == 0 || progress % notifUpdateIncrement == 0;[BUG][CONTEXT]mNotificationCompleteTitleId = notificationCompleteTitleId;}@Overridepublic void onProgress(int progress, int max) {int notifUpdateIncrement = (int) (max * 0.05);<extra_id_0>if (!updateNotification) return;NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext);builder.setSmallIcon(mNotificationIcon);[CONTEXT]
|
boolean updateNotification = progress <= 1 || progress % notifUpdateIncrement == 0;
|
20,461 |
[BUG]IRegion region = FGManager.getInstance().getRegion(entry.getKey());if (region != null) {logger.info("Loading links for region \"" + region.getName() + "\"");[BUG][CONTEXT]public synchronized void loadRegionLinks() {logger.info("Loading region links");try (DB mainDB = DBMaker.fileDB(directory.resolve("regions.foxdb").normalize().toString()).make()) {Map<String, String> linksMap = mainDB.hashMap("links", Serializer.STRING, Serializer.STRING).createOrOpen();linksMap.entrySet().forEach(entry -> {<extra_id_0>String handlersString = entry.getValue();[CONTEXT]
|
Optional<IRegion> regionOpt = FGManager.getInstance().getRegion(entry.getKey());if (regionOpt.isPresent()) {IRegion region = regionOpt.get();logger.info("Loading links for region \"" + region.getName() + "\"");
|
57,091 |
[BUG]public void updateRenderCameraPose(TangoPoseData devicePose, DeviceExtrinsics extrinsics) {Pose cameraPose = ScenePoseCalculator.toOpenGlCameraPose(devicePose, extrinsics);getCurrentCamera().setRotation(cameraPose.getOrientation());getCurrentCamera().setPosition(cameraPose.getPosition());}[BUG][CONTEXT]translationMoon.setRepeatMode(Animation.RepeatMode.INFINITE);translationMoon.setTransformable3D(moon);getCurrentScene().registerAnimation(translationMoon);translationMoon.play();}<extra_id_0>public int getTextureId() {[CONTEXT]
|
public void updateRenderCameraPose(TangoPoseData cameraPose) {float[] rotation = cameraPose.getRotationAsFloats();float[] translation = cameraPose.getTranslationAsFloats();Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]);getCurrentCamera().setRotation(quaternion.conjugate());getCurrentCamera().setPosition(translation[0], translation[1], translation[2]);
|
18,599 |
[BUG]Log.w(TAG, "The GCM registration message is missing error information, registration id, and unregistration " +[BUG][CONTEXT]} else if (registrationId != null) {Appboy.getInstance(context).registerAppboyPushMessages(registrationId);} else if (intent.hasExtra(GCM_UNREGISTERED_KEY)) {Appboy.getInstance(context).unregisterAppboyPushMessages();} else {<extra_id_0>"confirmation. Ignoring.");return false;}[CONTEXT]
|
AppboyLogger.w(TAG, "The GCM registration message is missing error information, registration id, and unregistration " +
|
39,504 |
[BUG]try {connectTango();[BUG][CONTEXT]super.onResume();if (!mIsConnected) {mTango = new Tango(AugmentedRealityActivity.this, new Runnable() {@Overridepublic void run() {<extra_id_0>setupRenderer();mIsConnected = true;} catch (TangoOutOfDateException e) {[CONTEXT]
|
TangoSupport.initialize();connectTango();
|
17,530 |
[BUG]import android.support.v4.app.NavUtils;import android.support.v7.app.AppCompatActivity;[BUG][CONTEXT]import android.content.Intent;import android.database.Cursor;import android.net.Uri;import android.os.Bundle;import android.os.Handler;<extra_id_0>import android.support.v7.widget.Toolbar;import android.util.Log;import android.view.ContextMenu;[CONTEXT]
|
import android.support.v4.view.MenuItemCompat;import android.support.v7.app.AppCompatActivity;
|
29,287 |
[BUG]public RssItem(long id, long feedId, String link, String title, String body, Boolean read, Boolean starred, String author, String guid, String guidHash, Boolean read_temp, Boolean starred_temp, java.util.Date lastModified, java.util.Date pubDate, String enclosureLink, String enclosureMime) {[BUG][CONTEXT]public RssItem() {}public RssItem(long id) {this.id = id;}<extra_id_0>this.id = id;this.feedId = feedId;this.link = link;[CONTEXT]
|
public RssItem(long id, long feedId, String link, String title, String body, Boolean read, Boolean starred, String author, String guid, String guidHash, String fingerprint, Boolean read_temp, Boolean starred_temp, java.util.Date lastModified, java.util.Date pubDate, String enclosureLink, String enclosureMime) {
|
21,154 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt;[BUG][CONTEXT]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++)<extra_id_0>dstPixelOffset += dstPixelStride;}} else[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
|
26,179 |
[CONTEXT]if (lastFramePose.statusCode == TangoPoseData.POSE_VALID) {mRenderer.updateRenderCameraPose(lastFramePose, mExtrinsics);mCameraPoseTimestamp = lastFramePose.timestamp;[BUG]} else {<extra_id_0>} else {[BUG]Log.w(TAG, "Can't get device pose at time: " + mRgbTimestampGlThread);}[BUG]}}}@Override[CONTEXT]
|
mRenderer.updateRenderCameraPose(lastFramePose);mCameraPoseTimestamp = lastFramePose.timestamp;Log.w(TAG, "Can't get device pose at time: " +
|
44,819 |
[BUG]cronField.getExpression().asString(), DateTime.now()[BUG][CONTEXT]private static final Logger log = LoggerFactory.getLogger(EveryFieldValueGenerator.class);public EveryFieldValueGenerator(CronField cronField) {super(cronField);log.trace(String.format("processing \"%s\" at %s",<extra_id_0>));}@Override[CONTEXT]
|
cronField.getExpression().asString(), ZonedDateTime.now()
|
41,584 |
[BUG]if (caseA) {for (int h = 0; h < dstHeight; h++) {[BUG][CONTEXT]final int pixelStride = dst.getPixelStride();final int[] bandOffsets = dst.getBandOffsets();final float[][] data = dst.getFloatDataArrays();final float[] warpData = new float[2 * dstWidth];int lineOffset = 0;<extra_id_0>int pixelOffset = lineOffset;lineOffset += lineStride;warp.warpRect(dst.getX(), dst.getY() + h, dstWidth, 1, warpData);[CONTEXT]
|
if(hasROI && !roiContainsTile && roiIter == null){throw new IllegalArgumentException("Error on creating the ROI iterator");}if (caseA || (caseB && roiContainsTile)) {for (int h = 0; h < dstHeight; h++) {
|
30,543 |
[BUG]package org.infinispan.test.integration.as.jms;import javax.persistence.SharedCacheMode;[BUG][CONTEXT]<extra_id_0>import org.infinispan.test.integration.as.jms.controller.RegistrationController;import org.infinispan.test.integration.as.jms.controller.RegistrationMdb;import org.infinispan.test.integration.as.jms.controller.StatisticsController;[CONTEXT]
|
import static org.infinispan.test.integration.as.VersionTestHelper.hibernateOrmModuleName;import static org.infinispan.test.integration.as.VersionTestHelper.hibernateSearchModuleName;import javax.persistence.SharedCacheMode;
|
12,012 |
[BUG]classes(declaredParameterRawType), objects(prefabValues.giveBlack(singleParameterTag)));@SuppressWarnings("unchecked")Tuple<T> result = new Tuple<>((T)red, (T)black);return result;[BUG][CONTEXT]TypeTag singleParameterTag = copyGenericTypesInto(actualParameterRawType, tag);prefabValues.realizeCacheFor(singleParameterTag, clone);Object red = ci.callFactory(factoryType, factoryMethod,classes(declaredParameterRawType), objects(prefabValues.giveRed(singleParameterTag)));Object black = ci.callFactory(factoryType, factoryMethod,<extra_id_0>}[CONTEXT]
|
return Tuple.of(red, black);
|
53,671 |
[BUG]public UsernamePasswordApiKeyToken(String username, String password, String apiKey){super(username,password);this.apiKey= apiKey;[BUG][CONTEXT]package com.continuuity.passport.core.security;import org.apache.shiro.authc.UsernamePasswordToken;public class UsernamePasswordApiKeyToken extends UsernamePasswordToken {private final String apiKey;<extra_id_0>}[CONTEXT]
|
public UsernamePasswordApiKeyToken(String username, String password, String apiKey) {super(username, password);this.apiKey = apiKey;
|
64,371 |
[BUG]import de.jeisfeld.augendiagnoselib.util.imagefile.JpegMetadataUtil;public class DisplayImageFragment extends Fragment implements GuiElementUpdater, OnColorSelectedListener {[BUG][CONTEXT]import de.jeisfeld.augendiagnoselib.components.colorpicker.ColorPickerSwatch.OnColorSelectedListener;import de.jeisfeld.augendiagnoselib.util.DialogUtil;import de.jeisfeld.augendiagnoselib.util.PreferenceUtil;import de.jeisfeld.augendiagnoselib.util.SystemUtil;import de.jeisfeld.augendiagnoselib.util.imagefile.EyePhoto.RightLeft;<extra_id_0>protected static final int UTILITIES_DO_NOT_SHOW = 1;private static final int UTILITIES_SHOW_FULLSCREEN = 2;protected static final int UTILITIES_SHOW_ALWAYS = 3;[CONTEXT]
|
import de.jeisfeld.augendiagnoselib.util.imagefile.PupilAndIrisDetector;public class DisplayImageFragment extends Fragment implements GuiElementUpdater, OnColorSelectedListener {
|
53,674 |
[CONTEXT][BUG]validationFailedWithException(ex, ex.object(), "saveChangesExceptionKey");} catch(EOGeneralAdaptorException ex) {if(ERXEOAccessUtilities.isOptimisticLockingFailure(ex) && shouldRecoverFromOptimisticLockingFailure()) {EOEnterpriseObject eo = ERXEOAccessUtilities.refetchFailedObject(ec, ex);<extra_id_0>validationFailedWithException(ex, ex.object(), "saveChangesExceptionKey");} catch(EOGeneralAdaptorException ex) {if(ERXEOAccessUtilities.isOptimisticLockingFailure(ex) && shouldRecoverFromOptimisticLockingFailure()) {EOEnterpriseObject eo = ERXEOAccessUtilities.refetchFailedObject(ec, ex);[BUG]errorMessage = ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotSavePleaseReapply", d2wContext());[BUG]validationFailedWithException(ex, eo, "CouldNotSavePleaseReapply");} else {throw ex;[CONTEXT]
|
if (object()!=null && shouldSaveChanges() && ec.hasChanges()) {ec.saveChanges();}saved = true;} catch (NSValidation.ValidationException ex) {setErrorMessage(ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotSave", ex));setErrorMessage(ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotSavePleaseReapply", d2wContext()));
|
47,805 |
[BUG]if (caseA) {for (int h = 0; h < dstHeight; h++) {[BUG][CONTEXT]final int pixelStride = dst.getPixelStride();final int[] bandOffsets = dst.getBandOffsets();final double[][] data = dst.getDoubleDataArrays();final float[] warpData = new float[2 * dstWidth];int lineOffset = 0;<extra_id_0>int pixelOffset = lineOffset;lineOffset += lineStride;warp.warpRect(dst.getX(), dst.getY() + h, dstWidth, 1, warpData);[CONTEXT]
|
if(hasROI && !roiContainsTile && roiIter == null){throw new IllegalArgumentException("Error on creating the ROI iterator");}if (caseA || (caseB && roiContainsTile)) {for (int h = 0; h < dstHeight; h++) {
|
19,912 |
[BUG]iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);minX = src.getMinX() + 1; // Left paddingmaxX = src.getMaxX() - 2; // Right paddingminY = src.getMinY() + 1; // Top paddingmaxY = src.getMaxY() - 2; // Bottom padding[BUG][CONTEXT]minX = src.getMinX();maxX = src.getMaxX();minY = src.getMinY();maxY = src.getMaxY();} else {<extra_id_0>}[CONTEXT]
|
iterSource = getRandomIterator(src, null);minX = src.getMinX() + leftPad; // Left paddingmaxX = src.getMaxX() - rightPad; // Right paddingminY = src.getMinY() + topPad; // Top paddingmaxY = src.getMaxY() - bottomPad; // Bottom padding
|
4,524 |
[BUG]addLogEnd(retval, RHN_LOG_FILE, true);[BUG][CONTEXT]addCobblerSnippet(retval, DEFAULT_MOTD);addCobblerSnippet(retval, REDHAT_REGISTER_SNIPPET);retval.append("# end cobbler snippet" + NEWLINE);retval.append(NEWLINE);retval.append(RHNCHECK + NEWLINE);<extra_id_0>retval.append(NEWLINE);if (!this.ksdata.getKickstartDefaults().getKstree().getChannel().getChannelArch().getName().startsWith("s390")) {[CONTEXT]
|
addLogEnd(retval, RHN_LOG_FILE, "");
|
48,029 |
[BUG]return new WhatsNewViewHolder(view);} else if (viewType == VIEWTYPE_LINKS) {[BUG][CONTEXT].inflate(R.layout.app_details2_screenshots, parent, false);return new ScreenShotsViewHolder(view);} else if (viewType == VIEWTYPE_WHATS_NEW) {View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.app_details2_whatsnew, parent, false);<extra_id_0>View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.app_details2_links, parent, false);return new ExpandableLinearLayoutViewHolder(view);[CONTEXT]
|
} else if (viewType == VIEWTYPE_DONATE) {.inflate(R.layout.app_details2_donate, parent, false);return new DonateViewHolder(view);} else if (viewType == VIEWTYPE_LINKS) {
|
251 |
[BUG]}public static void deleteDatabaseFiles() {[BUG][CONTEXT]if (nextReconnectAttempt < System.currentTimeMillis()) {nextReconnectAttempt = System.currentTimeMillis() + reconnectDelay;reconnectDelay = reconnectDelay * useExponentialBackOff;}}<extra_id_0>deleteDatabaseFiles(DEFAULT_DATABASE_NAME, true);}public static void deleteDatabaseFiles(String dbName, boolean now) {[CONTEXT]
|
public static void deleteDatabaseFiles() {
|
67,467 |
[BUG]e.printStackTrace();exceptionConsumer.accept(e);[BUG][CONTEXT]AmidstLogger.warn("unable to check for updates");displayError(e);}@CalledOnlyBy(AmidstThread.EDT)private void displayError(Exception e) {<extra_id_0>}@CalledOnlyBy(AmidstThread.EDT)private void displayResult(UpdateInformationJson updateInformation) {[CONTEXT]
|
AmidstLogger.warn(e);exceptionConsumer.accept(e);
|
29,830 |
[BUG]import java.util.Arrays;import java.util.Collections;import java.util.Dictionary;import java.util.Iterator;import java.util.TreeMap;import java.util.TreeSet;[BUG][CONTEXT]package org.apache.felix.webconsole.internal.compendium;import java.io.IOException;import java.io.PrintWriter;<extra_id_0>import javax.servlet.http.HttpServletRequest;[CONTEXT]
|
import java.util.*;import javax.servlet.ServletException;
|
10,581 |
[CONTEXT][BUG]}}CommandInfo.Builder cmdBuilder = CommandInfo.newBuilder(existingCommandInfo);<extra_id_0>}}CommandInfo.Builder cmdBuilder = CommandInfo.newBuilder(existingCommandInfo);[BUG]cmdBuilder.setEnvironment(envBuilder.build());[BUG]taskBuilder.clearData();taskBuilder.setData(cmdBuilder.build().toByteString());return taskBuilder;} catch (InvalidProtocolBufferException e) {[CONTEXT]
|
final CommandInfo existingCommandInfo = CommandInfo.parseFrom(taskBuilder.getData());for (Variable variable : existingCommandInfo.getEnvironment().getVariablesList()) {if (variable.getName().equals(CONFIG_ID_KEY)) {envMap.put(CONFIG_ID_KEY, configName);} else {envMap.put(variable.getName(), variable.getValue());cmdBuilder.setEnvironment(environment(envMap));
|
9,957 |
[BUG]import java.util.Optional;import static net.foxdenstudio.sponge.foxcore.plugin.util.Aliases.*;[BUG][CONTEXT]import org.spongepowered.api.world.Locatable;import org.spongepowered.api.world.Location;import org.spongepowered.api.world.World;import javax.annotation.Nullable;import java.util.List;<extra_id_0>public class CommandDelete extends FCCommandBase {private static final FlagMapper MAPPER = map -> key -> value -> {map.put(key, value);[CONTEXT]
|
import java.util.stream.Stream;import static net.foxdenstudio.sponge.foxcore.plugin.util.Aliases.*;
|
58,721 |
[BUG]private String sanitizeSearchText(String shortText) {shortText = StringUtils.remove(shortText, ",");[BUG][CONTEXT]catch (Exception e) {}}return result;}<extra_id_0>shortText = StringUtils.replace(shortText, "-", " ");shortText += addTransliteration(shortText);return shortText;[CONTEXT]
|
shortText = shortText.toLowerCase();shortText = StringUtils.remove(shortText, ",");
|
23,911 |
[BUG]String.format("Cannot coerce string value '%s' to an enum value of type '%s' (valid case insensitive values: %s)",[BUG][CONTEXT]return enumValue.name().equalsIgnoreCase(enumString);}});if (match == null) {throw new TypeConversionException(<extra_id_0>enumString, type.getName(), CollectionUtils.toStringList(Arrays.asList(type.getEnumConstants()))));[CONTEXT]
|
String.format("Cannot convert string value '%s' to an enum value of type '%s' (valid case insensitive values: %s)",
|
56,513 |
[BUG]String json = TestUtils.getJsonString("inkfiles/choices/single-choice.ink.json").replace('\uFEFF', ' ');Story story = new Story(json);[BUG][CONTEXT]Assert.assertEquals("Hello, world!", text.get(0));}@Testpublic void singleChoice2() throws Exception {List<String> text = new ArrayList<String>();<extra_id_0>TestUtils.nextAll(story, text);story.chooseChoiceIndex(0);text.clear();[CONTEXT]
|
String json = TestUtils.getJsonString("inkfiles/choices/single-choice.ink.json");Story story = new Story(json);
|
36,337 |
[BUG]return pos == 0 && pos < sequence().size;[BUG][CONTEXT]sequence();return pos == -1;}public boolean isBeforeFirst() throws XQException {sequence();<extra_id_0>}public boolean isFirst() throws XQException {sequence();[CONTEXT]
|
return pos == 0 && pos < sequence().size();
|
2,828 |
[BUG]if (BuildConfig.DEBUG) {Log.w(LOGTAG, ignore);}[BUG][CONTEXT]final List<InetAddress> addresses = mDns.lookup(host);for (InetAddress address : addresses) {c.addRow(new String[]{host, address.getHostAddress()});}} catch (final IOException ignore) {<extra_id_0>}[CONTEXT]
|
DebugLog.w(LOGTAG, null, ignore);
|
27,752 |
[CONTEXT]if (fgObject.autoSave()) {Path singleDir = dir.resolve(name.toLowerCase());[BUG]boolean shouldSave = fgObject.shouldSave();if (force || shouldSave) {<extra_id_0>boolean shouldSave = fgObject.shouldSave();if (force || shouldSave) {[BUG]logger.info((shouldSave ? "S" : "Force s") + "aving world region \"" + name + "\" in directory: " + singleDir);[BUG]constructDirectory(singleDir);try {fgObject.save(singleDir);[CONTEXT]
|
Path singleDir = serverDir.resolve(name.toLowerCase());logger.info((shouldSave ? "S" : "Force s") + "aving world region " + logName + " in directory: " + singleDir);
|
15,155 |
[BUG]import com.google.atap.tangoservice.TangoCoordinateFramePair;import com.google.atap.tangoservice.TangoEvent;[BUG][CONTEXT]package com.projecttango.examples.java.augmentedreality;import com.google.atap.tangoservice.Tango;import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;import com.google.atap.tangoservice.TangoCameraIntrinsics;import com.google.atap.tangoservice.TangoConfig;<extra_id_0>import com.google.atap.tangoservice.TangoOutOfDateException;import com.google.atap.tangoservice.TangoPoseData;import com.google.atap.tangoservice.TangoXyzIjData;[CONTEXT]
|
import com.google.atap.tangoservice.TangoErrorException;import com.google.atap.tangoservice.TangoEvent;
|
35,207 |
[BUG]info.setItens(Arrays.asList(item));info.setRetirada(FabricaDeObjetosFake.getNFNotaInfoLocal());[BUG][CONTEXT]imposto.setValorTotalTributos(new BigDecimal("999999999999.99"));item.setImposto(imposto);item.setNumeroItem(990);item.setProduto(FabricaDeObjetosFake.getProdutoMedicamento());item.setImpostoDevolvido(FabricaDeObjetosFake.getNFImpostoDevolvido());<extra_id_0>info.setTotal(FabricaDeObjetosFake.getNFNotaInfoTotal());info.setTransporte(FabricaDeObjetosFake.getNFNotaInfoTransporte());info.setVersao(new BigDecimal("3.10"));[CONTEXT]
|
info.setItens(Collections.singletonList(item));info.setRetirada(FabricaDeObjetosFake.getNFNotaInfoLocal());
|
2,319 |
[BUG]protected int ySize;public Map2D(int xSize, int ySize) {[BUG][CONTEXT]import java.util.ArrayList;import java.util.List;public class Map2D<E> {private List<E> values;protected int xSize;<extra_id_0>this(xSize, ySize, null);}public Map2D(int xSize, int ySize, E defaultVal) {[CONTEXT]
|
public Map2D(){public Map2D(int xSize, int ySize) {
|
34,987 |
[BUG]private final AgentDao agentDao;private final TransactionTypeDao transactionTypeDao;[BUG][CONTEXT]public class SimpleRepoModule {private static final long SNAPSHOT_REAPER_PERIOD_MINUTES = 5;private final DataSource dataSource;private final ImmutableList<CappedDatabase> rollupCappedDatabases;private final CappedDatabase traceCappedDatabase;<extra_id_0>private final AggregateDao aggregateDao;private final TraceAttributeNameDao traceAttributeNameDao;private final TraceDao traceDao;[CONTEXT]
|
private final EnvironmentDao environmentDao;private final TransactionTypeDao transactionTypeDao;
|
48,988 |
[BUG]if(!attachments.isEmpty()) {[BUG][CONTEXT]@Scheduled(cron = "${jobs.attachmentCheckJob.trigger}")public void executeAttachmentCheckJob() {log.info("Starting AttachmentCheckJob");contentAO.forAllContentObjects(content -> {List<Attachment> attachments = attachmentAO.getAttachmentList(content.getContentIdentifier());<extra_id_0>checkAttachments(content, attachments);}}, () -> false);[CONTEXT]
|
if (!attachments.isEmpty()) {
|
24,110 |
[BUG]{private List reactorProjects;private static final int PERCENTAGE = 100;[BUG][CONTEXT]import java.util.Locale;import java.util.Map;import java.util.TreeMap;public class DependencyConvergenceReportextends AbstractProjectInfoReport<extra_id_0>public String getOutputName(){[CONTEXT]
|
private static final int PERCENTAGE = 100;private static final List SUPPORTED_FONT_FAMILY_NAMES = Arrays.asList( GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() );
|
746 |
[BUG]public static void remove(Class<?> classObj) {_instance._remove(classObj);[BUG][CONTEXT]return _instance._get(null, null, methodKey);}public static Method put(MethodKey methodKey, Method method) {return _instance._put(methodKey, method);}<extra_id_0>}[CONTEXT]
|
public static void remove(Class<?> clazz) {_instance._remove(clazz);
|
64,418 |
[BUG]import net.semanticmetadata.lire.DocumentBuilder;import net.semanticmetadata.lire.ImageSearchHits;import org.apache.lucene.document.Document;import java.awt.image.BufferedImage;[BUG][CONTEXT]package edu.uniklu.itec.mosaix.engine;<extra_id_0>import java.io.IOException;[CONTEXT]
|
import net.semanticmetadata.lire.builders.DocumentBuilder;import net.semanticmetadata.lire.searchers.ImageSearchHits;import org.apache.lucene.index.IndexReader;import java.awt.image.BufferedImage;
|
34,542 |
[BUG]public OnmsIpInterfaceList getIpInterfaces(@PathParam("nodeId") int nodeId) {log().debug("getIpInterfaces: reading interfaces for node " + nodeId);MultivaluedMap<String,String> params = m_uriInfo.getQueryParameters();[BUG][CONTEXT]ResourceContext m_context;@ContextUriInfo m_uriInfo;@GET@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})<extra_id_0>OnmsCriteria criteria = new OnmsCriteria(OnmsIpInterface.class);[CONTEXT]
|
public OnmsIpInterfaceList getIpInterfaces(@PathParam("nodeCriteria") String nodeCriteria) {log().debug("getIpInterfaces: reading interfaces for node " + nodeCriteria);OnmsNode node = m_nodeDao.get(nodeCriteria);MultivaluedMap<String,String> params = m_uriInfo.getQueryParameters();
|
28,061 |
[BUG]if (caseA) {for (int h = 0; h < dstHeight; h++) {[BUG][CONTEXT]pixelOffset += pixelStride;} // COLS LOOP} // ROWS LOOP}} else {// source has IndexColorModel<extra_id_0>int pixelOffset = lineOffset;lineOffset += lineStride;warp.warpRect(dst.getX(), dst.getY() + h, dstWidth, 1, warpData);[CONTEXT]
|
} else if (caseB) {for (int h = 0; h < dstHeight; h++) {
|
28,297 |
[BUG]private final AgentDao agentDao;[BUG][CONTEXT]class RepoAdminImpl implements RepoAdmin {private final DataSource dataSource;private final List<CappedDatabase> rollupCappedDatabases;private final CappedDatabase traceCappedDatabase;private final ConfigRepository configRepository;<extra_id_0>private final GaugeValueDao gaugeValueDao;private final GaugeNameDao gaugeNameDao;private final TransactionTypeDao transactionTypeDao;[CONTEXT]
|
private final EnvironmentDao agentDao;
|
35,313 |
[BUG]iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC);minX = src.getMinX() + 1; // Left paddingmaxX = src.getMaxX() - 2; // Right paddingminY = src.getMinY() + 1; // Top paddingmaxY = src.getMaxY() - 2; // Bottom padding[BUG][CONTEXT]minX = src.getMinX();maxX = src.getMaxX();minY = src.getMinY();maxY = src.getMaxY();} else {<extra_id_0>}[CONTEXT]
|
iterSource = getRandomIterator(src, null);minX = src.getMinX() + leftPad; // Left paddingmaxX = src.getMaxX() - rightPad; // Right paddingminY = src.getMinY() + topPad; // Top paddingmaxY = src.getMaxY() - bottomPad; // Bottom padding
|
67,247 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble;[BUG][CONTEXT]weight &= (0xffff - (1 << 4 * h + z));}}}if (weight == 0 || tmpROI == 0) {<extra_id_0>} else {for (int h = 0; h < KERNEL_LINE_DIM; h++) {double tempSum = 0;[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
|
14,199 |
[BUG]import io.fabric8.kubernetes.api.KubernetesClient;import io.fabric8.kubernetes.api.model.ReplicationController;import org.jboss.arquillian.core.api.Instance;[BUG][CONTEXT]package io.fabric8.arquillian.kubernetes.enricher;import io.fabric8.annotations.ReplicationControllerName;import io.fabric8.arquillian.kubernetes.Session;<extra_id_0>import org.jboss.arquillian.core.api.annotation.Inject;import org.jboss.arquillian.test.api.ArquillianResource;[CONTEXT]
|
import io.fabric8.kubernetes.client.KubernetesClient;import org.jboss.arquillian.core.api.Instance;
|
51,127 |
[BUG]new S3ABasicAWSCredentialsProvider(accessKey, secretKey),new InstanceProfileCredentialsProvider(),new S3AAnonymousAWSCredentialsProvider());[BUG][CONTEXT]} else {accessKey = userInfo;}}AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain(<extra_id_0>bucket = name.getHost();[CONTEXT]
|
new BasicAWSCredentialsProvider(accessKey, secretKey),new AnonymousAWSCredentialsProvider()
|
42,084 |
[BUG]new ArrayList<String>() {{add(key1);add(key2);}}, new byte[] { 0 }, new byte[] { 10 },[BUG][CONTEXT]mc.asyncBopInsert(key2, new byte[] { 5 }, null, value + "1",new CollectionAttributes()).get();mc.asyncBopInsert(key2, new byte[] { 4 }, eFlag, value + "2",new CollectionAttributes()).get();List<SMGetElement<Object>> list = mc.asyncBopSortMergeGet(<extra_id_0>ElementFlagFilter.DO_NOT_FILTER, 0, 10).get();[CONTEXT]
|
testKeyList, new byte[] { 0 }, new byte[] { 10 },
|
47,811 |
[BUG]sink.tableHeaderCell();sink.text( getI18nString( locale, "stats.dependencies" ) + ":" );sink.tableHeaderCell_();[BUG][CONTEXT]sink.tableCell();sink.text( String.valueOf( reactorProjects.size() ) );sink.tableCell_();sink.tableRow_();sink.tableRow();<extra_id_0>sink.tableCell();sink.text( String.valueOf( depCount ) );[CONTEXT]
|
sink.tableHeaderCell( headerCellWidth );sink.text( getI18nString( locale, "stats.dependencies" ) );sink.tableHeaderCell_();
|
50,513 |
[BUG]}String classUri =UriBuilder.fromUri(baseUri).path(ClassResource.class).build(wikiName, xwikiClass.getName()).toString();[BUG][CONTEXT]Link propertyLink = objectFactory.createLink();propertyLink.setHref(propertyUri);propertyLink.setRel(Relations.SELF);property.getLinks().add(propertyLink);clazz.getProperties().add(property);<extra_id_0>Link classLink = objectFactory.createLink();classLink.setHref(classUri);[CONTEXT]
|
String classUri = uri(baseUri, ClassResource.class, wikiName, xwikiClass.getName());
|
58,090 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat;[BUG][CONTEXT]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++)<extra_id_0>dstPixelOffset += dstPixelStride;}} else[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2];
|
59,190 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt;[BUG][CONTEXT]dstPixelOffset += dstPixelStride;}if (setDestinationNoData && clipMinX <= clipMaxX) {for (int x = clipMaxX; x < dst_max_x; x++) {for (int k2 = 0; k2 < dst_num_bands; k2++)<extra_id_0>dstPixelOffset += dstPixelStride;}}[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
|
67,837 |
[BUG]private NetServerOptions netServerOptions = new NetServerOptions().setPort(DEFAULT_PORT).setHost(DEFAULT_HOST);public String[] getChannels() {[BUG][CONTEXT]public class ServerOptions {public static final String DEFAULT_HOST = "0.0.0.0";public static final int DEFAULT_PORT = 7451;private String[] channels;private FileLogManagerOptions fileLogManagerOptions = new FileLogManagerOptions();<extra_id_0>return channels;}public ServerOptions setChannels(String[] channels) {[CONTEXT]
|
private MewbaseAuthProvider authProvider;public String[] getChannels() {
|
3,240 |
[BUG]img.setPixelSize(prPixSize[0], prPixSize[1]);[BUG][CONTEXT]String presentationMode = TagD.getTagValue(reader, Tag.PresentationSizeMode, String.class);boolean trueSize = "TRUE SIZE".equalsIgnoreCase(presentationMode);double[] prPixSize = TagD.getTagValue(reader, Tag.PresentationPixelSpacing, double[].class);if (prPixSize != null && prPixSize.length == 2 && prPixSize[0] > 0.0 && prPixSize[1] > 0.0) {if (trueSize) {<extra_id_0>img.setPixelSpacingUnit(Unit.MILLIMETER);actionsInView.put(PRManager.TAG_CHANGE_PIX_CONFIG, true);ActionState spUnitAction = EventManager.getInstance().getAction(ActionW.SPATIAL_UNIT);[CONTEXT]
|
img.setPixelSize(prPixSize[1], prPixSize[0]);
|
42,573 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort;[BUG][CONTEXT]: 0);}}}if (tmpROI == 0) {<extra_id_0>} else {for (int h = 0; h < KERNEL_LINE_DIM; h++) {long tempSum = 0;[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
|
59,884 |
[BUG]flowUpdate = new FlowService<>(requestContextStack, deviceContext, UpdateFlowOutput.class, convertorExecutor);}[BUG][CONTEXT]private ItemLifecycleListener itemLifecycleListener;public SalFlowServiceImpl(final RequestContextStack requestContextStack, final DeviceContext deviceContext, final ConvertorExecutor convertorExecutor) {this.deviceContext = deviceContext;flowRemove = new FlowService<>(requestContextStack, deviceContext, RemoveFlowOutput.class, convertorExecutor);flowAdd = new FlowService<>(requestContextStack, deviceContext, AddFlowOutput.class, convertorExecutor);<extra_id_0>@Overridepublic void setItemLifecycleListener(@Nullable ItemLifecycleListener itemLifecycleListener) {this.itemLifecycleListener = itemLifecycleListener;[CONTEXT]
|
flowAddMessage = new FlowMessageService<>(requestContextStack, deviceContext, AddFlowOutput.class);flowUpdateMessage = new FlowMessageService<>(requestContextStack, deviceContext, UpdateFlowOutput.class);flowRemoveMessage= new FlowMessageService<>(requestContextStack, deviceContext, RemoveFlowOutput.class);}
|
56,575 |
[BUG]import com.dmitrymalkovich.android.githubanalytics.data.source.remote.gson.ResponseClones;import com.dmitrymalkovich.android.githubanalytics.data.source.remote.gson.ResponseReferrer;import com.dmitrymalkovich.android.githubanalytics.data.source.remote.gson.ResponseStargazers;import com.dmitrymalkovich.android.githubanalytics.data.source.remote.gson.ResponseTrending;import com.dmitrymalkovich.android.githubanalytics.data.source.remote.gson.ResponseViews;[BUG][CONTEXT]import com.dmitrymalkovich.android.githubanalytics.data.source.local.contract.RepositoryContract;import com.dmitrymalkovich.android.githubanalytics.data.source.local.contract.StargazersContract;import com.dmitrymalkovich.android.githubanalytics.data.source.local.contract.TrendingContract;import com.dmitrymalkovich.android.githubanalytics.data.source.local.contract.UserContract;import com.dmitrymalkovich.android.githubanalytics.data.source.local.contract.ViewsContract;<extra_id_0>import com.dmitrymalkovich.android.githubanalytics.util.TimeUtils;[CONTEXT]
|
import com.dmitrymalkovich.android.githubapi.core.gson.ReferringSite;import com.dmitrymalkovich.android.githubapi.core.gson.TrendingRepository;
|
11,887 |
[BUG]sink.tableHeaderCell();sink.text( getI18nString( locale, "stats.dependencies" ) + ":" );sink.tableHeaderCell_();[BUG][CONTEXT]sink.tableCell();sink.text( String.valueOf( reactorProjects.size() ) );sink.tableCell_();sink.tableRow_();sink.tableRow();<extra_id_0>sink.tableCell();sink.text( String.valueOf( depCount ) );[CONTEXT]
|
sink.tableHeaderCell( headerCellWidth );sink.text( getI18nString( locale, "stats.dependencies" ) );sink.tableHeaderCell_();
|
23,965 |
[BUG]import java.security.NoSuchAlgorithmException;import java.util.ArrayList;import java.util.Collections;import java.util.List;[BUG][CONTEXT]import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.security.DigestOutputStream;import java.security.MessageDigest;<extra_id_0>public final class PatchUtils {[CONTEXT]
|
import java.text.DateFormat;import java.util.Date;import java.util.List;
|
9,606 |
[BUG]values.put(MemoEntry.COLUMN_CONTENT, memoContent);return db.update([BUG][CONTEXT]MemoEntry._ID + " = ?",new String[]{String.valueOf(memoId)});}public long updateMemoContent(long memoId, String memoContent) {ContentValues values = new ContentValues();<extra_id_0>MemoEntry.TABLE_NAME,values,MemoEntry._ID + " = ?",[CONTEXT]
|
return db.update(
|
49,516 |
[BUG]package org.jboss.as.ee.concurrent;import org.glassfish.enterprise.concurrent.ContextServiceImpl;import org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl;import org.wildfly.extension.requestcontroller.ControlPoint;[BUG][CONTEXT]<extra_id_0>import java.util.concurrent.BlockingQueue;[CONTEXT]
|
import static org.jboss.as.ee.concurrent.ControlPointUtils.doWrap;import static org.jboss.as.ee.concurrent.SecurityIdentityUtils.doIdentityWrap;
|
51,560 |
[BUG]private ScaleGestureDetector mScaleDetector;[BUG][CONTEXT]import com.juick.R;import com.juick.android.api.JuickUser;public class ThreadFragment extends ListFragment implements AdapterView.OnItemClickListener, View.OnTouchListener, WsClientListener {private ThreadFragmentListener parentActivity;private JuickMessagesAdapter listAdapter;<extra_id_0>private WsClient ws = null;private int mid = 0;@Override[CONTEXT]
|
private ScaleGestureDetector mScaleDetector = null;
|
46,240 |
[BUG]date.getYear(), date.getMonthOfYear(),[BUG][CONTEXT]boolean questionMarkSupported =cronDefinition.getFieldDefinition(DAY_OF_WEEK).getConstraints().getSpecialChars().contains(QUESTION_MARK);if(questionMarkSupported){return new TimeNode(generateDayCandidatesQuestionMarkSupported(<extra_id_0>((DayOfWeekFieldDefinition)cronDefinition.getFieldDefinition(DAY_OF_WEEK)).getMondayDoWValue()[CONTEXT]
|
date.getYear(), date.getMonthValue(),
|
1,538 |
[BUG]values.put(MemoEntry.COLUMN_CONTENT, memoContent);return db.update([BUG][CONTEXT]MemoEntry._ID + " = ?",new String[]{String.valueOf(memoId)});}public long updateMemoContent(long memoId, String memoContent) {ContentValues values = new ContentValues();<extra_id_0>MemoEntry.TABLE_NAME,values,MemoEntry._ID + " = ?",[CONTEXT]
|
return db.update(
|
30,748 |
[BUG]DateTime nextClosestMatch(DateTime date) throws NoSuchValueException {[BUG][CONTEXT]return nextMatch;} catch (NoSuchValueException e) {throw new IllegalArgumentException(e);}}<extra_id_0>List<Integer> year = yearsValueGenerator.generateCandidates(date.getYear(), date.getYear());TimeNode days = null;int lowestMonth = months.getValues().get(0);[CONTEXT]
|
ZonedDateTime nextClosestMatch(ZonedDateTime date) throws NoSuchValueException {
|
22,470 |
[BUG]ServiceRegistration<FullNameGenerator> serviceRegistration =registry.registerService(FullNameGenerator.class, fullNameGenerator);serviceRegistrations.put(fullNameGeneratorClassName, serviceRegistration);[BUG][CONTEXT]PropsKeys.USERS_FULL_NAME_GENERATOR);FullNameGenerator fullNameGenerator =(FullNameGenerator)newInstance(portletClassLoader, FullNameGenerator.class,fullNameGeneratorClassName);<extra_id_0>}[CONTEXT]
|
servletContextName, fullNameGeneratorClassName,
|
61,042 |
[BUG]package org.openlca.cloud.api;import java.util.List;[BUG][CONTEXT]<extra_id_0>import java.util.Map;import java.util.Set;import org.openlca.cloud.model.data.Commit;[CONTEXT]
|
import java.util.ArrayList;import java.util.HashMap;import java.util.List;
|
58,389 |
[BUG]return "MySQLConnection[" + this.dataSource.getUrl() + " : " + this.dataSource.getURL() + "]";}[BUG][CONTEXT]Debug.checkNull("mysql_connection", this.mysql_connection);return this.mysql_connection;}@Overridepublic String toString () {<extra_id_0>@Overrideprotected void finalize () throws Throwable {super.finalize();[CONTEXT]
|
return "MySQLConnection[" + this.mySQL.getUrl() + "]";
|
60,459 |
[BUG]public void updateRenderCameraPose(TangoPoseData devicePose, DeviceExtrinsics extrinsics) {Pose cameraPose = ScenePoseCalculator.toOpenGlCameraPose(devicePose, extrinsics);getCurrentCamera().setRotation(cameraPose.getOrientation());getCurrentCamera().setPosition(cameraPose.getPosition());}[BUG][CONTEXT]translationMoon.setRepeatMode(Animation.RepeatMode.INFINITE);translationMoon.setTransformable3D(moon);getCurrentScene().registerAnimation(translationMoon);translationMoon.play();}<extra_id_0>public int getTextureId() {[CONTEXT]
|
public void updateRenderCameraPose(TangoPoseData cameraPose) {float[] rotation = cameraPose.getRotationAsFloats();float[] translation = cameraPose.getTranslationAsFloats();Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]);getCurrentCamera().setRotation(quaternion.conjugate());getCurrentCamera().setPosition(translation[0], translation[1], translation[2]);
|
38,878 |
[BUG]generateLegend( locale, sink );generateStats( locale, sink, dependencyMap );generateConvergence( locale, sink, dependencyMap );sink.section1_();[BUG][CONTEXT]sink.section1();sink.sectionTitle1();sink.text( getI18nString( locale, "title" ) );sink.sectionTitle1_();Map dependencyMap = getDependencyMap();<extra_id_0>sink.body_();[CONTEXT]
|
sink.lineBreak();sink.section1_();
|
52,357 |
[BUG]private OnTabChangeListener listener;private int SIZE_PADDING_TOP = 8;private int SIZE_PADDING_BOTTOM = 8;private int SIZE_PADDING_LR = 12;[BUG][CONTEXT]R.drawable.ic_whatshot_white_24dp,R.drawable.ic_notifications_white_24dp,R.drawable.ic_person_white_24dp};private String[] tab_names = {"板块","看贴","消息","个人"};<extra_id_0>private int SIZE_ICON = 24;[CONTEXT]
|
private boolean ishaveMessage = false;private int PADDING_8 = 8;private int PADDING_12 = 12;
|
5,645 |
[BUG]package com.jfixby.cmns.db.mysql;import com.jfixby.cmns.api.debug.Debug;[BUG][CONTEXT]<extra_id_0>import com.jfixby.cmns.api.log.L;import com.jfixby.cmns.db.api.DBComponent;import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;[CONTEXT]
|
import java.sql.Connection;import java.sql.SQLException;import com.jfixby.cmns.api.debug.Debug;
|
34,882 |
[BUG]import java.util.Map;import org.ofbiz.base.util.Debug;import org.ofbiz.base.util.collections.FlexibleServletAccessor;import org.ofbiz.minilang.MiniLangException;import org.ofbiz.minilang.SimpleMethod;import org.ofbiz.minilang.method.ContextAccessor;[BUG][CONTEXT]package org.ofbiz.minilang.method.eventops;<extra_id_0>import org.ofbiz.minilang.method.MethodContext;[CONTEXT]
|
import org.ofbiz.base.util.collections.FlexibleMapAccessor;import org.ofbiz.base.util.string.FlexibleStringExpander;import org.ofbiz.minilang.MiniLangValidate;
|
35,879 |
[BUG]import org.openstreetmap.josm.JOSMFixture;import org.openstreetmap.josm.data.osm.DataSet;import org.openstreetmap.josm.gui.layer.OsmDataLayer;[BUG][CONTEXT]package org.openstreetmap.josm.command;import org.junit.BeforeClass;import org.junit.Test;<extra_id_0>import nl.jqno.equalsverifier.EqualsVerifier;import nl.jqno.equalsverifier.Warning;[CONTEXT]
|
import org.openstreetmap.josm.data.coor.LatLon;import org.openstreetmap.josm.data.osm.User;import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
49,189 |
[BUG]+ " to router at "+ router_host+ ":"+ router_port);[BUG][CONTEXT]public void run() {try{if(!stub.isIntentionallyDisconnected()){if(log.isDebugEnabled()){log.debug("Reconnecting " + getLocalAddress()<extra_id_0>}[CONTEXT]
|
+ stub.getGossipRouterAddress());
|
48,049 |
[BUG]import org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketChannelFactory;import org.elasticsearch.common.netty.logging.InternalLogger;[BUG][CONTEXT]import org.elasticsearch.common.netty.bootstrap.ServerBootstrap;import org.elasticsearch.common.netty.buffer.ChannelBuffer;import org.elasticsearch.common.netty.buffer.ChannelBuffers;import org.elasticsearch.common.netty.channel.*;import org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketChannelFactory;<extra_id_0>import org.elasticsearch.common.netty.logging.InternalLoggerFactory;import org.elasticsearch.common.network.NetworkService;import org.elasticsearch.common.network.NetworkUtils;[CONTEXT]
|
import org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketChannelFactory;import org.elasticsearch.common.netty.channel.socket.oio.OioServerSocketChannelFactory;import org.elasticsearch.common.netty.logging.InternalLogger;
|
62,128 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort;[BUG][CONTEXT]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++)<extra_id_0>dstPixelOffset += dstPixelStride;}} else[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
|
44,161 |
[BUG]ADDED_MODULE("added-module"),BUNDLES("bundles"),[BUG][CONTEXT]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"),<extra_id_0>CUMULATIVE("cumulative"),DESCRIPTION("description"),MISC_FILES("misc-files"),[CONTEXT]
|
APPLIES_TO_VERSION("applies-to-version"),BUNDLES("bundles"),
|
4,154 |
[BUG].port(serverPort).address(address)[BUG][CONTEXT]String scribeHost = System.getProperty("scribeHost");RatpackServer.start(server -> server.serverConfig(config -> config.port(serverPort)).registry(Guice.registry(binding -> binding.module(ServerTracingModule.class, config -> config<extra_id_0>.serviceName("ratpack-demo").sampler(Sampler.create(1f)).spanCollector(scribeHost != null ? new ScribeSpanCollector(scribeHost, 9410) : new LoggingSpanCollector())[CONTEXT]
|
[DELETED]
|
54,672 |
[BUG]assertEquals("The 'none' keyword must not be combined with any other source-expression",[BUG][CONTEXT]assertEquals("Expecting ancestor-source but found scheme::", notices.get(0).message);notices.clear();p = parseWithNotices("frame-ancestors 'none' 'self'", notices);assertEquals(0, p.getDirectives().size());assertEquals(1, notices.size());<extra_id_0>notices.get(0).message);p = parse("frame-ancestors * ");q = parse("frame-ancestors http://example.com");[CONTEXT]
|
assertEquals("The 'none' keyword must not be combined with any other ancestor-source",
|
18,657 |
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort;[BUG][CONTEXT]dstPixelOffset += dstPixelStride;}if (setDestinationNoData && clipMinX <= clipMaxX) {for (int x = clipMaxX; x < dst_max_x; x++) {for (int k2 = 0; k2 < dst_num_bands; k2++)<extra_id_0>dstPixelOffset += dstPixelStride;}}[CONTEXT]
|
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataShort[k2];
|
13,491 |
[BUG]return ImmutableList.of("region", "handler").stream().filter(new StartsWithPredicate(parse.current.token))[BUG][CONTEXT].excludeCurrent(true).autoCloseQuotes(true).parse();if (parse.current.type.equals(AdvCmdParser.CurrentElement.ElementType.ARGUMENT)) {if (parse.current.index == 0)<extra_id_0>.map(args -> parse.current.prefix + args).collect(GuavaCollectors.toImmutableList());else if (parse.current.index > 0) {[CONTEXT]
|
return Stream.of("region", "handler").filter(new StartsWithPredicate(parse.current.token))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.