id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
22,901 | return this.name;
}
public int getWidth() {
return this.width;
}
<BUG>public SidebarHandler getSidebarHandler() {
return this.sidebarHandler;
</BUG>
}
public Element[] createElements(QubbleGUI create) {
| public SidebarHandler createHandler(ModelType modelType) {
return this.sidebarHandler.apply(modelType);
|
22,902 | package net.ilexiconn.qubble.client.gui;
<BUG>import net.ilexiconn.llibrary.client.model.qubble.QubbleCuboid;
import net.ilexiconn.llibrary.client.model.qubble.QubbleModel;
public class Project {
private QubbleGUI gui;
private QubbleModel model;
private QubbleCuboid selectedCube;
</BUG>
private ModelTexture baseTextur... | import net.ilexiconn.qubble.client.model.ModelType;
import net.ilexiconn.qubble.client.model.wrapper.CuboidWrapper;
import net.ilexiconn.qubble.client.model.wrapper.ModelWrapper;
public class Project<CBE extends CuboidWrapper<CBE>, MDL extends ModelWrapper<CBE>> {
private ModelType modelType;
private MDL model;
private... |
22,903 | import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
public class DependencyConvergenceReport
extends AbstractProjectInfoReport
<BUG>{
private List reactorProjects;
private static final int PERCENTAGE = 100;</BUG>
public String getOutputName()
{
| private static final int PERCENTAGE = 100;
private static final List SUPPORTED_FONT_FAMILY_NAMES = Arrays.asList( GraphicsEnvironment
.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() );
|
22,904 | sink.section1();
sink.sectionTitle1();
sink.text( getI18nString( locale, "title" ) );
sink.sectionTitle1_();
Map dependencyMap = getDependencyMap();
<BUG>generateLegend( locale, sink );
generateStats( locale, sink, dependencyMap );
generateConvergence( locale, sink, dependencyMap );
sink.section1_();</BUG>
sink.body_()... | sink.lineBreak();
sink.section1_();
|
22,905 | Iterator it = artifactMap.keySet().iterator();
while ( it.hasNext() )
{
String version = (String) it.next();
sink.tableRow();
<BUG>sink.tableCell();
sink.text( version );</BUG>
sink.tableCell_();
sink.tableCell();
generateVersionDetails( sink, artifactMap, version );
| sink.tableCell( String.valueOf( cellWidth ) + "px" );
sink.text( version );
|
22,906 | sink.tableCell();
sink.text( getI18nString( locale, "legend.shared" ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableCell();
iconError( sink );</BUG>
sink.tableCell_();
sink.tableCell();
sink.text( getI18nString( locale, "legend.different" ) );
| sink.tableCell( "15px" ); // according /images/icon_error_sml.gif
iconError( sink );
|
22,907 | sink.tableCaption();
sink.text( getI18nString( locale, "stats.caption" ) );
sink.tableCaption_();</BUG>
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.subprojects" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
s... | sink.bold();
sink.bold_();
sink.tableCaption_();
sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.subprojects" ) );
sink.tableHeaderCell_();
|
22,908 | sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.dependencies" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( depCount ) );
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.dependencies" ) );
sink.tableHeaderCell_();
|
22,909 | sink.text( String.valueOf( convergence ) + "%" );
sink.bold_();
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.readyrelease" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
if ( convergence >= PERCENTAGE && snapshotCount <= 0 )
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.readyrelease" ) );
sink.tableHeaderCell_();
|
22,910 | {
ReverseDependencyLink p1 = (ReverseDependencyLink) o1;
ReverseDependencyLink p2 = (ReverseDependencyLink) o2;
return p1.getProject().getId().compareTo( p2.getProject().getId() );
}
<BUG>else
{</BUG>
return 0;
}
}
| iconError( sink );
|
22,911 | json.writeAttribute(4, true, "id", prop.getId());
json.writeAttribute(4, true, "name", prop.getName());
if (prop.getLinkedClass() != null)
json.writeAttribute(4, true, "linkedClass", prop.getLinkedClass().getName());
if (prop.getLinkedType() != null)
<BUG>json.writeAttribute(4, true, "linkedType", prop.getLinkedType())... | json.writeAttribute(4, true, "linkedType", prop.getLinkedType().toString());
|
22,912 | TestUtils.assertSamePermissions(permissions, accessToken);
assertEquals(token, accessToken.getToken());
assertEquals(AccessTokenSource.FACEBOOK_APPLICATION_NATIVE, accessToken.getSource());
assertTrue(!accessToken.isExpired());
Bundle cachedBundle = AccessTokenTestHelper.toLegacyCacheBundle(accessToken);
<BUG>TestUtils... | TestUtils.assertEqualContentsWithoutOrder(bundle, cachedBundle);
|
22,913 | TestUtils.assertSamePermissions(permissions, accessToken);
assertEquals(token, accessToken.getToken());
assertEquals(AccessTokenSource.FACEBOOK_APPLICATION_WEB, accessToken.getSource());
assertTrue(!accessToken.isExpired());
Bundle cache = AccessTokenTestHelper.toLegacyCacheBundle(accessToken);
<BUG>TestUtils.assertEqu... | TestUtils.assertEqualContentsWithoutOrder(bundle, cache);
|
22,914 | package com.gamingmesh.jobs.commands.list;
<BUG>import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;</BUG>
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.gamingmesh.jobs.Jobs;
| [DELETED] |
22,915 | if (jobsleaveevent.isCancelled())
return false;
Jobs.getJobsDAO().recordToArchive(jPlayer, job);
if (!jPlayer.leaveJob(job))
return false;
<BUG>Jobs.getJobsDAO().quitJob(jPlayer, job);
PerformCommands.PerformCommandsOnLeave(jPlayer, job);</BUG>
Jobs.leaveSlot(job);
Jobs.getSignUtil().SignUpdate(job.getName());
| if (!Jobs.getJobsDAO().quitJob(jPlayer, job))
PerformCommands.PerformCommandsOnLeave(jPlayer, job);
|
22,916 | @Override
@JobCommand(2600)
public boolean perform(Jobs plugin, final CommandSender sender, final String[] args) {
if (sender instanceof Player) {
sender.sendMessage(Jobs.getLanguage().getMessage("general.error.fromconsole"));
<BUG>return false;
}</BUG>
if (args.length > 0) {
Jobs.getCommandManager().sendUsage(sender, ... | }
|
22,917 | list = Jobs.getJobsDAO().convertDatabase("jobs");
archivelist = Jobs.getJobsDAO().convertDatabase("archive");
} catch (SQLException e) {
e.printStackTrace();
sender.sendMessage(ChatColor.RED + "Can't read data from data base, please send error log to dev's.");
<BUG>return false;
}</BUG>
Jobs.ChangeDatabase();
if (list ... | return true;
}
|
22,918 | EditorCell_Collection result = jetbrains.mps.nodeEditor.cells.EditorCell_Collection.createIndent2(editorContext, node);
result.setBig(true);
result.getStyle().putAll(StyleRegistry.getInstance().getStyle("LINE_COMMENT"), 1);
result.addEditorCell(createCommentConstantCell(editorContext, node, true));
result.addEditorCell... | result.setCellId("main_comment_collection");
return result;
|
22,919 | }
private EditorCell_Constant createCommentConstantCell(jetbrains.mps.openapi.editor.EditorContext editorContext, SNode node, boolean left) {
EditorCell_Constant cell = new EditorCell_Constant(editorContext, node, left ? "/*" : "*/", false);
StyleImpl style = new StyleImpl();
style.set(left ? StyleAttributes.PUNCTUATIO... | cell.setCellId(left ? "left_comment_constant" : "right_comment_constant");
return cell;
|
22,920 | import org.jetbrains.annotations.NotNull;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.openapi.editor.selection.Selection;
import jetbrains.mps.openapi.editor.selection.SingularSelection;
<BUG>import jetbrains.mps.opena... | import jetbrains.mps.openapi.editor.cells.EditorCell_Label;
import jetbrains.mps.nodeEditor.cells.CellFinderUtil;
|
22,921 | import jetbrains.mps.editor.runtime.cells.AbstractCellAction;
import org.jetbrains.mps.openapi.model.SNode;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
<BUG>import jetbrains.mps.openapi.editor.cell... | import jetbrains.mps.openapi.editor.cells.EditorCell_Label;
import jetbrains.mps.nodeEditor.cells.CellFinderUtil;
|
22,922 | import org.ojalgo.scalar.Quaternion;
import org.ojalgo.scalar.RationalNumber;
import org.ojalgo.scalar.Scalar;
import org.ojalgo.type.context.NumberContext;
public final class SparseArray<N extends Number> extends BasicArray<N> {
<BUG>public static final class SparseFactory<N extends Number> extends StrategyBuilder<N, ... | [DELETED] |
22,923 | }
public BasicArrayTest(final String aName) {
super(aName);
}
public void testHugeSparse() {
<BUG>this.doTest(SparseArray.make(Primitive64Array.FACTORY, Long.MAX_VALUE, COUNT));
</BUG>
}
public void testPrimitive32() {
this.doTest(Primitive32Array.make(COUNT));
| Arrays.sort(INDICES);
public BasicArrayTest() {
super();
this.doTest(SparseArray.factory(Primitive64Array.FACTORY, Long.MAX_VALUE).initial(COUNT).make());
|
22,924 | private double myPivot = ZERO;
private final double myRHS;
public Equation(final int row, final long numberOfColumns, final double rhs) {
super();
index = row;
<BUG>myElements = SparseArray.make(Primitive64Array.FACTORY, numberOfColumns);
</BUG>
myRHS = rhs;
}
public Equation(final int row, final long numberOfColumns, ... | myElements = SparseArray.factory(Primitive64Array.FACTORY, numberOfColumns).make();
|
22,925 | myRHS = rhs;
}
public Equation(final int row, final long numberOfColumns, final double rhs, final int numberOfNonzeros) {
super();
index = row;
<BUG>myElements = SparseArray.make(Primitive64Array.FACTORY, numberOfColumns, numberOfNonzeros);
</BUG>
myRHS = rhs;
}
public void add(final long index, final double addend) {
| myElements = SparseArray.factory(Primitive64Array.FACTORY, numberOfColumns).initial(numberOfNonzeros).make();
|
22,926 | super();
myNumberOfConstraints = numberOfConstraints;
myNumberOfVariables = numberOfVariables;
myRows = new SparseArray[numberOfConstraints];
for (int r = 0; r < numberOfConstraints; r++) {
<BUG>myRows[r] = SparseArray.make(Primitive64Array.FACTORY, myNumberOfVariables, 4);
</BUG>
}
myRHS = Primitive64Array.make((int) ... | myRows[r] = SparseArray.factory(Primitive64Array.FACTORY, myNumberOfVariables).initial(4).make();
|
22,927 | package org.ojalgo.array;
import org.ojalgo.random.Distribution;
<BUG>abstract class StrategyBuilder<N extends Number, SB extends StrategyBuilder<N, SB>> {
</BUG>
private final DenseStrategy<N> myStrategy;
public StrategyBuilder(final DenseArray.Factory<N> denseFactory) {
super();
| import org.ojalgo.access.Access1D;
abstract class StrategyBuilder<N extends Number, I extends Access1D<N>, SB extends StrategyBuilder<N, I, SB>> {
|
22,928 | timeWarp = new OwnLabel(getFormattedTimeWrap(), skin, "warp");
timeWarp.setName("time warp");
Container wrapWrapper = new Container(timeWarp);
wrapWrapper.width(60f * GlobalConf.SCALE_FACTOR);
wrapWrapper.align(Align.center);
<BUG>VerticalGroup timeGroup = new VerticalGroup().align(Align.left).space(3 * GlobalConf.SCAL... | VerticalGroup timeGroup = new VerticalGroup().align(Align.left).columnAlign(Align.left).space(3 * GlobalConf.SCALE_FACTOR).padTop(3 * GlobalConf.SCALE_FACTOR);
|
22,929 | focusListScrollPane.setFadeScrollBars(false);
focusListScrollPane.setScrollingDisabled(true, false);
focusListScrollPane.setHeight(tree ? 200 * GlobalConf.SCALE_FACTOR : 100 * GlobalConf.SCALE_FACTOR);
focusListScrollPane.setWidth(160);
}
<BUG>VerticalGroup objectsGroup = new VerticalGroup().align(Align.left).space(3 *... | VerticalGroup objectsGroup = new VerticalGroup().align(Align.left).columnAlign(Align.left).space(3 * GlobalConf.SCALE_FACTOR);
|
22,930 | headerGroup.addActor(expandIcon);
headerGroup.addActor(detachIcon);
addActor(headerGroup);
expandIcon.setChecked(expanded);
}
<BUG>public void expand() {
</BUG>
if (!expandIcon.isChecked()) {
expandIcon.setChecked(true);
}
| public void expandPane() {
|
22,931 | </BUG>
if (!expandIcon.isChecked()) {
expandIcon.setChecked(true);
}
}
<BUG>public void collapse() {
</BUG>
if (expandIcon.isChecked()) {
expandIcon.setChecked(false);
}
| headerGroup.addActor(expandIcon);
headerGroup.addActor(detachIcon);
addActor(headerGroup);
expandIcon.setChecked(expanded);
public void expandPane() {
public void collapsePane() {
|
22,932 | });
playstop.addListener(new TextTooltip(txt("gui.tooltip.playstop"), skin));
TimeComponent timeComponent = new TimeComponent(skin, ui);
timeComponent.initialize();
CollapsiblePane time = new CollapsiblePane(ui, txt("gui.time"), timeComponent.getActor(), skin, true, playstop);
<BUG>time.align(Align.left);
mainActors.ad... | time.align(Align.left).columnAlign(Align.left);
mainActors.add(time);
|
22,933 | panes.put(visualEffectsComponent.getClass().getSimpleName(), visualEffects);
ObjectsComponent objectsComponent = new ObjectsComponent(skin, ui);
objectsComponent.setSceneGraph(sg);
objectsComponent.initialize();
CollapsiblePane objects = new CollapsiblePane(ui, txt("gui.objects"), objectsComponent.getActor(), skin, fal... | objects.align(Align.left).columnAlign(Align.left);
mainActors.add(objects);
|
22,934 | if (Constants.desktop) {
MusicComponent musicComponent = new MusicComponent(skin, ui);
musicComponent.initialize();
Actor[] musicActors = MusicActorsManager.getMusicActors() != null ? MusicActorsManager.getMusicActors().getActors(skin) : null;
CollapsiblePane music = new CollapsiblePane(ui, txt("gui.music"), musicCompo... | music.align(Align.left).columnAlign(Align.left);
mainActors.add(music);
|
22,935 | package org.sonar.server.search;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Multimap;
import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse;
<BUG>import org.elasticsearch.action.bulk.BulkRequestBuilder;... | import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.delete.DeleteRequestBuilder;
import org.elasticsearch.action.delete.DeleteResponse;
import org.elasticsearch.action.get.GetRequestBuilder;
import org.elasticsearch.action.get.GetResponse;
|
22,936 | SearchRequestBuilder request = getClient().prepareSearch(this.getIndexName())
.setTypes(this.getIndexType())
.setQuery(QueryBuilders.matchAllQuery())
.setSize(0)
.addAggregation(AggregationBuilders.max("latest")
<BUG>.field(BaseNormalizer.UPDATED_AT_FIELD));
SearchResponse response = request.get();
Max max = (Max) resp... | basicProfile.stop(request.toString());
fullProfile.stop(response.toString());
Max max = (Max) response.getAggregations().get("latest");
|
22,937 | .setForce(false)
.setIndices(this.getIndexName())
.get();
}
protected abstract DOMAIN toDoc(Map<String, Object> fields);
<BUG>public DOMAIN getByKey(KEY key) {
GetResponse response = getClient().prepareGet()
</BUG>
.setType(this.getIndexType())
.setIndex(this.getIndexName())
| StopWatch fullProfile = profiling.start("es", Profiling.Level.FULL);
StopWatch basicProfile = profiling.start("es", Profiling.Level.BASIC);
GetRequestBuilder request = getClient().prepareGet()
|
22,938 | .id(this.getKeyValue(key))
.index(this.getIndexName())
.type(this.getIndexType()));
}
}
<BUG>bulkRequest.get();
}</BUG>
@Override
public void upsert(KEY key, Object object, Object... objects) throws Exception {
long t0 = System.currentTimeMillis();
| basicProfile.stop(bulkRequest.toString());
BulkResponse response = bulkRequest.get();
fullProfile.stop(response.toString());
|
22,939 | LOG.debug("DELETE _id:{} in index {}", key, this.getIndexName());
getClient()
.prepareDelete()</BUG>
.setIndex(this.getIndexName())
.setType(this.getIndexType())
<BUG>.setId(this.getKeyValue(key))
.get();
}</BUG>
@Override
| DeleteRequestBuilder request = getClient()
.prepareDelete()
.setId(this.getKeyValue(key));
basicProfile.stop(request.toString());
DeleteResponse response = request.get();
fullProfile.stop(response.toString());
}
|
22,940 | public Long countAll() {
return getClient().prepareCount(this.getIndexName())
.setTypes(this.getIndexType())
.get().getCount();
}
<BUG>public Map<String, Long> countByField(IndexField indexField, FilterBuilder filter) {
Map<String, Long> counts = new HashMap<String, Long>();
Terms values = getClient().prepareSearch(thi... | StopWatch fullProfile = profiling.start("es", Profiling.Level.FULL);
StopWatch basicProfile = profiling.start("es", Profiling.Level.BASIC);
SearchRequestBuilder request = getClient().prepareSearch(this.getIndexName())
|
22,941 | .addAggregation(AggregationBuilders
.terms(indexField.field())
.field(indexField.field())
.order(Terms.Order.count(false))
.size(Integer.MAX_VALUE)
<BUG>.minDocCount(0)).get()
.getAggregations().get(indexField.field());
</BUG>
for (Terms.Bucket value : values.getBuckets()) {
| .minDocCount(0));
basicProfile.stop(request.toString());
SearchResponse response = request.get();
fullProfile.stop(response.toString());
Terms values =
response.getAggregations().get(indexField.field());
|
22,942 | setSorting(query, esSearch);
setPagination(options, esSearch);
setFields(options, esSearch);
FilterBuilder fb = this.getFilter(query, options);
QueryBuilder qb = this.getQuery(query, options);
<BUG>esSearch.setQuery(QueryBuilders.filteredQuery(qb, fb));
SearchResponse esResult = esSearch.get();
profile.stop("query: " +... | basicProfile.stop(esSearch.toString());
fullProfile.stop(esResult.toString());
return new Result<Rule>(this, esResult);
|
22,943 | String command = null;
String result = null;
Socket socket;
while (continueListenning() && (socket = getSocket()) != null) {
try {
<BUG>time = System.currentTimeMillis();
try {</BUG>
InputStream inputStream = socket.getInputStream();
InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "ISO-8859-1")... | InetAddress ipAddress = socket.getInetAddress();
|
22,944 | InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "ISO-8859-1");
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
command = bufferedReader.readLine();
if (command == null) {
command = "DISCONNECTED";
<BUG>} else {
result = AdministrationTCP.this.processCommand(command);
</BU... | Client client = Client.get(ipAddress);
User user = client == null ? null : client.getUser();
result = AdministrationTCP.this.processCommand(user, command);
|
22,945 | } catch (SocketException ex) {
Server.logDebug("interrupted " + getName() + " connection.");
result = "INTERRUPTED\n";
} finally {
socket.close();
<BUG>InetAddress address = socket.getInetAddress();
</BUG>
clearSocket();
Server.logAdministration(
time,
| InetAddress address = ipAddress;
|
22,946 | .filter(notNull(COLUMN_PROCESS_ID))
.column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes")
.format(COLUMN_PROCESS_INSTANCE_ID, i18n.processes(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings()... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,947 | .filter(COLUMN_PROCESS_STATUS, equalsTo(1))
.column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes")
.format(COLUMN_PROCESS_INSTANCE_ID, i18n.activeProcesses(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.b... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,948 | .filter(COLUMN_PROCESS_STATUS, equalsTo(0))
.column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes")
.format(COLUMN_PROCESS_INSTANCE_ID, i18n.pendingProcesses(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,949 | .filter(COLUMN_PROCESS_STATUS, equalsTo(4))
.column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes")
.format(COLUMN_PROCESS_INSTANCE_ID, i18n.suspendedProcesses(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,950 | .filter(COLUMN_PROCESS_STATUS, equalsTo(3))
.column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes")
.format(COLUMN_PROCESS_INSTANCE_ID, i18n.abortedProcesses(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,951 | .filter(COLUMN_PROCESS_STATUS, equalsTo(2))
.column(COLUMN_PROCESS_INSTANCE_ID, COUNT, "Processes")
.format(COLUMN_PROCESS_INSTANCE_ID, i18n.completedProcesses(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,952 | .filter(notNull(COLUMN_TASK_ID))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasks(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings();
| .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,953 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_CREATED))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksCreated(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings();
| .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,954 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_READY))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksReady(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings();
| .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,955 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_RESERVED))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksReserved(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings()... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,956 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_IN_PROGRESS))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksInProgress(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSetti... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,957 | .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)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,958 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_COMPLETED))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksCompleted(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,959 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_FAILED))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksFailed(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings();
| .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,960 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_ERROR))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksError(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings();
| .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,961 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_EXITED))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksExited(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings();
| .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,962 | .filter(COLUMN_TASK_STATUS, equalsTo(TASK_STATUS_OBSOLETE))
.column(COLUMN_TASK_ID, COUNT, "Tasks")
.format(COLUMN_TASK_ID, i18n.tasksObsolete(), NO_DECIMALS)
.width(METRIC_WIDTH).height(METRIC_HEIGHT)
.margins(0, 0, 0, 0)
<BUG>.backgroundColor(BG_COLOR)
.filterOn(false, true, true)</BUG>
.refreshOn()
.buildSettings()... | .backgroundColor(METRIC_BG)
.htmlTemplate(METRIC_HTML)
.jsTemplate(METRIC_JS)
.filterOn(false, true, true)
|
22,963 | if(worldIn.getTileEntity(pos) != null){
TileEntity te = worldIn.getTileEntity(pos);
if(te.hasCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null) && te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).getTemp() >= -273D + mult){
te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).addHeat(-mult);
}
<... | if(te.hasCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null)){
te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).addHeat(mult);
|
22,964 | public static double betterRound(double numIn, int decPlac){
double opOn = Math.round(numIn * Math.pow(10, decPlac)) / Math.pow(10D, decPlac);
return opOn;
}
public static double centerCeil(double numIn, int tiers){
<BUG>return ((numIn > 0) ? Math.ceil(numIn * tiers) : Math.floor(numIn * tiers)) / tiers;
</BUG>
}
publi... | return ((numIn > 0) ? Math.ceil(numIn * (double) tiers) : Math.floor(numIn * (double) tiers)) / (double) tiers;
|
22,965 | package com.Da_Technomancer.crossroads.API;
import com.Da_Technomancer.crossroads.API.DefaultStorageHelper.DefaultStorage;
import com.Da_Technomancer.crossroads.API.heat.DefaultHeatHandler;
import com.Da_Technomancer.crossroads.API.heat.IHeatHandler;
import com.Da_Technomancer.crossroads.API.magic.DefaultMagicHandler;
... | import com.Da_Technomancer.crossroads.API.rotary.DefaultAxleHandler;
import com.Da_Technomancer.crossroads.API.rotary.DefaultCogHandler;
import com.Da_Technomancer.crossroads.API.rotary.IAxleHandler;
import com.Da_Technomancer.crossroads.API.rotary.ICogHandler;
|
22,966 | import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.common.capabilities.CapabilityManager;
public class Capabilities{
@CapabilityInject(IHeatHandler.class)
<BUG>public static Capability<IHeatHandler> HEAT_HANDLER_CAPABILITY ... | @CapabilityInject(IAxleHandler.class)
public static Capability<IAxleHandler> AXLE_HANDLER_CAPABILITY = null;
@CapabilityInject(ICogHandler.class)
public static Capability<ICogHandler> COG_HANDLER_CAPABILITY = null;
|
22,967 | public IEffect getMixEffect(Color col){
if(col == null){
return effect;
}
int top = Math.max(col.getBlue(), Math.max(col.getRed(), col.getGreen()));
<BUG>if(top < rand.nextInt(128) + 128){
return voidEffect;</BUG>
}
return effect;
}
| if(top != 255){
return voidEffect;
|
22,968 | return list.toArray(new PsiClass[list.size()]);
}
@Override
@NotNull
public String[] getAllClassNames() {
<BUG>final Collection<String> names = JavaShortClassNameIndex.getInstance().getAllKeys(myManager.getProject());
return ArrayUtil.toStringArray(names);</BUG>
}
@Override
| return ArrayUtil.toStringArray(JavaShortClassNameIndex.getInstance().getAllKeys(myManager.getProject()));
|
22,969 |
return ArrayUtil.toStringArray(names);</BUG>
}
@Override
public void getAllClassNames(@NotNull HashSet<String> set) {
<BUG>set.addAll(JavaShortClassNameIndex.getInstance().getAllKeys(myManager.getProject()));
}</BUG>
@Override
@NotNull
public PsiMethod[] getMethodsByName(@NotNull String name, @NotNull final GlobalSear... | return list.toArray(new PsiClass[list.size()]);
public String[] getAllClassNames() {
return ArrayUtil.toStringArray(JavaShortClassNameIndex.getInstance().getAllKeys(myManager.getProject()));
JavaShortClassNameIndex.getInstance().processAllKeys(myManager.getProject(), new CommonProcessors.CollectProcessor<String>(set));... |
22,970 | return StubIndex.getInstance().process(JavaStubIndexKeys.METHODS, name, myManager.getProject(), scope, processor);
}
@Override
@NotNull
public String[] getAllMethodNames() {
<BUG>final Collection<String> names = JavaMethodNameIndex.getInstance().getAllKeys(myManager.getProject());
return ArrayUtil.toStringArray(names)... | return ArrayUtil.toStringArray(JavaMethodNameIndex.getInstance().getAllKeys(myManager.getProject()));
|
22,971 |
return ArrayUtil.toStringArray(names);</BUG>
}
@Override
public void getAllMethodNames(@NotNull HashSet<String> set) {
<BUG>set.addAll(JavaMethodNameIndex.getInstance().getAllKeys(myManager.getProject()));
}</BUG>
@Override
@NotNull
public PsiField[] getFieldsByNameIfNotMoreThan(@NotNull String name, @NotNull final Gl... | return StubIndex.getInstance().process(JavaStubIndexKeys.METHODS, name, myManager.getProject(), scope, processor);
public String[] getAllMethodNames() {
return ArrayUtil.toStringArray(JavaMethodNameIndex.getInstance().getAllKeys(myManager.getProject()));
JavaMethodNameIndex.getInstance().processAllKeys(myManager.getPro... |
22,972 | import net.geforcemods.securitycraft.api.CustomizableSCTE;
import net.geforcemods.securitycraft.api.INameable;
import net.geforcemods.securitycraft.api.IOwnable;
import net.geforcemods.securitycraft.api.IPasswordProtected;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;
<BUG>import net.geforcemods.security... | import net.geforcemods.securitycraft.tileentity.TileEntityKeycardReader;
import net.minecraft.entity.player.EntityPlayerMP;
|
22,973 | import net.minecraft.entity.monster.EntityPigZombie;
import net.minecraft.entity.player.EntityPlayer;
public class TileEntityProtecto extends CustomizableSCTE {
public boolean attackEntity(Entity entity){
if(entity instanceof EntityLivingBase)
<BUG>{
if((entity instanceof EntityPlayer && (getOwner().isOwner((EntityPlay... | if((entity instanceof EntityPlayer && (getOwner().isOwner((EntityPlayer) entity) ||
(entity instanceof EntityCreeper && ((EntityCreeper) entity).getPowered()))return false;
WorldUtils.spawnLightning(worldObj, entity.posX, entity.posY, entity.posZ);
|
22,974 | package net.geforcemods.securitycraft.blocks;
import net.geforcemods.securitycraft.api.IIntersectable;
<BUG>import net.geforcemods.securitycraft.api.TileEntitySCTE;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;</BUG>
import net.minecraft.block.Block;
import net.minecraft.block.BlockDynamicLiquid;
import ... | import net.geforcemods.securitycraft.imc.waila.ICustomWailaDisplay;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;
|
22,975 | import net.minecraft.block.BlockDynamicLiquid;
import net.minecraft.block.BlockStaticLiquid;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
<BUG>import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.mi... | import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
|
22,976 | package net.geforcemods.securitycraft.blocks;
import net.geforcemods.securitycraft.api.IIntersectable;
<BUG>import net.geforcemods.securitycraft.api.TileEntitySCTE;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;</BUG>
import net.geforcemods.securitycraft.misc.CustomDamageSources;
import net.minecraft.bloc... | import net.geforcemods.securitycraft.imc.waila.ICustomWailaDisplay;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;
|
22,977 | import net.minecraft.block.BlockDynamicLiquid;
import net.minecraft.block.BlockStaticLiquid;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
<BUG>import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.mi... | import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
|
22,978 | package net.geforcemods.securitycraft.blocks;
import java.util.Random;
import cpw.mods.fml.relauncher.Side;
<BUG>import cpw.mods.fml.relauncher.SideOnly;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;</BUG>
import net.geforcemods.securitycraft.misc.CustomDamageSources;
import net.minecraft.block.Block;
im... | import net.geforcemods.securitycraft.imc.waila.ICustomWailaDisplay;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;
|
22,979 | package net.geforcemods.securitycraft.blocks.mines;
import java.util.Random;
<BUG>import net.geforcemods.securitycraft.api.IExplosive;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;</BUG>
import net.geforcemods.securitycraft.tileentity.TileEntityClaymore;
import net.geforcemods.securitycraft.util.BlockUti... | import net.geforcemods.securitycraft.api.IOwnable;
import net.geforcemods.securitycraft.api.Owner;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;
|
22,980 | package net.geforcemods.securitycraft.blocks;
import java.util.Random;
import cpw.mods.fml.relauncher.Side;
<BUG>import cpw.mods.fml.relauncher.SideOnly;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;</BUG>
import net.minecraft.block.Block;
import net.minecraft.block.BlockStaticLiquid;
import net.minecraf... | import net.geforcemods.securitycraft.imc.waila.ICustomWailaDisplay;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;
|
22,981 | import net.minecraft.block.BlockStaticLiquid;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
<BUG>import net.minecraft.item.Item;
import net.minecraft.world.World;
public class BlockFakeLavaBase extends... | import net.minecraft.item.ItemStack;
public class BlockFakeLavaBase extends BlockStaticLiquid implements ICustomWailaDisplay {
|
22,982 | package net.geforcemods.securitycraft.blocks.mines;
<BUG>import java.util.Random;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;</BUG>
import net.geforcemods.securitycraft.tileentity.TileEntityOwnable;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
| import net.geforcemods.securitycraft.api.IOwnable;
import net.geforcemods.securitycraft.api.Owner;
import net.geforcemods.securitycraft.main.mod_SecurityCraft;
|
22,983 | import net.minecraft.util.StatCollector;
public class TileEntityRetinalScanner extends CustomizableSCTE {
private OptionBoolean activatedByEntities = new OptionBoolean("activatedByEntities", false);
public void entityViewed(EntityLivingBase entity) {
if(!worldObj.isRemote && !BlockUtils.isMetadataBetween(worldObj, xCoo... | if(!(entity instanceof EntityPlayer) && !activatedByEntities.asBoolean())
if(entity instanceof EntityPlayer && PlayerUtils.isPlayerMountedOnCamera(entity))
if(entity instanceof EntityPlayer && !getOwner().isOwner((EntityPlayer) entity)) {
|
22,984 | private String endpointPath;
public FileConsumer(GenericFileEndpoint<File> endpoint, Processor processor, GenericFileOperations<File> operations) {
super(endpoint, processor, operations);
this.endpointPath = endpoint.getConfiguration().getDirectory();
}
<BUG>protected void pollDirectory(String fileName, List<GenericFil... | protected boolean pollDirectory(String fileName, List<GenericFile<File>> fileList) {
|
22,985 | File directory = new File(fileName);
if (!directory.exists() || !directory.isDirectory()) {
if (log.isDebugEnabled()) {
log.debug("Cannot poll as directory does not exists or its not a directory: " + directory);
}
<BUG>return;
</BUG>
}
if (log.isTraceEnabled()) {
log.trace("Polling directory: " + directory.getPath());
| return true;
|
22,986 | File[] files = directory.listFiles();
if (files == null || files.length == 0) {
if (log.isTraceEnabled()) {
log.trace("No files found in directory: " + directory.getPath());
}
<BUG>return;
</BUG>
} else {
if (log.isTraceEnabled()) {
log.trace("Found " + files.length + " in directory: " + directory.getPath());
| return true;
|
22,987 | } else {
if (log.isTraceEnabled()) {
log.trace("Found " + files.length + " in directory: " + directory.getPath());
}
}
<BUG>for (File file : files) {
if (log.isTraceEnabled()) {</BUG>
log.trace("Found file: " + file + " [isAbsolute: " + file.isAbsolute() + ", isDirectory: "
+ file.isDirectory() + ", isFile: " + file.is... | if (!canPollMoreFiles(fileList)) {
return false;
|
22,988 | protected String endpointPath;
public FtpConsumer(RemoteFileEndpoint<FTPFile> endpoint, Processor processor, RemoteFileOperations<FTPFile> fileOperations) {
super(endpoint, processor, fileOperations);
this.endpointPath = endpoint.getConfiguration().getDirectory();
}
<BUG>protected void pollDirectory(String fileName, Li... | protected boolean pollDirectory(String fileName, List<GenericFile<FTPFile>> fileList) {
if (log.isTraceEnabled()) {
log.trace("pollDirectory from fileName: " + fileName);
return true;
|
22,989 | private String endpointPath;
public SftpConsumer(RemoteFileEndpoint<ChannelSftp.LsEntry> endpoint, Processor processor, RemoteFileOperations<ChannelSftp.LsEntry> operations) {
super(endpoint, processor, operations);
this.endpointPath = endpoint.getConfiguration().getDirectory();
}
<BUG>protected void pollDirectory(Stri... | protected boolean pollDirectory(String fileName, List<GenericFile<ChannelSftp.LsEntry>> fileList) {
if (log.isTraceEnabled()) {
log.trace("pollDirectory from fileName: " + fileName);
return true;
|
22,990 | import org.ops4j.pax.exam.karaf.options.LogLevelOption;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
import org.ops4j.pax.exam.util.Filter;
import static org.junit.Assert.assertNotNull;
<BUG>import static org.ops4j.pax.exam.CoreOptions.bundle;
import stati... | import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFileExtend;
|
22,991 | @Filter(timeout = 300000)
public SlingRequestProcessor slingRequestProcessor;
@Configuration
public Option[] configuration() {
return new Option[]{
<BUG>karafDistributionConfiguration().frameworkUrl(maven().groupId(karafGroupId()).artifactId(karafArtifactId()).version(karafVersion()).type("tar.gz")).karafVersion(karafV... | karafDistributionConfiguration().frameworkUrl(maven().groupId(karafGroupId()).artifactId(karafArtifactId()).version(karafVersion()).type("tar.gz")).karafVersion(karafVersion()).useDeployFolder(false).name(karafName()).unpackDirectory(new File("target/paxexam/")),
|
22,992 | import org.ops4j.pax.exam.util.Filter;
public abstract class KarafTestSupport {</BUG>
public static final String KARAF_GROUP_ID = "org.apache.karaf";
public static final String KARAF_ARTIFACT_ID = "apache-karaf";
<BUG>public static final String KARAF_VERSION = "3.0.0.RC1";
public static final String KARAF_NAME = "Apach... | import org.osgi.framework.Constants;
import static org.ops4j.pax.exam.CoreOptions.streamBundle;
import static org.ops4j.pax.tinybundles.core.TinyBundles.bundle;
public abstract class KarafTestSupport {
public static final String KARAF_VERSION = "3.0.0";
public static final String KARAF_NAME = "Apache Karaf";
|
22,993 | import org.ops4j.pax.exam.karaf.options.LogLevelOption;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
import org.ops4j.pax.exam.util.Filter;
import static org.junit.Assert.assertNotNull;
<BUG>import static org.ops4j.pax.exam.CoreOptions.bundle;
import stati... | import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFileExtend;
|
22,994 | @Filter(timeout = 300000)
public SlingRepository slingRepository;
@Configuration
public Option[] configuration() {
return new Option[]{
<BUG>karafDistributionConfiguration().frameworkUrl(maven().groupId(karafGroupId()).artifactId(karafArtifactId()).version(karafVersion()).type("tar.gz")).karafVersion(karafVersion()).na... | karafDistributionConfiguration().frameworkUrl(maven().groupId(karafGroupId()).artifactId(karafArtifactId()).version(karafVersion()).type("tar.gz")).karafVersion(karafVersion()).useDeployFolder(false).name(karafName()).unpackDirectory(new File("target/paxexam/")),
|
22,995 | import org.jboss.as.test.integration.security.loginmodules.common.servlets.RolePrintingServlet;
import org.jboss.logging.Logger;
import org.jboss.security.auth.spi.LdapExtLoginModule;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.StringAsset;
<BUG>import org.jboss.shrinkwrap.api.spec... | import org.junit.Ignore;
import org.junit.Test;
|
22,996 | return createWar(SECURITY_DOMAIN_NAME_PREFIX + DEP1);
}
@Deployment(name = DEP2)
public static WebArchive deployment2() {
return createWar(SECURITY_DOMAIN_NAME_PREFIX + DEP2);
<BUG>}
@Deployment(name = DEP3)</BUG>
public static WebArchive deployment3() {
return createWar(SECURITY_DOMAIN_NAME_PREFIX + DEP3);
}
| @Deployment(name = DEP2_THROW)
public static WebArchive deployment2throw() {
return createWar(SECURITY_DOMAIN_NAME_PREFIX + DEP2_THROW);
@Deployment(name = DEP3)
|
22,997 | @Deployment(name = DEP5)
public static WebArchive deployment5() {
return createWar(SECURITY_DOMAIN_NAME_PREFIX + DEP5);
}
@Test
<BUG>@OperateOnDeployment(DEP1)
public void test1(@ArquillianResource URL webAppURL) throws Exception {
testDeployment(webAppURL, "jduke", false);
}</BUG>
@Test
| @Ignore("AS7-5737 LdapExtLoginModule fails with follow referral")
testDeployment(webAppURL, "jduke", "TheDuke", "Echo", "Admin");
|
22,998 | (CreateLdapServer) AnnotationUtils.getInstance(CreateLdapServer.class));
FileOutputStream fos = new FileOutputStream(KEYSTORE_FILE);
IOUtils.copy(getClass().getResourceAsStream(KEYSTORE_FILENAME), fos);
fos.close();
createLdapServer.setKeyStore(KEYSTORE_FILE.getAbsolutePath());
<BUG>fixTransportAddress(createLdapServer... | fixTransportAddress(createLdapServer, Utils.getSecondaryTestAddress(managementClient, false));
|
22,999 | customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString());
customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName);
customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString());
customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName);
customTokens.put("%%mlTraceFo... | customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName);
customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName);
}
|
23,000 | package com.rackspace.papi.filter;
import javax.servlet.Filter;
<BUG>public class FilterContext {
private final ClassLoader filterClassLoader;</BUG>
private final Filter filter;
public FilterContext(Filter filter, ClassLoader filterClassLoader) {
this.filter = filter;
| import com.rackspace.papi.commons.util.Destroyable;
public class FilterContext implements Destroyable {
private final ClassLoader filterClassLoader;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.