id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
5,001 | 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;
<BUG>private FGStorageManager() {
defaultModifiedMap = new CacheMap<>((k, m) -> {</BUG>
if (k instanceof IFGObject) {
m.put((IFGObject) k, true);
return true;
| 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) -> {
|
5,002 | String name = fgObject.getName();
Path singleDir = dir.resolve(name.toLowerCase());
</BUG>
boolean shouldSave = fgObject.shouldSave();
if (force || shouldSave) {
<BUG>logger.info((shouldSave ? "S" : "Force s") + "aving handler \"" + name + "\" in directory: " + singleDir);
</BUG>
constructDirectory(singleDir);
try {
fgObject.save(singleDir);
| UUID owner = fgObject.getOwner();
boolean isOwned = !owner.equals(SERVER_UUID);
Optional<User> userOwner = userStorageService.get(owner);
String logName = (userOwner.isPresent() ? userOwner.get().getName() + ":" : "") + (isOwned ? owner + ":" : "") + name;
if (fgObject.autoSave()) {
Path singleDir = serverDir.resolve(name.toLowerCase());
logger.info((shouldSave ? "S" : "Force s") + "aving handler " + logName + " in directory: " + singleDir);
|
5,003 | if (fgObject.autoSave()) {
Path singleDir = dir.resolve(name.toLowerCase());
</BUG>
boolean shouldSave = fgObject.shouldSave();
if (force || shouldSave) {
<BUG>logger.info((shouldSave ? "S" : "Force s") + "aving world region \"" + name + "\" in directory: " + singleDir);
</BUG>
constructDirectory(singleDir);
try {
fgObject.save(singleDir);
| Path singleDir = serverDir.resolve(name.toLowerCase());
logger.info((shouldSave ? "S" : "Force s") + "aving world region " + logName + " in directory: " + singleDir);
|
5,004 | public synchronized void loadRegionLinks() {
logger.info("Loading region links");
try (DB mainDB = DBMaker.fileDB(directory.resolve("regions.foxdb").normalize().toString()).make()) {
Map<String, String> linksMap = mainDB.hashMap("links", Serializer.STRING, Serializer.STRING).createOrOpen();
linksMap.entrySet().forEach(entry -> {
<BUG>IRegion region = FGManager.getInstance().getRegion(entry.getKey());
if (region != null) {
logger.info("Loading links for region \"" + region.getName() + "\"");</BUG>
String handlersString = entry.getValue();
| Optional<IRegion> regionOpt = FGManager.getInstance().getRegion(entry.getKey());
if (regionOpt.isPresent()) {
IRegion region = regionOpt.get();
logger.info("Loading links for region \"" + region.getName() + "\"");
|
5,005 | public synchronized void loadWorldRegionLinks(World world) {
logger.info("Loading world region links for world \"" + world.getName() + "\"");
try (DB mainDB = DBMaker.fileDB(worldDirectories.get(world.getName()).resolve("wregions.foxdb").normalize().toString()).make()) {
Map<String, String> linksMap = mainDB.hashMap("links", Serializer.STRING, Serializer.STRING).createOrOpen();
linksMap.entrySet().forEach(entry -> {
<BUG>IRegion region = FGManager.getInstance().getWorldRegion(world, entry.getKey());
if (region != null) {
logger.info("Loading links for world region \"" + region.getName() + "\"");</BUG>
String handlersString = entry.getValue();
| Optional<IWorldRegion> regionOpt = FGManager.getInstance().getWorldRegion(world, entry.getKey());
if (regionOpt.isPresent()) {
IWorldRegion region = regionOpt.get();
logger.info("Loading links for world region \"" + region.getName() + "\"");
|
5,006 | StringBuilder builder = new StringBuilder();
for (Iterator<IHandler> it = handlers.iterator(); it.hasNext(); ) {
builder.append(it.next().getName());
if (it.hasNext()) builder.append(",");
}
<BUG>return builder.toString();
}</BUG>
private final class LoadEntry {
public final String name;
public final Type type;
| public enum Type {
REGION, WREGION, HANDLER
|
5,007 | .autoCloseQuotes(true)
.leaveFinalAsIs(true)
.parse();
if (parse.current.type.equals(AdvCmdParser.CurrentElement.ElementType.ARGUMENT)) {
if (parse.current.index == 0)
<BUG>return ImmutableList.of("region", "worldregion", "handler", "controller").stream()
</BUG>
.filter(new StartsWithPredicate(parse.current.token))
.collect(GuavaCollectors.toImmutableList());
else if (parse.current.index == 1) {
| return Stream.of("region", "worldregion", "handler", "controller")
|
5,008 | package fr.inria.astor.core.validation.validators;
import java.util.HashMap;
import java.util.Map;
<BUG>import fr.inria.astor.core.entities.ProgramVariantValidationResult;
public class CompoundValidationResult extends ProgramVariantValidationResult {
protected Map<String,ProgramVariantValidationResult> validations = new HashMap<>();
</BUG>
public CompoundValidationResult() {
| import fr.inria.astor.core.entities.TestCaseVariantValidationResult;
public class CompoundValidationResult implements TestCaseVariantValidationResult {
protected Map<String,TestCaseVariantValidationResult> validations = new HashMap<>();
|
5,009 | public void setRegressionExecuted(boolean regressionExecuted) {
}
@Override
public int getPassingTestCases() {
int count = 0;
<BUG>for (ProgramVariantValidationResult pv : this.validations.values()) {
</BUG>
count+= pv.getPassingTestCases();
}
return count;
| for (TestCaseVariantValidationResult pv : this.validations.values()) {
|
5,010 | protected MutationSupporter mutatorSupporter = null;
protected ProjectRepairFacade projectFacade = null;
protected Date dateInitEvolution = new Date();
protected FaultLocalizationStrategy faultLocalization = null;
protected int generationsExecuted = 0;
<BUG>protected SolutionVariantSortCriterion patchSortCriterion = null;
public AstorCoreEngine(MutationSupporter mutatorExecutor, ProjectRepairFacade projFacade) throws JSAPException {</BUG>
this.mutatorSupporter = mutatorExecutor;
this.projectFacade = projFacade;
this.currentStat = Stats.getCurrentStats();
| protected FitnessFunction fitnessFunction = null;
public AstorCoreEngine(MutationSupporter mutatorExecutor, ProjectRepairFacade projFacade) throws JSAPException {
|
5,011 | protected abstract void applyPreviousMutationOperationToSpoonElement(OperatorInstance operation)
throws IllegalAccessException;
protected abstract void applyNewMutationOperationToSpoonElement(OperatorInstance operation)
throws IllegalAccessException;
protected boolean validateInstance(ProgramVariant variant) {
<BUG>ProgramVariantValidationResult validationResult;
if ((validationResult = programValidator.validate(variant, projectFacade)) != null) {
double fitness = this.populationControler.getFitnessValue(variant, validationResult);
variant.setFitness(fitness);
boolean wasSuc = validationResult.wasSuccessful();
</BUG>
variant.setIsSolution(wasSuc);
| boolean wasSuc = validationResult.isSuccessful();
|
5,012 | ConfigurationProperties.setProperty("forceExecuteRegression", Boolean.TRUE.toString());
boolean validInstance = validateInstance(originalVariant);
if (validInstance) {
throw new IllegalStateException("The application under repair has not failling test cases");
}
<BUG>double fitness = originalVariant.getFitness();
log.debug("The original fitness is : "+fitness);</BUG>
for (ProgramVariant initvariant : variants) {
initvariant.setFitness(fitness);
}
| double fitness = this.fitnessFunction.calculateFitnessValue(originalVariant);
originalVariant.setFitness(fitness);
log.debug("The original fitness is : "+fitness);
|
5,013 | protected CompilationResult compilationResult = null;
protected boolean isSolution = false;
protected int lastGenAnalyzed = 0;
protected Date bornDate = new Date();
protected List<CtClass> modifiedClasses = new ArrayList<CtClass>();
<BUG>ProgramVariantValidationResult validationResult = null;
public ProgramVariant(){</BUG>
modificationPoints = new ArrayList<ModificationPoint>();
operations = new HashMap<Integer,List<OperatorInstance>>();
}
| public ProgramVariant(){
|
5,014 | solutionVariant.getOperations().put(generationsExecuted, Arrays.asList(pointOperation));
applyNewMutationOperationToSpoonElement(pointOperation);
boolean solution = processCreatedVariant(solutionVariant, generationsExecuted);
if (solution) {
this.solutions.add(solutionVariant);
<BUG>if (ConfigurationProperties.getPropertyBool("stopfirst"))
System.out.println(" modpoint analyzed "+modifPointsAnalyzed + ", operators "+operatorExecuted);
}</BUG>
undoOperationToSpoonElement(pointOperation);
| if (ConfigurationProperties.getPropertyBool("stopfirst")){
log.debug(" modpoint analyzed "+modifPointsAnalyzed + ", operators "+operatorExecuted);
return;
}
}
|
5,015 | +((this.getManualTestValidation() != null)?"\nmanual_regression: "+(getManualTestValidation()):"")
+((getEvoValidation() != null)?"\nevo_regression: "+ (getEvoValidation()):"")
;
}
@Override
<BUG>public boolean wasSuccessful() {
return (getValidation("failing") == null || getValidation("failing").wasSuccessful())
</BUG>
;
| [DELETED] |
5,016 | package org.influxdb;
import org.influxdb.impl.InfluxDBImpl;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
<BUG>import com.squareup.okhttp.OkHttpClient;
import retrofit.client.Client;
import retrofit.client.OkClient;</BUG>
public enum InfluxDBFactory {
| import okhttp3.OkHttpClient;
|
5,017 | IStats stats = new Stats();
stats.setTypeName( "Block Disk Cache" );
ArrayList<IStatElement<?>> elems = new ArrayList<IStatElement<?>>();
elems.add(new StatElement<Boolean>( "Is Alive", Boolean.valueOf(alive) ) );
elems.add(new StatElement<Integer>( "Key Map Size", Integer.valueOf(this.keyStore.size()) ) );
<BUG>try
{
elems.add(new StatElement<Long>( "Data File Length",
Long.valueOf(this.dataFile != null ? this.dataFile.length() : -1L) ) );
}</BUG>
catch ( IOException e )
| if (this.dataFile != null)
elems.add(new StatElement<Long>( "Data File Length", Long.valueOf(this.dataFile.length()) ) );
}
|
5,018 | elems.add(new StatElement<Integer>( "Number Of Blocks",
Integer.valueOf(this.dataFile.getNumberOfBlocks()) ) );
elems.add(new StatElement<Long>( "Average Put Size Bytes",
Long.valueOf(this.dataFile.getAveragePutSizeBytes()) ) );
elems.add(new StatElement<Integer>( "Empty Blocks",
<BUG>Integer.valueOf(this.dataFile.getEmptyBlocks()) ) );
IStats sStats = super.getStatistics();</BUG>
elems.addAll(sStats.getStatElements());
stats.setStatElements( elems );
return stats;
| }
IStats sStats = super.getStatistics();
|
5,019 | return maxSize > 0 && contentSize.get() > maxSize && this.size() > 1;
}
}
public class LRUMapCountLimited extends LRUMap<K, int[]>
{
<BUG>public final String tag = "orig-lru-count";
</BUG>
public LRUMapCountLimited(int maxKeySize)
{
super(maxKeySize);
| public final static String TAG = "orig-lru-count";
|
5,020 | }
}
});
}
} 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];
|
5,021 | }
}
});
}
} 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];
|
5,022 | }
}
});
}
} 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);
|
5,023 | }
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.executorService = executorService;</BUG>
Runtime.getRuntime().addShutdownHook(new Thread() {
| [DELETED] |
5,024 | 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<T>... commands) {
| final CompletableFuture<T> future = new CompletableFuture<>(this, command);
getExecutorService().execute(future);
|
5,025 | private Map<String, String> getParameters(
JSONArray parametersJSONArray)</BUG>
throws Exception {
Map<String, String> parameters = new HashMap<>();
<BUG>for (int i = 0; i < parametersJSONArray.length(); i++) {
JSONObject parameter = parametersJSONArray.getJSONObject(i);
if (parameter.opt("value") instanceof String) {
String name = parameter.getString("name");
String value = parameter.getString("value");
</BUG>
parameters.put(name, value);
| }
for (String parameter : queryString.split("&")) {
if (parameter.contains("=")) {
String[] parameterParts = parameter.split("=");
parameters.put(parameterParts[0], parameterParts[1]);
|
5,026 | 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;
<BUG>import de.vanita5.twittnuker.util.DataStoreUtils;
import de.vanita5.twittnuker.util.ImagePreloader;</BUG>
import de.vanita5.twittnuker.util.InternalTwitterContentUtils;
import de.vanita5.twittnuker.util.JsonSerializer;
import de.vanita5.twittnuker.util.NotificationManagerWrapper;
| import de.vanita5.twittnuker.util.DebugLog;
import de.vanita5.twittnuker.util.ImagePreloader;
|
5,027 | 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);
|
5,028 | @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.getException());
}</BUG>
}
| public UserKey[] getAccountKeys() {
return DataStoreUtils.getActivatedAccountKeys(context);
|
5,029 | 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);
|
5,030 | 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.format("Unable to delete %s", file));
}</BUG>
}
| if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
5,031 | 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, String.format("Unable to delete %s", file));
}</BUG>
}
| twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
5,032 | 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.format("Unable to delete %s", file));
}</BUG>
}
| twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
5,033 | import de.vanita5.twittnuker.annotation.CustomTabType;
import de.vanita5.twittnuker.library.MicroBlog;
import de.vanita5.twittnuker.library.MicroBlogException;
import de.vanita5.twittnuker.library.twitter.model.RateLimitStatus;
import de.vanita5.twittnuker.library.twitter.model.Status;
<BUG>import de.vanita5.twittnuker.fragment.AbsStatusesFragment;
import org.mariotaku.sqliteqb.library.AllColumns;</BUG>
import org.mariotaku.sqliteqb.library.Columns;
import org.mariotaku.sqliteqb.library.Columns.Column;
import org.mariotaku.sqliteqb.library.Expression;
| import org.mariotaku.pickncrop.library.PNCUtils;
import org.mariotaku.sqliteqb.library.AllColumns;
|
5,034 | 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());
|
5,035 | import java.util.List;
import java.util.Map.Entry;
import javax.inject.Singleton;
import okhttp3.Dns;
@Singleton
<BUG>public class TwidereDns implements Constants, Dns {
</BUG>
private static final String RESOLVER_LOGTAG = "TwittnukerDns";
private final SharedPreferences mHostMapping;
private final SharedPreferencesWrapper mPreferences;
| public class TwidereDns implements Dns, Constants {
|
5,036 | 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);
|
5,037 | <BUG>package org.zanata.webtrans.client.service;
import org.zanata.webtrans.client.events.DocumentSelectionEvent;</BUG>
import org.zanata.webtrans.client.events.FindMessageEvent;
import org.zanata.webtrans.client.history.HistoryToken;
import org.zanata.webtrans.client.presenter.AppPresenter;
| import static com.google.common.base.Objects.equal;
import net.customware.gwt.presenter.client.EventBus;
import org.zanata.webtrans.client.events.DocumentSelectionEvent;
|
5,038 | if (docId != null && !equal(appPresenter.getSelectedDocIdOrNull(), docId))
{
appPresenter.selectDocument(docId);
}
Log.info("[gwt-history] document id: " + docId);
<BUG>if (docId == null && token.getView() == MainView.Editor)
{
Log.warn("[gwt-history] access editor view with invalid document id. Showing document list view instead");
token.setView(MainView.Documents);
}</BUG>
if (docId != null)
| [DELETED] |
5,039 | package org.zanata.webtrans.client.view;
import org.zanata.common.TranslationStats;
import org.zanata.webtrans.client.presenter.MainView;
<BUG>import com.google.gwt.event.dom.client.HasClickHandlers;
import net.customware.gwt.presenter.client.widget.WidgetDisplay;</BUG>
public interface AppDisplay extends WidgetDisplay
{
void showInMainView(MainView editor);
| import net.customware.gwt.presenter.client.widget.WidgetDisplay;
|
5,040 | import org.zanata.webtrans.shared.auth.Identity;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.dom.client.StyleInjector;
<BUG>import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.resources.client.CssResource;</BUG>
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
| import com.google.gwt.event.logical.shared.SelectionEvent;
import com.google.gwt.resources.client.CssResource;
|
5,041 | import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.InlineLabel;
<BUG>import com.google.gwt.user.client.ui.LayoutPanel;
import com.google.gwt.user.client.ui.Widget;</BUG>
import com.google.inject.Inject;
public class AppView extends Composite implements AppDisplay
{
| import com.google.gwt.user.client.ui.TabLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
|
5,042 | }
private static AppViewUiBinder uiBinder = GWT.create(AppViewUiBinder.class);
@UiField(provided = true)
TransUnitCountBar translationStatsBar;
@UiField
<BUG>InlineLabel projectLink, iterationFilesLink, resize, keyShortcuts;
@UiField
InlineLabel readOnlyLabel, searchAndReplace, documentList;</BUG>
@UiField
| interface Styles extends CssResource
{
InlineLabel projectLink, iterationFilesLink, readOnlyLabel, resize, keyShortcuts;
|
5,043 | setWidgetVisible(searchResultsView, false);
setWidgetVisible(translationView, true);</BUG>
break;
<BUG>}
}
private void setWidgetVisible(Widget widget, boolean visible)
{
if (visible)
{
editorContainer.setWidgetTopBottom(widget, 0, Unit.PX, 0, Unit.PX);
}
else
{
editorContainer.setWidgetTopHeight(widget, 0, Unit.PX, 0, Unit.PX);</BUG>
}
| @Override
public Widget asWidget()
return this;
|
5,044 | public void showSideMenu(boolean isShowing)
{
rootContainer.forceLayout();
if (isShowing)
{
<BUG>rootContainer.setWidgetLeftRight(editorContainer, 0.0, Unit.PX, MINIMISED_EDITOR_RIGHT, Unit.PX);
</BUG>
rootContainer.setWidgetRightWidth(sideMenuContainer, 0.0, Unit.PX, EXPENDED_MENU_RIGHT, Unit.PX);
}
else
| rootContainer.setWidgetLeftRight(contentBody, 0.0, Unit.PX, MINIMISED_EDITOR_RIGHT, Unit.PX);
|
5,045 | </BUG>
rootContainer.setWidgetRightWidth(sideMenuContainer, 0.0, Unit.PX, EXPENDED_MENU_RIGHT, Unit.PX);
}
else
{
<BUG>rootContainer.setWidgetLeftRight(editorContainer, 0.0, Unit.PX, 0.0, Unit.PX);
</BUG>
rootContainer.setWidgetRightWidth(sideMenuContainer, 0.0, Unit.PX, MIN_MENU_WIDTH, Unit.PX);
}
rootContainer.animate(ANIMATE_DURATION);
| public void showSideMenu(boolean isShowing)
rootContainer.forceLayout();
if (isShowing)
rootContainer.setWidgetLeftRight(contentBody, 0.0, Unit.PX, MINIMISED_EDITOR_RIGHT, Unit.PX);
rootContainer.setWidgetLeftRight(contentBody, 0.0, Unit.PX, 0.0, Unit.PX);
|
5,046 | }
@UiHandler("resize")
public void onResizeIconClick(ClickEvent event)
{
listener.onResizeClicked();
<BUG>}
}
</BUG>
| @UiHandler("projectLink")
public void onProjectLinkClick(ClickEvent event)
listener.onProjectLinkClicked();
|
5,047 | }
return new SingleVersion(version);
</BUG>
}
<BUG>}
</BUG>
| if (max == null || range.getMax().compareTo(max) < 0)
{
max = range.getMax();
maxInclusive = range.isMaxInclusive();
|
5,048 | private final long decompressedLength;
public SimpleFieldSet getProgressFieldset() {
SimpleFieldSet fs = new SimpleFieldSet(false);
fs.putSingle("Type", "SplitFileInserter");
fs.put("DataLength", dataLength);
<BUG>fs.put("DecompressedLength", decompressedLength);
fs.putSingle("CompressionCodec", compressionCodec.toString());</BUG>
fs.put("SplitfileCodec", splitfileAlgorithm);
fs.put("Finished", finished);
fs.put("SegmentSize", segmentSize);
| if(compressionCodec != null)
fs.putSingle("CompressionCodec", compressionCodec.toString());
|
5,049 | public class Relationship {
private static final int ARROWHEAD_LENGTH = 10;</BUG>
private static final int ARROWHEAD_WIDTH = ARROWHEAD_LENGTH / 2;
private Line edge;
private HTML label;
<BUG>private Widget from;
private Widget to;
</BUG>
private Line arrowheadLeft;
| package org.neo4j.server.ext.visualization.gwt.client;
import org.vaadin.gwtgraphics.client.Line;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.Style.Position;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.HTML;
private static final int ARROWHEAD_LENGTH = 10;
private Node from;
private Node to;
|
5,050 | arrowheadRight = new Line(0, 0, 0, 0);
parent.add(arrowheadRight);
updateArrowhead();
}
private void addEdge(VGraphComponent parent) {
<BUG>edge = new Line((int) Math.round(getCenterX(from)),
(int) Math.round(getCenterY(from)),
(int) Math.round(getCenterX(to)),
(int) Math.round(getCenterY(to)));
</BUG>
parent.add(edge);
| [DELETED] |
5,051 | label = new HTML("<div style='text-align:center'>" + type + "</div>");
parent.add(label);
Style style = label.getElement().getStyle();
style.setPosition(Position.ABSOLUTE);
style.setBackgroundColor("white");
<BUG>style.setFontSize(9, Unit.PX);
</BUG>
updateLabel();
}
void update() {
| style.setFontSize(10, Unit.PX);
|
5,052 | void update() {
updateEdge();
updateLabel();
updateArrowhead();
}
<BUG>private void updateArrowhead() {
double originX = getArrowheadOrigin(getCenterX(from), getCenterX(to));
double originY = getArrowheadOrigin(getCenterY(from), getCenterY(to));
double angle = Math.atan2(getCenterY(to) - getCenterY(from),
getCenterX(to) - getCenterX(from));</BUG>
double leftX = originX
| double fromX = from.getCenterX();
double fromY = from.getCenterY();
double toX = to.getCenterX();
double toY = to.getCenterY();
double originX = getArrowheadOrigin(fromX, toX);
double originY = getArrowheadOrigin(fromY, toY);
double angle = Math.atan2(toY - fromY, toX - fromX);
|
5,053 | double rightY = originY
+ rotateY(-ARROWHEAD_LENGTH, ARROWHEAD_WIDTH, angle);
updateLine(arrowheadRight, originX, originY, rightX, rightY);
}
private void updateEdge() {
<BUG>updateLine(edge, getCenterX(from), getCenterY(from), getCenterX(to),
getCenterY(to));
</BUG>
}
| updateLine(edge, from.getCenterX(), from.getCenterY(), to.getCenterX(),
to.getCenterY());
|
5,054 | package org.fedorahosted.flies.client.ant.po;
import java.io.IOException;
<BUG>import java.io.PrintStream;
import java.io.PrintWriter;
import java.net.MalformedURLException;</BUG>
import java.net.URISyntaxException;
import java.net.URL;
| [DELETED] |
5,055 | import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
<BUG>import org.cyclopsgroup.jcli.ArgumentProcessor;
import org.cyclopsgroup.jcli.annotation.Cli;
import org.cyclopsgroup.jcli.annotation.Option;</BUG>
import org.fedorahosted.flies.rest.client.ClientUtility;
import org.fedorahosted.flies.rest.client.FliesClientRequestFactory;
| [DELETED] |
5,056 | public void setFeedbackFinishedListener(FeedbackFinishedListener feedbackFinishedListener) {
mFeedbackFinishedListener = feedbackFinishedListener;
}
private boolean validatedMessage() {
boolean validMessage = mMessageEditText.getText() != null && !StringUtils.isNullOrBlank(mMessageEditText.getText().toString());
<BUG>if (validMessage){
</BUG>
mMessageEditText.setError(null);
} else {
mMessageEditText.setError(getResources().getString(R.string.com_appboy_feedback_form_invalid_message));
| if (validMessage) {
|
5,057 | page = webClient.getPage("file:///"+ new File(getReportDir()+"/jscoverage.html").getAbsolutePath());
verifyTotal(page, 57, 12, 33);
}
protected void verifyTotal(HtmlPage page, int percentage, int branchPercentage, int functionPercentage) throws IOException {
<BUG>page = ((HtmlElement)page.getElementById("summaryTab")).click();
webClient.waitForBackgroundJavaScript(2000);</BUG>
verifyTotals(page, percentage, branchPercentage, functionPercentage);
}
protected void verifyTotals(HtmlPage page, int percentage, int branchPercentage, int functionPercentage) {
assertEquals(percentage + "%", page.getElementById("summaryTotal").getTextContent());
| page = page.getElementById("summaryTab").click();
webClient.waitForBackgroundJavaScript(2000);
|
5,058 | 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 PatchUtils {
| import java.text.DateFormat;
import java.util.Date;
import java.util.List;
|
5,059 | 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;
|
5,060 | 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"),
MISC_FILES("misc-files"),
| APPLIES_TO_VERSION("applies-to-version"),
BUNDLES("bundles"),
|
5,061 | 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_VERSION:
if(type == Patch.PatchType.CUMULATIVE) {
| [DELETED] |
5,062 | 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, bytesToHexString(item.getContentHash()));
}
if(type != ModificationType.ADD) {
| if (item.isDirectory()) {
writer.writeAttribute(Attribute.DIRECTORY.name, "true");
if(type != ModificationType.REMOVE) {
|
5,063 | 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>
import java.util.List;
@MessageBundle(projectCode = "JBAS")
public interface PatchMessages {
| import org.jboss.logging.annotations.Cause;
import java.io.IOException;
|
5,064 | notifyDataSetChanged();
}
static class ViewHolder {
ViewGroup listItemRoot;
ImageView profileIcon;
<BUG>UnderlinedTextView profileName;
ImageView profileIndicator;</BUG>
int position;
}
public View getView(int position, View convertView, ViewGroup parent)
| ImageView profileIndicator;
|
5,065 | if (PPApplication.applicationActivatorPrefIndicator)
vi = inflater.inflate(R.layout.activate_profile_list_item, parent, false);
else
vi = inflater.inflate(R.layout.activate_profile_list_item_no_indicator, parent, false);
holder.listItemRoot = (RelativeLayout)vi.findViewById(R.id.act_prof_list_item_root);
<BUG>holder.profileName = (UnderlinedTextView) vi.findViewById(R.id.act_prof_list_item_profile_name);
holder.profileIcon = (ImageView)vi.findViewById(R.id.act_prof_list_item_profile_icon);</BUG>
if (PPApplication.applicationActivatorPrefIndicator)
holder.profileIndicator = (ImageView)vi.findViewById(R.id.act_prof_list_profile_pref_indicator);
}
| holder.profileName = (TextView) vi.findViewById(R.id.act_prof_list_item_profile_name);
holder.profileIcon = (ImageView)vi.findViewById(R.id.act_prof_list_item_profile_icon);
|
5,066 | }
else
{
vi = inflater.inflate(R.layout.activate_profile_grid_item, parent, false);
holder.listItemRoot = (LinearLayout)vi.findViewById(R.id.act_prof_list_item_root);
<BUG>holder.profileName = (UnderlinedTextView) vi.findViewById(R.id.act_prof_list_item_profile_name);
holder.profileIcon = (ImageView)vi.findViewById(R.id.act_prof_list_item_profile_icon);</BUG>
}
vi.setTag(holder);
}
| holder.profileName = (TextView) vi.findViewById(R.id.act_prof_list_item_profile_name);
holder.profileIcon = (ImageView)vi.findViewById(R.id.act_prof_list_item_profile_icon);
|
5,067 | if (profile != null)
{
if (profile._checked && (!PPApplication.applicationEditorHeader))
{
holder.profileName.setTypeface(null, Typeface.BOLD);
<BUG>holder.profileName.setUnderLineColor(GlobalGUIRoutines.getThemeAccentColor(fragment.getActivity()));
</BUG>
}
else
{
| holder.profileName.setTextColor(GlobalGUIRoutines.getThemeAccentColor(fragment.getActivity()));
|
5,068 | if (rs != null) {
while (rs.next()) {
clusterConfigTypeMap.put(rs.getString("cluster_name"), rs.getString("type_name"));
}
for (String clusterName : clusterConfigTypeMap.keySet()) {
<BUG>error("You have config(s), in cluster {}, that is(are) selected more than once in clusterconfigmapping table: {}",
clusterName ,StringUtils.join(clusterConfigTypeMap.get(clusterName), ","));</BUG>
}
}
} catch (SQLException e) {
| error("You have config(s), in cluster {}, that is(are) selected more than once in clusterconfig table: {}",
clusterName ,StringUtils.join(clusterConfigTypeMap.get(clusterName), ","));
|
5,069 | List<ClusterConfigEntity> notMappedClusterConfigs = getNotMappedClusterConfigsToService();
for (ClusterConfigEntity clusterConfigEntity : notMappedClusterConfigs){
List<String> types = new ArrayList<>();
String type = clusterConfigEntity.getType();
types.add(type);
<BUG>LOG.error("Removing cluster config mapping of type {} that is not mapped to any service", type);
clusterDAO.removeClusterConfigMappingEntityByTypes(clusterConfigEntity.getClusterId(),types);</BUG>
LOG.error("Removing config that is not mapped to any service", clusterConfigEntity);
clusterDAO.removeConfig(clusterConfigEntity);
}
| [DELETED] |
5,070 | layoutTypePortlet.setLayoutTemplateId(
0, PropsUtil.get(PropsUtil.LAYOUT_DEFAULT_TEMPLATE_ID),
false);
LayoutServiceUtil.updateLayout(
layout.getGroupId(), layout.isPrivateLayout(),
<BUG>layout.getLayoutId(), layout.getTypeSettings());
}</BUG>
}
else {
Layout layout = LayoutLocalServiceUtil.getLayout(
| [DELETED] |
5,071 | public static final String DELETE_ACTION_HISTORY_RESULT;
public static final String DELETE_ACTION_PLUGIN;
public static final String DELETE_ALERT;
public static final String DELETE_ALERT_CTIME;
public static final String DELETE_ALERT_LIFECYCLE;
<BUG>public static final String DELETE_ALERT_SEVERITY;
public static final String DELETE_ALERT_STATUS;</BUG>
public static final String DELETE_ALERT_TRIGGER;
public static final String DELETE_CONDITIONS;
public static final String DELETE_CONDITIONS_MODE;
| [DELETED] |
5,072 | public static final String INSERT_ACTION_PLUGIN;
public static final String INSERT_ACTION_PLUGIN_DEFAULT_PROPERTIES;
public static final String INSERT_ALERT;
public static final String INSERT_ALERT_CTIME;
public static final String INSERT_ALERT_LIFECYCLE;
<BUG>public static final String INSERT_ALERT_SEVERITY;
public static final String INSERT_ALERT_STATUS;</BUG>
public static final String INSERT_ALERT_TRIGGER;
public static final String INSERT_CONDITION_AVAILABILITY;
public static final String INSERT_CONDITION_COMPARE;
| [DELETED] |
5,073 | public static final String SELECT_ALERT_CTIME_START;
public static final String SELECT_ALERT_CTIME_START_END;
public static final String SELECT_ALERT_LIFECYCLE_END;
public static final String SELECT_ALERT_LIFECYCLE_START;
public static final String SELECT_ALERT_LIFECYCLE_START_END;
<BUG>public static final String SELECT_ALERT_STATUS;
public static final String SELECT_ALERT_SEVERITY;</BUG>
public static final String SELECT_ALERT_TRIGGER;
public static final String SELECT_ALERTS_BY_TENANT;
public static final String SELECT_CONDITION_ID;
| [DELETED] |
5,074 | DELETE_ALERT = "DELETE FROM " + keyspace + ".alerts " + "WHERE tenantId = ? AND alertId = ? ";
DELETE_ALERT_CTIME = "DELETE FROM " + keyspace + ".alerts_ctimes "
+ "WHERE tenantId = ? AND ctime = ? AND alertId = ? ";
DELETE_ALERT_LIFECYCLE = "DELETE FROM " + keyspace + ".alerts_lifecycle "
+ "WHERE tenantId = ? AND status = ? AND stime = ? AND alertId = ? ";
<BUG>DELETE_ALERT_SEVERITY = "DELETE FROM " + keyspace + ".alerts_severities "
+ "WHERE tenantId = ? AND severity = ? AND alertId = ? ";
DELETE_ALERT_STATUS = "DELETE FROM " + keyspace + ".alerts_statuses "
+ "WHERE tenantId = ? AND status = ? AND alertId = ? ";</BUG>
DELETE_ALERT_TRIGGER = "DELETE FROM " + keyspace + ".alerts_triggers "
| [DELETED] |
5,075 | INSERT_ALERT = "INSERT INTO " + keyspace + ".alerts " + "(tenantId, alertId, payload) VALUES (?, ?, ?) ";
INSERT_ALERT_CTIME = "INSERT INTO " + keyspace + ".alerts_ctimes "
+ "(tenantId, alertId, ctime) VALUES (?, ?, ?) ";
INSERT_ALERT_LIFECYCLE = "INSERT INTO " + keyspace + ".alerts_lifecycle "
+ "(tenantId, alertId, status, stime) VALUES (?, ?, ?, ?) ";
<BUG>INSERT_ALERT_SEVERITY = "INSERT INTO " + keyspace + ".alerts_severities "
+ "(tenantId, alertId, severity) VALUES (?, ?, ?) ";
INSERT_ALERT_STATUS = "INSERT INTO " + keyspace + ".alerts_statuses "
+ "(tenantId, alertId, status) VALUES (?, ?, ?) ";</BUG>
INSERT_ALERT_TRIGGER = "INSERT INTO " + keyspace + ".alerts_triggers "
| [DELETED] |
5,076 | + "WHERE tenantId = ? AND status = ? AND stime <= ? ";
SELECT_ALERT_LIFECYCLE_START = "SELECT alertId FROM " + keyspace + ".alerts_lifecycle "
+ "WHERE tenantId = ? AND status = ? AND stime >= ? ";
SELECT_ALERT_LIFECYCLE_START_END = "SELECT alertId FROM " + keyspace + ".alerts_lifecycle "
+ "WHERE tenantId = ? AND status = ? AND stime >= ? AND stime <= ? ";
<BUG>SELECT_ALERT_SEVERITY = "SELECT alertId FROM " + keyspace + ".alerts_severities "
+ "WHERE tenantId = ? AND severity = ? ";
SELECT_ALERT_STATUS = "SELECT alertId FROM " + keyspace + ".alerts_statuses "
+ "WHERE tenantId = ? AND status = ? ";</BUG>
SELECT_ALERTS_BY_TENANT = "SELECT payload FROM " + keyspace + ".alerts " + "WHERE tenantId = ? ";
| [DELETED] |
5,077 | import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
<BUG>import java.util.stream.Collectors;
import javax.ejb.EJB;</BUG>
import javax.ejb.Local;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
| import javax.annotation.PostConstruct;
import javax.ejb.EJB;
|
5,078 | import org.hawkular.alerts.api.model.trigger.Trigger;
import org.hawkular.alerts.api.services.ActionsService;
import org.hawkular.alerts.api.services.AlertsCriteria;
import org.hawkular.alerts.api.services.AlertsService;
import org.hawkular.alerts.api.services.DefinitionsService;
<BUG>import org.hawkular.alerts.api.services.EventsCriteria;
import org.hawkular.alerts.engine.impl.IncomingDataManagerImpl.IncomingData;</BUG>
import org.hawkular.alerts.engine.impl.IncomingDataManagerImpl.IncomingEvents;
import org.hawkular.alerts.engine.log.MsgLogger;
import org.hawkular.alerts.engine.service.AlertsEngine;
| import org.hawkular.alerts.api.services.PropertiesService;
import org.hawkular.alerts.engine.impl.IncomingDataManagerImpl.IncomingData;
|
5,079 | import com.datastax.driver.core.Session;
import com.google.common.util.concurrent.Futures;
@Local(AlertsService.class)
@Stateless
@TransactionAttribute(value = TransactionAttributeType.NOT_SUPPORTED)
<BUG>public class CassAlertsServiceImpl implements AlertsService {
private final MsgLogger msgLog = MsgLogger.LOGGER;
private final Logger log = Logger.getLogger(CassAlertsServiceImpl.class);
@EJB</BUG>
AlertsEngine alertsEngine;
| private static final String CRITERIA_NO_QUERY_SIZE = "hawkular-alerts.criteria-no-query-size";
private static final String CRITERIA_NO_QUERY_SIZE_ENV = "CRITERIA_NO_QUERY_SIZE";
private static final String CRITERIA_NO_QUERY_SIZE_DEFAULT = "200";
private int criteriaNoQuerySize;
|
5,080 | log.debug("Adding " + alerts.size() + " alerts");
}
PreparedStatement insertAlert = CassStatement.get(session, CassStatement.INSERT_ALERT);
PreparedStatement insertAlertTrigger = CassStatement.get(session, CassStatement.INSERT_ALERT_TRIGGER);
PreparedStatement insertAlertCtime = CassStatement.get(session, CassStatement.INSERT_ALERT_CTIME);
<BUG>PreparedStatement insertAlertStatus = CassStatement.get(session, CassStatement.INSERT_ALERT_STATUS);
PreparedStatement insertAlertSeverity = CassStatement.get(session, CassStatement.INSERT_ALERT_SEVERITY);</BUG>
PreparedStatement insertTag = CassStatement.get(session, CassStatement.INSERT_TAG);
try {
List<ResultSetFuture> futures = new ArrayList<>();
| [DELETED] |
5,081 | futures.add(session.executeAsync(insertAlertTrigger.bind(a.getTenantId(),
a.getAlertId(),
a.getTriggerId())));
futures.add(session.executeAsync(insertAlertCtime.bind(a.getTenantId(),
a.getAlertId(), a.getCtime())));
<BUG>futures.add(session.executeAsync(insertAlertStatus.bind(a.getTenantId(),
a.getAlertId(),
a.getStatus().name())));
futures.add(session.executeAsync(insertAlertSeverity.bind(a.getTenantId(),
a.getAlertId(),
a.getSeverity().name())));</BUG>
a.getTags().entrySet().stream().forEach(tag -> {
| [DELETED] |
5,082 | for (Row row : rsAlerts) {
String payload = row.getString("payload");
Alert alert = JsonUtil.fromJson(payload, Alert.class, thin);
alerts.add(alert);
}
<BUG>}
} catch (Exception e) {
msgLog.errorDatabaseException(e.getMessage());
throw e;
}
return preparePage(alerts, pager);</BUG>
}
| [DELETED] |
5,083 | for (Alert a : alertsToDelete) {
String id = a.getAlertId();
List<ResultSetFuture> futures = new ArrayList<>();
futures.add(session.executeAsync(deleteAlert.bind(tenantId, id)));
futures.add(session.executeAsync(deleteAlertCtime.bind(tenantId, a.getCtime(), id)));
<BUG>futures.add(session.executeAsync(deleteAlertSeverity.bind(tenantId, a.getSeverity().name(), id)));
futures.add(session.executeAsync(deleteAlertStatus.bind(tenantId, a.getStatus().name(), id)));</BUG>
futures.add(session.executeAsync(deleteAlertTrigger.bind(tenantId, a.getTriggerId(), id)));
a.getLifecycle().stream().forEach(l -> {
futures.add(
| [DELETED] |
5,084 | private Alert updateAlertStatus(Alert alert) throws Exception {
if (alert == null || alert.getAlertId() == null || alert.getAlertId().isEmpty()) {
throw new IllegalArgumentException("AlertId must be not null");
}
try {
<BUG>PreparedStatement deleteAlertStatus = CassStatement.get(session,
CassStatement.DELETE_ALERT_STATUS);
PreparedStatement insertAlertStatus = CassStatement.get(session,
CassStatement.INSERT_ALERT_STATUS);</BUG>
PreparedStatement insertAlertLifecycle = CassStatement.get(session,
| [DELETED] |
5,085 | PreparedStatement insertAlertLifecycle = CassStatement.get(session,
CassStatement.INSERT_ALERT_LIFECYCLE);
PreparedStatement updateAlert = CassStatement.get(session,
CassStatement.UPDATE_ALERT);
List<ResultSetFuture> futures = new ArrayList<>();
<BUG>for (Status statusToDelete : EnumSet.complementOf(EnumSet.of(alert.getStatus()))) {
futures.add(session.executeAsync(deleteAlertStatus.bind(alert.getTenantId(), statusToDelete.name(),
alert.getAlertId())));
}
futures.add(session.executeAsync(insertAlertStatus.bind(alert.getTenantId(), alert.getAlertId(), alert
.getStatus().name())));</BUG>
Alert.LifeCycle lifecycle = alert.getCurrentLifecycle();
| [DELETED] |
5,086 | String category = null;
Collection<String> categories = null;
String triggerId = null;
Collection<String> triggerIds = null;
Map<String, String> tags = null;
<BUG>boolean thin = false;
public EventsCriteria() {</BUG>
super();
}
public Long getStartTime() {
| Integer criteriaNoQuerySize = null;
public EventsCriteria() {
|
5,087 | }
@Override
public String toString() {
return "EventsCriteria [startTime=" + startTime + ", endTime=" + endTime + ", eventId=" + eventId
+ ", eventIds=" + eventIds + ", category=" + category + ", categories=" + categories + ", triggerId="
<BUG>+ triggerId + ", triggerIds=" + triggerIds + ", tags=" + tags + ", thin=" + thin + "]";
}</BUG>
}
| public void addTag(String name, String value) {
if (null == tags) {
tags = new HashMap<>();
|
5,088 | import com.quickblox.sample.chat.utils.SharedPreferencesUtil;
import com.quickblox.sample.core.ui.activity.CoreSplashActivity;
public class SplashActivity extends CoreSplashActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
<BUG>super.onCreate(savedInstanceState);
proceedToTheNextActivityWithDelay();
}</BUG>
@Override
protected String getAppName() {
| if (checkConfigsWithSnackebarError()){
}
}
|
5,089 | insertionTable.removeIf(filter);
return modified;
}
@Override
public int size() {
<BUG>return insertionTable.size();
</BUG>
}
@Override
public FastCollection<E>[] trySplit(int n) {
| return inner.size();
|
5,090 | package org.javolution.util.internal.collection;
<BUG>import java.util.Collection;
import org.javolution.util.FastCollection;
import org.javolution.util.ReadOnlyIterator;</BUG>
import org.javolution.util.function.BinaryOperator;
import org.javolution.util.function.Consumer;
| import java.util.Iterator;
|
5,091 | package org.javolution.util;
<BUG>import java.util.Collection;
import org.javolution.lang.Constant;</BUG>
import org.javolution.util.function.Order;
import org.javolution.util.function.Predicate;
@Constant
| import java.util.Iterator;
import org.javolution.lang.Constant;
|
5,092 | package org.javolution.util;
import java.util.Collection;
<BUG>import java.util.Comparator;
import java.util.NoSuchElementException;</BUG>
import org.javolution.lang.Constant;
import org.javolution.util.function.Equality;
import org.javolution.util.function.Predicate;
| import java.util.Iterator;
import java.util.NoSuchElementException;
|
5,093 | package org.javolution.util;
<BUG>import java.util.Collection;
import java.util.Map;</BUG>
import org.javolution.lang.Constant;
import org.javolution.util.function.Equality;
import org.javolution.util.function.Order;
| import java.util.Iterator;
import java.util.Map;
|
5,094 | package com.paypal.svcs.types.ap;
import com.paypal.svcs.types.common.RequestEnvelope;
import java.io.UnsupportedEncodingException;
import com.paypal.core.NVPUtil;
<BUG>public class PreapprovalDetailsRequest{
private RequestEnvelope requestEnvelope;</BUG>
private String preapprovalKey;
private Boolean getBillingAddress;
public PreapprovalDetailsRequest (RequestEnvelope requestEnvelope, String preapprovalKey){
| private static final String nameSpace="com.paypal.svcs.types.ap";
private static final String preferredPrefix="";
private RequestEnvelope requestEnvelope;
|
5,095 | import com.paypal.svcs.types.common.AccountIdentifier;
import java.util.List;
import java.util.ArrayList;
import java.io.UnsupportedEncodingException;
import com.paypal.core.NVPUtil;
<BUG>public class GetUserLimitsRequest{
private RequestEnvelope requestEnvelope;</BUG>
private AccountIdentifier user;
private String country;
private String currencyCode;
| private static final String nameSpace="com.paypal.svcs.types.ap";
private static final String preferredPrefix="";
private RequestEnvelope requestEnvelope;
|
5,096 | import com.paypal.svcs.types.common.RequestEnvelope;
import com.paypal.svcs.types.common.ClientDetailsType;
import com.paypal.svcs.types.common.DayOfWeek;
import java.io.UnsupportedEncodingException;
import com.paypal.core.NVPUtil;
<BUG>public class PreapprovalRequest{
private RequestEnvelope requestEnvelope;</BUG>
private ClientDetailsType clientDetails;
private String cancelUrl;
private String currencyCode;
| private static final String nameSpace="com.paypal.svcs.types.ap";
private static final String preferredPrefix="";
private RequestEnvelope requestEnvelope;
|
5,097 | private String ipnNotificationUrl;
private String senderEmail;
private String startingDate;
private String pinType;
private String feesPayer;
<BUG>private Boolean displayMaxTotalAmount;
public PreapprovalRequest (RequestEnvelope requestEnvelope, String cancelUrl, String currencyCode, String returnUrl, String startingDate){</BUG>
this.requestEnvelope = requestEnvelope;
this.cancelUrl = cancelUrl;
this.currencyCode = currencyCode;
| private Boolean requireInstantFundingSource;
public PreapprovalRequest (RequestEnvelope requestEnvelope, String cancelUrl, String currencyCode, String returnUrl, String startingDate){
|
5,098 | package com.paypal.svcs.types.ap;
import java.io.UnsupportedEncodingException;
import com.paypal.core.NVPUtil;
import java.util.Map;
<BUG>public class SenderOptions{
private Boolean requireShippingAddressSelection;</BUG>
private String referrerCode;
public SenderOptions (){
}
| private static final String nameSpace="com.paypal.svcs.types.ap";
private static final String preferredPrefix="";
private Boolean requireShippingAddressSelection;
|
5,099 | package com.paypal.svcs.types.ap;
import com.paypal.svcs.types.common.RequestEnvelope;
import com.paypal.svcs.types.ap.ReceiverList;
import java.io.UnsupportedEncodingException;
import com.paypal.core.NVPUtil;
<BUG>public class RefundRequest{
private RequestEnvelope requestEnvelope;</BUG>
private String currencyCode;
private String payKey;
private String transactionId;
| private static final String nameSpace="com.paypal.svcs.types.ap";
private static final String preferredPrefix="";
private RequestEnvelope requestEnvelope;
|
5,100 | package com.paypal.svcs.types.ap;
import com.paypal.svcs.types.common.RequestEnvelope;
import java.io.UnsupportedEncodingException;
import com.paypal.core.NVPUtil;
<BUG>public class GetAvailableShippingAddressesRequest{
private RequestEnvelope requestEnvelope;</BUG>
private String key;
public GetAvailableShippingAddressesRequest (RequestEnvelope requestEnvelope, String key){
this.requestEnvelope = requestEnvelope;
| private static final String nameSpace="com.paypal.svcs.types.ap";
private static final String preferredPrefix="";
private RequestEnvelope requestEnvelope;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.