id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
25,201
import java.util.Date; import java.util.Scanner; import com.google.common.io.Files; public class Deploy { public static ArrayList<Object> tools = new ArrayList<Object>(); <BUG>public static String VERSION = "1.6-11a"; </BUG> public static final String FIELD_SEP = "\t"; public static boolean DEBUG = true; static{
public static String VERSION = "1.6-11b";
25,202
import org.graphity.core.provider.UpdateRequestReader; import org.graphity.processor.mapper.ClientExceptionMapper; import org.graphity.processor.mapper.ConfigurationExceptionMapper; import org.graphity.processor.mapper.ModelExceptionMapper; import org.graphity.processor.mapper.NotFoundExceptionMapper; <BUG>import org.g...
import org.graphity.processor.mapper.SPINArgumentExceptionMapper;
25,203
singletons.add(new RiotExceptionMapper()); singletons.add(new ModelExceptionMapper()); singletons.add(new NotFoundExceptionMapper()); singletons.add(new ClientExceptionMapper()); singletons.add(new ConfigurationExceptionMapper()); <BUG>singletons.add(new QueryArgumentExceptionMapper()); </BUG> singletons.add(new QueryP...
singletons.add(new SPINArgumentExceptionMapper());
25,204
addProperty(RDF.type, GP.Page). addProperty(XHV.next, page); if (log.isDebugEnabled()) log.debug("Adding page metadata: {} xhv:previous {}", page, prev); page.addProperty(XHV.prev, prev); } <BUG>Resource next = getPageBuilder(container, offset + limit, limit, orderBy, desc).build(). addProperty(GP.pageOf, container). <...
TemplateCall nextCall = SPINFactory.asTemplateCall(pageCall.removeAll(GP.offset). addLiteral(GP.offset, offset + limit)); Resource next = getPageBuilder(pageBuilder, nextCall).build(). addProperty(GP.pageOf, absolutePath).
25,205
package org.seleniumhq.selenium.fluent; <BUG>import org.openqa.selenium.Dimension; import org.openqa.selenium.Point;</BUG> import org.openqa.selenium.WebDriver; import java.util.List; public abstract class BaseFluentWebElement extends BaseFluentWebDriver {
[DELETED]
25,206
} public FluentSelects selects(By by) { MultipleResult multiple = multiple(by, "select"); return newFluentSelects(multiple.getResult(), multiple.getCtx()); } <BUG>public FluentWebElement h1() { </BUG> SingleResult single = single(tagName("h1"), "h1"); return newFluentWebElement(delegate, single.getResult(), single.getC...
protected BaseFluentWebElements spans() { return newFluentWebElements(multiple(tagName("span"), "span"));
25,207
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.DigestOutputStream; import java.security.MessageDigest; <BUG>import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.List;</BUG> public final class ...
import java.text.DateFormat; import java.util.Date; import java.util.List;
25,208
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;
25,209
private static final String PATH_DELIMITER = "/"; public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT; enum Element { ADDED_BUNDLE("added-bundle"), ADDED_MISC_CONTENT("added-misc-content"), <BUG>ADDED_MODULE("added-module"), BUNDLES("bundles"),</BUG> CUMULATIVE("cumulative"), DESCRIPTION("description"), MIS...
APPLIES_TO_VERSION("applies-to-version"), BUNDLES("bundles"),
25,210
final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { <BUG>case APPLIES_TO_VERSION: builder.addAppliesTo(value); break;</BUG> case RESULTING_VE...
[DELETED]
25,211
final StringBuilder path = new StringBuilder(); for(final String p : item.getPath()) { path.append(p).append(PATH_DELIMITER); } path.append(item.getName()); <BUG>writer.writeAttribute(Attribute.PATH.name, path.toString()); if(type != ModificationType.REMOVE) {</BUG> writer.writeAttribute(Attribute.HASH.name, bytesToHex...
if (item.isDirectory()) { writer.writeAttribute(Attribute.DIRECTORY.name, "true"); if(type != ModificationType.REMOVE) {
25,212
package org.jboss.as.patching; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.patching.runner.PatchingException; import org.jboss.logging.Messages; import org.jboss.logging.annotations.Message; <BUG>import org.jboss.logging.annotations.MessageBundle; import java.io.IOException;</BUG> impor...
import org.jboss.logging.annotations.Cause; import java.io.IOException;
25,213
public String comms = "https"; public String scptPath = "w/api.php"; protected boolean isBot = false; public final String domain; protected int maxResultLimit = 500; <BUG>protected int groupQueryMax = 50;</BUG> protected Tuple<String, String> upx = null; //TODO: px should be char[] protected String token = "+\\"; prote...
[DELETED]
25,214
package com.liferay.portalweb.portlet.blogsaggregator; import com.liferay.portalweb.portal.BaseTests; <BUG>import com.liferay.portalweb.portlet.blogsaggregator.entry.EntryTests; </BUG> import com.liferay.portalweb.portlet.blogsaggregator.portlet.PortletTests; import junit.framework.Test; import junit.framework.TestSuit...
import com.liferay.portalweb.portlet.blogsaggregator.blogsentry.BlogsEntryTests;
25,215
import junit.framework.Test; import junit.framework.TestSuite; public class BlogsAggregatorTests extends BaseTests { public static Test suite() { TestSuite testSuite = new TestSuite(); <BUG>testSuite.addTest(EntryTests.suite()); </BUG> testSuite.addTest(PortletTests.suite()); return testSuite; }
testSuite.addTest(BlogsEntryTests.suite());
25,216
package org.elasticsearch.index.analysis; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonToken; <BUG>import com.google.common.base.Throwables; import com.google.common.collect.Lists;</BUG> import java.io.IOException; import java.io.Inpu...
[DELETED]
25,217
} ksTmp.put(key, Collections.unmodifiableList(keyStrokes)); } KEY_STROKE_MAP = Collections.unmodifiableMap(ksTmp); } catch (IOException e) { <BUG>throw Throwables.propagate(e); }</BUG> } public static String toCanonicalKeystroke(String reading) { KeystrokeBuilder builder = buildKeystrokes(reading);
throw new RuntimeException(e);
25,218
} else { int from = pos; pos++; // Already checked pos < len and isKatakana(reading.charAt(pos)) while (pos < len && !isKatakana(reading.charAt(pos))) { pos++; <BUG>} keyStrokeFragments = Lists.newArrayList(new Keystroke(reading.substring(from, pos), 1)); </BUG> } builder.append(keyStrokeFragments);
keyStrokeFragments = new ArrayList<>(); keyStrokeFragments.add(new Keystroke(reading.substring(from, pos), 1));
25,219
package org.elasticsearch.index.analysis; <BUG>import com.google.common.collect.Lists; import com.google.common.collect.Sets;</BUG> import org.apache.lucene.analysis.Tokenizer; import org.apache.lucene.analysis.ja.JapaneseTokenizer; import org.apache.lucene.analysis.ja.tokenattributes.ReadingAttribute;
[DELETED]
25,220
sb.setCharAt(i, (char)(c - 'ぁ' + 'ァ')); } } } private Iterator<String> toEdgeNGrams(List<String> keyStrokes) { <BUG>Set<String> edgeNGrams = Sets.newTreeSet(LENGTH_COMPARATOR); </BUG> for (String keyStroke : keyStrokes) { for (int i = 0; i < keyStroke.length(); i++) { edgeNGrams.add(keyStroke.substring(0, i + 1));
Set<String> edgeNGrams = new TreeSet<>(LENGTH_COMPARATOR);
25,221
package org.elasticsearch.index.analysis; <BUG>import org.elasticsearch.common.inject.Inject; import org.elasticsearch.common.inject.assistedinject.Assisted; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.index.Index; import org.elasticsearch.index.settings.IndexSettingsService;</BUG> publ...
import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings;
25,222
import org.elasticsearch.index.settings.IndexSettingsService;</BUG> public class KuromojiSuggestAnalyzerProvider extends AbstractIndexAnalyzerProvider<KuromojiSuggestAnalyzer> { public static final String INDEX_ANALYZER = "kuromoji_suggest_index"; public static final String SEARCH_ANALYZER = "kuromoji_suggest_search";...
package org.elasticsearch.index.analysis; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; public KuromojiSuggestAnalyzerProvider(IndexSettings indexSettings, Environment env, String name, Settings settings) { super(indexSettings,...
25,223
if (def != null) { myNewDefinitions = ArrayUtil.append(myNewDefinitions, def); def.setDefiningElement(this); if (parent != null) { parent.registerCustomType(def); <BUG>} if (antFile != null) {</BUG> for (final AntTypeId typeId : def.getNestedElements()) { final String nestedClassName = def.getNestedClassName(typeId); A...
else { antFile.registerCustomType(def); if (antFile != null) {
25,224
private void addBuffer() { try { if (!isClosed && bufferQueue.size() <= BUFFER_QUEUE_SIZE) bufferQueue.put(new byte[size]); } catch (InterruptedException e) { <BUG>LOGGER.log(LogLevel.INFO, "Unable to add buffer to buffer queue", e); }</BUG> } } public AsyncBufferWriter(OutputStream outputStream, int size, ThreadFactor...
LOGGER.log(LogLevel.INFO, Messages.getString("HDFS_ASYNC_UNABLE_ADD_TO_QUEUE"), e);
25,225
isClosed = true; exService.shutdown(); try { exService.awaitTermination(Integer.MAX_VALUE, TimeUnit.SECONDS); } catch (InterruptedException e) { <BUG>LOGGER.log(LogLevel.WARN, "Execution Service shutdown is interrupted.", e); }finally {</BUG> flushNow(); out.close(); bufferQueue.clear();
LOGGER.log(LogLevel.WARN, Messages.getString("HDFS_ASYNC_SERVICE_SHUTDOWN_INTERRUPTED"), e); }finally {
25,226
public class MacroDisplayer implements InnerHTMLListener { public static final String MACRO_STYLE_NAME = "macro"; public static final String SELECTED_MACRO_STYLE_NAME = MACRO_STYLE_NAME + "-selected"; public static final String BLOCK_MACRO_STYLE_NAME = MACRO_STYLE_NAME + "-block"; <BUG>public static final String INLINE...
public static final String START_MACRO_COMMENT_PREFIX = "startmacro:"; public static final String STOP_MACRO_COMMENT_VALUE = "stopmacro"; protected final DOMUtils domUtils = DOMUtils.getInstance();
25,227
minX = src.getMinX(); maxX = src.getMaxX(); minY = src.getMinY(); maxY = src.getMaxY(); } else { <BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC); minX = src.getMinX() + 1; // Left padding maxX = src.getMaxX() - 2; // Right padding minY = src.getMinY() + 1; // Top padding max...
iterSource = getRandomIterator(src, null); minX = src.getMinX() + leftPad; // Left padding maxX = src.getMaxX() - rightPad; // Right padding minY = src.getMinY() + topPad; // Top padding maxY = src.getMaxY() - bottomPad; // Bottom padding
25,228
final int lineStride = dst.getScanlineStride(); final int pixelStride = dst.getPixelStride(); final int[] bandOffsets = dst.getBandOffsets(); final byte[][] data = dst.getByteDataArrays(); final float[] warpData = new float[2 * dstWidth]; <BUG>int lineOffset = 0; if (ctable == null) { // source does not have IndexColor...
if(hasROI && !roiContainsTile && roiIter == null){ throw new IllegalArgumentException("Error on creating the ROI iterator"); } if (caseA || (caseB && roiContainsTile)) { for (int h = 0; h < dstHeight; h++) {
25,229
pixelOffset += pixelStride; } // COLS LOOP } // ROWS LOOP } } else {// source has IndexColorModel <BUG>if (caseA) { for (int h = 0; h < dstHeight; h++) {</BUG> int pixelOffset = lineOffset; lineOffset += lineStride; warp.warpRect(dst.getX(), dst.getY() + h, dstWidth, 1, warpData);
} else if (caseB) { for (int h = 0; h < dstHeight; h++) {
25,230
minX = src.getMinX(); maxX = src.getMaxX(); minY = src.getMinY(); maxY = src.getMaxY(); } else { <BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC); minX = src.getMinX() + 1; // Left padding maxX = src.getMaxX() - 2; // Right padding minY = src.getMinY() + 1; // Top padding max...
iterSource = getRandomIterator(src, null); minX = src.getMinX() + leftPad; // Left padding maxX = src.getMaxX() - rightPad; // Right padding minY = src.getMinY() + topPad; // Top padding maxY = src.getMaxY() - bottomPad; // Bottom padding
25,231
final int pixelStride = dst.getPixelStride(); final int[] bandOffsets = dst.getBandOffsets(); final short[][] data = dst.getShortDataArrays(); final float[] warpData = new float[2 * dstWidth]; int lineOffset = 0; <BUG>if (caseA) { for (int h = 0; h < dstHeight; h++) {</BUG> int pixelOffset = lineOffset; lineOffset += l...
if(hasROI && !roiContainsTile && roiIter == null){ throw new IllegalArgumentException("Error on creating the ROI iterator"); } if (caseA || (caseB && roiContainsTile)) { for (int h = 0; h < dstHeight; h++) {
25,232
minX = src.getMinX(); maxX = src.getMaxX(); minY = src.getMinY(); maxY = src.getMaxY(); } else { <BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC); minX = src.getMinX() + 1; // Left padding maxX = src.getMaxX() - 2; // Right padding minY = src.getMinY() + 1; // Top padding max...
iterSource = getRandomIterator(src, null); minX = src.getMinX() + leftPad; // Left padding maxX = src.getMaxX() - rightPad; // Right padding minY = src.getMinY() + topPad; // Top padding maxY = src.getMaxY() - bottomPad; // Bottom padding
25,233
final int pixelStride = dst.getPixelStride(); final int[] bandOffsets = dst.getBandOffsets(); final short[][] data = dst.getShortDataArrays(); final float[] warpData = new float[2 * dstWidth]; int lineOffset = 0; <BUG>if (caseA) { for (int h = 0; h < dstHeight; h++) {</BUG> int pixelOffset = lineOffset; lineOffset += l...
if(hasROI && !roiContainsTile && roiIter == null){ throw new IllegalArgumentException("Error on creating the ROI iterator"); } if (caseA || (caseB && roiContainsTile)) { for (int h = 0; h < dstHeight; h++) {
25,234
minX = src.getMinX(); maxX = src.getMaxX(); minY = src.getMinY(); maxY = src.getMaxY(); } else { <BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC); minX = src.getMinX() + 1; // Left padding maxX = src.getMaxX() - 2; // Right padding minY = src.getMinY() + 1; // Top padding max...
iterSource = getRandomIterator(src, null); minX = src.getMinX() + leftPad; // Left padding maxX = src.getMaxX() - rightPad; // Right padding minY = src.getMinY() + topPad; // Top padding maxY = src.getMaxY() - bottomPad; // Bottom padding
25,235
final int pixelStride = dst.getPixelStride(); final int[] bandOffsets = dst.getBandOffsets(); final int[][] data = dst.getIntDataArrays(); final float[] warpData = new float[2 * dstWidth]; int lineOffset = 0; <BUG>if (caseA) { for (int h = 0; h < dstHeight; h++) {</BUG> int pixelOffset = lineOffset; lineOffset += lineS...
if(hasROI && !roiContainsTile && roiIter == null){ throw new IllegalArgumentException("Error on creating the ROI iterator"); } if (caseA || (caseB && roiContainsTile)) { for (int h = 0; h < dstHeight; h++) {
25,236
minX = src.getMinX(); maxX = src.getMaxX(); minY = src.getMinY(); maxY = src.getMaxY(); } else { <BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC); minX = src.getMinX() + 1; // Left padding maxX = src.getMaxX() - 2; // Right padding minY = src.getMinY() + 1; // Top padding max...
iterSource = getRandomIterator(src, null); minX = src.getMinX() + leftPad; // Left padding maxX = src.getMaxX() - rightPad; // Right padding minY = src.getMinY() + topPad; // Top padding maxY = src.getMaxY() - bottomPad; // Bottom padding
25,237
final int pixelStride = dst.getPixelStride(); final int[] bandOffsets = dst.getBandOffsets(); final float[][] data = dst.getFloatDataArrays(); final float[] warpData = new float[2 * dstWidth]; int lineOffset = 0; <BUG>if (caseA) { for (int h = 0; h < dstHeight; h++) {</BUG> int pixelOffset = lineOffset; lineOffset += l...
if(hasROI && !roiContainsTile && roiIter == null){ throw new IllegalArgumentException("Error on creating the ROI iterator"); } if (caseA || (caseB && roiContainsTile)) { for (int h = 0; h < dstHeight; h++) {
25,238
minX = src.getMinX(); maxX = src.getMaxX(); minY = src.getMinY(); maxY = src.getMaxY(); } else { <BUG>iterSource = RandomIterFactory.create(src, src.getBounds(), TILE_CACHED, ARRAY_CALC); minX = src.getMinX() + 1; // Left padding maxX = src.getMaxX() - 2; // Right padding minY = src.getMinY() + 1; // Top padding max...
iterSource = getRandomIterator(src, null); minX = src.getMinX() + leftPad; // Left padding maxX = src.getMaxX() - rightPad; // Right padding minY = src.getMinY() + topPad; // Top padding maxY = src.getMaxY() - bottomPad; // Bottom padding
25,239
final int pixelStride = dst.getPixelStride(); final int[] bandOffsets = dst.getBandOffsets(); final double[][] data = dst.getDoubleDataArrays(); final float[] warpData = new float[2 * dstWidth]; int lineOffset = 0; <BUG>if (caseA) { for (int h = 0; h < dstHeight; h++) {</BUG> int pixelOffset = lineOffset; lineOffset +=...
if(hasROI && !roiContainsTile && roiIter == null){ throw new IllegalArgumentException("Error on creating the ROI iterator"); } if (caseA || (caseB && roiContainsTile)) { for (int h = 0; h < dstHeight; h++) {
25,240
package com.projecttango.examples.java.augmentedreality; import com.google.atap.tangoservice.Tango; import com.google.atap.tangoservice.Tango.OnTangoUpdateListener; import com.google.atap.tangoservice.TangoCameraIntrinsics; import com.google.atap.tangoservice.TangoConfig; <BUG>import com.google.atap.tangoservice.TangoC...
import com.google.atap.tangoservice.TangoErrorException; import com.google.atap.tangoservice.TangoEvent;
25,241
super.onResume(); if (!mIsConnected) { mTango = new Tango(AugmentedRealityActivity.this, new Runnable() { @Override public void run() { <BUG>try { connectTango();</BUG> setupRenderer(); mIsConnected = true; } catch (TangoOutOfDateException e) {
TangoSupport.initialize(); connectTango();
25,242
if (lastFramePose.statusCode == TangoPoseData.POSE_VALID) { mRenderer.updateRenderCameraPose(lastFramePose, mExtrinsics); mCameraPoseTimestamp = lastFramePose.timestamp;</BUG> } else { <BUG>Log.w(TAG, "Can't get device pose at time: " + mRgbTimestampGlThread); }</BUG> } } } @Override
mRenderer.updateRenderCameraPose(lastFramePose); mCameraPoseTimestamp = lastFramePose.timestamp; Log.w(TAG, "Can't get device pose at time: " +
25,243
import org.rajawali3d.materials.Material; import org.rajawali3d.materials.methods.DiffuseMethod; import org.rajawali3d.materials.textures.ATexture; import org.rajawali3d.materials.textures.StreamingTexture; import org.rajawali3d.materials.textures.Texture; <BUG>import org.rajawali3d.math.Matrix4; import org.rajawali3d....
import org.rajawali3d.math.Quaternion; import org.rajawali3d.math.vector.Vector3;
25,244
translationMoon.setRepeatMode(Animation.RepeatMode.INFINITE); translationMoon.setTransformable3D(moon); getCurrentScene().registerAnimation(translationMoon); translationMoon.play(); } <BUG>public void updateRenderCameraPose(TangoPoseData devicePose, DeviceExtrinsics extrinsics) { Pose cameraPose = ScenePoseCalculator.t...
public void updateRenderCameraPose(TangoPoseData cameraPose) { float[] rotation = cameraPose.getRotationAsFloats(); float[] translation = cameraPose.getTranslationAsFloats(); Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]); getCurrentCamera().setRotation(quaternion.conjugate()...
25,245
package com.projecttango.examples.java.helloareadescription; import com.google.atap.tangoservice.Tango; <BUG>import com.google.atap.tangoservice.Tango.OnTangoUpdateListener; import com.google.atap.tangoservice.TangoConfig;</BUG> import com.google.atap.tangoservice.TangoCoordinateFramePair; import com.google.atap.tangos...
import com.google.atap.tangoservice.TangoAreaDescriptionMetaData; import com.google.atap.tangoservice.TangoConfig;
25,246
import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.math.BigInteger; import java.util.ArrayList; <BUG>import java.util.Collection; import static com.n1analytics.paillier.TestConfiguration.CONFIGURATIONS;</BUG> import static com.n1analyt...
import java.util.Random; import static com.n1analytics.paillier.TestConfiguration.CONFIGURATIONS;
25,247
@RunWith(Parameterized.class) @Category(SlowTests.class) public class AdditionTest { private PaillierContext context; private PaillierPrivateKey privateKey; <BUG>static private int maxIteration = 100; @Parameterized.Parameters</BUG> public static Collection<Object[]> configurations() { Collection<Object[]> configuratio...
static private int MAX_ITERATIONS = TestConfiguration.MAX_ITERATIONS; @Parameterized.Parameters
25,248
} }}; BinaryAdder4 binaryAdders4[] = new BinaryAdder4[]{new BinaryAdder4() {</BUG> @Override public EncodedNumber eval(EncodedNumber arg1, EncodedNumber arg2) { return arg1.add(arg2); } <BUG>}, new BinaryAdder4() { @Override</BUG> public EncodedNumber eval(EncodedNumber arg1, EncodedNumber arg2) {
}, new EncodedToEncodedAdder() { return arg2.add(arg1);
25,249
return context.add(arg2, arg1); } }}; <BUG>void testDoubleAddition(BinaryAdder1 adder) { double a, b, plainResult, decodedResult, tolerance; EncryptedNumber ciphertTextA, ciphertTextB, encryptedResult; EncodedNumber decryptedResult; for(int i = 0; i < maxIteration; i++) { a = randomFiniteDouble();</BUG> b = randomFini...
@Test public void testDoubleAddition() { EncryptedNumber cipherTextA, cipherTextA_obf, cipherTextB, cipherTextB_obf, encryptedResult; EncodedNumber encodedA, encodedB, encodedResult, decryptedResult; Random rnd = new Random(); int maxExponentDiff = (int)(0.5 * context.getPublicKey().getModulus().bitLength() / (Math.log...
25,250
@RunWith(Parameterized.class) @Category(SlowTests.class) public class DivisionTest { private PaillierContext context; private PaillierPrivateKey privateKey; <BUG>static private int maxIteration = 100; @Parameters</BUG> public static Collection<Object[]> configurations() { Collection<Object[]> configurationParams = new ...
static private int maxIteration = TestConfiguration.MAX_ITERATIONS; @Parameters
25,251
countChars.setValue(Configuration.bundle.getString("ui.statusbar.stats.chars") + readText.getCharacters()); countWords.setValue(Configuration.bundle.getString("ui.statusbar.stats.words") + readText.getWords()); countTimes.setValue(FunctionTreeFactory.getNumberOfTextualReadMinutes(SourceText.getText())); } public void i...
mainApp.getMenuController().gethBottomBox().getChildren().clear(); mainApp.getMenuController().gethBottomBox().getColumnConstraints().clear(); mainApp.getMenuController().gethBottomBox().setPadding(new Insets(5, 5, 5, 5));
25,252
Label words = new Label(); Label times = new Label(); chars.setStyle("-fx-font-size: 0.9em;"); words.setStyle("-fx-font-size: 0.9em;"); times.setStyle("-fx-font-size: 0.9em;"); <BUG>mainApp.getMenuController().hBottomBox.getColumnConstraints().addAll(c1, c2, c3, c4); mainApp.getMenuController().hBottomBox.add(times, 1...
mainApp.getMenuController().gethBottomBox().getColumnConstraints().addAll(c1, c2, c3, c4); mainApp.getMenuController().gethBottomBox().add(times, 1, 0); mainApp.getMenuController().gethBottomBox().add(chars, 2, 0); mainApp.getMenuController().gethBottomBox().add(words, 3, 0);
25,253
import com.fincatto.nfe310.FabricaDeObjetosFake; import org.junit.Assert; import org.junit.Test; import java.math.BigDecimal; import java.util.ArrayList; <BUG>import java.util.Arrays; import java.util.List;</BUG> public class NFEnviaEventoCancelamentoTest { @Test public void deveObterEventosComoFoiSetado() {
import java.util.Collections; import java.util.List;
25,254
import com.fincatto.nfe310.FabricaDeObjetosFake; import com.fincatto.nfe310.classes.nota.NFNota; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; <BUG>import java.util.Arrays; import java.util.List;</BUG> public class NFLoteEnvioTest { @Test public void devePermitirNotasComTamanho50() {
import java.util.Collections; import java.util.List;
25,255
public void deveGerarXMLDeAcordoComOPadraoEstabelecido() { final NFLoteEnvio loteEnvio = new NFLoteEnvio(); loteEnvio.setIdLote("333972757970401"); loteEnvio.setVersao("3.10"); loteEnvio.setIndicadorProcessamento(NFLoteIndicadorProcessamento.PROCESSAMENTO_ASSINCRONO); <BUG>loteEnvio.setNotas(Arrays.asList(FabricaDeObje...
loteEnvio.setNotas(Collections.singletonList(FabricaDeObjetosFake.getNFNota()));
25,256
import org.joda.time.DateTime; import org.joda.time.LocalDate; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; <BUG>import java.util.Arrays; public class FabricaDeObjetosFake {</BUG> public static NFInformacaoImpostoDevolvido getNFInformacaoImpostoDevolvido() { final NFInformacaoIm...
import java.util.Collections; public class FabricaDeObjetosFake {
25,257
info.setEmitente(FabricaDeObjetosFake.getNFNotaInfoEmitente()); info.setEntrega(FabricaDeObjetosFake.getNFNotaInfoLocal()); info.setExportacao(FabricaDeObjetosFake.getNFNotaInfoExportacao()); info.setIdentificador("89172658591754401086218048846976493475937081"); info.setInformacoesAdicionais(FabricaDeObjetosFake.getNFN...
info.setPessoasAutorizadasDownloadNFe(Collections.singletonList(FabricaDeObjetosFake.getPessoaAutorizadaDownloadNFe()));
25,258
imposto.setValorTotalTributos(new BigDecimal("999999999999.99")); item.setImposto(imposto); item.setNumeroItem(990); item.setProduto(FabricaDeObjetosFake.getProdutoMedicamento()); item.setImpostoDevolvido(FabricaDeObjetosFake.getNFImpostoDevolvido()); <BUG>info.setItens(Arrays.asList(item)); info.setRetirada(FabricaDeO...
info.setItens(Collections.singletonList(item)); info.setRetirada(FabricaDeObjetosFake.getNFNotaInfoLocal());
25,259
identificacao.setFormaPagamento(NFFormaPagamentoPrazo.A_PRAZO); identificacao.setModelo(NFModelo.NFE); identificacao.setNaturezaOperacao("qGYcW8I1iak14NF7vnfc8XpPYkrHWB5J7Vm3eOAe57azf1fVP7vEOY7TrRVQ"); identificacao.setNumeroNota("999999999"); identificacao.setProgramaEmissor(NFProcessoEmissor.CONTRIBUINTE); <BUG>ident...
identificacao.setReferenciadas(Collections.singletonList(referenciada));
25,260
produtoMedicamento.setCfop("1302"); produtoMedicamento.setCodigo("ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcq"); produtoMedicamento.setCodigoDeBarras("36811963532505"); produtoMedicamento.setCodigoDeBarrasTributavel("36811963532505"); produtoMedicamento.setCampoeValorNota(NFProdutoCompoeValorNota.SIM);...
produtoMedicamento.setDeclaracoesImportacao(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoDeclaracaoImportacao()));
25,261
produtoMedicamento.setValorSeguro(new BigDecimal("999999999999.99")); produtoMedicamento.setValorTotalBruto(new BigDecimal("999999999999.99")); produtoMedicamento.setValorUnitario(new BigDecimal("9999999999.9999999999")); produtoMedicamento.setValorUnitarioTributavel(new BigDecimal("9999999999.9999999999")); produtoMed...
produtoMedicamento.setNomeclaturaValorAduaneiroEstatistica(Collections.singletonList("AZ0123"));
25,262
info.setRetirada(FabricaDeObjetosFake.getNFNotaInfoLocal()); info.setTotal(FabricaDeObjetosFake.getNFNotaInfoTotal()); info.setTransporte(FabricaDeObjetosFake.getNFNotaInfoTransporte()); info.setVersao(new BigDecimal("3.10")); <BUG>info.setPessoasAutorizadasDownloadNFe(Arrays.asList(FabricaDeObjetosFake.getPessoaAutori...
info.setPessoasAutorizadasDownloadNFe(Collections.singletonList(FabricaDeObjetosFake.getPessoaAutorizadaDownloadNFe()));
25,263
identificacao.setFormaPagamento(NFFormaPagamentoPrazo.A_PRAZO); identificacao.setModelo(NFModelo.NFE); identificacao.setNaturezaOperacao("qGYcW8I1iak14NF7vnfc8XpPYkrHWB5J7Vm3eOAe57azf1fVP7vEOY7TrRVQ"); identificacao.setNumeroNota("999999999"); identificacao.setProgramaEmissor(NFProcessoEmissor.CONTRIBUINTE); <BUG>ident...
identificacao.setReferenciadas(Collections.singletonList(FabricaDeObjetosFake.getNFInfoReferenciada()));
25,264
return compra; } public static NFNotaInfoCobranca getNFNotaInfoCobranca() { final NFNotaInfoCobranca cobranca = new NFNotaInfoCobranca(); cobranca.setFatura(FabricaDeObjetosFake.getNFNotaInfoFatura()); <BUG>cobranca.setDuplicatas(Arrays.asList(FabricaDeObjetosFake.getNFNotaInfoDuplicata())); </BUG> return cobranca; } p...
cobranca.setDuplicatas(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoDuplicata()));
25,265
</BUG> produto.setDescricao("OBS0ztekCoG0DSSVcQwPKRV2fV842Pye7mED13P4zoDczcXi4AMNvQ7BKBLnHtLc2Z9fuIY1pcKmXSK1IJQSLEs5QWvVGyC74DyJuIM0X7L0cqWPZQii5JtP"); produto.setExtipi("999"); produto.setCodigoEspecificadorSituacaoTributaria("9999999"); <BUG>produto.setMedicamentos(Arrays.asList(FabricaDeObjetosFake.getNFNotaInfoIte...
produto.setCfop("1302"); produto.setCodigo("ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcq"); produto.setCodigoDeBarras("36811963532505"); produto.setCodigoDeBarrasTributavel("36811963532505"); produto.setCampoeValorNota(NFProdutoCompoeValorNota.SIM); produto.setDeclaracoesImportacao(Collections.singleton...
25,266
produto.setValorFrete(new BigDecimal("999999999999.99")); produto.setValorOutrasDespesasAcessorias(new BigDecimal("999999999999.99")); produto.setValorSeguro(new BigDecimal("999999999999.99")); produto.setValorTotalBruto(new BigDecimal("999999999999.99")); produto.setValorUnitario(new BigDecimal("9999999999.9999999999"...
produto.setNomeclaturaValorAduaneiroEstatistica(Collections.singletonList("AZ0123"));
25,267
medicamento.setQuantidade(new BigDecimal("9999999.999")); return medicamento; } public static NFNotaInfoItemProdutoDeclaracaoImportacao getNFNotaInfoItemProdutoDeclaracaoImportacao() { final NFNotaInfoItemProdutoDeclaracaoImportacao declaraoImportacao = new NFNotaInfoItemProdutoDeclaracaoImportacao(); <BUG>declaraoImpo...
declaraoImportacao.setAdicoes(Collections.singletonList(FabricaDeObjetosFake.getNFNotaInfoItemProdutoDeclaracaoImportacaoAdicao()));
25,268
public static NFNotaInfoVolume getNFNotaInfoVolume() { final NFNotaInfoVolume volume = new NFNotaInfoVolume(); volume.setEspecieVolumesTransportados("3Qf46HFs7FcWlhuQqLJ96vsrgJHu6B5ZXmmwMZ1RtvQVOV4Yp6M9VNqn5Ecb"); final NFNotaInfoLacre notaInfoLacre = new NFNotaInfoLacre(); notaInfoLacre.setNumeroLacre("gvmjb9BB2cmwsLb...
volume.setLacres(Collections.singletonList(notaInfoLacre));
25,269
public void deveGerarXMLDeAcordoComOPadraoEstabelecido() { final NFLoteConsultaRetorno retorno = new NFLoteConsultaRetorno(); retorno.setAmbiente(NFAmbiente.HOMOLOGACAO); retorno.setMotivo("8CwtnC5gWwUncMBYAZl9p4fvVx8RkCH2EKx2mtUNVA5tLoJsjNWL5CJ6DXNUHTWKpPl6fMKKxA0aXBu6IfmJLIHlPxtF0oZkKrNsGyGpwKqWxvDZ9HQGqscmhtTrp5NbNz...
retorno.setProtocolos(Collections.singletonList(FabricaDeObjetosFake.getNFProtocolo()));
25,270
Set<Map.Entry<Object, Object>> set = ps.entrySet(); for (Map.Entry<Object, Object> entry : set) { String key = (String) entry.getKey(); String value = (String) entry.getValue(); <BUG>setValue(key, value); </BUG> } } protected void setValue(String key, String value)
setValue(key, value.trim());
25,271
package org.beetl.ext.web; <BUG>import java.io.IOException; import java.util.Iterator;</BUG> import java.util.Map; import javax.servlet.Filter; import javax.servlet.FilterChain;
import java.util.HashMap; import java.util.Iterator;
25,272
String path = req.getServletPath(); String valueFile = getValueFile(path, req, rsp); GroupTemplate gt = getGroupTemplate(); WebRender render = new WebRender(gt); String commonFile = getCommonValueFile(req, rsp); <BUG>Map commonData = null, data = null; try { commonData = gt.runScript(commonFile, null); data = gt.runScr...
Map commonData = new HashMap(), data = new HashMap();
25,273
commonData = gt.runScript(commonFile, null); data = gt.runScript(valueFile, null); }</BUG> catch (ScriptEvalError e) { <BUG>throw new RuntimeException("伪模型脚本有错!"); </BUG> } commonData.putAll(data); Iterator it = commonData.keySet().iterator();
if (gt.getResourceLoader().exist(valueFile)) throw new RuntimeException("伪模型脚本有错!", e);
25,274
reportFailedPredicate(recognizer, (FailedPredicateException) e); } else { BeetlException exception = new BeetlException(BeetlException.PARSER_UNKNOW_ERROR, e.getClass().getName(), e); <BUG>exception.token = this.getGrammarToken(e.getOffendingToken()); </BUG> throw exception; } }
exception.pushToken(this.getGrammarToken(e.getOffendingToken()));
25,275
protected void reportInputMismatch(@NotNull Parser recognizer, @NotNull InputMismatchException e) { String msg = "缺少输入 " + getTokenErrorDisplay(e.getOffendingToken()) + " 期望 " + e.getExpectedTokens().toString(recognizer.getTokenNames()); BeetlException exception = new BeetlParserException(BeetlException.PARSER_MISS_ERR...
exception.pushToken(this.getGrammarToken(e.getOffendingToken()));
25,276
if (singleTokenInsertion(recognizer)) { return getMissingSymbol(recognizer); } BeetlException exception = new BeetlParserException(BeetlException.PARSER_MISS_ERROR); <BUG>exception.token = this.getGrammarToken(recognizer.getCurrentToken()); </BUG> throw exception; } protected void reportMissingToken(@NotNull Parser rec...
exception.pushToken(this.getGrammarToken(recognizer.getCurrentToken()));
25,277
beginErrorCondition(recognizer); Token t = recognizer.getCurrentToken(); IntervalSet expecting = getExpectedTokens(recognizer); String msg = "缺少输入 " + expecting.toString(recognizer.getTokenNames()) + " 在 " + getTokenErrorDisplay(t); BeetlException exception = new BeetlParserException(BeetlException.PARSER_MISS_ERROR, m...
exception.pushToken(this.getGrammarToken(t));
25,278
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.DigestOutputStream; import java.security.MessageDigest; <BUG>import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.List;</BUG> public final class ...
import java.text.DateFormat; import java.util.Date; import java.util.List;
25,279
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;
25,280
private static final String PATH_DELIMITER = "/"; public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT; enum Element { ADDED_BUNDLE("added-bundle"), ADDED_MISC_CONTENT("added-misc-content"), <BUG>ADDED_MODULE("added-module"), BUNDLES("bundles"),</BUG> CUMULATIVE("cumulative"), DESCRIPTION("description"), MIS...
APPLIES_TO_VERSION("applies-to-version"), BUNDLES("bundles"),
25,281
final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { <BUG>case APPLIES_TO_VERSION: builder.addAppliesTo(value); break;</BUG> case RESULTING_VE...
[DELETED]
25,282
final StringBuilder path = new StringBuilder(); for(final String p : item.getPath()) { path.append(p).append(PATH_DELIMITER); } path.append(item.getName()); <BUG>writer.writeAttribute(Attribute.PATH.name, path.toString()); if(type != ModificationType.REMOVE) {</BUG> writer.writeAttribute(Attribute.HASH.name, bytesToHex...
if (item.isDirectory()) { writer.writeAttribute(Attribute.DIRECTORY.name, "true"); if(type != ModificationType.REMOVE) {
25,283
package org.jboss.as.patching; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.patching.runner.PatchingException; import org.jboss.logging.Messages; import org.jboss.logging.annotations.Message; <BUG>import org.jboss.logging.annotations.MessageBundle; import java.io.IOException;</BUG> impor...
import org.jboss.logging.annotations.Cause; import java.io.IOException;
25,284
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Predicates.in; import static com.google.common.collect.Iterables.addAll; import static com.google.common.collect.Iterables.any; import static com.google.common.collect.Sets.newHashSet; <BUG>import static com.google.com...
import static java.util.Collections.singleton; import static org.apache.jackrabbit.JcrConstants.JCR_ISMIXIN;
25,285
.getChildNode(JCR_SYSTEM) .getChildNode(JCR_NODE_TYPES); addNodeType(types, checkNotNull(name));</BUG> } public TypePredicate( <BUG>@Nonnull NodeState root, @Nonnull Iterable<String> names) { NodeState types = checkNotNull(root) .getChildNode(JCR_SYSTEM) .getChildNode(JCR_NODE_TYPES); for (String name : checkNotNull(na...
[DELETED]
25,286
package org.apache.jackrabbit.oak.plugins.index.property; import static com.google.common.collect.Sets.newHashSet; <BUG>import static java.util.Collections.singleton; import static org.apache.jackrabbit.oak.api.CommitFailedException.CONSTRAINT;</BUG> import static org.apache.jackrabbit.oak.api.Type.NAME; import static ...
import static org.apache.jackrabbit.JcrConstants.JCR_MIXINTYPES; import static org.apache.jackrabbit.JcrConstants.JCR_PRIMARYTYPE; import static org.apache.jackrabbit.oak.api.CommitFailedException.CONSTRAINT;
25,287
import org.xframium.console.http.handler.spi.ListFolder; import org.xframium.console.http.handler.spi.OpenConsole; import org.xframium.console.http.handler.spi.OpenFile; import org.xframium.console.http.handler.spi.OpenHTML; import org.xframium.console.http.handler.spi.OpenSuite; <BUG>import org.xframium.console.http.h...
import org.xframium.console.http.handler.spi.ThreadStatus; import org.xframium.container.ApplicationContainer;
25,288
import org.xframium.container.FileContainer; import org.xframium.container.ModelContainer; import org.xframium.container.PageContainer; import org.xframium.container.SiteContainer; import org.xframium.container.SuiteContainer; <BUG>import org.xframium.container.TagContainer; import org.xframium.device.DeviceCap;</BUG> ...
import org.xframium.container.ThreadContainer; import org.xframium.device.DeviceCap;
25,289
SerializationManager.instance().getAdapter( SerializationManager.JSON_SERIALIZATION ).addCustomMapping( FavoriteContainer.class, new ReflectionSerializer() ); SerializationManager.instance().getAdapter( SerializationManager.JSON_SERIALIZATION ).addCustomMapping( ApplicationAction.class, new ReflectionSerializer() ); Se...
SerializationManager.instance().getAdapter( SerializationManager.JSON_SERIALIZATION ).addCustomMapping( ThreadContainer.class, new ReflectionSerializer() ); SerializationManager.instance().getAdapter( SerializationManager.JSON_SERIALIZATION ).addCustomMapping( Thread.State.class, new ReflectionSerializer() ); KeyWordDr...
25,290
httpServer.createContext( "/css", new OpenFile() ); httpServer.createContext( "/images", new OpenFile() ); httpServer.createContext( "/executionConsole/open", new OpenSuite() ); httpServer.createContext( "/executionConsole/folderList", new ListFolder() ); httpServer.createContext( "/executionConsole/executeTest", new E...
httpServer.createContext( "/executionConsole/threadStatus", new ThreadStatus() ); httpServer.createContext( "/executionConsole/kill", new KillSwitch() );
25,291
return true; } @Override public void afterStep( WebDriver webDriver, KeyWordStep currentStep, Page pageObject, Map<String, Object> contextMap, Map<String, PageData> dataMap, Map<String, Page> pageMap, StepStatus stepStatus, SuiteContainer sC, ExecutionContextTest eC ) { <BUG>String executionId = ( (DeviceWebDriver) web...
if ( executionMap.get( executionId ) != null )
25,292
model = findManager.createReplaceInFileModel(); } else { model = new FindModel(); model.copyFrom(findManager.getFindInFileModel()); } <BUG>FindUtil.configureFindModel(myReplace, null, model); final EditorSearchComponent header = new EditorSearchComponent(editor, project, model);</BUG> editor.setHeaderComponent(header);...
FindUtil.configureFindModel(myReplace, myReplace ? editor.getSelectionModel().getSelectedText() : null, model); final EditorSearchComponent header = new EditorSearchComponent(editor, project, model);
25,293
boolean toPrompt, ReplaceDelegate delegate) { FindManager findManager = FindManager.getInstance(project); model = (FindModel)model.clone(); int occurrences = 0; List<Pair<TextRange,String>> rangesToChange = new ArrayList<Pair<TextRange, String>>(); <BUG>boolean replaced = false; int offset = caretOffset;</BUG> while (o...
boolean reallyReplaced = false; int offset = caretOffset;
25,294
import com.intellij.openapi.util.TextRange; import com.intellij.openapi.vfs.VirtualFile; import org.jetbrains.annotations.Nullable; import java.awt.*; import java.util.*; <BUG>import java.util.List; public class SearchResults {</BUG> public enum Direction {UP, DOWN} private int myActualFound = 0; private List<SearchRes...
import java.util.regex.PatternSyntaxException; public class SearchResults {
25,295
r = new TextRange(0, Integer.MAX_VALUE); } int offset = r.getStartOffset(); VirtualFile virtualFile = FileDocumentManager.getInstance().getFile(editor.getDocument()); while (true) { <BUG>FindManager findManager = FindManager.getInstance(editor.getProject()); FindResult result = findManager.findString(editor.getDocument...
FindResult result; try { } catch(PatternSyntaxException e) { result = null; if (result == null || !result.isStringFound()) break;
25,296
final static String SQL_DB_DELETE_DUP_SERVICES = "DELETE FROM ifservices WHERE nodeid=?"; final static String SQL_DB_DELETE_DUP_SNMPINTERFACE = "DELETE FROM snmpinterface WHERE nodeid =?"; private final static String SQL_RETRIEVE_SERVICE_IDS = "SELECT serviceid,servicename FROM service"; private final static String SQ...
private List<Event> m_eventList = new ArrayList<Event>(); private boolean m_ifIndexOnNodeChangedFlag;
25,297
DbNodeEntry currNodeEntry = DbNodeEntry.create(); currNodeEntry.setNodeType(DbNodeEntry.NODE_TYPE_ACTIVE); setNodeLabelAndSmbInfo(collectorMap, dbNodeEntry, currNodeEntry, currPrimarySnmpIf); if (currPrimarySnmpIf != null) { IfCollector primaryIfc = collectorMap.get(currPrimarySnmpIf.getHostAddress()); <BUG>if (primary...
[DELETED]
25,298
updateIpInfoForNonIpInterface(dbc, now, node, ifIndex, snmpc, ifAddr); } private void updateIpInfoForNonIpInterface(Connection dbc, Date now, DbNodeEntry node, int ifIndex, IfSnmpCollector snmpc, InetAddress ifAddr) throws SQLException { <BUG>DbIpInterfaceEntry dbIpIfEntry = DbIpInterfaceEntry.get(dbc,node.getNodeId(),...
DbIpInterfaceEntry dbIpIfEntry = DbIpInterfaceEntry.get(dbc, node.getNodeId(), ifAddr, ifIndex);
25,299
expectedTable.addCell("No status recorded for this service from this location", ""); expectedTable.addCell(IGNORE_MATCH, ""); assertTableEquals(expectedTable, table); } public void testCreateStatusNoLocationMonitor() { <BUG>for (int i = 0; i < 5; i++) { runTestCreateStatusNoLocationMonitor(); } } public void runTestCre...
[DELETED]
25,300
mostRecentStatuses.add(createStatus(m_locationMonitor2_1, httpService, PollStatus.available(), "20061011-00:00:00")); mostRecentStatuses.add(createStatus(m_locationMonitor2_1, httpsService, PollStatus.available(), "20061012-06:00:00")); mostRecentStatuses.add(createStatus(m_locationMonitor2_2, httpService, PollStatus.a...
statusChanges.add(createStatus(m_locationMonitor1_1, httpsService, PollStatus.unavailable(), "20061012-00:00:00")); statusChanges.add(createStatus(m_locationMonitor1_1, httpsService, PollStatus.available(), "20061012-06:00:00"));