id
int64 2
70k
| bug_ctx
stringlengths 56
37.5k
| fixed
stringlengths 1
37k
|
---|---|---|
7,961 | [BUG]import android.util.Log;import org.mariotaku.twidere.BuildConfig;import org.mariotaku.twidere.Constants;import org.mariotaku.twidere.util.JsonSerializer;[BUG][CONTEXT]import android.content.Context;import android.content.SharedPreferences;import android.location.Location;import android.os.AsyncTask;import android.support.annotation.NonNull;<extra_id_0>import org.mariotaku.twidere.util.Utils;[CONTEXT] | import org.mariotaku.twidere.util.DebugLog;import org.mariotaku.twidere.util.JsonSerializer; |
25,895 | [BUG]public final class FoxGuardMain {public final Cause pluginCause = Cause.builder().named("plugin", this).build();private static FoxGuardMain instanceField;[BUG][CONTEXT]@Dependency(id = "foxcore")},description = "A world protection plugin built for SpongeAPI. Requires FoxCore.",authors = {"gravityfox"},url = "https://github.com/FoxDenStudio/FoxGuard")<extra_id_0>@Injectprivate Logger logger;[CONTEXT] | private static FoxGuardMain instanceField; |
58,394 | [BUG]final MySQLConnection connection = new MySQLConnection(this.dataSource);connection.open();[BUG][CONTEXT]}public MySQLTable getTable (final String name) {return new MySQLTable(this, name);}public MySQLConnection obtainConnection () {<extra_id_0>return connection;}public void releaseConnection (final MySQLConnection connection) {[CONTEXT] | public String getDBName () {return this.dbName;final MySQLConnection connection = new MySQLConnection(this);connection.open(); |
33,376 | [BUG]ChinaPhoneHelper.setStatusBar(this,true);[BUG][CONTEXT]}@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_memo);<extra_id_0>topicId = getIntent().getLongExtra("topicId", -1);if (topicId == -1) {finish();[CONTEXT] | ChinaPhoneHelper.setStatusBar(this, true); |
11,420 | [BUG]super(PDTSearchQuery.toPredicateGoal(goal), goal.getTermString(), true);[BUG][CONTEXT]import org.eclipse.search.ui.text.Match;public class ContextAwareDefinitionsSearchQuery extends PDTSearchQuery {private String filePath;private int line;public ContextAwareDefinitionsSearchQuery(Goal goal) {<extra_id_0>setSearchType("Definitions and declarations of");filePath = QueryUtils.quoteAtomIfNeeded(goal.getFilePath());line = goal.getLine();[CONTEXT] | super(PDTSearchQuery.toPredicateGoal(goal), PDTCommonUtil.cropText(goal.getTermString(), 100), true); |
32,183 | [BUG]import javax.annotation.PostConstruct;import javax.annotation.PreDestroy;[BUG][CONTEXT]package org.jboss.as.test.integration.ejb.mdb.messagedrivencontext;<extra_id_0>import javax.annotation.Resource;import javax.ejb.ActivationConfigProperty;import javax.ejb.EJBException;[CONTEXT] | [DELETED] |
66,204 | [BUG]i.set(InstrumentationConfig.create(instrumentationConfig));found = true;break;}[BUG][CONTEXT]boolean found = false;for (ListIterator<InstrumentationConfig> i = configs.listIterator(); i.hasNext();) {InstrumentationConfig loopConfig = i.next();String loopVersion = Versions.getVersion(loopConfig.toProto());if (loopVersion.equals(priorVersion)) {<extra_id_0>}[CONTEXT] | i.set(config);} else if (loopConfig.equals(config)) {throw new IllegalStateException("This exact instrumentation already exists"); |
63,162 | [BUG]import org.jboss.as.test.module.util.TestModule;import org.jboss.as.test.shared.ModuleUtils;public class SetupModuleServerSetupTask implements ServerSetupTask{private TestModule testModule;[BUG][CONTEXT]package org.jboss.as.test.integration.ejb.singleton.dependson.session;import org.jboss.as.arquillian.api.ServerSetupTask;import org.jboss.as.arquillian.container.ManagementClient;import org.jboss.as.test.integration.ejb.singleton.dependson.mdb.CallCounterInterface;<extra_id_0>@Override[CONTEXT] | import org.jboss.as.test.shared.TempTestModule;private volatile TempTestModule testModule; |
12,329 | [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); |
4,546 | [BUG]import org.rajawali3d.math.Matrix4;import org.rajawali3d.math.vector.Vector3;[BUG][CONTEXT]import org.rajawali3d.materials.Material;import org.rajawali3d.materials.methods.DiffuseMethod;import org.rajawali3d.materials.textures.ATexture;import org.rajawali3d.materials.textures.StreamingTexture;import org.rajawali3d.materials.textures.Texture;<extra_id_0>import org.rajawali3d.primitives.ScreenQuad;import org.rajawali3d.primitives.Sphere;import org.rajawali3d.renderer.RajawaliRenderer;[CONTEXT] | import org.rajawali3d.math.Quaternion;import org.rajawali3d.math.vector.Vector3; |
38,102 | [BUG]largeImagepicasso.load(imageResult.getSampleUrl())[BUG][CONTEXT]void downloadViaPicasso(final Subscriber<File> subscriber) {if (mNavigationBar.getProgress()) {return;}mNavigationBar.setProgressBar(true);<extra_id_0>.placeholder(ivDetailedCard.getDrawable()).into(ivDetailedCard, new Callback() {@Override public void onSuccess() {[CONTEXT] | largeImagepicasso.load(imageResult.getDownload_url()) |
18,089 | [BUG]SetSerializer(JavaType type, Class<?> clz, boolean compact) {super(type, clz, compact);}[BUG][CONTEXT]import com.fasterxml.jackson.databind.JavaType;import javaslang.collection.Set;import java.io.IOException;class SetSerializer<T extends Set<?>> extends ValueSerializer<T> {private static final long serialVersionUID = 1L;<extra_id_0>@OverrideObject toJavaObj(T value) throws IOException {[CONTEXT] | SetSerializer(JavaType type, Class<?> clz) {super(type, clz);} |
17,802 | [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.updateProfileBackgroundImage(fileBody, tile);} finally {<extra_id_0>}[CONTEXT] | twitter.updateProfileBannerImage(fileBody);if (deleteImage) {Utils.deleteMedia(context, imageUri); |
38,836 | [CONTEXT]public InitEventRequestPacket(UINT32 connectionNumber) {super(Type.INIT_EVENT_REQUEST);[BUG]Validators.validateNonNull("connectionNumber", connectionNumber);this.connectionNumber = connectionNumber;<extra_id_0>Validators.validateNonNull("connectionNumber", connectionNumber);this.connectionNumber = connectionNumber;[BUG]super.payload = connectionNumber.bytes();[BUG]}public static InitEventRequestPacket read(PtpInputStream pis) throws IOException {Validators.validateNonNull("pis", pis);long length = pis.readUINT32().longValue();[CONTEXT] | this.payload = connectionNumber.bytes(); |
1,455 | [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) { |
9,175 | [BUG]import org.glowroot.agent.embedded.repo.AgentDao;import org.glowroot.agent.embedded.repo.AggregateDao;import org.glowroot.agent.embedded.repo.GaugeValueDao;[BUG][CONTEXT]package org.glowroot.agent.embedded.init;import java.io.File;import java.util.List;import org.glowroot.agent.collector.Collector;<extra_id_0>import org.glowroot.agent.embedded.repo.TraceDao;import org.glowroot.wire.api.model.AgentConfigOuterClass.AgentConfig;[CONTEXT] | import org.glowroot.agent.embedded.repo.EnvironmentDao;import org.glowroot.agent.embedded.repo.GaugeValueDao; |
33,595 | [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]; |
24,654 | [CONTEXT]import org.camunda.bpm.extension.reactor.bus.CamundaSelector;import org.camunda.bpm.extension.reactor.listener.SubscriberTaskListener;[BUG]import reactor.bus.EventBus;@CamundaSelector(type = "userTask", event = TaskListener.EVENTNAME_CREATE)<extra_id_0>import reactor.bus.EventBus;@CamundaSelector(type = "userTask", event = TaskListener.EVENTNAME_CREATE)[BUG]public class TaskCreateListener extends SubscriberTaskListener {public TaskCreateListener(EventBus eventBus) {register(eventBus);}[BUG]@Override[CONTEXT] | public class TaskCreateListener implements TaskListener {public TaskCreateListener(CamundaEventBus eventBus) {eventBus.register(this);} |
36,158 | [BUG]boolean coerce = false;boolean ignoreMalformed = false;XContentParser.Token token;[BUG][CONTEXT]GeoDistance geoDistance = GeoDistance.DEFAULT;boolean reverse = false;MultiValueMode sortMode = null;NestedInnerQueryParseSupport nestedHelper = null;final boolean indexCreatedBeforeV2_0 = context.indexShard().getIndexSettings().getIndexVersionCreated().before(Version.V_2_0_0);<extra_id_0>String currentName = parser.currentName();while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {[CONTEXT] | boolean coerce = GeoDistanceSortBuilder.DEFAULT_COERCE;boolean ignoreMalformed = GeoDistanceSortBuilder.DEFAULT_IGNORE_MALFORMED;XContentParser.Token token; |
46,442 | [CONTEXT][BUG]PagingMessages pagingMsgs = new PagingMessages();pagingMsgs.setPageNum(pageNum);pagingMsgs.setSize(size); // 设置返回的 size 为本次返回消息的数量<extra_id_0>PagingMessages pagingMsgs = new PagingMessages();pagingMsgs.setPageNum(pageNum);pagingMsgs.setSize(size); // 设置返回的 size 为本次返回消息的数量[BUG]pagingMsgs.setMsgs(systemassages);long count = messageDao.getUserMessagesCount(uid);if ((pageNum + 1) * size >= count) {[BUG]pagingMsgs.setHasMore(false);} else {[CONTEXT] | @RequestMapping(value = "get/msg", method = GET)public PagingMessages getMessages(@RequestParam Integer uid,@RequestParam Integer pageNum, @RequestParam Integer size) {int offset = pageNum * size;List<Message> messages = messageDao.getMessages(uid, offset, size);pagingMsgs.setMsgs(messages);long count = messageDao.getMessagesCount(uid);if ((pageNum + 1) * size >= count) { |
45,035 | [BUG]public class SimpleAnalyzerProvider extends AbstractAnalyzerProvider<SimpleAnalyzer> {[BUG][CONTEXT]import org.elasticsearch.index.Index;import org.elasticsearch.index.settings.IndexSettings;import org.elasticsearch.util.inject.Inject;import org.elasticsearch.util.inject.assistedinject.Assisted;import org.elasticsearch.util.settings.Settings;<extra_id_0>private final SimpleAnalyzer simpleAnalyzer;@Inject public SimpleAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {super(index, indexSettings, name);[CONTEXT] | public class SimpleAnalyzerProvider extends AbstractIndexAnalyzerProvider<SimpleAnalyzer> { |
29,177 | [BUG]if (message.getEntityID() == null)[BUG][CONTEXT]message = new BMessage();message.setText("No Messages...");message.setType(bText.ordinal());}else message = thread.getMessages().get(0);<extra_id_0>{Log.e(TAG, "Message has no entity");Log.e(TAG, "Messages Amount: " + thread.getMessages().size()[CONTEXT] | if (message.getId() == null) |
32,750 | [BUG]import org.jetbrains.jet.config.CompilerConfiguration;import org.jetbrains.jet.lang.psi.JetFile;[BUG][CONTEXT]import org.jetbrains.jet.cli.jvm.JVMConfigurationKeys;import org.jetbrains.jet.codegen.*;import org.jetbrains.jet.codegen.state.GenerationState;import org.jetbrains.jet.codegen.state.Progress;import org.jetbrains.jet.config.CommonConfigurationKeys;<extra_id_0>import org.jetbrains.jet.lang.psi.JetPsiUtil;import org.jetbrains.jet.lang.resolve.BindingTrace;import org.jetbrains.jet.lang.resolve.ScriptNameUtil;[CONTEXT] | import org.jetbrains.jet.lang.descriptors.ModuleDescriptorImpl;import org.jetbrains.jet.lang.psi.JetFile; |
20,762 | [BUG]String[] identifierName = id != null ? id.getIdentifierName() : null;[BUG][CONTEXT]protected boolean isCollectionType(Class type) {return Collection.class.isAssignableFrom(type) || Map.class.isAssignableFrom(type);}protected boolean isExcludedProperty(String propertyName, ClassMapping classMapping, Collection transients, boolean includeIdentifiers) {IdentityMapping id = classMapping != null ? classMapping.getIdentifier() : null;<extra_id_0>return isExcludeId(propertyName, id, identifierName,includeIdentifiers) ||EXCLUDED_PROPERTIES.contains(propertyName) ||transients.contains(propertyName);[CONTEXT] | String[] identifierName = id != null && !includeIdentifiers ? id.getIdentifierName() : null; |
65,441 | [BUG]package com.cronutils.model.time.generator;import com.cronutils.model.field.CronField;[BUG][CONTEXT]<extra_id_0>import com.cronutils.model.field.expression.Every;import com.cronutils.model.field.expression.FieldExpression;import com.google.common.annotations.VisibleForTesting;[CONTEXT] | import java.time.ZonedDateTime;import java.util.List;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import com.cronutils.model.field.CronField; |
43,784 | [BUG]if (BuildConfig.DEBUG) {Log.v(LOGTAG, "Fetching cached location", new Exception());}[BUG][CONTEXT]context.getApplicationContext().sendBroadcast(intent);}}@Nullablepublic static Location getCachedLocation(Context context) {<extra_id_0>Location location = null;[CONTEXT] | DebugLog.v(LOGTAG, "Fetching cached location", new Exception()); |
58,829 | [CONTEXT]private final JobEater jobEater;[BUG]private final LogApplier logApplier;private final String masterIp;private final int masterPort;<extra_id_0>private final LogApplier logApplier;private final String masterIp;private final int masterPort;[BUG]private Connection masterConnection;private long masterVersion;[BUG]public AbstractSlave( String path, Map<String,String> params,String masterIp, int masterPort ){[CONTEXT] | import org.neo4j.onlinebackup.net.Job;import org.neo4j.onlinebackup.net.JobEater;public abstract class AbstractSlave implements Callbackprivate final EmbeddedReadOnlyGraphDatabase graphDb;private final XaDataSource[] xaDataSources;private final Connection[] masterConnections;private final JobEater jobEater; |
61,338 | [BUG]if ( datasourceService == null ) {logger.warn( "IDBDatasourceService bean not initialized. "+ "Unable to clear data source: " + name );[BUG][CONTEXT]logger.error( message );throw new ConnectionServiceException( message, dme );}}private void clearDatasource( String name ) {<extra_id_0>return;}[CONTEXT] | logger.warn( "IDBDatasourceService bean not initialized. Unable to clear data source: " + name ); |
299 | [BUG]import android.content.Context;import android.content.Intent;import android.os.Bundle;import com.firebase.ui.auth.ui.ActivityHelper;[BUG][CONTEXT]package com.firebase.ui.auth;<extra_id_0>import com.firebase.ui.auth.ui.AppCompatBase;[CONTEXT] | import android.content.DialogInterface;import android.net.ConnectivityManager;import android.util.Log;import com.firebase.ui.auth.ui.ActivityHelper; |
22,404 | [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); |
50,870 | [BUG]this.deltaX[0] = (int)getRelativeX(e, canvas) - touchX[0];this.deltaY[0] = (int)getRelativeY(e, canvas) - touchY[0];this.touchX[0] = (int)getRelativeX(e, canvas);this.touchY[0] = (int)getRelativeY(e, canvas);}[BUG][CONTEXT]this.deltaX[0] = (int)getMovementXJSNI(e);this.deltaY[0] = (int)getMovementYJSNI(e);this.touchX[0] += getMovementXJSNI(e);this.touchY[0] += getMovementYJSNI(e);} else {<extra_id_0>this.currentEventTimeStamp = TimeUtils.nanoTime();[CONTEXT] | this.deltaX[0] = getRelativeX(e, canvas) - touchX[0];this.deltaY[0] = getRelativeY(e, canvas) - touchY[0];this.touchX[0] = getRelativeX(e, canvas);this.touchY[0] = getRelativeY(e, canvas);} |
31,797 | [CONTEXT]encoding + "\"?>" ) );assertTrue( "Test for xml footer", changelogXml.endsWith( "</changelog>" ) );[BUG]File outputDir = (File) getVariableValueFromObject( mojo, "outputDirectory" );<extra_id_0>File outputDir = (File) getVariableValueFromObject( mojo, "outputDirectory" );[BUG]File outputHtml = new File( outputDir, "file-activity.html" );assertTrue( "Test html generated", outputHtml.exists() );}protected void setUp()throws Exception{super.setUp();scmManager = new ScmManagerStub();[BUG]}[CONTEXT] | mojo.execute();renderer( mojo, outputHtml );assertTrue( outputHtml.getAbsolutePath() + " not generated!", outputHtml.exists() );assertTrue( outputHtml.getAbsolutePath() + " is empty!", outputHtml.length() > 0 ); |
11,085 | [CONTEXT]private static FGStorageManager instance;private final Logger logger = FoxGuardMain.instance().getLogger();[BUG]private final Set<LoadEntry> loaded = new HashSet<>();private final Path directory = getDirectory();private final Map<String, Path> worldDirectories;<extra_id_0>private final Set<LoadEntry> loaded = new HashSet<>();private final Path directory = getDirectory();private final Map<String, Path> worldDirectories;[BUG]private FGStorageManager() {defaultModifiedMap = new CacheMap<>((k, m) -> {[BUG]if (k instanceof IFGObject) {m.put((IFGObject) k, true);return true;[CONTEXT] | public final HashMap<IFGObject, Boolean> defaultModifiedMap;private final UserStorageService userStorageService;private final Logger logger = FoxGuardMain.instance().getLogger();userStorageService = FoxGuardMain.instance().getUserStorage();defaultModifiedMap = new CacheMap<>((k, m) -> { |
65,843 | [CONTEXT]this.lastName = pgpPublicKeyData.getLastName();[BUG]this.birthday = newUserRegistrationForm.getBirthday();this.googleUser = googleUser;if (googleUser.getEmail() != null) {<extra_id_0>this.birthday = newUserRegistrationForm.getBirthday();this.googleUser = googleUser;if (googleUser.getEmail() != null) {[BUG]this.email = new Email(googleUser.getEmail()); // or email = pgpPublicKeyData.getUserEmail()[BUG]}if (newUserRegistrationForm.getUserInfo() != null) {this.userInfo = new Text(newUserRegistrationForm.getUserInfo());[CONTEXT] | NewUserRegistrationForm newUserRegistrationForm) {this.userId = googleUser.getUserId();this.webSafeStringKey = Key.create(CryptonomicaUser.class, googleUser.getUserId()).toWebSafeString();this.firstName = pgpPublicKeyData.getFirstName().toLowerCase();this.lastName = pgpPublicKeyData.getLastName().toLowerCase();this.email = new Email(googleUser.getEmail().toLowerCase()); // or email = pgpPublicKeyData.getUserEmail() |
13,182 | [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) { |
2,187 | [BUG]public class ErrorController extends AbstractController {@RequestMapping(value = {"/404"})[BUG][CONTEXT]package com.easytoolsoft.easyreport.web.controller.common;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;@Controller@RequestMapping(value = "/error")<extra_id_0>public String error404() {return "/error/404";}[CONTEXT] | public class ErrorController {@RequestMapping(value = {"/404"}) |
57,979 | [BUG].override(width, height).placeholder(R.mipmap.sporx)[BUG][CONTEXT]layoutParams.height = height;imageView.setLayoutParams(layoutParams);int width = this.getResources().getDisplayMetrics().widthPixels;Glide.with(this).load(img_link)<extra_id_0>.error(R.mipmap.sporx).into(imageView);new ProgressTask().execute(feed_link);[CONTEXT] | .fitCenter().placeholder(R.mipmap.sporx) |
17,209 | [BUG]bullet("Compilation took " + compileTime + " seconds");[BUG][CONTEXT]editor.updateOutputTree();}compileSize();long endTime = System.currentTimeMillis();double compileTime = (double)(endTime - startTime) / 1000d;<extra_id_0>ctx.executeKey("compile.postcmd");return true;}[CONTEXT] | if (!Base.isQuiet()) bullet("Compilation took " + compileTime + " seconds"); |
40,031 | [BUG]zkc = ZooKeeperClientBuilder.newBuilder().uri(createURI("/")).zkAclId(null).sessionTimeoutMs(10000).build();[BUG][CONTEXT]return URI.create("distributedlog://127.0.0.1:" + zkPort + path);}@Beforepublic void setup() throws Exception {executorService = Executors.newSingleThreadScheduledExecutor();<extra_id_0>conf = new DistributedLogConfiguration();[CONTEXT] | zkc = TestZooKeeperClientBuilder.newBuilder().build(); |
10,081 | [BUG]private static class PropertiesSerializer implements Serializer {public byte[] getBytes(Object o) {Properties p = (Properties) o;[BUG][CONTEXT]private class Shutdown implements Runnable {public void run() {close();}}<extra_id_0>try {[CONTEXT] | private static class PropertiesSerializer implements Serializer<Properties> {public byte[] getBytes(Properties p) { |
24,334 | [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); |
56,045 | [BUG]String accessKey = conf.get(ACCESS_KEY, null);String secretKey = conf.get(SECRET_KEY, null);[BUG][CONTEXT]public void initialize(URI name, Configuration conf) throws IOException {super.initialize(name, conf);uri = URI.create(name.getScheme() + "://" + name.getAuthority());workingDir = new Path("/user", System.getProperty("user.name")).makeQualified(this.uri,this.getWorkingDirectory());<extra_id_0>String userInfo = name.getUserInfo();[CONTEXT] | String accessKey = conf.get(NEW_ACCESS_KEY, conf.get(OLD_ACCESS_KEY, null));String secretKey = conf.get(NEW_SECRET_KEY, conf.get(OLD_SECRET_KEY, null)); |
47,101 | [BUG]Batch batch = Batch.create(reactor, null,session, getLog(), lifecycleExecutor, artifactFactory,[BUG][CONTEXT]executeBatch();}private void executeBatch() throws MojoExecutionException {ProjectDefinition def = MavenProjectConverter.convert(session.getSortedProjects(), project);ProjectReactor reactor = new ProjectReactor(def);<extra_id_0>localRepository, artifactMetadataSource, artifactCollector, dependencyTreeBuilder,projectBuilder, getEnvironmentInformation(), Maven3PluginExecutor.class);[CONTEXT] | Batch batch = new Batch(reactor, session, getLog(), lifecycleExecutor, artifactFactory, |
60,120 | [BUG].backgroundColor(BG_COLOR).filterOn(false, true, true)[BUG][CONTEXT].filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_SUSPENDED)).column(COLUMN_TASK_ID, COUNT, "Tasks").format(COLUMN_TASK_ID, i18n.tasksSuspended(), NO_DECIMALS).width(METRIC_WIDTH).height(METRIC_HEIGHT).margins(0, 0, 0, 0)<extra_id_0>.refreshOn().buildSettings();[CONTEXT] | .backgroundColor(METRIC_BG).htmlTemplate(METRIC_HTML).jsTemplate(METRIC_JS).filterOn(false, true, true) |
36,548 | [BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort;[BUG][CONTEXT]s_ix = startPts[0].x;s_iy = startPts[0].y;if (setDestinationNoData) {for (int x = dst_min_x; x < clipMinX; x++) {for (int k2 = 0; k2 < dst_num_bands; k2++)<extra_id_0>dstPixelOffset += dstPixelStride;}} else[CONTEXT] | dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataUShort[k2]; |
7,014 | [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"), |
59,630 | [BUG]if (!isShowAsQueued && getSegment(position).isShowNumeration()) {numerationString = String.format("%02d",getSegment(position).getNumeration(getPosInSegment(position)));}[BUG][CONTEXT]coachMark.setVisibility(View.GONE);}String numerationString = null;boolean isShowAsQueued =getSegment(position).isShowAsQueued(getPosInSegment(position));<extra_id_0>final Query query;[CONTEXT] | int pos = getPosInSegment(position) * viewHolders.size() + i;getSegment(position).getNumeration(pos)); |
41,434 | [BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat;[BUG][CONTEXT]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = (float) result;}}} else if (setDestinationNoData) {for (int k2 = 0; k2 < dst_num_bands; k2++) {<extra_id_0>}}if (fracx < fracdx1) {[CONTEXT] | dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataFloat[k2]; |
32,050 | [BUG]public void setUp(){getUtil().deletePage(getTestClassName(), getTestMethodName());[BUG][CONTEXT]@Rulepublic AdminAuthenticationRule adminAuthenticationRule = new AdminAuthenticationRule(getUtil());private ApplicationHomeEditPage editPage;private final Map<String, String> editQueryStringParameters = new HashMap<String, String>();@Before<extra_id_0>editQueryStringParameters.put("editor", "inline");[CONTEXT] | public void setUp() throws ExceptiongetUtil().rest().deletePage(getTestClassName(), getTestMethodName()); |
62,367 | [BUG]scriptHeaderResolver.setNamespaceFactory(namespaceFactory);scriptHeaderResolver.setTopDownAnalysisParameters(topDownAnalysisParameters);[BUG][CONTEXT]importsResolver.setQualifiedExpressionResolver(qualifiedExpressionResolver);importsResolver.setTrace(bindingTrace);jetImportsFactory.setProject(project);scriptHeaderResolver.setContext(topDownAnalysisContext);scriptHeaderResolver.setDependencyClassByQualifiedNameResolver(javaDescriptorResolver);<extra_id_0>scriptHeaderResolver.setTrace(bindingTrace);overloadResolver.setContext(topDownAnalysisContext);overloadResolver.setTrace(bindingTrace);[CONTEXT] | scriptHeaderResolver.setPackageFragmentProvider(mutablePackageFragmentProvider);scriptHeaderResolver.setTopDownAnalysisParameters(topDownAnalysisParameters); |
25,983 | [CONTEXT]UriBuilder.fromUri(baseUri).path(SpaceResource.class).build(doc.getWiki(), doc.getSpace()).toString();[BUG]Link spaceLink = objectFactory.createLink();spaceLink.setHref(spaceUri);spaceLink.setRel(Relations.SPACE);pageSummary.getLinks().add(spaceLink);<extra_id_0>Link spaceLink = objectFactory.createLink();spaceLink.setHref(spaceUri);spaceLink.setRel(Relations.SPACE);pageSummary.getLinks().add(spaceLink);[BUG]if (parent != null) {String parentUri =UriBuilder.fromUri(baseUri).path(PageResource.class).build(parent.getWiki(), parent.getSpace(), parent.getName()).toString();[BUG]Link parentLink = objectFactory.createLink();[CONTEXT] | pageSummary.setParent(doc.getParent());if (parent != null && !parent.isNew()) {pageSummary.setParentId(parent.getPrefixedFullName());} else {pageSummary.setParentId("");}String spaceUri = uri(baseUri, SpaceResource.class, doc.getWiki(), doc.getSpace());String parentUri = uri(baseUri, PageResource.class, parent.getWiki(), parent.getSpace(), parent.getName()); |
44,233 | [BUG]public GroupOptionsInfo options() throws RestApiException {throw new NotImplementedException();}@Overridepublic void options(GroupOptionsInfo options) throws RestApiException {throw new NotImplementedException();}@Override[BUG][CONTEXT]public void description(String description) throws RestApiException {String restPath = getRequestPath() + "/description";gerritRestClient.putRequest(restPath, description);}@Override<extra_id_0>public List<AccountInfo> members() throws RestApiException {[CONTEXT] | [DELETED] |
12,968 | [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; |
15,429 | [BUG]{System.out.println("wasReleased returning true for " + getName());[BUG][CONTEXT]}public boolean wasReleased(){boolean bRet = false;if (wasReleased)<extra_id_0>bRet = true;wasReleased = false;[CONTEXT] | public ControllerInputEvent(EventType type, int controllerNumber, int buttonNumber, float threshold, float deadzone)LogHelper.Info("ControllerInputEvent constructor params:( type: " + type + ", controllerNumber: "+ controllerNumber + ", buttonNumber: " + buttonNumber + ", threshhold: " + threshold + ", deadzone: "+ deadzone + ")");this.type = type;this.controllerNumber = controllerNumber;this.buttonNumber = buttonNumber;this.threshold = threshold;this.deadzone = deadzone;isActive = false; |
25,622 | [BUG]import org.joda.time.DateTime;import fi.otavanopisto.security.ContextReference;[BUG][CONTEXT]package fi.otavanopisto.pyramus.rest.model;<extra_id_0>public class CourseStudent implements ContextReference {public CourseStudent() {super();[CONTEXT] | import org.threeten.bp.ZonedDateTime;import fi.otavanopisto.security.ContextReference; |
64,922 | [BUG]public class BrazilianAnalyzerProvider extends AbstractAnalyzerProvider<BrazilianAnalyzer> {[BUG][CONTEXT]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;import java.util.Set;<extra_id_0>private final Set<?> stopWords;private final Set<?> stemExclusion;private final BrazilianAnalyzer analyzer;[CONTEXT] | public class BrazilianAnalyzerProvider extends AbstractIndexAnalyzerProvider<BrazilianAnalyzer> { |
59,926 | [BUG]StorageDir storageDir = getStorageDirByBlockId(blockId);if (storageDir != null) {return storageDir.unlockBlock(blockId, userId);}[BUG][CONTEXT]os.close();CommonUtils.cleanDirectBuffer(buf);}}public boolean unlockBlock(long blockId, long userId) {<extra_id_0>LOG.warn("Failed to unlock block! blockId:{}", blockId);[CONTEXT] | for (StorageTier tier : mStorageTiers) {for (StorageDir dir : tier.getStorageDirs()) {if (dir.unlockBlock(blockId, userId)) {return true; |
19,055 | [BUG]Task<String> task = Task.ofType(String.class).named("WithRef").process(() -> instanceField + " causes an outer reference");[BUG][CONTEXT]assertEquals(des.id().name(), "Baz");assertEquals(val.awaitAndGet(), "[9999] hello 10004");}@Test(expected = NotSerializableException.class)public void shouldNotSerializeWithInstanceFieldReference() throws Exception {<extra_id_0>serialize(task);}@Test[CONTEXT] | Task<String> task = Task.named("WithRef").ofType(String.class).process(() -> instanceField + " causes an outer reference"); |
1,586 | [BUG]TeleportUtil.teleportToDimension((EntityPlayer) event.getEntity(), Wizardry.underWorld.getId(), 0, 100, 0);fallResetUUIDs.add(event.getEntity().getUniqueID());[BUG][CONTEXT]if (event.getEntity().fallDistance >= 250) {BlockPos location = event.getEntity().getPosition();BlockPos bedrock = PosUtils.checkNeighbor(event.getEntity().getEntityWorld(), location, Blocks.BEDROCK);if (bedrock != null) {if (event.getEntity().getEntityWorld().getBlockState(bedrock).getBlock() == Blocks.BEDROCK) {<extra_id_0>((EntityPlayer) event.getEntity()).addStat(Achievements.CRUNCH);event.setCanceled(true);[CONTEXT] | TeleportUtil.teleportToDimension((EntityPlayer) event.getEntity(), Wizardry.underWorld.getId(), 0, 300, 0);((EntityPlayer) event.getEntity()).addPotionEffect(new PotionEffect(ModPotions.NULLIFY_GRAVITY, 100, 1, false, false));fallResetUUIDs.add(event.getEntity().getUniqueID()); |
29,494 | [BUG]if (caseA) {for (int h = 0; h < dstHeight; h++) {[BUG][CONTEXT]final int pixelStride = dst.getPixelStride();final int[] bandOffsets = dst.getBandOffsets();final int[][] data = dst.getIntDataArrays();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++) { |
10,600 | [BUG]Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD, ParameterType.IANA_PARAMETER),ProductIdentifier.class)[BUG][CONTEXT]}list.add(new NonStandardProperty((NonStandardProperty) child));}},PRODUCT_IDENTIFIER ("PRODID",<extra_id_0>{@Overridepublic VChild parse(VCalendar vCalendar, String contentLine)[CONTEXT] | public void copyChild(VChild child, VCalendar destination)CalendarScale calendarScale = (CalendarScale) child;destination.setCalendarScale(calendarScale);METHOD ("METHOD",Arrays.asList(ParameterType.VALUE_DATA_TYPES, ParameterType.NON_STANDARD),Method.class) |
48,546 | [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; |
33,805 | [BUG]PropertyUtils.setProperty(bean, param, value);}catch (NoSuchMethodException nsme) {if (_log.isWarnEnabled()) {_log.warn(nsme.getMessage());}[BUG][CONTEXT]BeanUtil.setPropertyForcedSilent(bean, name, value);}}public void setProperty(Object bean, String param, Object value) {try {<extra_id_0>}[CONTEXT] | BeanUtil.setProperty(bean, param, value); |
52,030 | [BUG]import java.util.Map;import java.util.Set;[BUG][CONTEXT]package org.opendaylight.sfc.genius.impl.handlers;import java.math.BigInteger;<extra_id_0>import java.util.concurrent.CompletableFuture;import java.util.concurrent.Executor;import org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction;[CONTEXT] | [DELETED] |
44,630 | [BUG]cronField.getExpression().asString(), DateTime.now()[BUG][CONTEXT]private static final Logger log = LoggerFactory.getLogger(EveryFieldValueGenerator.class);public EveryFieldValueGenerator(CronField cronField) {super(cronField);log.trace(String.format("processing \"%s\" at %s",<extra_id_0>));}@Override[CONTEXT] | cronField.getExpression().asString(), ZonedDateTime.now() |
65,517 | [CONTEXT]}return attachmentUri;}[BUG]public static Attachment createAttachment(ObjectFactory objectFactory, URI baseUri,<extra_id_0>public static Attachment createAttachment(ObjectFactory objectFactory, URI baseUri,[BUG]com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl,XWiki xwikiApi, Boolean withPrettyNames){[BUG]Attachment attachment = objectFactory.createAttachment();fillAttachment(attachment, objectFactory, baseUri, xwikiAttachment, xwikiRelativeUrl, xwikiAbsoluteUrl,[CONTEXT] | com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl, XWiki xwikiApi,{ |
49 | [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); |
50,165 | [BUG]return ImmutableList.of("region", "handler").stream().filter(new StartsWithPredicate(parse.current.token))[BUG][CONTEXT].excludeCurrent(true).autoCloseQuotes(true).parse();if (parse.current.type.equals(AdvCmdParser.CurrentElement.ElementType.ARGUMENT)) {if (parse.current.index == 0)<extra_id_0>.map(args -> parse.current.prefix + args).collect(GuavaCollectors.toImmutableList());else if (parse.current.index > 0) {[CONTEXT] | return Stream.of("region", "handler").filter(new StartsWithPredicate(parse.current.token)) |
33,984 | [BUG]return resolver.resolve(artifact).getFile();}[BUG][CONTEXT]public ResolvedArtifact create(ResolvedDependency owner, final Artifact artifact, final ArtifactResolver resolver) {return new DefaultResolvedArtifact(owner, artifact, new Factory<File>() {public File create() {return lockingManager.useCache(String.format("download %s", artifact), new Factory<File>() {public File create() {<extra_id_0>});}});[CONTEXT] | DefaultBuildableArtifactResolveResult result = new DefaultBuildableArtifactResolveResult();resolver.resolve(artifact, result);return result.getFile(); |
4,828 | [BUG]else{[BUG][CONTEXT]{ReverseDependencyLink p1 = (ReverseDependencyLink) o1;ReverseDependencyLink p2 = (ReverseDependencyLink) o2;return p1.getProject().getId().compareTo( p2.getProject().getId() );}<extra_id_0>return 0;}}[CONTEXT] | iconError( sink ); |
58,609 | [BUG]Marker marker_ = builder_.mark();result_ = consumeToken(builder_, OR);[BUG][CONTEXT]return result_;}static boolean bitwiseBooleanOperations(PsiBuilder builder_, int level_) {if (!recursion_guard_(builder_, level_, "bitwiseBooleanOperations")) return false;boolean result_ = false;<extra_id_0>if (!result_) result_ = consumeToken(builder_, XOR);if (!result_) result_ = consumeToken(builder_, AND);if (!result_) result_ = consumeToken(builder_, BAND_KEYWORD);[CONTEXT] | Marker marker_ = enter_section_(builder_);result_ = consumeToken(builder_, OR); |
56,144 | [BUG]import org.eclipse.xtext.util.IAcceptor;import org.eclipse.xtext.xbase.compiler.CompilationTestHelper;[BUG][CONTEXT]import org.eclipse.xtend.core.tests.compiler.AbstractXtendCompilerTest;import org.eclipse.xtend.core.xtend.XtendClass;import org.eclipse.xtend.core.xtend.XtendPackage;import org.eclipse.xtend2.lib.StringConcatenation;import org.eclipse.xtext.junit4.validation.ValidationTestHelper;<extra_id_0>import org.eclipse.xtext.xbase.lib.Exceptions;import org.eclipse.xtext.xbase.lib.Extension;import org.eclipse.xtext.xbase.lib.ObjectExtensions;[CONTEXT] | import org.eclipse.xtext.xbase.annotations.xAnnotations.XAnnotationsPackage;import org.eclipse.xtext.xbase.compiler.CompilationTestHelper; |
12,732 | [BUG]cobranca.setDuplicatas(Arrays.asList(FabricaDeObjetosFake.getNFNotaInfoDuplicata()));[BUG][CONTEXT]return compra;}public static NFNotaInfoCobranca getNFNotaInfoCobranca() {final NFNotaInfoCobranca cobranca = new NFNotaInfoCobranca();cobranca.setFatura(FabricaDeObjetosFake.getNFNotaInfoFatura());<extra_id_0>return cobranca;}public static NFNotaInfoAvulsa getNFNotaInfoAvulsa() {[CONTEXT] | cobranca.setDuplicatas(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoDuplicata())); |
23,499 | [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; |
60,539 | [BUG]}public List<String> getWatchedElements() throws XWikiException[BUG][CONTEXT]return getWatchListPlugin().getStore().getWatchedElements(context.getUser(), ElementType.SPACE, context);}public List<String> getWatchedWikis() throws XWikiException{return getWatchListPlugin().getStore().getWatchedElements(context.getUser(), ElementType.WIKI, context);<extra_id_0>{List<String> wEls = new ArrayList<String>();wEls.addAll(getWatchedDocuments());[CONTEXT] | public List<String> getWatchedUsers() throws XWikiExceptionreturn getWatchListPlugin().getStore().getWatchedElements(context.getUser(), ElementType.USER, context);public List<String> getWatchedElements() throws XWikiException |
59,644 | [CONTEXT]ps.print(projectName + ".jar");[BUG]ps.println("\" WIDTH=" + wide + " HEIGHT=" + high + ">");ps.println("</APPLET>");ps.println();<extra_id_0>ps.println("\" WIDTH=" + wide + " HEIGHT=" + high + ">");ps.println("</APPLET>");ps.println();[BUG]ps.println("<A HREF=\"" + projectName + ".java\">source code</A>");[BUG]ps.println();ps.println("</CENTER>");ps.println("</BODY> </HTML>");[CONTEXT] | PrintStream ps = new PrintStream(fos);ps.println("<HTML> <BODY BGCOLOR=\"white\">");ps.println("<BR> <BR> <BR> <CENTER>");ps.print("<APPLET CODE=\"" + exportSketchName + "\" ARCHIVE=\"");ps.print(exportSketchName + ".jar");ps.println("<A HREF=\"" + exportSketchName + ".java\">source code</A>"); |
4,991 | [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); |
37,654 | [BUG]sink.tableCell();sink.text( version );[BUG][CONTEXT]Iterator it = artifactMap.keySet().iterator();while ( it.hasNext() ){String version = (String) it.next();sink.tableRow();<extra_id_0>sink.tableCell_();sink.tableCell();generateVersionDetails( sink, artifactMap, version );[CONTEXT] | sink.tableCell( String.valueOf( cellWidth ) + "px" );sink.text( version ); |
27,067 | [BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble;[BUG][CONTEXT]sum = 0;}}} else if (setDestinationNoData) {for (int k2 = 0; k2 < dst_num_bands; k2++) {<extra_id_0>}}if (fracx < fracdx1) {[CONTEXT] | dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataDouble[k2]; |
3,941 | [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]); |
21,192 | [BUG]dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte;[BUG][CONTEXT]: 0);}}}if (tmpROI == 0) {<extra_id_0>} else {for (int h = 0; h < KERNEL_LINE_DIM; h++) {long tempSum = 0;[CONTEXT] | dstDataArrays[k2][dstPixelOffset + dstBandOffsets[k2]] = destinationNoDataByte[k2]; |
58,607 | [BUG]public static boolean type_extends_(IElementType child_, IElementType parent_) {return type_extends_impl_(EXTENDS_SETS_, child_, parent_);}[BUG][CONTEXT]create_token_set_(BINARY_EXPRESSION, CONDITIONAL_EXPRESSION, EXPRESSION, INDEXED_EXPRESSION,LITERAL_EXPRESSION, METHOD_CALL_EXPRESSION, NEW_EXPRESSION, PARENTHESIZED_EXPRESSION,REFERENCE_EXPRESSION, SEQUENCE_EXPRESSION, UNARY_EXPRESSION, VARIABLE_ASSIGNMENT_EXPRESSION,VARIABLE_EXPRESSION),};<extra_id_0>static boolean arrayConstructorExpression(PsiBuilder builder_, int level_) {if (!recursion_guard_(builder_, level_, "arrayConstructorExpression")) return false;[CONTEXT] | [DELETED] |
56,415 | [BUG]private Route route;ManagedRoute(Route route) {this.route = route;}[BUG][CONTEXT]@ManagedResource(description="Managed Route",currencyTimeLimit=15)public class ManagedRoute{public static final String VALUE_UNKNOWN = "Unknown";<extra_id_0>public Route getRoute() {[CONTEXT] | private String description;this.description = route.toString();} |
21,033 | [BUG]private static class ReplaceWithCollectFix extends ReplaceWithCollectAbstractFix {@Overrideprotected String getMethodName() {return "collect";}[BUG][CONTEXT]private static PsiClassType createDefaultConsumerType(Project project, PsiVariable variable) {final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project);final PsiClass consumerClass = psiFacade.findClass("java.util.function.Consumer", GlobalSearchScope.allScope(project));return consumerClass != null ? psiFacade.getElementFactory().createType(consumerClass, variable.getType()) : null;}<extra_id_0>}[CONTEXT] | [DELETED] |
25,860 | [BUG]import com.google.common.base.Predicate;import com.google.common.collect.FluentIterable;[BUG][CONTEXT]import org.fenixedu.bennu.core.i18n.BundleUtil;import org.fenixedu.spaces.domain.Space;import org.joda.time.DateTime;import com.google.common.base.Joiner;import com.google.common.base.Objects;<extra_id_0>import com.google.common.collect.Sets;@GroupOperator("student")public class StudentGroup extends FenixGroup {[CONTEXT] | [DELETED] |
65,164 | [BUG]if (entity.getType() == SchemaEntityType.VIEW) {List<JavaVariable> params = new ArrayList<>();[BUG][CONTEXT]if (!encryptionSupport) {myClass.addImport("android.database.sqlite.SQLiteDatabase");} else {myClass.addImport("net.sqlcipher.database.SQLiteDatabase");}<extra_id_0>params.add(databaseNameParam);JavaVariable recordParam = new JavaVariable(recordClassName, "e");if (jsr305Support) {[CONTEXT] | if (entity.getType() == SchemaEntityType.VIEW || entity.getType() == SchemaEntityType.QUERY) {List<JavaVariable> params = new ArrayList<>(); |
55,395 | [BUG]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;import org.openstreetmap.josm.JOSMFixture;<extra_id_0>import nl.jqno.equalsverifier.EqualsVerifier;import nl.jqno.equalsverifier.Warning;public class SelectCommandTest {[CONTEXT] | import org.openstreetmap.josm.data.osm.User;import org.openstreetmap.josm.gui.layer.OsmDataLayer; |
30,839 | [BUG]log().debug(svc.getSvcName() + ": Creating new AMI-Connection: " + svc.getIpAddr() + ":" + amiConfig.getPort() + ", " + amiConfig.getUsername() + "/" + amiConfig.getPassword());[BUG][CONTEXT]throw new RuntimeException("AsteriskMonitor: required parameter 'sip-peer' is not present in supplied properties.");}TimeoutTracker timeoutTracker = new TimeoutTracker(parameters, DEFAULT_RETRY, DEFAULT_TIMEOUT);AmiPeerFactory amiPeerFactory = AmiPeerFactory.getInstance();AmiAgentConfig amiConfig = amiPeerFactory.getAgentConfig(svc.getAddress());<extra_id_0>ManagerConnectionFactory factory = new ManagerConnectionFactory(svc.getIpAddr(), amiConfig.getPort(), amiConfig.getUsername(), amiConfig.getPassword());ManagerConnection managerConnection;if(amiConfig.getUseTls())[CONTEXT] | LOG.debug("{}: Creating new AMI-Connection: {}:{}, {}/{}", svc.getSvcName(), svc.getIpAddr(), amiConfig.getPort(), amiConfig.getUsername(), amiConfig.getPassword()); |
11,179 | [BUG]import java.util.Collections;import java.util.List;[BUG][CONTEXT]package org.eclipse.xtext.xbase.scoping.featurecalls;<extra_id_0>import org.eclipse.xtext.common.types.JvmDeclaredType;import org.eclipse.xtext.common.types.JvmFeature;import org.eclipse.xtext.common.types.JvmType;[CONTEXT] | import java.util.Iterator;import java.util.List; |
22,449 | [BUG]import com.couchbase.client.core.message.ResponseStatus;import com.couchbase.client.core.message.kv.MutationToken;import com.couchbase.client.core.message.kv.subdoc.multi.Lookup;[BUG][CONTEXT]import com.couchbase.client.core.ClusterFacade;import com.couchbase.client.core.CouchbaseException;import com.couchbase.client.core.RequestCancelledException;import com.couchbase.client.core.annotations.InterfaceAudience;import com.couchbase.client.core.annotations.InterfaceStability;<extra_id_0>import com.couchbase.client.java.bucket.AsyncBucketManager;import com.couchbase.client.java.document.BinaryDocument;[CONTEXT] | [DELETED] |
37,779 | [BUG]if (H5.H5Sget_simple_extent_type(spaceId) == HDF5Constants.H5S_SCALAR) {shape = new long[] {1};maxShape = new long[] {1};} else {[BUG][CONTEXT]final long nativeTypeId = nativeTypeResource.getResource();DatasetType type = getDatasetType(typeResource.getResource(), nativeTypeId);if (type == null) {throw new NexusException("Unknown data type");}<extra_id_0>final int nDims = H5.H5Sget_simple_extent_ndims(spaceId);[CONTEXT] | [DELETED] |
69,989 | [BUG]return instanceField;}[BUG][CONTEXT]private UserStorageService userStorage;private EconomyService economyService = null;private boolean loaded = false;private FCCommandDispatcher fgDispatcher;public static FoxGuardMain instance() {<extra_id_0>@Listenerpublic void construct(GameConstructionEvent event) {instanceField = this;[CONTEXT] | }public static Cause getCause() {return instance().pluginCause;} |
51,523 | [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] |
50,883 | [BUG]if (mMetadata != null && mMetadata.hasOverlayPosition() && mGuiElementUpdater != null&& !mMetadata.hasFlag(JpegMetadata.FLAG_OVERLAY_SET_BY_CAMERA_ACTIVITY)) {mGuiElementUpdater.setLockChecked(true);[BUG][CONTEXT]mCanvas = new Canvas(mCanvasBitmap);doInitialScaling();updatePinchMode();refresh(HIGH);showFullResolutionSnapshot(true);<extra_id_0>}[CONTEXT] | [DELETED] |
33,812 | [BUG]return Task.ofType(Exec.Result.class).named("exec", "/bin/sh").in(() -> task1)[BUG][CONTEXT]}@RootTaskstatic Task<Exec.Result> exec(String parameter, int number) {Task<String> task1 = MyTask.create(parameter);Task<Integer> task2 = Adder.create(number, number + 2);<extra_id_0>.in(() -> task2).process(Exec.exec((str, i) -> args("/bin/sh", "-c", "\"echo " + i + "\"")));}[CONTEXT] | return Task.named("exec", "/bin/sh").ofType(Exec.Result.class).in(() -> task1) |
63,619 | [BUG]Import[] imports = importList.isEmpty() ? Import.EMPTY_ARRAY : importList.toArray(new Import[importList.size()]);[BUG][CONTEXT]if (el instanceof PsiImportListStub) {processImport((PsiImportListStub) el, importList, usedNames);}}ClassDecl[] classes = classList.isEmpty() ? ClassDecl.EMPTY_ARRAY : classList.toArray(new ClassDecl[classList.size()]);<extra_id_0>byte type = javaFileStub.isCompiled() ? IndexTree.BYTECODE : IndexTree.JAVA;return new Unit(javaFileStub.getPackageName(), type, imports, classes);}[CONTEXT] | IndexTree.Import[] imports = importList.isEmpty() ? IndexTree.Import.EMPTY_ARRAY : importList.toArray(new IndexTree.Import[importList.size()]); |
20,596 | [BUG]import org.jtwig.parser.JtwigParserConfiguration;import org.jtwig.parser.JtwigParserConfigurationBuilder;[BUG][CONTEXT]package org.jtwig.environment.and;import org.jtwig.environment.EnvironmentConfigurationBuilder;<extra_id_0>public class AndJtwigParserConfigurationBuilder extends JtwigParserConfigurationBuilder<AndJtwigParserConfigurationBuilder> implements AndBuilder<EnvironmentConfigurationBuilder> {[CONTEXT] | import org.jtwig.parser.config.JtwigParserConfiguration;import org.jtwig.parser.config.JtwigParserConfigurationBuilder; |
55,766 | [BUG]return make().Unary(operator.javacOperator, transformExpression(term, BoxingStrategy.UNBOXED, expectedType));}[BUG][CONTEXT]OperatorTranslation operator = Operators.getOperator(op.getClass());if (operator == null) {return make().Erroneous();}if(operator.getOptimisationStrategy(op, this).useJavaOperator()){<extra_id_0>return make().Apply(null, makeSelect(transformExpression(term, BoxingStrategy.BOXED, expectedType),Util.getGetterName(operator.ceylonMethod)), List.<JCExpression> nil());}[CONTEXT] | JCExpression expr = transformExpression(term, BoxingStrategy.UNBOXED, expectedType);if(operator == OperatorTranslation.UNARY_POSITIVE)return expr;return make().Unary(operator.javacOperator, expr); |
20,614 | [BUG]assertTrue(callback.callbackResult.getAccessToken().equals("I am a new access token"));cacheStore.removeAll();[BUG][CONTEXT]verify(mockedAccountManager, times(0)).getAuthToken(Mockito.any(Account.class), Matchers.anyString(),Matchers.any(Bundle.class), Matchers.eq(false), (AccountManagerCallback<Bundle>) Matchers.eq(null),Matchers.any(Handler.class));assertNull(callback.callbackException);assertNotNull(callback.callbackResult);<extra_id_0>}@SmallTestpublic void testBothLocalAndBrokerSilentAuthFailedSwitchedToBrokerForInteractive()[CONTEXT] | assertTrue(authContext.getCache() instanceof DefaultTokenCacheStore);cacheStore.removeAll(); |
43,494 | [BUG]import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;import com.google.atap.tangoservice.TangoConfig;[BUG][CONTEXT]package com.projecttango.examples.java.helloareadescription;import com.google.atap.tangoservice.Tango;<extra_id_0>import com.google.atap.tangoservice.TangoCoordinateFramePair;import com.google.atap.tangoservice.TangoErrorException;import com.google.atap.tangoservice.TangoEvent;[CONTEXT] | import com.google.atap.tangoservice.TangoAreaDescriptionMetaData;import com.google.atap.tangoservice.TangoConfig; |