id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
20,901 | import com.jogamp.opengl.GL3;
import com.jogamp.opengl.util.GLBuffers;
import com.jogamp.opengl.util.glsl.ShaderCode;
import com.jogamp.opengl.util.glsl.ShaderProgram;
import buffer.BufferUtils;
<BUG>import glsl.ShaderCodeKt;
import main.framework.Framework;</BUG>
import main.framework.Semantic;
import vec._2.Vec2;
imp... | import glsl.ShaderProgramKt;
import main.framework.Framework;
|
20,902 | import vec._4.Vec4;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import static main.GlmKt.glm;
public class VertPositionOffset extends Framework {
<BUG>private final String VERTEX_SOURCE = "tut03/position-offset.vert";
private final String FRAGMENT_SOURCE = "tut03/standard.frag";</BUG>
public static void mai... | [DELETED] |
20,903 | import com.jogamp.newt.event.KeyEvent;
import com.jogamp.opengl.GL3;
import com.jogamp.opengl.util.GLBuffers;
import com.jogamp.opengl.util.glsl.ShaderCode;
import com.jogamp.opengl.util.glsl.ShaderProgram;
<BUG>import glsl.ShaderCodeKt;
import main.framework.Framework;</BUG>
import main.framework.Semantic;
import vec.... | import glsl.ShaderProgramKt;
import main.framework.Framework;
|
20,904 | import java.nio.IntBuffer;
import static com.jogamp.opengl.GL.*;
import static com.jogamp.opengl.GL2ES3.GL_COLOR;
import static main.GlmKt.glm;
public class CpuPositionOffset extends Framework {
<BUG>private final String VERTEX_SHADER = "tut03/standard.vert";
private final String FRAGMENT_SHADER = "tut03/standard.frag"... | [DELETED] |
20,905 | import com.jogamp.opengl.GL3;
import com.jogamp.opengl.util.GLBuffers;
import com.jogamp.opengl.util.glsl.ShaderCode;
import com.jogamp.opengl.util.glsl.ShaderProgram;
import buffer.BufferUtils;
<BUG>import glsl.ShaderCodeKt;
import main.framework.Framework;</BUG>
import main.framework.Semantic;
import vec._4.Vec4;
imp... | import glsl.ShaderProgramKt;
import main.framework.Framework;
|
20,906 | import main.framework.Semantic;
import vec._4.Vec4;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public class VertexColor extends Framework {
<BUG>private final String VERTEX_SHADER = "tut02/vertex-colors.vert";
private final String FRAGMENT_SHADER = "tut02/vertex-colors.frag";</BUG>
public static void main(... | [DELETED] |
20,907 | import com.jogamp.opengl.GL3;
import com.jogamp.opengl.util.GLBuffers;
import com.jogamp.opengl.util.glsl.ShaderCode;
import com.jogamp.opengl.util.glsl.ShaderProgram;
import buffer.BufferUtils;
<BUG>import glsl.ShaderCodeKt;
import main.framework.Framework;</BUG>
import main.framework.Semantic;
import vec._4.Vec4;
imp... | import glsl.ShaderProgramKt;
import main.framework.Framework;
|
20,908 | import main.framework.Semantic;
import vec._4.Vec4;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public class AspectRatio extends Framework {
<BUG>private final String VERTEX_SHADER = "tut04/matrix-perspective.vert";
private final String FRAGMENT_SHADER = "tut04/standard-colors.frag";</BUG>
public static voi... | [DELETED] |
20,909 | 0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f};
<BUG>private FloatBuffer perspectiveMatrix;
private final float frustumScale = 1.0f;</BUG>
@Override
public void init(GL3 gl) {
initializeProgram(gl);
| private FloatBuffer perspectiveMatrix = GLBuffers.newDirectFloatBuffer(16);
private final float frustumScale = 1.0f;
|
20,910 | import buffer.BufferUtils;
import com.jogamp.newt.event.KeyEvent;
import com.jogamp.opengl.GL3;
import com.jogamp.opengl.util.GLBuffers;
import com.jogamp.opengl.util.glsl.ShaderCode;
<BUG>import com.jogamp.opengl.util.glsl.ShaderProgram;
import glsl.ShaderCodeKt;
import main.framework.Framework;</BUG>
import main.fram... | import extensions.ShaderProgramUtil;
import glsl.ShaderProgramKt;
import main.framework.Framework;
|
20,911 | import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import static com.jogamp.opengl.GL.*;
import static com.jogamp.opengl.GL2ES3.GL_COLOR;
public class FragPosition extends Framework {
<BUG>private final String VERTEX_SHADER = "tut02/frag-position.vert";
private final String FRAGMENT_SHADER = "tut02/frag-position.f... | [DELETED] |
20,912 | import com.jogamp.opengl.GL3;
import com.jogamp.opengl.util.GLBuffers;
import com.jogamp.opengl.util.glsl.ShaderCode;
import com.jogamp.opengl.util.glsl.ShaderProgram;
import buffer.BufferUtils;
<BUG>import glsl.ShaderCodeKt;
import main.framework.Framework;</BUG>
import main.framework.Semantic;
import vec._4.Vec4;
imp... | import glsl.ShaderProgramKt;
import main.framework.Framework;
|
20,913 | import main.framework.Semantic;
import vec._4.Vec4;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
public class MatrixPerspective extends Framework {
<BUG>private final String VERTEX_SHADER = "tut04/matrix-perspective.vert";
private final String FRAGMENT_SHADER = "tut04/standard-colors.frag";</BUG>
public stat... | [DELETED] |
20,914 | 0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f,
0.0f, 1.0f, 1.0f, 1.0f};
<BUG>private FloatBuffer perspectiveMatrix;
@Override</BUG>
public void init(GL3 gl) {
initializeProgram(gl);
initializeVertexBuffer(gl);
| private FloatBuffer perspectiveMatrix = GLBuffers.newDirectFloatBuffer(16);
@Override
|
20,915 | package jetbrains.mps.scope;
import org.jetbrains.mps.openapi.model.SNode;
<BUG>import org.jetbrains.mps.openapi.language.SContainmentLink;
import jetbrains.mps.smodel.adapter.MetaAdapterByDeclaration;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.kernel.model.SModelUtil... | import org.jetbrains.mps.openapi.language.SAbstractConcept;
import jetbrains.mps.util.annotation.ToRemove;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactoryByName;
|
20,916 | @Override
public SNode resolve(SNode contextNode, String refText) {
SNode result = null;
for (SNode n : SNodeOperations.getChildren(myNode, myLink)) {
<BUG>if (this.conceptFqName != null && !(SModelUtil.isAssignableConcept(n.getConcept().getQualifiedName(), conceptFqName))) {
continue;</BUG>
}
if (getName(n).equals(ref... | if (this.concept != null && !(n.getConcept().isSubConceptOf(concept))) {
continue;
|
20,917 | String result = getName(node);
for (SNode n : SNodeOperations.getChildren(myNode, myLink)) {
if (n == node) {
continue;
}
<BUG>if (this.conceptFqName != null && !(SModelUtil.isAssignableConcept(n.getConcept().getQualifiedName(), conceptFqName))) {
continue;</BUG>
}
String name = getName(n);
if (name.equals(result)) {
| if (this.concept != null && !(n.getConcept().isSubConceptOf(concept))) {
|
20,918 | private final SAbstractConcept myTargetConcept;
private final Set<SModel> myModels;
@Deprecated
public ModelsScope(Iterable<SModel> models, boolean rootsOnly, String targetConcept) {
myModels = SetSequence.fromSetWithValues(new HashSet<SModel>(), models);
<BUG>myRootsOnly = rootsOnly;
myTargetConcept=MetaAdapterFactory... | [DELETED] |
20,919 | import org.apache.commons.lang3.math.NumberUtils;
import org.json.JSONException;
import org.mariotaku.microblog.library.MicroBlog;
import org.mariotaku.microblog.library.MicroBlogException;
import org.mariotaku.microblog.library.twitter.model.RateLimitStatus;
<BUG>import org.mariotaku.microblog.library.twitter.model.St... | import org.mariotaku.pickncrop.library.PNCUtils;
import org.mariotaku.sqliteqb.library.AllColumns;
|
20,920 | context.getApplicationContext().sendBroadcast(intent);
}
}
@Nullable
public static Location getCachedLocation(Context context) {
<BUG>if (BuildConfig.DEBUG) {
Log.v(LOGTAG, "Fetching cached location", new Exception());
}</BUG>
Location location = null;
| DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
|
20,921 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBannerImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.form... | if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
20,922 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBackgroundImage(fileBody, tile);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, S... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
20,923 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
return twitter.updateProfileImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.for... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
20,924 | 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;
<BUG>import org.mariotaku.twidere.u... | import org.mariotaku.twidere.util.DebugLog;
import org.mariotaku.twidere.util.ImagePreloader;
|
20,925 | final List<InetAddress> addresses = mDns.lookup(host);
for (InetAddress address : addresses) {
c.addRow(new String[]{host, address.getHostAddress()});
}
} catch (final IOException ignore) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, ignore);
}</BUG>
}
| DebugLog.w(LOGTAG, null, ignore);
|
20,926 | for (Location location : twitter.getAvailableTrends()) {
map.put(location);
}
return map.pack();
} catch (final MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
20,927 | import android.content.Context;
import android.content.SharedPreferences;
import android.location.Location;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
<BUG>import android.util.Log;
import org.mariotaku.twidere.BuildConfig;
import org.mariotaku.twidere.Constants;
import org.mariotaku.twidere... | import org.mariotaku.twidere.util.DebugLog;
import org.mariotaku.twidere.util.JsonSerializer;
|
20,928 | }
public static LatLng getCachedLatLng(@NonNull final Context context) {
final Context appContext = context.getApplicationContext();
final SharedPreferences prefs = DependencyHolder.Companion.get(context).getPreferences();
if (!prefs.getBoolean(KEY_USAGE_STATISTICS, false)) return null;
<BUG>if (BuildConfig.DEBUG) {
Lo... | DebugLog.d(HotMobiLogger.LOGTAG, "getting cached location", null);
|
20,929 | public int destroySavedSearchAsync(final UserKey accountKey, final long searchId) {
final DestroySavedSearchTask task = new DestroySavedSearchTask(accountKey, searchId);
return asyncTaskManager.add(task, true);
}
public int destroyStatusAsync(final UserKey accountKey, final String statusId) {
<BUG>final DestroyStatusTa... | final DestroyStatusTask task = new DestroyStatusTask(context, accountKey, statusId);
|
20,930 | @Override
public void afterExecute(Bus handler, SingleResponse<Relationship> result) {
if (result.hasData()) {
handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData()));
} else if (result.hasException()) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, "Unable to update friendship", result.getExcepti... | public UserKey[] getAccountKeys() {
return DataStoreUtils.getActivatedAccountKeys(context);
|
20,931 | MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId);
if (!Utils.isOfficialCredentials(context, accountId)) continue;
try {
microBlog.setActivitiesAboutMeUnread(cursor);
} catch (MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
20,932 | import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.DigestOutputStream;
import java.security.MessageDigest;
<BUG>import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;</BUG>
public final class ... | import java.text.DateFormat;
import java.util.Date;
import java.util.List;
|
20,933 | package org.jboss.as.patching.runner;
<BUG>import org.jboss.as.boot.DirectoryStructure;
import org.jboss.as.patching.LocalPatchInfo;</BUG>
import org.jboss.as.patching.PatchInfo;
import org.jboss.as.patching.PatchLogger;
import org.jboss.as.patching.PatchMessages;
| import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp;
import org.jboss.as.patching.CommonAttributes;
import org.jboss.as.patching.LocalPatchInfo;
|
20,934 | private static final String PATH_DELIMITER = "/";
public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT;
enum Element {
ADDED_BUNDLE("added-bundle"),
ADDED_MISC_CONTENT("added-misc-content"),
<BUG>ADDED_MODULE("added-module"),
BUNDLES("bundles"),</BUG>
CUMULATIVE("cumulative"),
DESCRIPTION("description"),
MIS... | APPLIES_TO_VERSION("applies-to-version"),
BUNDLES("bundles"),
|
20,935 | final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value = reader.getAttributeValue(i);
final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
<BUG>case APPLIES_TO_VERSION:
builder.addAppliesTo(value);
break;</BUG>
case RESULTING_VE... | [DELETED] |
20,936 | final StringBuilder path = new StringBuilder();
for(final String p : item.getPath()) {
path.append(p).append(PATH_DELIMITER);
}
path.append(item.getName());
<BUG>writer.writeAttribute(Attribute.PATH.name, path.toString());
if(type != ModificationType.REMOVE) {</BUG>
writer.writeAttribute(Attribute.HASH.name, bytesToHex... | if (item.isDirectory()) {
writer.writeAttribute(Attribute.DIRECTORY.name, "true");
if(type != ModificationType.REMOVE) {
|
20,937 | package org.jboss.as.patching;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.patching.runner.PatchingException;
import org.jboss.logging.Messages;
import org.jboss.logging.annotations.Message;
<BUG>import org.jboss.logging.annotations.MessageBundle;
import java.io.IOException;</BUG>
impor... | import org.jboss.logging.annotations.Cause;
import java.io.IOException;
|
20,938 | field.name(),
type,
elementType);
} else if (fieldType.isMap()) {
ThriftType.MapType mapType = (ThriftType.MapType) fieldType;
<BUG>String keyType = mapType.keyType().getTrueType().javaName();
String valueType = mapType.valueType().getTrueType().javaName();
</BUG>
chunk = new Chunk(
| String keyType = mapType.keyType().name();
String valueType = mapType.valueType().name();
|
20,939 | assertThat(summary, is("List<String>(size=3)"));
</BUG>
}
@Test
public void summarizeObjectSet() {
<BUG>Set<Object> set = Sets.newHashSet(new Object(), new Object());
String summary = ObfuscationUtil.summarizeCollection(set, "Set", "Object");
assertThat(summary, is("Set<Object>(size=2)"));
</BUG>
}
| import static org.junit.Assert.*;
public class ObfuscationUtilTest {
public void summarizeStringList() {
List<String> strings = Arrays.asList("one", "two", "three");
String summary = ObfuscationUtil.summarizeCollection(strings, "list", "string");
assertThat(summary, is("list<string>(size=3)"));
Set<Long> set = Sets.new... |
20,940 | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
setTitle(getString(R.string.general_preferences));
final boolean adminMode = getIntent().getBooleanExtra(INTENT_KEY_ADMIN_MODE, false);
<BUG>removeAllDisallowedPrefs();
</BUG>
initProt... | removeAllDisabledPrefs();
|
20,941 | }
}
});
}
} else {
<BUG>if (n <= m) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {</BUG>
a[i][j] = operator.applyAsBoolean(a[i][j]);
}
| public boolean[] row(final int rowIndex) {
N.checkArgument(rowIndex >= 0 && rowIndex < n, "Invalid row Index: %s", rowIndex);
return a[rowIndex];
|
20,942 | }
}
});
}
} else {
<BUG>if (n <= m) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {</BUG>
result[i][j] = zipFunction.apply(a[i][j], b[i][j]);
}
| public boolean get(final int i, final int j) {
return a[i][j];
|
20,943 | }
}
});
}
} else {
<BUG>if (n <= m) {
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {</BUG>
result[i][j] = zipFunction.apply(a[i][j], b[i][j], c[i][j]);
}
| return new BooleanMatrix(c);
|
20,944 | }
public AsyncExecutor(int maxConcurrentThreadNumber, long keepAliveTime, TimeUnit unit) {
this.maxConcurrentThreadNumber = maxConcurrentThreadNumber;
this.keepAliveTime = keepAliveTime;
this.unit = unit;
<BUG>}
public AsyncExecutor(final ExecutorService executorService) {
this(8, 300, TimeUnit.SECONDS);
this.executorS... | [DELETED] |
20,945 | results.add(execute(cmd));
}
return results;
}
public <T> CompletableFuture<T> execute(final Callable<T> command) {
<BUG>final CompletableFuture<T> future = new CompletableFuture<T>(this, command);
getExecutorService().execute(future);</BUG>
return future;
}
public <T> List<CompletableFuture<T>> execute(final Callable<... | final CompletableFuture<T> future = new CompletableFuture<>(this, command);
getExecutorService().execute(future);
|
20,946 | private String getSubject(MessageContext msgCtxt) throws Exception {
String subject = (String) this.properties.get("subject");
if (subject == null || subject.equals("")) {
return null; // subject is OPTIONAL
}
<BUG>subject = resolvePropertyValue(subject, msgCtxt);
</BUG>
if (subject == null || subject.equals("")) {
ret... | subject = (String) resolvePropertyValue(subject, msgCtxt);
|
20,947 | private String getSecretKey(MessageContext msgCtxt) throws Exception {
String key = (String) this.properties.get("secret-key");
if (key == null || key.equals("")) {
throw new IllegalStateException("secret-key is not specified or is empty.");
}
<BUG>key = resolvePropertyValue(key, msgCtxt);
</BUG>
if (key == null || key... | key = (String) resolvePropertyValue(key, msgCtxt);
|
20,948 | private String getIssuer(MessageContext msgCtxt) throws Exception {
String issuer = (String) this.properties.get("issuer");
if (issuer == null || issuer.equals("")) {
return null; // "iss" is OPTIONAL per RFC-7519
}
<BUG>issuer = resolvePropertyValue(issuer, msgCtxt);
</BUG>
if (issuer == null || issuer.equals("")) {
r... | issuer = (String) resolvePropertyValue(issuer, msgCtxt);
|
20,949 | private String getAlgorithm(MessageContext msgCtxt) throws Exception {
String algorithm = ((String) this.properties.get("algorithm")).trim();
if (algorithm == null || algorithm.equals("")) {
throw new IllegalStateException("algorithm is not specified or is empty.");
}
<BUG>algorithm = resolvePropertyValue(algorithm, ms... | algorithm = (String) resolvePropertyValue(algorithm, msgCtxt);
|
20,950 | if (audience == null || audience.equals("")) {
return null;
}
String[] audiences = StringUtils.split(audience,",");
for(int i=0; i<audiences.length; i++) {
<BUG>audiences[i] = resolvePropertyValue(audiences[i], msgCtxt);
</BUG>
}
return audiences;
}
| audiences[i] = (String) resolvePropertyValue(audiences[i], msgCtxt);
|
20,951 | private String getPrivateKeyPassword(MessageContext msgCtxt) {
String password = (String) this.properties.get("private-key-password");
if (password == null || password.equals("")) {
return null;
}
<BUG>password = resolvePropertyValue(password, msgCtxt);
</BUG>
if (password == null || password.equals("")) { return null;... | password = (String) resolvePropertyValue(password, msgCtxt);
|
20,952 | private int getExpiresIn(MessageContext msgCtxt) throws IllegalStateException {
String expiry = (String) this.properties.get("expiresIn");
if (expiry == null || expiry.equals("")) {
return 60*60; // one hour
}
<BUG>expiry = resolvePropertyValue(expiry, msgCtxt);
</BUG>
if (expiry == null || expiry.equals("")) {
throw n... | expiry = (String) resolvePropertyValue(expiry, msgCtxt);
|
20,953 | if (privateKey==null) {
String pemfile = (String) this.properties.get("pemfile");
if (pemfile == null || pemfile.equals("")) {
throw new IllegalStateException("must specify pemfile or private-key when algorithm is RS*");
}
<BUG>pemfile = resolvePropertyValue(pemfile, msgCtxt);
</BUG>
if (pemfile == null || pemfile.equa... | pemfile = (String) resolvePropertyValue(pemfile, msgCtxt);
|
20,954 | providedValue != null) {
String claimName = parts[1];
if (claimName.equals("aud") && providedValue.indexOf(",")!=-1) {
audiences = StringUtils.split(providedValue,",");
for(int i=0; i<audiences.length; i++) {
<BUG>audiences[i] = resolvePropertyValue(audiences[i], msgCtxt);
</BUG>
}
claims.setAudience(java.util.Arrays.... | audiences[i] = (String) resolvePropertyValue(audiences[i], msgCtxt);
|
20,955 | signedJWT.sign(signer);
String jwt = signedJWT.serialize();
msgCtxt.setVariable(varName("jwt"), jwt);
}
catch (Exception e) {
<BUG>if (debug) { e.printStackTrace(); }
</BUG>
String error = e.toString();
msgCtxt.setVariable(varName("error"), error);
int ch = error.indexOf(':');
| if (debug) { e.printStackTrace(); /* to MP system.log */ }
|
20,956 | this.newMappingConfigurationFunctionalGroup.initialiseButtonState();
this.existingMappingConfigurationFunctionalGroup
.initialiseButtonState();
if(this.menu != null)
{
<BUG>this.menu.setLoggedIn();
}</BUG>
systemEventService.logSystemEvent(SystemEventConstants.DASHBOARD_LOGIN_CONSTANTS,
"User logging in: " + ikasanAuth... | menu.setVisible(true);
}
|
20,957 | package org.ikasan.dashboard.ui;
import java.util.HashMap;
import java.util.LinkedHashMap;
<BUG>import java.util.concurrent.ConcurrentHashMap;
import org.apache.log4j.Logger;</BUG>
import org.ikasan.dashboard.ui.framework.cache.TopologyStateCache;
import org.ikasan.dashboard.ui.framework.display.IkasanUIView;
import or... | import com.vaadin.server.*;
import org.apache.log4j.Logger;
|
20,958 | import org.ikasan.dashboard.ui.framework.display.ViewComponentContainer;
import org.ikasan.dashboard.ui.framework.event.FlowStateEvent;
import org.ikasan.dashboard.ui.framework.navigation.IkasanUINavigator;
import org.ikasan.dashboard.ui.framework.navigation.MenuLayout;
import org.ikasan.dashboard.ui.framework.panel.Na... | import org.ikasan.security.service.authentication.IkasanAuthentication;
import org.ikasan.spec.error.reporting.ErrorReportingManagementService;
|
20,959 | import com.google.common.eventbus.EventBus;
import com.vaadin.annotations.PreserveOnRefresh;
import com.vaadin.annotations.Push;
import com.vaadin.annotations.Theme;
import com.vaadin.navigator.Navigator;
<BUG>import com.vaadin.server.ClientConnector;
import com.vaadin.server.FontAwesome;
import com.vaadin.server.Page;... | [DELETED] |
20,960 | package jetbrains.mps.lang.editor.plugin;
import jetbrains.mps.plugins.applicationplugins.BaseApplicationPlugin;
<BUG>import com.intellij.openapi.extensions.PluginId;
import jetbrains.mps.ide.actions.EditorPopup_ActionGroup;
import jetbrains.mps.ide.actions.Edit_ActionGroup;</BUG>
import java.util.List;
import jetbrain... | import jetbrains.mps.ide.actions.Edit_ActionGroup;
|
20,961 | addAction(new CopyThisDown_Action());
addAction(new DeleteLine_Action());
addAction(new ExtractComponent_Action());
addGroup(new EditorActions_ActionGroup());
}
<BUG>public void adjustRegularGroups() {
insertGroupIntoAnother(EditorActions_ActionGroup.ID, EditorPopup_ActionGroup.ID, null);
insertGroupIntoAnother(EditorA... | insertGroupIntoAnother(EditorActions_ActionGroup.ID, Edit_ActionGroup.ID, Edit_ActionGroup.LABEL_ID_custom);
|
20,962 | package jetbrains.mps.lang.refactoring.plugin;
import jetbrains.mps.plugins.applicationplugins.BaseApplicationPlugin;
<BUG>import com.intellij.openapi.extensions.PluginId;
import jetbrains.mps.ide.actions.NodeActions_ActionGroup;
import jetbrains.mps.ide.actions.EditorPopup_ActionGroup;</BUG>
import jetbrains.mps.ide.a... | import jetbrains.mps.ide.actions.EditorPopup_ActionGroup;
|
20,963 | public MessageBuilder addCharSequence(int tag, CharSequence value, int offset, int length) {
return startField(tag).appendCharSequence(value, offset, length).endField();
}
@Override
public MessageBuilder startField(int tag) {
<BUG>int off = IntFormatter.formatUInt(tag, buffer, offset.get());
offset.set(off);</BUG>
ret... | [DELETED] |
20,964 | public MessageBuilder endField() {
return appendByte(FieldUtil.FIELD_SEPARATOR);
}
@Override
public MessageBuilder appendBoolean(boolean value) {
<BUG>BooleanFormatter.formatBoolean(value, buffer, offset, end);
</BUG>
return this;
}
@Override
| offset = BooleanFormatter.formatBoolean(value, buffer, offset);
|
20,965 | </BUG>
return this;
}
@Override
public MessageBuilder appendByte(byte value) {
<BUG>ByteFormatter.formatByte(value, buffer, offset, end);
</BUG>
return this;
}
@Override
| public MessageBuilder endField() {
return appendByte(FieldUtil.FIELD_SEPARATOR);
public MessageBuilder appendBoolean(boolean value) {
offset = BooleanFormatter.formatBoolean(value, buffer, offset);
offset = ByteFormatter.formatByte(value, buffer, offset);
|
20,966 | public MessageBuilder appendBytes(byte[] value) {
return appendBytes(value, 0, value.length);
}
@Override
public MessageBuilder appendBytes(byte[] value, int offset, int length) {
<BUG>ByteFormatter.formatBytes(value, offset, length, buffer, this.offset, end);
</BUG>
return this;
}
@Override
| this.offset = ByteFormatter.formatBytes(value, offset, length, buffer, this.offset);
|
20,967 | public MessageBuilder appendBytes(Buffer value) {
return appendBytes(value, 0, value.capacity());
}
@Override
public MessageBuilder appendBytes(Buffer value, int offset, int length) {
<BUG>ByteFormatter.formatBytes(value, offset, length, buffer, this.offset, end);
</BUG>
return this;
}
@Override
| this.offset = ByteFormatter.formatBytes(value, offset, length, buffer, this.offset);
|
20,968 | public MessageBuilder appendCharSequence(CharSequence value) {
return appendCharSequence(value, 0, value.length());
}
@Override
public MessageBuilder appendCharSequence(CharSequence value, int offset, int length) {
<BUG>CharFormatter.formatChars(value, offset, length, buffer, this.offset, end);
</BUG>
return this;
}
@O... | this.offset = CharFormatter.formatChars(value, offset, length, buffer, this.offset);
|
20,969 | return wrap(buffer, 0, buffer.capacity());
}
@Override
public MessageBuilder wrap(MutableBuffer buffer, int offset, int length) {
this.buffer = buffer;
<BUG>this.offset.set(offset);
</BUG>
this.start = offset;
this.end = offset + length;
return this;
| this.offset = offset;
|
20,970 | import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
<BUG>import android.view.ViewGroup;
public class HorizontalChangeHandler extends AnimatorChangeHandler {</BUG>
public Horizontal... | import com.bluelinelabs.conductor.ControllerChangeHandler;
public class HorizontalChangeHandler extends AnimatorChangeHandler {
|
20,971 | import java.util.Map;
public abstract class ControllerChangeHandler {
private static final String KEY_CLASS_NAME = "ControllerChangeHandler.className";
private static final String KEY_SAVED_STATE = "ControllerChangeHandler.savedState";
private static final Map<String, ControllerChangeHandler> inProgressPushHandlers = n... | boolean hasBeenUsed;
public abstract void performChange(@NonNull ViewGroup container, @Nullable View from, @Nullable View to, boolean isPush, @NonNull ControllerChangeCompletedListener changeListener);
|
20,972 | }
public void saveToBundle(@NonNull Bundle bundle) { }
public void restoreFromBundle(@NonNull Bundle bundle) { }
public void onAbortPush(@NonNull ControllerChangeHandler newHandler, @Nullable Controller newTop) { }
public void completeImmediately() { }
<BUG>@NonNull
final Bundle toBundle() {</BUG>
Bundle bundle = new B... | public ControllerChangeHandler copy() {
return fromBundle(toBundle());
final Bundle toBundle() {
|
20,973 | bundle.putString(KEY_CLASS_NAME, getClass().getName());
Bundle savedState = new Bundle();
saveToBundle(savedState);
bundle.putBundle(KEY_SAVED_STATE, savedState);
return bundle;
<BUG>}
@NonNull
final ControllerChangeHandler copy() {
return fromBundle(toBundle());</BUG>
}
| [DELETED] |
20,974 | import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
<BUG>import android.view.ViewGroup;
import java.util.ArrayList;</BUG>
import java.util.List;
public class VerticalChangeHandler ... | import com.bluelinelabs.conductor.ControllerChangeHandler;
import java.util.ArrayList;
|
20,975 | import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
<BUG>import android.view.ViewGroup;
public class FadeChangeHandler extends AnimatorChangeHandler {</BUG>
public FadeChangeHandle... | import com.bluelinelabs.conductor.ControllerChangeHandler;
public class FadeChangeHandler extends AnimatorChangeHandler {
|
20,976 | import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.transition.AutoTransition;
import android.transition.Transition;
import android.view.View;
<BUG>import android.view.ViewGroup;
@TargetApi(Build.VERSION_CODES.LOLLIPOP)</BUG>
public class AutoTransitionChangeHandler ext... | import com.bluelinelabs.conductor.ControllerChangeHandler;
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
20,977 | if (topTransaction != null) {
final boolean oldHandlerRemovedViews = topTransaction.pushChangeHandler() == null || topTransaction.pushChangeHandler().removesFromViewOnPush();
final boolean newHandlerRemovesViews = handler == null || handler.removesFromViewOnPush();
if (!oldHandlerRemovedViews && newHandlerRemovesViews)... | performControllerChange(null, visibleTransaction.controller, true, handler);
|
20,978 | localHandler.setForceRemoveViewOnPush(true);</BUG>
performControllerChange(null, transaction.controller, true, localHandler);
}
for (int i = 1; i < newVisibleTransactions.size(); i++) {
RouterTransaction transaction = newVisibleTransactions.get(i);
<BUG>handler = transaction.pushChangeHandler() != null ? transaction.pu... | Controller rootController = oldVisibleTransactions.size() > 0 ? oldVisibleTransactions.get(0).controller : null;
performControllerChange(newVisibleTransactions.get(0).controller, rootController, true, changeHandler);
for (int i = oldVisibleTransactions.size() - 1; i > 0; i--) {
RouterTransaction transaction = oldVisibl... |
20,979 | if (isPush) {
changeHandler = to.pushChangeHandler();
} else if (from != null) {
changeHandler = from.popChangeHandler();
} else {
<BUG>changeHandler = new SimpleSwapChangeHandler();
}</BUG>
Controller toController = to != null ? to.controller : null;
Controller fromController = from != null ? from.controller : null;
p... | changeHandler = null;
}
|
20,980 | assertEquals(null, verifyState.documentTransactionId);
}
@Test
public void singleUpdate() throws Throwable {
ExampleServiceState verifyState;
<BUG>List<URI> exampleURIs = new ArrayList<>();
this.defaultHost.createExampleServices(this.defaultHost, 1, exampleURIs, null);
</BUG>
ExampleServiceState initialState = new Exam... | List<URI> exampleURIs = this.defaultHost.createExampleServices(this.defaultHost, 1, null);
|
20,981 | void updateNow() {
Configurable configurable = myFilter.myContext.getCurrentConfigurable();
update(myFilter, configurable, myEditor.getContent(configurable));
}
};
<BUG>myBanner = new Banner(myEditor.getResetAction());
myBanner.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
JPanel panel = new JPanel(new Border... | [DELETED] |
20,982 | MineTweakerAPI.apply(new Remove(recipes));
} else {
LogHelper.logWarning(String.format("No %s Recipe found for %s. Command ignored!", Carpenter.name, output.toString()));
}
}
<BUG>private static class Remove extends BaseListRemoval<Recipe> {
public Remove(List<Recipe> recipes) {
super(Carpenter.name, RecipeManager.re... | private static class Remove extends ForestryListRemoval<ICarpenterRecipe, ICarpenterManager> {
public Remove(List<ICarpenterRecipe> recipes) {
super(Carpenter.name, RecipeManagers.carpenterManager, recipes);
|
20,983 |
super(Carpenter.name, RecipeManager.recipes, recipes);
</BUG>
}
@Override
<BUG>protected String getRecipeInfo(Recipe recipe) {
return LogHelper.getStackDescription(recipe.getCraftingResult());
</BUG>
}
| MineTweakerAPI.apply(new Remove(recipes));
} else {
LogHelper.logWarning(String.format("No %s Recipe found for %s. Command ignored!", Carpenter.name, output.toString()));
private static class Remove extends ForestryListRemoval<ICarpenterRecipe, ICarpenterManager> {
public Remove(List<ICarpenterRecipe> recipes) {
super(... |
20,984 | import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IIngredient;
import minetweaker.api.item.IItemStack;
import minetweaker.api.item.WeightedItemStack;
import modtweaker2.helpers.LogHelper;
<BUG>import modtweaker2.utils.BaseListAddition;
import modtweaker2.utils.BaseListRemoval;
import net.minecraft.item.I... | import modtweaker2.mods.forestry.ForestryListAddition;
import modtweaker2.mods.forestry.ForestryListRemoval;
import modtweaker2.mods.forestry.recipes.CentrifugeRecipe;
import net.minecraft.item.ItemStack;
|
20,985 | }
}
@ZenMethod
public static void removeRecipe(IIngredient input) {
List<ICentrifugeRecipe> recipes = new LinkedList<ICentrifugeRecipe>();
<BUG>for(ICentrifugeRecipe recipe : RecipeManager.recipes) {
</BUG>
if(recipe != null && matches(input, toIItemStack(recipe.getInput()))) {
recipes.add(recipe);
}
| MineTweakerAPI.apply(new Add(new CentrifugeRecipe(timePerItem, toStack(itemInput), products)));
private static class Add extends ForestryListAddition<ICentrifugeRecipe, ICentrifugeManager> {
public Add(ICentrifugeRecipe recipe) {
super(Centrifuge.name, RecipeManagers.centrifugeManager);
|
20,986 | import org.apache.commons.lang3.math.NumberUtils;
import org.json.JSONException;
import org.mariotaku.microblog.library.MicroBlog;
import org.mariotaku.microblog.library.MicroBlogException;
import org.mariotaku.microblog.library.twitter.model.RateLimitStatus;
<BUG>import org.mariotaku.microblog.library.twitter.model.St... | import org.mariotaku.pickncrop.library.PNCUtils;
import org.mariotaku.sqliteqb.library.AllColumns;
|
20,987 | context.getApplicationContext().sendBroadcast(intent);
}
}
@Nullable
public static Location getCachedLocation(Context context) {
<BUG>if (BuildConfig.DEBUG) {
Log.v(LOGTAG, "Fetching cached location", new Exception());
}</BUG>
Location location = null;
| DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
|
20,988 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBannerImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.form... | if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
20,989 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBackgroundImage(fileBody, tile);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, S... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
20,990 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
return twitter.updateProfileImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.for... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
20,991 | 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;
<BUG>import org.mariotaku.twidere.u... | import org.mariotaku.twidere.util.DebugLog;
import org.mariotaku.twidere.util.ImagePreloader;
|
20,992 | final List<InetAddress> addresses = mDns.lookup(host);
for (InetAddress address : addresses) {
c.addRow(new String[]{host, address.getHostAddress()});
}
} catch (final IOException ignore) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, ignore);
}</BUG>
}
| DebugLog.w(LOGTAG, null, ignore);
|
20,993 | for (Location location : twitter.getAvailableTrends()) {
map.put(location);
}
return map.pack();
} catch (final MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
20,994 | import android.content.Context;
import android.content.SharedPreferences;
import android.location.Location;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
<BUG>import android.util.Log;
import org.mariotaku.twidere.BuildConfig;
import org.mariotaku.twidere.Constants;
import org.mariotaku.twidere... | import org.mariotaku.twidere.util.DebugLog;
import org.mariotaku.twidere.util.JsonSerializer;
|
20,995 | }
public static LatLng getCachedLatLng(@NonNull final Context context) {
final Context appContext = context.getApplicationContext();
final SharedPreferences prefs = DependencyHolder.Companion.get(context).getPreferences();
if (!prefs.getBoolean(KEY_USAGE_STATISTICS, false)) return null;
<BUG>if (BuildConfig.DEBUG) {
Lo... | DebugLog.d(HotMobiLogger.LOGTAG, "getting cached location", null);
|
20,996 | public int destroySavedSearchAsync(final UserKey accountKey, final long searchId) {
final DestroySavedSearchTask task = new DestroySavedSearchTask(accountKey, searchId);
return asyncTaskManager.add(task, true);
}
public int destroyStatusAsync(final UserKey accountKey, final String statusId) {
<BUG>final DestroyStatusTa... | final DestroyStatusTask task = new DestroyStatusTask(context, accountKey, statusId);
|
20,997 | @Override
public void afterExecute(Bus handler, SingleResponse<Relationship> result) {
if (result.hasData()) {
handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData()));
} else if (result.hasException()) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, "Unable to update friendship", result.getExcepti... | public UserKey[] getAccountKeys() {
return DataStoreUtils.getActivatedAccountKeys(context);
|
20,998 | MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId);
if (!Utils.isOfficialCredentials(context, accountId)) continue;
try {
microBlog.setActivitiesAboutMeUnread(cursor);
} catch (MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
20,999 | package org.springframework.web.servlet.mvc.method.annotation;
import java.lang.reflect.Method;
import java.net.URI;
import java.nio.charset.Charset;
<BUG>import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.Locale;</BUG>
import java.util.TimeZone;
| import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
|
21,000 | public void setUp() throws Exception {
dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
messageConverter = mock(HttpMessageConverter.class);
given(messageConverter.getSupportedMediaTypes()).willReturn(Collections.singletonList(MediaType.TE... | List<HttpMessageConverter<?>> converters = new ArrayList<>();
converters.add(messageConverter);
processor = new HttpEntityMethodProcessor(converters);
Method handle1 = getClass().getMethod("handle1", HttpEntity.class, ResponseEntity.class,
paramHttpEntity = new MethodParameter(handle1, 0);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.