id
int64
2
70k
bug_ctx
stringlengths
56
37.5k
fixed
stringlengths
1
37k
8,253
[BUG]wr.queryParam("page", page.toString());wr.queryParam("entries", entries.toString());return wr.header("Content-Type", MediaType.TEXT_XML).accept(MediaType.TEXT_XML).get(ShortResourceList.class);[BUG][CONTEXT]getBaseWebResource("resources", "resource", id).header("Content-Type", MediaType.TEXT_XML).put(resource);}public ShortResourceList getAllShortResource(Integer page, Integer entries) {WebResource wr = getBaseWebResource("resources");<extra_id_0>}[CONTEXT]
return wr.queryParam("page", page.toString()).queryParam("entries", entries.toString()).get(ShortResourceList.class);
28,212
[BUG]writer.writeAttribute(Attribute.PATH.name, path.toString());if(type != ModificationType.REMOVE) {[BUG][CONTEXT]final StringBuilder path = new StringBuilder();for(final String p : item.getPath()) {path.append(p).append(PATH_DELIMITER);}path.append(item.getName());<extra_id_0>writer.writeAttribute(Attribute.HASH.name, bytesToHexString(item.getContentHash()));}if(type != ModificationType.ADD) {[CONTEXT]
if (item.isDirectory()) {writer.writeAttribute(Attribute.DIRECTORY.name, "true");if(type != ModificationType.REMOVE) {
4,955
[BUG]FMLItemBlockPatch.class.getName(),DependentMethodStripper.class.getName(),[BUG][CONTEXT]public String[] getASMTransformerClass() {return new String[]{InterfaceInjector.class.getName(), //Must run before dependent method stripperAPIStripper.class.getName(),DragonAPIClassTransfomer.class.getName(),<extra_id_0>};}@Override[CONTEXT]
FluidNamePatch.class.getName(),DependentMethodStripper.class.getName(),
65,501
[BUG]import com.webobjects.directtoweb.QueryPageInterface;import com.webobjects.eoaccess.EODatabaseDataSource;import com.webobjects.eocontrol.EOAndQualifier;import com.webobjects.eocontrol.EODataSource;[BUG][CONTEXT]import com.webobjects.directtoweb.D2W;import com.webobjects.directtoweb.EditPageInterface;import com.webobjects.directtoweb.InspectPageInterface;import com.webobjects.directtoweb.ListPageInterface;import com.webobjects.directtoweb.NextPageDelegate;<extra_id_0>import com.webobjects.eocontrol.EOEditingContext;[CONTEXT]
import com.webobjects.eoaccess.EOAttribute;import com.webobjects.eocontrol.EOArrayDataSource;import com.webobjects.eocontrol.EODataSource;
54,042
[BUG].at(1).simple(SQL_VARYING, 31, "COLUMN_NAME", "ROWIDENTIFIER").addField()[BUG][CONTEXT]"AND rc.rdb$constraint_type = 'PRIMARY KEY'";public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)throws SQLException {final RowDescriptor rowDescriptor = new RowDescriptorBuilder(8, datatypeCoder).at(0).simple(SQL_SHORT, 0, "SCOPE", "ROWIDENTIFIER").addField()<extra_id_0>.at(2).simple(SQL_SHORT, 0, "DATA_TYPE", "ROWIDENTIFIER").addField().at(3).simple(SQL_VARYING, 31, "TYPE_NAME", "ROWIDENTIFIER").addField().at(4).simple(SQL_LONG, 0, "COLUMN_SIZE", "ROWIDENTIFIER").addField()[CONTEXT]
.at(1).simple(SQL_VARYING, OBJECT_NAME_LENGTH, "COLUMN_NAME", "ROWIDENTIFIER").addField()
26,668
[BUG].andExpect(MockMvcResultMatchers.jsonPath("$.errorCode.detail").value("The parameter updateAction of type UpdateAction is missing in the request"));[BUG][CONTEXT].content(json(mapper, new UpdateContext())).contentType(MediaType.APPLICATION_JSON)).andExpect(status().isOk()).andExpect(MockMvcResultMatchers.jsonPath("$.errorCode.code").value(CodeEnum.CODE_471.getLabel())).andExpect(MockMvcResultMatchers.jsonPath("$.errorCode.reasonPhrase").value(CodeEnum.CODE_471.getShortPhrase()))<extra_id_0>}@Testpublic void postUpdateContextWithoutProvidingApplication() throws Exception {[CONTEXT]
.andExpect(MockMvcResultMatchers.jsonPath("$.errorCode.detail").value("The parameter updateAction of type string is missing in the request"));
66,994
[BUG]import com.kiminonawa.mydiary.shared.ThemeManager;import java.util.List;public class MemoAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements EditMode {[BUG][CONTEXT]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;<extra_id_0>private List<MemoEntity> memoList;[CONTEXT]
import com.marshalchen.ultimaterecyclerview.dragsortadapter.DragSortAdapter;public class MemoAdapter extends DragSortAdapter<DragSortAdapter.ViewHolder> implements EditMode {
41,449
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble;[BUG][CONTEXT]w01 = noData.contains(s01) ? 0 : 1;w10 = noData.contains(s10) ? 0 : 1;w11 = noData.contains(s11) ? 0 : 1;if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {if (setDestinationNoData) {<extra_id_0>}} else {double result = computeValue(s00, s01, s10, s11, w00, w01, w10,[CONTEXT]
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2];
64,074
[BUG]return ((NonRdfSourceDescription)fedoraResource).getDescribedResource();}[BUG][CONTEXT]final Node node = getNode(path);final boolean metadata = values.containsKey("path")&& values.get("path").endsWith("/" + FCR_METADATA);final FedoraResource fedoraResource = nodeConverter.convert(node);if (!metadata && fedoraResource instanceof NonRdfSourceDescription) {<extra_id_0>return fedoraResource;}throw new IdentifierConversionException("Asked to translate a resource " + resource[CONTEXT]
return fedoraResource.getDescribedResource();
27,175
[BUG]Utils.closeSilently(fileBody);if (deleteImage && "file".equals(imageUri.getScheme())) {final File file = new File(imageUri.getPath());if (!file.delete()) {Log.w(LOGTAG, String.format("Unable to delete %s", file));}[BUG][CONTEXT]FileBody fileBody = null;try {fileBody = getFileBody(context, imageUri);twitter.updateProfileBannerImage(fileBody);} finally {<extra_id_0>}[CONTEXT]
if (deleteImage) {Utils.deleteMedia(context, imageUri);
13,188
[BUG]Utils.closeSilently(fileBody);if (deleteImage && "file".equals(imageUri.getScheme())) {final File file = new File(imageUri.getPath());if (!file.delete()) {Log.w(LOGTAG, String.format("Unable to delete %s", file));}[BUG][CONTEXT]FileBody fileBody = null;try {fileBody = getFileBody(context, imageUri);return twitter.updateProfileImage(fileBody);} finally {<extra_id_0>}[CONTEXT]
twitter.updateProfileBannerImage(fileBody);if (deleteImage) {Utils.deleteMedia(context, imageUri);
3,192
[BUG]public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {[BUG][CONTEXT]this.memoList = memoList;this.dbManager = dbManager;this.callback = callback;}@Override<extra_id_0>View view;if (isEditMode) {if (viewType == TYPE_HEADER) {[CONTEXT]
public DragSortAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
3,887
[CONTEXT]return false;return true;[BUG]}@Override<extra_id_0>}@Override[BUG]public int hashCode() {final int prime = 31;int result = 1;result = prime * result + Arrays.hashCode(nonBlankTokens);result = prime * result + Arrays.hashCode(tokens);result = prime * result + Arrays.hashCode(whPositions);return result;[BUG]}[CONTEXT]
public Set<String> getLemmaSet() {return lemmaSet;@SuppressWarnings("ControlFlowStatementWithoutBraces")public boolean equals(Object o) {if (this == o) return true;if (o == null) return false;if (getClass() != o.getClass()) return false;AnalyzedSentence other = (AnalyzedSentence) o;return Arrays.equals(nonBlankTokens, other.nonBlankTokens)&& Arrays.equals(tokens, other.tokens)&& Arrays.equals(whPositions, other.whPositions);
34,267
[BUG]client.dispatch("jms://in2?connector=jmsConnector2", DEFAULT_INPUT_MESSAGE, null);[BUG][CONTEXT]assertEquals(DEFAULT_INPUT_MESSAGE, result.getPayloadAsString());}public void testQueueFromJndi() throws Exception{MuleClient client = new MuleClient();<extra_id_0>MuleMessage result = client.request("vm://out", RECEIVE_TIMEOUT);assertNotNull(result);assertEquals(DEFAULT_INPUT_MESSAGE, result.getPayloadAsString());[CONTEXT]
client.dispatch("jms://jndi-queue-in?connector=jmsConnector2", DEFAULT_INPUT_MESSAGE, null);
55,025
[BUG]import org.esa.beam.framework.gpf.OperatorException;public class ChlorophyllNetworkOperation implements NeuralNetworkOperation {@Overridepublic void compute(float[] in, float[] out, int mask, int errMask, float a) {[BUG][CONTEXT]package wew.water.gpf;<extra_id_0>if(in.length != getNumberOfInputNodes()) {[CONTEXT]
public class ChlorophyllNetworkOperation {public static int compute(float[] in, float[] out) {
4,135
[CONTEXT]}public DateTime lastExecution(DateTime date){[BUG]Validate.notNull(date);try {<extra_id_0>Validate.notNull(date);try {[BUG]DateTime previousMatch = previousClosestMatch(date);[BUG]if(previousMatch.equals(date)){previousMatch = previousClosestMatch(date.minusSeconds(1));}[CONTEXT]
public java.time.Duration timeToNextExecution(ZonedDateTime date){return java.time.Duration.between(date, nextExecution(date));public ZonedDateTime lastExecution(ZonedDateTime date){ZonedDateTime previousMatch = previousClosestMatch(date);
50,153
[BUG]import static org.apache.hadoop.fs.s3a.S3AConstants.*;public class S3AOutputStream extends OutputStream {[BUG][CONTEXT]import java.io.BufferedOutputStream;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.OutputStream;<extra_id_0>private OutputStream backupStream;private File backupFile;private boolean closed;[CONTEXT]
import static org.apache.hadoop.fs.s3a.Constants.*;public class S3AOutputStream extends OutputStream {
7,197
[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
28,911
[BUG]import static org.apache.hadoop.fs.s3a.S3AConstants.*;public class S3AOutputStream extends OutputStream {[BUG][CONTEXT]import java.io.BufferedOutputStream;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.OutputStream;<extra_id_0>private OutputStream backupStream;private File backupFile;private boolean closed;[CONTEXT]
import static org.apache.hadoop.fs.s3a.Constants.*;public class S3AOutputStream extends OutputStream {
9,766
[BUG]Map<String, Object> result = getDatasetSecurityByDatasetId(datasetId);[BUG][CONTEXT]DatasetSecurityRecord record = om.convertValue(security, DatasetSecurityRecord.class);record.setDatasetId(datasetId);record.setDatasetUrn(urn);record.setModifiedTime(System.currentTimeMillis() / 1000);try {<extra_id_0>String[] columns = record.getDbColumnNames();Object[] columnValues = record.getAllValuesToString();String[] conditions = {"dataset_id"};[CONTEXT]
DatasetSecurityRecord result = getDatasetSecurityByDatasetId(datasetId);
53,866
[BUG]new Handler(Looper.getMainLooper()).post(()->{[BUG][CONTEXT]if (Picture.hasPicPosfix(picture.url)) {picture.pic = picture.url;loadPicture(picture, task, null, false);} elseif (task.collection.site.hasFlag(Site.FLAG_JS_NEEDED_ALL)) {<extra_id_0>WebView webView = new WebView(HViewerApplication.mContext);WebSettings mWebSettings = webView.getSettings();mWebSettings.setJavaScriptEnabled(true);[CONTEXT]
new Handler(Looper.getMainLooper()).post(() -> {
23,236
[BUG]case APPLIES_TO_VERSION:builder.addAppliesTo(value);break;[BUG][CONTEXT]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) {<extra_id_0>case RESULTING_VERSION:if(type == Patch.PatchType.CUMULATIVE) {[CONTEXT]
[DELETED]
10,827
[BUG]super.onCreate();Fabric.with(this, new Crashlytics());[BUG][CONTEXT]super.attachBaseContext(base);MultiDex.install(this);}@Overridepublic void onCreate() {<extra_id_0>Crashlytics.setString("Timezone", String.valueOf(TimeZone.getDefault().getDisplayName()));Crashlytics.setString("Language", Locale.getDefault().getDisplayLanguage());[CONTEXT]
Crashlytics crashlyticsKit = new Crashlytics.Builder().core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build()).build();Fabric.with(this, crashlyticsKit);
37,834
[BUG]if (BuildConfig.DEBUG) {Log.w(LOGTAG, "Unable to update friendship", result.getException());}[BUG][CONTEXT]@Overridepublic void afterExecute(Bus handler, SingleResponse<Relationship> result) {if (result.hasData()) {handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData()));} else if (result.hasException()) {<extra_id_0>}[CONTEXT]
public UserKey[] getAccountKeys() {return DataStoreUtils.getActivatedAccountKeys(context);
9,087
[BUG]"classpath:/META-INF/opennms/applicationContext-setupIpLike-enabled.xml"})[BUG][CONTEXT]})@ContextConfiguration(locations={"classpath:/META-INF/opennms/applicationContext-dao.xml","classpath:/META-INF/opennms/applicationContext-daemon.xml","classpath:/META-INF/opennms/mockEventIpcManager.xml",<extra_id_0>@JUnitTemporaryDatabase()public class AckdTest {[CONTEXT]
"classpath:/META-INF/opennms/applicationContext-setupIpLike-enabled.xml","classpath:/META-INF/opennms/applicationContext-ackd.xml"
29,843
[BUG]import org.unitime.timetable.util.Constants;@GwtRpcImplements(EventLookupRpcRequest.class)[BUG][CONTEXT]import org.unitime.timetable.model.dao.ExamEventDAO;import org.unitime.timetable.model.dao.SessionDAO;import org.unitime.timetable.model.dao.StudentGroupDAO;import org.unitime.timetable.security.rights.Right;import org.unitime.timetable.util.CalendarUtils;<extra_id_0>public class EventLookupBackend extends EventAction<EventLookupRpcRequest, GwtRpcResponseList<EventInterface>>{private static Logger sLog = Logger.getLogger(EventLookupBackend.class);@Override[CONTEXT]
import org.unitime.timetable.util.Formats;@GwtRpcImplements(EventLookupRpcRequest.class)
1,405
[BUG]LOG.info(String.format("STARTING Test %s", testName));Result result = jUnitCore.run(Request.method(test.getDeclaringClass(), test.getName()));[BUG][CONTEXT]public AugmentedResult call() throws Exception {JUnitCore jUnitCore = getJUnitCore();String testName = String.format("%s#%s", test.getDeclaringClass().getCanonicalName(), test.getName());long start = System.currentTimeMillis();try {<extra_id_0>LOG.info(String.format("FINSHED Test %s in %s", testName, Util.TO_PRETTY_FORMAT.apply(System.currentTimeMillis() - start)));return new AugmentedResult(result, outputStream);} finally {[CONTEXT]
if (!retry) {TestRunnerRetryingRule.noRetry();}Result result = jUnitCore.run(Request.method(test.getDeclaringClass(), test.getName()));
43,404
[CONTEXT]return expression(builder_, level_ + 1, -1);}[BUG]static boolean rootRecover(PsiBuilder builder_, int level_) {if (!recursion_guard_(builder_, level_, "rootRecover")) return false;<extra_id_0>static boolean rootRecover(PsiBuilder builder_, int level_) {if (!recursion_guard_(builder_, level_, "rootRecover")) return false;[BUG]boolean result_ = false;Marker marker_ = builder_.mark();enterErrorRecordingSection(builder_, level_, _SECTION_NOT_, null);result_ = !consumeToken(builder_, EXPRESSION_END);marker_.rollbackTo();result_ = exitErrorRecordingSection(builder_, level_, result_, false, _SECTION_NOT_, null);[BUG]return result_;[CONTEXT]
Marker marker_ = enter_section_(builder_);result_ = consumeToken(builder_, DOT);result_ = result_ && consumeToken(builder_, IDENTIFIER);exit_section_(builder_, marker_, null, result_);
7,031
[BUG]public class CassAlertsServiceImpl implements AlertsService {private final MsgLogger msgLog = MsgLogger.LOGGER;private final Logger log = Logger.getLogger(CassAlertsServiceImpl.class);@EJB[BUG][CONTEXT]import com.datastax.driver.core.Session;import com.google.common.util.concurrent.Futures;@Local(AlertsService.class)@Stateless@TransactionAttribute(value = TransactionAttributeType.NOT_SUPPORTED)<extra_id_0>AlertsEngine alertsEngine;[CONTEXT]
private static final String CRITERIA_NO_QUERY_SIZE = "hawkular-alerts.criteria-no-query-size";private static final String CRITERIA_NO_QUERY_SIZE_ENV = "CRITERIA_NO_QUERY_SIZE";private static final String CRITERIA_NO_QUERY_SIZE_DEFAULT = "200";private int criteriaNoQuerySize;
14,414
[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);
52,708
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte;[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]] = destinationNoDataByte[k2];
63,882
[BUG]default MethodSpec buildDeleteColumnMethod(TypeName deleteTypeName, FieldMetaSignature parsingResult, ReturnType returnType) {[BUG][CONTEXT].addStatement("return new $T(where)", deleteWhereTypeName).returns(deleteWhereTypeName).build()).build();}<extra_id_0>final MethodSpec.Builder builder = MethodSpec.methodBuilder(parsingResult.context.fieldName).addJavadoc("Generate DELETE <strong>$L</strong> ...", parsingResult.context.quotedCqlColumn).addModifiers(Modifier.PUBLIC, Modifier.FINAL)[CONTEXT]
public MethodSpec buildDeleteColumnMethod(TypeName deleteTypeName, FieldMetaSignature parsingResult, ReturnType returnType) {
53,155
[CONTEXT]doc.field("DATA_TYPE", java.sql.Types.OTHER);doc.field("SPECIFIC_NAME", f.getName());records.add(doc);[BUG]}<extra_id_0>}[BUG]final ODocument doc = new ODocument();doc.field("FUNCTION_CAT", (Object) null);doc.field("FUNCTION_SCHEM", (Object) null);doc.field("FUNCTION_NAME", f.getName());doc.field("COLUMN_NAME", "return");doc.field("COLUMN_TYPE", procedureColumnReturn);doc.field("DATA_TYPE", java.sql.Types.OTHER);doc.field("SPECIFIC_NAME", f.getName());records.add(doc);[BUG]return new OrientJdbcResultSet(new OrientJdbcStatement(connection), records, ResultSet.TYPE_FORWARD_ONLY,[CONTEXT]
final List<ODocument> records = new ArrayList<ODocument>();for (OClass cls : classes) {final ODocument doc = new ODocument().field("TYPE_CAT", (Object) null).field("TYPE_SCHEM", (Object) null).field("TYPE_NAME", cls.getName()).field("CLASS_NAME", cls.getName()).field("DATA_TYPE", java.sql.Types.STRUCT).field("REMARKS", (Object) null);records.add(doc);
65,721
[BUG]import java.nio.file.Files;import dynamo.core.manager.DAOManager;[BUG][CONTEXT]package dynamo.backlog.tasks.files;<extra_id_0>import dynamo.core.model.DownloadableUtilsDAO;import dynamo.core.model.TaskExecutor;public class DeleteFileExecutor extends TaskExecutor<DeleteFileTask> {[CONTEXT]
import dynamo.backlog.BackLogProcessor;import dynamo.core.manager.DAOManager;
18,121
[BUG]public Duration timeFromLastExecution(DateTime date){return new Interval(lastExecution(date), date).toDuration();}public boolean isMatch(DateTime date){[BUG][CONTEXT]return previousMatch;} catch (NoSuchValueException e) {throw new IllegalArgumentException(e);}}<extra_id_0>return nextExecution(lastExecution(date)).equals(date);[CONTEXT]
[DELETED]
16,172
[BUG]import org.slf4j.Logger;import org.slf4j.LoggerFactory;[BUG][CONTEXT]import java.util.HashMap;import java.util.LinkedList;import java.util.List;import java.util.Map;import java.util.Optional;<extra_id_0>import org.webpieces.data.api.BufferPool;import org.webpieces.data.api.DataWrapper;import org.webpieces.data.api.DataWrapperGenerator;[CONTEXT]
[DELETED]
56,766
[BUG]if (prog1.getImg() != null && !prog1.getImg().trim().isEmpty()) {((SmartImageView)view.findViewById(R.id.ivProg1ImgMAHAds)).setImageUrl(MAHAdsController.urlRootOnServer + prog1.getImg());}AngledLinearLayout prog1LytNewText = (AngledLinearLayout)view.findViewById(R.id.lytProg1NewText);[BUG][CONTEXT]}else if(programsSelected.size() == 1){lytProgsPanel.setVisibility(View.VISIBLE);lytProg2MAHAdsExtDlg.setVisibility(View.GONE);prog1 = programsSelected.get(0);((TextView)view.findViewById(R.id.tvProg1NameMAHAdsExtDlg)).setText(prog1.getName());<extra_id_0>if(prog1.isNewPrgram()){[CONTEXT]
Picasso.with(view.getContext()).load(MAHAdsController.urlRootOnServer + prog1.getImg()).placeholder(R.drawable.img_place_holder_normal).error(R.drawable.img_not_found).into((ImageView) view.findViewById(R.id.ivProg1ImgMAHAds));AngledLinearLayout prog1LytNewText = (AngledLinearLayout)view.findViewById(R.id.lytProg1NewText);
36,837
[BUG]import java.util.stream.Collectors;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.*;<extra_id_0>public class CommandHere extends FCCommandBase {private static final String[] PRIORITY_ALIASES = {"priority", "prio", "p"};private static final FlagMapper MAPPER = map -> key -> value -> {[CONTEXT]
import java.util.stream.Stream;import static net.foxdenstudio.sponge.foxcore.plugin.util.Aliases.*;
58,939
[BUG]if (attrValue == null || attrValue.equals("")) {[BUG][CONTEXT]@Overrideprotected boolean isVisible(final ITemplateProcessingContext processingContext, final IProcessableElementTag tag,final AttributeName attributeName, final String attributeValue) {final String attrValue = (attributeValue == null? null : attributeValue.trim());<extra_id_0>return false;}if (!processingContext.isWeb()) {[CONTEXT]
if (attrValue == null || attrValue.length() == 0) {
20,748
[BUG]import org.estatio.dom.lease.Lease;import org.estatio.dom.lease.LeaseItem;[BUG][CONTEXT]import org.estatio.dom.charge.ChargeRepository;import org.estatio.dom.index.IndexRepository;import org.estatio.dom.invoice.PaymentMethod;import org.estatio.dom.lease.Fraction;import org.estatio.dom.lease.InvoicingFrequency;<extra_id_0>import org.estatio.dom.lease.LeaseItemStatus;import org.estatio.dom.lease.LeaseItemType;import org.estatio.dom.lease.LeaseRepository;[CONTEXT]
import org.estatio.dom.lease.LeaseConstants;import org.estatio.dom.lease.LeaseItem;
19,410
[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 == 1) {[CONTEXT]
return Stream.of("region", "handler").filter(new StartsWithPredicate(parse.current.token))
26,377
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt;[BUG][CONTEXT]final int offsetY = KERNEL_LINE_DIM * (int) (shift * fracy);final int pos = posx + posy;if (baseIndex > roiDataLength || roiDataArray[baseIndex] == 0) {if (setDestinationNoData) {for (int k2 = 0; k2 < dst_num_bands; k2++) {<extra_id_0>}}} else {[CONTEXT]
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataInt[k2];
31,669
[BUG]r = matchedExpression(b, l + 1, 23);[BUG][CONTEXT]}private static boolean maxExpression_1(PsiBuilder b, int l) {if (!recursion_guard_(b, l, "maxExpression_1")) return false;boolean r;Marker m = enter_section_(b);<extra_id_0>r = r && maxExpression_1_1(b, l + 1);exit_section_(b, m, null, r);return r;[CONTEXT]
static boolean keywordKeyColonEOL(PsiBuilder b, int l) {if (!recursion_guard_(b, l, "keywordKeyColonEOL")) return false;r = keywordKey(b, l + 1);r = r && consumeToken(b, KEYWORD_PAIR_COLON);r = r && keywordKeyColonEOL_2(b, l + 1);
12,569
[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
40,234
[BUG]import static android.webkit.WebSettings.LOAD_CACHE_ELSE_NETWORK;public class PictureViewerAdapter extends RecyclerView.Adapter<PictureViewerAdapter.PictureViewerViewHolder> {[BUG][CONTEXT]import ml.puredark.hviewer.ui.activities.BaseActivity;import ml.puredark.hviewer.ui.dataproviders.ListDataProvider;import ml.puredark.hviewer.ui.fragments.SettingFragment;import ml.puredark.hviewer.ui.listeners.OnItemLongClickListener;import ml.puredark.hviewer.utils.SharedPreferencesUtil;<extra_id_0>private BaseActivity activity;private Site site;private ListDataProvider mProvider;[CONTEXT]
import static ml.puredark.hviewer.R.id.container;public class PictureViewerAdapter extends RecyclerView.Adapter<PictureViewerAdapter.PictureViewerViewHolder> {
10,861
[BUG]job.setMapperClass(mapperClass);String hfileOutPath = conf.get(BULK_OUTPUT_CONF_KEY);[BUG][CONTEXT]String jobName = conf.get(JOB_NAME_CONF_KEY,NAME + "_" + tableName.getNameAsString());job = Job.getInstance(conf, jobName);job.setJarByClass(mapperClass);FileInputFormat.setInputPaths(job, inputDir);job.setInputFormatClass(TextInputFormat.class);<extra_id_0>String[] columns = conf.getStrings(COLUMNS_CONF_KEY);if(StringUtils.isNotEmpty(conf.get(CREDENTIALS_LOCATION))) {String fileLoc = conf.get(CREDENTIALS_LOCATION);[CONTEXT]
job.setMapOutputKeyClass(ImmutableBytesWritable.class);String hfileOutPath = conf.get(BULK_OUTPUT_CONF_KEY);
39,176
[BUG]&& task.collection.site.extraRule != null&& task.collection.site.extraRule.pictureUrl != null) {[BUG][CONTEXT]loadPicture(picture, task, null, true);} else if (!TextUtils.isEmpty(picture.pic) && !highRes) {picture.retries = 0;loadPicture(picture, task, null, false);} else if (task.collection.site.hasFlag(Site.FLAG_SINGLE_PAGE_BIG_PICTURE)<extra_id_0>getPictureUrl(picture, task, task.collection.site.extraRule.pictureUrl, task.collection.site.extraRule.pictureHighRes);[CONTEXT]
&& task.collection.site.extraRule != null) {if(task.collection.site.extraRule.pictureRule != null && task.collection.site.extraRule.pictureRule.url != null)getPictureUrl(picture, task, task.collection.site.extraRule.pictureRule.url, task.collection.site.extraRule.pictureRule.highRes);else if(task.collection.site.extraRule.pictureUrl != null)
59,310
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat;[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]] = destinationNoDataFloat[k2];
14,879
[BUG]return Task.ofType(String.class).named("MyTask", parameter).in(() -> Adder.create(parameter.length(), PLUS))[BUG][CONTEXT]return args;}static class MyTask {static final int PLUS = 10;static Task<String> create(String parameter) {<extra_id_0>.in(() -> Fib.create(parameter.length())).process((sum, fib) -> something(parameter, sum, fib));}[CONTEXT]
return Task.named("MyTask", parameter).ofType(String.class).in(() -> Adder.create(parameter.length(), PLUS))
48,912
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble;[BUG][CONTEXT]: 0);}}}if (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];
17,773
[BUG]ServiceManager userProfileServiceManager = appManager.getServiceManager(UserProfileServiceHandler.SERVICE_NAME);userProfileServiceManager.start();userProfileServiceManager.waitForStatus(true);[BUG][CONTEXT]UserProfile profileFromPurchaseHistory = history.getUserProfile();Assert.assertEquals(profileFromPurchaseHistory.getFirstName(), "joe");Assert.assertEquals(profileFromPurchaseHistory.getLastName(), "bernard");}private ServiceManager getUserProfileServiceManager(ApplicationManager appManager) throws InterruptedException {<extra_id_0>return userProfileServiceManager;}[CONTEXT]
[DELETED]
57,375
[CONTEXT][BUG]isWorldRegion = true;}if (region == null)<extra_id_0>isWorldRegion = true;}if (region == null)[BUG]throw new CommandException(Text.of("No region exists with the name \"" + parse.args[1] + "\"!"));if (region instanceof GlobalWorldRegion) {[BUG]throw new CommandException(Text.of("You may not delete the global region!"));}[CONTEXT]
if (world == null)throw new CommandException(Text.of("No world exists with name \"" + worldName + "\"!"));if (world == null) throw new CommandException(Text.of("Must specify a world!"));region = FGManager.getInstance().getWorldRegion(world, regionName).orElse(null);throw new CommandException(Text.of("No region exists with the name \"" + regionName + "\"!"));if (region instanceof IGlobal) {
66,932
[BUG]source.sendMessage(plugin.getConfigManager().getConfig().getText().getNotLoggedInMessage());[BUG][CONTEXT]&& !source.hasPermission(plugin.getContainer().getId() + ".command.changepw")) {throw new CommandPermissionException();}Account account = plugin.getDatabase().getAccountIfPresent((Player) source);if (account == null || !account.isLoggedIn()) {<extra_id_0>return CommandResult.empty();}Collection<String> passwords = args.<String>getAll("password");[CONTEXT]
source.sendMessage(plugin.getConfigManager().getTextConfig().getNotLoggedInMessage());
57,212
[BUG]import de.vanita5.twittnuker.util.DataStoreUtils;import de.vanita5.twittnuker.util.ImagePreloader;[BUG][CONTEXT]import de.vanita5.twittnuker.receiver.NotificationReceiver;import de.vanita5.twittnuker.service.LengthyOperationsService;import de.vanita5.twittnuker.util.ActivityTracker;import de.vanita5.twittnuker.util.AsyncTwitterWrapper;import de.vanita5.twittnuker.util.DataStoreFunctionsKt;<extra_id_0>import de.vanita5.twittnuker.util.InternalTwitterContentUtils;import de.vanita5.twittnuker.util.JsonSerializer;import de.vanita5.twittnuker.util.NotificationManagerWrapper;[CONTEXT]
import de.vanita5.twittnuker.util.DebugLog;import de.vanita5.twittnuker.util.ImagePreloader;
43,277
[BUG]import org.kitteh.irc.client.library.event.abstractbase.ChannelEventBase;import org.kitteh.irc.client.library.util.ToStringer;[BUG][CONTEXT]import org.kitteh.irc.client.library.Client;import org.kitteh.irc.client.library.element.Channel;import org.kitteh.irc.client.library.element.ServerMessage;import org.kitteh.irc.client.library.element.mode.ChannelMode;import org.kitteh.irc.client.library.element.mode.ModeInfo;<extra_id_0>import javax.annotation.Nonnull;import java.util.Collections;import java.util.List;[CONTEXT]
import org.kitteh.irc.client.library.util.Sanity;import org.kitteh.irc.client.library.util.ToStringer;
50,294
[BUG]new MaterialDialog.Builder(FileIoTestActivity.this).title("Here's how your Channel Data Looks:").content(ChannelDatabase.getInstance(FileIoTestActivity.this).toM3u()).show();[BUG][CONTEXT]Intent i = new Intent(Intent.ACTION_VIEW);i.setData(Uri.parse("https://raw.githubusercontent.com/Fleker/Cumulus" +"TV/master/app/src/test/resources/m3u_test1.m3u"));startActivity(i);} else if (position == 1) {<extra_id_0>}[CONTEXT]
new AlertDialog.Builder(FileIoTestActivity.this).setTitle("Here's how your Channel Data Looks:").setMessage(ChannelDatabase.getInstance(FileIoTestActivity.this).show();
41,130
[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_();
5,411
[BUG]this.addAbility(new BeginningOfUpkeepTriggeredAbility(new CreateTokenEffect(new SpiritToken(), 1), Constants.TargetController.YOU, true));[BUG][CONTEXT]this.subtype.add("Angel");this.color.setWhite(true);this.power = new MageInt(4);this.toughness = new MageInt(4);this.addAbility(FlyingAbility.getInstance());<extra_id_0>}public LuminousAngel(final LuminousAngel card) {super(card);[CONTEXT]
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken(), 1), Constants.TargetController.YOU, true));
25,320
[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;
26,759
[BUG]Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),Version.class)[BUG][CONTEXT]ProductIdentifier productIdentifier = (ProductIdentifier) child;destination.setProductIdentifier(productIdentifier);}},VERSION ("VERSION",<extra_id_0>{@Overridepublic VChild parse(VCalendar vCalendar, String contentLine)[CONTEXT]
Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),Version.class)
64,283
[BUG]if (BuildConfig.DEBUG) {Log.w(LOGTAG, e);}[BUG][CONTEXT]for (Location location : twitter.getAvailableTrends()) {map.put(location);}return map.pack();} catch (final MicroBlogException e) {<extra_id_0>}[CONTEXT]
DebugLog.w(LOGTAG, null, e);
58,956
[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_();
57,545
[BUG]private void chroma(Picture pic, int mbX, int mbY, VPxBooleanEncoder boolEnc, int qp, Picture outMB) {[BUG][CONTEXT]private int[] zigzag(int[] zz, int[] tmp2) {for (int i = 0; i < 16; i++)tmp2[i] = zz[VPXConst.zigzag[i]];return tmp2;}<extra_id_0>int x = mbX << 3;int y = mbY << 3;int chromaPred1 = chromaPredBlk(1, x, y);[CONTEXT]
private void chroma(Picture8Bit pic, int mbX, int mbY, VPxBooleanEncoder boolEnc, int qp, Picture8Bit outMB) {
34,820
[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]);
10,774
[BUG]import org.opencms.file.CmsGroup;import org.opencms.file.CmsObject;import org.opencms.file.CmsResource;import org.opencms.file.CmsResourceTypePointer;[BUG][CONTEXT]import org.opencms.main.I_CmsConstants;import org.opencms.main.OpenCms;import org.opencms.report.I_CmsReport;import org.opencms.security.CmsAccessControlEntry;import org.opencms.util.CmsUUID;<extra_id_0>import java.io.File;[CONTEXT]
[DELETED]
62,397
[CONTEXT][BUG]}}if (element instanceof PomTarget) {<extra_id_0>}}if (element instanceof PomTarget) {[BUG]addAliasingUsages((PomTarget)element, processor, options);[BUG]}final Boolean isSearchable = ApplicationManager.getApplication().runReadAction(new Computable<Boolean>() {@Overridepublic Boolean compute() {[CONTEXT]
return psiMethod.hasModifierProperty(PsiModifier.ABSTRACT);});final JavaMethodFindUsagesOptions methodOptions = (JavaMethodFindUsagesOptions)options;if (isAbstract && methodOptions.isImplementingMethods || methodOptions.isOverridingMethods) {if (!processOverridingMethods(psiMethod, processor, methodOptions)) return false;if (!addAliasingUsages((PomTarget)element, processor, options)) return false;
56,565
[BUG]return Task.ofType(String.class).named("Enums", enm).process(enm::toString);[BUG][CONTEXT]assertThat(parsedEnum, is(CustomEnum.BAR));}@RootTaskpublic static Task<String> enums(CustomEnum enm) {parsedEnum = enm;<extra_id_0>}@Testpublic void shouldParseCustomTypes() throws Exception {[CONTEXT]
return Task.named("Enums", enm).ofType(String.class).process(enm::toString);
34,362
[BUG]final Collection<FilePath> paths = ChangesUtil.getPaths(commit.getChanges());refreshChangedFiles(paths);final String commitMessage = createCommitMessage(commit);LocalChangeList changeList = createChangeListAfterUpdate(commit, paths, commitMessage);[BUG][CONTEXT]description += getSuccessfulCommitDetailsIfAny(successfulCommits);VcsNotifier.getInstance(myProject).notifyMinorWarning("Cherry-pick cancelled", description, null);}@Nullableprivate CherryPickData updateChangeListManager(@NotNull final VcsFullCommitDetails commit) {<extra_id_0>return changeList == null ? null : new CherryPickData(changeList, commitMessage);[CONTEXT]
UntrackedFilesNotifier.notifyUntrackedFilesOverwrittenBy(myProject, repository.getRoot(),untrackedFilesDetector.getRelativeFilePaths(), "cherry-pick", description);return false;
52,731
[BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort;[BUG][CONTEXT]int w10 = roiIter.getSample(x0, y0 + 1, 0) & 0xff;int w11 = roiIter.getSample(x0 + 1, y0 + 1, 0) & 0xff;if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {if (setDestinationNoData) {for (int k2 = 0; k2 < dst_num_bands; k2++) {<extra_id_0>}}} else {[CONTEXT]
dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2];
57,204
[BUG]public synchronized void update(UpdatableSortedLinkedListItem i) throws UpdatableSortedLinkedListKilledException {[BUG][CONTEXT]update(item);else if(item.getParent() == null)add(item);else throw new IllegalStateException("Item "+item+" should be on our list: "+list+" or null, but is "+item.getParent());}<extra_id_0>if(killed) throw new UpdatableSortedLinkedListKilledException();if(logMINOR) Logger.minor(this, "Update("+i+") on "+this);checkList();[CONTEXT]
public synchronized void update(T i) throws UpdatableSortedLinkedListKilledException {
64,605
[BUG]context.bind("TOPIC_ID", request.getParameter("topicId"));[BUG][CONTEXT]} else if (command.contains("getTopics")) {startCommands.add("GetTopicsCoreCreate");} else if (command.contains("getFrameInfo")) {startCommands.add("FrameInfoCreate");} else if (command.contains("getFrames")) {<extra_id_0>context.bind("OFFSET", offset);context.bind("FRAME_TYPE", request.getParameter("frameType"));startCommands.add("FrameCreate");[CONTEXT]
context.bind("TOPIC_ID", Integer.parseInt(request.getParameter("topicId")));
41,972
[BUG]Log.w(TAG, String.format("The ADM receiver received a message not sent from Appboy. Ignoring the message."));[BUG][CONTEXT]} else if (Constants.APPBOY_CANCEL_NOTIFICATION_ACTION.equals(action) && intent.hasExtra(Constants.APPBOY_CANCEL_NOTIFICATION_TAG)) {int notificationId = intent.getIntExtra(Constants.APPBOY_CANCEL_NOTIFICATION_TAG, Constants.APPBOY_DEFAULT_NOTIFICATION_ID);NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);notificationManager.cancel(Constants.APPBOY_PUSH_NOTIFICATION_TAG, notificationId);} else {<extra_id_0>}}boolean handleRegistrationIntent(Context context, Intent intent) {[CONTEXT]
AppboyLogger.w(TAG, String.format("The ADM receiver received a message not sent from Appboy. Ignoring the message."));
4,433
[BUG]import org.gradle.internal.classpath.DefaultClassPath;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import java.net.URLClassLoader;import static org.gradle.cache.internal.filelock.LockOptionsBuilder.mode;[BUG][CONTEXT]import org.gradle.cache.internal.CacheLayoutBuilder;import org.gradle.cache.internal.FileLockManager;import org.gradle.initialization.ClassLoaderRegistry;import org.gradle.initialization.GradleLauncherFactory;import org.gradle.internal.classpath.ClassPath;<extra_id_0>public class BuildSourceBuilder {[CONTEXT]
import org.gradle.util.GradleVersion;import java.io.File;import java.util.Collections;import static org.gradle.cache.internal.filelock.LockOptionsBuilder.mode;
68,433
[BUG]KNOWN_RESP_HEADERS.put("Content-Length", new ResponseContentTypeHolder());initWorkers((int)NGINX_CLOJURE_RT_WORKERS);[BUG][CONTEXT]KNOWN_RESP_HEADERS.put("WWW-Authenticate", safeBuildKnownTableEltHeaderHolder("WWW-Authenticate", NGX_HTTP_CLOJURE_HEADERSO_WWW_AUTHENTICATE_OFFSET, NGX_HTTP_CLOJURE_HEADERSO_HEADERS_OFFSET));KNOWN_RESP_HEADERS.put("Expires", safeBuildKnownTableEltHeaderHolder("Expires", NGX_HTTP_CLOJURE_HEADERSO_EXPIRES_OFFSET, NGX_HTTP_CLOJURE_HEADERSO_HEADERS_OFFSET));KNOWN_RESP_HEADERS.put("Etag", safeBuildKnownTableEltHeaderHolder("Etag", NGX_HTTP_CLOJURE_HEADERSO_ETAG_OFFSET, NGX_HTTP_CLOJURE_HEADERSO_HEADERS_OFFSET));KNOWN_RESP_HEADERS.put("Cache-Control", new ArrayHeaderHolder("Cache-Control", NGX_HTTP_CLOJURE_HEADERSO_CACHE_CONTROL_OFFSET, NGX_HTTP_CLOJURE_HEADERSO_HEADERS_OFFSET));KNOWN_RESP_HEADERS.put("Content-Type", new ResponseContentTypeHolder());<extra_id_0>System.setProperty(NginxHandlerFactory.NGINX_CLOJURE_HANDLER_FACTORY_SYSTEM_PROPERTY_PREFIX + "java", "nginx.clojure.java.NginxJavaHandlerFactory");System.setProperty(NginxHandlerFactory.NGINX_CLOJURE_HANDLER_FACTORY_SYSTEM_PROPERTY_PREFIX + "clojure", "nginx.clojure.clj.NginxClojureHandlerFactory");System.setProperty(NginxHandlerFactory.NGINX_CLOJURE_HANDLER_FACTORY_SYSTEM_PROPERTY_PREFIX + "groovy", "nginx.clojure.groovy.NginxGroovyHandlerFactory");[CONTEXT]
KNOWN_RESP_HEADERS.put("Content-Length", new OffsetHeaderHolder("Content-Length", NGX_HTTP_CLOJURE_HEADERSO_CONTENT_LENGTH_N_OFFSET, NGX_HTTP_CLOJURE_HEADERSO_HEADERS_OFFSET) );initWorkers((int)NGINX_CLOJURE_RT_WORKERS);
12,213
[BUG]return TaskUtils.setTargetConfiguration(taskBuilder.build(), UUID.fromString(configName));[BUG][CONTEXT].setGracePeriodSeconds(healthCheckConfiguration.getHealthCheckGracePeriod().getSeconds()).setCommand(CommandInfo.newBuilder().setValue("curl -f localhost:$API_PORT/admin/healthcheck").build()));}<extra_id_0>}private static String getBrokerCmd(KafkaSchedulerConfiguration config) {return Joiner.on(" && ").join(Arrays.asList([CONTEXT]
return TaskUtils.setTargetConfiguration(taskBuilder, UUID.fromString(configName)).build();
19,288
[BUG]import com.badlogic.gdx.graphics.GL10;import com.badlogic.gdx.utils.BufferUtils;[BUG][CONTEXT]package com.badlogic.gdx.graphics.glutils;import java.nio.ByteBuffer;import java.nio.ByteOrder;import java.nio.FloatBuffer;import com.badlogic.gdx.Gdx;<extra_id_0>import com.badlogic.gdx.utils.GdxRuntimeException;public class ImmediateModeRenderer {private int primitiveType;[CONTEXT]
import com.badlogic.gdx.math.Vector3;import com.badlogic.gdx.utils.BufferUtils;
62,265
[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"),
28,248
[BUG]if (parse.args.length < 2) throw new CommandException(Text.of("Must specify a name!"));IRegion region = FGManager.getInstance().getRegion(parse.args[1]);[BUG][CONTEXT].append(Text.of(TextColors.GREEN, "Usage: ")).append(getUsage(source)).build());return CommandResult.empty();} else if (isIn(REGIONS_ALIASES, parse.args[0])) {<extra_id_0>boolean isWorldRegion = false;if (region == null) {[CONTEXT]
String regionName = parse.args[1];IRegion region = FGManager.getInstance().getRegion(regionName).orElse(null);
57,166
[BUG]public void whenNextActivationIsSetBeforeContext() {listener.beforeProcessing(context2);[BUG][CONTEXT]assertEquals(1, metricRegistry.getHistograms().get("foobarName.0.myWorkflow.my-state.retries").getCount());assertNotNull(metricRegistry.getTimers().get("foobarName.0.myWorkflow.my-state.execution-time"));assertNull(metricRegistry.getHistograms().get("foobarName.0.startup-delay"));}@Test<extra_id_0>assertEquals(1, metricRegistry.getHistograms().get("foobarName.0.myWorkflow.my-state.retries").getCount());assertNotNull(metricRegistry.getTimers().get("foobarName.0.myWorkflow.my-state.execution-time"));assertNotNull(metricRegistry.getHistograms().get("foobarName.0.startup-delay"));[CONTEXT]
public void beforeContext() {listener.beforeProcessing(context2);
55,697
[BUG]com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl,XWiki xwikiApi, Boolean withPrettyNames){[BUG][CONTEXT]}return historySummary;}private static void fillAttachment(Attachment attachment, ObjectFactory objectFactory, URI baseUri,<extra_id_0>Document doc = xwikiAttachment.getDocument();attachment.setId(String.format("%s@%s", doc.getPrefixedFullName(), xwikiAttachment.getFilename()));[CONTEXT]
com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl, XWiki xwikiApi,{
26,420
[BUG]@SpringBootApplication(exclude = { org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration.class })public class DevNexusApplication implements EmbeddedServletContainerCustomizer {[BUG][CONTEXT]import org.springframework.core.env.Environment;import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;import com.devnexus.ting.core.applicationlistener.ContextRefreshedEventListener;import com.google.common.cache.CacheBuilder;@EnableCaching<extra_id_0>@Autowiredprivate Environment environment;@Autowired[CONTEXT]
@SpringBootApplicationpublic class DevNexusApplication implements EmbeddedServletContainerCustomizer {
62,473
[BUG]return builder.toString();}[BUG][CONTEXT]StringBuilder builder = new StringBuilder();for (Iterator<IHandler> it = handlers.iterator(); it.hasNext(); ) {builder.append(it.next().getName());if (it.hasNext()) builder.append(",");}<extra_id_0>private final class LoadEntry {public final String name;public final Type type;[CONTEXT]
public enum Type {REGION, WREGION, HANDLER
35,399
[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(),
38,367
[BUG]return getDefaultState().withProperty(TYPE, EnumType.fromMeta(meta));[BUG][CONTEXT]return getMetaFromState(state);}@Overridepublic IBlockState getStateFromMeta(int meta){<extra_id_0>}@Overridepublic int getMetaFromState(IBlockState state)[CONTEXT]
return getDefaultState().withProperty(TYPE, BlockElderMushroom.EnumType.fromMeta(meta));
20,795
[BUG]mRadius = (int) Math.round(sum / (2 * mLeftPoints.size()));}private static double getBrightness(final Color color) {return Math.min(Math.min(color.getRed(), color.getGreen()), color.getBlue()) + color.getBlue();[BUG][CONTEXT]for (Integer y : mRightPoints.keySet()) {int yDistance = y - mYCenter;int xDistance = mRightPoints.get(y) - mXCenter;sum += Math.sqrt(xDistance * xDistance + yDistance * yDistance);}<extra_id_0>}[CONTEXT]
[DELETED]
46,138
[CONTEXT].build(doc.getWiki(), doc.getSpace(), doc.getName(), doc.getVersion(),xwikiObject.getClassName(),xwikiObject.getNumber()).toString();[BUG]} else {<extra_id_0>} else {[BUG]objectUri =UriBuilder.fromUri(baseUri).path(ObjectResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName(), xwikiObject.getClassName(),xwikiObject.getNumber()).toString();[BUG]}[CONTEXT]
private static Link getObjectLink(ObjectFactory objectFactory, URI baseUri, Document doc, BaseObject xwikiObject,boolean useVersion, String relation)String objectUri;if (useVersion) {uri(baseUri, ObjectAtPageVersionResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),doc.getVersion(), xwikiObject.getClassName(), xwikiObject.getNumber());uri(baseUri, ObjectResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),xwikiObject.getClassName(), xwikiObject.getNumber());
1,994
[BUG]inputExtraRuleCommentContentReplacement.setText(site.extraRule.commentContent.replacement);}[BUG][CONTEXT]inputExtraRuleCommentDatetimeReplacement.setText(site.extraRule.commentDatetime.replacement);}if (site.extraRule.commentContent != null) {inputExtraRuleCommentContentSelector.setText(joinSelector(site.extraRule.commentContent));inputExtraRuleCommentContentRegex.setText(site.extraRule.commentContent.regex);<extra_id_0>}}}[CONTEXT]
[DELETED]
43,883
[BUG]time.align(Align.left);mainActors.add(time);[BUG][CONTEXT]});playstop.addListener(new TextTooltip(txt("gui.tooltip.playstop"), skin));TimeComponent timeComponent = new TimeComponent(skin, ui);timeComponent.initialize();CollapsiblePane time = new CollapsiblePane(ui, txt("gui.time"), timeComponent.getActor(), skin, true, playstop);<extra_id_0>panes.put(timeComponent.getClass().getSimpleName(), time);if (Constants.desktop) {recCamera = new OwnImageButton(skin, "rec");[CONTEXT]
time.align(Align.left).columnAlign(Align.left);mainActors.add(time);
32,482
[BUG]w00 = byteLookupTable[s00&0xFF] == destinationNoDataByte ? 0 : 1;w01 = byteLookupTable[s01&0xFF] == destinationNoDataByte ? 0 : 1;w10 = byteLookupTable[s10&0xFF] == destinationNoDataByte ? 0 : 1;w11 = byteLookupTable[s11&0xFF] == destinationNoDataByte ? 0 : 1;[BUG][CONTEXT]final int s00 = srcDataArrays[k2][posx + posy + bandOffsets[k2]];final int s01 = srcDataArrays[k2][posxhigh + posy + bandOffsets[k2]];final int s10 = srcDataArrays[k2][posx + posyhigh + bandOffsets[k2]];final int s11 = srcDataArrays[k2][posxhigh + posyhigh+ bandOffsets[k2]];<extra_id_0>if (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0) {[CONTEXT]
w00 = byteLookupTable[k2][s00&0xFF] == destinationNoDataByte[k2] ? 0 : 1;w01 = byteLookupTable[k2][s01&0xFF] == destinationNoDataByte[k2] ? 0 : 1;w10 = byteLookupTable[k2][s10&0xFF] == destinationNoDataByte[k2] ? 0 : 1;w11 = byteLookupTable[k2][s11&0xFF] == destinationNoDataByte[k2] ? 0 : 1;
40,930
[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];
66,775
[BUG]entityRelationshipDao.save(entityRelationship);audit(groupId, username, String.format("Associated change initiative: %d", changeInitiativeId));return getChangeInitiatives(groupId);[BUG][CONTEXT]String username,long groupId,long changeInitiativeId) throws InsufficientPrivelegeException {verifyUserCanUpdateGroup(username, groupId);EntityRelationship entityRelationship = buildChangeInitiativeRelationship(groupId, changeInitiativeId);<extra_id_0>}[CONTEXT]
audit(groupId,String.format("Associated change initiative: %d", changeInitiativeId),EntityKind.CHANGE_INITIATIVE,Operation.ADD);return getChangeInitiatives(groupId);
57,392
[BUG]}}@Testpublic void testNormal() {if (_shouldTest()) {[BUG][CONTEXT]});Assert.fail();}catch (NullPointerException npe) {}<extra_id_0>Assert.assertTrue(FIFOUtil.isFIFOSupported());[CONTEXT]
public void testIsFIFOSupported() {if (!_shouldTest()) {return;
50,087
[BUG]import org.apache.sling.performance.tests.ResolveNonExistingWith10000AliasTest;import org.apache.sling.performance.tests.ResolveNonExistingWith10000VanityPathTest;import org.apache.sling.performance.tests.ResolveNonExistingWith1000AliasTest;import org.apache.sling.performance.tests.ResolveNonExistingWith1000VanityPathTest;import org.apache.sling.performance.tests.ResolveNonExistingWith5000AliasTest;import org.apache.sling.performance.tests.ResolveNonExistingWith5000VanityPathTest;[BUG][CONTEXT]import org.apache.sling.jcr.resource.JcrResourceConstants;import org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl;import org.apache.sling.jcr.resource.internal.helper.MapEntries;import org.apache.sling.jcr.resource.internal.helper.Mapping;import org.apache.sling.performance.annotation.PerformanceTestSuite;<extra_id_0>import org.junit.runner.RunWith;[CONTEXT]
import org.apache.sling.performance.tests.ResolveNonExistingWithManyAliasTest;import org.apache.sling.performance.tests.ResolveNonExistingWithManyVanityPathTest;
2,275
[BUG]import org.basex.query.QueryException;import org.basex.query.item.FTxt;[BUG][CONTEXT]package org.basex.query.expr;import static org.basex.query.QueryText.*;import org.basex.data.Data;import org.basex.query.QueryContext;<extra_id_0>import org.basex.query.item.Item;import org.basex.query.item.Nod;import org.basex.query.iter.Iter;[CONTEXT]
import org.basex.query.item.DBNode;import org.basex.query.item.FTxt;
29,596
[BUG]import com.google.common.collect.Iterators;[BUG][CONTEXT]package uk.co.coen.capsulecrm.client;import com.google.common.base.MoreObjects;<extra_id_0>import java.util.Iterator;import java.util.List;public class CTasks implements Iterable<CTask> {[CONTEXT]
import com.google.common.collect.ImmutableSet;
53,031
[BUG]LOGGER.log(LogLevel.INFO, "Unable to add buffer to buffer queue", e);}[BUG][CONTEXT]private void addBuffer() {try {if (!isClosed && bufferQueue.size() <= BUFFER_QUEUE_SIZE)bufferQueue.put(new byte[size]);} catch (InterruptedException e) {<extra_id_0>}}public AsyncBufferWriter(OutputStream outputStream, int size, ThreadFactory threadFactory, byte[] newline) {[CONTEXT]
LOGGER.log(LogLevel.INFO, Messages.getString("HDFS_ASYNC_UNABLE_ADD_TO_QUEUE"), e);
28,458
[BUG]package com.cronutils.model.time.generator;import com.cronutils.model.field.CronField;[BUG][CONTEXT]<extra_id_0>import com.cronutils.model.field.CronFieldName;import com.cronutils.model.field.expression.FieldExpression;import com.cronutils.model.field.expression.On;[CONTEXT]
import java.time.DayOfWeek;import java.time.LocalDate;import java.util.List;import org.apache.commons.lang3.Validate;import com.cronutils.model.field.CronField;
20,895
[BUG]import org.jboss.logmanager.ExtLogRecord;import java.text.SimpleDateFormat;[BUG][CONTEXT]package org.jboss.logmanager.handlers;import java.io.OutputStream;import java.io.File;import java.io.FileNotFoundException;<extra_id_0>import java.util.Date;import java.util.logging.ErrorManager;public class SizeRotatingFileHandler extends FileHandler {[CONTEXT]
import java.io.IOException;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;import java.nio.file.StandardCopyOption;import java.text.SimpleDateFormat;
8,067
[BUG].write(" class=\""+self.getZclass()+"\"")[BUG][CONTEXT]wh.write("<span id=\"").write(uuid).write("\" z.type=\"zul.btn.Radio\"").write(self.getOuterAttrs()).write(">").write("<input type=\"radio\" id=\"").write(uuid).write("!real\"").write(self.getInnerAttrs()).write("/><label for=\"").write(uuid).write("!real\"").write(self.getLabelAttrs())<extra_id_0>.write(">").write(self.getImgTag()).write(self.getLabel()).write("</label>");[CONTEXT]
.write(" class=\""+self.getZclass()+"-cnt\"")
58,900
[CONTEXT].build(doc.getWiki(), doc.getSpace(), doc.getName(), doc.getVersion(),xwikiObject.getClassName(),xwikiObject.getNumber()).toString();[BUG]} else {<extra_id_0>} else {[BUG]objectUri =UriBuilder.fromUri(baseUri).path(ObjectResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName(), xwikiObject.getClassName(),xwikiObject.getNumber()).toString();[BUG]}[CONTEXT]
private static Link getObjectLink(ObjectFactory objectFactory, URI baseUri, Document doc, BaseObject xwikiObject,boolean useVersion, String relation)String objectUri;if (useVersion) {uri(baseUri, ObjectAtPageVersionResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),doc.getVersion(), xwikiObject.getClassName(), xwikiObject.getNumber());uri(baseUri, ObjectResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),xwikiObject.getClassName(), xwikiObject.getNumber());