id
int64 2
70k
| bug_ctx
stringlengths 58
37.5k
| fixed
stringlengths 1
37k
|
---|---|---|
57,973 | <BUG>.override(width, height).diskCacheStrategy(DiskCacheStrategy.ALL)</BUG><CONTEXT>.error(R.mipmap.ligtv).into(holder.postThumbView);} else if (StringUtils.containsIgnoreCase(feedLink, "fotomac")) {Glide.with(myContext).load(imgLink)<extra_id_0>.placeholder(R.mipmap.fotomac).error(R.mipmap.fotomac).into(holder.postThumbView);</CONTEXT> | .fitCenter().diskCacheStrategy(DiskCacheStrategy.ALL) |
47,739 | <BUG>return ImmutableList.of("region", "worldregion", "handler", "controller").stream()</BUG><CONTEXT>.autoCloseQuotes(true).leaveFinalAsIs(true).parse();if (parse.current.type.equals(AdvCmdParser.CurrentElement.ElementType.ARGUMENT)) {if (parse.current.index == 0)<extra_id_0>.filter(new StartsWithPredicate(parse.current.token)).collect(GuavaCollectors.toImmutableList());else if (parse.current.index == 1) {</CONTEXT> | return Stream.of("region", "worldregion", "handler", "controller") |
8,603 | <BUG>import java.util.List;import org.apache.commons.lang3.Validate;</BUG><CONTEXT>package com.cronutils.model.time.generator;import java.util.Collections;<extra_id_0>import com.cronutils.model.field.CronField;import com.cronutils.model.field.expression.FieldExpression;public abstract class FieldValueGenerator {</CONTEXT> | import org.apache.commons.lang3.Validate;import org.apache.commons.lang3.Validate; |
6,731 | <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); |
62,499 | <BUG>ATLAS_UNPLUGGED_V5_DUAL_ROBOTIQ,ATLAS_UNPLUGGED_V5_INVISIBLE_CONTACTABLE_PLANE_HANDS,</BUG><CONTEXT>import us.ihmc.robotics.robotSide.SideDependentList;import us.ihmc.wholeBodyController.DRCHandType;public enum AtlasRobotVersion{ATLAS_UNPLUGGED_V5_NO_HANDS,<extra_id_0>ATLAS_UNPLUGGED_V5_ROBOTIQ_AND_SRI,ATLAS_UNPLUGGED_V5_TROOPER;private static String[] resourceDirectories;</CONTEXT> | ATLAS_UNPLUGGED_V5_NO_FOREARMS,ATLAS_UNPLUGGED_V5_INVISIBLE_CONTACTABLE_PLANE_HANDS, |
50,677 | <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort;</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]] = destinationNoDataUShort[k2]; |
23,954 | <BUG>import org.apache.pdfbox.pdmodel.edit.PDPageContentStream;import java.io.IOException;</BUG><CONTEXT>package cc.catalysts.boot.report.pdf.elements;import org.apache.pdfbox.pdmodel.PDDocument;<extra_id_0>import java.util.ArrayList;import java.util.Collection;import java.util.LinkedList;</CONTEXT> | import org.apache.pdfbox.pdmodel.PDPageContentStream;import java.io.IOException; |
36,543 | <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte;</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]] = destinationNoDataByte[k2]; |
33,854 | <BUG>EnchantmentHelper.func_151384_a((EntityLivingBase)target, player);}EnchantmentHelper.func_151385_b(player, target);ItemStack itemstack = player.getCurrentEquippedItem();</BUG><CONTEXT>if (f >= 18.0F){player.triggerAchievement(AchievementList.overkill);}player.setLastAttacker(target);if (target instanceof EntityLivingBase){<extra_id_0>if(itemstack != null) {</CONTEXT> | EnchantmentHelper.applyThornEnchantments((EntityLivingBase) target, player);//Call #onUserHurt for each enchantment from target inventoryEnchantmentHelper.applyArthropodEnchantments(player, target);//Call #onEntityDamaged for each enchantment from player inventoryItemStack itemstack = player.getCurrentEquippedItem(); |
772 | <BUG>new Object[]{ ResourceBundle.getBundle("bundles/nexu").getString("certificates.flow.finished") }).perform();}</BUG><CONTEXT>resp.setSupportedDigests(cardAdapter.getSupportedDigestAlgorithms(card));resp.setPreferredDigest(cardAdapter.getPreferredDigestAlgorithm(card));}if(api.getAppConfig().isEnablePopUps()) {getOperationFactory().getOperation(UIOperation.class, "/fxml/message.fxml",<extra_id_0>return new Execution<GetCertificateResponse>(resp);} else {return handleErrorOperationResult(selectPrivateKeyOperationResult);</CONTEXT> | new Object[]{ "certificates.flow.finished" }).perform(); |
20,843 | <BUG>public class CollectionUtils {public static <T> Collection<T> addIfNotNull(Collection<T> c, T element) {</BUG><CONTEXT>package org.eclipse.emf.index.util;import java.util.Collection;<extra_id_0>if (element != null)c.add(element);return c;</CONTEXT> | import java.util.ArrayList;public static <T> Collection<T> copyOrNull(Collection<T> source) {if(source == null) return null;return new ArrayList<T>(source);}public static <T> Collection<T> addIfNotNull(Collection<T> c, T element) { |
16,417 | <BUG>testCenter.addTestObject(new ResolveNonExistingWith1000VanityPathTest(helper));testCenter.addTestObject(new ResolveNonExistingWith5000VanityPathTest(helper));testCenter.addTestObject(new ResolveNonExistingWith10000VanityPathTest(helper));testCenter.addTestObject(new ResolveNonExistingWith1000AliasTest(helper));testCenter.addTestObject(new ResolveNonExistingWith5000AliasTest(helper));testCenter.addTestObject(new ResolveNonExistingWith10000AliasTest(helper));</BUG><CONTEXT>@PerformanceTestSuitepublic ParameterizedTestList testPerformance() throws Exception {Helper helper = new Helper();ParameterizedTestList testCenter = new ParameterizedTestList();testCenter.setTestSuiteTitle("jcr.resource-2.2.0");<extra_id_0>return testCenter;</CONTEXT> | testCenter.addTestObject(new ResolveNonExistingWithManyVanityPathTest("ResolveNonExistingWith1000VanityPathTest",helper, 100, 10));testCenter.addTestObject(new ResolveNonExistingWithManyVanityPathTest("ResolveNonExistingWith5000VanityPathTest",helper, 100, 50));testCenter.addTestObject(new ResolveNonExistingWithManyVanityPathTest("ResolveNonExistingWith10000VanityPathTest",helper, 100, 100));testCenter.addTestObject(new ResolveNonExistingWithManyAliasTest("ResolveNonExistingWith1000AliasTest",helper, 1000));testCenter.addTestObject(new ResolveNonExistingWithManyAliasTest("ResolveNonExistingWith5000AliasTest",helper, 5000));testCenter.addTestObject(new ResolveNonExistingWithManyAliasTest("ResolveNonExistingWith10000AliasTest",helper, 10000)); |
21 | <BUG>Task<Long> task1 = Task.ofType(Long.class).named("Foo", "Bar", 39).process(() -> 9999L);Task<String> task2 = Task.ofType(String.class).named("Baz", 40).in(() -> task1)</BUG><CONTEXT>final String instanceField = "from instance";final TaskContext context = TaskContext.inmem();final AwaitingConsumer<String> val = new AwaitingConsumer<>();@Testpublic void shouldJavaUtilSerialize() throws Exception {<extra_id_0>.ins(() -> singletonList(task1))</CONTEXT> | Task<Long> task1 = Task.named("Foo", "Bar", 39).ofType(Long.class)Task<String> task2 = Task.named("Baz", 40).ofType(String.class).in(() -> task1) |
34,364 | <BUG>VfsUtil.markDirtyAndRefresh(false, false, false, ArrayUtil.toObjectArray(filesToRefresh, VirtualFile.class));}</BUG><CONTEXT>VirtualFile vf = findFirstValidVirtualParent(file);if (vf != null) {filesToRefresh.add(vf);}}<extra_id_0>private static void refreshDeletedOrReplaced(@NotNull Collection<File> deletedOrReplaced) {Collection<VirtualFile> filesToRefresh = ContainerUtil.newHashSet();for (File file : deletedOrReplaced) {</CONTEXT> | return filesToRefresh; |
13,468 | <BUG>PDPage currPage = (PDPage) document.getDocumentCatalog().getPages().get(pageNo);PDPageContentStream pageStream = new PDPageContentStream(document, currPage, true, false);</BUG><CONTEXT>public ReportElement getBase() {return base;}@Overridepublic float print(PDDocument document, PDPageContentStream stream, int pageNumber, float startX, float startY, float allowedWidth) throws IOException {<extra_id_0>base.print(document, pageStream, pageNo, x, y, width);pageStream.close();</CONTEXT> | PDPage currPage = document.getDocumentCatalog().getPages().get(pageNo);PDPageContentStream pageStream = new PDPageContentStream(document, currPage, PDPageContentStream.AppendMode.APPEND, false); |
37,456 | <BUG>public class ThaiAnalyzerProvider extends AbstractAnalyzerProvider<ThaiAnalyzer> {</BUG><CONTEXT>import org.elasticsearch.index.settings.IndexSettings;import org.elasticsearch.util.inject.Inject;import org.elasticsearch.util.inject.assistedinject.Assisted;import org.elasticsearch.util.lucene.Lucene;import org.elasticsearch.util.settings.Settings;<extra_id_0>private final ThaiAnalyzer analyzer;@Inject public ThaiAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {super(index, indexSettings, name);</CONTEXT> | public class ThaiAnalyzerProvider extends AbstractIndexAnalyzerProvider<ThaiAnalyzer> { |
12,787 | <BUG>if(StringUtil.isNotBlank(configFileName)){String [] extConfig = null;configFileName = StringUtil.clearSpace(configFileName, PatternValue.ALL);</BUG><CONTEXT>import org.slf4j.LoggerFactory;public class ConfigExtHandler {private static final Logger log = LoggerFactory.getLogger(ConfigExtHandler.class);private static Properties properties;public static void load(String configFileName) {<extra_id_0>if(configFileName.indexOf(Constant.COMMA)>0){</CONTEXT> | if(!GalaxyUtil.isEmpty(configFileName)){configFileName = GalaxyUtil.clearSpace(configFileName, PatternValue.ALL); |
18,886 | <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.*; |
57,284 | <BUG>date.getYear(), date.getMonthOfYear(),</BUG><CONTEXT>));}else{return new TimeNode(generateDayCandidatesQuestionMarkNotSupported(<extra_id_0>((DayOfWeekFieldDefinition)cronDefinition.getFieldDefinition(DAY_OF_WEEK)).getMondayDoWValue()</CONTEXT> | date.getYear(), date.getMonthValue(), |
7,695 | <BUG>public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) {</BUG><CONTEXT>@CopyMode(Mode.IGNORE) // Ignore the constructor to prevent an infinite looppublic HopperBlock() {}@Override@CopyMode(Mode.APPEND)<extra_id_0>TileEntity te = worldIn.getTileEntity(pos);if(te != null) {TileEntityHopper hopper = (TileEntityHopper)te;</CONTEXT> | public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block neighborBlock) { |
3,899 | <BUG>public static final int UPDATE_REQUEST = 0;</BUG><CONTEXT>public static final String CLIENT_INFO_TIME = "c_time";public static final String CLIENT_INFO_WAITTIMEOUT = "c_waitTimeout";public static final String CLIENT_INFO_CONNECTED = "c_connected";public static final String CLIENT_INFO_CHANGED = "c_changed";public static final String CLIENT_INFO_DIFF = "c_diff";<extra_id_0>public static final int UPDATE = 1;public static final int REQUEST_PUT_HEADER = 2;public static final int REQUEST_FLUSH_HEADER = 3;</CONTEXT> | public static final int THREAD_INFO_TYPE = 0; |
36,575 | <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]; |
66,358 | <BUG>final GroovyClassLoader cl = new GroovyClassLoader(Thread.currentThread().getContextClassLoader());cl.setResourceLoader( new GroovyResourceLoader() {</BUG><CONTEXT>import java.io.FileWriter;import java.net.MalformedURLException;import java.net.URL;public class ClassReloadingTests extends TestCase {public void testReloadingClasses() throws Exception {<extra_id_0>public URL loadGroovySource(String filename) throws MalformedURLException {filename = filename.replace('.', '/') + ".groovy";</CONTEXT> | final GroovyClassLoader cl = new GroovyClassLoader(getClass().getClassLoader());cl.setShouldRecompile(Boolean.TRUE);cl.setResourceLoader( new GroovyResourceLoader() { |
57,624 | <BUG>long result = value;</BUG><CONTEXT>public MutableLong setValue(final long value) {this.value = value;return this;}public long getAndSet(final long value) {<extra_id_0>this.value = value;return result;}</CONTEXT> | final long result = this.value; |
18,944 | <BUG>import com.intellij.codeStyle.CodeStyleFacade;import com.intellij.openapi.diff.impl.patch.FilePatch;</BUG><CONTEXT>package com.intellij.openapi.vcs.changes.patch;<extra_id_0>import com.intellij.openapi.diff.impl.patch.PatchEP;import com.intellij.openapi.diff.impl.patch.UnifiedDiffWriter;import com.intellij.openapi.extensions.Extensions;</CONTEXT> | import com.intellij.openapi.diff.impl.patch.BinaryFilePatch;import com.intellij.openapi.diff.impl.patch.FilePatch; |
17,132 | <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++) { |
48,593 | <BUG>logError("Error converting value ["+pol+"], when splitting field ["+meta.getSplitField()+"]!");setErrors(1);</BUG><CONTEXT>data.daf, data.dafs);}catch(Exception e){<extra_id_0>stopAll();return false;}</CONTEXT> | logError(Messages.getString("FieldSplitter.Log.ErrorConvertingSplitValue",pol,meta.getSplitField()+"]!")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$setErrors(1); |
56,482 | <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() ); |
41,413 | <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]; |
52,955 | <BUG>public final static Property ContentType = new Property(6, String.class, "contentType", false, "CONTENT_TYPE");public final static Property Time = new Property(7, String.class, "time", false, "TIME");public final static Property IsRead = new Property(8, boolean.class, "isRead", false, "IS_READ");</BUG><CONTEXT>public final static Property FromId = new Property(1, int.class, "fromId", false, "FROM_ID");public final static Property ToId = new Property(2, int.class, "toId", false, "TO_ID");public final static Property FromName = new Property(3, String.class, "fromName", false, "FROM_NAME");public final static Property FromAvatar = new Property(4, String.class, "fromAvatar", false, "FROM_AVATAR");public final static Property Content = new Property(5, String.class, "content", false, "CONTENT");<extra_id_0>}</CONTEXT> | public final static Property AudioLength = new Property(7, String.class, "audioLength", false, "AUDIO_LENGTH");public final static Property Time = new Property(8, String.class, "time", false, "TIME");public final static Property IsRead = new Property(9, boolean.class, "isRead", false, "IS_READ"); |
48,574 | <BUG>GenericArguments.choices(Text.of("target"), catalogChoices),</BUG><CONTEXT>.put("false", Tristate.FALSE).put("undefined", Tristate.UNDEFINED).put("true", Tristate.TRUE).build()))),GenericArguments.seq(<extra_id_0>onlyOne(GenericArguments.choices(Text.of("value"), ImmutableMap.<String, Tristate>builder().put("-1", Tristate.FALSE).put("0", Tristate.UNDEFINED)</CONTEXT> | .build())),optional(GenericArguments.onlyOne(GenericArguments.string(Text.of("context"))))),GenericArguments.onlyOne(choices(Text.of("target"), catalogChoices)), |
55,659 | <BUG>{HTTP.Response response = HTTP.GET( server.httpURI().resolve( "myExtension" ).toString() );</BUG><CONTEXT>public void testMyExtension() throws Exception{try ( ServerControls server = getServerBuilder().withExtension( "/myExtension", MyUnmanagedExtension.class ).newServer() )<extra_id_0>assertEquals( 200, response.status() );}</CONTEXT> | HTTP.Response response = HTTP.GET(HTTP.GET( server.httpURI().resolve( "myExtension" ).toString() ).location() ); |
7,543 | <BUG>import org.bukkit.command.CommandSender;import org.bukkit.entity.Player;</BUG><CONTEXT>import java.io.IOException;import java.util.logging.Level;import java.util.logging.Logger;import org.bukkit.Bukkit;import org.bukkit.command.Command;<extra_id_0>import org.bukkit.plugin.java.JavaPlugin;import org.bukkit.scheduler.BukkitScheduler;import org.mcstats.MetricsLite;</CONTEXT> | import org.bukkit.command.ConsoleCommandSender;import org.bukkit.entity.Player; |
14,381 | <BUG>SharedObjectInfo soi = voiceRooms.get(room);</BUG><CONTEXT>soi.getSharedObject().sendMessage("userMute", list);}}public void talking(String room, Integer participant, Boolean talking){log.debug("Participant $user talk $talking");<extra_id_0>if (soi != null) {List<String> list = new ArrayList<String>();list.add(participant.toString());</CONTEXT> | RoomInfo soi = voiceRooms.get(room); |
58,229 | <BUG>DELETE_ALERT_SEVERITY = "DELETE FROM " + keyspace + ".alerts_severities "+ "WHERE tenantId = ? AND severity = ? AND alertId = ? ";DELETE_ALERT_STATUS = "DELETE FROM " + keyspace + ".alerts_statuses "+ "WHERE tenantId = ? AND status = ? AND alertId = ? ";</BUG><CONTEXT>DELETE_ALERT = "DELETE FROM " + keyspace + ".alerts " + "WHERE tenantId = ? AND alertId = ? ";DELETE_ALERT_CTIME = "DELETE FROM " + keyspace + ".alerts_ctimes "+ "WHERE tenantId = ? AND ctime = ? AND alertId = ? ";DELETE_ALERT_LIFECYCLE = "DELETE FROM " + keyspace + ".alerts_lifecycle "+ "WHERE tenantId = ? AND status = ? AND stime = ? AND alertId = ? ";<extra_id_0>DELETE_ALERT_TRIGGER = "DELETE FROM " + keyspace + ".alerts_triggers "</CONTEXT> | [DELETED] |
6,488 | <BUG>import com.fasterxml.jackson.annotation.JsonIgnore;import java.lang.reflect.Field;import java.util.HashMap;</BUG><CONTEXT>package wherehows.common.schemas;<extra_id_0>import java.util.List;import java.util.Map;</CONTEXT> | import com.fasterxml.jackson.databind.ObjectMapper;import java.io.IOException;import java.util.Date;import java.util.Collection;import java.util.HashMap; |
27,212 | <BUG>try {return Integer.parseInt(this.getAttribute(HtmlAttributeProperties.VSPACE));} catch (Exception err) {return 0;}</BUG><CONTEXT>public String getUseMap() {return this.getAttribute(HtmlAttributeProperties.USEMAP);}@Overridepublic int getVspace() {<extra_id_0>}</CONTEXT> | [DELETED] |
66,093 | <BUG>PsiTreeUtil.processElements(new PsiElementProcessor() {@Override</BUG><CONTEXT>if (!refElement.isValid() || !(refElement instanceof PsiLocalVariable || refElement instanceof PsiParameter)) return;final String name = ((PsiVariable)refElement).getName();if (name == null) return;final SearchScope scope = p.getEffectiveSearchScope();if (!(scope instanceof LocalSearchScope)) return;<extra_id_0>public boolean execute(@NotNull final PsiElement element) {if (element instanceof PsiJavaCodeReferenceElement) {final PsiJavaCodeReferenceElement ref = (PsiJavaCodeReferenceElement)element;</CONTEXT> | PsiElement[] elements = ((LocalSearchScope)scope).getScope();if (elements == null || elements.length == 0) return;PsiElementProcessor processor = new PsiElementProcessor() {@Override |
66,193 | <BUG>import java.lang.instrument.Instrumentation;import java.util.Map;</BUG><CONTEXT>package org.glowroot.agent.embedded.init;import java.io.Closeable;import java.io.File;<extra_id_0>import java.util.concurrent.CountDownLatch;import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService;</CONTEXT> | import java.util.List;import java.util.Map; |
26,812 | <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; |
28,665 | <BUG>}} catch (Exception e) {msgLog.errorDatabaseException(e.getMessage());throw e;}return preparePage(alerts, pager);</BUG><CONTEXT>for (Row row : rsAlerts) {String payload = row.getString("payload");Alert alert = JsonUtil.fromJson(payload, Alert.class, thin);alerts.add(alert);}<extra_id_0>}</CONTEXT> | [DELETED] |
21,786 | <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]; |
483 | <BUG>import itdelatrisu.opsu.ui.UI;import java.awt.image.BufferedImage;</BUG><CONTEXT>import itdelatrisu.opsu.downloads.Download;import itdelatrisu.opsu.downloads.DownloadNode;import itdelatrisu.opsu.replay.PlaybackSpeed;import itdelatrisu.opsu.ui.Colors;import itdelatrisu.opsu.ui.Fonts;<extra_id_0>import java.io.BufferedInputStream;import java.io.BufferedReader;import java.io.File;</CONTEXT> | import itdelatrisu.opsu.user.UserButton;import itdelatrisu.opsu.user.UserList;import java.awt.image.BufferedImage; |
33,892 | <BUG>import com.maning.gankmm.R;import com.maning.gankmm.ui.adapter.ImagesAdapter;</BUG><CONTEXT>import android.support.v7.widget.Toolbar;import android.util.Log;import android.view.MenuItem;import android.widget.TextView;import android.widget.Toast;<extra_id_0>import com.maning.gankmm.ui.base.BaseActivity;import com.maning.gankmm.ui.iView.IImageView;import com.maning.gankmm.ui.presenter.impl.ImagePresenterImpl;</CONTEXT> | import com.maning.gankmm.skin.SkinManager;import com.maning.gankmm.ui.adapter.ImagesAdapter; |
57,779 | <BUG>return value;</BUG><CONTEXT>this.value = value;return result;}public long setAndGet(final long value) {this.value = value;<extra_id_0>}public void increment() {value++;</CONTEXT> | return this;public long getAndSet(final long value) {final long result = this.value;return this.value; |
33,279 | <BUG>public Set<UUID> getTaskConfigs() {</BUG><CONTEXT>LOGGER.error("Unable to clear config: {} Reason: {}", configName, e);}}}}<extra_id_0>final Collection<Protos.TaskInfo> taskInfos = stateStore.fetchTasks();final Set<UUID> activeConfigs = new HashSet<>();try {</CONTEXT> | private Set<UUID> getTaskConfigs() { |
15,947 | <BUG>PropertyType.GEOGRAPHIC_POSITION, PropertyType.IANA_PROPERTY, PropertyType.LAST_MODIFIED,PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER, PropertyType.PRIORITY,</BUG><CONTEXT>VEVENT ("VEVENT",Arrays.asList(PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.CATEGORIES,PropertyType.CLASSIFICATION, PropertyType.COMMENT, PropertyType.CONTACT, PropertyType.DATE_TIME_CREATED,PropertyType.DATE_TIME_END, PropertyType.DATE_TIME_STAMP, PropertyType.DATE_TIME_START,PropertyType.DESCRIPTION, PropertyType.DURATION, PropertyType.EXCEPTION_DATE_TIMES,<extra_id_0>PropertyType.RECURRENCE_DATE_TIMES, PropertyType.RECURRENCE_IDENTIFIER, PropertyType.RELATED_TO,PropertyType.RECURRENCE_RULE, PropertyType.REQUEST_STATUS, PropertyType.RESOURCES, PropertyType.SEQUENCE,PropertyType.STATUS, PropertyType.SUMMARY, PropertyType.TIME_TRANSPARENCY, PropertyType.UNIQUE_IDENTIFIER,</CONTEXT> | PropertyType.GEOGRAPHIC_POSITION, PropertyType.LAST_MODIFIED,PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER, PropertyType.PRIORITY, |
29,334 | <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)) |
25,671 | <BUG>Log.w(TAG, String.format("Received an unrecognised GCM registration error type. Ignoring. Error: %s", error));</BUG><CONTEXT>Log.e(TAG, "Device does not support GCM.");} else if ("INVALID_PARAMETERS".equals(error)) {Log.e(TAG, "The request sent by the device does not contain the expected parameters. This phone does not " +"currently support GCM.");} else {<extra_id_0>}} else if (registrationId != null) {Appboy.getInstance(context).registerAppboyPushMessages(registrationId);</CONTEXT> | AppboyLogger.w(TAG, String.format("Received an unrecognised GCM registration error type. Ignoring. Error: %s", error)); |
8,237 | <BUG>this(new Slf4jNoMdcEventSender());}public LoggingOutInterceptor(PrintWriter w) {this(new PrintWriterEventSender(w));</BUG><CONTEXT>import org.apache.cxf.message.Message;import org.apache.cxf.phase.Phase;@NoJSR250Annotationspublic class LoggingOutInterceptor extends AbstractLoggingInterceptor {public LoggingOutInterceptor() {<extra_id_0>}</CONTEXT> | this(new Slf4jVerboseEventSender()); |
23,112 | <BUG>private Map<GradoopId, PropertyValue> initMapping(List<Tuple2<GradoopId, PropertyValue>> tuples) {Map<GradoopId, PropertyValue> map = Maps.newHashMap();for (Tuple2<GradoopId, PropertyValue> tuple : tuples) {</BUG><CONTEXT>protected String getHeader() {return String.format("[%d][%s]: ",isIterative ? getIterationRuntimeContext().getSuperstepNumber() : 0,prefix != null && !prefix.isEmpty() ? prefix : " ");}<extra_id_0>map.put(tuple.f0, tuple.f1);</CONTEXT> | [DELETED] |
50,413 | <BUG>m_startupConfig = null; // release the serializedCatalog bytes.try {</BUG><CONTEXT>Thread.currentThread().setName("Iv2ExecutionSite: " + CoreUtils.hsIdToString(m_siteId));if (m_coreBindIds != null) {PosixJNAAffinity.INSTANCE.setAffinity(m_coreBindIds);}initialize(m_startupConfig.m_serializedCatalog, m_startupConfig.m_timestamp);<extra_id_0>while (m_shouldContinue) {if (m_rejoinState == kStateRunning) {SiteTasker task = m_scheduler.take();</CONTEXT> | final MinimumRatioMaintainer mrm = new MinimumRatioMaintainer(m_taskLogReplayRatio);try { |
57,737 | <BUG>public LinkedList<String[]> list = new LinkedList<>();public void init() {</BUG><CONTEXT>public final static int VON_NR = 0;public final static String NACH = "nach";public final static int NACH_NR = 1;public final static String[] COLUMN_NAMES = {VON, NACH};public static final int MAX_ELEM = 2;<extra_id_0>list.clear();</CONTEXT> | public static LinkedList<String[]> list = new LinkedList<>();public static void init() { |
1,441 | <BUG>MemoEntry._ID + " DESC", null);</BUG><CONTEXT>MemoEntry.COLUMN_REF_TOPIC__ID + " = ?", new String[]{String.valueOf(topicId)});}public Cursor selectMemo(long topicId) {Cursor c = db.query(MemoEntry.TABLE_NAME, null, MemoEntry.COLUMN_REF_TOPIC__ID + " = ?", new String[]{String.valueOf(topicId)}, null, null,<extra_id_0>if (c != null) {c.moveToFirst();}</CONTEXT> | MemoEntry.COLUMN_ORDER + " ASC", null); |
19,246 | <BUG>stream.setLineWidth(0.5F);stream.drawLine(textX, textY - lineOffset, textX + getTextWidth(textConfig.getFont(), textConfig.getFontSize(), text), textY - lineOffset);</BUG><CONTEXT>public static void addTextSimpleUnderlined(PDPageContentStream stream, PdfTextStyle textConfig, float textX, float textY, String text) {addTextSimple(stream, textConfig, textX, textY, text);try {float lineOffset = textConfig.getFontSize() / 8F;stream.setStrokingColor(textConfig.getColor());<extra_id_0>stream.stroke();} catch (IOException e) {</CONTEXT> | stream.moveTo(textX, textY - lineOffset);stream.lineTo(textX + getTextWidth(textConfig.getFont(), textConfig.getFontSize(), text), textY - lineOffset); |
16,207 | <BUG>import org.mariotaku.twidere.util.DataStoreUtils;import org.mariotaku.twidere.util.ImagePreloader;</BUG><CONTEXT>import org.mariotaku.twidere.receiver.NotificationReceiver;import org.mariotaku.twidere.service.LengthyOperationsService;import org.mariotaku.twidere.util.ActivityTracker;import org.mariotaku.twidere.util.AsyncTwitterWrapper;import org.mariotaku.twidere.util.DataStoreFunctionsKt;<extra_id_0>import org.mariotaku.twidere.util.InternalTwitterContentUtils;import org.mariotaku.twidere.util.JsonSerializer;import org.mariotaku.twidere.util.NotificationManagerWrapper;</CONTEXT> | import org.mariotaku.twidere.util.DebugLog;import org.mariotaku.twidere.util.ImagePreloader; |
67,306 | <BUG>File gpxFile = new File(gpsDir, fileName);</BUG><CONTEXT>EventBus.getDefault().post(new UploadEvents.GDocs().failed("Not authorized"));return;}try {File gpsDir = new File(preferenceHelper.getGpsLoggerFolder());<extra_id_0>LOG.debug("Submitting Google Docs job");String uploadFolderName = googleDriveFolderName;if(Strings.isNullOrEmpty(googleDriveFolderName)){</CONTEXT> | final File gpxFile = new File(gpsDir, fileName); |
48,310 | <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort;</BUG><CONTEXT>int w11 = w11index < roiDataLength ? roiDataArray[w11index] & 0xff : 0;if (baseIndex > roiDataLength || w00 == 0|| (w00 == 0 && w01 == 0 && w10 == 0 && w11 == 0)) {if (setDestinationNoData) {for (int k2 = 0; k2 < dst_num_bands; k2++) {<extra_id_0>}}} else {</CONTEXT> | dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; |
69,762 | <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); |
11,246 | <BUG>private String neo4jServerPort = System.getProperty( "neo4j.server.port" );private String neo4jRemoteShellPort = System.getProperty( "neo4j.remoteShell.port" );private String neo4jGraphDb = System.getProperty( "neo4j.graph.db" );private ServerControls server;</BUG><CONTEXT>public class UserControllerTest{private static final Logger LOGGER = Logger.getLogger( UserControllerTest.class.getName() );Properties properties = new Properties();InputStream input = null;<extra_id_0>@Before</CONTEXT> | private String dbmsConnectorHttpPort = System.getProperty( "dbms.connector.http.port" );private String dbmsConnectorBoltPort = System.getProperty( "dbms.connector.bolt.port" );private String dbmsShellPort = System.getProperty( "dbms.shell.port" );private String dbmsDirectoriesData = System.getProperty( "dbms.directories.data" );private ServerControls server; |
19,582 | <BUG>OutOfMemoryError e2 = new OutOfMemoryError("Cannot allocate new FloatPointer(" + size + "), "+ "totalBytes = " + totalBytes() + ", physicalBytes = " + physicalBytes());</BUG><CONTEXT>throw new OutOfMemoryError("Native allocator returned address == 0");}} catch (UnsatisfiedLinkError e) {throw new RuntimeException("No native JavaCPP library in memory. (Has Loader.load() been called?)", e);} catch (OutOfMemoryError e) {<extra_id_0>e2.initCause(e);</CONTEXT> | OutOfMemoryError e2 = new OutOfMemoryError("Cannot allocate new FloatPointer(" + size + "): "+ "totalBytes = " + formatBytes(totalBytes()) + ", physicalBytes = " + formatBytes(physicalBytes())); |
24,745 | <BUG>if (channel.state() != LifecycleState.CONNECTED) {LOGGER.debug("Rescheduling get Seqnos for channel {}, not connected (yet).", channel);return Observable.timer(100, TimeUnit.MILLISECONDS).flatMap(new Func1<Long, Observable<ByteBuf>>() {@Overridepublic Observable<ByteBuf> call(Long aLong) {return getSeqnosForChannel(channel);</BUG><CONTEXT>return getSeqnosForChannel(channel);}});}private Observable<ByteBuf> getSeqnosForChannel(final DcpChannel channel) {<extra_id_0>}</CONTEXT> | .just(channel).flatMap(new Func1<DcpChannel, Observable<ByteBuf>>() { |
19,827 | <BUG>});GLFWVidMode vidmode = glfwGetVideoMode(glfwGetPrimaryMonitor());</BUG><CONTEXT>public void invoke(long window, int key, int scancode, int action, int mods) {if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) {glfwSetWindowShouldClose(window, true);}}<extra_id_0>glfwSetWindowPos(windowHandle,(vidmode.width() - width) / 2,</CONTEXT> | if (!maximized) {GLFWVidMode vidmode = glfwGetVideoMode(glfwGetPrimaryMonitor()); |
46,229 | <BUG>Atom[] atomsOrigChainG = StructureTools.getAtomCAArray(original.getPolyChainByPDB("G"));Atom[] atomsOrigChainB = StructureTools.getAtomCAArray(original.getPolyChainByPDB("B"));</BUG><CONTEXT>assertTrue(chainIdsNoOps.contains("B"));assertTrue(chainIdsNoOps.contains("G"));assertFalse(chainIdsNoOps.contains("A"));assertFalse(chainIdsNoOps.contains("H"));Structure original = StructureIO.getStructure(pdbId);<extra_id_0>List<Chain> bioAssemblyChains = bioAssembly.getPolyChains();</CONTEXT> | Point3d[] atomsOrigChainG = Calc.atomsToPoints(StructureTools.getAtomCAArray(original.getPolyChainByPDB("G")));Point3d[] atomsOrigChainB = Calc.atomsToPoints(StructureTools.getAtomCAArray(original.getPolyChainByPDB("B"))); |
19,511 | <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)) |
13,298 | <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) { |
60,452 | <BUG>for (PopulationSize popSize : initialStateInput.get().popSizesInput.get())for (Population pop : popSize.getPopSizes(modelInput.get()).keySet())initState.set(pop, popSize.getPopSizes(modelInput.get()).get(pop));spec.setInitPopulationState(initState);</BUG><CONTEXT>+ "time or one or more end conditions.");} elsespec.setSimulationTime(Double.POSITIVE_INFINITY);}master.model.PopulationState initState = new master.model.PopulationState();<extra_id_0>spec.setInitNodes(initialStateInput.get().getInitNodes());</CONTEXT> | for (PopulationSize popSize : initialStateInput.get().popSizesInput.get()) {popSize.computePopulationSizes(modelInput.get());for (Population pop : popSize.getPopSizes().keySet())initState.set(pop, popSize.getPopSizes().get(pop));spec.setInitPopulationState(initState); |
7,215 | <BUG>PropertyType.GEOGRAPHIC_POSITION, PropertyType.IANA_PROPERTY, PropertyType.LAST_MODIFIED,PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER, PropertyType.PRIORITY,</BUG><CONTEXT>VEVENT ("VEVENT",Arrays.asList(PropertyType.ATTACHMENT, PropertyType.ATTENDEE, PropertyType.CATEGORIES,PropertyType.CLASSIFICATION, PropertyType.COMMENT, PropertyType.CONTACT, PropertyType.DATE_TIME_CREATED,PropertyType.DATE_TIME_END, PropertyType.DATE_TIME_STAMP, PropertyType.DATE_TIME_START,PropertyType.DESCRIPTION, PropertyType.DURATION, PropertyType.EXCEPTION_DATE_TIMES,<extra_id_0>PropertyType.RECURRENCE_DATE_TIMES, PropertyType.RECURRENCE_IDENTIFIER, PropertyType.RELATED_TO,PropertyType.RECURRENCE_RULE, PropertyType.REQUEST_STATUS, PropertyType.RESOURCES, PropertyType.SEQUENCE,PropertyType.STATUS, PropertyType.SUMMARY, PropertyType.TIME_TRANSPARENCY, PropertyType.UNIQUE_IDENTIFIER,</CONTEXT> | PropertyType.GEOGRAPHIC_POSITION, PropertyType.LAST_MODIFIED,PropertyType.LOCATION, PropertyType.NON_STANDARD, PropertyType.ORGANIZER, PropertyType.PRIORITY, |
50,354 | <BUG>if((!nodeTypeBinding.isEqualTo(otherTypeBinding) || !nodeTypeBinding.getQualifiedName().equals(otherTypeBinding.getQualifiedName()))) {Difference diff = new Difference(nodeTypeBinding.getQualifiedName(),otherTypeBinding.getQualifiedName(),DifferenceType.SUBCLASS_TYPE_MISMATCH);</BUG><CONTEXT>if(typeMatch) {if(other instanceof Expression && !(other instanceof NullLiteral)) {Expression o = (Expression)other;ITypeBinding nodeTypeBinding = node.resolveTypeBinding();ITypeBinding otherTypeBinding = o.resolveTypeBinding();<extra_id_0>astNodeDifference.addDifference(diff);}}</CONTEXT> | if(subclassTypeMismatch(nodeTypeBinding, otherTypeBinding)) {Difference diff = new Difference(nodeTypeBinding.getQualifiedName(),otherTypeBinding.getQualifiedName(),DifferenceType.SUBCLASS_TYPE_MISMATCH); |
23,412 | <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++) { |
8,854 | <BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),Method.class)</BUG><CONTEXT>CalendarScale calendarScale = (CalendarScale) child;destination.setCalendarScale(calendarScale);}},METHOD ("METHOD",<extra_id_0>{@Overridepublic VChild parse(VCalendar vCalendar, String contentLine)</CONTEXT> | Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),Method.class) |
37,696 | <CONTEXT></BUG>import com.rackspace.papi.service.config.ConfigurationService;import com.rackspace.papi.service.context.jndi.ServletContextHelper;import java.io.IOException;import javax.servlet.*;<extra_id_0>import com.rackspace.papi.service.config.ConfigurationService;import com.rackspace.papi.service.context.jndi.ServletContextHelper;import java.io.IOException;import javax.servlet.*;<BUG>import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;</BUG>import org.slf4j.Logger;public class HeaderIdentityFilter implements Filter {private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(HeaderIdentityFilter.class);</CONTEXT> | package com.rackspace.papi.components.identity.header;import com.rackspace.papi.components.identity.header.config.HeaderIdentityConfig;import com.rackspace.papi.filter.logic.impl.FilterLogicHandlerDelegate; |
17,569 | <BUG>bModel.setFirstSentenceNumber(BratAjaxCasUtil.getSentenceNumber(aJCas, firstSentence.getBegin()));bModel.setLastSentenceNumber(BratAjaxCasUtil.getSentenceNumber(aJCas, lastSentenceInPage.getBegin()));</BUG><CONTEXT>bModel.getSentenceEndOffset());int lastAddressInPage = getLastSentenceAddressInDisplayWindow(aJCas,getAddr(firstSentence), bModel.getPreferences().getWindowSize());Sentence lastSentenceInPage = (Sentence) selectByAddr(aJCas, FeatureStructure.class,lastAddressInPage);<extra_id_0>}</CONTEXT> | bModel.setFirstVisibleSentenceNumber(BratAjaxCasUtil.getSentenceNumber(aJCas, firstSentence.getBegin()));bModel.setLastVisibleSentenceNumber(BratAjaxCasUtil.getSentenceNumber(aJCas, lastSentenceInPage.getBegin())); |
27,336 | <BUG>.getAttribute(nativeAttrName).getType().getMetaType() == Type.MetaType.BLOB))) {throw new ParseConnectionDocumentException(" Blob data type is not supported for message class "+ msgClass);</BUG><CONTEXT>nativeAttrLength = Integer.parseInt((attrList.item(i).getAttributes().getNamedItem("length") //$NON-NLS-1$.getNodeValue()));}if ((msgClass == MessageClass.wbe || msgClass == MessageClass.wbe22)&& ((streamSchema.getAttribute(nativeAttrName) != null) && (streamSchema<extra_id_0>}Iterator<NativeSchema> it = nativeSchemaObjects.iterator();</CONTEXT> | throw new ParseConnectionDocumentException(Messages.getString("BLOB_NOT_SUPPORTED_FOR_MSG_CLASS", msgClass)); //$NON-NLS-1$ |
52,652 | <CONTEXT></BUG>{return null;}<extra_id_0>{return null;}<BUG>next_corner = p_line_arr[curr_no].intersection_approx(p_line_arr[curr_no + 1]);</BUG>next_dist = translate_line.distance_signed(next_corner);}if (Signum.of(prev_dist) != Signum.of(next_dist)){</CONTEXT> | double next_dist = translate_line.distance_signed(next_corner);while (Math.abs(next_dist) < c_epsilon)++corners_skipped_after;int curr_no = p_start_no + 3 + corners_skipped_after;if (curr_no >= p_line_arr.size() - 2)next_corner = p_line_arr.get(curr_no).intersection_approx(p_line_arr.get(curr_no + 1)); |
2,337 | <BUG>} else if (site.hasFlag(Site.FLAG_SINGLE_PAGE_BIG_PICTURE) && site.extraRule != null && site.extraRule.pictureUrl != null) {getPictureUrl(container.getContext(), viewHolder, picture, site, site.extraRule.pictureUrl, site.extraRule.pictureHighRes);</BUG><CONTEXT>final PictureViewHolder viewHolder = new PictureViewHolder(view);if (pictures != null && position < pictures.size()) {final Picture picture = pictures.get(getPicturePostion(position));if (picture.pic != null) {loadImage(container.getContext(), picture, viewHolder);<extra_id_0>} else if (site.picUrlSelector != null) {getPictureUrl(container.getContext(), viewHolder, picture, site, site.picUrlSelector, null);} else {</CONTEXT> | } else if (site.hasFlag(Site.FLAG_SINGLE_PAGE_BIG_PICTURE) && site.extraRule != null) {if(site.extraRule.pictureRule != null && site.extraRule.pictureRule.url != null)getPictureUrl(container.getContext(), viewHolder, picture, site, site.extraRule.pictureRule.url, site.extraRule.pictureRule.highRes);else if(site.extraRule.pictureUrl != null)getPictureUrl(container.getContext(), viewHolder, picture, site, site.extraRule.pictureUrl, site.extraRule.pictureHighRes); |
53,978 | <BUG>AnalysisService analysisService = AnalysisTestsHelper.createAnalysisServiceFromSettings(settingsBuilder().put("index.analysis.filter.my_ascii_folding.type", "asciifolding")</BUG><CONTEXT>tokenizer.setReader(new StringReader(source));assertTokenStreamContents(tokenFilter.create(tokenizer), expected);}@Testpublic void testPreserveOriginal() throws IOException {<extra_id_0>.put("index.analysis.filter.my_ascii_folding.preserve_original", true).build());TokenFilterFactory tokenFilter = analysisService.tokenFilter("my_ascii_folding");</CONTEXT> | .put("path.home", createTempDir().toString()).put("index.analysis.filter.my_ascii_folding.type", "asciifolding") |
37,307 | <BUG>import java.io.ByteArrayInputStream;import java.io.File;import java.io.FileOutputStream;import java.io.PrintStream;</BUG><CONTEXT>import org.gradle.launcher.daemon.server.Daemon;import org.gradle.launcher.daemon.server.DaemonServices;import org.gradle.logging.LoggingManagerInternal;import org.gradle.logging.LoggingServiceRegistry;import org.gradle.messaging.remote.Address;<extra_id_0>import java.util.ArrayList;</CONTEXT> | import org.gradle.process.internal.child.EncodedStream;import java.io.*; |
6,464 | <BUG>MapReduceManager mrManager = applicationManager.getMapReduceManager("BodyTracker");mrManager.start();</BUG><CONTEXT>streamManager.send(createEvent(schema, "AAPL", 5, 300.0f));streamManager.send(createEvent(schema, "AAPL", 3, 298.34f));streamManager.send(createEvent(schema, "AAPL", 50, 305.23f));streamManager.send(createEvent(schema, "AAPL", 1000, 284.13f));float aaplTotal = 5 * 300.0f + 3 * 298.34f + 50 * 305.23f + 1000 * 284.13f;<extra_id_0>mrManager.waitForFinish(180, TimeUnit.SECONDS);KeyValueTable pricesDS = (KeyValueTable) getDataset("prices").get();</CONTEXT> | MapReduceManager mrManager = applicationManager.getMapReduceManager("BodyTracker").start(); |
65,508 | <BUG>String pageTranslationUri =UriBuilder.fromUri(baseUri).path(PageTranslationResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName(), language).toString();</BUG><CONTEXT>}}for (String language : languages) {Translation translation = objectFactory.createTranslation();translation.setLanguage(language);<extra_id_0>Link pageTranslationLink = objectFactory.createLink();pageTranslationLink.setHref(pageTranslationUri);</CONTEXT> | uri(baseUri, PageTranslationResource.class, doc.getWiki(), doc.getSpace(), doc.getName(), language); |
14,691 | <BUG>String pageTranslationUri =UriBuilder.fromUri(baseUri).path(PageResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName()).toString();</BUG><CONTEXT>if (!languages.isEmpty()) {if (!doc.getDefaultLanguage().equals("")) {translations.setDefault(doc.getDefaultLanguage());Translation translation = objectFactory.createTranslation();translation.setLanguage(doc.getDefaultLanguage());<extra_id_0>Link pageTranslationLink = objectFactory.createLink();pageTranslationLink.setHref(pageTranslationUri);</CONTEXT> | uri(baseUri, PageResource.class, doc.getWiki(), doc.getSpace(), doc.getName()); |
28,461 | <BUG>public static final WeekDay JODATIME_WEEK_DAY = new WeekDay(1, false);</BUG><CONTEXT>package com.cronutils.mapper;public class ConstantsMapper {private ConstantsMapper() {}public static final WeekDay QUARTZ_WEEK_DAY = new WeekDay(2, false);<extra_id_0>public static final WeekDay CRONTAB_WEEK_DAY = new WeekDay(1, true);public static int weekDayMapping(WeekDay source, WeekDay target, int weekday){return source.mapTo(weekday, target);</CONTEXT> | public static final WeekDay JAVA8 = new WeekDay(1, false); |
31,610 | <BUG>setSupportActionBar(mToolbar);getSupportActionBar().setDisplayHomeAsUpEnabled(true);}</BUG><CONTEXT>@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_seattle_express_lanes);mToolbar = (Toolbar) findViewById(R.id.toolbar);<extra_id_0>@Overridepublic boolean onOptionsItemSelected(MenuItem item) {</CONTEXT> | if(getSupportActionBar() != null){getSupportActionBar().setDisplayShowHomeEnabled(true);}} |
52,360 | <BUG>obj.setMaxBodyLength(((Number)json.getValue("maxBodyLength")).intValue());}</BUG><CONTEXT>}if (json.getValue("heartbeat") instanceof JsonObject) {obj.setHeartbeat(((JsonObject)json.getValue("heartbeat")).copy());}if (json.getValue("maxBodyLength") instanceof Number) {<extra_id_0>if (json.getValue("maxHeaderLength") instanceof Number) {obj.setMaxHeaderLength(((Number)json.getValue("maxHeaderLength")).intValue());}</CONTEXT> | if (json.getValue("maxFrameInTransaction") instanceof Number) {obj.setMaxFrameInTransaction(((Number)json.getValue("maxFrameInTransaction")).intValue()); |
67,000 | <BUG>import org.apache.jmeter.control.gui.WorkBenchGui;import org.apache.jmeter.engine.RemoteJMeterEngine;</BUG><CONTEXT>import org.apache.avalon.excalibur.cli.CLOptionDescriptor;import org.apache.avalon.excalibur.cli.CLUtil;import org.apache.jmeter.config.gui.AbstractConfigGui;import org.apache.jmeter.control.gui.AbstractControllerGui;import org.apache.jmeter.control.gui.TestPlanGui;<extra_id_0>import org.apache.jmeter.engine.RemoteJMeterEngineImpl;import org.apache.jmeter.engine.StandardJMeterEngine;import org.apache.jmeter.engine.event.LoopIterationEvent;</CONTEXT> | import org.apache.jmeter.engine.ClientJMeterEngine;import org.apache.jmeter.engine.JMeterEngine;import org.apache.jmeter.engine.RemoteJMeterEngine; |
51,588 | <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 { |
60,149 | <BUG>}public static PsiElement getContext(PsiFile file, int offset) {</BUG><CONTEXT>myBuilder.insertText(offset, text);}public void deleteTemplateKey(String key) {int caretAt = myEditor.getCaretModel().getOffset();myEditor.getDocument().deleteString(caretAt - key.length(), caretAt);<extra_id_0>PsiElement element = null;if (!InjectedLanguageManager.getInstance(file.getProject()).isInjectedFragment(file)) {</CONTEXT> | @NotNullpublic static PsiElement getContext(@NotNull PsiFile file, int offset) { |
3,800 | <BUG>public void trash(String id) {restTemplate.postForLocation(DRIVE_FILES_URL + id + "/trash", null);</BUG><CONTEXT>return driveFileQuery().trashed(true).getPage();}@Override<extra_id_0>}</CONTEXT> | .parentIs(parent).fromPage(pageToken).trashed(false).hidden(false) |
42,125 | <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 { |
63,762 | <BUG>import java.util.Date;import java.util.HashSet;import java.util.List;import java.util.Set;</BUG><CONTEXT>import java.sql.SQLException;import java.sql.Statement;import java.text.MessageFormat;import java.util.ArrayList;import java.util.Collection;<extra_id_0>import java.util.concurrent.locks.Lock;</CONTEXT> | import java.util.HashMap;import java.util.Map;import java.util.Set; |
57,314 | <BUG>topicForm.setSpaceGroupId(uiTopicContainer.getAncestorOfType(UIForumPortlet.class).getSpaceGroupId());} else {</BUG><CONTEXT>Topic topic = uiTopicContainer.getForumService().getTopicByPath(path.append(ForumUtils.SLASH).append(topicIds.get(0)).toString(), false);UITopicForm topicForm = uiTopicContainer.openPopup(UITopicForm.class, "UIEditTopicContainer", 900, 545);topicForm.setTopicIds(uiTopicContainer.categoryId, uiTopicContainer.forumId, uiTopicContainer.forum);topicForm.setUpdateTopic(topic, true);topicForm.setMod(uiTopicContainer.isModerator);<extra_id_0>warningMessage();}</CONTEXT> | String spaceGroupId = uiTopicContainer.getAncestorOfType(UIForumPortlet.class).getSpaceGroupId();if(Utils.CATEGORY_SPACE_ID_PREFIX.equals(uiTopicContainer.categoryId) && CommonUtils.isEmpty(spaceGroupId)) {spaceGroupId = SpaceUtils.SPACE_GROUP + "/" + uiTopicContainer.forumId.replace(Utils.FORUM_SPACE_ID_PREFIX, ""); |
64,687 | <BUG>langues.addAll(tempMapL.entrySet());}</BUG><CONTEXT>langues = new ArrayList<>();HashMap<String, String> tempMapL = new HashMap<>();for (NodeTermTraduction ntt : tempNTT) {tempMapL.put(ntt.getLang(), ntt.getLexicalValue());}<extra_id_0>langueEdit = "";valueEdit = "";if (!tradExist) {</CONTEXT> | if(newTraduction) {nom = termHelper.getThisTerm(connect.getPoolConnexion(),idC, idTheso, idlangue).getLexical_value(); |
67,376 | <CONTEXT>import com.cronutils.model.field.CronField;</BUG>import com.cronutils.model.field.CronFieldName;import com.cronutils.model.field.expression.FieldExpression;import com.cronutils.model.field.expression.On;import com.google.common.collect.Lists;<extra_id_0>import com.cronutils.model.field.CronFieldName;import com.cronutils.model.field.expression.FieldExpression;import com.cronutils.model.field.expression.On;import com.google.common.collect.Lists;<BUG>import org.apache.commons.lang3.Validate;import org.joda.time.DateTime;import java.util.List;</BUG>class OnDayOfMonthValueGenerator extends FieldValueGenerator {private int year;</CONTEXT> | package com.cronutils.model.time.generator;import java.time.DayOfWeek;import java.time.LocalDate;import java.util.List;import com.cronutils.model.field.CronField; |
61,185 | <BUG>import com.gisgraphy.util.StringUtil;public class GeonamesFeatureSimpleImporter extends AbstractSimpleImporterProcessor {</BUG><CONTEXT>import com.gisgraphy.domain.valueobject.FeatureCode;import com.gisgraphy.domain.valueobject.GISSource;import com.gisgraphy.domain.valueobject.NameValueDTO;import com.gisgraphy.helper.FeatureClassCodeHelper;import com.gisgraphy.helper.GeolocHelper;<extra_id_0>protected static final Logger logger = LoggerFactory.getLogger(GeonamesFeatureSimpleImporter.class);protected ICityDao cityDao;protected IGisFeatureDao gisFeatureDao;</CONTEXT> | import com.vividsolutions.jts.geom.Point;public class GeonamesFeatureSimpleImporter extends AbstractSimpleImporterProcessor { |
5,215 | <BUG>dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat;</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]] = destinationNoDataFloat[k2]; |
1,131 | <BUG>import java.util.Map;import org.apache.shiro.SecurityUtils;</BUG><CONTEXT>package org.hqu.production_ms.controller;import java.util.HashMap;import java.util.List;<extra_id_0>import org.apache.shiro.subject.Subject;import org.hqu.production_ms.domain.custom.ActiveUser;import org.hqu.production_ms.domain.custom.CustomResult;</CONTEXT> | import javax.validation.Valid;import org.apache.shiro.SecurityUtils; |
22,629 | <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; |
4,128 | <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; |
61,498 | <BUG>import com.google.android.exoplayer2.DefaultLoadControl;import com.google.android.exoplayer2.LoadControl;import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;import com.google.android.exoplayer2.trackselection.TrackSelector;import com.google.android.media.tv.companionlibrary.TvPlayer;import com.squareup.picasso.Picasso;import java.io.IOException;import java.util.Arrays;public class CumulusVideoPlayback extends AppCompatActivity {</BUG><CONTEXT>import com.felkertech.cumulustv.model.JsonChannel;import com.felkertech.cumulustv.player.CumulusTvPlayer;import com.felkertech.cumulustv.player.CumulusWebPlayer;import com.felkertech.cumulustv.player.MediaSourceFactory;import com.felkertech.n.cumulustv.R;<extra_id_0>private static final String TAG = CumulusVideoPlayback.class.getSimpleName();</CONTEXT> | import java.util.concurrent.ExecutionException;public class CumulusVideoPlayback extends AppCompatActivity { |
8,518 | <BUG>Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),CalendarScale.class)</BUG><CONTEXT>import jfxtras.labs.icalendarfx.properties.calendar.Version;import jfxtras.labs.icalendarfx.properties.component.misc.NonStandardProperty;public enum CalendarProperty{CALENDAR_SCALE ("CALSCALE",<extra_id_0>{@Overridepublic VChild parse(VCalendar vCalendar, String contentLine)</CONTEXT> | Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),CalendarScale.class) |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 33